@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,121 @@
|
|
|
1
|
+
declare const CONSTANTS: {
|
|
2
|
+
readonly Names: {
|
|
3
|
+
readonly Boolean: "Boolean";
|
|
4
|
+
readonly BooleanIdentity: "BooleanIdentity";
|
|
5
|
+
readonly BranchStep: "BranchStep";
|
|
6
|
+
readonly BranchStepIdentity: "BranchStepIdentity";
|
|
7
|
+
readonly Conditional: "Conditional";
|
|
8
|
+
readonly CreationContext: "CreationContext";
|
|
9
|
+
readonly CreationContextFacet: "CreationContextFacet";
|
|
10
|
+
readonly Description: "Description";
|
|
11
|
+
readonly DescriptionFacet: "DescriptionFacet";
|
|
12
|
+
readonly DocumentationFacet: "DocumentationFacet";
|
|
13
|
+
readonly Error: "Error";
|
|
14
|
+
readonly ForStep: "ForStep";
|
|
15
|
+
readonly ForStepIdentity: "ForStepIdentity";
|
|
16
|
+
readonly Goal: "Goal";
|
|
17
|
+
readonly GoalIdentity: "GoalIdentity";
|
|
18
|
+
readonly GraphEndRunEvent: "GraphEndRunEvent";
|
|
19
|
+
readonly GraphStartRunEvent: "GraphStartRunEvent";
|
|
20
|
+
readonly InterruptRunEvent: "InterruptRunEvent";
|
|
21
|
+
readonly Job: "Job";
|
|
22
|
+
readonly JobIdentity: "JobIdentity";
|
|
23
|
+
readonly JobStep: "JobStep";
|
|
24
|
+
readonly JobStepIdentity: "JobStepIdentity";
|
|
25
|
+
readonly JobStepSocket: "JobStepSocket";
|
|
26
|
+
readonly JsonData: "JsonData";
|
|
27
|
+
readonly Name: "Name";
|
|
28
|
+
readonly NameFacet: "NameFacet";
|
|
29
|
+
readonly Natural: "Natural";
|
|
30
|
+
readonly NaturalIdentity: "NaturalIdentity";
|
|
31
|
+
readonly Nucleus: "Nucleus";
|
|
32
|
+
readonly NucleusFacet: "NucleusFacet";
|
|
33
|
+
readonly Path: "Path";
|
|
34
|
+
readonly PathFacet: "PathFacet";
|
|
35
|
+
readonly RawStrategy: "RawStrategy";
|
|
36
|
+
readonly Resource: "Resource";
|
|
37
|
+
readonly ResourceIdentity: "ResourceIdentity";
|
|
38
|
+
readonly ResourceInputPotential: "ResourceInputPotential";
|
|
39
|
+
readonly ResourceMissing: "ResourceMissing";
|
|
40
|
+
readonly ResourceOutputPotential: "ResourceOutputPotential";
|
|
41
|
+
readonly ResourcePotential: "ResourcePotential";
|
|
42
|
+
readonly ResourceRole: "ResourceRole";
|
|
43
|
+
readonly ResourceRoleIdentity: "ResourceRoleIdentity";
|
|
44
|
+
readonly ResourceRoleValue: "ResourceRoleValue";
|
|
45
|
+
readonly ResourceShellBase: "ResourceShellBase";
|
|
46
|
+
readonly ResourceShellKind: "ResourceShellKind";
|
|
47
|
+
readonly ResourceShellKindFacet: "ResourceShellKindFacet";
|
|
48
|
+
readonly ResourceType: "ResourceType";
|
|
49
|
+
readonly ResourceTypeIdentity: "ResourceTypeIdentity";
|
|
50
|
+
readonly RoleBindingArray: "RoleBindingArray";
|
|
51
|
+
readonly RoleBindings: "RoleBindings";
|
|
52
|
+
readonly RoleBindingsFacet: "RoleBindingsFacet";
|
|
53
|
+
readonly RoleDict: "RoleDict";
|
|
54
|
+
readonly Roles: "Roles";
|
|
55
|
+
readonly RolesFacet: "RolesFacet";
|
|
56
|
+
readonly RunEvent: "RunEvent";
|
|
57
|
+
readonly RunEventBase: "RunEventBase";
|
|
58
|
+
readonly RunEventCounters: "RunEventCounters";
|
|
59
|
+
readonly RunEventKind: "RunEventKind";
|
|
60
|
+
readonly RunEventStepMetadata: "RunEventStepMetadata";
|
|
61
|
+
readonly RunEventUpdates: "RunEventUpdates";
|
|
62
|
+
readonly RunnableStrategy: "RunnableStrategy";
|
|
63
|
+
readonly RunnableStrategyContext: "RunnableStrategyContext";
|
|
64
|
+
readonly RunnableStrategyIdentity: "RunnableStrategyIdentity";
|
|
65
|
+
readonly RunnableStrategyStatus: "RunnableStrategyStatus";
|
|
66
|
+
readonly RunnableStrategyUpdate: "RunnableStrategyUpdate";
|
|
67
|
+
readonly ShellInputPotential: "ShellInputPotential";
|
|
68
|
+
readonly ShellMaterialized: "ShellMaterialized";
|
|
69
|
+
readonly ShellMaterializedBase: "ShellMaterializedBase";
|
|
70
|
+
readonly ShellMissing: "ShellMissing";
|
|
71
|
+
readonly ShellOutputPotential: "ShellOutputPotential";
|
|
72
|
+
readonly Step: "Step";
|
|
73
|
+
readonly StepArray: "StepArray";
|
|
74
|
+
readonly StepIdentity: "StepIdentity";
|
|
75
|
+
readonly StepKind: "StepKind";
|
|
76
|
+
readonly StepKindFacet: "StepKindFacet";
|
|
77
|
+
readonly StepsFacet: "StepsFacet";
|
|
78
|
+
readonly StrategyRun: "StrategyRun";
|
|
79
|
+
readonly StrategyRunIdentity: "StrategyRunIdentity";
|
|
80
|
+
readonly StrategyState: "StrategyState";
|
|
81
|
+
readonly StrategyStateDelta: "StrategyStateDelta";
|
|
82
|
+
readonly StrategyStateFacet: "StrategyStateFacet";
|
|
83
|
+
readonly StrategyThreadDict: "StrategyThreadDict";
|
|
84
|
+
readonly StrategyThreadDictFacet: "StrategyThreadDictFacet";
|
|
85
|
+
readonly StrategyThreadIdentity: "StrategyThreadIdentity";
|
|
86
|
+
readonly TickRunEvent: "TickRunEvent";
|
|
87
|
+
readonly Timestamp: "Timestamp";
|
|
88
|
+
readonly TimestampFacet: "TimestampFacet";
|
|
89
|
+
readonly Uri: "Uri";
|
|
90
|
+
readonly WhileStep: "WhileStep";
|
|
91
|
+
readonly WhileStepIdentity: "WhileStepIdentity";
|
|
92
|
+
};
|
|
93
|
+
readonly Enums: {
|
|
94
|
+
readonly ResourceShellKind: {
|
|
95
|
+
readonly missing: "missing";
|
|
96
|
+
readonly inputPotential: "inputPotential";
|
|
97
|
+
readonly outputPotential: "outputPotential";
|
|
98
|
+
readonly materialized: "materialized";
|
|
99
|
+
};
|
|
100
|
+
readonly RunEventKind: {
|
|
101
|
+
readonly graph_start: "graph_start";
|
|
102
|
+
readonly tick: "tick";
|
|
103
|
+
readonly interrupt: "interrupt";
|
|
104
|
+
readonly graph_end: "graph_end";
|
|
105
|
+
};
|
|
106
|
+
readonly RunnableStrategyStatus: {
|
|
107
|
+
readonly pending: "pending";
|
|
108
|
+
readonly running: "running";
|
|
109
|
+
readonly completed: "completed";
|
|
110
|
+
readonly failed: "failed";
|
|
111
|
+
readonly cancelled: "cancelled";
|
|
112
|
+
};
|
|
113
|
+
readonly StepKind: {
|
|
114
|
+
readonly job: "job";
|
|
115
|
+
readonly branch: "branch";
|
|
116
|
+
readonly while: "while";
|
|
117
|
+
readonly for: "for";
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
export default CONSTANTS;
|
|
@@ -0,0 +1,121 @@
|
|
|
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
|
+
};
|
|
121
|
+
export default CONSTANTS;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const MAPPINGS: {
|
|
2
|
+
readonly IdentityNameToIdentityPrefix: {
|
|
3
|
+
readonly BranchStepIdentity: "BRANCH_STEP-";
|
|
4
|
+
readonly ForStepIdentity: "FOR_STEP-";
|
|
5
|
+
readonly GoalIdentity: "GOAL-";
|
|
6
|
+
readonly JobIdentity: "JOB-";
|
|
7
|
+
readonly JobStepIdentity: "JOB_STEP-";
|
|
8
|
+
readonly ResourceIdentity: "RESOURCE-";
|
|
9
|
+
readonly ResourceRoleIdentity: "ROLE-";
|
|
10
|
+
readonly ResourceTypeIdentity: "TYPE-";
|
|
11
|
+
readonly RunnableStrategyIdentity: "RUNNABLE_STRATEGY-";
|
|
12
|
+
readonly StrategyRunIdentity: "STRATEGY_RUN-";
|
|
13
|
+
readonly StrategyThreadIdentity: "STRATEGY_THREAD-";
|
|
14
|
+
readonly WhileStepIdentity: "WHILE_STEP-";
|
|
15
|
+
};
|
|
16
|
+
readonly StepKindToStepIdentityPrefix: {
|
|
17
|
+
readonly branch: "BRANCH_STEP-";
|
|
18
|
+
readonly for: "FOR_STEP-";
|
|
19
|
+
readonly job: "JOB_STEP-";
|
|
20
|
+
readonly while: "WHILE_STEP-";
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export default MAPPINGS;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const MAPPINGS = {
|
|
2
|
+
IdentityNameToIdentityPrefix: {
|
|
3
|
+
BranchStepIdentity: 'BRANCH_STEP-',
|
|
4
|
+
ForStepIdentity: 'FOR_STEP-',
|
|
5
|
+
GoalIdentity: 'GOAL-',
|
|
6
|
+
JobIdentity: 'JOB-',
|
|
7
|
+
JobStepIdentity: 'JOB_STEP-',
|
|
8
|
+
ResourceIdentity: 'RESOURCE-',
|
|
9
|
+
ResourceRoleIdentity: 'ROLE-',
|
|
10
|
+
ResourceTypeIdentity: 'TYPE-',
|
|
11
|
+
RunnableStrategyIdentity: 'RUNNABLE_STRATEGY-',
|
|
12
|
+
StrategyRunIdentity: 'STRATEGY_RUN-',
|
|
13
|
+
StrategyThreadIdentity: 'STRATEGY_THREAD-',
|
|
14
|
+
WhileStepIdentity: 'WHILE_STEP-',
|
|
15
|
+
},
|
|
16
|
+
StepKindToStepIdentityPrefix: {
|
|
17
|
+
branch: 'BRANCH_STEP-',
|
|
18
|
+
for: 'FOR_STEP-',
|
|
19
|
+
job: 'JOB_STEP-',
|
|
20
|
+
while: 'WHILE_STEP-',
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
export default MAPPINGS;
|