@things-factory/worklist 10.1.270 → 10.1.271

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": "10.1.270",
3
+ "version": "10.1.271",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "exports": {
@@ -57,16 +57,16 @@
57
57
  "@operato/p13n": "^10.29.43",
58
58
  "@operato/popup": "^10.29.43",
59
59
  "@operato/shell": "^10.29.69",
60
- "@things-factory/attachment-base": "^10.1.270",
61
- "@things-factory/auth-base": "^10.1.270",
62
- "@things-factory/board-service": "^10.1.270",
60
+ "@things-factory/attachment-base": "^10.1.271",
61
+ "@things-factory/auth-base": "^10.1.271",
62
+ "@things-factory/board-service": "^10.1.271",
63
63
  "@things-factory/context-ui": "^10.1.270",
64
- "@things-factory/i18n-base": "^10.1.270",
65
- "@things-factory/notification": "^10.1.270",
66
- "@things-factory/organization": "^10.1.270",
67
- "@things-factory/personalization": "^10.1.270",
68
- "@things-factory/scheduler-client": "^10.1.270",
64
+ "@things-factory/i18n-base": "^10.1.271",
65
+ "@things-factory/notification": "^10.1.271",
66
+ "@things-factory/organization": "^10.1.271",
67
+ "@things-factory/personalization": "^10.1.271",
68
+ "@things-factory/scheduler-client": "^10.1.271",
69
69
  "@things-factory/shell": "^10.1.270"
70
70
  },
71
- "gitHead": "9fb23e57702302f1a6c6572d9f0f37ef6f12b446"
71
+ "gitHead": "843bc2608d8c89348ced871777535966758927db"
72
72
  }
@@ -23,6 +23,8 @@ const { Activity } = require(join(DIST, 'service', 'activity', 'activity.js'))
23
23
  const { Domain } = require('@things-factory/shell')
24
24
  const { Role, User } = require('@things-factory/auth-base')
25
25
  const { Employee } = require('@things-factory/organization')
26
+ /* the turn notices an approval closes are kept by notification (ADR-0164 amendment 1) */
27
+ const { Notification } = require('@things-factory/notification')
26
28
 
27
29
  let db: any
28
30
  let here: any
@@ -37,7 +39,7 @@ let leave: any
37
39
  const seats: Record<string, any> = {}
38
40
 
39
41
  beforeAll(async () => {
40
- db = createSqliteTestDataSource([ActivityInstance, ActivityThread, ActivityApproval, Activity, Employee])
42
+ db = createSqliteTestDataSource([ActivityInstance, ActivityThread, ActivityApproval, Activity, Employee, Notification])
41
43
  await db.initialize()
42
44
 
43
45
  here = await db.getRepository(Domain).save({ name: 'here', subdomain: 'here' })
@@ -17,6 +17,8 @@ const { ActivityApproval } = require(join(DIST, 'service', 'activity-approval',
17
17
  const { delegate } = require(join(DIST, 'controllers', 'activity-approval', 'delegate.js'))
18
18
  const { Domain } = require('@things-factory/shell')
19
19
  const { User } = require('@things-factory/auth-base')
20
+ /* the turn notices an approval closes are kept by notification (ADR-0164 amendment 1) */
21
+ const { Notification } = require('@things-factory/notification')
20
22
 
21
23
  let db: any
22
24
  let here: any
@@ -27,7 +29,7 @@ let issuer: any
27
29
  let stranger: any
28
30
 
29
31
  beforeAll(async () => {
30
- db = createSqliteTestDataSource([ActivityInstance, ActivityThread, ActivityApproval])
32
+ db = createSqliteTestDataSource([ActivityInstance, ActivityThread, ActivityApproval, Notification])
31
33
  await db.initialize()
32
34
 
33
35
  here = await db.getRepository(Domain).save({ name: 'here', subdomain: 'here' })