@builder-builder/builder 0.0.3 → 0.0.5
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/check.d.ts +8 -0
- package/dist/check.js +18 -0
- package/dist/core/builder.d.ts +31 -22
- package/dist/core/builder.js +73 -27
- package/dist/core/collection/collection.d.ts +9 -12
- package/dist/core/collection/collection.js +9 -27
- package/dist/core/collection/index.d.ts +1 -1
- package/dist/core/collection/method.d.ts +22 -43
- package/dist/core/component/component.d.ts +1 -4
- package/dist/core/component/graph.d.ts +0 -3
- package/dist/core/component/graph.js +7 -9
- package/dist/core/component/method.d.ts +7 -9
- package/dist/core/expectation.d.ts +39 -0
- package/dist/{assert → core}/expectation.js +3 -2
- package/dist/core/graph.d.ts +2 -1
- package/dist/core/graph.js +3 -1
- package/dist/core/index.d.ts +8 -4
- package/dist/core/index.js +3 -1
- package/dist/core/option/graph.js +7 -5
- package/dist/core/option/method.d.ts +60 -42
- package/dist/core/option/method.js +7 -3
- package/dist/core/option/option.d.ts +14 -7
- package/dist/core/option/option.js +15 -23
- package/dist/core/option/select.d.ts +6 -1
- package/dist/core/option/select.js +5 -1
- package/dist/core/parameter.d.ts +48 -0
- package/dist/core/parameter.js +31 -0
- package/dist/core/when/config.d.ts +20 -0
- package/dist/core/when/config.js +4 -0
- package/dist/core/when/constrain.d.ts +14 -0
- package/dist/core/when/index.d.ts +5 -0
- package/dist/core/when/index.js +2 -0
- package/dist/core/when/nullability.d.ts +18 -0
- package/dist/core/when/nullability.js +1 -0
- package/dist/core/when/resolve.d.ts +18 -0
- package/dist/core/when/resolve.js +22 -0
- package/dist/index.d.ts +7 -10
- package/dist/index.js +2 -3
- package/dist/{config.d.ts → model.d.ts} +1 -1
- package/dist/model.js +1 -0
- package/dist/paths.d.ts +4 -3
- package/dist/resolve/index.d.ts +2 -2
- package/dist/resolve/instance.d.ts +2 -2
- package/dist/resolve/models.d.ts +1 -1
- package/dist/resolve/order.d.ts +7 -6
- package/dist/resolve/render.d.ts +4 -4
- package/dist/resolve/render.js +49 -60
- package/dist/resolve/validate.d.ts +6 -5
- package/dist/resolve/validate.js +5 -4
- package/dist/schemas/index.d.ts +2 -6
- package/dist/schemas/index.js +1 -3
- package/dist/serialise/deserialise.js +11 -6
- package/dist/serialise/index.d.ts +2 -2
- package/dist/serialise/index.js +1 -1
- package/dist/{schemas/serialise.d.ts → serialise/schemas.d.ts} +1050 -242
- package/dist/{schemas/serialise.js → serialise/schemas.js} +47 -47
- package/dist/serialise/serialise.d.ts +1 -1
- package/dist/serialise/serialise.js +19 -2
- package/dist/ui.d.ts +12 -12
- package/dist/ui.js +23 -16
- package/package.json +1 -1
- package/dist/assert/assert.d.ts +0 -28
- package/dist/assert/assert.js +0 -28
- package/dist/assert/expectation.d.ts +0 -20
- package/dist/assert/index.d.ts +0 -3
- package/dist/assert/index.js +0 -2
- package/dist/invariant.d.ts +0 -1
- package/dist/invariant.js +0 -6
- package/dist/schemas/layout.d.ts +0 -52
- package/dist/schemas/layout.js +0 -6
- /package/dist/{config.js → core/when/constrain.js} +0 -0
|
@@ -1,5 +1,62 @@
|
|
|
1
|
+
import type { BuilderOptionValues, BuilderOptionValuesMap } from '../core/option/option';
|
|
1
2
|
import * as v from 'valibot';
|
|
2
|
-
import {
|
|
3
|
+
import { BuilderParameterSchema } from '../core/parameter.js';
|
|
4
|
+
import { BuilderOptionValuesMapSchema, BuilderOptionValuesSchema } from '../core/option/option.js';
|
|
5
|
+
import { BuilderPathSchema, BuilderPathsSchema } from '../schemas/primitives.js';
|
|
6
|
+
export type { BuilderOptionValues, BuilderOptionValuesMap };
|
|
7
|
+
export { BuilderOptionValuesMapSchema, BuilderOptionValuesSchema, BuilderParameterSchema };
|
|
8
|
+
export type BuilderCollectionConfigSerialised = {
|
|
9
|
+
readonly builder: BuilderSerialised;
|
|
10
|
+
readonly min: number;
|
|
11
|
+
readonly max: number;
|
|
12
|
+
};
|
|
13
|
+
export type BuilderCollectionEnableConfigSerialised = {
|
|
14
|
+
readonly type: 'enable';
|
|
15
|
+
readonly builder: BuilderSerialised;
|
|
16
|
+
readonly min: number;
|
|
17
|
+
readonly max: number;
|
|
18
|
+
};
|
|
19
|
+
export type BuilderCollectionMatchConfigSerialised = {
|
|
20
|
+
readonly type: 'match';
|
|
21
|
+
readonly matchPath: v.InferOutput<typeof BuilderPathSchema>;
|
|
22
|
+
readonly selectMap: Record<string, BuilderCollectionConfigSerialised | null>;
|
|
23
|
+
};
|
|
24
|
+
export type BuilderCollectionUnlessConfigSerialised = {
|
|
25
|
+
readonly type: 'unless';
|
|
26
|
+
readonly unlessPath: v.InferOutput<typeof BuilderPathSchema>;
|
|
27
|
+
readonly disabledValues: ReadonlyArray<string | boolean | number | null>;
|
|
28
|
+
readonly builder: BuilderSerialised;
|
|
29
|
+
readonly min: number;
|
|
30
|
+
readonly max: number;
|
|
31
|
+
};
|
|
32
|
+
export type BuilderCollectionWhenConfigSerialised = BuilderCollectionEnableConfigSerialised | BuilderCollectionMatchConfigSerialised | BuilderCollectionUnlessConfigSerialised;
|
|
33
|
+
export type BuilderCollectionSerialised = {
|
|
34
|
+
readonly name: string;
|
|
35
|
+
readonly builder: BuilderSerialised;
|
|
36
|
+
readonly min: number;
|
|
37
|
+
readonly max: number;
|
|
38
|
+
readonly gatePaths: v.InferOutput<typeof BuilderPathsSchema>;
|
|
39
|
+
readonly config: BuilderCollectionWhenConfigSerialised | null;
|
|
40
|
+
};
|
|
41
|
+
export type BuilderExpectationSerialised = {
|
|
42
|
+
readonly name: string;
|
|
43
|
+
readonly kind: 'option' | 'component';
|
|
44
|
+
};
|
|
45
|
+
export type BuilderSerialised = {
|
|
46
|
+
readonly options: ReadonlyArray<BuilderOptionSerialised>;
|
|
47
|
+
readonly components: ReadonlyArray<BuilderComponentSerialised>;
|
|
48
|
+
readonly collections: ReadonlyArray<BuilderCollectionSerialised>;
|
|
49
|
+
readonly expectations: ReadonlyArray<BuilderExpectationSerialised>;
|
|
50
|
+
};
|
|
51
|
+
export type BuilderUICollectionSerialised = {
|
|
52
|
+
readonly type: 'collection';
|
|
53
|
+
readonly name: string;
|
|
54
|
+
readonly label: string;
|
|
55
|
+
readonly items: BuilderUIItemsSerialised;
|
|
56
|
+
};
|
|
57
|
+
export type BuilderUIItemSerialised = BuilderUIPageSerialised | BuilderUIDescribeSerialised | BuilderUICollectionSerialised;
|
|
58
|
+
export type BuilderUIItemsSerialised = ReadonlyArray<BuilderUIItemSerialised>;
|
|
59
|
+
export type BuilderUISerialised = BuilderUIItemsSerialised;
|
|
3
60
|
export declare const BuilderSelectTypeSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
4
61
|
readonly type: v.LiteralSchema<"select", undefined>;
|
|
5
62
|
readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
|
|
@@ -28,18 +85,37 @@ export declare const BuilderToggleTypeSerialisedSchema: v.SchemaWithPipe<readonl
|
|
|
28
85
|
optional: boolean;
|
|
29
86
|
}>]>;
|
|
30
87
|
export type BuilderToggleTypeSerialised = v.InferOutput<typeof BuilderToggleTypeSerialisedSchema>;
|
|
31
|
-
export declare const
|
|
88
|
+
export declare const BuilderParameterSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
89
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
90
|
+
}, undefined>, v.ReadonlyAction<{
|
|
91
|
+
type: "parameter";
|
|
92
|
+
}>]>;
|
|
93
|
+
export type BuilderParameterSerialised = v.InferOutput<typeof BuilderParameterSerialisedSchema>;
|
|
94
|
+
export declare const BuilderValuesSerialisedSchema: v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
32
95
|
readonly type: v.LiteralSchema<"select", undefined>;
|
|
33
96
|
readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
|
|
34
97
|
readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
35
98
|
readonly optional: v.BooleanSchema<undefined>;
|
|
36
99
|
readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
|
|
37
|
-
}, undefined>, v.
|
|
100
|
+
}, undefined>, v.ReadonlyAction<{
|
|
101
|
+
type: "select";
|
|
102
|
+
readonly options: readonly [string, ...string[]];
|
|
103
|
+
defaultValue: string | null;
|
|
104
|
+
optional: boolean;
|
|
105
|
+
labels: {
|
|
106
|
+
[x: string]: string;
|
|
107
|
+
};
|
|
108
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
38
109
|
readonly type: v.LiteralSchema<"toggle", undefined>;
|
|
39
110
|
readonly valueType: v.StringSchema<undefined>;
|
|
40
111
|
readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
|
|
41
112
|
readonly optional: v.BooleanSchema<undefined>;
|
|
42
|
-
}, undefined
|
|
113
|
+
}, undefined>, v.ReadonlyAction<{
|
|
114
|
+
type: "toggle";
|
|
115
|
+
valueType: string;
|
|
116
|
+
defaultValue: string | number | boolean | null;
|
|
117
|
+
optional: boolean;
|
|
118
|
+
}>]>], undefined>, v.ReadonlyAction<Readonly<{
|
|
43
119
|
type: "select";
|
|
44
120
|
readonly options: readonly [string, ...string[]];
|
|
45
121
|
defaultValue: string | null;
|
|
@@ -47,30 +123,60 @@ export declare const BuilderValuesSerialisedSchema: v.SchemaWithPipe<readonly [v
|
|
|
47
123
|
labels: {
|
|
48
124
|
[x: string]: string;
|
|
49
125
|
};
|
|
50
|
-
} | {
|
|
126
|
+
}> | Readonly<{
|
|
51
127
|
type: "toggle";
|
|
52
128
|
valueType: string;
|
|
53
129
|
defaultValue: string | number | boolean | null;
|
|
54
130
|
optional: boolean;
|
|
55
|
-
}
|
|
131
|
+
}>>]>;
|
|
56
132
|
export type BuilderValuesSerialised = v.InferOutput<typeof BuilderValuesSerialisedSchema>;
|
|
57
133
|
export declare const BuilderOptionEnableConfigSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
58
134
|
readonly type: v.LiteralSchema<"enable", undefined>;
|
|
59
|
-
readonly values: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
135
|
+
readonly values: v.UnionSchema<[v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
60
136
|
readonly type: v.LiteralSchema<"select", undefined>;
|
|
61
137
|
readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
|
|
62
138
|
readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
63
139
|
readonly optional: v.BooleanSchema<undefined>;
|
|
64
140
|
readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
|
|
65
|
-
}, undefined>, v.
|
|
141
|
+
}, undefined>, v.ReadonlyAction<{
|
|
142
|
+
type: "select";
|
|
143
|
+
readonly options: readonly [string, ...string[]];
|
|
144
|
+
defaultValue: string | null;
|
|
145
|
+
optional: boolean;
|
|
146
|
+
labels: {
|
|
147
|
+
[x: string]: string;
|
|
148
|
+
};
|
|
149
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
66
150
|
readonly type: v.LiteralSchema<"toggle", undefined>;
|
|
67
151
|
readonly valueType: v.StringSchema<undefined>;
|
|
68
152
|
readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
|
|
69
153
|
readonly optional: v.BooleanSchema<undefined>;
|
|
70
|
-
}, undefined
|
|
154
|
+
}, undefined>, v.ReadonlyAction<{
|
|
155
|
+
type: "toggle";
|
|
156
|
+
valueType: string;
|
|
157
|
+
defaultValue: string | number | boolean | null;
|
|
158
|
+
optional: boolean;
|
|
159
|
+
}>]>], undefined>, v.ReadonlyAction<Readonly<{
|
|
160
|
+
type: "select";
|
|
161
|
+
readonly options: readonly [string, ...string[]];
|
|
162
|
+
defaultValue: string | null;
|
|
163
|
+
optional: boolean;
|
|
164
|
+
labels: {
|
|
165
|
+
[x: string]: string;
|
|
166
|
+
};
|
|
167
|
+
}> | Readonly<{
|
|
168
|
+
type: "toggle";
|
|
169
|
+
valueType: string;
|
|
170
|
+
defaultValue: string | number | boolean | null;
|
|
171
|
+
optional: boolean;
|
|
172
|
+
}>>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
173
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
174
|
+
}, undefined>, v.ReadonlyAction<{
|
|
175
|
+
type: "parameter";
|
|
176
|
+
}>]>], undefined>;
|
|
71
177
|
}, undefined>, v.ReadonlyAction<{
|
|
72
178
|
type: "enable";
|
|
73
|
-
values: {
|
|
179
|
+
values: Readonly<Readonly<{
|
|
74
180
|
type: "select";
|
|
75
181
|
readonly options: readonly [string, ...string[]];
|
|
76
182
|
defaultValue: string | null;
|
|
@@ -78,34 +184,68 @@ export declare const BuilderOptionEnableConfigSerialisedSchema: v.SchemaWithPipe
|
|
|
78
184
|
labels: {
|
|
79
185
|
[x: string]: string;
|
|
80
186
|
};
|
|
81
|
-
} | {
|
|
187
|
+
}>> | Readonly<Readonly<{
|
|
82
188
|
type: "toggle";
|
|
83
189
|
valueType: string;
|
|
84
190
|
defaultValue: string | number | boolean | null;
|
|
85
191
|
optional: boolean;
|
|
86
|
-
}
|
|
192
|
+
}>> | Readonly<{
|
|
193
|
+
type: "parameter";
|
|
194
|
+
}>;
|
|
87
195
|
}>]>;
|
|
88
196
|
export type BuilderOptionEnableConfigSerialised = v.InferOutput<typeof BuilderOptionEnableConfigSerialisedSchema>;
|
|
89
197
|
export declare const BuilderOptionMatchConfigSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
90
198
|
readonly type: v.LiteralSchema<"match", undefined>;
|
|
91
199
|
readonly matchPath: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>;
|
|
92
|
-
readonly selectMap: v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
200
|
+
readonly selectMap: v.UnionSchema<[v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
93
201
|
readonly type: v.LiteralSchema<"select", undefined>;
|
|
94
202
|
readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
|
|
95
203
|
readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
96
204
|
readonly optional: v.BooleanSchema<undefined>;
|
|
97
205
|
readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
|
|
98
|
-
}, undefined>, v.
|
|
206
|
+
}, undefined>, v.ReadonlyAction<{
|
|
207
|
+
type: "select";
|
|
208
|
+
readonly options: readonly [string, ...string[]];
|
|
209
|
+
defaultValue: string | null;
|
|
210
|
+
optional: boolean;
|
|
211
|
+
labels: {
|
|
212
|
+
[x: string]: string;
|
|
213
|
+
};
|
|
214
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
99
215
|
readonly type: v.LiteralSchema<"toggle", undefined>;
|
|
100
216
|
readonly valueType: v.StringSchema<undefined>;
|
|
101
217
|
readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
|
|
102
218
|
readonly optional: v.BooleanSchema<undefined>;
|
|
103
|
-
}, undefined
|
|
219
|
+
}, undefined>, v.ReadonlyAction<{
|
|
220
|
+
type: "toggle";
|
|
221
|
+
valueType: string;
|
|
222
|
+
defaultValue: string | number | boolean | null;
|
|
223
|
+
optional: boolean;
|
|
224
|
+
}>]>], undefined>, v.ReadonlyAction<Readonly<{
|
|
225
|
+
type: "select";
|
|
226
|
+
readonly options: readonly [string, ...string[]];
|
|
227
|
+
defaultValue: string | null;
|
|
228
|
+
optional: boolean;
|
|
229
|
+
labels: {
|
|
230
|
+
[x: string]: string;
|
|
231
|
+
};
|
|
232
|
+
}> | Readonly<{
|
|
233
|
+
type: "toggle";
|
|
234
|
+
valueType: string;
|
|
235
|
+
defaultValue: string | number | boolean | null;
|
|
236
|
+
optional: boolean;
|
|
237
|
+
}>>]>, undefined>, undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
238
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
239
|
+
}, undefined>, v.ReadonlyAction<{
|
|
240
|
+
type: "parameter";
|
|
241
|
+
}>]>], undefined>;
|
|
104
242
|
}, undefined>, v.ReadonlyAction<{
|
|
105
243
|
type: "match";
|
|
106
244
|
readonly matchPath: readonly (string | number)[];
|
|
107
|
-
selectMap: {
|
|
108
|
-
|
|
245
|
+
selectMap: Readonly<{
|
|
246
|
+
type: "parameter";
|
|
247
|
+
}> | {
|
|
248
|
+
[x: string]: Readonly<Readonly<{
|
|
109
249
|
type: "select";
|
|
110
250
|
readonly options: readonly [string, ...string[]];
|
|
111
251
|
defaultValue: string | null;
|
|
@@ -113,12 +253,12 @@ export declare const BuilderOptionMatchConfigSerialisedSchema: v.SchemaWithPipe<
|
|
|
113
253
|
labels: {
|
|
114
254
|
[x: string]: string;
|
|
115
255
|
};
|
|
116
|
-
} | {
|
|
256
|
+
}>> | Readonly<Readonly<{
|
|
117
257
|
type: "toggle";
|
|
118
258
|
valueType: string;
|
|
119
259
|
defaultValue: string | number | boolean | null;
|
|
120
260
|
optional: boolean;
|
|
121
|
-
} | null;
|
|
261
|
+
}>> | null;
|
|
122
262
|
};
|
|
123
263
|
}>]>;
|
|
124
264
|
export type BuilderOptionMatchConfigSerialised = v.InferOutput<typeof BuilderOptionMatchConfigSerialisedSchema>;
|
|
@@ -126,23 +266,53 @@ export declare const BuilderOptionUnlessConfigSerialisedSchema: v.SchemaWithPipe
|
|
|
126
266
|
readonly type: v.LiteralSchema<"unless", undefined>;
|
|
127
267
|
readonly unlessPath: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>;
|
|
128
268
|
readonly disabledValues: v.SchemaWithPipe<readonly [v.ArraySchema<v.NullableSchema<v.UnionSchema<[v.StringSchema<undefined>, v.BooleanSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, undefined>, v.ReadonlyAction<(string | number | boolean | null)[]>]>;
|
|
129
|
-
readonly values: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
269
|
+
readonly values: v.UnionSchema<[v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
130
270
|
readonly type: v.LiteralSchema<"select", undefined>;
|
|
131
271
|
readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
|
|
132
272
|
readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
133
273
|
readonly optional: v.BooleanSchema<undefined>;
|
|
134
274
|
readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
|
|
135
|
-
}, undefined>, v.
|
|
275
|
+
}, undefined>, v.ReadonlyAction<{
|
|
276
|
+
type: "select";
|
|
277
|
+
readonly options: readonly [string, ...string[]];
|
|
278
|
+
defaultValue: string | null;
|
|
279
|
+
optional: boolean;
|
|
280
|
+
labels: {
|
|
281
|
+
[x: string]: string;
|
|
282
|
+
};
|
|
283
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
136
284
|
readonly type: v.LiteralSchema<"toggle", undefined>;
|
|
137
285
|
readonly valueType: v.StringSchema<undefined>;
|
|
138
286
|
readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
|
|
139
287
|
readonly optional: v.BooleanSchema<undefined>;
|
|
140
|
-
}, undefined
|
|
288
|
+
}, undefined>, v.ReadonlyAction<{
|
|
289
|
+
type: "toggle";
|
|
290
|
+
valueType: string;
|
|
291
|
+
defaultValue: string | number | boolean | null;
|
|
292
|
+
optional: boolean;
|
|
293
|
+
}>]>], undefined>, v.ReadonlyAction<Readonly<{
|
|
294
|
+
type: "select";
|
|
295
|
+
readonly options: readonly [string, ...string[]];
|
|
296
|
+
defaultValue: string | null;
|
|
297
|
+
optional: boolean;
|
|
298
|
+
labels: {
|
|
299
|
+
[x: string]: string;
|
|
300
|
+
};
|
|
301
|
+
}> | Readonly<{
|
|
302
|
+
type: "toggle";
|
|
303
|
+
valueType: string;
|
|
304
|
+
defaultValue: string | number | boolean | null;
|
|
305
|
+
optional: boolean;
|
|
306
|
+
}>>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
307
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
308
|
+
}, undefined>, v.ReadonlyAction<{
|
|
309
|
+
type: "parameter";
|
|
310
|
+
}>]>], undefined>;
|
|
141
311
|
}, undefined>, v.ReadonlyAction<{
|
|
142
312
|
type: "unless";
|
|
143
313
|
readonly unlessPath: readonly (string | number)[];
|
|
144
314
|
readonly disabledValues: readonly (string | number | boolean | null)[];
|
|
145
|
-
values: {
|
|
315
|
+
values: Readonly<Readonly<{
|
|
146
316
|
type: "select";
|
|
147
317
|
readonly options: readonly [string, ...string[]];
|
|
148
318
|
defaultValue: string | null;
|
|
@@ -150,62 +320,106 @@ export declare const BuilderOptionUnlessConfigSerialisedSchema: v.SchemaWithPipe
|
|
|
150
320
|
labels: {
|
|
151
321
|
[x: string]: string;
|
|
152
322
|
};
|
|
153
|
-
} | {
|
|
323
|
+
}>> | Readonly<Readonly<{
|
|
154
324
|
type: "toggle";
|
|
155
325
|
valueType: string;
|
|
156
326
|
defaultValue: string | number | boolean | null;
|
|
157
327
|
optional: boolean;
|
|
158
|
-
}
|
|
328
|
+
}>> | Readonly<{
|
|
329
|
+
type: "parameter";
|
|
330
|
+
}>;
|
|
159
331
|
}>]>;
|
|
160
332
|
export type BuilderOptionUnlessConfigSerialised = v.InferOutput<typeof BuilderOptionUnlessConfigSerialisedSchema>;
|
|
161
|
-
export declare const BuilderOptionWhenConfigSerialisedSchema: v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.ObjectSchema<{
|
|
333
|
+
export declare const BuilderOptionWhenConfigSerialisedSchema: v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
162
334
|
readonly type: v.LiteralSchema<"enable", undefined>;
|
|
163
|
-
readonly values: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
335
|
+
readonly values: v.UnionSchema<[v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
164
336
|
readonly type: v.LiteralSchema<"select", undefined>;
|
|
165
337
|
readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
|
|
166
338
|
readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
167
339
|
readonly optional: v.BooleanSchema<undefined>;
|
|
168
340
|
readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
|
|
169
|
-
}, undefined>, v.
|
|
341
|
+
}, undefined>, v.ReadonlyAction<{
|
|
342
|
+
type: "select";
|
|
343
|
+
readonly options: readonly [string, ...string[]];
|
|
344
|
+
defaultValue: string | null;
|
|
345
|
+
optional: boolean;
|
|
346
|
+
labels: {
|
|
347
|
+
[x: string]: string;
|
|
348
|
+
};
|
|
349
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
170
350
|
readonly type: v.LiteralSchema<"toggle", undefined>;
|
|
171
351
|
readonly valueType: v.StringSchema<undefined>;
|
|
172
352
|
readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
|
|
173
353
|
readonly optional: v.BooleanSchema<undefined>;
|
|
174
|
-
}, undefined
|
|
175
|
-
|
|
354
|
+
}, undefined>, v.ReadonlyAction<{
|
|
355
|
+
type: "toggle";
|
|
356
|
+
valueType: string;
|
|
357
|
+
defaultValue: string | number | boolean | null;
|
|
358
|
+
optional: boolean;
|
|
359
|
+
}>]>], undefined>, v.ReadonlyAction<Readonly<{
|
|
360
|
+
type: "select";
|
|
361
|
+
readonly options: readonly [string, ...string[]];
|
|
362
|
+
defaultValue: string | null;
|
|
363
|
+
optional: boolean;
|
|
364
|
+
labels: {
|
|
365
|
+
[x: string]: string;
|
|
366
|
+
};
|
|
367
|
+
}> | Readonly<{
|
|
368
|
+
type: "toggle";
|
|
369
|
+
valueType: string;
|
|
370
|
+
defaultValue: string | number | boolean | null;
|
|
371
|
+
optional: boolean;
|
|
372
|
+
}>>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
373
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
374
|
+
}, undefined>, v.ReadonlyAction<{
|
|
375
|
+
type: "parameter";
|
|
376
|
+
}>]>], undefined>;
|
|
377
|
+
}, undefined>, v.ReadonlyAction<{
|
|
378
|
+
type: "enable";
|
|
379
|
+
values: Readonly<Readonly<{
|
|
380
|
+
type: "select";
|
|
381
|
+
readonly options: readonly [string, ...string[]];
|
|
382
|
+
defaultValue: string | null;
|
|
383
|
+
optional: boolean;
|
|
384
|
+
labels: {
|
|
385
|
+
[x: string]: string;
|
|
386
|
+
};
|
|
387
|
+
}>> | Readonly<Readonly<{
|
|
388
|
+
type: "toggle";
|
|
389
|
+
valueType: string;
|
|
390
|
+
defaultValue: string | number | boolean | null;
|
|
391
|
+
optional: boolean;
|
|
392
|
+
}>> | Readonly<{
|
|
393
|
+
type: "parameter";
|
|
394
|
+
}>;
|
|
395
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
176
396
|
readonly type: v.LiteralSchema<"match", undefined>;
|
|
177
397
|
readonly matchPath: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>;
|
|
178
|
-
readonly selectMap: v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
179
|
-
readonly type: v.LiteralSchema<"select", undefined>;
|
|
180
|
-
readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
|
|
181
|
-
readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
182
|
-
readonly optional: v.BooleanSchema<undefined>;
|
|
183
|
-
readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
|
|
184
|
-
}, undefined>, v.ObjectSchema<{
|
|
185
|
-
readonly type: v.LiteralSchema<"toggle", undefined>;
|
|
186
|
-
readonly valueType: v.StringSchema<undefined>;
|
|
187
|
-
readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
|
|
188
|
-
readonly optional: v.BooleanSchema<undefined>;
|
|
189
|
-
}, undefined>], undefined>, undefined>, undefined>;
|
|
190
|
-
}, undefined>, v.ObjectSchema<{
|
|
191
|
-
readonly type: v.LiteralSchema<"unless", undefined>;
|
|
192
|
-
readonly unlessPath: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>;
|
|
193
|
-
readonly disabledValues: v.SchemaWithPipe<readonly [v.ArraySchema<v.NullableSchema<v.UnionSchema<[v.StringSchema<undefined>, v.BooleanSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, undefined>, v.ReadonlyAction<(string | number | boolean | null)[]>]>;
|
|
194
|
-
readonly values: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
398
|
+
readonly selectMap: v.UnionSchema<[v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
195
399
|
readonly type: v.LiteralSchema<"select", undefined>;
|
|
196
400
|
readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
|
|
197
401
|
readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
198
402
|
readonly optional: v.BooleanSchema<undefined>;
|
|
199
403
|
readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
|
|
200
|
-
}, undefined>, v.
|
|
404
|
+
}, undefined>, v.ReadonlyAction<{
|
|
405
|
+
type: "select";
|
|
406
|
+
readonly options: readonly [string, ...string[]];
|
|
407
|
+
defaultValue: string | null;
|
|
408
|
+
optional: boolean;
|
|
409
|
+
labels: {
|
|
410
|
+
[x: string]: string;
|
|
411
|
+
};
|
|
412
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
201
413
|
readonly type: v.LiteralSchema<"toggle", undefined>;
|
|
202
414
|
readonly valueType: v.StringSchema<undefined>;
|
|
203
415
|
readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
|
|
204
416
|
readonly optional: v.BooleanSchema<undefined>;
|
|
205
|
-
}, undefined
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
417
|
+
}, undefined>, v.ReadonlyAction<{
|
|
418
|
+
type: "toggle";
|
|
419
|
+
valueType: string;
|
|
420
|
+
defaultValue: string | number | boolean | null;
|
|
421
|
+
optional: boolean;
|
|
422
|
+
}>]>], undefined>, v.ReadonlyAction<Readonly<{
|
|
209
423
|
type: "select";
|
|
210
424
|
readonly options: readonly [string, ...string[]];
|
|
211
425
|
defaultValue: string | null;
|
|
@@ -213,17 +427,23 @@ export declare const BuilderOptionWhenConfigSerialisedSchema: v.SchemaWithPipe<r
|
|
|
213
427
|
labels: {
|
|
214
428
|
[x: string]: string;
|
|
215
429
|
};
|
|
216
|
-
} | {
|
|
430
|
+
}> | Readonly<{
|
|
217
431
|
type: "toggle";
|
|
218
432
|
valueType: string;
|
|
219
433
|
defaultValue: string | number | boolean | null;
|
|
220
434
|
optional: boolean;
|
|
221
|
-
}
|
|
222
|
-
|
|
435
|
+
}>>]>, undefined>, undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
436
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
437
|
+
}, undefined>, v.ReadonlyAction<{
|
|
438
|
+
type: "parameter";
|
|
439
|
+
}>]>], undefined>;
|
|
440
|
+
}, undefined>, v.ReadonlyAction<{
|
|
223
441
|
type: "match";
|
|
224
442
|
readonly matchPath: readonly (string | number)[];
|
|
225
|
-
selectMap: {
|
|
226
|
-
|
|
443
|
+
selectMap: Readonly<{
|
|
444
|
+
type: "parameter";
|
|
445
|
+
}> | {
|
|
446
|
+
[x: string]: Readonly<Readonly<{
|
|
227
447
|
type: "select";
|
|
228
448
|
readonly options: readonly [string, ...string[]];
|
|
229
449
|
defaultValue: string | null;
|
|
@@ -231,18 +451,24 @@ export declare const BuilderOptionWhenConfigSerialisedSchema: v.SchemaWithPipe<r
|
|
|
231
451
|
labels: {
|
|
232
452
|
[x: string]: string;
|
|
233
453
|
};
|
|
234
|
-
} | {
|
|
454
|
+
}>> | Readonly<Readonly<{
|
|
235
455
|
type: "toggle";
|
|
236
456
|
valueType: string;
|
|
237
457
|
defaultValue: string | number | boolean | null;
|
|
238
458
|
optional: boolean;
|
|
239
|
-
} | null;
|
|
459
|
+
}>> | null;
|
|
240
460
|
};
|
|
241
|
-
}
|
|
242
|
-
type: "unless"
|
|
243
|
-
readonly unlessPath: readonly (string | number)[]
|
|
244
|
-
readonly disabledValues: readonly (string | number | boolean | null)[]
|
|
245
|
-
values: {
|
|
461
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
462
|
+
readonly type: v.LiteralSchema<"unless", undefined>;
|
|
463
|
+
readonly unlessPath: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>;
|
|
464
|
+
readonly disabledValues: v.SchemaWithPipe<readonly [v.ArraySchema<v.NullableSchema<v.UnionSchema<[v.StringSchema<undefined>, v.BooleanSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, undefined>, v.ReadonlyAction<(string | number | boolean | null)[]>]>;
|
|
465
|
+
readonly values: v.UnionSchema<[v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
466
|
+
readonly type: v.LiteralSchema<"select", undefined>;
|
|
467
|
+
readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
|
|
468
|
+
readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
469
|
+
readonly optional: v.BooleanSchema<undefined>;
|
|
470
|
+
readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
|
|
471
|
+
}, undefined>, v.ReadonlyAction<{
|
|
246
472
|
type: "select";
|
|
247
473
|
readonly options: readonly [string, ...string[]];
|
|
248
474
|
defaultValue: string | null;
|
|
@@ -250,95 +476,357 @@ export declare const BuilderOptionWhenConfigSerialisedSchema: v.SchemaWithPipe<r
|
|
|
250
476
|
labels: {
|
|
251
477
|
[x: string]: string;
|
|
252
478
|
};
|
|
253
|
-
}
|
|
479
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
480
|
+
readonly type: v.LiteralSchema<"toggle", undefined>;
|
|
481
|
+
readonly valueType: v.StringSchema<undefined>;
|
|
482
|
+
readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
|
|
483
|
+
readonly optional: v.BooleanSchema<undefined>;
|
|
484
|
+
}, undefined>, v.ReadonlyAction<{
|
|
254
485
|
type: "toggle";
|
|
255
486
|
valueType: string;
|
|
256
487
|
defaultValue: string | number | boolean | null;
|
|
257
488
|
optional: boolean;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
489
|
+
}>]>], undefined>, v.ReadonlyAction<Readonly<{
|
|
490
|
+
type: "select";
|
|
491
|
+
readonly options: readonly [string, ...string[]];
|
|
492
|
+
defaultValue: string | null;
|
|
493
|
+
optional: boolean;
|
|
494
|
+
labels: {
|
|
495
|
+
[x: string]: string;
|
|
496
|
+
};
|
|
497
|
+
}> | Readonly<{
|
|
498
|
+
type: "toggle";
|
|
499
|
+
valueType: string;
|
|
500
|
+
defaultValue: string | number | boolean | null;
|
|
501
|
+
optional: boolean;
|
|
502
|
+
}>>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
503
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
504
|
+
}, undefined>, v.ReadonlyAction<{
|
|
505
|
+
type: "parameter";
|
|
506
|
+
}>]>], undefined>;
|
|
507
|
+
}, undefined>, v.ReadonlyAction<{
|
|
508
|
+
type: "unless";
|
|
509
|
+
readonly unlessPath: readonly (string | number)[];
|
|
510
|
+
readonly disabledValues: readonly (string | number | boolean | null)[];
|
|
511
|
+
values: Readonly<Readonly<{
|
|
512
|
+
type: "select";
|
|
513
|
+
readonly options: readonly [string, ...string[]];
|
|
514
|
+
defaultValue: string | null;
|
|
515
|
+
optional: boolean;
|
|
516
|
+
labels: {
|
|
517
|
+
[x: string]: string;
|
|
518
|
+
};
|
|
519
|
+
}>> | Readonly<Readonly<{
|
|
520
|
+
type: "toggle";
|
|
521
|
+
valueType: string;
|
|
522
|
+
defaultValue: string | number | boolean | null;
|
|
523
|
+
optional: boolean;
|
|
524
|
+
}>> | Readonly<{
|
|
525
|
+
type: "parameter";
|
|
526
|
+
}>;
|
|
527
|
+
}>]>], undefined>, v.ReadonlyAction<Readonly<{
|
|
528
|
+
type: "enable";
|
|
529
|
+
values: Readonly<Readonly<{
|
|
530
|
+
type: "select";
|
|
531
|
+
readonly options: readonly [string, ...string[]];
|
|
532
|
+
defaultValue: string | null;
|
|
533
|
+
optional: boolean;
|
|
534
|
+
labels: {
|
|
535
|
+
[x: string]: string;
|
|
536
|
+
};
|
|
537
|
+
}>> | Readonly<Readonly<{
|
|
538
|
+
type: "toggle";
|
|
539
|
+
valueType: string;
|
|
540
|
+
defaultValue: string | number | boolean | null;
|
|
541
|
+
optional: boolean;
|
|
542
|
+
}>> | Readonly<{
|
|
543
|
+
type: "parameter";
|
|
544
|
+
}>;
|
|
545
|
+
}> | Readonly<{
|
|
546
|
+
type: "match";
|
|
547
|
+
readonly matchPath: readonly (string | number)[];
|
|
548
|
+
selectMap: Readonly<{
|
|
549
|
+
type: "parameter";
|
|
550
|
+
}> | {
|
|
551
|
+
[x: string]: Readonly<Readonly<{
|
|
552
|
+
type: "select";
|
|
553
|
+
readonly options: readonly [string, ...string[]];
|
|
554
|
+
defaultValue: string | null;
|
|
555
|
+
optional: boolean;
|
|
556
|
+
labels: {
|
|
557
|
+
[x: string]: string;
|
|
558
|
+
};
|
|
559
|
+
}>> | Readonly<Readonly<{
|
|
560
|
+
type: "toggle";
|
|
561
|
+
valueType: string;
|
|
562
|
+
defaultValue: string | number | boolean | null;
|
|
563
|
+
optional: boolean;
|
|
564
|
+
}>> | null;
|
|
565
|
+
};
|
|
566
|
+
}> | Readonly<{
|
|
567
|
+
type: "unless";
|
|
568
|
+
readonly unlessPath: readonly (string | number)[];
|
|
569
|
+
readonly disabledValues: readonly (string | number | boolean | null)[];
|
|
570
|
+
values: Readonly<Readonly<{
|
|
571
|
+
type: "select";
|
|
572
|
+
readonly options: readonly [string, ...string[]];
|
|
573
|
+
defaultValue: string | null;
|
|
574
|
+
optional: boolean;
|
|
575
|
+
labels: {
|
|
576
|
+
[x: string]: string;
|
|
577
|
+
};
|
|
578
|
+
}>> | Readonly<Readonly<{
|
|
579
|
+
type: "toggle";
|
|
580
|
+
valueType: string;
|
|
581
|
+
defaultValue: string | number | boolean | null;
|
|
582
|
+
optional: boolean;
|
|
583
|
+
}>> | Readonly<{
|
|
584
|
+
type: "parameter";
|
|
585
|
+
}>;
|
|
586
|
+
}>>]>;
|
|
587
|
+
export type BuilderOptionWhenConfigSerialised = v.InferOutput<typeof BuilderOptionWhenConfigSerialisedSchema>;
|
|
588
|
+
export declare const BuilderOptionSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
262
589
|
readonly name: v.StringSchema<undefined>;
|
|
263
|
-
readonly values: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
590
|
+
readonly values: v.UnionSchema<[v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
264
591
|
readonly type: v.LiteralSchema<"select", undefined>;
|
|
265
592
|
readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
|
|
266
593
|
readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
267
594
|
readonly optional: v.BooleanSchema<undefined>;
|
|
268
595
|
readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
|
|
269
|
-
}, undefined>, v.
|
|
596
|
+
}, undefined>, v.ReadonlyAction<{
|
|
597
|
+
type: "select";
|
|
598
|
+
readonly options: readonly [string, ...string[]];
|
|
599
|
+
defaultValue: string | null;
|
|
600
|
+
optional: boolean;
|
|
601
|
+
labels: {
|
|
602
|
+
[x: string]: string;
|
|
603
|
+
};
|
|
604
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
270
605
|
readonly type: v.LiteralSchema<"toggle", undefined>;
|
|
271
606
|
readonly valueType: v.StringSchema<undefined>;
|
|
272
607
|
readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
|
|
273
608
|
readonly optional: v.BooleanSchema<undefined>;
|
|
274
|
-
}, undefined
|
|
609
|
+
}, undefined>, v.ReadonlyAction<{
|
|
610
|
+
type: "toggle";
|
|
611
|
+
valueType: string;
|
|
612
|
+
defaultValue: string | number | boolean | null;
|
|
613
|
+
optional: boolean;
|
|
614
|
+
}>]>], undefined>, v.ReadonlyAction<Readonly<{
|
|
615
|
+
type: "select";
|
|
616
|
+
readonly options: readonly [string, ...string[]];
|
|
617
|
+
defaultValue: string | null;
|
|
618
|
+
optional: boolean;
|
|
619
|
+
labels: {
|
|
620
|
+
[x: string]: string;
|
|
621
|
+
};
|
|
622
|
+
}> | Readonly<{
|
|
623
|
+
type: "toggle";
|
|
624
|
+
valueType: string;
|
|
625
|
+
defaultValue: string | number | boolean | null;
|
|
626
|
+
optional: boolean;
|
|
627
|
+
}>>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
628
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
629
|
+
}, undefined>, v.ReadonlyAction<{
|
|
630
|
+
type: "parameter";
|
|
631
|
+
}>]>], undefined>;
|
|
275
632
|
readonly gatePaths: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>;
|
|
276
|
-
readonly config: v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
633
|
+
readonly config: v.NullableSchema<v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
277
634
|
readonly type: v.LiteralSchema<"enable", undefined>;
|
|
278
|
-
readonly values: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
635
|
+
readonly values: v.UnionSchema<[v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
279
636
|
readonly type: v.LiteralSchema<"select", undefined>;
|
|
280
637
|
readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
|
|
281
638
|
readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
282
639
|
readonly optional: v.BooleanSchema<undefined>;
|
|
283
640
|
readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
|
|
284
|
-
}, undefined>, v.
|
|
641
|
+
}, undefined>, v.ReadonlyAction<{
|
|
642
|
+
type: "select";
|
|
643
|
+
readonly options: readonly [string, ...string[]];
|
|
644
|
+
defaultValue: string | null;
|
|
645
|
+
optional: boolean;
|
|
646
|
+
labels: {
|
|
647
|
+
[x: string]: string;
|
|
648
|
+
};
|
|
649
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
285
650
|
readonly type: v.LiteralSchema<"toggle", undefined>;
|
|
286
651
|
readonly valueType: v.StringSchema<undefined>;
|
|
287
652
|
readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
|
|
288
653
|
readonly optional: v.BooleanSchema<undefined>;
|
|
289
|
-
}, undefined
|
|
290
|
-
|
|
654
|
+
}, undefined>, v.ReadonlyAction<{
|
|
655
|
+
type: "toggle";
|
|
656
|
+
valueType: string;
|
|
657
|
+
defaultValue: string | number | boolean | null;
|
|
658
|
+
optional: boolean;
|
|
659
|
+
}>]>], undefined>, v.ReadonlyAction<Readonly<{
|
|
660
|
+
type: "select";
|
|
661
|
+
readonly options: readonly [string, ...string[]];
|
|
662
|
+
defaultValue: string | null;
|
|
663
|
+
optional: boolean;
|
|
664
|
+
labels: {
|
|
665
|
+
[x: string]: string;
|
|
666
|
+
};
|
|
667
|
+
}> | Readonly<{
|
|
668
|
+
type: "toggle";
|
|
669
|
+
valueType: string;
|
|
670
|
+
defaultValue: string | number | boolean | null;
|
|
671
|
+
optional: boolean;
|
|
672
|
+
}>>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
673
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
674
|
+
}, undefined>, v.ReadonlyAction<{
|
|
675
|
+
type: "parameter";
|
|
676
|
+
}>]>], undefined>;
|
|
677
|
+
}, undefined>, v.ReadonlyAction<{
|
|
678
|
+
type: "enable";
|
|
679
|
+
values: Readonly<Readonly<{
|
|
680
|
+
type: "select";
|
|
681
|
+
readonly options: readonly [string, ...string[]];
|
|
682
|
+
defaultValue: string | null;
|
|
683
|
+
optional: boolean;
|
|
684
|
+
labels: {
|
|
685
|
+
[x: string]: string;
|
|
686
|
+
};
|
|
687
|
+
}>> | Readonly<Readonly<{
|
|
688
|
+
type: "toggle";
|
|
689
|
+
valueType: string;
|
|
690
|
+
defaultValue: string | number | boolean | null;
|
|
691
|
+
optional: boolean;
|
|
692
|
+
}>> | Readonly<{
|
|
693
|
+
type: "parameter";
|
|
694
|
+
}>;
|
|
695
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
291
696
|
readonly type: v.LiteralSchema<"match", undefined>;
|
|
292
697
|
readonly matchPath: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>;
|
|
293
|
-
readonly selectMap: v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
698
|
+
readonly selectMap: v.UnionSchema<[v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
294
699
|
readonly type: v.LiteralSchema<"select", undefined>;
|
|
295
700
|
readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
|
|
296
701
|
readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
297
702
|
readonly optional: v.BooleanSchema<undefined>;
|
|
298
703
|
readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
|
|
299
|
-
}, undefined>, v.
|
|
704
|
+
}, undefined>, v.ReadonlyAction<{
|
|
705
|
+
type: "select";
|
|
706
|
+
readonly options: readonly [string, ...string[]];
|
|
707
|
+
defaultValue: string | null;
|
|
708
|
+
optional: boolean;
|
|
709
|
+
labels: {
|
|
710
|
+
[x: string]: string;
|
|
711
|
+
};
|
|
712
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
300
713
|
readonly type: v.LiteralSchema<"toggle", undefined>;
|
|
301
714
|
readonly valueType: v.StringSchema<undefined>;
|
|
302
715
|
readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
|
|
303
716
|
readonly optional: v.BooleanSchema<undefined>;
|
|
304
|
-
}, undefined
|
|
305
|
-
|
|
717
|
+
}, undefined>, v.ReadonlyAction<{
|
|
718
|
+
type: "toggle";
|
|
719
|
+
valueType: string;
|
|
720
|
+
defaultValue: string | number | boolean | null;
|
|
721
|
+
optional: boolean;
|
|
722
|
+
}>]>], undefined>, v.ReadonlyAction<Readonly<{
|
|
723
|
+
type: "select";
|
|
724
|
+
readonly options: readonly [string, ...string[]];
|
|
725
|
+
defaultValue: string | null;
|
|
726
|
+
optional: boolean;
|
|
727
|
+
labels: {
|
|
728
|
+
[x: string]: string;
|
|
729
|
+
};
|
|
730
|
+
}> | Readonly<{
|
|
731
|
+
type: "toggle";
|
|
732
|
+
valueType: string;
|
|
733
|
+
defaultValue: string | number | boolean | null;
|
|
734
|
+
optional: boolean;
|
|
735
|
+
}>>]>, undefined>, undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
736
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
737
|
+
}, undefined>, v.ReadonlyAction<{
|
|
738
|
+
type: "parameter";
|
|
739
|
+
}>]>], undefined>;
|
|
740
|
+
}, undefined>, v.ReadonlyAction<{
|
|
741
|
+
type: "match";
|
|
742
|
+
readonly matchPath: readonly (string | number)[];
|
|
743
|
+
selectMap: Readonly<{
|
|
744
|
+
type: "parameter";
|
|
745
|
+
}> | {
|
|
746
|
+
[x: string]: Readonly<Readonly<{
|
|
747
|
+
type: "select";
|
|
748
|
+
readonly options: readonly [string, ...string[]];
|
|
749
|
+
defaultValue: string | null;
|
|
750
|
+
optional: boolean;
|
|
751
|
+
labels: {
|
|
752
|
+
[x: string]: string;
|
|
753
|
+
};
|
|
754
|
+
}>> | Readonly<Readonly<{
|
|
755
|
+
type: "toggle";
|
|
756
|
+
valueType: string;
|
|
757
|
+
defaultValue: string | number | boolean | null;
|
|
758
|
+
optional: boolean;
|
|
759
|
+
}>> | null;
|
|
760
|
+
};
|
|
761
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
306
762
|
readonly type: v.LiteralSchema<"unless", undefined>;
|
|
307
763
|
readonly unlessPath: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>;
|
|
308
764
|
readonly disabledValues: v.SchemaWithPipe<readonly [v.ArraySchema<v.NullableSchema<v.UnionSchema<[v.StringSchema<undefined>, v.BooleanSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, undefined>, v.ReadonlyAction<(string | number | boolean | null)[]>]>;
|
|
309
|
-
readonly values: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
765
|
+
readonly values: v.UnionSchema<[v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
310
766
|
readonly type: v.LiteralSchema<"select", undefined>;
|
|
311
767
|
readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
|
|
312
768
|
readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
313
769
|
readonly optional: v.BooleanSchema<undefined>;
|
|
314
770
|
readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
|
|
315
|
-
}, undefined>, v.
|
|
771
|
+
}, undefined>, v.ReadonlyAction<{
|
|
772
|
+
type: "select";
|
|
773
|
+
readonly options: readonly [string, ...string[]];
|
|
774
|
+
defaultValue: string | null;
|
|
775
|
+
optional: boolean;
|
|
776
|
+
labels: {
|
|
777
|
+
[x: string]: string;
|
|
778
|
+
};
|
|
779
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
316
780
|
readonly type: v.LiteralSchema<"toggle", undefined>;
|
|
317
781
|
readonly valueType: v.StringSchema<undefined>;
|
|
318
782
|
readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
|
|
319
783
|
readonly optional: v.BooleanSchema<undefined>;
|
|
320
|
-
}, undefined
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
784
|
+
}, undefined>, v.ReadonlyAction<{
|
|
785
|
+
type: "toggle";
|
|
786
|
+
valueType: string;
|
|
787
|
+
defaultValue: string | number | boolean | null;
|
|
788
|
+
optional: boolean;
|
|
789
|
+
}>]>], undefined>, v.ReadonlyAction<Readonly<{
|
|
790
|
+
type: "select";
|
|
791
|
+
readonly options: readonly [string, ...string[]];
|
|
792
|
+
defaultValue: string | null;
|
|
793
|
+
optional: boolean;
|
|
794
|
+
labels: {
|
|
795
|
+
[x: string]: string;
|
|
796
|
+
};
|
|
797
|
+
}> | Readonly<{
|
|
798
|
+
type: "toggle";
|
|
799
|
+
valueType: string;
|
|
800
|
+
defaultValue: string | number | boolean | null;
|
|
801
|
+
optional: boolean;
|
|
802
|
+
}>>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
803
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
804
|
+
}, undefined>, v.ReadonlyAction<{
|
|
805
|
+
type: "parameter";
|
|
806
|
+
}>]>], undefined>;
|
|
807
|
+
}, undefined>, v.ReadonlyAction<{
|
|
808
|
+
type: "unless";
|
|
809
|
+
readonly unlessPath: readonly (string | number)[];
|
|
810
|
+
readonly disabledValues: readonly (string | number | boolean | null)[];
|
|
811
|
+
values: Readonly<Readonly<{
|
|
812
|
+
type: "select";
|
|
813
|
+
readonly options: readonly [string, ...string[]];
|
|
814
|
+
defaultValue: string | null;
|
|
815
|
+
optional: boolean;
|
|
816
|
+
labels: {
|
|
817
|
+
[x: string]: string;
|
|
818
|
+
};
|
|
819
|
+
}>> | Readonly<Readonly<{
|
|
820
|
+
type: "toggle";
|
|
821
|
+
valueType: string;
|
|
822
|
+
defaultValue: string | number | boolean | null;
|
|
823
|
+
optional: boolean;
|
|
824
|
+
}>> | Readonly<{
|
|
825
|
+
type: "parameter";
|
|
826
|
+
}>;
|
|
827
|
+
}>]>], undefined>, v.ReadonlyAction<Readonly<{
|
|
340
828
|
type: "enable";
|
|
341
|
-
values: {
|
|
829
|
+
values: Readonly<Readonly<{
|
|
342
830
|
type: "select";
|
|
343
831
|
readonly options: readonly [string, ...string[]];
|
|
344
832
|
defaultValue: string | null;
|
|
@@ -346,17 +834,21 @@ export declare const BuilderOptionSerialisedSchema: v.SchemaWithPipe<readonly [v
|
|
|
346
834
|
labels: {
|
|
347
835
|
[x: string]: string;
|
|
348
836
|
};
|
|
349
|
-
} | {
|
|
837
|
+
}>> | Readonly<Readonly<{
|
|
350
838
|
type: "toggle";
|
|
351
839
|
valueType: string;
|
|
352
840
|
defaultValue: string | number | boolean | null;
|
|
353
841
|
optional: boolean;
|
|
354
|
-
}
|
|
355
|
-
|
|
842
|
+
}>> | Readonly<{
|
|
843
|
+
type: "parameter";
|
|
844
|
+
}>;
|
|
845
|
+
}> | Readonly<{
|
|
356
846
|
type: "match";
|
|
357
847
|
readonly matchPath: readonly (string | number)[];
|
|
358
|
-
selectMap: {
|
|
359
|
-
|
|
848
|
+
selectMap: Readonly<{
|
|
849
|
+
type: "parameter";
|
|
850
|
+
}> | {
|
|
851
|
+
[x: string]: Readonly<Readonly<{
|
|
360
852
|
type: "select";
|
|
361
853
|
readonly options: readonly [string, ...string[]];
|
|
362
854
|
defaultValue: string | null;
|
|
@@ -364,18 +856,18 @@ export declare const BuilderOptionSerialisedSchema: v.SchemaWithPipe<readonly [v
|
|
|
364
856
|
labels: {
|
|
365
857
|
[x: string]: string;
|
|
366
858
|
};
|
|
367
|
-
} | {
|
|
859
|
+
}>> | Readonly<Readonly<{
|
|
368
860
|
type: "toggle";
|
|
369
861
|
valueType: string;
|
|
370
862
|
defaultValue: string | number | boolean | null;
|
|
371
863
|
optional: boolean;
|
|
372
|
-
} | null;
|
|
864
|
+
}>> | null;
|
|
373
865
|
};
|
|
374
|
-
} | {
|
|
866
|
+
}> | Readonly<{
|
|
375
867
|
type: "unless";
|
|
376
868
|
readonly unlessPath: readonly (string | number)[];
|
|
377
869
|
readonly disabledValues: readonly (string | number | boolean | null)[];
|
|
378
|
-
values: {
|
|
870
|
+
values: Readonly<Readonly<{
|
|
379
871
|
type: "select";
|
|
380
872
|
readonly options: readonly [string, ...string[]];
|
|
381
873
|
defaultValue: string | null;
|
|
@@ -383,64 +875,108 @@ export declare const BuilderOptionSerialisedSchema: v.SchemaWithPipe<readonly [v
|
|
|
383
875
|
labels: {
|
|
384
876
|
[x: string]: string;
|
|
385
877
|
};
|
|
386
|
-
} | {
|
|
878
|
+
}>> | Readonly<Readonly<{
|
|
387
879
|
type: "toggle";
|
|
388
880
|
valueType: string;
|
|
389
881
|
defaultValue: string | number | boolean | null;
|
|
390
882
|
optional: boolean;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
export declare const BuilderComponentSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
396
|
-
readonly name: v.StringSchema<undefined>;
|
|
397
|
-
readonly paths: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>;
|
|
398
|
-
readonly dependencies: v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>;
|
|
883
|
+
}>> | Readonly<{
|
|
884
|
+
type: "parameter";
|
|
885
|
+
}>;
|
|
886
|
+
}>>]>, undefined>;
|
|
399
887
|
}, undefined>, v.ReadonlyAction<{
|
|
400
888
|
name: string;
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
readonly
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
889
|
+
values: Readonly<Readonly<{
|
|
890
|
+
type: "select";
|
|
891
|
+
readonly options: readonly [string, ...string[]];
|
|
892
|
+
defaultValue: string | null;
|
|
893
|
+
optional: boolean;
|
|
894
|
+
labels: {
|
|
895
|
+
[x: string]: string;
|
|
896
|
+
};
|
|
897
|
+
}>> | Readonly<Readonly<{
|
|
898
|
+
type: "toggle";
|
|
899
|
+
valueType: string;
|
|
900
|
+
defaultValue: string | number | boolean | null;
|
|
901
|
+
optional: boolean;
|
|
902
|
+
}>> | Readonly<{
|
|
903
|
+
type: "parameter";
|
|
904
|
+
}>;
|
|
905
|
+
readonly gatePaths: readonly (readonly (string | number)[])[];
|
|
906
|
+
config: Readonly<Readonly<{
|
|
907
|
+
type: "enable";
|
|
908
|
+
values: Readonly<Readonly<{
|
|
909
|
+
type: "select";
|
|
910
|
+
readonly options: readonly [string, ...string[]];
|
|
911
|
+
defaultValue: string | null;
|
|
912
|
+
optional: boolean;
|
|
913
|
+
labels: {
|
|
914
|
+
[x: string]: string;
|
|
915
|
+
};
|
|
916
|
+
}>> | Readonly<Readonly<{
|
|
917
|
+
type: "toggle";
|
|
918
|
+
valueType: string;
|
|
919
|
+
defaultValue: string | number | boolean | null;
|
|
920
|
+
optional: boolean;
|
|
921
|
+
}>> | Readonly<{
|
|
922
|
+
type: "parameter";
|
|
923
|
+
}>;
|
|
924
|
+
}>> | Readonly<Readonly<{
|
|
925
|
+
type: "match";
|
|
926
|
+
readonly matchPath: readonly (string | number)[];
|
|
927
|
+
selectMap: Readonly<{
|
|
928
|
+
type: "parameter";
|
|
929
|
+
}> | {
|
|
930
|
+
[x: string]: Readonly<Readonly<{
|
|
931
|
+
type: "select";
|
|
932
|
+
readonly options: readonly [string, ...string[]];
|
|
933
|
+
defaultValue: string | null;
|
|
934
|
+
optional: boolean;
|
|
935
|
+
labels: {
|
|
936
|
+
[x: string]: string;
|
|
937
|
+
};
|
|
938
|
+
}>> | Readonly<Readonly<{
|
|
939
|
+
type: "toggle";
|
|
940
|
+
valueType: string;
|
|
941
|
+
defaultValue: string | number | boolean | null;
|
|
942
|
+
optional: boolean;
|
|
943
|
+
}>> | null;
|
|
944
|
+
};
|
|
945
|
+
}>> | Readonly<Readonly<{
|
|
946
|
+
type: "unless";
|
|
947
|
+
readonly unlessPath: readonly (string | number)[];
|
|
948
|
+
readonly disabledValues: readonly (string | number | boolean | null)[];
|
|
949
|
+
values: Readonly<Readonly<{
|
|
950
|
+
type: "select";
|
|
951
|
+
readonly options: readonly [string, ...string[]];
|
|
952
|
+
defaultValue: string | null;
|
|
953
|
+
optional: boolean;
|
|
954
|
+
labels: {
|
|
955
|
+
[x: string]: string;
|
|
956
|
+
};
|
|
957
|
+
}>> | Readonly<Readonly<{
|
|
958
|
+
type: "toggle";
|
|
959
|
+
valueType: string;
|
|
960
|
+
defaultValue: string | number | boolean | null;
|
|
961
|
+
optional: boolean;
|
|
962
|
+
}>> | Readonly<{
|
|
963
|
+
type: "parameter";
|
|
964
|
+
}>;
|
|
965
|
+
}>> | null;
|
|
966
|
+
}>]>;
|
|
967
|
+
export type BuilderOptionSerialised = v.InferOutput<typeof BuilderOptionSerialisedSchema>;
|
|
968
|
+
export declare const BuilderComponentSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
969
|
+
readonly name: v.StringSchema<undefined>;
|
|
970
|
+
readonly paths: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>;
|
|
971
|
+
readonly dependencies: v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>;
|
|
972
|
+
}, undefined>, v.ReadonlyAction<{
|
|
973
|
+
name: string;
|
|
974
|
+
readonly paths: readonly (readonly (string | number)[])[];
|
|
975
|
+
readonly dependencies: readonly string[];
|
|
976
|
+
}>]>;
|
|
977
|
+
export type BuilderComponentSerialised = v.InferOutput<typeof BuilderComponentSerialisedSchema>;
|
|
443
978
|
type SerialisedSchemaType = v.GenericSchema<BuilderSerialised, BuilderSerialised>;
|
|
979
|
+
type UIItemsSerialisedSchemaType = v.GenericSchema<BuilderUIItemsSerialised, BuilderUIItemsSerialised>;
|
|
444
980
|
export declare const BuilderCollectionConfigSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
445
981
|
readonly builder: v.LazySchema<SerialisedSchemaType>;
|
|
446
982
|
readonly min: v.NumberSchema<undefined>;
|
|
@@ -595,71 +1131,316 @@ export declare const BuilderCollectionSerialisedSchema: v.SchemaWithPipe<readonl
|
|
|
595
1131
|
max: number;
|
|
596
1132
|
} | null;
|
|
597
1133
|
}>]>;
|
|
1134
|
+
export declare const BuilderExpectationSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1135
|
+
readonly name: v.StringSchema<undefined>;
|
|
1136
|
+
readonly kind: v.PicklistSchema<["option", "component"], undefined>;
|
|
1137
|
+
}, undefined>, v.ReadonlyAction<{
|
|
1138
|
+
name: string;
|
|
1139
|
+
kind: "option" | "component";
|
|
1140
|
+
}>]>;
|
|
598
1141
|
export declare const BuilderSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
599
1142
|
readonly options: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
600
1143
|
readonly name: v.StringSchema<undefined>;
|
|
601
|
-
readonly values: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1144
|
+
readonly values: v.UnionSchema<[v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
602
1145
|
readonly type: v.LiteralSchema<"select", undefined>;
|
|
603
1146
|
readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
|
|
604
1147
|
readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
605
1148
|
readonly optional: v.BooleanSchema<undefined>;
|
|
606
1149
|
readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
|
|
607
|
-
}, undefined>, v.
|
|
1150
|
+
}, undefined>, v.ReadonlyAction<{
|
|
1151
|
+
type: "select";
|
|
1152
|
+
readonly options: readonly [string, ...string[]];
|
|
1153
|
+
defaultValue: string | null;
|
|
1154
|
+
optional: boolean;
|
|
1155
|
+
labels: {
|
|
1156
|
+
[x: string]: string;
|
|
1157
|
+
};
|
|
1158
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
608
1159
|
readonly type: v.LiteralSchema<"toggle", undefined>;
|
|
609
1160
|
readonly valueType: v.StringSchema<undefined>;
|
|
610
1161
|
readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
|
|
611
1162
|
readonly optional: v.BooleanSchema<undefined>;
|
|
612
|
-
}, undefined
|
|
1163
|
+
}, undefined>, v.ReadonlyAction<{
|
|
1164
|
+
type: "toggle";
|
|
1165
|
+
valueType: string;
|
|
1166
|
+
defaultValue: string | number | boolean | null;
|
|
1167
|
+
optional: boolean;
|
|
1168
|
+
}>]>], undefined>, v.ReadonlyAction<Readonly<{
|
|
1169
|
+
type: "select";
|
|
1170
|
+
readonly options: readonly [string, ...string[]];
|
|
1171
|
+
defaultValue: string | null;
|
|
1172
|
+
optional: boolean;
|
|
1173
|
+
labels: {
|
|
1174
|
+
[x: string]: string;
|
|
1175
|
+
};
|
|
1176
|
+
}> | Readonly<{
|
|
1177
|
+
type: "toggle";
|
|
1178
|
+
valueType: string;
|
|
1179
|
+
defaultValue: string | number | boolean | null;
|
|
1180
|
+
optional: boolean;
|
|
1181
|
+
}>>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1182
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
1183
|
+
}, undefined>, v.ReadonlyAction<{
|
|
1184
|
+
type: "parameter";
|
|
1185
|
+
}>]>], undefined>;
|
|
613
1186
|
readonly gatePaths: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>;
|
|
614
|
-
readonly config: v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1187
|
+
readonly config: v.NullableSchema<v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
615
1188
|
readonly type: v.LiteralSchema<"enable", undefined>;
|
|
616
|
-
readonly values: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1189
|
+
readonly values: v.UnionSchema<[v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
617
1190
|
readonly type: v.LiteralSchema<"select", undefined>;
|
|
618
1191
|
readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
|
|
619
1192
|
readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
620
1193
|
readonly optional: v.BooleanSchema<undefined>;
|
|
621
1194
|
readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
|
|
622
|
-
}, undefined>, v.
|
|
1195
|
+
}, undefined>, v.ReadonlyAction<{
|
|
1196
|
+
type: "select";
|
|
1197
|
+
readonly options: readonly [string, ...string[]];
|
|
1198
|
+
defaultValue: string | null;
|
|
1199
|
+
optional: boolean;
|
|
1200
|
+
labels: {
|
|
1201
|
+
[x: string]: string;
|
|
1202
|
+
};
|
|
1203
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
623
1204
|
readonly type: v.LiteralSchema<"toggle", undefined>;
|
|
624
1205
|
readonly valueType: v.StringSchema<undefined>;
|
|
625
1206
|
readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
|
|
626
1207
|
readonly optional: v.BooleanSchema<undefined>;
|
|
627
|
-
}, undefined
|
|
628
|
-
|
|
1208
|
+
}, undefined>, v.ReadonlyAction<{
|
|
1209
|
+
type: "toggle";
|
|
1210
|
+
valueType: string;
|
|
1211
|
+
defaultValue: string | number | boolean | null;
|
|
1212
|
+
optional: boolean;
|
|
1213
|
+
}>]>], undefined>, v.ReadonlyAction<Readonly<{
|
|
1214
|
+
type: "select";
|
|
1215
|
+
readonly options: readonly [string, ...string[]];
|
|
1216
|
+
defaultValue: string | null;
|
|
1217
|
+
optional: boolean;
|
|
1218
|
+
labels: {
|
|
1219
|
+
[x: string]: string;
|
|
1220
|
+
};
|
|
1221
|
+
}> | Readonly<{
|
|
1222
|
+
type: "toggle";
|
|
1223
|
+
valueType: string;
|
|
1224
|
+
defaultValue: string | number | boolean | null;
|
|
1225
|
+
optional: boolean;
|
|
1226
|
+
}>>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1227
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
1228
|
+
}, undefined>, v.ReadonlyAction<{
|
|
1229
|
+
type: "parameter";
|
|
1230
|
+
}>]>], undefined>;
|
|
1231
|
+
}, undefined>, v.ReadonlyAction<{
|
|
1232
|
+
type: "enable";
|
|
1233
|
+
values: Readonly<Readonly<{
|
|
1234
|
+
type: "select";
|
|
1235
|
+
readonly options: readonly [string, ...string[]];
|
|
1236
|
+
defaultValue: string | null;
|
|
1237
|
+
optional: boolean;
|
|
1238
|
+
labels: {
|
|
1239
|
+
[x: string]: string;
|
|
1240
|
+
};
|
|
1241
|
+
}>> | Readonly<Readonly<{
|
|
1242
|
+
type: "toggle";
|
|
1243
|
+
valueType: string;
|
|
1244
|
+
defaultValue: string | number | boolean | null;
|
|
1245
|
+
optional: boolean;
|
|
1246
|
+
}>> | Readonly<{
|
|
1247
|
+
type: "parameter";
|
|
1248
|
+
}>;
|
|
1249
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
629
1250
|
readonly type: v.LiteralSchema<"match", undefined>;
|
|
630
1251
|
readonly matchPath: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>;
|
|
631
|
-
readonly selectMap: v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1252
|
+
readonly selectMap: v.UnionSchema<[v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
632
1253
|
readonly type: v.LiteralSchema<"select", undefined>;
|
|
633
1254
|
readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
|
|
634
1255
|
readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
635
1256
|
readonly optional: v.BooleanSchema<undefined>;
|
|
636
1257
|
readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
|
|
637
|
-
}, undefined>, v.
|
|
1258
|
+
}, undefined>, v.ReadonlyAction<{
|
|
1259
|
+
type: "select";
|
|
1260
|
+
readonly options: readonly [string, ...string[]];
|
|
1261
|
+
defaultValue: string | null;
|
|
1262
|
+
optional: boolean;
|
|
1263
|
+
labels: {
|
|
1264
|
+
[x: string]: string;
|
|
1265
|
+
};
|
|
1266
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
638
1267
|
readonly type: v.LiteralSchema<"toggle", undefined>;
|
|
639
1268
|
readonly valueType: v.StringSchema<undefined>;
|
|
640
1269
|
readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
|
|
641
1270
|
readonly optional: v.BooleanSchema<undefined>;
|
|
642
|
-
}, undefined
|
|
643
|
-
|
|
1271
|
+
}, undefined>, v.ReadonlyAction<{
|
|
1272
|
+
type: "toggle";
|
|
1273
|
+
valueType: string;
|
|
1274
|
+
defaultValue: string | number | boolean | null;
|
|
1275
|
+
optional: boolean;
|
|
1276
|
+
}>]>], undefined>, v.ReadonlyAction<Readonly<{
|
|
1277
|
+
type: "select";
|
|
1278
|
+
readonly options: readonly [string, ...string[]];
|
|
1279
|
+
defaultValue: string | null;
|
|
1280
|
+
optional: boolean;
|
|
1281
|
+
labels: {
|
|
1282
|
+
[x: string]: string;
|
|
1283
|
+
};
|
|
1284
|
+
}> | Readonly<{
|
|
1285
|
+
type: "toggle";
|
|
1286
|
+
valueType: string;
|
|
1287
|
+
defaultValue: string | number | boolean | null;
|
|
1288
|
+
optional: boolean;
|
|
1289
|
+
}>>]>, undefined>, undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1290
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
1291
|
+
}, undefined>, v.ReadonlyAction<{
|
|
1292
|
+
type: "parameter";
|
|
1293
|
+
}>]>], undefined>;
|
|
1294
|
+
}, undefined>, v.ReadonlyAction<{
|
|
1295
|
+
type: "match";
|
|
1296
|
+
readonly matchPath: readonly (string | number)[];
|
|
1297
|
+
selectMap: Readonly<{
|
|
1298
|
+
type: "parameter";
|
|
1299
|
+
}> | {
|
|
1300
|
+
[x: string]: Readonly<Readonly<{
|
|
1301
|
+
type: "select";
|
|
1302
|
+
readonly options: readonly [string, ...string[]];
|
|
1303
|
+
defaultValue: string | null;
|
|
1304
|
+
optional: boolean;
|
|
1305
|
+
labels: {
|
|
1306
|
+
[x: string]: string;
|
|
1307
|
+
};
|
|
1308
|
+
}>> | Readonly<Readonly<{
|
|
1309
|
+
type: "toggle";
|
|
1310
|
+
valueType: string;
|
|
1311
|
+
defaultValue: string | number | boolean | null;
|
|
1312
|
+
optional: boolean;
|
|
1313
|
+
}>> | null;
|
|
1314
|
+
};
|
|
1315
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
644
1316
|
readonly type: v.LiteralSchema<"unless", undefined>;
|
|
645
1317
|
readonly unlessPath: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>;
|
|
646
1318
|
readonly disabledValues: v.SchemaWithPipe<readonly [v.ArraySchema<v.NullableSchema<v.UnionSchema<[v.StringSchema<undefined>, v.BooleanSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, undefined>, v.ReadonlyAction<(string | number | boolean | null)[]>]>;
|
|
647
|
-
readonly values: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1319
|
+
readonly values: v.UnionSchema<[v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
648
1320
|
readonly type: v.LiteralSchema<"select", undefined>;
|
|
649
1321
|
readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
|
|
650
1322
|
readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
651
1323
|
readonly optional: v.BooleanSchema<undefined>;
|
|
652
1324
|
readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
|
|
653
|
-
}, undefined>, v.
|
|
1325
|
+
}, undefined>, v.ReadonlyAction<{
|
|
1326
|
+
type: "select";
|
|
1327
|
+
readonly options: readonly [string, ...string[]];
|
|
1328
|
+
defaultValue: string | null;
|
|
1329
|
+
optional: boolean;
|
|
1330
|
+
labels: {
|
|
1331
|
+
[x: string]: string;
|
|
1332
|
+
};
|
|
1333
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
654
1334
|
readonly type: v.LiteralSchema<"toggle", undefined>;
|
|
655
1335
|
readonly valueType: v.StringSchema<undefined>;
|
|
656
1336
|
readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
|
|
657
1337
|
readonly optional: v.BooleanSchema<undefined>;
|
|
658
|
-
}, undefined
|
|
659
|
-
|
|
1338
|
+
}, undefined>, v.ReadonlyAction<{
|
|
1339
|
+
type: "toggle";
|
|
1340
|
+
valueType: string;
|
|
1341
|
+
defaultValue: string | number | boolean | null;
|
|
1342
|
+
optional: boolean;
|
|
1343
|
+
}>]>], undefined>, v.ReadonlyAction<Readonly<{
|
|
1344
|
+
type: "select";
|
|
1345
|
+
readonly options: readonly [string, ...string[]];
|
|
1346
|
+
defaultValue: string | null;
|
|
1347
|
+
optional: boolean;
|
|
1348
|
+
labels: {
|
|
1349
|
+
[x: string]: string;
|
|
1350
|
+
};
|
|
1351
|
+
}> | Readonly<{
|
|
1352
|
+
type: "toggle";
|
|
1353
|
+
valueType: string;
|
|
1354
|
+
defaultValue: string | number | boolean | null;
|
|
1355
|
+
optional: boolean;
|
|
1356
|
+
}>>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1357
|
+
readonly type: v.LiteralSchema<"parameter", undefined>;
|
|
1358
|
+
}, undefined>, v.ReadonlyAction<{
|
|
1359
|
+
type: "parameter";
|
|
1360
|
+
}>]>], undefined>;
|
|
1361
|
+
}, undefined>, v.ReadonlyAction<{
|
|
1362
|
+
type: "unless";
|
|
1363
|
+
readonly unlessPath: readonly (string | number)[];
|
|
1364
|
+
readonly disabledValues: readonly (string | number | boolean | null)[];
|
|
1365
|
+
values: Readonly<Readonly<{
|
|
1366
|
+
type: "select";
|
|
1367
|
+
readonly options: readonly [string, ...string[]];
|
|
1368
|
+
defaultValue: string | null;
|
|
1369
|
+
optional: boolean;
|
|
1370
|
+
labels: {
|
|
1371
|
+
[x: string]: string;
|
|
1372
|
+
};
|
|
1373
|
+
}>> | Readonly<Readonly<{
|
|
1374
|
+
type: "toggle";
|
|
1375
|
+
valueType: string;
|
|
1376
|
+
defaultValue: string | number | boolean | null;
|
|
1377
|
+
optional: boolean;
|
|
1378
|
+
}>> | Readonly<{
|
|
1379
|
+
type: "parameter";
|
|
1380
|
+
}>;
|
|
1381
|
+
}>]>], undefined>, v.ReadonlyAction<Readonly<{
|
|
1382
|
+
type: "enable";
|
|
1383
|
+
values: Readonly<Readonly<{
|
|
1384
|
+
type: "select";
|
|
1385
|
+
readonly options: readonly [string, ...string[]];
|
|
1386
|
+
defaultValue: string | null;
|
|
1387
|
+
optional: boolean;
|
|
1388
|
+
labels: {
|
|
1389
|
+
[x: string]: string;
|
|
1390
|
+
};
|
|
1391
|
+
}>> | Readonly<Readonly<{
|
|
1392
|
+
type: "toggle";
|
|
1393
|
+
valueType: string;
|
|
1394
|
+
defaultValue: string | number | boolean | null;
|
|
1395
|
+
optional: boolean;
|
|
1396
|
+
}>> | Readonly<{
|
|
1397
|
+
type: "parameter";
|
|
1398
|
+
}>;
|
|
1399
|
+
}> | Readonly<{
|
|
1400
|
+
type: "match";
|
|
1401
|
+
readonly matchPath: readonly (string | number)[];
|
|
1402
|
+
selectMap: Readonly<{
|
|
1403
|
+
type: "parameter";
|
|
1404
|
+
}> | {
|
|
1405
|
+
[x: string]: Readonly<Readonly<{
|
|
1406
|
+
type: "select";
|
|
1407
|
+
readonly options: readonly [string, ...string[]];
|
|
1408
|
+
defaultValue: string | null;
|
|
1409
|
+
optional: boolean;
|
|
1410
|
+
labels: {
|
|
1411
|
+
[x: string]: string;
|
|
1412
|
+
};
|
|
1413
|
+
}>> | Readonly<Readonly<{
|
|
1414
|
+
type: "toggle";
|
|
1415
|
+
valueType: string;
|
|
1416
|
+
defaultValue: string | number | boolean | null;
|
|
1417
|
+
optional: boolean;
|
|
1418
|
+
}>> | null;
|
|
1419
|
+
};
|
|
1420
|
+
}> | Readonly<{
|
|
1421
|
+
type: "unless";
|
|
1422
|
+
readonly unlessPath: readonly (string | number)[];
|
|
1423
|
+
readonly disabledValues: readonly (string | number | boolean | null)[];
|
|
1424
|
+
values: Readonly<Readonly<{
|
|
1425
|
+
type: "select";
|
|
1426
|
+
readonly options: readonly [string, ...string[]];
|
|
1427
|
+
defaultValue: string | null;
|
|
1428
|
+
optional: boolean;
|
|
1429
|
+
labels: {
|
|
1430
|
+
[x: string]: string;
|
|
1431
|
+
};
|
|
1432
|
+
}>> | Readonly<Readonly<{
|
|
1433
|
+
type: "toggle";
|
|
1434
|
+
valueType: string;
|
|
1435
|
+
defaultValue: string | number | boolean | null;
|
|
1436
|
+
optional: boolean;
|
|
1437
|
+
}>> | Readonly<{
|
|
1438
|
+
type: "parameter";
|
|
1439
|
+
}>;
|
|
1440
|
+
}>>]>, undefined>;
|
|
660
1441
|
}, undefined>, v.ReadonlyAction<{
|
|
661
1442
|
name: string;
|
|
662
|
-
values: {
|
|
1443
|
+
values: Readonly<Readonly<{
|
|
663
1444
|
type: "select";
|
|
664
1445
|
readonly options: readonly [string, ...string[]];
|
|
665
1446
|
defaultValue: string | null;
|
|
@@ -667,16 +1448,18 @@ export declare const BuilderSerialisedSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
667
1448
|
labels: {
|
|
668
1449
|
[x: string]: string;
|
|
669
1450
|
};
|
|
670
|
-
} | {
|
|
1451
|
+
}>> | Readonly<Readonly<{
|
|
671
1452
|
type: "toggle";
|
|
672
1453
|
valueType: string;
|
|
673
1454
|
defaultValue: string | number | boolean | null;
|
|
674
1455
|
optional: boolean;
|
|
675
|
-
}
|
|
1456
|
+
}>> | Readonly<{
|
|
1457
|
+
type: "parameter";
|
|
1458
|
+
}>;
|
|
676
1459
|
readonly gatePaths: readonly (readonly (string | number)[])[];
|
|
677
|
-
config: {
|
|
1460
|
+
config: Readonly<Readonly<{
|
|
678
1461
|
type: "enable";
|
|
679
|
-
values: {
|
|
1462
|
+
values: Readonly<Readonly<{
|
|
680
1463
|
type: "select";
|
|
681
1464
|
readonly options: readonly [string, ...string[]];
|
|
682
1465
|
defaultValue: string | null;
|
|
@@ -684,17 +1467,21 @@ export declare const BuilderSerialisedSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
684
1467
|
labels: {
|
|
685
1468
|
[x: string]: string;
|
|
686
1469
|
};
|
|
687
|
-
} | {
|
|
1470
|
+
}>> | Readonly<Readonly<{
|
|
688
1471
|
type: "toggle";
|
|
689
1472
|
valueType: string;
|
|
690
1473
|
defaultValue: string | number | boolean | null;
|
|
691
1474
|
optional: boolean;
|
|
692
|
-
}
|
|
693
|
-
|
|
1475
|
+
}>> | Readonly<{
|
|
1476
|
+
type: "parameter";
|
|
1477
|
+
}>;
|
|
1478
|
+
}>> | Readonly<Readonly<{
|
|
694
1479
|
type: "match";
|
|
695
1480
|
readonly matchPath: readonly (string | number)[];
|
|
696
|
-
selectMap: {
|
|
697
|
-
|
|
1481
|
+
selectMap: Readonly<{
|
|
1482
|
+
type: "parameter";
|
|
1483
|
+
}> | {
|
|
1484
|
+
[x: string]: Readonly<Readonly<{
|
|
698
1485
|
type: "select";
|
|
699
1486
|
readonly options: readonly [string, ...string[]];
|
|
700
1487
|
defaultValue: string | null;
|
|
@@ -702,18 +1489,18 @@ export declare const BuilderSerialisedSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
702
1489
|
labels: {
|
|
703
1490
|
[x: string]: string;
|
|
704
1491
|
};
|
|
705
|
-
} | {
|
|
1492
|
+
}>> | Readonly<Readonly<{
|
|
706
1493
|
type: "toggle";
|
|
707
1494
|
valueType: string;
|
|
708
1495
|
defaultValue: string | number | boolean | null;
|
|
709
1496
|
optional: boolean;
|
|
710
|
-
} | null;
|
|
1497
|
+
}>> | null;
|
|
711
1498
|
};
|
|
712
|
-
} | {
|
|
1499
|
+
}>> | Readonly<Readonly<{
|
|
713
1500
|
type: "unless";
|
|
714
1501
|
readonly unlessPath: readonly (string | number)[];
|
|
715
1502
|
readonly disabledValues: readonly (string | number | boolean | null)[];
|
|
716
|
-
values: {
|
|
1503
|
+
values: Readonly<Readonly<{
|
|
717
1504
|
type: "select";
|
|
718
1505
|
readonly options: readonly [string, ...string[]];
|
|
719
1506
|
defaultValue: string | null;
|
|
@@ -721,16 +1508,18 @@ export declare const BuilderSerialisedSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
721
1508
|
labels: {
|
|
722
1509
|
[x: string]: string;
|
|
723
1510
|
};
|
|
724
|
-
} | {
|
|
1511
|
+
}>> | Readonly<Readonly<{
|
|
725
1512
|
type: "toggle";
|
|
726
1513
|
valueType: string;
|
|
727
1514
|
defaultValue: string | number | boolean | null;
|
|
728
1515
|
optional: boolean;
|
|
729
|
-
}
|
|
730
|
-
|
|
1516
|
+
}>> | Readonly<{
|
|
1517
|
+
type: "parameter";
|
|
1518
|
+
}>;
|
|
1519
|
+
}>> | null;
|
|
731
1520
|
}>]>, undefined>, v.ReadonlyAction<Readonly<{
|
|
732
1521
|
name: string;
|
|
733
|
-
values: {
|
|
1522
|
+
values: Readonly<Readonly<{
|
|
734
1523
|
type: "select";
|
|
735
1524
|
readonly options: readonly [string, ...string[]];
|
|
736
1525
|
defaultValue: string | null;
|
|
@@ -738,16 +1527,18 @@ export declare const BuilderSerialisedSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
738
1527
|
labels: {
|
|
739
1528
|
[x: string]: string;
|
|
740
1529
|
};
|
|
741
|
-
} | {
|
|
1530
|
+
}>> | Readonly<Readonly<{
|
|
742
1531
|
type: "toggle";
|
|
743
1532
|
valueType: string;
|
|
744
1533
|
defaultValue: string | number | boolean | null;
|
|
745
1534
|
optional: boolean;
|
|
746
|
-
}
|
|
1535
|
+
}>> | Readonly<{
|
|
1536
|
+
type: "parameter";
|
|
1537
|
+
}>;
|
|
747
1538
|
readonly gatePaths: readonly (readonly (string | number)[])[];
|
|
748
|
-
config: {
|
|
1539
|
+
config: Readonly<Readonly<{
|
|
749
1540
|
type: "enable";
|
|
750
|
-
values: {
|
|
1541
|
+
values: Readonly<Readonly<{
|
|
751
1542
|
type: "select";
|
|
752
1543
|
readonly options: readonly [string, ...string[]];
|
|
753
1544
|
defaultValue: string | null;
|
|
@@ -755,17 +1546,21 @@ export declare const BuilderSerialisedSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
755
1546
|
labels: {
|
|
756
1547
|
[x: string]: string;
|
|
757
1548
|
};
|
|
758
|
-
} | {
|
|
1549
|
+
}>> | Readonly<Readonly<{
|
|
759
1550
|
type: "toggle";
|
|
760
1551
|
valueType: string;
|
|
761
1552
|
defaultValue: string | number | boolean | null;
|
|
762
1553
|
optional: boolean;
|
|
763
|
-
}
|
|
764
|
-
|
|
1554
|
+
}>> | Readonly<{
|
|
1555
|
+
type: "parameter";
|
|
1556
|
+
}>;
|
|
1557
|
+
}>> | Readonly<Readonly<{
|
|
765
1558
|
type: "match";
|
|
766
1559
|
readonly matchPath: readonly (string | number)[];
|
|
767
|
-
selectMap: {
|
|
768
|
-
|
|
1560
|
+
selectMap: Readonly<{
|
|
1561
|
+
type: "parameter";
|
|
1562
|
+
}> | {
|
|
1563
|
+
[x: string]: Readonly<Readonly<{
|
|
769
1564
|
type: "select";
|
|
770
1565
|
readonly options: readonly [string, ...string[]];
|
|
771
1566
|
defaultValue: string | null;
|
|
@@ -773,18 +1568,18 @@ export declare const BuilderSerialisedSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
773
1568
|
labels: {
|
|
774
1569
|
[x: string]: string;
|
|
775
1570
|
};
|
|
776
|
-
} | {
|
|
1571
|
+
}>> | Readonly<Readonly<{
|
|
777
1572
|
type: "toggle";
|
|
778
1573
|
valueType: string;
|
|
779
1574
|
defaultValue: string | number | boolean | null;
|
|
780
1575
|
optional: boolean;
|
|
781
|
-
} | null;
|
|
1576
|
+
}>> | null;
|
|
782
1577
|
};
|
|
783
|
-
} | {
|
|
1578
|
+
}>> | Readonly<Readonly<{
|
|
784
1579
|
type: "unless";
|
|
785
1580
|
readonly unlessPath: readonly (string | number)[];
|
|
786
1581
|
readonly disabledValues: readonly (string | number | boolean | null)[];
|
|
787
|
-
values: {
|
|
1582
|
+
values: Readonly<Readonly<{
|
|
788
1583
|
type: "select";
|
|
789
1584
|
readonly options: readonly [string, ...string[]];
|
|
790
1585
|
defaultValue: string | null;
|
|
@@ -792,13 +1587,15 @@ export declare const BuilderSerialisedSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
792
1587
|
labels: {
|
|
793
1588
|
[x: string]: string;
|
|
794
1589
|
};
|
|
795
|
-
} | {
|
|
1590
|
+
}>> | Readonly<Readonly<{
|
|
796
1591
|
type: "toggle";
|
|
797
1592
|
valueType: string;
|
|
798
1593
|
defaultValue: string | number | boolean | null;
|
|
799
1594
|
optional: boolean;
|
|
800
|
-
}
|
|
801
|
-
|
|
1595
|
+
}>> | Readonly<{
|
|
1596
|
+
type: "parameter";
|
|
1597
|
+
}>;
|
|
1598
|
+
}>> | null;
|
|
802
1599
|
}>[]>]>;
|
|
803
1600
|
readonly components: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
804
1601
|
readonly name: v.StringSchema<undefined>;
|
|
@@ -870,10 +1667,20 @@ export declare const BuilderSerialisedSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
870
1667
|
max: number;
|
|
871
1668
|
} | null;
|
|
872
1669
|
}[]>]>;
|
|
1670
|
+
readonly expectations: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1671
|
+
readonly name: v.StringSchema<undefined>;
|
|
1672
|
+
readonly kind: v.PicklistSchema<["option", "component"], undefined>;
|
|
1673
|
+
}, undefined>, v.ReadonlyAction<{
|
|
1674
|
+
name: string;
|
|
1675
|
+
kind: "option" | "component";
|
|
1676
|
+
}>]>, undefined>, v.ReadonlyAction<Readonly<{
|
|
1677
|
+
name: string;
|
|
1678
|
+
kind: "option" | "component";
|
|
1679
|
+
}>[]>]>;
|
|
873
1680
|
}, undefined>, v.ReadonlyAction<{
|
|
874
1681
|
readonly options: readonly Readonly<{
|
|
875
1682
|
name: string;
|
|
876
|
-
values: {
|
|
1683
|
+
values: Readonly<Readonly<{
|
|
877
1684
|
type: "select";
|
|
878
1685
|
readonly options: readonly [string, ...string[]];
|
|
879
1686
|
defaultValue: string | null;
|
|
@@ -881,16 +1688,18 @@ export declare const BuilderSerialisedSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
881
1688
|
labels: {
|
|
882
1689
|
[x: string]: string;
|
|
883
1690
|
};
|
|
884
|
-
} | {
|
|
1691
|
+
}>> | Readonly<Readonly<{
|
|
885
1692
|
type: "toggle";
|
|
886
1693
|
valueType: string;
|
|
887
1694
|
defaultValue: string | number | boolean | null;
|
|
888
1695
|
optional: boolean;
|
|
889
|
-
}
|
|
1696
|
+
}>> | Readonly<{
|
|
1697
|
+
type: "parameter";
|
|
1698
|
+
}>;
|
|
890
1699
|
readonly gatePaths: readonly (readonly (string | number)[])[];
|
|
891
|
-
config: {
|
|
1700
|
+
config: Readonly<Readonly<{
|
|
892
1701
|
type: "enable";
|
|
893
|
-
values: {
|
|
1702
|
+
values: Readonly<Readonly<{
|
|
894
1703
|
type: "select";
|
|
895
1704
|
readonly options: readonly [string, ...string[]];
|
|
896
1705
|
defaultValue: string | null;
|
|
@@ -898,17 +1707,21 @@ export declare const BuilderSerialisedSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
898
1707
|
labels: {
|
|
899
1708
|
[x: string]: string;
|
|
900
1709
|
};
|
|
901
|
-
} | {
|
|
1710
|
+
}>> | Readonly<Readonly<{
|
|
902
1711
|
type: "toggle";
|
|
903
1712
|
valueType: string;
|
|
904
1713
|
defaultValue: string | number | boolean | null;
|
|
905
1714
|
optional: boolean;
|
|
906
|
-
}
|
|
907
|
-
|
|
1715
|
+
}>> | Readonly<{
|
|
1716
|
+
type: "parameter";
|
|
1717
|
+
}>;
|
|
1718
|
+
}>> | Readonly<Readonly<{
|
|
908
1719
|
type: "match";
|
|
909
1720
|
readonly matchPath: readonly (string | number)[];
|
|
910
|
-
selectMap: {
|
|
911
|
-
|
|
1721
|
+
selectMap: Readonly<{
|
|
1722
|
+
type: "parameter";
|
|
1723
|
+
}> | {
|
|
1724
|
+
[x: string]: Readonly<Readonly<{
|
|
912
1725
|
type: "select";
|
|
913
1726
|
readonly options: readonly [string, ...string[]];
|
|
914
1727
|
defaultValue: string | null;
|
|
@@ -916,18 +1729,18 @@ export declare const BuilderSerialisedSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
916
1729
|
labels: {
|
|
917
1730
|
[x: string]: string;
|
|
918
1731
|
};
|
|
919
|
-
} | {
|
|
1732
|
+
}>> | Readonly<Readonly<{
|
|
920
1733
|
type: "toggle";
|
|
921
1734
|
valueType: string;
|
|
922
1735
|
defaultValue: string | number | boolean | null;
|
|
923
1736
|
optional: boolean;
|
|
924
|
-
} | null;
|
|
1737
|
+
}>> | null;
|
|
925
1738
|
};
|
|
926
|
-
} | {
|
|
1739
|
+
}>> | Readonly<Readonly<{
|
|
927
1740
|
type: "unless";
|
|
928
1741
|
readonly unlessPath: readonly (string | number)[];
|
|
929
1742
|
readonly disabledValues: readonly (string | number | boolean | null)[];
|
|
930
|
-
values: {
|
|
1743
|
+
values: Readonly<Readonly<{
|
|
931
1744
|
type: "select";
|
|
932
1745
|
readonly options: readonly [string, ...string[]];
|
|
933
1746
|
defaultValue: string | null;
|
|
@@ -935,13 +1748,15 @@ export declare const BuilderSerialisedSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
935
1748
|
labels: {
|
|
936
1749
|
[x: string]: string;
|
|
937
1750
|
};
|
|
938
|
-
} | {
|
|
1751
|
+
}>> | Readonly<Readonly<{
|
|
939
1752
|
type: "toggle";
|
|
940
1753
|
valueType: string;
|
|
941
1754
|
defaultValue: string | number | boolean | null;
|
|
942
1755
|
optional: boolean;
|
|
943
|
-
}
|
|
944
|
-
|
|
1756
|
+
}>> | Readonly<{
|
|
1757
|
+
type: "parameter";
|
|
1758
|
+
}>;
|
|
1759
|
+
}>> | null;
|
|
945
1760
|
}>[];
|
|
946
1761
|
readonly components: readonly Readonly<{
|
|
947
1762
|
name: string;
|
|
@@ -978,17 +1793,11 @@ export declare const BuilderSerialisedSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
978
1793
|
max: number;
|
|
979
1794
|
} | null;
|
|
980
1795
|
}[];
|
|
1796
|
+
readonly expectations: readonly Readonly<{
|
|
1797
|
+
name: string;
|
|
1798
|
+
kind: "option" | "component";
|
|
1799
|
+
}>[];
|
|
981
1800
|
}>]>;
|
|
982
|
-
export type BuilderUICollectionSerialised = {
|
|
983
|
-
readonly type: 'collection';
|
|
984
|
-
readonly name: string;
|
|
985
|
-
readonly label: string;
|
|
986
|
-
readonly items: BuilderUIItemsSerialised;
|
|
987
|
-
};
|
|
988
|
-
export type BuilderUIItemSerialised = BuilderUIPageSerialised | BuilderUIDescribeSerialised | BuilderUICollectionSerialised;
|
|
989
|
-
export type BuilderUIItemsSerialised = ReadonlyArray<BuilderUIItemSerialised>;
|
|
990
|
-
export type BuilderUISerialised = BuilderUIItemsSerialised;
|
|
991
|
-
type UIItemsSerialisedSchemaType = v.GenericSchema<BuilderUIItemsSerialised, BuilderUIItemsSerialised>;
|
|
992
1801
|
export declare const BuilderUIPageSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
993
1802
|
readonly type: v.LiteralSchema<"page", undefined>;
|
|
994
1803
|
readonly label: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -1074,4 +1883,3 @@ export declare const BuilderUIItemsSerialisedSchema: v.SchemaWithPipe<readonly [
|
|
|
1074
1883
|
label: string;
|
|
1075
1884
|
items: BuilderUIItemsSerialised;
|
|
1076
1885
|
})[]>]>;
|
|
1077
|
-
export {};
|