Latest generation

This commit is contained in:
ci core model
2026-08-28 07:45:50 +00:00
parent 809f4384e5
commit 6639080096
3 changed files with 280 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "@reflex-platform/npm-core-sdk", "name": "@reflex-platform/npm-core-sdk",
"version": "1.15.0-SNAPSHOT-260827131234", "version": "1.15.0-SNAPSHOT-260828074503",
"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

@@ -10,6 +10,8 @@ import type { CheckBookingAppointmentEditableResponse } from "./siteBooking";
import type { CheckBookingAppointmentEditableRequest } from "./siteBooking"; import type { CheckBookingAppointmentEditableRequest } from "./siteBooking";
import type { RescheduleBookingAppointmentRequest } from "./siteBooking"; import type { RescheduleBookingAppointmentRequest } from "./siteBooking";
import type { WMSUpdateBookingAppointmentRequest } from "./siteBooking"; import type { WMSUpdateBookingAppointmentRequest } from "./siteBooking";
import type { UpdateBookingAppointmentStatusResponse } from "./siteBooking";
import type { UpdateBookingAppointmentStatusRequest } from "./siteBooking";
import type { UpdateBookingAppointmentRequest } from "./siteBooking"; import type { UpdateBookingAppointmentRequest } from "./siteBooking";
import type { DeleteBookingAppointmentResponse } from "./siteBooking"; import type { DeleteBookingAppointmentResponse } from "./siteBooking";
import type { DeleteBookingAppointmentRequest } from "./siteBooking"; import type { DeleteBookingAppointmentRequest } from "./siteBooking";
@@ -62,6 +64,10 @@ export interface IBookingServiceClient {
* @generated from protobuf rpc: UpdateAppointment * @generated from protobuf rpc: UpdateAppointment
*/ */
updateAppointment(input: UpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse>; updateAppointment(input: UpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse>;
/**
* @generated from protobuf rpc: UpdateAppointmentStatus
*/
updateAppointmentStatus(input: UpdateBookingAppointmentStatusRequest, options?: RpcOptions): UnaryCall<UpdateBookingAppointmentStatusRequest, UpdateBookingAppointmentStatusResponse>;
/** /**
* @generated from protobuf rpc: UpdateAppointmentNoReference * @generated from protobuf rpc: UpdateAppointmentNoReference
*/ */
@@ -163,53 +169,60 @@ export class BookingServiceClient implements IBookingServiceClient, ServiceInfo
const method = this.methods[8], opt = this._transport.mergeOptions(options); const method = this.methods[8], opt = this._transport.mergeOptions(options);
return stackIntercept<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input); return stackIntercept<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input);
} }
/**
* @generated from protobuf rpc: UpdateAppointmentStatus
*/
updateAppointmentStatus(input: UpdateBookingAppointmentStatusRequest, options?: RpcOptions): UnaryCall<UpdateBookingAppointmentStatusRequest, UpdateBookingAppointmentStatusResponse> {
const method = this.methods[9], opt = this._transport.mergeOptions(options);
return stackIntercept<UpdateBookingAppointmentStatusRequest, UpdateBookingAppointmentStatusResponse>("unary", this._transport, method, opt, input);
}
/** /**
* @generated from protobuf rpc: UpdateAppointmentNoReference * @generated from protobuf rpc: UpdateAppointmentNoReference
*/ */
updateAppointmentNoReference(input: UpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse> { updateAppointmentNoReference(input: UpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse> {
const method = this.methods[9], opt = this._transport.mergeOptions(options); const method = this.methods[10], opt = this._transport.mergeOptions(options);
return stackIntercept<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input); return stackIntercept<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input);
} }
/** /**
* @generated from protobuf rpc: ForceUpdateAppointment * @generated from protobuf rpc: ForceUpdateAppointment
*/ */
forceUpdateAppointment(input: UpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse> { forceUpdateAppointment(input: UpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse> {
const method = this.methods[10], opt = this._transport.mergeOptions(options); const method = this.methods[11], opt = this._transport.mergeOptions(options);
return stackIntercept<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input); return stackIntercept<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input);
} }
/** /**
* @generated from protobuf rpc: WMSUpdateAppointment * @generated from protobuf rpc: WMSUpdateAppointment
*/ */
wMSUpdateAppointment(input: WMSUpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall<WMSUpdateBookingAppointmentRequest, BookBookingAppointmentResponse> { wMSUpdateAppointment(input: WMSUpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall<WMSUpdateBookingAppointmentRequest, BookBookingAppointmentResponse> {
const method = this.methods[11], opt = this._transport.mergeOptions(options); const method = this.methods[12], opt = this._transport.mergeOptions(options);
return stackIntercept<WMSUpdateBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input); return stackIntercept<WMSUpdateBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input);
} }
/** /**
* @generated from protobuf rpc: RescheduleAppointment * @generated from protobuf rpc: RescheduleAppointment
*/ */
rescheduleAppointment(input: RescheduleBookingAppointmentRequest, options?: RpcOptions): UnaryCall<RescheduleBookingAppointmentRequest, BookBookingAppointmentResponse> { rescheduleAppointment(input: RescheduleBookingAppointmentRequest, options?: RpcOptions): UnaryCall<RescheduleBookingAppointmentRequest, BookBookingAppointmentResponse> {
const method = this.methods[12], opt = this._transport.mergeOptions(options); const method = this.methods[13], opt = this._transport.mergeOptions(options);
return stackIntercept<RescheduleBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input); return stackIntercept<RescheduleBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input);
} }
/** /**
* @generated from protobuf rpc: ForceRescheduleAppointment * @generated from protobuf rpc: ForceRescheduleAppointment
*/ */
forceRescheduleAppointment(input: RescheduleBookingAppointmentRequest, options?: RpcOptions): UnaryCall<RescheduleBookingAppointmentRequest, BookBookingAppointmentResponse> { forceRescheduleAppointment(input: RescheduleBookingAppointmentRequest, options?: RpcOptions): UnaryCall<RescheduleBookingAppointmentRequest, BookBookingAppointmentResponse> {
const method = this.methods[13], opt = this._transport.mergeOptions(options); const method = this.methods[14], opt = this._transport.mergeOptions(options);
return stackIntercept<RescheduleBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input); return stackIntercept<RescheduleBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input);
} }
/** /**
* @generated from protobuf rpc: CheckAppointmentEditable * @generated from protobuf rpc: CheckAppointmentEditable
*/ */
checkAppointmentEditable(input: CheckBookingAppointmentEditableRequest, options?: RpcOptions): UnaryCall<CheckBookingAppointmentEditableRequest, CheckBookingAppointmentEditableResponse> { checkAppointmentEditable(input: CheckBookingAppointmentEditableRequest, options?: RpcOptions): UnaryCall<CheckBookingAppointmentEditableRequest, CheckBookingAppointmentEditableResponse> {
const method = this.methods[14], opt = this._transport.mergeOptions(options); const method = this.methods[15], opt = this._transport.mergeOptions(options);
return stackIntercept<CheckBookingAppointmentEditableRequest, CheckBookingAppointmentEditableResponse>("unary", this._transport, method, opt, input); return stackIntercept<CheckBookingAppointmentEditableRequest, CheckBookingAppointmentEditableResponse>("unary", this._transport, method, opt, input);
} }
/** /**
* @generated from protobuf rpc: LockBooking * @generated from protobuf rpc: LockBooking
*/ */
lockBooking(input: LockBookingRequest, options?: RpcOptions): UnaryCall<LockBookingRequest, LockBookingResponse> { lockBooking(input: LockBookingRequest, options?: RpcOptions): UnaryCall<LockBookingRequest, LockBookingResponse> {
const method = this.methods[15], opt = this._transport.mergeOptions(options); const method = this.methods[16], opt = this._transport.mergeOptions(options);
return stackIntercept<LockBookingRequest, LockBookingResponse>("unary", this._transport, method, opt, input); return stackIntercept<LockBookingRequest, LockBookingResponse>("unary", this._transport, method, opt, input);
} }
} }

View File

@@ -352,6 +352,53 @@ export interface UpdateAppointmentPayload {
* @generated from protobuf field: repeated string Emails = 8 * @generated from protobuf field: repeated string Emails = 8
*/ */
Emails: string[]; Emails: string[];
/**
* Carrier information metadata
*
* @generated from protobuf field: repeated api.MetadataElement CarrierInformation = 9
*/
CarrierInformation: MetadataElement[];
}
/**
* Update Appointment Status
*
* @generated from protobuf message api.UpdateBookingAppointmentStatusRequest
*/
export interface UpdateBookingAppointmentStatusRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
/**
* @generated from protobuf field: api.UpdateAppointmentStatusPayload Payload = 3
*/
Payload?: UpdateAppointmentStatusPayload;
}
/**
* @generated from protobuf message api.UpdateAppointmentStatusPayload
*/
export interface UpdateAppointmentStatusPayload {
/**
* @generated from protobuf field: api.AppointmentStatusInputEvent AppointmentStatusInputEvent = 1
*/
AppointmentStatusInputEvent: AppointmentStatusInputEvent;
}
/**
* @generated from protobuf message api.UpdateBookingAppointmentStatusResponse
*/
export interface UpdateBookingAppointmentStatusResponse {
/**
* @generated from protobuf field: api.ResponseHeader Header = 2
*/
Header?: ResponseHeader;
/**
* @generated from protobuf field: string AppointmentID = 1
*/
AppointmentID: string;
} }
/** /**
* @generated from protobuf message api.WMSUpdateBookingAppointmentRequest * @generated from protobuf message api.WMSUpdateBookingAppointmentRequest
@@ -464,6 +511,47 @@ export interface LockBookingRequest {
*/ */
export interface LockBookingResponse { export interface LockBookingResponse {
} }
/**
* @generated from protobuf enum api.AppointmentStatusInputEvent
*/
export enum AppointmentStatusInputEvent {
/**
* @generated from protobuf enum value: APPOINTMENT_INPUT_EVENT_UNKNOWN = 0;
*/
APPOINTMENT_INPUT_EVENT_UNKNOWN = 0,
/**
* @generated from protobuf enum value: APPOINTMENT_INPUT_EVENT_CARRIER_EXPECTED = 1;
*/
APPOINTMENT_INPUT_EVENT_CARRIER_EXPECTED = 1,
/**
* @generated from protobuf enum value: APPOINTMENT_INPUT_EVENT_CARRIER_ARRIVED = 2;
*/
APPOINTMENT_INPUT_EVENT_CARRIER_ARRIVED = 2,
/**
* @generated from protobuf enum value: APPOINTMENT_INPUT_EVENT_CARRIER_DEPARTED = 3;
*/
APPOINTMENT_INPUT_EVENT_CARRIER_DEPARTED = 3,
/**
* @generated from protobuf enum value: APPOINTMENT_INPUT_EVENT_ALLOCATION_ERROR = 4;
*/
APPOINTMENT_INPUT_EVENT_ALLOCATION_ERROR = 4,
/**
* @generated from protobuf enum value: APPOINTMENT_INPUT_EVENT_LOADING_STARTED = 5;
*/
APPOINTMENT_INPUT_EVENT_LOADING_STARTED = 5,
/**
* @generated from protobuf enum value: APPOINTMENT_INPUT_EVENT_LOADING_COMPLETED = 6;
*/
APPOINTMENT_INPUT_EVENT_LOADING_COMPLETED = 6,
/**
* @generated from protobuf enum value: APPOINTMENT_INPUT_EVENT_UNLOADING_STARTED = 7;
*/
APPOINTMENT_INPUT_EVENT_UNLOADING_STARTED = 7,
/**
* @generated from protobuf enum value: APPOINTMENT_INPUT_EVENT_UNLOADING_COMPLETED = 8;
*/
APPOINTMENT_INPUT_EVENT_UNLOADING_COMPLETED = 8
}
// @generated message type with reflection information, may provide speed optimized methods // @generated message type with reflection information, may provide speed optimized methods
class GetBookingSlotsRequest$Type extends MessageType<GetBookingSlotsRequest> { class GetBookingSlotsRequest$Type extends MessageType<GetBookingSlotsRequest> {
constructor() { constructor() {
@@ -1286,7 +1374,8 @@ class UpdateAppointmentPayload$Type extends MessageType<UpdateAppointmentPayload
{ no: 4, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "TimeZone is required only when a WMS calls the API" } } }, { no: 4, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "TimeZone is required only when a WMS calls the API" } } },
{ no: 5, name: "Loading", kind: "message", localName: "Loading", jsonName: "Loading", T: () => AppointmentContent }, { no: 5, name: "Loading", kind: "message", localName: "Loading", jsonName: "Loading", T: () => AppointmentContent },
{ no: 6, name: "Unloading", kind: "message", localName: "Unloading", jsonName: "Unloading", T: () => AppointmentContent }, { no: 6, name: "Unloading", kind: "message", localName: "Unloading", jsonName: "Unloading", T: () => AppointmentContent },
{ no: 8, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" }, "n1validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } } } } { no: 8, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" }, "n1validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } } } },
{ no: 9, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Carrier information metadata" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Slot", "Attendees"] } } }); ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Slot", "Attendees"] } } });
} }
create(value?: PartialMessage<UpdateAppointmentPayload>): UpdateAppointmentPayload { create(value?: PartialMessage<UpdateAppointmentPayload>): UpdateAppointmentPayload {
@@ -1294,6 +1383,7 @@ class UpdateAppointmentPayload$Type extends MessageType<UpdateAppointmentPayload
message.Reason = ""; message.Reason = "";
message.TimeZone = ""; message.TimeZone = "";
message.Emails = []; message.Emails = [];
message.CarrierInformation = [];
if (value !== undefined) if (value !== undefined)
reflectionMergePartial<UpdateAppointmentPayload>(this, message, value); reflectionMergePartial<UpdateAppointmentPayload>(this, message, value);
return message; return message;
@@ -1321,6 +1411,9 @@ class UpdateAppointmentPayload$Type extends MessageType<UpdateAppointmentPayload
case /* repeated string Emails */ 8: case /* repeated string Emails */ 8:
message.Emails.push(reader.string()); message.Emails.push(reader.string());
break; break;
case /* repeated api.MetadataElement CarrierInformation */ 9:
message.CarrierInformation.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
break;
default: default:
let u = options.readUnknownField; let u = options.readUnknownField;
if (u === "throw") if (u === "throw")
@@ -1351,6 +1444,9 @@ class UpdateAppointmentPayload$Type extends MessageType<UpdateAppointmentPayload
/* repeated string Emails = 8; */ /* repeated string Emails = 8; */
for (let i = 0; i < message.Emails.length; i++) for (let i = 0; i < message.Emails.length; i++)
writer.tag(8, WireType.LengthDelimited).string(message.Emails[i]); writer.tag(8, WireType.LengthDelimited).string(message.Emails[i]);
/* repeated api.MetadataElement CarrierInformation = 9; */
for (let i = 0; i < message.CarrierInformation.length; i++)
MetadataElement.internalBinaryWrite(message.CarrierInformation[i], writer.tag(9, 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);
@@ -1362,6 +1458,167 @@ class UpdateAppointmentPayload$Type extends MessageType<UpdateAppointmentPayload
*/ */
export const UpdateAppointmentPayload = new UpdateAppointmentPayload$Type(); export const UpdateAppointmentPayload = new UpdateAppointmentPayload$Type();
// @generated message type with reflection information, may provide speed optimized methods // @generated message type with reflection information, may provide speed optimized methods
class UpdateBookingAppointmentStatusRequest$Type extends MessageType<UpdateBookingAppointmentStatusRequest> {
constructor() {
super("api.UpdateBookingAppointmentStatusRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => UpdateAppointmentStatusPayload, options: { "n1validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } });
}
create(value?: PartialMessage<UpdateBookingAppointmentStatusRequest>): UpdateBookingAppointmentStatusRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<UpdateBookingAppointmentStatusRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateBookingAppointmentStatusRequest): UpdateBookingAppointmentStatusRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.EntityID ID */ 2:
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
break;
case /* api.UpdateAppointmentStatusPayload Payload */ 3:
message.Payload = UpdateAppointmentStatusPayload.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: UpdateBookingAppointmentStatusRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, 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.UpdateAppointmentStatusPayload Payload = 3; */
if (message.Payload)
UpdateAppointmentStatusPayload.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.UpdateBookingAppointmentStatusRequest
*/
export const UpdateBookingAppointmentStatusRequest = new UpdateBookingAppointmentStatusRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class UpdateAppointmentStatusPayload$Type extends MessageType<UpdateAppointmentStatusPayload> {
constructor() {
super("api.UpdateAppointmentStatusPayload", [
{ no: 1, name: "AppointmentStatusInputEvent", kind: "enum", localName: "AppointmentStatusInputEvent", jsonName: "AppointmentStatusInputEvent", T: () => ["api.AppointmentStatusInputEvent", AppointmentStatusInputEvent], options: { "n1validate.rules": { enum: { definedOnly: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["AppointmentInputEvent"] } } });
}
create(value?: PartialMessage<UpdateAppointmentStatusPayload>): UpdateAppointmentStatusPayload {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentStatusInputEvent = 0;
if (value !== undefined)
reflectionMergePartial<UpdateAppointmentStatusPayload>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateAppointmentStatusPayload): UpdateAppointmentStatusPayload {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.AppointmentStatusInputEvent AppointmentStatusInputEvent */ 1:
message.AppointmentStatusInputEvent = reader.int32();
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: UpdateAppointmentStatusPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.AppointmentStatusInputEvent AppointmentStatusInputEvent = 1; */
if (message.AppointmentStatusInputEvent !== 0)
writer.tag(1, WireType.Varint).int32(message.AppointmentStatusInputEvent);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.UpdateAppointmentStatusPayload
*/
export const UpdateAppointmentStatusPayload = new UpdateAppointmentStatusPayload$Type();
// @generated message type with reflection information, may provide speed optimized methods
class UpdateBookingAppointmentStatusResponse$Type extends MessageType<UpdateBookingAppointmentStatusResponse> {
constructor() {
super("api.UpdateBookingAppointmentStatusResponse", [
{ no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader },
{ no: 1, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<UpdateBookingAppointmentStatusResponse>): UpdateBookingAppointmentStatusResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentID = "";
if (value !== undefined)
reflectionMergePartial<UpdateBookingAppointmentStatusResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateBookingAppointmentStatusResponse): UpdateBookingAppointmentStatusResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResponseHeader Header */ 2:
message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string AppointmentID */ 1:
message.AppointmentID = 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: UpdateBookingAppointmentStatusResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string AppointmentID = 1; */
if (message.AppointmentID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.AppointmentID);
/* api.ResponseHeader Header = 2; */
if (message.Header)
ResponseHeader.internalBinaryWrite(message.Header, 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.UpdateBookingAppointmentStatusResponse
*/
export const UpdateBookingAppointmentStatusResponse = new UpdateBookingAppointmentStatusResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class WMSUpdateBookingAppointmentRequest$Type extends MessageType<WMSUpdateBookingAppointmentRequest> { class WMSUpdateBookingAppointmentRequest$Type extends MessageType<WMSUpdateBookingAppointmentRequest> {
constructor() { constructor() {
super("api.WMSUpdateBookingAppointmentRequest", [ super("api.WMSUpdateBookingAppointmentRequest", [
@@ -1727,6 +1984,7 @@ export const BookingService = new ServiceType("api.BookingService", [
{ name: "ForceCancelAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Force Cancel an appointment on the site." }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING" }, I: CancelBookingAppointmentRequest, O: CancelBookingAppointmentResponse }, { name: "ForceCancelAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Force Cancel an appointment on the site." }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING" }, I: CancelBookingAppointmentRequest, O: CancelBookingAppointmentResponse },
{ name: "DeleteAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Delete an appointment on the site." }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING" }, I: DeleteBookingAppointmentRequest, O: DeleteBookingAppointmentResponse }, { name: "DeleteAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Delete an appointment on the site." }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING" }, I: DeleteBookingAppointmentRequest, O: DeleteBookingAppointmentResponse },
{ name: "UpdateAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Update an appointment (slots, commissions and attendees), if the requested slots are available." }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING" }, I: UpdateBookingAppointmentRequest, O: BookBookingAppointmentResponse }, { name: "UpdateAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Update an appointment (slots, commissions and attendees), if the requested slots are available." }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING" }, I: UpdateBookingAppointmentRequest, O: BookBookingAppointmentResponse },
{ name: "UpdateAppointmentStatus", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Update the status of an appointment." }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING" }, I: UpdateBookingAppointmentStatusRequest, O: UpdateBookingAppointmentStatusResponse },
{ name: "UpdateAppointmentNoReference", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Update an appointment (slots, commissions and attendees) without order references, if the requested slots are available." }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING" }, I: UpdateBookingAppointmentRequest, O: BookBookingAppointmentResponse }, { name: "UpdateAppointmentNoReference", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Update an appointment (slots, commissions and attendees) without order references, if the requested slots are available." }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING" }, I: UpdateBookingAppointmentRequest, O: BookBookingAppointmentResponse },
{ name: "ForceUpdateAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Update an appointment (slots, commissions and attendees) even if the slots are not available." }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING" }, I: UpdateBookingAppointmentRequest, O: BookBookingAppointmentResponse }, { name: "ForceUpdateAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Update an appointment (slots, commissions and attendees) even if the slots are not available." }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING" }, I: UpdateBookingAppointmentRequest, O: BookBookingAppointmentResponse },
{ name: "WMSUpdateAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Update an appointment from a wms even if the slots are not available." }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING" }, I: WMSUpdateBookingAppointmentRequest, O: BookBookingAppointmentResponse }, { name: "WMSUpdateAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Update an appointment from a wms even if the slots are not available." }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING" }, I: WMSUpdateBookingAppointmentRequest, O: BookBookingAppointmentResponse },