Files
npm-core-sdk/appointmentInput.client.ts
2025-07-29 08:27:28 +00:00

545 lines
23 KiB
TypeScript

// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
// @generated from protobuf file "appointmentInput.proto" (package "api", syntax proto3)
// tslint:disable
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { AppointmentInputAPI } from "./appointmentInput";
import type { AppointmentAttachmentRemovedResponse } from "./appointmentInput";
import type { AppointmentAttachmentRemovedRequest } from "./appointmentInput";
import type { AppointmentAttachmentAddedResponse } from "./appointmentInput";
import type { AppointmentAttachmentAddedRequest } from "./appointmentInput";
import type { AppointmentMetaDataUpdatedResponse } from "./appointmentInput";
import type { AppointmentMetaDataUpdatedRequest } from "./appointmentInput";
import type { AppointmentCarrierDepartedResponse } from "./appointmentInput";
import type { AppointmentCarrierDepartedRequest } from "./appointmentInput";
import type { AppointmentReceptionUnloadedResponse } from "./appointmentInput";
import type { AppointmentReceptionUnloadedRequest } from "./appointmentInput";
import type { AppointmentReceptionStartedResponse } from "./appointmentInput";
import type { AppointmentReceptionStartedRequest } from "./appointmentInput";
import type { AppointmentExpeditionLoadedResponse } from "./appointmentInput";
import type { AppointmentExpeditionLoadedRequest } from "./appointmentInput";
import type { AppointmentExpeditionStartedResponse } from "./appointmentInput";
import type { AppointmentExpeditionStartedRequest } from "./appointmentInput";
import type { AppointmentCarrierArrivedResponse } from "./appointmentInput";
import type { AppointmentCarrierArrivedRequest } from "./appointmentInput";
import type { AppointmentCarrierExpectedResponse } from "./appointmentInput";
import type { AppointmentCarrierExpectedRequest } from "./appointmentInput";
import type { AppointmentCarrierInformationUpdatedResponse } from "./appointmentInput";
import type { AppointmentCarrierInformationUpdatedRequest } from "./appointmentInput";
import type { AppointmentDateUpdatedResponse } from "./appointmentInput";
import type { AppointmentDateUpdatedRequest } from "./appointmentInput";
import type { AppointmentCanceledResponse } from "./appointmentInput";
import type { AppointmentCanceledRequest } from "./appointmentInput";
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
import type { AppointmentCreatedResponse } from "./appointmentInput";
import type { AppointmentCreatedRequest } from "./appointmentInput";
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
// /*
// EmailsAdded : this message tells that appointment emails have been added
// */
// // Event Payload
// message AppointmentEmailsAddedPayload {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// description: "Event Payload"
// required: ["Emails"]
// }
// };
// option (payload) = true;
// option (inputEvent) = "EmailsAdded";
// option (messageType) = "Event";
// //Contacts assigned on the appointment
// repeated string Emails = 7
// [
// (validate.rules).repeated.min_items = 1,
// (validate.rules).repeated.items.string.pattern = "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
// (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
// description: "New contacts assigned on the appointments (user uuid)"}
// ];
// }
// // Event message
// message AppointmentEmailsAddedEvent {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["Header", "ID", "Payload"]
// }
// };
// option (inputEvent) = "EmailsAdded";
// option (messageType) = "Event";
// option (preAggMethods) = "addEmails"; // Here are listed the pre aggregation methods to call before event message is aggregated
// EventHeader Header = 1
// [
// (validate.rules).message.required = true
// ];
// EntityID ID = 2
// [
// (validate.rules).message.required = true
// ];
// AppointmentEmailsAddedPayload Payload = 3
// [
// (validate.rules).message.required = true
// ];
// }
// // API Request
// message AppointmentEmailsAddedRequest {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["Header", "ID", "Payload"]
// }
// };
// option (inputEvent) = "EmailsAdded";
// option (messageType) = "Request";
// RequestSiteHeader Header = 1
// [
// (validate.rules).message.required = true
// ];
// EntityID ID = 2
// [
// (validate.rules).message.required = true
// ];
// AppointmentEmailsAddedPayload Payload = 3
// [
// (validate.rules).message.required = true
// ];
// }
// // API Response
// message AppointmentEmailsAddedResponse {
// option (inputEvent) = "EmailsAdded";
// option (messageType) = "Response";
// ResponseSiteHeader Header = 1 ;
// EntityID ID = 2 ;
// }
// /*
// EmailsRemoved : this message tells that appointment emails have been added
// */
// // Event Payload
// message AppointmentEmailsRemovedPayload {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// description: "Event Payload"
// required: ["RemovedEmails"]
// }
// };
// option (payload) = true;
// option (inputEvent) = "EmailsRemoved";
// option (messageType) = "Event";
// //Contacts removed from the appointment
// repeated string RemovedEmails = 7
// [
// (validate.rules).repeated.min_items = 1,
// (validate.rules).repeated.items.string.pattern = "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
// (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
// description: "Some assigned contacts removed from the appointments (user uuid)"}
// ];
// }
// // Event message
// message AppointmentEmailsRemovedEvent {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["Header", "ID", "Payload"]
// }
// };
// option (inputEvent) = "EmailsRemoved";
// option (messageType) = "Event";
// option (preAggMethods) = "removeEmails"; // Here are listed the pre aggregation methods to call before event message is aggregated
// EventHeader Header = 1
// [
// (validate.rules).message.required = true
// ];
// EntityID ID = 2
// [
// (validate.rules).message.required = true
// ];
// AppointmentEmailsRemovedPayload Payload = 3
// [
// (validate.rules).message.required = true
// ];
// }
// // API Request
// message AppointmentEmailsRemovedRequest {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["Header", "ID", "Payload"]
// }
// };
// option (inputEvent) = "EmailsRemoved";
// option (messageType) = "Request";
// RequestSiteHeader Header = 1
// [
// (validate.rules).message.required = true
// ];
// EntityID ID = 2
// [
// (validate.rules).message.required = true
// ];
// AppointmentEmailsRemovedPayload Payload = 3
// [
// (validate.rules).message.required = true
// ];
// }
// // API Response
// message AppointmentEmailsRemovedResponse {
// option (inputEvent) = "EmailsRemoved";
// option (messageType) = "Response";
// ResponseSiteHeader Header = 1 ;
// EntityID ID = 2 ;
// }
/**
*
* API-server services
*
* @generated from protobuf service api.AppointmentInputAPI
*/
export interface IAppointmentInputAPIClient {
/**
* @generated from protobuf rpc: Created
*/
created(input: AppointmentCreatedRequest, options?: RpcOptions): UnaryCall<AppointmentCreatedRequest, AppointmentCreatedResponse>;
/**
* @generated from protobuf rpc: Canceled
*/
canceled(input: AppointmentCanceledRequest, options?: RpcOptions): UnaryCall<AppointmentCanceledRequest, AppointmentCanceledResponse>;
/**
* @generated from protobuf rpc: DateUpdated
*/
dateUpdated(input: AppointmentDateUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentDateUpdatedRequest, AppointmentDateUpdatedResponse>;
/**
* @generated from protobuf rpc: CarrierInformationUpdated
*/
carrierInformationUpdated(input: AppointmentCarrierInformationUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierInformationUpdatedRequest, AppointmentCarrierInformationUpdatedResponse>;
/**
* @generated from protobuf rpc: CarrierExpected
*/
carrierExpected(input: AppointmentCarrierExpectedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierExpectedRequest, AppointmentCarrierExpectedResponse>;
/**
* @generated from protobuf rpc: CarrierArrived
*/
carrierArrived(input: AppointmentCarrierArrivedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierArrivedRequest, AppointmentCarrierArrivedResponse>;
/**
* @generated from protobuf rpc: ExpeditionStarted
*/
expeditionStarted(input: AppointmentExpeditionStartedRequest, options?: RpcOptions): UnaryCall<AppointmentExpeditionStartedRequest, AppointmentExpeditionStartedResponse>;
/**
* @generated from protobuf rpc: ExpeditionLoaded
*/
expeditionLoaded(input: AppointmentExpeditionLoadedRequest, options?: RpcOptions): UnaryCall<AppointmentExpeditionLoadedRequest, AppointmentExpeditionLoadedResponse>;
/**
* @generated from protobuf rpc: ReceptionStarted
*/
receptionStarted(input: AppointmentReceptionStartedRequest, options?: RpcOptions): UnaryCall<AppointmentReceptionStartedRequest, AppointmentReceptionStartedResponse>;
/**
* @generated from protobuf rpc: ReceptionUnloaded
*/
receptionUnloaded(input: AppointmentReceptionUnloadedRequest, options?: RpcOptions): UnaryCall<AppointmentReceptionUnloadedRequest, AppointmentReceptionUnloadedResponse>;
/**
* @generated from protobuf rpc: CarrierDeparted
*/
carrierDeparted(input: AppointmentCarrierDepartedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierDepartedRequest, AppointmentCarrierDepartedResponse>;
/**
* @generated from protobuf rpc: MetaDataUpdated
*/
metaDataUpdated(input: AppointmentMetaDataUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentMetaDataUpdatedRequest, AppointmentMetaDataUpdatedResponse>;
/**
* @generated from protobuf rpc: AttachmentAdded
*/
attachmentAdded(input: AppointmentAttachmentAddedRequest, options?: RpcOptions): UnaryCall<AppointmentAttachmentAddedRequest, AppointmentAttachmentAddedResponse>;
/**
* @generated from protobuf rpc: AttachmentRemoved
*/
attachmentRemoved(input: AppointmentAttachmentRemovedRequest, options?: RpcOptions): UnaryCall<AppointmentAttachmentRemovedRequest, AppointmentAttachmentRemovedResponse>;
}
// /*
// EmailsAdded : this message tells that appointment emails have been added
// */
// // Event Payload
// message AppointmentEmailsAddedPayload {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// description: "Event Payload"
// required: ["Emails"]
// }
// };
// option (payload) = true;
// option (inputEvent) = "EmailsAdded";
// option (messageType) = "Event";
// //Contacts assigned on the appointment
// repeated string Emails = 7
// [
// (validate.rules).repeated.min_items = 1,
// (validate.rules).repeated.items.string.pattern = "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
// (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
// description: "New contacts assigned on the appointments (user uuid)"}
// ];
// }
// // Event message
// message AppointmentEmailsAddedEvent {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["Header", "ID", "Payload"]
// }
// };
// option (inputEvent) = "EmailsAdded";
// option (messageType) = "Event";
// option (preAggMethods) = "addEmails"; // Here are listed the pre aggregation methods to call before event message is aggregated
// EventHeader Header = 1
// [
// (validate.rules).message.required = true
// ];
// EntityID ID = 2
// [
// (validate.rules).message.required = true
// ];
// AppointmentEmailsAddedPayload Payload = 3
// [
// (validate.rules).message.required = true
// ];
// }
// // API Request
// message AppointmentEmailsAddedRequest {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["Header", "ID", "Payload"]
// }
// };
// option (inputEvent) = "EmailsAdded";
// option (messageType) = "Request";
// RequestSiteHeader Header = 1
// [
// (validate.rules).message.required = true
// ];
// EntityID ID = 2
// [
// (validate.rules).message.required = true
// ];
// AppointmentEmailsAddedPayload Payload = 3
// [
// (validate.rules).message.required = true
// ];
// }
// // API Response
// message AppointmentEmailsAddedResponse {
// option (inputEvent) = "EmailsAdded";
// option (messageType) = "Response";
// ResponseSiteHeader Header = 1 ;
// EntityID ID = 2 ;
// }
// /*
// EmailsRemoved : this message tells that appointment emails have been added
// */
// // Event Payload
// message AppointmentEmailsRemovedPayload {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// description: "Event Payload"
// required: ["RemovedEmails"]
// }
// };
// option (payload) = true;
// option (inputEvent) = "EmailsRemoved";
// option (messageType) = "Event";
// //Contacts removed from the appointment
// repeated string RemovedEmails = 7
// [
// (validate.rules).repeated.min_items = 1,
// (validate.rules).repeated.items.string.pattern = "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
// (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
// description: "Some assigned contacts removed from the appointments (user uuid)"}
// ];
// }
// // Event message
// message AppointmentEmailsRemovedEvent {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["Header", "ID", "Payload"]
// }
// };
// option (inputEvent) = "EmailsRemoved";
// option (messageType) = "Event";
// option (preAggMethods) = "removeEmails"; // Here are listed the pre aggregation methods to call before event message is aggregated
// EventHeader Header = 1
// [
// (validate.rules).message.required = true
// ];
// EntityID ID = 2
// [
// (validate.rules).message.required = true
// ];
// AppointmentEmailsRemovedPayload Payload = 3
// [
// (validate.rules).message.required = true
// ];
// }
// // API Request
// message AppointmentEmailsRemovedRequest {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["Header", "ID", "Payload"]
// }
// };
// option (inputEvent) = "EmailsRemoved";
// option (messageType) = "Request";
// RequestSiteHeader Header = 1
// [
// (validate.rules).message.required = true
// ];
// EntityID ID = 2
// [
// (validate.rules).message.required = true
// ];
// AppointmentEmailsRemovedPayload Payload = 3
// [
// (validate.rules).message.required = true
// ];
// }
// // API Response
// message AppointmentEmailsRemovedResponse {
// option (inputEvent) = "EmailsRemoved";
// option (messageType) = "Response";
// ResponseSiteHeader Header = 1 ;
// EntityID ID = 2 ;
// }
/**
*
* API-server services
*
* @generated from protobuf service api.AppointmentInputAPI
*/
export class AppointmentInputAPIClient implements IAppointmentInputAPIClient, ServiceInfo {
typeName = AppointmentInputAPI.typeName;
methods = AppointmentInputAPI.methods;
options = AppointmentInputAPI.options;
constructor(private readonly _transport: RpcTransport) {
}
/**
* @generated from protobuf rpc: Created
*/
created(input: AppointmentCreatedRequest, options?: RpcOptions): UnaryCall<AppointmentCreatedRequest, AppointmentCreatedResponse> {
const method = this.methods[0], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentCreatedRequest, AppointmentCreatedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: Canceled
*/
canceled(input: AppointmentCanceledRequest, options?: RpcOptions): UnaryCall<AppointmentCanceledRequest, AppointmentCanceledResponse> {
const method = this.methods[1], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentCanceledRequest, AppointmentCanceledResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: DateUpdated
*/
dateUpdated(input: AppointmentDateUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentDateUpdatedRequest, AppointmentDateUpdatedResponse> {
const method = this.methods[2], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentDateUpdatedRequest, AppointmentDateUpdatedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CarrierInformationUpdated
*/
carrierInformationUpdated(input: AppointmentCarrierInformationUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierInformationUpdatedRequest, AppointmentCarrierInformationUpdatedResponse> {
const method = this.methods[3], 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[4], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentCarrierExpectedRequest, AppointmentCarrierExpectedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CarrierArrived
*/
carrierArrived(input: AppointmentCarrierArrivedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierArrivedRequest, AppointmentCarrierArrivedResponse> {
const method = this.methods[5], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentCarrierArrivedRequest, AppointmentCarrierArrivedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ExpeditionStarted
*/
expeditionStarted(input: AppointmentExpeditionStartedRequest, options?: RpcOptions): UnaryCall<AppointmentExpeditionStartedRequest, AppointmentExpeditionStartedResponse> {
const method = this.methods[6], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentExpeditionStartedRequest, AppointmentExpeditionStartedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ExpeditionLoaded
*/
expeditionLoaded(input: AppointmentExpeditionLoadedRequest, options?: RpcOptions): UnaryCall<AppointmentExpeditionLoadedRequest, AppointmentExpeditionLoadedResponse> {
const method = this.methods[7], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentExpeditionLoadedRequest, AppointmentExpeditionLoadedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ReceptionStarted
*/
receptionStarted(input: AppointmentReceptionStartedRequest, options?: RpcOptions): UnaryCall<AppointmentReceptionStartedRequest, AppointmentReceptionStartedResponse> {
const method = this.methods[8], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentReceptionStartedRequest, AppointmentReceptionStartedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ReceptionUnloaded
*/
receptionUnloaded(input: AppointmentReceptionUnloadedRequest, options?: RpcOptions): UnaryCall<AppointmentReceptionUnloadedRequest, AppointmentReceptionUnloadedResponse> {
const method = this.methods[9], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentReceptionUnloadedRequest, AppointmentReceptionUnloadedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CarrierDeparted
*/
carrierDeparted(input: AppointmentCarrierDepartedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierDepartedRequest, AppointmentCarrierDepartedResponse> {
const method = this.methods[10], 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[11], 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[12], 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[13], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentAttachmentRemovedRequest, AppointmentAttachmentRemovedResponse>("unary", this._transport, method, opt, input);
}
}