From 786fe0f88055d6993ef5338cb7fb36ae4ae2f85b Mon Sep 17 00:00:00 2001 From: ci core model Date: Tue, 12 May 2026 10:58:29 +0000 Subject: [PATCH] Latest generation --- package.json | 2 +- site.ts | 114 ++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 113 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index feaf97da..a4d02639 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.14.0-SNAPSHOT-260512073424", + "version": "1.14.0-SNAPSHOT-260512105750", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts", diff --git a/site.ts b/site.ts index 90533f14..0633da75 100644 --- a/site.ts +++ b/site.ts @@ -162,6 +162,12 @@ export interface Site { * @generated from protobuf field: string PrefixAppointmentID = 23 */ PrefixAppointmentID: string; + /** + * standAlone mode configuration + * + * @generated from protobuf field: api.StandAloneConf StandAloneConf = 24 + */ + StandAloneConf?: StandAloneConf; } // ========== REQUESTS & RESPONSE MESSAGES ========== @@ -373,6 +379,12 @@ export interface UpdateSettingsRequest { * @generated from protobuf field: string PrefixAppointmentID = 22 */ PrefixAppointmentID: string; + /** + * standAlone mode configuration + * + * @generated from protobuf field: api.StandAloneConf StandAloneConf = 23 + */ + StandAloneConf?: StandAloneConf; } /** * @generated from protobuf message api.UpdateSettingsResponse @@ -616,6 +628,27 @@ export interface CheckAppointmentCommissionResponse { */ Header?: ResponseHeader; } +/** + * @generated from protobuf message api.StandAloneConf + */ +export interface StandAloneConf { + /** + * Set the standAlone mode, if true the site is not linked to any project and the booking will only be possible without order reference. In that case, the segmentation will be defined only at site level and not at project level. + * + * @generated from protobuf field: bool IsStandAlone = 1 + */ + IsStandAlone: boolean; + /** + * Only available in standAlone mode. Set the booking possibility for unknown users, if true the booking will be possible for users not known by the platform. + * + * @generated from protobuf field: bool IsBookingLoadingEnabledForUnknownUsers = 2 + */ + IsBookingLoadingEnabledForUnknownUsers: boolean; + /** + * @generated from protobuf field: bool IsBookingUnloadingEnabledForUnknownUsers = 3 + */ + IsBookingUnloadingEnabledForUnknownUsers: boolean; +} /** * BookAppointment * @@ -1423,7 +1456,8 @@ class Site$Type extends MessageType { { no: 19, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Site time zone format", example: "\"Europe/Paris\"" } } }, { no: 20, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } }, { no: 21, name: "DefaultSiteLanguageISO6391", kind: "scalar", localName: "DefaultSiteLanguageISO6391", jsonName: "DefaultSiteLanguageISO6391", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 639 code message language", example: "\"en\"" } } }, - { no: 23, name: "PrefixAppointmentID", kind: "scalar", localName: "PrefixAppointmentID", jsonName: "PrefixAppointmentID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "5" } } } } + { no: 23, name: "PrefixAppointmentID", kind: "scalar", localName: "PrefixAppointmentID", jsonName: "PrefixAppointmentID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "5" } } } }, + { no: 24, name: "StandAloneConf", kind: "message", localName: "StandAloneConf", jsonName: "StandAloneConf", T: () => StandAloneConf } ]); } create(value?: PartialMessage): Site { @@ -1519,6 +1553,9 @@ class Site$Type extends MessageType { case /* string PrefixAppointmentID */ 23: message.PrefixAppointmentID = reader.string(); break; + case /* api.StandAloneConf StandAloneConf */ 24: + message.StandAloneConf = StandAloneConf.internalBinaryRead(reader, reader.uint32(), options, message.StandAloneConf); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -1594,6 +1631,9 @@ class Site$Type extends MessageType { /* string PrefixAppointmentID = 23; */ if (message.PrefixAppointmentID !== "") writer.tag(23, WireType.LengthDelimited).string(message.PrefixAppointmentID); + /* api.StandAloneConf StandAloneConf = 24; */ + if (message.StandAloneConf) + StandAloneConf.internalBinaryWrite(message.StandAloneConf, writer.tag(24, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -2006,7 +2046,8 @@ class UpdateSettingsRequest$Type extends MessageType { { no: 19, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Site time zone format", example: "\"Europe/Paris\"" } } }, { no: 20, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } }, { no: 21, name: "DefaultSiteLanguageISO6391", kind: "scalar", localName: "DefaultSiteLanguageISO6391", jsonName: "DefaultSiteLanguageISO6391", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 639 code message language", example: "\"en\"" } } }, - { no: 22, name: "PrefixAppointmentID", kind: "scalar", localName: "PrefixAppointmentID", jsonName: "PrefixAppointmentID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "5", pattern: "^[a-zA-Z0-9-]+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9-]+$" } } } + { no: 22, name: "PrefixAppointmentID", kind: "scalar", localName: "PrefixAppointmentID", jsonName: "PrefixAppointmentID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "5", pattern: "^[a-zA-Z0-9-]+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9-]+$" } } }, + { no: 23, name: "StandAloneConf", kind: "message", localName: "StandAloneConf", jsonName: "StandAloneConf", T: () => StandAloneConf } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } }); } create(value?: PartialMessage): UpdateSettingsRequest { @@ -2089,6 +2130,9 @@ class UpdateSettingsRequest$Type extends MessageType { case /* string PrefixAppointmentID */ 22: message.PrefixAppointmentID = reader.string(); break; + case /* api.StandAloneConf StandAloneConf */ 23: + message.StandAloneConf = StandAloneConf.internalBinaryRead(reader, reader.uint32(), options, message.StandAloneConf); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -2155,6 +2199,9 @@ class UpdateSettingsRequest$Type extends MessageType { /* string PrefixAppointmentID = 22; */ if (message.PrefixAppointmentID !== "") writer.tag(22, WireType.LengthDelimited).string(message.PrefixAppointmentID); + /* api.StandAloneConf StandAloneConf = 23; */ + if (message.StandAloneConf) + StandAloneConf.internalBinaryWrite(message.StandAloneConf, writer.tag(23, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -2978,6 +3025,69 @@ class CheckAppointmentCommissionResponse$Type extends MessageType { + constructor() { + super("api.StandAloneConf", [ + { no: 1, name: "IsStandAlone", kind: "scalar", localName: "IsStandAlone", jsonName: "IsStandAlone", T: 8 /*ScalarType.BOOL*/ }, + { no: 2, name: "IsBookingLoadingEnabledForUnknownUsers", kind: "scalar", localName: "IsBookingLoadingEnabledForUnknownUsers", jsonName: "IsBookingLoadingEnabledForUnknownUsers", T: 8 /*ScalarType.BOOL*/ }, + { no: 3, name: "IsBookingUnloadingEnabledForUnknownUsers", kind: "scalar", localName: "IsBookingUnloadingEnabledForUnknownUsers", jsonName: "IsBookingUnloadingEnabledForUnknownUsers", T: 8 /*ScalarType.BOOL*/ } + ]); + } + create(value?: PartialMessage): StandAloneConf { + const message = globalThis.Object.create((this.messagePrototype!)); + message.IsStandAlone = false; + message.IsBookingLoadingEnabledForUnknownUsers = false; + message.IsBookingUnloadingEnabledForUnknownUsers = false; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StandAloneConf): StandAloneConf { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* bool IsStandAlone */ 1: + message.IsStandAlone = reader.bool(); + break; + case /* bool IsBookingLoadingEnabledForUnknownUsers */ 2: + message.IsBookingLoadingEnabledForUnknownUsers = reader.bool(); + break; + case /* bool IsBookingUnloadingEnabledForUnknownUsers */ 3: + message.IsBookingUnloadingEnabledForUnknownUsers = 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: StandAloneConf, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* bool IsStandAlone = 1; */ + if (message.IsStandAlone !== false) + writer.tag(1, WireType.Varint).bool(message.IsStandAlone); + /* bool IsBookingLoadingEnabledForUnknownUsers = 2; */ + if (message.IsBookingLoadingEnabledForUnknownUsers !== false) + writer.tag(2, WireType.Varint).bool(message.IsBookingLoadingEnabledForUnknownUsers); + /* bool IsBookingUnloadingEnabledForUnknownUsers = 3; */ + if (message.IsBookingUnloadingEnabledForUnknownUsers !== false) + writer.tag(3, WireType.Varint).bool(message.IsBookingUnloadingEnabledForUnknownUsers); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.StandAloneConf + */ +export const StandAloneConf = new StandAloneConf$Type(); +// @generated message type with reflection information, may provide speed optimized methods class BookAppointmentRequest$Type extends MessageType { constructor() { super("api.BookAppointmentRequest", [