@toolproof-core/schema 1.0.1 → 1.0.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 (47) hide show
  1. package/dist/generated/dependencyMap.json +292 -0
  2. package/dist/generated/normalized/Genesis.d.ts +2 -0
  3. package/dist/generated/normalized/Genesis.js +2 -0
  4. package/dist/generated/normalized/Genesis.json +2000 -0
  5. package/dist/generated/resources/Genesis.d.ts +2 -0
  6. package/dist/generated/resources/Genesis.js +2 -0
  7. package/dist/generated/resources/Genesis.json +2899 -0
  8. package/dist/generated/schemas/Genesis.d.ts +2 -0
  9. package/dist/generated/schemas/Genesis.js +2 -0
  10. package/dist/generated/schemas/Genesis.json +1458 -0
  11. package/dist/generated/schemas/standalone/Goal.d.ts +2 -0
  12. package/dist/generated/schemas/standalone/Goal.js +2 -0
  13. package/dist/generated/schemas/standalone/Goal.json +86 -0
  14. package/dist/generated/schemas/standalone/Job.d.ts +2 -0
  15. package/dist/generated/schemas/standalone/Job.js +2 -0
  16. package/dist/generated/schemas/standalone/Job.json +236 -0
  17. package/dist/generated/schemas/standalone/RawStrategy.d.ts +2 -0
  18. package/dist/generated/schemas/standalone/RawStrategy.js +2 -0
  19. package/dist/generated/schemas/standalone/RawStrategy.json +642 -0
  20. package/dist/generated/schemas/standalone/ResourceType.d.ts +2 -0
  21. package/dist/generated/schemas/standalone/ResourceType.js +2 -0
  22. package/dist/generated/schemas/standalone/ResourceType.json +140 -0
  23. package/dist/generated/schemas/standalone/RunnableStrategy.d.ts +2 -0
  24. package/dist/generated/schemas/standalone/RunnableStrategy.js +2 -0
  25. package/dist/generated/schemas/standalone/RunnableStrategy.json +712 -0
  26. package/dist/generated/schemas/standalone/StrategyRun.d.ts +2 -0
  27. package/dist/generated/schemas/standalone/StrategyRun.js +2 -0
  28. package/dist/generated/schemas/standalone/StrategyRun.json +994 -0
  29. package/dist/index.d.ts +13 -0
  30. package/dist/index.js +7 -0
  31. package/package.json +9 -8
  32. package/src/Genesis.json +1999 -1999
  33. package/src/generated/types/standalone/Resource_Genesis.js +1 -1
  34. package/src/generated/types/standalone/Resource_Job.js +1 -1
  35. package/src/generated/types/standalone/Resource_RawStrategy.js +1 -1
  36. package/src/generated/types/standalone/Resource_ResourceType.js +1 -1
  37. package/src/generated/types/standalone/Resource_RunnableStrategy.js +1 -1
  38. package/src/index.ts +93 -1
  39. package/src/scripts/_lib/config.ts +205 -205
  40. package/src/scripts/extractSchemasFromResourceTypeShells.ts +218 -218
  41. package/src/scripts/generateDependencies.ts +120 -120
  42. package/src/scripts/generateSchemaShims.ts +135 -135
  43. package/src/scripts/generateStandaloneSchema.ts +175 -175
  44. package/src/scripts/generateStandaloneType.ts +119 -119
  45. package/src/scripts/generateTypes.ts +614 -614
  46. package/src/scripts/normalizeAnchorsToPointers.ts +123 -123
  47. package/src/scripts/wrapResourceTypesWithResourceShells.ts +84 -84
@@ -0,0 +1,292 @@
1
+ {
2
+ "Name": [],
3
+ "NameFacet": [
4
+ "Name"
5
+ ],
6
+ "Description": [],
7
+ "DescriptionFacet": [
8
+ "Description"
9
+ ],
10
+ "DocumentationFacet": [
11
+ "NameFacet",
12
+ "DescriptionFacet"
13
+ ],
14
+ "ResourceTypeImplementationKind": [],
15
+ "ResourceTypeImplementationKindFacet": [
16
+ "ResourceTypeImplementationKind"
17
+ ],
18
+ "Uri": [],
19
+ "ResourceTypeIdentity": [],
20
+ "ResourceType": [
21
+ "ResourceTypeIdentity",
22
+ "Uri",
23
+ "DocumentationFacet",
24
+ "ResourceTypeImplementationKindFacet"
25
+ ],
26
+ "ResourceRoleIdentity": [],
27
+ "ResourceRoleValue": [
28
+ "ResourceTypeIdentity",
29
+ "DocumentationFacet"
30
+ ],
31
+ "RoleMap": [
32
+ "ResourceRoleIdentity",
33
+ "ResourceRoleValue"
34
+ ],
35
+ "Error": [
36
+ "DocumentationFacet"
37
+ ],
38
+ "Roles": [
39
+ "RoleMap",
40
+ "ResourceRoleValue"
41
+ ],
42
+ "RolesFacet": [
43
+ "Roles"
44
+ ],
45
+ "Domain": [],
46
+ "DomainFacet": [
47
+ "Domain"
48
+ ],
49
+ "JobIdentity": [],
50
+ "Job": [
51
+ "JobIdentity",
52
+ "Uri",
53
+ "DocumentationFacet",
54
+ "DomainFacet",
55
+ "RolesFacet"
56
+ ],
57
+ "RoleBindingArray": [
58
+ "ResourceRoleIdentity"
59
+ ],
60
+ "RoleBindings": [
61
+ "RoleBindingArray"
62
+ ],
63
+ "RoleBindingsFacet": [
64
+ "RoleBindings"
65
+ ],
66
+ "StepKind": [],
67
+ "StepKindFacet": [
68
+ "StepKind"
69
+ ],
70
+ "JobStepIdentity": [],
71
+ "JobStep": [
72
+ "JobStepIdentity",
73
+ "JobIdentity",
74
+ "StepKindFacet",
75
+ "RoleBindingsFacet"
76
+ ],
77
+ "Conditional": [
78
+ "JobStep"
79
+ ],
80
+ "BranchStepIdentity": [],
81
+ "BranchStep": [
82
+ "BranchStepIdentity",
83
+ "Conditional",
84
+ "StepKindFacet"
85
+ ],
86
+ "WhileStepIdentity": [],
87
+ "WhileStep": [
88
+ "WhileStepIdentity",
89
+ "Conditional",
90
+ "StepKindFacet"
91
+ ],
92
+ "ForStepIdentity": [],
93
+ "ForStep": [
94
+ "ForStepIdentity",
95
+ "Conditional",
96
+ "StepKindFacet"
97
+ ],
98
+ "StepIdentity": [
99
+ "JobStepIdentity",
100
+ "BranchStepIdentity",
101
+ "WhileStepIdentity",
102
+ "ForStepIdentity"
103
+ ],
104
+ "Step": [
105
+ "JobStep",
106
+ "BranchStep",
107
+ "WhileStep",
108
+ "ForStep"
109
+ ],
110
+ "CreationContext": [
111
+ "ResourceRoleIdentity",
112
+ "JobStepIdentity"
113
+ ],
114
+ "CreationContextFacet": [
115
+ "CreationContext"
116
+ ],
117
+ "ResourceIdentity": [],
118
+ "ResourceBase": [
119
+ "ResourceIdentity",
120
+ "ResourceTypeIdentity"
121
+ ],
122
+ "ResourceKind": [],
123
+ "ResourceKindFacet": [
124
+ "ResourceKind"
125
+ ],
126
+ "ShellMissing": [
127
+ "ResourceBase",
128
+ "ResourceKindFacet"
129
+ ],
130
+ "ShellInputPotential": [
131
+ "ResourceBase",
132
+ "CreationContextFacet",
133
+ "ResourceKindFacet"
134
+ ],
135
+ "ShellOutputPotential": [
136
+ "ResourceBase",
137
+ "CreationContextFacet",
138
+ "ResourceKindFacet"
139
+ ],
140
+ "Timestamp": [],
141
+ "TimestampFacet": [
142
+ "Timestamp"
143
+ ],
144
+ "Path": [],
145
+ "PathFacet": [
146
+ "Path"
147
+ ],
148
+ "ShellMaterializedBase": [
149
+ "ResourceBase",
150
+ "CreationContextFacet",
151
+ "ResourceKindFacet",
152
+ "TimestampFacet",
153
+ "PathFacet"
154
+ ],
155
+ "ShellMaterialized": [
156
+ "ShellMaterializedBase"
157
+ ],
158
+ "ResourceMissing": [
159
+ "ShellMissing"
160
+ ],
161
+ "ResourceInputPotential": [
162
+ "ShellInputPotential"
163
+ ],
164
+ "ResourceOutputPotential": [
165
+ "ShellOutputPotential"
166
+ ],
167
+ "JsonData": [],
168
+ "Nucleus": [
169
+ "JsonData"
170
+ ],
171
+ "NucleusFacet": [
172
+ "Nucleus"
173
+ ],
174
+ "ResourceMaterialized": [
175
+ "ShellMaterializedBase",
176
+ "NucleusFacet"
177
+ ],
178
+ "Resource": [
179
+ "ResourceMissing",
180
+ "ResourceInputPotential",
181
+ "ResourceOutputPotential",
182
+ "ResourceMaterialized"
183
+ ],
184
+ "JobStepSocket": [
185
+ "ResourceRoleIdentity",
186
+ "Resource"
187
+ ],
188
+ "StrategyState": [
189
+ "JobStepIdentity",
190
+ "JobStepSocket"
191
+ ],
192
+ "StrategyStateFacet": [
193
+ "StrategyState"
194
+ ],
195
+ "StepArray": [
196
+ "Step"
197
+ ],
198
+ "StepsFacet": [
199
+ "StepArray"
200
+ ],
201
+ "RawStrategy": [
202
+ "StepsFacet",
203
+ "StrategyStateFacet"
204
+ ],
205
+ "RunnableStrategyIdentity": [],
206
+ "RunnableStrategyStatus": [],
207
+ "RunnableStrategyContext": [
208
+ "RunnableStrategyStatus",
209
+ "Timestamp"
210
+ ],
211
+ "StrategyThreadIdentity": [],
212
+ "StrategyThreadMap": [
213
+ "StrategyThreadIdentity",
214
+ "StepArray"
215
+ ],
216
+ "StrategyThreadMapFacet": [
217
+ "StrategyThreadMap"
218
+ ],
219
+ "RunnableStrategy": [
220
+ "RunnableStrategyIdentity",
221
+ "RunnableStrategyContext",
222
+ "StrategyThreadMapFacet",
223
+ "StrategyStateFacet"
224
+ ],
225
+ "StrategyStateDelta": [
226
+ "StrategyState"
227
+ ],
228
+ "RunnableStrategyUpdate": [
229
+ "RunnableStrategyIdentity",
230
+ "RunnableStrategy",
231
+ "StrategyStateDelta"
232
+ ],
233
+ "RunEventCounters": [],
234
+ "RunEventStepMetadata": [
235
+ "StepIdentity",
236
+ "StepKind"
237
+ ],
238
+ "RunEventUpdates": [
239
+ "StepArray",
240
+ "StrategyStateDelta"
241
+ ],
242
+ "RunEventKind": [],
243
+ "RunEventBase": [
244
+ "RunEventKind",
245
+ "RunnableStrategyIdentity",
246
+ "StrategyThreadIdentity",
247
+ "Timestamp",
248
+ "RunEventCounters",
249
+ "RunEventStepMetadata",
250
+ "RunEventUpdates"
251
+ ],
252
+ "GraphStartRunEvent": [
253
+ "RunEventBase",
254
+ "RunnableStrategy"
255
+ ],
256
+ "TickRunEvent": [
257
+ "RunEventBase"
258
+ ],
259
+ "InterruptRunEvent": [
260
+ "RunEventBase"
261
+ ],
262
+ "GraphEndRunEvent": [
263
+ "RunEventBase"
264
+ ],
265
+ "RunEvent": [
266
+ "GraphStartRunEvent",
267
+ "TickRunEvent",
268
+ "InterruptRunEvent",
269
+ "GraphEndRunEvent"
270
+ ],
271
+ "StrategyRunIdentity": [],
272
+ "StrategyRun": [
273
+ "StrategyRunIdentity",
274
+ "RunnableStrategyIdentity",
275
+ "Timestamp",
276
+ "RunEvent"
277
+ ],
278
+ "GoalIdentity": [],
279
+ "Goal": [
280
+ "GoalIdentity",
281
+ "JobIdentity",
282
+ "DomainFacet"
283
+ ],
284
+ "Natural": [
285
+ "NaturalIdentity"
286
+ ],
287
+ "Boolean": [
288
+ "BooleanIdentity"
289
+ ],
290
+ "NaturalIdentity": [],
291
+ "BooleanIdentity": []
292
+ }
@@ -0,0 +1,2 @@
1
+ import schema from './Genesis.json';
2
+ export default schema;
@@ -0,0 +1,2 @@
1
+ import schema from './Genesis.json' with { type: 'json' };
2
+ export default schema;