@things-factory/dataset 6.0.54 → 6.0.57
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/activities/activity-ooc-review.js +3 -3
- package/dist-server/activities/activity-ooc-review.js.map +1 -1
- package/dist-server/controllers/create-data-sample.js +3 -3
- package/dist-server/controllers/create-data-sample.js.map +1 -1
- package/dist-server/routes.js +3 -3
- package/dist-server/routes.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -10
- package/server/activities/activity-ooc-review.ts +3 -3
- package/server/controllers/create-data-sample.ts +3 -3
- package/server/routes.ts +3 -4
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@things-factory/dataset",
|
3
|
-
"version": "6.0.
|
3
|
+
"version": "6.0.57",
|
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.
|
39
|
-
"@things-factory/aws-base": "^6.0.
|
40
|
-
"@things-factory/board-service": "^6.0.
|
38
|
+
"@things-factory/auth-base": "^6.0.57",
|
39
|
+
"@things-factory/aws-base": "^6.0.57",
|
40
|
+
"@things-factory/board-service": "^6.0.57",
|
41
41
|
"@things-factory/env": "^6.0.49",
|
42
|
-
"@things-factory/organization": "^6.0.
|
43
|
-
"@things-factory/scheduler-client": "^6.0.
|
44
|
-
"@things-factory/shell": "^6.0.
|
45
|
-
"@things-factory/work-shift": "^6.0.
|
46
|
-
"@things-factory/worklist": "^6.0.
|
42
|
+
"@things-factory/organization": "^6.0.57",
|
43
|
+
"@things-factory/scheduler-client": "^6.0.57",
|
44
|
+
"@things-factory/shell": "^6.0.57",
|
45
|
+
"@things-factory/work-shift": "^6.0.57",
|
46
|
+
"@things-factory/worklist": "^6.0.57",
|
47
47
|
"cron-parser": "^4.3.0",
|
48
48
|
"moment-timezone": "^0.5.40"
|
49
49
|
},
|
50
|
-
"gitHead": "
|
50
|
+
"gitHead": "7aaa2253e3046278972372263d13fd9b6dbb6e8b"
|
51
51
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Activity, ActivityInstance, ActivityInstanceStatus } from '@things-factory/worklist'
|
2
|
-
import {
|
2
|
+
import { issue } from '@things-factory/worklist/dist-server/controllers/activity-instance/issue'
|
3
3
|
import { DataOoc, DataOocStatus } from '../service/data-ooc/data-ooc'
|
4
4
|
|
5
5
|
async function callback(activityInstance: ActivityInstance, context: ResolverContext) {
|
@@ -51,10 +51,10 @@ async function callback(activityInstance: ActivityInstance, context: ResolverCon
|
|
51
51
|
approvalLine
|
52
52
|
}
|
53
53
|
|
54
|
-
await
|
54
|
+
await issue(activityInstance, context)
|
55
55
|
} else {
|
56
56
|
console.error(
|
57
|
-
`Assignees are not set. So, Data OOC Resolve task for ${dataOoc.name}(${dataOoc.id}) could not be
|
57
|
+
`Assignees are not set. So, Data OOC Resolve task for ${dataOoc.name}(${dataOoc.id}) could not be issued.`
|
58
58
|
)
|
59
59
|
}
|
60
60
|
} else {
|
@@ -12,7 +12,7 @@ import { DataSet } from '../service/data-set/data-set'
|
|
12
12
|
import { DataUseCase } from './data-use-case'
|
13
13
|
import { Activity } from '@things-factory/worklist'
|
14
14
|
|
15
|
-
import {
|
15
|
+
import { issue } from '@things-factory/worklist/dist-server/controllers/activity-instance/issue'
|
16
16
|
|
17
17
|
// See README.md at ## Data Samples
|
18
18
|
process.env.TZ = 'UTC'
|
@@ -154,10 +154,10 @@ export async function createDataSample(dataSample: NewDataSample, context: Resol
|
|
154
154
|
approvalLine: []
|
155
155
|
}
|
156
156
|
|
157
|
-
await
|
157
|
+
await issue(activityInstance, context)
|
158
158
|
} else {
|
159
159
|
console.error(
|
160
|
-
`Assignees are not set. So Data OOC Review task for ${dataOoc.name}(${dataOoc.id}) could not be
|
160
|
+
`Assignees are not set. So Data OOC Review task for ${dataOoc.name}(${dataOoc.id}) could not be issued.`
|
161
161
|
)
|
162
162
|
}
|
163
163
|
} else {
|
package/server/routes.ts
CHANGED
@@ -1,8 +1,7 @@
|
|
1
|
-
import { logger } from '@things-factory/env'
|
2
1
|
import { Domain, getDataSource } from '@things-factory/shell'
|
3
2
|
import { User } from '@things-factory/auth-base'
|
4
3
|
import { Activity } from '@things-factory/worklist'
|
5
|
-
import {
|
4
|
+
import { issue } from '@things-factory/worklist/dist-server/controllers/activity-instance/issue'
|
6
5
|
import { ScheduleRegisterRequest } from '@things-factory/scheduler-client'
|
7
6
|
|
8
7
|
import { createDataSample } from './controllers/create-data-sample'
|
@@ -131,10 +130,10 @@ process.on('bootstrap-module-global-public-route' as any, (app, globalPublicRout
|
|
131
130
|
tx
|
132
131
|
}
|
133
132
|
|
134
|
-
await
|
133
|
+
await issue(activityInstance, context)
|
135
134
|
} else {
|
136
135
|
throw new Error(
|
137
|
-
`Assignees not set. So Data Collect Activity for ${dataSet.name}($dataSet.id) could not be
|
136
|
+
`Assignees not set. So Data Collect Activity for ${dataSet.name}($dataSet.id) could not be issued.`
|
138
137
|
)
|
139
138
|
}
|
140
139
|
} else {
|