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

82
site.ts
View File

@@ -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_\<OrganisationID\>_\<UUID\>")
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<GetBasicSettingsResponse
{ 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: 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>): GetBasicSettingsResponse {
@@ -3950,11 +3945,12 @@ class GetBasicSettingsResponse$Type extends MessageType<GetBasicSettingsResponse
message.Name = "";
message.Active = false;
message.Phones = [];
message.Fax = "";
message.Emails = [];
message.ID = "";
message.PhotoURI = "";
message.PrefixAppointmentID = "";
message.CanSendSMS = false;
message.IsStandalone = false;
if (value !== undefined)
reflectionMergePartial<GetBasicSettingsResponse>(this, message, value);
return message;
@@ -3976,9 +3972,6 @@ class GetBasicSettingsResponse$Type extends MessageType<GetBasicSettingsResponse
case /* repeated string Phones */ 4:
message.Phones.push(reader.string());
break;
case /* string Fax */ 5:
message.Fax = reader.string();
break;
case /* repeated string Emails */ 6:
message.Emails.push(reader.string());
break;
@@ -3991,6 +3984,12 @@ class GetBasicSettingsResponse$Type extends MessageType<GetBasicSettingsResponse
case /* string PrefixAppointmentID */ 9:
message.PrefixAppointmentID = reader.string();
break;
case /* bool CanSendSMS */ 10:
message.CanSendSMS = reader.bool();
break;
case /* bool IsStandalone */ 11:
message.IsStandalone = reader.bool();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -4015,9 +4014,6 @@ class GetBasicSettingsResponse$Type extends MessageType<GetBasicSettingsResponse
/* repeated string Phones = 4; */
for (let i = 0; i < message.Phones.length; 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; */
for (let i = 0; i < message.Emails.length; i++)
writer.tag(6, WireType.LengthDelimited).string(message.Emails[i]);
@@ -4030,6 +4026,12 @@ class GetBasicSettingsResponse$Type extends MessageType<GetBasicSettingsResponse
/* string PrefixAppointmentID = 9; */
if (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;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);