@things-factory/dataset 6.0.49 → 6.0.51

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.49",
3
+ "version": "6.0.51",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -39,13 +39,13 @@
39
39
  "@things-factory/aws-base": "^6.0.49",
40
40
  "@things-factory/board-service": "^6.0.49",
41
41
  "@things-factory/env": "^6.0.49",
42
- "@things-factory/organization": "^6.0.49",
42
+ "@things-factory/organization": "^6.0.50",
43
43
  "@things-factory/scheduler-client": "^6.0.49",
44
44
  "@things-factory/shell": "^6.0.49",
45
45
  "@things-factory/work-shift": "^6.0.49",
46
- "@things-factory/worklist": "^6.0.49",
46
+ "@things-factory/worklist": "^6.0.51",
47
47
  "cron-parser": "^4.3.0",
48
48
  "moment-timezone": "^0.5.40"
49
49
  },
50
- "gitHead": "e107d6f692d008add950e000d2653bcbbd711a24"
50
+ "gitHead": "c5e471014d7cdca7f5a9f75fc1da97c152782947"
51
51
  }
@@ -12,9 +12,8 @@ async function callback(activityInstance: ActivityInstance, context: ResolverCon
12
12
  name: 'Collect Data'
13
13
  })) as Activity
14
14
 
15
- /* collect-data 액티비티는 한명의 assignee(thread)만 수행하도록 한다. 따라서, output 중에서 샘플 한개만을 data 취한다. */
16
- const assignees = Object.keys(output)
17
- const data = assignees.length > 0 && output[assignees[0]]
15
+ /* collect-data 액티비티는 한명의 assignee(thread)만 수행하는 multiple: false 액티비티이다. 따라서, output에는 assignee key가 없이, 순수한 data 들어있다. */
16
+ const data = output
18
17
 
19
18
  if (activity) {
20
19
  const dataSample: NewDataSample = {
@@ -47,7 +46,8 @@ export const ActivityDataCollect = {
47
46
  tKey: 'data-set-name'
48
47
  }
49
48
  ],
50
- startable: false,
49
+ startingType: '',
50
+ multiple: 'single',
51
51
  model: [
52
52
  {
53
53
  name: 'dataSetId',
@@ -24,9 +24,7 @@ async function callback(activityInstance: ActivityInstance, context: ResolverCon
24
24
  const corrector = activityThreads[0]?.assignee
25
25
 
26
26
  const { dataOocId } = input
27
- const correctiveAction = Object.values(output)
28
- .map((o: any) => o.action)
29
- .join('\n')
27
+ const correctiveAction = output.action
30
28
 
31
29
  var dataOoc = await tx.getRepository(DataOoc).findOne({
32
30
  where: {
@@ -64,7 +62,8 @@ export const ActivityOocResolve = {
64
62
  tKey: 'data-ooc-id'
65
63
  }
66
64
  ],
67
- startable: false,
65
+ startingType: '',
66
+ multiple: 'single',
68
67
  model: [
69
68
  {
70
69
  name: 'dataOocId',
@@ -14,9 +14,7 @@ async function callback(activityInstance: ActivityInstance, context: ResolverCon
14
14
 
15
15
  if (activity) {
16
16
  const { dataOocId } = input
17
- const correctiveInstruction = Object.values(output)
18
- .map((o: any) => o.instruction)
19
- .join('\n')
17
+ const correctiveInstruction = output.instruction
20
18
 
21
19
  var dataOoc = await tx.getRepository(DataOoc).findOne({
22
20
  where: {
@@ -42,8 +40,8 @@ async function callback(activityInstance: ActivityInstance, context: ResolverCon
42
40
  if (assignees && assignees instanceof Array && assignees.length > 0) {
43
41
  const activityInstance = {
44
42
  name: `[OOC 조치] ${dataSet.name}`,
43
+ description: dataSet.description,
45
44
  activityId: activity.id,
46
- description: `Data OOC occurred on '${dataSet.name}'`,
47
45
  dueAt: new Date(terminatedAt.getTime() + 24 * 60 * 60 * 1000),
48
46
  input: {
49
47
  dataOocId,
@@ -81,7 +79,8 @@ export const ActivityOocReview = {
81
79
  tKey: 'data-ooc-id'
82
80
  }
83
81
  ],
84
- startable: false,
82
+ startingType: '',
83
+ multiple: 'single',
85
84
  model: [
86
85
  {
87
86
  name: 'dataOocId',
@@ -144,8 +144,8 @@ export async function createDataSample(dataSample: NewDataSample, context: Resol
144
144
  if (assignees && assignees instanceof Array && assignees.length > 0) {
145
145
  const activityInstance = {
146
146
  name: `[OOC 검토] ${dataSet.name}`,
147
+ description: dataSet.description,
147
148
  activityId: activity.id,
148
- description: `Data OOC occurred on '${dataSet.name}'`,
149
149
  dueAt: new Date(collectedAt.getTime() + 24 * 60 * 60 * 1000),
150
150
  input: {
151
151
  dataOocId: dataOoc.id
package/server/routes.ts CHANGED
@@ -115,8 +115,8 @@ process.on('bootstrap-module-global-public-route' as any, (app, globalPublicRout
115
115
  if (assignees && assignees instanceof Array && assignees.length > 0) {
116
116
  const activityInstance = {
117
117
  name: `[Data 수집] ${dataSet.name}`,
118
+ description: dataSet.description,
118
119
  activityId: activity.id,
119
- description: `Data Collect for '${dataSet.name}'`,
120
120
  dueAt: new Date(Date.now() + 24 * 60 * 60 * 1000),
121
121
  input: {
122
122
  dataSetId: dataSet.id,