You've already forked npm-core-sdk
Latest generation
This commit is contained in:
21
kpi.ts
21
kpi.ts
@@ -12,6 +12,7 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
|
||||
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
||||
import { MessageType } from "@protobuf-ts/runtime";
|
||||
import { EntityType } from "./shared";
|
||||
import { KpiGroup } from "./shared";
|
||||
import { RequestProjectHeader } from "./shared";
|
||||
/**
|
||||
* @generated from protobuf message api.Kpi
|
||||
@@ -165,11 +166,9 @@ export interface GetCompatibleKpisRequest {
|
||||
*/
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* TODO : Create an enum ?
|
||||
*
|
||||
* @generated from protobuf field: string Group = 3
|
||||
* @generated from protobuf field: api.KpiGroup Group = 3
|
||||
*/
|
||||
Group: string;
|
||||
Group: KpiGroup;
|
||||
/**
|
||||
* @generated from protobuf field: repeated string CompatibleWith = 4
|
||||
*/
|
||||
@@ -814,13 +813,13 @@ class GetCompatibleKpisRequest$Type extends MessageType<GetCompatibleKpisRequest
|
||||
constructor() {
|
||||
super("api.GetCompatibleKpisRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } },
|
||||
{ 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: 3, name: "Group", kind: "enum", localName: "Group", jsonName: "Group", T: () => ["api.KpiGroup", KpiGroup], options: { "n1validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ no: 4, name: "CompatibleWith", kind: "scalar", localName: "CompatibleWith", jsonName: "CompatibleWith", 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<GetCompatibleKpisRequest>): GetCompatibleKpisRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Group = "";
|
||||
message.Group = 0;
|
||||
message.CompatibleWith = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetCompatibleKpisRequest>(this, message, value);
|
||||
@@ -834,8 +833,8 @@ class GetCompatibleKpisRequest$Type extends MessageType<GetCompatibleKpisRequest
|
||||
case /* api.RequestProjectHeader Header */ 1:
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string Group */ 3:
|
||||
message.Group = reader.string();
|
||||
case /* api.KpiGroup Group */ 3:
|
||||
message.Group = reader.int32();
|
||||
break;
|
||||
case /* repeated string CompatibleWith */ 4:
|
||||
message.CompatibleWith.push(reader.string());
|
||||
@@ -855,9 +854,9 @@ class GetCompatibleKpisRequest$Type extends MessageType<GetCompatibleKpisRequest
|
||||
/* api.RequestProjectHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string Group = 3; */
|
||||
if (message.Group !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.Group);
|
||||
/* api.KpiGroup Group = 3; */
|
||||
if (message.Group !== 0)
|
||||
writer.tag(3, WireType.Varint).int32(message.Group);
|
||||
/* repeated string CompatibleWith = 4; */
|
||||
for (let i = 0; i < message.CompatibleWith.length; i++)
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.CompatibleWith[i]);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.15.0-SNAPSHOT-260903124728",
|
||||
"version": "1.15.0-SNAPSHOT-260903132829",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
45
shared.ts
45
shared.ts
@@ -2697,6 +2697,51 @@ export enum EntityType {
|
||||
*/
|
||||
ENTITY_TYPE_PLATFORMLOG = 13
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf enum api.KpiGroup
|
||||
*/
|
||||
export enum KpiGroup {
|
||||
/**
|
||||
* @generated from protobuf enum value: KPI_GROUP_UNKNOWN = 0;
|
||||
*/
|
||||
KPI_GROUP_UNKNOWN = 0,
|
||||
/**
|
||||
* @generated from protobuf enum value: KPI_GROUP_EXECUTIONFLOW = 1;
|
||||
*/
|
||||
KPI_GROUP_EXECUTIONFLOW = 1,
|
||||
/**
|
||||
* @generated from protobuf enum value: KPI_GROUP_HANDLINGUNIT = 2;
|
||||
*/
|
||||
KPI_GROUP_HANDLINGUNIT = 2,
|
||||
/**
|
||||
* @generated from protobuf enum value: KPI_GROUP_STOCK = 3;
|
||||
*/
|
||||
KPI_GROUP_STOCK = 3,
|
||||
/**
|
||||
* @generated from protobuf enum value: KPI_GROUP_STOCK_EXTENDED = 4;
|
||||
*/
|
||||
KPI_GROUP_STOCK_EXTENDED = 4,
|
||||
/**
|
||||
* @generated from protobuf enum value: KPI_GROUP_MOVEMENT = 5;
|
||||
*/
|
||||
KPI_GROUP_MOVEMENT = 5,
|
||||
/**
|
||||
* @generated from protobuf enum value: KPI_GROUP_ACTOR = 6;
|
||||
*/
|
||||
KPI_GROUP_ACTOR = 6,
|
||||
/**
|
||||
* @generated from protobuf enum value: KPI_GROUP_ITEM = 7;
|
||||
*/
|
||||
KPI_GROUP_ITEM = 7,
|
||||
/**
|
||||
* @generated from protobuf enum value: KPI_GROUP_CLAIM = 8;
|
||||
*/
|
||||
KPI_GROUP_CLAIM = 8,
|
||||
/**
|
||||
* @generated from protobuf enum value: KPI_GROUP_APPOINTMENT = 9;
|
||||
*/
|
||||
KPI_GROUP_APPOINTMENT = 9
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf enum api.ClaimEntityType
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user