@toolproof-npm/schema 0.1.72 → 0.1.74
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/README.md +59 -59
- package/dist/genesis/generated/dependencies_ordered.json +14 -7
- package/dist/genesis/generated/resourceTypes/Genesis.json +68 -41
- package/dist/genesis/generated/resources/Genesis.json +88 -41
- package/dist/genesis/generated/schemas/Genesis.json +56 -41
- package/dist/genesis/generated/schemas/StatefulStrategy.json +199 -193
- package/dist/genesis/generated/schemas/StrategyRun.json +199 -193
- package/dist/genesis/generated/types/ResourceTypeGenesis.d.ts +2 -0
- package/dist/genesis/generated/types/types.d.ts +136 -110
- package/dist/index.d.ts +4 -2
- package/package.json +59 -59
|
@@ -84,6 +84,79 @@ export type Error =
|
|
|
84
84
|
details?: {
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
|
+
/**
|
|
88
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
89
|
+
* via the `definition` "ResourceMissing".
|
|
90
|
+
*/
|
|
91
|
+
export type ResourceMissing =
|
|
92
|
+
{
|
|
93
|
+
} & ResourceBase &
|
|
94
|
+
ResourceKind & {
|
|
95
|
+
kind: "missing";
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
99
|
+
* via the `definition` "ResourceTypeIdentity".
|
|
100
|
+
*/
|
|
101
|
+
export type ResourceTypeIdentity =
|
|
102
|
+
`TYPE-${string}`;
|
|
103
|
+
/**
|
|
104
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
105
|
+
* via the `definition` "ResourcePotentialInput".
|
|
106
|
+
*/
|
|
107
|
+
export type ResourcePotentialInput =
|
|
108
|
+
{
|
|
109
|
+
} & ResourceBase &
|
|
110
|
+
CreationContextWrapper &
|
|
111
|
+
ResourceKind & {
|
|
112
|
+
kind: "potential-input";
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
116
|
+
* via the `definition` "ResourcePotentialOutput".
|
|
117
|
+
*/
|
|
118
|
+
export type ResourcePotentialOutput =
|
|
119
|
+
{
|
|
120
|
+
} & ResourceBase &
|
|
121
|
+
CreationContextWrapper &
|
|
122
|
+
ResourceKind & {
|
|
123
|
+
kind: "potential-output";
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
127
|
+
* via the `definition` "Resource".
|
|
128
|
+
*/
|
|
129
|
+
export type Resource =
|
|
130
|
+
{
|
|
131
|
+
} & ResourceMetaBase & {
|
|
132
|
+
extractedData: {
|
|
133
|
+
[k: string]: JsonData;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
138
|
+
* via the `definition` "ResourceMetaBase".
|
|
139
|
+
*/
|
|
140
|
+
export type ResourceMetaBase =
|
|
141
|
+
ResourceBase &
|
|
142
|
+
CreationContextWrapper &
|
|
143
|
+
ResourceKind & {
|
|
144
|
+
kind: "materialized";
|
|
145
|
+
} & Timestamp &
|
|
146
|
+
Path;
|
|
147
|
+
/**
|
|
148
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
149
|
+
* via the `definition` "JsonData".
|
|
150
|
+
*/
|
|
151
|
+
export type JsonData =
|
|
152
|
+
| null
|
|
153
|
+
| boolean
|
|
154
|
+
| number
|
|
155
|
+
| string
|
|
156
|
+
| JsonData
|
|
157
|
+
| {
|
|
158
|
+
[k: string]: JsonData;
|
|
159
|
+
};
|
|
87
160
|
/**
|
|
88
161
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
89
162
|
* via the `definition` "ExtractionSchema".
|
|
@@ -158,25 +231,6 @@ export type ResourceRoleValue =
|
|
|
158
231
|
{
|
|
159
232
|
resourceTypeRef: ResourceTypeIdentity;
|
|
160
233
|
} & Documented;
|
|
161
|
-
/**
|
|
162
|
-
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
163
|
-
* via the `definition` "ResourceTypeIdentity".
|
|
164
|
-
*/
|
|
165
|
-
export type ResourceTypeIdentity =
|
|
166
|
-
`TYPE-${string}`;
|
|
167
|
-
/**
|
|
168
|
-
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
169
|
-
* via the `definition` "JsonData".
|
|
170
|
-
*/
|
|
171
|
-
export type JsonData =
|
|
172
|
-
| null
|
|
173
|
-
| boolean
|
|
174
|
-
| number
|
|
175
|
-
| string
|
|
176
|
-
| JsonData
|
|
177
|
-
| {
|
|
178
|
-
[k: string]: JsonData;
|
|
179
|
-
};
|
|
180
234
|
/**
|
|
181
235
|
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
182
236
|
* via the `patternProperty` "^[A-Za-z][A-Za-z0-9._-]*Merit$".
|
|
@@ -211,28 +265,6 @@ export type MeritSchema1 =
|
|
|
211
265
|
*/
|
|
212
266
|
enum: [number, ...number[]];
|
|
213
267
|
};
|
|
214
|
-
/**
|
|
215
|
-
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
216
|
-
* via the `definition` "Resource".
|
|
217
|
-
*/
|
|
218
|
-
export type Resource =
|
|
219
|
-
{
|
|
220
|
-
} & ResourceMetaBase & {
|
|
221
|
-
extractedData: {
|
|
222
|
-
[k: string]: JsonData;
|
|
223
|
-
};
|
|
224
|
-
};
|
|
225
|
-
/**
|
|
226
|
-
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
227
|
-
* via the `definition` "ResourceMetaBase".
|
|
228
|
-
*/
|
|
229
|
-
export type ResourceMetaBase =
|
|
230
|
-
ResourceBase &
|
|
231
|
-
CreationContextWrapper &
|
|
232
|
-
ResourceKind & {
|
|
233
|
-
kind: "materialized";
|
|
234
|
-
} & Timestamp &
|
|
235
|
-
Path;
|
|
236
268
|
/**
|
|
237
269
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
238
270
|
* via the `definition` "ResourceFormat".
|
|
@@ -259,38 +291,6 @@ export type ResourceMetaBase1 =
|
|
|
259
291
|
kind: "materialized";
|
|
260
292
|
} & Timestamp &
|
|
261
293
|
Path;
|
|
262
|
-
/**
|
|
263
|
-
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
264
|
-
* via the `definition` "ResourceMissing".
|
|
265
|
-
*/
|
|
266
|
-
export type ResourceMissing =
|
|
267
|
-
{
|
|
268
|
-
} & ResourceBase &
|
|
269
|
-
ResourceKind & {
|
|
270
|
-
kind: "missing";
|
|
271
|
-
};
|
|
272
|
-
/**
|
|
273
|
-
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
274
|
-
* via the `definition` "ResourcePotentialInput".
|
|
275
|
-
*/
|
|
276
|
-
export type ResourcePotentialInput =
|
|
277
|
-
{
|
|
278
|
-
} & ResourceBase &
|
|
279
|
-
CreationContextWrapper &
|
|
280
|
-
ResourceKind & {
|
|
281
|
-
kind: "potential-input";
|
|
282
|
-
};
|
|
283
|
-
/**
|
|
284
|
-
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
285
|
-
* via the `definition` "ResourcePotentialOutput".
|
|
286
|
-
*/
|
|
287
|
-
export type ResourcePotentialOutput =
|
|
288
|
-
{
|
|
289
|
-
} & ResourceBase &
|
|
290
|
-
CreationContextWrapper &
|
|
291
|
-
ResourceKind & {
|
|
292
|
-
kind: "potential-output";
|
|
293
|
-
};
|
|
294
294
|
/**
|
|
295
295
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
296
296
|
* via the `definition` "ResourceType".
|
|
@@ -444,6 +444,49 @@ export interface Described {
|
|
|
444
444
|
export interface Named {
|
|
445
445
|
name: string;
|
|
446
446
|
}
|
|
447
|
+
/**
|
|
448
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
449
|
+
* via the `definition` "ExecutionSocket".
|
|
450
|
+
*/
|
|
451
|
+
export interface ExecutionSocket {
|
|
452
|
+
[k: string]: ResourceMissing | ResourcePotentialInput | ResourcePotentialOutput | Resource;
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
456
|
+
* via the `definition` "ResourceBase".
|
|
457
|
+
*/
|
|
458
|
+
export interface ResourceBase {
|
|
459
|
+
identity: ResourceIdentity;
|
|
460
|
+
resourceTypeRef: ResourceTypeIdentity;
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
464
|
+
* via the `definition` "ResourceKind".
|
|
465
|
+
*/
|
|
466
|
+
export interface ResourceKind {
|
|
467
|
+
kind: "missing" | "potential-input" | "potential-output" | "materialized";
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
471
|
+
* via the `definition` "Timestamp".
|
|
472
|
+
*/
|
|
473
|
+
export interface Timestamp {
|
|
474
|
+
timestamp: string;
|
|
475
|
+
}
|
|
476
|
+
/**
|
|
477
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
478
|
+
* via the `definition` "Path".
|
|
479
|
+
*/
|
|
480
|
+
export interface Path {
|
|
481
|
+
path: string;
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
485
|
+
* via the `definition` "ExecutionSocketMaterialized".
|
|
486
|
+
*/
|
|
487
|
+
export interface ExecutionSocketMaterialized {
|
|
488
|
+
[k: string]: Resource;
|
|
489
|
+
}
|
|
447
490
|
/**
|
|
448
491
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
449
492
|
* via the `definition` "ExtractionSchemaWrapper".
|
|
@@ -515,35 +558,6 @@ export interface MeritProp {
|
|
|
515
558
|
export interface MeritSchemaRef {
|
|
516
559
|
$ref: string;
|
|
517
560
|
}
|
|
518
|
-
/**
|
|
519
|
-
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
520
|
-
* via the `definition` "Path".
|
|
521
|
-
*/
|
|
522
|
-
export interface Path {
|
|
523
|
-
path: string;
|
|
524
|
-
}
|
|
525
|
-
/**
|
|
526
|
-
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
527
|
-
* via the `definition` "ResourceBase".
|
|
528
|
-
*/
|
|
529
|
-
export interface ResourceBase {
|
|
530
|
-
identity: ResourceIdentity;
|
|
531
|
-
resourceTypeRef: ResourceTypeIdentity;
|
|
532
|
-
}
|
|
533
|
-
/**
|
|
534
|
-
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
535
|
-
* via the `definition` "ResourceKind".
|
|
536
|
-
*/
|
|
537
|
-
export interface ResourceKind {
|
|
538
|
-
kind: "missing" | "potential-input" | "potential-output" | "materialized";
|
|
539
|
-
}
|
|
540
|
-
/**
|
|
541
|
-
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
542
|
-
* via the `definition` "Timestamp".
|
|
543
|
-
*/
|
|
544
|
-
export interface Timestamp {
|
|
545
|
-
timestamp: string;
|
|
546
|
-
}
|
|
547
561
|
/**
|
|
548
562
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
549
563
|
* via the `definition` "RoleBindingsWrapper".
|
|
@@ -577,7 +591,9 @@ export interface StrategyStateWrapper {
|
|
|
577
591
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
578
592
|
* via the `definition` "StrategyState".
|
|
579
593
|
*/
|
|
580
|
-
export
|
|
594
|
+
export interface StrategyState {
|
|
595
|
+
[k: string]: ExecutionSocket;
|
|
596
|
+
}
|
|
581
597
|
/**
|
|
582
598
|
* This interface was referenced by `GenesisJson`'s JSON-Schema
|
|
583
599
|
* via the `definition` "StrategyRunContext".
|
|
@@ -607,11 +623,11 @@ export interface StrategyStateWrapper1 {
|
|
|
607
623
|
export interface StrategyRunUpdate {
|
|
608
624
|
strategyRun?: StrategyRun1;
|
|
609
625
|
strategyRunRef: StrategyRunIdentity;
|
|
610
|
-
strategyStateUpdate:
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
626
|
+
strategyStateUpdate: {
|
|
627
|
+
[k: string]: ExecutionSocketMaterialized;
|
|
628
|
+
};
|
|
629
|
+
strategyStateUpdate2?: {
|
|
630
|
+
[k: string]: ExecutionSocket;
|
|
615
631
|
};
|
|
616
632
|
}
|
|
617
633
|
/**
|
|
@@ -844,7 +860,12 @@ export interface Conditional {
|
|
|
844
860
|
export interface StrategyStateWrapper {
|
|
845
861
|
strategyState: StrategyState;
|
|
846
862
|
}
|
|
847
|
-
export
|
|
863
|
+
export interface StrategyState {
|
|
864
|
+
[k: string]: ExecutionSocket;
|
|
865
|
+
}
|
|
866
|
+
export interface ExecutionSocket {
|
|
867
|
+
[k: string]: ResourceMissing | ResourcePotentialInput | ResourcePotentialOutput | Resource;
|
|
868
|
+
}
|
|
848
869
|
export interface ResourceBase {
|
|
849
870
|
identity: ResourceIdentity;
|
|
850
871
|
resourceTypeRef: ResourceTypeIdentity;
|
|
@@ -1163,7 +1184,12 @@ export interface Conditional {
|
|
|
1163
1184
|
export interface StrategyStateWrapper {
|
|
1164
1185
|
strategyState: StrategyState;
|
|
1165
1186
|
}
|
|
1166
|
-
export
|
|
1187
|
+
export interface StrategyState {
|
|
1188
|
+
[k: string]: ExecutionSocket;
|
|
1189
|
+
}
|
|
1190
|
+
export interface ExecutionSocket {
|
|
1191
|
+
[k: string]: ResourceMissing | ResourcePotentialInput | ResourcePotentialOutput | Resource;
|
|
1192
|
+
}
|
|
1167
1193
|
export interface ResourceBase {
|
|
1168
1194
|
identity: ResourceIdentity;
|
|
1169
1195
|
resourceTypeRef: ResourceTypeIdentity;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { WorkStepIdentity, BranchStepIdentity, ForStepIdentity, WhileStepIdentity } from './scripts/brandFactories.js';
|
|
1
2
|
export { default as SchemaGenesis } from './genesis/generated/schemas/Genesis.js';
|
|
2
3
|
export { default as SchemaJob } from './genesis/generated/schemas/Job.js';
|
|
3
4
|
export { default as ResourceTypeGenesis } from './genesis/generated/resource-type-envelopes/Genesis.js';
|
|
@@ -10,6 +11,7 @@ export type { Resource_Job as Resource_JobJson } from './genesis/generated/types
|
|
|
10
11
|
export type { Resource_StatelessStrategy as Resource_StatelessStrategyJson } from './genesis/generated/types/Resource_StatelessStrategy.js';
|
|
11
12
|
export type { Resource_StatefulStrategy as Resource_StatefulStrategyJson } from './genesis/generated/types/Resource_StatefulStrategy.js';
|
|
12
13
|
export type { Resource_StrategyRun as Resource_StrategyRunJson } from './genesis/generated/types/Resource_StrategyRun.js';
|
|
13
|
-
export type
|
|
14
|
-
|
|
14
|
+
export type StepIdentityJson = WorkStepIdentity | BranchStepIdentity | WhileStepIdentity | ForStepIdentity;
|
|
15
|
+
export type { Documented as DocumentedJson, ResourceFormatIdentity as ResourceFormatIdentityJson, ResourceFormat as ResourceFormatJson, ExtractionSchema as ExtractionSchemaJson, IdentityProp as IdentityPropJson, MeritProp as MeritPropJson, ResourceTypeIdentity as ResourceTypeIdentityJson, ResourceType as ResourceTypeJson, ResourceRoleIdentity as ResourceRoleIdentityJson, ResourceRoleValue as ResourceRoleValueJson, ExecutionIdentity as ExecutionIdentityJson, Execution as ExecutionJson, Conditional as ConditionalJson, RoleMap as RoleMapJson, Roles as RolesJson, RoleBindingMap as RoleBindingMapJson, RoleBindings as RoleBindingsJson, ResourceIdentity as ResourceIdentityJson, WorkStepIdentity as WorkStepIdentityJson, BranchStepIdentity as BranchStepIdentityJson, WhileStepIdentity as WhileStepIdentityJson, ForStepIdentity as ForStepIdentityJson, WorkStep as WorkStepJson, BranchStep as BranchStepJson, WhileStep as WhileStepJson, ForStep as ForStepJson, StepKind as StepKindJson, Step as StepJson, CreationContext as CreationContextJson, ResourceMissing as ResourceMissingJson, ResourcePotentialInput as ResourcePotentialInputJson, ResourcePotentialOutput as ResourcePotentialOutputJson, ResourceMetaBase as ResourceMetaJson, // ATTENTION: type not generated for ResourceMeta
|
|
16
|
+
Resource as ResourceJson, StrategyState as StrategyStateJson, StatelessStrategyIdentity as StatelessStrategyIdentityJson, StatelessStrategy as StatelessStrategyJson, StatefulStrategyIdentity as StatefulStrategyIdentityJson, StatefulStrategy as StatefulStrategyJson, StrategyRunIdentity as StrategyRunIdentityJson, StrategyRunStatus as StrategyRunStatusJson, StrategyRun as StrategyRunJson, StrategyRunUpdate as StrategyRunUpdateJson, JobIdentity as JobIdentityJson, Job as JobJson, JsonData as JsonDataJson, StrategyThreadIdentity as StrategyThreadIdentityJson, StrategyThreadMap as StrategyThreadMapJson, ExecutionSocket as ExecutionSocketJson, ExecutionSocketMaterialized as ExecutionSocketMaterializedJson, Timestamp as TimestampJson, } from './genesis/generated/types/types.js';
|
|
15
17
|
export { unsafeBrand, asResourceTypeIdentity, asResourceRoleIdentity, asExecutionIdentity, asResourceIdentity, asWorkStepIdentity, asBranchStepIdentity, asForStepIdentity, asResourceFormatIdentity, asWhileStepIdentity, asStatelessStrategyIdentity, asStatefulStrategyIdentity, asResourceTypeIdentities, asResourceRoleIdentities, asExecutionIdentities, asResourceIdentities, asWorkStepIdentities, asBranchStepIdentities, asForStepIdentities, asResourceFormatIdentities, asWhileStepIdentities, asStatelessStrategyIdentities, asStatefulStrategyIdentities, } from './scripts/brandFactories.js';
|
package/package.json
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"scripts": {
|
|
32
|
-
"build": "tsc -b",
|
|
33
|
-
"build:scripts": "tsc -p tsconfig.scripts.json",
|
|
34
|
-
"rewriteAnchors": "node ./dist/scripts/rewriteAnchors.js",
|
|
35
|
-
"extractSchemas": "node ./dist/scripts/extractSchemas.js",
|
|
36
|
-
"extractSubschema": "node ./dist/scripts/extractSubschemaWithDefs.js",
|
|
37
|
-
"resolveRefsInGenesisStory": "pnpm run build:scripts && node ./dist/scripts/resolveRefsInGenesisStory.js",
|
|
38
|
-
"generateTypes": "node ./dist/scripts/generateTypes.js",
|
|
39
|
-
"generateResourceTypeGenesisType": "node ./dist/scripts/generateResourceTypeGenesisType.js",
|
|
40
|
-
"generateResourceTypeType": "node ./dist/scripts/generateResourceTypeType.js",
|
|
41
|
-
"generateResourceEnvelopes": "node ./dist/scripts/generateResourceEnvelopes.js",
|
|
42
|
-
"generateSchemaShims": "node ./dist/scripts/generateSchemaShims.js",
|
|
43
|
-
"generateDependencies": "node ./dist/scripts/generateDependencies.js",
|
|
44
|
-
"generateDependenciesOrdered": "node ./dist/scripts/generateDependenciesOrdered.js",
|
|
45
|
-
"generateTerminals": "node ./dist/scripts/generateTerminals.js",
|
|
46
|
-
"update": "rimraf /s /q dist && pnpm run build:scripts && pnpm run rewriteAnchors && pnpm run generateResourceEnvelopes && pnpm run extractSchemas && pnpm run extractSubschema -- --name Job && pnpm run extractSubschema -- --name ResourceFormat && pnpm run extractSubschema -- --name ResourceType && pnpm run extractSubschema -- --name StatelessStrategy && pnpm run extractSubschema -- --name StatefulStrategy && pnpm run extractSubschema -- --name StrategyRun && pnpm run generateSchemaShims && pnpm run generateTypes && pnpm run generateResourceTypeType -- --name Job && pnpm run generateResourceTypeType -- --name ResourceFormat && pnpm run generateResourceTypeType -- --name ResourceType && pnpm run generateResourceTypeType -- --name StatelessStrategy && pnpm run generateResourceTypeType -- --name StatefulStrategy && pnpm run generateResourceTypeType -- --name StrategyRun && pnpm run generateResourceTypeGenesisType && pnpm run build && pnpm run generateDependencies && pnpm run generateDependenciesOrdered && pnpm run generateTerminals"
|
|
47
|
-
},
|
|
48
|
-
"files": [
|
|
49
|
-
"dist",
|
|
50
|
-
"README.md"
|
|
51
|
-
],
|
|
52
|
-
"devDependencies": {
|
|
53
|
-
"@apidevtools/json-schema-ref-parser": "^14.2.1",
|
|
54
|
-
"@types/node": "^20.8.1",
|
|
55
|
-
"ajv-cli": "^5.0.0",
|
|
56
|
-
"ajv-formats": "^3.0.1",
|
|
57
|
-
"json-schema-to-typescript": "^15.0.4",
|
|
58
|
-
"rimraf": "^5.0.0",
|
|
59
|
-
"typescript": "^5.0.0"
|
|
2
|
+
"name": "@toolproof-npm/schema",
|
|
3
|
+
"version": "0.1.74",
|
|
4
|
+
"description": "JSON schemas and TypeScript types for ToolProof",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"toolproof",
|
|
7
|
+
"schemas",
|
|
8
|
+
"json-schema",
|
|
9
|
+
"typescript"
|
|
10
|
+
],
|
|
11
|
+
"author": "ToolProof Team",
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/ToolProof/core.git",
|
|
16
|
+
"directory": "packages/_schemas"
|
|
17
|
+
},
|
|
18
|
+
"homepage": "https://github.com/ToolProof/core#readme",
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/ToolProof/core/issues"
|
|
21
|
+
},
|
|
22
|
+
"type": "module",
|
|
23
|
+
"main": "dist/index.js",
|
|
24
|
+
"types": "dist/index.d.ts",
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"import": "./dist/index.js",
|
|
28
|
+
"types": "./dist/index.d.ts"
|
|
60
29
|
}
|
|
61
|
-
}
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"dist",
|
|
33
|
+
"README.md"
|
|
34
|
+
],
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@apidevtools/json-schema-ref-parser": "^14.2.1",
|
|
37
|
+
"@types/node": "^20.8.1",
|
|
38
|
+
"ajv-cli": "^5.0.0",
|
|
39
|
+
"ajv-formats": "^3.0.1",
|
|
40
|
+
"json-schema-to-typescript": "^15.0.4",
|
|
41
|
+
"rimraf": "^5.0.0",
|
|
42
|
+
"typescript": "^5.0.0"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "tsc -b",
|
|
46
|
+
"build:scripts": "tsc -p tsconfig.scripts.json",
|
|
47
|
+
"rewriteAnchors": "node ./dist/scripts/rewriteAnchors.js",
|
|
48
|
+
"extractSchemas": "node ./dist/scripts/extractSchemas.js",
|
|
49
|
+
"extractSubschema": "node ./dist/scripts/extractSubschemaWithDefs.js",
|
|
50
|
+
"resolveRefsInGenesisStory": "pnpm run build:scripts && node ./dist/scripts/resolveRefsInGenesisStory.js",
|
|
51
|
+
"generateTypes": "node ./dist/scripts/generateTypes.js",
|
|
52
|
+
"generateResourceTypeGenesisType": "node ./dist/scripts/generateResourceTypeGenesisType.js",
|
|
53
|
+
"generateResourceTypeType": "node ./dist/scripts/generateResourceTypeType.js",
|
|
54
|
+
"generateResourceEnvelopes": "node ./dist/scripts/generateResourceEnvelopes.js",
|
|
55
|
+
"generateSchemaShims": "node ./dist/scripts/generateSchemaShims.js",
|
|
56
|
+
"generateDependencies": "node ./dist/scripts/generateDependencies.js",
|
|
57
|
+
"generateDependenciesOrdered": "node ./dist/scripts/generateDependenciesOrdered.js",
|
|
58
|
+
"generateTerminals": "node ./dist/scripts/generateTerminals.js",
|
|
59
|
+
"update": "rimraf /s /q dist && pnpm run build:scripts && pnpm run rewriteAnchors && pnpm run generateResourceEnvelopes && pnpm run extractSchemas && pnpm run extractSubschema -- --name Job && pnpm run extractSubschema -- --name ResourceFormat && pnpm run extractSubschema -- --name ResourceType && pnpm run extractSubschema -- --name StatelessStrategy && pnpm run extractSubschema -- --name StatefulStrategy && pnpm run extractSubschema -- --name StrategyRun && pnpm run generateSchemaShims && pnpm run generateTypes && pnpm run generateResourceTypeType -- --name Job && pnpm run generateResourceTypeType -- --name ResourceFormat && pnpm run generateResourceTypeType -- --name ResourceType && pnpm run generateResourceTypeType -- --name StatelessStrategy && pnpm run generateResourceTypeType -- --name StatefulStrategy && pnpm run generateResourceTypeType -- --name StrategyRun && pnpm run generateResourceTypeGenesisType && pnpm run build && pnpm run generateDependencies && pnpm run generateDependenciesOrdered && pnpm run generateTerminals"
|
|
60
|
+
}
|
|
61
|
+
}
|