You've already forked npm-core-sdk
Latest generation
This commit is contained in:
152
kpi.ts
152
kpi.ts
@@ -147,6 +147,10 @@ export interface GetKpiTableStructureRequest {
|
||||
* @generated from protobuf field: string Domain = 2
|
||||
*/
|
||||
Domain: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityType Entity = 3
|
||||
*/
|
||||
Entity: EntityType;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.GetKpiTableStructureResult
|
||||
@@ -169,12 +173,38 @@ export interface UpdateKpiTableStructureRequest {
|
||||
* @generated from protobuf field: string Domain = 2
|
||||
*/
|
||||
Domain: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityType Entity = 3
|
||||
*/
|
||||
Entity: EntityType;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.UpdateKpiTableStructureResult
|
||||
*/
|
||||
export interface UpdateKpiTableStructureResult {
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.DropKpiTableStructureRequest
|
||||
*/
|
||||
export interface DropKpiTableStructureRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string RscID = 1
|
||||
*/
|
||||
RscID: string; // RscID or SiteID
|
||||
/**
|
||||
* @generated from protobuf field: string Domain = 2
|
||||
*/
|
||||
Domain: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityType Entity = 3
|
||||
*/
|
||||
Entity: EntityType;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.DropKpiTableStructureResult
|
||||
*/
|
||||
export interface DropKpiTableStructureResult {
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.GetKpiEntitiesRequest
|
||||
*/
|
||||
@@ -656,13 +686,15 @@ class GetKpiTableStructureRequest$Type extends MessageType<GetKpiTableStructureR
|
||||
constructor() {
|
||||
super("api.GetKpiTableStructureRequest", [
|
||||
{ no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab", "core"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } }
|
||||
{ no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab", "core"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } },
|
||||
{ no: 3, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "validate.rules": { enum: { definedOnly: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RscID", "Domain"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<GetKpiTableStructureRequest>): GetKpiTableStructureRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.RscID = "";
|
||||
message.Domain = "";
|
||||
message.Entity = 0;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetKpiTableStructureRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -678,6 +710,9 @@ class GetKpiTableStructureRequest$Type extends MessageType<GetKpiTableStructureR
|
||||
case /* string Domain */ 2:
|
||||
message.Domain = reader.string();
|
||||
break;
|
||||
case /* api.EntityType Entity */ 3:
|
||||
message.Entity = reader.int32();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -696,6 +731,9 @@ class GetKpiTableStructureRequest$Type extends MessageType<GetKpiTableStructureR
|
||||
/* string Domain = 2; */
|
||||
if (message.Domain !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Domain);
|
||||
/* api.EntityType Entity = 3; */
|
||||
if (message.Entity !== 0)
|
||||
writer.tag(3, WireType.Varint).int32(message.Entity);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -758,13 +796,15 @@ class UpdateKpiTableStructureRequest$Type extends MessageType<UpdateKpiTableStru
|
||||
constructor() {
|
||||
super("api.UpdateKpiTableStructureRequest", [
|
||||
{ no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab", "core"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } }
|
||||
{ no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab", "core"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } },
|
||||
{ no: 3, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "validate.rules": { enum: { definedOnly: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RscID", "RscType", "Domain"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<UpdateKpiTableStructureRequest>): UpdateKpiTableStructureRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.RscID = "";
|
||||
message.Domain = "";
|
||||
message.Entity = 0;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<UpdateKpiTableStructureRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -780,6 +820,9 @@ class UpdateKpiTableStructureRequest$Type extends MessageType<UpdateKpiTableStru
|
||||
case /* string Domain */ 2:
|
||||
message.Domain = reader.string();
|
||||
break;
|
||||
case /* api.EntityType Entity */ 3:
|
||||
message.Entity = reader.int32();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -798,6 +841,9 @@ class UpdateKpiTableStructureRequest$Type extends MessageType<UpdateKpiTableStru
|
||||
/* string Domain = 2; */
|
||||
if (message.Domain !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Domain);
|
||||
/* api.EntityType Entity = 3; */
|
||||
if (message.Entity !== 0)
|
||||
writer.tag(3, WireType.Varint).int32(message.Entity);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -847,6 +893,107 @@ class UpdateKpiTableStructureResult$Type extends MessageType<UpdateKpiTableStruc
|
||||
*/
|
||||
export const UpdateKpiTableStructureResult = new UpdateKpiTableStructureResult$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class DropKpiTableStructureRequest$Type extends MessageType<DropKpiTableStructureRequest> {
|
||||
constructor() {
|
||||
super("api.DropKpiTableStructureRequest", [
|
||||
{ no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab", "core"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } },
|
||||
{ no: 3, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "validate.rules": { enum: { definedOnly: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RscID", "RscType", "Domain"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<DropKpiTableStructureRequest>): DropKpiTableStructureRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.RscID = "";
|
||||
message.Domain = "";
|
||||
message.Entity = 0;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DropKpiTableStructureRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DropKpiTableStructureRequest): DropKpiTableStructureRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string RscID */ 1:
|
||||
message.RscID = reader.string();
|
||||
break;
|
||||
case /* string Domain */ 2:
|
||||
message.Domain = reader.string();
|
||||
break;
|
||||
case /* api.EntityType Entity */ 3:
|
||||
message.Entity = reader.int32();
|
||||
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: DropKpiTableStructureRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string RscID = 1; */
|
||||
if (message.RscID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.RscID);
|
||||
/* string Domain = 2; */
|
||||
if (message.Domain !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Domain);
|
||||
/* api.EntityType Entity = 3; */
|
||||
if (message.Entity !== 0)
|
||||
writer.tag(3, WireType.Varint).int32(message.Entity);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.DropKpiTableStructureRequest
|
||||
*/
|
||||
export const DropKpiTableStructureRequest = new DropKpiTableStructureRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class DropKpiTableStructureResult$Type extends MessageType<DropKpiTableStructureResult> {
|
||||
constructor() {
|
||||
super("api.DropKpiTableStructureResult", []);
|
||||
}
|
||||
create(value?: PartialMessage<DropKpiTableStructureResult>): DropKpiTableStructureResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DropKpiTableStructureResult>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DropKpiTableStructureResult): DropKpiTableStructureResult {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
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: DropKpiTableStructureResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.DropKpiTableStructureResult
|
||||
*/
|
||||
export const DropKpiTableStructureResult = new DropKpiTableStructureResult$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetKpiEntitiesRequest$Type extends MessageType<GetKpiEntitiesRequest> {
|
||||
constructor() {
|
||||
super("api.GetKpiEntitiesRequest", [
|
||||
@@ -1327,6 +1474,7 @@ 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: "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 },
|
||||
{ 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 },
|
||||
{ name: "ClearKpiEntity", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["KPIs"], description: "Clear KPI data for a specific entity" }, "api.rscType": "Platform", "api.roles": "Platform.Project-KPI", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ClearKpiEntityRequest, O: ClearKpiEntityResult },
|
||||
{ name: "CreateMV", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["KPIs"], description: "Build materialized view for all kpi groups" }, "api.rscType": "Platform", "api.roles": "Platform.Project-KPI", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: CreateMVRequest, O: CreateMVResult },
|
||||
|
||||
Reference in New Issue
Block a user