// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix // @generated from protobuf file "actor.proto" (package "api", syntax proto3) // tslint:disable import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; import type { IBinaryWriter } from "@protobuf-ts/runtime"; import { WireType } from "@protobuf-ts/runtime"; import type { BinaryReadOptions } from "@protobuf-ts/runtime"; import type { IBinaryReader } from "@protobuf-ts/runtime"; import { UnknownFieldHandler } from "@protobuf-ts/runtime"; import type { PartialMessage } from "@protobuf-ts/runtime"; import { reflectionMergePartial } from "@protobuf-ts/runtime"; import { MessageType } from "@protobuf-ts/runtime"; import { PartnerPayload } from "./partner"; import { ActorAuthorisation } from "./slotbooking"; import { SiteAlias } from "./repositoryShared"; import { ClaimSummary } from "./shared"; import { AttachmentSummary } from "./shared"; import { CarrierService } from "./repositoryShared"; import { ActorSnapshot } from "./repositoryShared"; import { ActorTypology } from "./repositoryShared"; import { ActorStatusStruct } from "./repositoryShared"; import { Address } from "./repositoryShared"; import { MetadataElement } from "./shared"; import { IdType } from "./repositoryShared"; import { EntityID } from "./shared"; import { EventHeader } from "./shared"; // _repository_ /** * * Aggregation object message * * @generated from protobuf message api.Actor */ export interface Actor { /** * @generated from protobuf field: api.EventHeader LastEventHeader = 1 */ LastEventHeader?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.ActorPayload Payload = 3 */ Payload?: ActorPayload; } /** * @generated from protobuf message api.ActorPayload */ export interface ActorPayload { /** * Actor Name * * @generated from protobuf field: string Name = 1 */ Name: string; /** * @generated from protobuf field: api.IdType IdType = 2 */ IdType: IdType; /** * @generated from protobuf field: repeated api.MetadataElement MetaData = 3 */ MetaData: MetadataElement[]; /** * @generated from protobuf field: api.Address Address = 4 */ Address?: Address; // ActorContact Contact = 5; /** * Status field is not accessible from APIs * * @generated from protobuf field: api.ActorStatusStruct Status = 6 */ Status?: ActorStatusStruct; /** * Existing PartnerID * * @generated from protobuf field: string PartnerID = 7 */ PartnerID: string; // PartnerPayload Partner = 8; // string AdditionalInformations = 9; /** * @generated from protobuf field: string AdditionalInformation = 15 */ AdditionalInformation: string; /** * @generated from protobuf field: api.ActorTypology Typology = 10 */ Typology: ActorTypology; /** * @generated from protobuf field: api.ActorSnapshot Snapshot = 11 */ Snapshot?: ActorSnapshot; /** * Must be a valid email address * * @generated from protobuf field: repeated string Emails = 12 */ Emails: string[]; /** * @generated from protobuf field: repeated string Phones = 13 */ Phones: string[]; /** * Can manage stock * * @generated from protobuf field: bool ManagedStock = 14 */ ManagedStock: boolean; /** * Can be used as carrier * * @generated from protobuf field: bool IsCarrier = 16 */ IsCarrier: boolean; /** * List of carrier services * * @generated from protobuf field: repeated api.CarrierService CarrierServices = 17 */ CarrierServices: CarrierService[]; /** * @generated from protobuf field: bool IsShipToConnected = 18 */ IsShipToConnected: boolean; /** * @generated from protobuf field: bool IsShipFromConnected = 19 */ IsShipFromConnected: boolean; /** * Must be existing partner ID * * @generated from protobuf field: string ShipToPartnerAppID = 20 */ ShipToPartnerAppID: string; /** * Must be existing partner ID * * @generated from protobuf field: string ShipFromPartnerAppID = 21 */ ShipFromPartnerAppID: string; /** * @generated from protobuf field: repeated api.AttachmentSummary Attachments = 22 */ Attachments: AttachmentSummary[]; /** * @generated from protobuf field: int32 AttachmentNumber = 23 */ AttachmentNumber: number; /** * @generated from protobuf field: repeated api.ClaimSummary Claims = 24 */ Claims: ClaimSummary[]; /** * @generated from protobuf field: int32 ClaimNumber = 25 */ ClaimNumber: number; /** * @generated from protobuf field: string PhotoURI = 26 */ PhotoURI: string; /** * Prefix used to create executionflow identifiers * * @generated from protobuf field: repeated string ConnectionIdentifierPrefixes = 28 */ ConnectionIdentifierPrefixes: string[]; /** * @generated from protobuf field: bool IsSlotBookingEnabled = 29 */ IsSlotBookingEnabled: boolean; /** * @generated from protobuf field: api.SiteAlias SiteAlias = 30 */ SiteAlias?: SiteAlias; /** * @generated from protobuf field: api.ActorAuthorisation AppointmentConstraints = 31 */ AppointmentConstraints?: ActorAuthorisation; } /** * Actor Enrichment : Obsolete * * @generated from protobuf message api.ActorEnrichment */ export interface ActorEnrichment { /** * @generated from protobuf field: string ParentEventID = 1 */ ParentEventID: string; /** * @generated from protobuf field: string EntityName = 2 */ EntityName: string; /** * @generated from protobuf field: string EntityRefID = 3 */ EntityRefID: string; /** * @generated from protobuf field: string RefFilter = 4 */ RefFilter: string; /** * @generated from protobuf field: string MergePath = 5 */ MergePath: string; /** * @generated from protobuf oneof: Content */ Content: { oneofKind: "Partner"; /** * @generated from protobuf field: api.PartnerPayload Partner = 10 */ Partner: PartnerPayload; } | { oneofKind: undefined; }; /** * @generated from protobuf field: string Project = 6 */ Project: string; /** * @generated from protobuf field: string ParentEntityName = 7 */ ParentEntityName: string; /** * @generated from protobuf field: string ParentEntityID = 8 */ ParentEntityID: string; } /** * @generated from protobuf message api.ActorTriplet */ export interface ActorTriplet { /** * @generated from protobuf field: api.Actor Current = 1 */ Current?: Actor; /** * @generated from protobuf field: api.Actor Previous = 2 */ Previous?: Actor; /** * @generated from protobuf field: api.Actor LastEvent = 3 */ LastEvent?: Actor; } // @generated message type with reflection information, may provide speed optimized methods class Actor$Type extends MessageType { constructor() { super("api.Actor", [ { no: 1, name: "LastEventHeader", kind: "message", localName: "LastEventHeader", jsonName: "LastEventHeader", T: () => EventHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } }, { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorPayload } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Aggregation object message" } } }); } create(value?: PartialMessage): Actor { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Actor): Actor { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.EventHeader LastEventHeader */ 1: message.LastEventHeader = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.LastEventHeader); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.ActorPayload Payload */ 3: message.Payload = ActorPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload); 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: Actor, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader LastEventHeader = 1; */ if (message.LastEventHeader) EventHeader.internalBinaryWrite(message.LastEventHeader, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.ActorPayload Payload = 3; */ if (message.Payload) ActorPayload.internalBinaryWrite(message.Payload, writer.tag(3, 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.Actor */ export const Actor = new Actor$Type(); // @generated message type with reflection information, may provide speed optimized methods class ActorPayload$Type extends MessageType { constructor() { super("api.ActorPayload", [ { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Actor Name" }, "api.dataRestrictionKey": "Movement,Stock,Executionflow,Handlingunit,Order,Actor,Tracking", "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Item", Group: "item", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Partner", Group: "partner", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }, { Context: "Tracking", Group: "tracking", Queryable: true }] } } }, { no: 2, name: "IdType", kind: "enum", localName: "IdType", jsonName: "IdType", T: () => ["api.IdType", IdType], options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 3, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the project. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key", "api.kpiExclude": { Items: [{ Context: "Order", Group: "order" }, { Context: "Tracking", Group: "tracking" }] }, "api.parentEntity": "Actor" } }, { no: 4, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address }, { no: 6, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => ActorStatusStruct, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiExclude": { Items: [{ Context: "Order", Group: "movement" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Handlingunit", Group: "handlingunit" }, { Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Tracking", Group: "tracking" }] }, "api.enrichmentClear": "Order,Executionflow,Stock,Movement,Tracking" } }, { no: 7, name: "PartnerID", kind: "scalar", localName: "PartnerID", jsonName: "PartnerID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Existing PartnerID" }, "api.entityRef": "Partner", "api.dataRestrictionKey": "Movement,Stock,Actor", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Handlingunit", Group: "handlingunit" }, { Context: "Item", Group: "item", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order" }, { Context: "Partner", Group: "partner", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }, { Context: "Tracking", Group: "tracking" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] }, "api.enrichmentSkippedPath": "Actor" } }, { no: 15, name: "AdditionalInformation", kind: "scalar", localName: "AdditionalInformation", jsonName: "AdditionalInformation", T: 9 /*ScalarType.STRING*/ }, { no: 10, name: "Typology", kind: "enum", localName: "Typology", jsonName: "Typology", T: () => ["api.ActorTypology", ActorTypology], options: { "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }] } } }, { no: 11, name: "Snapshot", kind: "message", localName: "Snapshot", jsonName: "Snapshot", T: () => ActorSnapshot, options: { "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Movement", Group: "movement" }, { Context: "Handlingunit", Group: "handlingunit" }, { Context: "Order", Group: "order" }, { Context: "Actor", Group: "actor" }, { Context: "Tracking", Group: "tracking" }] }, "api.enrichmentClear": "Order,Executionflow,Stock,Movement,Tracking" } }, { no: 12, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Movement", Group: "movement" }, { Context: "Handlingunit", Group: "handlingunit" }, { Context: "Actor", Group: "actor" }, { Context: "Tracking", Group: "tracking" }] } } }, { no: 13, name: "Phones", kind: "scalar", localName: "Phones", jsonName: "Phones", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"07 00 00 00 00\", \"+49 6 00 00 00 00\"]" }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Movement", Group: "movement" }, { Context: "Handlingunit", Group: "handlingunit" }, { Context: "Order", Group: "order" }, { Context: "Actor", Group: "actor" }, { Context: "Tracking", Group: "tracking" }] } } }, { no: 14, name: "ManagedStock", kind: "scalar", localName: "ManagedStock", jsonName: "ManagedStock", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Can manage stock" }, "api.enrichmentClear": "Tracking", "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }] } } }, { no: 16, name: "IsCarrier", kind: "scalar", localName: "IsCarrier", jsonName: "IsCarrier", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Can be used as carrier" }, "api.enrichmentClear": "Stock,Movement" } }, { no: 17, name: "CarrierServices", kind: "message", localName: "CarrierServices", jsonName: "CarrierServices", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierService, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of carrier services" }, "api.aggKey": "ID", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Movement", Group: "movement" }, { Context: "Handlingunit", Group: "handlingunit" }, { Context: "Order", Group: "order" }, { Context: "Actor", Group: "actor" }, { Context: "Tracking", Group: "tracking" }] }, "api.enrichmentClear": "Stock,Movement,Tracking" } }, { no: 18, name: "IsShipToConnected", kind: "scalar", localName: "IsShipToConnected", jsonName: "IsShipToConnected", T: 8 /*ScalarType.BOOL*/, options: { "api.enrichmentClear": "Stock,Movement,Tracking" } }, { no: 19, name: "IsShipFromConnected", kind: "scalar", localName: "IsShipFromConnected", jsonName: "IsShipFromConnected", T: 8 /*ScalarType.BOOL*/, options: { "api.enrichmentClear": "Stock,Movement,Tracking" } }, { no: 20, name: "ShipToPartnerAppID", kind: "scalar", localName: "ShipToPartnerAppID", jsonName: "ShipToPartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be existing partner ID" }, "api.enrichmentClear": "Stock,Movement,Tracking", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 21, name: "ShipFromPartnerAppID", kind: "scalar", localName: "ShipFromPartnerAppID", jsonName: "ShipFromPartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be existing partner ID" }, "api.enrichmentClear": "Stock,Movement,Tracking", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 22, name: "Attachments", kind: "message", localName: "Attachments", jsonName: "Attachments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AttachmentSummary, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of attachments per type" }, "api.aggSkip": "AttachmentAdded,AttachmentRemoved", "api.enrichmentClear": "Order,Executionflow,Stock,Movement,Tracking" } }, { no: 23, name: "AttachmentNumber", kind: "scalar", localName: "AttachmentNumber", jsonName: "AttachmentNumber", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Total number of attachments" }, "api.enrichmentClear": "Order,Executionflow,Stock,Movement,Tracking" } }, { no: 24, name: "Claims", kind: "message", localName: "Claims", jsonName: "Claims", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClaimSummary, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of claims per type" }, "api.aggKey": "ClaimTypeID", "api.aggSkip": "ClaimAdded", "api.enrichmentClear": "Order,Executionflow,Stock,Movement,Tracking" } }, { no: 25, name: "ClaimNumber", kind: "scalar", localName: "ClaimNumber", jsonName: "ClaimNumber", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Total number of claims" }, "api.enrichmentClear": "Order,Stock,Movement,Tracking" } }, { no: 26, name: "PhotoURI", kind: "scalar", localName: "PhotoURI", jsonName: "PhotoURI", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"https://reflex-visibility-forever.jpg\"" }, "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }] }, "api.viewType": { Types: [{ Context: "*", Type: "image" }] } } }, { no: 28, name: "ConnectionIdentifierPrefixes", kind: "scalar", localName: "ConnectionIdentifierPrefixes", jsonName: "ConnectionIdentifierPrefixes", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "api.enrichmentClear": "Stock,Movement,Tracking" } }, { no: 29, name: "IsSlotBookingEnabled", kind: "scalar", localName: "IsSlotBookingEnabled", jsonName: "IsSlotBookingEnabled", T: 8 /*ScalarType.BOOL*/, options: { "api.enrichmentClear": "Stock,Movement,Tracking" } }, { no: 30, name: "SiteAlias", kind: "message", localName: "SiteAlias", jsonName: "SiteAlias", T: () => SiteAlias, options: { "api.enrichmentClear": "Stock,Movement,Tracking" } }, { no: 31, name: "AppointmentConstraints", kind: "message", localName: "AppointmentConstraints", jsonName: "AppointmentConstraints", T: () => ActorAuthorisation } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Name"] } } }); } create(value?: PartialMessage): ActorPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.Name = ""; message.IdType = 0; message.MetaData = []; message.PartnerID = ""; message.AdditionalInformation = ""; message.Typology = 0; message.Emails = []; message.Phones = []; message.ManagedStock = false; message.IsCarrier = false; message.CarrierServices = []; message.IsShipToConnected = false; message.IsShipFromConnected = false; message.ShipToPartnerAppID = ""; message.ShipFromPartnerAppID = ""; message.Attachments = []; message.AttachmentNumber = 0; message.Claims = []; message.ClaimNumber = 0; message.PhotoURI = ""; message.ConnectionIdentifierPrefixes = []; message.IsSlotBookingEnabled = false; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActorPayload): ActorPayload { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string Name */ 1: message.Name = reader.string(); break; case /* api.IdType IdType */ 2: message.IdType = reader.int32(); break; case /* repeated api.MetadataElement MetaData */ 3: message.MetaData.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options)); break; case /* api.Address Address */ 4: message.Address = Address.internalBinaryRead(reader, reader.uint32(), options, message.Address); break; case /* api.ActorStatusStruct Status */ 6: message.Status = ActorStatusStruct.internalBinaryRead(reader, reader.uint32(), options, message.Status); break; case /* string PartnerID */ 7: message.PartnerID = reader.string(); break; case /* string AdditionalInformation */ 15: message.AdditionalInformation = reader.string(); break; case /* api.ActorTypology Typology */ 10: message.Typology = reader.int32(); break; case /* api.ActorSnapshot Snapshot */ 11: message.Snapshot = ActorSnapshot.internalBinaryRead(reader, reader.uint32(), options, message.Snapshot); break; case /* repeated string Emails */ 12: message.Emails.push(reader.string()); break; case /* repeated string Phones */ 13: message.Phones.push(reader.string()); break; case /* bool ManagedStock */ 14: message.ManagedStock = reader.bool(); break; case /* bool IsCarrier */ 16: message.IsCarrier = reader.bool(); break; case /* repeated api.CarrierService CarrierServices */ 17: message.CarrierServices.push(CarrierService.internalBinaryRead(reader, reader.uint32(), options)); break; case /* bool IsShipToConnected */ 18: message.IsShipToConnected = reader.bool(); break; case /* bool IsShipFromConnected */ 19: message.IsShipFromConnected = reader.bool(); break; case /* string ShipToPartnerAppID */ 20: message.ShipToPartnerAppID = reader.string(); break; case /* string ShipFromPartnerAppID */ 21: message.ShipFromPartnerAppID = reader.string(); break; case /* repeated api.AttachmentSummary Attachments */ 22: message.Attachments.push(AttachmentSummary.internalBinaryRead(reader, reader.uint32(), options)); break; case /* int32 AttachmentNumber */ 23: message.AttachmentNumber = reader.int32(); break; case /* repeated api.ClaimSummary Claims */ 24: message.Claims.push(ClaimSummary.internalBinaryRead(reader, reader.uint32(), options)); break; case /* int32 ClaimNumber */ 25: message.ClaimNumber = reader.int32(); break; case /* string PhotoURI */ 26: message.PhotoURI = reader.string(); break; case /* repeated string ConnectionIdentifierPrefixes */ 28: message.ConnectionIdentifierPrefixes.push(reader.string()); break; case /* bool IsSlotBookingEnabled */ 29: message.IsSlotBookingEnabled = reader.bool(); break; case /* api.SiteAlias SiteAlias */ 30: message.SiteAlias = SiteAlias.internalBinaryRead(reader, reader.uint32(), options, message.SiteAlias); break; case /* api.ActorAuthorisation AppointmentConstraints */ 31: message.AppointmentConstraints = ActorAuthorisation.internalBinaryRead(reader, reader.uint32(), options, message.AppointmentConstraints); 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: ActorPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string Name = 1; */ if (message.Name !== "") writer.tag(1, WireType.LengthDelimited).string(message.Name); /* api.IdType IdType = 2; */ if (message.IdType !== 0) writer.tag(2, WireType.Varint).int32(message.IdType); /* repeated api.MetadataElement MetaData = 3; */ for (let i = 0; i < message.MetaData.length; i++) MetadataElement.internalBinaryWrite(message.MetaData[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join(); /* api.Address Address = 4; */ if (message.Address) Address.internalBinaryWrite(message.Address, writer.tag(4, WireType.LengthDelimited).fork(), options).join(); /* api.ActorStatusStruct Status = 6; */ if (message.Status) ActorStatusStruct.internalBinaryWrite(message.Status, writer.tag(6, WireType.LengthDelimited).fork(), options).join(); /* string PartnerID = 7; */ if (message.PartnerID !== "") writer.tag(7, WireType.LengthDelimited).string(message.PartnerID); /* api.ActorTypology Typology = 10; */ if (message.Typology !== 0) writer.tag(10, WireType.Varint).int32(message.Typology); /* api.ActorSnapshot Snapshot = 11; */ if (message.Snapshot) ActorSnapshot.internalBinaryWrite(message.Snapshot, writer.tag(11, WireType.LengthDelimited).fork(), options).join(); /* repeated string Emails = 12; */ for (let i = 0; i < message.Emails.length; i++) writer.tag(12, WireType.LengthDelimited).string(message.Emails[i]); /* repeated string Phones = 13; */ for (let i = 0; i < message.Phones.length; i++) writer.tag(13, WireType.LengthDelimited).string(message.Phones[i]); /* bool ManagedStock = 14; */ if (message.ManagedStock !== false) writer.tag(14, WireType.Varint).bool(message.ManagedStock); /* string AdditionalInformation = 15; */ if (message.AdditionalInformation !== "") writer.tag(15, WireType.LengthDelimited).string(message.AdditionalInformation); /* bool IsCarrier = 16; */ if (message.IsCarrier !== false) writer.tag(16, WireType.Varint).bool(message.IsCarrier); /* repeated api.CarrierService CarrierServices = 17; */ for (let i = 0; i < message.CarrierServices.length; i++) CarrierService.internalBinaryWrite(message.CarrierServices[i], writer.tag(17, WireType.LengthDelimited).fork(), options).join(); /* bool IsShipToConnected = 18; */ if (message.IsShipToConnected !== false) writer.tag(18, WireType.Varint).bool(message.IsShipToConnected); /* bool IsShipFromConnected = 19; */ if (message.IsShipFromConnected !== false) writer.tag(19, WireType.Varint).bool(message.IsShipFromConnected); /* string ShipToPartnerAppID = 20; */ if (message.ShipToPartnerAppID !== "") writer.tag(20, WireType.LengthDelimited).string(message.ShipToPartnerAppID); /* string ShipFromPartnerAppID = 21; */ if (message.ShipFromPartnerAppID !== "") writer.tag(21, WireType.LengthDelimited).string(message.ShipFromPartnerAppID); /* repeated api.AttachmentSummary Attachments = 22; */ for (let i = 0; i < message.Attachments.length; i++) AttachmentSummary.internalBinaryWrite(message.Attachments[i], writer.tag(22, WireType.LengthDelimited).fork(), options).join(); /* int32 AttachmentNumber = 23; */ if (message.AttachmentNumber !== 0) writer.tag(23, WireType.Varint).int32(message.AttachmentNumber); /* repeated api.ClaimSummary Claims = 24; */ for (let i = 0; i < message.Claims.length; i++) ClaimSummary.internalBinaryWrite(message.Claims[i], writer.tag(24, WireType.LengthDelimited).fork(), options).join(); /* int32 ClaimNumber = 25; */ if (message.ClaimNumber !== 0) writer.tag(25, WireType.Varint).int32(message.ClaimNumber); /* string PhotoURI = 26; */ if (message.PhotoURI !== "") writer.tag(26, WireType.LengthDelimited).string(message.PhotoURI); /* repeated string ConnectionIdentifierPrefixes = 28; */ for (let i = 0; i < message.ConnectionIdentifierPrefixes.length; i++) writer.tag(28, WireType.LengthDelimited).string(message.ConnectionIdentifierPrefixes[i]); /* bool IsSlotBookingEnabled = 29; */ if (message.IsSlotBookingEnabled !== false) writer.tag(29, WireType.Varint).bool(message.IsSlotBookingEnabled); /* api.SiteAlias SiteAlias = 30; */ if (message.SiteAlias) SiteAlias.internalBinaryWrite(message.SiteAlias, writer.tag(30, WireType.LengthDelimited).fork(), options).join(); /* api.ActorAuthorisation AppointmentConstraints = 31; */ if (message.AppointmentConstraints) ActorAuthorisation.internalBinaryWrite(message.AppointmentConstraints, writer.tag(31, 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.ActorPayload */ export const ActorPayload = new ActorPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class ActorEnrichment$Type extends MessageType { constructor() { super("api.ActorEnrichment", [ { no: 1, name: "ParentEventID", kind: "scalar", localName: "ParentEventID", jsonName: "ParentEventID", T: 9 /*ScalarType.STRING*/ }, { no: 2, name: "EntityName", kind: "scalar", localName: "EntityName", jsonName: "EntityName", T: 9 /*ScalarType.STRING*/ }, { no: 3, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/ }, { no: 4, name: "RefFilter", kind: "scalar", localName: "RefFilter", jsonName: "RefFilter", T: 9 /*ScalarType.STRING*/ }, { no: 5, name: "MergePath", kind: "scalar", localName: "MergePath", jsonName: "MergePath", T: 9 /*ScalarType.STRING*/ }, { no: 10, name: "Partner", kind: "message", localName: "Partner", jsonName: "Partner", oneof: "Content", T: () => PartnerPayload }, { no: 6, name: "Project", kind: "scalar", localName: "Project", jsonName: "Project", T: 9 /*ScalarType.STRING*/ }, { no: 7, name: "ParentEntityName", kind: "scalar", localName: "ParentEntityName", jsonName: "ParentEntityName", T: 9 /*ScalarType.STRING*/ }, { no: 8, name: "ParentEntityID", kind: "scalar", localName: "ParentEntityID", jsonName: "ParentEntityID", T: 9 /*ScalarType.STRING*/ } ]); } create(value?: PartialMessage): ActorEnrichment { const message = globalThis.Object.create((this.messagePrototype!)); message.ParentEventID = ""; message.EntityName = ""; message.EntityRefID = ""; message.RefFilter = ""; message.MergePath = ""; message.Content = { oneofKind: undefined }; message.Project = ""; message.ParentEntityName = ""; message.ParentEntityID = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActorEnrichment): ActorEnrichment { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string ParentEventID */ 1: message.ParentEventID = reader.string(); break; case /* string EntityName */ 2: message.EntityName = reader.string(); break; case /* string EntityRefID */ 3: message.EntityRefID = reader.string(); break; case /* string RefFilter */ 4: message.RefFilter = reader.string(); break; case /* string MergePath */ 5: message.MergePath = reader.string(); break; case /* api.PartnerPayload Partner */ 10: message.Content = { oneofKind: "Partner", Partner: PartnerPayload.internalBinaryRead(reader, reader.uint32(), options, (message.Content as any).Partner) }; break; case /* string Project */ 6: message.Project = reader.string(); break; case /* string ParentEntityName */ 7: message.ParentEntityName = reader.string(); break; case /* string ParentEntityID */ 8: message.ParentEntityID = reader.string(); 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: ActorEnrichment, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string ParentEventID = 1; */ if (message.ParentEventID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ParentEventID); /* string EntityName = 2; */ if (message.EntityName !== "") writer.tag(2, WireType.LengthDelimited).string(message.EntityName); /* string EntityRefID = 3; */ if (message.EntityRefID !== "") writer.tag(3, WireType.LengthDelimited).string(message.EntityRefID); /* string RefFilter = 4; */ if (message.RefFilter !== "") writer.tag(4, WireType.LengthDelimited).string(message.RefFilter); /* string MergePath = 5; */ if (message.MergePath !== "") writer.tag(5, WireType.LengthDelimited).string(message.MergePath); /* string Project = 6; */ if (message.Project !== "") writer.tag(6, WireType.LengthDelimited).string(message.Project); /* string ParentEntityName = 7; */ if (message.ParentEntityName !== "") writer.tag(7, WireType.LengthDelimited).string(message.ParentEntityName); /* string ParentEntityID = 8; */ if (message.ParentEntityID !== "") writer.tag(8, WireType.LengthDelimited).string(message.ParentEntityID); /* api.PartnerPayload Partner = 10; */ if (message.Content.oneofKind === "Partner") PartnerPayload.internalBinaryWrite(message.Content.Partner, writer.tag(10, 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.ActorEnrichment */ export const ActorEnrichment = new ActorEnrichment$Type(); // @generated message type with reflection information, may provide speed optimized methods class ActorTriplet$Type extends MessageType { constructor() { super("api.ActorTriplet", [ { no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => Actor }, { no: 2, name: "Previous", kind: "message", localName: "Previous", jsonName: "Previous", T: () => Actor }, { no: 3, name: "LastEvent", kind: "message", localName: "LastEvent", jsonName: "LastEvent", T: () => Actor } ]); } create(value?: PartialMessage): ActorTriplet { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActorTriplet): ActorTriplet { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.Actor Current */ 1: message.Current = Actor.internalBinaryRead(reader, reader.uint32(), options, message.Current); break; case /* api.Actor Previous */ 2: message.Previous = Actor.internalBinaryRead(reader, reader.uint32(), options, message.Previous); break; case /* api.Actor LastEvent */ 3: message.LastEvent = Actor.internalBinaryRead(reader, reader.uint32(), options, message.LastEvent); 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: ActorTriplet, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.Actor Current = 1; */ if (message.Current) Actor.internalBinaryWrite(message.Current, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.Actor Previous = 2; */ if (message.Previous) Actor.internalBinaryWrite(message.Previous, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.Actor LastEvent = 3; */ if (message.LastEvent) Actor.internalBinaryWrite(message.LastEvent, writer.tag(3, 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.ActorTriplet */ export const ActorTriplet = new ActorTriplet$Type();