You've already forked npm-core-sdk
Latest generation
This commit is contained in:
204
kpi.ts
204
kpi.ts
@@ -88,7 +88,6 @@ export interface KpiExpression {
|
||||
Query: string;
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
* @generated from protobuf message api.GetKpisRequest
|
||||
*/
|
||||
export interface GetKpisRequest {
|
||||
@@ -128,7 +127,6 @@ export interface GetKpisRequest {
|
||||
OnlyQueryable: boolean;
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
* @generated from protobuf message api.GetKpisResult
|
||||
*/
|
||||
export interface GetKpisResult {
|
||||
@@ -137,54 +135,6 @@ export interface GetKpisResult {
|
||||
*/
|
||||
Kpis: Kpi[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.GetProjectKpisRequest
|
||||
*/
|
||||
export interface GetProjectKpisRequest {
|
||||
/**
|
||||
* @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
|
||||
*
|
||||
* @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 message api.GetProjectKpisResult
|
||||
*/
|
||||
export interface GetProjectKpisResult {
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.Kpi Kpis = 1
|
||||
*/
|
||||
Kpis: Kpi[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.GetKpiTableStructureRequest
|
||||
*/
|
||||
@@ -651,7 +601,6 @@ class GetKpisRequest$Type extends MessageType<GetKpisRequest> {
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
* @generated MessageType for protobuf message api.GetKpisRequest
|
||||
*/
|
||||
export const GetKpisRequest = new GetKpisRequest$Type();
|
||||
@@ -699,160 +648,10 @@ class GetKpisResult$Type extends MessageType<GetKpisResult> {
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
* @generated MessageType for protobuf message api.GetKpisResult
|
||||
*/
|
||||
export const GetKpisResult = new GetKpisResult$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetProjectKpisRequest$Type extends MessageType<GetProjectKpisRequest> {
|
||||
constructor() {
|
||||
super("api.GetProjectKpisRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" }, "validate.rules": { string: { in: ["trade", "collab"] } } } },
|
||||
{ no: 3, name: "Group", kind: "scalar", localName: "Group", jsonName: "Group", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Widget analysis criterion, executionflow, stock, movement or handlingunit", example: "\"executionflow\"" }, "validate.rules": { string: { in: ["executionflow", "stock", "movement", "handlingunit", "actor", "item", "stock_extended", "claim"] } } } },
|
||||
{ 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*/ }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<GetProjectKpisRequest>): GetProjectKpisRequest {
|
||||
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;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetProjectKpisRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectKpisRequest): GetProjectKpisRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
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;
|
||||
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: GetProjectKpisRequest, 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);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.GetProjectKpisRequest
|
||||
*/
|
||||
export const GetProjectKpisRequest = new GetProjectKpisRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetProjectKpisResult$Type extends MessageType<GetProjectKpisResult> {
|
||||
constructor() {
|
||||
super("api.GetProjectKpisResult", [
|
||||
{ no: 1, name: "Kpis", kind: "message", localName: "Kpis", jsonName: "Kpis", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Kpi }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<GetProjectKpisResult>): GetProjectKpisResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Kpis = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetProjectKpisResult>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectKpisResult): GetProjectKpisResult {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.Kpi Kpis */ 1:
|
||||
message.Kpis.push(Kpi.internalBinaryRead(reader, reader.uint32(), options));
|
||||
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: GetProjectKpisResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.Kpi Kpis = 1; */
|
||||
for (let i = 0; i < message.Kpis.length; i++)
|
||||
Kpi.internalBinaryWrite(message.Kpis[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.GetProjectKpisResult
|
||||
*/
|
||||
export const GetProjectKpisResult = new GetProjectKpisResult$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetKpiTableStructureRequest$Type extends MessageType<GetKpiTableStructureRequest> {
|
||||
constructor() {
|
||||
super("api.GetKpiTableStructureRequest", [
|
||||
@@ -1525,8 +1324,7 @@ export const PopulateMVResult = new PopulateMVResult$Type();
|
||||
* @generated ServiceType for protobuf service api.KpiService
|
||||
*/
|
||||
export const KpiService = new ServiceType("api.KpiService", [
|
||||
{ name: "GetKpis", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["KPIs"], description: "DEPRECATED : replaced by GetProjectKpis. Get the KPIs analysis possibilities" }, "api.rscType": "Project", "api.roles": "Platform.Project-KPI", "google.api.method_visibility": { restriction: "SDK" } }, I: GetKpisRequest, O: GetKpisResult },
|
||||
{ name: "GetProjectKpis", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["KPIs"], description: "Get the project KPIs analysis possibilities" }, "api.rscType": "Project", "api.roles": "Platform.Project-KPI", "google.api.method_visibility": { restriction: "SDK" } }, I: GetProjectKpisRequest, O: GetProjectKpisResult },
|
||||
{ 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: "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: "GetKpiEntities", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["KPIs"], description: "Get the entities with KPIs" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: GetKpiEntitiesRequest, O: GetKpiEntitiesResult },
|
||||
|
||||
Reference in New Issue
Block a user