Latest generation

This commit is contained in:
ci core model
2026-06-22 09:39:36 +00:00
parent d7ad1a62e5
commit 344e66512e
3 changed files with 45 additions and 43 deletions

View File

@@ -441,7 +441,7 @@ export const IsMessagingMaxUsageReachedResponse = new IsMessagingMaxUsageReached
*/ */
export const MessagingService = new ServiceType("api.MessagingService", [ 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: "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: "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" }); ], { "api.k8sService": "messaging-server" });

View File

@@ -1,6 +1,6 @@
{ {
"name": "@reflex-platform/npm-core-sdk", "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", "description": "npm libs from core model proto files",
"homepage": "", "homepage": "",
"main": "index.ts", "main": "index.ts",

82
site.ts
View File

@@ -45,7 +45,7 @@ export interface Site {
/** /**
* @generated from protobuf field: string ID = 1 * @generated from protobuf field: string ID = 1
*/ */
ID: string; // Unique identifier for the site. (formatted as such: "SITE_\<OrganisationID\>_\<UUID\>") ID: string; // Unique identifier for the site
/** /**
* Name of the Site * Name of the Site
* *
@@ -53,7 +53,7 @@ export interface Site {
*/ */
Name: string; 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 * @generated from protobuf field: string OrganisationID = 3
*/ */
@@ -79,37 +79,37 @@ export interface Site {
*/ */
Fax: string; 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 * @generated from protobuf field: repeated api.Segmentation Segmentations = 9
*/ */
Segmentations: Segmentation[]; 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 * @generated from protobuf field: repeated api.ProjectAuthorisation Authorisations = 10
*/ */
Authorisations: ProjectAuthorisation[]; 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 * @generated from protobuf field: repeated api.Unit Units = 11
*/ */
Units: Unit[]; // après le champs 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 * @generated from protobuf field: repeated api.OpeningRule OpeningRules = 12
*/ */
OpeningRules: OpeningRule[]; 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 * @generated from protobuf field: repeated api.DurationRule DurationRules = 13
*/ */
DurationRules: DurationRule[]; 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 * @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 * @generated from protobuf field: repeated api.Document InstructionDocuments = 16
*/ */
InstructionDocuments: Document[]; 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 * Defines the rounded value to define booking period
* *
@@ -151,17 +148,12 @@ export interface Site {
* @generated from protobuf field: string DefaultSiteLanguageISO6391 = 21 * @generated from protobuf field: string DefaultSiteLanguageISO6391 = 21
*/ */
DefaultSiteLanguageISO6391: string; DefaultSiteLanguageISO6391: string;
// SiteStatusEnum status = 22
// [
// (n1validate.rules).enum.defined_only = true
// ];
/** /**
* @generated from protobuf field: string PrefixAppointmentID = 23 * @generated from protobuf field: string PrefixAppointmentID = 23
*/ */
PrefixAppointmentID: string; PrefixAppointmentID: string;
/** /**
* standAlone mode configuration * Standalone mode configuration
* *
* @generated from protobuf field: api.StandAloneConf StandAloneConf = 24 * @generated from protobuf field: api.StandAloneConf StandAloneConf = 24
*/ */
@@ -940,43 +932,45 @@ export interface GetBasicSettingsRequest {
*/ */
export interface GetBasicSettingsResponse { export interface GetBasicSettingsResponse {
/** /**
* Name of the Site
*
* @generated from protobuf field: string Name = 1 * @generated from protobuf field: string Name = 1
*/ */
Name: string; Name: string; // The name of the site
/** /**
* @generated from protobuf field: bool Active = 2 * @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 * @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 * @generated from protobuf field: repeated string Phones = 4
*/ */
Phones: string[]; Phones: string[]; // List of phone numbers which can be used to contact the site
/**
* @generated from protobuf field: string Fax = 5
*/
Fax: string;
/** /**
* @generated from protobuf field: repeated string Emails = 6 * @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 * @generated from protobuf field: string ID = 7
*/ */
ID: string; ID: string; // Unique identifier for the site
/** /**
* @generated from protobuf field: string PhotoURI = 8 * @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 * @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 * @generated from protobuf message api.GetUnitsRequest
@@ -3938,11 +3932,12 @@ class GetBasicSettingsResponse$Type extends MessageType<GetBasicSettingsResponse
{ no: 2, name: "Active", kind: "scalar", localName: "Active", jsonName: "Active", T: 8 /*ScalarType.BOOL*/ }, { no: 2, name: "Active", kind: "scalar", localName: "Active", jsonName: "Active", T: 8 /*ScalarType.BOOL*/ },
{ no: 3, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address }, { no: 3, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address },
{ no: 4, name: "Phones", kind: "scalar", localName: "Phones", jsonName: "Phones", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { 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: 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: 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: 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>): GetBasicSettingsResponse { create(value?: PartialMessage<GetBasicSettingsResponse>): GetBasicSettingsResponse {
@@ -3950,11 +3945,12 @@ class GetBasicSettingsResponse$Type extends MessageType<GetBasicSettingsResponse
message.Name = ""; message.Name = "";
message.Active = false; message.Active = false;
message.Phones = []; message.Phones = [];
message.Fax = "";
message.Emails = []; message.Emails = [];
message.ID = ""; message.ID = "";
message.PhotoURI = ""; message.PhotoURI = "";
message.PrefixAppointmentID = ""; message.PrefixAppointmentID = "";
message.CanSendSMS = false;
message.IsStandalone = false;
if (value !== undefined) if (value !== undefined)
reflectionMergePartial<GetBasicSettingsResponse>(this, message, value); reflectionMergePartial<GetBasicSettingsResponse>(this, message, value);
return message; return message;
@@ -3976,9 +3972,6 @@ class GetBasicSettingsResponse$Type extends MessageType<GetBasicSettingsResponse
case /* repeated string Phones */ 4: case /* repeated string Phones */ 4:
message.Phones.push(reader.string()); message.Phones.push(reader.string());
break; break;
case /* string Fax */ 5:
message.Fax = reader.string();
break;
case /* repeated string Emails */ 6: case /* repeated string Emails */ 6:
message.Emails.push(reader.string()); message.Emails.push(reader.string());
break; break;
@@ -3991,6 +3984,12 @@ class GetBasicSettingsResponse$Type extends MessageType<GetBasicSettingsResponse
case /* string PrefixAppointmentID */ 9: case /* string PrefixAppointmentID */ 9:
message.PrefixAppointmentID = reader.string(); message.PrefixAppointmentID = reader.string();
break; break;
case /* bool CanSendSMS */ 10:
message.CanSendSMS = reader.bool();
break;
case /* bool IsStandalone */ 11:
message.IsStandalone = reader.bool();
break;
default: default:
let u = options.readUnknownField; let u = options.readUnknownField;
if (u === "throw") if (u === "throw")
@@ -4015,9 +4014,6 @@ class GetBasicSettingsResponse$Type extends MessageType<GetBasicSettingsResponse
/* repeated string Phones = 4; */ /* repeated string Phones = 4; */
for (let i = 0; i < message.Phones.length; i++) for (let i = 0; i < message.Phones.length; i++)
writer.tag(4, WireType.LengthDelimited).string(message.Phones[i]); writer.tag(4, WireType.LengthDelimited).string(message.Phones[i]);
/* string Fax = 5; */
if (message.Fax !== "")
writer.tag(5, WireType.LengthDelimited).string(message.Fax);
/* repeated string Emails = 6; */ /* repeated string Emails = 6; */
for (let i = 0; i < message.Emails.length; i++) for (let i = 0; i < message.Emails.length; i++)
writer.tag(6, WireType.LengthDelimited).string(message.Emails[i]); writer.tag(6, WireType.LengthDelimited).string(message.Emails[i]);
@@ -4030,6 +4026,12 @@ class GetBasicSettingsResponse$Type extends MessageType<GetBasicSettingsResponse
/* string PrefixAppointmentID = 9; */ /* string PrefixAppointmentID = 9; */
if (message.PrefixAppointmentID !== "") if (message.PrefixAppointmentID !== "")
writer.tag(9, WireType.LengthDelimited).string(message.PrefixAppointmentID); writer.tag(9, WireType.LengthDelimited).string(message.PrefixAppointmentID);
/* bool CanSendSMS = 10; */
if (message.CanSendSMS !== false)
writer.tag(10, WireType.Varint).bool(message.CanSendSMS);
/* bool IsStandalone = 11; */
if (message.IsStandalone !== false)
writer.tag(11, WireType.Varint).bool(message.IsStandalone);
let u = options.writeUnknownFields; let u = options.writeUnknownFields;
if (u !== false) if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);