Latest generation

This commit is contained in:
ci core model
2025-08-04 13:24:10 +00:00
parent 9eb9fad127
commit 52b19bc3e4
2 changed files with 28 additions and 2 deletions

View File

@@ -85,6 +85,12 @@ export interface AppointmentPayload {
* @generated from protobuf field: repeated string Emails = 7
*/
Emails: string[];
/**
* Emails removed from the appointment
*
* @generated from protobuf field: repeated string RemovedEmails = 16
*/
RemovedEmails: string[];
/**
* Appointment Status and status history
*
@@ -113,6 +119,10 @@ export interface AppointmentPayload {
* @generated from protobuf field: repeated api.AttachmentSummary Attachments = 13
*/
Attachments: AttachmentSummary[];
/**
* @generated from protobuf field: int32 AttachmentNumber = 14
*/
AttachmentNumber: number;
}
/**
* @generated from protobuf message api.AppointmentTriplet
@@ -201,12 +211,14 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
{ 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*/, options: { "validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } },
{ no: 16, name: "RemovedEmails", kind: "scalar", localName: "RemovedEmails", jsonName: "RemovedEmails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "api.aggSkip": "EmailsRemoved", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
{ no: 8, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => AppointmentStatusStruct, options: { "api.aggSkip": "StatusUpdated", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status of the appointment" } } },
{ no: 9, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "api.viewType": { Types: [{ Context: "*", Type: "date" }] }, "validate.rules": { string: { dateIso8601: true } } } },
{ no: 10, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "api.metadata": true, "api.aggKey": "Key", "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)" } } },
{ 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, options: { "api.aggSkip": "AttachmentAdded,AttachmentRemoved", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of attachments per type" } } }
{ no: 13, name: "Attachments", kind: "message", localName: "Attachments", jsonName: "Attachments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AttachmentSummary, options: { "api.aggSkip": "AttachmentAdded,AttachmentRemoved", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of attachments per type" } } },
{ no: 14, name: "AttachmentNumber", kind: "scalar", localName: "AttachmentNumber", jsonName: "AttachmentNumber", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Total number of attachments" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["AppointmentType", "Segmentations"] } } });
}
create(value?: PartialMessage<AppointmentPayload>): AppointmentPayload {
@@ -216,11 +228,13 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
message.SegmentationSelections = [];
message.CarrierInformation = [];
message.Emails = [];
message.RemovedEmails = [];
message.CreationDate = "";
message.MetaData = [];
message.CarrierID = "";
message.CarrierName = "";
message.Attachments = [];
message.AttachmentNumber = 0;
if (value !== undefined)
reflectionMergePartial<AppointmentPayload>(this, message, value);
return message;
@@ -248,6 +262,9 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
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;
@@ -266,6 +283,9 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
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;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -314,6 +334,12 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
/* 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);
/* repeated string RemovedEmails = 16; */
for (let i = 0; i < message.RemovedEmails.length; i++)
writer.tag(16, WireType.LengthDelimited).string(message.RemovedEmails[i]);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);

View File

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