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);
}
}

View File

@@ -1030,6 +1030,144 @@ export interface AppointmentMetaDataUpdatedResponse {
*/
ID?: EntityID;
}
//
// EmailsAdded : this message tells that appointment emails have been added
/**
* Event Payload
*
* @generated from protobuf message api.AppointmentEmailsAddedPayload
*/
export interface AppointmentEmailsAddedPayload {
/**
* Contacts assigned on the appointment
*
* @generated from protobuf field: repeated string Emails = 1
*/
Emails: string[];
}
/**
* Event message
*
* @generated from protobuf message api.AppointmentEmailsAddedEvent
*/
export interface AppointmentEmailsAddedEvent {
/**
* @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.AppointmentEmailsAddedPayload Payload = 3
*/
Payload?: AppointmentEmailsAddedPayload;
}
/**
* API Request
*
* @generated from protobuf message api.AppointmentEmailsAddedRequest
*/
export interface AppointmentEmailsAddedRequest {
/**
* @generated from protobuf field: api.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
/**
* @generated from protobuf field: api.AppointmentEmailsAddedPayload Payload = 3
*/
Payload?: AppointmentEmailsAddedPayload;
}
/**
* API Response
*
* @generated from protobuf message api.AppointmentEmailsAddedResponse
*/
export interface AppointmentEmailsAddedResponse {
/**
* @generated from protobuf field: api.ResponseSiteHeader Header = 1
*/
Header?: ResponseSiteHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
}
//
// EmailsRemoved : this message tells that appointment emails have been added
/**
* Event Payload
*
* @generated from protobuf message api.AppointmentEmailsRemovedPayload
*/
export interface AppointmentEmailsRemovedPayload {
/**
* Contacts removed from the appointment
*
* @generated from protobuf field: repeated string RemovedEmails = 1
*/
RemovedEmails: string[];
}
/**
* Event message
*
* @generated from protobuf message api.AppointmentEmailsRemovedEvent
*/
export interface AppointmentEmailsRemovedEvent {
/**
* @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.AppointmentEmailsRemovedPayload Payload = 3
*/
Payload?: AppointmentEmailsRemovedPayload;
}
/**
* API Request
*
* @generated from protobuf message api.AppointmentEmailsRemovedRequest
*/
export interface AppointmentEmailsRemovedRequest {
/**
* @generated from protobuf field: api.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
/**
* @generated from protobuf field: api.AppointmentEmailsRemovedPayload Payload = 3
*/
Payload?: AppointmentEmailsRemovedPayload;
}
/**
* API Response
*
* @generated from protobuf message api.AppointmentEmailsRemovedResponse
*/
export interface AppointmentEmailsRemovedResponse {
/**
* @generated from protobuf field: api.ResponseSiteHeader Header = 1
*/
Header?: ResponseSiteHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
}
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPayload> {
constructor() {
@@ -1577,7 +1715,7 @@ class AppointmentDateUpdatedEvent$Type extends MessageType<AppointmentDateUpdate
{ 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: () => AppointmentDateUpdatedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "DateUpdated", "api.preAggMethods": "dateUpdated" });
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "DateUpdated" });
}
create(value?: PartialMessage<AppointmentDateUpdatedEvent>): AppointmentDateUpdatedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
@@ -1804,7 +1942,7 @@ class AppointmentCommissionsUpdatedEvent$Type extends MessageType<AppointmentCom
{ 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: () => AppointmentCommissionsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "CommissionsUpdated", "api.preAggMethods": "commissionsUpdated" });
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "CommissionsUpdated" });
}
create(value?: PartialMessage<AppointmentCommissionsUpdatedEvent>): AppointmentCommissionsUpdatedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
@@ -4327,6 +4465,446 @@ class AppointmentMetaDataUpdatedResponse$Type extends MessageType<AppointmentMet
* @generated MessageType for protobuf message api.AppointmentMetaDataUpdatedResponse
*/
export const AppointmentMetaDataUpdatedResponse = new AppointmentMetaDataUpdatedResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentEmailsAddedPayload$Type extends MessageType<AppointmentEmailsAddedPayload> {
constructor() {
super("api.AppointmentEmailsAddedPayload", [
{ no: 1, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1", 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)" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["Emails"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "EmailsAdded" });
}
create(value?: PartialMessage<AppointmentEmailsAddedPayload>): AppointmentEmailsAddedPayload {
const message = globalThis.Object.create((this.messagePrototype!));
message.Emails = [];
if (value !== undefined)
reflectionMergePartial<AppointmentEmailsAddedPayload>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentEmailsAddedPayload): AppointmentEmailsAddedPayload {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated string Emails */ 1:
message.Emails.push(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: AppointmentEmailsAddedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated string Emails = 1; */
for (let i = 0; i < message.Emails.length; i++)
writer.tag(1, WireType.LengthDelimited).string(message.Emails[i]);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.AppointmentEmailsAddedPayload
*/
export const AppointmentEmailsAddedPayload = new AppointmentEmailsAddedPayload$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentEmailsAddedEvent$Type extends MessageType<AppointmentEmailsAddedEvent> {
constructor() {
super("api.AppointmentEmailsAddedEvent", [
{ 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: () => AppointmentEmailsAddedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "EmailsAdded", "api.preAggMethods": "addEmails" });
}
create(value?: PartialMessage<AppointmentEmailsAddedEvent>): AppointmentEmailsAddedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentEmailsAddedEvent>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentEmailsAddedEvent): AppointmentEmailsAddedEvent {
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.AppointmentEmailsAddedPayload Payload */ 3:
message.Payload = AppointmentEmailsAddedPayload.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: AppointmentEmailsAddedEvent, 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.AppointmentEmailsAddedPayload Payload = 3; */
if (message.Payload)
AppointmentEmailsAddedPayload.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.AppointmentEmailsAddedEvent
*/
export const AppointmentEmailsAddedEvent = new AppointmentEmailsAddedEvent$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentEmailsAddedRequest$Type extends MessageType<AppointmentEmailsAddedRequest> {
constructor() {
super("api.AppointmentEmailsAddedRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, 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: () => AppointmentEmailsAddedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "EmailsAdded" });
}
create(value?: PartialMessage<AppointmentEmailsAddedRequest>): AppointmentEmailsAddedRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentEmailsAddedRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentEmailsAddedRequest): AppointmentEmailsAddedRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.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.AppointmentEmailsAddedPayload Payload */ 3:
message.Payload = AppointmentEmailsAddedPayload.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: AppointmentEmailsAddedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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.AppointmentEmailsAddedPayload Payload = 3; */
if (message.Payload)
AppointmentEmailsAddedPayload.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.AppointmentEmailsAddedRequest
*/
export const AppointmentEmailsAddedRequest = new AppointmentEmailsAddedRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentEmailsAddedResponse$Type extends MessageType<AppointmentEmailsAddedResponse> {
constructor() {
super("api.AppointmentEmailsAddedResponse", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
], { "api.messageType": "Response", "api.inputEvent": "EmailsAdded" });
}
create(value?: PartialMessage<AppointmentEmailsAddedResponse>): AppointmentEmailsAddedResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentEmailsAddedResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentEmailsAddedResponse): AppointmentEmailsAddedResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResponseSiteHeader Header */ 1:
message.Header = ResponseSiteHeader.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: AppointmentEmailsAddedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ResponseSiteHeader Header = 1; */
if (message.Header)
ResponseSiteHeader.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.AppointmentEmailsAddedResponse
*/
export const AppointmentEmailsAddedResponse = new AppointmentEmailsAddedResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentEmailsRemovedPayload$Type extends MessageType<AppointmentEmailsRemovedPayload> {
constructor() {
super("api.AppointmentEmailsRemovedPayload", [
{ no: 1, name: "RemovedEmails", kind: "scalar", localName: "RemovedEmails", jsonName: "RemovedEmails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1", 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)" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["RemovedEmails"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "EmailsRemoved" });
}
create(value?: PartialMessage<AppointmentEmailsRemovedPayload>): AppointmentEmailsRemovedPayload {
const message = globalThis.Object.create((this.messagePrototype!));
message.RemovedEmails = [];
if (value !== undefined)
reflectionMergePartial<AppointmentEmailsRemovedPayload>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentEmailsRemovedPayload): AppointmentEmailsRemovedPayload {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated string RemovedEmails */ 1:
message.RemovedEmails.push(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: AppointmentEmailsRemovedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated string RemovedEmails = 1; */
for (let i = 0; i < message.RemovedEmails.length; i++)
writer.tag(1, WireType.LengthDelimited).string(message.RemovedEmails[i]);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.AppointmentEmailsRemovedPayload
*/
export const AppointmentEmailsRemovedPayload = new AppointmentEmailsRemovedPayload$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentEmailsRemovedEvent$Type extends MessageType<AppointmentEmailsRemovedEvent> {
constructor() {
super("api.AppointmentEmailsRemovedEvent", [
{ 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: () => AppointmentEmailsRemovedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "EmailsRemoved", "api.preAggMethods": "removeEmails" });
}
create(value?: PartialMessage<AppointmentEmailsRemovedEvent>): AppointmentEmailsRemovedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentEmailsRemovedEvent>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentEmailsRemovedEvent): AppointmentEmailsRemovedEvent {
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.AppointmentEmailsRemovedPayload Payload */ 3:
message.Payload = AppointmentEmailsRemovedPayload.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: AppointmentEmailsRemovedEvent, 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.AppointmentEmailsRemovedPayload Payload = 3; */
if (message.Payload)
AppointmentEmailsRemovedPayload.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.AppointmentEmailsRemovedEvent
*/
export const AppointmentEmailsRemovedEvent = new AppointmentEmailsRemovedEvent$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentEmailsRemovedRequest$Type extends MessageType<AppointmentEmailsRemovedRequest> {
constructor() {
super("api.AppointmentEmailsRemovedRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, 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: () => AppointmentEmailsRemovedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "EmailsRemoved" });
}
create(value?: PartialMessage<AppointmentEmailsRemovedRequest>): AppointmentEmailsRemovedRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentEmailsRemovedRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentEmailsRemovedRequest): AppointmentEmailsRemovedRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.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.AppointmentEmailsRemovedPayload Payload */ 3:
message.Payload = AppointmentEmailsRemovedPayload.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: AppointmentEmailsRemovedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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.AppointmentEmailsRemovedPayload Payload = 3; */
if (message.Payload)
AppointmentEmailsRemovedPayload.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.AppointmentEmailsRemovedRequest
*/
export const AppointmentEmailsRemovedRequest = new AppointmentEmailsRemovedRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentEmailsRemovedResponse$Type extends MessageType<AppointmentEmailsRemovedResponse> {
constructor() {
super("api.AppointmentEmailsRemovedResponse", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
], { "api.messageType": "Response", "api.inputEvent": "EmailsRemoved" });
}
create(value?: PartialMessage<AppointmentEmailsRemovedResponse>): AppointmentEmailsRemovedResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentEmailsRemovedResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentEmailsRemovedResponse): AppointmentEmailsRemovedResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResponseSiteHeader Header */ 1:
message.Header = ResponseSiteHeader.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: AppointmentEmailsRemovedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ResponseSiteHeader Header = 1; */
if (message.Header)
ResponseSiteHeader.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.AppointmentEmailsRemovedResponse
*/
export const AppointmentEmailsRemovedResponse = new AppointmentEmailsRemovedResponse$Type();
/**
* @generated ServiceType for protobuf service api.AppointmentInputAPI
*/
@@ -4345,5 +4923,7 @@ export const AppointmentInputAPI = new ServiceType("api.AppointmentInputAPI", [
{ name: "CarrierDeparted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The carrier is departed for the appointment." }, "api.rscType": "Site", "api.roles": "Platform.Site-Input", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCarrierDepartedRequest, O: AppointmentCarrierDepartedResponse },
{ name: "MetaDataUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "Some metadata have been updated on an appointment. This is typically called from ERP or WMS." }, "api.rscType": "Site", "api.roles": "Platform.Site-Input", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentMetaDataUpdatedRequest, O: AppointmentMetaDataUpdatedResponse },
{ name: "AttachmentAdded", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An attachment is added for the Appointment." }, "api.rscType": "Site", "api.roles": "Platform.Site-Attachment", "api.platformReserved": true, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentAttachmentAddedRequest, O: AppointmentAttachmentAddedResponse },
{ name: "AttachmentRemoved", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An attachment is removed for the Appointment." }, "api.rscType": "Site", "api.roles": "Platform.Site-Attachment", "api.platformReserved": true, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentAttachmentRemovedRequest, O: AppointmentAttachmentRemovedResponse }
{ name: "AttachmentRemoved", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An attachment is removed for the Appointment." }, "api.rscType": "Site", "api.roles": "Platform.Site-Attachment", "api.platformReserved": true, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentAttachmentRemovedRequest, O: AppointmentAttachmentRemovedResponse },
{ name: "EmailsAdded", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment Emails have been added." }, "api.rscType": "Site", "api.roles": "Platform.Site-Input", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentEmailsAddedRequest, O: AppointmentEmailsAddedResponse },
{ name: "EmailsRemoved", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment Emails have been removed." }, "api.rscType": "Site", "api.roles": "Platform.Site-Input", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentEmailsRemovedRequest, O: AppointmentEmailsRemovedResponse }
], { "api.serviceType": "Api", "api.k8sService": "collab-api-server" });

View File

@@ -12,7 +12,6 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
import { reflectionMergePartial } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime";
import { RequestSiteHeader } from "./shared";
import { DateTime } from "./shared";
import { Period } from "./shared";
import { RequestOrganisationHeader } from "./shared";
import { ResourceType } from "./shared";
@@ -340,19 +339,19 @@ export interface ComputeETAPeriodOnOrganisationRequest {
* @generated from protobuf field: api.Period Period = 3
*/
Period?: Period;
/**
* @generated from protobuf field: string StartSearchTime = 4
*/
StartSearchTime: string;
}
/**
* GetPublicHolidays response
*
* @generated from protobuf message api.ComputeETAPeriodOnOrganisationResponse
*/
export interface ComputeETAPeriodOnOrganisationResponse {
/**
* List of public holidays generated
*
* @generated from protobuf field: api.DateTime StartEta = 1
* @generated from protobuf field: string StartEta = 1
*/
StartEta?: DateTime;
StartEta: string;
}
// //// API at Site level
@@ -532,19 +531,19 @@ export interface ComputeETAPeriodOnSiteRequest {
* @generated from protobuf field: api.Period Period = 3
*/
Period?: Period;
/**
* @generated from protobuf field: string StartSearchTime = 4
*/
StartSearchTime: string;
}
/**
* GetPublicHolidays response
*
* @generated from protobuf message api.ComputeETAPeriodOnSiteResponse
*/
export interface ComputeETAPeriodOnSiteResponse {
/**
* List of public holidays generated
*
* @generated from protobuf field: api.DateTime StartEta = 1
* @generated from protobuf field: string StartEta = 1
*/
StartEta?: DateTime;
StartEta: string;
}
// @generated message type with reflection information, may provide speed optimized methods
class WorkTimeDay$Type extends MessageType<WorkTimeDay> {
@@ -1440,12 +1439,14 @@ class ComputeETAPeriodOnOrganisationRequest$Type extends MessageType<ComputeETAP
super("api.ComputeETAPeriodOnOrganisationRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "Period", kind: "message", localName: "Period", jsonName: "Period", T: () => Period }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Period"] } } });
{ no: 3, name: "Period", kind: "message", localName: "Period", jsonName: "Period", T: () => Period },
{ no: 4, name: "StartSearchTime", kind: "scalar", localName: "StartSearchTime", jsonName: "StartSearchTime", T: 9 /*ScalarType.STRING*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Period", "StartSearchTime"] } } });
}
create(value?: PartialMessage<ComputeETAPeriodOnOrganisationRequest>): ComputeETAPeriodOnOrganisationRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ID = "";
message.StartSearchTime = "";
if (value !== undefined)
reflectionMergePartial<ComputeETAPeriodOnOrganisationRequest>(this, message, value);
return message;
@@ -1464,6 +1465,9 @@ class ComputeETAPeriodOnOrganisationRequest$Type extends MessageType<ComputeETAP
case /* api.Period Period */ 3:
message.Period = Period.internalBinaryRead(reader, reader.uint32(), options, message.Period);
break;
case /* string StartSearchTime */ 4:
message.StartSearchTime = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -1485,6 +1489,9 @@ class ComputeETAPeriodOnOrganisationRequest$Type extends MessageType<ComputeETAP
/* api.Period Period = 3; */
if (message.Period)
Period.internalBinaryWrite(message.Period, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* string StartSearchTime = 4; */
if (message.StartSearchTime !== "")
writer.tag(4, WireType.LengthDelimited).string(message.StartSearchTime);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1499,11 +1506,12 @@ export const ComputeETAPeriodOnOrganisationRequest = new ComputeETAPeriodOnOrgan
class ComputeETAPeriodOnOrganisationResponse$Type extends MessageType<ComputeETAPeriodOnOrganisationResponse> {
constructor() {
super("api.ComputeETAPeriodOnOrganisationResponse", [
{ no: 1, name: "StartEta", kind: "message", localName: "StartEta", jsonName: "StartEta", T: () => DateTime }
{ no: 1, name: "StartEta", kind: "scalar", localName: "StartEta", jsonName: "StartEta", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<ComputeETAPeriodOnOrganisationResponse>): ComputeETAPeriodOnOrganisationResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.StartEta = "";
if (value !== undefined)
reflectionMergePartial<ComputeETAPeriodOnOrganisationResponse>(this, message, value);
return message;
@@ -1513,8 +1521,8 @@ class ComputeETAPeriodOnOrganisationResponse$Type extends MessageType<ComputeETA
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.DateTime StartEta */ 1:
message.StartEta = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.StartEta);
case /* string StartEta */ 1:
message.StartEta = reader.string();
break;
default:
let u = options.readUnknownField;
@@ -1528,9 +1536,9 @@ class ComputeETAPeriodOnOrganisationResponse$Type extends MessageType<ComputeETA
return message;
}
internalBinaryWrite(message: ComputeETAPeriodOnOrganisationResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.DateTime StartEta = 1; */
if (message.StartEta)
DateTime.internalBinaryWrite(message.StartEta, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string StartEta = 1; */
if (message.StartEta !== "")
writer.tag(1, WireType.LengthDelimited).string(message.StartEta);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -2088,12 +2096,14 @@ class ComputeETAPeriodOnSiteRequest$Type extends MessageType<ComputeETAPeriodOnS
super("api.ComputeETAPeriodOnSiteRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "Period", kind: "message", localName: "Period", jsonName: "Period", T: () => Period }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Period"] } } });
{ no: 3, name: "Period", kind: "message", localName: "Period", jsonName: "Period", T: () => Period },
{ no: 4, name: "StartSearchTime", kind: "scalar", localName: "StartSearchTime", jsonName: "StartSearchTime", T: 9 /*ScalarType.STRING*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Period", "StartSearchTime"] } } });
}
create(value?: PartialMessage<ComputeETAPeriodOnSiteRequest>): ComputeETAPeriodOnSiteRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ID = "";
message.StartSearchTime = "";
if (value !== undefined)
reflectionMergePartial<ComputeETAPeriodOnSiteRequest>(this, message, value);
return message;
@@ -2112,6 +2122,9 @@ class ComputeETAPeriodOnSiteRequest$Type extends MessageType<ComputeETAPeriodOnS
case /* api.Period Period */ 3:
message.Period = Period.internalBinaryRead(reader, reader.uint32(), options, message.Period);
break;
case /* string StartSearchTime */ 4:
message.StartSearchTime = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -2133,6 +2146,9 @@ class ComputeETAPeriodOnSiteRequest$Type extends MessageType<ComputeETAPeriodOnS
/* api.Period Period = 3; */
if (message.Period)
Period.internalBinaryWrite(message.Period, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* string StartSearchTime = 4; */
if (message.StartSearchTime !== "")
writer.tag(4, WireType.LengthDelimited).string(message.StartSearchTime);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -2147,11 +2163,12 @@ export const ComputeETAPeriodOnSiteRequest = new ComputeETAPeriodOnSiteRequest$T
class ComputeETAPeriodOnSiteResponse$Type extends MessageType<ComputeETAPeriodOnSiteResponse> {
constructor() {
super("api.ComputeETAPeriodOnSiteResponse", [
{ no: 1, name: "StartEta", kind: "message", localName: "StartEta", jsonName: "StartEta", T: () => DateTime }
{ no: 1, name: "StartEta", kind: "scalar", localName: "StartEta", jsonName: "StartEta", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<ComputeETAPeriodOnSiteResponse>): ComputeETAPeriodOnSiteResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.StartEta = "";
if (value !== undefined)
reflectionMergePartial<ComputeETAPeriodOnSiteResponse>(this, message, value);
return message;
@@ -2161,8 +2178,8 @@ class ComputeETAPeriodOnSiteResponse$Type extends MessageType<ComputeETAPeriodOn
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.DateTime StartEta */ 1:
message.StartEta = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.StartEta);
case /* string StartEta */ 1:
message.StartEta = reader.string();
break;
default:
let u = options.readUnknownField;
@@ -2176,9 +2193,9 @@ class ComputeETAPeriodOnSiteResponse$Type extends MessageType<ComputeETAPeriodOn
return message;
}
internalBinaryWrite(message: ComputeETAPeriodOnSiteResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.DateTime StartEta = 1; */
if (message.StartEta)
DateTime.internalBinaryWrite(message.StartEta, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string StartEta = 1; */
if (message.StartEta !== "")
writer.tag(1, WireType.LengthDelimited).string(message.StartEta);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);

View File

@@ -1,6 +1,6 @@
{
"name": "@reflex-platform/npm-core-sdk",
"version": "1.11.0-SNAPSHOT-250731124117",
"version": "1.11.0-SNAPSHOT-250731134017",
"description": "npm libs from core model proto files",
"homepage": "",
"main": "index.ts",