@ixo/topic-protocol 0.5.0 → 0.7.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/README.md +6 -2
- package/dist/profiles/job-card/profile.json +29 -0
- package/dist/schemas/approval-decision.schema.json +30 -0
- package/dist/schemas/claim-record.schema.json +30 -0
- package/dist/schemas/delivery-decision.schema.json +28 -0
- package/dist/schemas/delivery-packet.schema.json +58 -0
- package/dist/schemas/evaluation-assertion.schema.json +37 -0
- package/dist/schemas/external-work-binding.schema.json +83 -0
- package/dist/schemas/external-work-state-map.schema.json +29 -0
- package/dist/schemas/job-card.schema.json +46 -0
- package/dist/schemas/settlement-receipt.schema.json +53 -0
- package/dist/schemas/topic-contract-state.schema.json +26 -0
- package/dist/schemas/topic-kind-profile.schema.json +82 -0
- package/dist/schemas/topic-operation.schema.json +2 -2
- package/dist/schemas/topic-state.schema.json +14 -0
- package/dist/schemas/work-item-snapshot.schema.json +73 -0
- package/dist/src/contracts/schemas.d.ts +1656 -29
- package/dist/src/contracts/schemas.js +22 -0
- package/dist/src/contracts/schemas.js.map +1 -1
- package/dist/src/contracts/topic-contract.d.ts +3 -0
- package/dist/src/contracts/topic-contract.js.map +1 -1
- package/dist/src/contracts/topic-kind-profile.d.ts +81 -0
- package/dist/src/contracts/topic-kind-profile.js +76 -0
- package/dist/src/contracts/topic-kind-profile.js.map +1 -0
- package/dist/src/errors.d.ts +1 -1
- package/dist/src/errors.js.map +1 -1
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.js +3 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/projector/payload.d.ts +29 -0
- package/dist/src/projector/payload.js +83 -1
- package/dist/src/projector/payload.js.map +1 -1
- package/dist/src/projector/state.js +6 -0
- package/dist/src/projector/state.js.map +1 -1
- package/dist/src/projector/types.d.ts +3 -1
- package/dist/src/projector/types.js.map +1 -1
- package/dist/src/work-bridge/mapping.d.ts +2 -0
- package/dist/src/work-bridge/mapping.js +17 -0
- package/dist/src/work-bridge/mapping.js.map +1 -0
- package/dist/src/work-bridge/project.d.ts +7 -0
- package/dist/src/work-bridge/project.js +262 -0
- package/dist/src/work-bridge/project.js.map +1 -0
- package/dist/src/work-bridge/types.d.ts +232 -0
- package/dist/src/work-bridge/types.js +26 -0
- package/dist/src/work-bridge/types.js.map +1 -0
- package/package.json +4 -2
- package/profiles/job-card/README.md +11 -0
- package/profiles/job-card/profile.json +29 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export const EXTERNAL_WORK_STATES = [
|
|
2
|
+
"planned",
|
|
3
|
+
"ready",
|
|
4
|
+
"in_progress",
|
|
5
|
+
"blocked",
|
|
6
|
+
"handoff_ready",
|
|
7
|
+
"handed_off",
|
|
8
|
+
"cancelled",
|
|
9
|
+
];
|
|
10
|
+
export const EXTERNAL_WORKFLOW_CATEGORIES = [
|
|
11
|
+
"triage",
|
|
12
|
+
"backlog",
|
|
13
|
+
"unstarted",
|
|
14
|
+
"started",
|
|
15
|
+
"completed",
|
|
16
|
+
"canceled",
|
|
17
|
+
];
|
|
18
|
+
export const EXTERNAL_WORK_HEALTH_STATES = [
|
|
19
|
+
"up_to_date",
|
|
20
|
+
"changes_pending",
|
|
21
|
+
"degraded",
|
|
22
|
+
"disconnected",
|
|
23
|
+
"conflicted",
|
|
24
|
+
"permission_lost",
|
|
25
|
+
];
|
|
26
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/work-bridge/types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,SAAS;IACT,OAAO;IACP,aAAa;IACb,SAAS;IACT,eAAe;IACf,YAAY;IACZ,WAAW;CACH,CAAC;AAEX,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,QAAQ;IACR,SAAS;IACT,WAAW;IACX,SAAS;IACT,WAAW;IACX,UAAU;CACF,CAAC;AAEX,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,YAAY;IACZ,iBAAiB;IACjB,UAAU;IACV,cAAc;IACd,YAAY;IACZ,iBAAiB;CACT,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ixo/topic-protocol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Reference contracts and deterministic projection for IXO Topics",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"types": "./dist/src/index.d.ts",
|
|
18
18
|
"files": [
|
|
19
19
|
"dist",
|
|
20
|
+
"profiles",
|
|
20
21
|
"README.md"
|
|
21
22
|
],
|
|
22
23
|
"exports": {
|
|
@@ -24,7 +25,8 @@
|
|
|
24
25
|
"types": "./dist/src/index.d.ts",
|
|
25
26
|
"import": "./dist/src/index.js"
|
|
26
27
|
},
|
|
27
|
-
"./schemas/*": "./dist/schemas/*"
|
|
28
|
+
"./schemas/*": "./dist/schemas/*",
|
|
29
|
+
"./profiles/*": "./profiles/*"
|
|
28
30
|
},
|
|
29
31
|
"scripts": {
|
|
30
32
|
"build": "tsc -p tsconfig.build.json",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Job Card Kind Profile
|
|
2
|
+
|
|
3
|
+
`profile.json` is the immutable profile document for the first-party Job Kind
|
|
4
|
+
extension. It is pinned from Topic contracts by exact version and SHA-256
|
|
5
|
+
digest. The Job-specific resource validates against
|
|
6
|
+
`schemas/job-card.schema.json`.
|
|
7
|
+
|
|
8
|
+
Generic Topic clients fall back to the standard `task` Kind and `project`
|
|
9
|
+
recipe. Profile-aware clients may edit and project the room-visible fields
|
|
10
|
+
declared by the profile, but must keep the complete Job Card in the encrypted
|
|
11
|
+
contract body or its authorised bound resource.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"id": "https://topic-protocol.ixo.world/profiles/job-card",
|
|
4
|
+
"profileVersion": "1.0.0",
|
|
5
|
+
"label": "Job",
|
|
6
|
+
"description": "A portable digital job card coordinated through a Task-based Topic.",
|
|
7
|
+
"kind": {
|
|
8
|
+
"customId": "org.ixo.job-card",
|
|
9
|
+
"baseKind": "task",
|
|
10
|
+
"recipe": "project"
|
|
11
|
+
},
|
|
12
|
+
"resource": {
|
|
13
|
+
"type": "org.ixo.job-card",
|
|
14
|
+
"version": 1,
|
|
15
|
+
"schema": "https://topic-protocol.ixo.world/schemas/job-card.schema.json"
|
|
16
|
+
},
|
|
17
|
+
"acceptance": {
|
|
18
|
+
"requiredResourcePaths": ["/jobNumber", "/phase"]
|
|
19
|
+
},
|
|
20
|
+
"projection": {
|
|
21
|
+
"key": "org.ixo.topic-kind/job-card/v1",
|
|
22
|
+
"roomVisibleFields": ["/jobNumber", "/phase", "/priority", "/scheduled/start"]
|
|
23
|
+
},
|
|
24
|
+
"presentation": {
|
|
25
|
+
"fallbackLabel": "Job",
|
|
26
|
+
"primaryFields": ["/jobNumber", "/phase", "/priority", "/scheduled/start", "/site", "/asset"]
|
|
27
|
+
},
|
|
28
|
+
"capabilities": ["topic/write", "topic/change-status", "topic/confirm-completion"]
|
|
29
|
+
}
|