diff --git a/calendar.ts b/calendar.ts index f530354..44f2120 100644 --- a/calendar.ts +++ b/calendar.ts @@ -552,9 +552,9 @@ export interface SLAPeriod { */ SLA: string; /** - * @generated from protobuf field: int64 PeriodUsed = 4 + * @generated from protobuf field: api.Period PeriodUsed = 2 */ - PeriodUsed: bigint; // value that represents what was used from the minperiod to compute the SLA + PeriodUsed?: Period; // Period that represents what was used from the input Period to compute the SLA } /** * @generated from protobuf message api.ComputeSLAPeriodResponse @@ -2303,13 +2303,12 @@ class SLAPeriod$Type extends MessageType { constructor() { super("api.SLAPeriod", [ { no: 1, name: "SLA", kind: "scalar", localName: "SLA", jsonName: "SLA", T: 9 /*ScalarType.STRING*/ }, - { no: 4, name: "PeriodUsed", kind: "scalar", localName: "PeriodUsed", jsonName: "PeriodUsed", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ } + { no: 2, name: "PeriodUsed", kind: "message", localName: "PeriodUsed", jsonName: "PeriodUsed", T: () => Period } ]); } create(value?: PartialMessage): SLAPeriod { const message = globalThis.Object.create((this.messagePrototype!)); message.SLA = ""; - message.PeriodUsed = 0n; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -2322,8 +2321,8 @@ class SLAPeriod$Type extends MessageType { case /* string SLA */ 1: message.SLA = reader.string(); break; - case /* int64 PeriodUsed */ 4: - message.PeriodUsed = reader.int64().toBigInt(); + case /* api.Period PeriodUsed */ 2: + message.PeriodUsed = Period.internalBinaryRead(reader, reader.uint32(), options, message.PeriodUsed); break; default: let u = options.readUnknownField; @@ -2340,9 +2339,9 @@ class SLAPeriod$Type extends MessageType { /* string SLA = 1; */ if (message.SLA !== "") writer.tag(1, WireType.LengthDelimited).string(message.SLA); - /* int64 PeriodUsed = 4; */ - if (message.PeriodUsed !== 0n) - writer.tag(4, WireType.Varint).int64(message.PeriodUsed); + /* api.Period PeriodUsed = 2; */ + if (message.PeriodUsed) + Period.internalBinaryWrite(message.PeriodUsed, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); diff --git a/package.json b/package.json index 350cdf4..3ac0029 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.15.0-SNAPSHOT-260821144543", + "version": "1.15.0-SNAPSHOT-260821145645", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts",