Latest generation

This commit is contained in:
ci core model
2025-07-28 13:09:26 +00:00
parent aa255ff65e
commit 2450e4bf38
4 changed files with 623 additions and 4 deletions

View File

@@ -10,6 +10,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 { AttachmentSummary } from "./shared";
import { MetadataElement } from "./shared";
import { AppointmentStatusStruct } from "./collabShared";
import { Slot } from "./slotbooking";
@@ -108,6 +109,10 @@ export interface AppointmentPayload {
* @generated from protobuf field: string CarrierName = 12
*/
CarrierName: string;
/**
* @generated from protobuf field: repeated api.AttachmentSummary Attachments = 13
*/
Attachments: AttachmentSummary[];
}
/**
* @generated from protobuf message api.AppointmentTriplet
@@ -200,7 +205,8 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
{ no: 9, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
{ no: 10, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the site. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key" } },
{ no: 11, name: "CarrierID", kind: "scalar", localName: "CarrierID", jsonName: "CarrierID", T: 9 /*ScalarType.STRING*/ },
{ no: 12, name: "CarrierName", kind: "scalar", localName: "CarrierName", jsonName: "CarrierName", T: 9 /*ScalarType.STRING*/ }
{ no: 12, name: "CarrierName", kind: "scalar", localName: "CarrierName", jsonName: "CarrierName", T: 9 /*ScalarType.STRING*/ },
{ no: 13, name: "Attachments", kind: "message", localName: "Attachments", jsonName: "Attachments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AttachmentSummary, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of attachments per type" }, "api.aggSkip": "AttachmentAdded,AttachmentRemoved" } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["AppointmentType", "Segmentations"] } } });
}
create(value?: PartialMessage<AppointmentPayload>): AppointmentPayload {
@@ -214,6 +220,7 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
message.MetaData = [];
message.CarrierID = "";
message.CarrierName = "";
message.Attachments = [];
if (value !== undefined)
reflectionMergePartial<AppointmentPayload>(this, message, value);
return message;
@@ -256,6 +263,9 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
case /* string CarrierName */ 12:
message.CarrierName = reader.string();
break;
case /* repeated api.AttachmentSummary Attachments */ 13:
message.Attachments.push(AttachmentSummary.internalBinaryRead(reader, reader.uint32(), options));
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -301,6 +311,9 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
/* string CarrierName = 12; */
if (message.CarrierName !== "")
writer.tag(12, WireType.LengthDelimited).string(message.CarrierName);
/* repeated api.AttachmentSummary Attachments = 13; */
for (let i = 0; i < message.Attachments.length; i++)
AttachmentSummary.internalBinaryWrite(message.Attachments[i], writer.tag(13, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);

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 { 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";
@@ -98,6 +102,14 @@ 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>;
}
/**
*
@@ -209,4 +221,18 @@ 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);
}
}

View File

@@ -961,6 +961,144 @@ export interface AppointmentMetaDataUpdatedResponse {
*/
ID?: EntityID;
}
//
// AssigneesAdded : this message tells that appointment assignees have been added
/**
* Event Payload
*
* @generated from protobuf message api.AppointmentAssigneesAddedPayload
*/
export interface AppointmentAssigneesAddedPayload {
/**
* Contacts assigned on the appointment
*
* @generated from protobuf field: repeated string Assignees = 7
*/
Assignees: string[];
}
/**
* Event message
*
* @generated from protobuf message api.AppointmentAssigneesAddedEvent
*/
export interface AppointmentAssigneesAddedEvent {
/**
* @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.AppointmentAssigneesAddedPayload Payload = 3
*/
Payload?: AppointmentAssigneesAddedPayload;
}
/**
* API Request
*
* @generated from protobuf message api.AppointmentAssigneesAddedRequest
*/
export interface AppointmentAssigneesAddedRequest {
/**
* @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.AppointmentAssigneesAddedPayload Payload = 3
*/
Payload?: AppointmentAssigneesAddedPayload;
}
/**
* API Response
*
* @generated from protobuf message api.AppointmentAssigneesAddedResponse
*/
export interface AppointmentAssigneesAddedResponse {
/**
* @generated from protobuf field: api.ResponseHeader Header = 1
*/
Header?: ResponseHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
}
//
// AssigneesRemoved : this message tells that appointment assignees have been added
/**
* Event Payload
*
* @generated from protobuf message api.AppointmentAssigneesRemovedPayload
*/
export interface AppointmentAssigneesRemovedPayload {
/**
* Contacts removed from the appointment
*
* @generated from protobuf field: repeated string RemovedAssignees = 7
*/
RemovedAssignees: string[];
}
/**
* Event message
*
* @generated from protobuf message api.AppointmentAssigneesRemovedEvent
*/
export interface AppointmentAssigneesRemovedEvent {
/**
* @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.AppointmentAssigneesRemovedPayload Payload = 3
*/
Payload?: AppointmentAssigneesRemovedPayload;
}
/**
* API Request
*
* @generated from protobuf message api.AppointmentAssigneesRemovedRequest
*/
export interface AppointmentAssigneesRemovedRequest {
/**
* @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.AppointmentAssigneesRemovedPayload Payload = 3
*/
Payload?: AppointmentAssigneesRemovedPayload;
}
/**
* API Response
*
* @generated from protobuf message api.AppointmentAssigneesRemovedResponse
*/
export interface AppointmentAssigneesRemovedResponse {
/**
* @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() {
@@ -4031,6 +4169,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 AppointmentAssigneesAddedPayload$Type extends MessageType<AppointmentAssigneesAddedPayload> {
constructor() {
super("api.AppointmentAssigneesAddedPayload", [
{ no: 7, name: "Assignees", kind: "scalar", localName: "Assignees", jsonName: "Assignees", 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: ["Assignees"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "AssigneesAdded" });
}
create(value?: PartialMessage<AppointmentAssigneesAddedPayload>): AppointmentAssigneesAddedPayload {
const message = globalThis.Object.create((this.messagePrototype!));
message.Assignees = [];
if (value !== undefined)
reflectionMergePartial<AppointmentAssigneesAddedPayload>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAssigneesAddedPayload): AppointmentAssigneesAddedPayload {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated string Assignees */ 7:
message.Assignees.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: AppointmentAssigneesAddedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated string Assignees = 7; */
for (let i = 0; i < message.Assignees.length; i++)
writer.tag(7, WireType.LengthDelimited).string(message.Assignees[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.AppointmentAssigneesAddedPayload
*/
export const AppointmentAssigneesAddedPayload = new AppointmentAssigneesAddedPayload$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentAssigneesAddedEvent$Type extends MessageType<AppointmentAssigneesAddedEvent> {
constructor() {
super("api.AppointmentAssigneesAddedEvent", [
{ 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: () => AppointmentAssigneesAddedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "AssigneesAdded", "api.preAggMethods": "addAssignees" });
}
create(value?: PartialMessage<AppointmentAssigneesAddedEvent>): AppointmentAssigneesAddedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentAssigneesAddedEvent>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAssigneesAddedEvent): AppointmentAssigneesAddedEvent {
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.AppointmentAssigneesAddedPayload Payload */ 3:
message.Payload = AppointmentAssigneesAddedPayload.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: AppointmentAssigneesAddedEvent, 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.AppointmentAssigneesAddedPayload Payload = 3; */
if (message.Payload)
AppointmentAssigneesAddedPayload.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.AppointmentAssigneesAddedEvent
*/
export const AppointmentAssigneesAddedEvent = new AppointmentAssigneesAddedEvent$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentAssigneesAddedRequest$Type extends MessageType<AppointmentAssigneesAddedRequest> {
constructor() {
super("api.AppointmentAssigneesAddedRequest", [
{ 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: () => AppointmentAssigneesAddedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AssigneesAdded" });
}
create(value?: PartialMessage<AppointmentAssigneesAddedRequest>): AppointmentAssigneesAddedRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentAssigneesAddedRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAssigneesAddedRequest): AppointmentAssigneesAddedRequest {
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.AppointmentAssigneesAddedPayload Payload */ 3:
message.Payload = AppointmentAssigneesAddedPayload.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: AppointmentAssigneesAddedRequest, 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.AppointmentAssigneesAddedPayload Payload = 3; */
if (message.Payload)
AppointmentAssigneesAddedPayload.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.AppointmentAssigneesAddedRequest
*/
export const AppointmentAssigneesAddedRequest = new AppointmentAssigneesAddedRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentAssigneesAddedResponse$Type extends MessageType<AppointmentAssigneesAddedResponse> {
constructor() {
super("api.AppointmentAssigneesAddedResponse", [
{ 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": "AssigneesAdded" });
}
create(value?: PartialMessage<AppointmentAssigneesAddedResponse>): AppointmentAssigneesAddedResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentAssigneesAddedResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAssigneesAddedResponse): AppointmentAssigneesAddedResponse {
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: AppointmentAssigneesAddedResponse, 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.AppointmentAssigneesAddedResponse
*/
export const AppointmentAssigneesAddedResponse = new AppointmentAssigneesAddedResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentAssigneesRemovedPayload$Type extends MessageType<AppointmentAssigneesRemovedPayload> {
constructor() {
super("api.AppointmentAssigneesRemovedPayload", [
{ no: 7, name: "RemovedAssignees", kind: "scalar", localName: "RemovedAssignees", jsonName: "RemovedAssignees", 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: ["RemovedAssignees"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "AssigneesRemoved" });
}
create(value?: PartialMessage<AppointmentAssigneesRemovedPayload>): AppointmentAssigneesRemovedPayload {
const message = globalThis.Object.create((this.messagePrototype!));
message.RemovedAssignees = [];
if (value !== undefined)
reflectionMergePartial<AppointmentAssigneesRemovedPayload>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAssigneesRemovedPayload): AppointmentAssigneesRemovedPayload {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated string RemovedAssignees */ 7:
message.RemovedAssignees.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: AppointmentAssigneesRemovedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated string RemovedAssignees = 7; */
for (let i = 0; i < message.RemovedAssignees.length; i++)
writer.tag(7, WireType.LengthDelimited).string(message.RemovedAssignees[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.AppointmentAssigneesRemovedPayload
*/
export const AppointmentAssigneesRemovedPayload = new AppointmentAssigneesRemovedPayload$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentAssigneesRemovedEvent$Type extends MessageType<AppointmentAssigneesRemovedEvent> {
constructor() {
super("api.AppointmentAssigneesRemovedEvent", [
{ 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: () => AppointmentAssigneesRemovedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "AssigneesRemoved", "api.preAggMethods": "removeAssignees" });
}
create(value?: PartialMessage<AppointmentAssigneesRemovedEvent>): AppointmentAssigneesRemovedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentAssigneesRemovedEvent>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAssigneesRemovedEvent): AppointmentAssigneesRemovedEvent {
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.AppointmentAssigneesRemovedPayload Payload */ 3:
message.Payload = AppointmentAssigneesRemovedPayload.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: AppointmentAssigneesRemovedEvent, 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.AppointmentAssigneesRemovedPayload Payload = 3; */
if (message.Payload)
AppointmentAssigneesRemovedPayload.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.AppointmentAssigneesRemovedEvent
*/
export const AppointmentAssigneesRemovedEvent = new AppointmentAssigneesRemovedEvent$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentAssigneesRemovedRequest$Type extends MessageType<AppointmentAssigneesRemovedRequest> {
constructor() {
super("api.AppointmentAssigneesRemovedRequest", [
{ 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: () => AppointmentAssigneesRemovedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AssigneesRemoved" });
}
create(value?: PartialMessage<AppointmentAssigneesRemovedRequest>): AppointmentAssigneesRemovedRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentAssigneesRemovedRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAssigneesRemovedRequest): AppointmentAssigneesRemovedRequest {
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.AppointmentAssigneesRemovedPayload Payload */ 3:
message.Payload = AppointmentAssigneesRemovedPayload.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: AppointmentAssigneesRemovedRequest, 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.AppointmentAssigneesRemovedPayload Payload = 3; */
if (message.Payload)
AppointmentAssigneesRemovedPayload.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.AppointmentAssigneesRemovedRequest
*/
export const AppointmentAssigneesRemovedRequest = new AppointmentAssigneesRemovedRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentAssigneesRemovedResponse$Type extends MessageType<AppointmentAssigneesRemovedResponse> {
constructor() {
super("api.AppointmentAssigneesRemovedResponse", [
{ 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": "AssigneesRemoved" });
}
create(value?: PartialMessage<AppointmentAssigneesRemovedResponse>): AppointmentAssigneesRemovedResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentAssigneesRemovedResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAssigneesRemovedResponse): AppointmentAssigneesRemovedResponse {
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: AppointmentAssigneesRemovedResponse, 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.AppointmentAssigneesRemovedResponse
*/
export const AppointmentAssigneesRemovedResponse = new AppointmentAssigneesRemovedResponse$Type();
/**
* @generated ServiceType for protobuf service api.AppointmentInputAPI
*/
@@ -4047,6 +4625,8 @@ export const AppointmentInputAPI = new ServiceType("api.AppointmentInputAPI", [
{ name: "ReceptionUnloaded", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The appointment reception is unloaded." }, "api.rscType": "Site", "api.roles": "Platform.Site-Input", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentReceptionUnloadedRequest, O: AppointmentReceptionUnloadedResponse },
{ 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": "Project", "api.roles": "Platform.Project-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": "Project", "api.roles": "Platform.Project-Attachment", "api.platformReserved": true, "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentAttachmentRemovedRequest, O: AppointmentAttachmentRemovedResponse }
{ 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: "AssigneesAdded", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "A appointment assignees have been added." }, "api.rscType": "Site", "api.roles": "Platform.Site-Input", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentAssigneesAddedRequest, O: AppointmentAssigneesAddedResponse },
{ name: "AssigneesRemoved", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "A appointment assignees have been removed." }, "api.rscType": "Site", "api.roles": "Platform.Site-Input", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentAssigneesRemovedRequest, O: AppointmentAssigneesRemovedResponse }
], { "api.serviceType": "Api", "api.k8sService": "collab-api-server" });

View File

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