Latest generation

This commit is contained in:
ci core model
2025-04-29 09:07:12 +00:00
parent 09d656c554
commit a525859717
3 changed files with 14 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@reflex-platform/npm-core-sdk",
"version": "1.11.0-SNAPSHOT-250428123500",
"version": "1.11.0-SNAPSHOT-250429090646",
"description": "npm libs from core model proto files",
"homepage": "",
"main": "index.ts",

24
site.ts
View File

@@ -133,11 +133,11 @@ export interface Site {
*/
RoundedPeriodInMinutes: bigint;
/**
* Add Site Time zone
* Site Time zone
*
* @generated from protobuf field: string TargetTimeZone = 20 [json_name = "TargetTimeZone"];
* @generated from protobuf field: string TimeZone = 20 [json_name = "TimeZone"];
*/
TargetTimeZone: string;
TimeZone: string;
/**
* Must be a valid email address
*
@@ -565,7 +565,7 @@ class Site$Type extends MessageType<Site> {
{ no: 17, name: "CarrierInformations", kind: "message", localName: "CarrierInformations", jsonName: "CarrierInformations", repeat: 1 /*RepeatType.PACKED*/, T: () => CarrierInformation },
{ no: 18, name: "CalendarIDs", kind: "scalar", localName: "CalendarIDs", jsonName: "CalendarIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 19, name: "RoundedPeriodInMinutes", kind: "scalar", localName: "RoundedPeriodInMinutes", jsonName: "RoundedPeriodInMinutes", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
{ no: 20, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target site time zone <a href='https://en.wikipedia.org/wiki/List_of_tz_database_time_zones'>format</a>", example: "\"Europe/Paris\"" } } },
{ no: 20, 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 <a href='https://en.wikipedia.org/wiki/List_of_tz_database_time_zones'>format</a>", example: "\"Europe/Paris\"" } } },
{ no: 21, 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: 22, 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: "<a href='https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'>ISO 639 code</a> message language", example: "\"en\"" } } }
]);
@@ -590,7 +590,7 @@ class Site$Type extends MessageType<Site> {
message.CarrierInformations = [];
message.CalendarIDs = [];
message.RoundedPeriodInMinutes = 0n;
message.TargetTimeZone = "";
message.TimeZone = "";
message.Emails = [];
message.DefaultSiteLanguageISO6391 = "";
if (value !== undefined)
@@ -659,8 +659,8 @@ class Site$Type extends MessageType<Site> {
case /* int64 RoundedPeriodInMinutes = 19 [json_name = "RoundedPeriodInMinutes"];*/ 19:
message.RoundedPeriodInMinutes = reader.int64().toBigInt();
break;
case /* string TargetTimeZone = 20 [json_name = "TargetTimeZone"];*/ 20:
message.TargetTimeZone = reader.string();
case /* string TimeZone = 20 [json_name = "TimeZone"];*/ 20:
message.TimeZone = reader.string();
break;
case /* repeated string Emails = 21 [json_name = "Emails"];*/ 21:
message.Emails.push(reader.string());
@@ -737,9 +737,9 @@ class Site$Type extends MessageType<Site> {
/* int64 RoundedPeriodInMinutes = 19 [json_name = "RoundedPeriodInMinutes"]; */
if (message.RoundedPeriodInMinutes !== 0n)
writer.tag(19, WireType.Varint).int64(message.RoundedPeriodInMinutes);
/* string TargetTimeZone = 20 [json_name = "TargetTimeZone"]; */
if (message.TargetTimeZone !== "")
writer.tag(20, WireType.LengthDelimited).string(message.TargetTimeZone);
/* string TimeZone = 20 [json_name = "TimeZone"]; */
if (message.TimeZone !== "")
writer.tag(20, WireType.LengthDelimited).string(message.TimeZone);
/* repeated string Emails = 21 [json_name = "Emails"]; */
for (let i = 0; i < message.Emails.length; i++)
writer.tag(21, WireType.LengthDelimited).string(message.Emails[i]);
@@ -1895,6 +1895,6 @@ export const SiteService = new ServiceType("api.SiteService", [
{ name: "Delete", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Delete a site" }, "api.rscType": "Organisation", "api.roles": "", "api.moduleID": "slotbooking", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteSiteRequest, O: DeleteSiteResponse },
{ name: "GetAvailableSlots", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get available slots to book an appointment on the site." }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetAvailableSlotsRequest, O: GetAvailableSlotsResponse },
{ name: "ListUserSites", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "List sites authorized for a user according to its permissions." }, "api.rscType": "Platform", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "SDK" } }, I: ListUserSitesRequest, O: ListUserSitesResponse },
{ name: "BookAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site,Appointment"], description: "Book an appointment on the site." }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: BookAppointmentRequest, O: BookAppointmentResponse },
{ name: "CancelAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site,Appointment"], description: "Cancel an appointment on the site." }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: CancelAppointmentRequest, O: CancelAppointmentResponse }
{ name: "BookAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Book an appointment on the site." }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: BookAppointmentRequest, O: BookAppointmentResponse },
{ name: "CancelAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Cancel an appointment on the site." }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: CancelAppointmentRequest, O: CancelAppointmentResponse }
], { "api.k8sService": "slotbookingtype-server" });

View File

@@ -123,6 +123,7 @@ export interface SegmentationValue {
export interface OpeningRule {
/**
* Start date of the opening rule validity, format yyyy-mm-jj
* TODO Add time
*
* @generated from protobuf field: string StartDate = 1 [json_name = "StartDate"];
*/