|
|
|
|
@@ -75,45 +75,17 @@ export interface KpiDefinition {
|
|
|
|
|
*/
|
|
|
|
|
Name: string;
|
|
|
|
|
/**
|
|
|
|
|
* @generated from protobuf field: string Level = 2
|
|
|
|
|
*/
|
|
|
|
|
Level: string;
|
|
|
|
|
// string Block = 3;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @generated from protobuf field: string DataType = 4
|
|
|
|
|
* @generated from protobuf field: string DataType = 2
|
|
|
|
|
*/
|
|
|
|
|
DataType: string;
|
|
|
|
|
/**
|
|
|
|
|
* @generated from protobuf field: string ContentType = 5
|
|
|
|
|
* @generated from protobuf field: string ContentType = 3
|
|
|
|
|
*/
|
|
|
|
|
ContentType: string;
|
|
|
|
|
/**
|
|
|
|
|
* @generated from protobuf field: string EnumValues = 6
|
|
|
|
|
* @generated from protobuf field: repeated string EnumValues = 4
|
|
|
|
|
*/
|
|
|
|
|
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;
|
|
|
|
|
EnumValues: string[];
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* @generated from protobuf message api.KpiExpression
|
|
|
|
|
@@ -185,52 +157,28 @@ export interface GetKpisResult {
|
|
|
|
|
Kpis: Kpi[];
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* @generated from protobuf message api.GetKpisWithSelectionRequest
|
|
|
|
|
* @generated from protobuf message api.GetCompatibleKpisRequest
|
|
|
|
|
*/
|
|
|
|
|
export interface GetKpisWithSelectionRequest {
|
|
|
|
|
export interface GetCompatibleKpisRequest {
|
|
|
|
|
/**
|
|
|
|
|
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
|
|
|
|
*/
|
|
|
|
|
Header?: RequestProjectHeader;
|
|
|
|
|
/**
|
|
|
|
|
* @generated from protobuf field: string Domain = 2
|
|
|
|
|
*/
|
|
|
|
|
Domain: string;
|
|
|
|
|
/**
|
|
|
|
|
* Widget analysis criterion, executionflow for Order and stock for Stock
|
|
|
|
|
* TODO : Create an enum ?
|
|
|
|
|
*
|
|
|
|
|
* @generated from protobuf field: string Group = 3
|
|
|
|
|
*/
|
|
|
|
|
Group: string;
|
|
|
|
|
/**
|
|
|
|
|
* @generated from protobuf field: bool isMetric = 4
|
|
|
|
|
*/
|
|
|
|
|
isMetric: boolean;
|
|
|
|
|
/**
|
|
|
|
|
* @generated from protobuf field: bool isDimension = 5
|
|
|
|
|
*/
|
|
|
|
|
isDimension: boolean;
|
|
|
|
|
/**
|
|
|
|
|
* @generated from protobuf field: bool isDate = 6
|
|
|
|
|
*/
|
|
|
|
|
isDate: boolean;
|
|
|
|
|
/**
|
|
|
|
|
* @generated from protobuf field: bool isCount = 7
|
|
|
|
|
*/
|
|
|
|
|
isCount: boolean;
|
|
|
|
|
/**
|
|
|
|
|
* @generated from protobuf field: bool OnlyQueryable = 8
|
|
|
|
|
*/
|
|
|
|
|
OnlyQueryable: boolean;
|
|
|
|
|
/**
|
|
|
|
|
* @generated from protobuf field: repeated string SelectedKpis = 9
|
|
|
|
|
* @generated from protobuf field: repeated string SelectedKpis = 4
|
|
|
|
|
*/
|
|
|
|
|
SelectedKpis: string[];
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* @generated from protobuf message api.GetKpisWithSelectionResult
|
|
|
|
|
* @generated from protobuf message api.GetCompatibleKpisResult
|
|
|
|
|
*/
|
|
|
|
|
export interface GetKpisWithSelectionResult {
|
|
|
|
|
export interface GetCompatibleKpisResult {
|
|
|
|
|
/**
|
|
|
|
|
* @generated from protobuf field: repeated api.KpiDefinition Kpis = 1
|
|
|
|
|
*/
|
|
|
|
|
@@ -575,29 +523,17 @@ class KpiDefinition$Type extends MessageType<KpiDefinition> {
|
|
|
|
|
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*/ }
|
|
|
|
|
{ no: 2, name: "DataType", kind: "scalar", localName: "DataType", jsonName: "DataType", T: 9 /*ScalarType.STRING*/ },
|
|
|
|
|
{ no: 3, name: "ContentType", kind: "scalar", localName: "ContentType", jsonName: "ContentType", T: 9 /*ScalarType.STRING*/ },
|
|
|
|
|
{ no: 4, name: "EnumValues", kind: "scalar", localName: "EnumValues", jsonName: "EnumValues", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
create(value?: PartialMessage<KpiDefinition>): 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;
|
|
|
|
|
message.EnumValues = [];
|
|
|
|
|
if (value !== undefined)
|
|
|
|
|
reflectionMergePartial<KpiDefinition>(this, message, value);
|
|
|
|
|
return message;
|
|
|
|
|
@@ -610,32 +546,14 @@ class KpiDefinition$Type extends MessageType<KpiDefinition> {
|
|
|
|
|
case /* string Name */ 1:
|
|
|
|
|
message.Name = reader.string();
|
|
|
|
|
break;
|
|
|
|
|
case /* string Level */ 2:
|
|
|
|
|
message.Level = reader.string();
|
|
|
|
|
break;
|
|
|
|
|
case /* string DataType */ 4:
|
|
|
|
|
case /* string DataType */ 2:
|
|
|
|
|
message.DataType = reader.string();
|
|
|
|
|
break;
|
|
|
|
|
case /* string ContentType */ 5:
|
|
|
|
|
case /* string ContentType */ 3:
|
|
|
|
|
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();
|
|
|
|
|
case /* repeated string EnumValues */ 4:
|
|
|
|
|
message.EnumValues.push(reader.string());
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
let u = options.readUnknownField;
|
|
|
|
|
@@ -652,33 +570,15 @@ class KpiDefinition$Type extends MessageType<KpiDefinition> {
|
|
|
|
|
/* 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; */
|
|
|
|
|
/* string DataType = 2; */
|
|
|
|
|
if (message.DataType !== "")
|
|
|
|
|
writer.tag(4, WireType.LengthDelimited).string(message.DataType);
|
|
|
|
|
/* string ContentType = 5; */
|
|
|
|
|
writer.tag(2, WireType.LengthDelimited).string(message.DataType);
|
|
|
|
|
/* string ContentType = 3; */
|
|
|
|
|
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);
|
|
|
|
|
writer.tag(3, WireType.LengthDelimited).string(message.ContentType);
|
|
|
|
|
/* repeated string EnumValues = 4; */
|
|
|
|
|
for (let i = 0; i < message.EnumValues.length; i++)
|
|
|
|
|
writer.tag(4, WireType.LengthDelimited).string(message.EnumValues[i]);
|
|
|
|
|
let u = options.writeUnknownFields;
|
|
|
|
|
if (u !== false)
|
|
|
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
|
|
|
@@ -910,35 +810,23 @@ class GetKpisResult$Type extends MessageType<GetKpisResult> {
|
|
|
|
|
*/
|
|
|
|
|
export const GetKpisResult = new GetKpisResult$Type();
|
|
|
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
|
|
|
class GetKpisWithSelectionRequest$Type extends MessageType<GetKpisWithSelectionRequest> {
|
|
|
|
|
class GetCompatibleKpisRequest$Type extends MessageType<GetCompatibleKpisRequest> {
|
|
|
|
|
constructor() {
|
|
|
|
|
super("api.GetKpisWithSelectionRequest", [
|
|
|
|
|
super("api.GetCompatibleKpisRequest", [
|
|
|
|
|
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } },
|
|
|
|
|
{ no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } },
|
|
|
|
|
{ no: 3, name: "Group", kind: "scalar", localName: "Group", jsonName: "Group", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["executionflow", "stock", "movement", "handlingunit", "actor", "item", "stock_extended", "claim", "appointment"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Widget analysis criterion, executionflow, stock, movement or handlingunit", example: "\"executionflow\"" } } },
|
|
|
|
|
{ no: 4, name: "isMetric", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
|
|
|
{ no: 5, name: "isDimension", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
|
|
|
{ no: 6, name: "isDate", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
|
|
|
{ no: 7, name: "isCount", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
|
|
|
{ no: 8, name: "OnlyQueryable", kind: "scalar", localName: "OnlyQueryable", jsonName: "OnlyQueryable", T: 8 /*ScalarType.BOOL*/ },
|
|
|
|
|
{ no: 9, name: "SelectedKpis", kind: "scalar", localName: "SelectedKpis", jsonName: "SelectedKpis", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of already selected KPI names" } } }
|
|
|
|
|
{ no: 4, name: "SelectedKpis", kind: "scalar", localName: "SelectedKpis", jsonName: "SelectedKpis", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of already selected KPI names" } } }
|
|
|
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
|
|
|
|
}
|
|
|
|
|
create(value?: PartialMessage<GetKpisWithSelectionRequest>): GetKpisWithSelectionRequest {
|
|
|
|
|
create(value?: PartialMessage<GetCompatibleKpisRequest>): GetCompatibleKpisRequest {
|
|
|
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
|
|
|
message.Domain = "";
|
|
|
|
|
message.Group = "";
|
|
|
|
|
message.isMetric = false;
|
|
|
|
|
message.isDimension = false;
|
|
|
|
|
message.isDate = false;
|
|
|
|
|
message.isCount = false;
|
|
|
|
|
message.OnlyQueryable = false;
|
|
|
|
|
message.SelectedKpis = [];
|
|
|
|
|
if (value !== undefined)
|
|
|
|
|
reflectionMergePartial<GetKpisWithSelectionRequest>(this, message, value);
|
|
|
|
|
reflectionMergePartial<GetCompatibleKpisRequest>(this, message, value);
|
|
|
|
|
return message;
|
|
|
|
|
}
|
|
|
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetKpisWithSelectionRequest): GetKpisWithSelectionRequest {
|
|
|
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetCompatibleKpisRequest): GetCompatibleKpisRequest {
|
|
|
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
|
|
|
while (reader.pos < end) {
|
|
|
|
|
let [fieldNo, wireType] = reader.tag();
|
|
|
|
|
@@ -946,28 +834,10 @@ class GetKpisWithSelectionRequest$Type extends MessageType<GetKpisWithSelectionR
|
|
|
|
|
case /* api.RequestProjectHeader Header */ 1:
|
|
|
|
|
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
|
|
|
break;
|
|
|
|
|
case /* string Domain */ 2:
|
|
|
|
|
message.Domain = reader.string();
|
|
|
|
|
break;
|
|
|
|
|
case /* string Group */ 3:
|
|
|
|
|
message.Group = reader.string();
|
|
|
|
|
break;
|
|
|
|
|
case /* bool isMetric */ 4:
|
|
|
|
|
message.isMetric = reader.bool();
|
|
|
|
|
break;
|
|
|
|
|
case /* bool isDimension */ 5:
|
|
|
|
|
message.isDimension = reader.bool();
|
|
|
|
|
break;
|
|
|
|
|
case /* bool isDate */ 6:
|
|
|
|
|
message.isDate = reader.bool();
|
|
|
|
|
break;
|
|
|
|
|
case /* bool isCount */ 7:
|
|
|
|
|
message.isCount = reader.bool();
|
|
|
|
|
break;
|
|
|
|
|
case /* bool OnlyQueryable */ 8:
|
|
|
|
|
message.OnlyQueryable = reader.bool();
|
|
|
|
|
break;
|
|
|
|
|
case /* repeated string SelectedKpis */ 9:
|
|
|
|
|
case /* repeated string SelectedKpis */ 4:
|
|
|
|
|
message.SelectedKpis.push(reader.string());
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
@@ -981,34 +851,16 @@ class GetKpisWithSelectionRequest$Type extends MessageType<GetKpisWithSelectionR
|
|
|
|
|
}
|
|
|
|
|
return message;
|
|
|
|
|
}
|
|
|
|
|
internalBinaryWrite(message: GetKpisWithSelectionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
|
|
|
internalBinaryWrite(message: GetCompatibleKpisRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
|
|
|
/* api.RequestProjectHeader Header = 1; */
|
|
|
|
|
if (message.Header)
|
|
|
|
|
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
|
|
|
/* string Domain = 2; */
|
|
|
|
|
if (message.Domain !== "")
|
|
|
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Domain);
|
|
|
|
|
/* string Group = 3; */
|
|
|
|
|
if (message.Group !== "")
|
|
|
|
|
writer.tag(3, WireType.LengthDelimited).string(message.Group);
|
|
|
|
|
/* bool isMetric = 4; */
|
|
|
|
|
if (message.isMetric !== false)
|
|
|
|
|
writer.tag(4, WireType.Varint).bool(message.isMetric);
|
|
|
|
|
/* bool isDimension = 5; */
|
|
|
|
|
if (message.isDimension !== false)
|
|
|
|
|
writer.tag(5, WireType.Varint).bool(message.isDimension);
|
|
|
|
|
/* bool isDate = 6; */
|
|
|
|
|
if (message.isDate !== false)
|
|
|
|
|
writer.tag(6, WireType.Varint).bool(message.isDate);
|
|
|
|
|
/* bool isCount = 7; */
|
|
|
|
|
if (message.isCount !== false)
|
|
|
|
|
writer.tag(7, WireType.Varint).bool(message.isCount);
|
|
|
|
|
/* bool OnlyQueryable = 8; */
|
|
|
|
|
if (message.OnlyQueryable !== false)
|
|
|
|
|
writer.tag(8, WireType.Varint).bool(message.OnlyQueryable);
|
|
|
|
|
/* repeated string SelectedKpis = 9; */
|
|
|
|
|
/* repeated string SelectedKpis = 4; */
|
|
|
|
|
for (let i = 0; i < message.SelectedKpis.length; i++)
|
|
|
|
|
writer.tag(9, WireType.LengthDelimited).string(message.SelectedKpis[i]);
|
|
|
|
|
writer.tag(4, WireType.LengthDelimited).string(message.SelectedKpis[i]);
|
|
|
|
|
let u = options.writeUnknownFields;
|
|
|
|
|
if (u !== false)
|
|
|
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
|
|
|
@@ -1016,24 +868,24 @@ class GetKpisWithSelectionRequest$Type extends MessageType<GetKpisWithSelectionR
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* @generated MessageType for protobuf message api.GetKpisWithSelectionRequest
|
|
|
|
|
* @generated MessageType for protobuf message api.GetCompatibleKpisRequest
|
|
|
|
|
*/
|
|
|
|
|
export const GetKpisWithSelectionRequest = new GetKpisWithSelectionRequest$Type();
|
|
|
|
|
export const GetCompatibleKpisRequest = new GetCompatibleKpisRequest$Type();
|
|
|
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
|
|
|
class GetKpisWithSelectionResult$Type extends MessageType<GetKpisWithSelectionResult> {
|
|
|
|
|
class GetCompatibleKpisResult$Type extends MessageType<GetCompatibleKpisResult> {
|
|
|
|
|
constructor() {
|
|
|
|
|
super("api.GetKpisWithSelectionResult", [
|
|
|
|
|
super("api.GetCompatibleKpisResult", [
|
|
|
|
|
{ no: 1, name: "Kpis", kind: "message", localName: "Kpis", jsonName: "Kpis", repeat: 2 /*RepeatType.UNPACKED*/, T: () => KpiDefinition }
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
create(value?: PartialMessage<GetKpisWithSelectionResult>): GetKpisWithSelectionResult {
|
|
|
|
|
create(value?: PartialMessage<GetCompatibleKpisResult>): GetCompatibleKpisResult {
|
|
|
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
|
|
|
message.Kpis = [];
|
|
|
|
|
if (value !== undefined)
|
|
|
|
|
reflectionMergePartial<GetKpisWithSelectionResult>(this, message, value);
|
|
|
|
|
reflectionMergePartial<GetCompatibleKpisResult>(this, message, value);
|
|
|
|
|
return message;
|
|
|
|
|
}
|
|
|
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetKpisWithSelectionResult): GetKpisWithSelectionResult {
|
|
|
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetCompatibleKpisResult): GetCompatibleKpisResult {
|
|
|
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
|
|
|
while (reader.pos < end) {
|
|
|
|
|
let [fieldNo, wireType] = reader.tag();
|
|
|
|
|
@@ -1052,7 +904,7 @@ class GetKpisWithSelectionResult$Type extends MessageType<GetKpisWithSelectionRe
|
|
|
|
|
}
|
|
|
|
|
return message;
|
|
|
|
|
}
|
|
|
|
|
internalBinaryWrite(message: GetKpisWithSelectionResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
|
|
|
internalBinaryWrite(message: GetCompatibleKpisResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
|
|
|
/* repeated api.KpiDefinition Kpis = 1; */
|
|
|
|
|
for (let i = 0; i < message.Kpis.length; i++)
|
|
|
|
|
KpiDefinition.internalBinaryWrite(message.Kpis[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
|
|
|
@@ -1063,9 +915,9 @@ class GetKpisWithSelectionResult$Type extends MessageType<GetKpisWithSelectionRe
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* @generated MessageType for protobuf message api.GetKpisWithSelectionResult
|
|
|
|
|
* @generated MessageType for protobuf message api.GetCompatibleKpisResult
|
|
|
|
|
*/
|
|
|
|
|
export const GetKpisWithSelectionResult = new GetKpisWithSelectionResult$Type();
|
|
|
|
|
export const GetCompatibleKpisResult = new GetCompatibleKpisResult$Type();
|
|
|
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
|
|
|
class GetKpiTableStructureRequest$Type extends MessageType<GetKpiTableStructureRequest> {
|
|
|
|
|
constructor() {
|
|
|
|
|
@@ -1849,7 +1701,7 @@ export const PopulateMVResult = new PopulateMVResult$Type();
|
|
|
|
|
*/
|
|
|
|
|
export const KpiService = new ServiceType("api.KpiService", [
|
|
|
|
|
{ name: "GetKpis", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["KPIs"], description: "Get the KPIs analysis possibilities" }, "api.rscType": "Project", "api.roles": "Platform.Project-KPI", "google.api.method_visibility": { restriction: "SDK" } }, I: GetKpisRequest, O: GetKpisResult },
|
|
|
|
|
{ name: "GetKpisWithSelection", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["KPIs"], description: "Get the KPIs analysis possibilities with the list of already selected KPIs" }, "api.rscType": "Project", "api.roles": "Platform.Project-KPI", "google.api.method_visibility": { restriction: "SDK" } }, I: GetKpisWithSelectionRequest, O: GetKpisWithSelectionResult },
|
|
|
|
|
{ name: "GetCompatibleKpis", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["KPIs"], description: "Get the KPIs compatible with the list of already selected KPIs" }, "api.rscType": "Project", "api.roles": "Platform.Project-KPI", "google.api.method_visibility": { restriction: "SDK" } }, I: GetCompatibleKpisRequest, O: GetCompatibleKpisResult },
|
|
|
|
|
{ name: "GetKpiTableStructure", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["KPIs"], description: "Get KPI Table structure" }, "api.rscType": "Platform", "api.roles": "Platform.Project-KPI", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: GetKpiTableStructureRequest, O: GetKpiTableStructureResult },
|
|
|
|
|
{ name: "UpdateKpiTableStructure", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["KPIs"], description: "Update KPI Table structure" }, "api.rscType": "Platform", "api.roles": "Platform.Project-KPI", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: UpdateKpiTableStructureRequest, O: UpdateKpiTableStructureResult },
|
|
|
|
|
{ name: "DropKpiTableStructure", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["KPIs"], description: "Drop KPI Table structure" }, "api.rscType": "Platform", "api.roles": "Platform.Project-KPI", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DropKpiTableStructureRequest, O: DropKpiTableStructureResult },
|
|
|
|
|
|