@things-factory/worklist 6.0.34 → 6.0.36

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/worklist",
3
- "version": "6.0.34",
3
+ "version": "6.0.36",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -32,9 +32,9 @@
32
32
  "@things-factory/board-service": "^6.0.34",
33
33
  "@things-factory/context-ui": "^6.0.34",
34
34
  "@things-factory/organization": "^6.0.34",
35
- "@things-factory/scheduler-client": "^6.0.34",
35
+ "@things-factory/scheduler-client": "^6.0.35",
36
36
  "@things-factory/shell": "^6.0.34",
37
37
  "moment-timezone": "^0.5.40"
38
38
  },
39
- "gitHead": "a460e5183f6e97e061be886d1efe9a114bd1316b"
39
+ "gitHead": "7a3049f87fca6c58b754b701f97bb41efa1d7424"
40
40
  }
@@ -14,7 +14,23 @@ export async function post(
14
14
  ): Promise<ActivityInstance> {
15
15
  const { domain, user, tx } = context.state
16
16
  const issuedAt = new Date()
17
- var { id, assignees, dueAt, approvalLine, activityId, input } = activityInstance
17
+ var {
18
+ id,
19
+ name,
20
+ description,
21
+ assignees,
22
+ uiType,
23
+ uiSource,
24
+ viewType,
25
+ viewSource,
26
+ dueAt,
27
+ approvalLine,
28
+ activityId,
29
+ activityType,
30
+ assigneeRole,
31
+ supervisoryRole,
32
+ input
33
+ } = activityInstance
18
34
 
19
35
  var origin = id
20
36
  ? await tx.getRepository(ActivityInstance).findOne({
@@ -51,15 +67,15 @@ export async function post(
51
67
  }
52
68
  }
53
69
 
54
- activityInstance.name = activity.name
55
- activityInstance.description = activity.description
56
- activityInstance.activityType = activity.activityType
57
- activityInstance.uiType = activity.uiType
58
- activityInstance.uiSource = activity.uiSource
59
- activityInstance.viewType = activity.viewType
60
- activityInstance.viewSource = activity.viewSource
61
- activityInstance.assigneeRole = activity.assigneeRole
62
- activityInstance.supervisoryRole = activity.supervisoryRole
70
+ activityInstance.name = name || activity.name
71
+ activityInstance.description = description || activity.description
72
+ activityInstance.activityType = activityType || activity.activityType
73
+ activityInstance.uiType = uiType || activity.uiType
74
+ activityInstance.uiSource = uiSource || activity.uiSource
75
+ activityInstance.viewType = viewType || activity.viewType
76
+ activityInstance.viewSource = viewSource || activity.viewSource
77
+ activityInstance.assigneeRole = assigneeRole || activity.assigneeRole
78
+ activityInstance.supervisoryRole = supervisoryRole || activity.supervisoryRole
63
79
 
64
80
  if (!assignees || !approvalLine) {
65
81
  activityInstance.adhocType = 'standard'
@@ -2,7 +2,7 @@ import { Arg, Ctx, Directive, Mutation, Resolver } from 'type-graphql'
2
2
  import { In } from 'typeorm'
3
3
 
4
4
  import { createAttachment, deleteAttachmentsByRef } from '@things-factory/attachment-base'
5
- import { registerSchedule, unregisterSchedule } from '@things-factory/scheduler-client'
5
+ import { Application, CallbackBase, registerSchedule, unregisterSchedule } from '@things-factory/scheduler-client'
6
6
 
7
7
  import { Activity } from './activity'
8
8
  import { ActivityPatch, NewActivity } from './activity-type'
@@ -230,7 +230,7 @@ export class ActivityMutation {
230
230
  var handle = await registerSchedule({
231
231
  name: activity.name,
232
232
  client: {
233
- application: 'operato-worklist',
233
+ application: Application,
234
234
  group: `${domain.id}`,
235
235
  type: 'activity',
236
236
  key: activity.id,
@@ -242,7 +242,7 @@ export class ActivityMutation {
242
242
  task: {
243
243
  type: 'rest',
244
244
  connection: {
245
- host: 'http://localhost:3000/callback-schedule-for-activity',
245
+ host: `${CallbackBase}/callback-schedule-for-activity`,
246
246
  headers: {
247
247
  'Content-Type': 'application/json',
248
248
  accept: '*/*'
@@ -36,7 +36,7 @@
36
36
  "field.search-keys": "검색키",
37
37
  "field.spec": "명세",
38
38
  "field.standard-time": "ST(초)",
39
- "field.startable": "시작 가능 업무",
39
+ "field.startable": "수동 시작 가능",
40
40
  "field.started-at": "시작 시간",
41
41
  "field.status": "상태",
42
42
  "field.supervisory-role": "관리자 역할",
@@ -71,7 +71,7 @@
71
71
  "title.activity preview": "업무 미리보기",
72
72
  "title.activity reporter list": "업무 현황",
73
73
  "title.activity starter": "업무 발급",
74
- "title.activity starter list": "시작 가능 업무",
74
+ "title.activity starter list": "새업무 할당",
75
75
  "title.activity store": "업무 스토어",
76
76
  "title.activity summary": "업무 종합 현황",
77
77
  "title.activity template model item list": "업무 템플릿 모델 항목",