@x12i/memorix-format 2.2.2 → 2.3.2
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/CHANGELOG.md +30 -0
- package/README.md +36 -86
- package/dist/base-reexport.d.ts +8 -0
- package/dist/base-reexport.d.ts.map +1 -0
- package/dist/base-reexport.js +8 -0
- package/dist/base-reexport.js.map +1 -0
- package/dist/cli.js +179 -15
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/v2/index.d.ts +7 -0
- package/dist/v2/index.d.ts.map +1 -0
- package/dist/v2/index.js +6 -0
- package/dist/v2/index.js.map +1 -0
- package/dist/v2/migrate-present.d.ts +47 -0
- package/dist/v2/migrate-present.d.ts.map +1 -0
- package/dist/v2/migrate-present.js +225 -0
- package/dist/v2/migrate-present.js.map +1 -0
- package/dist/v2/profiles.d.ts +9 -0
- package/dist/v2/profiles.d.ts.map +1 -0
- package/dist/v2/profiles.js +63 -0
- package/dist/v2/profiles.js.map +1 -0
- package/dist/v2/revision.d.ts +24 -0
- package/dist/v2/revision.d.ts.map +1 -0
- package/dist/v2/revision.js +44 -0
- package/dist/v2/revision.js.map +1 -0
- package/dist/v2/types.d.ts +94 -0
- package/dist/v2/types.d.ts.map +1 -0
- package/dist/v2/types.js +3 -0
- package/dist/v2/types.js.map +1 -0
- package/dist/v2/validate.d.ts +8 -0
- package/dist/v2/validate.d.ts.map +1 -0
- package/dist/v2/validate.js +225 -0
- package/dist/v2/validate.js.map +1 -0
- package/docs/association-format.md +26 -445
- package/docs/memorix-format.md +24 -186
- package/docs/memorix-record-v2.md +101 -0
- package/docs/memorix-workflow-format.md +13 -1
- package/docs/migrate-present-to-v2.md +49 -0
- package/examples/v2/activity-events-snapshots.json +31 -0
- package/examples/v2/employees-discovery.json +26 -0
- package/examples/v2/employees-snapshots.json +27 -0
- package/examples/v2/procedures-knowledge.json +27 -0
- package/examples/v2/work-items-analysis.json +26 -0
- package/examples/v2/work-items-context.json +32 -0
- package/examples/v2/work-items-decisions.json +26 -0
- package/examples/v2/work-items-raw.json +37 -0
- package/examples/v2/work-items-relationships-candidate.json +38 -0
- package/examples/v2/work-items-snapshots-lifecycle.json +31 -0
- package/examples/v2/work-items-snapshots-lightweight-refs.json +34 -0
- package/examples/v2/work-items-snapshots.json +28 -0
- package/examples/v2/work-items-workflow.json +28 -0
- package/package.json +7 -2
- package/docs/memorix-format-additions.md +0 -956
- package/docs/memorix-format-for-dummies-association-corrections.md +0 -113
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "memorix-record/2",
|
|
3
|
+
"recordId": "wi-100",
|
|
4
|
+
"revision": 1,
|
|
5
|
+
"objectType": "work-items",
|
|
6
|
+
"contentType": "raw",
|
|
7
|
+
"dataCategory": "entity",
|
|
8
|
+
"concept": {
|
|
9
|
+
"title": "Prepare quarterly operations review",
|
|
10
|
+
"identifiers": {
|
|
11
|
+
"primary": {
|
|
12
|
+
"kind": "workItemId",
|
|
13
|
+
"value": "WI-100",
|
|
14
|
+
"issuer": "ops-source"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"data": {
|
|
19
|
+
"id": "WI-100",
|
|
20
|
+
"title": "Prepare quarterly operations review",
|
|
21
|
+
"status": "in-progress",
|
|
22
|
+
"priority": "normal",
|
|
23
|
+
"assigneeId": "E-10",
|
|
24
|
+
"procedureIds": ["PROC-1"],
|
|
25
|
+
"dependsOnIds": ["WI-90"],
|
|
26
|
+
"updatedAt": "2026-01-15T12:00:00.000Z"
|
|
27
|
+
},
|
|
28
|
+
"_system": {
|
|
29
|
+
"state": "active",
|
|
30
|
+
"createdAt": "2026-01-15T12:00:00.000Z",
|
|
31
|
+
"modifiedAt": "2026-01-15T12:00:00.000Z",
|
|
32
|
+
"provenance": {
|
|
33
|
+
"sourceId": "ops-source",
|
|
34
|
+
"endpoint": "/work-items"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "memorix-record/2",
|
|
3
|
+
"recordId": "wi-100",
|
|
4
|
+
"revision": 2,
|
|
5
|
+
"objectType": "work-items",
|
|
6
|
+
"contentType": "relationships",
|
|
7
|
+
"dataCategory": "entity",
|
|
8
|
+
"concept": {
|
|
9
|
+
"title": "Relationships for wi-100",
|
|
10
|
+
"identifiers": {
|
|
11
|
+
"primary": {
|
|
12
|
+
"kind": "recordId",
|
|
13
|
+
"value": "wi-100"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"data": {
|
|
18
|
+
"associatedPeople": [
|
|
19
|
+
{
|
|
20
|
+
"relationshipId": "rel-people-assigned-employee-10-wi-100",
|
|
21
|
+
"relationshipDefinitionId": "people-assigned-to-work-items",
|
|
22
|
+
"recordId": "employee-10"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"usedProcedures": [
|
|
26
|
+
{
|
|
27
|
+
"relationshipId": "rel-wi-use-proc-wi-100-proc-1",
|
|
28
|
+
"relationshipDefinitionId": "work-items-use-procedures",
|
|
29
|
+
"recordId": "proc-1"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"_system": {
|
|
34
|
+
"state": "active",
|
|
35
|
+
"createdAt": "2026-01-15T12:00:00.000Z",
|
|
36
|
+
"modifiedAt": "2026-01-15T12:30:00.000Z"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "memorix-record/2",
|
|
3
|
+
"recordId": "wi-100",
|
|
4
|
+
"revision": 5,
|
|
5
|
+
"objectType": "work-items",
|
|
6
|
+
"contentType": "snapshots",
|
|
7
|
+
"dataCategory": "entity",
|
|
8
|
+
"concept": {
|
|
9
|
+
"title": "Prepare quarterly operations review",
|
|
10
|
+
"identifiers": {
|
|
11
|
+
"primary": {
|
|
12
|
+
"kind": "workItemId",
|
|
13
|
+
"value": "WI-100",
|
|
14
|
+
"issuer": "ops-source"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"data": {
|
|
19
|
+
"status": "done",
|
|
20
|
+
"priority": "normal"
|
|
21
|
+
},
|
|
22
|
+
"_system": {
|
|
23
|
+
"state": "active",
|
|
24
|
+
"createdAt": "2026-01-10T10:00:00.000Z",
|
|
25
|
+
"modifiedAt": "2026-01-20T09:00:00.000Z",
|
|
26
|
+
"lifecycle": [
|
|
27
|
+
{ "process": "created", "processedAt": "2026-01-10T10:00:00.000Z" },
|
|
28
|
+
{ "process": "completed", "processedAt": "2026-01-20T09:00:00.000Z" }
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "memorix-record/2",
|
|
3
|
+
"recordId": "wi-100",
|
|
4
|
+
"revision": 2,
|
|
5
|
+
"objectType": "work-items",
|
|
6
|
+
"contentType": "snapshots",
|
|
7
|
+
"dataCategory": "entity",
|
|
8
|
+
"concept": {
|
|
9
|
+
"title": "Prepare quarterly operations review",
|
|
10
|
+
"identifiers": {
|
|
11
|
+
"primary": {
|
|
12
|
+
"kind": "workItemId",
|
|
13
|
+
"value": "WI-100",
|
|
14
|
+
"issuer": "ops-source"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"data": {
|
|
19
|
+
"status": "in-progress",
|
|
20
|
+
"priority": "normal"
|
|
21
|
+
},
|
|
22
|
+
"associatedPeople": [
|
|
23
|
+
{
|
|
24
|
+
"relationshipDefinitionId": "people-assigned-to-work-items",
|
|
25
|
+
"recordId": "employee-10",
|
|
26
|
+
"relationshipId": "rel-people-assigned-employee-10-wi-100"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"_system": {
|
|
30
|
+
"state": "active",
|
|
31
|
+
"createdAt": "2026-01-10T10:00:00.000Z",
|
|
32
|
+
"modifiedAt": "2026-01-15T12:30:00.000Z"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "memorix-record/2",
|
|
3
|
+
"recordId": "wi-100",
|
|
4
|
+
"revision": 3,
|
|
5
|
+
"objectType": "work-items",
|
|
6
|
+
"contentType": "snapshots",
|
|
7
|
+
"dataCategory": "entity",
|
|
8
|
+
"concept": {
|
|
9
|
+
"title": "Prepare quarterly operations review",
|
|
10
|
+
"identifiers": {
|
|
11
|
+
"primary": {
|
|
12
|
+
"kind": "workItemId",
|
|
13
|
+
"value": "WI-100",
|
|
14
|
+
"issuer": "ops-source"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"data": {
|
|
19
|
+
"status": "in-progress",
|
|
20
|
+
"priority": "normal"
|
|
21
|
+
},
|
|
22
|
+
"_system": {
|
|
23
|
+
"state": "active",
|
|
24
|
+
"createdAt": "2026-01-10T10:00:00.000Z",
|
|
25
|
+
"modifiedAt": "2026-01-15T12:00:00.000Z",
|
|
26
|
+
"observedAt": "2026-01-15T12:00:00.000Z"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "memorix-record/2",
|
|
3
|
+
"recordId": "wi-100",
|
|
4
|
+
"revision": 4,
|
|
5
|
+
"objectType": "work-items",
|
|
6
|
+
"contentType": "workflow",
|
|
7
|
+
"dataCategory": "entity",
|
|
8
|
+
"concept": {
|
|
9
|
+
"title": "Workflow for wi-100",
|
|
10
|
+
"identifiers": {
|
|
11
|
+
"primary": {
|
|
12
|
+
"kind": "recordId",
|
|
13
|
+
"value": "wi-100"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"data": {
|
|
18
|
+
"status": "in-progress",
|
|
19
|
+
"assigneeRecordId": "employee-10",
|
|
20
|
+
"tasks": [],
|
|
21
|
+
"audit": []
|
|
22
|
+
},
|
|
23
|
+
"_system": {
|
|
24
|
+
"state": "active",
|
|
25
|
+
"createdAt": "2026-01-10T10:00:00.000Z",
|
|
26
|
+
"modifiedAt": "2026-01-15T14:00:00.000Z"
|
|
27
|
+
}
|
|
28
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@x12i/memorix-format",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "Memorix
|
|
3
|
+
"version": "2.3.2",
|
|
4
|
+
"description": "Memorix format: present envelope + memorix-record/2 (Gate G2 SoT), validators, migrate CLIs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
"./types": {
|
|
25
25
|
"types": "./dist/types.d.ts",
|
|
26
26
|
"import": "./dist/types.js"
|
|
27
|
+
},
|
|
28
|
+
"./v2": {
|
|
29
|
+
"types": "./dist/v2/index.d.ts",
|
|
30
|
+
"import": "./dist/v2/index.js"
|
|
27
31
|
}
|
|
28
32
|
},
|
|
29
33
|
"files": [
|
|
@@ -67,6 +71,7 @@
|
|
|
67
71
|
"keywords": [
|
|
68
72
|
"memorix",
|
|
69
73
|
"format",
|
|
74
|
+
"memorix-record/2",
|
|
70
75
|
"validator",
|
|
71
76
|
"profile",
|
|
72
77
|
"exellix"
|