You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@reflex-platform/npm-core-sdk",
|
"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",
|
"description": "npm libs from core model proto files",
|
||||||
"homepage": "",
|
"homepage": "",
|
||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
|
|||||||
288
site.ts
288
site.ts
@@ -12,8 +12,8 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
|
|||||||
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
||||||
import { MessageType } from "@protobuf-ts/runtime";
|
import { MessageType } from "@protobuf-ts/runtime";
|
||||||
import { Period } from "./shared";
|
import { Period } from "./shared";
|
||||||
import { PrjMetadata } from "./metadatadef";
|
|
||||||
import { SegmentationFilter } from "./slotbooking";
|
import { SegmentationFilter } from "./slotbooking";
|
||||||
|
import { PrjMetadata } from "./metadatadef";
|
||||||
import { CommandIdentifierEntry } from "./slotbooking";
|
import { CommandIdentifierEntry } from "./slotbooking";
|
||||||
import { CustomField } from "./shared";
|
import { CustomField } from "./shared";
|
||||||
import { Slot } from "./slotbooking";
|
import { Slot } from "./slotbooking";
|
||||||
@@ -733,27 +733,28 @@ export interface GetBookingContextRequest {
|
|||||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
||||||
*/
|
*/
|
||||||
Header?: RequestProjectHeader;
|
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
|
* @generated from protobuf message api.GetBookingContextResponse
|
||||||
*/
|
*/
|
||||||
export interface 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.
|
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
|
* @generated from protobuf field: repeated api.PrjMetadata CarrierInformation = 3
|
||||||
*/
|
*/
|
||||||
@@ -763,13 +764,30 @@ export interface GetBookingContextResponse {
|
|||||||
*/
|
*/
|
||||||
MetaData: PrjMetadata[];
|
MetaData: PrjMetadata[];
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf field: api.Instruction Instruction = 15
|
* @generated from protobuf field: api.Instruction Instruction = 5
|
||||||
*/
|
*/
|
||||||
Instruction?: Instruction;
|
Instruction?: Instruction;
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf field: repeated api.Document InstructionDocuments = 16
|
* @generated from protobuf field: repeated api.Document InstructionDocuments = 6
|
||||||
*/
|
*/
|
||||||
InstructionDocuments: Document[];
|
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
|
* @generated from protobuf message api.BookAppointmentResponse
|
||||||
@@ -1370,9 +1388,9 @@ export interface SiteProjectAptTypeBookingActorsContext {
|
|||||||
*/
|
*/
|
||||||
CommandIdentifierEntry: CommandIdentifierEntry;
|
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
|
* @generated from protobuf message api.InitBookerProfileRequest
|
||||||
@@ -3250,15 +3268,11 @@ export const SiteActor = new SiteActor$Type();
|
|||||||
class GetBookingContextRequest$Type extends MessageType<GetBookingContextRequest> {
|
class GetBookingContextRequest$Type extends MessageType<GetBookingContextRequest> {
|
||||||
constructor() {
|
constructor() {
|
||||||
super("api.GetBookingContextRequest", [
|
super("api.GetBookingContextRequest", [
|
||||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
{ 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 } } } }
|
|
||||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ActorID", "AppointmentType"] } } });
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ActorID", "AppointmentType"] } } });
|
||||||
}
|
}
|
||||||
create(value?: PartialMessage<GetBookingContextRequest>): GetBookingContextRequest {
|
create(value?: PartialMessage<GetBookingContextRequest>): GetBookingContextRequest {
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
const message = globalThis.Object.create((this.messagePrototype!));
|
||||||
message.ActorID = "";
|
|
||||||
message.AppointmentType = 0;
|
|
||||||
if (value !== undefined)
|
if (value !== undefined)
|
||||||
reflectionMergePartial<GetBookingContextRequest>(this, message, value);
|
reflectionMergePartial<GetBookingContextRequest>(this, message, value);
|
||||||
return message;
|
return message;
|
||||||
@@ -3271,12 +3285,6 @@ class GetBookingContextRequest$Type extends MessageType<GetBookingContextRequest
|
|||||||
case /* api.RequestProjectHeader Header */ 1:
|
case /* api.RequestProjectHeader Header */ 1:
|
||||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||||
break;
|
break;
|
||||||
case /* string ActorID */ 2:
|
|
||||||
message.ActorID = reader.string();
|
|
||||||
break;
|
|
||||||
case /* api.AppointmentType AppointmentType */ 3:
|
|
||||||
message.AppointmentType = reader.int32();
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -3292,12 +3300,6 @@ class GetBookingContextRequest$Type extends MessageType<GetBookingContextRequest
|
|||||||
/* api.RequestProjectHeader Header = 1; */
|
/* api.RequestProjectHeader Header = 1; */
|
||||||
if (message.Header)
|
if (message.Header)
|
||||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
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;
|
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);
|
||||||
@@ -3312,21 +3314,12 @@ export const GetBookingContextRequest = new GetBookingContextRequest$Type();
|
|||||||
class GetBookingContextResponse$Type extends MessageType<GetBookingContextResponse> {
|
class GetBookingContextResponse$Type extends MessageType<GetBookingContextResponse> {
|
||||||
constructor() {
|
constructor() {
|
||||||
super("api.GetBookingContextResponse", [
|
super("api.GetBookingContextResponse", [
|
||||||
{ no: 1, name: "UnitIDs", kind: "scalar", localName: "UnitIDs", jsonName: "UnitIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
{ no: 5, name: "ActorBookingContexts", kind: "message", localName: "ActorBookingContexts", jsonName: "ActorBookingContexts", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ActorBookingContext }
|
||||||
{ 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 }
|
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value?: PartialMessage<GetBookingContextResponse>): GetBookingContextResponse {
|
create(value?: PartialMessage<GetBookingContextResponse>): GetBookingContextResponse {
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
const message = globalThis.Object.create((this.messagePrototype!));
|
||||||
message.UnitIDs = [];
|
message.ActorBookingContexts = [];
|
||||||
message.Segmentations = [];
|
|
||||||
message.CarrierInformation = [];
|
|
||||||
message.MetaData = [];
|
|
||||||
message.InstructionDocuments = [];
|
|
||||||
if (value !== undefined)
|
if (value !== undefined)
|
||||||
reflectionMergePartial<GetBookingContextResponse>(this, message, value);
|
reflectionMergePartial<GetBookingContextResponse>(this, message, value);
|
||||||
return message;
|
return message;
|
||||||
@@ -3336,23 +3329,8 @@ class GetBookingContextResponse$Type extends MessageType<GetBookingContextRespon
|
|||||||
while (reader.pos < end) {
|
while (reader.pos < end) {
|
||||||
let [fieldNo, wireType] = reader.tag();
|
let [fieldNo, wireType] = reader.tag();
|
||||||
switch (fieldNo) {
|
switch (fieldNo) {
|
||||||
case /* repeated string UnitIDs */ 1:
|
case /* repeated api.ActorBookingContext ActorBookingContexts */ 5:
|
||||||
message.UnitIDs.push(reader.string());
|
message.ActorBookingContexts.push(ActorBookingContext.internalBinaryRead(reader, reader.uint32(), options));
|
||||||
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));
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
@@ -3366,24 +3344,9 @@ class GetBookingContextResponse$Type extends MessageType<GetBookingContextRespon
|
|||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
internalBinaryWrite(message: GetBookingContextResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
internalBinaryWrite(message: GetBookingContextResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||||
/* repeated string UnitIDs = 1; */
|
/* repeated api.ActorBookingContext ActorBookingContexts = 5; */
|
||||||
for (let i = 0; i < message.UnitIDs.length; i++)
|
for (let i = 0; i < message.ActorBookingContexts.length; i++)
|
||||||
writer.tag(1, WireType.LengthDelimited).string(message.UnitIDs[i]);
|
ActorBookingContext.internalBinaryWrite(message.ActorBookingContexts[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||||
/* 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();
|
|
||||||
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);
|
||||||
@@ -3395,6 +3358,155 @@ class GetBookingContextResponse$Type extends MessageType<GetBookingContextRespon
|
|||||||
*/
|
*/
|
||||||
export const GetBookingContextResponse = new GetBookingContextResponse$Type();
|
export const GetBookingContextResponse = new GetBookingContextResponse$Type();
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
// @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> {
|
class BookAppointmentResponse$Type extends MessageType<BookAppointmentResponse> {
|
||||||
constructor() {
|
constructor() {
|
||||||
super("api.BookAppointmentResponse", [
|
super("api.BookAppointmentResponse", [
|
||||||
@@ -5615,13 +5727,13 @@ class SiteProjectAptTypeBookingActorsContext$Type extends MessageType<SiteProjec
|
|||||||
constructor() {
|
constructor() {
|
||||||
super("api.SiteProjectAptTypeBookingActorsContext", [
|
super("api.SiteProjectAptTypeBookingActorsContext", [
|
||||||
{ no: 1, name: "CommandIdentifierEntry", kind: "enum", localName: "CommandIdentifierEntry", jsonName: "CommandIdentifierEntry", T: () => ["api.CommandIdentifierEntry", CommandIdentifierEntry] },
|
{ 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 {
|
create(value?: PartialMessage<SiteProjectAptTypeBookingActorsContext>): SiteProjectAptTypeBookingActorsContext {
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
const message = globalThis.Object.create((this.messagePrototype!));
|
||||||
message.CommandIdentifierEntry = 0;
|
message.CommandIdentifierEntry = 0;
|
||||||
message.ActorIDs = "";
|
message.ActorID = "";
|
||||||
if (value !== undefined)
|
if (value !== undefined)
|
||||||
reflectionMergePartial<SiteProjectAptTypeBookingActorsContext>(this, message, value);
|
reflectionMergePartial<SiteProjectAptTypeBookingActorsContext>(this, message, value);
|
||||||
return message;
|
return message;
|
||||||
@@ -5634,8 +5746,8 @@ class SiteProjectAptTypeBookingActorsContext$Type extends MessageType<SiteProjec
|
|||||||
case /* api.CommandIdentifierEntry CommandIdentifierEntry */ 1:
|
case /* api.CommandIdentifierEntry CommandIdentifierEntry */ 1:
|
||||||
message.CommandIdentifierEntry = reader.int32();
|
message.CommandIdentifierEntry = reader.int32();
|
||||||
break;
|
break;
|
||||||
case /* string ActorIDs */ 2:
|
case /* string ActorID */ 2:
|
||||||
message.ActorIDs = reader.string();
|
message.ActorID = reader.string();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
@@ -5652,9 +5764,9 @@ class SiteProjectAptTypeBookingActorsContext$Type extends MessageType<SiteProjec
|
|||||||
/* api.CommandIdentifierEntry CommandIdentifierEntry = 1; */
|
/* api.CommandIdentifierEntry CommandIdentifierEntry = 1; */
|
||||||
if (message.CommandIdentifierEntry !== 0)
|
if (message.CommandIdentifierEntry !== 0)
|
||||||
writer.tag(1, WireType.Varint).int32(message.CommandIdentifierEntry);
|
writer.tag(1, WireType.Varint).int32(message.CommandIdentifierEntry);
|
||||||
/* string ActorIDs = 2; */
|
/* string ActorID = 2; */
|
||||||
if (message.ActorIDs !== "")
|
if (message.ActorID !== "")
|
||||||
writer.tag(2, WireType.LengthDelimited).string(message.ActorIDs);
|
writer.tag(2, WireType.LengthDelimited).string(message.ActorID);
|
||||||
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);
|
||||||
|
|||||||
Reference in New Issue
Block a user