@builder-builder/builder 0.0.27 → 0.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bb.js +4 -4
- package/dist/client/client.d.ts +2 -1
- package/dist/client/client.js +4 -1
- package/dist/client/public.d.ts +2 -2
- package/dist/client/public.js +1 -1
- package/dist/client/schema.d.ts +79 -18
- package/dist/client/schema.js +6 -1
- package/dist/components/BuilderRender.svelte.d.ts +2 -2
- package/dist/components/index.js +4377 -4303
- package/dist/components/index.min.js +3 -0
- package/dist/entities/collection/collection.d.ts +66 -66
- package/dist/entities/collection/config.d.ts +17 -17
- package/dist/entities/collection/when.d.ts +1 -1
- package/dist/entities/component/component.d.ts +64 -64
- package/dist/entities/component/config.d.ts +33 -33
- package/dist/entities/component/config.js +18 -16
- package/dist/entities/component/detail.d.ts +61 -0
- package/dist/entities/component/detail.js +71 -0
- package/dist/entities/component/index.d.ts +2 -2
- package/dist/entities/component/index.js +1 -1
- package/dist/entities/component/when.d.ts +2 -2
- package/dist/entities/expectation.d.ts +1 -1
- package/dist/entities/index.d.ts +4 -4
- package/dist/entities/index.js +1 -1
- package/dist/entities/kind.d.ts +3 -3
- package/dist/entities/kind.js +20 -20
- package/dist/entities/model/methods.d.ts +1 -1
- package/dist/entities/option/config.d.ts +7 -7
- package/dist/entities/option/config.js +1 -1
- package/dist/entities/option/index.d.ts +4 -4
- package/dist/entities/option/index.js +2 -2
- package/dist/entities/option/option.d.ts +22 -22
- package/dist/entities/option/select.d.ts +1 -1
- package/dist/entities/option/toggle.d.ts +9 -9
- package/dist/entities/option/toggle.js +15 -10
- package/dist/entities/option/when.d.ts +1 -1
- package/dist/entities/paths.d.ts +2 -2
- package/dist/entities/pricing/expression.d.ts +16 -39
- package/dist/entities/pricing/expression.js +1 -16
- package/dist/entities/pricing/index.d.ts +1 -1
- package/dist/entities/pricing/rates.d.ts +1 -1
- package/dist/entities/references.d.ts +24 -24
- package/dist/entities/serialise.d.ts +31 -32
- package/dist/entities/serialise.js +7 -7
- package/dist/entities/ui/describe.d.ts +1 -1
- package/dist/entities/ui/input.d.ts +1 -1
- package/dist/entities/ui/page.d.ts +1 -1
- package/dist/entities/ui/pages.d.ts +2 -2
- package/dist/entities/validated.d.ts +2 -2
- package/dist/entities/when.d.ts +5 -5
- package/dist/environment.d.ts +2 -2
- package/dist/errors/errors.d.ts +86 -55
- package/dist/errors/errors.js +36 -5
- package/dist/errors/exception.d.ts +3 -3
- package/dist/errors/index.d.ts +1 -1
- package/dist/errors/index.js +1 -1
- package/dist/errors/public.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/instance.d.ts +53 -9
- package/dist/instance.js +6 -2
- package/dist/mappers/dependencies.d.ts +3 -0
- package/dist/mappers/dependencies.js +44 -0
- package/dist/mappers/index.d.ts +2 -2
- package/dist/mappers/index.js +2 -1
- package/dist/mappers/instance.js +26 -21
- package/dist/mappers/price.js +6 -4
- package/dist/mappers/variants/index.d.ts +1 -2
- package/dist/mappers/variants/index.js +1 -2
- package/dist/mappers/variants/option-graph.d.ts +1 -2
- package/dist/mappers/variants/option-graph.js +3 -17
- package/dist/mappers/variants/variants.d.ts +3 -6
- package/dist/mappers/variants/variants.js +34 -11
- package/dist/primitive.d.ts +3 -0
- package/dist/primitive.js +2 -0
- package/dist/public.d.ts +8 -8
- package/dist/public.js +1 -1
- package/dist/validate/builder.d.ts +2 -2
- package/dist/validate/builder.js +15 -15
- package/dist/validate/expectations.d.ts +2 -2
- package/dist/validate/expectations.js +3 -3
- package/dist/validate/instance.d.ts +2 -2
- package/dist/validate/instance.js +31 -13
- package/dist/validate/model.d.ts +4 -4
- package/dist/validate/model.js +51 -42
- package/dist/validate/paths.d.ts +2 -2
- package/dist/validate/paths.js +19 -14
- package/dist/validate/pricing.d.ts +4 -4
- package/dist/validate/pricing.js +31 -31
- package/dist/validate/resolve.d.ts +2 -2
- package/dist/validate/resolve.js +18 -18
- package/dist/validate/ui.d.ts +4 -4
- package/dist/validate/ui.js +38 -38
- package/dist/validate/variants.d.ts +3 -3
- package/dist/validate/variants.js +32 -31
- package/package.json +4 -2
- package/dist/entities/component/field.d.ts +0 -59
- package/dist/entities/component/field.js +0 -52
|
@@ -86,7 +86,7 @@ export type BuilderCollectionSerialised = {
|
|
|
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 validateCollectionWhen: (input: unknown, references?: import("..").BuilderReferences,
|
|
89
|
+
export declare const validateCollectionWhen: (input: unknown, references?: import("..").BuilderReferences, issues?: import("../../errors").BuilderIssuesScope) => import("..").ValidationResult<{
|
|
90
90
|
readonly type: "enable";
|
|
91
91
|
readonly payload: {
|
|
92
92
|
readonly model: {
|
|
@@ -106,7 +106,7 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
106
106
|
readonly tags?: readonly string[] | undefined;
|
|
107
107
|
} | {
|
|
108
108
|
readonly type: "toggle";
|
|
109
|
-
readonly
|
|
109
|
+
readonly kind: "string" | "number" | "boolean";
|
|
110
110
|
readonly defaultValue: string | number | boolean | null;
|
|
111
111
|
readonly isOptional: boolean;
|
|
112
112
|
readonly tags?: readonly string[] | undefined;
|
|
@@ -126,7 +126,7 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
126
126
|
readonly tags?: readonly string[] | undefined;
|
|
127
127
|
} | {
|
|
128
128
|
readonly type: "toggle";
|
|
129
|
-
readonly
|
|
129
|
+
readonly kind: "string" | "number" | "boolean";
|
|
130
130
|
readonly defaultValue: string | number | boolean | null;
|
|
131
131
|
readonly isOptional: boolean;
|
|
132
132
|
readonly tags?: readonly string[] | undefined;
|
|
@@ -147,7 +147,7 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
147
147
|
readonly tags?: readonly string[] | undefined;
|
|
148
148
|
} | {
|
|
149
149
|
readonly type: "toggle";
|
|
150
|
-
readonly
|
|
150
|
+
readonly kind: "string" | "number" | "boolean";
|
|
151
151
|
readonly defaultValue: string | number | boolean | null;
|
|
152
152
|
readonly isOptional: boolean;
|
|
153
153
|
readonly tags?: readonly string[] | undefined;
|
|
@@ -163,7 +163,7 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
163
163
|
readonly tags?: readonly string[] | undefined;
|
|
164
164
|
} | {
|
|
165
165
|
readonly type: "toggle";
|
|
166
|
-
readonly
|
|
166
|
+
readonly kind: "string" | "number" | "boolean";
|
|
167
167
|
readonly defaultValue: string | number | boolean | null;
|
|
168
168
|
readonly isOptional: boolean;
|
|
169
169
|
readonly tags?: readonly string[] | undefined;
|
|
@@ -174,10 +174,10 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
174
174
|
readonly components: readonly {
|
|
175
175
|
readonly name: string;
|
|
176
176
|
readonly payload: {
|
|
177
|
-
readonly
|
|
178
|
-
readonly type: "component-
|
|
177
|
+
readonly details: readonly {
|
|
178
|
+
readonly type: "component-detail";
|
|
179
179
|
readonly name: string;
|
|
180
|
-
readonly
|
|
180
|
+
readonly kind: "string" | "number" | "boolean" | "price" | "image";
|
|
181
181
|
readonly isOptional: boolean;
|
|
182
182
|
readonly tags?: readonly string[] | undefined;
|
|
183
183
|
}[];
|
|
@@ -185,10 +185,10 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
185
185
|
} | {
|
|
186
186
|
readonly type: "enable";
|
|
187
187
|
readonly payload: {
|
|
188
|
-
readonly
|
|
189
|
-
readonly type: "component-
|
|
188
|
+
readonly details: readonly {
|
|
189
|
+
readonly type: "component-detail";
|
|
190
190
|
readonly name: string;
|
|
191
|
-
readonly
|
|
191
|
+
readonly kind: "string" | "number" | "boolean" | "price" | "image";
|
|
192
192
|
readonly isOptional: boolean;
|
|
193
193
|
readonly tags?: readonly string[] | undefined;
|
|
194
194
|
}[];
|
|
@@ -199,10 +199,10 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
199
199
|
readonly matchPath: readonly (string | number)[];
|
|
200
200
|
readonly selectMap: {
|
|
201
201
|
readonly [x: string]: {
|
|
202
|
-
readonly
|
|
203
|
-
readonly type: "component-
|
|
202
|
+
readonly details: readonly {
|
|
203
|
+
readonly type: "component-detail";
|
|
204
204
|
readonly name: string;
|
|
205
|
-
readonly
|
|
205
|
+
readonly kind: "string" | "number" | "boolean" | "price" | "image";
|
|
206
206
|
readonly isOptional: boolean;
|
|
207
207
|
readonly tags?: readonly string[] | undefined;
|
|
208
208
|
}[];
|
|
@@ -214,10 +214,10 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
214
214
|
readonly unlessPath: readonly (string | number)[];
|
|
215
215
|
readonly disabledValues: readonly (string | number | boolean | null)[];
|
|
216
216
|
readonly payload: {
|
|
217
|
-
readonly
|
|
218
|
-
readonly type: "component-
|
|
217
|
+
readonly details: readonly {
|
|
218
|
+
readonly type: "component-detail";
|
|
219
219
|
readonly name: string;
|
|
220
|
-
readonly
|
|
220
|
+
readonly kind: "string" | "number" | "boolean" | "price" | "image";
|
|
221
221
|
readonly isOptional: boolean;
|
|
222
222
|
readonly tags?: readonly string[] | undefined;
|
|
223
223
|
}[];
|
|
@@ -279,7 +279,7 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
279
279
|
readonly tags?: readonly string[] | undefined;
|
|
280
280
|
} | {
|
|
281
281
|
readonly type: "toggle";
|
|
282
|
-
readonly
|
|
282
|
+
readonly kind: "string" | "number" | "boolean";
|
|
283
283
|
readonly defaultValue: string | number | boolean | null;
|
|
284
284
|
readonly isOptional: boolean;
|
|
285
285
|
readonly tags?: readonly string[] | undefined;
|
|
@@ -299,7 +299,7 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
299
299
|
readonly tags?: readonly string[] | undefined;
|
|
300
300
|
} | {
|
|
301
301
|
readonly type: "toggle";
|
|
302
|
-
readonly
|
|
302
|
+
readonly kind: "string" | "number" | "boolean";
|
|
303
303
|
readonly defaultValue: string | number | boolean | null;
|
|
304
304
|
readonly isOptional: boolean;
|
|
305
305
|
readonly tags?: readonly string[] | undefined;
|
|
@@ -320,7 +320,7 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
320
320
|
readonly tags?: readonly string[] | undefined;
|
|
321
321
|
} | {
|
|
322
322
|
readonly type: "toggle";
|
|
323
|
-
readonly
|
|
323
|
+
readonly kind: "string" | "number" | "boolean";
|
|
324
324
|
readonly defaultValue: string | number | boolean | null;
|
|
325
325
|
readonly isOptional: boolean;
|
|
326
326
|
readonly tags?: readonly string[] | undefined;
|
|
@@ -336,7 +336,7 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
336
336
|
readonly tags?: readonly string[] | undefined;
|
|
337
337
|
} | {
|
|
338
338
|
readonly type: "toggle";
|
|
339
|
-
readonly
|
|
339
|
+
readonly kind: "string" | "number" | "boolean";
|
|
340
340
|
readonly defaultValue: string | number | boolean | null;
|
|
341
341
|
readonly isOptional: boolean;
|
|
342
342
|
readonly tags?: readonly string[] | undefined;
|
|
@@ -347,10 +347,10 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
347
347
|
readonly components: readonly {
|
|
348
348
|
readonly name: string;
|
|
349
349
|
readonly payload: {
|
|
350
|
-
readonly
|
|
351
|
-
readonly type: "component-
|
|
350
|
+
readonly details: readonly {
|
|
351
|
+
readonly type: "component-detail";
|
|
352
352
|
readonly name: string;
|
|
353
|
-
readonly
|
|
353
|
+
readonly kind: "string" | "number" | "boolean" | "price" | "image";
|
|
354
354
|
readonly isOptional: boolean;
|
|
355
355
|
readonly tags?: readonly string[] | undefined;
|
|
356
356
|
}[];
|
|
@@ -358,10 +358,10 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
358
358
|
} | {
|
|
359
359
|
readonly type: "enable";
|
|
360
360
|
readonly payload: {
|
|
361
|
-
readonly
|
|
362
|
-
readonly type: "component-
|
|
361
|
+
readonly details: readonly {
|
|
362
|
+
readonly type: "component-detail";
|
|
363
363
|
readonly name: string;
|
|
364
|
-
readonly
|
|
364
|
+
readonly kind: "string" | "number" | "boolean" | "price" | "image";
|
|
365
365
|
readonly isOptional: boolean;
|
|
366
366
|
readonly tags?: readonly string[] | undefined;
|
|
367
367
|
}[];
|
|
@@ -372,10 +372,10 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
372
372
|
readonly matchPath: readonly (string | number)[];
|
|
373
373
|
readonly selectMap: {
|
|
374
374
|
readonly [x: string]: {
|
|
375
|
-
readonly
|
|
376
|
-
readonly type: "component-
|
|
375
|
+
readonly details: readonly {
|
|
376
|
+
readonly type: "component-detail";
|
|
377
377
|
readonly name: string;
|
|
378
|
-
readonly
|
|
378
|
+
readonly kind: "string" | "number" | "boolean" | "price" | "image";
|
|
379
379
|
readonly isOptional: boolean;
|
|
380
380
|
readonly tags?: readonly string[] | undefined;
|
|
381
381
|
}[];
|
|
@@ -387,10 +387,10 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
387
387
|
readonly unlessPath: readonly (string | number)[];
|
|
388
388
|
readonly disabledValues: readonly (string | number | boolean | null)[];
|
|
389
389
|
readonly payload: {
|
|
390
|
-
readonly
|
|
391
|
-
readonly type: "component-
|
|
390
|
+
readonly details: readonly {
|
|
391
|
+
readonly type: "component-detail";
|
|
392
392
|
readonly name: string;
|
|
393
|
-
readonly
|
|
393
|
+
readonly kind: "string" | "number" | "boolean" | "price" | "image";
|
|
394
394
|
readonly isOptional: boolean;
|
|
395
395
|
readonly tags?: readonly string[] | undefined;
|
|
396
396
|
}[];
|
|
@@ -451,7 +451,7 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
451
451
|
readonly tags?: readonly string[] | undefined;
|
|
452
452
|
} | {
|
|
453
453
|
readonly type: "toggle";
|
|
454
|
-
readonly
|
|
454
|
+
readonly kind: "string" | "number" | "boolean";
|
|
455
455
|
readonly defaultValue: string | number | boolean | null;
|
|
456
456
|
readonly isOptional: boolean;
|
|
457
457
|
readonly tags?: readonly string[] | undefined;
|
|
@@ -471,7 +471,7 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
471
471
|
readonly tags?: readonly string[] | undefined;
|
|
472
472
|
} | {
|
|
473
473
|
readonly type: "toggle";
|
|
474
|
-
readonly
|
|
474
|
+
readonly kind: "string" | "number" | "boolean";
|
|
475
475
|
readonly defaultValue: string | number | boolean | null;
|
|
476
476
|
readonly isOptional: boolean;
|
|
477
477
|
readonly tags?: readonly string[] | undefined;
|
|
@@ -492,7 +492,7 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
492
492
|
readonly tags?: readonly string[] | undefined;
|
|
493
493
|
} | {
|
|
494
494
|
readonly type: "toggle";
|
|
495
|
-
readonly
|
|
495
|
+
readonly kind: "string" | "number" | "boolean";
|
|
496
496
|
readonly defaultValue: string | number | boolean | null;
|
|
497
497
|
readonly isOptional: boolean;
|
|
498
498
|
readonly tags?: readonly string[] | undefined;
|
|
@@ -508,7 +508,7 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
508
508
|
readonly tags?: readonly string[] | undefined;
|
|
509
509
|
} | {
|
|
510
510
|
readonly type: "toggle";
|
|
511
|
-
readonly
|
|
511
|
+
readonly kind: "string" | "number" | "boolean";
|
|
512
512
|
readonly defaultValue: string | number | boolean | null;
|
|
513
513
|
readonly isOptional: boolean;
|
|
514
514
|
readonly tags?: readonly string[] | undefined;
|
|
@@ -519,10 +519,10 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
519
519
|
readonly components: readonly {
|
|
520
520
|
readonly name: string;
|
|
521
521
|
readonly payload: {
|
|
522
|
-
readonly
|
|
523
|
-
readonly type: "component-
|
|
522
|
+
readonly details: readonly {
|
|
523
|
+
readonly type: "component-detail";
|
|
524
524
|
readonly name: string;
|
|
525
|
-
readonly
|
|
525
|
+
readonly kind: "string" | "number" | "boolean" | "price" | "image";
|
|
526
526
|
readonly isOptional: boolean;
|
|
527
527
|
readonly tags?: readonly string[] | undefined;
|
|
528
528
|
}[];
|
|
@@ -530,10 +530,10 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
530
530
|
} | {
|
|
531
531
|
readonly type: "enable";
|
|
532
532
|
readonly payload: {
|
|
533
|
-
readonly
|
|
534
|
-
readonly type: "component-
|
|
533
|
+
readonly details: readonly {
|
|
534
|
+
readonly type: "component-detail";
|
|
535
535
|
readonly name: string;
|
|
536
|
-
readonly
|
|
536
|
+
readonly kind: "string" | "number" | "boolean" | "price" | "image";
|
|
537
537
|
readonly isOptional: boolean;
|
|
538
538
|
readonly tags?: readonly string[] | undefined;
|
|
539
539
|
}[];
|
|
@@ -544,10 +544,10 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
544
544
|
readonly matchPath: readonly (string | number)[];
|
|
545
545
|
readonly selectMap: {
|
|
546
546
|
readonly [x: string]: {
|
|
547
|
-
readonly
|
|
548
|
-
readonly type: "component-
|
|
547
|
+
readonly details: readonly {
|
|
548
|
+
readonly type: "component-detail";
|
|
549
549
|
readonly name: string;
|
|
550
|
-
readonly
|
|
550
|
+
readonly kind: "string" | "number" | "boolean" | "price" | "image";
|
|
551
551
|
readonly isOptional: boolean;
|
|
552
552
|
readonly tags?: readonly string[] | undefined;
|
|
553
553
|
}[];
|
|
@@ -559,10 +559,10 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
559
559
|
readonly unlessPath: readonly (string | number)[];
|
|
560
560
|
readonly disabledValues: readonly (string | number | boolean | null)[];
|
|
561
561
|
readonly payload: {
|
|
562
|
-
readonly
|
|
563
|
-
readonly type: "component-
|
|
562
|
+
readonly details: readonly {
|
|
563
|
+
readonly type: "component-detail";
|
|
564
564
|
readonly name: string;
|
|
565
|
-
readonly
|
|
565
|
+
readonly kind: "string" | "number" | "boolean" | "price" | "image";
|
|
566
566
|
readonly isOptional: boolean;
|
|
567
567
|
readonly tags?: readonly string[] | undefined;
|
|
568
568
|
}[];
|
|
@@ -603,7 +603,7 @@ export declare const validateCollectionWhen: (input: unknown, references?: impor
|
|
|
603
603
|
readonly tags?: readonly string[] | undefined;
|
|
604
604
|
};
|
|
605
605
|
}>;
|
|
606
|
-
export declare const validateCollectionSelectMap: (input: unknown, references?: import("..").BuilderReferences,
|
|
606
|
+
export declare const validateCollectionSelectMap: (input: unknown, references?: import("..").BuilderReferences, issues?: import("../../errors").BuilderIssuesScope) => import("..").ValidationResult<{
|
|
607
607
|
readonly [x: string]: {
|
|
608
608
|
readonly model: {
|
|
609
609
|
readonly models: readonly (/*elided*/ any & import("../../validate").BuilderValidatedBrand)[];
|
|
@@ -622,7 +622,7 @@ export declare const validateCollectionSelectMap: (input: unknown, references?:
|
|
|
622
622
|
readonly tags?: readonly string[] | undefined;
|
|
623
623
|
} | {
|
|
624
624
|
readonly type: "toggle";
|
|
625
|
-
readonly
|
|
625
|
+
readonly kind: "string" | "number" | "boolean";
|
|
626
626
|
readonly defaultValue: string | number | boolean | null;
|
|
627
627
|
readonly isOptional: boolean;
|
|
628
628
|
readonly tags?: readonly string[] | undefined;
|
|
@@ -642,7 +642,7 @@ export declare const validateCollectionSelectMap: (input: unknown, references?:
|
|
|
642
642
|
readonly tags?: readonly string[] | undefined;
|
|
643
643
|
} | {
|
|
644
644
|
readonly type: "toggle";
|
|
645
|
-
readonly
|
|
645
|
+
readonly kind: "string" | "number" | "boolean";
|
|
646
646
|
readonly defaultValue: string | number | boolean | null;
|
|
647
647
|
readonly isOptional: boolean;
|
|
648
648
|
readonly tags?: readonly string[] | undefined;
|
|
@@ -663,7 +663,7 @@ export declare const validateCollectionSelectMap: (input: unknown, references?:
|
|
|
663
663
|
readonly tags?: readonly string[] | undefined;
|
|
664
664
|
} | {
|
|
665
665
|
readonly type: "toggle";
|
|
666
|
-
readonly
|
|
666
|
+
readonly kind: "string" | "number" | "boolean";
|
|
667
667
|
readonly defaultValue: string | number | boolean | null;
|
|
668
668
|
readonly isOptional: boolean;
|
|
669
669
|
readonly tags?: readonly string[] | undefined;
|
|
@@ -679,7 +679,7 @@ export declare const validateCollectionSelectMap: (input: unknown, references?:
|
|
|
679
679
|
readonly tags?: readonly string[] | undefined;
|
|
680
680
|
} | {
|
|
681
681
|
readonly type: "toggle";
|
|
682
|
-
readonly
|
|
682
|
+
readonly kind: "string" | "number" | "boolean";
|
|
683
683
|
readonly defaultValue: string | number | boolean | null;
|
|
684
684
|
readonly isOptional: boolean;
|
|
685
685
|
readonly tags?: readonly string[] | undefined;
|
|
@@ -690,10 +690,10 @@ export declare const validateCollectionSelectMap: (input: unknown, references?:
|
|
|
690
690
|
readonly components: readonly {
|
|
691
691
|
readonly name: string;
|
|
692
692
|
readonly payload: {
|
|
693
|
-
readonly
|
|
694
|
-
readonly type: "component-
|
|
693
|
+
readonly details: readonly {
|
|
694
|
+
readonly type: "component-detail";
|
|
695
695
|
readonly name: string;
|
|
696
|
-
readonly
|
|
696
|
+
readonly kind: "string" | "number" | "boolean" | "price" | "image";
|
|
697
697
|
readonly isOptional: boolean;
|
|
698
698
|
readonly tags?: readonly string[] | undefined;
|
|
699
699
|
}[];
|
|
@@ -701,10 +701,10 @@ export declare const validateCollectionSelectMap: (input: unknown, references?:
|
|
|
701
701
|
} | {
|
|
702
702
|
readonly type: "enable";
|
|
703
703
|
readonly payload: {
|
|
704
|
-
readonly
|
|
705
|
-
readonly type: "component-
|
|
704
|
+
readonly details: readonly {
|
|
705
|
+
readonly type: "component-detail";
|
|
706
706
|
readonly name: string;
|
|
707
|
-
readonly
|
|
707
|
+
readonly kind: "string" | "number" | "boolean" | "price" | "image";
|
|
708
708
|
readonly isOptional: boolean;
|
|
709
709
|
readonly tags?: readonly string[] | undefined;
|
|
710
710
|
}[];
|
|
@@ -715,10 +715,10 @@ export declare const validateCollectionSelectMap: (input: unknown, references?:
|
|
|
715
715
|
readonly matchPath: readonly (string | number)[];
|
|
716
716
|
readonly selectMap: {
|
|
717
717
|
readonly [x: string]: {
|
|
718
|
-
readonly
|
|
719
|
-
readonly type: "component-
|
|
718
|
+
readonly details: readonly {
|
|
719
|
+
readonly type: "component-detail";
|
|
720
720
|
readonly name: string;
|
|
721
|
-
readonly
|
|
721
|
+
readonly kind: "string" | "number" | "boolean" | "price" | "image";
|
|
722
722
|
readonly isOptional: boolean;
|
|
723
723
|
readonly tags?: readonly string[] | undefined;
|
|
724
724
|
}[];
|
|
@@ -730,10 +730,10 @@ export declare const validateCollectionSelectMap: (input: unknown, references?:
|
|
|
730
730
|
readonly unlessPath: readonly (string | number)[];
|
|
731
731
|
readonly disabledValues: readonly (string | number | boolean | null)[];
|
|
732
732
|
readonly payload: {
|
|
733
|
-
readonly
|
|
734
|
-
readonly type: "component-
|
|
733
|
+
readonly details: readonly {
|
|
734
|
+
readonly type: "component-detail";
|
|
735
735
|
readonly name: string;
|
|
736
|
-
readonly
|
|
736
|
+
readonly kind: "string" | "number" | "boolean" | "price" | "image";
|
|
737
737
|
readonly isOptional: boolean;
|
|
738
738
|
readonly tags?: readonly string[] | undefined;
|
|
739
739
|
}[];
|
|
@@ -189,7 +189,7 @@ export declare const BuilderCollectionConfigsSerialisedSchema: v.SchemaWithPipe<
|
|
|
189
189
|
}>[]>]>;
|
|
190
190
|
export type BuilderCollectionConfigsSerialised = v.InferOutput<typeof BuilderCollectionConfigsSerialisedSchema>;
|
|
191
191
|
export declare function collectionConfig<Model extends Paramable<BuilderModelGeneric> = Paramable<BuilderModelGeneric>, Min extends Paramable<number> = Paramable<number>, Max extends Paramable<number> = Paramable<number>>(model: Model, min: Min, max: Max): BuilderCollectionConfig<Model, Min, Max>;
|
|
192
|
-
export declare const validateCollectionConfig: (input: unknown, references?: import("..").BuilderReferences,
|
|
192
|
+
export declare const validateCollectionConfig: (input: unknown, references?: import("..").BuilderReferences, issues?: import("../../errors").BuilderIssuesScope) => import("..").ValidationResult<{
|
|
193
193
|
readonly model: {
|
|
194
194
|
readonly models: readonly (/*elided*/ any & import("../../validate").BuilderValidatedBrand)[];
|
|
195
195
|
readonly options: readonly {
|
|
@@ -207,7 +207,7 @@ export declare const validateCollectionConfig: (input: unknown, references?: imp
|
|
|
207
207
|
readonly tags?: readonly string[] | undefined;
|
|
208
208
|
} | {
|
|
209
209
|
readonly type: "toggle";
|
|
210
|
-
readonly
|
|
210
|
+
readonly kind: "string" | "number" | "boolean";
|
|
211
211
|
readonly defaultValue: string | number | boolean | null;
|
|
212
212
|
readonly isOptional: boolean;
|
|
213
213
|
readonly tags?: readonly string[] | undefined;
|
|
@@ -227,7 +227,7 @@ export declare const validateCollectionConfig: (input: unknown, references?: imp
|
|
|
227
227
|
readonly tags?: readonly string[] | undefined;
|
|
228
228
|
} | {
|
|
229
229
|
readonly type: "toggle";
|
|
230
|
-
readonly
|
|
230
|
+
readonly kind: "string" | "number" | "boolean";
|
|
231
231
|
readonly defaultValue: string | number | boolean | null;
|
|
232
232
|
readonly isOptional: boolean;
|
|
233
233
|
readonly tags?: readonly string[] | undefined;
|
|
@@ -248,7 +248,7 @@ export declare const validateCollectionConfig: (input: unknown, references?: imp
|
|
|
248
248
|
readonly tags?: readonly string[] | undefined;
|
|
249
249
|
} | {
|
|
250
250
|
readonly type: "toggle";
|
|
251
|
-
readonly
|
|
251
|
+
readonly kind: "string" | "number" | "boolean";
|
|
252
252
|
readonly defaultValue: string | number | boolean | null;
|
|
253
253
|
readonly isOptional: boolean;
|
|
254
254
|
readonly tags?: readonly string[] | undefined;
|
|
@@ -264,7 +264,7 @@ export declare const validateCollectionConfig: (input: unknown, references?: imp
|
|
|
264
264
|
readonly tags?: readonly string[] | undefined;
|
|
265
265
|
} | {
|
|
266
266
|
readonly type: "toggle";
|
|
267
|
-
readonly
|
|
267
|
+
readonly kind: "string" | "number" | "boolean";
|
|
268
268
|
readonly defaultValue: string | number | boolean | null;
|
|
269
269
|
readonly isOptional: boolean;
|
|
270
270
|
readonly tags?: readonly string[] | undefined;
|
|
@@ -275,10 +275,10 @@ export declare const validateCollectionConfig: (input: unknown, references?: imp
|
|
|
275
275
|
readonly components: readonly {
|
|
276
276
|
readonly name: string;
|
|
277
277
|
readonly payload: {
|
|
278
|
-
readonly
|
|
279
|
-
readonly type: "component-
|
|
278
|
+
readonly details: readonly {
|
|
279
|
+
readonly type: "component-detail";
|
|
280
280
|
readonly name: string;
|
|
281
|
-
readonly
|
|
281
|
+
readonly kind: "string" | "number" | "boolean" | "price" | "image";
|
|
282
282
|
readonly isOptional: boolean;
|
|
283
283
|
readonly tags?: readonly string[] | undefined;
|
|
284
284
|
}[];
|
|
@@ -286,10 +286,10 @@ export declare const validateCollectionConfig: (input: unknown, references?: imp
|
|
|
286
286
|
} | {
|
|
287
287
|
readonly type: "enable";
|
|
288
288
|
readonly payload: {
|
|
289
|
-
readonly
|
|
290
|
-
readonly type: "component-
|
|
289
|
+
readonly details: readonly {
|
|
290
|
+
readonly type: "component-detail";
|
|
291
291
|
readonly name: string;
|
|
292
|
-
readonly
|
|
292
|
+
readonly kind: "string" | "number" | "boolean" | "price" | "image";
|
|
293
293
|
readonly isOptional: boolean;
|
|
294
294
|
readonly tags?: readonly string[] | undefined;
|
|
295
295
|
}[];
|
|
@@ -300,10 +300,10 @@ export declare const validateCollectionConfig: (input: unknown, references?: imp
|
|
|
300
300
|
readonly matchPath: readonly (string | number)[];
|
|
301
301
|
readonly selectMap: {
|
|
302
302
|
readonly [x: string]: {
|
|
303
|
-
readonly
|
|
304
|
-
readonly type: "component-
|
|
303
|
+
readonly details: readonly {
|
|
304
|
+
readonly type: "component-detail";
|
|
305
305
|
readonly name: string;
|
|
306
|
-
readonly
|
|
306
|
+
readonly kind: "string" | "number" | "boolean" | "price" | "image";
|
|
307
307
|
readonly isOptional: boolean;
|
|
308
308
|
readonly tags?: readonly string[] | undefined;
|
|
309
309
|
}[];
|
|
@@ -315,10 +315,10 @@ export declare const validateCollectionConfig: (input: unknown, references?: imp
|
|
|
315
315
|
readonly unlessPath: readonly (string | number)[];
|
|
316
316
|
readonly disabledValues: readonly (string | number | boolean | null)[];
|
|
317
317
|
readonly payload: {
|
|
318
|
-
readonly
|
|
319
|
-
readonly type: "component-
|
|
318
|
+
readonly details: readonly {
|
|
319
|
+
readonly type: "component-detail";
|
|
320
320
|
readonly name: string;
|
|
321
|
-
readonly
|
|
321
|
+
readonly kind: "string" | "number" | "boolean" | "price" | "image";
|
|
322
322
|
readonly isOptional: boolean;
|
|
323
323
|
readonly tags?: readonly string[] | undefined;
|
|
324
324
|
}[];
|
|
@@ -6,5 +6,5 @@ export type BuilderCollectionWhen = BuilderWhen<Paramable<BuilderCollectionConfi
|
|
|
6
6
|
export declare const collectionWhen: {
|
|
7
7
|
enable: <const Values extends Paramable<BuilderCollectionConfig<Paramable<import("..").BuilderModelGeneric>, Paramable<number>, Paramable<number>>>>(values: Values) => import("..").BuilderEnableConfig<Values>;
|
|
8
8
|
match: <const MatchPayload extends Paramable<BuilderCollectionConfig<Paramable<import("..").BuilderModelGeneric>, Paramable<number>, Paramable<number>>>, const MatchPath extends Paramable<BuilderPath>, const SelectMap extends Paramable<import("..").BuilderMatchSelectMap<Paramable<BuilderCollectionConfig<Paramable<import("..").BuilderModelGeneric>, Paramable<number>, Paramable<number>>>>>>(matchPath: MatchPath, selectMap: SelectMap) => import("..").BuilderMatchConfig<MatchPayload, MatchPath, SelectMap>;
|
|
9
|
-
unless: <const Values extends Paramable<BuilderCollectionConfig<Paramable<import("..").BuilderModelGeneric>, Paramable<number>, Paramable<number>>>, const UnlessPath extends Paramable<BuilderPath>>(unlessPath: UnlessPath, disabledValues: import("
|
|
9
|
+
unless: <const Values extends Paramable<BuilderCollectionConfig<Paramable<import("..").BuilderModelGeneric>, Paramable<number>, Paramable<number>>>, const UnlessPath extends Paramable<BuilderPath>>(unlessPath: UnlessPath, disabledValues: import("../../primitive").BuilderPrimitivesNonEmpty, values: Values) => import("..").BuilderUnlessConfig<Values, UnlessPath>;
|
|
10
10
|
};
|