@haneinfo/assignment 0.4.2 → 0.5.0

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/testing.js CHANGED
@@ -17,9 +17,10 @@ function createTestAssignmentRuntime(options = {}) {
17
17
  clock: options.clock,
18
18
  notifications: options.notifications,
19
19
  config: { failureRecipients: options.failureRecipients },
20
+ delegation: options.delegation,
20
21
  });
21
22
  const assignmentStore = new store_1.InMemoryAssignmentStore();
22
- const assignments = new assignment_service_1.AssignmentService(assignmentStore, base.runtime, base.registry, new state_machine_1.StateMachineReaderGrants(base.store), options.rbac, options.notifications, options.clock, 'test', options.orgDirectory);
23
+ const assignments = new assignment_service_1.AssignmentService(assignmentStore, base.runtime, base.registry, new state_machine_1.StateMachineReaderGrants(base.store), options.rbac, options.notifications, options.clock, 'test', options.orgDirectory, options.delegation, options.identity);
23
24
  assignments.onModuleInit();
24
25
  return { ...base, assignments, assignmentStore };
25
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"testing.js","sourceRoot":"","sources":["../src/testing.ts"],"names":[],"mappings":";AAAA,qHAAqH;;;AAiBrH,kEA+BC;AAvCD,2DAAmE;AACnE,6DAAgF;AAChF,6DAAyD;AACzD,iCAAkD;AAClD,mCAAkD;AAElD,iCAAkD;AAAzC,gHAAA,uBAAuB,OAAA;AAEhC,SAAgB,2BAA2B,CACzC,UAOI,EAAE;IAEN,MAAM,IAAI,GAAG,IAAA,uCAA6B,EAAC;QACzC,KAAK,EAAE,CAAC,+BAAwB,EAAE,GAAG,CAAC,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;QAC3D,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,aAAa,EAAE,OAAO,CAAC,aAAa;QACpC,MAAM,EAAE,EAAE,iBAAiB,EAAE,OAAO,CAAC,iBAAiB,EAAE;KACzD,CAAC,CAAC;IACH,MAAM,eAAe,GAAG,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,OAAO,CAAC,IAAI,EACZ,OAAO,CAAC,aAAa,EACrB,OAAO,CAAC,KAAK,EACb,MAAM,EACN,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,UAAU,EAClB,OAAO,CAAC,QAAQ,CACjB,CAAC;IACF,WAAW,CAAC,YAAY,EAAE,CAAC;IAC3B,OAAO,EAAE,GAAG,IAAI,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;AACnD,CAAC"}
@@ -5,7 +5,7 @@
5
5
  "cardinality": "singleton",
6
6
  "distribution": "official",
7
7
  "engine": {
8
- "haneinfoPluginApi": "^1.7.0",
8
+ "haneinfoPluginApi": "^1.13.0",
9
9
  "node": ">=22.0.0",
10
10
  "frameworks": {
11
11
  "@nestjs/common": "^11.0.5",
@@ -23,7 +23,9 @@
23
23
  "optionalRequires": [
24
24
  "haneinfo.rbac-policy",
25
25
  "haneinfo.notification-inbox",
26
- "haneinfo.org-directory"
26
+ "haneinfo.org-directory",
27
+ "haneinfo.delegation-resolver",
28
+ "haneinfo.identity-store"
27
29
  ],
28
30
  "facets": {
29
31
  "backend": {
@@ -61,7 +63,7 @@
61
63
  "prisma": {
62
64
  "owns": ["AssignmentBinding", "AssignmentTask"],
63
65
  "schemaFragment": "prisma/assignment.prisma",
64
- "schemaDigest": "sha256:9f959ee518aac39217503bc666d06ec4aec444dadeb47a9204fd19425f6108d0"
66
+ "schemaDigest": "sha256:bdc427f82abf63268c9952b57c87e00899a9b935bece6a944201250ac77c7aa7"
65
67
  },
66
68
  "permissions": {
67
69
  "definitions": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haneinfo/assignment",
3
- "version": "0.4.2",
3
+ "version": "0.5.0",
4
4
  "private": false,
5
5
  "description": "Assignment mechanism: Assignment definitions (who must respond when a state machine enters a state) and the task runtime, registered with @haneinfo/definition-registry.",
6
6
  "files": [
@@ -38,13 +38,13 @@
38
38
  "./package.json": "./package.json"
39
39
  },
40
40
  "dependencies": {
41
- "@haneinfo/plugin-api": "1.12.0",
42
- "@haneinfo/form": "0.3.2"
41
+ "@haneinfo/plugin-api": "1.13.0",
42
+ "@haneinfo/form": "0.3.3"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@haneinfo/common": "^0.3.4",
46
46
  "@haneinfo/definition-registry": "^0.1.0",
47
- "@haneinfo/state-machine": "^0.6.0 || ^0.7.0 || ^0.8.0",
47
+ "@haneinfo/state-machine": "^0.6.0 || ^0.7.0 || ^0.8.0 || ^0.9.0",
48
48
  "@haneinfo/plugin-host-nest": "^2.0.0",
49
49
  "@nestjs/common": "^11.0.0",
50
50
  "@nestjs/core": "^11.0.0",
@@ -64,9 +64,9 @@
64
64
  "typescript": "^5.9.3",
65
65
  "vitest": "^4.1.11",
66
66
  "zod": "^4.4.0",
67
- "@haneinfo/state-machine": "0.8.0",
67
+ "@haneinfo/state-machine": "0.9.0",
68
68
  "@haneinfo/common": "0.3.4",
69
- "@haneinfo/definition-registry": "0.1.7",
69
+ "@haneinfo/definition-registry": "0.1.8",
70
70
  "@haneinfo/plugin-host-nest": "2.1.0",
71
71
  "@haneinfo/plugin-testkit": "2.3.0"
72
72
  },
@@ -17,6 +17,8 @@ model AssignmentTask {
17
17
  assignmentVersion Int @map("assignment_version")
18
18
  round Int
19
19
  assigneeId String @map("assignee_id")
20
+ onBehalfOfId String? @map("on_behalf_of_id")
21
+ delegationId String? @map("delegation_id")
20
22
  /// OPEN, RESPONDED, CLOSED (decided by someone else) or CANCELLED (the instance left the state).
21
23
  status String
22
24
  title String