Latest generation

This commit is contained in:
ci core model
2026-01-27 15:24:38 +00:00
parent c75dc8231c
commit ad94a10a42
4 changed files with 344 additions and 19 deletions

View File

@@ -392,6 +392,77 @@ export interface AppointmentCommissionsUpdatedResponse {
ID?: EntityID;
}
//
// ReasonUpdated : this message tells that appointment reason has been modified
/**
* Event Payload
*
* @generated from protobuf message api.AppointmentReasonUpdatedPayload
*/
export interface AppointmentReasonUpdatedPayload {
/**
* @generated from protobuf field: string ActorID = 1
*/
ActorID: string;
/**
* @generated from protobuf field: string Reason = 4
*/
Reason: string;
}
/**
* Event message
*
* @generated from protobuf message api.AppointmentReasonUpdatedEvent
*/
export interface AppointmentReasonUpdatedEvent {
/**
* @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.AppointmentReasonUpdatedPayload Payload = 3
*/
Payload?: AppointmentReasonUpdatedPayload;
}
/**
* API Request
*
* @generated from protobuf message api.AppointmentReasonUpdatedRequest
*/
export interface AppointmentReasonUpdatedRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
/**
* @generated from protobuf field: api.AppointmentReasonUpdatedPayload Payload = 3
*/
Payload?: AppointmentReasonUpdatedPayload;
}
/**
* API Response
*
* @generated from protobuf message api.AppointmentReasonUpdatedResponse
*/
export interface AppointmentReasonUpdatedResponse {
/**
* @generated from protobuf field: api.ResponseHeader Header = 1
*/
Header?: ResponseHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
}
//
// AttachmentAdded : this message tells that an attachment is added for the appointment
/**
@@ -2521,6 +2592,234 @@ class AppointmentCommissionsUpdatedResponse$Type extends MessageType<Appointment
*/
export const AppointmentCommissionsUpdatedResponse = new AppointmentCommissionsUpdatedResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentReasonUpdatedPayload$Type extends MessageType<AppointmentReasonUpdatedPayload> {
constructor() {
super("api.AppointmentReasonUpdatedPayload", [
{ no: 1, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "ReasonUpdated" });
}
create(value?: PartialMessage<AppointmentReasonUpdatedPayload>): AppointmentReasonUpdatedPayload {
const message = globalThis.Object.create((this.messagePrototype!));
message.ActorID = "";
message.Reason = "";
if (value !== undefined)
reflectionMergePartial<AppointmentReasonUpdatedPayload>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentReasonUpdatedPayload): AppointmentReasonUpdatedPayload {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ActorID */ 1:
message.ActorID = reader.string();
break;
case /* string Reason */ 4:
message.Reason = 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: AppointmentReasonUpdatedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ActorID = 1; */
if (message.ActorID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ActorID);
/* string Reason = 4; */
if (message.Reason !== "")
writer.tag(4, WireType.LengthDelimited).string(message.Reason);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.AppointmentReasonUpdatedPayload
*/
export const AppointmentReasonUpdatedPayload = new AppointmentReasonUpdatedPayload$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentReasonUpdatedEvent$Type extends MessageType<AppointmentReasonUpdatedEvent> {
constructor() {
super("api.AppointmentReasonUpdatedEvent", [
{ 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: () => AppointmentReasonUpdatedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "ReasonUpdated" });
}
create(value?: PartialMessage<AppointmentReasonUpdatedEvent>): AppointmentReasonUpdatedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentReasonUpdatedEvent>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentReasonUpdatedEvent): AppointmentReasonUpdatedEvent {
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.AppointmentReasonUpdatedPayload Payload */ 3:
message.Payload = AppointmentReasonUpdatedPayload.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: AppointmentReasonUpdatedEvent, 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.AppointmentReasonUpdatedPayload Payload = 3; */
if (message.Payload)
AppointmentReasonUpdatedPayload.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.AppointmentReasonUpdatedEvent
*/
export const AppointmentReasonUpdatedEvent = new AppointmentReasonUpdatedEvent$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentReasonUpdatedRequest$Type extends MessageType<AppointmentReasonUpdatedRequest> {
constructor() {
super("api.AppointmentReasonUpdatedRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentReasonUpdatedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ReasonUpdated" });
}
create(value?: PartialMessage<AppointmentReasonUpdatedRequest>): AppointmentReasonUpdatedRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentReasonUpdatedRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentReasonUpdatedRequest): AppointmentReasonUpdatedRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.EntityID ID */ 2:
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
break;
case /* api.AppointmentReasonUpdatedPayload Payload */ 3:
message.Payload = AppointmentReasonUpdatedPayload.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: AppointmentReasonUpdatedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.EntityID ID = 2; */
if (message.ID)
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* api.AppointmentReasonUpdatedPayload Payload = 3; */
if (message.Payload)
AppointmentReasonUpdatedPayload.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.AppointmentReasonUpdatedRequest
*/
export const AppointmentReasonUpdatedRequest = new AppointmentReasonUpdatedRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentReasonUpdatedResponse$Type extends MessageType<AppointmentReasonUpdatedResponse> {
constructor() {
super("api.AppointmentReasonUpdatedResponse", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
], { "api.messageType": "Response", "api.inputEvent": "ReasonUpdated" });
}
create(value?: PartialMessage<AppointmentReasonUpdatedResponse>): AppointmentReasonUpdatedResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentReasonUpdatedResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentReasonUpdatedResponse): AppointmentReasonUpdatedResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResponseHeader Header */ 1:
message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.EntityID ID */ 2:
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: AppointmentReasonUpdatedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ResponseHeader Header = 1; */
if (message.Header)
ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.EntityID ID = 2; */
if (message.ID)
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.AppointmentReasonUpdatedResponse
*/
export const AppointmentReasonUpdatedResponse = new AppointmentReasonUpdatedResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentAttachmentAddedPayload$Type extends MessageType<AppointmentAttachmentAddedPayload> {
constructor() {
super("api.AppointmentAttachmentAddedPayload", [
@@ -6307,6 +6606,7 @@ export const AppointmentInputAPI = new ServiceType("api.AppointmentInputAPI", [
{ name: "Canceled", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment has been canceled." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentCanceledRequest, O: AppointmentCanceledResponse },
{ name: "SlotUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment date has been modified." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentSlotUpdatedRequest, O: AppointmentSlotUpdatedResponse },
{ name: "CommissionsUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment commissions has been modified." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentCommissionsUpdatedRequest, O: AppointmentCommissionsUpdatedResponse },
{ name: "ReasonUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment reason has been modified." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentReasonUpdatedRequest, O: AppointmentReasonUpdatedResponse },
{ name: "CarrierInformationUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment carrier information have been updated." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCarrierInformationUpdatedRequest, O: AppointmentCarrierInformationUpdatedResponse },
{ name: "CarrierExpected", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The carrier is expected for the appointment." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCarrierExpectedRequest, O: AppointmentCarrierExpectedResponse },
{ name: "AllocationError", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An allocation error occured on the appointment." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentAllocationErrorRequest, O: AppointmentAllocationErrorResponse },