Latest generation

This commit is contained in:
ci core model
2025-07-28 13:21:58 +00:00
parent db3997ac01
commit 0b0453ed70
3 changed files with 334 additions and 608 deletions

View File

@@ -4,10 +4,6 @@
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { AppointmentInputAPI } from "./appointmentInput";
import type { AppointmentAssigneesRemovedResponse } from "./appointmentInput";
import type { AppointmentAssigneesRemovedRequest } from "./appointmentInput";
import type { AppointmentAssigneesAddedResponse } from "./appointmentInput";
import type { AppointmentAssigneesAddedRequest } from "./appointmentInput";
import type { AppointmentAttachmentRemovedResponse } from "./appointmentInput";
import type { AppointmentAttachmentRemovedRequest } from "./appointmentInput";
import type { AppointmentAttachmentAddedResponse } from "./appointmentInput";
@@ -39,6 +35,172 @@ 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";
// RequestProjectHeader 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";
// ResponseHeader 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";
// RequestProjectHeader 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";
// ResponseHeader Header = 1 ;
// EntityID ID = 2 ;
// }
/**
*
* API-server services
@@ -102,15 +264,173 @@ export interface IAppointmentInputAPIClient {
* @generated from protobuf rpc: AttachmentRemoved
*/
attachmentRemoved(input: AppointmentAttachmentRemovedRequest, options?: RpcOptions): UnaryCall<AppointmentAttachmentRemovedRequest, AppointmentAttachmentRemovedResponse>;
/**
* @generated from protobuf rpc: AssigneesAdded
*/
assigneesAdded(input: AppointmentAssigneesAddedRequest, options?: RpcOptions): UnaryCall<AppointmentAssigneesAddedRequest, AppointmentAssigneesAddedResponse>;
/**
* @generated from protobuf rpc: AssigneesRemoved
*/
assigneesRemoved(input: AppointmentAssigneesRemovedRequest, options?: RpcOptions): UnaryCall<AppointmentAssigneesRemovedRequest, AppointmentAssigneesRemovedResponse>;
}
// /*
// 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";
// RequestProjectHeader 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";
// ResponseHeader 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";
// RequestProjectHeader 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";
// ResponseHeader Header = 1 ;
// EntityID ID = 2 ;
// }
/**
*
* API-server services
@@ -221,18 +541,4 @@ export class AppointmentInputAPIClient implements IAppointmentInputAPIClient, Se
const method = this.methods[13], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentAttachmentRemovedRequest, AppointmentAttachmentRemovedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: AssigneesAdded
*/
assigneesAdded(input: AppointmentAssigneesAddedRequest, options?: RpcOptions): UnaryCall<AppointmentAssigneesAddedRequest, AppointmentAssigneesAddedResponse> {
const method = this.methods[14], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentAssigneesAddedRequest, AppointmentAssigneesAddedResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: AssigneesRemoved
*/
assigneesRemoved(input: AppointmentAssigneesRemovedRequest, options?: RpcOptions): UnaryCall<AppointmentAssigneesRemovedRequest, AppointmentAssigneesRemovedResponse> {
const method = this.methods[15], opt = this._transport.mergeOptions(options);
return stackIntercept<AppointmentAssigneesRemovedRequest, AppointmentAssigneesRemovedResponse>("unary", this._transport, method, opt, input);
}
}