@builder-builder/builder 0.0.26 → 0.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/dist/bb.js +4 -4
  2. package/dist/client/client.d.ts +2 -1
  3. package/dist/client/client.js +4 -1
  4. package/dist/client/public.d.ts +2 -2
  5. package/dist/client/public.js +1 -1
  6. package/dist/client/schema.d.ts +103 -17
  7. package/dist/client/schema.js +7 -0
  8. package/dist/components/Builder.svelte.d.ts +24 -0
  9. package/dist/components/BuilderCollectionButtons.svelte.d.ts +22 -0
  10. package/dist/components/BuilderCollections.svelte.d.ts +23 -0
  11. package/dist/components/BuilderDescription.svelte.d.ts +18 -0
  12. package/dist/components/BuilderLayout.svelte.d.ts +24 -0
  13. package/dist/components/BuilderOption.svelte.d.ts +31 -0
  14. package/dist/components/BuilderOptionSelect.svelte.d.ts +21 -0
  15. package/dist/components/BuilderOptionToggleBoolean.svelte.d.ts +20 -0
  16. package/dist/components/BuilderOptionToggleNumber.svelte.d.ts +21 -0
  17. package/dist/components/BuilderOptionToggleString.svelte.d.ts +21 -0
  18. package/dist/components/BuilderPrice.svelte.d.ts +21 -0
  19. package/dist/components/BuilderRender.svelte.d.ts +39 -0
  20. package/dist/components/config.d.ts +2 -0
  21. package/dist/components/config.js +1 -0
  22. package/dist/components/dispatch.d.ts +1 -0
  23. package/dist/components/dispatch.js +3 -0
  24. package/dist/components/id.d.ts +1 -0
  25. package/dist/components/id.js +3 -0
  26. package/dist/components/index.d.ts +25 -0
  27. package/dist/components/index.js +7515 -0
  28. package/dist/components/index.min.js +3 -0
  29. package/dist/entities/collection/collection.d.ts +66 -66
  30. package/dist/entities/collection/config.d.ts +17 -17
  31. package/dist/entities/collection/when.d.ts +1 -1
  32. package/dist/entities/component/component.d.ts +64 -64
  33. package/dist/entities/component/config.d.ts +33 -33
  34. package/dist/entities/component/config.js +18 -16
  35. package/dist/entities/component/detail.d.ts +61 -0
  36. package/dist/entities/component/detail.js +71 -0
  37. package/dist/entities/component/index.d.ts +2 -2
  38. package/dist/entities/component/index.js +1 -1
  39. package/dist/entities/component/when.d.ts +2 -2
  40. package/dist/entities/expectation.d.ts +1 -1
  41. package/dist/entities/index.d.ts +4 -4
  42. package/dist/entities/index.js +1 -1
  43. package/dist/entities/kind.d.ts +3 -3
  44. package/dist/entities/kind.js +20 -20
  45. package/dist/entities/model/methods.d.ts +1 -1
  46. package/dist/entities/option/config.d.ts +7 -7
  47. package/dist/entities/option/config.js +1 -1
  48. package/dist/entities/option/index.d.ts +4 -4
  49. package/dist/entities/option/index.js +2 -2
  50. package/dist/entities/option/option.d.ts +22 -22
  51. package/dist/entities/option/select.d.ts +1 -1
  52. package/dist/entities/option/toggle.d.ts +9 -9
  53. package/dist/entities/option/toggle.js +15 -10
  54. package/dist/entities/option/when.d.ts +1 -1
  55. package/dist/entities/paths.d.ts +2 -2
  56. package/dist/entities/pricing/expression.d.ts +16 -39
  57. package/dist/entities/pricing/expression.js +1 -16
  58. package/dist/entities/pricing/index.d.ts +1 -1
  59. package/dist/entities/pricing/rates.d.ts +1 -1
  60. package/dist/entities/references.d.ts +72 -24
  61. package/dist/entities/serialise.d.ts +148 -32
  62. package/dist/entities/serialise.js +7 -7
  63. package/dist/entities/ui/describe.d.ts +49 -1
  64. package/dist/entities/ui/input.d.ts +67 -2
  65. package/dist/entities/ui/input.js +8 -2
  66. package/dist/entities/ui/page.d.ts +49 -1
  67. package/dist/entities/ui/pages.d.ts +10 -2
  68. package/dist/entities/validated.d.ts +2 -2
  69. package/dist/entities/when.d.ts +5 -5
  70. package/dist/environment.d.ts +2 -2
  71. package/dist/errors/errors.d.ts +86 -55
  72. package/dist/errors/errors.js +36 -5
  73. package/dist/errors/exception.d.ts +3 -3
  74. package/dist/errors/index.d.ts +1 -1
  75. package/dist/errors/index.js +1 -1
  76. package/dist/errors/public.d.ts +1 -1
  77. package/dist/index.d.ts +1 -1
  78. package/dist/index.js +1 -1
  79. package/dist/instance.d.ts +53 -9
  80. package/dist/instance.js +6 -2
  81. package/dist/mappers/dependencies.d.ts +3 -0
  82. package/dist/mappers/dependencies.js +44 -0
  83. package/dist/mappers/index.d.ts +2 -2
  84. package/dist/mappers/index.js +2 -1
  85. package/dist/mappers/instance.js +26 -21
  86. package/dist/mappers/order.js +4 -2
  87. package/dist/mappers/price.js +6 -4
  88. package/dist/mappers/render/option.d.ts +1 -0
  89. package/dist/mappers/render/option.js +1 -0
  90. package/dist/mappers/variants/index.d.ts +1 -2
  91. package/dist/mappers/variants/index.js +1 -2
  92. package/dist/mappers/variants/option-graph.d.ts +1 -2
  93. package/dist/mappers/variants/option-graph.js +3 -17
  94. package/dist/mappers/variants/variants.d.ts +3 -6
  95. package/dist/mappers/variants/variants.js +34 -11
  96. package/dist/primitive.d.ts +3 -0
  97. package/dist/primitive.js +2 -0
  98. package/dist/public.d.ts +8 -8
  99. package/dist/public.js +1 -1
  100. package/dist/validate/builder.d.ts +2 -2
  101. package/dist/validate/builder.js +15 -15
  102. package/dist/validate/expectations.d.ts +2 -2
  103. package/dist/validate/expectations.js +3 -3
  104. package/dist/validate/instance.d.ts +2 -2
  105. package/dist/validate/instance.js +31 -13
  106. package/dist/validate/model.d.ts +4 -4
  107. package/dist/validate/model.js +51 -42
  108. package/dist/validate/paths.d.ts +2 -2
  109. package/dist/validate/paths.js +19 -14
  110. package/dist/validate/pricing.d.ts +4 -4
  111. package/dist/validate/pricing.js +31 -31
  112. package/dist/validate/resolve.d.ts +2 -2
  113. package/dist/validate/resolve.js +18 -18
  114. package/dist/validate/ui.d.ts +4 -4
  115. package/dist/validate/ui.js +38 -38
  116. package/dist/validate/variants.d.ts +3 -3
  117. package/dist/validate/variants.js +32 -31
  118. package/package.json +9 -5
  119. package/dist/entities/component/field.d.ts +0 -59
  120. 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, errors?: import("../../errors").BuilderErrorsScope) => import("..").ValidationResult<{
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 valueType: "string" | "number" | "boolean";
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 valueType: "string" | "number" | "boolean";
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 valueType: "string" | "number" | "boolean";
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 valueType: "string" | "number" | "boolean";
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 fields: readonly {
178
- readonly type: "component-field";
177
+ readonly details: readonly {
178
+ readonly type: "component-detail";
179
179
  readonly name: string;
180
- readonly valueType: "string" | "number" | "boolean";
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 fields: readonly {
189
- readonly type: "component-field";
188
+ readonly details: readonly {
189
+ readonly type: "component-detail";
190
190
  readonly name: string;
191
- readonly valueType: "string" | "number" | "boolean";
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 fields: readonly {
203
- readonly type: "component-field";
202
+ readonly details: readonly {
203
+ readonly type: "component-detail";
204
204
  readonly name: string;
205
- readonly valueType: "string" | "number" | "boolean";
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 fields: readonly {
218
- readonly type: "component-field";
217
+ readonly details: readonly {
218
+ readonly type: "component-detail";
219
219
  readonly name: string;
220
- readonly valueType: "string" | "number" | "boolean";
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 valueType: "string" | "number" | "boolean";
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 valueType: "string" | "number" | "boolean";
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 valueType: "string" | "number" | "boolean";
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 valueType: "string" | "number" | "boolean";
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 fields: readonly {
351
- readonly type: "component-field";
350
+ readonly details: readonly {
351
+ readonly type: "component-detail";
352
352
  readonly name: string;
353
- readonly valueType: "string" | "number" | "boolean";
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 fields: readonly {
362
- readonly type: "component-field";
361
+ readonly details: readonly {
362
+ readonly type: "component-detail";
363
363
  readonly name: string;
364
- readonly valueType: "string" | "number" | "boolean";
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 fields: readonly {
376
- readonly type: "component-field";
375
+ readonly details: readonly {
376
+ readonly type: "component-detail";
377
377
  readonly name: string;
378
- readonly valueType: "string" | "number" | "boolean";
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 fields: readonly {
391
- readonly type: "component-field";
390
+ readonly details: readonly {
391
+ readonly type: "component-detail";
392
392
  readonly name: string;
393
- readonly valueType: "string" | "number" | "boolean";
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 valueType: "string" | "number" | "boolean";
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 valueType: "string" | "number" | "boolean";
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 valueType: "string" | "number" | "boolean";
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 valueType: "string" | "number" | "boolean";
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 fields: readonly {
523
- readonly type: "component-field";
522
+ readonly details: readonly {
523
+ readonly type: "component-detail";
524
524
  readonly name: string;
525
- readonly valueType: "string" | "number" | "boolean";
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 fields: readonly {
534
- readonly type: "component-field";
533
+ readonly details: readonly {
534
+ readonly type: "component-detail";
535
535
  readonly name: string;
536
- readonly valueType: "string" | "number" | "boolean";
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 fields: readonly {
548
- readonly type: "component-field";
547
+ readonly details: readonly {
548
+ readonly type: "component-detail";
549
549
  readonly name: string;
550
- readonly valueType: "string" | "number" | "boolean";
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 fields: readonly {
563
- readonly type: "component-field";
562
+ readonly details: readonly {
563
+ readonly type: "component-detail";
564
564
  readonly name: string;
565
- readonly valueType: "string" | "number" | "boolean";
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, errors?: import("../../errors").BuilderErrorsScope) => import("..").ValidationResult<{
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 valueType: "string" | "number" | "boolean";
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 valueType: "string" | "number" | "boolean";
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 valueType: "string" | "number" | "boolean";
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 valueType: "string" | "number" | "boolean";
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 fields: readonly {
694
- readonly type: "component-field";
693
+ readonly details: readonly {
694
+ readonly type: "component-detail";
695
695
  readonly name: string;
696
- readonly valueType: "string" | "number" | "boolean";
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 fields: readonly {
705
- readonly type: "component-field";
704
+ readonly details: readonly {
705
+ readonly type: "component-detail";
706
706
  readonly name: string;
707
- readonly valueType: "string" | "number" | "boolean";
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 fields: readonly {
719
- readonly type: "component-field";
718
+ readonly details: readonly {
719
+ readonly type: "component-detail";
720
720
  readonly name: string;
721
- readonly valueType: "string" | "number" | "boolean";
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 fields: readonly {
734
- readonly type: "component-field";
733
+ readonly details: readonly {
734
+ readonly type: "component-detail";
735
735
  readonly name: string;
736
- readonly valueType: "string" | "number" | "boolean";
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, errors?: import("../../errors").BuilderErrorsScope) => import("..").ValidationResult<{
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 valueType: "string" | "number" | "boolean";
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 valueType: "string" | "number" | "boolean";
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 valueType: "string" | "number" | "boolean";
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 valueType: "string" | "number" | "boolean";
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 fields: readonly {
279
- readonly type: "component-field";
278
+ readonly details: readonly {
279
+ readonly type: "component-detail";
280
280
  readonly name: string;
281
- readonly valueType: "string" | "number" | "boolean";
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 fields: readonly {
290
- readonly type: "component-field";
289
+ readonly details: readonly {
290
+ readonly type: "component-detail";
291
291
  readonly name: string;
292
- readonly valueType: "string" | "number" | "boolean";
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 fields: readonly {
304
- readonly type: "component-field";
303
+ readonly details: readonly {
304
+ readonly type: "component-detail";
305
305
  readonly name: string;
306
- readonly valueType: "string" | "number" | "boolean";
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 fields: readonly {
319
- readonly type: "component-field";
318
+ readonly details: readonly {
319
+ readonly type: "component-detail";
320
320
  readonly name: string;
321
- readonly valueType: "string" | "number" | "boolean";
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("../..").BuilderPrimitives, values: Values) => import("..").BuilderUnlessConfig<Values, UnlessPath>;
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
  };