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