Latest generation

This commit is contained in:
ci core model
2026-08-10 07:53:37 +00:00
parent c120828f7c
commit 187447bd24
2 changed files with 13 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "@reflex-platform/npm-core-sdk", "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", "description": "npm libs from core model proto files",
"homepage": "", "homepage": "",
"main": "index.ts", "main": "index.ts",

View File

@@ -234,6 +234,10 @@ export interface CapacityDefinition {
* @generated from protobuf field: string UnitID = 4 * @generated from protobuf field: string UnitID = 4
*/ */
UnitID: string; // Site unit identifier of the capacity. 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 * DurationRule
@@ -1509,7 +1513,8 @@ class CapacityDefinition$Type extends MessageType<CapacityDefinition> {
{ no: 1, name: "Filter", kind: "message", localName: "Filter", jsonName: "Filter", T: () => RuleFilter }, { 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: 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: 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 { create(value?: PartialMessage<CapacityDefinition>): CapacityDefinition {
@@ -1538,6 +1543,9 @@ class CapacityDefinition$Type extends MessageType<CapacityDefinition> {
case /* string UnitID */ 4: case /* string UnitID */ 4:
message.UnitID = reader.string(); message.UnitID = reader.string();
break; break;
case /* api.TimeRange TimeRange */ 5:
message.TimeRange = TimeRange.internalBinaryRead(reader, reader.uint32(), options, message.TimeRange);
break;
default: default:
let u = options.readUnknownField; let u = options.readUnknownField;
if (u === "throw") if (u === "throw")
@@ -1562,6 +1570,9 @@ class CapacityDefinition$Type extends MessageType<CapacityDefinition> {
/* string UnitID = 4; */ /* string UnitID = 4; */
if (message.UnitID !== "") if (message.UnitID !== "")
writer.tag(4, WireType.LengthDelimited).string(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; let u = options.writeUnknownFields;
if (u !== false) if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);