@builder-builder/builder 0.0.26 → 0.0.28
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/bb.js +4 -4
- package/dist/client/client.d.ts +2 -1
- package/dist/client/client.js +4 -1
- package/dist/client/public.d.ts +2 -2
- package/dist/client/public.js +1 -1
- package/dist/client/schema.d.ts +103 -17
- package/dist/client/schema.js +7 -0
- package/dist/components/Builder.svelte.d.ts +24 -0
- package/dist/components/BuilderCollectionButtons.svelte.d.ts +22 -0
- package/dist/components/BuilderCollections.svelte.d.ts +23 -0
- package/dist/components/BuilderDescription.svelte.d.ts +18 -0
- package/dist/components/BuilderLayout.svelte.d.ts +24 -0
- package/dist/components/BuilderOption.svelte.d.ts +31 -0
- package/dist/components/BuilderOptionSelect.svelte.d.ts +21 -0
- package/dist/components/BuilderOptionToggleBoolean.svelte.d.ts +20 -0
- package/dist/components/BuilderOptionToggleNumber.svelte.d.ts +21 -0
- package/dist/components/BuilderOptionToggleString.svelte.d.ts +21 -0
- package/dist/components/BuilderPrice.svelte.d.ts +21 -0
- package/dist/components/BuilderRender.svelte.d.ts +39 -0
- package/dist/components/config.d.ts +2 -0
- package/dist/components/config.js +1 -0
- package/dist/components/dispatch.d.ts +1 -0
- package/dist/components/dispatch.js +3 -0
- package/dist/components/id.d.ts +1 -0
- package/dist/components/id.js +3 -0
- package/dist/components/index.d.ts +25 -0
- package/dist/components/index.js +7515 -0
- package/dist/components/index.min.js +3 -0
- package/dist/entities/collection/collection.d.ts +66 -66
- package/dist/entities/collection/config.d.ts +17 -17
- package/dist/entities/collection/when.d.ts +1 -1
- package/dist/entities/component/component.d.ts +64 -64
- package/dist/entities/component/config.d.ts +33 -33
- package/dist/entities/component/config.js +18 -16
- package/dist/entities/component/detail.d.ts +61 -0
- package/dist/entities/component/detail.js +71 -0
- package/dist/entities/component/index.d.ts +2 -2
- package/dist/entities/component/index.js +1 -1
- package/dist/entities/component/when.d.ts +2 -2
- package/dist/entities/expectation.d.ts +1 -1
- package/dist/entities/index.d.ts +4 -4
- package/dist/entities/index.js +1 -1
- package/dist/entities/kind.d.ts +3 -3
- package/dist/entities/kind.js +20 -20
- package/dist/entities/model/methods.d.ts +1 -1
- package/dist/entities/option/config.d.ts +7 -7
- package/dist/entities/option/config.js +1 -1
- package/dist/entities/option/index.d.ts +4 -4
- package/dist/entities/option/index.js +2 -2
- package/dist/entities/option/option.d.ts +22 -22
- package/dist/entities/option/select.d.ts +1 -1
- package/dist/entities/option/toggle.d.ts +9 -9
- package/dist/entities/option/toggle.js +15 -10
- package/dist/entities/option/when.d.ts +1 -1
- package/dist/entities/paths.d.ts +2 -2
- package/dist/entities/pricing/expression.d.ts +16 -39
- package/dist/entities/pricing/expression.js +1 -16
- package/dist/entities/pricing/index.d.ts +1 -1
- package/dist/entities/pricing/rates.d.ts +1 -1
- package/dist/entities/references.d.ts +72 -24
- package/dist/entities/serialise.d.ts +148 -32
- package/dist/entities/serialise.js +7 -7
- package/dist/entities/ui/describe.d.ts +49 -1
- package/dist/entities/ui/input.d.ts +67 -2
- package/dist/entities/ui/input.js +8 -2
- package/dist/entities/ui/page.d.ts +49 -1
- package/dist/entities/ui/pages.d.ts +10 -2
- package/dist/entities/validated.d.ts +2 -2
- package/dist/entities/when.d.ts +5 -5
- package/dist/environment.d.ts +2 -2
- package/dist/errors/errors.d.ts +86 -55
- package/dist/errors/errors.js +36 -5
- package/dist/errors/exception.d.ts +3 -3
- package/dist/errors/index.d.ts +1 -1
- package/dist/errors/index.js +1 -1
- package/dist/errors/public.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/instance.d.ts +53 -9
- package/dist/instance.js +6 -2
- package/dist/mappers/dependencies.d.ts +3 -0
- package/dist/mappers/dependencies.js +44 -0
- package/dist/mappers/index.d.ts +2 -2
- package/dist/mappers/index.js +2 -1
- package/dist/mappers/instance.js +26 -21
- package/dist/mappers/order.js +4 -2
- package/dist/mappers/price.js +6 -4
- package/dist/mappers/render/option.d.ts +1 -0
- package/dist/mappers/render/option.js +1 -0
- package/dist/mappers/variants/index.d.ts +1 -2
- package/dist/mappers/variants/index.js +1 -2
- package/dist/mappers/variants/option-graph.d.ts +1 -2
- package/dist/mappers/variants/option-graph.js +3 -17
- package/dist/mappers/variants/variants.d.ts +3 -6
- package/dist/mappers/variants/variants.js +34 -11
- package/dist/primitive.d.ts +3 -0
- package/dist/primitive.js +2 -0
- package/dist/public.d.ts +8 -8
- package/dist/public.js +1 -1
- package/dist/validate/builder.d.ts +2 -2
- package/dist/validate/builder.js +15 -15
- package/dist/validate/expectations.d.ts +2 -2
- package/dist/validate/expectations.js +3 -3
- package/dist/validate/instance.d.ts +2 -2
- package/dist/validate/instance.js +31 -13
- package/dist/validate/model.d.ts +4 -4
- package/dist/validate/model.js +51 -42
- package/dist/validate/paths.d.ts +2 -2
- package/dist/validate/paths.js +19 -14
- package/dist/validate/pricing.d.ts +4 -4
- package/dist/validate/pricing.js +31 -31
- package/dist/validate/resolve.d.ts +2 -2
- package/dist/validate/resolve.js +18 -18
- package/dist/validate/ui.d.ts +4 -4
- package/dist/validate/ui.js +38 -38
- package/dist/validate/variants.d.ts +3 -3
- package/dist/validate/variants.js +32 -31
- package/package.json +9 -5
- package/dist/entities/component/field.d.ts +0 -59
- package/dist/entities/component/field.js +0 -52
|
@@ -12,7 +12,7 @@ export declare const BuilderReferenceSchema: v.ObjectSchema<{
|
|
|
12
12
|
tags?: readonly string[] | undefined;
|
|
13
13
|
}> | Readonly<{
|
|
14
14
|
type: "toggle";
|
|
15
|
-
|
|
15
|
+
kind: "string" | "number" | "boolean";
|
|
16
16
|
defaultValue: string | number | boolean | null;
|
|
17
17
|
isOptional: boolean;
|
|
18
18
|
tags?: readonly string[] | undefined;
|
|
@@ -31,7 +31,7 @@ export declare const BuilderReferenceSchema: v.ObjectSchema<{
|
|
|
31
31
|
tags?: readonly string[] | undefined;
|
|
32
32
|
}>> | Readonly<Readonly<{
|
|
33
33
|
type: "toggle";
|
|
34
|
-
|
|
34
|
+
kind: "string" | "number" | "boolean";
|
|
35
35
|
defaultValue: string | number | boolean | null;
|
|
36
36
|
isOptional: boolean;
|
|
37
37
|
tags?: readonly string[] | undefined;
|
|
@@ -46,12 +46,12 @@ export declare const BuilderReferenceSchema: v.ObjectSchema<{
|
|
|
46
46
|
tags?: readonly string[] | undefined;
|
|
47
47
|
}>> | Readonly<Readonly<{
|
|
48
48
|
type: "toggle";
|
|
49
|
-
|
|
49
|
+
kind: "string" | "number" | "boolean";
|
|
50
50
|
defaultValue: string | number | boolean | null;
|
|
51
51
|
isOptional: boolean;
|
|
52
52
|
tags?: readonly string[] | undefined;
|
|
53
53
|
}>>> | Readonly<{
|
|
54
|
-
|
|
54
|
+
details: Readonly<{
|
|
55
55
|
type: "parameter";
|
|
56
56
|
id: string;
|
|
57
57
|
name: string;
|
|
@@ -59,9 +59,9 @@ export declare const BuilderReferenceSchema: v.ObjectSchema<{
|
|
|
59
59
|
type: "ref";
|
|
60
60
|
id: string;
|
|
61
61
|
}> | readonly Readonly<{
|
|
62
|
-
type: "component-
|
|
62
|
+
type: "component-detail";
|
|
63
63
|
name: string;
|
|
64
|
-
|
|
64
|
+
kind: "string" | "number" | "boolean" | "price" | "image";
|
|
65
65
|
isOptional: boolean;
|
|
66
66
|
tags?: readonly string[] | undefined;
|
|
67
67
|
}>[];
|
|
@@ -71,7 +71,7 @@ export declare const BuilderReferenceSchema: v.ObjectSchema<{
|
|
|
71
71
|
id: string;
|
|
72
72
|
name: string;
|
|
73
73
|
}> | Readonly<{
|
|
74
|
-
|
|
74
|
+
details: Readonly<{
|
|
75
75
|
type: "parameter";
|
|
76
76
|
id: string;
|
|
77
77
|
name: string;
|
|
@@ -79,15 +79,15 @@ export declare const BuilderReferenceSchema: v.ObjectSchema<{
|
|
|
79
79
|
type: "ref";
|
|
80
80
|
id: string;
|
|
81
81
|
}> | readonly Readonly<{
|
|
82
|
-
type: "component-
|
|
82
|
+
type: "component-detail";
|
|
83
83
|
name: string;
|
|
84
|
-
|
|
84
|
+
kind: "string" | "number" | "boolean" | "price" | "image";
|
|
85
85
|
isOptional: boolean;
|
|
86
86
|
tags?: readonly string[] | undefined;
|
|
87
87
|
}>[];
|
|
88
88
|
tags?: readonly string[] | undefined;
|
|
89
89
|
}>> | import("./when.js").BuilderWhenSerialised<Readonly<{
|
|
90
|
-
|
|
90
|
+
details: Readonly<{
|
|
91
91
|
type: "parameter";
|
|
92
92
|
id: string;
|
|
93
93
|
name: string;
|
|
@@ -95,9 +95,9 @@ export declare const BuilderReferenceSchema: v.ObjectSchema<{
|
|
|
95
95
|
type: "ref";
|
|
96
96
|
id: string;
|
|
97
97
|
}> | readonly Readonly<{
|
|
98
|
-
type: "component-
|
|
98
|
+
type: "component-detail";
|
|
99
99
|
name: string;
|
|
100
|
-
|
|
100
|
+
kind: "string" | "number" | "boolean" | "price" | "image";
|
|
101
101
|
isOptional: boolean;
|
|
102
102
|
tags?: readonly string[] | undefined;
|
|
103
103
|
}>[];
|
|
@@ -210,6 +210,14 @@ export declare const BuilderReferenceSchema: v.ObjectSchema<{
|
|
|
210
210
|
type: "ref";
|
|
211
211
|
id: string;
|
|
212
212
|
}> | undefined;
|
|
213
|
+
placeholderLabel?: string | Readonly<{
|
|
214
|
+
type: "parameter";
|
|
215
|
+
id: string;
|
|
216
|
+
name: string;
|
|
217
|
+
}> | Readonly<{
|
|
218
|
+
type: "ref";
|
|
219
|
+
id: string;
|
|
220
|
+
}> | undefined;
|
|
213
221
|
metadata?: Readonly<{
|
|
214
222
|
type: "parameter";
|
|
215
223
|
id: string;
|
|
@@ -271,6 +279,14 @@ export declare const BuilderReferenceSchema: v.ObjectSchema<{
|
|
|
271
279
|
type: "ref";
|
|
272
280
|
id: string;
|
|
273
281
|
}> | undefined;
|
|
282
|
+
placeholderLabel?: string | Readonly<{
|
|
283
|
+
type: "parameter";
|
|
284
|
+
id: string;
|
|
285
|
+
name: string;
|
|
286
|
+
}> | Readonly<{
|
|
287
|
+
type: "ref";
|
|
288
|
+
id: string;
|
|
289
|
+
}> | undefined;
|
|
274
290
|
metadata?: Readonly<{
|
|
275
291
|
type: "parameter";
|
|
276
292
|
id: string;
|
|
@@ -334,6 +350,14 @@ export declare const BuilderReferenceSchema: v.ObjectSchema<{
|
|
|
334
350
|
type: "ref";
|
|
335
351
|
id: string;
|
|
336
352
|
}> | undefined;
|
|
353
|
+
placeholderLabel?: string | Readonly<{
|
|
354
|
+
type: "parameter";
|
|
355
|
+
id: string;
|
|
356
|
+
name: string;
|
|
357
|
+
}> | Readonly<{
|
|
358
|
+
type: "ref";
|
|
359
|
+
id: string;
|
|
360
|
+
}> | undefined;
|
|
337
361
|
metadata?: Readonly<{
|
|
338
362
|
type: "parameter";
|
|
339
363
|
id: string;
|
|
@@ -373,7 +397,7 @@ export declare const BuilderReferencesSchema: v.ArraySchema<v.ObjectSchema<{
|
|
|
373
397
|
tags?: readonly string[] | undefined;
|
|
374
398
|
}> | Readonly<{
|
|
375
399
|
type: "toggle";
|
|
376
|
-
|
|
400
|
+
kind: "string" | "number" | "boolean";
|
|
377
401
|
defaultValue: string | number | boolean | null;
|
|
378
402
|
isOptional: boolean;
|
|
379
403
|
tags?: readonly string[] | undefined;
|
|
@@ -392,7 +416,7 @@ export declare const BuilderReferencesSchema: v.ArraySchema<v.ObjectSchema<{
|
|
|
392
416
|
tags?: readonly string[] | undefined;
|
|
393
417
|
}>> | Readonly<Readonly<{
|
|
394
418
|
type: "toggle";
|
|
395
|
-
|
|
419
|
+
kind: "string" | "number" | "boolean";
|
|
396
420
|
defaultValue: string | number | boolean | null;
|
|
397
421
|
isOptional: boolean;
|
|
398
422
|
tags?: readonly string[] | undefined;
|
|
@@ -407,12 +431,12 @@ export declare const BuilderReferencesSchema: v.ArraySchema<v.ObjectSchema<{
|
|
|
407
431
|
tags?: readonly string[] | undefined;
|
|
408
432
|
}>> | Readonly<Readonly<{
|
|
409
433
|
type: "toggle";
|
|
410
|
-
|
|
434
|
+
kind: "string" | "number" | "boolean";
|
|
411
435
|
defaultValue: string | number | boolean | null;
|
|
412
436
|
isOptional: boolean;
|
|
413
437
|
tags?: readonly string[] | undefined;
|
|
414
438
|
}>>> | Readonly<{
|
|
415
|
-
|
|
439
|
+
details: Readonly<{
|
|
416
440
|
type: "parameter";
|
|
417
441
|
id: string;
|
|
418
442
|
name: string;
|
|
@@ -420,9 +444,9 @@ export declare const BuilderReferencesSchema: v.ArraySchema<v.ObjectSchema<{
|
|
|
420
444
|
type: "ref";
|
|
421
445
|
id: string;
|
|
422
446
|
}> | readonly Readonly<{
|
|
423
|
-
type: "component-
|
|
447
|
+
type: "component-detail";
|
|
424
448
|
name: string;
|
|
425
|
-
|
|
449
|
+
kind: "string" | "number" | "boolean" | "price" | "image";
|
|
426
450
|
isOptional: boolean;
|
|
427
451
|
tags?: readonly string[] | undefined;
|
|
428
452
|
}>[];
|
|
@@ -432,7 +456,7 @@ export declare const BuilderReferencesSchema: v.ArraySchema<v.ObjectSchema<{
|
|
|
432
456
|
id: string;
|
|
433
457
|
name: string;
|
|
434
458
|
}> | Readonly<{
|
|
435
|
-
|
|
459
|
+
details: Readonly<{
|
|
436
460
|
type: "parameter";
|
|
437
461
|
id: string;
|
|
438
462
|
name: string;
|
|
@@ -440,15 +464,15 @@ export declare const BuilderReferencesSchema: v.ArraySchema<v.ObjectSchema<{
|
|
|
440
464
|
type: "ref";
|
|
441
465
|
id: string;
|
|
442
466
|
}> | readonly Readonly<{
|
|
443
|
-
type: "component-
|
|
467
|
+
type: "component-detail";
|
|
444
468
|
name: string;
|
|
445
|
-
|
|
469
|
+
kind: "string" | "number" | "boolean" | "price" | "image";
|
|
446
470
|
isOptional: boolean;
|
|
447
471
|
tags?: readonly string[] | undefined;
|
|
448
472
|
}>[];
|
|
449
473
|
tags?: readonly string[] | undefined;
|
|
450
474
|
}>> | import("./when.js").BuilderWhenSerialised<Readonly<{
|
|
451
|
-
|
|
475
|
+
details: Readonly<{
|
|
452
476
|
type: "parameter";
|
|
453
477
|
id: string;
|
|
454
478
|
name: string;
|
|
@@ -456,9 +480,9 @@ export declare const BuilderReferencesSchema: v.ArraySchema<v.ObjectSchema<{
|
|
|
456
480
|
type: "ref";
|
|
457
481
|
id: string;
|
|
458
482
|
}> | readonly Readonly<{
|
|
459
|
-
type: "component-
|
|
483
|
+
type: "component-detail";
|
|
460
484
|
name: string;
|
|
461
|
-
|
|
485
|
+
kind: "string" | "number" | "boolean" | "price" | "image";
|
|
462
486
|
isOptional: boolean;
|
|
463
487
|
tags?: readonly string[] | undefined;
|
|
464
488
|
}>[];
|
|
@@ -571,6 +595,14 @@ export declare const BuilderReferencesSchema: v.ArraySchema<v.ObjectSchema<{
|
|
|
571
595
|
type: "ref";
|
|
572
596
|
id: string;
|
|
573
597
|
}> | undefined;
|
|
598
|
+
placeholderLabel?: string | Readonly<{
|
|
599
|
+
type: "parameter";
|
|
600
|
+
id: string;
|
|
601
|
+
name: string;
|
|
602
|
+
}> | Readonly<{
|
|
603
|
+
type: "ref";
|
|
604
|
+
id: string;
|
|
605
|
+
}> | undefined;
|
|
574
606
|
metadata?: Readonly<{
|
|
575
607
|
type: "parameter";
|
|
576
608
|
id: string;
|
|
@@ -632,6 +664,14 @@ export declare const BuilderReferencesSchema: v.ArraySchema<v.ObjectSchema<{
|
|
|
632
664
|
type: "ref";
|
|
633
665
|
id: string;
|
|
634
666
|
}> | undefined;
|
|
667
|
+
placeholderLabel?: string | Readonly<{
|
|
668
|
+
type: "parameter";
|
|
669
|
+
id: string;
|
|
670
|
+
name: string;
|
|
671
|
+
}> | Readonly<{
|
|
672
|
+
type: "ref";
|
|
673
|
+
id: string;
|
|
674
|
+
}> | undefined;
|
|
635
675
|
metadata?: Readonly<{
|
|
636
676
|
type: "parameter";
|
|
637
677
|
id: string;
|
|
@@ -695,6 +735,14 @@ export declare const BuilderReferencesSchema: v.ArraySchema<v.ObjectSchema<{
|
|
|
695
735
|
type: "ref";
|
|
696
736
|
id: string;
|
|
697
737
|
}> | undefined;
|
|
738
|
+
placeholderLabel?: string | Readonly<{
|
|
739
|
+
type: "parameter";
|
|
740
|
+
id: string;
|
|
741
|
+
name: string;
|
|
742
|
+
}> | Readonly<{
|
|
743
|
+
type: "ref";
|
|
744
|
+
id: string;
|
|
745
|
+
}> | undefined;
|
|
698
746
|
metadata?: Readonly<{
|
|
699
747
|
type: "parameter";
|
|
700
748
|
id: string;
|
|
@@ -33,13 +33,13 @@ export declare const entitiesMap: {
|
|
|
33
33
|
readonly runtime: v.InstanceSchema<typeof import(".").BuilderToggleConfig, undefined>;
|
|
34
34
|
readonly serialised: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
35
35
|
readonly type: v.LiteralSchema<"toggle", undefined>;
|
|
36
|
-
readonly
|
|
36
|
+
readonly kind: v.PicklistSchema<["string", "boolean", "number"], undefined>;
|
|
37
37
|
readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
|
|
38
38
|
readonly isOptional: v.BooleanSchema<undefined>;
|
|
39
39
|
readonly tags: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
|
|
40
40
|
}, undefined>, v.ReadonlyAction<{
|
|
41
41
|
type: "toggle";
|
|
42
|
-
|
|
42
|
+
kind: "string" | "number" | "boolean";
|
|
43
43
|
defaultValue: string | number | boolean | null;
|
|
44
44
|
isOptional: boolean;
|
|
45
45
|
tags?: readonly string[] | undefined;
|
|
@@ -61,7 +61,7 @@ export declare const entitiesMap: {
|
|
|
61
61
|
tags?: readonly string[] | undefined;
|
|
62
62
|
}>> | Readonly<Readonly<{
|
|
63
63
|
type: "toggle";
|
|
64
|
-
|
|
64
|
+
kind: "string" | "number" | "boolean";
|
|
65
65
|
defaultValue: string | number | boolean | null;
|
|
66
66
|
isOptional: boolean;
|
|
67
67
|
tags?: readonly string[] | undefined;
|
|
@@ -81,7 +81,7 @@ export declare const entitiesMap: {
|
|
|
81
81
|
tags?: readonly string[] | undefined;
|
|
82
82
|
}>> | Readonly<Readonly<{
|
|
83
83
|
type: "toggle";
|
|
84
|
-
|
|
84
|
+
kind: "string" | "number" | "boolean";
|
|
85
85
|
defaultValue: string | number | boolean | null;
|
|
86
86
|
isOptional: boolean;
|
|
87
87
|
tags?: readonly string[] | undefined;
|
|
@@ -99,7 +99,7 @@ export declare const entitiesMap: {
|
|
|
99
99
|
tags?: readonly string[] | undefined;
|
|
100
100
|
}>> | Readonly<Readonly<{
|
|
101
101
|
type: "toggle";
|
|
102
|
-
|
|
102
|
+
kind: "string" | "number" | "boolean";
|
|
103
103
|
defaultValue: string | number | boolean | null;
|
|
104
104
|
isOptional: boolean;
|
|
105
105
|
tags?: readonly string[] | undefined;
|
|
@@ -115,7 +115,7 @@ export declare const entitiesMap: {
|
|
|
115
115
|
tags?: readonly string[] | undefined;
|
|
116
116
|
}>> | Readonly<Readonly<{
|
|
117
117
|
type: "toggle";
|
|
118
|
-
|
|
118
|
+
kind: "string" | "number" | "boolean";
|
|
119
119
|
defaultValue: string | number | boolean | null;
|
|
120
120
|
isOptional: boolean;
|
|
121
121
|
tags?: readonly string[] | undefined;
|
|
@@ -124,7 +124,7 @@ export declare const entitiesMap: {
|
|
|
124
124
|
readonly componentConfig: {
|
|
125
125
|
readonly runtime: v.InstanceSchema<typeof import(".").BuilderComponentConfig, undefined>;
|
|
126
126
|
readonly serialised: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
127
|
-
readonly
|
|
127
|
+
readonly details: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
128
128
|
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
129
129
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
130
130
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
@@ -139,27 +139,27 @@ export declare const entitiesMap: {
|
|
|
139
139
|
type: "ref";
|
|
140
140
|
id: string;
|
|
141
141
|
}>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
142
|
-
readonly type: v.LiteralSchema<"component-
|
|
142
|
+
readonly type: v.LiteralSchema<"component-detail", undefined>;
|
|
143
143
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
144
|
-
readonly
|
|
144
|
+
readonly kind: v.PicklistSchema<["string", "boolean", "number", "price", "image"], undefined>;
|
|
145
145
|
readonly isOptional: v.BooleanSchema<undefined>;
|
|
146
146
|
readonly tags: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
|
|
147
147
|
}, undefined>, v.ReadonlyAction<{
|
|
148
|
-
type: "component-
|
|
148
|
+
type: "component-detail";
|
|
149
149
|
name: string;
|
|
150
|
-
|
|
150
|
+
kind: "string" | "number" | "boolean" | "price" | "image";
|
|
151
151
|
isOptional: boolean;
|
|
152
152
|
tags?: readonly string[] | undefined;
|
|
153
153
|
}>]>, undefined>, v.ReadonlyAction<Readonly<{
|
|
154
|
-
type: "component-
|
|
154
|
+
type: "component-detail";
|
|
155
155
|
name: string;
|
|
156
|
-
|
|
156
|
+
kind: "string" | "number" | "boolean" | "price" | "image";
|
|
157
157
|
isOptional: boolean;
|
|
158
158
|
tags?: readonly string[] | undefined;
|
|
159
159
|
}>[]>]>], undefined>;
|
|
160
160
|
readonly tags: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
|
|
161
161
|
}, undefined>, v.ReadonlyAction<{
|
|
162
|
-
|
|
162
|
+
details: Readonly<{
|
|
163
163
|
type: "parameter";
|
|
164
164
|
id: string;
|
|
165
165
|
name: string;
|
|
@@ -167,9 +167,9 @@ export declare const entitiesMap: {
|
|
|
167
167
|
type: "ref";
|
|
168
168
|
id: string;
|
|
169
169
|
}> | readonly Readonly<{
|
|
170
|
-
type: "component-
|
|
170
|
+
type: "component-detail";
|
|
171
171
|
name: string;
|
|
172
|
-
|
|
172
|
+
kind: "string" | "number" | "boolean" | "price" | "image";
|
|
173
173
|
isOptional: boolean;
|
|
174
174
|
tags?: readonly string[] | undefined;
|
|
175
175
|
}>[];
|
|
@@ -182,7 +182,7 @@ export declare const entitiesMap: {
|
|
|
182
182
|
id: string;
|
|
183
183
|
name: string;
|
|
184
184
|
}> | Readonly<{
|
|
185
|
-
|
|
185
|
+
details: Readonly<{
|
|
186
186
|
type: "parameter";
|
|
187
187
|
id: string;
|
|
188
188
|
name: string;
|
|
@@ -190,9 +190,9 @@ export declare const entitiesMap: {
|
|
|
190
190
|
type: "ref";
|
|
191
191
|
id: string;
|
|
192
192
|
}> | readonly Readonly<{
|
|
193
|
-
type: "component-
|
|
193
|
+
type: "component-detail";
|
|
194
194
|
name: string;
|
|
195
|
-
|
|
195
|
+
kind: "string" | "number" | "boolean" | "price" | "image";
|
|
196
196
|
isOptional: boolean;
|
|
197
197
|
tags?: readonly string[] | undefined;
|
|
198
198
|
}>[];
|
|
@@ -203,7 +203,7 @@ export declare const entitiesMap: {
|
|
|
203
203
|
id: string;
|
|
204
204
|
name: string;
|
|
205
205
|
}> | Readonly<{
|
|
206
|
-
|
|
206
|
+
details: Readonly<{
|
|
207
207
|
type: "parameter";
|
|
208
208
|
id: string;
|
|
209
209
|
name: string;
|
|
@@ -211,9 +211,9 @@ export declare const entitiesMap: {
|
|
|
211
211
|
type: "ref";
|
|
212
212
|
id: string;
|
|
213
213
|
}> | readonly Readonly<{
|
|
214
|
-
type: "component-
|
|
214
|
+
type: "component-detail";
|
|
215
215
|
name: string;
|
|
216
|
-
|
|
216
|
+
kind: "string" | "number" | "boolean" | "price" | "image";
|
|
217
217
|
isOptional: boolean;
|
|
218
218
|
tags?: readonly string[] | undefined;
|
|
219
219
|
}>[];
|
|
@@ -222,7 +222,7 @@ export declare const entitiesMap: {
|
|
|
222
222
|
};
|
|
223
223
|
readonly componentWhen: {
|
|
224
224
|
readonly runtime: v.GenericSchema<import("./when").BuilderWhenSerialised<Readonly<{
|
|
225
|
-
|
|
225
|
+
details: Readonly<{
|
|
226
226
|
type: "parameter";
|
|
227
227
|
id: string;
|
|
228
228
|
name: string;
|
|
@@ -230,16 +230,16 @@ export declare const entitiesMap: {
|
|
|
230
230
|
type: "ref";
|
|
231
231
|
id: string;
|
|
232
232
|
}> | readonly Readonly<{
|
|
233
|
-
type: "component-
|
|
233
|
+
type: "component-detail";
|
|
234
234
|
name: string;
|
|
235
|
-
|
|
235
|
+
kind: "string" | "number" | "boolean" | "price" | "image";
|
|
236
236
|
isOptional: boolean;
|
|
237
237
|
tags?: readonly string[] | undefined;
|
|
238
238
|
}>[];
|
|
239
239
|
tags?: readonly string[] | undefined;
|
|
240
240
|
}>>>;
|
|
241
241
|
readonly serialised: v.GenericSchema<import("./when").BuilderWhenSerialised<Readonly<{
|
|
242
|
-
|
|
242
|
+
details: Readonly<{
|
|
243
243
|
type: "parameter";
|
|
244
244
|
id: string;
|
|
245
245
|
name: string;
|
|
@@ -247,9 +247,9 @@ export declare const entitiesMap: {
|
|
|
247
247
|
type: "ref";
|
|
248
248
|
id: string;
|
|
249
249
|
}> | readonly Readonly<{
|
|
250
|
-
type: "component-
|
|
250
|
+
type: "component-detail";
|
|
251
251
|
name: string;
|
|
252
|
-
|
|
252
|
+
kind: "string" | "number" | "boolean" | "price" | "image";
|
|
253
253
|
isOptional: boolean;
|
|
254
254
|
tags?: readonly string[] | undefined;
|
|
255
255
|
}>[];
|
|
@@ -551,6 +551,21 @@ export declare const entitiesMap: {
|
|
|
551
551
|
type: "ref";
|
|
552
552
|
id: string;
|
|
553
553
|
}>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>], undefined>, undefined>;
|
|
554
|
+
readonly placeholderLabel: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
555
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
556
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
557
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
558
|
+
}, undefined>, v.ReadonlyAction<{
|
|
559
|
+
type: "parameter";
|
|
560
|
+
id: string;
|
|
561
|
+
name: string;
|
|
562
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
563
|
+
readonly type: v.LiteralSchema<"ref", undefined>;
|
|
564
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
565
|
+
}, undefined>, v.ReadonlyAction<{
|
|
566
|
+
type: "ref";
|
|
567
|
+
id: string;
|
|
568
|
+
}>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>], undefined>, undefined>;
|
|
554
569
|
readonly metadata: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
555
570
|
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
556
571
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
@@ -609,6 +624,14 @@ export declare const entitiesMap: {
|
|
|
609
624
|
type: "ref";
|
|
610
625
|
id: string;
|
|
611
626
|
}> | undefined;
|
|
627
|
+
placeholderLabel?: string | Readonly<{
|
|
628
|
+
type: "parameter";
|
|
629
|
+
id: string;
|
|
630
|
+
name: string;
|
|
631
|
+
}> | Readonly<{
|
|
632
|
+
type: "ref";
|
|
633
|
+
id: string;
|
|
634
|
+
}> | undefined;
|
|
612
635
|
metadata?: Readonly<{
|
|
613
636
|
type: "parameter";
|
|
614
637
|
id: string;
|
|
@@ -653,6 +676,14 @@ export declare const entitiesMap: {
|
|
|
653
676
|
type: "ref";
|
|
654
677
|
id: string;
|
|
655
678
|
}> | undefined;
|
|
679
|
+
placeholderLabel?: string | Readonly<{
|
|
680
|
+
type: "parameter";
|
|
681
|
+
id: string;
|
|
682
|
+
name: string;
|
|
683
|
+
}> | Readonly<{
|
|
684
|
+
type: "ref";
|
|
685
|
+
id: string;
|
|
686
|
+
}> | undefined;
|
|
656
687
|
metadata?: Readonly<{
|
|
657
688
|
type: "parameter";
|
|
658
689
|
id: string;
|
|
@@ -697,6 +728,14 @@ export declare const entitiesMap: {
|
|
|
697
728
|
type: "ref";
|
|
698
729
|
id: string;
|
|
699
730
|
}> | undefined;
|
|
731
|
+
placeholderLabel?: string | Readonly<{
|
|
732
|
+
type: "parameter";
|
|
733
|
+
id: string;
|
|
734
|
+
name: string;
|
|
735
|
+
}> | Readonly<{
|
|
736
|
+
type: "ref";
|
|
737
|
+
id: string;
|
|
738
|
+
}> | undefined;
|
|
700
739
|
metadata?: Readonly<{
|
|
701
740
|
type: "parameter";
|
|
702
741
|
id: string;
|
|
@@ -760,6 +799,14 @@ export declare const entitiesMap: {
|
|
|
760
799
|
type: "ref";
|
|
761
800
|
id: string;
|
|
762
801
|
}> | undefined;
|
|
802
|
+
placeholderLabel?: string | Readonly<{
|
|
803
|
+
type: "parameter";
|
|
804
|
+
id: string;
|
|
805
|
+
name: string;
|
|
806
|
+
}> | Readonly<{
|
|
807
|
+
type: "ref";
|
|
808
|
+
id: string;
|
|
809
|
+
}> | undefined;
|
|
763
810
|
metadata?: Readonly<{
|
|
764
811
|
type: "parameter";
|
|
765
812
|
id: string;
|
|
@@ -915,6 +962,21 @@ export declare const entitiesMap: {
|
|
|
915
962
|
type: "ref";
|
|
916
963
|
id: string;
|
|
917
964
|
}>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>], undefined>, undefined>;
|
|
965
|
+
readonly placeholderLabel: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
966
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
967
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
968
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
969
|
+
}, undefined>, v.ReadonlyAction<{
|
|
970
|
+
type: "parameter";
|
|
971
|
+
id: string;
|
|
972
|
+
name: string;
|
|
973
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
974
|
+
readonly type: v.LiteralSchema<"ref", undefined>;
|
|
975
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
976
|
+
}, undefined>, v.ReadonlyAction<{
|
|
977
|
+
type: "ref";
|
|
978
|
+
id: string;
|
|
979
|
+
}>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>], undefined>, undefined>;
|
|
918
980
|
readonly metadata: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
919
981
|
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
920
982
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
@@ -973,6 +1035,14 @@ export declare const entitiesMap: {
|
|
|
973
1035
|
type: "ref";
|
|
974
1036
|
id: string;
|
|
975
1037
|
}> | undefined;
|
|
1038
|
+
placeholderLabel?: string | Readonly<{
|
|
1039
|
+
type: "parameter";
|
|
1040
|
+
id: string;
|
|
1041
|
+
name: string;
|
|
1042
|
+
}> | Readonly<{
|
|
1043
|
+
type: "ref";
|
|
1044
|
+
id: string;
|
|
1045
|
+
}> | undefined;
|
|
976
1046
|
metadata?: Readonly<{
|
|
977
1047
|
type: "parameter";
|
|
978
1048
|
id: string;
|
|
@@ -1017,6 +1087,14 @@ export declare const entitiesMap: {
|
|
|
1017
1087
|
type: "ref";
|
|
1018
1088
|
id: string;
|
|
1019
1089
|
}> | undefined;
|
|
1090
|
+
placeholderLabel?: string | Readonly<{
|
|
1091
|
+
type: "parameter";
|
|
1092
|
+
id: string;
|
|
1093
|
+
name: string;
|
|
1094
|
+
}> | Readonly<{
|
|
1095
|
+
type: "ref";
|
|
1096
|
+
id: string;
|
|
1097
|
+
}> | undefined;
|
|
1020
1098
|
metadata?: Readonly<{
|
|
1021
1099
|
type: "parameter";
|
|
1022
1100
|
id: string;
|
|
@@ -1061,6 +1139,14 @@ export declare const entitiesMap: {
|
|
|
1061
1139
|
type: "ref";
|
|
1062
1140
|
id: string;
|
|
1063
1141
|
}> | undefined;
|
|
1142
|
+
placeholderLabel?: string | Readonly<{
|
|
1143
|
+
type: "parameter";
|
|
1144
|
+
id: string;
|
|
1145
|
+
name: string;
|
|
1146
|
+
}> | Readonly<{
|
|
1147
|
+
type: "ref";
|
|
1148
|
+
id: string;
|
|
1149
|
+
}> | undefined;
|
|
1064
1150
|
metadata?: Readonly<{
|
|
1065
1151
|
type: "parameter";
|
|
1066
1152
|
id: string;
|
|
@@ -1124,6 +1210,14 @@ export declare const entitiesMap: {
|
|
|
1124
1210
|
type: "ref";
|
|
1125
1211
|
id: string;
|
|
1126
1212
|
}> | undefined;
|
|
1213
|
+
placeholderLabel?: string | Readonly<{
|
|
1214
|
+
type: "parameter";
|
|
1215
|
+
id: string;
|
|
1216
|
+
name: string;
|
|
1217
|
+
}> | Readonly<{
|
|
1218
|
+
type: "ref";
|
|
1219
|
+
id: string;
|
|
1220
|
+
}> | undefined;
|
|
1127
1221
|
metadata?: Readonly<{
|
|
1128
1222
|
type: "parameter";
|
|
1129
1223
|
id: string;
|
|
@@ -1192,6 +1286,21 @@ export declare const entitiesMap: {
|
|
|
1192
1286
|
type: "ref";
|
|
1193
1287
|
id: string;
|
|
1194
1288
|
}>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>], undefined>, undefined>;
|
|
1289
|
+
readonly placeholderLabel: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1290
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
1291
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
1292
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
1293
|
+
}, undefined>, v.ReadonlyAction<{
|
|
1294
|
+
type: "parameter";
|
|
1295
|
+
id: string;
|
|
1296
|
+
name: string;
|
|
1297
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1298
|
+
readonly type: v.LiteralSchema<"ref", undefined>;
|
|
1299
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
1300
|
+
}, undefined>, v.ReadonlyAction<{
|
|
1301
|
+
type: "ref";
|
|
1302
|
+
id: string;
|
|
1303
|
+
}>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>], undefined>, undefined>;
|
|
1195
1304
|
readonly metadata: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1196
1305
|
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
1197
1306
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
@@ -1250,6 +1359,14 @@ export declare const entitiesMap: {
|
|
|
1250
1359
|
type: "ref";
|
|
1251
1360
|
id: string;
|
|
1252
1361
|
}> | undefined;
|
|
1362
|
+
placeholderLabel?: string | Readonly<{
|
|
1363
|
+
type: "parameter";
|
|
1364
|
+
id: string;
|
|
1365
|
+
name: string;
|
|
1366
|
+
}> | Readonly<{
|
|
1367
|
+
type: "ref";
|
|
1368
|
+
id: string;
|
|
1369
|
+
}> | undefined;
|
|
1253
1370
|
metadata?: Readonly<{
|
|
1254
1371
|
type: "parameter";
|
|
1255
1372
|
id: string;
|
|
@@ -1305,9 +1422,9 @@ export declare const entitiesMap: {
|
|
|
1305
1422
|
readonly serialised: v.BooleanSchema<undefined>;
|
|
1306
1423
|
};
|
|
1307
1424
|
};
|
|
1308
|
-
export declare const validateNumber: (input: unknown, references?: import("./references").BuilderReferences,
|
|
1309
|
-
export declare const validateString: (input: unknown, references?: import("./references").BuilderReferences,
|
|
1310
|
-
export declare const validateBoolean: (input: unknown, references?: import("./references").BuilderReferences,
|
|
1425
|
+
export declare const validateNumber: (input: unknown, references?: import("./references").BuilderReferences, issues?: import("../errors/errors").BuilderIssuesScope) => import("./validated").ValidationResult<number>;
|
|
1426
|
+
export declare const validateString: (input: unknown, references?: import("./references").BuilderReferences, issues?: import("../errors/errors").BuilderIssuesScope) => import("./validated").ValidationResult<string>;
|
|
1427
|
+
export declare const validateBoolean: (input: unknown, references?: import("./references").BuilderReferences, issues?: import("../errors/errors").BuilderIssuesScope) => import("./validated").ValidationResult<boolean>;
|
|
1311
1428
|
export type EntitiesMap = typeof entitiesMap;
|
|
1312
1429
|
export type EntitiesSerialisedSchemas = EntitiesMap[BuilderEntityKind]['serialised'];
|
|
1313
1430
|
export declare const BuilderEntityKindSchema: v.PicklistSchema<readonly ["builder", "model", "select", "toggle", "optionSelectMap", "optionWhen", "componentConfig", "componentSelectMap", "componentWhen", "collectionConfig", "collectionSelectMap", "collectionWhen", "ui", "uiDescribe", "uiItems", "uiPage", "uiPages", "uiInput", "pricing", "pricingRates", "expectations", "paths", "path", "number", "string", "boolean"], undefined>;
|
|
@@ -1316,5 +1433,4 @@ type SerialiseMap = {
|
|
|
1316
1433
|
readonly [EntityKind in keyof EntitiesMap]: (input: v.InferOutput<EntitiesMap[EntityKind]['runtime']>) => v.InferOutput<EntitiesMap[EntityKind]['serialised']>;
|
|
1317
1434
|
};
|
|
1318
1435
|
export declare const serialise: SerialiseMap;
|
|
1319
|
-
export declare function serialiseValue(value: unknown): unknown;
|
|
1320
1436
|
export {};
|