@things-factory/dataset 5.0.0-alpha.20 → 5.0.0-alpha.23
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/README.md +2 -1
- package/client/pages/data-ooc.js +33 -14
- package/client/pages/data-sample.js +33 -14
- package/client/pages/data-set.js +76 -52
- package/dist-server/controllers/create-data-sample.js +7 -5
- package/dist-server/controllers/create-data-sample.js.map +1 -1
- package/dist-server/routes.js.map +1 -1
- package/dist-server/service/data-ooc/data-ooc-type.js +9 -1
- package/dist-server/service/data-ooc/data-ooc-type.js.map +1 -1
- package/dist-server/service/data-ooc/data-ooc.js +13 -3
- package/dist-server/service/data-ooc/data-ooc.js.map +1 -1
- package/dist-server/service/data-sample/data-sample-type.js +8 -0
- package/dist-server/service/data-sample/data-sample-type.js.map +1 -1
- package/dist-server/service/data-sample/data-sample.js +13 -3
- package/dist-server/service/data-sample/data-sample.js.map +1 -1
- package/package.json +14 -14
- package/server/controllers/create-data-sample.ts +12 -8
- package/server/routes.ts +1 -1
- package/server/service/data-ooc/data-ooc-mutation.ts +3 -3
- package/server/service/data-ooc/data-ooc-type.ts +9 -3
- package/server/service/data-ooc/data-ooc.ts +12 -3
- package/server/service/data-sample/data-sample-type.ts +8 -1
- package/server/service/data-sample/data-sample.ts +12 -3
- package/translations/en.json +3 -1
- package/translations/ko.json +3 -1
- package/translations/ms.json +3 -1
- package/translations/zh.json +3 -1
package/README.md
CHANGED
@@ -3,7 +3,8 @@
|
|
3
3
|
At the early stage, partition keys are desinged for dynamic partitioning for Athena. But It will be required so many AWS Glue crawlers also by each 'data-sets'.
|
4
4
|
Now partition keys are fixed with some cases. Default is daily dataset, which has S3 Key like 'domain={domain}/datasetid={datasetid}/year=2022/month=3/day=25'. It will be set default with empty value in 'data-sets'.
|
5
5
|
|
6
|
-
In another case, it is necessary to divide by hours or minutes and store them. This datetime item must be included in the S3 key. It will be required a new Glue Crawler and a Glue Catalog Table. For example if you need to separate directory hourly, you should add "%H" for 'hour' to partition_keys for this. and also should add a new crawler.
|
6
|
+
In another case, it is necessary to divide by hours or minutes and store them. This datetime item must be included in the S3 key. It will be required a new Glue Crawler and a Glue Catalog Table. For example if you need to separate directory hourly, you should add "%H" for 'hour' to partition_keys for this. and also should add a new crawler. And it would be needed a column to know it is daily or hourly or minutely for reporting client side. It's not developed yet.
|
7
|
+
Look at the below picture for understanding.
|
7
8
|
|
8
9
|

|
9
10
|
|
package/client/pages/data-ooc.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
import '@operato/data-grist'
|
2
2
|
import './data-ooc-view.js'
|
3
3
|
|
4
|
-
import
|
5
|
-
import { PageView, store } from '@operato/shell'
|
4
|
+
import gql from 'graphql-tag'
|
6
5
|
import { css, html } from 'lit'
|
7
|
-
import {
|
8
|
-
import { notify, openPopup } from '@operato/layout'
|
6
|
+
import { connect } from 'pwa-helpers/connect-mixin'
|
9
7
|
|
10
8
|
import { client } from '@operato/graphql'
|
11
|
-
import {
|
12
|
-
import
|
9
|
+
import { i18next, localize } from '@operato/i18n'
|
10
|
+
import { openPopup } from '@operato/layout'
|
11
|
+
import { PageView, store } from '@operato/shell'
|
12
|
+
import { ScrollbarStyles } from '@operato/styles'
|
13
13
|
import { isMobileDevice } from '@operato/utils'
|
14
14
|
|
15
15
|
export class DataOoc extends connect(store)(localize(i18next)(PageView)) {
|
@@ -262,19 +262,19 @@ export class DataOoc extends connect(store)(localize(i18next)(PageView)) {
|
|
262
262
|
imex: true
|
263
263
|
},
|
264
264
|
{
|
265
|
-
type: '
|
266
|
-
name: '
|
267
|
-
header: i18next.t('field.
|
265
|
+
type: 'string',
|
266
|
+
name: 'workDate',
|
267
|
+
header: i18next.t('field.work-date'),
|
268
268
|
sortable: true,
|
269
|
-
width:
|
269
|
+
width: 80,
|
270
270
|
imex: true
|
271
271
|
},
|
272
272
|
{
|
273
|
-
type: '
|
274
|
-
name: '
|
275
|
-
header: i18next.t('field.
|
273
|
+
type: 'string',
|
274
|
+
name: 'workShift',
|
275
|
+
header: i18next.t('field.work-shift'),
|
276
276
|
sortable: true,
|
277
|
-
width:
|
277
|
+
width: 40,
|
278
278
|
imex: true
|
279
279
|
},
|
280
280
|
{
|
@@ -284,6 +284,22 @@ export class DataOoc extends connect(store)(localize(i18next)(PageView)) {
|
|
284
284
|
sortable: true,
|
285
285
|
width: 180,
|
286
286
|
imex: true
|
287
|
+
},
|
288
|
+
{
|
289
|
+
type: 'resource-object',
|
290
|
+
name: 'updater',
|
291
|
+
header: i18next.t('field.updater'),
|
292
|
+
sortable: true,
|
293
|
+
width: 120,
|
294
|
+
imex: true
|
295
|
+
},
|
296
|
+
{
|
297
|
+
type: 'datetime',
|
298
|
+
name: 'updatedAt',
|
299
|
+
header: i18next.t('field.updated_at'),
|
300
|
+
sortable: true,
|
301
|
+
width: 180,
|
302
|
+
imex: true
|
287
303
|
}
|
288
304
|
],
|
289
305
|
rows: {
|
@@ -334,11 +350,14 @@ export class DataOoc extends connect(store)(localize(i18next)(PageView)) {
|
|
334
350
|
}
|
335
351
|
partitionKeys
|
336
352
|
data
|
353
|
+
rawData
|
337
354
|
state
|
338
355
|
spec
|
339
356
|
ooc
|
340
357
|
oos
|
341
358
|
history
|
359
|
+
workDate
|
360
|
+
workShift
|
342
361
|
correctiveAction
|
343
362
|
correctedAt
|
344
363
|
corrector {
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import '@operato/data-grist'
|
2
2
|
import './data-sample-view.js'
|
3
3
|
|
4
|
-
import
|
4
|
+
import gql from 'graphql-tag'
|
5
5
|
import { css, html } from 'lit'
|
6
|
-
import {
|
7
|
-
import { notify, openPopup } from '@operato/layout'
|
6
|
+
import { connect } from 'pwa-helpers/connect-mixin'
|
8
7
|
|
9
|
-
import { ScrollbarStyles } from '@operato/styles'
|
10
8
|
import { client } from '@operato/graphql'
|
11
|
-
import {
|
12
|
-
import
|
9
|
+
import { i18next, localize } from '@operato/i18n'
|
10
|
+
import { openPopup } from '@operato/layout'
|
11
|
+
import { PageView, store } from '@operato/shell'
|
12
|
+
import { ScrollbarStyles } from '@operato/styles'
|
13
13
|
import { isMobileDevice } from '@operato/utils'
|
14
14
|
|
15
15
|
export class DataSample extends connect(store)(localize(i18next)(PageView)) {
|
@@ -221,19 +221,19 @@ export class DataSample extends connect(store)(localize(i18next)(PageView)) {
|
|
221
221
|
imex: true
|
222
222
|
},
|
223
223
|
{
|
224
|
-
type: '
|
225
|
-
name: '
|
226
|
-
header: i18next.t('field.
|
224
|
+
type: 'string',
|
225
|
+
name: 'workDate',
|
226
|
+
header: i18next.t('field.work-date'),
|
227
227
|
sortable: true,
|
228
|
-
width:
|
228
|
+
width: 80,
|
229
229
|
imex: true
|
230
230
|
},
|
231
231
|
{
|
232
|
-
type: '
|
233
|
-
name: '
|
234
|
-
header: i18next.t('field.
|
232
|
+
type: 'string',
|
233
|
+
name: 'workShift',
|
234
|
+
header: i18next.t('field.work-shift'),
|
235
235
|
sortable: true,
|
236
|
-
width:
|
236
|
+
width: 40,
|
237
237
|
imex: true
|
238
238
|
},
|
239
239
|
{
|
@@ -243,6 +243,22 @@ export class DataSample extends connect(store)(localize(i18next)(PageView)) {
|
|
243
243
|
sortable: true,
|
244
244
|
width: 180,
|
245
245
|
imex: true
|
246
|
+
},
|
247
|
+
{
|
248
|
+
type: 'resource-object',
|
249
|
+
name: 'updater',
|
250
|
+
header: i18next.t('field.updater'),
|
251
|
+
sortable: true,
|
252
|
+
width: 120,
|
253
|
+
imex: true
|
254
|
+
},
|
255
|
+
{
|
256
|
+
type: 'datetime',
|
257
|
+
name: 'updatedAt',
|
258
|
+
header: i18next.t('field.updated_at'),
|
259
|
+
sortable: true,
|
260
|
+
width: 180,
|
261
|
+
imex: true
|
246
262
|
}
|
247
263
|
],
|
248
264
|
rows: {
|
@@ -302,9 +318,12 @@ export class DataSample extends connect(store)(localize(i18next)(PageView)) {
|
|
302
318
|
}
|
303
319
|
partitionKeys
|
304
320
|
data
|
321
|
+
rawData
|
305
322
|
spec
|
306
323
|
ooc
|
307
324
|
oos
|
325
|
+
workDate
|
326
|
+
workShift
|
308
327
|
updater {
|
309
328
|
id
|
310
329
|
name
|
package/client/pages/data-set.js
CHANGED
@@ -3,12 +3,13 @@ import './data-item-list'
|
|
3
3
|
import './data-set-importer'
|
4
4
|
import './data-entry-form'
|
5
5
|
|
6
|
-
import { CommonButtonStyles, ScrollbarStyles } from '@operato/styles'
|
6
|
+
import { CommonButtonStyles, CommonGristStyles, ScrollbarStyles } from '@operato/styles'
|
7
7
|
import { PageView, store } from '@operato/shell'
|
8
8
|
import { css, html } from 'lit'
|
9
9
|
import { i18next, localize } from '@operato/i18n'
|
10
10
|
import { notify, openPopup } from '@operato/layout'
|
11
11
|
|
12
|
+
import JSON5 from 'json5'
|
12
13
|
import { OxDataUseCase } from '@operato/dataset'
|
13
14
|
import { client } from '@operato/graphql'
|
14
15
|
import { connect } from 'pwa-helpers/connect-mixin'
|
@@ -20,36 +21,25 @@ export class DataSet extends connect(store)(localize(i18next)(PageView)) {
|
|
20
21
|
static get properties() {
|
21
22
|
return {
|
22
23
|
active: String,
|
23
|
-
gristConfig: Object
|
24
|
+
gristConfig: Object,
|
25
|
+
filters: Object,
|
26
|
+
sorters: Object,
|
27
|
+
mode: String
|
24
28
|
}
|
25
29
|
}
|
26
30
|
|
27
31
|
static get styles() {
|
28
32
|
return [
|
29
33
|
ScrollbarStyles,
|
34
|
+
CommonGristStyles,
|
30
35
|
css`
|
31
36
|
:host {
|
32
37
|
display: flex;
|
33
|
-
flex-direction: column;
|
34
38
|
|
35
|
-
|
36
|
-
}
|
37
|
-
|
38
|
-
ox-grist {
|
39
|
-
overflow-y: auto;
|
40
|
-
flex: 1;
|
41
|
-
}
|
42
|
-
|
43
|
-
#filters {
|
44
|
-
display: flex;
|
45
|
-
flex-direction: row;
|
46
|
-
justify-content: space-between;
|
47
|
-
|
48
|
-
background-color: white;
|
49
|
-
}
|
39
|
+
width: 100%;
|
50
40
|
|
51
|
-
|
52
|
-
|
41
|
+
--grid-record-emphasized-background-color: red;
|
42
|
+
--grid-record-emphasized-color: yellow;
|
53
43
|
}
|
54
44
|
`
|
55
45
|
]
|
@@ -87,14 +77,43 @@ export class DataSet extends connect(store)(localize(i18next)(PageView)) {
|
|
87
77
|
}
|
88
78
|
|
89
79
|
render() {
|
80
|
+
const mode = this.mode || (isMobileDevice() ? 'LIST' : 'GRID')
|
81
|
+
|
90
82
|
return html`
|
91
83
|
<ox-grist
|
92
|
-
.mode=${
|
84
|
+
.mode=${mode}
|
93
85
|
.config=${this.gristConfig}
|
86
|
+
.filters=${this.filters}
|
87
|
+
.orders=${this.orders}
|
94
88
|
.fetchHandler=${this.fetchHandler.bind(this)}
|
95
89
|
>
|
96
90
|
<div slot="headroom" id="filters">
|
97
|
-
<
|
91
|
+
<div id="filters">
|
92
|
+
<ox-filters-form></ox-filters-form>
|
93
|
+
</div>
|
94
|
+
|
95
|
+
<div id="sorters">
|
96
|
+
Sort
|
97
|
+
<mwc-icon
|
98
|
+
@click=${e => {
|
99
|
+
const target = e.currentTarget
|
100
|
+
this.renderRoot.querySelector('#sorter-control').open({
|
101
|
+
right: 0,
|
102
|
+
top: target.offsetTop + target.offsetHeight
|
103
|
+
})
|
104
|
+
}}
|
105
|
+
>expand_more</mwc-icon
|
106
|
+
>
|
107
|
+
<ox-popup id="sorter-control">
|
108
|
+
<ox-sorters-control> </ox-sorters-control>
|
109
|
+
</ox-popup>
|
110
|
+
</div>
|
111
|
+
|
112
|
+
<div id="modes">
|
113
|
+
<mwc-icon @click=${() => (this.mode = 'GRID')} ?active=${mode == 'GRID'}>grid_on</mwc-icon>
|
114
|
+
<mwc-icon @click=${() => (this.mode = 'LIST')} ?active=${mode == 'LIST'}>format_list_bulleted</mwc-icon>
|
115
|
+
<mwc-icon @click=${() => (this.mode = 'CARD')} ?active=${mode == 'CARD'}>apps</mwc-icon>
|
116
|
+
</div>
|
98
117
|
</div>
|
99
118
|
</ox-grist>
|
100
119
|
`
|
@@ -104,32 +123,12 @@ export class DataSet extends connect(store)(localize(i18next)(PageView)) {
|
|
104
123
|
return this.renderRoot.querySelector('ox-grist')
|
105
124
|
}
|
106
125
|
|
107
|
-
// update with url params value
|
108
|
-
_updateSearchConfig(lifecycle) {
|
109
|
-
// this.searchConfig = this.searchConfig.map(conf => {
|
110
|
-
// if (conf.name in lifecycle.params) {
|
111
|
-
// conf.value = lifecycle.params[conf.name]
|
112
|
-
// } else {
|
113
|
-
// delete conf.value
|
114
|
-
// }
|
115
|
-
// return conf
|
116
|
-
// })
|
117
|
-
}
|
118
|
-
|
119
|
-
// set default field value to record with searchConfig
|
120
|
-
_setDefaultFieldsValue(fields) {
|
121
|
-
// this.searchConfig.forEach(conf => {
|
122
|
-
// if (!fields[conf.name] && conf.value) {
|
123
|
-
// fields[conf.name] = conf.value
|
124
|
-
// }
|
125
|
-
// })
|
126
|
-
}
|
127
|
-
|
128
126
|
async pageInitialized(lifecycle) {
|
129
|
-
this._updateSearchConfig(lifecycle)
|
130
|
-
|
131
127
|
this.gristConfig = {
|
132
|
-
list: {
|
128
|
+
list: {
|
129
|
+
fields: ['name', 'description'],
|
130
|
+
details: ['schedule', 'active']
|
131
|
+
},
|
133
132
|
columns: [
|
134
133
|
{ type: 'gutter', gutterName: 'sequence' },
|
135
134
|
{ type: 'gutter', gutterName: 'row-selector', multiple: true },
|
@@ -172,7 +171,6 @@ export class DataSet extends connect(store)(localize(i18next)(PageView)) {
|
|
172
171
|
{
|
173
172
|
type: 'string',
|
174
173
|
name: 'name',
|
175
|
-
label: true,
|
176
174
|
header: i18next.t('field.name'),
|
177
175
|
record: {
|
178
176
|
editable: true
|
@@ -184,7 +182,6 @@ export class DataSet extends connect(store)(localize(i18next)(PageView)) {
|
|
184
182
|
{
|
185
183
|
type: 'string',
|
186
184
|
name: 'description',
|
187
|
-
label: true,
|
188
185
|
header: i18next.t('field.description'),
|
189
186
|
record: {
|
190
187
|
editable: true
|
@@ -244,7 +241,17 @@ export class DataSet extends connect(store)(localize(i18next)(PageView)) {
|
|
244
241
|
}
|
245
242
|
},
|
246
243
|
sortable: true,
|
247
|
-
filter:
|
244
|
+
filter: {
|
245
|
+
operator: 'eq',
|
246
|
+
options: () => {
|
247
|
+
return ['', ...OxDataUseCase.getUseCaseNames()].map(name => {
|
248
|
+
return {
|
249
|
+
display: name,
|
250
|
+
value: name
|
251
|
+
}
|
252
|
+
})
|
253
|
+
}
|
254
|
+
},
|
248
255
|
width: 80
|
249
256
|
},
|
250
257
|
{
|
@@ -336,10 +343,28 @@ export class DataSet extends connect(store)(localize(i18next)(PageView)) {
|
|
336
343
|
|
337
344
|
async pageUpdated(changes, lifecycle) {
|
338
345
|
if (this.active) {
|
339
|
-
// update with url params value
|
340
|
-
this._updateSearchConfig(lifecycle)
|
341
346
|
await this.updateComplete
|
342
347
|
|
348
|
+
var filters = lifecycle.params?.['filters']
|
349
|
+
if (filters) {
|
350
|
+
try {
|
351
|
+
filters = JSON5.parse(filters)
|
352
|
+
this.filters = filters
|
353
|
+
} catch (e) {
|
354
|
+
console.error(`filters parameter parsing error: ${e}`)
|
355
|
+
}
|
356
|
+
}
|
357
|
+
|
358
|
+
var sorters = lifecycle.params?.['sorters']
|
359
|
+
if (sorters) {
|
360
|
+
try {
|
361
|
+
sorters = JSON5.parse(sorters)
|
362
|
+
this.sorters = sorters
|
363
|
+
} catch (e) {
|
364
|
+
console.error(`sorters parameter parsing error: ${e}`)
|
365
|
+
}
|
366
|
+
}
|
367
|
+
|
343
368
|
this.grist.fetch()
|
344
369
|
}
|
345
370
|
}
|
@@ -456,7 +481,6 @@ export class DataSet extends connect(store)(localize(i18next)(PageView)) {
|
|
456
481
|
for (let key in dirtyFields) {
|
457
482
|
patchField[key] = dirtyFields[key].after
|
458
483
|
}
|
459
|
-
this._setDefaultFieldsValue(patchField)
|
460
484
|
patchField.cuFlag = patch.__dirty__
|
461
485
|
|
462
486
|
return patchField
|
@@ -4,13 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.createDataSample = void 0;
|
7
|
-
const
|
7
|
+
const moment_1 = __importDefault(require("moment"));
|
8
8
|
const shell_1 = require("@things-factory/shell");
|
9
9
|
const data_item_1 = require("../service/data-item/data-item");
|
10
|
+
const data_ooc_1 = require("../service/data-ooc/data-ooc");
|
10
11
|
const data_sample_1 = require("../service/data-sample/data-sample");
|
11
12
|
const data_set_1 = require("../service/data-set/data-set");
|
12
13
|
const data_use_case_1 = require("./data-use-case");
|
13
|
-
const moment_1 = __importDefault(require("moment"));
|
14
14
|
const debug = require('debug')('things-factory:dataset:controller/save-data-sample');
|
15
15
|
// parse variable javascript string pattern
|
16
16
|
const replaceVariables = (keys, dic) => {
|
@@ -57,7 +57,7 @@ async function createDataSample(dataSample, context) {
|
|
57
57
|
const momentUtc = (0, moment_1.default)(collectedAt).utc();
|
58
58
|
const defaultPartitionKeys = {
|
59
59
|
domain: domain.subdomain,
|
60
|
-
|
60
|
+
datasetid: dataSample.dataSet.id /* It should not be 'data_set_id' as column name duplicated for Glue */,
|
61
61
|
year: momentUtc.format('Y'),
|
62
62
|
month: momentUtc.format('M'),
|
63
63
|
day: momentUtc.format('D')
|
@@ -71,7 +71,7 @@ async function createDataSample(dataSample, context) {
|
|
71
71
|
spec,
|
72
72
|
ooc,
|
73
73
|
oos,
|
74
|
-
collectedAt, creator: user, updater: user }));
|
74
|
+
collectedAt, workDate: momentUtc.format('YYYY-MM-DD'), workShift: 'DAY', creator: user, updater: user }));
|
75
75
|
if (ooc || oos) {
|
76
76
|
const dataOoc = await tx.getRepository(data_ooc_1.DataOoc).save({
|
77
77
|
name: dataSet.name,
|
@@ -80,6 +80,7 @@ async function createDataSample(dataSample, context) {
|
|
80
80
|
dataSet,
|
81
81
|
dataSample: result,
|
82
82
|
data: dataSample.data,
|
83
|
+
rawData: dataSample.rawData,
|
83
84
|
domain,
|
84
85
|
partitionKeys,
|
85
86
|
spec,
|
@@ -96,11 +97,12 @@ async function createDataSample(dataSample, context) {
|
|
96
97
|
}
|
97
98
|
],
|
98
99
|
state: data_ooc_1.DataOocStatus.CREATED,
|
100
|
+
workDate: momentUtc.format('YYYY-MM-DD'),
|
101
|
+
workShift: 'DAY',
|
99
102
|
collectedAt,
|
100
103
|
creator: user,
|
101
104
|
updater: user
|
102
105
|
});
|
103
|
-
debug('dataOoc is about to publish...', dataOoc);
|
104
106
|
shell_1.pubsub.publish('data-ooc', {
|
105
107
|
dataOoc,
|
106
108
|
supervisoryRoleId: dataSet.supervisoryRoleId
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create-data-sample.js","sourceRoot":"","sources":["../../server/controllers/create-data-sample.ts"],"names":[],"mappings":";;;;;;AAAA,
|
1
|
+
{"version":3,"file":"create-data-sample.js","sourceRoot":"","sources":["../../server/controllers/create-data-sample.ts"],"names":[],"mappings":";;;;;;AAAA,oDAA2B;AAI3B,iDAAgF;AAEhF,8DAAyD;AACzD,2DAAqE;AACrE,oEAA+D;AAE/D,2DAAsD;AACtD,mDAA6C;AAE7C,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,oDAAoD,CAAC,CAAA;AAEpF,2CAA2C;AAC3C,MAAM,gBAAgB,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;IACrC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;QACpB,MAAM,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAA;QAC3C,OAAO;YACL,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;gBAClB,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;YACnD,CAAC,CAAC,CAAA;KACL;IACD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AO,EAAE,MAAM,CAAC,SAAS,EAAE,aAAa,OAAO,CAAC,EAAE,EAAE,CAAC;gBACnF,SAAS,EAAE,WAAW;aACvB;SACF,CAAC,CAAA;KACH;IAED,OAAO,MAAM,CAAA;AACf,CAAC;AA5HD,4CA4HC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../server/routes.ts"],"names":[],"mappings":";;AAAA,
|
1
|
+
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../server/routes.ts"],"names":[],"mappings":";;AAAA,qCAAuC;AAEvC,yDAAgD;AAEhD,yEAAmE;AACnE,mEAA8D;AAE9D,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,+BAA+B,CAAC,CAAA;AAE/D,OAAO,CAAC,EAAE,CAAC,sCAA6C,EAAE,CAAC,GAAG,EAAE,kBAAkB,EAAE,EAAE;IACpF;;;;;OAKG;IAEH,kBAAkB,CAAC,IAAI,CAAC,cAAc,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;QAC9D,SAAS;QACT,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAA;QAChF,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,EAAE;YACtB,MAAM,IAAI,KAAK,CAAC,YAAY,QAAQ,cAAc,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAA;SACpG;QAED,uBAAuB;QACvB,MAAM,IAAA,uBAAa,GAAE,CAAC,WAAW,CAAC,KAAK,EAAC,EAAE,EAAC,EAAE;YAC3C,+BAA+B;YAC/B,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC,aAAa,CAAC,wBAAU,CAAC,CAAC,OAAO,CAAC;gBACxD,KAAK,EAAE,EAAE,QAAQ,EAAE;gBACnB,SAAS,EAAE,CA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AE,EAAE;IACtF;;OAEG;AACL,CAAC,CAAC,CAAA;AAEF,OAAO,CAAC,EAAE,CAAC,sCAA6C,EAAE,CAAC,GAAG,EAAE,kBAAkB,EAAE,EAAE;IACpF;;OAEG;AACL,CAAC,CAAC,CAAA;AAEF,OAAO,CAAC,EAAE,CAAC,uCAA8C,EAAE,CAAC,GAAG,EAAE,mBAAmB,EAAE,EAAE;IACtF;;OAEG;AACL,CAAC,CAAC,CAAA"}
|
@@ -11,9 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
11
11
|
var _a, _b, _c;
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
13
13
|
exports.DataOocList = exports.DataOocPatch = exports.NewDataOoc = void 0;
|
14
|
-
const data_ooc_1 = require("./data-ooc");
|
15
14
|
const type_graphql_1 = require("type-graphql");
|
16
15
|
const shell_1 = require("@things-factory/shell");
|
16
|
+
const data_ooc_1 = require("./data-ooc");
|
17
17
|
let NewDataOoc = class NewDataOoc {
|
18
18
|
};
|
19
19
|
__decorate([
|
@@ -56,6 +56,14 @@ __decorate([
|
|
56
56
|
(0, type_graphql_1.Field)({ nullable: true }),
|
57
57
|
__metadata("design:type", Boolean)
|
58
58
|
], NewDataOoc.prototype, "oos", void 0);
|
59
|
+
__decorate([
|
60
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
61
|
+
__metadata("design:type", String)
|
62
|
+
], NewDataOoc.prototype, "workDate", void 0);
|
63
|
+
__decorate([
|
64
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
65
|
+
__metadata("design:type", String)
|
66
|
+
], NewDataOoc.prototype, "workShift", void 0);
|
59
67
|
__decorate([
|
60
68
|
(0, type_graphql_1.Field)({ nullable: true }),
|
61
69
|
__metadata("design:type", Date)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"data-ooc-type.js","sourceRoot":"","sources":["../../../server/service/data-ooc/data-ooc-type.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA
|
1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;AAGjB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACR;AAGlB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACZ,IAAI;+CAAA;AAtCP,UAAU;IADtB,IAAA,wBAAS,GAAE;GACC,UAAU,CAuCtB;AAvCY,gCAAU;AA0CvB,IAAa,YAAY,GAAzB,MAAa,YAAY;CASxB,CAAA;AAPC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCAC3B;AAGX;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,wBAAa,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CAC5B;AAGrB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACD;AARd,YAAY;IADxB,IAAA,wBAAS,GAAE;GACC,YAAY,CASxB;AATY,oCAAY;AAYzB,IAAa,WAAW,GAAxB,MAAa,WAAW;CAMvB,CAAA;AAJC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,kBAAO,CAAC,CAAC;;0CACT;AAGhB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;0CACN;AALF,WAAW;IADvB,IAAA,yBAAU,GAAE;GACA,WAAW,CAMvB;AANY,kCAAW"}
|
@@ -11,13 +11,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
11
11
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
13
13
|
exports.DataOoc = exports.DataOocStatus = void 0;
|
14
|
+
const type_graphql_1 = require("type-graphql");
|
14
15
|
const typeorm_1 = require("typeorm");
|
16
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
17
|
+
const env_1 = require("@things-factory/env");
|
15
18
|
const shell_1 = require("@things-factory/shell");
|
16
|
-
const type_graphql_1 = require("type-graphql");
|
17
19
|
const data_sample_1 = require("../data-sample/data-sample");
|
18
20
|
const data_set_1 = require("../data-set/data-set");
|
19
|
-
const auth_base_1 = require("@things-factory/auth-base");
|
20
|
-
const env_1 = require("@things-factory/env");
|
21
21
|
const ORMCONFIG = env_1.config.get('ormconfig', {});
|
22
22
|
const DATABASE_TYPE = ORMCONFIG.type;
|
23
23
|
var DataOocStatus;
|
@@ -163,6 +163,16 @@ __decorate([
|
|
163
163
|
(0, type_graphql_1.Field)({ nullable: true }),
|
164
164
|
__metadata("design:type", String)
|
165
165
|
], DataOoc.prototype, "source", void 0);
|
166
|
+
__decorate([
|
167
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
168
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
169
|
+
__metadata("design:type", String)
|
170
|
+
], DataOoc.prototype, "workDate", void 0);
|
171
|
+
__decorate([
|
172
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
173
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
174
|
+
__metadata("design:type", String)
|
175
|
+
], DataOoc.prototype, "workShift", void 0);
|
166
176
|
__decorate([
|
167
177
|
(0, typeorm_1.Column)({ nullable: true }),
|
168
178
|
(0, type_graphql_1.Field)({ nullable: true }),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"data-ooc.js","sourceRoot":"","sources":["../../../server/service/data-ooc/data-ooc.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAWgB;
|
1
|
+
{"version":3,"file":"data-ooc.js","sourceRoot":"","sources":["../../../server/service/data-ooc/data-ooc.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAAsE;AACtE,qCAWgB;AAEhB,yDAAgD;AAChD,6CAA4C;AAC5C,iDAA4D;AAE5D,4DAAuD;AACvD,mDAA8C;AAE9C,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAA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AAgC,EAAE,CAAC;GACjD,OAAO,CAmKnB;AAnKY,0BAAO"}
|
@@ -40,6 +40,14 @@ __decorate([
|
|
40
40
|
(0, type_graphql_1.Field)({ nullable: true }),
|
41
41
|
__metadata("design:type", String)
|
42
42
|
], NewDataSample.prototype, "source", void 0);
|
43
|
+
__decorate([
|
44
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
45
|
+
__metadata("design:type", String)
|
46
|
+
], NewDataSample.prototype, "workDate", void 0);
|
47
|
+
__decorate([
|
48
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
49
|
+
__metadata("design:type", String)
|
50
|
+
], NewDataSample.prototype, "workShift", void 0);
|
43
51
|
__decorate([
|
44
52
|
(0, type_graphql_1.Field)({ nullable: true }),
|
45
53
|
__metadata("design:type", Date)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"data-sample-type.js","sourceRoot":"","sources":["../../../server/service/data-sample/data-sample-type.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+
|
1
|
+
{"version":3,"file":"data-sample-type.js","sourceRoot":"","sources":["../../../server/service/data-sample/data-sample-type.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAAgE;AAEhE,iDAA+D;AAE/D,+CAA0C;AAG1C,IAAa,aAAa,GAA1B,MAAa,aAAa;CA2BzB,CAAA;AAzBC;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACb;AAGb;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACN;AAGpB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDACnC,iBAAS,oBAAT,iBAAS;8CAAA;AAGnB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,oBAAY,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDACzC,oBAAY,oBAAZ,oBAAY;2CAAA;AAGnB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACV;AAGhB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACX;AAGf;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACT;AAGjB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACR;AAGlB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACZ,IAAI;kDAAA;AA1BP,aAAa;IADzB,IAAA,wBAAS,GAAE;GACC,aAAa,CA2BzB;AA3BY,sCAAa;AA8B1B,IAAa,cAAc,GAA3B,MAAa,cAAc;CAM1B,CAAA;AAJC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,wBAAU,CAAC,CAAC;;6CACT;AAGnB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;6CACN;AALF,cAAc;IAD1B,IAAA,yBAAU,GAAE;GACA,cAAc,CAM1B;AANY,wCAAc"}
|
@@ -11,12 +11,12 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
11
11
|
var _a, _b, _c, _d, _e, _f;
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
13
13
|
exports.DataSample = void 0;
|
14
|
-
const typeorm_1 = require("typeorm");
|
15
|
-
const shell_1 = require("@things-factory/shell");
|
16
14
|
const type_graphql_1 = require("type-graphql");
|
17
|
-
const
|
15
|
+
const typeorm_1 = require("typeorm");
|
18
16
|
const auth_base_1 = require("@things-factory/auth-base");
|
19
17
|
const env_1 = require("@things-factory/env");
|
18
|
+
const shell_1 = require("@things-factory/shell");
|
19
|
+
const data_set_1 = require("../data-set/data-set");
|
20
20
|
const ORMCONFIG = env_1.config.get('ormconfig', {});
|
21
21
|
const DATABASE_TYPE = ORMCONFIG.type;
|
22
22
|
let DataSample = class DataSample {
|
@@ -118,6 +118,16 @@ __decorate([
|
|
118
118
|
(0, type_graphql_1.Field)({ nullable: true }),
|
119
119
|
__metadata("design:type", Boolean)
|
120
120
|
], DataSample.prototype, "oos", void 0);
|
121
|
+
__decorate([
|
122
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
123
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
124
|
+
__metadata("design:type", String)
|
125
|
+
], DataSample.prototype, "workDate", void 0);
|
126
|
+
__decorate([
|
127
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
128
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
129
|
+
__metadata("design:type", String)
|
130
|
+
], DataSample.prototype, "workShift", void 0);
|
121
131
|
__decorate([
|
122
132
|
(0, typeorm_1.Column)({ nullable: true }),
|
123
133
|
(0, type_graphql_1.Field)({ nullable: true }),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"data-sample.js","sourceRoot":"","sources":["../../../server/service/data-sample/data-sample.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA
|
1
|
+
{"version":3,"file":"data-sample.js","sourceRoot":"","sources":["../../../server/service/data-sample/data-sample.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAAoD;AACpD,qCASgB;AAEhB,yDAAgD;AAChD,6CAA4C;AAC5C,iDAA4D;AAE5D,mDAA8C;AAE9C,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAA;AASpC,IAAa,UAAU,GAAvB,MAAa,UAAU;CAwHtB,CAAA;AArHC;IAFC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;sCACC;AAInB;IAFC,IAAA,mBAAS,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CAAC,UAAsB,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IACjH,IAAA,eAAK,EACJ,kBAAkB,EAClB,CAAC,UAAsB,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,WAAW,CAAC,EAC3F,EAAE,MAAM,EAAE,KAAK,EAAE,CAClB;IACA,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,uBAAuB,EAAE,CAAC;GACxC,UAAU,CAwHtB;AAxHY,gCAAU"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@things-factory/dataset",
|
3
|
-
"version": "5.0.0-alpha.
|
3
|
+
"version": "5.0.0-alpha.23",
|
4
4
|
"main": "dist-server/index.js",
|
5
5
|
"browser": "client/index.js",
|
6
6
|
"things-factory": true,
|
@@ -24,19 +24,19 @@
|
|
24
24
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
25
25
|
},
|
26
26
|
"dependencies": {
|
27
|
-
"@operato/app": "1.0.0-alpha.
|
28
|
-
"@operato/data-grist": "1.0.0-alpha.
|
29
|
-
"@operato/dataset": "1.0.0-alpha.
|
30
|
-
"@operato/graphql": "1.0.0-alpha.
|
31
|
-
"@operato/i18n": "1.0.0-alpha.
|
32
|
-
"@operato/layout": "1.0.0-alpha.
|
33
|
-
"@operato/shell": "1.0.0-alpha.
|
34
|
-
"@operato/styles": "1.0.0-alpha.
|
35
|
-
"@operato/utils": "1.0.0-alpha.
|
36
|
-
"@things-factory/auth-base": "^5.0.0-alpha.
|
37
|
-
"@things-factory/env": "^5.0.0-alpha.
|
38
|
-
"@things-factory/shell": "^5.0.0-alpha.
|
27
|
+
"@operato/app": "1.0.0-alpha.45",
|
28
|
+
"@operato/data-grist": "1.0.0-alpha.45",
|
29
|
+
"@operato/dataset": "1.0.0-alpha.45",
|
30
|
+
"@operato/graphql": "1.0.0-alpha.45",
|
31
|
+
"@operato/i18n": "1.0.0-alpha.45",
|
32
|
+
"@operato/layout": "1.0.0-alpha.45",
|
33
|
+
"@operato/shell": "1.0.0-alpha.45",
|
34
|
+
"@operato/styles": "1.0.0-alpha.45",
|
35
|
+
"@operato/utils": "1.0.0-alpha.45",
|
36
|
+
"@things-factory/auth-base": "^5.0.0-alpha.23",
|
37
|
+
"@things-factory/env": "^5.0.0-alpha.23",
|
38
|
+
"@things-factory/shell": "^5.0.0-alpha.23",
|
39
39
|
"moment": "^2.29.1"
|
40
40
|
},
|
41
|
-
"gitHead": "
|
41
|
+
"gitHead": "2be04b72d722f690fac58a3698ddaed5cc616959"
|
42
42
|
}
|
@@ -1,14 +1,15 @@
|
|
1
|
-
import
|
1
|
+
import moment from 'moment'
|
2
|
+
import { EntityManager } from 'typeorm'
|
3
|
+
|
4
|
+
import { User } from '@things-factory/auth-base'
|
2
5
|
import { Domain, getRedirectSubdomainPath, pubsub } from '@things-factory/shell'
|
3
6
|
|
4
7
|
import { DataItem } from '../service/data-item/data-item'
|
8
|
+
import { DataOoc, DataOocStatus } from '../service/data-ooc/data-ooc'
|
5
9
|
import { DataSample } from '../service/data-sample/data-sample'
|
10
|
+
import { NewDataSample } from '../service/data-sample/data-sample-type'
|
6
11
|
import { DataSet } from '../service/data-set/data-set'
|
7
12
|
import { DataUseCase } from './data-use-case'
|
8
|
-
import { EntityManager } from 'typeorm'
|
9
|
-
import { NewDataSample } from '../service/data-sample/data-sample-type'
|
10
|
-
import { User } from '@things-factory/auth-base'
|
11
|
-
import moment from 'moment'
|
12
13
|
|
13
14
|
const debug = require('debug')('things-factory:dataset:controller/save-data-sample')
|
14
15
|
|
@@ -76,7 +77,7 @@ export async function createDataSample(
|
|
76
77
|
const momentUtc = moment(collectedAt).utc()
|
77
78
|
const defaultPartitionKeys = {
|
78
79
|
domain: domain.subdomain,
|
79
|
-
|
80
|
+
datasetid: dataSample.dataSet.id /* It should not be 'data_set_id' as column name duplicated for Glue */,
|
80
81
|
year: momentUtc.format('Y'),
|
81
82
|
month: momentUtc.format('M'),
|
82
83
|
day: momentUtc.format('D')
|
@@ -105,6 +106,8 @@ export async function createDataSample(
|
|
105
106
|
ooc,
|
106
107
|
oos,
|
107
108
|
collectedAt,
|
109
|
+
workDate: momentUtc.format('YYYY-MM-DD'),
|
110
|
+
workShift: 'DAY',
|
108
111
|
creator: user,
|
109
112
|
updater: user
|
110
113
|
})
|
@@ -117,6 +120,7 @@ export async function createDataSample(
|
|
117
120
|
dataSet,
|
118
121
|
dataSample: result,
|
119
122
|
data: dataSample.data,
|
123
|
+
rawData: dataSample.rawData,
|
120
124
|
domain,
|
121
125
|
partitionKeys,
|
122
126
|
spec,
|
@@ -133,13 +137,13 @@ export async function createDataSample(
|
|
133
137
|
}
|
134
138
|
],
|
135
139
|
state: DataOocStatus.CREATED,
|
140
|
+
workDate: momentUtc.format('YYYY-MM-DD'),
|
141
|
+
workShift: 'DAY',
|
136
142
|
collectedAt,
|
137
143
|
creator: user,
|
138
144
|
updater: user
|
139
145
|
})
|
140
146
|
|
141
|
-
debug('dataOoc is about to publish...', dataOoc)
|
142
|
-
|
143
147
|
pubsub.publish('data-ooc', {
|
144
148
|
dataOoc,
|
145
149
|
supervisoryRoleId: dataSet.supervisoryRoleId
|
package/server/routes.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
|
1
|
+
import { Arg, Ctx, Directive, Mutation, Resolver } from 'type-graphql'
|
2
|
+
|
3
3
|
import { DataOoc, DataOocStatus } from './data-ooc'
|
4
|
-
import {
|
4
|
+
import { DataOocPatch, NewDataOoc } from './data-ooc-type'
|
5
5
|
|
6
6
|
@Resolver(DataOoc)
|
7
7
|
export class DataOocMutation {
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import {
|
2
|
-
|
1
|
+
import { Field, ID, InputType, Int, ObjectType } from 'type-graphql'
|
2
|
+
|
3
3
|
import { ObjectRef, ScalarObject } from '@things-factory/shell'
|
4
4
|
|
5
|
-
import {
|
5
|
+
import { DataOoc, DataOocStatus } from './data-ooc'
|
6
6
|
|
7
7
|
@InputType()
|
8
8
|
export class NewDataOoc {
|
@@ -36,6 +36,12 @@ export class NewDataOoc {
|
|
36
36
|
@Field({ nullable: true })
|
37
37
|
oos?: boolean
|
38
38
|
|
39
|
+
@Field({ nullable: true })
|
40
|
+
workDate?: string
|
41
|
+
|
42
|
+
@Field({ nullable: true })
|
43
|
+
workShift?: string
|
44
|
+
|
39
45
|
@Field({ nullable: true })
|
40
46
|
collectedAt?: Date
|
41
47
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { Field, ID, ObjectType, registerEnumType } from 'type-graphql'
|
1
2
|
import {
|
2
3
|
Column,
|
3
4
|
CreateDateColumn,
|
@@ -10,13 +11,13 @@ import {
|
|
10
11
|
RelationId,
|
11
12
|
UpdateDateColumn
|
12
13
|
} from 'typeorm'
|
14
|
+
|
15
|
+
import { User } from '@things-factory/auth-base'
|
16
|
+
import { config } from '@things-factory/env'
|
13
17
|
import { Domain, ScalarObject } from '@things-factory/shell'
|
14
|
-
import { Field, ID, Int, ObjectType, registerEnumType } from 'type-graphql'
|
15
18
|
|
16
19
|
import { DataSample } from '../data-sample/data-sample'
|
17
20
|
import { DataSet } from '../data-set/data-set'
|
18
|
-
import { User } from '@things-factory/auth-base'
|
19
|
-
import { config } from '@things-factory/env'
|
20
21
|
|
21
22
|
const ORMCONFIG = config.get('ormconfig', {})
|
22
23
|
const DATABASE_TYPE = ORMCONFIG.type
|
@@ -150,6 +151,14 @@ export class DataOoc {
|
|
150
151
|
@Field({ nullable: true })
|
151
152
|
source?: string
|
152
153
|
|
154
|
+
@Column({ nullable: true })
|
155
|
+
@Field({ nullable: true })
|
156
|
+
workDate?: string
|
157
|
+
|
158
|
+
@Column({ nullable: true })
|
159
|
+
@Field({ nullable: true })
|
160
|
+
workShift?: string
|
161
|
+
|
153
162
|
@Column({ nullable: true })
|
154
163
|
@Field({ nullable: true })
|
155
164
|
collectedAt?: Date
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { Field,
|
1
|
+
import { Field, InputType, Int, ObjectType } from 'type-graphql'
|
2
|
+
|
2
3
|
import { ObjectRef, ScalarObject } from '@things-factory/shell'
|
3
4
|
|
4
5
|
import { DataSample } from './data-sample'
|
@@ -23,6 +24,12 @@ export class NewDataSample {
|
|
23
24
|
@Field({ nullable: true })
|
24
25
|
source?: string
|
25
26
|
|
27
|
+
@Field({ nullable: true })
|
28
|
+
workDate?: string
|
29
|
+
|
30
|
+
@Field({ nullable: true })
|
31
|
+
workShift?: string
|
32
|
+
|
26
33
|
@Field({ nullable: true })
|
27
34
|
collectedAt?: Date
|
28
35
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { Field, ID, ObjectType } from 'type-graphql'
|
1
2
|
import {
|
2
3
|
Column,
|
3
4
|
CreateDateColumn,
|
@@ -8,12 +9,12 @@ import {
|
|
8
9
|
RelationId,
|
9
10
|
UpdateDateColumn
|
10
11
|
} from 'typeorm'
|
11
|
-
import { Domain, ScalarObject } from '@things-factory/shell'
|
12
|
-
import { Field, ID, ObjectType } from 'type-graphql'
|
13
12
|
|
14
|
-
import { DataSet } from '../data-set/data-set'
|
15
13
|
import { User } from '@things-factory/auth-base'
|
16
14
|
import { config } from '@things-factory/env'
|
15
|
+
import { Domain, ScalarObject } from '@things-factory/shell'
|
16
|
+
|
17
|
+
import { DataSet } from '../data-set/data-set'
|
17
18
|
|
18
19
|
const ORMCONFIG = config.get('ormconfig', {})
|
19
20
|
const DATABASE_TYPE = ORMCONFIG.type
|
@@ -108,6 +109,14 @@ export class DataSample {
|
|
108
109
|
@Field({ nullable: true })
|
109
110
|
oos?: boolean
|
110
111
|
|
112
|
+
@Column({ nullable: true })
|
113
|
+
@Field({ nullable: true })
|
114
|
+
workDate?: string
|
115
|
+
|
116
|
+
@Column({ nullable: true })
|
117
|
+
@Field({ nullable: true })
|
118
|
+
workShift?: string
|
119
|
+
|
111
120
|
@Column({ nullable: true })
|
112
121
|
@Field({ nullable: true })
|
113
122
|
collectedAt?: Date
|
package/translations/en.json
CHANGED
@@ -25,6 +25,8 @@
|
|
25
25
|
"field.tag": "tag name",
|
26
26
|
"field.unit": "unit",
|
27
27
|
"field.use-case": "use case",
|
28
|
+
"field.work-date": "work date",
|
29
|
+
"field.work-shift": "work shift",
|
28
30
|
"text.data sample created successfully": "a data sample created successfully",
|
29
31
|
"text.data ooc updated successfully": "a data ooc updated successfully",
|
30
32
|
"title.data-entry-form": "data entry form",
|
@@ -35,4 +37,4 @@
|
|
35
37
|
"title.data-sample view": "data sample view",
|
36
38
|
"title.data-sensor list": "data sensor list",
|
37
39
|
"title.data-set list": "data set list"
|
38
|
-
}
|
40
|
+
}
|
package/translations/ko.json
CHANGED
@@ -25,6 +25,8 @@
|
|
25
25
|
"field.tag": "태그이름",
|
26
26
|
"field.unit": "단위",
|
27
27
|
"field.use-case": "사용 사례",
|
28
|
+
"field.work-date": "작업기준일",
|
29
|
+
"field.work-shift": "교대근무조",
|
28
30
|
"text.data sample created successfully": "데이타 샘플이 성공적으로 생성되었습니다",
|
29
31
|
"text.data ooc updated successfully": "이탈데이타 내용이 수정되었습니다",
|
30
32
|
"title.data-entry-form": "데이타 입력",
|
@@ -35,4 +37,4 @@
|
|
35
37
|
"title.data-sample view": "데이타 샘플 상세",
|
36
38
|
"title.data-sensor list": "데이타 센서 조회",
|
37
39
|
"title.data-set list": "데이타 셋 조회"
|
38
|
-
}
|
40
|
+
}
|
package/translations/ms.json
CHANGED
@@ -25,6 +25,8 @@
|
|
25
25
|
"field.tag": "tag name",
|
26
26
|
"field.unit": "unit",
|
27
27
|
"field.use-case": "use case",
|
28
|
+
"field.work-date": "work date",
|
29
|
+
"field.work-shift": "work shift",
|
28
30
|
"text.data sample created successfully": "a data sample created successfully",
|
29
31
|
"text.data ooc updated successfully": "a data ooc updated successfully",
|
30
32
|
"title.data-entry-form": "data entry form",
|
@@ -35,4 +37,4 @@
|
|
35
37
|
"title.data-sample view": "data sample view",
|
36
38
|
"title.data-sensor list": "data sensor list",
|
37
39
|
"title.data-set list": "data set list"
|
38
|
-
}
|
40
|
+
}
|
package/translations/zh.json
CHANGED
@@ -25,6 +25,8 @@
|
|
25
25
|
"field.tag": "tag name",
|
26
26
|
"field.unit": "unit",
|
27
27
|
"field.use-case": "use case",
|
28
|
+
"field.work-date": "work date",
|
29
|
+
"field.work-shift": "work shift",
|
28
30
|
"text.data sample created successfully": "a data sample created successfully",
|
29
31
|
"text.data ooc updated successfully": "a data ooc updated successfully",
|
30
32
|
"title.data-entry-form": "data entry form",
|
@@ -35,4 +37,4 @@
|
|
35
37
|
"title.data-sample view": "data sample view",
|
36
38
|
"title.data-sensor list": "data sensor list",
|
37
39
|
"title.data-set list": "data set list"
|
38
|
-
}
|
40
|
+
}
|