From 3acf5e46a30d2139aefc2d20ddc0c8cd60e05745 Mon Sep 17 00:00:00 2001 From: ci core model Date: Fri, 28 Aug 2026 14:09:15 +0000 Subject: [PATCH] Latest generation --- kpi.ts | 182 +++++++++++++++++++++++++++++++++++++++++++++++++-- package.json | 2 +- 2 files changed, 176 insertions(+), 8 deletions(-) diff --git a/kpi.ts b/kpi.ts index 301b980..4b77a26 100644 --- a/kpi.ts +++ b/kpi.ts @@ -66,6 +66,55 @@ export interface Kpi { */ IsQueryable: boolean; } +/** + * @generated from protobuf message api.KpiDefinition + */ +export interface KpiDefinition { + /** + * @generated from protobuf field: string Name = 1 + */ + Name: string; + /** + * @generated from protobuf field: string Level = 2 + */ + Level: string; + // string Block = 3; + + /** + * @generated from protobuf field: string DataType = 4 + */ + DataType: string; + /** + * @generated from protobuf field: string ContentType = 5 + */ + ContentType: string; + /** + * @generated from protobuf field: string EnumValues = 6 + */ + EnumValues: string; + /** + * @generated from protobuf field: string FullName = 8 + */ + FullName: string; + /** + * @generated from protobuf field: bool IsComputed = 9 + */ + IsComputed: boolean; + /** + * repeated EntityCorrespondence EntityCorrespondences = 10; + * + * @generated from protobuf field: string GroupToJoin = 11 + */ + GroupToJoin: string; + /** + * @generated from protobuf field: string ColumnType = 12 + */ + ColumnType: string; + /** + * @generated from protobuf field: bool IsQueryable = 13 + */ + IsQueryable: boolean; +} /** * @generated from protobuf message api.KpiExpression */ @@ -183,9 +232,9 @@ export interface GetKpisWithSelectionRequest { */ export interface GetKpisWithSelectionResult { /** - * @generated from protobuf field: repeated api.Kpi Kpis = 1 + * @generated from protobuf field: repeated api.KpiDefinition Kpis = 1 */ - Kpis: Kpi[]; + Kpis: KpiDefinition[]; } /** * @generated from protobuf message api.GetKpiTableStructureRequest @@ -522,6 +571,125 @@ class Kpi$Type extends MessageType { */ export const Kpi = new Kpi$Type(); // @generated message type with reflection information, may provide speed optimized methods +class KpiDefinition$Type extends MessageType { + constructor() { + super("api.KpiDefinition", [ + { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "Level", kind: "scalar", localName: "Level", jsonName: "Level", T: 9 /*ScalarType.STRING*/ }, + { no: 4, name: "DataType", kind: "scalar", localName: "DataType", jsonName: "DataType", T: 9 /*ScalarType.STRING*/ }, + { no: 5, name: "ContentType", kind: "scalar", localName: "ContentType", jsonName: "ContentType", T: 9 /*ScalarType.STRING*/ }, + { no: 6, name: "EnumValues", kind: "scalar", localName: "EnumValues", jsonName: "EnumValues", T: 9 /*ScalarType.STRING*/ }, + { no: 8, name: "FullName", kind: "scalar", localName: "FullName", jsonName: "FullName", T: 9 /*ScalarType.STRING*/ }, + { no: 9, name: "IsComputed", kind: "scalar", localName: "IsComputed", jsonName: "IsComputed", T: 8 /*ScalarType.BOOL*/ }, + { no: 11, name: "GroupToJoin", kind: "scalar", localName: "GroupToJoin", jsonName: "GroupToJoin", T: 9 /*ScalarType.STRING*/ }, + { no: 12, name: "ColumnType", kind: "scalar", localName: "ColumnType", jsonName: "ColumnType", T: 9 /*ScalarType.STRING*/ }, + { no: 13, name: "IsQueryable", kind: "scalar", localName: "IsQueryable", jsonName: "IsQueryable", T: 8 /*ScalarType.BOOL*/ } + ]); + } + create(value?: PartialMessage): KpiDefinition { + const message = globalThis.Object.create((this.messagePrototype!)); + message.Name = ""; + message.Level = ""; + message.DataType = ""; + message.ContentType = ""; + message.EnumValues = ""; + message.FullName = ""; + message.IsComputed = false; + message.GroupToJoin = ""; + message.ColumnType = ""; + message.IsQueryable = false; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: KpiDefinition): KpiDefinition { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string Name */ 1: + message.Name = reader.string(); + break; + case /* string Level */ 2: + message.Level = reader.string(); + break; + case /* string DataType */ 4: + message.DataType = reader.string(); + break; + case /* string ContentType */ 5: + message.ContentType = reader.string(); + break; + case /* string EnumValues */ 6: + message.EnumValues = reader.string(); + break; + case /* string FullName */ 8: + message.FullName = reader.string(); + break; + case /* bool IsComputed */ 9: + message.IsComputed = reader.bool(); + break; + case /* string GroupToJoin */ 11: + message.GroupToJoin = reader.string(); + break; + case /* string ColumnType */ 12: + message.ColumnType = reader.string(); + break; + case /* bool IsQueryable */ 13: + message.IsQueryable = reader.bool(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: KpiDefinition, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string Name = 1; */ + if (message.Name !== "") + writer.tag(1, WireType.LengthDelimited).string(message.Name); + /* string Level = 2; */ + if (message.Level !== "") + writer.tag(2, WireType.LengthDelimited).string(message.Level); + /* string DataType = 4; */ + if (message.DataType !== "") + writer.tag(4, WireType.LengthDelimited).string(message.DataType); + /* string ContentType = 5; */ + if (message.ContentType !== "") + writer.tag(5, WireType.LengthDelimited).string(message.ContentType); + /* string EnumValues = 6; */ + if (message.EnumValues !== "") + writer.tag(6, WireType.LengthDelimited).string(message.EnumValues); + /* string FullName = 8; */ + if (message.FullName !== "") + writer.tag(8, WireType.LengthDelimited).string(message.FullName); + /* bool IsComputed = 9; */ + if (message.IsComputed !== false) + writer.tag(9, WireType.Varint).bool(message.IsComputed); + /* string GroupToJoin = 11; */ + if (message.GroupToJoin !== "") + writer.tag(11, WireType.LengthDelimited).string(message.GroupToJoin); + /* string ColumnType = 12; */ + if (message.ColumnType !== "") + writer.tag(12, WireType.LengthDelimited).string(message.ColumnType); + /* bool IsQueryable = 13; */ + if (message.IsQueryable !== false) + writer.tag(13, WireType.Varint).bool(message.IsQueryable); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.KpiDefinition + */ +export const KpiDefinition = new KpiDefinition$Type(); +// @generated message type with reflection information, may provide speed optimized methods class KpiExpression$Type extends MessageType { constructor() { super("api.KpiExpression", [ @@ -855,7 +1023,7 @@ export const GetKpisWithSelectionRequest = new GetKpisWithSelectionRequest$Type( class GetKpisWithSelectionResult$Type extends MessageType { constructor() { super("api.GetKpisWithSelectionResult", [ - { no: 1, name: "Kpis", kind: "message", localName: "Kpis", jsonName: "Kpis", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Kpi } + { no: 1, name: "Kpis", kind: "message", localName: "Kpis", jsonName: "Kpis", repeat: 2 /*RepeatType.UNPACKED*/, T: () => KpiDefinition } ]); } create(value?: PartialMessage): GetKpisWithSelectionResult { @@ -870,8 +1038,8 @@ class GetKpisWithSelectionResult$Type extends MessageType