@toolproof-npm/schema 0.1.43 → 0.1.45
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/_lib/test.js +38 -31
- package/dist/genesis/generated/resources/Genesis.json +742 -452
- package/dist/genesis/generated/schemas/Genesis.json +442 -167
- package/dist/genesis/generated/schemas/Job.json +26 -26
- package/dist/genesis/generated/schemas/ResourceFormat.json +9 -9
- package/dist/genesis/generated/schemas/ResourceType.json +317 -42
- package/dist/genesis/generated/schemas/StatefulStrategy.json +76 -76
- package/dist/genesis/generated/schemas/StatelessStrategy.json +40 -40
- package/dist/{_lib → genesis/generated}/types/Resource_Job.d.ts +16 -16
- package/dist/{_lib → genesis/generated}/types/Resource_ResourceFormat.d.ts +10 -10
- package/dist/{_lib → genesis/generated}/types/Resource_ResourceType.d.ts +15 -15
- package/dist/{_lib → genesis/generated}/types/Resource_StatelessStrategy.d.ts +16 -16
- package/dist/{_lib → genesis/generated}/types/types.d.ts +289 -261
- package/dist/genesis/resourceTypes/Genesis.json +531 -251
- package/dist/index.d.ts +6 -6
- package/dist/index.js +2 -2
- package/dist/scripts/_lib/config.js +2 -2
- package/dist/scripts/brandFactories.d.ts +37 -23
- package/dist/scripts/brandFactories.js +26 -29
- package/dist/scripts/extractSchemas.js +1 -1
- package/dist/scripts/generateResourceEnvelopes.js +6 -6
- package/dist/scripts/generateTypes.js +38 -26
- package/dist/scripts/resolveRefsInGenesisStory.d.ts +1 -0
- package/dist/scripts/resolveRefsInGenesisStory.js +199 -0
- package/package.json +2 -1
- /package/dist/{_lib → genesis/generated}/types/Resource_Job.js +0 -0
- /package/dist/{_lib → genesis/generated}/types/Resource_ResourceFormat.js +0 -0
- /package/dist/{_lib → genesis/generated}/types/Resource_ResourceType.js +0 -0
- /package/dist/{_lib → genesis/generated}/types/Resource_StatelessStrategy.js +0 -0
- /package/dist/{_lib → genesis/generated}/types/types.js +0 -0
|
@@ -3,31 +3,31 @@ export type Resource_Job = ResourceMetaBase & {
|
|
|
3
3
|
extractedData: Job;
|
|
4
4
|
};
|
|
5
5
|
export type ResourceMetaBase = ResourceBase &
|
|
6
|
-
|
|
6
|
+
CreationContextWrapper &
|
|
7
7
|
ResourceKind & {
|
|
8
8
|
kind: "materialized";
|
|
9
9
|
} & Timestamp &
|
|
10
10
|
Path;
|
|
11
11
|
export type ResourceBase = {
|
|
12
12
|
identity: string;
|
|
13
|
-
|
|
13
|
+
resourceTypeRef: string;
|
|
14
14
|
};
|
|
15
15
|
export type Job = {
|
|
16
16
|
identity: string;
|
|
17
|
-
|
|
17
|
+
implementationUri: string;
|
|
18
18
|
} & Documented &
|
|
19
|
-
|
|
20
|
-
export type Documented =
|
|
19
|
+
RolesWrapper;
|
|
20
|
+
export type Documented = Named & Described;
|
|
21
21
|
export type ResourceRoleValue = {
|
|
22
|
-
|
|
22
|
+
resourceTypeRef: string;
|
|
23
23
|
} & Documented;
|
|
24
24
|
|
|
25
|
-
export interface
|
|
26
|
-
creationContext:
|
|
25
|
+
export interface CreationContextWrapper {
|
|
26
|
+
creationContext: CreationContext;
|
|
27
27
|
}
|
|
28
|
-
export interface
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
export interface CreationContext {
|
|
29
|
+
executionRef: string;
|
|
30
|
+
resourceRoleRef: string;
|
|
31
31
|
}
|
|
32
32
|
export interface ResourceKind {
|
|
33
33
|
kind: "missing" | "potential-input" | "potential-output" | "materialized";
|
|
@@ -38,16 +38,16 @@ export interface Timestamp {
|
|
|
38
38
|
export interface Path {
|
|
39
39
|
path: string;
|
|
40
40
|
}
|
|
41
|
-
export interface
|
|
41
|
+
export interface Named {
|
|
42
42
|
name: string;
|
|
43
43
|
}
|
|
44
|
-
export interface
|
|
44
|
+
export interface Described {
|
|
45
45
|
description: string;
|
|
46
46
|
}
|
|
47
|
-
export interface
|
|
48
|
-
roles:
|
|
47
|
+
export interface RolesWrapper {
|
|
48
|
+
roles: Roles;
|
|
49
49
|
}
|
|
50
|
-
export interface
|
|
50
|
+
export interface Roles {
|
|
51
51
|
inputMap: RoleMap;
|
|
52
52
|
outputMap: RoleMap;
|
|
53
53
|
}
|
|
@@ -3,26 +3,26 @@ export type Resource_ResourceFormat = ResourceMetaBase & {
|
|
|
3
3
|
extractedData: ResourceFormat;
|
|
4
4
|
};
|
|
5
5
|
export type ResourceMetaBase = ResourceBase &
|
|
6
|
-
|
|
6
|
+
CreationContextWrapper &
|
|
7
7
|
ResourceKind & {
|
|
8
8
|
kind: "materialized";
|
|
9
9
|
} & Timestamp &
|
|
10
10
|
Path;
|
|
11
11
|
export type ResourceBase = {
|
|
12
12
|
identity: string;
|
|
13
|
-
|
|
13
|
+
resourceTypeRef: string;
|
|
14
14
|
};
|
|
15
15
|
export type ResourceFormat = {
|
|
16
16
|
identity: string;
|
|
17
17
|
} & Documented;
|
|
18
|
-
export type Documented =
|
|
18
|
+
export type Documented = Named & Described;
|
|
19
19
|
|
|
20
|
-
export interface
|
|
21
|
-
creationContext:
|
|
20
|
+
export interface CreationContextWrapper {
|
|
21
|
+
creationContext: CreationContext;
|
|
22
22
|
}
|
|
23
|
-
export interface
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
export interface CreationContext {
|
|
24
|
+
executionRef: string;
|
|
25
|
+
resourceRoleRef: string;
|
|
26
26
|
}
|
|
27
27
|
export interface ResourceKind {
|
|
28
28
|
kind: "missing" | "potential-input" | "potential-output" | "materialized";
|
|
@@ -33,9 +33,9 @@ export interface Timestamp {
|
|
|
33
33
|
export interface Path {
|
|
34
34
|
path: string;
|
|
35
35
|
}
|
|
36
|
-
export interface
|
|
36
|
+
export interface Named {
|
|
37
37
|
name: string;
|
|
38
38
|
}
|
|
39
|
-
export interface
|
|
39
|
+
export interface Described {
|
|
40
40
|
description: string;
|
|
41
41
|
}
|
|
@@ -3,23 +3,23 @@ export type Resource_ResourceType = ResourceMetaBase & {
|
|
|
3
3
|
extractedData: ResourceType;
|
|
4
4
|
};
|
|
5
5
|
export type ResourceMetaBase = ResourceBase &
|
|
6
|
-
|
|
6
|
+
CreationContextWrapper &
|
|
7
7
|
ResourceKind & {
|
|
8
8
|
kind: "materialized";
|
|
9
9
|
} & Timestamp &
|
|
10
10
|
Path;
|
|
11
11
|
export type ResourceBase = {
|
|
12
12
|
identity: string;
|
|
13
|
-
|
|
13
|
+
resourceTypeRef: string;
|
|
14
14
|
};
|
|
15
15
|
export type ResourceType = {
|
|
16
16
|
identity: string;
|
|
17
|
-
|
|
17
|
+
resourceFormatRef: string;
|
|
18
18
|
} & Documented &
|
|
19
|
-
|
|
19
|
+
ExtractionSchemaWrapper & {
|
|
20
20
|
};
|
|
21
|
-
export type Documented =
|
|
22
|
-
export type
|
|
21
|
+
export type Documented = Named & Described;
|
|
22
|
+
export type ExtractionSchema = {
|
|
23
23
|
} & {
|
|
24
24
|
$schema: "https://json-schema.org/draft/2020-12/schema";
|
|
25
25
|
$defs?: {
|
|
@@ -35,12 +35,12 @@ export type ExtractionSchemaValue = {
|
|
|
35
35
|
$anchor: string;
|
|
36
36
|
};
|
|
37
37
|
|
|
38
|
-
export interface
|
|
39
|
-
creationContext:
|
|
38
|
+
export interface CreationContextWrapper {
|
|
39
|
+
creationContext: CreationContext;
|
|
40
40
|
}
|
|
41
|
-
export interface
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
export interface CreationContext {
|
|
42
|
+
executionRef: string;
|
|
43
|
+
resourceRoleRef: string;
|
|
44
44
|
}
|
|
45
45
|
export interface ResourceKind {
|
|
46
46
|
kind: "missing" | "potential-input" | "potential-output" | "materialized";
|
|
@@ -51,12 +51,12 @@ export interface Timestamp {
|
|
|
51
51
|
export interface Path {
|
|
52
52
|
path: string;
|
|
53
53
|
}
|
|
54
|
-
export interface
|
|
54
|
+
export interface Named {
|
|
55
55
|
name: string;
|
|
56
56
|
}
|
|
57
|
-
export interface
|
|
57
|
+
export interface Described {
|
|
58
58
|
description: string;
|
|
59
59
|
}
|
|
60
|
-
export interface
|
|
61
|
-
extractionSchema:
|
|
60
|
+
export interface ExtractionSchemaWrapper {
|
|
61
|
+
extractionSchema: ExtractionSchema;
|
|
62
62
|
}
|
|
@@ -3,14 +3,14 @@ export type Resource_StatelessStrategy = ResourceMetaBase & {
|
|
|
3
3
|
extractedData: StatelessStrategy;
|
|
4
4
|
};
|
|
5
5
|
export type ResourceMetaBase = ResourceBase &
|
|
6
|
-
|
|
6
|
+
CreationContextWrapper &
|
|
7
7
|
ResourceKind & {
|
|
8
8
|
kind: "materialized";
|
|
9
9
|
} & Timestamp &
|
|
10
10
|
Path;
|
|
11
11
|
export type ResourceBase = {
|
|
12
12
|
identity: string;
|
|
13
|
-
|
|
13
|
+
resourceTypeRef: string;
|
|
14
14
|
};
|
|
15
15
|
export type StatelessStrategy = {
|
|
16
16
|
identity: string;
|
|
@@ -24,33 +24,33 @@ export type WorkStep = StepKind & {
|
|
|
24
24
|
};
|
|
25
25
|
export type Execution = {
|
|
26
26
|
identity: string;
|
|
27
|
-
|
|
28
|
-
} &
|
|
27
|
+
jobRef: string;
|
|
28
|
+
} & RoleBindingsWrapper;
|
|
29
29
|
export type BranchStep = StepKind & {
|
|
30
30
|
/**
|
|
31
31
|
* @minItems 1
|
|
32
32
|
*/
|
|
33
|
-
cases: [
|
|
33
|
+
cases: [Conditional, ...Conditional[]];
|
|
34
34
|
identity: string;
|
|
35
35
|
kind: "branch";
|
|
36
36
|
};
|
|
37
37
|
export type WhileStep = StepKind & {
|
|
38
|
-
case:
|
|
38
|
+
case: Conditional;
|
|
39
39
|
identity: string;
|
|
40
40
|
kind: "while";
|
|
41
41
|
};
|
|
42
42
|
export type ForStep = StepKind & {
|
|
43
|
-
case:
|
|
43
|
+
case: Conditional;
|
|
44
44
|
identity: string;
|
|
45
45
|
kind: "for";
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
export interface
|
|
49
|
-
creationContext:
|
|
48
|
+
export interface CreationContextWrapper {
|
|
49
|
+
creationContext: CreationContext;
|
|
50
50
|
}
|
|
51
|
-
export interface
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
export interface CreationContext {
|
|
52
|
+
executionRef: string;
|
|
53
|
+
resourceRoleRef: string;
|
|
54
54
|
}
|
|
55
55
|
export interface ResourceKind {
|
|
56
56
|
kind: "missing" | "potential-input" | "potential-output" | "materialized";
|
|
@@ -64,17 +64,17 @@ export interface Path {
|
|
|
64
64
|
export interface StepKind {
|
|
65
65
|
kind: "work" | "branch" | "while" | "for";
|
|
66
66
|
}
|
|
67
|
-
export interface
|
|
68
|
-
roleBindings:
|
|
67
|
+
export interface RoleBindingsWrapper {
|
|
68
|
+
roleBindings: RoleBindings;
|
|
69
69
|
}
|
|
70
|
-
export interface
|
|
70
|
+
export interface RoleBindings {
|
|
71
71
|
inputBindingMap: RoleBindingMap;
|
|
72
72
|
outputBindingMap: RoleBindingMap;
|
|
73
73
|
}
|
|
74
74
|
export interface RoleBindingMap {
|
|
75
75
|
[k: string]: string;
|
|
76
76
|
}
|
|
77
|
-
export interface
|
|
77
|
+
export interface Conditional {
|
|
78
78
|
what: WorkStep;
|
|
79
79
|
when: WorkStep;
|
|
80
80
|
}
|