@things-factory/process 7.0.1-beta.14 → 7.0.1-beta.19
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-server/service/process/process-history.js +2 -2
- package/dist-server/service/process/process-history.js.map +1 -1
- package/dist-server/service/process/process-query.js +2 -2
- package/dist-server/service/process/process-query.js.map +1 -1
- package/dist-server/service/process-instance/process-instance-history.js +2 -2
- package/dist-server/service/process-instance/process-instance-history.js.map +1 -1
- package/dist-server/service/process-instance/process-instance-query.js +2 -2
- package/dist-server/service/process-instance/process-instance-query.js.map +1 -1
- package/dist-server/service/process-instance/process-instance.js +2 -2
- package/dist-server/service/process-instance/process-instance.js.map +1 -1
- package/dist-server/service/process-thread/process-thread-query.js +1 -1
- package/dist-server/service/process-thread/process-thread-query.js.map +1 -1
- package/dist-server/service/process-thread/process-thread.js +2 -2
- package/dist-server/service/process-thread/process-thread.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -10
- package/server/service/process/process-history.ts +2 -2
- package/server/service/process/process-query.ts +5 -2
- package/server/service/process-instance/process-instance-history.ts +2 -2
- package/server/service/process-instance/process-instance-query.ts +5 -2
- package/server/service/process-instance/process-instance.ts +2 -2
- package/server/service/process-thread/process-thread-query.ts +4 -1
- package/server/service/process-thread/process-thread.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/process",
|
|
3
|
-
"version": "7.0.1-beta.
|
|
3
|
+
"version": "7.0.1-beta.19",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "dist-client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"@operato/graphql": "^2.0.0-beta.0",
|
|
32
32
|
"@operato/grist-editor": "^2.0.0-beta.0",
|
|
33
33
|
"@operato/shell": "^2.0.0-beta.0",
|
|
34
|
-
"@things-factory/attachment-base": "^7.0.1-beta.
|
|
35
|
-
"@things-factory/auth-base": "^7.0.1-beta.
|
|
36
|
-
"@things-factory/board-service": "^7.0.1-beta.
|
|
37
|
-
"@things-factory/context-ui": "^7.0.1-beta.
|
|
38
|
-
"@things-factory/organization": "^7.0.1-beta.
|
|
39
|
-
"@things-factory/scheduler-client": "^7.0.1-beta.
|
|
40
|
-
"@things-factory/shell": "^7.0.1-beta.
|
|
41
|
-
"@things-factory/worklist": "^7.0.1-beta.
|
|
34
|
+
"@things-factory/attachment-base": "^7.0.1-beta.18",
|
|
35
|
+
"@things-factory/auth-base": "^7.0.1-beta.18",
|
|
36
|
+
"@things-factory/board-service": "^7.0.1-beta.19",
|
|
37
|
+
"@things-factory/context-ui": "^7.0.1-beta.18",
|
|
38
|
+
"@things-factory/organization": "^7.0.1-beta.18",
|
|
39
|
+
"@things-factory/scheduler-client": "^7.0.1-beta.18",
|
|
40
|
+
"@things-factory/shell": "^7.0.1-beta.18",
|
|
41
|
+
"@things-factory/worklist": "^7.0.1-beta.19"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "bc939e291a4489432fb0fa0707e9c7594517ce94"
|
|
44
44
|
}
|
|
@@ -72,14 +72,14 @@ export class ProcessHistory implements HistoryEntityInterface<Process> {
|
|
|
72
72
|
updatedAt?: Date
|
|
73
73
|
|
|
74
74
|
@ManyToOne(type => User, { nullable: true })
|
|
75
|
-
@Field({ nullable: true })
|
|
75
|
+
@Field(type => User, { nullable: true })
|
|
76
76
|
creator?: User
|
|
77
77
|
|
|
78
78
|
@RelationId((process: Process) => process.creator)
|
|
79
79
|
creatorId?: string
|
|
80
80
|
|
|
81
81
|
@ManyToOne(type => User, { nullable: true })
|
|
82
|
-
@Field({ nullable: true })
|
|
82
|
+
@Field(type => User, { nullable: true })
|
|
83
83
|
updater?: User
|
|
84
84
|
|
|
85
85
|
@RelationId((process: Process) => process.updater)
|
|
@@ -31,7 +31,7 @@ export class ProcessQuery {
|
|
|
31
31
|
|
|
32
32
|
@Directive('@privilege(category: "process", privilege: "query", domainOwnerGranted: true)')
|
|
33
33
|
@Query(returns => ProcessList, { description: 'To fetch multiple Processes' })
|
|
34
|
-
async processes(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<ProcessList> {
|
|
34
|
+
async processes(@Args(type => ListParam) params: ListParam, @Ctx() context: ResolverContext): Promise<ProcessList> {
|
|
35
35
|
const { domain } = context.state
|
|
36
36
|
|
|
37
37
|
const queryBuilder = getQueryBuilderFromListParams({
|
|
@@ -49,7 +49,10 @@ export class ProcessQuery {
|
|
|
49
49
|
|
|
50
50
|
@Directive('@privilege(category: "process", privilege: "query", domainOwnerGranted: true)')
|
|
51
51
|
@Query(returns => ProcessList, { description: 'To fetch the list of processes that I can report on' })
|
|
52
|
-
async supervisableProcesses(
|
|
52
|
+
async supervisableProcesses(
|
|
53
|
+
@Args(type => ListParam) params: ListParam,
|
|
54
|
+
@Ctx() context: ResolverContext
|
|
55
|
+
): Promise<ProcessList> {
|
|
53
56
|
var { domain, user } = context.state
|
|
54
57
|
|
|
55
58
|
/* 조회한 사용자가 assigner 역할을 가진 process-instance 리스트만 반환 */
|
|
@@ -118,14 +118,14 @@ export class ProcessInstanceHistory implements HistoryEntityInterface<ProcessIns
|
|
|
118
118
|
terminatedAt?: Date
|
|
119
119
|
|
|
120
120
|
@ManyToOne(type => User, { nullable: true })
|
|
121
|
-
@Field({ nullable: true })
|
|
121
|
+
@Field(type => User, { nullable: true })
|
|
122
122
|
creator?: User
|
|
123
123
|
|
|
124
124
|
@RelationId((processInstance: ProcessInstance) => processInstance.creator)
|
|
125
125
|
creatorId?: string
|
|
126
126
|
|
|
127
127
|
@ManyToOne(type => User, { nullable: true })
|
|
128
|
-
@Field({ nullable: true })
|
|
128
|
+
@Field(type => User, { nullable: true })
|
|
129
129
|
updater?: User
|
|
130
130
|
|
|
131
131
|
@RelationId((processInstance: ProcessInstance) => processInstance.updater)
|
|
@@ -23,7 +23,10 @@ export class ProcessInstanceQuery {
|
|
|
23
23
|
|
|
24
24
|
@Directive('@privilege(category: "process-instance", privilege: "query", domainOwnerGranted: true)')
|
|
25
25
|
@Query(returns => ProcessInstanceList, { description: 'To fetch multiple ProcessInstances' })
|
|
26
|
-
async processInstances(
|
|
26
|
+
async processInstances(
|
|
27
|
+
@Args(type => ListParam) params: ListParam,
|
|
28
|
+
@Ctx() context: ResolverContext
|
|
29
|
+
): Promise<ProcessInstanceList> {
|
|
27
30
|
const { domain } = context.state
|
|
28
31
|
|
|
29
32
|
const [items, total] = await getQueryBuilderFromListParams({
|
|
@@ -40,7 +43,7 @@ export class ProcessInstanceQuery {
|
|
|
40
43
|
@Query(returns => ProcessInstanceList, { description: 'To fetch multiple process instances by process' })
|
|
41
44
|
async processInstancesByProcess(
|
|
42
45
|
@Arg('processId') processId: string,
|
|
43
|
-
@Args() params: ListParam,
|
|
46
|
+
@Args(type => ListParam) params: ListParam,
|
|
44
47
|
@Ctx() context: ResolverContext
|
|
45
48
|
): Promise<ProcessInstanceList> {
|
|
46
49
|
const { domain } = context.state
|
|
@@ -129,14 +129,14 @@ export class ProcessInstance {
|
|
|
129
129
|
terminatedAt?: Date
|
|
130
130
|
|
|
131
131
|
@ManyToOne(type => User, { nullable: true })
|
|
132
|
-
@Field({ nullable: true })
|
|
132
|
+
@Field(type => User, { nullable: true })
|
|
133
133
|
creator?: User
|
|
134
134
|
|
|
135
135
|
@RelationId((processInstance: ProcessInstance) => processInstance.creator)
|
|
136
136
|
creatorId?: string
|
|
137
137
|
|
|
138
138
|
@ManyToOne(type => User, { nullable: true })
|
|
139
|
-
@Field({ nullable: true })
|
|
139
|
+
@Field(type => User, { nullable: true })
|
|
140
140
|
updater?: User
|
|
141
141
|
|
|
142
142
|
@RelationId((processInstance: ProcessInstance) => processInstance.updater)
|
|
@@ -21,7 +21,10 @@ export class ProcessThreadQuery {
|
|
|
21
21
|
|
|
22
22
|
@Directive('@privilege(category: "process", privilege: "query", domainOwnerGranted: true)')
|
|
23
23
|
@Query(returns => ProcessThreadList, { description: 'To fetch multiple ProcessThreads' })
|
|
24
|
-
async processThreads(
|
|
24
|
+
async processThreads(
|
|
25
|
+
@Args(type => ListParam) params: ListParam,
|
|
26
|
+
@Ctx() context: ResolverContext
|
|
27
|
+
): Promise<ProcessThreadList> {
|
|
25
28
|
const { domain } = context.state
|
|
26
29
|
|
|
27
30
|
const queryBuilder = getQueryBuilderFromListParams({
|
|
@@ -75,14 +75,14 @@ export class ProcessThread {
|
|
|
75
75
|
updatedAt?: Date
|
|
76
76
|
|
|
77
77
|
@ManyToOne(type => User, { nullable: true })
|
|
78
|
-
@Field({ nullable: true })
|
|
78
|
+
@Field(type => User, { nullable: true })
|
|
79
79
|
creator?: User
|
|
80
80
|
|
|
81
81
|
@RelationId((processThread: ProcessThread) => processThread.creator)
|
|
82
82
|
creatorId?: string
|
|
83
83
|
|
|
84
84
|
@ManyToOne(type => User, { nullable: true })
|
|
85
|
-
@Field({ nullable: true })
|
|
85
|
+
@Field(type => User, { nullable: true })
|
|
86
86
|
updater?: User
|
|
87
87
|
|
|
88
88
|
@RelationId((processThread: ProcessThread) => processThread.updater)
|