@builder-builder/builder 0.0.27 → 0.0.29
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 +9 -10
- 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 +126 -45
- package/dist/client/schema.js +6 -1
- package/dist/components/BuilderOption.svelte.d.ts +12 -12
- package/dist/components/BuilderOptionValueBoolean.svelte.d.ts +20 -0
- package/dist/components/BuilderOptionValueNumber.svelte.d.ts +21 -0
- package/dist/components/BuilderOptionValueSelect.svelte.d.ts +21 -0
- package/dist/components/BuilderOptionValueString.svelte.d.ts +21 -0
- package/dist/components/BuilderRender.svelte.d.ts +2 -2
- package/dist/components/index.d.ts +8 -8
- package/dist/components/index.js +4376 -4258
- package/dist/components/index.min.js +3 -0
- package/dist/entities/collection/collection.d.ts +191 -401
- package/dist/entities/collection/collection.js +7 -4
- package/dist/entities/collection/{when.d.ts → condition.d.ts} +4 -5
- package/dist/entities/collection/condition.js +2 -0
- package/dist/entities/collection/config.d.ts +62 -80
- package/dist/entities/collection/index.d.ts +4 -4
- package/dist/entities/collection/index.js +2 -2
- package/dist/entities/component/component.d.ts +71 -83
- package/dist/entities/component/component.js +4 -4
- package/dist/entities/component/condition.d.ts +10 -0
- package/dist/entities/component/{when.js → condition.js} +3 -9
- 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 +6 -6
- package/dist/entities/component/index.js +3 -3
- package/dist/entities/{when.d.ts → condition.d.ts} +23 -36
- package/dist/entities/{when.js → condition.js} +20 -25
- package/dist/entities/expectation.d.ts +135 -3
- package/dist/entities/expectation.js +6 -2
- package/dist/entities/index.d.ts +9 -9
- package/dist/entities/index.js +4 -4
- package/dist/entities/kind.d.ts +4 -4
- package/dist/entities/kind.js +24 -25
- package/dist/entities/model/bind.d.ts +5 -5
- package/dist/entities/model/methods.d.ts +18 -27
- package/dist/entities/model/methods.js +4 -22
- package/dist/entities/model/model.d.ts +3 -1
- package/dist/entities/model/model.js +25 -27
- package/dist/entities/option/condition.d.ts +9 -0
- package/dist/entities/option/condition.js +2 -0
- package/dist/entities/option/config.d.ts +47 -72
- package/dist/entities/option/config.js +6 -6
- package/dist/entities/option/expectation.d.ts +6 -1
- package/dist/entities/option/expectation.js +2 -2
- package/dist/entities/option/index.d.ts +8 -8
- package/dist/entities/option/index.js +4 -4
- package/dist/entities/option/option.d.ts +179 -210
- package/dist/entities/option/option.js +4 -4
- package/dist/entities/option/select.d.ts +16 -43
- package/dist/entities/option/select.js +8 -31
- package/dist/entities/option/value.d.ts +73 -0
- package/dist/entities/option/value.js +99 -0
- 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 +124 -84
- package/dist/entities/serialise.d.ts +175 -109
- package/dist/entities/serialise.js +32 -27
- package/dist/entities/ui/describe.d.ts +1 -1
- package/dist/entities/ui/input.d.ts +2 -2
- package/dist/entities/ui/page.d.ts +1 -1
- package/dist/entities/ui/pages.d.ts +2 -2
- package/dist/entities/validated.d.ts +3 -3
- package/dist/environment.d.ts +2 -2
- package/dist/errors/errors.d.ts +94 -58
- package/dist/errors/errors.js +41 -7
- 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 +45 -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/price.js +6 -4
- package/dist/mappers/resolve.js +23 -22
- 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 +4 -18
- 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 +20 -20
- package/dist/public.js +17 -9
- 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 +23 -5
- 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 +57 -51
- 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 +27 -31
- 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 +4 -2
- package/dist/components/BuilderOptionSelect.svelte.d.ts +0 -21
- package/dist/components/BuilderOptionToggleBoolean.svelte.d.ts +0 -20
- package/dist/components/BuilderOptionToggleNumber.svelte.d.ts +0 -21
- package/dist/components/BuilderOptionToggleString.svelte.d.ts +0 -21
- package/dist/entities/collection/when.js +0 -2
- package/dist/entities/component/field.d.ts +0 -59
- package/dist/entities/component/field.js +0 -52
- package/dist/entities/component/when.d.ts +0 -11
- package/dist/entities/option/toggle.d.ts +0 -45
- package/dist/entities/option/toggle.js +0 -66
- package/dist/entities/option/when.d.ts +0 -10
- package/dist/entities/option/when.js +0 -2
|
@@ -2,56 +2,59 @@ import * as v from 'valibot';
|
|
|
2
2
|
export declare const BuilderReferenceSchema: v.ObjectSchema<{
|
|
3
3
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
4
4
|
readonly serialised: v.GenericSchema<string | number | boolean | readonly (string | number)[] | readonly (readonly (string | number)[])[] | import("./index.js").BuilderSerialised | import("./index.js").BuilderModelSerialised | Readonly<{
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
defaultValue: string | null;
|
|
5
|
+
kind: "string" | "number" | "boolean";
|
|
6
|
+
type: "value";
|
|
7
|
+
defaultValue: string | number | boolean | null;
|
|
8
8
|
isOptional: boolean;
|
|
9
|
-
optionLabels: {
|
|
10
|
-
[x: string]: string;
|
|
11
|
-
};
|
|
12
9
|
tags?: readonly string[] | undefined;
|
|
13
10
|
}> | Readonly<{
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
kind: "select";
|
|
12
|
+
readonly options: readonly [string, ...string[]];
|
|
13
|
+
optionLabels?: {
|
|
14
|
+
[x: string]: string;
|
|
15
|
+
} | undefined;
|
|
16
|
+
type: "value";
|
|
16
17
|
defaultValue: string | number | boolean | null;
|
|
17
18
|
isOptional: boolean;
|
|
18
19
|
tags?: readonly string[] | undefined;
|
|
19
|
-
}> | import("./
|
|
20
|
+
}> | import("./condition.js").BuilderMatchSelectMap<Readonly<{
|
|
20
21
|
type: "parameter";
|
|
21
22
|
id: string;
|
|
22
23
|
name: string;
|
|
23
|
-
}> | Readonly<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
defaultValue: string | null;
|
|
24
|
+
}> | Readonly<{
|
|
25
|
+
kind: "string" | "number" | "boolean";
|
|
26
|
+
type: "value";
|
|
27
|
+
defaultValue: string | number | boolean | null;
|
|
27
28
|
isOptional: boolean;
|
|
28
|
-
|
|
29
|
+
tags?: readonly string[] | undefined;
|
|
30
|
+
}> | Readonly<{
|
|
31
|
+
kind: "select";
|
|
32
|
+
readonly options: readonly [string, ...string[]];
|
|
33
|
+
optionLabels?: {
|
|
29
34
|
[x: string]: string;
|
|
30
|
-
};
|
|
35
|
+
} | undefined;
|
|
36
|
+
type: "value";
|
|
37
|
+
defaultValue: string | number | boolean | null;
|
|
38
|
+
isOptional: boolean;
|
|
31
39
|
tags?: readonly string[] | undefined;
|
|
32
|
-
}>> |
|
|
33
|
-
|
|
34
|
-
|
|
40
|
+
}>> | import("./condition.js").BuilderConditionSerialised<Readonly<{
|
|
41
|
+
kind: "string" | "number" | "boolean";
|
|
42
|
+
type: "value";
|
|
35
43
|
defaultValue: string | number | boolean | null;
|
|
36
44
|
isOptional: boolean;
|
|
37
45
|
tags?: readonly string[] | undefined;
|
|
38
|
-
}
|
|
39
|
-
|
|
46
|
+
}> | Readonly<{
|
|
47
|
+
kind: "select";
|
|
40
48
|
readonly options: readonly [string, ...string[]];
|
|
41
|
-
|
|
42
|
-
isOptional: boolean;
|
|
43
|
-
optionLabels: {
|
|
49
|
+
optionLabels?: {
|
|
44
50
|
[x: string]: string;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
}>> | Readonly<Readonly<{
|
|
48
|
-
type: "toggle";
|
|
49
|
-
valueType: "string" | "number" | "boolean";
|
|
51
|
+
} | undefined;
|
|
52
|
+
type: "value";
|
|
50
53
|
defaultValue: string | number | boolean | null;
|
|
51
54
|
isOptional: boolean;
|
|
52
55
|
tags?: readonly string[] | undefined;
|
|
53
|
-
}
|
|
54
|
-
|
|
56
|
+
}>> | Readonly<{
|
|
57
|
+
details: Readonly<{
|
|
55
58
|
type: "parameter";
|
|
56
59
|
id: string;
|
|
57
60
|
name: string;
|
|
@@ -59,19 +62,19 @@ export declare const BuilderReferenceSchema: v.ObjectSchema<{
|
|
|
59
62
|
type: "ref";
|
|
60
63
|
id: string;
|
|
61
64
|
}> | readonly Readonly<{
|
|
62
|
-
type: "component-
|
|
65
|
+
type: "component-detail";
|
|
63
66
|
name: string;
|
|
64
|
-
|
|
67
|
+
kind: "string" | "number" | "boolean" | "price" | "image";
|
|
65
68
|
isOptional: boolean;
|
|
66
69
|
tags?: readonly string[] | undefined;
|
|
67
70
|
}>[];
|
|
68
71
|
tags?: readonly string[] | undefined;
|
|
69
|
-
}> | import("./
|
|
72
|
+
}> | import("./condition.js").BuilderMatchSelectMap<Readonly<{
|
|
70
73
|
type: "parameter";
|
|
71
74
|
id: string;
|
|
72
75
|
name: string;
|
|
73
76
|
}> | Readonly<{
|
|
74
|
-
|
|
77
|
+
details: Readonly<{
|
|
75
78
|
type: "parameter";
|
|
76
79
|
id: string;
|
|
77
80
|
name: string;
|
|
@@ -79,15 +82,15 @@ export declare const BuilderReferenceSchema: v.ObjectSchema<{
|
|
|
79
82
|
type: "ref";
|
|
80
83
|
id: string;
|
|
81
84
|
}> | readonly Readonly<{
|
|
82
|
-
type: "component-
|
|
85
|
+
type: "component-detail";
|
|
83
86
|
name: string;
|
|
84
|
-
|
|
87
|
+
kind: "string" | "number" | "boolean" | "price" | "image";
|
|
85
88
|
isOptional: boolean;
|
|
86
89
|
tags?: readonly string[] | undefined;
|
|
87
90
|
}>[];
|
|
88
91
|
tags?: readonly string[] | undefined;
|
|
89
|
-
}>> | import("./
|
|
90
|
-
|
|
92
|
+
}>> | import("./condition.js").BuilderConditionSerialised<Readonly<{
|
|
93
|
+
details: Readonly<{
|
|
91
94
|
type: "parameter";
|
|
92
95
|
id: string;
|
|
93
96
|
name: string;
|
|
@@ -95,9 +98,9 @@ export declare const BuilderReferenceSchema: v.ObjectSchema<{
|
|
|
95
98
|
type: "ref";
|
|
96
99
|
id: string;
|
|
97
100
|
}> | readonly Readonly<{
|
|
98
|
-
type: "component-
|
|
101
|
+
type: "component-detail";
|
|
99
102
|
name: string;
|
|
100
|
-
|
|
103
|
+
kind: "string" | "number" | "boolean" | "price" | "image";
|
|
101
104
|
isOptional: boolean;
|
|
102
105
|
tags?: readonly string[] | undefined;
|
|
103
106
|
}>[];
|
|
@@ -128,7 +131,7 @@ export declare const BuilderReferenceSchema: v.ObjectSchema<{
|
|
|
128
131
|
id: string;
|
|
129
132
|
}>;
|
|
130
133
|
tags?: readonly string[] | undefined;
|
|
131
|
-
}> | import("./
|
|
134
|
+
}> | import("./condition.js").BuilderMatchSelectMap<Readonly<{
|
|
132
135
|
type: "parameter";
|
|
133
136
|
id: string;
|
|
134
137
|
name: string;
|
|
@@ -158,7 +161,7 @@ export declare const BuilderReferenceSchema: v.ObjectSchema<{
|
|
|
158
161
|
id: string;
|
|
159
162
|
}>;
|
|
160
163
|
tags?: readonly string[] | undefined;
|
|
161
|
-
}>> | import("./
|
|
164
|
+
}>> | import("./condition.js").BuilderConditionSerialised<Readonly<{
|
|
162
165
|
model: Readonly<{
|
|
163
166
|
type: "parameter";
|
|
164
167
|
id: string;
|
|
@@ -381,62 +384,82 @@ export declare const BuilderReferenceSchema: v.ObjectSchema<{
|
|
|
381
384
|
}> | import("./index.js").BuilderUIItemSerialised)[] | import("./index.js").BuilderPricingSerialised | import("./index.js").BuilderRates | readonly Readonly<{
|
|
382
385
|
name: string;
|
|
383
386
|
kind: "option" | "component" | "collection";
|
|
387
|
+
payload?: Readonly<{
|
|
388
|
+
kind: "string" | "number" | "boolean";
|
|
389
|
+
type: "value";
|
|
390
|
+
defaultValue: string | number | boolean | null;
|
|
391
|
+
isOptional: boolean;
|
|
392
|
+
tags?: readonly string[] | undefined;
|
|
393
|
+
}> | Readonly<{
|
|
394
|
+
kind: "select";
|
|
395
|
+
readonly options: readonly [string, ...string[]];
|
|
396
|
+
optionLabels?: {
|
|
397
|
+
[x: string]: string;
|
|
398
|
+
} | undefined;
|
|
399
|
+
type: "value";
|
|
400
|
+
defaultValue: string | number | boolean | null;
|
|
401
|
+
isOptional: boolean;
|
|
402
|
+
tags?: readonly string[] | undefined;
|
|
403
|
+
}> | undefined;
|
|
384
404
|
}>[]>;
|
|
385
405
|
}, undefined>;
|
|
386
406
|
export type BuilderReference = v.InferOutput<typeof BuilderReferenceSchema>;
|
|
387
407
|
export declare const BuilderReferencesSchema: v.ArraySchema<v.ObjectSchema<{
|
|
388
408
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
389
409
|
readonly serialised: v.GenericSchema<string | number | boolean | readonly (string | number)[] | readonly (readonly (string | number)[])[] | import("./index.js").BuilderSerialised | import("./index.js").BuilderModelSerialised | Readonly<{
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
defaultValue: string | null;
|
|
410
|
+
kind: "string" | "number" | "boolean";
|
|
411
|
+
type: "value";
|
|
412
|
+
defaultValue: string | number | boolean | null;
|
|
393
413
|
isOptional: boolean;
|
|
394
|
-
optionLabels: {
|
|
395
|
-
[x: string]: string;
|
|
396
|
-
};
|
|
397
414
|
tags?: readonly string[] | undefined;
|
|
398
415
|
}> | Readonly<{
|
|
399
|
-
|
|
400
|
-
|
|
416
|
+
kind: "select";
|
|
417
|
+
readonly options: readonly [string, ...string[]];
|
|
418
|
+
optionLabels?: {
|
|
419
|
+
[x: string]: string;
|
|
420
|
+
} | undefined;
|
|
421
|
+
type: "value";
|
|
401
422
|
defaultValue: string | number | boolean | null;
|
|
402
423
|
isOptional: boolean;
|
|
403
424
|
tags?: readonly string[] | undefined;
|
|
404
|
-
}> | import("./
|
|
425
|
+
}> | import("./condition.js").BuilderMatchSelectMap<Readonly<{
|
|
405
426
|
type: "parameter";
|
|
406
427
|
id: string;
|
|
407
428
|
name: string;
|
|
408
|
-
}> | Readonly<
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
defaultValue: string | null;
|
|
429
|
+
}> | Readonly<{
|
|
430
|
+
kind: "string" | "number" | "boolean";
|
|
431
|
+
type: "value";
|
|
432
|
+
defaultValue: string | number | boolean | null;
|
|
412
433
|
isOptional: boolean;
|
|
413
|
-
|
|
434
|
+
tags?: readonly string[] | undefined;
|
|
435
|
+
}> | Readonly<{
|
|
436
|
+
kind: "select";
|
|
437
|
+
readonly options: readonly [string, ...string[]];
|
|
438
|
+
optionLabels?: {
|
|
414
439
|
[x: string]: string;
|
|
415
|
-
};
|
|
440
|
+
} | undefined;
|
|
441
|
+
type: "value";
|
|
442
|
+
defaultValue: string | number | boolean | null;
|
|
443
|
+
isOptional: boolean;
|
|
416
444
|
tags?: readonly string[] | undefined;
|
|
417
|
-
}>> |
|
|
418
|
-
|
|
419
|
-
|
|
445
|
+
}>> | import("./condition.js").BuilderConditionSerialised<Readonly<{
|
|
446
|
+
kind: "string" | "number" | "boolean";
|
|
447
|
+
type: "value";
|
|
420
448
|
defaultValue: string | number | boolean | null;
|
|
421
449
|
isOptional: boolean;
|
|
422
450
|
tags?: readonly string[] | undefined;
|
|
423
|
-
}
|
|
424
|
-
|
|
451
|
+
}> | Readonly<{
|
|
452
|
+
kind: "select";
|
|
425
453
|
readonly options: readonly [string, ...string[]];
|
|
426
|
-
|
|
427
|
-
isOptional: boolean;
|
|
428
|
-
optionLabels: {
|
|
454
|
+
optionLabels?: {
|
|
429
455
|
[x: string]: string;
|
|
430
|
-
};
|
|
431
|
-
|
|
432
|
-
}>> | Readonly<Readonly<{
|
|
433
|
-
type: "toggle";
|
|
434
|
-
valueType: "string" | "number" | "boolean";
|
|
456
|
+
} | undefined;
|
|
457
|
+
type: "value";
|
|
435
458
|
defaultValue: string | number | boolean | null;
|
|
436
459
|
isOptional: boolean;
|
|
437
460
|
tags?: readonly string[] | undefined;
|
|
438
|
-
}
|
|
439
|
-
|
|
461
|
+
}>> | Readonly<{
|
|
462
|
+
details: Readonly<{
|
|
440
463
|
type: "parameter";
|
|
441
464
|
id: string;
|
|
442
465
|
name: string;
|
|
@@ -444,19 +467,19 @@ export declare const BuilderReferencesSchema: v.ArraySchema<v.ObjectSchema<{
|
|
|
444
467
|
type: "ref";
|
|
445
468
|
id: string;
|
|
446
469
|
}> | readonly Readonly<{
|
|
447
|
-
type: "component-
|
|
470
|
+
type: "component-detail";
|
|
448
471
|
name: string;
|
|
449
|
-
|
|
472
|
+
kind: "string" | "number" | "boolean" | "price" | "image";
|
|
450
473
|
isOptional: boolean;
|
|
451
474
|
tags?: readonly string[] | undefined;
|
|
452
475
|
}>[];
|
|
453
476
|
tags?: readonly string[] | undefined;
|
|
454
|
-
}> | import("./
|
|
477
|
+
}> | import("./condition.js").BuilderMatchSelectMap<Readonly<{
|
|
455
478
|
type: "parameter";
|
|
456
479
|
id: string;
|
|
457
480
|
name: string;
|
|
458
481
|
}> | Readonly<{
|
|
459
|
-
|
|
482
|
+
details: Readonly<{
|
|
460
483
|
type: "parameter";
|
|
461
484
|
id: string;
|
|
462
485
|
name: string;
|
|
@@ -464,15 +487,15 @@ export declare const BuilderReferencesSchema: v.ArraySchema<v.ObjectSchema<{
|
|
|
464
487
|
type: "ref";
|
|
465
488
|
id: string;
|
|
466
489
|
}> | readonly Readonly<{
|
|
467
|
-
type: "component-
|
|
490
|
+
type: "component-detail";
|
|
468
491
|
name: string;
|
|
469
|
-
|
|
492
|
+
kind: "string" | "number" | "boolean" | "price" | "image";
|
|
470
493
|
isOptional: boolean;
|
|
471
494
|
tags?: readonly string[] | undefined;
|
|
472
495
|
}>[];
|
|
473
496
|
tags?: readonly string[] | undefined;
|
|
474
|
-
}>> | import("./
|
|
475
|
-
|
|
497
|
+
}>> | import("./condition.js").BuilderConditionSerialised<Readonly<{
|
|
498
|
+
details: Readonly<{
|
|
476
499
|
type: "parameter";
|
|
477
500
|
id: string;
|
|
478
501
|
name: string;
|
|
@@ -480,9 +503,9 @@ export declare const BuilderReferencesSchema: v.ArraySchema<v.ObjectSchema<{
|
|
|
480
503
|
type: "ref";
|
|
481
504
|
id: string;
|
|
482
505
|
}> | readonly Readonly<{
|
|
483
|
-
type: "component-
|
|
506
|
+
type: "component-detail";
|
|
484
507
|
name: string;
|
|
485
|
-
|
|
508
|
+
kind: "string" | "number" | "boolean" | "price" | "image";
|
|
486
509
|
isOptional: boolean;
|
|
487
510
|
tags?: readonly string[] | undefined;
|
|
488
511
|
}>[];
|
|
@@ -513,7 +536,7 @@ export declare const BuilderReferencesSchema: v.ArraySchema<v.ObjectSchema<{
|
|
|
513
536
|
id: string;
|
|
514
537
|
}>;
|
|
515
538
|
tags?: readonly string[] | undefined;
|
|
516
|
-
}> | import("./
|
|
539
|
+
}> | import("./condition.js").BuilderMatchSelectMap<Readonly<{
|
|
517
540
|
type: "parameter";
|
|
518
541
|
id: string;
|
|
519
542
|
name: string;
|
|
@@ -543,7 +566,7 @@ export declare const BuilderReferencesSchema: v.ArraySchema<v.ObjectSchema<{
|
|
|
543
566
|
id: string;
|
|
544
567
|
}>;
|
|
545
568
|
tags?: readonly string[] | undefined;
|
|
546
|
-
}>> | import("./
|
|
569
|
+
}>> | import("./condition.js").BuilderConditionSerialised<Readonly<{
|
|
547
570
|
model: Readonly<{
|
|
548
571
|
type: "parameter";
|
|
549
572
|
id: string;
|
|
@@ -766,6 +789,23 @@ export declare const BuilderReferencesSchema: v.ArraySchema<v.ObjectSchema<{
|
|
|
766
789
|
}> | import("./index.js").BuilderUIItemSerialised)[] | import("./index.js").BuilderPricingSerialised | import("./index.js").BuilderRates | readonly Readonly<{
|
|
767
790
|
name: string;
|
|
768
791
|
kind: "option" | "component" | "collection";
|
|
792
|
+
payload?: Readonly<{
|
|
793
|
+
kind: "string" | "number" | "boolean";
|
|
794
|
+
type: "value";
|
|
795
|
+
defaultValue: string | number | boolean | null;
|
|
796
|
+
isOptional: boolean;
|
|
797
|
+
tags?: readonly string[] | undefined;
|
|
798
|
+
}> | Readonly<{
|
|
799
|
+
kind: "select";
|
|
800
|
+
readonly options: readonly [string, ...string[]];
|
|
801
|
+
optionLabels?: {
|
|
802
|
+
[x: string]: string;
|
|
803
|
+
} | undefined;
|
|
804
|
+
type: "value";
|
|
805
|
+
defaultValue: string | number | boolean | null;
|
|
806
|
+
isOptional: boolean;
|
|
807
|
+
tags?: readonly string[] | undefined;
|
|
808
|
+
}> | undefined;
|
|
769
809
|
}>[]>;
|
|
770
810
|
}, undefined>, undefined>;
|
|
771
811
|
export type BuilderReferences = v.InferOutput<typeof BuilderReferencesSchema>;
|