From 5d8b84e1f9289d458c35dad1949a19d5ece0f7bd Mon Sep 17 00:00:00 2001 From: ci core model Date: Fri, 16 Jan 2026 12:34:40 +0000 Subject: [PATCH] Latest generation --- package.json | 2 +- role.ts | 150 +++------------------------------------------------ shared.ts | 39 +++++++++++++- 3 files changed, 46 insertions(+), 145 deletions(-) diff --git a/package.json b/package.json index 803f5d8..0f1f67f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.13.0-SNAPSHOT-260116101933", + "version": "1.13.0-SNAPSHOT-260116123343", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts", diff --git a/role.ts b/role.ts index d4a68ed..8145c0a 100644 --- a/role.ts +++ b/role.ts @@ -14,6 +14,7 @@ import { MessageType } from "@protobuf-ts/runtime"; import { Paging } from "./base"; import { RequestProjectHeader } from "./shared"; import { RequestOrganisationHeader } from "./shared"; +import { RoleTag } from "./shared"; import { Permission } from "./shared"; import { ResourceType } from "./shared"; /** @@ -114,10 +115,6 @@ export interface CreatePlatformRoleRequest { * @generated from protobuf field: string Description = 8 */ Description: string; - /** - * @generated from protobuf field: repeated api.RoleTag Tags = 9 - */ - Tags: RoleTag[]; } /** * @generated from protobuf message api.CreatePlatformRoleResult @@ -156,10 +153,6 @@ export interface CreateOrganisationRoleRequest { * @generated from protobuf field: string Description = 7 */ Description: string; - /** - * @generated from protobuf field: repeated api.RoleTag Tags = 9 - */ - Tags: RoleTag[]; } /** * @generated from protobuf message api.CreateOrganisationRoleResult @@ -198,10 +191,6 @@ export interface CreateProjectRoleRequest { * @generated from protobuf field: string Description = 7 */ Description: string; - /** - * @generated from protobuf field: repeated api.RoleTag Tags = 9 - */ - Tags: RoleTag[]; } /** * @generated from protobuf message api.CreateProjectRoleResult @@ -240,10 +229,6 @@ export interface UpdatePlatformRoleRequest { * @generated from protobuf field: string Description = 8 */ Description: string; - /** - * @generated from protobuf field: repeated api.RoleTag Tags = 9 - */ - Tags: RoleTag[]; } /** * @generated from protobuf message api.UpdatePlatformRoleResult @@ -282,10 +267,6 @@ export interface UpdateOrganisationRoleRequest { * @generated from protobuf field: string Description = 7 */ Description: string; - /** - * @generated from protobuf field: repeated api.RoleTag Tags = 9 - */ - Tags: RoleTag[]; } /** * @generated from protobuf message api.UpdateOrganisationRoleResult @@ -324,10 +305,6 @@ export interface UpdateProjectRoleRequest { * @generated from protobuf field: string Description = 7 */ Description: string; - /** - * @generated from protobuf field: repeated api.RoleTag Tags = 9 - */ - Tags: RoleTag[]; } /** * @generated from protobuf message api.UpdateProjectRoleResult @@ -706,23 +683,6 @@ export enum RoleType { */ ROLE_TYPE_COMPOSITE = 20 } -/** - * @generated from protobuf enum api.RoleTag - */ -export enum RoleTag { - /** - * @generated from protobuf enum value: ROLE_TAG_UNKNOWN = 0; - */ - ROLE_TAG_UNKNOWN = 0, - /** - * @generated from protobuf enum value: ROLE_TAG_PROJECT_ACTIVITY = 10; - */ - ROLE_TAG_PROJECT_ACTIVITY = 10, - /** - * @generated from protobuf enum value: ROLE_TAG_PROJECT_SITE = 20; - */ - ROLE_TAG_PROJECT_SITE = 20 -} // @generated message type with reflection information, may provide speed optimized methods class Role$Type extends MessageType { constructor() { @@ -938,8 +898,7 @@ class CreatePlatformRoleRequest$Type extends MessageType Permission }, { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } }, { no: 7, name: "ApplicationType", kind: "enum", localName: "ApplicationType", jsonName: "ApplicationType", T: () => ["api.ApplicationType", ApplicationType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 8, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }, - { no: 9, name: "Tags", kind: "enum", localName: "Tags", jsonName: "Tags", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.RoleTag", RoleTag] } + { no: 8, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ } ]); } create(value?: PartialMessage): CreatePlatformRoleRequest { @@ -950,7 +909,6 @@ class CreatePlatformRoleRequest$Type extends MessageType(this, message, value); return message; @@ -978,13 +936,6 @@ class CreatePlatformRoleRequest$Type extends MessageType ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }, { no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission }, { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }, - { no: 9, name: "Tags", kind: "enum", localName: "Tags", jsonName: "Tags", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.RoleTag", RoleTag] } + { no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ } ]); } create(value?: PartialMessage): CreateOrganisationRoleRequest { @@ -1098,7 +1041,6 @@ class CreateOrganisationRoleRequest$Type extends MessageType(this, message, value); return message; @@ -1126,13 +1068,6 @@ class CreateOrganisationRoleRequest$Type extends MessageType ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }, { no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission }, { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }, - { no: 9, name: "Tags", kind: "enum", localName: "Tags", jsonName: "Tags", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.RoleTag", RoleTag] } + { no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ } ]); } create(value?: PartialMessage): CreateProjectRoleRequest { @@ -1246,7 +1173,6 @@ class CreateProjectRoleRequest$Type extends MessageType(this, message, value); return message; @@ -1274,13 +1200,6 @@ class CreateProjectRoleRequest$Type extends MessageType Permission }, { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } }, { no: 7, name: "ApplicationType", kind: "enum", localName: "ApplicationType", jsonName: "ApplicationType", T: () => ["api.ApplicationType", ApplicationType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 8, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }, - { no: 9, name: "Tags", kind: "enum", localName: "Tags", jsonName: "Tags", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.RoleTag", RoleTag] } + { no: 8, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ } ]); } create(value?: PartialMessage): UpdatePlatformRoleRequest { @@ -1395,7 +1306,6 @@ class UpdatePlatformRoleRequest$Type extends MessageType(this, message, value); return message; @@ -1423,13 +1333,6 @@ class UpdatePlatformRoleRequest$Type extends MessageType ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }, { no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission, options: { "validate.rules": { repeated: { minItems: "1" } } } }, { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }, - { no: 9, name: "Tags", kind: "enum", localName: "Tags", jsonName: "Tags", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.RoleTag", RoleTag] } + { no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ } ]); } create(value?: PartialMessage): UpdateOrganisationRoleRequest { @@ -1543,7 +1438,6 @@ class UpdateOrganisationRoleRequest$Type extends MessageType(this, message, value); return message; @@ -1571,13 +1465,6 @@ class UpdateOrganisationRoleRequest$Type extends MessageType ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }, { no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission }, { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }, - { no: 9, name: "Tags", kind: "enum", localName: "Tags", jsonName: "Tags", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.RoleTag", RoleTag] } + { no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ } ]); } create(value?: PartialMessage): UpdateProjectRoleRequest { @@ -1691,7 +1570,6 @@ class UpdateProjectRoleRequest$Type extends MessageType(this, message, value); return message; @@ -1719,13 +1597,6 @@ class UpdateProjectRoleRequest$Type extends MessageType { { no: 6, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/ }, { no: 7, name: "AppliesOnIDs", kind: "scalar", localName: "AppliesOnIDs", jsonName: "AppliesOnIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 8, name: "ModuleID", kind: "scalar", localName: "ModuleID", jsonName: "ModuleID", T: 9 /*ScalarType.STRING*/ }, - { no: 9, name: "Mandatory", kind: "scalar", localName: "Mandatory", jsonName: "Mandatory", T: 8 /*ScalarType.BOOL*/ } + { no: 9, name: "Mandatory", kind: "scalar", localName: "Mandatory", jsonName: "Mandatory", T: 8 /*ScalarType.BOOL*/ }, + { no: 10, name: "Tags", kind: "enum", localName: "Tags", jsonName: "Tags", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.RoleTag", RoleTag] } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Service"] } } }); } create(value?: PartialMessage): Scope { @@ -7457,6 +7479,7 @@ class Scope$Type extends MessageType { message.AppliesOnIDs = []; message.ModuleID = ""; message.Mandatory = false; + message.Tags = []; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -7493,6 +7516,13 @@ class Scope$Type extends MessageType { case /* bool Mandatory */ 9: message.Mandatory = reader.bool(); break; + case /* repeated api.RoleTag Tags */ 10: + if (wireType === WireType.LengthDelimited) + for (let e = reader.int32() + reader.pos; reader.pos < e;) + message.Tags.push(reader.int32()); + else + message.Tags.push(reader.int32()); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -7532,6 +7562,13 @@ class Scope$Type extends MessageType { /* bool Mandatory = 9; */ if (message.Mandatory !== false) writer.tag(9, WireType.Varint).bool(message.Mandatory); + /* repeated api.RoleTag Tags = 10; */ + if (message.Tags.length) { + writer.tag(10, WireType.LengthDelimited).fork(); + for (let i = 0; i < message.Tags.length; i++) + writer.int32(message.Tags[i]); + writer.join(); + } let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);