Latest generation

This commit is contained in:
ci core model
2025-07-31 13:40:33 +00:00
parent 23187942d0
commit 16b397a6e6
4 changed files with 656 additions and 365 deletions

View File

@@ -4,6 +4,10 @@
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { AppointmentInputAPI } from "./appointmentInput";
import type { AppointmentEmailsRemovedResponse } from "./appointmentInput";
import type { AppointmentEmailsRemovedRequest } from "./appointmentInput";
import type { AppointmentEmailsAddedResponse } from "./appointmentInput";
import type { AppointmentEmailsAddedRequest } from "./appointmentInput";
import type { AppointmentAttachmentRemovedResponse } from "./appointmentInput";
import type { AppointmentAttachmentRemovedRequest } from "./appointmentInput";
import type { AppointmentAttachmentAddedResponse } from "./appointmentInput";
@@ -37,172 +41,6 @@ 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
@@ -270,173 +108,15 @@ export interface IAppointmentInputAPIClient {
* @generated from protobuf rpc: AttachmentRemoved
*/
attachmentRemoved(input: AppointmentAttachmentRemovedRequest, options?: RpcOptions): UnaryCall<AppointmentAttachmentRemovedRequest, AppointmentAttachmentRemovedResponse>;
/**
* @generated from protobuf rpc: EmailsAdded
*/
emailsAdded(input: AppointmentEmailsAddedRequest, options?: RpcOptions): UnaryCall<AppointmentEmailsAddedRequest, AppointmentEmailsAddedResponse>;
/**
* @generated from protobuf rpc: EmailsRemoved
*/
emailsRemoved(input: AppointmentEmailsRemovedRequest, options?: RpcOptions): UnaryCall<AppointmentEmailsRemovedRequest, AppointmentEmailsRemovedResponse>;
}
// /*
// 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
@@ -554,4 +234,18 @@ export class AppointmentInputAPIClient implements IAppointmentInputAPIClient, Se
const method = this.methods[14], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentAttachmentRemovedRequest, AppointmentAttachmentRemovedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: EmailsAdded
*/
emailsAdded(input: AppointmentEmailsAddedRequest, options?: RpcOptions): UnaryCall<AppointmentEmailsAddedRequest, AppointmentEmailsAddedResponse> {
const method = this.methods[15], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentEmailsAddedRequest, AppointmentEmailsAddedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: EmailsRemoved
*/
emailsRemoved(input: AppointmentEmailsRemovedRequest, options?: RpcOptions): UnaryCall<AppointmentEmailsRemovedRequest, AppointmentEmailsRemovedResponse> {
const method = this.methods[16], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentEmailsRemovedRequest, AppointmentEmailsRemovedResponse>("unary", this._transport, method, opt, input);
}
}