Latest generation

This commit is contained in:
ci core model
2025-06-06 14:26:22 +00:00
parent 453b5bd1cb
commit fb954c9b3d
3 changed files with 21 additions and 2 deletions

View File

@@ -1338,7 +1338,7 @@ export const DeleteOnOrganisationResponse = new DeleteOnOrganisationResponse$Typ
class GetPublicHolidaysRequest$Type extends MessageType<GetPublicHolidaysRequest> {
constructor() {
super("api.GetPublicHolidaysRequest", [
{ no: 1, name: "CountryCode", kind: "scalar", localName: "CountryCode", jsonName: "CountryCode", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { countryCodeIso3166: true } } } },
{ no: 1, name: "CountryCode", kind: "scalar", localName: "CountryCode", jsonName: "CountryCode", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { countryCodeIso3166Alpha2: true } } } },
{ no: 2, name: "UpToYear", kind: "scalar", localName: "UpToYear", jsonName: "UpToYear", T: 13 /*ScalarType.UINT32*/, options: { "validate.rules": { uint32: { lt: 2200, gte: 2025 } } } }
]);
}

View File

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

View File

@@ -1275,6 +1275,15 @@ export interface StringRules {
* @generated from protobuf field: bool languageIso639 = 32
*/
languageIso639: boolean;
} | {
oneofKind: "countryCodeIso3166Alpha2";
/**
* countryCodeIso3166Alpha2 specifes that the field must be either a valid alpha-2 country code as
* defined by ISO 3166
*
* @generated from protobuf field: bool countryCodeIso3166Alpha2 = 33
*/
countryCodeIso3166Alpha2: boolean;
} | {
oneofKind: undefined;
};
@@ -3469,6 +3478,7 @@ class StringRules$Type extends MessageType<StringRules> {
{ no: 28, name: "tzData", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/ },
{ no: 31, name: "countryCodeIso3166", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/ },
{ no: 32, name: "languageIso639", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/ },
{ no: 33, name: "countryCodeIso3166Alpha2", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/ },
{ no: 25, name: "strict", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
{ no: 30, name: "ignore_empty", kind: "scalar", localName: "ignore_empty", opt: true, T: 8 /*ScalarType.BOOL*/ }
]);
@@ -3622,6 +3632,12 @@ class StringRules$Type extends MessageType<StringRules> {
languageIso639: reader.bool()
};
break;
case /* bool countryCodeIso3166Alpha2 */ 33:
message.well_known = {
oneofKind: "countryCodeIso3166Alpha2",
countryCodeIso3166Alpha2: reader.bool()
};
break;
case /* optional bool strict = 25 [default = true] */ 25:
message.strict = reader.bool();
break;
@@ -3736,6 +3752,9 @@ class StringRules$Type extends MessageType<StringRules> {
/* bool languageIso639 = 32; */
if (message.well_known.oneofKind === "languageIso639")
writer.tag(32, WireType.Varint).bool(message.well_known.languageIso639);
/* bool countryCodeIso3166Alpha2 = 33; */
if (message.well_known.oneofKind === "countryCodeIso3166Alpha2")
writer.tag(33, WireType.Varint).bool(message.well_known.countryCodeIso3166Alpha2);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);