From 344e66512eec05868a42b3376f33eab11c3e6726 Mon Sep 17 00:00:00 2001 From: ci core model Date: Mon, 22 Jun 2026 09:39:36 +0000 Subject: [PATCH] Latest generation --- messaging.ts | 4 +-- package.json | 2 +- site.ts | 82 +++++++++++++++++++++++++++------------------------- 3 files changed, 45 insertions(+), 43 deletions(-) diff --git a/messaging.ts b/messaging.ts index 19d9a7c..239ef71 100644 --- a/messaging.ts +++ b/messaging.ts @@ -441,7 +441,7 @@ export const IsMessagingMaxUsageReachedResponse = new IsMessagingMaxUsageReached */ export const MessagingService = new ServiceType("api.MessagingService", [ { name: "SendSMS", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Messaging"], description: "Send a SMS message to a recipient" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "sms", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "HIDDEN" } }, I: SendSMSRequest, O: SendSMSResponse }, - { name: "GetUsage", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Messaging"], description: "Retrieve the current messaging usage for a Project" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "sms", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: GetMessagingUsageRequest, O: GetMessagingUsageResponse }, + { name: "GetUsage", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Messaging"], description: "Retrieve the current messaging usage for a Project" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "sms", "google.api.method_visibility": { restriction: "SDK" } }, I: GetMessagingUsageRequest, O: GetMessagingUsageResponse }, { name: "IsMaxUsageReached", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Messaging"], description: "Check if the maximum messaging usage has been reached for a Project" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "sms", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: IsMessagingMaxUsageReachedRequest, O: IsMessagingMaxUsageReachedResponse }, - { name: "GetPeriodUsage", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Messaging"], description: "Retrieve messaging usage for a specific period for a Project" }, "api.rscType": "Platform", "api.roles": "Platform.SMS-Usage", "api.moduleID": "sms", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: GetMessagingPeriodUsageRequest, O: GetMessagingUsageResponse } + { name: "GetPeriodUsage", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Messaging"], description: "Retrieve messaging usage for a specific period for a Project" }, "api.rscType": "Platform", "api.roles": "Platform.SMS-Usage", "api.moduleID": "sms", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: GetMessagingPeriodUsageRequest, O: GetMessagingUsageResponse } ], { "api.k8sService": "messaging-server" }); diff --git a/package.json b/package.json index cd77143..3301c63 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.14.0-SNAPSHOT-260619144021", + "version": "1.14.0-SNAPSHOT-260622093829", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts", diff --git a/site.ts b/site.ts index 80edc38..885c93f 100644 --- a/site.ts +++ b/site.ts @@ -45,7 +45,7 @@ export interface Site { /** * @generated from protobuf field: string ID = 1 */ - ID: string; // Unique identifier for the site. (formatted as such: "SITE_\_\") + ID: string; // Unique identifier for the site /** * Name of the Site * @@ -53,7 +53,7 @@ export interface Site { */ Name: string; /** - * Identifier for the organisation associated with the site. + * Identifier for the organisation associated with the site * * @generated from protobuf field: string OrganisationID = 3 */ @@ -79,37 +79,37 @@ export interface Site { */ Fax: string; /** - * List of Segmentations that segment the logistic site. + * List of Segmentations that segment the logistic site * * @generated from protobuf field: repeated api.Segmentation Segmentations = 9 */ Segmentations: Segmentation[]; /** - * List of allowed project and the constraints (interval time in which they can book an appointment) they are associated with. + * List of allowed project and the constraints (interval time in which they can book an appointment) they are associated with * * @generated from protobuf field: repeated api.ProjectAuthorisation Authorisations = 10 */ Authorisations: ProjectAuthorisation[]; /** - * List of containment units which will be used to estimate the needed time to load or unload. + * List of containment units which will be used to estimate the needed time to load or unload * * @generated from protobuf field: repeated api.Unit Units = 11 */ Units: Unit[]; // après le champs /** - * Definition of the opening rules. 2 opening rule definitions cannot overlap. + * Definition of the opening rules. 2 opening rule definitions cannot overlap * * @generated from protobuf field: repeated api.OpeningRule OpeningRules = 12 */ OpeningRules: OpeningRule[]; /** - * Definition of the booking slot duration rules. + * Definition of the booking slot duration rules * * @generated from protobuf field: repeated api.DurationRule DurationRules = 13 */ DurationRules: DurationRule[]; /** - * Definition of the capacity rules. 2 capacity rule can overlap and the more constraining one will be applied. + * Definition of the capacity rules. 2 capacity rule can overlap and the more constraining one will be applied * * @generated from protobuf field: repeated api.CapacityRule CapacityRules = 14 */ @@ -124,9 +124,6 @@ export interface Site { * @generated from protobuf field: repeated api.Document InstructionDocuments = 16 */ InstructionDocuments: Document[]; - // // Set of required or optional information to ask when a slot is booked - // repeated CarrierInformation CarrierInformation = 17; - /** * Defines the rounded value to define booking period * @@ -151,17 +148,12 @@ export interface Site { * @generated from protobuf field: string DefaultSiteLanguageISO6391 = 21 */ DefaultSiteLanguageISO6391: string; - // SiteStatusEnum status = 22 - // [ - // (n1validate.rules).enum.defined_only = true - // ]; - /** * @generated from protobuf field: string PrefixAppointmentID = 23 */ PrefixAppointmentID: string; /** - * standAlone mode configuration + * Standalone mode configuration * * @generated from protobuf field: api.StandAloneConf StandAloneConf = 24 */ @@ -940,43 +932,45 @@ export interface GetBasicSettingsRequest { */ export interface GetBasicSettingsResponse { /** - * Name of the Site - * * @generated from protobuf field: string Name = 1 */ - Name: string; + Name: string; // The name of the site /** * @generated from protobuf field: bool Active = 2 */ - Active: boolean; // If the Site is active or not + Active: boolean; // If the site is active or not. Sites that are not active are not displayed in the booking interface and cannot be booked on. /** * @generated from protobuf field: api.Address Address = 3 */ - Address?: Address; // address of the Site + Address?: Address; // Address of the site /** * @generated from protobuf field: repeated string Phones = 4 */ - Phones: string[]; - /** - * @generated from protobuf field: string Fax = 5 - */ - Fax: string; + Phones: string[]; // List of phone numbers which can be used to contact the site /** * @generated from protobuf field: repeated string Emails = 6 */ - Emails: string[]; + Emails: string[]; // List of email addresses which can be used to contact the site /** * @generated from protobuf field: string ID = 7 */ - ID: string; + ID: string; // Unique identifier for the site /** * @generated from protobuf field: string PhotoURI = 8 */ - PhotoURI: string; + PhotoURI: string; // Link to a picture to display for the site /** * @generated from protobuf field: string PrefixAppointmentID = 9 */ - PrefixAppointmentID: string; + PrefixAppointmentID: string; // The prefix which is added to the appointment ID for appointments booked on the site + /** + * @generated from protobuf field: bool CanSendSMS = 10 + */ + CanSendSMS: boolean; // Indicates if the site has the SMS module activated + /** + * @generated from protobuf field: bool IsStandalone = 11 + */ + IsStandalone: boolean; // Indicates if the site is in standalone mode } /** * @generated from protobuf message api.GetUnitsRequest @@ -3938,11 +3932,12 @@ class GetBasicSettingsResponse$Type extends MessageType Address }, { no: 4, name: "Phones", kind: "scalar", localName: "Phones", jsonName: "Phones", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, - { no: 5, name: "Fax", kind: "scalar", localName: "Fax", jsonName: "Fax", T: 9 /*ScalarType.STRING*/ }, { no: 6, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 7, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/ }, { no: 8, name: "PhotoURI", kind: "scalar", localName: "PhotoURI", jsonName: "PhotoURI", T: 9 /*ScalarType.STRING*/ }, - { no: 9, name: "PrefixAppointmentID", kind: "scalar", localName: "PrefixAppointmentID", jsonName: "PrefixAppointmentID", T: 9 /*ScalarType.STRING*/ } + { no: 9, name: "PrefixAppointmentID", kind: "scalar", localName: "PrefixAppointmentID", jsonName: "PrefixAppointmentID", T: 9 /*ScalarType.STRING*/ }, + { no: 10, name: "CanSendSMS", kind: "scalar", localName: "CanSendSMS", jsonName: "CanSendSMS", T: 8 /*ScalarType.BOOL*/ }, + { no: 11, name: "IsStandalone", kind: "scalar", localName: "IsStandalone", jsonName: "IsStandalone", T: 8 /*ScalarType.BOOL*/ } ]); } create(value?: PartialMessage): GetBasicSettingsResponse { @@ -3950,11 +3945,12 @@ class GetBasicSettingsResponse$Type extends MessageType(this, message, value); return message; @@ -3976,9 +3972,6 @@ class GetBasicSettingsResponse$Type extends MessageType