@things-factory/dataset 6.1.23 → 6.1.28
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-resolve.js +2 -1
- package/dist-server/activities/activity-ooc-resolve.js.map +1 -1
- package/dist-server/activities/activity-ooc-review.js +2 -1
- package/dist-server/activities/activity-ooc-review.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -11
- package/server/activities/activity-ooc-resolve.ts +8 -2
- package/server/activities/activity-ooc-review.ts +13 -2
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@things-factory/dataset",
|
3
|
-
"version": "6.1.
|
3
|
+
"version": "6.1.28",
|
4
4
|
"main": "dist-server/index.js",
|
5
5
|
"browser": "dist-client/index.js",
|
6
6
|
"things-factory": true,
|
@@ -36,19 +36,19 @@
|
|
36
36
|
"@operato/shell": "^1.0.1",
|
37
37
|
"@operato/styles": "^1.0.0",
|
38
38
|
"@operato/utils": "^1.0.1",
|
39
|
-
"@things-factory/auth-base": "^6.1.
|
40
|
-
"@things-factory/aws-base": "^6.1.
|
41
|
-
"@things-factory/board-service": "^6.1.
|
42
|
-
"@things-factory/env": "^6.1.
|
43
|
-
"@things-factory/organization": "^6.1.
|
44
|
-
"@things-factory/scheduler-client": "^6.1.
|
45
|
-
"@things-factory/shell": "^6.1.
|
46
|
-
"@things-factory/work-shift": "^6.1.
|
47
|
-
"@things-factory/worklist": "^6.1.
|
39
|
+
"@things-factory/auth-base": "^6.1.28",
|
40
|
+
"@things-factory/aws-base": "^6.1.28",
|
41
|
+
"@things-factory/board-service": "^6.1.28",
|
42
|
+
"@things-factory/env": "^6.1.28",
|
43
|
+
"@things-factory/organization": "^6.1.28",
|
44
|
+
"@things-factory/scheduler-client": "^6.1.28",
|
45
|
+
"@things-factory/shell": "^6.1.28",
|
46
|
+
"@things-factory/work-shift": "^6.1.28",
|
47
|
+
"@things-factory/worklist": "^6.1.28",
|
48
48
|
"cron-parser": "^4.3.0",
|
49
49
|
"moment-timezone": "^0.5.40",
|
50
50
|
"simple-statistics": "^7.8.3",
|
51
51
|
"statistics": "^3.3.0"
|
52
52
|
},
|
53
|
-
"gitHead": "
|
53
|
+
"gitHead": "6830586c0142afaf8a23ff84aced6d4da18f1746"
|
54
54
|
}
|
@@ -2,13 +2,19 @@ import {
|
|
2
2
|
ActivityInstance,
|
3
3
|
ActivityInstanceStatus,
|
4
4
|
ActivityThread,
|
5
|
-
ActivityThreadStatus
|
5
|
+
ActivityThreadStatus,
|
6
|
+
UpdateActivityInstanceStateAddendum
|
6
7
|
} from '@things-factory/worklist'
|
7
8
|
import { DataOoc, DataOocStatus } from '../service/data-ooc/data-ooc'
|
8
9
|
|
9
|
-
async function callback(
|
10
|
+
async function callback(
|
11
|
+
activityInstance: ActivityInstance,
|
12
|
+
addendum: UpdateActivityInstanceStateAddendum,
|
13
|
+
context: ResolverContext
|
14
|
+
) {
|
10
15
|
const { tx, user, domain } = context.state
|
11
16
|
const { id, input, output, state, terminatedAt } = activityInstance
|
17
|
+
const { causedBy } = addendum || {}
|
12
18
|
|
13
19
|
/* Resolve Activity가 완료되면, 해당 data-ooc 엔티티의 correctiveAction, correctorId, correctedAt 을 update한다. */
|
14
20
|
if (state == ActivityInstanceStatus.Ended) {
|
@@ -1,10 +1,21 @@
|
|
1
|
-
import {
|
1
|
+
import {
|
2
|
+
Activity,
|
3
|
+
ActivityInstance,
|
4
|
+
ActivityInstanceStatus,
|
5
|
+
ActivityThread,
|
6
|
+
UpdateActivityInstanceStateAddendum
|
7
|
+
} from '@things-factory/worklist'
|
2
8
|
import { issue } from '@things-factory/worklist/dist-server/controllers/activity-instance/issue'
|
3
9
|
import { DataOoc, DataOocStatus } from '../service/data-ooc/data-ooc'
|
4
10
|
|
5
|
-
async function callback(
|
11
|
+
async function callback(
|
12
|
+
activityInstance: ActivityInstance,
|
13
|
+
addendum: UpdateActivityInstanceStateAddendum,
|
14
|
+
context: ResolverContext
|
15
|
+
) {
|
6
16
|
const { domain, user, tx } = context.state
|
7
17
|
const { input, output, state, terminatedAt } = activityInstance
|
18
|
+
const { causedBy } = addendum || {}
|
8
19
|
|
9
20
|
if (state == ActivityInstanceStatus.Ended) {
|
10
21
|
const activity = (await tx.getRepository(Activity).findOneBy({
|