@x12i/memorix-metadata 3.2.0 → 3.2.3

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.
Files changed (38) hide show
  1. package/README.md +86 -86
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +1 -0
  5. package/dist/index.js.map +1 -1
  6. package/dist/platform-interfaces.d.ts +29 -0
  7. package/dist/platform-interfaces.d.ts.map +1 -0
  8. package/dist/platform-interfaces.js +53 -0
  9. package/dist/platform-interfaces.js.map +1 -0
  10. package/dist/resolve.d.ts.map +1 -1
  11. package/dist/resolve.js +111 -0
  12. package/dist/resolve.js.map +1 -1
  13. package/dist/types.d.ts +47 -0
  14. package/dist/types.d.ts.map +1 -1
  15. package/dist/validate.d.ts.map +1 -1
  16. package/dist/validate.js +19 -0
  17. package/dist/validate.js.map +1 -1
  18. package/examples/custom-kinds/acme-ui-tabs.pack.json +62 -62
  19. package/examples/invalid/agent-classification.json +709 -709
  20. package/examples/invalid/broken-binding.json +688 -688
  21. package/examples/invalid/completion-mapping-with-exec-policy.json +659 -659
  22. package/examples/invalid/missing-parent.json +708 -708
  23. package/examples/invalid/operational-kind-root.json +720 -720
  24. package/examples/invalid/pipeline-unknown-service.json +611 -611
  25. package/examples/invalid/relationship-missing-rules.json +624 -624
  26. package/examples/invalid/relationship-with-storage.json +631 -631
  27. package/examples/invalid/service-with-secrets.json +679 -679
  28. package/examples/knowx/normalized/pack.json +338 -11
  29. package/examples/opx/normalized/pack.json +265 -7
  30. package/examples/opx/raw/abstract-types.json +244 -244
  31. package/examples/opx/raw/agents.json +33 -33
  32. package/examples/opx/raw/object-types.json +101 -101
  33. package/examples/opx/raw/pipelines-and-sources.json +264 -233
  34. package/examples/opx/raw/relationship-definitions.json +80 -80
  35. package/examples/opx/raw/view-definitions.json +32 -32
  36. package/examples/opx/raw/write-and-source-mappings.json +223 -223
  37. package/examples/project-opx/normalized/pack.json +1036 -1036
  38. package/package.json +48 -48
@@ -1,32 +1,32 @@
1
- {
2
- "viewDefinitions": [
3
- {
4
- "id": "opx-work-items-list",
5
- "kind": "list",
6
- "abstractType": "WorkItems",
7
- "title": "Work items",
8
- "columns": ["concept.title", "data.status", "data.priority"]
9
- },
10
- {
11
- "id": "opx-work-items-item",
12
- "kind": "item",
13
- "abstractType": "WorkItems",
14
- "title": "Work item",
15
- "sections": ["concept", "data", "workflow", "analysis", "decisions"]
16
- },
17
- {
18
- "id": "opx-people-list",
19
- "kind": "list",
20
- "abstractType": "People",
21
- "title": "People",
22
- "columns": ["concept.title", "objectType", "data.role"]
23
- },
24
- {
25
- "id": "opx-work-item-expand-people",
26
- "kind": "relationship-expansion",
27
- "abstractType": "WorkItems",
28
- "relationshipDefinitionId": "people-assigned-to-work-items",
29
- "direction": "to-from"
30
- }
31
- ]
32
- }
1
+ {
2
+ "viewDefinitions": [
3
+ {
4
+ "id": "opx-work-items-list",
5
+ "kind": "list",
6
+ "abstractType": "WorkItems",
7
+ "title": "Work items",
8
+ "columns": ["concept.title", "data.status", "data.priority"]
9
+ },
10
+ {
11
+ "id": "opx-work-items-item",
12
+ "kind": "item",
13
+ "abstractType": "WorkItems",
14
+ "title": "Work item",
15
+ "sections": ["concept", "data", "workflow", "analysis", "decisions"]
16
+ },
17
+ {
18
+ "id": "opx-people-list",
19
+ "kind": "list",
20
+ "abstractType": "People",
21
+ "title": "People",
22
+ "columns": ["concept.title", "objectType", "data.role"]
23
+ },
24
+ {
25
+ "id": "opx-work-item-expand-people",
26
+ "kind": "relationship-expansion",
27
+ "abstractType": "WorkItems",
28
+ "relationshipDefinitionId": "people-assigned-to-work-items",
29
+ "direction": "to-from"
30
+ }
31
+ ]
32
+ }
@@ -1,223 +1,223 @@
1
- {
2
- "writeDefinitions": [
3
- {
4
- "id": "opx-people-employee-snapshots",
5
- "objectType": "people",
6
- "contentType": "snapshots",
7
- "identity": {
8
- "primaryKind": "employeeId",
9
- "issuer": "opx-source"
10
- }
11
- },
12
- {
13
- "id": "opx-people-external-snapshots",
14
- "objectType": "people",
15
- "contentType": "snapshots",
16
- "identity": {
17
- "primaryKind": "externalPersonId",
18
- "issuer": "opx-source"
19
- }
20
- },
21
- {
22
- "id": "opx-work-items-snapshots",
23
- "objectType": "work-items",
24
- "contentType": "snapshots",
25
- "identity": {
26
- "primaryKind": "workItemId",
27
- "issuer": "opx-source"
28
- }
29
- },
30
- {
31
- "id": "opx-playbooks-snapshots",
32
- "objectType": "playbooks",
33
- "contentType": "snapshots",
34
- "identity": {
35
- "primaryKind": "playbookId",
36
- "issuer": "opx-source"
37
- }
38
- },
39
- {
40
- "id": "opx-activity-events-snapshots",
41
- "objectType": "activity-events",
42
- "contentType": "snapshots",
43
- "identity": {
44
- "primaryKind": "activityEventId",
45
- "issuer": "opx-source"
46
- }
47
- }
48
- ],
49
- "sourceMappings": [
50
- {
51
- "id": "opx-source-employees-to-raw",
52
- "sourceId": "opx-source",
53
- "endpoint": "/employees",
54
- "objectType": "people",
55
- "contentType": "raw",
56
- "mode": "knowledge",
57
- "purpose": "source",
58
- "map": {
59
- "recordId": {
60
- "op": "path",
61
- "path": "id",
62
- "required": true
63
- },
64
- "objectType": {
65
- "op": "constant",
66
- "value": "people"
67
- },
68
- "data.displayName": {
69
- "op": "path",
70
- "path": "name",
71
- "required": true
72
- },
73
- "data.role": {
74
- "op": "path",
75
- "path": "role",
76
- "required": true
77
- },
78
- "data.email": {
79
- "op": "path",
80
- "path": "email"
81
- },
82
- "data.sourceId": {
83
- "op": "path",
84
- "path": "id"
85
- }
86
- }
87
- },
88
- {
89
- "id": "opx-source-external-people-to-raw",
90
- "sourceId": "opx-source",
91
- "endpoint": "/external-people",
92
- "objectType": "people",
93
- "contentType": "raw",
94
- "mode": "knowledge",
95
- "purpose": "source",
96
- "map": {
97
- "recordId": {
98
- "op": "path",
99
- "path": "id",
100
- "required": true
101
- },
102
- "objectType": {
103
- "op": "constant",
104
- "value": "people"
105
- },
106
- "data.displayName": {
107
- "op": "path",
108
- "path": "name",
109
- "required": true
110
- },
111
- "data.role": {
112
- "op": "path",
113
- "path": "role",
114
- "required": true
115
- },
116
- "data.organization": {
117
- "op": "path",
118
- "path": "organization"
119
- },
120
- "data.sourceId": {
121
- "op": "path",
122
- "path": "id"
123
- }
124
- }
125
- },
126
- {
127
- "id": "opx-source-work-items-to-raw",
128
- "sourceId": "opx-source",
129
- "endpoint": "/work-items",
130
- "objectType": "work-items",
131
- "contentType": "raw",
132
- "mode": "knowledge",
133
- "purpose": "source",
134
- "map": {
135
- "data": {
136
- "op": "path",
137
- "path": "$"
138
- }
139
- }
140
- },
141
- {
142
- "id": "opx-source-work-item-context",
143
- "sourceId": "opx-source",
144
- "endpoint": "/work-items/:id/context",
145
- "objectType": "work-items",
146
- "contentType": "context",
147
- "mode": "context",
148
- "trigger": "on-demand",
149
- "purpose": "source",
150
- "map": {
151
- "data": {
152
- "op": "path",
153
- "path": "$"
154
- }
155
- }
156
- }
157
- ],
158
- "abstractMappings": [
159
- {
160
- "id": "opx-people-abstract",
161
- "purpose": "abstract",
162
- "abstractType": "People",
163
- "objectType": "people",
164
- "contentType": "snapshots",
165
- "map": {
166
- "title": {
167
- "expr": {
168
- "op": "path",
169
- "path": "data.displayName"
170
- },
171
- "required": true
172
- },
173
- "role": {
174
- "expr": {
175
- "op": "path",
176
- "path": "data.role"
177
- },
178
- "required": true
179
- },
180
- "lens": {
181
- "op": "constant",
182
- "value": "people"
183
- }
184
- },
185
- "reverse": {
186
- "title": {
187
- "expr": {
188
- "op": "path",
189
- "path": "title"
190
- },
191
- "targetPath": "data.displayName"
192
- }
193
- }
194
- }
195
- ],
196
- "completionMappings": [
197
- {
198
- "id": "opx-work-items-completion-priority",
199
- "purpose": "completion",
200
- "objectType": "work-items",
201
- "contentType": "snapshots",
202
- "map": {
203
- "data.priority": {
204
- "op": "coalesce",
205
- "exprs": [
206
- {
207
- "op": "path",
208
- "path": "priority"
209
- },
210
- {
211
- "op": "constant",
212
- "value": "normal"
213
- }
214
- ]
215
- },
216
- "data.title": {
217
- "op": "path",
218
- "path": "title"
219
- }
220
- }
221
- }
222
- ]
223
- }
1
+ {
2
+ "writeDefinitions": [
3
+ {
4
+ "id": "opx-people-employee-snapshots",
5
+ "objectType": "people",
6
+ "contentType": "snapshots",
7
+ "identity": {
8
+ "primaryKind": "employeeId",
9
+ "issuer": "opx-source"
10
+ }
11
+ },
12
+ {
13
+ "id": "opx-people-external-snapshots",
14
+ "objectType": "people",
15
+ "contentType": "snapshots",
16
+ "identity": {
17
+ "primaryKind": "externalPersonId",
18
+ "issuer": "opx-source"
19
+ }
20
+ },
21
+ {
22
+ "id": "opx-work-items-snapshots",
23
+ "objectType": "work-items",
24
+ "contentType": "snapshots",
25
+ "identity": {
26
+ "primaryKind": "workItemId",
27
+ "issuer": "opx-source"
28
+ }
29
+ },
30
+ {
31
+ "id": "opx-playbooks-snapshots",
32
+ "objectType": "playbooks",
33
+ "contentType": "snapshots",
34
+ "identity": {
35
+ "primaryKind": "playbookId",
36
+ "issuer": "opx-source"
37
+ }
38
+ },
39
+ {
40
+ "id": "opx-activity-events-snapshots",
41
+ "objectType": "activity-events",
42
+ "contentType": "snapshots",
43
+ "identity": {
44
+ "primaryKind": "activityEventId",
45
+ "issuer": "opx-source"
46
+ }
47
+ }
48
+ ],
49
+ "sourceMappings": [
50
+ {
51
+ "id": "opx-source-employees-to-raw",
52
+ "sourceId": "opx-source",
53
+ "endpoint": "/employees",
54
+ "objectType": "people",
55
+ "contentType": "raw",
56
+ "mode": "knowledge",
57
+ "purpose": "source",
58
+ "map": {
59
+ "recordId": {
60
+ "op": "path",
61
+ "path": "id",
62
+ "required": true
63
+ },
64
+ "objectType": {
65
+ "op": "constant",
66
+ "value": "people"
67
+ },
68
+ "data.displayName": {
69
+ "op": "path",
70
+ "path": "name",
71
+ "required": true
72
+ },
73
+ "data.role": {
74
+ "op": "path",
75
+ "path": "role",
76
+ "required": true
77
+ },
78
+ "data.email": {
79
+ "op": "path",
80
+ "path": "email"
81
+ },
82
+ "data.sourceId": {
83
+ "op": "path",
84
+ "path": "id"
85
+ }
86
+ }
87
+ },
88
+ {
89
+ "id": "opx-source-external-people-to-raw",
90
+ "sourceId": "opx-source",
91
+ "endpoint": "/external-people",
92
+ "objectType": "people",
93
+ "contentType": "raw",
94
+ "mode": "knowledge",
95
+ "purpose": "source",
96
+ "map": {
97
+ "recordId": {
98
+ "op": "path",
99
+ "path": "id",
100
+ "required": true
101
+ },
102
+ "objectType": {
103
+ "op": "constant",
104
+ "value": "people"
105
+ },
106
+ "data.displayName": {
107
+ "op": "path",
108
+ "path": "name",
109
+ "required": true
110
+ },
111
+ "data.role": {
112
+ "op": "path",
113
+ "path": "role",
114
+ "required": true
115
+ },
116
+ "data.organization": {
117
+ "op": "path",
118
+ "path": "organization"
119
+ },
120
+ "data.sourceId": {
121
+ "op": "path",
122
+ "path": "id"
123
+ }
124
+ }
125
+ },
126
+ {
127
+ "id": "opx-source-work-items-to-raw",
128
+ "sourceId": "opx-source",
129
+ "endpoint": "/work-items",
130
+ "objectType": "work-items",
131
+ "contentType": "raw",
132
+ "mode": "knowledge",
133
+ "purpose": "source",
134
+ "map": {
135
+ "data": {
136
+ "op": "path",
137
+ "path": "$"
138
+ }
139
+ }
140
+ },
141
+ {
142
+ "id": "opx-source-work-item-context",
143
+ "sourceId": "opx-source",
144
+ "endpoint": "/work-items/:id/context",
145
+ "objectType": "work-items",
146
+ "contentType": "context",
147
+ "mode": "context",
148
+ "trigger": "on-demand",
149
+ "purpose": "source",
150
+ "map": {
151
+ "data": {
152
+ "op": "path",
153
+ "path": "$"
154
+ }
155
+ }
156
+ }
157
+ ],
158
+ "abstractMappings": [
159
+ {
160
+ "id": "opx-people-abstract",
161
+ "purpose": "abstract",
162
+ "abstractType": "People",
163
+ "objectType": "people",
164
+ "contentType": "snapshots",
165
+ "map": {
166
+ "title": {
167
+ "expr": {
168
+ "op": "path",
169
+ "path": "data.displayName"
170
+ },
171
+ "required": true
172
+ },
173
+ "role": {
174
+ "expr": {
175
+ "op": "path",
176
+ "path": "data.role"
177
+ },
178
+ "required": true
179
+ },
180
+ "lens": {
181
+ "op": "constant",
182
+ "value": "people"
183
+ }
184
+ },
185
+ "reverse": {
186
+ "title": {
187
+ "expr": {
188
+ "op": "path",
189
+ "path": "title"
190
+ },
191
+ "targetPath": "data.displayName"
192
+ }
193
+ }
194
+ }
195
+ ],
196
+ "completionMappings": [
197
+ {
198
+ "id": "opx-work-items-completion-priority",
199
+ "purpose": "completion",
200
+ "objectType": "work-items",
201
+ "contentType": "snapshots",
202
+ "map": {
203
+ "data.priority": {
204
+ "op": "coalesce",
205
+ "exprs": [
206
+ {
207
+ "op": "path",
208
+ "path": "priority"
209
+ },
210
+ {
211
+ "op": "constant",
212
+ "value": "normal"
213
+ }
214
+ ]
215
+ },
216
+ "data.title": {
217
+ "op": "path",
218
+ "path": "title"
219
+ }
220
+ }
221
+ }
222
+ ]
223
+ }