@toolproof-core/schema 1.0.9 → 1.0.11
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/generated/artifacts/constants.d.ts +121 -0
- package/dist/generated/artifacts/constants.js +121 -0
- package/dist/generated/artifacts/mappings.d.ts +23 -0
- package/dist/generated/artifacts/mappings.js +23 -0
- package/dist/generated/normalized/Genesis.json +117 -78
- package/dist/generated/resources/Genesis.json +489 -264
- package/dist/generated/schemas/Genesis.json +94 -61
- package/dist/generated/schemas/standalone/Job.json +9 -8
- package/dist/generated/schemas/standalone/RawStrategy.json +86 -110
- package/dist/generated/schemas/standalone/ResourceType.json +4 -4
- package/dist/generated/schemas/standalone/RunnableStrategy.json +115 -139
- package/dist/generated/schemas/standalone/StrategyRun.json +93 -117
- package/dist/generated/types/standalone/Resource_Genesis.d.ts +1 -1
- package/dist/generated/types/standalone/Resource_Job.d.ts +1 -1
- package/dist/generated/types/standalone/Resource_RawStrategy.d.ts +1 -1
- package/dist/generated/types/standalone/Resource_ResourceType.d.ts +1 -1
- package/dist/generated/types/standalone/Resource_RunnableStrategy.d.ts +1 -1
- package/dist/generated/types/types.d.ts +247 -239
- package/dist/index.d.ts +6 -3
- package/dist/index.js +5 -2
- package/dist/scripts/_lib/config.d.ts +3 -5
- package/dist/scripts/_lib/config.js +8 -14
- package/dist/scripts/generateConstantsAndMappings.d.ts +31 -0
- package/dist/scripts/generateConstantsAndMappings.js +243 -0
- package/dist/scripts/generateDependencies.js +1 -1
- package/dist/scripts/generateStandaloneType.js +2 -1
- package/dist/scripts/generateTerminals.js +2 -2
- package/dist/scripts/generateTypes.js +183 -5
- package/dist/scripts/wrapResourceTypesWithResourceShells.js +7 -3
- package/package.json +9 -10
- package/src/Genesis.json +1873 -1833
- package/src/generated/artifacts/constants.ts +122 -0
- package/src/generated/{dependencies → artifacts}/dependencyMap.json +282 -280
- package/src/generated/artifacts/mappings.ts +24 -0
- package/src/generated/{dependencies → artifacts}/terminals.json +13 -11
- package/src/generated/normalized/Genesis.json +1785 -1746
- package/src/generated/resources/Genesis.json +2833 -2608
- package/src/generated/schemas/Genesis.json +1348 -1315
- package/src/generated/schemas/standalone/Job.json +195 -194
- package/src/generated/schemas/standalone/RawStrategy.json +86 -110
- package/src/generated/schemas/standalone/ResourceType.json +106 -106
- package/src/generated/schemas/standalone/RunnableStrategy.json +645 -669
- package/src/generated/schemas/standalone/StrategyRun.json +913 -937
- package/src/generated/types/standalone/Resource_Genesis.d.ts +3 -3
- package/src/generated/types/standalone/Resource_Job.d.ts +3 -3
- package/src/generated/types/standalone/Resource_RawStrategy.d.ts +3 -3
- package/src/generated/types/standalone/Resource_ResourceType.d.ts +3 -3
- package/src/generated/types/standalone/Resource_RunnableStrategy.d.ts +3 -3
- package/src/generated/types/types.d.ts +717 -709
- package/src/index.ts +77 -70
- package/src/scripts/_lib/config.ts +207 -215
- package/src/scripts/extractSchemasFromResourceTypeShells.ts +261 -261
- package/src/scripts/generateConstantsAndMappings.ts +309 -0
- package/src/scripts/generateDependencies.ts +121 -121
- package/src/scripts/generateSchemaShims.ts +127 -127
- package/src/scripts/generateStandaloneSchema.ts +185 -185
- package/src/scripts/generateStandaloneType.ts +129 -127
- package/src/scripts/generateTerminals.ts +73 -73
- package/src/scripts/generateTypes.ts +733 -531
- package/src/scripts/normalizeAnchorsToPointers.ts +141 -141
- package/src/scripts/wrapResourceTypesWithResourceShells.ts +86 -82
- package/dist/generated/constants/constants.d.ts +0 -60
- package/dist/generated/constants/constants.js +0 -60
- package/dist/scripts/generateConstants.d.ts +0 -12
- package/dist/scripts/generateConstants.js +0 -179
- package/src/generated/constants/constants.ts +0 -61
- package/src/scripts/generateConstants.ts +0 -217
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
const CONSTANTS = {
|
|
2
|
+
Names: {
|
|
3
|
+
Boolean: 'Boolean',
|
|
4
|
+
BooleanIdentity: 'BooleanIdentity',
|
|
5
|
+
BranchStep: 'BranchStep',
|
|
6
|
+
BranchStepIdentity: 'BranchStepIdentity',
|
|
7
|
+
Conditional: 'Conditional',
|
|
8
|
+
CreationContext: 'CreationContext',
|
|
9
|
+
CreationContextFacet: 'CreationContextFacet',
|
|
10
|
+
Description: 'Description',
|
|
11
|
+
DescriptionFacet: 'DescriptionFacet',
|
|
12
|
+
DocumentationFacet: 'DocumentationFacet',
|
|
13
|
+
Error: 'Error',
|
|
14
|
+
ForStep: 'ForStep',
|
|
15
|
+
ForStepIdentity: 'ForStepIdentity',
|
|
16
|
+
Goal: 'Goal',
|
|
17
|
+
GoalIdentity: 'GoalIdentity',
|
|
18
|
+
GraphEndRunEvent: 'GraphEndRunEvent',
|
|
19
|
+
GraphStartRunEvent: 'GraphStartRunEvent',
|
|
20
|
+
InterruptRunEvent: 'InterruptRunEvent',
|
|
21
|
+
Job: 'Job',
|
|
22
|
+
JobIdentity: 'JobIdentity',
|
|
23
|
+
JobStep: 'JobStep',
|
|
24
|
+
JobStepIdentity: 'JobStepIdentity',
|
|
25
|
+
JobStepSocket: 'JobStepSocket',
|
|
26
|
+
JsonData: 'JsonData',
|
|
27
|
+
Name: 'Name',
|
|
28
|
+
NameFacet: 'NameFacet',
|
|
29
|
+
Natural: 'Natural',
|
|
30
|
+
NaturalIdentity: 'NaturalIdentity',
|
|
31
|
+
Nucleus: 'Nucleus',
|
|
32
|
+
NucleusFacet: 'NucleusFacet',
|
|
33
|
+
Path: 'Path',
|
|
34
|
+
PathFacet: 'PathFacet',
|
|
35
|
+
RawStrategy: 'RawStrategy',
|
|
36
|
+
Resource: 'Resource',
|
|
37
|
+
ResourceIdentity: 'ResourceIdentity',
|
|
38
|
+
ResourceInputPotential: 'ResourceInputPotential',
|
|
39
|
+
ResourceMissing: 'ResourceMissing',
|
|
40
|
+
ResourceOutputPotential: 'ResourceOutputPotential',
|
|
41
|
+
ResourcePotential: 'ResourcePotential',
|
|
42
|
+
ResourceRole: 'ResourceRole',
|
|
43
|
+
ResourceRoleIdentity: 'ResourceRoleIdentity',
|
|
44
|
+
ResourceRoleValue: 'ResourceRoleValue',
|
|
45
|
+
ResourceShellBase: 'ResourceShellBase',
|
|
46
|
+
ResourceShellKind: 'ResourceShellKind',
|
|
47
|
+
ResourceShellKindFacet: 'ResourceShellKindFacet',
|
|
48
|
+
ResourceType: 'ResourceType',
|
|
49
|
+
ResourceTypeIdentity: 'ResourceTypeIdentity',
|
|
50
|
+
RoleBindingArray: 'RoleBindingArray',
|
|
51
|
+
RoleBindings: 'RoleBindings',
|
|
52
|
+
RoleBindingsFacet: 'RoleBindingsFacet',
|
|
53
|
+
RoleDict: 'RoleDict',
|
|
54
|
+
Roles: 'Roles',
|
|
55
|
+
RolesFacet: 'RolesFacet',
|
|
56
|
+
RunEvent: 'RunEvent',
|
|
57
|
+
RunEventBase: 'RunEventBase',
|
|
58
|
+
RunEventCounters: 'RunEventCounters',
|
|
59
|
+
RunEventKind: 'RunEventKind',
|
|
60
|
+
RunEventStepMetadata: 'RunEventStepMetadata',
|
|
61
|
+
RunEventUpdates: 'RunEventUpdates',
|
|
62
|
+
RunnableStrategy: 'RunnableStrategy',
|
|
63
|
+
RunnableStrategyContext: 'RunnableStrategyContext',
|
|
64
|
+
RunnableStrategyIdentity: 'RunnableStrategyIdentity',
|
|
65
|
+
RunnableStrategyStatus: 'RunnableStrategyStatus',
|
|
66
|
+
RunnableStrategyUpdate: 'RunnableStrategyUpdate',
|
|
67
|
+
ShellInputPotential: 'ShellInputPotential',
|
|
68
|
+
ShellMaterialized: 'ShellMaterialized',
|
|
69
|
+
ShellMaterializedBase: 'ShellMaterializedBase',
|
|
70
|
+
ShellMissing: 'ShellMissing',
|
|
71
|
+
ShellOutputPotential: 'ShellOutputPotential',
|
|
72
|
+
Step: 'Step',
|
|
73
|
+
StepArray: 'StepArray',
|
|
74
|
+
StepIdentity: 'StepIdentity',
|
|
75
|
+
StepKind: 'StepKind',
|
|
76
|
+
StepKindFacet: 'StepKindFacet',
|
|
77
|
+
StepsFacet: 'StepsFacet',
|
|
78
|
+
StrategyRun: 'StrategyRun',
|
|
79
|
+
StrategyRunIdentity: 'StrategyRunIdentity',
|
|
80
|
+
StrategyState: 'StrategyState',
|
|
81
|
+
StrategyStateDelta: 'StrategyStateDelta',
|
|
82
|
+
StrategyStateFacet: 'StrategyStateFacet',
|
|
83
|
+
StrategyThreadDict: 'StrategyThreadDict',
|
|
84
|
+
StrategyThreadDictFacet: 'StrategyThreadDictFacet',
|
|
85
|
+
StrategyThreadIdentity: 'StrategyThreadIdentity',
|
|
86
|
+
TickRunEvent: 'TickRunEvent',
|
|
87
|
+
Timestamp: 'Timestamp',
|
|
88
|
+
TimestampFacet: 'TimestampFacet',
|
|
89
|
+
Uri: 'Uri',
|
|
90
|
+
WhileStep: 'WhileStep',
|
|
91
|
+
WhileStepIdentity: 'WhileStepIdentity',
|
|
92
|
+
},
|
|
93
|
+
Enums: {
|
|
94
|
+
ResourceShellKind: {
|
|
95
|
+
missing: 'missing',
|
|
96
|
+
inputPotential: 'inputPotential',
|
|
97
|
+
outputPotential: 'outputPotential',
|
|
98
|
+
materialized: 'materialized',
|
|
99
|
+
},
|
|
100
|
+
RunEventKind: {
|
|
101
|
+
graph_start: 'graph_start',
|
|
102
|
+
tick: 'tick',
|
|
103
|
+
interrupt: 'interrupt',
|
|
104
|
+
graph_end: 'graph_end',
|
|
105
|
+
},
|
|
106
|
+
RunnableStrategyStatus: {
|
|
107
|
+
pending: 'pending',
|
|
108
|
+
running: 'running',
|
|
109
|
+
completed: 'completed',
|
|
110
|
+
failed: 'failed',
|
|
111
|
+
cancelled: 'cancelled',
|
|
112
|
+
},
|
|
113
|
+
StepKind: {
|
|
114
|
+
job: 'job',
|
|
115
|
+
branch: 'branch',
|
|
116
|
+
while: 'while',
|
|
117
|
+
for: 'for',
|
|
118
|
+
},
|
|
119
|
+
}
|
|
120
|
+
} as const;
|
|
121
|
+
|
|
122
|
+
export default CONSTANTS;
|