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.15.0-SNAPSHOT-260807132719",
|
||||
"version": "1.15.0-SNAPSHOT-260810075250",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
@@ -234,6 +234,10 @@ export interface CapacityDefinition {
|
||||
* @generated from protobuf field: string UnitID = 4
|
||||
*/
|
||||
UnitID: string; // Site unit identifier of the capacity.
|
||||
/**
|
||||
* @generated from protobuf field: api.TimeRange TimeRange = 5
|
||||
*/
|
||||
TimeRange?: TimeRange; // Time range of the capacity rule, if not defined, the rule is applied for the whole day.
|
||||
}
|
||||
/**
|
||||
* DurationRule
|
||||
@@ -1509,7 +1513,8 @@ class CapacityDefinition$Type extends MessageType<CapacityDefinition> {
|
||||
{ no: 1, name: "Filter", kind: "message", localName: "Filter", jsonName: "Filter", T: () => RuleFilter },
|
||||
{ no: 2, name: "Scope", kind: "enum", localName: "Scope", jsonName: "Scope", T: () => ["api.CapacityRuleScope", CapacityRuleScope] },
|
||||
{ no: 3, name: "MaximalCapacity", kind: "scalar", localName: "MaximalCapacity", jsonName: "MaximalCapacity", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 4, name: "UnitID", kind: "scalar", localName: "UnitID", jsonName: "UnitID", T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 4, name: "UnitID", kind: "scalar", localName: "UnitID", jsonName: "UnitID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 5, name: "TimeRange", kind: "message", localName: "TimeRange", jsonName: "TimeRange", T: () => TimeRange }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<CapacityDefinition>): CapacityDefinition {
|
||||
@@ -1538,6 +1543,9 @@ class CapacityDefinition$Type extends MessageType<CapacityDefinition> {
|
||||
case /* string UnitID */ 4:
|
||||
message.UnitID = reader.string();
|
||||
break;
|
||||
case /* api.TimeRange TimeRange */ 5:
|
||||
message.TimeRange = TimeRange.internalBinaryRead(reader, reader.uint32(), options, message.TimeRange);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -1562,6 +1570,9 @@ class CapacityDefinition$Type extends MessageType<CapacityDefinition> {
|
||||
/* string UnitID = 4; */
|
||||
if (message.UnitID !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.UnitID);
|
||||
/* api.TimeRange TimeRange = 5; */
|
||||
if (message.TimeRange)
|
||||
TimeRange.internalBinaryWrite(message.TimeRange, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user