@things-factory/dataset 6.0.54 → 6.0.58

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/dataset",
3
- "version": "6.0.54",
3
+ "version": "6.0.58",
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.54",
39
- "@things-factory/aws-base": "^6.0.54",
40
- "@things-factory/board-service": "^6.0.54",
38
+ "@things-factory/auth-base": "^6.0.58",
39
+ "@things-factory/aws-base": "^6.0.58",
40
+ "@things-factory/board-service": "^6.0.58",
41
41
  "@things-factory/env": "^6.0.49",
42
- "@things-factory/organization": "^6.0.54",
43
- "@things-factory/scheduler-client": "^6.0.54",
44
- "@things-factory/shell": "^6.0.49",
45
- "@things-factory/work-shift": "^6.0.54",
46
- "@things-factory/worklist": "^6.0.54",
42
+ "@things-factory/organization": "^6.0.58",
43
+ "@things-factory/scheduler-client": "^6.0.58",
44
+ "@things-factory/shell": "^6.0.58",
45
+ "@things-factory/work-shift": "^6.0.58",
46
+ "@things-factory/worklist": "^6.0.58",
47
47
  "cron-parser": "^4.3.0",
48
48
  "moment-timezone": "^0.5.40"
49
49
  },
50
- "gitHead": "5ffd411868ed85ea8d6580e6299ad5d54104e1c4"
50
+ "gitHead": "c68aa34916460226aa3116aeefb525b69afdad80"
51
51
  }
@@ -1,5 +1,5 @@
1
1
  import { Activity, ActivityInstance, ActivityInstanceStatus } from '@things-factory/worklist'
2
- import { post } from '@things-factory/worklist/dist-server/controllers/activity-instance/post'
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 post(activityInstance, context)
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 posted.`
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 { post } from '@things-factory/worklist/dist-server/controllers/activity-instance/post'
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 post(activityInstance, context)
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 posted.`
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 { post } from '@things-factory/worklist/dist-server/controllers/activity-instance/post'
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 post(activityInstance, context)
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 posted.`
136
+ `Assignees not set. So Data Collect Activity for ${dataSet.name}($dataSet.id) could not be issued.`
138
137
  )
139
138
  }
140
139
  } else {