Latest generation

This commit is contained in:
ci core model
2025-12-05 10:15:33 +00:00
parent 9ce2fd093c
commit e955ecd96a
2 changed files with 201 additions and 89 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@reflex-platform/npm-core-sdk",
"version": "1.12.0-SNAPSHOT-251204152542",
"version": "1.12.0-SNAPSHOT-251205101500",
"description": "npm libs from core model proto files",
"homepage": "",
"main": "index.ts",

288
site.ts
View File

@@ -12,8 +12,8 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
import { reflectionMergePartial } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime";
import { Period } from "./shared";
import { PrjMetadata } from "./metadatadef";
import { SegmentationFilter } from "./slotbooking";
import { PrjMetadata } from "./metadatadef";
import { CommandIdentifierEntry } from "./slotbooking";
import { CustomField } from "./shared";
import { Slot } from "./slotbooking";
@@ -733,27 +733,28 @@ export interface GetBookingContextRequest {
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: string ActorID = 2
*/
ActorID: string;
/**
* @generated from protobuf field: api.AppointmentType AppointmentType = 3
*/
AppointmentType: AppointmentType;
}
/**
* @generated from protobuf message api.GetBookingContextResponse
*/
export interface GetBookingContextResponse {
/**
* @generated from protobuf field: repeated string UnitIDs = 1
* @generated from protobuf field: repeated api.ActorBookingContext ActorBookingContexts = 5
*/
ActorBookingContexts: ActorBookingContext[];
}
/**
* @generated from protobuf message api.ActorBookingContext
*/
export interface ActorBookingContext {
/**
* @generated from protobuf field: string ActorID = 1
*/
ActorID: string;
/**
* @generated from protobuf field: repeated string UnitIDs = 2
*/
UnitIDs: string[]; // List of containment units defined on site.
/**
* @generated from protobuf field: repeated api.SegmentationFilter Segmentations = 2
*/
Segmentations: SegmentationFilter[];
/**
* @generated from protobuf field: repeated api.PrjMetadata CarrierInformation = 3
*/
@@ -763,13 +764,30 @@ export interface GetBookingContextResponse {
*/
MetaData: PrjMetadata[];
/**
* @generated from protobuf field: api.Instruction Instruction = 15
* @generated from protobuf field: api.Instruction Instruction = 5
*/
Instruction?: Instruction;
/**
* @generated from protobuf field: repeated api.Document InstructionDocuments = 16
* @generated from protobuf field: repeated api.Document InstructionDocuments = 6
*/
InstructionDocuments: Document[];
/**
* @generated from protobuf field: repeated api.SegmentationsByType SegmentationsByTypes = 7
*/
SegmentationsByTypes: SegmentationsByType[];
}
/**
* @generated from protobuf message api.SegmentationsByType
*/
export interface SegmentationsByType {
/**
* @generated from protobuf field: api.AppointmentType AppointmentType = 1
*/
AppointmentType: AppointmentType;
/**
* @generated from protobuf field: repeated api.SegmentationFilter Segmentations = 2
*/
Segmentations: SegmentationFilter[];
}
/**
* @generated from protobuf message api.BookAppointmentResponse
@@ -1370,9 +1388,9 @@ export interface SiteProjectAptTypeBookingActorsContext {
*/
CommandIdentifierEntry: CommandIdentifierEntry;
/**
* @generated from protobuf field: string ActorIDs = 2
* @generated from protobuf field: string ActorID = 2
*/
ActorIDs: string;
ActorID: string;
}
/**
* @generated from protobuf message api.InitBookerProfileRequest
@@ -3250,15 +3268,11 @@ export const SiteActor = new SiteActor$Type();
class GetBookingContextRequest$Type extends MessageType<GetBookingContextRequest> {
constructor() {
super("api.GetBookingContextRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "validate.rules": { enum: { definedOnly: true } } } }
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ActorID", "AppointmentType"] } } });
}
create(value?: PartialMessage<GetBookingContextRequest>): GetBookingContextRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ActorID = "";
message.AppointmentType = 0;
if (value !== undefined)
reflectionMergePartial<GetBookingContextRequest>(this, message, value);
return message;
@@ -3271,12 +3285,6 @@ class GetBookingContextRequest$Type extends MessageType<GetBookingContextRequest
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string ActorID */ 2:
message.ActorID = reader.string();
break;
case /* api.AppointmentType AppointmentType */ 3:
message.AppointmentType = reader.int32();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -3292,12 +3300,6 @@ class GetBookingContextRequest$Type extends MessageType<GetBookingContextRequest
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string ActorID = 2; */
if (message.ActorID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ActorID);
/* api.AppointmentType AppointmentType = 3; */
if (message.AppointmentType !== 0)
writer.tag(3, WireType.Varint).int32(message.AppointmentType);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -3312,21 +3314,12 @@ export const GetBookingContextRequest = new GetBookingContextRequest$Type();
class GetBookingContextResponse$Type extends MessageType<GetBookingContextResponse> {
constructor() {
super("api.GetBookingContextResponse", [
{ no: 1, name: "UnitIDs", kind: "scalar", localName: "UnitIDs", jsonName: "UnitIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "Segmentations", kind: "message", localName: "Segmentations", jsonName: "Segmentations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationFilter },
{ no: 3, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PrjMetadata },
{ no: 4, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PrjMetadata },
{ no: 15, name: "Instruction", kind: "message", localName: "Instruction", jsonName: "Instruction", T: () => Instruction },
{ no: 16, name: "InstructionDocuments", kind: "message", localName: "InstructionDocuments", jsonName: "InstructionDocuments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Document }
{ no: 5, name: "ActorBookingContexts", kind: "message", localName: "ActorBookingContexts", jsonName: "ActorBookingContexts", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ActorBookingContext }
]);
}
create(value?: PartialMessage<GetBookingContextResponse>): GetBookingContextResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.UnitIDs = [];
message.Segmentations = [];
message.CarrierInformation = [];
message.MetaData = [];
message.InstructionDocuments = [];
message.ActorBookingContexts = [];
if (value !== undefined)
reflectionMergePartial<GetBookingContextResponse>(this, message, value);
return message;
@@ -3336,23 +3329,8 @@ class GetBookingContextResponse$Type extends MessageType<GetBookingContextRespon
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated string UnitIDs */ 1:
message.UnitIDs.push(reader.string());
break;
case /* repeated api.SegmentationFilter Segmentations */ 2:
message.Segmentations.push(SegmentationFilter.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.PrjMetadata CarrierInformation */ 3:
message.CarrierInformation.push(PrjMetadata.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.PrjMetadata MetaData */ 4:
message.MetaData.push(PrjMetadata.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.Instruction Instruction */ 15:
message.Instruction = Instruction.internalBinaryRead(reader, reader.uint32(), options, message.Instruction);
break;
case /* repeated api.Document InstructionDocuments */ 16:
message.InstructionDocuments.push(Document.internalBinaryRead(reader, reader.uint32(), options));
case /* repeated api.ActorBookingContext ActorBookingContexts */ 5:
message.ActorBookingContexts.push(ActorBookingContext.internalBinaryRead(reader, reader.uint32(), options));
break;
default:
let u = options.readUnknownField;
@@ -3366,24 +3344,9 @@ class GetBookingContextResponse$Type extends MessageType<GetBookingContextRespon
return message;
}
internalBinaryWrite(message: GetBookingContextResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated string UnitIDs = 1; */
for (let i = 0; i < message.UnitIDs.length; i++)
writer.tag(1, WireType.LengthDelimited).string(message.UnitIDs[i]);
/* repeated api.SegmentationFilter Segmentations = 2; */
for (let i = 0; i < message.Segmentations.length; i++)
SegmentationFilter.internalBinaryWrite(message.Segmentations[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* repeated api.PrjMetadata CarrierInformation = 3; */
for (let i = 0; i < message.CarrierInformation.length; i++)
PrjMetadata.internalBinaryWrite(message.CarrierInformation[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* repeated api.PrjMetadata MetaData = 4; */
for (let i = 0; i < message.MetaData.length; i++)
PrjMetadata.internalBinaryWrite(message.MetaData[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* api.Instruction Instruction = 15; */
if (message.Instruction)
Instruction.internalBinaryWrite(message.Instruction, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
/* repeated api.Document InstructionDocuments = 16; */
for (let i = 0; i < message.InstructionDocuments.length; i++)
Document.internalBinaryWrite(message.InstructionDocuments[i], writer.tag(16, WireType.LengthDelimited).fork(), options).join();
/* repeated api.ActorBookingContext ActorBookingContexts = 5; */
for (let i = 0; i < message.ActorBookingContexts.length; i++)
ActorBookingContext.internalBinaryWrite(message.ActorBookingContexts[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -3395,6 +3358,155 @@ class GetBookingContextResponse$Type extends MessageType<GetBookingContextRespon
*/
export const GetBookingContextResponse = new GetBookingContextResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ActorBookingContext$Type extends MessageType<ActorBookingContext> {
constructor() {
super("api.ActorBookingContext", [
{ no: 1, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "UnitIDs", kind: "scalar", localName: "UnitIDs", jsonName: "UnitIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PrjMetadata },
{ no: 4, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PrjMetadata },
{ no: 5, name: "Instruction", kind: "message", localName: "Instruction", jsonName: "Instruction", T: () => Instruction },
{ no: 6, name: "InstructionDocuments", kind: "message", localName: "InstructionDocuments", jsonName: "InstructionDocuments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Document },
{ no: 7, name: "SegmentationsByTypes", kind: "message", localName: "SegmentationsByTypes", jsonName: "SegmentationsByTypes", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationsByType }
]);
}
create(value?: PartialMessage<ActorBookingContext>): ActorBookingContext {
const message = globalThis.Object.create((this.messagePrototype!));
message.ActorID = "";
message.UnitIDs = [];
message.CarrierInformation = [];
message.MetaData = [];
message.InstructionDocuments = [];
message.SegmentationsByTypes = [];
if (value !== undefined)
reflectionMergePartial<ActorBookingContext>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActorBookingContext): ActorBookingContext {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ActorID */ 1:
message.ActorID = reader.string();
break;
case /* repeated string UnitIDs */ 2:
message.UnitIDs.push(reader.string());
break;
case /* repeated api.PrjMetadata CarrierInformation */ 3:
message.CarrierInformation.push(PrjMetadata.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.PrjMetadata MetaData */ 4:
message.MetaData.push(PrjMetadata.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.Instruction Instruction */ 5:
message.Instruction = Instruction.internalBinaryRead(reader, reader.uint32(), options, message.Instruction);
break;
case /* repeated api.Document InstructionDocuments */ 6:
message.InstructionDocuments.push(Document.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.SegmentationsByType SegmentationsByTypes */ 7:
message.SegmentationsByTypes.push(SegmentationsByType.internalBinaryRead(reader, reader.uint32(), options));
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: ActorBookingContext, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ActorID = 1; */
if (message.ActorID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ActorID);
/* repeated string UnitIDs = 2; */
for (let i = 0; i < message.UnitIDs.length; i++)
writer.tag(2, WireType.LengthDelimited).string(message.UnitIDs[i]);
/* repeated api.PrjMetadata CarrierInformation = 3; */
for (let i = 0; i < message.CarrierInformation.length; i++)
PrjMetadata.internalBinaryWrite(message.CarrierInformation[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* repeated api.PrjMetadata MetaData = 4; */
for (let i = 0; i < message.MetaData.length; i++)
PrjMetadata.internalBinaryWrite(message.MetaData[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* api.Instruction Instruction = 5; */
if (message.Instruction)
Instruction.internalBinaryWrite(message.Instruction, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* repeated api.Document InstructionDocuments = 6; */
for (let i = 0; i < message.InstructionDocuments.length; i++)
Document.internalBinaryWrite(message.InstructionDocuments[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
/* repeated api.SegmentationsByType SegmentationsByTypes = 7; */
for (let i = 0; i < message.SegmentationsByTypes.length; i++)
SegmentationsByType.internalBinaryWrite(message.SegmentationsByTypes[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ActorBookingContext
*/
export const ActorBookingContext = new ActorBookingContext$Type();
// @generated message type with reflection information, may provide speed optimized methods
class SegmentationsByType$Type extends MessageType<SegmentationsByType> {
constructor() {
super("api.SegmentationsByType", [
{ no: 1, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType] },
{ no: 2, name: "Segmentations", kind: "message", localName: "Segmentations", jsonName: "Segmentations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationFilter }
]);
}
create(value?: PartialMessage<SegmentationsByType>): SegmentationsByType {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentType = 0;
message.Segmentations = [];
if (value !== undefined)
reflectionMergePartial<SegmentationsByType>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SegmentationsByType): SegmentationsByType {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.AppointmentType AppointmentType */ 1:
message.AppointmentType = reader.int32();
break;
case /* repeated api.SegmentationFilter Segmentations */ 2:
message.Segmentations.push(SegmentationFilter.internalBinaryRead(reader, reader.uint32(), options));
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: SegmentationsByType, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.AppointmentType AppointmentType = 1; */
if (message.AppointmentType !== 0)
writer.tag(1, WireType.Varint).int32(message.AppointmentType);
/* repeated api.SegmentationFilter Segmentations = 2; */
for (let i = 0; i < message.Segmentations.length; i++)
SegmentationFilter.internalBinaryWrite(message.Segmentations[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.SegmentationsByType
*/
export const SegmentationsByType = new SegmentationsByType$Type();
// @generated message type with reflection information, may provide speed optimized methods
class BookAppointmentResponse$Type extends MessageType<BookAppointmentResponse> {
constructor() {
super("api.BookAppointmentResponse", [
@@ -5615,13 +5727,13 @@ class SiteProjectAptTypeBookingActorsContext$Type extends MessageType<SiteProjec
constructor() {
super("api.SiteProjectAptTypeBookingActorsContext", [
{ no: 1, name: "CommandIdentifierEntry", kind: "enum", localName: "CommandIdentifierEntry", jsonName: "CommandIdentifierEntry", T: () => ["api.CommandIdentifierEntry", CommandIdentifierEntry] },
{ no: 2, name: "ActorIDs", kind: "scalar", localName: "ActorIDs", jsonName: "ActorIDs", T: 9 /*ScalarType.STRING*/ }
{ no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<SiteProjectAptTypeBookingActorsContext>): SiteProjectAptTypeBookingActorsContext {
const message = globalThis.Object.create((this.messagePrototype!));
message.CommandIdentifierEntry = 0;
message.ActorIDs = "";
message.ActorID = "";
if (value !== undefined)
reflectionMergePartial<SiteProjectAptTypeBookingActorsContext>(this, message, value);
return message;
@@ -5634,8 +5746,8 @@ class SiteProjectAptTypeBookingActorsContext$Type extends MessageType<SiteProjec
case /* api.CommandIdentifierEntry CommandIdentifierEntry */ 1:
message.CommandIdentifierEntry = reader.int32();
break;
case /* string ActorIDs */ 2:
message.ActorIDs = reader.string();
case /* string ActorID */ 2:
message.ActorID = reader.string();
break;
default:
let u = options.readUnknownField;
@@ -5652,9 +5764,9 @@ class SiteProjectAptTypeBookingActorsContext$Type extends MessageType<SiteProjec
/* api.CommandIdentifierEntry CommandIdentifierEntry = 1; */
if (message.CommandIdentifierEntry !== 0)
writer.tag(1, WireType.Varint).int32(message.CommandIdentifierEntry);
/* string ActorIDs = 2; */
if (message.ActorIDs !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ActorIDs);
/* string ActorID = 2; */
if (message.ActorID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ActorID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);