You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -48,6 +48,8 @@ import type { AppointmentCommissionsUpdatedResponse } from "./appointmentInput";
|
||||
import type { AppointmentCommissionsUpdatedRequest } from "./appointmentInput";
|
||||
import type { AppointmentSlotUpdatedResponse } from "./appointmentInput";
|
||||
import type { AppointmentSlotUpdatedRequest } from "./appointmentInput";
|
||||
import type { AppointmentDeletedResponse } from "./appointmentInput";
|
||||
import type { AppointmentDeletedRequest } from "./appointmentInput";
|
||||
import type { AppointmentCanceledResponse } from "./appointmentInput";
|
||||
import type { AppointmentCanceledRequest } from "./appointmentInput";
|
||||
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -70,6 +72,10 @@ export interface IAppointmentInputAPIClient {
|
||||
* @generated from protobuf rpc: Canceled
|
||||
*/
|
||||
canceled(input: AppointmentCanceledRequest, options?: RpcOptions): UnaryCall<AppointmentCanceledRequest, AppointmentCanceledResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: Deleted
|
||||
*/
|
||||
deleted(input: AppointmentDeletedRequest, options?: RpcOptions): UnaryCall<AppointmentDeletedRequest, AppointmentDeletedResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: SlotUpdated
|
||||
*/
|
||||
@@ -187,109 +193,116 @@ export class AppointmentInputAPIClient implements IAppointmentInputAPIClient, Se
|
||||
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentCanceledRequest, AppointmentCanceledResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Deleted
|
||||
*/
|
||||
deleted(input: AppointmentDeletedRequest, options?: RpcOptions): UnaryCall<AppointmentDeletedRequest, AppointmentDeletedResponse> {
|
||||
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentDeletedRequest, AppointmentDeletedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: SlotUpdated
|
||||
*/
|
||||
slotUpdated(input: AppointmentSlotUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentSlotUpdatedRequest, AppointmentSlotUpdatedResponse> {
|
||||
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentSlotUpdatedRequest, AppointmentSlotUpdatedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CommissionsUpdated
|
||||
*/
|
||||
commissionsUpdated(input: AppointmentCommissionsUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentCommissionsUpdatedRequest, AppointmentCommissionsUpdatedResponse> {
|
||||
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentCommissionsUpdatedRequest, AppointmentCommissionsUpdatedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ReasonUpdated
|
||||
*/
|
||||
reasonUpdated(input: AppointmentReasonUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentReasonUpdatedRequest, AppointmentReasonUpdatedResponse> {
|
||||
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentReasonUpdatedRequest, AppointmentReasonUpdatedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CarrierInformationUpdated
|
||||
*/
|
||||
carrierInformationUpdated(input: AppointmentCarrierInformationUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierInformationUpdatedRequest, AppointmentCarrierInformationUpdatedResponse> {
|
||||
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentCarrierInformationUpdatedRequest, AppointmentCarrierInformationUpdatedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CarrierExpected
|
||||
*/
|
||||
carrierExpected(input: AppointmentCarrierExpectedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierExpectedRequest, AppointmentCarrierExpectedResponse> {
|
||||
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentCarrierExpectedRequest, AppointmentCarrierExpectedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: AllocationError
|
||||
*/
|
||||
allocationError(input: AppointmentAllocationErrorRequest, options?: RpcOptions): UnaryCall<AppointmentAllocationErrorRequest, AppointmentAllocationErrorResponse> {
|
||||
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentAllocationErrorRequest, AppointmentAllocationErrorResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CarrierArrived
|
||||
*/
|
||||
carrierArrived(input: AppointmentCarrierArrivedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierArrivedRequest, AppointmentCarrierArrivedResponse> {
|
||||
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentCarrierArrivedRequest, AppointmentCarrierArrivedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: LoadingStarted
|
||||
*/
|
||||
loadingStarted(input: AppointmentLoadingStartedRequest, options?: RpcOptions): UnaryCall<AppointmentLoadingStartedRequest, AppointmentLoadingStartedResponse> {
|
||||
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentLoadingStartedRequest, AppointmentLoadingStartedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: LoadingCompleted
|
||||
*/
|
||||
loadingCompleted(input: AppointmentLoadingCompletedRequest, options?: RpcOptions): UnaryCall<AppointmentLoadingCompletedRequest, AppointmentLoadingCompletedResponse> {
|
||||
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentLoadingCompletedRequest, AppointmentLoadingCompletedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: UnloadingStarted
|
||||
*/
|
||||
unloadingStarted(input: AppointmentUnloadingStartedRequest, options?: RpcOptions): UnaryCall<AppointmentUnloadingStartedRequest, AppointmentUnloadingStartedResponse> {
|
||||
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[12], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentUnloadingStartedRequest, AppointmentUnloadingStartedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: UnloadingCompleted
|
||||
*/
|
||||
unloadingCompleted(input: AppointmentUnloadingCompletedRequest, options?: RpcOptions): UnaryCall<AppointmentUnloadingCompletedRequest, AppointmentUnloadingCompletedResponse> {
|
||||
const method = this.methods[12], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentUnloadingCompletedRequest, AppointmentUnloadingCompletedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CarrierDeparted
|
||||
*/
|
||||
carrierDeparted(input: AppointmentCarrierDepartedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierDepartedRequest, AppointmentCarrierDepartedResponse> {
|
||||
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentCarrierDepartedRequest, AppointmentCarrierDepartedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: MetaDataUpdated
|
||||
*/
|
||||
metaDataUpdated(input: AppointmentMetaDataUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentMetaDataUpdatedRequest, AppointmentMetaDataUpdatedResponse> {
|
||||
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[15], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentMetaDataUpdatedRequest, AppointmentMetaDataUpdatedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: AttachmentAdded
|
||||
*/
|
||||
attachmentAdded(input: AppointmentAttachmentAddedRequest, options?: RpcOptions): UnaryCall<AppointmentAttachmentAddedRequest, AppointmentAttachmentAddedResponse> {
|
||||
const method = this.methods[15], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[16], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentAttachmentAddedRequest, AppointmentAttachmentAddedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: AttachmentRemoved
|
||||
*/
|
||||
attachmentRemoved(input: AppointmentAttachmentRemovedRequest, options?: RpcOptions): UnaryCall<AppointmentAttachmentRemovedRequest, AppointmentAttachmentRemovedResponse> {
|
||||
const method = this.methods[16], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[17], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentAttachmentRemovedRequest, AppointmentAttachmentRemovedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
@@ -297,7 +310,7 @@ export class AppointmentInputAPIClient implements IAppointmentInputAPIClient, Se
|
||||
* @generated from protobuf rpc: EmailsAdded
|
||||
*/
|
||||
emailsAdded(input: AppointmentEmailsAddedRequest, options?: RpcOptions): UnaryCall<AppointmentEmailsAddedRequest, AppointmentEmailsAddedResponse> {
|
||||
const method = this.methods[17], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[18], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentEmailsAddedRequest, AppointmentEmailsAddedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
@@ -305,42 +318,42 @@ export class AppointmentInputAPIClient implements IAppointmentInputAPIClient, Se
|
||||
* @generated from protobuf rpc: EmailsRemoved
|
||||
*/
|
||||
emailsRemoved(input: AppointmentEmailsRemovedRequest, options?: RpcOptions): UnaryCall<AppointmentEmailsRemovedRequest, AppointmentEmailsRemovedResponse> {
|
||||
const method = this.methods[18], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[19], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentEmailsRemovedRequest, AppointmentEmailsRemovedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: AttendeesAdded
|
||||
*/
|
||||
attendeesAdded(input: AppointmentAttendeesAddedRequest, options?: RpcOptions): UnaryCall<AppointmentAttendeesAddedRequest, AppointmentAttendeesAddedResponse> {
|
||||
const method = this.methods[19], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[20], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentAttendeesAddedRequest, AppointmentAttendeesAddedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: AttendeesRemoved
|
||||
*/
|
||||
attendeesRemoved(input: AppointmentAttendeesRemovedRequest, options?: RpcOptions): UnaryCall<AppointmentAttendeesRemovedRequest, AppointmentAttendeesRemovedResponse> {
|
||||
const method = this.methods[20], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[21], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentAttendeesRemovedRequest, AppointmentAttendeesRemovedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Sanitised
|
||||
*/
|
||||
sanitised(input: AppointmentSanitisedRequest, options?: RpcOptions): UnaryCall<AppointmentSanitisedRequest, AppointmentSanitisedResponse> {
|
||||
const method = this.methods[21], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[22], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentSanitisedRequest, AppointmentSanitisedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CustomFieldsUpdated
|
||||
*/
|
||||
customFieldsUpdated(input: AppointmentCustomFieldsUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentCustomFieldsUpdatedRequest, AppointmentCustomFieldsUpdatedResponse> {
|
||||
const method = this.methods[22], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[23], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentCustomFieldsUpdatedRequest, AppointmentCustomFieldsUpdatedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Redetected
|
||||
*/
|
||||
redetected(input: AppointmentRedetectedRequest, options?: RpcOptions): UnaryCall<AppointmentRedetectedRequest, AppointmentRedetectedResponse> {
|
||||
const method = this.methods[23], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[24], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentRedetectedRequest, AppointmentRedetectedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -257,6 +257,74 @@ export interface AppointmentCanceledResponse {
|
||||
ID?: EntityID;
|
||||
}
|
||||
//
|
||||
// Deleted : this message tells that appointment is deleted
|
||||
|
||||
/**
|
||||
* Event Payload
|
||||
*
|
||||
* @generated from protobuf message api.AppointmentDeletedPayload
|
||||
*/
|
||||
export interface AppointmentDeletedPayload {
|
||||
/**
|
||||
* @deprecated
|
||||
* @generated from protobuf field: string ActorID = 1 [deprecated = true]
|
||||
*/
|
||||
ActorID: string;
|
||||
}
|
||||
/**
|
||||
* Event message
|
||||
*
|
||||
* @generated from protobuf message api.AppointmentDeletedEvent
|
||||
*/
|
||||
export interface AppointmentDeletedEvent {
|
||||
/**
|
||||
* @generated from protobuf field: api.EventHeader Header = 1
|
||||
*/
|
||||
Header?: EventHeader;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityID ID = 2
|
||||
*/
|
||||
ID?: EntityID;
|
||||
/**
|
||||
* @generated from protobuf field: api.AppointmentDeletedPayload Payload = 3
|
||||
*/
|
||||
Payload?: AppointmentDeletedPayload;
|
||||
}
|
||||
/**
|
||||
* API Request
|
||||
*
|
||||
* @generated from protobuf message api.AppointmentDeletedRequest
|
||||
*/
|
||||
export interface AppointmentDeletedRequest {
|
||||
/**
|
||||
* @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.AppointmentDeletedPayload Payload = 3
|
||||
*/
|
||||
Payload?: AppointmentDeletedPayload;
|
||||
}
|
||||
/**
|
||||
* API Response
|
||||
*
|
||||
* @generated from protobuf message api.AppointmentDeletedResponse
|
||||
*/
|
||||
export interface AppointmentDeletedResponse {
|
||||
/**
|
||||
* @generated from protobuf field: api.ResponseHeader Header = 1
|
||||
*/
|
||||
Header?: ResponseHeader;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityID ID = 2
|
||||
*/
|
||||
ID?: EntityID;
|
||||
}
|
||||
//
|
||||
// SlotUpdated : this message tells that appointment date has been modified
|
||||
|
||||
/**
|
||||
@@ -2298,6 +2366,226 @@ class AppointmentCanceledResponse$Type extends MessageType<AppointmentCanceledRe
|
||||
*/
|
||||
export const AppointmentCanceledResponse = new AppointmentCanceledResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class AppointmentDeletedPayload$Type extends MessageType<AppointmentDeletedPayload> {
|
||||
constructor() {
|
||||
super("api.AppointmentDeletedPayload", [
|
||||
{ no: 1, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Deleted" });
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentDeletedPayload>): AppointmentDeletedPayload {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ActorID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentDeletedPayload>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentDeletedPayload): AppointmentDeletedPayload {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ActorID = 1 [deprecated = true] */ 1:
|
||||
message.ActorID = 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: AppointmentDeletedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ActorID = 1 [deprecated = true]; */
|
||||
if (message.ActorID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ActorID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.AppointmentDeletedPayload
|
||||
*/
|
||||
export const AppointmentDeletedPayload = new AppointmentDeletedPayload$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class AppointmentDeletedEvent$Type extends MessageType<AppointmentDeletedEvent> {
|
||||
constructor() {
|
||||
super("api.AppointmentDeletedEvent", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentDeletedPayload, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "Deleted", "api.preAggMethods": "checkDeleted" });
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentDeletedEvent>): AppointmentDeletedEvent {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentDeletedEvent>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentDeletedEvent): AppointmentDeletedEvent {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.EventHeader Header */ 1:
|
||||
message.Header = EventHeader.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.AppointmentDeletedPayload Payload */ 3:
|
||||
message.Payload = AppointmentDeletedPayload.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: AppointmentDeletedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.EventHeader Header = 1; */
|
||||
if (message.Header)
|
||||
EventHeader.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.AppointmentDeletedPayload Payload = 3; */
|
||||
if (message.Payload)
|
||||
AppointmentDeletedPayload.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.AppointmentDeletedEvent
|
||||
*/
|
||||
export const AppointmentDeletedEvent = new AppointmentDeletedEvent$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class AppointmentDeletedRequest$Type extends MessageType<AppointmentDeletedRequest> {
|
||||
constructor() {
|
||||
super("api.AppointmentDeletedRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentDeletedPayload, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Deleted" });
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentDeletedRequest>): AppointmentDeletedRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentDeletedRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentDeletedRequest): AppointmentDeletedRequest {
|
||||
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.AppointmentDeletedPayload Payload */ 3:
|
||||
message.Payload = AppointmentDeletedPayload.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: AppointmentDeletedRequest, 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.AppointmentDeletedPayload Payload = 3; */
|
||||
if (message.Payload)
|
||||
AppointmentDeletedPayload.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.AppointmentDeletedRequest
|
||||
*/
|
||||
export const AppointmentDeletedRequest = new AppointmentDeletedRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class AppointmentDeletedResponse$Type extends MessageType<AppointmentDeletedResponse> {
|
||||
constructor() {
|
||||
super("api.AppointmentDeletedResponse", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader },
|
||||
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
|
||||
], { "api.messageType": "Response", "api.inputEvent": "Deleted" });
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentDeletedResponse>): AppointmentDeletedResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentDeletedResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentDeletedResponse): AppointmentDeletedResponse {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.ResponseHeader Header */ 1:
|
||||
message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* api.EntityID ID */ 2:
|
||||
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
|
||||
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: AppointmentDeletedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.ResponseHeader Header = 1; */
|
||||
if (message.Header)
|
||||
ResponseHeader.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();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.AppointmentDeletedResponse
|
||||
*/
|
||||
export const AppointmentDeletedResponse = new AppointmentDeletedResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class AppointmentSlotUpdatedPayload$Type extends MessageType<AppointmentSlotUpdatedPayload> {
|
||||
constructor() {
|
||||
super("api.AppointmentSlotUpdatedPayload", [
|
||||
@@ -7219,6 +7507,7 @@ export const AppointmentRedetectedResponse = new AppointmentRedetectedResponse$T
|
||||
export const AppointmentInputAPI = new ServiceType("api.AppointmentInputAPI", [
|
||||
{ name: "Created", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment has been created." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentCreatedRequest, O: AppointmentCreatedResponse },
|
||||
{ name: "Canceled", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment has been canceled." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentCanceledRequest, O: AppointmentCanceledResponse },
|
||||
{ name: "Deleted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment has been deleted." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentDeletedRequest, O: AppointmentDeletedResponse },
|
||||
{ name: "SlotUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment date has been modified." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentSlotUpdatedRequest, O: AppointmentSlotUpdatedResponse },
|
||||
{ name: "CommissionsUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment commissions has been modified." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentCommissionsUpdatedRequest, O: AppointmentCommissionsUpdatedResponse },
|
||||
{ name: "ReasonUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment reason has been modified." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentReasonUpdatedRequest, O: AppointmentReasonUpdatedResponse },
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.13.0-SNAPSHOT-260320104255",
|
||||
"version": "1.13.0-SNAPSHOT-260323085232",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
@@ -11,6 +11,8 @@ import type { CheckBookingAppointmentEditableRequest } from "./siteBooking";
|
||||
import type { RescheduleBookingAppointmentRequest } from "./siteBooking";
|
||||
import type { WMSUpdateBookingAppointmentRequest } from "./siteBooking";
|
||||
import type { UpdateBookingAppointmentRequest } from "./siteBooking";
|
||||
import type { DeleteBookingAppointmentResponse } from "./siteBooking";
|
||||
import type { DeleteBookingAppointmentRequest } from "./siteBooking";
|
||||
import type { CancelBookingAppointmentResponse } from "./siteBooking";
|
||||
import type { CancelBookingAppointmentRequest } from "./siteBooking";
|
||||
import type { BookBookingAppointmentResponse } from "./siteBooking";
|
||||
@@ -52,6 +54,10 @@ export interface IBookingServiceClient {
|
||||
* @generated from protobuf rpc: ForceCancelAppointment
|
||||
*/
|
||||
forceCancelAppointment(input: CancelBookingAppointmentRequest, options?: RpcOptions): UnaryCall<CancelBookingAppointmentRequest, CancelBookingAppointmentResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteAppointment
|
||||
*/
|
||||
deleteAppointment(input: DeleteBookingAppointmentRequest, options?: RpcOptions): UnaryCall<DeleteBookingAppointmentRequest, DeleteBookingAppointmentResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: UpdateAppointment
|
||||
*/
|
||||
@@ -143,60 +149,67 @@ export class BookingServiceClient implements IBookingServiceClient, ServiceInfo
|
||||
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<CancelBookingAppointmentRequest, CancelBookingAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteAppointment
|
||||
*/
|
||||
deleteAppointment(input: DeleteBookingAppointmentRequest, options?: RpcOptions): UnaryCall<DeleteBookingAppointmentRequest, DeleteBookingAppointmentResponse> {
|
||||
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteBookingAppointmentRequest, DeleteBookingAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: UpdateAppointment
|
||||
*/
|
||||
updateAppointment(input: UpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse> {
|
||||
const method = this.methods[7], 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);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: UpdateAppointmentNoReference
|
||||
*/
|
||||
updateAppointmentNoReference(input: UpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse> {
|
||||
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<UpdateBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ForceUpdateAppointment
|
||||
*/
|
||||
forceUpdateAppointment(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);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: WMSUpdateAppointment
|
||||
*/
|
||||
wMSUpdateAppointment(input: WMSUpdateBookingAppointmentRequest, options?: RpcOptions): UnaryCall<WMSUpdateBookingAppointmentRequest, BookBookingAppointmentResponse> {
|
||||
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<WMSUpdateBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: RescheduleAppointment
|
||||
*/
|
||||
rescheduleAppointment(input: RescheduleBookingAppointmentRequest, options?: RpcOptions): UnaryCall<RescheduleBookingAppointmentRequest, BookBookingAppointmentResponse> {
|
||||
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[12], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<RescheduleBookingAppointmentRequest, BookBookingAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ForceRescheduleAppointment
|
||||
*/
|
||||
forceRescheduleAppointment(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);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CheckAppointmentEditable
|
||||
*/
|
||||
checkAppointmentEditable(input: CheckBookingAppointmentEditableRequest, options?: RpcOptions): UnaryCall<CheckBookingAppointmentEditableRequest, CheckBookingAppointmentEditableResponse> {
|
||||
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<CheckBookingAppointmentEditableRequest, CheckBookingAppointmentEditableResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: LockBooking
|
||||
*/
|
||||
lockBooking(input: LockBookingRequest, options?: RpcOptions): UnaryCall<LockBookingRequest, LockBookingResponse> {
|
||||
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[15], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<LockBookingRequest, LockBookingResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
136
siteBooking.ts
136
siteBooking.ts
@@ -213,6 +213,34 @@ export interface CancelBookingAppointmentResponse {
|
||||
*/
|
||||
AppointmentID: string;
|
||||
}
|
||||
/**
|
||||
* DeleteAppointment
|
||||
*
|
||||
* @generated from protobuf message api.DeleteBookingAppointmentRequest
|
||||
*/
|
||||
export interface DeleteBookingAppointmentRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
||||
*/
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityID ID = 2
|
||||
*/
|
||||
ID?: EntityID;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.DeleteBookingAppointmentResponse
|
||||
*/
|
||||
export interface DeleteBookingAppointmentResponse {
|
||||
/**
|
||||
* @generated from protobuf field: api.ResponseHeader Header = 2
|
||||
*/
|
||||
Header?: ResponseHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string AppointmentID = 1
|
||||
*/
|
||||
AppointmentID: string;
|
||||
}
|
||||
/**
|
||||
* Reschedule
|
||||
*
|
||||
@@ -915,6 +943,113 @@ class CancelBookingAppointmentResponse$Type extends MessageType<CancelBookingApp
|
||||
*/
|
||||
export const CancelBookingAppointmentResponse = new CancelBookingAppointmentResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class DeleteBookingAppointmentRequest$Type extends MessageType<DeleteBookingAppointmentRequest> {
|
||||
constructor() {
|
||||
super("api.DeleteBookingAppointmentRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<DeleteBookingAppointmentRequest>): DeleteBookingAppointmentRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteBookingAppointmentRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteBookingAppointmentRequest): DeleteBookingAppointmentRequest {
|
||||
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;
|
||||
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: DeleteBookingAppointmentRequest, 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();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.DeleteBookingAppointmentRequest
|
||||
*/
|
||||
export const DeleteBookingAppointmentRequest = new DeleteBookingAppointmentRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class DeleteBookingAppointmentResponse$Type extends MessageType<DeleteBookingAppointmentResponse> {
|
||||
constructor() {
|
||||
super("api.DeleteBookingAppointmentResponse", [
|
||||
{ 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<DeleteBookingAppointmentResponse>): DeleteBookingAppointmentResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.AppointmentID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteBookingAppointmentResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteBookingAppointmentResponse): DeleteBookingAppointmentResponse {
|
||||
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: DeleteBookingAppointmentResponse, 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.DeleteBookingAppointmentResponse
|
||||
*/
|
||||
export const DeleteBookingAppointmentResponse = new DeleteBookingAppointmentResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class RescheduleBookingAppointmentRequest$Type extends MessageType<RescheduleBookingAppointmentRequest> {
|
||||
constructor() {
|
||||
super("api.RescheduleBookingAppointmentRequest", [
|
||||
@@ -1512,6 +1647,7 @@ export const BookingService = new ServiceType("api.BookingService", [
|
||||
{ name: "ForceBookAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Book an appointment even if the slots are not available." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: BookBookingAppointmentRequest, O: BookBookingAppointmentResponse },
|
||||
{ name: "CancelAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Bookings"], description: "Cancel an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, 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." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, 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." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, 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." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, 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." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, 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." }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateBookingAppointmentRequest, O: BookBookingAppointmentResponse },
|
||||
|
||||
Reference in New Issue
Block a user