@things-factory/worklist 6.0.49 → 6.0.50
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/client/pages/activity/activity-list-page.ts +1 -1
- package/client/pages/activity/activity-partial-view.ts +0 -1
- package/client/pages/installable-activity/installable-activity-list-page.ts +27 -13
- package/client/pages/todo/approval-done-list-page.ts +1 -1
- package/client/types/activity.ts +0 -2
- package/dist-client/pages/activity/activity-list-page.js +1 -1
- package/dist-client/pages/activity/activity-list-page.js.map +1 -1
- package/dist-client/pages/activity/activity-partial-view.js +1 -1
- package/dist-client/pages/activity/activity-partial-view.js.map +1 -1
- package/dist-client/pages/installable-activity/installable-activity-list-page.js +27 -13
- package/dist-client/pages/installable-activity/installable-activity-list-page.js.map +1 -1
- package/dist-client/pages/todo/approval-done-list-page.js +1 -1
- package/dist-client/pages/todo/approval-done-list-page.js.map +1 -1
- package/dist-client/route.d.ts +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-client/types/activity.d.ts +0 -1
- package/dist-client/types/activity.js.map +1 -1
- package/dist-server/controllers/common.js +2 -1
- package/dist-server/controllers/common.js.map +1 -1
- package/dist-server/service/activity/activity-history.js +0 -5
- package/dist-server/service/activity/activity-history.js.map +1 -1
- package/dist-server/service/activity/activity-type.js +0 -8
- package/dist-server/service/activity/activity-type.js.map +1 -1
- package/dist-server/service/activity/activity.js +1 -6
- package/dist-server/service/activity/activity.js.map +1 -1
- package/dist-server/service/installable-activity/installable-activity.js +7 -4
- package/dist-server/service/installable-activity/installable-activity.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/server/controllers/common.ts +4 -2
- package/server/service/activity/activity-history.ts +0 -4
- package/server/service/activity/activity-type.ts +0 -6
- package/server/service/activity/activity.ts +1 -5
- package/server/service/installable-activity/installable-activity.ts +14 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/worklist",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.50",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "dist-client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"@things-factory/auth-base": "^6.0.49",
|
|
33
33
|
"@things-factory/board-service": "^6.0.49",
|
|
34
34
|
"@things-factory/context-ui": "^6.0.49",
|
|
35
|
-
"@things-factory/organization": "^6.0.
|
|
35
|
+
"@things-factory/organization": "^6.0.50",
|
|
36
36
|
"@things-factory/scheduler-client": "^6.0.49",
|
|
37
37
|
"@things-factory/shell": "^6.0.49",
|
|
38
38
|
"moment-timezone": "^0.5.40"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "0bc016c1f46f81fcac0afd43609fd6fdb7fda857"
|
|
41
41
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Role, User } from '@things-factory/auth-base'
|
|
2
2
|
|
|
3
3
|
import { ActivitySearchKeyItem } from '../service/activity/activity-search-key-item-type'
|
|
4
|
-
import { AssigneeItem } from '../service/activity/activity'
|
|
4
|
+
import { AssigneeItem, MultipleInstanceType } from '../service/activity/activity'
|
|
5
5
|
import { ActivityInstance, ActivityInstanceStatus } from '../service/activity-instance/activity-instance'
|
|
6
6
|
import { ActivityThread, ActivityThreadStatus } from '../service/activity-thread/activity-thread'
|
|
7
7
|
import { Department, Employee, ApprovalLineItem, OrgMemberTargetType } from '@things-factory/organization'
|
|
@@ -80,7 +80,9 @@ export async function evalActivityInstanceState(
|
|
|
80
80
|
? ActivityInstanceStatus.Aborted
|
|
81
81
|
: ActivityInstanceStatus.Ended,
|
|
82
82
|
reason: '',
|
|
83
|
-
output:
|
|
83
|
+
output: [MultipleInstanceType.Parallel, MultipleInstanceType.Sequential].includes(
|
|
84
|
+
activityInstance.activity.multiple
|
|
85
|
+
)
|
|
84
86
|
? activityThreads
|
|
85
87
|
.filter(thread => (thread.state = ActivityThreadStatus.Ended))
|
|
86
88
|
.reduce((sum, thread) => {
|
|
@@ -70,10 +70,6 @@ export class ActivityHistory implements HistoryEntityInterface<Activity> {
|
|
|
70
70
|
@Field({ nullable: true })
|
|
71
71
|
priority?: number = 1
|
|
72
72
|
|
|
73
|
-
@Column({ nullable: true })
|
|
74
|
-
@Field({ nullable: true })
|
|
75
|
-
startable?: boolean
|
|
76
|
-
|
|
77
73
|
@Column({ nullable: true })
|
|
78
74
|
@Field({ nullable: true })
|
|
79
75
|
startingType?: ActivityStartingType
|
|
@@ -40,9 +40,6 @@ export class NewActivity {
|
|
|
40
40
|
@Field({ nullable: true })
|
|
41
41
|
priority?: number
|
|
42
42
|
|
|
43
|
-
@Field({ nullable: true })
|
|
44
|
-
startable?: boolean
|
|
45
|
-
|
|
46
43
|
@Field({ nullable: true })
|
|
47
44
|
startingType?: ActivityStartingType
|
|
48
45
|
|
|
@@ -127,9 +124,6 @@ export class ActivityPatch {
|
|
|
127
124
|
@Field({ nullable: true })
|
|
128
125
|
priority?: number
|
|
129
126
|
|
|
130
|
-
@Field({ nullable: true })
|
|
131
|
-
startable?: boolean
|
|
132
|
-
|
|
133
127
|
@Field({ nullable: true })
|
|
134
128
|
startingType?: ActivityStartingType
|
|
135
129
|
|
|
@@ -59,7 +59,7 @@ registerEnumType(ActivityType, {
|
|
|
59
59
|
})
|
|
60
60
|
|
|
61
61
|
export enum MultipleInstanceType {
|
|
62
|
-
Single = '',
|
|
62
|
+
Single = 'single',
|
|
63
63
|
Parallel = 'parallel',
|
|
64
64
|
Sequential = 'sequential'
|
|
65
65
|
}
|
|
@@ -143,10 +143,6 @@ export class Activity {
|
|
|
143
143
|
@Field({ nullable: true })
|
|
144
144
|
priority?: number = 1
|
|
145
145
|
|
|
146
|
-
@Column({ nullable: true })
|
|
147
|
-
@Field({ nullable: true, description: 'Whether the task can be started arbitrarily by a user with privileges' })
|
|
148
|
-
startable?: boolean
|
|
149
|
-
|
|
150
146
|
@Column({ nullable: true })
|
|
151
147
|
@Field({ nullable: true, description: 'Whether the purpose of starting the activity is to issue or post' })
|
|
152
148
|
startingType?: ActivityStartingType
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { Field, ObjectType } from 'type-graphql'
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
Activity,
|
|
5
|
+
ActivityStartingType,
|
|
6
|
+
ActivityType,
|
|
7
|
+
ActivityUIType,
|
|
8
|
+
MultipleInstanceType
|
|
9
|
+
} from '../activity/activity'
|
|
4
10
|
import { ActivityModelItem } from '../activity/activity-model-type'
|
|
5
11
|
|
|
6
12
|
@ObjectType({ description: 'Entity for InstallableActivity' })
|
|
@@ -26,12 +32,16 @@ export class InstallableActivity {
|
|
|
26
32
|
@Field({ nullable: true })
|
|
27
33
|
priority?: number = 1
|
|
28
34
|
|
|
29
|
-
@Field({ nullable: true })
|
|
30
|
-
startable?: boolean
|
|
31
|
-
|
|
32
35
|
@Field({ nullable: true })
|
|
33
36
|
startingType?: ActivityStartingType
|
|
34
37
|
|
|
38
|
+
@Field({
|
|
39
|
+
nullable: true,
|
|
40
|
+
description:
|
|
41
|
+
'Parallel or sequential are properties as a multi-instance activity, otherwise it means a single instance.'
|
|
42
|
+
})
|
|
43
|
+
multiple?: MultipleInstanceType
|
|
44
|
+
|
|
35
45
|
@Field(type => [ActivityModelItem], { nullable: true })
|
|
36
46
|
model?: ActivityModelItem[]
|
|
37
47
|
|