Latest generation

This commit is contained in:
ci core model
2026-06-12 09:29:39 +00:00
parent 75b51eeae8
commit 523c935e9a
14 changed files with 537 additions and 19 deletions

View File

@@ -11,6 +11,7 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
import type { PartialMessage } from "@protobuf-ts/runtime";
import { reflectionMergePartial } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime";
import { ClaimSummary } from "./shared";
import { AttachmentSummary } from "./shared";
import { ResponseHeader } from "./shared";
import { RequestProjectHeader } from "./shared";
@@ -1890,6 +1891,65 @@ export interface AppointmentRedetectedResponse {
*/
ID?: EntityID;
}
//
// ClaimAdded : this message tells that A claim has been added on the Appointment.
/**
* @generated from protobuf message api.AppointmentClaimAddedPayload
*/
export interface AppointmentClaimAddedPayload {
/**
* @generated from protobuf field: repeated api.ClaimSummary Claims = 1
*/
Claims: ClaimSummary[];
}
/**
* @generated from protobuf message api.AppointmentClaimAddedEvent
*/
export interface AppointmentClaimAddedEvent {
/**
* @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.AppointmentClaimAddedPayload Payload = 3
*/
Payload?: AppointmentClaimAddedPayload;
}
/**
* @generated from protobuf message api.AppointmentClaimAddedRequest
*/
export interface AppointmentClaimAddedRequest {
/**
* @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.AppointmentClaimAddedPayload Payload = 3
*/
Payload?: AppointmentClaimAddedPayload;
}
/**
* @generated from protobuf message api.AppointmentClaimAddedResponse
*/
export interface AppointmentClaimAddedResponse {
/**
* @generated from protobuf field: api.ResponseHeader Header = 1
*/
Header?: ResponseHeader;
/**
* @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() {
@@ -7786,6 +7846,226 @@ class AppointmentRedetectedResponse$Type extends MessageType<AppointmentRedetect
* @generated MessageType for protobuf message api.AppointmentRedetectedResponse
*/
export const AppointmentRedetectedResponse = new AppointmentRedetectedResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentClaimAddedPayload$Type extends MessageType<AppointmentClaimAddedPayload> {
constructor() {
super("api.AppointmentClaimAddedPayload", [
{ no: 1, name: "Claims", kind: "message", localName: "Claims", jsonName: "Claims", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClaimSummary, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of claims added per type" }, "api.aggKey": "ClaimTypeID" } }
], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "ClaimAdded" });
}
create(value?: PartialMessage<AppointmentClaimAddedPayload>): AppointmentClaimAddedPayload {
const message = globalThis.Object.create((this.messagePrototype!));
message.Claims = [];
if (value !== undefined)
reflectionMergePartial<AppointmentClaimAddedPayload>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentClaimAddedPayload): AppointmentClaimAddedPayload {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.ClaimSummary Claims */ 1:
message.Claims.push(ClaimSummary.internalBinaryRead(reader, reader.uint32(), options));
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: AppointmentClaimAddedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.ClaimSummary Claims = 1; */
for (let i = 0; i < message.Claims.length; i++)
ClaimSummary.internalBinaryWrite(message.Claims[i], writer.tag(1, 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.AppointmentClaimAddedPayload
*/
export const AppointmentClaimAddedPayload = new AppointmentClaimAddedPayload$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentClaimAddedEvent$Type extends MessageType<AppointmentClaimAddedEvent> {
constructor() {
super("api.AppointmentClaimAddedEvent", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentClaimAddedPayload, options: { "n1validate.rules": { message: { required: true } } } }
], { "api.messageType": "Event", "api.inputEvent": "ClaimAdded", "api.preAggMethods": "addClaim" });
}
create(value?: PartialMessage<AppointmentClaimAddedEvent>): AppointmentClaimAddedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentClaimAddedEvent>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentClaimAddedEvent): AppointmentClaimAddedEvent {
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.AppointmentClaimAddedPayload Payload */ 3:
message.Payload = AppointmentClaimAddedPayload.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: AppointmentClaimAddedEvent, 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.AppointmentClaimAddedPayload Payload = 3; */
if (message.Payload)
AppointmentClaimAddedPayload.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.AppointmentClaimAddedEvent
*/
export const AppointmentClaimAddedEvent = new AppointmentClaimAddedEvent$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentClaimAddedRequest$Type extends MessageType<AppointmentClaimAddedRequest> {
constructor() {
super("api.AppointmentClaimAddedRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentClaimAddedPayload, options: { "n1validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ClaimAdded" });
}
create(value?: PartialMessage<AppointmentClaimAddedRequest>): AppointmentClaimAddedRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentClaimAddedRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentClaimAddedRequest): AppointmentClaimAddedRequest {
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.AppointmentClaimAddedPayload Payload */ 3:
message.Payload = AppointmentClaimAddedPayload.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: AppointmentClaimAddedRequest, 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.AppointmentClaimAddedPayload Payload = 3; */
if (message.Payload)
AppointmentClaimAddedPayload.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.AppointmentClaimAddedRequest
*/
export const AppointmentClaimAddedRequest = new AppointmentClaimAddedRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentClaimAddedResponse$Type extends MessageType<AppointmentClaimAddedResponse> {
constructor() {
super("api.AppointmentClaimAddedResponse", [
{ 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": "ClaimAdded" });
}
create(value?: PartialMessage<AppointmentClaimAddedResponse>): AppointmentClaimAddedResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentClaimAddedResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentClaimAddedResponse): AppointmentClaimAddedResponse {
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: AppointmentClaimAddedResponse, 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.AppointmentClaimAddedResponse
*/
export const AppointmentClaimAddedResponse = new AppointmentClaimAddedResponse$Type();
/**
* @generated ServiceType for protobuf service api.AppointmentInputAPI
*/
@@ -7815,5 +8095,6 @@ export const AppointmentInputAPI = new ServiceType("api.AppointmentInputAPI", [
{ name: "AttendeesRemoved", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "Appointment attendees have been removed." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentAttendeesRemovedRequest, O: AppointmentAttendeesRemovedResponse },
{ name: "Sanitised", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An Appointment has been sanitised." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.platformReserved": false, "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentSanitisedRequest, O: AppointmentSanitisedResponse },
{ name: "CustomFieldsUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "CustomFields have been updated." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_SITE", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCustomFieldsUpdatedRequest, O: AppointmentCustomFieldsUpdatedResponse },
{ name: "Redetected", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The associated appointment was not created correctly. Call this api to fix the appointment creation. " }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentRedetectedRequest, O: AppointmentRedetectedResponse }
{ name: "Redetected", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The associated appointment was not created correctly. Call this api to fix the appointment creation. " }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentRedetectedRequest, O: AppointmentRedetectedResponse },
{ name: "ClaimAdded", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "A claim has been added on the Appointment." }, "api.rscType": "Project", "api.roles": "Platform.Project-Claim", "api.platformReserved": true, "api.tags": "PROJECT_ACTIVITY", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentClaimAddedRequest, O: AppointmentClaimAddedResponse }
], { "api.serviceType": "Api", "api.k8sService": "collab-api-server" });