You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.11.0-SNAPSHOT-250520143638",
|
||||
"version": "1.11.0-SNAPSHOT-250521074553",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
@@ -33,9 +33,9 @@ export interface QuantityByUnit {
|
||||
/**
|
||||
* referring to the Unit ID defined by the Site
|
||||
*
|
||||
* @generated from protobuf field: api.Unit UnitID = 1 [json_name = "UnitID"];
|
||||
* @generated from protobuf field: string UnitID = 1 [json_name = "UnitID"];
|
||||
*/
|
||||
UnitID?: Unit;
|
||||
UnitID: string;
|
||||
/**
|
||||
* Number of the specified unit
|
||||
*
|
||||
@@ -741,12 +741,13 @@ export const Unit = new Unit$Type();
|
||||
class QuantityByUnit$Type extends MessageType<QuantityByUnit> {
|
||||
constructor() {
|
||||
super("api.QuantityByUnit", [
|
||||
{ no: 1, name: "UnitID", kind: "message", localName: "UnitID", jsonName: "UnitID", T: () => Unit },
|
||||
{ no: 1, name: "UnitID", kind: "scalar", localName: "UnitID", jsonName: "UnitID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 1 /*ScalarType.DOUBLE*/, options: { "validate.rules": { double: { gte: 0 } } } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<QuantityByUnit>): QuantityByUnit {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.UnitID = "";
|
||||
message.Value = 0;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<QuantityByUnit>(this, message, value);
|
||||
@@ -757,8 +758,8 @@ class QuantityByUnit$Type extends MessageType<QuantityByUnit> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.Unit UnitID = 1 [json_name = "UnitID"];*/ 1:
|
||||
message.UnitID = Unit.internalBinaryRead(reader, reader.uint32(), options, message.UnitID);
|
||||
case /* string UnitID = 1 [json_name = "UnitID"];*/ 1:
|
||||
message.UnitID = reader.string();
|
||||
break;
|
||||
case /* double Value = 2 [json_name = "Value"];*/ 2:
|
||||
message.Value = reader.double();
|
||||
@@ -775,9 +776,9 @@ class QuantityByUnit$Type extends MessageType<QuantityByUnit> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: QuantityByUnit, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.Unit UnitID = 1 [json_name = "UnitID"]; */
|
||||
if (message.UnitID)
|
||||
Unit.internalBinaryWrite(message.UnitID, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string UnitID = 1 [json_name = "UnitID"]; */
|
||||
if (message.UnitID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.UnitID);
|
||||
/* double Value = 2 [json_name = "Value"]; */
|
||||
if (message.Value !== 0)
|
||||
writer.tag(2, WireType.Bit64).double(message.Value);
|
||||
|
||||
Reference in New Issue
Block a user