@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/dataset",
3
- "version": "6.0.70",
3
+ "version": "6.0.72",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -35,17 +35,17 @@
35
35
  "@operato/shell": "^1.0.1",
36
36
  "@operato/styles": "^1.0.0",
37
37
  "@operato/utils": "^1.0.1",
38
- "@things-factory/auth-base": "^6.0.67",
39
- "@things-factory/aws-base": "^6.0.67",
40
- "@things-factory/board-service": "^6.0.70",
41
- "@things-factory/env": "^6.0.49",
42
- "@things-factory/organization": "^6.0.67",
43
- "@things-factory/scheduler-client": "^6.0.70",
44
- "@things-factory/shell": "^6.0.67",
45
- "@things-factory/work-shift": "^6.0.67",
46
- "@things-factory/worklist": "^6.0.70",
38
+ "@things-factory/auth-base": "^6.0.71",
39
+ "@things-factory/aws-base": "^6.0.71",
40
+ "@things-factory/board-service": "^6.0.71",
41
+ "@things-factory/env": "^6.0.71",
42
+ "@things-factory/organization": "^6.0.71",
43
+ "@things-factory/scheduler-client": "^6.0.71",
44
+ "@things-factory/shell": "^6.0.71",
45
+ "@things-factory/work-shift": "^6.0.71",
46
+ "@things-factory/worklist": "^6.0.71",
47
47
  "cron-parser": "^4.3.0",
48
48
  "moment-timezone": "^0.5.40"
49
49
  },
50
- "gitHead": "b9c05eb9b7a0aed2bcf7b24bd5851eb047b54391"
50
+ "gitHead": "91122225b04d3b61d76d541ae1794341259938a7"
51
51
  }
@@ -17,6 +17,25 @@ registerEnumType(DataItemType, {
17
17
  description: 'type enumeration of a data-item'
18
18
  })
19
19
 
20
+ export enum DataItemReducerType {
21
+ sum = 'sum',
22
+ mean = 'mean',
23
+ stddev = 'stddev',
24
+ var = 'var',
25
+ min = 'min',
26
+ max = 'max',
27
+ range = 'range',
28
+ median = 'median',
29
+ mode = 'mode',
30
+ percentile = 'percentile',
31
+ histogram = 'histogram'
32
+ }
33
+
34
+ registerEnumType(DataItemReducerType, {
35
+ name: 'DataItemReducerType',
36
+ description: 'reducer type enumeration of a data-item'
37
+ })
38
+
20
39
  @ObjectType({ description: 'Entity for DataItem' })
21
40
  export class DataItem {
22
41
  @Field()
@@ -40,6 +59,9 @@ export class DataItem {
40
59
  @Field(type => ScalarObject, { nullable: true })
41
60
  options?: { [option: string]: any }
42
61
 
62
+ @Field({ nullable: true })
63
+ reducer?: DataItemReducerType
64
+
43
65
  @Field({ nullable: true })
44
66
  unit?: string
45
67