You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -67,11 +67,11 @@ export interface Slot {
|
||||
*/
|
||||
StartDateTime: string;
|
||||
/**
|
||||
* Slot duration in minutes.
|
||||
* Slot duration in seconds.
|
||||
*
|
||||
* @generated from protobuf field: int64 DurationInMinutes = 3 [json_name = "DurationInMinutes"];
|
||||
* @generated from protobuf field: uint64 DurationInSeconds = 3 [json_name = "DurationInSeconds"];
|
||||
*/
|
||||
DurationInMinutes: bigint;
|
||||
DurationInSeconds: bigint;
|
||||
}
|
||||
/**
|
||||
* Segmentations
|
||||
@@ -287,7 +287,7 @@ export interface DurationRule {
|
||||
/**
|
||||
* Base duration in seconds
|
||||
*
|
||||
* @generated from protobuf field: int64 BaseDurationInSeconds = 2 [json_name = "BaseDurationInSeconds"];
|
||||
* @generated from protobuf field: uint64 BaseDurationInSeconds = 2 [json_name = "BaseDurationInSeconds"];
|
||||
*/
|
||||
BaseDurationInSeconds: bigint;
|
||||
/**
|
||||
@@ -316,7 +316,7 @@ export interface VariableDuration {
|
||||
/**
|
||||
* Duration in seconds
|
||||
*
|
||||
* @generated from protobuf field: int64 DurationInSeconds = 2 [json_name = "DurationInSeconds"];
|
||||
* @generated from protobuf field: uint64 DurationInSeconds = 2 [json_name = "DurationInSeconds"];
|
||||
*/
|
||||
DurationInSeconds: bigint;
|
||||
}
|
||||
@@ -867,13 +867,13 @@ class Slot$Type extends MessageType<Slot> {
|
||||
constructor() {
|
||||
super("api.Slot", [
|
||||
{ no: 1, name: "StartDateTime", kind: "scalar", localName: "StartDateTime", jsonName: "StartDateTime", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T[01][0-9]|2[0-3]:[0-5][0-9]:[0-5][0-9]$" } } } },
|
||||
{ no: 3, name: "DurationInMinutes", kind: "scalar", localName: "DurationInMinutes", jsonName: "DurationInMinutes", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
||||
{ no: 3, name: "DurationInSeconds", kind: "scalar", localName: "DurationInSeconds", jsonName: "DurationInSeconds", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<Slot>): Slot {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.StartDateTime = "";
|
||||
message.DurationInMinutes = 0n;
|
||||
message.DurationInSeconds = 0n;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<Slot>(this, message, value);
|
||||
return message;
|
||||
@@ -886,8 +886,8 @@ class Slot$Type extends MessageType<Slot> {
|
||||
case /* string StartDateTime = 1 [json_name = "StartDateTime"];*/ 1:
|
||||
message.StartDateTime = reader.string();
|
||||
break;
|
||||
case /* int64 DurationInMinutes = 3 [json_name = "DurationInMinutes"];*/ 3:
|
||||
message.DurationInMinutes = reader.int64().toBigInt();
|
||||
case /* uint64 DurationInSeconds = 3 [json_name = "DurationInSeconds"];*/ 3:
|
||||
message.DurationInSeconds = reader.uint64().toBigInt();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -904,9 +904,9 @@ class Slot$Type extends MessageType<Slot> {
|
||||
/* string StartDateTime = 1 [json_name = "StartDateTime"]; */
|
||||
if (message.StartDateTime !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.StartDateTime);
|
||||
/* int64 DurationInMinutes = 3 [json_name = "DurationInMinutes"]; */
|
||||
if (message.DurationInMinutes !== 0n)
|
||||
writer.tag(3, WireType.Varint).int64(message.DurationInMinutes);
|
||||
/* uint64 DurationInSeconds = 3 [json_name = "DurationInSeconds"]; */
|
||||
if (message.DurationInSeconds !== 0n)
|
||||
writer.tag(3, WireType.Varint).uint64(message.DurationInSeconds);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -1448,7 +1448,7 @@ class DurationRule$Type extends MessageType<DurationRule> {
|
||||
constructor() {
|
||||
super("api.DurationRule", [
|
||||
{ no: 1, name: "Filter", kind: "message", localName: "Filter", jsonName: "Filter", T: () => RuleFilter },
|
||||
{ no: 2, name: "BaseDurationInSeconds", kind: "scalar", localName: "BaseDurationInSeconds", jsonName: "BaseDurationInSeconds", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 2, name: "BaseDurationInSeconds", kind: "scalar", localName: "BaseDurationInSeconds", jsonName: "BaseDurationInSeconds", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 3, name: "VariableDurations", kind: "message", localName: "VariableDurations", jsonName: "VariableDurations", repeat: 1 /*RepeatType.PACKED*/, T: () => VariableDuration, options: { "api.aggKey": "UnitID" } },
|
||||
{ no: 4, name: "OrderAppliance", kind: "scalar", localName: "OrderAppliance", jsonName: "OrderAppliance", T: 5 /*ScalarType.INT32*/ }
|
||||
]);
|
||||
@@ -1470,8 +1470,8 @@ class DurationRule$Type extends MessageType<DurationRule> {
|
||||
case /* api.RuleFilter Filter = 1 [json_name = "Filter"];*/ 1:
|
||||
message.Filter = RuleFilter.internalBinaryRead(reader, reader.uint32(), options, message.Filter);
|
||||
break;
|
||||
case /* int64 BaseDurationInSeconds = 2 [json_name = "BaseDurationInSeconds"];*/ 2:
|
||||
message.BaseDurationInSeconds = reader.int64().toBigInt();
|
||||
case /* uint64 BaseDurationInSeconds = 2 [json_name = "BaseDurationInSeconds"];*/ 2:
|
||||
message.BaseDurationInSeconds = reader.uint64().toBigInt();
|
||||
break;
|
||||
case /* repeated api.VariableDuration VariableDurations = 3 [json_name = "VariableDurations"];*/ 3:
|
||||
message.VariableDurations.push(VariableDuration.internalBinaryRead(reader, reader.uint32(), options));
|
||||
@@ -1494,9 +1494,9 @@ class DurationRule$Type extends MessageType<DurationRule> {
|
||||
/* api.RuleFilter Filter = 1 [json_name = "Filter"]; */
|
||||
if (message.Filter)
|
||||
RuleFilter.internalBinaryWrite(message.Filter, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* int64 BaseDurationInSeconds = 2 [json_name = "BaseDurationInSeconds"]; */
|
||||
/* uint64 BaseDurationInSeconds = 2 [json_name = "BaseDurationInSeconds"]; */
|
||||
if (message.BaseDurationInSeconds !== 0n)
|
||||
writer.tag(2, WireType.Varint).int64(message.BaseDurationInSeconds);
|
||||
writer.tag(2, WireType.Varint).uint64(message.BaseDurationInSeconds);
|
||||
/* repeated api.VariableDuration VariableDurations = 3 [json_name = "VariableDurations"]; */
|
||||
for (let i = 0; i < message.VariableDurations.length; i++)
|
||||
VariableDuration.internalBinaryWrite(message.VariableDurations[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
@@ -1518,7 +1518,7 @@ class VariableDuration$Type extends MessageType<VariableDuration> {
|
||||
constructor() {
|
||||
super("api.VariableDuration", [
|
||||
{ no: 1, name: "UnitID", kind: "scalar", localName: "UnitID", jsonName: "UnitID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "DurationInSeconds", kind: "scalar", localName: "DurationInSeconds", jsonName: "DurationInSeconds", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
||||
{ no: 2, name: "DurationInSeconds", kind: "scalar", localName: "DurationInSeconds", jsonName: "DurationInSeconds", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<VariableDuration>): VariableDuration {
|
||||
@@ -1537,8 +1537,8 @@ class VariableDuration$Type extends MessageType<VariableDuration> {
|
||||
case /* string UnitID = 1 [json_name = "UnitID"];*/ 1:
|
||||
message.UnitID = reader.string();
|
||||
break;
|
||||
case /* int64 DurationInSeconds = 2 [json_name = "DurationInSeconds"];*/ 2:
|
||||
message.DurationInSeconds = reader.int64().toBigInt();
|
||||
case /* uint64 DurationInSeconds = 2 [json_name = "DurationInSeconds"];*/ 2:
|
||||
message.DurationInSeconds = reader.uint64().toBigInt();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -1555,9 +1555,9 @@ class VariableDuration$Type extends MessageType<VariableDuration> {
|
||||
/* string UnitID = 1 [json_name = "UnitID"]; */
|
||||
if (message.UnitID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.UnitID);
|
||||
/* int64 DurationInSeconds = 2 [json_name = "DurationInSeconds"]; */
|
||||
/* uint64 DurationInSeconds = 2 [json_name = "DurationInSeconds"]; */
|
||||
if (message.DurationInSeconds !== 0n)
|
||||
writer.tag(2, WireType.Varint).int64(message.DurationInSeconds);
|
||||
writer.tag(2, WireType.Varint).uint64(message.DurationInSeconds);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user