@builder-builder/builder 0.0.13 → 0.0.14
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/cli.d.ts +2 -0
- package/dist/cli.js +53 -0
- package/dist/codegen/index.d.ts +7 -0
- package/dist/codegen/index.js +212 -0
- package/dist/codegen/template.d.ts +5 -0
- package/dist/codegen/template.js +17 -0
- package/dist/entities/index.d.ts +3 -3
- package/dist/entities/index.js +1 -1
- package/dist/entities/kind.d.ts +1 -1
- package/dist/entities/serialise.d.ts +554 -8
- package/dist/entities/serialise.js +5 -3
- package/dist/entities/ui/describe.d.ts +222 -8
- package/dist/entities/ui/describe.js +5 -5
- package/dist/entities/ui/index.d.ts +2 -0
- package/dist/entities/ui/index.js +1 -0
- package/dist/entities/ui/input.d.ts +334 -0
- package/dist/entities/ui/input.js +39 -0
- package/dist/entities/ui/page.d.ts +222 -8
- package/dist/entities/ui/page.js +5 -5
- package/dist/entities/ui/ui.d.ts +3 -3
- package/dist/entities/ui/ui.js +7 -4
- package/dist/entities/validated.d.ts +4 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/mappers/index.d.ts +3 -2
- package/dist/mappers/index.js +1 -1
- package/dist/mappers/render/index.d.ts +1 -1
- package/dist/mappers/render/pages.d.ts +8 -0
- package/dist/mappers/render/pages.js +2 -1
- package/dist/mappers/render/render.js +19 -3
- package/dist/mappers/resolve.d.ts +4 -4
- package/dist/mappers/variants/index.d.ts +2 -1
- package/dist/mappers/variants/index.js +2 -1
- package/dist/mappers/variants/variants.d.ts +5 -2
- package/dist/mappers/variants/variants.js +2 -2
- package/dist/validate/brand.d.ts +0 -7
- package/dist/validate/brand.js +5 -5
- package/dist/validate/builder.d.ts +2 -1
- package/dist/validate/builder.js +14 -12
- package/dist/validate/errors.d.ts +130 -0
- package/dist/validate/errors.js +141 -0
- package/dist/validate/expectations.d.ts +3 -10
- package/dist/validate/expectations.js +8 -10
- package/dist/validate/index.d.ts +8 -14
- package/dist/validate/index.js +4 -7
- package/dist/validate/instance.d.ts +2 -15
- package/dist/validate/instance.js +41 -40
- package/dist/validate/model.d.ts +4 -31
- package/dist/validate/model.js +157 -176
- package/dist/validate/resolve.d.ts +3 -15
- package/dist/validate/resolve.js +66 -69
- package/dist/validate/result.d.ts +1 -7
- package/dist/validate/result.js +1 -4
- package/dist/validate/ui.d.ts +4 -4
- package/dist/validate/ui.js +80 -62
- package/dist/validate/variants.d.ts +2 -53
- package/dist/validate/variants.js +83 -86
- package/package.json +12 -3
|
@@ -63,7 +63,7 @@ export declare const entitiesMap: {
|
|
|
63
63
|
type: "ref";
|
|
64
64
|
id: string;
|
|
65
65
|
}>]>, v.StringSchema<undefined>], undefined>;
|
|
66
|
-
readonly
|
|
66
|
+
readonly inputs: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
67
67
|
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
68
68
|
readonly id: v.StringSchema<undefined>;
|
|
69
69
|
readonly name: v.StringSchema<undefined>;
|
|
@@ -77,7 +77,178 @@ export declare const entitiesMap: {
|
|
|
77
77
|
}, undefined>, v.ReadonlyAction<{
|
|
78
78
|
type: "ref";
|
|
79
79
|
id: string;
|
|
80
|
-
}>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
80
|
+
}>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
81
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
82
|
+
readonly id: v.StringSchema<undefined>;
|
|
83
|
+
readonly name: v.StringSchema<undefined>;
|
|
84
|
+
}, undefined>, v.ReadonlyAction<{
|
|
85
|
+
type: "parameter";
|
|
86
|
+
id: string;
|
|
87
|
+
name: string;
|
|
88
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
89
|
+
readonly type: v.LiteralSchema<"ref", undefined>;
|
|
90
|
+
readonly id: v.StringSchema<undefined>;
|
|
91
|
+
}, undefined>, v.ReadonlyAction<{
|
|
92
|
+
type: "ref";
|
|
93
|
+
id: string;
|
|
94
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
95
|
+
readonly type: v.LiteralSchema<"input", undefined>;
|
|
96
|
+
readonly path: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
97
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
98
|
+
readonly id: v.StringSchema<undefined>;
|
|
99
|
+
readonly name: v.StringSchema<undefined>;
|
|
100
|
+
}, undefined>, v.ReadonlyAction<{
|
|
101
|
+
type: "parameter";
|
|
102
|
+
id: string;
|
|
103
|
+
name: string;
|
|
104
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
105
|
+
readonly type: v.LiteralSchema<"ref", undefined>;
|
|
106
|
+
readonly id: v.StringSchema<undefined>;
|
|
107
|
+
}, undefined>, v.ReadonlyAction<{
|
|
108
|
+
type: "ref";
|
|
109
|
+
id: string;
|
|
110
|
+
}>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>], undefined>;
|
|
111
|
+
readonly displayName: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
112
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
113
|
+
readonly id: v.StringSchema<undefined>;
|
|
114
|
+
readonly name: v.StringSchema<undefined>;
|
|
115
|
+
}, undefined>, v.ReadonlyAction<{
|
|
116
|
+
type: "parameter";
|
|
117
|
+
id: string;
|
|
118
|
+
name: string;
|
|
119
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
120
|
+
readonly type: v.LiteralSchema<"ref", undefined>;
|
|
121
|
+
readonly id: v.StringSchema<undefined>;
|
|
122
|
+
}, undefined>, v.ReadonlyAction<{
|
|
123
|
+
type: "ref";
|
|
124
|
+
id: string;
|
|
125
|
+
}>]>, v.StringSchema<undefined>], undefined>, undefined>;
|
|
126
|
+
readonly kind: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
127
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
128
|
+
readonly id: v.StringSchema<undefined>;
|
|
129
|
+
readonly name: v.StringSchema<undefined>;
|
|
130
|
+
}, undefined>, v.ReadonlyAction<{
|
|
131
|
+
type: "parameter";
|
|
132
|
+
id: string;
|
|
133
|
+
name: string;
|
|
134
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
135
|
+
readonly type: v.LiteralSchema<"ref", undefined>;
|
|
136
|
+
readonly id: v.StringSchema<undefined>;
|
|
137
|
+
}, undefined>, v.ReadonlyAction<{
|
|
138
|
+
type: "ref";
|
|
139
|
+
id: string;
|
|
140
|
+
}>]>, v.StringSchema<undefined>], undefined>, undefined>;
|
|
141
|
+
readonly metadata: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
142
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
143
|
+
readonly id: v.StringSchema<undefined>;
|
|
144
|
+
readonly name: v.StringSchema<undefined>;
|
|
145
|
+
}, undefined>, v.ReadonlyAction<{
|
|
146
|
+
type: "parameter";
|
|
147
|
+
id: string;
|
|
148
|
+
name: string;
|
|
149
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
150
|
+
readonly type: v.LiteralSchema<"ref", undefined>;
|
|
151
|
+
readonly id: v.StringSchema<undefined>;
|
|
152
|
+
}, undefined>, v.ReadonlyAction<{
|
|
153
|
+
type: "ref";
|
|
154
|
+
id: string;
|
|
155
|
+
}>]>, v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
156
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
157
|
+
readonly id: v.StringSchema<undefined>;
|
|
158
|
+
readonly name: v.StringSchema<undefined>;
|
|
159
|
+
}, undefined>, v.ReadonlyAction<{
|
|
160
|
+
type: "parameter";
|
|
161
|
+
id: string;
|
|
162
|
+
name: string;
|
|
163
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
164
|
+
readonly type: v.LiteralSchema<"ref", undefined>;
|
|
165
|
+
readonly id: v.StringSchema<undefined>;
|
|
166
|
+
}, undefined>, v.ReadonlyAction<{
|
|
167
|
+
type: "ref";
|
|
168
|
+
id: string;
|
|
169
|
+
}>]>, v.UnknownSchema], undefined>, undefined>, v.ReadonlyAction<{
|
|
170
|
+
[x: string]: unknown;
|
|
171
|
+
}>]>], undefined>, undefined>;
|
|
172
|
+
}, undefined>, v.ReadonlyAction<{
|
|
173
|
+
type: "input";
|
|
174
|
+
path: readonly (string | number)[] | Readonly<{
|
|
175
|
+
type: "parameter";
|
|
176
|
+
id: string;
|
|
177
|
+
name: string;
|
|
178
|
+
}> | Readonly<{
|
|
179
|
+
type: "ref";
|
|
180
|
+
id: string;
|
|
181
|
+
}>;
|
|
182
|
+
displayName?: string | Readonly<{
|
|
183
|
+
type: "parameter";
|
|
184
|
+
id: string;
|
|
185
|
+
name: string;
|
|
186
|
+
}> | Readonly<{
|
|
187
|
+
type: "ref";
|
|
188
|
+
id: string;
|
|
189
|
+
}> | undefined;
|
|
190
|
+
kind?: string | Readonly<{
|
|
191
|
+
type: "parameter";
|
|
192
|
+
id: string;
|
|
193
|
+
name: string;
|
|
194
|
+
}> | Readonly<{
|
|
195
|
+
type: "ref";
|
|
196
|
+
id: string;
|
|
197
|
+
}> | undefined;
|
|
198
|
+
metadata?: Readonly<{
|
|
199
|
+
type: "parameter";
|
|
200
|
+
id: string;
|
|
201
|
+
name: string;
|
|
202
|
+
}> | Readonly<{
|
|
203
|
+
type: "ref";
|
|
204
|
+
id: string;
|
|
205
|
+
}> | Readonly<{
|
|
206
|
+
[x: string]: unknown;
|
|
207
|
+
}> | undefined;
|
|
208
|
+
}>]>], undefined>, undefined>, v.ReadonlyAction<(Readonly<{
|
|
209
|
+
type: "parameter";
|
|
210
|
+
id: string;
|
|
211
|
+
name: string;
|
|
212
|
+
}> | Readonly<{
|
|
213
|
+
type: "ref";
|
|
214
|
+
id: string;
|
|
215
|
+
}> | Readonly<{
|
|
216
|
+
type: "input";
|
|
217
|
+
path: readonly (string | number)[] | Readonly<{
|
|
218
|
+
type: "parameter";
|
|
219
|
+
id: string;
|
|
220
|
+
name: string;
|
|
221
|
+
}> | Readonly<{
|
|
222
|
+
type: "ref";
|
|
223
|
+
id: string;
|
|
224
|
+
}>;
|
|
225
|
+
displayName?: string | Readonly<{
|
|
226
|
+
type: "parameter";
|
|
227
|
+
id: string;
|
|
228
|
+
name: string;
|
|
229
|
+
}> | Readonly<{
|
|
230
|
+
type: "ref";
|
|
231
|
+
id: string;
|
|
232
|
+
}> | undefined;
|
|
233
|
+
kind?: string | Readonly<{
|
|
234
|
+
type: "parameter";
|
|
235
|
+
id: string;
|
|
236
|
+
name: string;
|
|
237
|
+
}> | Readonly<{
|
|
238
|
+
type: "ref";
|
|
239
|
+
id: string;
|
|
240
|
+
}> | undefined;
|
|
241
|
+
metadata?: Readonly<{
|
|
242
|
+
type: "parameter";
|
|
243
|
+
id: string;
|
|
244
|
+
name: string;
|
|
245
|
+
}> | Readonly<{
|
|
246
|
+
type: "ref";
|
|
247
|
+
id: string;
|
|
248
|
+
}> | Readonly<{
|
|
249
|
+
[x: string]: unknown;
|
|
250
|
+
}> | undefined;
|
|
251
|
+
}>)[]>]>], undefined>;
|
|
81
252
|
}, undefined>, v.ReadonlyAction<{
|
|
82
253
|
type: "page";
|
|
83
254
|
label: string | Readonly<{
|
|
@@ -88,14 +259,57 @@ export declare const entitiesMap: {
|
|
|
88
259
|
type: "ref";
|
|
89
260
|
id: string;
|
|
90
261
|
}>;
|
|
91
|
-
|
|
262
|
+
inputs: Readonly<{
|
|
92
263
|
type: "parameter";
|
|
93
264
|
id: string;
|
|
94
265
|
name: string;
|
|
95
266
|
}> | Readonly<{
|
|
96
267
|
type: "ref";
|
|
97
268
|
id: string;
|
|
98
|
-
}
|
|
269
|
+
}> | readonly (Readonly<{
|
|
270
|
+
type: "parameter";
|
|
271
|
+
id: string;
|
|
272
|
+
name: string;
|
|
273
|
+
}> | Readonly<{
|
|
274
|
+
type: "ref";
|
|
275
|
+
id: string;
|
|
276
|
+
}> | Readonly<{
|
|
277
|
+
type: "input";
|
|
278
|
+
path: readonly (string | number)[] | Readonly<{
|
|
279
|
+
type: "parameter";
|
|
280
|
+
id: string;
|
|
281
|
+
name: string;
|
|
282
|
+
}> | Readonly<{
|
|
283
|
+
type: "ref";
|
|
284
|
+
id: string;
|
|
285
|
+
}>;
|
|
286
|
+
displayName?: string | Readonly<{
|
|
287
|
+
type: "parameter";
|
|
288
|
+
id: string;
|
|
289
|
+
name: string;
|
|
290
|
+
}> | Readonly<{
|
|
291
|
+
type: "ref";
|
|
292
|
+
id: string;
|
|
293
|
+
}> | undefined;
|
|
294
|
+
kind?: string | Readonly<{
|
|
295
|
+
type: "parameter";
|
|
296
|
+
id: string;
|
|
297
|
+
name: string;
|
|
298
|
+
}> | Readonly<{
|
|
299
|
+
type: "ref";
|
|
300
|
+
id: string;
|
|
301
|
+
}> | undefined;
|
|
302
|
+
metadata?: Readonly<{
|
|
303
|
+
type: "parameter";
|
|
304
|
+
id: string;
|
|
305
|
+
name: string;
|
|
306
|
+
}> | Readonly<{
|
|
307
|
+
type: "ref";
|
|
308
|
+
id: string;
|
|
309
|
+
}> | Readonly<{
|
|
310
|
+
[x: string]: unknown;
|
|
311
|
+
}> | undefined;
|
|
312
|
+
}>)[];
|
|
99
313
|
}>]>;
|
|
100
314
|
};
|
|
101
315
|
readonly uiDescribe: {
|
|
@@ -117,7 +331,21 @@ export declare const entitiesMap: {
|
|
|
117
331
|
type: "ref";
|
|
118
332
|
id: string;
|
|
119
333
|
}>]>, v.StringSchema<undefined>], undefined>;
|
|
120
|
-
readonly
|
|
334
|
+
readonly inputs: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
335
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
336
|
+
readonly id: v.StringSchema<undefined>;
|
|
337
|
+
readonly name: v.StringSchema<undefined>;
|
|
338
|
+
}, undefined>, v.ReadonlyAction<{
|
|
339
|
+
type: "parameter";
|
|
340
|
+
id: string;
|
|
341
|
+
name: string;
|
|
342
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
343
|
+
readonly type: v.LiteralSchema<"ref", undefined>;
|
|
344
|
+
readonly id: v.StringSchema<undefined>;
|
|
345
|
+
}, undefined>, v.ReadonlyAction<{
|
|
346
|
+
type: "ref";
|
|
347
|
+
id: string;
|
|
348
|
+
}>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
121
349
|
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
122
350
|
readonly id: v.StringSchema<undefined>;
|
|
123
351
|
readonly name: v.StringSchema<undefined>;
|
|
@@ -131,7 +359,164 @@ export declare const entitiesMap: {
|
|
|
131
359
|
}, undefined>, v.ReadonlyAction<{
|
|
132
360
|
type: "ref";
|
|
133
361
|
id: string;
|
|
134
|
-
}>]>, v.SchemaWithPipe<readonly [v.
|
|
362
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
363
|
+
readonly type: v.LiteralSchema<"input", undefined>;
|
|
364
|
+
readonly path: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
365
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
366
|
+
readonly id: v.StringSchema<undefined>;
|
|
367
|
+
readonly name: v.StringSchema<undefined>;
|
|
368
|
+
}, undefined>, v.ReadonlyAction<{
|
|
369
|
+
type: "parameter";
|
|
370
|
+
id: string;
|
|
371
|
+
name: string;
|
|
372
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
373
|
+
readonly type: v.LiteralSchema<"ref", undefined>;
|
|
374
|
+
readonly id: v.StringSchema<undefined>;
|
|
375
|
+
}, undefined>, v.ReadonlyAction<{
|
|
376
|
+
type: "ref";
|
|
377
|
+
id: string;
|
|
378
|
+
}>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>], undefined>;
|
|
379
|
+
readonly displayName: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
380
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
381
|
+
readonly id: v.StringSchema<undefined>;
|
|
382
|
+
readonly name: v.StringSchema<undefined>;
|
|
383
|
+
}, undefined>, v.ReadonlyAction<{
|
|
384
|
+
type: "parameter";
|
|
385
|
+
id: string;
|
|
386
|
+
name: string;
|
|
387
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
388
|
+
readonly type: v.LiteralSchema<"ref", undefined>;
|
|
389
|
+
readonly id: v.StringSchema<undefined>;
|
|
390
|
+
}, undefined>, v.ReadonlyAction<{
|
|
391
|
+
type: "ref";
|
|
392
|
+
id: string;
|
|
393
|
+
}>]>, v.StringSchema<undefined>], undefined>, undefined>;
|
|
394
|
+
readonly kind: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
395
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
396
|
+
readonly id: v.StringSchema<undefined>;
|
|
397
|
+
readonly name: v.StringSchema<undefined>;
|
|
398
|
+
}, undefined>, v.ReadonlyAction<{
|
|
399
|
+
type: "parameter";
|
|
400
|
+
id: string;
|
|
401
|
+
name: string;
|
|
402
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
403
|
+
readonly type: v.LiteralSchema<"ref", undefined>;
|
|
404
|
+
readonly id: v.StringSchema<undefined>;
|
|
405
|
+
}, undefined>, v.ReadonlyAction<{
|
|
406
|
+
type: "ref";
|
|
407
|
+
id: string;
|
|
408
|
+
}>]>, v.StringSchema<undefined>], undefined>, undefined>;
|
|
409
|
+
readonly metadata: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
410
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
411
|
+
readonly id: v.StringSchema<undefined>;
|
|
412
|
+
readonly name: v.StringSchema<undefined>;
|
|
413
|
+
}, undefined>, v.ReadonlyAction<{
|
|
414
|
+
type: "parameter";
|
|
415
|
+
id: string;
|
|
416
|
+
name: string;
|
|
417
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
418
|
+
readonly type: v.LiteralSchema<"ref", undefined>;
|
|
419
|
+
readonly id: v.StringSchema<undefined>;
|
|
420
|
+
}, undefined>, v.ReadonlyAction<{
|
|
421
|
+
type: "ref";
|
|
422
|
+
id: string;
|
|
423
|
+
}>]>, v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
424
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
425
|
+
readonly id: v.StringSchema<undefined>;
|
|
426
|
+
readonly name: v.StringSchema<undefined>;
|
|
427
|
+
}, undefined>, v.ReadonlyAction<{
|
|
428
|
+
type: "parameter";
|
|
429
|
+
id: string;
|
|
430
|
+
name: string;
|
|
431
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
432
|
+
readonly type: v.LiteralSchema<"ref", undefined>;
|
|
433
|
+
readonly id: v.StringSchema<undefined>;
|
|
434
|
+
}, undefined>, v.ReadonlyAction<{
|
|
435
|
+
type: "ref";
|
|
436
|
+
id: string;
|
|
437
|
+
}>]>, v.UnknownSchema], undefined>, undefined>, v.ReadonlyAction<{
|
|
438
|
+
[x: string]: unknown;
|
|
439
|
+
}>]>], undefined>, undefined>;
|
|
440
|
+
}, undefined>, v.ReadonlyAction<{
|
|
441
|
+
type: "input";
|
|
442
|
+
path: readonly (string | number)[] | Readonly<{
|
|
443
|
+
type: "parameter";
|
|
444
|
+
id: string;
|
|
445
|
+
name: string;
|
|
446
|
+
}> | Readonly<{
|
|
447
|
+
type: "ref";
|
|
448
|
+
id: string;
|
|
449
|
+
}>;
|
|
450
|
+
displayName?: string | Readonly<{
|
|
451
|
+
type: "parameter";
|
|
452
|
+
id: string;
|
|
453
|
+
name: string;
|
|
454
|
+
}> | Readonly<{
|
|
455
|
+
type: "ref";
|
|
456
|
+
id: string;
|
|
457
|
+
}> | undefined;
|
|
458
|
+
kind?: string | Readonly<{
|
|
459
|
+
type: "parameter";
|
|
460
|
+
id: string;
|
|
461
|
+
name: string;
|
|
462
|
+
}> | Readonly<{
|
|
463
|
+
type: "ref";
|
|
464
|
+
id: string;
|
|
465
|
+
}> | undefined;
|
|
466
|
+
metadata?: Readonly<{
|
|
467
|
+
type: "parameter";
|
|
468
|
+
id: string;
|
|
469
|
+
name: string;
|
|
470
|
+
}> | Readonly<{
|
|
471
|
+
type: "ref";
|
|
472
|
+
id: string;
|
|
473
|
+
}> | Readonly<{
|
|
474
|
+
[x: string]: unknown;
|
|
475
|
+
}> | undefined;
|
|
476
|
+
}>]>], undefined>, undefined>, v.ReadonlyAction<(Readonly<{
|
|
477
|
+
type: "parameter";
|
|
478
|
+
id: string;
|
|
479
|
+
name: string;
|
|
480
|
+
}> | Readonly<{
|
|
481
|
+
type: "ref";
|
|
482
|
+
id: string;
|
|
483
|
+
}> | Readonly<{
|
|
484
|
+
type: "input";
|
|
485
|
+
path: readonly (string | number)[] | Readonly<{
|
|
486
|
+
type: "parameter";
|
|
487
|
+
id: string;
|
|
488
|
+
name: string;
|
|
489
|
+
}> | Readonly<{
|
|
490
|
+
type: "ref";
|
|
491
|
+
id: string;
|
|
492
|
+
}>;
|
|
493
|
+
displayName?: string | Readonly<{
|
|
494
|
+
type: "parameter";
|
|
495
|
+
id: string;
|
|
496
|
+
name: string;
|
|
497
|
+
}> | Readonly<{
|
|
498
|
+
type: "ref";
|
|
499
|
+
id: string;
|
|
500
|
+
}> | undefined;
|
|
501
|
+
kind?: string | Readonly<{
|
|
502
|
+
type: "parameter";
|
|
503
|
+
id: string;
|
|
504
|
+
name: string;
|
|
505
|
+
}> | Readonly<{
|
|
506
|
+
type: "ref";
|
|
507
|
+
id: string;
|
|
508
|
+
}> | undefined;
|
|
509
|
+
metadata?: Readonly<{
|
|
510
|
+
type: "parameter";
|
|
511
|
+
id: string;
|
|
512
|
+
name: string;
|
|
513
|
+
}> | Readonly<{
|
|
514
|
+
type: "ref";
|
|
515
|
+
id: string;
|
|
516
|
+
}> | Readonly<{
|
|
517
|
+
[x: string]: unknown;
|
|
518
|
+
}> | undefined;
|
|
519
|
+
}>)[]>]>], undefined>;
|
|
135
520
|
}, undefined>, v.ReadonlyAction<{
|
|
136
521
|
type: "describe";
|
|
137
522
|
label: string | Readonly<{
|
|
@@ -142,20 +527,181 @@ export declare const entitiesMap: {
|
|
|
142
527
|
type: "ref";
|
|
143
528
|
id: string;
|
|
144
529
|
}>;
|
|
145
|
-
|
|
530
|
+
inputs: Readonly<{
|
|
146
531
|
type: "parameter";
|
|
147
532
|
id: string;
|
|
148
533
|
name: string;
|
|
149
534
|
}> | Readonly<{
|
|
150
535
|
type: "ref";
|
|
151
536
|
id: string;
|
|
152
|
-
}
|
|
537
|
+
}> | readonly (Readonly<{
|
|
538
|
+
type: "parameter";
|
|
539
|
+
id: string;
|
|
540
|
+
name: string;
|
|
541
|
+
}> | Readonly<{
|
|
542
|
+
type: "ref";
|
|
543
|
+
id: string;
|
|
544
|
+
}> | Readonly<{
|
|
545
|
+
type: "input";
|
|
546
|
+
path: readonly (string | number)[] | Readonly<{
|
|
547
|
+
type: "parameter";
|
|
548
|
+
id: string;
|
|
549
|
+
name: string;
|
|
550
|
+
}> | Readonly<{
|
|
551
|
+
type: "ref";
|
|
552
|
+
id: string;
|
|
553
|
+
}>;
|
|
554
|
+
displayName?: string | Readonly<{
|
|
555
|
+
type: "parameter";
|
|
556
|
+
id: string;
|
|
557
|
+
name: string;
|
|
558
|
+
}> | Readonly<{
|
|
559
|
+
type: "ref";
|
|
560
|
+
id: string;
|
|
561
|
+
}> | undefined;
|
|
562
|
+
kind?: string | Readonly<{
|
|
563
|
+
type: "parameter";
|
|
564
|
+
id: string;
|
|
565
|
+
name: string;
|
|
566
|
+
}> | Readonly<{
|
|
567
|
+
type: "ref";
|
|
568
|
+
id: string;
|
|
569
|
+
}> | undefined;
|
|
570
|
+
metadata?: Readonly<{
|
|
571
|
+
type: "parameter";
|
|
572
|
+
id: string;
|
|
573
|
+
name: string;
|
|
574
|
+
}> | Readonly<{
|
|
575
|
+
type: "ref";
|
|
576
|
+
id: string;
|
|
577
|
+
}> | Readonly<{
|
|
578
|
+
[x: string]: unknown;
|
|
579
|
+
}> | undefined;
|
|
580
|
+
}>)[];
|
|
153
581
|
}>]>;
|
|
154
582
|
};
|
|
155
583
|
readonly uiPages: {
|
|
156
584
|
readonly runtime: v.InstanceSchema<typeof import("./index.js").BuilderUIPages, undefined>;
|
|
157
585
|
readonly serialised: v.GenericSchema<import("./index.js").BuilderUIPagesSerialised>;
|
|
158
586
|
};
|
|
587
|
+
readonly uiInput: {
|
|
588
|
+
readonly runtime: v.InstanceSchema<typeof import("./index.js").BuilderUIInput, undefined>;
|
|
589
|
+
readonly serialised: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
590
|
+
readonly type: v.LiteralSchema<"input", undefined>;
|
|
591
|
+
readonly path: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
592
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
593
|
+
readonly id: v.StringSchema<undefined>;
|
|
594
|
+
readonly name: v.StringSchema<undefined>;
|
|
595
|
+
}, undefined>, v.ReadonlyAction<{
|
|
596
|
+
type: "parameter";
|
|
597
|
+
id: string;
|
|
598
|
+
name: string;
|
|
599
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
600
|
+
readonly type: v.LiteralSchema<"ref", undefined>;
|
|
601
|
+
readonly id: v.StringSchema<undefined>;
|
|
602
|
+
}, undefined>, v.ReadonlyAction<{
|
|
603
|
+
type: "ref";
|
|
604
|
+
id: string;
|
|
605
|
+
}>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>], undefined>;
|
|
606
|
+
readonly displayName: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
607
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
608
|
+
readonly id: v.StringSchema<undefined>;
|
|
609
|
+
readonly name: v.StringSchema<undefined>;
|
|
610
|
+
}, undefined>, v.ReadonlyAction<{
|
|
611
|
+
type: "parameter";
|
|
612
|
+
id: string;
|
|
613
|
+
name: string;
|
|
614
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
615
|
+
readonly type: v.LiteralSchema<"ref", undefined>;
|
|
616
|
+
readonly id: v.StringSchema<undefined>;
|
|
617
|
+
}, undefined>, v.ReadonlyAction<{
|
|
618
|
+
type: "ref";
|
|
619
|
+
id: string;
|
|
620
|
+
}>]>, v.StringSchema<undefined>], undefined>, undefined>;
|
|
621
|
+
readonly kind: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
622
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
623
|
+
readonly id: v.StringSchema<undefined>;
|
|
624
|
+
readonly name: v.StringSchema<undefined>;
|
|
625
|
+
}, undefined>, v.ReadonlyAction<{
|
|
626
|
+
type: "parameter";
|
|
627
|
+
id: string;
|
|
628
|
+
name: string;
|
|
629
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
630
|
+
readonly type: v.LiteralSchema<"ref", undefined>;
|
|
631
|
+
readonly id: v.StringSchema<undefined>;
|
|
632
|
+
}, undefined>, v.ReadonlyAction<{
|
|
633
|
+
type: "ref";
|
|
634
|
+
id: string;
|
|
635
|
+
}>]>, v.StringSchema<undefined>], undefined>, undefined>;
|
|
636
|
+
readonly metadata: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
637
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
638
|
+
readonly id: v.StringSchema<undefined>;
|
|
639
|
+
readonly name: v.StringSchema<undefined>;
|
|
640
|
+
}, undefined>, v.ReadonlyAction<{
|
|
641
|
+
type: "parameter";
|
|
642
|
+
id: string;
|
|
643
|
+
name: string;
|
|
644
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
645
|
+
readonly type: v.LiteralSchema<"ref", undefined>;
|
|
646
|
+
readonly id: v.StringSchema<undefined>;
|
|
647
|
+
}, undefined>, v.ReadonlyAction<{
|
|
648
|
+
type: "ref";
|
|
649
|
+
id: string;
|
|
650
|
+
}>]>, v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
651
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
652
|
+
readonly id: v.StringSchema<undefined>;
|
|
653
|
+
readonly name: v.StringSchema<undefined>;
|
|
654
|
+
}, undefined>, v.ReadonlyAction<{
|
|
655
|
+
type: "parameter";
|
|
656
|
+
id: string;
|
|
657
|
+
name: string;
|
|
658
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
659
|
+
readonly type: v.LiteralSchema<"ref", undefined>;
|
|
660
|
+
readonly id: v.StringSchema<undefined>;
|
|
661
|
+
}, undefined>, v.ReadonlyAction<{
|
|
662
|
+
type: "ref";
|
|
663
|
+
id: string;
|
|
664
|
+
}>]>, v.UnknownSchema], undefined>, undefined>, v.ReadonlyAction<{
|
|
665
|
+
[x: string]: unknown;
|
|
666
|
+
}>]>], undefined>, undefined>;
|
|
667
|
+
}, undefined>, v.ReadonlyAction<{
|
|
668
|
+
type: "input";
|
|
669
|
+
path: readonly (string | number)[] | Readonly<{
|
|
670
|
+
type: "parameter";
|
|
671
|
+
id: string;
|
|
672
|
+
name: string;
|
|
673
|
+
}> | Readonly<{
|
|
674
|
+
type: "ref";
|
|
675
|
+
id: string;
|
|
676
|
+
}>;
|
|
677
|
+
displayName?: string | Readonly<{
|
|
678
|
+
type: "parameter";
|
|
679
|
+
id: string;
|
|
680
|
+
name: string;
|
|
681
|
+
}> | Readonly<{
|
|
682
|
+
type: "ref";
|
|
683
|
+
id: string;
|
|
684
|
+
}> | undefined;
|
|
685
|
+
kind?: string | Readonly<{
|
|
686
|
+
type: "parameter";
|
|
687
|
+
id: string;
|
|
688
|
+
name: string;
|
|
689
|
+
}> | Readonly<{
|
|
690
|
+
type: "ref";
|
|
691
|
+
id: string;
|
|
692
|
+
}> | undefined;
|
|
693
|
+
metadata?: Readonly<{
|
|
694
|
+
type: "parameter";
|
|
695
|
+
id: string;
|
|
696
|
+
name: string;
|
|
697
|
+
}> | Readonly<{
|
|
698
|
+
type: "ref";
|
|
699
|
+
id: string;
|
|
700
|
+
}> | Readonly<{
|
|
701
|
+
[x: string]: unknown;
|
|
702
|
+
}> | undefined;
|
|
703
|
+
}>]>;
|
|
704
|
+
};
|
|
159
705
|
readonly componentDetails: {
|
|
160
706
|
readonly runtime: v.InstanceSchema<typeof import("./index.js").BuilderComponentDetails, undefined>;
|
|
161
707
|
readonly serialised: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
@@ -7,7 +7,7 @@ import { BuilderComponentDetailsSchema, BuilderComponentDetailsSerialisedSchema,
|
|
|
7
7
|
import { BuilderExpectationSchema, BuilderExpectationsSchema, BuilderExpectationsSerialisedSchema } from './expectation.js';
|
|
8
8
|
import { BuilderModelSchema, BuilderModelSerialisedSchema } from './model/index.js';
|
|
9
9
|
import { BuilderOptionSchema, BuilderOptionSelectMapSerialisedSchema, BuilderOptionWhenSerialisedSchema, BuilderSelectTypeSchema, BuilderSelectTypeSerialisedSchema, BuilderToggleTypeSchema, BuilderToggleTypeSerialisedSchema } from './option/index.js';
|
|
10
|
-
import { BuilderUIDescribeSchema, BuilderUIDescribeSerialisedSchema, BuilderUIItemsSerialisedSchema, BuilderUIPageSchema, BuilderUIPageSerialisedSchema, BuilderUIPagesSchema, BuilderUIPagesSerialisedSchema, BuilderUISchema, BuilderUISerialisedSchema } from './ui/index.js';
|
|
10
|
+
import { BuilderUIDescribeSchema, BuilderUIDescribeSerialisedSchema, BuilderUIInputSchema, BuilderUIInputSerialisedSchema, BuilderUIItemsSerialisedSchema, BuilderUIPageSchema, BuilderUIPageSerialisedSchema, BuilderUIPagesSchema, BuilderUIPagesSerialisedSchema, BuilderUISchema, BuilderUISerialisedSchema } from './ui/index.js';
|
|
11
11
|
import { BuilderSchema, BuilderSerialisedSchema } from './builder/index.js';
|
|
12
12
|
export const entitiesMap = {
|
|
13
13
|
builder: { runtime: BuilderSchema, serialised: BuilderSerialisedSchema },
|
|
@@ -18,6 +18,7 @@ export const entitiesMap = {
|
|
|
18
18
|
uiPage: { runtime: BuilderUIPageSchema, serialised: BuilderUIPageSerialisedSchema },
|
|
19
19
|
uiDescribe: { runtime: BuilderUIDescribeSchema, serialised: BuilderUIDescribeSerialisedSchema },
|
|
20
20
|
uiPages: { runtime: BuilderUIPagesSchema, serialised: BuilderUIPagesSerialisedSchema },
|
|
21
|
+
uiInput: { runtime: BuilderUIInputSchema, serialised: BuilderUIInputSerialisedSchema },
|
|
21
22
|
componentDetails: {
|
|
22
23
|
runtime: BuilderComponentDetailsSchema,
|
|
23
24
|
serialised: BuilderComponentDetailsSerialisedSchema
|
|
@@ -109,12 +110,12 @@ const serialiserMap = [
|
|
|
109
110
|
serialiser(BuilderUIPageSchema, (value) => ({
|
|
110
111
|
type: 'page',
|
|
111
112
|
label: serialiseValue(value.label),
|
|
112
|
-
|
|
113
|
+
inputs: serialiseValue(value.inputs)
|
|
113
114
|
})),
|
|
114
115
|
serialiser(BuilderUIDescribeSchema, (value) => ({
|
|
115
116
|
type: 'describe',
|
|
116
117
|
label: serialiseValue(value.label),
|
|
117
|
-
|
|
118
|
+
inputs: serialiseValue(value.inputs)
|
|
118
119
|
})),
|
|
119
120
|
serialiser(BuilderUIPagesSchema, (value) => ({
|
|
120
121
|
type: 'pages',
|
|
@@ -122,6 +123,7 @@ const serialiserMap = [
|
|
|
122
123
|
label: serialiseValue(value.label),
|
|
123
124
|
items: serialiseValue(value.items)
|
|
124
125
|
})),
|
|
126
|
+
serialiser(BuilderUIInputSchema, (value) => serialiseRecord({ ...value })),
|
|
125
127
|
serialiser(BuilderOptionSchema, serialiseNamedEntry),
|
|
126
128
|
serialiser(BuilderComponentSchema, serialiseNamedEntry),
|
|
127
129
|
serialiser(BuilderCollectionSchema, serialiseNamedEntry),
|