@things-factory/kpi 9.0.14 → 9.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-server/service/index.d.ts +2 -2
- package/dist-server/service/kpi-category/kpi-category-type.d.ts +1 -0
- package/dist-server/service/kpi-category/kpi-category-type.js +5 -1
- package/dist-server/service/kpi-category/kpi-category-type.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/server/service/kpi-category/kpi-category-type.ts +4 -1
|
@@ -7,7 +7,7 @@ export * from './kpi-value/kpi-value-type';
|
|
|
7
7
|
export * from './kpi-metric/kpi-metric';
|
|
8
8
|
export * from './kpi-metric/kpi-metric-type';
|
|
9
9
|
export * from './kpi-alert';
|
|
10
|
-
export declare const entities: (typeof import("./kpi
|
|
10
|
+
export declare const entities: (typeof import("./kpi/kpi").Kpi | typeof import("./kpi/kpi-history").KpiHistory | typeof import("./kpi-category/kpi-category").KpiCategory | typeof import("./kpi-value/kpi-value").KpiValue | typeof import("./kpi-metric/kpi-metric").KpiMetric)[];
|
|
11
11
|
export declare const schema: {
|
|
12
|
-
resolverClasses: (typeof import("./kpi
|
|
12
|
+
resolverClasses: (typeof import("./kpi/kpi-query").KpiQuery | typeof import("./kpi/kpi-mutation").KpiMutation | typeof import("./kpi-category/kpi-category-query").KpiCategoryQuery | typeof import("./kpi-category/kpi-category-mutation").KpiCategoryMutation | typeof import("./kpi-value/kpi-value-query").KpiValueQuery | typeof import("./kpi-value/kpi-value-mutation").KpiValueMutation | typeof import("./kpi-metric/kpi-metric-query").KpiMetricQuery | typeof import("./kpi-metric/kpi-metric-mutation").KpiMetricMutation | typeof import("./kpi-alert/kpi-alert-query").KpiAlertQuery)[];
|
|
13
13
|
};
|
|
@@ -20,7 +20,7 @@ tslib_1.__decorate([
|
|
|
20
20
|
tslib_1.__metadata("design:type", String)
|
|
21
21
|
], NewKpiCategory.prototype, "parentId", void 0);
|
|
22
22
|
tslib_1.__decorate([
|
|
23
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
23
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Whether this category is active (usable) or not.' }),
|
|
24
24
|
tslib_1.__metadata("design:type", Boolean)
|
|
25
25
|
], NewKpiCategory.prototype, "active", void 0);
|
|
26
26
|
exports.NewKpiCategory = NewKpiCategory = tslib_1.__decorate([
|
|
@@ -47,6 +47,10 @@ tslib_1.__decorate([
|
|
|
47
47
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true, description: 'ID of the parent category, if any.' }),
|
|
48
48
|
tslib_1.__metadata("design:type", String)
|
|
49
49
|
], KpiCategoryPatch.prototype, "parentId", void 0);
|
|
50
|
+
tslib_1.__decorate([
|
|
51
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Whether this category is active (usable) or not.' }),
|
|
52
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
53
|
+
], KpiCategoryPatch.prototype, "active", void 0);
|
|
50
54
|
tslib_1.__decorate([
|
|
51
55
|
(0, type_graphql_1.Field)({ nullable: true, description: 'Custom flag for update operations (internal use).' }),
|
|
52
56
|
tslib_1.__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kpi-category-type.js","sourceRoot":"","sources":["../../../server/service/kpi-category/kpi-category-type.ts"],"names":[],"mappings":";;;;AAEA,+CAAsF;AAItF,iDAA4C;AAKrC,IAAM,cAAc,GAApB,MAAM,cAAc;CAY1B,CAAA;AAZY,wCAAc;AAEzB;IADC,IAAA,oBAAK,EAAC,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC;;4CACxC;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,4CAA4C,EAAE,CAAC;;mDACjE;AAGpB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAA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,CAAC;;qDACjE;AAGpB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,oCAAoC,EAAE,CAAC;;kDACxE;AAGjB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,kDAAkD,EAAE,CAAC;;gDAC3E;AAGhB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,mDAAmD,EAAE,CAAC;;gDAC7E;2BAjBJ,gBAAgB;IAH5B,IAAA,wBAAS,EAAC;QACT,WAAW,EAAE,gGAAgG;KAC9G,CAAC;GACW,gBAAgB,CAkB5B;AAGM,IAAM,eAAe,GAArB,MAAM,eAAe;CAM3B,CAAA;AANY,0CAAe;AAE1B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,0BAAW,CAAC,CAAC;;8CACT;AAGpB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;8CACN;0BALF,eAAe;IAD3B,IAAA,yBAAU,GAAE;GACA,eAAe,CAM3B","sourcesContent":["import type { FileUpload } from 'graphql-upload/GraphQLUpload.js'\nimport GraphQLUpload from 'graphql-upload/GraphQLUpload.js'\nimport { ObjectType, Field, InputType, Int, ID, registerEnumType } from 'type-graphql'\n\nimport { ObjectRef, ScalarObject } from '@things-factory/shell'\n\nimport { KpiCategory } from './kpi-category'\n\n@InputType({\n description: 'Input type for creating a new KPI category. Used in mutations to provide category details.'\n})\nexport class NewKpiCategory {\n @Field({ description: 'Name of the KPI category.' })\n name: string\n\n @Field({ nullable: true, description: 'Detailed description of this KPI category.' })\n description?: string\n\n @Field(type => ID, { nullable: true, description: 'ID of the parent category, if any.' })\n parentId?: string\n\n @Field({ nullable: true, description: 'Whether this category is active (usable) or not.' })\n active?: boolean\n}\n\n@InputType({\n description: 'Input type for updating an existing KPI category. Used in mutations to patch category details.'\n})\nexport class KpiCategoryPatch {\n @Field(type => ID, { nullable: true, description: 'ID of the KPI category to update.' })\n id?: string\n\n @Field({ nullable: true, description: 'Name of the KPI category.' })\n name?: string\n\n @Field({ nullable: true, description: 'Detailed description of this KPI category.' })\n description?: string\n\n @Field(type => ID, { nullable: true, description: 'ID of the parent category, if any.' })\n parentId?: string\n\n @Field({ nullable: true, description: 'Whether this category is active (usable) or not.' })\n active?: boolean\n\n @Field({ nullable: true, description: 'Custom flag for update operations (internal use).' })\n cuFlag?: string\n}\n\n@ObjectType()\nexport class KpiCategoryList {\n @Field(type => [KpiCategory])\n items: KpiCategory[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|