Latest generation

This commit is contained in:
ci core model
2025-05-15 07:49:42 +00:00
parent dcba10475c
commit 18942599e3
3 changed files with 75 additions and 75 deletions

18
site.ts
View File

@@ -332,9 +332,9 @@ export interface UpdateSiteRequest {
/**
* Add Site Time zone
*
* @generated from protobuf field: string TargetTimeZone = 19 [json_name = "TargetTimeZone"];
* @generated from protobuf field: string TimeZone = 19 [json_name = "TimeZone"];
*/
TargetTimeZone: string;
TimeZone: string;
/**
* Must be a valid email address
*
@@ -1091,7 +1091,7 @@ class UpdateSiteRequest$Type extends MessageType<UpdateSiteRequest> {
{ no: 16, name: "InstructionDocuments", kind: "message", localName: "InstructionDocuments", jsonName: "InstructionDocuments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Document },
{ no: 17, name: "CarrierInformations", kind: "message", localName: "CarrierInformations", jsonName: "CarrierInformations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformation },
{ no: 18, name: "RoundedPeriodInMinutes", kind: "scalar", localName: "RoundedPeriodInMinutes", jsonName: "RoundedPeriodInMinutes", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
{ no: 19, 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: 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 <a href='https://en.wikipedia.org/wiki/List_of_tz_database_time_zones'>format</a>", 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: "<a href='https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'>ISO 639 code</a> message language", example: "\"en\"" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } });
@@ -1114,7 +1114,7 @@ class UpdateSiteRequest$Type extends MessageType<UpdateSiteRequest> {
message.InstructionDocuments = [];
message.CarrierInformations = [];
message.RoundedPeriodInMinutes = 0n;
message.TargetTimeZone = "";
message.TimeZone = "";
message.Emails = [];
message.DefaultSiteLanguageISO6391 = "";
if (value !== undefined)
@@ -1180,8 +1180,8 @@ class UpdateSiteRequest$Type extends MessageType<UpdateSiteRequest> {
case /* int64 RoundedPeriodInMinutes = 18 [json_name = "RoundedPeriodInMinutes"];*/ 18:
message.RoundedPeriodInMinutes = reader.int64().toBigInt();
break;
case /* string TargetTimeZone = 19 [json_name = "TargetTimeZone"];*/ 19:
message.TargetTimeZone = reader.string();
case /* string TimeZone = 19 [json_name = "TimeZone"];*/ 19:
message.TimeZone = reader.string();
break;
case /* repeated string Emails = 20 [json_name = "Emails"];*/ 20:
message.Emails.push(reader.string());
@@ -1255,9 +1255,9 @@ class UpdateSiteRequest$Type extends MessageType<UpdateSiteRequest> {
/* int64 RoundedPeriodInMinutes = 18 [json_name = "RoundedPeriodInMinutes"]; */
if (message.RoundedPeriodInMinutes !== 0n)
writer.tag(18, WireType.Varint).int64(message.RoundedPeriodInMinutes);
/* string TargetTimeZone = 19 [json_name = "TargetTimeZone"]; */
if (message.TargetTimeZone !== "")
writer.tag(19, WireType.LengthDelimited).string(message.TargetTimeZone);
/* string TimeZone = 19 [json_name = "TimeZone"]; */
if (message.TimeZone !== "")
writer.tag(19, WireType.LengthDelimited).string(message.TimeZone);
/* repeated string Emails = 20 [json_name = "Emails"]; */
for (let i = 0; i < message.Emails.length; i++)
writer.tag(20, WireType.LengthDelimited).string(message.Emails[i]);