@things-factory/dataset 6.0.70 → 6.0.72
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-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/service/data-set/data-item-type.js +23 -1
- package/dist-server/service/data-set/data-item-type.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -11
- package/server/service/data-set/data-item-type.ts +22 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DataItemPatch = exports.DataItem = exports.DataItemType = void 0;
|
3
|
+
exports.DataItemPatch = exports.DataItem = exports.DataItemReducerType = exports.DataItemType = void 0;
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const type_graphql_1 = require("type-graphql");
|
6
6
|
const shell_1 = require("@things-factory/shell");
|
@@ -18,6 +18,24 @@ var DataItemType;
|
|
18
18
|
name: 'DataItemType',
|
19
19
|
description: 'type enumeration of a data-item'
|
20
20
|
});
|
21
|
+
var DataItemReducerType;
|
22
|
+
(function (DataItemReducerType) {
|
23
|
+
DataItemReducerType["sum"] = "sum";
|
24
|
+
DataItemReducerType["mean"] = "mean";
|
25
|
+
DataItemReducerType["stddev"] = "stddev";
|
26
|
+
DataItemReducerType["var"] = "var";
|
27
|
+
DataItemReducerType["min"] = "min";
|
28
|
+
DataItemReducerType["max"] = "max";
|
29
|
+
DataItemReducerType["range"] = "range";
|
30
|
+
DataItemReducerType["median"] = "median";
|
31
|
+
DataItemReducerType["mode"] = "mode";
|
32
|
+
DataItemReducerType["percentile"] = "percentile";
|
33
|
+
DataItemReducerType["histogram"] = "histogram";
|
34
|
+
})(DataItemReducerType = exports.DataItemReducerType || (exports.DataItemReducerType = {}));
|
35
|
+
(0, type_graphql_1.registerEnumType)(DataItemReducerType, {
|
36
|
+
name: 'DataItemReducerType',
|
37
|
+
description: 'reducer type enumeration of a data-item'
|
38
|
+
});
|
21
39
|
let DataItem = class DataItem {
|
22
40
|
};
|
23
41
|
tslib_1.__decorate([
|
@@ -48,6 +66,10 @@ tslib_1.__decorate([
|
|
48
66
|
(0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
|
49
67
|
tslib_1.__metadata("design:type", Object)
|
50
68
|
], DataItem.prototype, "options", void 0);
|
69
|
+
tslib_1.__decorate([
|
70
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
71
|
+
tslib_1.__metadata("design:type", String)
|
72
|
+
], DataItem.prototype, "reducer", void 0);
|
51
73
|
tslib_1.__decorate([
|
52
74
|
(0, type_graphql_1.Field)({ nullable: true }),
|
53
75
|
tslib_1.__metadata("design:type", String)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"data-item-type.js","sourceRoot":"","sources":["../../../server/service/data-set/data-item-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAkF;AAElF,iDAAoD;AAEpD,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,6BAAa,CAAA;IACb,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,6BAAa,CAAA;IACb,qCAAqB,CAAA;IACrB,6BAAa,CAAA;AACf,CAAC,EARW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAQvB;AAED,IAAA,+BAAgB,EAAC,YAAY,EAAE;IAC7B,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,iCAAiC;CAC/C,CAAC,CAAA;AAGK,IAAM,QAAQ,GAAd,MAAM,QAAQ;
|
1
|
+
{"version":3,"file":"data-item-type.js","sourceRoot":"","sources":["../../../server/service/data-set/data-item-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAkF;AAElF,iDAAoD;AAEpD,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,6BAAa,CAAA;IACb,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,6BAAa,CAAA;IACb,qC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AE,IAAI,EAAE,CAAC;;6CACV;AAEhB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACV;AAEhB;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,oBAAY,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACnB;AA7BlB,aAAa;IADzB,IAAA,wBAAS,GAAE;GACC,aAAa,CA8BzB;AA9BY,sCAAa","sourcesContent":["import { Field, InputType, Int, ObjectType, registerEnumType } from 'type-graphql'\n\nimport { ScalarObject } from '@things-factory/shell'\n\nexport enum DataItemType {\n number = 'number',\n text = 'text',\n boolean = 'boolean',\n select = 'select',\n date = 'date',\n datetime = 'datetime',\n file = 'file'\n}\n\nregisterEnumType(DataItemType, {\n name: 'DataItemType',\n description: 'type enumeration of a data-item'\n})\n\nexport enum DataItemReducerType {\n sum = 'sum',\n mean = 'mean',\n stddev = 'stddev',\n var = 'var',\n min = 'min',\n max = 'max',\n range = 'range',\n median = 'median',\n mode = 'mode',\n percentile = 'percentile',\n histogram = 'histogram'\n}\n\nregisterEnumType(DataItemReducerType, {\n name: 'DataItemReducerType',\n description: 'reducer type enumeration of a data-item'\n})\n\n@ObjectType({ description: 'Entity for DataItem' })\nexport class DataItem {\n @Field()\n name: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field({ nullable: true })\n tag?: string\n\n @Field({ nullable: true })\n active?: boolean\n\n @Field({ nullable: true })\n hidden?: boolean\n\n @Field({ nullable: true })\n type?: DataItemType\n\n @Field(type => ScalarObject, { nullable: true })\n options?: { [option: string]: any }\n\n @Field({ nullable: true })\n reducer?: DataItemReducerType\n\n @Field({ nullable: true })\n unit?: string\n\n @Field(type => Int, { nullable: true })\n quota?: number\n\n @Field(type => ScalarObject, { nullable: true })\n spec?: { [key: string]: any }\n}\n\n@InputType()\nexport class DataItemPatch {\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field({ nullable: true })\n tag?: string\n\n @Field(type => DataItemType, { nullable: true })\n type?: DataItemType\n\n @Field(type => ScalarObject, { nullable: true })\n options?: { [option: string]: any }\n\n @Field({ nullable: true })\n unit?: string\n\n @Field(type => Int, { nullable: true })\n quota?: number\n\n @Field({ nullable: true })\n active?: boolean\n\n @Field({ nullable: true })\n hidden?: boolean\n\n @Field(type => ScalarObject, { nullable: true })\n spec?: { [key: string]: any }\n}\n"]}
|