@things-factory/dataset 7.0.1-alpha.5 → 7.0.1-alpha.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,11 +1,14 @@
1
1
  # DataSensor
2
+
2
3
  데이타 센서를 등록하고 조회합니다.<br>
4
+
3
5
  - 이름: 데이타 센서 이름을 설정합니다.<br>
4
6
  - 설명: 데이타 센서에 대한 설명을 설정합니다.<br>
5
7
  - 활성화: 사용 여부를 설정합니다. 비활성화된 센서 데이타는 데이타 샘플로 저장하지 않습니다.<br>
6
8
  - 디바이스 아이디: 유일한 센서의 아이디를 설정합니다 <br>
7
9
  - 태그이름: (deprecated 검토 중)<br>
8
10
  - 어플라이언스: 데이타 등록 권한을 가진 어플라이언스를 설정합니다.<br>
11
+ - 디코더 시나리오: 외부에서 받은 데이터를 시나리오를 지정하여 parsing후, 시나리오의 마지막 결과 Key를 'data'로 지정하여 data 필드에 데이터를 쌓습니다.</br>
9
12
  - 데이터셋: 해당 센서 데이터에 반영할 데이터셋을 설정합니다. <br>
10
13
  - 모델: 센서 모델 정보를 설정합니다.<br>
11
14
  - 브랜드: 센서 브랜드를 설정합니다.<br>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/dataset",
3
- "version": "7.0.1-alpha.5",
3
+ "version": "7.0.1-alpha.9",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -40,20 +40,20 @@
40
40
  "@operato/shell": "^2.0.0-alpha.0",
41
41
  "@operato/styles": "^2.0.0-alpha.0",
42
42
  "@operato/utils": "^2.0.0-alpha.0",
43
- "@things-factory/auth-base": "^7.0.1-alpha.5",
44
- "@things-factory/aws-base": "^7.0.1-alpha.5",
45
- "@things-factory/board-service": "^7.0.1-alpha.5",
43
+ "@things-factory/auth-base": "^7.0.1-alpha.9",
44
+ "@things-factory/aws-base": "^7.0.1-alpha.9",
45
+ "@things-factory/board-service": "^7.0.1-alpha.9",
46
46
  "@things-factory/env": "^7.0.1-alpha.0",
47
- "@things-factory/integration-base": "^7.0.1-alpha.5",
48
- "@things-factory/organization": "^7.0.1-alpha.5",
49
- "@things-factory/scheduler-client": "^7.0.1-alpha.5",
50
- "@things-factory/shell": "^7.0.1-alpha.5",
51
- "@things-factory/work-shift": "^7.0.1-alpha.5",
52
- "@things-factory/worklist": "^7.0.1-alpha.5",
47
+ "@things-factory/integration-base": "^7.0.1-alpha.9",
48
+ "@things-factory/organization": "^7.0.1-alpha.9",
49
+ "@things-factory/scheduler-client": "^7.0.1-alpha.9",
50
+ "@things-factory/shell": "^7.0.1-alpha.9",
51
+ "@things-factory/work-shift": "^7.0.1-alpha.9",
52
+ "@things-factory/worklist": "^7.0.1-alpha.9",
53
53
  "cron-parser": "^4.3.0",
54
54
  "moment-timezone": "^0.5.40",
55
55
  "simple-statistics": "^7.8.3",
56
56
  "statistics": "^3.3.0"
57
57
  },
58
- "gitHead": "3a1ceb942521a89f14c4b16a323b506ff676d349"
58
+ "gitHead": "e77082517f5483704f1e884cbc81b7f94c0eec15"
59
59
  }
@@ -19,7 +19,7 @@ import { DataUseCase } from './data-use-case'
19
19
  // See README.md at ## Data Samples
20
20
  process.env.TZ = 'UTC'
21
21
 
22
- const fillDataKeys = (dataKeySet, data) => {
22
+ const fillDataKeys = (dataKeySet, data = {}) => {
23
23
  const keys = dataKeySet?.dataKeyItems || []
24
24
  return keys.reduce((sum, key, index) => {
25
25
  const value = data[key.dataKey]