From 2bff3fcba2a23779c727514017e32f6abbe309c1 Mon Sep 17 00:00:00 2001 From: ci core model Date: Tue, 5 Aug 2025 13:20:13 +0000 Subject: [PATCH] Latest generation --- appointment.ts | 26 +++++++++++++- package.json | 2 +- site.ts | 92 +++++++++++++++++++++++++++++++++++++++++++++++--- slotbooking.ts | 26 +++++++++++++- 4 files changed, 139 insertions(+), 7 deletions(-) diff --git a/appointment.ts b/appointment.ts index bf4f42d..88ff2cb 100644 --- a/appointment.ts +++ b/appointment.ts @@ -123,6 +123,14 @@ export interface AppointmentPayload { * @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 message api.AppointmentTriplet @@ -218,7 +226,9 @@ class AppointmentPayload$Type extends MessageType { { 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: 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" } } } + { 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" } } }, + { 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*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["AppointmentType", "Segmentations"] } } }); } create(value?: PartialMessage): AppointmentPayload { @@ -235,6 +245,8 @@ class AppointmentPayload$Type extends MessageType { message.CarrierName = ""; message.Attachments = []; message.AttachmentNumber = 0; + message.HasCommission = false; + message.Reason = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -286,6 +298,12 @@ class AppointmentPayload$Type extends MessageType { 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; default: let u = options.readUnknownField; if (u === "throw") @@ -337,9 +355,15 @@ class AppointmentPayload$Type extends MessageType { /* 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); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); diff --git a/package.json b/package.json index 738e55f..8d63040 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.11.0-SNAPSHOT-250804132324", + "version": "1.11.0-SNAPSHOT-250805131955", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts", diff --git a/site.ts b/site.ts index 1996c7a..0a3caf4 100644 --- a/site.ts +++ b/site.ts @@ -673,6 +673,12 @@ export interface BookAppointmentRequest { * @generated from protobuf field: string CarrierName = 10 */ CarrierName: string; + /** + * The appointment ID, usually generated using siteCounterServices + * + * @generated from protobuf field: string AppointmentID = 11 + */ + AppointmentID: string; } /** * BookAppointment @@ -739,6 +745,18 @@ export interface BookAppointmentNoReferenceRequest { * @generated from protobuf field: string CarrierName = 10 */ CarrierName: string; + /** + * The appointment ID, usually generated using siteCounterServices + * + * @generated from protobuf field: string AppointmentID = 11 + */ + AppointmentID: string; + /** + * The Reason for which the appointment has no commissions + * + * @generated from protobuf field: string Reason = 12 + */ + Reason: string; } /** * BookAppointment @@ -805,6 +823,12 @@ export interface WMSBookAppointmentRequest { * @generated from protobuf field: string TimeZone = 11 */ TimeZone: string; + /** + * The appointment ID, usually generated using siteCounterServices + * + * @generated from protobuf field: string AppointmentID = 12 + */ + AppointmentID: string; } /** * BookAppointment @@ -877,6 +901,18 @@ export interface WMSBookAppointmentNoReferenceRequest { * @generated from protobuf field: string TimeZone = 11 */ TimeZone: string; + /** + * The appointment ID, usually generated using siteCounterServices + * + * @generated from protobuf field: string AppointmentID = 12 + */ + AppointmentID: string; + /** + * The Reason for which the appointment has no commissions + * + * @generated from protobuf field: string Reason = 13 + */ + Reason: string; } /** * @generated from protobuf message api.BookAppointmentResponse @@ -2787,7 +2823,8 @@ class BookAppointmentRequest$Type extends MessageType { { no: 6, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot }, { no: 8, 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: 9, name: "CarrierID", kind: "scalar", localName: "CarrierID", jsonName: "CarrierID", T: 9 /*ScalarType.STRING*/ }, - { no: 10, name: "CarrierName", kind: "scalar", localName: "CarrierName", jsonName: "CarrierName", T: 9 /*ScalarType.STRING*/ } + { no: 10, name: "CarrierName", kind: "scalar", localName: "CarrierName", jsonName: "CarrierName", T: 9 /*ScalarType.STRING*/ }, + { no: 11, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType", "Commissions", "Segmentations", "CarrierInformation"] } } }); } create(value?: PartialMessage): BookAppointmentRequest { @@ -2800,6 +2837,7 @@ class BookAppointmentRequest$Type extends MessageType { message.Emails = []; message.CarrierID = ""; message.CarrierName = ""; + message.AppointmentID = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -2836,6 +2874,9 @@ class BookAppointmentRequest$Type extends MessageType { case /* string CarrierName */ 10: message.CarrierName = reader.string(); break; + case /* string AppointmentID */ 11: + message.AppointmentID = reader.string(); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -2875,6 +2916,9 @@ class BookAppointmentRequest$Type extends MessageType { /* string CarrierName = 10; */ if (message.CarrierName !== "") writer.tag(10, WireType.LengthDelimited).string(message.CarrierName); + /* string AppointmentID = 11; */ + if (message.AppointmentID !== "") + writer.tag(11, WireType.LengthDelimited).string(message.AppointmentID); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -2898,7 +2942,9 @@ class BookAppointmentNoReferenceRequest$Type extends MessageType Slot }, { no: 8, 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: 9, name: "CarrierID", kind: "scalar", localName: "CarrierID", jsonName: "CarrierID", T: 9 /*ScalarType.STRING*/ }, - { no: 10, name: "CarrierName", kind: "scalar", localName: "CarrierName", jsonName: "CarrierName", T: 9 /*ScalarType.STRING*/ } + { no: 10, name: "CarrierName", kind: "scalar", localName: "CarrierName", jsonName: "CarrierName", T: 9 /*ScalarType.STRING*/ }, + { no: 11, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/ }, + { no: 12, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType", "ProjectID", "Quantities", "Segmentations", "CarrierInformation"] } } }); } create(value?: PartialMessage): BookAppointmentNoReferenceRequest { @@ -2912,6 +2958,8 @@ class BookAppointmentNoReferenceRequest$Type extends MessageType(this, message, value); return message; @@ -2951,6 +2999,12 @@ class BookAppointmentNoReferenceRequest$Type extends MessageType): WMSBookAppointmentRequest { @@ -3030,6 +3091,7 @@ class WMSBookAppointmentRequest$Type extends MessageType(this, message, value); return message; @@ -3069,6 +3131,9 @@ class WMSBookAppointmentRequest$Type extends MessageType): WMSBookAppointmentNoReferenceRequest { @@ -3150,6 +3220,8 @@ class WMSBookAppointmentNoReferenceRequest$Type extends MessageType(this, message, value); return message; @@ -3192,6 +3264,12 @@ class WMSBookAppointmentNoReferenceRequest$Type extends MessageType { { 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: 3, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection }, - { no: 4, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot } + { no: 4, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot }, + { no: 5, name: "AppointmentKind", kind: "scalar", localName: "AppointmentKind", jsonName: "AppointmentKind", T: 9 /*ScalarType.STRING*/ }, + { no: 6, name: "HasReference", kind: "scalar", localName: "HasReference", jsonName: "HasReference", T: 8 /*ScalarType.BOOL*/ } ]); } create(value?: PartialMessage): Booking { @@ -2333,6 +2343,8 @@ class Booking$Type extends MessageType { message.Commissions = []; message.SegmentationSelections = []; message.Slots = []; + message.AppointmentKind = ""; + message.HasReference = false; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -2354,6 +2366,12 @@ class Booking$Type extends MessageType { case /* repeated api.Slot Slots */ 4: message.Slots.push(Slot.internalBinaryRead(reader, reader.uint32(), options)); break; + case /* string AppointmentKind */ 5: + message.AppointmentKind = reader.string(); + break; + case /* bool HasReference */ 6: + message.HasReference = reader.bool(); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -2378,6 +2396,12 @@ class Booking$Type extends MessageType { /* repeated api.Slot Slots = 4; */ for (let i = 0; i < message.Slots.length; i++) Slot.internalBinaryWrite(message.Slots[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join(); + /* string AppointmentKind = 5; */ + if (message.AppointmentKind !== "") + writer.tag(5, WireType.LengthDelimited).string(message.AppointmentKind); + /* bool HasReference = 6; */ + if (message.HasReference !== false) + writer.tag(6, WireType.Varint).bool(message.HasReference); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);