@builder-builder/builder 0.0.9 → 0.0.11

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 (191) hide show
  1. package/dist/bb.d.ts +28 -0
  2. package/dist/bb.js +49 -0
  3. package/dist/check.d.ts +1 -1
  4. package/dist/check.js +4 -2
  5. package/dist/entities/builder/bind.d.ts +4 -0
  6. package/dist/entities/builder/builder.d.ts +17 -490
  7. package/dist/entities/builder/builder.js +19 -76
  8. package/dist/entities/builder/factory.d.ts +7 -0
  9. package/dist/entities/builder/factory.js +4 -0
  10. package/dist/entities/builder/index.d.ts +3 -6
  11. package/dist/entities/builder/index.js +1 -2
  12. package/dist/entities/collection/collection.d.ts +71 -20
  13. package/dist/entities/collection/collection.js +10 -27
  14. package/dist/entities/collection/config.d.ts +40 -1049
  15. package/dist/entities/collection/config.js +11 -11
  16. package/dist/entities/collection/expectation.d.ts +8 -4
  17. package/dist/entities/collection/index.d.ts +3 -3
  18. package/dist/entities/collection/index.js +1 -1
  19. package/dist/entities/collection/when.d.ts +6 -5
  20. package/dist/entities/component/component.d.ts +272 -300
  21. package/dist/entities/component/component.js +9 -8
  22. package/dist/entities/component/details.d.ts +35 -60
  23. package/dist/entities/component/details.js +9 -9
  24. package/dist/entities/component/expectation.d.ts +7 -4
  25. package/dist/entities/component/expectation.js +0 -3
  26. package/dist/entities/component/field.d.ts +50 -0
  27. package/dist/entities/component/field.js +41 -0
  28. package/dist/entities/component/index.d.ts +5 -3
  29. package/dist/entities/component/index.js +3 -2
  30. package/dist/entities/component/when.d.ts +5 -5
  31. package/dist/entities/component/when.js +2 -2
  32. package/dist/entities/entry.d.ts +4 -0
  33. package/dist/entities/expectation.d.ts +10 -22
  34. package/dist/entities/expectation.js +2 -7
  35. package/dist/entities/index.d.ts +21 -16
  36. package/dist/entities/index.js +10 -8
  37. package/dist/entities/kind.d.ts +9 -0
  38. package/dist/entities/kind.js +5 -0
  39. package/dist/entities/model/bind.d.ts +83 -0
  40. package/dist/entities/model/expectation.d.ts +16 -0
  41. package/dist/entities/model/index.d.ts +7 -0
  42. package/dist/entities/model/index.js +2 -0
  43. package/dist/entities/model/methods.d.ts +57 -0
  44. package/dist/entities/{builder → model}/methods.js +8 -8
  45. package/dist/entities/model/model.d.ts +39 -0
  46. package/dist/entities/model/model.js +73 -0
  47. package/dist/entities/model/models.d.ts +39 -0
  48. package/dist/entities/model/models.js +14 -0
  49. package/dist/entities/{builder → model}/state.d.ts +10 -10
  50. package/dist/entities/option/index.d.ts +2 -2
  51. package/dist/entities/option/index.js +2 -2
  52. package/dist/entities/option/option.d.ts +216 -214
  53. package/dist/entities/option/option.js +9 -8
  54. package/dist/entities/option/select.d.ts +2 -12
  55. package/dist/entities/option/select.js +6 -3
  56. package/dist/entities/option/toggle.d.ts +2 -9
  57. package/dist/entities/option/toggle.js +3 -3
  58. package/dist/entities/option/values.d.ts +4 -24
  59. package/dist/entities/option/values.js +10 -4
  60. package/dist/entities/option/when.d.ts +6 -5
  61. package/dist/entities/refs.d.ts +6 -0
  62. package/dist/entities/refs.js +1 -0
  63. package/dist/entities/serialise.d.ts +393 -3568
  64. package/dist/entities/serialise.js +160 -31
  65. package/dist/entities/ui/describe.d.ts +23 -57
  66. package/dist/entities/ui/describe.js +4 -5
  67. package/dist/entities/ui/index.d.ts +4 -9
  68. package/dist/entities/ui/index.js +2 -4
  69. package/dist/entities/ui/page.d.ts +23 -57
  70. package/dist/entities/ui/page.js +4 -5
  71. package/dist/entities/ui/pages.d.ts +18 -403
  72. package/dist/entities/ui/pages.js +7 -7
  73. package/dist/entities/ui/ui.d.ts +22 -1575
  74. package/dist/entities/ui/ui.js +15 -28
  75. package/dist/entities/ui/uis.d.ts +5 -9
  76. package/dist/entities/ui/uis.js +12 -19
  77. package/dist/entities/validated.d.ts +35 -0
  78. package/dist/entities/validated.js +1 -0
  79. package/dist/entities/when.d.ts +79 -70
  80. package/dist/entities/when.js +11 -7
  81. package/dist/environment.d.ts +5 -0
  82. package/dist/environment.js +2 -0
  83. package/dist/exception.d.ts +8 -3
  84. package/dist/exception.js +3 -0
  85. package/dist/index.d.ts +21 -24
  86. package/dist/index.js +5 -10
  87. package/dist/instance.d.ts +56 -0
  88. package/dist/instance.js +10 -0
  89. package/dist/mappers/index.d.ts +7 -5
  90. package/dist/mappers/index.js +5 -3
  91. package/dist/mappers/instance.d.ts +3 -0
  92. package/dist/mappers/instance.js +35 -0
  93. package/dist/mappers/order.d.ts +6 -0
  94. package/dist/mappers/order.js +22 -0
  95. package/dist/mappers/render/pages.d.ts +4 -4
  96. package/dist/mappers/render/render.d.ts +2 -3
  97. package/dist/mappers/render/render.js +83 -78
  98. package/dist/mappers/resolve.d.ts +5 -9
  99. package/dist/mappers/resolve.js +25 -33
  100. package/dist/mappers/variants/index.d.ts +1 -0
  101. package/dist/mappers/variants/index.js +1 -0
  102. package/dist/mappers/variants/option-graph.d.ts +19 -0
  103. package/dist/mappers/{models → variants}/option-graph.js +33 -22
  104. package/dist/mappers/variants/variants.d.ts +3 -0
  105. package/dist/mappers/variants/variants.js +57 -0
  106. package/dist/private.d.ts +4 -0
  107. package/dist/private.js +4 -0
  108. package/dist/references.d.ts +27 -36
  109. package/dist/references.js +19 -12
  110. package/dist/serialisable.d.ts +1 -9
  111. package/dist/serialisable.js +2 -3
  112. package/dist/validate/brand.d.ts +14 -0
  113. package/dist/validate/brand.js +17 -0
  114. package/dist/validate/builder.d.ts +4 -0
  115. package/dist/validate/builder.js +27 -0
  116. package/dist/validate/expectations.d.ts +10 -0
  117. package/dist/validate/expectations.js +12 -0
  118. package/dist/validate/index.d.ts +18 -0
  119. package/dist/validate/index.js +9 -0
  120. package/dist/validate/instance.d.ts +19 -0
  121. package/dist/validate/instance.js +46 -0
  122. package/dist/validate/model.d.ts +36 -0
  123. package/dist/validate/model.js +196 -0
  124. package/dist/validate/resolve.d.ts +16 -0
  125. package/dist/validate/resolve.js +91 -0
  126. package/dist/validate/result.d.ts +8 -0
  127. package/dist/validate/result.js +4 -0
  128. package/dist/validate/ui.d.ts +8 -0
  129. package/dist/validate/ui.js +77 -0
  130. package/dist/validate/variants.d.ts +59 -0
  131. package/dist/validate/variants.js +102 -0
  132. package/package.json +12 -9
  133. package/dist/entities/builder/builders.d.ts +0 -20
  134. package/dist/entities/builder/builders.js +0 -18
  135. package/dist/entities/builder/expectation.d.ts +0 -12
  136. package/dist/entities/builder/methods.d.ts +0 -58
  137. package/dist/entities/builder/parameter.d.ts +0 -62
  138. package/dist/entities/builder/parameter.js +0 -18
  139. package/dist/entities/builder/validate.d.ts +0 -3
  140. package/dist/entities/builder/validate.js +0 -108
  141. package/dist/entities/errors.d.ts +0 -21
  142. package/dist/entities/ui/label.d.ts +0 -18
  143. package/dist/entities/ui/label.js +0 -12
  144. package/dist/entities/ui/parameter.d.ts +0 -7
  145. package/dist/entities/ui/parameter.js +0 -29
  146. package/dist/entities/ui/validate.d.ts +0 -8
  147. package/dist/entities/ui/validate.js +0 -21
  148. package/dist/entities/validate.d.ts +0 -28
  149. package/dist/mappers/assert/builder.d.ts +0 -2
  150. package/dist/mappers/assert/builder.js +0 -46
  151. package/dist/mappers/assert/expectation.d.ts +0 -2
  152. package/dist/mappers/assert/expectation.js +0 -23
  153. package/dist/mappers/assert/index.d.ts +0 -6
  154. package/dist/mappers/assert/index.js +0 -4
  155. package/dist/mappers/assert/model.d.ts +0 -13
  156. package/dist/mappers/assert/model.js +0 -47
  157. package/dist/mappers/assert/models.d.ts +0 -33
  158. package/dist/mappers/assert/models.js +0 -74
  159. package/dist/mappers/assert/ui.d.ts +0 -2
  160. package/dist/mappers/assert/ui.js +0 -22
  161. package/dist/mappers/instance/index.d.ts +0 -1
  162. package/dist/mappers/instance/index.js +0 -1
  163. package/dist/mappers/instance/instance.d.ts +0 -4
  164. package/dist/mappers/instance/instance.js +0 -33
  165. package/dist/mappers/models/component-graph.d.ts +0 -9
  166. package/dist/mappers/models/component-graph.js +0 -51
  167. package/dist/mappers/models/graph.d.ts +0 -12
  168. package/dist/mappers/models/graph.js +0 -17
  169. package/dist/mappers/models/index.d.ts +0 -1
  170. package/dist/mappers/models/index.js +0 -1
  171. package/dist/mappers/models/models.d.ts +0 -3
  172. package/dist/mappers/models/models.js +0 -37
  173. package/dist/mappers/models/option-graph.d.ts +0 -9
  174. package/dist/mappers/order/index.d.ts +0 -2
  175. package/dist/mappers/order/index.js +0 -1
  176. package/dist/mappers/order/order.d.ts +0 -14
  177. package/dist/mappers/order/order.js +0 -31
  178. package/dist/model.d.ts +0 -14
  179. package/dist/walker/index.d.ts +0 -2
  180. package/dist/walker/index.js +0 -1
  181. package/dist/walker/walkable.d.ts +0 -4
  182. package/dist/walker/walkable.js +0 -4
  183. package/dist/walker/walker.d.ts +0 -18
  184. package/dist/walker/walker.js +0 -103
  185. package/dist/walker/walkers.d.ts +0 -8
  186. package/dist/walker/walkers.js +0 -51
  187. /package/dist/entities/builder/{expectation.js → bind.js} +0 -0
  188. /package/dist/entities/{builder/state.js → entry.js} +0 -0
  189. /package/dist/entities/{errors.js → model/bind.js} +0 -0
  190. /package/dist/entities/{validate.js → model/expectation.js} +0 -0
  191. /package/dist/{model.js → entities/model/state.js} +0 -0
@@ -1,1094 +1,85 @@
1
- import type { BuilderGeneric } from '../builder/index';
2
- import type { Refable } from '../../references';
1
+ import type { Paramable } from '../../references';
2
+ import type { BuilderModelGeneric } from '../model/index';
3
3
  import * as v from 'valibot';
4
- export declare class BuilderCollectionConfig<Builder extends Refable<BuilderGeneric> = Refable<BuilderGeneric>, Min extends Refable<number> = Refable<number>, Max extends Refable<number> = Refable<number>> {
4
+ export declare class BuilderCollectionConfig<Model extends Paramable<BuilderModelGeneric> = Paramable<BuilderModelGeneric>, Min extends Paramable<number> = Paramable<number>, Max extends Paramable<number> = Paramable<number>> {
5
5
  readonly type: 'collection-config';
6
- readonly builder: Builder;
6
+ readonly model: Model;
7
7
  readonly min: Min;
8
8
  readonly max: Max;
9
- constructor(builder: Builder, min: Min, max: Max);
9
+ constructor(model: Model, min: Min, max: Max);
10
10
  }
11
11
  export declare const BuilderCollectionConfigSchema: v.InstanceSchema<typeof BuilderCollectionConfig, undefined>;
12
12
  export declare const BuilderCollectionConfigSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
13
- readonly builder: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
14
- readonly type: v.LiteralSchema<"ref", undefined>;
13
+ readonly model: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
14
+ readonly type: v.LiteralSchema<"parameter", undefined>;
15
15
  readonly id: v.StringSchema<undefined>;
16
16
  readonly name: v.StringSchema<undefined>;
17
17
  }, undefined>, v.ReadonlyAction<{
18
- type: "ref";
18
+ type: "parameter";
19
19
  id: string;
20
20
  name: string;
21
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, v.LazySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
22
- readonly references: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
23
- readonly type: v.LiteralSchema<"ref", undefined>;
24
- readonly id: v.StringSchema<undefined>;
25
- readonly name: v.StringSchema<undefined>;
26
- }, undefined>, v.ReadonlyAction<{
27
- type: "ref";
28
- id: string;
29
- name: string;
30
- }>]>, undefined>, v.ReadonlyAction<Readonly<{
31
- type: "ref";
32
- id: string;
33
- name: string;
34
- }>[]>]>;
35
- readonly options: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
36
- readonly name: v.StringSchema<undefined>;
37
- readonly payload: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
38
- readonly type: v.LiteralSchema<"ref", undefined>;
39
- readonly id: v.StringSchema<undefined>;
40
- readonly name: v.StringSchema<undefined>;
41
- }, undefined>, v.ReadonlyAction<{
42
- type: "ref";
43
- id: string;
44
- name: string;
45
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
46
- readonly type: v.LiteralSchema<"select", undefined>;
47
- readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
48
- readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
49
- readonly isOptional: v.BooleanSchema<undefined>;
50
- readonly optionLabels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
51
- }, undefined>, v.MetadataAction<{
52
- type: "select";
53
- readonly options: readonly [string, ...string[]];
54
- defaultValue: string | null;
55
- isOptional: boolean;
56
- optionLabels: {
57
- [x: string]: string;
58
- };
59
- }, {
60
- readonly serialisable: typeof import("..").BuilderSelectType;
61
- readonly instance: v.InstanceSchema<typeof import("..").BuilderSelectType, undefined>;
62
- }>, v.ReadonlyAction<{
63
- type: "select";
64
- readonly options: readonly [string, ...string[]];
65
- defaultValue: string | null;
66
- isOptional: boolean;
67
- optionLabels: {
68
- [x: string]: string;
69
- };
70
- }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
71
- readonly type: v.LiteralSchema<"toggle", undefined>;
72
- readonly valueType: v.PicklistSchema<["string", "boolean", "number"], undefined>;
73
- readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
74
- readonly isOptional: v.BooleanSchema<undefined>;
75
- }, undefined>, v.MetadataAction<{
76
- type: "toggle";
77
- valueType: "string" | "number" | "boolean";
78
- defaultValue: string | number | boolean | null;
79
- isOptional: boolean;
80
- }, {
81
- readonly serialisable: typeof import("..").BuilderToggleType;
82
- readonly instance: v.InstanceSchema<typeof import("..").BuilderToggleType, undefined>;
83
- }>, v.ReadonlyAction<{
84
- type: "toggle";
85
- valueType: "string" | "number" | "boolean";
86
- defaultValue: string | number | boolean | null;
87
- isOptional: boolean;
88
- }>]>], undefined>, v.ReadonlyAction<Readonly<{
89
- type: "select";
90
- readonly options: readonly [string, ...string[]];
91
- defaultValue: string | null;
92
- isOptional: boolean;
93
- optionLabels: {
94
- [x: string]: string;
95
- };
96
- }> | Readonly<{
97
- type: "toggle";
98
- valueType: "string" | "number" | "boolean";
99
- defaultValue: string | number | boolean | null;
100
- isOptional: boolean;
101
- }>>]>, v.GenericSchema], undefined>], undefined>, v.MetadataAction<unknown, {
102
- readonly refable: v.UnionSchema<[v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
103
- readonly type: v.LiteralSchema<"select", undefined>;
104
- readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
105
- readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
106
- readonly isOptional: v.BooleanSchema<undefined>;
107
- readonly optionLabels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
108
- }, undefined>, v.MetadataAction<{
109
- type: "select";
110
- readonly options: readonly [string, ...string[]];
111
- defaultValue: string | null;
112
- isOptional: boolean;
113
- optionLabels: {
114
- [x: string]: string;
115
- };
116
- }, {
117
- readonly serialisable: typeof import("..").BuilderSelectType;
118
- readonly instance: v.InstanceSchema<typeof import("..").BuilderSelectType, undefined>;
119
- }>, v.ReadonlyAction<{
120
- type: "select";
121
- readonly options: readonly [string, ...string[]];
122
- defaultValue: string | null;
123
- isOptional: boolean;
124
- optionLabels: {
125
- [x: string]: string;
126
- };
127
- }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
128
- readonly type: v.LiteralSchema<"toggle", undefined>;
129
- readonly valueType: v.PicklistSchema<["string", "boolean", "number"], undefined>;
130
- readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
131
- readonly isOptional: v.BooleanSchema<undefined>;
132
- }, undefined>, v.MetadataAction<{
133
- type: "toggle";
134
- valueType: "string" | "number" | "boolean";
135
- defaultValue: string | number | boolean | null;
136
- isOptional: boolean;
137
- }, {
138
- readonly serialisable: typeof import("..").BuilderToggleType;
139
- readonly instance: v.InstanceSchema<typeof import("..").BuilderToggleType, undefined>;
140
- }>, v.ReadonlyAction<{
141
- type: "toggle";
142
- valueType: "string" | "number" | "boolean";
143
- defaultValue: string | number | boolean | null;
144
- isOptional: boolean;
145
- }>]>], undefined>, v.ReadonlyAction<Readonly<{
146
- type: "select";
147
- readonly options: readonly [string, ...string[]];
148
- defaultValue: string | null;
149
- isOptional: boolean;
150
- optionLabels: {
151
- [x: string]: string;
152
- };
153
- }> | Readonly<{
154
- type: "toggle";
155
- valueType: "string" | "number" | "boolean";
156
- defaultValue: string | number | boolean | null;
157
- isOptional: boolean;
158
- }>>]>, v.GenericSchema], undefined>;
159
- }>]>;
160
- readonly gatePaths: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
161
- readonly type: v.LiteralSchema<"ref", undefined>;
162
- readonly id: v.StringSchema<undefined>;
163
- readonly name: v.StringSchema<undefined>;
164
- }, undefined>, v.ReadonlyAction<{
165
- type: "ref";
166
- id: string;
167
- name: string;
168
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>], undefined>, v.MetadataAction<readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
169
- type: "ref";
170
- id: string;
171
- name: string;
172
- }>, {
173
- readonly refable: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>;
174
- }>]>, undefined>;
175
- }, undefined>, v.MetadataAction<{
176
- name: string;
177
- payload: unknown;
178
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
179
- type: "ref";
180
- id: string;
181
- name: string;
182
- }> | undefined;
183
- }, {
184
- readonly serialisable: typeof import("..").BuilderOption;
185
- readonly instance: v.InstanceSchema<typeof import("..").BuilderOption, undefined>;
186
- }>, v.ReadonlyAction<{
187
- name: string;
188
- payload: unknown;
189
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
190
- type: "ref";
191
- id: string;
192
- name: string;
193
- }> | undefined;
194
- }>]>, undefined>, v.ReadonlyAction<Readonly<{
195
- name: string;
196
- payload: unknown;
197
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
198
- type: "ref";
199
- id: string;
200
- name: string;
201
- }> | undefined;
202
- }>[]>]>;
203
- readonly components: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
204
- readonly name: v.StringSchema<undefined>;
205
- readonly payload: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
206
- readonly type: v.LiteralSchema<"ref", undefined>;
207
- readonly id: v.StringSchema<undefined>;
208
- readonly name: v.StringSchema<undefined>;
209
- }, undefined>, v.ReadonlyAction<{
210
- type: "ref";
211
- id: string;
212
- name: string;
213
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
214
- readonly expectations: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
215
- readonly type: v.LiteralSchema<"ref", undefined>;
216
- readonly id: v.StringSchema<undefined>;
217
- readonly name: v.StringSchema<undefined>;
218
- }, undefined>, v.ReadonlyAction<{
219
- type: "ref";
220
- id: string;
221
- name: string;
222
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
223
- readonly name: v.StringSchema<undefined>;
224
- readonly kind: v.PicklistSchema<["option", "component", "collection", "detail"], undefined>;
225
- }, undefined>, v.MetadataAction<{
226
- name: string;
227
- kind: "option" | "component" | "collection" | "detail";
228
- }, {
229
- readonly serialisable: typeof import("..").BuilderExpectation;
230
- readonly instance: v.InstanceSchema<typeof import("..").BuilderExpectation, undefined>;
231
- }>, v.ReadonlyAction<{
232
- name: string;
233
- kind: "option" | "component" | "collection" | "detail";
234
- }>]>, undefined>, v.ReadonlyAction<Readonly<{
235
- name: string;
236
- kind: "option" | "component" | "collection" | "detail";
237
- }>[]>]>], undefined>, v.MetadataAction<import("../..").BuilderRef | Readonly<{
238
- type: "ref";
239
- id: string;
240
- name: string;
241
- }> | readonly Readonly<{
242
- name: string;
243
- kind: "option" | "component" | "collection" | "detail";
244
- }>[], {
245
- readonly refable: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
246
- readonly name: v.StringSchema<undefined>;
247
- readonly kind: v.PicklistSchema<["option", "component", "collection", "detail"], undefined>;
248
- }, undefined>, v.MetadataAction<{
249
- name: string;
250
- kind: "option" | "component" | "collection" | "detail";
251
- }, {
252
- readonly serialisable: typeof import("..").BuilderExpectation;
253
- readonly instance: v.InstanceSchema<typeof import("..").BuilderExpectation, undefined>;
254
- }>, v.ReadonlyAction<{
255
- name: string;
256
- kind: "option" | "component" | "collection" | "detail";
257
- }>]>, undefined>, v.ReadonlyAction<Readonly<{
258
- name: string;
259
- kind: "option" | "component" | "collection" | "detail";
260
- }>[]>]>;
261
- }>]>;
262
- }, undefined>, v.MetadataAction<{
263
- expectations: import("../..").BuilderRef | Readonly<{
264
- type: "ref";
265
- id: string;
266
- name: string;
267
- }> | readonly Readonly<{
268
- name: string;
269
- kind: "option" | "component" | "collection" | "detail";
270
- }>[];
271
- }, {
272
- readonly serialisable: typeof import("..").BuilderComponentDetails;
273
- readonly instance: v.InstanceSchema<typeof import("..").BuilderComponentDetails, undefined>;
274
- }>, v.ReadonlyAction<{
275
- expectations: import("../..").BuilderRef | Readonly<{
276
- type: "ref";
277
- id: string;
278
- name: string;
279
- }> | readonly Readonly<{
280
- name: string;
281
- kind: "option" | "component" | "collection" | "detail";
282
- }>[];
283
- }>]>, v.GenericSchema], undefined>], undefined>, v.MetadataAction<unknown, {
284
- readonly refable: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
285
- readonly expectations: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
286
- readonly type: v.LiteralSchema<"ref", undefined>;
287
- readonly id: v.StringSchema<undefined>;
288
- readonly name: v.StringSchema<undefined>;
289
- }, undefined>, v.ReadonlyAction<{
290
- type: "ref";
291
- id: string;
292
- name: string;
293
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
294
- readonly name: v.StringSchema<undefined>;
295
- readonly kind: v.PicklistSchema<["option", "component", "collection", "detail"], undefined>;
296
- }, undefined>, v.MetadataAction<{
297
- name: string;
298
- kind: "option" | "component" | "collection" | "detail";
299
- }, {
300
- readonly serialisable: typeof import("..").BuilderExpectation;
301
- readonly instance: v.InstanceSchema<typeof import("..").BuilderExpectation, undefined>;
302
- }>, v.ReadonlyAction<{
303
- name: string;
304
- kind: "option" | "component" | "collection" | "detail";
305
- }>]>, undefined>, v.ReadonlyAction<Readonly<{
306
- name: string;
307
- kind: "option" | "component" | "collection" | "detail";
308
- }>[]>]>], undefined>, v.MetadataAction<import("../..").BuilderRef | Readonly<{
309
- type: "ref";
310
- id: string;
311
- name: string;
312
- }> | readonly Readonly<{
313
- name: string;
314
- kind: "option" | "component" | "collection" | "detail";
315
- }>[], {
316
- readonly refable: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
317
- readonly name: v.StringSchema<undefined>;
318
- readonly kind: v.PicklistSchema<["option", "component", "collection", "detail"], undefined>;
319
- }, undefined>, v.MetadataAction<{
320
- name: string;
321
- kind: "option" | "component" | "collection" | "detail";
322
- }, {
323
- readonly serialisable: typeof import("..").BuilderExpectation;
324
- readonly instance: v.InstanceSchema<typeof import("..").BuilderExpectation, undefined>;
325
- }>, v.ReadonlyAction<{
326
- name: string;
327
- kind: "option" | "component" | "collection" | "detail";
328
- }>]>, undefined>, v.ReadonlyAction<Readonly<{
329
- name: string;
330
- kind: "option" | "component" | "collection" | "detail";
331
- }>[]>]>;
332
- }>]>;
333
- }, undefined>, v.MetadataAction<{
334
- expectations: import("../..").BuilderRef | Readonly<{
335
- type: "ref";
336
- id: string;
337
- name: string;
338
- }> | readonly Readonly<{
339
- name: string;
340
- kind: "option" | "component" | "collection" | "detail";
341
- }>[];
342
- }, {
343
- readonly serialisable: typeof import("..").BuilderComponentDetails;
344
- readonly instance: v.InstanceSchema<typeof import("..").BuilderComponentDetails, undefined>;
345
- }>, v.ReadonlyAction<{
346
- expectations: import("../..").BuilderRef | Readonly<{
347
- type: "ref";
348
- id: string;
349
- name: string;
350
- }> | readonly Readonly<{
351
- name: string;
352
- kind: "option" | "component" | "collection" | "detail";
353
- }>[];
354
- }>]>, v.GenericSchema], undefined>;
355
- }>]>;
356
- readonly gatePaths: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
357
- readonly type: v.LiteralSchema<"ref", undefined>;
358
- readonly id: v.StringSchema<undefined>;
359
- readonly name: v.StringSchema<undefined>;
360
- }, undefined>, v.ReadonlyAction<{
361
- type: "ref";
362
- id: string;
363
- name: string;
364
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>], undefined>, v.MetadataAction<readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
365
- type: "ref";
366
- id: string;
367
- name: string;
368
- }>, {
369
- readonly refable: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>;
370
- }>]>, undefined>;
371
- }, undefined>, v.MetadataAction<{
372
- name: string;
373
- payload: unknown;
374
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
375
- type: "ref";
376
- id: string;
377
- name: string;
378
- }> | undefined;
379
- }, {
380
- readonly serialisable: typeof import("..").BuilderComponent;
381
- readonly instance: v.InstanceSchema<typeof import("..").BuilderComponent, undefined>;
382
- }>, v.ReadonlyAction<{
383
- name: string;
384
- payload: unknown;
385
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
386
- type: "ref";
387
- id: string;
388
- name: string;
389
- }> | undefined;
390
- }>]>, undefined>, v.ReadonlyAction<Readonly<{
391
- name: string;
392
- payload: unknown;
393
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
394
- type: "ref";
395
- id: string;
396
- name: string;
397
- }> | undefined;
398
- }>[]>]>;
399
- readonly collections: v.SchemaWithPipe<readonly [v.ArraySchema<v.GenericSchema<import("./collection").BuilderCollectionSerialised>, undefined>, v.ReadonlyAction<import("./collection").BuilderCollectionSerialised[]>]>;
400
- readonly expectations: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
401
- readonly name: v.StringSchema<undefined>;
402
- readonly kind: v.PicklistSchema<["option", "component", "collection", "detail"], undefined>;
403
- }, undefined>, v.MetadataAction<{
404
- name: string;
405
- kind: "option" | "component" | "collection" | "detail";
406
- }, {
407
- readonly serialisable: typeof import("..").BuilderExpectation;
408
- readonly instance: v.InstanceSchema<typeof import("..").BuilderExpectation, undefined>;
409
- }>, v.ReadonlyAction<{
410
- name: string;
411
- kind: "option" | "component" | "collection" | "detail";
412
- }>]>, undefined>, v.ReadonlyAction<Readonly<{
413
- name: string;
414
- kind: "option" | "component" | "collection" | "detail";
415
- }>[]>]>;
416
- }, undefined>, v.MetadataAction<{
417
- readonly references: readonly Readonly<{
418
- type: "ref";
419
- id: string;
420
- name: string;
421
- }>[];
422
- readonly options: readonly Readonly<{
423
- name: string;
424
- payload: unknown;
425
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
426
- type: "ref";
427
- id: string;
428
- name: string;
429
- }> | undefined;
430
- }>[];
431
- readonly components: readonly Readonly<{
432
- name: string;
433
- payload: unknown;
434
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
435
- type: "ref";
436
- id: string;
437
- name: string;
438
- }> | undefined;
439
- }>[];
440
- readonly collections: readonly import("./collection").BuilderCollectionSerialised[];
441
- readonly expectations: readonly Readonly<{
442
- name: string;
443
- kind: "option" | "component" | "collection" | "detail";
444
- }>[];
445
- }, {
446
- readonly serialisable: typeof import("..").Builder;
447
- readonly instance: v.InstanceSchema<typeof import("..").Builder, undefined>;
448
- }>, v.ReadonlyAction<{
449
- readonly references: readonly Readonly<{
450
- type: "ref";
451
- id: string;
452
- name: string;
453
- }>[];
454
- readonly options: readonly Readonly<{
455
- name: string;
456
- payload: unknown;
457
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
458
- type: "ref";
459
- id: string;
460
- name: string;
461
- }> | undefined;
462
- }>[];
463
- readonly components: readonly Readonly<{
464
- name: string;
465
- payload: unknown;
466
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
467
- type: "ref";
468
- id: string;
469
- name: string;
470
- }> | undefined;
471
- }>[];
472
- readonly collections: readonly import("./collection").BuilderCollectionSerialised[];
473
- readonly expectations: readonly Readonly<{
474
- name: string;
475
- kind: "option" | "component" | "collection" | "detail";
476
- }>[];
477
- }>]>>], undefined>, v.MetadataAction<import("../..").BuilderRef | Readonly<{
21
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
22
+ readonly type: v.LiteralSchema<"ref", undefined>;
23
+ readonly id: v.StringSchema<undefined>;
24
+ }, undefined>, v.ReadonlyAction<{
478
25
  type: "ref";
479
26
  id: string;
480
- name: string;
481
- }> | Readonly<{
482
- readonly references: readonly Readonly<{
483
- type: "ref";
484
- id: string;
485
- name: string;
486
- }>[];
487
- readonly options: readonly Readonly<{
488
- name: string;
489
- payload: unknown;
490
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
491
- type: "ref";
492
- id: string;
493
- name: string;
494
- }> | undefined;
495
- }>[];
496
- readonly components: readonly Readonly<{
497
- name: string;
498
- payload: unknown;
499
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
500
- type: "ref";
501
- id: string;
502
- name: string;
503
- }> | undefined;
504
- }>[];
505
- readonly collections: readonly import("./collection").BuilderCollectionSerialised[];
506
- readonly expectations: readonly Readonly<{
507
- name: string;
508
- kind: "option" | "component" | "collection" | "detail";
509
- }>[];
510
- }>, {
511
- readonly refable: v.LazySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
512
- readonly references: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
513
- readonly type: v.LiteralSchema<"ref", undefined>;
514
- readonly id: v.StringSchema<undefined>;
515
- readonly name: v.StringSchema<undefined>;
516
- }, undefined>, v.ReadonlyAction<{
517
- type: "ref";
518
- id: string;
519
- name: string;
520
- }>]>, undefined>, v.ReadonlyAction<Readonly<{
521
- type: "ref";
522
- id: string;
523
- name: string;
524
- }>[]>]>;
525
- readonly options: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
526
- readonly name: v.StringSchema<undefined>;
527
- readonly payload: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
528
- readonly type: v.LiteralSchema<"ref", undefined>;
529
- readonly id: v.StringSchema<undefined>;
530
- readonly name: v.StringSchema<undefined>;
531
- }, undefined>, v.ReadonlyAction<{
532
- type: "ref";
533
- id: string;
534
- name: string;
535
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
536
- readonly type: v.LiteralSchema<"select", undefined>;
537
- readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
538
- readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
539
- readonly isOptional: v.BooleanSchema<undefined>;
540
- readonly optionLabels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
541
- }, undefined>, v.MetadataAction<{
542
- type: "select";
543
- readonly options: readonly [string, ...string[]];
544
- defaultValue: string | null;
545
- isOptional: boolean;
546
- optionLabels: {
547
- [x: string]: string;
548
- };
549
- }, {
550
- readonly serialisable: typeof import("..").BuilderSelectType;
551
- readonly instance: v.InstanceSchema<typeof import("..").BuilderSelectType, undefined>;
552
- }>, v.ReadonlyAction<{
553
- type: "select";
554
- readonly options: readonly [string, ...string[]];
555
- defaultValue: string | null;
556
- isOptional: boolean;
557
- optionLabels: {
558
- [x: string]: string;
559
- };
560
- }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
561
- readonly type: v.LiteralSchema<"toggle", undefined>;
562
- readonly valueType: v.PicklistSchema<["string", "boolean", "number"], undefined>;
563
- readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
564
- readonly isOptional: v.BooleanSchema<undefined>;
565
- }, undefined>, v.MetadataAction<{
566
- type: "toggle";
567
- valueType: "string" | "number" | "boolean";
568
- defaultValue: string | number | boolean | null;
569
- isOptional: boolean;
570
- }, {
571
- readonly serialisable: typeof import("..").BuilderToggleType;
572
- readonly instance: v.InstanceSchema<typeof import("..").BuilderToggleType, undefined>;
573
- }>, v.ReadonlyAction<{
574
- type: "toggle";
575
- valueType: "string" | "number" | "boolean";
576
- defaultValue: string | number | boolean | null;
577
- isOptional: boolean;
578
- }>]>], undefined>, v.ReadonlyAction<Readonly<{
579
- type: "select";
580
- readonly options: readonly [string, ...string[]];
581
- defaultValue: string | null;
582
- isOptional: boolean;
583
- optionLabels: {
584
- [x: string]: string;
585
- };
586
- }> | Readonly<{
587
- type: "toggle";
588
- valueType: "string" | "number" | "boolean";
589
- defaultValue: string | number | boolean | null;
590
- isOptional: boolean;
591
- }>>]>, v.GenericSchema], undefined>], undefined>, v.MetadataAction<unknown, {
592
- readonly refable: v.UnionSchema<[v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
593
- readonly type: v.LiteralSchema<"select", undefined>;
594
- readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
595
- readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
596
- readonly isOptional: v.BooleanSchema<undefined>;
597
- readonly optionLabels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
598
- }, undefined>, v.MetadataAction<{
599
- type: "select";
600
- readonly options: readonly [string, ...string[]];
601
- defaultValue: string | null;
602
- isOptional: boolean;
603
- optionLabels: {
604
- [x: string]: string;
605
- };
606
- }, {
607
- readonly serialisable: typeof import("..").BuilderSelectType;
608
- readonly instance: v.InstanceSchema<typeof import("..").BuilderSelectType, undefined>;
609
- }>, v.ReadonlyAction<{
610
- type: "select";
611
- readonly options: readonly [string, ...string[]];
612
- defaultValue: string | null;
613
- isOptional: boolean;
614
- optionLabels: {
615
- [x: string]: string;
616
- };
617
- }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
618
- readonly type: v.LiteralSchema<"toggle", undefined>;
619
- readonly valueType: v.PicklistSchema<["string", "boolean", "number"], undefined>;
620
- readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
621
- readonly isOptional: v.BooleanSchema<undefined>;
622
- }, undefined>, v.MetadataAction<{
623
- type: "toggle";
624
- valueType: "string" | "number" | "boolean";
625
- defaultValue: string | number | boolean | null;
626
- isOptional: boolean;
627
- }, {
628
- readonly serialisable: typeof import("..").BuilderToggleType;
629
- readonly instance: v.InstanceSchema<typeof import("..").BuilderToggleType, undefined>;
630
- }>, v.ReadonlyAction<{
631
- type: "toggle";
632
- valueType: "string" | "number" | "boolean";
633
- defaultValue: string | number | boolean | null;
634
- isOptional: boolean;
635
- }>]>], undefined>, v.ReadonlyAction<Readonly<{
636
- type: "select";
637
- readonly options: readonly [string, ...string[]];
638
- defaultValue: string | null;
639
- isOptional: boolean;
640
- optionLabels: {
641
- [x: string]: string;
642
- };
643
- }> | Readonly<{
644
- type: "toggle";
645
- valueType: "string" | "number" | "boolean";
646
- defaultValue: string | number | boolean | null;
647
- isOptional: boolean;
648
- }>>]>, v.GenericSchema], undefined>;
649
- }>]>;
650
- readonly gatePaths: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
651
- readonly type: v.LiteralSchema<"ref", undefined>;
652
- readonly id: v.StringSchema<undefined>;
653
- readonly name: v.StringSchema<undefined>;
654
- }, undefined>, v.ReadonlyAction<{
655
- type: "ref";
656
- id: string;
657
- name: string;
658
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>], undefined>, v.MetadataAction<readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
659
- type: "ref";
660
- id: string;
661
- name: string;
662
- }>, {
663
- readonly refable: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>;
664
- }>]>, undefined>;
665
- }, undefined>, v.MetadataAction<{
666
- name: string;
667
- payload: unknown;
668
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
669
- type: "ref";
670
- id: string;
671
- name: string;
672
- }> | undefined;
673
- }, {
674
- readonly serialisable: typeof import("..").BuilderOption;
675
- readonly instance: v.InstanceSchema<typeof import("..").BuilderOption, undefined>;
676
- }>, v.ReadonlyAction<{
677
- name: string;
678
- payload: unknown;
679
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
680
- type: "ref";
681
- id: string;
682
- name: string;
683
- }> | undefined;
684
- }>]>, undefined>, v.ReadonlyAction<Readonly<{
685
- name: string;
686
- payload: unknown;
687
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
688
- type: "ref";
689
- id: string;
690
- name: string;
691
- }> | undefined;
692
- }>[]>]>;
693
- readonly components: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
694
- readonly name: v.StringSchema<undefined>;
695
- readonly payload: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
696
- readonly type: v.LiteralSchema<"ref", undefined>;
697
- readonly id: v.StringSchema<undefined>;
698
- readonly name: v.StringSchema<undefined>;
699
- }, undefined>, v.ReadonlyAction<{
700
- type: "ref";
701
- id: string;
702
- name: string;
703
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
704
- readonly expectations: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
705
- readonly type: v.LiteralSchema<"ref", undefined>;
706
- readonly id: v.StringSchema<undefined>;
707
- readonly name: v.StringSchema<undefined>;
708
- }, undefined>, v.ReadonlyAction<{
709
- type: "ref";
710
- id: string;
711
- name: string;
712
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
713
- readonly name: v.StringSchema<undefined>;
714
- readonly kind: v.PicklistSchema<["option", "component", "collection", "detail"], undefined>;
715
- }, undefined>, v.MetadataAction<{
716
- name: string;
717
- kind: "option" | "component" | "collection" | "detail";
718
- }, {
719
- readonly serialisable: typeof import("..").BuilderExpectation;
720
- readonly instance: v.InstanceSchema<typeof import("..").BuilderExpectation, undefined>;
721
- }>, v.ReadonlyAction<{
722
- name: string;
723
- kind: "option" | "component" | "collection" | "detail";
724
- }>]>, undefined>, v.ReadonlyAction<Readonly<{
725
- name: string;
726
- kind: "option" | "component" | "collection" | "detail";
727
- }>[]>]>], undefined>, v.MetadataAction<import("../..").BuilderRef | Readonly<{
728
- type: "ref";
729
- id: string;
730
- name: string;
731
- }> | readonly Readonly<{
732
- name: string;
733
- kind: "option" | "component" | "collection" | "detail";
734
- }>[], {
735
- readonly refable: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
736
- readonly name: v.StringSchema<undefined>;
737
- readonly kind: v.PicklistSchema<["option", "component", "collection", "detail"], undefined>;
738
- }, undefined>, v.MetadataAction<{
739
- name: string;
740
- kind: "option" | "component" | "collection" | "detail";
741
- }, {
742
- readonly serialisable: typeof import("..").BuilderExpectation;
743
- readonly instance: v.InstanceSchema<typeof import("..").BuilderExpectation, undefined>;
744
- }>, v.ReadonlyAction<{
745
- name: string;
746
- kind: "option" | "component" | "collection" | "detail";
747
- }>]>, undefined>, v.ReadonlyAction<Readonly<{
748
- name: string;
749
- kind: "option" | "component" | "collection" | "detail";
750
- }>[]>]>;
751
- }>]>;
752
- }, undefined>, v.MetadataAction<{
753
- expectations: import("../..").BuilderRef | Readonly<{
754
- type: "ref";
755
- id: string;
756
- name: string;
757
- }> | readonly Readonly<{
758
- name: string;
759
- kind: "option" | "component" | "collection" | "detail";
760
- }>[];
761
- }, {
762
- readonly serialisable: typeof import("..").BuilderComponentDetails;
763
- readonly instance: v.InstanceSchema<typeof import("..").BuilderComponentDetails, undefined>;
764
- }>, v.ReadonlyAction<{
765
- expectations: import("../..").BuilderRef | Readonly<{
766
- type: "ref";
767
- id: string;
768
- name: string;
769
- }> | readonly Readonly<{
770
- name: string;
771
- kind: "option" | "component" | "collection" | "detail";
772
- }>[];
773
- }>]>, v.GenericSchema], undefined>], undefined>, v.MetadataAction<unknown, {
774
- readonly refable: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
775
- readonly expectations: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
776
- readonly type: v.LiteralSchema<"ref", undefined>;
777
- readonly id: v.StringSchema<undefined>;
778
- readonly name: v.StringSchema<undefined>;
779
- }, undefined>, v.ReadonlyAction<{
780
- type: "ref";
781
- id: string;
782
- name: string;
783
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
784
- readonly name: v.StringSchema<undefined>;
785
- readonly kind: v.PicklistSchema<["option", "component", "collection", "detail"], undefined>;
786
- }, undefined>, v.MetadataAction<{
787
- name: string;
788
- kind: "option" | "component" | "collection" | "detail";
789
- }, {
790
- readonly serialisable: typeof import("..").BuilderExpectation;
791
- readonly instance: v.InstanceSchema<typeof import("..").BuilderExpectation, undefined>;
792
- }>, v.ReadonlyAction<{
793
- name: string;
794
- kind: "option" | "component" | "collection" | "detail";
795
- }>]>, undefined>, v.ReadonlyAction<Readonly<{
796
- name: string;
797
- kind: "option" | "component" | "collection" | "detail";
798
- }>[]>]>], undefined>, v.MetadataAction<import("../..").BuilderRef | Readonly<{
799
- type: "ref";
800
- id: string;
801
- name: string;
802
- }> | readonly Readonly<{
803
- name: string;
804
- kind: "option" | "component" | "collection" | "detail";
805
- }>[], {
806
- readonly refable: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
807
- readonly name: v.StringSchema<undefined>;
808
- readonly kind: v.PicklistSchema<["option", "component", "collection", "detail"], undefined>;
809
- }, undefined>, v.MetadataAction<{
810
- name: string;
811
- kind: "option" | "component" | "collection" | "detail";
812
- }, {
813
- readonly serialisable: typeof import("..").BuilderExpectation;
814
- readonly instance: v.InstanceSchema<typeof import("..").BuilderExpectation, undefined>;
815
- }>, v.ReadonlyAction<{
816
- name: string;
817
- kind: "option" | "component" | "collection" | "detail";
818
- }>]>, undefined>, v.ReadonlyAction<Readonly<{
819
- name: string;
820
- kind: "option" | "component" | "collection" | "detail";
821
- }>[]>]>;
822
- }>]>;
823
- }, undefined>, v.MetadataAction<{
824
- expectations: import("../..").BuilderRef | Readonly<{
825
- type: "ref";
826
- id: string;
827
- name: string;
828
- }> | readonly Readonly<{
829
- name: string;
830
- kind: "option" | "component" | "collection" | "detail";
831
- }>[];
832
- }, {
833
- readonly serialisable: typeof import("..").BuilderComponentDetails;
834
- readonly instance: v.InstanceSchema<typeof import("..").BuilderComponentDetails, undefined>;
835
- }>, v.ReadonlyAction<{
836
- expectations: import("../..").BuilderRef | Readonly<{
837
- type: "ref";
838
- id: string;
839
- name: string;
840
- }> | readonly Readonly<{
841
- name: string;
842
- kind: "option" | "component" | "collection" | "detail";
843
- }>[];
844
- }>]>, v.GenericSchema], undefined>;
845
- }>]>;
846
- readonly gatePaths: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
847
- readonly type: v.LiteralSchema<"ref", undefined>;
848
- readonly id: v.StringSchema<undefined>;
849
- readonly name: v.StringSchema<undefined>;
850
- }, undefined>, v.ReadonlyAction<{
851
- type: "ref";
852
- id: string;
853
- name: string;
854
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>], undefined>, v.MetadataAction<readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
855
- type: "ref";
856
- id: string;
857
- name: string;
858
- }>, {
859
- readonly refable: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>;
860
- }>]>, undefined>;
861
- }, undefined>, v.MetadataAction<{
862
- name: string;
863
- payload: unknown;
864
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
865
- type: "ref";
866
- id: string;
867
- name: string;
868
- }> | undefined;
869
- }, {
870
- readonly serialisable: typeof import("..").BuilderComponent;
871
- readonly instance: v.InstanceSchema<typeof import("..").BuilderComponent, undefined>;
872
- }>, v.ReadonlyAction<{
873
- name: string;
874
- payload: unknown;
875
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
876
- type: "ref";
877
- id: string;
878
- name: string;
879
- }> | undefined;
880
- }>]>, undefined>, v.ReadonlyAction<Readonly<{
881
- name: string;
882
- payload: unknown;
883
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
884
- type: "ref";
885
- id: string;
886
- name: string;
887
- }> | undefined;
888
- }>[]>]>;
889
- readonly collections: v.SchemaWithPipe<readonly [v.ArraySchema<v.GenericSchema<import("./collection").BuilderCollectionSerialised>, undefined>, v.ReadonlyAction<import("./collection").BuilderCollectionSerialised[]>]>;
890
- readonly expectations: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
891
- readonly name: v.StringSchema<undefined>;
892
- readonly kind: v.PicklistSchema<["option", "component", "collection", "detail"], undefined>;
893
- }, undefined>, v.MetadataAction<{
894
- name: string;
895
- kind: "option" | "component" | "collection" | "detail";
896
- }, {
897
- readonly serialisable: typeof import("..").BuilderExpectation;
898
- readonly instance: v.InstanceSchema<typeof import("..").BuilderExpectation, undefined>;
899
- }>, v.ReadonlyAction<{
900
- name: string;
901
- kind: "option" | "component" | "collection" | "detail";
902
- }>]>, undefined>, v.ReadonlyAction<Readonly<{
903
- name: string;
904
- kind: "option" | "component" | "collection" | "detail";
905
- }>[]>]>;
906
- }, undefined>, v.MetadataAction<{
907
- readonly references: readonly Readonly<{
908
- type: "ref";
909
- id: string;
910
- name: string;
911
- }>[];
912
- readonly options: readonly Readonly<{
913
- name: string;
914
- payload: unknown;
915
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
916
- type: "ref";
917
- id: string;
918
- name: string;
919
- }> | undefined;
920
- }>[];
921
- readonly components: readonly Readonly<{
922
- name: string;
923
- payload: unknown;
924
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
925
- type: "ref";
926
- id: string;
927
- name: string;
928
- }> | undefined;
929
- }>[];
930
- readonly collections: readonly import("./collection").BuilderCollectionSerialised[];
931
- readonly expectations: readonly Readonly<{
932
- name: string;
933
- kind: "option" | "component" | "collection" | "detail";
934
- }>[];
935
- }, {
936
- readonly serialisable: typeof import("..").Builder;
937
- readonly instance: v.InstanceSchema<typeof import("..").Builder, undefined>;
938
- }>, v.ReadonlyAction<{
939
- readonly references: readonly Readonly<{
940
- type: "ref";
941
- id: string;
942
- name: string;
943
- }>[];
944
- readonly options: readonly Readonly<{
945
- name: string;
946
- payload: unknown;
947
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
948
- type: "ref";
949
- id: string;
950
- name: string;
951
- }> | undefined;
952
- }>[];
953
- readonly components: readonly Readonly<{
954
- name: string;
955
- payload: unknown;
956
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
957
- type: "ref";
958
- id: string;
959
- name: string;
960
- }> | undefined;
961
- }>[];
962
- readonly collections: readonly import("./collection").BuilderCollectionSerialised[];
963
- readonly expectations: readonly Readonly<{
964
- name: string;
965
- kind: "option" | "component" | "collection" | "detail";
966
- }>[];
967
- }>]>>;
968
- }>]>;
969
- readonly min: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
970
- readonly type: v.LiteralSchema<"ref", undefined>;
27
+ }>]>, v.LazySchema<v.GenericSchema<import("..").BuilderModelSerialised>>], undefined>;
28
+ readonly min: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
29
+ readonly type: v.LiteralSchema<"parameter", undefined>;
971
30
  readonly id: v.StringSchema<undefined>;
972
31
  readonly name: v.StringSchema<undefined>;
973
32
  }, undefined>, v.ReadonlyAction<{
974
- type: "ref";
33
+ type: "parameter";
975
34
  id: string;
976
35
  name: string;
977
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, v.NumberSchema<undefined>], undefined>, v.MetadataAction<number | import("../..").BuilderRef | Readonly<{
36
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
37
+ readonly type: v.LiteralSchema<"ref", undefined>;
38
+ readonly id: v.StringSchema<undefined>;
39
+ }, undefined>, v.ReadonlyAction<{
978
40
  type: "ref";
979
41
  id: string;
980
- name: string;
981
- }>, {
982
- readonly refable: v.NumberSchema<undefined>;
983
- }>]>;
984
- readonly max: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
985
- readonly type: v.LiteralSchema<"ref", undefined>;
42
+ }>]>, v.NumberSchema<undefined>], undefined>;
43
+ readonly max: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
44
+ readonly type: v.LiteralSchema<"parameter", undefined>;
986
45
  readonly id: v.StringSchema<undefined>;
987
46
  readonly name: v.StringSchema<undefined>;
988
47
  }, undefined>, v.ReadonlyAction<{
989
- type: "ref";
48
+ type: "parameter";
990
49
  id: string;
991
50
  name: string;
992
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, v.NumberSchema<undefined>], undefined>, v.MetadataAction<number | import("../..").BuilderRef | Readonly<{
51
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
52
+ readonly type: v.LiteralSchema<"ref", undefined>;
53
+ readonly id: v.StringSchema<undefined>;
54
+ }, undefined>, v.ReadonlyAction<{
993
55
  type: "ref";
994
56
  id: string;
995
- name: string;
996
- }>, {
997
- readonly refable: v.NumberSchema<undefined>;
998
- }>]>;
999
- }, undefined>, v.MetadataAction<{
1000
- builder: import("../..").BuilderRef | Readonly<{
1001
- type: "ref";
57
+ }>]>, v.NumberSchema<undefined>], undefined>;
58
+ }, undefined>, v.ReadonlyAction<{
59
+ model: Readonly<{
60
+ type: "parameter";
1002
61
  id: string;
1003
62
  name: string;
1004
63
  }> | Readonly<{
1005
- readonly references: readonly Readonly<{
1006
- type: "ref";
1007
- id: string;
1008
- name: string;
1009
- }>[];
1010
- readonly options: readonly Readonly<{
1011
- name: string;
1012
- payload: unknown;
1013
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
1014
- type: "ref";
1015
- id: string;
1016
- name: string;
1017
- }> | undefined;
1018
- }>[];
1019
- readonly components: readonly Readonly<{
1020
- name: string;
1021
- payload: unknown;
1022
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
1023
- type: "ref";
1024
- id: string;
1025
- name: string;
1026
- }> | undefined;
1027
- }>[];
1028
- readonly collections: readonly import("./collection").BuilderCollectionSerialised[];
1029
- readonly expectations: readonly Readonly<{
1030
- name: string;
1031
- kind: "option" | "component" | "collection" | "detail";
1032
- }>[];
1033
- }>;
1034
- min: number | import("../..").BuilderRef | Readonly<{
1035
64
  type: "ref";
1036
65
  id: string;
1037
- name: string;
1038
- }>;
1039
- max: number | import("../..").BuilderRef | Readonly<{
1040
- type: "ref";
66
+ }> | import("..").BuilderModelSerialised;
67
+ min: number | Readonly<{
68
+ type: "parameter";
1041
69
  id: string;
1042
70
  name: string;
1043
- }>;
1044
- }, {
1045
- readonly serialisable: typeof BuilderCollectionConfig;
1046
- readonly instance: v.InstanceSchema<typeof BuilderCollectionConfig, undefined>;
1047
- }>, v.ReadonlyAction<{
1048
- builder: import("../..").BuilderRef | Readonly<{
71
+ }> | Readonly<{
1049
72
  type: "ref";
1050
73
  id: string;
1051
- name: string;
1052
- }> | Readonly<{
1053
- readonly references: readonly Readonly<{
1054
- type: "ref";
1055
- id: string;
1056
- name: string;
1057
- }>[];
1058
- readonly options: readonly Readonly<{
1059
- name: string;
1060
- payload: unknown;
1061
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
1062
- type: "ref";
1063
- id: string;
1064
- name: string;
1065
- }> | undefined;
1066
- }>[];
1067
- readonly components: readonly Readonly<{
1068
- name: string;
1069
- payload: unknown;
1070
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
1071
- type: "ref";
1072
- id: string;
1073
- name: string;
1074
- }> | undefined;
1075
- }>[];
1076
- readonly collections: readonly import("./collection").BuilderCollectionSerialised[];
1077
- readonly expectations: readonly Readonly<{
1078
- name: string;
1079
- kind: "option" | "component" | "collection" | "detail";
1080
- }>[];
1081
74
  }>;
1082
- min: number | import("../..").BuilderRef | Readonly<{
1083
- type: "ref";
75
+ max: number | Readonly<{
76
+ type: "parameter";
1084
77
  id: string;
1085
78
  name: string;
1086
- }>;
1087
- max: number | import("../..").BuilderRef | Readonly<{
79
+ }> | Readonly<{
1088
80
  type: "ref";
1089
81
  id: string;
1090
- name: string;
1091
82
  }>;
1092
83
  }>]>;
1093
84
  export type BuilderCollectionConfigSerialised = v.InferOutput<typeof BuilderCollectionConfigSerialisedSchema>;
1094
- export declare function collectionConfig<Builder extends Refable<BuilderGeneric> = Refable<BuilderGeneric>, Min extends Refable<number> = Refable<number>, Max extends Refable<number> = Refable<number>>(builder: Builder, min: Min, max: Max): BuilderCollectionConfig<Builder, Min, Max>;
85
+ 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>;