@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,11 +2,11 @@ import type { Paramable, ParamableSerialised } from '../../references';
|
|
|
2
2
|
import type { BuilderModelState } from '../model/index';
|
|
3
3
|
import type { BuilderPaths } from '../paths';
|
|
4
4
|
import type { BuilderTags } from '../tags';
|
|
5
|
-
import type {
|
|
5
|
+
import type { BuilderConditionSerialised } from '../condition';
|
|
6
6
|
import type { BuilderCollectionConfig, BuilderCollectionConfigSerialised } from './config';
|
|
7
|
-
import type {
|
|
7
|
+
import type { BuilderCollectionCondition } from './condition';
|
|
8
8
|
import * as v from 'valibot';
|
|
9
|
-
export type BuilderCollectionPayload = BuilderCollectionConfig |
|
|
9
|
+
export type BuilderCollectionPayload = BuilderCollectionConfig | BuilderCollectionCondition;
|
|
10
10
|
export declare class BuilderCollection<const Name extends string = string, const Payload extends Paramable<BuilderCollectionPayload> = Paramable<BuilderCollectionPayload>, const Paths extends Paramable<BuilderPaths> = Paramable<BuilderPaths>> {
|
|
11
11
|
readonly type: 'collection';
|
|
12
12
|
readonly name: Name;
|
|
@@ -18,7 +18,7 @@ export declare class BuilderCollection<const Name extends string = string, const
|
|
|
18
18
|
}
|
|
19
19
|
export declare const BuilderCollectionSchema: v.InstanceSchema<typeof BuilderCollection, undefined>;
|
|
20
20
|
export type BuilderCollections = ReadonlyArray<BuilderCollection>;
|
|
21
|
-
export declare const
|
|
21
|
+
export declare const BuilderCollectionConditionSerialisedSchema: v.GenericSchema<BuilderConditionSerialised<Readonly<{
|
|
22
22
|
model: Readonly<{
|
|
23
23
|
type: "parameter";
|
|
24
24
|
id: string;
|
|
@@ -45,7 +45,7 @@ export declare const BuilderCollectionWhenSerialisedSchema: v.GenericSchema<Buil
|
|
|
45
45
|
}>;
|
|
46
46
|
tags?: readonly string[] | undefined;
|
|
47
47
|
}>>>;
|
|
48
|
-
export type
|
|
48
|
+
export type BuilderCollectionConditionSerialised = BuilderConditionSerialised<BuilderCollectionConfigSerialised>;
|
|
49
49
|
export declare const BuilderCollectionSelectMapSerialisedSchema: v.GenericSchema<import("..").BuilderMatchSelectMap<Readonly<{
|
|
50
50
|
type: "parameter";
|
|
51
51
|
id: string;
|
|
@@ -80,184 +80,13 @@ export declare const BuilderCollectionSelectMapSerialisedSchema: v.GenericSchema
|
|
|
80
80
|
export type BuilderCollectionSerialised = {
|
|
81
81
|
readonly name: string;
|
|
82
82
|
readonly paths?: ParamableSerialised<BuilderPaths>;
|
|
83
|
-
readonly payload: ParamableSerialised<BuilderCollectionConfigSerialised |
|
|
83
|
+
readonly payload: ParamableSerialised<BuilderCollectionConfigSerialised | BuilderCollectionConditionSerialised>;
|
|
84
84
|
readonly tags?: BuilderTags;
|
|
85
85
|
};
|
|
86
86
|
export declare const BuilderCollectionSerialisedSchema: v.GenericSchema<BuilderCollectionSerialised>;
|
|
87
87
|
export declare const BuilderCollectionsSerialisedSchema: v.SchemaWithPipe<readonly [v.ArraySchema<v.GenericSchema<BuilderCollectionSerialised>, undefined>, v.ReadonlyAction<BuilderCollectionSerialised[]>]>;
|
|
88
88
|
export type BuilderCollectionsSerialised = ReadonlyArray<BuilderCollectionSerialised>;
|
|
89
|
-
export declare const
|
|
90
|
-
readonly type: "enable";
|
|
91
|
-
readonly payload: {
|
|
92
|
-
readonly model: {
|
|
93
|
-
readonly models: readonly (/*elided*/ any & import("../../validate").BuilderValidatedBrand)[];
|
|
94
|
-
readonly options: readonly {
|
|
95
|
-
readonly name: string;
|
|
96
|
-
readonly payload: {
|
|
97
|
-
readonly type: "enable";
|
|
98
|
-
readonly payload: {
|
|
99
|
-
readonly type: "select";
|
|
100
|
-
readonly options: readonly [string, ...string[]];
|
|
101
|
-
readonly defaultValue: string | null;
|
|
102
|
-
readonly isOptional: boolean;
|
|
103
|
-
readonly optionLabels: {
|
|
104
|
-
readonly [x: string]: string;
|
|
105
|
-
} & import("../../validate").BuilderValidatedBrand;
|
|
106
|
-
readonly tags?: readonly string[] | undefined;
|
|
107
|
-
} | {
|
|
108
|
-
readonly type: "toggle";
|
|
109
|
-
readonly valueType: "string" | "number" | "boolean";
|
|
110
|
-
readonly defaultValue: string | number | boolean | null;
|
|
111
|
-
readonly isOptional: boolean;
|
|
112
|
-
readonly tags?: readonly string[] | undefined;
|
|
113
|
-
};
|
|
114
|
-
} | {
|
|
115
|
-
readonly type: "match";
|
|
116
|
-
readonly matchPath: readonly (string | number)[];
|
|
117
|
-
readonly selectMap: {
|
|
118
|
-
readonly [x: string]: {
|
|
119
|
-
readonly type: "select";
|
|
120
|
-
readonly options: readonly [string, ...string[]];
|
|
121
|
-
readonly defaultValue: string | null;
|
|
122
|
-
readonly isOptional: boolean;
|
|
123
|
-
readonly optionLabels: {
|
|
124
|
-
readonly [x: string]: string;
|
|
125
|
-
} & import("../../validate").BuilderValidatedBrand;
|
|
126
|
-
readonly tags?: readonly string[] | undefined;
|
|
127
|
-
} | {
|
|
128
|
-
readonly type: "toggle";
|
|
129
|
-
readonly valueType: "string" | "number" | "boolean";
|
|
130
|
-
readonly defaultValue: string | number | boolean | null;
|
|
131
|
-
readonly isOptional: boolean;
|
|
132
|
-
readonly tags?: readonly string[] | undefined;
|
|
133
|
-
} | null;
|
|
134
|
-
};
|
|
135
|
-
} | {
|
|
136
|
-
readonly type: "unless";
|
|
137
|
-
readonly unlessPath: readonly (string | number)[];
|
|
138
|
-
readonly disabledValues: readonly (string | number | boolean | null)[];
|
|
139
|
-
readonly payload: {
|
|
140
|
-
readonly type: "select";
|
|
141
|
-
readonly options: readonly [string, ...string[]];
|
|
142
|
-
readonly defaultValue: string | null;
|
|
143
|
-
readonly isOptional: boolean;
|
|
144
|
-
readonly optionLabels: {
|
|
145
|
-
readonly [x: string]: string;
|
|
146
|
-
} & import("../../validate").BuilderValidatedBrand;
|
|
147
|
-
readonly tags?: readonly string[] | undefined;
|
|
148
|
-
} | {
|
|
149
|
-
readonly type: "toggle";
|
|
150
|
-
readonly valueType: "string" | "number" | "boolean";
|
|
151
|
-
readonly defaultValue: string | number | boolean | null;
|
|
152
|
-
readonly isOptional: boolean;
|
|
153
|
-
readonly tags?: readonly string[] | undefined;
|
|
154
|
-
};
|
|
155
|
-
} | {
|
|
156
|
-
readonly type: "select";
|
|
157
|
-
readonly options: readonly [string, ...string[]];
|
|
158
|
-
readonly defaultValue: string | null;
|
|
159
|
-
readonly isOptional: boolean;
|
|
160
|
-
readonly optionLabels: {
|
|
161
|
-
readonly [x: string]: string;
|
|
162
|
-
} & import("../../validate").BuilderValidatedBrand;
|
|
163
|
-
readonly tags?: readonly string[] | undefined;
|
|
164
|
-
} | {
|
|
165
|
-
readonly type: "toggle";
|
|
166
|
-
readonly valueType: "string" | "number" | "boolean";
|
|
167
|
-
readonly defaultValue: string | number | boolean | null;
|
|
168
|
-
readonly isOptional: boolean;
|
|
169
|
-
readonly tags?: readonly string[] | undefined;
|
|
170
|
-
};
|
|
171
|
-
readonly paths?: readonly (readonly (string | number)[])[] | undefined;
|
|
172
|
-
readonly tags?: readonly string[] | undefined;
|
|
173
|
-
}[];
|
|
174
|
-
readonly components: readonly {
|
|
175
|
-
readonly name: string;
|
|
176
|
-
readonly payload: {
|
|
177
|
-
readonly fields: readonly {
|
|
178
|
-
readonly type: "component-field";
|
|
179
|
-
readonly name: string;
|
|
180
|
-
readonly valueType: "string" | "number" | "boolean";
|
|
181
|
-
readonly isOptional: boolean;
|
|
182
|
-
readonly tags?: readonly string[] | undefined;
|
|
183
|
-
}[];
|
|
184
|
-
readonly tags?: readonly string[] | undefined;
|
|
185
|
-
} | {
|
|
186
|
-
readonly type: "enable";
|
|
187
|
-
readonly payload: {
|
|
188
|
-
readonly fields: readonly {
|
|
189
|
-
readonly type: "component-field";
|
|
190
|
-
readonly name: string;
|
|
191
|
-
readonly valueType: "string" | "number" | "boolean";
|
|
192
|
-
readonly isOptional: boolean;
|
|
193
|
-
readonly tags?: readonly string[] | undefined;
|
|
194
|
-
}[];
|
|
195
|
-
readonly tags?: readonly string[] | undefined;
|
|
196
|
-
};
|
|
197
|
-
} | {
|
|
198
|
-
readonly type: "match";
|
|
199
|
-
readonly matchPath: readonly (string | number)[];
|
|
200
|
-
readonly selectMap: {
|
|
201
|
-
readonly [x: string]: {
|
|
202
|
-
readonly fields: readonly {
|
|
203
|
-
readonly type: "component-field";
|
|
204
|
-
readonly name: string;
|
|
205
|
-
readonly valueType: "string" | "number" | "boolean";
|
|
206
|
-
readonly isOptional: boolean;
|
|
207
|
-
readonly tags?: readonly string[] | undefined;
|
|
208
|
-
}[];
|
|
209
|
-
readonly tags?: readonly string[] | undefined;
|
|
210
|
-
} | null;
|
|
211
|
-
};
|
|
212
|
-
} | {
|
|
213
|
-
readonly type: "unless";
|
|
214
|
-
readonly unlessPath: readonly (string | number)[];
|
|
215
|
-
readonly disabledValues: readonly (string | number | boolean | null)[];
|
|
216
|
-
readonly payload: {
|
|
217
|
-
readonly fields: readonly {
|
|
218
|
-
readonly type: "component-field";
|
|
219
|
-
readonly name: string;
|
|
220
|
-
readonly valueType: "string" | "number" | "boolean";
|
|
221
|
-
readonly isOptional: boolean;
|
|
222
|
-
readonly tags?: readonly string[] | undefined;
|
|
223
|
-
}[];
|
|
224
|
-
readonly tags?: readonly string[] | undefined;
|
|
225
|
-
};
|
|
226
|
-
};
|
|
227
|
-
readonly paths?: readonly (readonly (string | number)[])[] | undefined;
|
|
228
|
-
readonly tags?: readonly string[] | undefined;
|
|
229
|
-
}[];
|
|
230
|
-
readonly collections: readonly {
|
|
231
|
-
readonly name: string;
|
|
232
|
-
readonly paths?: readonly (readonly (string | number)[])[] | undefined;
|
|
233
|
-
readonly payload: /*elided*/ any | {
|
|
234
|
-
readonly type: "enable";
|
|
235
|
-
readonly payload: /*elided*/ any;
|
|
236
|
-
} | {
|
|
237
|
-
readonly type: "match";
|
|
238
|
-
readonly matchPath: readonly (string | number)[];
|
|
239
|
-
readonly selectMap: {
|
|
240
|
-
readonly [x: string]: /*elided*/ any | null;
|
|
241
|
-
};
|
|
242
|
-
} | {
|
|
243
|
-
readonly type: "unless";
|
|
244
|
-
readonly unlessPath: readonly (string | number)[];
|
|
245
|
-
readonly disabledValues: readonly (string | number | boolean | null)[];
|
|
246
|
-
readonly payload: /*elided*/ any;
|
|
247
|
-
};
|
|
248
|
-
readonly tags?: readonly string[] | undefined;
|
|
249
|
-
}[];
|
|
250
|
-
readonly expectations: readonly ({
|
|
251
|
-
readonly name: string;
|
|
252
|
-
readonly kind: "option" | "component" | "collection";
|
|
253
|
-
} & import("../../validate").BuilderValidatedBrand)[];
|
|
254
|
-
readonly tags?: readonly string[] | undefined;
|
|
255
|
-
} & import("../../validate").BuilderValidatedBrand;
|
|
256
|
-
readonly min: number;
|
|
257
|
-
readonly max: number;
|
|
258
|
-
readonly tags?: readonly string[] | undefined;
|
|
259
|
-
};
|
|
260
|
-
} | {
|
|
89
|
+
export declare const validateCollectionCondition: (input: unknown, references?: import("..").BuilderReferences, issues?: import("../../errors").BuilderIssuesScope) => import("..").ValidationResult<{
|
|
261
90
|
readonly type: "match";
|
|
262
91
|
readonly matchPath: readonly (string | number)[];
|
|
263
92
|
readonly selectMap: {
|
|
@@ -267,39 +96,38 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
267
96
|
readonly options: readonly {
|
|
268
97
|
readonly name: string;
|
|
269
98
|
readonly payload: {
|
|
270
|
-
readonly
|
|
271
|
-
readonly
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
readonly
|
|
280
|
-
} |
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
readonly tags?: readonly string[] | undefined;
|
|
286
|
-
};
|
|
99
|
+
readonly kind: "string" | "number" | "boolean";
|
|
100
|
+
readonly type: "value";
|
|
101
|
+
readonly defaultValue: string | number | boolean | null;
|
|
102
|
+
readonly isOptional: boolean;
|
|
103
|
+
readonly tags?: readonly string[] | undefined;
|
|
104
|
+
} | {
|
|
105
|
+
readonly kind: "select";
|
|
106
|
+
readonly options: readonly [string, ...string[]];
|
|
107
|
+
readonly optionLabels?: ({
|
|
108
|
+
readonly [x: string]: string;
|
|
109
|
+
} & import("../../validate").BuilderValidatedBrand) | undefined;
|
|
110
|
+
readonly type: "value";
|
|
111
|
+
readonly defaultValue: string | number | boolean | null;
|
|
112
|
+
readonly isOptional: boolean;
|
|
113
|
+
readonly tags?: readonly string[] | undefined;
|
|
287
114
|
} | {
|
|
288
115
|
readonly type: "match";
|
|
289
116
|
readonly matchPath: readonly (string | number)[];
|
|
290
117
|
readonly selectMap: {
|
|
291
118
|
readonly [x: string]: {
|
|
292
|
-
readonly
|
|
293
|
-
readonly
|
|
294
|
-
readonly defaultValue: string | null;
|
|
119
|
+
readonly kind: "string" | "number" | "boolean";
|
|
120
|
+
readonly type: "value";
|
|
121
|
+
readonly defaultValue: string | number | boolean | null;
|
|
295
122
|
readonly isOptional: boolean;
|
|
296
|
-
readonly optionLabels: {
|
|
297
|
-
readonly [x: string]: string;
|
|
298
|
-
} & import("../../validate").BuilderValidatedBrand;
|
|
299
123
|
readonly tags?: readonly string[] | undefined;
|
|
300
124
|
} | {
|
|
301
|
-
readonly
|
|
302
|
-
readonly
|
|
125
|
+
readonly kind: "select";
|
|
126
|
+
readonly options: readonly [string, ...string[]];
|
|
127
|
+
readonly optionLabels?: ({
|
|
128
|
+
readonly [x: string]: string;
|
|
129
|
+
} & import("../../validate").BuilderValidatedBrand) | undefined;
|
|
130
|
+
readonly type: "value";
|
|
303
131
|
readonly defaultValue: string | number | boolean | null;
|
|
304
132
|
readonly isOptional: boolean;
|
|
305
133
|
readonly tags?: readonly string[] | undefined;
|
|
@@ -310,36 +138,22 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
310
138
|
readonly unlessPath: readonly (string | number)[];
|
|
311
139
|
readonly disabledValues: readonly (string | number | boolean | null)[];
|
|
312
140
|
readonly payload: {
|
|
313
|
-
readonly
|
|
314
|
-
readonly
|
|
315
|
-
readonly defaultValue: string | null;
|
|
141
|
+
readonly kind: "string" | "number" | "boolean";
|
|
142
|
+
readonly type: "value";
|
|
143
|
+
readonly defaultValue: string | number | boolean | null;
|
|
316
144
|
readonly isOptional: boolean;
|
|
317
|
-
readonly optionLabels: {
|
|
318
|
-
readonly [x: string]: string;
|
|
319
|
-
} & import("../../validate").BuilderValidatedBrand;
|
|
320
145
|
readonly tags?: readonly string[] | undefined;
|
|
321
146
|
} | {
|
|
322
|
-
readonly
|
|
323
|
-
readonly
|
|
147
|
+
readonly kind: "select";
|
|
148
|
+
readonly options: readonly [string, ...string[]];
|
|
149
|
+
readonly optionLabels?: ({
|
|
150
|
+
readonly [x: string]: string;
|
|
151
|
+
} & import("../../validate").BuilderValidatedBrand) | undefined;
|
|
152
|
+
readonly type: "value";
|
|
324
153
|
readonly defaultValue: string | number | boolean | null;
|
|
325
154
|
readonly isOptional: boolean;
|
|
326
155
|
readonly tags?: readonly string[] | undefined;
|
|
327
156
|
};
|
|
328
|
-
} | {
|
|
329
|
-
readonly type: "select";
|
|
330
|
-
readonly options: readonly [string, ...string[]];
|
|
331
|
-
readonly defaultValue: string | null;
|
|
332
|
-
readonly isOptional: boolean;
|
|
333
|
-
readonly optionLabels: {
|
|
334
|
-
readonly [x: string]: string;
|
|
335
|
-
} & import("../../validate").BuilderValidatedBrand;
|
|
336
|
-
readonly tags?: readonly string[] | undefined;
|
|
337
|
-
} | {
|
|
338
|
-
readonly type: "toggle";
|
|
339
|
-
readonly valueType: "string" | "number" | "boolean";
|
|
340
|
-
readonly defaultValue: string | number | boolean | null;
|
|
341
|
-
readonly isOptional: boolean;
|
|
342
|
-
readonly tags?: readonly string[] | undefined;
|
|
343
157
|
};
|
|
344
158
|
readonly paths?: readonly (readonly (string | number)[])[] | undefined;
|
|
345
159
|
readonly tags?: readonly string[] | undefined;
|
|
@@ -347,35 +161,23 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
347
161
|
readonly components: readonly {
|
|
348
162
|
readonly name: string;
|
|
349
163
|
readonly payload: {
|
|
350
|
-
readonly
|
|
351
|
-
readonly type: "component-
|
|
164
|
+
readonly details: readonly {
|
|
165
|
+
readonly type: "component-detail";
|
|
352
166
|
readonly name: string;
|
|
353
|
-
readonly
|
|
167
|
+
readonly kind: "string" | "number" | "boolean" | "price" | "image";
|
|
354
168
|
readonly isOptional: boolean;
|
|
355
169
|
readonly tags?: readonly string[] | undefined;
|
|
356
170
|
}[];
|
|
357
171
|
readonly tags?: readonly string[] | undefined;
|
|
358
|
-
} | {
|
|
359
|
-
readonly type: "enable";
|
|
360
|
-
readonly payload: {
|
|
361
|
-
readonly fields: readonly {
|
|
362
|
-
readonly type: "component-field";
|
|
363
|
-
readonly name: string;
|
|
364
|
-
readonly valueType: "string" | "number" | "boolean";
|
|
365
|
-
readonly isOptional: boolean;
|
|
366
|
-
readonly tags?: readonly string[] | undefined;
|
|
367
|
-
}[];
|
|
368
|
-
readonly tags?: readonly string[] | undefined;
|
|
369
|
-
};
|
|
370
172
|
} | {
|
|
371
173
|
readonly type: "match";
|
|
372
174
|
readonly matchPath: readonly (string | number)[];
|
|
373
175
|
readonly selectMap: {
|
|
374
176
|
readonly [x: string]: {
|
|
375
|
-
readonly
|
|
376
|
-
readonly type: "component-
|
|
177
|
+
readonly details: readonly {
|
|
178
|
+
readonly type: "component-detail";
|
|
377
179
|
readonly name: string;
|
|
378
|
-
readonly
|
|
180
|
+
readonly kind: "string" | "number" | "boolean" | "price" | "image";
|
|
379
181
|
readonly isOptional: boolean;
|
|
380
182
|
readonly tags?: readonly string[] | undefined;
|
|
381
183
|
}[];
|
|
@@ -387,10 +189,10 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
387
189
|
readonly unlessPath: readonly (string | number)[];
|
|
388
190
|
readonly disabledValues: readonly (string | number | boolean | null)[];
|
|
389
191
|
readonly payload: {
|
|
390
|
-
readonly
|
|
391
|
-
readonly type: "component-
|
|
192
|
+
readonly details: readonly {
|
|
193
|
+
readonly type: "component-detail";
|
|
392
194
|
readonly name: string;
|
|
393
|
-
readonly
|
|
195
|
+
readonly kind: "string" | "number" | "boolean" | "price" | "image";
|
|
394
196
|
readonly isOptional: boolean;
|
|
395
197
|
readonly tags?: readonly string[] | undefined;
|
|
396
198
|
}[];
|
|
@@ -404,9 +206,6 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
404
206
|
readonly name: string;
|
|
405
207
|
readonly paths?: readonly (readonly (string | number)[])[] | undefined;
|
|
406
208
|
readonly payload: /*elided*/ any | {
|
|
407
|
-
readonly type: "enable";
|
|
408
|
-
readonly payload: /*elided*/ any;
|
|
409
|
-
} | {
|
|
410
209
|
readonly type: "match";
|
|
411
210
|
readonly matchPath: readonly (string | number)[];
|
|
412
211
|
readonly selectMap: /*elided*/ any;
|
|
@@ -418,10 +217,27 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
418
217
|
};
|
|
419
218
|
readonly tags?: readonly string[] | undefined;
|
|
420
219
|
}[];
|
|
421
|
-
readonly expectations: readonly
|
|
220
|
+
readonly expectations: readonly {
|
|
422
221
|
readonly name: string;
|
|
423
222
|
readonly kind: "option" | "component" | "collection";
|
|
424
|
-
|
|
223
|
+
readonly payload?: {
|
|
224
|
+
readonly kind: "string" | "number" | "boolean";
|
|
225
|
+
readonly type: "value";
|
|
226
|
+
readonly defaultValue: string | number | boolean | null;
|
|
227
|
+
readonly isOptional: boolean;
|
|
228
|
+
readonly tags?: readonly string[] | undefined;
|
|
229
|
+
} | {
|
|
230
|
+
readonly kind: "select";
|
|
231
|
+
readonly options: readonly [string, ...string[]];
|
|
232
|
+
readonly optionLabels?: ({
|
|
233
|
+
readonly [x: string]: string;
|
|
234
|
+
} & import("../../validate").BuilderValidatedBrand) | undefined;
|
|
235
|
+
readonly type: "value";
|
|
236
|
+
readonly defaultValue: string | number | boolean | null;
|
|
237
|
+
readonly isOptional: boolean;
|
|
238
|
+
readonly tags?: readonly string[] | undefined;
|
|
239
|
+
} | undefined;
|
|
240
|
+
}[];
|
|
425
241
|
readonly tags?: readonly string[] | undefined;
|
|
426
242
|
} & import("../../validate").BuilderValidatedBrand;
|
|
427
243
|
readonly min: number;
|
|
@@ -439,39 +255,38 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
439
255
|
readonly options: readonly {
|
|
440
256
|
readonly name: string;
|
|
441
257
|
readonly payload: {
|
|
442
|
-
readonly
|
|
443
|
-
readonly
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
readonly
|
|
452
|
-
} |
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
readonly tags?: readonly string[] | undefined;
|
|
458
|
-
};
|
|
258
|
+
readonly kind: "string" | "number" | "boolean";
|
|
259
|
+
readonly type: "value";
|
|
260
|
+
readonly defaultValue: string | number | boolean | null;
|
|
261
|
+
readonly isOptional: boolean;
|
|
262
|
+
readonly tags?: readonly string[] | undefined;
|
|
263
|
+
} | {
|
|
264
|
+
readonly kind: "select";
|
|
265
|
+
readonly options: readonly [string, ...string[]];
|
|
266
|
+
readonly optionLabels?: ({
|
|
267
|
+
readonly [x: string]: string;
|
|
268
|
+
} & import("../../validate").BuilderValidatedBrand) | undefined;
|
|
269
|
+
readonly type: "value";
|
|
270
|
+
readonly defaultValue: string | number | boolean | null;
|
|
271
|
+
readonly isOptional: boolean;
|
|
272
|
+
readonly tags?: readonly string[] | undefined;
|
|
459
273
|
} | {
|
|
460
274
|
readonly type: "match";
|
|
461
275
|
readonly matchPath: readonly (string | number)[];
|
|
462
276
|
readonly selectMap: {
|
|
463
277
|
readonly [x: string]: {
|
|
464
|
-
readonly
|
|
465
|
-
readonly
|
|
466
|
-
readonly defaultValue: string | null;
|
|
278
|
+
readonly kind: "string" | "number" | "boolean";
|
|
279
|
+
readonly type: "value";
|
|
280
|
+
readonly defaultValue: string | number | boolean | null;
|
|
467
281
|
readonly isOptional: boolean;
|
|
468
|
-
readonly optionLabels: {
|
|
469
|
-
readonly [x: string]: string;
|
|
470
|
-
} & import("../../validate").BuilderValidatedBrand;
|
|
471
282
|
readonly tags?: readonly string[] | undefined;
|
|
472
283
|
} | {
|
|
473
|
-
readonly
|
|
474
|
-
readonly
|
|
284
|
+
readonly kind: "select";
|
|
285
|
+
readonly options: readonly [string, ...string[]];
|
|
286
|
+
readonly optionLabels?: ({
|
|
287
|
+
readonly [x: string]: string;
|
|
288
|
+
} & import("../../validate").BuilderValidatedBrand) | undefined;
|
|
289
|
+
readonly type: "value";
|
|
475
290
|
readonly defaultValue: string | number | boolean | null;
|
|
476
291
|
readonly isOptional: boolean;
|
|
477
292
|
readonly tags?: readonly string[] | undefined;
|
|
@@ -482,36 +297,22 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
482
297
|
readonly unlessPath: readonly (string | number)[];
|
|
483
298
|
readonly disabledValues: readonly (string | number | boolean | null)[];
|
|
484
299
|
readonly payload: {
|
|
485
|
-
readonly
|
|
486
|
-
readonly
|
|
487
|
-
readonly defaultValue: string | null;
|
|
300
|
+
readonly kind: "string" | "number" | "boolean";
|
|
301
|
+
readonly type: "value";
|
|
302
|
+
readonly defaultValue: string | number | boolean | null;
|
|
488
303
|
readonly isOptional: boolean;
|
|
489
|
-
readonly optionLabels: {
|
|
490
|
-
readonly [x: string]: string;
|
|
491
|
-
} & import("../../validate").BuilderValidatedBrand;
|
|
492
304
|
readonly tags?: readonly string[] | undefined;
|
|
493
305
|
} | {
|
|
494
|
-
readonly
|
|
495
|
-
readonly
|
|
306
|
+
readonly kind: "select";
|
|
307
|
+
readonly options: readonly [string, ...string[]];
|
|
308
|
+
readonly optionLabels?: ({
|
|
309
|
+
readonly [x: string]: string;
|
|
310
|
+
} & import("../../validate").BuilderValidatedBrand) | undefined;
|
|
311
|
+
readonly type: "value";
|
|
496
312
|
readonly defaultValue: string | number | boolean | null;
|
|
497
313
|
readonly isOptional: boolean;
|
|
498
314
|
readonly tags?: readonly string[] | undefined;
|
|
499
315
|
};
|
|
500
|
-
} | {
|
|
501
|
-
readonly type: "select";
|
|
502
|
-
readonly options: readonly [string, ...string[]];
|
|
503
|
-
readonly defaultValue: string | null;
|
|
504
|
-
readonly isOptional: boolean;
|
|
505
|
-
readonly optionLabels: {
|
|
506
|
-
readonly [x: string]: string;
|
|
507
|
-
} & import("../../validate").BuilderValidatedBrand;
|
|
508
|
-
readonly tags?: readonly string[] | undefined;
|
|
509
|
-
} | {
|
|
510
|
-
readonly type: "toggle";
|
|
511
|
-
readonly valueType: "string" | "number" | "boolean";
|
|
512
|
-
readonly defaultValue: string | number | boolean | null;
|
|
513
|
-
readonly isOptional: boolean;
|
|
514
|
-
readonly tags?: readonly string[] | undefined;
|
|
515
316
|
};
|
|
516
317
|
readonly paths?: readonly (readonly (string | number)[])[] | undefined;
|
|
517
318
|
readonly tags?: readonly string[] | undefined;
|
|
@@ -519,35 +320,23 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
519
320
|
readonly components: readonly {
|
|
520
321
|
readonly name: string;
|
|
521
322
|
readonly payload: {
|
|
522
|
-
readonly
|
|
523
|
-
readonly type: "component-
|
|
323
|
+
readonly details: readonly {
|
|
324
|
+
readonly type: "component-detail";
|
|
524
325
|
readonly name: string;
|
|
525
|
-
readonly
|
|
326
|
+
readonly kind: "string" | "number" | "boolean" | "price" | "image";
|
|
526
327
|
readonly isOptional: boolean;
|
|
527
328
|
readonly tags?: readonly string[] | undefined;
|
|
528
329
|
}[];
|
|
529
330
|
readonly tags?: readonly string[] | undefined;
|
|
530
|
-
} | {
|
|
531
|
-
readonly type: "enable";
|
|
532
|
-
readonly payload: {
|
|
533
|
-
readonly fields: readonly {
|
|
534
|
-
readonly type: "component-field";
|
|
535
|
-
readonly name: string;
|
|
536
|
-
readonly valueType: "string" | "number" | "boolean";
|
|
537
|
-
readonly isOptional: boolean;
|
|
538
|
-
readonly tags?: readonly string[] | undefined;
|
|
539
|
-
}[];
|
|
540
|
-
readonly tags?: readonly string[] | undefined;
|
|
541
|
-
};
|
|
542
331
|
} | {
|
|
543
332
|
readonly type: "match";
|
|
544
333
|
readonly matchPath: readonly (string | number)[];
|
|
545
334
|
readonly selectMap: {
|
|
546
335
|
readonly [x: string]: {
|
|
547
|
-
readonly
|
|
548
|
-
readonly type: "component-
|
|
336
|
+
readonly details: readonly {
|
|
337
|
+
readonly type: "component-detail";
|
|
549
338
|
readonly name: string;
|
|
550
|
-
readonly
|
|
339
|
+
readonly kind: "string" | "number" | "boolean" | "price" | "image";
|
|
551
340
|
readonly isOptional: boolean;
|
|
552
341
|
readonly tags?: readonly string[] | undefined;
|
|
553
342
|
}[];
|
|
@@ -559,10 +348,10 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
559
348
|
readonly unlessPath: readonly (string | number)[];
|
|
560
349
|
readonly disabledValues: readonly (string | number | boolean | null)[];
|
|
561
350
|
readonly payload: {
|
|
562
|
-
readonly
|
|
563
|
-
readonly type: "component-
|
|
351
|
+
readonly details: readonly {
|
|
352
|
+
readonly type: "component-detail";
|
|
564
353
|
readonly name: string;
|
|
565
|
-
readonly
|
|
354
|
+
readonly kind: "string" | "number" | "boolean" | "price" | "image";
|
|
566
355
|
readonly isOptional: boolean;
|
|
567
356
|
readonly tags?: readonly string[] | undefined;
|
|
568
357
|
}[];
|
|
@@ -576,9 +365,6 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
576
365
|
readonly name: string;
|
|
577
366
|
readonly paths?: readonly (readonly (string | number)[])[] | undefined;
|
|
578
367
|
readonly payload: /*elided*/ any | {
|
|
579
|
-
readonly type: "enable";
|
|
580
|
-
readonly payload: /*elided*/ any;
|
|
581
|
-
} | {
|
|
582
368
|
readonly type: "match";
|
|
583
369
|
readonly matchPath: readonly (string | number)[];
|
|
584
370
|
readonly selectMap: {
|
|
@@ -592,10 +378,27 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
592
378
|
};
|
|
593
379
|
readonly tags?: readonly string[] | undefined;
|
|
594
380
|
}[];
|
|
595
|
-
readonly expectations: readonly
|
|
381
|
+
readonly expectations: readonly {
|
|
596
382
|
readonly name: string;
|
|
597
383
|
readonly kind: "option" | "component" | "collection";
|
|
598
|
-
|
|
384
|
+
readonly payload?: {
|
|
385
|
+
readonly kind: "string" | "number" | "boolean";
|
|
386
|
+
readonly type: "value";
|
|
387
|
+
readonly defaultValue: string | number | boolean | null;
|
|
388
|
+
readonly isOptional: boolean;
|
|
389
|
+
readonly tags?: readonly string[] | undefined;
|
|
390
|
+
} | {
|
|
391
|
+
readonly kind: "select";
|
|
392
|
+
readonly options: readonly [string, ...string[]];
|
|
393
|
+
readonly optionLabels?: ({
|
|
394
|
+
readonly [x: string]: string;
|
|
395
|
+
} & import("../../validate").BuilderValidatedBrand) | undefined;
|
|
396
|
+
readonly type: "value";
|
|
397
|
+
readonly defaultValue: string | number | boolean | null;
|
|
398
|
+
readonly isOptional: boolean;
|
|
399
|
+
readonly tags?: readonly string[] | undefined;
|
|
400
|
+
} | undefined;
|
|
401
|
+
}[];
|
|
599
402
|
readonly tags?: readonly string[] | undefined;
|
|
600
403
|
} & import("../../validate").BuilderValidatedBrand;
|
|
601
404
|
readonly min: number;
|
|
@@ -603,46 +406,45 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
603
406
|
readonly tags?: readonly string[] | undefined;
|
|
604
407
|
};
|
|
605
408
|
}>;
|
|
606
|
-
export declare const validateCollectionSelectMap: (input: unknown, references?: import("..").BuilderReferences,
|
|
409
|
+
export declare const validateCollectionSelectMap: (input: unknown, references?: import("..").BuilderReferences, issues?: import("../../errors").BuilderIssuesScope) => import("..").ValidationResult<{
|
|
607
410
|
readonly [x: string]: {
|
|
608
411
|
readonly model: {
|
|
609
412
|
readonly models: readonly (/*elided*/ any & import("../../validate").BuilderValidatedBrand)[];
|
|
610
413
|
readonly options: readonly {
|
|
611
414
|
readonly name: string;
|
|
612
415
|
readonly payload: {
|
|
613
|
-
readonly
|
|
614
|
-
readonly
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
readonly
|
|
623
|
-
} |
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
readonly tags?: readonly string[] | undefined;
|
|
629
|
-
};
|
|
416
|
+
readonly kind: "string" | "number" | "boolean";
|
|
417
|
+
readonly type: "value";
|
|
418
|
+
readonly defaultValue: string | number | boolean | null;
|
|
419
|
+
readonly isOptional: boolean;
|
|
420
|
+
readonly tags?: readonly string[] | undefined;
|
|
421
|
+
} | {
|
|
422
|
+
readonly kind: "select";
|
|
423
|
+
readonly options: readonly [string, ...string[]];
|
|
424
|
+
readonly optionLabels?: ({
|
|
425
|
+
readonly [x: string]: string;
|
|
426
|
+
} & import("../../validate").BuilderValidatedBrand) | undefined;
|
|
427
|
+
readonly type: "value";
|
|
428
|
+
readonly defaultValue: string | number | boolean | null;
|
|
429
|
+
readonly isOptional: boolean;
|
|
430
|
+
readonly tags?: readonly string[] | undefined;
|
|
630
431
|
} | {
|
|
631
432
|
readonly type: "match";
|
|
632
433
|
readonly matchPath: readonly (string | number)[];
|
|
633
434
|
readonly selectMap: {
|
|
634
435
|
readonly [x: string]: {
|
|
635
|
-
readonly
|
|
636
|
-
readonly
|
|
637
|
-
readonly defaultValue: string | null;
|
|
436
|
+
readonly kind: "string" | "number" | "boolean";
|
|
437
|
+
readonly type: "value";
|
|
438
|
+
readonly defaultValue: string | number | boolean | null;
|
|
638
439
|
readonly isOptional: boolean;
|
|
639
|
-
readonly optionLabels: {
|
|
640
|
-
readonly [x: string]: string;
|
|
641
|
-
} & import("../../validate").BuilderValidatedBrand;
|
|
642
440
|
readonly tags?: readonly string[] | undefined;
|
|
643
441
|
} | {
|
|
644
|
-
readonly
|
|
645
|
-
readonly
|
|
442
|
+
readonly kind: "select";
|
|
443
|
+
readonly options: readonly [string, ...string[]];
|
|
444
|
+
readonly optionLabels?: ({
|
|
445
|
+
readonly [x: string]: string;
|
|
446
|
+
} & import("../../validate").BuilderValidatedBrand) | undefined;
|
|
447
|
+
readonly type: "value";
|
|
646
448
|
readonly defaultValue: string | number | boolean | null;
|
|
647
449
|
readonly isOptional: boolean;
|
|
648
450
|
readonly tags?: readonly string[] | undefined;
|
|
@@ -653,36 +455,22 @@ export declare const validateCollectionSelectMap: (input: unknown, references?:
|
|
|
653
455
|
readonly unlessPath: readonly (string | number)[];
|
|
654
456
|
readonly disabledValues: readonly (string | number | boolean | null)[];
|
|
655
457
|
readonly payload: {
|
|
656
|
-
readonly
|
|
657
|
-
readonly
|
|
658
|
-
readonly defaultValue: string | null;
|
|
458
|
+
readonly kind: "string" | "number" | "boolean";
|
|
459
|
+
readonly type: "value";
|
|
460
|
+
readonly defaultValue: string | number | boolean | null;
|
|
659
461
|
readonly isOptional: boolean;
|
|
660
|
-
readonly optionLabels: {
|
|
661
|
-
readonly [x: string]: string;
|
|
662
|
-
} & import("../../validate").BuilderValidatedBrand;
|
|
663
462
|
readonly tags?: readonly string[] | undefined;
|
|
664
463
|
} | {
|
|
665
|
-
readonly
|
|
666
|
-
readonly
|
|
464
|
+
readonly kind: "select";
|
|
465
|
+
readonly options: readonly [string, ...string[]];
|
|
466
|
+
readonly optionLabels?: ({
|
|
467
|
+
readonly [x: string]: string;
|
|
468
|
+
} & import("../../validate").BuilderValidatedBrand) | undefined;
|
|
469
|
+
readonly type: "value";
|
|
667
470
|
readonly defaultValue: string | number | boolean | null;
|
|
668
471
|
readonly isOptional: boolean;
|
|
669
472
|
readonly tags?: readonly string[] | undefined;
|
|
670
473
|
};
|
|
671
|
-
} | {
|
|
672
|
-
readonly type: "select";
|
|
673
|
-
readonly options: readonly [string, ...string[]];
|
|
674
|
-
readonly defaultValue: string | null;
|
|
675
|
-
readonly isOptional: boolean;
|
|
676
|
-
readonly optionLabels: {
|
|
677
|
-
readonly [x: string]: string;
|
|
678
|
-
} & import("../../validate").BuilderValidatedBrand;
|
|
679
|
-
readonly tags?: readonly string[] | undefined;
|
|
680
|
-
} | {
|
|
681
|
-
readonly type: "toggle";
|
|
682
|
-
readonly valueType: "string" | "number" | "boolean";
|
|
683
|
-
readonly defaultValue: string | number | boolean | null;
|
|
684
|
-
readonly isOptional: boolean;
|
|
685
|
-
readonly tags?: readonly string[] | undefined;
|
|
686
474
|
};
|
|
687
475
|
readonly paths?: readonly (readonly (string | number)[])[] | undefined;
|
|
688
476
|
readonly tags?: readonly string[] | undefined;
|
|
@@ -690,35 +478,23 @@ export declare const validateCollectionSelectMap: (input: unknown, references?:
|
|
|
690
478
|
readonly components: readonly {
|
|
691
479
|
readonly name: string;
|
|
692
480
|
readonly payload: {
|
|
693
|
-
readonly
|
|
694
|
-
readonly type: "component-
|
|
481
|
+
readonly details: readonly {
|
|
482
|
+
readonly type: "component-detail";
|
|
695
483
|
readonly name: string;
|
|
696
|
-
readonly
|
|
484
|
+
readonly kind: "string" | "number" | "boolean" | "price" | "image";
|
|
697
485
|
readonly isOptional: boolean;
|
|
698
486
|
readonly tags?: readonly string[] | undefined;
|
|
699
487
|
}[];
|
|
700
488
|
readonly tags?: readonly string[] | undefined;
|
|
701
|
-
} | {
|
|
702
|
-
readonly type: "enable";
|
|
703
|
-
readonly payload: {
|
|
704
|
-
readonly fields: readonly {
|
|
705
|
-
readonly type: "component-field";
|
|
706
|
-
readonly name: string;
|
|
707
|
-
readonly valueType: "string" | "number" | "boolean";
|
|
708
|
-
readonly isOptional: boolean;
|
|
709
|
-
readonly tags?: readonly string[] | undefined;
|
|
710
|
-
}[];
|
|
711
|
-
readonly tags?: readonly string[] | undefined;
|
|
712
|
-
};
|
|
713
489
|
} | {
|
|
714
490
|
readonly type: "match";
|
|
715
491
|
readonly matchPath: readonly (string | number)[];
|
|
716
492
|
readonly selectMap: {
|
|
717
493
|
readonly [x: string]: {
|
|
718
|
-
readonly
|
|
719
|
-
readonly type: "component-
|
|
494
|
+
readonly details: readonly {
|
|
495
|
+
readonly type: "component-detail";
|
|
720
496
|
readonly name: string;
|
|
721
|
-
readonly
|
|
497
|
+
readonly kind: "string" | "number" | "boolean" | "price" | "image";
|
|
722
498
|
readonly isOptional: boolean;
|
|
723
499
|
readonly tags?: readonly string[] | undefined;
|
|
724
500
|
}[];
|
|
@@ -730,10 +506,10 @@ export declare const validateCollectionSelectMap: (input: unknown, references?:
|
|
|
730
506
|
readonly unlessPath: readonly (string | number)[];
|
|
731
507
|
readonly disabledValues: readonly (string | number | boolean | null)[];
|
|
732
508
|
readonly payload: {
|
|
733
|
-
readonly
|
|
734
|
-
readonly type: "component-
|
|
509
|
+
readonly details: readonly {
|
|
510
|
+
readonly type: "component-detail";
|
|
735
511
|
readonly name: string;
|
|
736
|
-
readonly
|
|
512
|
+
readonly kind: "string" | "number" | "boolean" | "price" | "image";
|
|
737
513
|
readonly isOptional: boolean;
|
|
738
514
|
readonly tags?: readonly string[] | undefined;
|
|
739
515
|
}[];
|
|
@@ -747,9 +523,6 @@ export declare const validateCollectionSelectMap: (input: unknown, references?:
|
|
|
747
523
|
readonly name: string;
|
|
748
524
|
readonly paths?: readonly (readonly (string | number)[])[] | undefined;
|
|
749
525
|
readonly payload: /*elided*/ any | {
|
|
750
|
-
readonly type: "enable";
|
|
751
|
-
readonly payload: /*elided*/ any;
|
|
752
|
-
} | {
|
|
753
526
|
readonly type: "match";
|
|
754
527
|
readonly matchPath: readonly (string | number)[];
|
|
755
528
|
readonly selectMap: {
|
|
@@ -763,10 +536,27 @@ export declare const validateCollectionSelectMap: (input: unknown, references?:
|
|
|
763
536
|
};
|
|
764
537
|
readonly tags?: readonly string[] | undefined;
|
|
765
538
|
}[];
|
|
766
|
-
readonly expectations: readonly
|
|
539
|
+
readonly expectations: readonly {
|
|
767
540
|
readonly name: string;
|
|
768
541
|
readonly kind: "option" | "component" | "collection";
|
|
769
|
-
|
|
542
|
+
readonly payload?: {
|
|
543
|
+
readonly kind: "string" | "number" | "boolean";
|
|
544
|
+
readonly type: "value";
|
|
545
|
+
readonly defaultValue: string | number | boolean | null;
|
|
546
|
+
readonly isOptional: boolean;
|
|
547
|
+
readonly tags?: readonly string[] | undefined;
|
|
548
|
+
} | {
|
|
549
|
+
readonly kind: "select";
|
|
550
|
+
readonly options: readonly [string, ...string[]];
|
|
551
|
+
readonly optionLabels?: ({
|
|
552
|
+
readonly [x: string]: string;
|
|
553
|
+
} & import("../../validate").BuilderValidatedBrand) | undefined;
|
|
554
|
+
readonly type: "value";
|
|
555
|
+
readonly defaultValue: string | number | boolean | null;
|
|
556
|
+
readonly isOptional: boolean;
|
|
557
|
+
readonly tags?: readonly string[] | undefined;
|
|
558
|
+
} | undefined;
|
|
559
|
+
}[];
|
|
770
560
|
readonly tags?: readonly string[] | undefined;
|
|
771
561
|
} & import("../../validate").BuilderValidatedBrand;
|
|
772
562
|
readonly min: number;
|