codify-schemas 1.0.56 → 1.0.58
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/index.d.ts +398 -434
- package/dist/index.js +20 -20
- package/dist/index.js.map +1 -1
- package/dist/messages/apply-request-data-schema.json +1 -1
- package/dist/messages/plan-response-data-schema.json +5 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +20 -20
- package/src/messages/apply-request-data-schema.json +1 -1
- package/src/messages/plan-response-data-schema.json +5 -1
- package/src/messages/plan-response-data-schema.test.ts +1 -0
- package/src/types/index.ts +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,554 +1,518 @@
|
|
|
1
1
|
declare const ConfigFileSchema: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
items: {
|
|
8
|
-
type: string;
|
|
9
|
-
properties: {
|
|
10
|
-
type: {
|
|
11
|
-
type: string;
|
|
12
|
-
description: string;
|
|
13
|
-
pattern: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
required: string[];
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
declare const ProjectSchema: {
|
|
21
|
-
default: {
|
|
22
|
-
$schema: string;
|
|
23
|
-
$id: string;
|
|
24
|
-
title: string;
|
|
2
|
+
$schema: string;
|
|
3
|
+
$id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
type: string;
|
|
6
|
+
items: {
|
|
25
7
|
type: string;
|
|
26
8
|
properties: {
|
|
27
9
|
type: {
|
|
28
|
-
description: string;
|
|
29
10
|
type: string;
|
|
30
|
-
const: string;
|
|
31
|
-
};
|
|
32
|
-
version: {
|
|
33
11
|
description: string;
|
|
34
|
-
type: string;
|
|
35
12
|
pattern: string;
|
|
36
13
|
};
|
|
37
|
-
plugins: {
|
|
38
|
-
type: string;
|
|
39
|
-
patternProperties: {
|
|
40
|
-
".*": {
|
|
41
|
-
type: string;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
description: {
|
|
46
|
-
description: string;
|
|
47
|
-
type: string;
|
|
48
|
-
};
|
|
49
14
|
};
|
|
50
|
-
additionalProperties: boolean;
|
|
51
15
|
required: string[];
|
|
52
16
|
};
|
|
53
17
|
};
|
|
54
|
-
declare const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
18
|
+
declare const ProjectSchema: {
|
|
19
|
+
$schema: string;
|
|
20
|
+
$id: string;
|
|
21
|
+
title: string;
|
|
22
|
+
type: string;
|
|
23
|
+
properties: {
|
|
24
|
+
type: {
|
|
25
|
+
description: string;
|
|
26
|
+
type: string;
|
|
27
|
+
const: string;
|
|
28
|
+
};
|
|
29
|
+
version: {
|
|
30
|
+
description: string;
|
|
31
|
+
type: string;
|
|
32
|
+
pattern: string;
|
|
33
|
+
};
|
|
34
|
+
plugins: {
|
|
35
|
+
type: string;
|
|
36
|
+
patternProperties: {
|
|
37
|
+
".*": {
|
|
74
38
|
type: string;
|
|
75
39
|
};
|
|
76
|
-
uniqueItems: boolean;
|
|
77
40
|
};
|
|
78
41
|
};
|
|
79
|
-
|
|
42
|
+
description: {
|
|
43
|
+
description: string;
|
|
44
|
+
type: string;
|
|
45
|
+
};
|
|
80
46
|
};
|
|
47
|
+
additionalProperties: boolean;
|
|
48
|
+
required: string[];
|
|
81
49
|
};
|
|
82
|
-
declare const
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
50
|
+
declare const ResourceSchema: {
|
|
51
|
+
$schema: string;
|
|
52
|
+
$id: string;
|
|
53
|
+
title: string;
|
|
54
|
+
type: string;
|
|
55
|
+
properties: {
|
|
56
|
+
type: {
|
|
57
|
+
description: string;
|
|
58
|
+
type: string;
|
|
59
|
+
pattern: string;
|
|
60
|
+
};
|
|
61
|
+
name: {
|
|
62
|
+
description: string;
|
|
63
|
+
type: string;
|
|
64
|
+
pattern: string;
|
|
65
|
+
};
|
|
66
|
+
dependsOn: {
|
|
67
|
+
type: string;
|
|
68
|
+
items: {
|
|
95
69
|
type: string;
|
|
96
|
-
enum: string[];
|
|
97
|
-
};
|
|
98
|
-
data: {
|
|
99
|
-
description: string;
|
|
100
70
|
};
|
|
71
|
+
uniqueItems: boolean;
|
|
101
72
|
};
|
|
102
|
-
required: string[];
|
|
103
73
|
};
|
|
74
|
+
required: string[];
|
|
75
|
+
};
|
|
76
|
+
declare const IpcMessageSchema: {
|
|
77
|
+
$schema: string;
|
|
78
|
+
$id: string;
|
|
79
|
+
title: string;
|
|
80
|
+
type: string;
|
|
81
|
+
properties: {
|
|
82
|
+
cmd: {
|
|
83
|
+
description: string;
|
|
84
|
+
type: string;
|
|
85
|
+
};
|
|
86
|
+
status: {
|
|
87
|
+
description: string;
|
|
88
|
+
type: string;
|
|
89
|
+
enum: string[];
|
|
90
|
+
};
|
|
91
|
+
data: {
|
|
92
|
+
description: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
required: string[];
|
|
104
96
|
};
|
|
105
97
|
declare const IpcMessageV2Schema: {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
98
|
+
$schema: string;
|
|
99
|
+
$id: string;
|
|
100
|
+
title: string;
|
|
101
|
+
type: string;
|
|
102
|
+
properties: {
|
|
103
|
+
cmd: {
|
|
104
|
+
description: string;
|
|
105
|
+
type: string;
|
|
106
|
+
};
|
|
107
|
+
requestId: {
|
|
108
|
+
type: string;
|
|
109
|
+
description: string;
|
|
110
|
+
};
|
|
111
|
+
status: {
|
|
112
|
+
description: string;
|
|
113
|
+
type: string;
|
|
114
|
+
enum: string[];
|
|
115
|
+
};
|
|
116
|
+
data: {
|
|
117
|
+
description: string;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
required: string[];
|
|
121
|
+
};
|
|
122
|
+
declare const ApplyRequestDataSchema: {
|
|
123
|
+
$schema: string;
|
|
124
|
+
$id: string;
|
|
125
|
+
title: string;
|
|
126
|
+
description: string;
|
|
127
|
+
type: string;
|
|
128
|
+
oneOf: ({
|
|
111
129
|
properties: {
|
|
112
|
-
|
|
113
|
-
description: string;
|
|
114
|
-
type: string;
|
|
115
|
-
};
|
|
116
|
-
requestId: {
|
|
117
|
-
type: string;
|
|
118
|
-
description: string;
|
|
119
|
-
};
|
|
120
|
-
status: {
|
|
130
|
+
planId: {
|
|
121
131
|
description: string;
|
|
122
132
|
type: string;
|
|
123
|
-
|
|
124
|
-
};
|
|
125
|
-
data: {
|
|
126
|
-
description: string;
|
|
133
|
+
format: string;
|
|
127
134
|
};
|
|
135
|
+
plan?: undefined;
|
|
128
136
|
};
|
|
129
137
|
required: string[];
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
type: string;
|
|
159
|
-
enum: string[];
|
|
160
|
-
};
|
|
161
|
-
resourceType: {
|
|
162
|
-
description: string;
|
|
163
|
-
type: string;
|
|
164
|
-
};
|
|
165
|
-
resourceName: {
|
|
166
|
-
description: string;
|
|
167
|
-
type: string[];
|
|
168
|
-
};
|
|
169
|
-
statefulMode: {
|
|
170
|
-
description: string;
|
|
171
|
-
type: string;
|
|
172
|
-
};
|
|
173
|
-
parameters: {
|
|
174
|
-
description: string;
|
|
138
|
+
additionalProperties: boolean;
|
|
139
|
+
} | {
|
|
140
|
+
properties: {
|
|
141
|
+
plan: {
|
|
142
|
+
description: string;
|
|
143
|
+
type: string;
|
|
144
|
+
properties: {
|
|
145
|
+
operation: {
|
|
146
|
+
description: string;
|
|
147
|
+
type: string;
|
|
148
|
+
enum: string[];
|
|
149
|
+
};
|
|
150
|
+
resourceType: {
|
|
151
|
+
description: string;
|
|
152
|
+
type: string;
|
|
153
|
+
};
|
|
154
|
+
resourceName: {
|
|
155
|
+
description: string;
|
|
156
|
+
type: string[];
|
|
157
|
+
};
|
|
158
|
+
statefulMode: {
|
|
159
|
+
description: string;
|
|
160
|
+
type: string;
|
|
161
|
+
};
|
|
162
|
+
parameters: {
|
|
163
|
+
description: string;
|
|
164
|
+
type: string;
|
|
165
|
+
items: {
|
|
175
166
|
type: string;
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
previousValue: {
|
|
192
|
-
description: string;
|
|
193
|
-
};
|
|
167
|
+
properties: {
|
|
168
|
+
name: {
|
|
169
|
+
description: string;
|
|
170
|
+
type: string;
|
|
171
|
+
};
|
|
172
|
+
operation: {
|
|
173
|
+
description: string;
|
|
174
|
+
type: string;
|
|
175
|
+
enum: string[];
|
|
176
|
+
};
|
|
177
|
+
newValue: {
|
|
178
|
+
description: string;
|
|
179
|
+
};
|
|
180
|
+
previousValue: {
|
|
181
|
+
description: string;
|
|
194
182
|
};
|
|
195
|
-
required: string[];
|
|
196
183
|
};
|
|
184
|
+
required: string[];
|
|
197
185
|
};
|
|
198
186
|
};
|
|
199
|
-
required: string[];
|
|
200
187
|
};
|
|
201
|
-
|
|
188
|
+
required: string[];
|
|
202
189
|
};
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
190
|
+
planId?: undefined;
|
|
191
|
+
};
|
|
192
|
+
required: string[];
|
|
193
|
+
additionalProperties: boolean;
|
|
194
|
+
})[];
|
|
207
195
|
};
|
|
208
196
|
declare const ApplyResponseDataSchema: {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
type: string;
|
|
214
|
-
};
|
|
197
|
+
$schema: string;
|
|
198
|
+
$id: string;
|
|
199
|
+
title: string;
|
|
200
|
+
type: string;
|
|
215
201
|
};
|
|
216
202
|
declare const ErrorResponseDataSchema: {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
type: string;
|
|
226
|
-
};
|
|
203
|
+
$schema: string;
|
|
204
|
+
$id: string;
|
|
205
|
+
title: string;
|
|
206
|
+
type: string;
|
|
207
|
+
properties: {
|
|
208
|
+
reason: {
|
|
209
|
+
description: string;
|
|
210
|
+
type: string;
|
|
227
211
|
};
|
|
228
|
-
required: string[];
|
|
229
|
-
additionalProperties: boolean;
|
|
230
212
|
};
|
|
213
|
+
required: string[];
|
|
214
|
+
additionalProperties: boolean;
|
|
231
215
|
};
|
|
232
216
|
declare const GetResourceInfoRequestDataSchema: {
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
type:
|
|
240
|
-
|
|
241
|
-
description: string;
|
|
242
|
-
};
|
|
217
|
+
$schema: string;
|
|
218
|
+
$id: string;
|
|
219
|
+
title: string;
|
|
220
|
+
type: string;
|
|
221
|
+
properties: {
|
|
222
|
+
type: {
|
|
223
|
+
type: string;
|
|
224
|
+
description: string;
|
|
243
225
|
};
|
|
244
|
-
required: string[];
|
|
245
226
|
};
|
|
227
|
+
required: string[];
|
|
246
228
|
};
|
|
247
229
|
declare const GetResourceInfoResponseDataSchema: {
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
type:
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
230
|
+
$schema: string;
|
|
231
|
+
$id: string;
|
|
232
|
+
title: string;
|
|
233
|
+
type: string;
|
|
234
|
+
properties: {
|
|
235
|
+
plugin: {
|
|
236
|
+
type: string;
|
|
237
|
+
description: string;
|
|
238
|
+
};
|
|
239
|
+
type: {
|
|
240
|
+
type: string;
|
|
241
|
+
description: string;
|
|
242
|
+
};
|
|
243
|
+
schema: {
|
|
244
|
+
type: string;
|
|
245
|
+
description: string;
|
|
246
|
+
};
|
|
247
|
+
dependencies: {
|
|
248
|
+
type: string;
|
|
249
|
+
items: {
|
|
263
250
|
type: string;
|
|
264
|
-
description: string;
|
|
265
251
|
};
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
252
|
+
};
|
|
253
|
+
import: {
|
|
254
|
+
type: string;
|
|
255
|
+
properties: {
|
|
256
|
+
requiredProperties: {
|
|
269
257
|
type: string;
|
|
270
|
-
|
|
271
|
-
};
|
|
272
|
-
import: {
|
|
273
|
-
type: string;
|
|
274
|
-
properties: {
|
|
275
|
-
requiredProperties: {
|
|
258
|
+
items: {
|
|
276
259
|
type: string;
|
|
277
|
-
items: {
|
|
278
|
-
type: string;
|
|
279
|
-
};
|
|
280
260
|
};
|
|
281
261
|
};
|
|
282
262
|
};
|
|
283
263
|
};
|
|
284
|
-
required: string[];
|
|
285
264
|
};
|
|
265
|
+
required: string[];
|
|
286
266
|
};
|
|
287
267
|
declare const ImportRequestDataSchema: {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
$ref: string;
|
|
296
|
-
};
|
|
268
|
+
$schema: string;
|
|
269
|
+
$id: string;
|
|
270
|
+
title: string;
|
|
271
|
+
type: string;
|
|
272
|
+
properties: {
|
|
273
|
+
config: {
|
|
274
|
+
$ref: string;
|
|
297
275
|
};
|
|
298
|
-
required: string[];
|
|
299
276
|
};
|
|
277
|
+
required: string[];
|
|
300
278
|
};
|
|
301
279
|
declare const ImportResponseDataSchema: {
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
280
|
+
$schema: string;
|
|
281
|
+
$id: string;
|
|
282
|
+
title: string;
|
|
283
|
+
type: string;
|
|
284
|
+
properties: {
|
|
285
|
+
request: {
|
|
286
|
+
$ref: string;
|
|
287
|
+
};
|
|
288
|
+
result: {
|
|
289
|
+
type: string;
|
|
290
|
+
items: {
|
|
309
291
|
$ref: string;
|
|
310
292
|
};
|
|
311
|
-
result: {
|
|
312
|
-
type: string;
|
|
313
|
-
items: {
|
|
314
|
-
$ref: string;
|
|
315
|
-
};
|
|
316
|
-
};
|
|
317
293
|
};
|
|
318
|
-
required: string[];
|
|
319
294
|
};
|
|
295
|
+
required: string[];
|
|
320
296
|
};
|
|
321
297
|
declare const PlanRequestDataSchema: {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
description: string;
|
|
337
|
-
};
|
|
298
|
+
$schema: string;
|
|
299
|
+
$id: string;
|
|
300
|
+
title: string;
|
|
301
|
+
type: string;
|
|
302
|
+
properties: {
|
|
303
|
+
desired: {
|
|
304
|
+
$ref: string;
|
|
305
|
+
};
|
|
306
|
+
state: {
|
|
307
|
+
$ref: string;
|
|
308
|
+
};
|
|
309
|
+
isStateful: {
|
|
310
|
+
type: string;
|
|
311
|
+
description: string;
|
|
338
312
|
};
|
|
339
|
-
additionalProperties: boolean;
|
|
340
|
-
anyOf: {
|
|
341
|
-
required: string[];
|
|
342
|
-
}[];
|
|
343
313
|
};
|
|
314
|
+
additionalProperties: boolean;
|
|
315
|
+
anyOf: {
|
|
316
|
+
required: string[];
|
|
317
|
+
}[];
|
|
344
318
|
};
|
|
345
319
|
declare const PlanResponseDataSchema: {
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
320
|
+
$schema: string;
|
|
321
|
+
$id: string;
|
|
322
|
+
title: string;
|
|
323
|
+
type: string;
|
|
324
|
+
properties: {
|
|
325
|
+
planId: {
|
|
326
|
+
description: string;
|
|
327
|
+
type: string;
|
|
328
|
+
format: string;
|
|
329
|
+
};
|
|
330
|
+
operation: {
|
|
331
|
+
description: string;
|
|
332
|
+
type: string;
|
|
333
|
+
enum: string[];
|
|
334
|
+
};
|
|
335
|
+
statefulMode: {
|
|
336
|
+
description: string;
|
|
337
|
+
type: string;
|
|
338
|
+
};
|
|
339
|
+
resourceType: {
|
|
340
|
+
description: string;
|
|
341
|
+
type: string;
|
|
342
|
+
};
|
|
343
|
+
resourceName: {
|
|
344
|
+
description: string;
|
|
345
|
+
type: string[];
|
|
346
|
+
};
|
|
347
|
+
parameters: {
|
|
348
|
+
description: string;
|
|
349
|
+
type: string;
|
|
350
|
+
items: {
|
|
372
351
|
type: string;
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
newValue: {
|
|
389
|
-
description: string;
|
|
390
|
-
};
|
|
352
|
+
properties: {
|
|
353
|
+
name: {
|
|
354
|
+
description: string;
|
|
355
|
+
type: string;
|
|
356
|
+
};
|
|
357
|
+
operation: {
|
|
358
|
+
description: string;
|
|
359
|
+
type: string;
|
|
360
|
+
enum: string[];
|
|
361
|
+
};
|
|
362
|
+
previousValue: {
|
|
363
|
+
description: string;
|
|
364
|
+
};
|
|
365
|
+
newValue: {
|
|
366
|
+
description: string;
|
|
391
367
|
};
|
|
392
|
-
required: string[];
|
|
393
368
|
};
|
|
369
|
+
required: string[];
|
|
394
370
|
};
|
|
395
371
|
};
|
|
396
|
-
required: string[];
|
|
397
|
-
additionalProperties: boolean;
|
|
398
372
|
};
|
|
373
|
+
required: string[];
|
|
374
|
+
additionalProperties: boolean;
|
|
399
375
|
};
|
|
400
376
|
declare const ValidateRequestDataSchema: {
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
$ref: string;
|
|
411
|
-
};
|
|
377
|
+
$schema: string;
|
|
378
|
+
$id: string;
|
|
379
|
+
title: string;
|
|
380
|
+
type: string;
|
|
381
|
+
properties: {
|
|
382
|
+
configs: {
|
|
383
|
+
type: string;
|
|
384
|
+
items: {
|
|
385
|
+
$ref: string;
|
|
412
386
|
};
|
|
413
387
|
};
|
|
414
|
-
required: never[];
|
|
415
|
-
additionalProperties: boolean;
|
|
416
388
|
};
|
|
389
|
+
required: never[];
|
|
390
|
+
additionalProperties: boolean;
|
|
417
391
|
};
|
|
418
392
|
declare const ValidateResponseDataSchema: {
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
393
|
+
$schema: string;
|
|
394
|
+
$id: string;
|
|
395
|
+
title: string;
|
|
396
|
+
type: string;
|
|
397
|
+
properties: {
|
|
398
|
+
resourceValidations: {
|
|
399
|
+
type: string;
|
|
400
|
+
items: {
|
|
426
401
|
type: string;
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
description: string;
|
|
439
|
-
items: {
|
|
440
|
-
type: string;
|
|
441
|
-
};
|
|
442
|
-
};
|
|
443
|
-
customValidationErrorMessage: {
|
|
444
|
-
type: string;
|
|
445
|
-
description: string;
|
|
446
|
-
};
|
|
447
|
-
isValid: {
|
|
402
|
+
properties: {
|
|
403
|
+
resourceType: {
|
|
404
|
+
type: string;
|
|
405
|
+
};
|
|
406
|
+
resourceName: {
|
|
407
|
+
type: string;
|
|
408
|
+
};
|
|
409
|
+
schemaValidationErrors: {
|
|
410
|
+
type: string;
|
|
411
|
+
description: string;
|
|
412
|
+
items: {
|
|
448
413
|
type: string;
|
|
449
|
-
description: string;
|
|
450
414
|
};
|
|
451
415
|
};
|
|
452
|
-
|
|
416
|
+
customValidationErrorMessage: {
|
|
417
|
+
type: string;
|
|
418
|
+
description: string;
|
|
419
|
+
};
|
|
420
|
+
isValid: {
|
|
421
|
+
type: string;
|
|
422
|
+
description: string;
|
|
423
|
+
};
|
|
453
424
|
};
|
|
425
|
+
required: string[];
|
|
454
426
|
};
|
|
455
427
|
};
|
|
456
|
-
additionalProperties: boolean;
|
|
457
428
|
};
|
|
429
|
+
additionalProperties: boolean;
|
|
458
430
|
};
|
|
459
431
|
declare const InitializeRequestDataSchema: {
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
additionalProperties: boolean;
|
|
468
|
-
};
|
|
432
|
+
$schema: string;
|
|
433
|
+
$id: string;
|
|
434
|
+
title: string;
|
|
435
|
+
description: string;
|
|
436
|
+
type: string;
|
|
437
|
+
properties: {};
|
|
438
|
+
additionalProperties: boolean;
|
|
469
439
|
};
|
|
470
440
|
declare const InitializeResponseDataSchema: {
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
441
|
+
$schema: string;
|
|
442
|
+
$id: string;
|
|
443
|
+
title: string;
|
|
444
|
+
description: string;
|
|
445
|
+
type: string;
|
|
446
|
+
properties: {
|
|
447
|
+
resourceDefinitions: {
|
|
448
|
+
type: string;
|
|
449
|
+
items: {
|
|
479
450
|
type: string;
|
|
480
|
-
|
|
481
|
-
type:
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
451
|
+
properties: {
|
|
452
|
+
type: {
|
|
453
|
+
type: string;
|
|
454
|
+
};
|
|
455
|
+
dependencies: {
|
|
456
|
+
type: string;
|
|
457
|
+
items: {
|
|
487
458
|
type: string;
|
|
488
|
-
items: {
|
|
489
|
-
type: string;
|
|
490
|
-
};
|
|
491
459
|
};
|
|
492
460
|
};
|
|
493
|
-
required: string[];
|
|
494
461
|
};
|
|
462
|
+
required: string[];
|
|
495
463
|
};
|
|
496
464
|
};
|
|
497
|
-
required: string[];
|
|
498
465
|
};
|
|
466
|
+
required: string[];
|
|
499
467
|
};
|
|
500
468
|
declare const SudoRequestDataSchema: {
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
description: string;
|
|
523
|
-
};
|
|
469
|
+
$schema: string;
|
|
470
|
+
$id: string;
|
|
471
|
+
title: string;
|
|
472
|
+
description: string;
|
|
473
|
+
type: string;
|
|
474
|
+
properties: {
|
|
475
|
+
command: {
|
|
476
|
+
type: string;
|
|
477
|
+
description: string;
|
|
478
|
+
};
|
|
479
|
+
options: {
|
|
480
|
+
type: string;
|
|
481
|
+
description: string;
|
|
482
|
+
properties: {
|
|
483
|
+
cwd: {
|
|
484
|
+
type: string;
|
|
485
|
+
description: string;
|
|
486
|
+
};
|
|
487
|
+
argv0: {
|
|
488
|
+
type: string;
|
|
489
|
+
description: string;
|
|
524
490
|
};
|
|
525
|
-
additionalProperties: boolean;
|
|
526
491
|
};
|
|
492
|
+
additionalProperties: boolean;
|
|
527
493
|
};
|
|
528
|
-
required: string[];
|
|
529
|
-
additionalProperties: boolean;
|
|
530
494
|
};
|
|
495
|
+
required: string[];
|
|
496
|
+
additionalProperties: boolean;
|
|
531
497
|
};
|
|
532
498
|
declare const SudoRequestResponseDataSchema: {
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
description: string;
|
|
547
|
-
};
|
|
499
|
+
$schema: string;
|
|
500
|
+
$id: string;
|
|
501
|
+
title: string;
|
|
502
|
+
description: string;
|
|
503
|
+
type: string;
|
|
504
|
+
properties: {
|
|
505
|
+
status: {
|
|
506
|
+
enum: string[];
|
|
507
|
+
description: string;
|
|
508
|
+
};
|
|
509
|
+
data: {
|
|
510
|
+
type: string;
|
|
511
|
+
description: string;
|
|
548
512
|
};
|
|
549
|
-
required: string[];
|
|
550
|
-
additionalProperties: boolean;
|
|
551
513
|
};
|
|
514
|
+
required: string[];
|
|
515
|
+
additionalProperties: boolean;
|
|
552
516
|
};
|
|
553
517
|
export { ConfigFileSchema, ProjectSchema, ResourceSchema, IpcMessageSchema, IpcMessageV2Schema, ApplyRequestDataSchema, ApplyResponseDataSchema, ErrorResponseDataSchema, GetResourceInfoRequestDataSchema, GetResourceInfoResponseDataSchema, ImportRequestDataSchema, ImportResponseDataSchema, PlanRequestDataSchema, PlanResponseDataSchema, ValidateRequestDataSchema, ValidateResponseDataSchema, InitializeRequestDataSchema, InitializeResponseDataSchema, SudoRequestDataSchema, SudoRequestResponseDataSchema, };
|
|
554
518
|
export * from './types/index.js';
|
package/dist/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
const ConfigFileSchema = await import('./config-file-schema.json', { assert: { type: 'json' } });
|
|
2
|
-
const ProjectSchema = await import('./project-schema.json', { assert: { type: 'json' } });
|
|
3
|
-
const ResourceSchema = await import('./resource-schema.json', { assert: { type: 'json' } });
|
|
4
|
-
const IpcMessageSchema = await import('./ipc-message-schema.json', { assert: { type: 'json' } });
|
|
5
|
-
const IpcMessageV2Schema = await import('./ipc-message-schema-v2.json', { assert: { type: 'json' } });
|
|
6
|
-
const ApplyRequestDataSchema = await import('./messages/apply-request-data-schema.json', { assert: { type: 'json' } });
|
|
7
|
-
const ApplyResponseDataSchema = await import('./messages/apply-response-data-schema.json', { assert: { type: 'json' } });
|
|
8
|
-
const ErrorResponseDataSchema = await import('./messages/error-response-data-schema.json', { assert: { type: 'json' } });
|
|
9
|
-
const GetResourceInfoRequestDataSchema = await import('./messages/get-resource-info-request-data-schema.json', { assert: { type: 'json' } });
|
|
10
|
-
const GetResourceInfoResponseDataSchema = await import('./messages/get-resource-info-response-data-schema.json', { assert: { type: 'json' } });
|
|
11
|
-
const ImportRequestDataSchema = await import('./messages/import-request-data-schema.json', { assert: { type: 'json' } });
|
|
12
|
-
const ImportResponseDataSchema = await import('./messages/import-response-data-schema.json', { assert: { type: 'json' } });
|
|
13
|
-
const PlanRequestDataSchema = await import('./messages/plan-request-data-schema.json', { assert: { type: 'json' } });
|
|
14
|
-
const PlanResponseDataSchema = await import('./messages/plan-response-data-schema.json', { assert: { type: 'json' } });
|
|
15
|
-
const ValidateRequestDataSchema = await import('./messages/validate-request-data-schema.json', { assert: { type: 'json' } });
|
|
16
|
-
const ValidateResponseDataSchema = await import('./messages/validate-response-data-schema.json', { assert: { type: 'json' } });
|
|
17
|
-
const InitializeRequestDataSchema = await import('./messages/initialize-request-data-schema.json', { assert: { type: 'json' } });
|
|
18
|
-
const InitializeResponseDataSchema = await import('./messages/initialize-response-data-schema.json', { assert: { type: 'json' } });
|
|
19
|
-
const SudoRequestDataSchema = await import('./messages/sudo-request-data-schema.json', { assert: { type: 'json' } });
|
|
20
|
-
const SudoRequestResponseDataSchema = await import('./messages/sudo-response-data-schema.json', { assert: { type: 'json' } });
|
|
1
|
+
const ConfigFileSchema = (await import('./config-file-schema.json', { assert: { type: 'json' } })).default;
|
|
2
|
+
const ProjectSchema = (await import('./project-schema.json', { assert: { type: 'json' } })).default;
|
|
3
|
+
const ResourceSchema = (await import('./resource-schema.json', { assert: { type: 'json' } })).default;
|
|
4
|
+
const IpcMessageSchema = (await import('./ipc-message-schema.json', { assert: { type: 'json' } })).default;
|
|
5
|
+
const IpcMessageV2Schema = (await import('./ipc-message-schema-v2.json', { assert: { type: 'json' } })).default;
|
|
6
|
+
const ApplyRequestDataSchema = (await import('./messages/apply-request-data-schema.json', { assert: { type: 'json' } })).default;
|
|
7
|
+
const ApplyResponseDataSchema = (await import('./messages/apply-response-data-schema.json', { assert: { type: 'json' } })).default;
|
|
8
|
+
const ErrorResponseDataSchema = (await import('./messages/error-response-data-schema.json', { assert: { type: 'json' } })).default;
|
|
9
|
+
const GetResourceInfoRequestDataSchema = (await import('./messages/get-resource-info-request-data-schema.json', { assert: { type: 'json' } })).default;
|
|
10
|
+
const GetResourceInfoResponseDataSchema = (await import('./messages/get-resource-info-response-data-schema.json', { assert: { type: 'json' } })).default;
|
|
11
|
+
const ImportRequestDataSchema = (await import('./messages/import-request-data-schema.json', { assert: { type: 'json' } })).default;
|
|
12
|
+
const ImportResponseDataSchema = (await import('./messages/import-response-data-schema.json', { assert: { type: 'json' } })).default;
|
|
13
|
+
const PlanRequestDataSchema = (await import('./messages/plan-request-data-schema.json', { assert: { type: 'json' } })).default;
|
|
14
|
+
const PlanResponseDataSchema = (await import('./messages/plan-response-data-schema.json', { assert: { type: 'json' } })).default;
|
|
15
|
+
const ValidateRequestDataSchema = (await import('./messages/validate-request-data-schema.json', { assert: { type: 'json' } })).default;
|
|
16
|
+
const ValidateResponseDataSchema = (await import('./messages/validate-response-data-schema.json', { assert: { type: 'json' } })).default;
|
|
17
|
+
const InitializeRequestDataSchema = (await import('./messages/initialize-request-data-schema.json', { assert: { type: 'json' } })).default;
|
|
18
|
+
const InitializeResponseDataSchema = (await import('./messages/initialize-response-data-schema.json', { assert: { type: 'json' } })).default;
|
|
19
|
+
const SudoRequestDataSchema = (await import('./messages/sudo-request-data-schema.json', { assert: { type: 'json' } })).default;
|
|
20
|
+
const SudoRequestResponseDataSchema = (await import('./messages/sudo-response-data-schema.json', { assert: { type: 'json' } })).default;
|
|
21
21
|
export { ConfigFileSchema, ProjectSchema, ResourceSchema, IpcMessageSchema, IpcMessageV2Schema, ApplyRequestDataSchema, ApplyResponseDataSchema, ErrorResponseDataSchema, GetResourceInfoRequestDataSchema, GetResourceInfoResponseDataSchema, ImportRequestDataSchema, ImportResponseDataSchema, PlanRequestDataSchema, PlanResponseDataSchema, ValidateRequestDataSchema, ValidateResponseDataSchema, InitializeRequestDataSchema, InitializeResponseDataSchema, SudoRequestDataSchema, SudoRequestResponseDataSchema, };
|
|
22
22
|
export * from './types/index.js';
|
|
23
23
|
export * from './messages/commands.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../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efulMode": {
|
|
18
|
+
"description": "Describes if the plan was a stateful plan",
|
|
19
|
+
"type": "boolean"
|
|
20
|
+
},
|
|
17
21
|
"resourceType": {
|
|
18
22
|
"description": "The resource type",
|
|
19
23
|
"type": "string"
|
|
@@ -48,6 +52,6 @@
|
|
|
48
52
|
}
|
|
49
53
|
}
|
|
50
54
|
},
|
|
51
|
-
"required": ["planId", "operation", "resourceType", "parameters"],
|
|
55
|
+
"required": ["planId", "statefulMode", "operation", "resourceType", "parameters"],
|
|
52
56
|
"additionalProperties": false
|
|
53
57
|
}
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAsBA,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,gCAAe,CAAA;AACjB,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB;AAmCD,MAAM,CAAN,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,sCAAiB,CAAA;IACjB,0CAAqB,CAAA;IACrB,kCAAa,CAAA;AACf,CAAC,EANW,iBAAiB,KAAjB,iBAAiB,QAM5B;AAED,MAAM,CAAN,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,iCAAW,CAAA;IACX,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;IACjB,mCAAa,CAAA;AACf,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,QAK7B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAsBA,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,gCAAe,CAAA;AACjB,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB;AAmCD,MAAM,CAAN,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,sCAAiB,CAAA;IACjB,0CAAqB,CAAA;IACrB,kCAAa,CAAA;AACf,CAAC,EANW,iBAAiB,KAAjB,iBAAiB,QAM5B;AAED,MAAM,CAAN,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,iCAAW,CAAA;IACX,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;IACjB,mCAAa,CAAA;AACf,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,QAK7B;AA4ED,MAAM,CAAN,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,8BAAe,CAAA;AACjB,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
const ConfigFileSchema = await import('./config-file-schema.json', {assert: {type: 'json'}})
|
|
2
|
-
const ProjectSchema = await import('./project-schema.json', {assert: {type: 'json'}})
|
|
3
|
-
const ResourceSchema = await import('./resource-schema.json', {assert: {type: 'json'}})
|
|
4
|
-
const IpcMessageSchema = await import('./ipc-message-schema.json', {assert: {type: 'json'}})
|
|
5
|
-
const IpcMessageV2Schema = await import('./ipc-message-schema-v2.json', {assert: {type: 'json'}})
|
|
6
|
-
const ApplyRequestDataSchema = await import('./messages/apply-request-data-schema.json', {assert: {type: 'json'}})
|
|
7
|
-
const ApplyResponseDataSchema = await import('./messages/apply-response-data-schema.json', {assert: {type: 'json'}})
|
|
8
|
-
const ErrorResponseDataSchema = await import('./messages/error-response-data-schema.json', {assert: {type: 'json'}})
|
|
9
|
-
const GetResourceInfoRequestDataSchema = await import('./messages/get-resource-info-request-data-schema.json', {assert: {type: 'json'}})
|
|
10
|
-
const GetResourceInfoResponseDataSchema = await import('./messages/get-resource-info-response-data-schema.json', {assert: {type: 'json'}})
|
|
11
|
-
const ImportRequestDataSchema = await import('./messages/import-request-data-schema.json', {assert: {type: 'json'}})
|
|
12
|
-
const ImportResponseDataSchema = await import('./messages/import-response-data-schema.json', {assert: {type: 'json'}})
|
|
13
|
-
const PlanRequestDataSchema = await import('./messages/plan-request-data-schema.json', {assert: {type: 'json'}})
|
|
14
|
-
const PlanResponseDataSchema = await import('./messages/plan-response-data-schema.json', {assert: {type: 'json'}})
|
|
15
|
-
const ValidateRequestDataSchema = await import('./messages/validate-request-data-schema.json', {assert: {type: 'json'}})
|
|
16
|
-
const ValidateResponseDataSchema = await import('./messages/validate-response-data-schema.json', {assert: {type: 'json'}})
|
|
17
|
-
const InitializeRequestDataSchema = await import('./messages/initialize-request-data-schema.json', {assert: {type: 'json'}})
|
|
18
|
-
const InitializeResponseDataSchema = await import('./messages/initialize-response-data-schema.json', {assert: {type: 'json'}})
|
|
19
|
-
const SudoRequestDataSchema = await import('./messages/sudo-request-data-schema.json', {assert: {type: 'json'}})
|
|
20
|
-
const SudoRequestResponseDataSchema = await import('./messages/sudo-response-data-schema.json', {assert: {type: 'json'}})
|
|
1
|
+
const ConfigFileSchema = (await import('./config-file-schema.json', {assert: {type: 'json'}})).default
|
|
2
|
+
const ProjectSchema = (await import('./project-schema.json', {assert: {type: 'json'}})).default
|
|
3
|
+
const ResourceSchema = (await import('./resource-schema.json', {assert: {type: 'json'}})).default
|
|
4
|
+
const IpcMessageSchema = (await import('./ipc-message-schema.json', {assert: {type: 'json'}})).default
|
|
5
|
+
const IpcMessageV2Schema = (await import('./ipc-message-schema-v2.json', {assert: {type: 'json'}})).default
|
|
6
|
+
const ApplyRequestDataSchema = (await import('./messages/apply-request-data-schema.json', {assert: {type: 'json'}})).default
|
|
7
|
+
const ApplyResponseDataSchema = (await import('./messages/apply-response-data-schema.json', {assert: {type: 'json'}})).default
|
|
8
|
+
const ErrorResponseDataSchema = (await import('./messages/error-response-data-schema.json', {assert: {type: 'json'}})).default
|
|
9
|
+
const GetResourceInfoRequestDataSchema = (await import('./messages/get-resource-info-request-data-schema.json', {assert: {type: 'json'}})).default
|
|
10
|
+
const GetResourceInfoResponseDataSchema = (await import('./messages/get-resource-info-response-data-schema.json', {assert: {type: 'json'}})).default
|
|
11
|
+
const ImportRequestDataSchema = (await import('./messages/import-request-data-schema.json', {assert: {type: 'json'}})).default
|
|
12
|
+
const ImportResponseDataSchema = (await import('./messages/import-response-data-schema.json', {assert: {type: 'json'}})).default
|
|
13
|
+
const PlanRequestDataSchema = (await import('./messages/plan-request-data-schema.json', {assert: {type: 'json'}})).default
|
|
14
|
+
const PlanResponseDataSchema = (await import('./messages/plan-response-data-schema.json', {assert: {type: 'json'}})).default
|
|
15
|
+
const ValidateRequestDataSchema = (await import('./messages/validate-request-data-schema.json', {assert: {type: 'json'}})).default
|
|
16
|
+
const ValidateResponseDataSchema = (await import('./messages/validate-response-data-schema.json', {assert: {type: 'json'}})).default
|
|
17
|
+
const InitializeRequestDataSchema = (await import('./messages/initialize-request-data-schema.json', {assert: {type: 'json'}})).default
|
|
18
|
+
const InitializeResponseDataSchema = (await import('./messages/initialize-response-data-schema.json', {assert: {type: 'json'}})).default
|
|
19
|
+
const SudoRequestDataSchema = (await import('./messages/sudo-request-data-schema.json', {assert: {type: 'json'}})).default
|
|
20
|
+
const SudoRequestResponseDataSchema = (await import('./messages/sudo-response-data-schema.json', {assert: {type: 'json'}})).default
|
|
21
21
|
|
|
22
22
|
export {
|
|
23
23
|
ConfigFileSchema,
|
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
"type": "string",
|
|
15
15
|
"enum" : ["create", "destroy", "modify", "recreate", "noop"]
|
|
16
16
|
},
|
|
17
|
+
"statefulMode": {
|
|
18
|
+
"description": "Describes if the plan was a stateful plan",
|
|
19
|
+
"type": "boolean"
|
|
20
|
+
},
|
|
17
21
|
"resourceType": {
|
|
18
22
|
"description": "The resource type",
|
|
19
23
|
"type": "string"
|
|
@@ -48,6 +52,6 @@
|
|
|
48
52
|
}
|
|
49
53
|
}
|
|
50
54
|
},
|
|
51
|
-
"required": ["planId", "operation", "resourceType", "parameters"],
|
|
55
|
+
"required": ["planId", "statefulMode", "operation", "resourceType", "parameters"],
|
|
52
56
|
"additionalProperties": false
|
|
53
57
|
}
|
|
@@ -22,6 +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
|
+
statefulMode: true,
|
|
25
26
|
parameters: [{
|
|
26
27
|
name: 'parameter1',
|
|
27
28
|
operation: ParameterOperation.ADD,
|