codify-schemas 1.0.58 → 1.0.59
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/package.json
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"description": "The resource name",
|
|
36
36
|
"type": ["string", "null"]
|
|
37
37
|
},
|
|
38
|
-
"
|
|
38
|
+
"isStateful": {
|
|
39
39
|
"description": "Boolean value indicating if this plan was stateful",
|
|
40
40
|
"type": "boolean"
|
|
41
41
|
},
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
|
-
"required": ["operation", "resourceType", "parameters", "
|
|
78
|
+
"required": ["operation", "resourceType", "parameters", "isStateful"]
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
"required": ["plan"],
|
|
@@ -30,7 +30,7 @@ describe('Apply request data schema', () => {
|
|
|
30
30
|
plan: {
|
|
31
31
|
operation: ResourceOperation.CREATE,
|
|
32
32
|
resourceType: 'type1',
|
|
33
|
-
|
|
33
|
+
isStateful: true,
|
|
34
34
|
parameters: [{
|
|
35
35
|
name: 'parameter1',
|
|
36
36
|
operation: ParameterOperation.ADD,
|
|
@@ -47,7 +47,7 @@ describe('Apply request data schema', () => {
|
|
|
47
47
|
plan: {
|
|
48
48
|
operation: ResourceOperation.CREATE,
|
|
49
49
|
resourceType: 'type1',
|
|
50
|
-
|
|
50
|
+
isStateful: false,
|
|
51
51
|
parameters: [{
|
|
52
52
|
name: 'parameter1',
|
|
53
53
|
operation: ParameterOperation.NOOP,
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"type": "string",
|
|
15
15
|
"enum" : ["create", "destroy", "modify", "recreate", "noop"]
|
|
16
16
|
},
|
|
17
|
-
"
|
|
17
|
+
"isStateful": {
|
|
18
18
|
"description": "Describes if the plan was a stateful plan",
|
|
19
19
|
"type": "boolean"
|
|
20
20
|
},
|
|
@@ -52,6 +52,6 @@
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
|
-
"required": ["planId", "
|
|
55
|
+
"required": ["planId", "isStateful", "operation", "resourceType", "parameters"],
|
|
56
56
|
"additionalProperties": false
|
|
57
57
|
}
|
|
@@ -22,7 +22,7 @@ describe('Plan response data schema', () => {
|
|
|
22
22
|
planId: 'eb367e53-21a8-4c9e-a38b-c99e7c821344',
|
|
23
23
|
operation: ResourceOperation.CREATE,
|
|
24
24
|
resourceType: 'type1',
|
|
25
|
-
|
|
25
|
+
isStateful: true,
|
|
26
26
|
parameters: [{
|
|
27
27
|
name: 'parameter1',
|
|
28
28
|
operation: ParameterOperation.ADD,
|
package/src/types/index.ts
CHANGED
|
@@ -78,7 +78,7 @@ export interface PlanResponseData {
|
|
|
78
78
|
operation: ResourceOperation;
|
|
79
79
|
resourceName?: string;
|
|
80
80
|
resourceType: string;
|
|
81
|
-
|
|
81
|
+
isStateful: boolean;
|
|
82
82
|
parameters: Array<{
|
|
83
83
|
name: string;
|
|
84
84
|
operation: ParameterOperation;
|
|
@@ -116,7 +116,7 @@ export interface ApplyRequestData {
|
|
|
116
116
|
operation: ResourceOperation;
|
|
117
117
|
resourceName?: string;
|
|
118
118
|
resourceType: string;
|
|
119
|
-
|
|
119
|
+
isStateful: boolean;
|
|
120
120
|
parameters: Array<{
|
|
121
121
|
name: string;
|
|
122
122
|
operation: ParameterOperation;
|