From 49115fd1f123ab9716e8f5e5b074474c9725d2f4 Mon Sep 17 00:00:00 2001 From: ci core model Date: Fri, 3 Oct 2025 08:12:16 +0000 Subject: [PATCH] Latest generation --- appointmentAction.ts | 375 +++++++++++++++++++++++++++++++++++++++++++ index.ts | 1 + package.json | 2 +- 3 files changed, 377 insertions(+), 1 deletion(-) create mode 100644 appointmentAction.ts diff --git a/appointmentAction.ts b/appointmentAction.ts new file mode 100644 index 0000000..77f3055 --- /dev/null +++ b/appointmentAction.ts @@ -0,0 +1,375 @@ +// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix +// @generated from protobuf file "appointmentAction.proto" (package "api", syntax proto3) +// tslint:disable +import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; +import type { IBinaryWriter } from "@protobuf-ts/runtime"; +import { WireType } from "@protobuf-ts/runtime"; +import type { BinaryReadOptions } from "@protobuf-ts/runtime"; +import type { IBinaryReader } from "@protobuf-ts/runtime"; +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 { EntityID } from "./shared"; +import { CommandHeader } from "./shared"; +import { AttachmentSummary } from "./shared"; +import { MetadataElement } from "./shared"; +import { AppointmentStatusStruct } from "./collabShared"; +import { Slot } from "./slotbooking"; +import { CarrierInformationWithValue } from "./slotbooking"; +import { SegmentationSelection } from "./slotbooking"; +import { Commission } from "./slotbooking"; +import { AppointmentType } from "./slotbooking"; +// Action Summary +// - Notify : Push appointment to project present into the commissions + +/** + * + * Notify : Push the claim event to notification + * + * @generated from protobuf message api.AppointmentNotifyPayload + */ +export interface AppointmentNotifyPayload { + /** + * @generated from protobuf field: api.AppointmentType AppointmentType = 1 + */ + AppointmentType: AppointmentType; + /** + * @generated from protobuf field: repeated api.Commission Commissions = 2 + */ + Commissions: Commission[]; + /** + * @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 4 + */ + SegmentationSelections: SegmentationSelection[]; + /** + * @generated from protobuf field: repeated api.CarrierInformationWithValue CarrierInformation = 5 + */ + CarrierInformation: CarrierInformationWithValue[]; + /** + * @generated from protobuf field: api.Slot Slot = 6 + */ + Slot?: Slot; + /** + * @generated from protobuf field: repeated string Emails = 7 + */ + Emails: string[]; + /** + * @generated from protobuf field: repeated string RemovedEmails = 16 + */ + RemovedEmails: string[]; + /** + * @generated from protobuf field: api.AppointmentStatusStruct Status = 8 + */ + Status?: AppointmentStatusStruct; + /** + * @generated from protobuf field: string CreationDate = 9 + */ + CreationDate: string; + /** + * @generated from protobuf field: repeated api.MetadataElement MetaData = 10 + */ + MetaData: MetadataElement[]; + /** + * @generated from protobuf field: string CarrierID = 11 + */ + CarrierID: string; + /** + * @generated from protobuf field: string CarrierName = 12 + */ + CarrierName: string; + /** + * @generated from protobuf field: repeated api.AttachmentSummary Attachments = 13 + */ + Attachments: AttachmentSummary[]; + /** + * @generated from protobuf field: int32 AttachmentNumber = 14 + */ + AttachmentNumber: number; + /** + * @generated from protobuf field: bool HasCommission = 15 + */ + HasCommission: boolean; + /** + * @generated from protobuf field: string Reason = 17 + */ + Reason: string; + /** + * @generated from protobuf field: bool InstructionAck = 18 + */ + InstructionAck: boolean; +} +/** + * @generated from protobuf message api.AppointmentNotify + */ +export interface AppointmentNotify { + /** + * option (triggerEventFilters) = "All"; + * + * @generated from protobuf field: api.CommandHeader Header = 1 + */ + Header?: CommandHeader; + /** + * @generated from protobuf field: api.EntityID ID = 2 + */ + ID?: EntityID; + /** + * @generated from protobuf field: api.AppointmentNotifyPayload Payload = 3 + */ + Payload?: AppointmentNotifyPayload; + /** + * @generated from protobuf field: api.AppointmentNotifyPayload EventPayload = 4 + */ + EventPayload?: AppointmentNotifyPayload; + /** + * @generated from protobuf field: api.AppointmentNotifyPayload PreviousPayload = 5 + */ + PreviousPayload?: AppointmentNotifyPayload; +} +// @generated message type with reflection information, may provide speed optimized methods +class AppointmentNotifyPayload$Type extends MessageType { + constructor() { + super("api.AppointmentNotifyPayload", [ + { no: 1, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType] }, + { no: 2, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission }, + { no: 4, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection }, + { no: 5, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformationWithValue }, + { no: 6, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot }, + { no: 7, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, + { no: 16, name: "RemovedEmails", kind: "scalar", localName: "RemovedEmails", jsonName: "RemovedEmails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, + { no: 8, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => AppointmentStatusStruct }, + { no: 9, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/ }, + { no: 10, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement }, + { 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: 13, name: "Attachments", kind: "message", localName: "Attachments", jsonName: "Attachments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AttachmentSummary }, + { no: 14, name: "AttachmentNumber", kind: "scalar", localName: "AttachmentNumber", jsonName: "AttachmentNumber", T: 5 /*ScalarType.INT32*/ }, + { no: 15, name: "HasCommission", kind: "scalar", localName: "HasCommission", jsonName: "HasCommission", T: 8 /*ScalarType.BOOL*/ }, + { no: 17, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ }, + { no: 18, name: "InstructionAck", kind: "scalar", localName: "InstructionAck", jsonName: "InstructionAck", T: 8 /*ScalarType.BOOL*/ } + ], { "api.messageType": "Command", "api.payload": true, "api.action": "Notify" }); + } + create(value?: PartialMessage): AppointmentNotifyPayload { + const message = globalThis.Object.create((this.messagePrototype!)); + message.AppointmentType = 0; + message.Commissions = []; + message.SegmentationSelections = []; + message.CarrierInformation = []; + message.Emails = []; + message.RemovedEmails = []; + message.CreationDate = ""; + message.MetaData = []; + message.CarrierID = ""; + message.CarrierName = ""; + message.Attachments = []; + message.AttachmentNumber = 0; + message.HasCommission = false; + message.Reason = ""; + message.InstructionAck = false; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentNotifyPayload): AppointmentNotifyPayload { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.AppointmentType AppointmentType */ 1: + message.AppointmentType = reader.int32(); + break; + case /* repeated api.Commission Commissions */ 2: + message.Commissions.push(Commission.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* repeated api.SegmentationSelection SegmentationSelections */ 4: + message.SegmentationSelections.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* repeated api.CarrierInformationWithValue CarrierInformation */ 5: + message.CarrierInformation.push(CarrierInformationWithValue.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* api.Slot Slot */ 6: + message.Slot = Slot.internalBinaryRead(reader, reader.uint32(), options, message.Slot); + break; + case /* repeated string Emails */ 7: + message.Emails.push(reader.string()); + break; + case /* repeated string RemovedEmails */ 16: + message.RemovedEmails.push(reader.string()); + break; + case /* api.AppointmentStatusStruct Status */ 8: + message.Status = AppointmentStatusStruct.internalBinaryRead(reader, reader.uint32(), options, message.Status); + break; + case /* string CreationDate */ 9: + message.CreationDate = reader.string(); + break; + case /* repeated api.MetadataElement MetaData */ 10: + message.MetaData.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options)); + break; + case /* string CarrierID */ 11: + message.CarrierID = reader.string(); + break; + 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; + case /* int32 AttachmentNumber */ 14: + message.AttachmentNumber = reader.int32(); + break; + case /* bool HasCommission */ 15: + message.HasCommission = reader.bool(); + break; + case /* string Reason */ 17: + message.Reason = reader.string(); + break; + case /* bool InstructionAck */ 18: + message.InstructionAck = reader.bool(); + 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: AppointmentNotifyPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.AppointmentType AppointmentType = 1; */ + if (message.AppointmentType !== 0) + writer.tag(1, WireType.Varint).int32(message.AppointmentType); + /* repeated api.Commission Commissions = 2; */ + for (let i = 0; i < message.Commissions.length; i++) + Commission.internalBinaryWrite(message.Commissions[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join(); + /* repeated api.SegmentationSelection SegmentationSelections = 4; */ + for (let i = 0; i < message.SegmentationSelections.length; i++) + SegmentationSelection.internalBinaryWrite(message.SegmentationSelections[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join(); + /* repeated api.CarrierInformationWithValue CarrierInformation = 5; */ + for (let i = 0; i < message.CarrierInformation.length; i++) + CarrierInformationWithValue.internalBinaryWrite(message.CarrierInformation[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join(); + /* api.Slot Slot = 6; */ + if (message.Slot) + Slot.internalBinaryWrite(message.Slot, writer.tag(6, WireType.LengthDelimited).fork(), options).join(); + /* repeated string Emails = 7; */ + for (let i = 0; i < message.Emails.length; i++) + writer.tag(7, WireType.LengthDelimited).string(message.Emails[i]); + /* api.AppointmentStatusStruct Status = 8; */ + if (message.Status) + AppointmentStatusStruct.internalBinaryWrite(message.Status, writer.tag(8, WireType.LengthDelimited).fork(), options).join(); + /* string CreationDate = 9; */ + if (message.CreationDate !== "") + writer.tag(9, WireType.LengthDelimited).string(message.CreationDate); + /* repeated api.MetadataElement MetaData = 10; */ + for (let i = 0; i < message.MetaData.length; i++) + MetadataElement.internalBinaryWrite(message.MetaData[i], writer.tag(10, WireType.LengthDelimited).fork(), options).join(); + /* string CarrierID = 11; */ + if (message.CarrierID !== "") + writer.tag(11, WireType.LengthDelimited).string(message.CarrierID); + /* 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(); + /* int32 AttachmentNumber = 14; */ + if (message.AttachmentNumber !== 0) + writer.tag(14, WireType.Varint).int32(message.AttachmentNumber); + /* bool HasCommission = 15; */ + if (message.HasCommission !== false) + writer.tag(15, WireType.Varint).bool(message.HasCommission); + /* repeated string RemovedEmails = 16; */ + for (let i = 0; i < message.RemovedEmails.length; i++) + writer.tag(16, WireType.LengthDelimited).string(message.RemovedEmails[i]); + /* string Reason = 17; */ + if (message.Reason !== "") + writer.tag(17, WireType.LengthDelimited).string(message.Reason); + /* bool InstructionAck = 18; */ + if (message.InstructionAck !== false) + writer.tag(18, WireType.Varint).bool(message.InstructionAck); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.AppointmentNotifyPayload + */ +export const AppointmentNotifyPayload = new AppointmentNotifyPayload$Type(); +// @generated message type with reflection information, may provide speed optimized methods +class AppointmentNotify$Type extends MessageType { + constructor() { + super("api.AppointmentNotify", [ + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => CommandHeader }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentNotifyPayload }, + { no: 4, name: "EventPayload", kind: "message", localName: "EventPayload", jsonName: "EventPayload", T: () => AppointmentNotifyPayload }, + { no: 5, name: "PreviousPayload", kind: "message", localName: "PreviousPayload", jsonName: "PreviousPayload", T: () => AppointmentNotifyPayload } + ], { "api.messageType": "Command", "api.action": "Notify" }); + } + create(value?: PartialMessage): AppointmentNotify { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentNotify): AppointmentNotify { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* api.CommandHeader Header */ 1: + message.Header = CommandHeader.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.AppointmentNotifyPayload Payload */ 3: + message.Payload = AppointmentNotifyPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload); + break; + case /* api.AppointmentNotifyPayload EventPayload */ 4: + message.EventPayload = AppointmentNotifyPayload.internalBinaryRead(reader, reader.uint32(), options, message.EventPayload); + break; + case /* api.AppointmentNotifyPayload PreviousPayload */ 5: + message.PreviousPayload = AppointmentNotifyPayload.internalBinaryRead(reader, reader.uint32(), options, message.PreviousPayload); + 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: AppointmentNotify, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* api.CommandHeader Header = 1; */ + if (message.Header) + CommandHeader.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.AppointmentNotifyPayload Payload = 3; */ + if (message.Payload) + AppointmentNotifyPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); + /* api.AppointmentNotifyPayload EventPayload = 4; */ + if (message.EventPayload) + AppointmentNotifyPayload.internalBinaryWrite(message.EventPayload, writer.tag(4, WireType.LengthDelimited).fork(), options).join(); + /* api.AppointmentNotifyPayload PreviousPayload = 5; */ + if (message.PreviousPayload) + AppointmentNotifyPayload.internalBinaryWrite(message.PreviousPayload, writer.tag(5, 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.AppointmentNotify + */ +export const AppointmentNotify = new AppointmentNotify$Type(); diff --git a/index.ts b/index.ts index bece8c3..8d9312f 100644 --- a/index.ts +++ b/index.ts @@ -17,6 +17,7 @@ export * from './api.client' export * from './api' export * from './appointment' + export * from './appointmentAction' export * from './appointmentInput.client' export * from './appointmentInput' export * from './appointmentQuery.client' diff --git a/package.json b/package.json index cea0dcc..b702e31 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.12.0-SNAPSHOT-251003080626", + "version": "1.12.0-SNAPSHOT-251003081129", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts",