Latest generation

This commit is contained in:
ci core model
2026-09-03 13:29:13 +00:00
parent a3ae84a8d0
commit ed24836a45
3 changed files with 56 additions and 12 deletions

21
kpi.ts
View File

@@ -12,6 +12,7 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
import { reflectionMergePartial } from "@protobuf-ts/runtime"; import { reflectionMergePartial } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime"; import { MessageType } from "@protobuf-ts/runtime";
import { EntityType } from "./shared"; import { EntityType } from "./shared";
import { KpiGroup } from "./shared";
import { RequestProjectHeader } from "./shared"; import { RequestProjectHeader } from "./shared";
/** /**
* @generated from protobuf message api.Kpi * @generated from protobuf message api.Kpi
@@ -165,11 +166,9 @@ export interface GetCompatibleKpisRequest {
*/ */
Header?: RequestProjectHeader; Header?: RequestProjectHeader;
/** /**
* TODO : Create an enum ? * @generated from protobuf field: api.KpiGroup Group = 3
*
* @generated from protobuf field: string Group = 3
*/ */
Group: string; Group: KpiGroup;
/** /**
* @generated from protobuf field: repeated string CompatibleWith = 4 * @generated from protobuf field: repeated string CompatibleWith = 4
*/ */
@@ -814,13 +813,13 @@ class GetCompatibleKpisRequest$Type extends MessageType<GetCompatibleKpisRequest
constructor() { constructor() {
super("api.GetCompatibleKpisRequest", [ super("api.GetCompatibleKpisRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { 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" } } } { 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"] } } }); ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
} }
create(value?: PartialMessage<GetCompatibleKpisRequest>): GetCompatibleKpisRequest { create(value?: PartialMessage<GetCompatibleKpisRequest>): GetCompatibleKpisRequest {
const message = globalThis.Object.create((this.messagePrototype!)); const message = globalThis.Object.create((this.messagePrototype!));
message.Group = ""; message.Group = 0;
message.CompatibleWith = []; message.CompatibleWith = [];
if (value !== undefined) if (value !== undefined)
reflectionMergePartial<GetCompatibleKpisRequest>(this, message, value); reflectionMergePartial<GetCompatibleKpisRequest>(this, message, value);
@@ -834,8 +833,8 @@ class GetCompatibleKpisRequest$Type extends MessageType<GetCompatibleKpisRequest
case /* api.RequestProjectHeader Header */ 1: case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break; break;
case /* string Group */ 3: case /* api.KpiGroup Group */ 3:
message.Group = reader.string(); message.Group = reader.int32();
break; break;
case /* repeated string CompatibleWith */ 4: case /* repeated string CompatibleWith */ 4:
message.CompatibleWith.push(reader.string()); message.CompatibleWith.push(reader.string());
@@ -855,9 +854,9 @@ class GetCompatibleKpisRequest$Type extends MessageType<GetCompatibleKpisRequest
/* api.RequestProjectHeader Header = 1; */ /* api.RequestProjectHeader Header = 1; */
if (message.Header) if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string Group = 3; */ /* api.KpiGroup Group = 3; */
if (message.Group !== "") if (message.Group !== 0)
writer.tag(3, WireType.LengthDelimited).string(message.Group); writer.tag(3, WireType.Varint).int32(message.Group);
/* repeated string CompatibleWith = 4; */ /* repeated string CompatibleWith = 4; */
for (let i = 0; i < message.CompatibleWith.length; i++) for (let i = 0; i < message.CompatibleWith.length; i++)
writer.tag(4, WireType.LengthDelimited).string(message.CompatibleWith[i]); writer.tag(4, WireType.LengthDelimited).string(message.CompatibleWith[i]);

View File

@@ -1,6 +1,6 @@
{ {
"name": "@reflex-platform/npm-core-sdk", "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", "description": "npm libs from core model proto files",
"homepage": "", "homepage": "",
"main": "index.ts", "main": "index.ts",

View File

@@ -2697,6 +2697,51 @@ export enum EntityType {
*/ */
ENTITY_TYPE_PLATFORMLOG = 13 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 * @generated from protobuf enum api.ClaimEntityType
*/ */