diff --git a/package.json b/package.json index 32c2974..b0f2fae 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.12.0-SNAPSHOT-251008155202", + "version": "1.12.0-SNAPSHOT-251009080337", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts", diff --git a/site.ts b/site.ts index 3400993..ea591e9 100644 --- a/site.ts +++ b/site.ts @@ -167,22 +167,28 @@ export interface Site { * @generated from protobuf message api.CreateSettingsRequest */ export interface CreateSettingsRequest { + /** + * Identifier of the organisation + * + * @generated from protobuf field: string OrganisationID = 1 + */ + OrganisationID: string; /** * Identifier of the new Site * - * @generated from protobuf field: string SiteID = 1 + * @generated from protobuf field: string SiteID = 2 */ SiteID: string; /** * Name of the new Site, modifiable after creation * - * @generated from protobuf field: string SiteName = 2 + * @generated from protobuf field: string SiteName = 3 */ SiteName: string; /** * Must be a valid email address from a user know to the platform * - * @generated from protobuf field: string Email = 3 + * @generated from protobuf field: string Email = 4 */ Email: string; } @@ -1226,13 +1232,15 @@ export const Site = new Site$Type(); class CreateSettingsRequest$Type extends MessageType { constructor() { super("api.CreateSettingsRequest", [ - { no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "SiteName", kind: "scalar", localName: "SiteName", jsonName: "SiteName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "Email", kind: "scalar", localName: "Email", jsonName: "Email", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", email: true } } } } + { no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "SiteName", kind: "scalar", localName: "SiteName", jsonName: "SiteName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "Email", kind: "scalar", localName: "Email", jsonName: "Email", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", email: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["SiteID", "Email", "SiteName"] } } }); } create(value?: PartialMessage): CreateSettingsRequest { const message = globalThis.Object.create((this.messagePrototype!)); + message.OrganisationID = ""; message.SiteID = ""; message.SiteName = ""; message.Email = ""; @@ -1245,13 +1253,16 @@ class CreateSettingsRequest$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* string SiteID */ 1: + case /* string OrganisationID */ 1: + message.OrganisationID = reader.string(); + break; + case /* string SiteID */ 2: message.SiteID = reader.string(); break; - case /* string SiteName */ 2: + case /* string SiteName */ 3: message.SiteName = reader.string(); break; - case /* string Email */ 3: + case /* string Email */ 4: message.Email = reader.string(); break; default: @@ -1266,15 +1277,18 @@ class CreateSettingsRequest$Type extends MessageType { return message; } internalBinaryWrite(message: CreateSettingsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* string SiteID = 1; */ + /* string OrganisationID = 1; */ + if (message.OrganisationID !== "") + writer.tag(1, WireType.LengthDelimited).string(message.OrganisationID); + /* string SiteID = 2; */ if (message.SiteID !== "") - writer.tag(1, WireType.LengthDelimited).string(message.SiteID); - /* string SiteName = 2; */ + writer.tag(2, WireType.LengthDelimited).string(message.SiteID); + /* string SiteName = 3; */ if (message.SiteName !== "") - writer.tag(2, WireType.LengthDelimited).string(message.SiteName); - /* string Email = 3; */ + writer.tag(3, WireType.LengthDelimited).string(message.SiteName); + /* string Email = 4; */ if (message.Email !== "") - writer.tag(3, WireType.LengthDelimited).string(message.Email); + writer.tag(4, WireType.LengthDelimited).string(message.Email); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);