diff --git a/kpi.client.ts b/kpi.client.ts index 979aca59..4c40c8db 100644 --- a/kpi.client.ts +++ b/kpi.client.ts @@ -14,6 +14,8 @@ import type { ClearKpiEntityResult } from "./kpi"; import type { ClearKpiEntityRequest } from "./kpi"; import type { GetKpiEntitiesResult } from "./kpi"; import type { GetKpiEntitiesRequest } from "./kpi"; +import type { DropKpiTableStructureResult } from "./kpi"; +import type { DropKpiTableStructureRequest } from "./kpi"; import type { UpdateKpiTableStructureResult } from "./kpi"; import type { UpdateKpiTableStructureRequest } from "./kpi"; import type { GetKpiTableStructureResult } from "./kpi"; @@ -39,6 +41,10 @@ export interface IKpiServiceClient { * @generated from protobuf rpc: UpdateKpiTableStructure */ updateKpiTableStructure(input: UpdateKpiTableStructureRequest, options?: RpcOptions): UnaryCall; + /** + * @generated from protobuf rpc: DropKpiTableStructure + */ + dropKpiTableStructure(input: DropKpiTableStructureRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: GetKpiEntities */ @@ -90,39 +96,46 @@ export class KpiServiceClient implements IKpiServiceClient, ServiceInfo { const method = this.methods[2], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } + /** + * @generated from protobuf rpc: DropKpiTableStructure + */ + dropKpiTableStructure(input: DropKpiTableStructureRequest, options?: RpcOptions): UnaryCall { + const method = this.methods[3], opt = this._transport.mergeOptions(options); + return stackIntercept("unary", this._transport, method, opt, input); + } /** * @generated from protobuf rpc: GetKpiEntities */ getKpiEntities(input: GetKpiEntitiesRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[3], opt = this._transport.mergeOptions(options); + const method = this.methods[4], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: ClearKpiEntity */ clearKpiEntity(input: ClearKpiEntityRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[4], opt = this._transport.mergeOptions(options); + const method = this.methods[5], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: CreateMV */ createMV(input: CreateMVRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[5], opt = this._transport.mergeOptions(options); + const method = this.methods[6], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: DropMV */ dropMV(input: DropMVRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[6], opt = this._transport.mergeOptions(options); + const method = this.methods[7], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: PopulateMV */ populateMV(input: PopulateMVRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[7], opt = this._transport.mergeOptions(options); + const method = this.methods[8], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } } diff --git a/kpi.ts b/kpi.ts index 4478ff69..5aed20ed 100644 --- a/kpi.ts +++ b/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 ["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 { const message = globalThis.Object.create((this.messagePrototype!)); message.RscID = ""; message.Domain = ""; + message.Entity = 0; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -678,6 +710,9 @@ class GetKpiTableStructureRequest$Type extends MessageType ["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 { const message = globalThis.Object.create((this.messagePrototype!)); message.RscID = ""; message.Domain = ""; + message.Entity = 0; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -780,6 +820,9 @@ class UpdateKpiTableStructureRequest$Type extends MessageType { + 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 { + const message = globalThis.Object.create((this.messagePrototype!)); + message.RscID = ""; + message.Domain = ""; + message.Entity = 0; + if (value !== undefined) + reflectionMergePartial(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 { + constructor() { + super("api.DropKpiTableStructureResult", []); + } + create(value?: PartialMessage): DropKpiTableStructureResult { + const message = globalThis.Object.create((this.messagePrototype!)); + if (value !== undefined) + reflectionMergePartial(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 { 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 }, diff --git a/model-errors/model_errors_en.json b/model-errors/model_errors_en.json index b0e58e1d..f437b2cd 100644 --- a/model-errors/model_errors_en.json +++ b/model-errors/model_errors_en.json @@ -267,6 +267,10 @@ "TechMessage": "CompleteSnapshot {snapshotID} ends with limitations : unable to identify old stock entries.", "UserMessage": "All stock entries not covered by snapshot {snapshotID} were not reset to quantity 0." }, + "PROPAGATION_SNAPSHOTTING_3": { + "TechMessage": "CompleteSnapshot {snapshotID} ends with limitations : too many stock entries updated.", + "UserMessage": "All stock entries not covered by snapshot {snapshotID} because it exceeds maximum processing size." + }, "REQUEST_VALIDATION_2FA_OPTIONAL_FORBIDDEN": { "TechMessage": "Platform-Manager and Platform-Operator users cannot have optional 2FA", "UserMessage": "Platform-Manager and Platform-Operator users cannot have optional 2FA" diff --git a/model-errors/model_errors_es.json b/model-errors/model_errors_es.json index 9b345a41..e64554ee 100644 --- a/model-errors/model_errors_es.json +++ b/model-errors/model_errors_es.json @@ -267,6 +267,10 @@ "TechMessage": "", "UserMessage": "" }, + "PROPAGATION_SNAPSHOTTING_3": { + "TechMessage": "", + "UserMessage": "" + }, "REQUEST_VALIDATION_2FA_OPTIONAL_FORBIDDEN": { "TechMessage": "", "UserMessage": "" diff --git a/model-errors/model_errors_fr.json b/model-errors/model_errors_fr.json index 9b345a41..e64554ee 100644 --- a/model-errors/model_errors_fr.json +++ b/model-errors/model_errors_fr.json @@ -267,6 +267,10 @@ "TechMessage": "", "UserMessage": "" }, + "PROPAGATION_SNAPSHOTTING_3": { + "TechMessage": "", + "UserMessage": "" + }, "REQUEST_VALIDATION_2FA_OPTIONAL_FORBIDDEN": { "TechMessage": "", "UserMessage": "" diff --git a/model-errors/model_errors_it.json b/model-errors/model_errors_it.json index 9b345a41..e64554ee 100644 --- a/model-errors/model_errors_it.json +++ b/model-errors/model_errors_it.json @@ -267,6 +267,10 @@ "TechMessage": "", "UserMessage": "" }, + "PROPAGATION_SNAPSHOTTING_3": { + "TechMessage": "", + "UserMessage": "" + }, "REQUEST_VALIDATION_2FA_OPTIONAL_FORBIDDEN": { "TechMessage": "", "UserMessage": "" diff --git a/model-errors/model_errors_nl.json b/model-errors/model_errors_nl.json index 9b345a41..e64554ee 100644 --- a/model-errors/model_errors_nl.json +++ b/model-errors/model_errors_nl.json @@ -267,6 +267,10 @@ "TechMessage": "", "UserMessage": "" }, + "PROPAGATION_SNAPSHOTTING_3": { + "TechMessage": "", + "UserMessage": "" + }, "REQUEST_VALIDATION_2FA_OPTIONAL_FORBIDDEN": { "TechMessage": "", "UserMessage": "" diff --git a/model-errors/model_errors_pl.json b/model-errors/model_errors_pl.json index 9b345a41..e64554ee 100644 --- a/model-errors/model_errors_pl.json +++ b/model-errors/model_errors_pl.json @@ -267,6 +267,10 @@ "TechMessage": "", "UserMessage": "" }, + "PROPAGATION_SNAPSHOTTING_3": { + "TechMessage": "", + "UserMessage": "" + }, "REQUEST_VALIDATION_2FA_OPTIONAL_FORBIDDEN": { "TechMessage": "", "UserMessage": "" diff --git a/model-errors/model_errors_pt.json b/model-errors/model_errors_pt.json index 9b345a41..e64554ee 100644 --- a/model-errors/model_errors_pt.json +++ b/model-errors/model_errors_pt.json @@ -267,6 +267,10 @@ "TechMessage": "", "UserMessage": "" }, + "PROPAGATION_SNAPSHOTTING_3": { + "TechMessage": "", + "UserMessage": "" + }, "REQUEST_VALIDATION_2FA_OPTIONAL_FORBIDDEN": { "TechMessage": "", "UserMessage": "" diff --git a/package.json b/package.json index f8d9c56d..68049304 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.13.0-SNAPSHOT-260409095235", + "version": "1.13.0-SNAPSHOT-260413083348", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts",