@metamesh/generator-sdk 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +46 -320
- package/dist/contours.d.ts +36 -0
- package/dist/contours.d.ts.map +1 -0
- package/dist/{cross-sections.js → contours.js} +19 -61
- package/dist/contours.js.map +1 -0
- package/dist/contracts.d.ts +15 -11
- package/dist/contracts.d.ts.map +1 -1
- package/dist/curve-data.d.ts +11 -0
- package/dist/curve-data.d.ts.map +1 -0
- package/dist/curve-data.js +53 -0
- package/dist/curve-data.js.map +1 -0
- package/dist/generator-package/constants.d.ts +2 -2
- package/dist/generator-package/constants.js +2 -2
- package/dist/generator-package/errors.d.ts +19 -1
- package/dist/generator-package/errors.d.ts.map +1 -1
- package/dist/generator-package/errors.js +58 -11
- package/dist/generator-package/errors.js.map +1 -1
- package/dist/generator-package/index.d.ts +7 -2
- package/dist/generator-package/index.d.ts.map +1 -1
- package/dist/generator-package/index.js +52 -9
- package/dist/generator-package/index.js.map +1 -1
- package/dist/generator-package/portable-data.d.ts +12 -0
- package/dist/generator-package/portable-data.d.ts.map +1 -0
- package/dist/generator-package/portable-data.js +102 -0
- package/dist/generator-package/portable-data.js.map +1 -0
- package/dist/generator-package/schemas/common.schema.d.ts.map +1 -1
- package/dist/generator-package/schemas/common.schema.js +4 -2
- package/dist/generator-package/schemas/common.schema.js.map +1 -1
- package/dist/generator-package/schemas/definition.schema.d.ts +451 -57
- package/dist/generator-package/schemas/definition.schema.d.ts.map +1 -1
- package/dist/generator-package/schemas/definition.schema.js +5 -2
- package/dist/generator-package/schemas/definition.schema.js.map +1 -1
- package/dist/generator-package/schemas/manifest.schema.d.ts +178 -62
- package/dist/generator-package/schemas/manifest.schema.d.ts.map +1 -1
- package/dist/generator-package/schemas/manifest.schema.js.map +1 -1
- package/dist/generator-package/schemas/parameter-document-json-schema.d.ts +4 -0
- package/dist/generator-package/schemas/parameter-document-json-schema.d.ts.map +1 -0
- package/dist/generator-package/schemas/parameter-document-json-schema.js +17 -0
- package/dist/generator-package/schemas/parameter-document-json-schema.js.map +1 -0
- package/dist/generator-package/schemas/parameter.schema.d.ts +173 -275
- package/dist/generator-package/schemas/parameter.schema.d.ts.map +1 -1
- package/dist/generator-package/schemas/parameter.schema.js +169 -79
- package/dist/generator-package/schemas/parameter.schema.js.map +1 -1
- package/dist/generator-package/schemas/preset.schema.d.ts.map +1 -1
- package/dist/generator-package/schemas/preset.schema.js +4 -4
- package/dist/generator-package/schemas/preset.schema.js.map +1 -1
- package/dist/generator-package/validate-definition.d.ts +4 -7
- package/dist/generator-package/validate-definition.d.ts.map +1 -1
- package/dist/generator-package/validate-definition.js +210 -272
- package/dist/generator-package/validate-definition.js.map +1 -1
- package/dist/generator-package/validate-manifest.d.ts.map +1 -1
- package/dist/generator-package/validate-manifest.js +5 -10
- package/dist/generator-package/validate-manifest.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/parameter-contracts.d.ts +62 -39
- package/dist/parameter-contracts.d.ts.map +1 -1
- package/dist/parameters/issues.d.ts.map +1 -1
- package/dist/parameters/issues.js +9 -10
- package/dist/parameters/issues.js.map +1 -1
- package/dist/parameters/recovery.d.ts.map +1 -1
- package/dist/parameters/recovery.js +11 -12
- package/dist/parameters/recovery.js.map +1 -1
- package/dist/parameters/strict.d.ts.map +1 -1
- package/dist/parameters/strict.js +7 -10
- package/dist/parameters/strict.js.map +1 -1
- package/dist/parameters/values.d.ts +1 -0
- package/dist/parameters/values.d.ts.map +1 -1
- package/dist/parameters/values.js +7 -6
- package/dist/parameters/values.js.map +1 -1
- package/dist/parameters.schema.json +1757 -0
- package/dist/parse-generator-module.d.ts +1 -1
- package/dist/parse-generator-module.js +1 -1
- package/dist/side-profiles.d.ts +36 -0
- package/dist/side-profiles.d.ts.map +1 -0
- package/dist/{profiles.js → side-profiles.js} +21 -66
- package/dist/side-profiles.js.map +1 -0
- package/package.json +4 -3
- package/dist/cross-sections.d.ts +0 -41
- package/dist/cross-sections.d.ts.map +0 -1
- package/dist/cross-sections.js.map +0 -1
- package/dist/profiles.d.ts +0 -41
- package/dist/profiles.d.ts.map +0 -1
- package/dist/profiles.js.map +0 -1
|
@@ -1,244 +1,56 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { type CrossSectionValue } from "../../cross-sections.js";
|
|
3
|
-
import { type FontSelection } from "../../fonts.js";
|
|
4
|
-
import { type ProfileValue } from "../../profiles.js";
|
|
5
|
-
declare const numberParameterSchema: z.ZodObject<{
|
|
6
|
-
type: z.ZodLiteral<"number">;
|
|
7
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
8
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
9
|
-
step: z.ZodOptional<z.ZodNumber>;
|
|
10
|
-
default: z.ZodNumber;
|
|
11
|
-
integer: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
-
role: z.ZodOptional<z.ZodLiteral<"curve-resolution">>;
|
|
13
|
-
id: z.ZodString;
|
|
14
|
-
label: z.ZodString;
|
|
15
|
-
description: z.ZodOptional<z.ZodString>;
|
|
16
|
-
group: z.ZodOptional<z.ZodString>;
|
|
17
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
18
|
-
visibleWhen: z.ZodOptional<z.ZodType<import("../../conditions.js").ConditionExpression, unknown, z.core.$ZodTypeInternals<import("../../conditions.js").ConditionExpression, unknown>>>;
|
|
19
|
-
}, z.core.$strict>;
|
|
20
|
-
declare const sliderParameterSchema: z.ZodObject<{
|
|
21
|
-
type: z.ZodLiteral<"slider">;
|
|
22
|
-
min: z.ZodNumber;
|
|
23
|
-
max: z.ZodNumber;
|
|
24
|
-
step: z.ZodNumber;
|
|
25
|
-
default: z.ZodNumber;
|
|
26
|
-
integer: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
-
role: z.ZodOptional<z.ZodLiteral<"curve-resolution">>;
|
|
28
|
-
id: z.ZodString;
|
|
29
|
-
label: z.ZodString;
|
|
30
|
-
description: z.ZodOptional<z.ZodString>;
|
|
31
|
-
group: z.ZodOptional<z.ZodString>;
|
|
32
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
33
|
-
visibleWhen: z.ZodOptional<z.ZodType<import("../../conditions.js").ConditionExpression, unknown, z.core.$ZodTypeInternals<import("../../conditions.js").ConditionExpression, unknown>>>;
|
|
34
|
-
}, z.core.$strict>;
|
|
35
|
-
declare const booleanParameterSchema: z.ZodObject<{
|
|
36
|
-
type: z.ZodLiteral<"boolean">;
|
|
37
|
-
default: z.ZodBoolean;
|
|
38
|
-
id: z.ZodString;
|
|
39
|
-
label: z.ZodString;
|
|
40
|
-
description: z.ZodOptional<z.ZodString>;
|
|
41
|
-
group: z.ZodOptional<z.ZodString>;
|
|
42
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
43
|
-
visibleWhen: z.ZodOptional<z.ZodType<import("../../conditions.js").ConditionExpression, unknown, z.core.$ZodTypeInternals<import("../../conditions.js").ConditionExpression, unknown>>>;
|
|
44
|
-
}, z.core.$strict>;
|
|
45
|
-
declare const selectParameterSchema: z.ZodObject<{
|
|
46
|
-
type: z.ZodLiteral<"select">;
|
|
47
|
-
default: z.ZodString;
|
|
48
|
-
options: z.ZodArray<z.ZodObject<{
|
|
49
|
-
value: z.ZodString;
|
|
50
|
-
label: z.ZodString;
|
|
51
|
-
description: z.ZodOptional<z.ZodString>;
|
|
52
|
-
}, z.core.$strict>>;
|
|
53
|
-
id: z.ZodString;
|
|
54
|
-
label: z.ZodString;
|
|
55
|
-
description: z.ZodOptional<z.ZodString>;
|
|
56
|
-
group: z.ZodOptional<z.ZodString>;
|
|
57
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
58
|
-
visibleWhen: z.ZodOptional<z.ZodType<import("../../conditions.js").ConditionExpression, unknown, z.core.$ZodTypeInternals<import("../../conditions.js").ConditionExpression, unknown>>>;
|
|
59
|
-
}, z.core.$strict>;
|
|
60
|
-
declare const choiceSetParameterSchema: z.ZodObject<{
|
|
61
|
-
type: z.ZodLiteral<"choice-set">;
|
|
62
|
-
default: z.ZodArray<z.ZodString>;
|
|
63
|
-
options: z.ZodArray<z.ZodObject<{
|
|
64
|
-
value: z.ZodString;
|
|
65
|
-
label: z.ZodString;
|
|
66
|
-
description: z.ZodOptional<z.ZodString>;
|
|
67
|
-
}, z.core.$strict>>;
|
|
68
|
-
minSelections: z.ZodOptional<z.ZodNumber>;
|
|
69
|
-
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
70
|
-
id: z.ZodString;
|
|
71
|
-
label: z.ZodString;
|
|
72
|
-
description: z.ZodOptional<z.ZodString>;
|
|
73
|
-
group: z.ZodOptional<z.ZodString>;
|
|
74
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
75
|
-
visibleWhen: z.ZodOptional<z.ZodType<import("../../conditions.js").ConditionExpression, unknown, z.core.$ZodTypeInternals<import("../../conditions.js").ConditionExpression, unknown>>>;
|
|
76
|
-
}, z.core.$strict>;
|
|
77
|
-
declare const colorParameterSchema: z.ZodObject<{
|
|
78
|
-
type: z.ZodLiteral<"color">;
|
|
79
|
-
default: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
80
|
-
id: z.ZodString;
|
|
81
|
-
label: z.ZodString;
|
|
82
|
-
description: z.ZodOptional<z.ZodString>;
|
|
83
|
-
group: z.ZodOptional<z.ZodString>;
|
|
84
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
85
|
-
visibleWhen: z.ZodOptional<z.ZodType<import("../../conditions.js").ConditionExpression, unknown, z.core.$ZodTypeInternals<import("../../conditions.js").ConditionExpression, unknown>>>;
|
|
86
|
-
}, z.core.$strict>;
|
|
87
|
-
declare const textParameterSchema: z.ZodObject<{
|
|
88
|
-
type: z.ZodLiteral<"text">;
|
|
89
|
-
default: z.ZodString;
|
|
90
|
-
id: z.ZodString;
|
|
91
|
-
label: z.ZodString;
|
|
92
|
-
description: z.ZodOptional<z.ZodString>;
|
|
93
|
-
group: z.ZodOptional<z.ZodString>;
|
|
94
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
95
|
-
visibleWhen: z.ZodOptional<z.ZodType<import("../../conditions.js").ConditionExpression, unknown, z.core.$ZodTypeInternals<import("../../conditions.js").ConditionExpression, unknown>>>;
|
|
96
|
-
}, z.core.$strict>;
|
|
97
|
-
declare const fontParameterSchema: z.ZodObject<{
|
|
98
|
-
type: z.ZodLiteral<"font">;
|
|
99
|
-
default: z.ZodCustom<FontSelection, FontSelection>;
|
|
100
|
-
id: z.ZodString;
|
|
101
|
-
label: z.ZodString;
|
|
102
|
-
description: z.ZodOptional<z.ZodString>;
|
|
103
|
-
group: z.ZodOptional<z.ZodString>;
|
|
104
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
105
|
-
visibleWhen: z.ZodOptional<z.ZodType<import("../../conditions.js").ConditionExpression, unknown, z.core.$ZodTypeInternals<import("../../conditions.js").ConditionExpression, unknown>>>;
|
|
106
|
-
}, z.core.$strict>;
|
|
107
|
-
/** SVG values remain plain strings at runtime, but definitions reject unbounded defaults. */
|
|
108
|
-
declare const svgParameterSchema: z.ZodObject<{
|
|
109
|
-
type: z.ZodLiteral<"svg">;
|
|
110
|
-
default: z.ZodString;
|
|
111
|
-
id: z.ZodString;
|
|
112
|
-
label: z.ZodString;
|
|
113
|
-
description: z.ZodOptional<z.ZodString>;
|
|
114
|
-
group: z.ZodOptional<z.ZodString>;
|
|
115
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
116
|
-
visibleWhen: z.ZodOptional<z.ZodType<import("../../conditions.js").ConditionExpression, unknown, z.core.$ZodTypeInternals<import("../../conditions.js").ConditionExpression, unknown>>>;
|
|
117
|
-
}, z.core.$strict>;
|
|
118
|
-
declare const profileScaleReferenceSchema: z.ZodObject<{
|
|
119
|
-
parameterId: z.ZodString;
|
|
120
|
-
factor: z.ZodNumber;
|
|
121
|
-
}, z.core.$strict>;
|
|
122
|
-
declare const profileParameterSchema: z.ZodObject<{
|
|
123
|
-
type: z.ZodLiteral<"profile">;
|
|
124
|
-
default: z.ZodPipe<z.ZodCustom<ProfileValue, ProfileValue>, z.ZodTransform<ProfileValue, ProfileValue>>;
|
|
125
|
-
radiusScale: z.ZodOptional<z.ZodObject<{
|
|
126
|
-
parameterId: z.ZodString;
|
|
127
|
-
factor: z.ZodNumber;
|
|
128
|
-
}, z.core.$strict>>;
|
|
129
|
-
heightScale: z.ZodOptional<z.ZodObject<{
|
|
130
|
-
parameterId: z.ZodString;
|
|
131
|
-
factor: z.ZodNumber;
|
|
132
|
-
}, z.core.$strict>>;
|
|
133
|
-
id: z.ZodString;
|
|
134
|
-
label: z.ZodString;
|
|
135
|
-
description: z.ZodOptional<z.ZodString>;
|
|
136
|
-
group: z.ZodOptional<z.ZodString>;
|
|
137
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
138
|
-
visibleWhen: z.ZodOptional<z.ZodType<import("../../conditions.js").ConditionExpression, unknown, z.core.$ZodTypeInternals<import("../../conditions.js").ConditionExpression, unknown>>>;
|
|
139
|
-
}, z.core.$strict>;
|
|
140
|
-
declare const crossSectionParameterSchema: z.ZodObject<{
|
|
141
|
-
type: z.ZodLiteral<"cross-section">;
|
|
142
|
-
default: z.ZodPipe<z.ZodCustom<CrossSectionValue, CrossSectionValue>, z.ZodTransform<CrossSectionValue, CrossSectionValue>>;
|
|
143
|
-
widthScale: z.ZodOptional<z.ZodObject<{
|
|
144
|
-
parameterId: z.ZodString;
|
|
145
|
-
factor: z.ZodNumber;
|
|
146
|
-
}, z.core.$strict>>;
|
|
147
|
-
heightScale: z.ZodOptional<z.ZodObject<{
|
|
148
|
-
parameterId: z.ZodString;
|
|
149
|
-
factor: z.ZodNumber;
|
|
150
|
-
}, z.core.$strict>>;
|
|
151
|
-
id: z.ZodString;
|
|
152
|
-
label: z.ZodString;
|
|
153
|
-
description: z.ZodOptional<z.ZodString>;
|
|
154
|
-
group: z.ZodOptional<z.ZodString>;
|
|
155
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
156
|
-
visibleWhen: z.ZodOptional<z.ZodType<import("../../conditions.js").ConditionExpression, unknown, z.core.$ZodTypeInternals<import("../../conditions.js").ConditionExpression, unknown>>>;
|
|
157
|
-
}, z.core.$strict>;
|
|
158
|
-
declare const numberArrayItemSchema: z.ZodObject<{
|
|
159
|
-
type: z.ZodLiteral<"number">;
|
|
160
|
-
integer: z.ZodOptional<z.ZodBoolean>;
|
|
161
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
162
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
163
|
-
step: z.ZodOptional<z.ZodNumber>;
|
|
164
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
165
|
-
}, z.core.$strict>;
|
|
166
|
-
declare const stringArrayItemSchema: z.ZodObject<{
|
|
167
|
-
type: z.ZodLiteral<"string">;
|
|
168
|
-
}, z.core.$strict>;
|
|
169
|
-
declare const arrayParameterSchema: z.ZodObject<{
|
|
170
|
-
type: z.ZodLiteral<"array">;
|
|
171
|
-
default: z.ZodUnion<readonly [z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodString>]>;
|
|
172
|
-
minItems: z.ZodOptional<z.ZodNumber>;
|
|
173
|
-
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
174
|
-
items: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
175
|
-
type: z.ZodLiteral<"number">;
|
|
176
|
-
integer: z.ZodOptional<z.ZodBoolean>;
|
|
177
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
178
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
179
|
-
step: z.ZodOptional<z.ZodNumber>;
|
|
180
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
181
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
182
|
-
type: z.ZodLiteral<"string">;
|
|
183
|
-
}, z.core.$strict>], "type">;
|
|
184
|
-
id: z.ZodString;
|
|
185
|
-
label: z.ZodString;
|
|
186
|
-
description: z.ZodOptional<z.ZodString>;
|
|
187
|
-
group: z.ZodOptional<z.ZodString>;
|
|
188
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
189
|
-
visibleWhen: z.ZodOptional<z.ZodType<import("../../conditions.js").ConditionExpression, unknown, z.core.$ZodTypeInternals<import("../../conditions.js").ConditionExpression, unknown>>>;
|
|
190
|
-
}, z.core.$strict>;
|
|
191
2
|
export declare const parameterDefinitionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
192
3
|
type: z.ZodLiteral<"boolean">;
|
|
193
4
|
default: z.ZodBoolean;
|
|
194
5
|
id: z.ZodString;
|
|
195
6
|
label: z.ZodString;
|
|
196
7
|
description: z.ZodOptional<z.ZodString>;
|
|
197
|
-
group: z.ZodOptional<z.ZodString>;
|
|
198
8
|
unit: z.ZodOptional<z.ZodString>;
|
|
199
|
-
|
|
9
|
+
ui: z.ZodOptional<z.ZodObject<{
|
|
10
|
+
group: z.ZodOptional<z.ZodString>;
|
|
11
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
12
|
+
visibleWhen: z.ZodOptional<z.ZodType<import("../../conditions.js").ConditionExpression, unknown, z.core.$ZodTypeInternals<import("../../conditions.js").ConditionExpression, unknown>>>;
|
|
13
|
+
}, z.core.$strict>>;
|
|
200
14
|
}, z.core.$strict>, z.ZodObject<{
|
|
201
15
|
type: z.ZodLiteral<"number">;
|
|
202
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
203
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
204
|
-
step: z.ZodOptional<z.ZodNumber>;
|
|
205
|
-
default: z.ZodNumber;
|
|
206
|
-
integer: z.ZodOptional<z.ZodBoolean>;
|
|
207
|
-
role: z.ZodOptional<z.ZodLiteral<"curve-resolution">>;
|
|
208
|
-
id: z.ZodString;
|
|
209
|
-
label: z.ZodString;
|
|
210
|
-
description: z.ZodOptional<z.ZodString>;
|
|
211
|
-
group: z.ZodOptional<z.ZodString>;
|
|
212
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
213
|
-
visibleWhen: z.ZodOptional<z.ZodType<import("../../conditions.js").ConditionExpression, unknown, z.core.$ZodTypeInternals<import("../../conditions.js").ConditionExpression, unknown>>>;
|
|
214
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
215
|
-
type: z.ZodLiteral<"slider">;
|
|
216
|
-
min: z.ZodNumber;
|
|
217
|
-
max: z.ZodNumber;
|
|
218
|
-
step: z.ZodNumber;
|
|
219
16
|
default: z.ZodNumber;
|
|
220
17
|
integer: z.ZodOptional<z.ZodBoolean>;
|
|
221
18
|
role: z.ZodOptional<z.ZodLiteral<"curve-resolution">>;
|
|
19
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
ui: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
control: z.ZodOptional<z.ZodEnum<{
|
|
23
|
+
number: "number";
|
|
24
|
+
slider: "slider";
|
|
25
|
+
}>>;
|
|
26
|
+
step: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
row: z.ZodOptional<z.ZodString>;
|
|
28
|
+
group: z.ZodOptional<z.ZodString>;
|
|
29
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
30
|
+
visibleWhen: z.ZodOptional<z.ZodType<import("../../conditions.js").ConditionExpression, unknown, z.core.$ZodTypeInternals<import("../../conditions.js").ConditionExpression, unknown>>>;
|
|
31
|
+
}, z.core.$strict>>;
|
|
222
32
|
id: z.ZodString;
|
|
223
33
|
label: z.ZodString;
|
|
224
34
|
description: z.ZodOptional<z.ZodString>;
|
|
225
|
-
group: z.ZodOptional<z.ZodString>;
|
|
226
35
|
unit: z.ZodOptional<z.ZodString>;
|
|
227
|
-
visibleWhen: z.ZodOptional<z.ZodType<import("../../conditions.js").ConditionExpression, unknown, z.core.$ZodTypeInternals<import("../../conditions.js").ConditionExpression, unknown>>>;
|
|
228
36
|
}, z.core.$strict>, z.ZodObject<{
|
|
229
|
-
type: z.ZodLiteral<"
|
|
37
|
+
type: z.ZodLiteral<"choice">;
|
|
230
38
|
default: z.ZodString;
|
|
231
39
|
options: z.ZodArray<z.ZodObject<{
|
|
232
40
|
value: z.ZodString;
|
|
233
41
|
label: z.ZodString;
|
|
234
42
|
description: z.ZodOptional<z.ZodString>;
|
|
235
43
|
}, z.core.$strict>>;
|
|
44
|
+
ui: z.ZodOptional<z.ZodObject<{
|
|
45
|
+
row: z.ZodOptional<z.ZodString>;
|
|
46
|
+
group: z.ZodOptional<z.ZodString>;
|
|
47
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
48
|
+
visibleWhen: z.ZodOptional<z.ZodType<import("../../conditions.js").ConditionExpression, unknown, z.core.$ZodTypeInternals<import("../../conditions.js").ConditionExpression, unknown>>>;
|
|
49
|
+
}, z.core.$strict>>;
|
|
236
50
|
id: z.ZodString;
|
|
237
51
|
label: z.ZodString;
|
|
238
52
|
description: z.ZodOptional<z.ZodString>;
|
|
239
|
-
group: z.ZodOptional<z.ZodString>;
|
|
240
53
|
unit: z.ZodOptional<z.ZodString>;
|
|
241
|
-
visibleWhen: z.ZodOptional<z.ZodType<import("../../conditions.js").ConditionExpression, unknown, z.core.$ZodTypeInternals<import("../../conditions.js").ConditionExpression, unknown>>>;
|
|
242
54
|
}, z.core.$strict>, z.ZodObject<{
|
|
243
55
|
type: z.ZodLiteral<"choice-set">;
|
|
244
56
|
default: z.ZodArray<z.ZodString>;
|
|
@@ -252,79 +64,186 @@ export declare const parameterDefinitionSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
252
64
|
id: z.ZodString;
|
|
253
65
|
label: z.ZodString;
|
|
254
66
|
description: z.ZodOptional<z.ZodString>;
|
|
255
|
-
group: z.ZodOptional<z.ZodString>;
|
|
256
67
|
unit: z.ZodOptional<z.ZodString>;
|
|
257
|
-
|
|
68
|
+
ui: z.ZodOptional<z.ZodObject<{
|
|
69
|
+
group: z.ZodOptional<z.ZodString>;
|
|
70
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
71
|
+
visibleWhen: z.ZodOptional<z.ZodType<import("../../conditions.js").ConditionExpression, unknown, z.core.$ZodTypeInternals<import("../../conditions.js").ConditionExpression, unknown>>>;
|
|
72
|
+
}, z.core.$strict>>;
|
|
258
73
|
}, z.core.$strict>, z.ZodObject<{
|
|
259
74
|
type: z.ZodLiteral<"color">;
|
|
260
75
|
default: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
261
76
|
id: z.ZodString;
|
|
262
77
|
label: z.ZodString;
|
|
263
78
|
description: z.ZodOptional<z.ZodString>;
|
|
264
|
-
group: z.ZodOptional<z.ZodString>;
|
|
265
79
|
unit: z.ZodOptional<z.ZodString>;
|
|
266
|
-
|
|
80
|
+
ui: z.ZodOptional<z.ZodObject<{
|
|
81
|
+
group: z.ZodOptional<z.ZodString>;
|
|
82
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
83
|
+
visibleWhen: z.ZodOptional<z.ZodType<import("../../conditions.js").ConditionExpression, unknown, z.core.$ZodTypeInternals<import("../../conditions.js").ConditionExpression, unknown>>>;
|
|
84
|
+
}, z.core.$strict>>;
|
|
267
85
|
}, z.core.$strict>, z.ZodObject<{
|
|
268
86
|
type: z.ZodLiteral<"text">;
|
|
269
87
|
default: z.ZodString;
|
|
88
|
+
ui: z.ZodOptional<z.ZodObject<{
|
|
89
|
+
row: z.ZodOptional<z.ZodString>;
|
|
90
|
+
group: z.ZodOptional<z.ZodString>;
|
|
91
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
92
|
+
visibleWhen: z.ZodOptional<z.ZodType<import("../../conditions.js").ConditionExpression, unknown, z.core.$ZodTypeInternals<import("../../conditions.js").ConditionExpression, unknown>>>;
|
|
93
|
+
}, z.core.$strict>>;
|
|
270
94
|
id: z.ZodString;
|
|
271
95
|
label: z.ZodString;
|
|
272
96
|
description: z.ZodOptional<z.ZodString>;
|
|
273
|
-
group: z.ZodOptional<z.ZodString>;
|
|
274
97
|
unit: z.ZodOptional<z.ZodString>;
|
|
275
|
-
visibleWhen: z.ZodOptional<z.ZodType<import("../../conditions.js").ConditionExpression, unknown, z.core.$ZodTypeInternals<import("../../conditions.js").ConditionExpression, unknown>>>;
|
|
276
98
|
}, z.core.$strict>, z.ZodObject<{
|
|
277
99
|
type: z.ZodLiteral<"font">;
|
|
278
|
-
default: z.
|
|
100
|
+
default: z.ZodObject<{
|
|
101
|
+
faceId: z.ZodString;
|
|
102
|
+
revision: z.ZodString;
|
|
103
|
+
weight: z.ZodNumber;
|
|
104
|
+
}, z.core.$strict>;
|
|
279
105
|
id: z.ZodString;
|
|
280
106
|
label: z.ZodString;
|
|
281
107
|
description: z.ZodOptional<z.ZodString>;
|
|
282
|
-
group: z.ZodOptional<z.ZodString>;
|
|
283
108
|
unit: z.ZodOptional<z.ZodString>;
|
|
284
|
-
|
|
109
|
+
ui: z.ZodOptional<z.ZodObject<{
|
|
110
|
+
group: z.ZodOptional<z.ZodString>;
|
|
111
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
112
|
+
visibleWhen: z.ZodOptional<z.ZodType<import("../../conditions.js").ConditionExpression, unknown, z.core.$ZodTypeInternals<import("../../conditions.js").ConditionExpression, unknown>>>;
|
|
113
|
+
}, z.core.$strict>>;
|
|
285
114
|
}, z.core.$strict>, z.ZodObject<{
|
|
286
115
|
type: z.ZodLiteral<"svg">;
|
|
287
116
|
default: z.ZodString;
|
|
288
117
|
id: z.ZodString;
|
|
289
118
|
label: z.ZodString;
|
|
290
119
|
description: z.ZodOptional<z.ZodString>;
|
|
291
|
-
group: z.ZodOptional<z.ZodString>;
|
|
292
120
|
unit: z.ZodOptional<z.ZodString>;
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
radiusScale: z.ZodOptional<z.ZodObject<{
|
|
298
|
-
parameterId: z.ZodString;
|
|
299
|
-
factor: z.ZodNumber;
|
|
121
|
+
ui: z.ZodOptional<z.ZodObject<{
|
|
122
|
+
group: z.ZodOptional<z.ZodString>;
|
|
123
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
124
|
+
visibleWhen: z.ZodOptional<z.ZodType<import("../../conditions.js").ConditionExpression, unknown, z.core.$ZodTypeInternals<import("../../conditions.js").ConditionExpression, unknown>>>;
|
|
300
125
|
}, z.core.$strict>>;
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
126
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
127
|
+
type: z.ZodLiteral<"side-profile">;
|
|
128
|
+
default: z.ZodObject<{
|
|
129
|
+
version: z.ZodLiteral<1>;
|
|
130
|
+
start: z.ZodObject<{
|
|
131
|
+
mode: z.ZodEnum<{
|
|
132
|
+
smooth: "smooth";
|
|
133
|
+
corner: "corner";
|
|
134
|
+
auto: "auto";
|
|
135
|
+
}>;
|
|
136
|
+
radius: z.ZodNumber;
|
|
137
|
+
height: z.ZodNumber;
|
|
138
|
+
}, z.core.$strict>;
|
|
139
|
+
segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
140
|
+
type: z.ZodLiteral<"line">;
|
|
141
|
+
end: z.ZodObject<{
|
|
142
|
+
mode: z.ZodEnum<{
|
|
143
|
+
smooth: "smooth";
|
|
144
|
+
corner: "corner";
|
|
145
|
+
auto: "auto";
|
|
146
|
+
}>;
|
|
147
|
+
radius: z.ZodNumber;
|
|
148
|
+
height: z.ZodNumber;
|
|
149
|
+
}, z.core.$strict>;
|
|
150
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
151
|
+
type: z.ZodLiteral<"cubic">;
|
|
152
|
+
control1: z.ZodObject<{
|
|
153
|
+
radius: z.ZodNumber;
|
|
154
|
+
height: z.ZodNumber;
|
|
155
|
+
}, z.core.$strict>;
|
|
156
|
+
control2: z.ZodObject<{
|
|
157
|
+
radius: z.ZodNumber;
|
|
158
|
+
height: z.ZodNumber;
|
|
159
|
+
}, z.core.$strict>;
|
|
160
|
+
end: z.ZodObject<{
|
|
161
|
+
mode: z.ZodEnum<{
|
|
162
|
+
smooth: "smooth";
|
|
163
|
+
corner: "corner";
|
|
164
|
+
auto: "auto";
|
|
165
|
+
}>;
|
|
166
|
+
radius: z.ZodNumber;
|
|
167
|
+
height: z.ZodNumber;
|
|
168
|
+
}, z.core.$strict>;
|
|
169
|
+
}, z.core.$strict>], "type">>;
|
|
170
|
+
}, z.core.$strict>;
|
|
171
|
+
ui: z.ZodOptional<z.ZodObject<{
|
|
172
|
+
radiusScale: z.ZodOptional<z.ZodObject<{
|
|
173
|
+
parameterId: z.ZodString;
|
|
174
|
+
factor: z.ZodNumber;
|
|
175
|
+
}, z.core.$strict>>;
|
|
176
|
+
heightScale: z.ZodOptional<z.ZodObject<{
|
|
177
|
+
parameterId: z.ZodString;
|
|
178
|
+
factor: z.ZodNumber;
|
|
179
|
+
}, z.core.$strict>>;
|
|
180
|
+
group: z.ZodOptional<z.ZodString>;
|
|
181
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
182
|
+
visibleWhen: z.ZodOptional<z.ZodType<import("../../conditions.js").ConditionExpression, unknown, z.core.$ZodTypeInternals<import("../../conditions.js").ConditionExpression, unknown>>>;
|
|
304
183
|
}, z.core.$strict>>;
|
|
305
184
|
id: z.ZodString;
|
|
306
185
|
label: z.ZodString;
|
|
307
186
|
description: z.ZodOptional<z.ZodString>;
|
|
308
|
-
group: z.ZodOptional<z.ZodString>;
|
|
309
187
|
unit: z.ZodOptional<z.ZodString>;
|
|
310
|
-
visibleWhen: z.ZodOptional<z.ZodType<import("../../conditions.js").ConditionExpression, unknown, z.core.$ZodTypeInternals<import("../../conditions.js").ConditionExpression, unknown>>>;
|
|
311
188
|
}, z.core.$strict>, z.ZodObject<{
|
|
312
|
-
type: z.ZodLiteral<"
|
|
313
|
-
default: z.
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
189
|
+
type: z.ZodLiteral<"contour">;
|
|
190
|
+
default: z.ZodObject<{
|
|
191
|
+
version: z.ZodLiteral<1>;
|
|
192
|
+
start: z.ZodObject<{
|
|
193
|
+
mode: z.ZodEnum<{
|
|
194
|
+
smooth: "smooth";
|
|
195
|
+
corner: "corner";
|
|
196
|
+
}>;
|
|
197
|
+
x: z.ZodNumber;
|
|
198
|
+
y: z.ZodNumber;
|
|
199
|
+
}, z.core.$strict>;
|
|
200
|
+
segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
201
|
+
type: z.ZodLiteral<"line">;
|
|
202
|
+
end: z.ZodObject<{
|
|
203
|
+
mode: z.ZodEnum<{
|
|
204
|
+
smooth: "smooth";
|
|
205
|
+
corner: "corner";
|
|
206
|
+
}>;
|
|
207
|
+
x: z.ZodNumber;
|
|
208
|
+
y: z.ZodNumber;
|
|
209
|
+
}, z.core.$strict>;
|
|
210
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
211
|
+
type: z.ZodLiteral<"cubic">;
|
|
212
|
+
control1: z.ZodObject<{
|
|
213
|
+
x: z.ZodNumber;
|
|
214
|
+
y: z.ZodNumber;
|
|
215
|
+
}, z.core.$strict>;
|
|
216
|
+
control2: z.ZodObject<{
|
|
217
|
+
x: z.ZodNumber;
|
|
218
|
+
y: z.ZodNumber;
|
|
219
|
+
}, z.core.$strict>;
|
|
220
|
+
end: z.ZodObject<{
|
|
221
|
+
mode: z.ZodEnum<{
|
|
222
|
+
smooth: "smooth";
|
|
223
|
+
corner: "corner";
|
|
224
|
+
}>;
|
|
225
|
+
x: z.ZodNumber;
|
|
226
|
+
y: z.ZodNumber;
|
|
227
|
+
}, z.core.$strict>;
|
|
228
|
+
}, z.core.$strict>], "type">>;
|
|
229
|
+
}, z.core.$strict>;
|
|
230
|
+
ui: z.ZodOptional<z.ZodObject<{
|
|
231
|
+
widthScale: z.ZodOptional<z.ZodObject<{
|
|
232
|
+
parameterId: z.ZodString;
|
|
233
|
+
factor: z.ZodNumber;
|
|
234
|
+
}, z.core.$strict>>;
|
|
235
|
+
heightScale: z.ZodOptional<z.ZodObject<{
|
|
236
|
+
parameterId: z.ZodString;
|
|
237
|
+
factor: z.ZodNumber;
|
|
238
|
+
}, z.core.$strict>>;
|
|
239
|
+
group: z.ZodOptional<z.ZodString>;
|
|
240
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
241
|
+
visibleWhen: z.ZodOptional<z.ZodType<import("../../conditions.js").ConditionExpression, unknown, z.core.$ZodTypeInternals<import("../../conditions.js").ConditionExpression, unknown>>>;
|
|
321
242
|
}, z.core.$strict>>;
|
|
322
243
|
id: z.ZodString;
|
|
323
244
|
label: z.ZodString;
|
|
324
245
|
description: z.ZodOptional<z.ZodString>;
|
|
325
|
-
group: z.ZodOptional<z.ZodString>;
|
|
326
246
|
unit: z.ZodOptional<z.ZodString>;
|
|
327
|
-
visibleWhen: z.ZodOptional<z.ZodType<import("../../conditions.js").ConditionExpression, unknown, z.core.$ZodTypeInternals<import("../../conditions.js").ConditionExpression, unknown>>>;
|
|
328
247
|
}, z.core.$strict>, z.ZodObject<{
|
|
329
248
|
type: z.ZodLiteral<"array">;
|
|
330
249
|
default: z.ZodUnion<readonly [z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodString>]>;
|
|
@@ -335,47 +254,26 @@ export declare const parameterDefinitionSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
335
254
|
integer: z.ZodOptional<z.ZodBoolean>;
|
|
336
255
|
min: z.ZodOptional<z.ZodNumber>;
|
|
337
256
|
max: z.ZodOptional<z.ZodNumber>;
|
|
338
|
-
step: z.ZodOptional<z.ZodNumber>;
|
|
339
257
|
unit: z.ZodOptional<z.ZodString>;
|
|
258
|
+
ui: z.ZodOptional<z.ZodObject<{
|
|
259
|
+
step: z.ZodOptional<z.ZodNumber>;
|
|
260
|
+
}, z.core.$strict>>;
|
|
340
261
|
}, z.core.$strict>, z.ZodObject<{
|
|
341
262
|
type: z.ZodLiteral<"string">;
|
|
342
263
|
}, z.core.$strict>], "type">;
|
|
343
264
|
id: z.ZodString;
|
|
344
265
|
label: z.ZodString;
|
|
345
266
|
description: z.ZodOptional<z.ZodString>;
|
|
346
|
-
group: z.ZodOptional<z.ZodString>;
|
|
347
267
|
unit: z.ZodOptional<z.ZodString>;
|
|
348
|
-
|
|
268
|
+
ui: z.ZodOptional<z.ZodObject<{
|
|
269
|
+
group: z.ZodOptional<z.ZodString>;
|
|
270
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
271
|
+
visibleWhen: z.ZodOptional<z.ZodType<import("../../conditions.js").ConditionExpression, unknown, z.core.$ZodTypeInternals<import("../../conditions.js").ConditionExpression, unknown>>>;
|
|
272
|
+
}, z.core.$strict>>;
|
|
349
273
|
}, z.core.$strict>], "type">;
|
|
350
274
|
type DeepReadonly<T> = T extends readonly (infer Item)[] ? readonly DeepReadonly<Item>[] : T extends object ? {
|
|
351
275
|
readonly [Key in keyof T]: DeepReadonly<T[Key]>;
|
|
352
276
|
} : T;
|
|
353
277
|
export type ParameterDefinition = DeepReadonly<z.output<typeof parameterDefinitionSchema>>;
|
|
354
|
-
export type NumberParameterDefinition = DeepReadonly<z.output<typeof numberParameterSchema>>;
|
|
355
|
-
export type SliderParameterDefinition = DeepReadonly<z.output<typeof sliderParameterSchema>>;
|
|
356
|
-
export type NumericParameterDefinition = NumberParameterDefinition | SliderParameterDefinition;
|
|
357
|
-
export type BooleanParameterDefinition = DeepReadonly<z.output<typeof booleanParameterSchema>>;
|
|
358
|
-
export type SelectParameterDefinition = DeepReadonly<z.output<typeof selectParameterSchema>>;
|
|
359
|
-
export type ChoiceSetParameterDefinition = DeepReadonly<z.output<typeof choiceSetParameterSchema>>;
|
|
360
|
-
export type ColorParameterDefinition = DeepReadonly<z.output<typeof colorParameterSchema>>;
|
|
361
|
-
export type TextParameterDefinition = DeepReadonly<z.output<typeof textParameterSchema>>;
|
|
362
|
-
export type FontParameterDefinition = DeepReadonly<z.output<typeof fontParameterSchema>>;
|
|
363
|
-
export type SvgParameterDefinition = DeepReadonly<z.output<typeof svgParameterSchema>>;
|
|
364
|
-
export type ProfileParameterDefinition = DeepReadonly<z.output<typeof profileParameterSchema>>;
|
|
365
|
-
export type ProfileScaleReference = DeepReadonly<z.output<typeof profileScaleReferenceSchema>>;
|
|
366
|
-
export type CrossSectionParameterDefinition = DeepReadonly<z.output<typeof crossSectionParameterSchema>>;
|
|
367
|
-
export type CrossSectionScaleReference = ProfileScaleReference;
|
|
368
|
-
export type ArrayParameterDefinition = DeepReadonly<z.output<typeof arrayParameterSchema>>;
|
|
369
|
-
export type NumberArrayParameterDefinition = Omit<ArrayParameterDefinition, "default" | "items"> & {
|
|
370
|
-
readonly default: readonly number[];
|
|
371
|
-
readonly items: z.output<typeof numberArrayItemSchema>;
|
|
372
|
-
};
|
|
373
|
-
export type StringArrayParameterDefinition = Omit<ArrayParameterDefinition, "default" | "items"> & {
|
|
374
|
-
readonly default: readonly string[];
|
|
375
|
-
readonly items: z.output<typeof stringArrayItemSchema>;
|
|
376
|
-
};
|
|
377
|
-
export type SelectOption = SelectParameterDefinition["options"][number];
|
|
378
|
-
export type NumberArrayItemDefinition = z.output<typeof numberArrayItemSchema>;
|
|
379
|
-
export type StringArrayItemDefinition = z.output<typeof stringArrayItemSchema>;
|
|
380
278
|
export {};
|
|
381
279
|
//# sourceMappingURL=parameter.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parameter.schema.d.ts","sourceRoot":"","sources":["../../../src/generator-package/schemas/parameter.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"parameter.schema.d.ts","sourceRoot":"","sources":["../../../src/generator-package/schemas/parameter.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuOxB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAYpC,CAAC;AACH,KAAK,YAAY,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,CAAC,MAAM,IAAI,CAAC,EAAE,GACpD,SAAS,YAAY,CAAC,IAAI,CAAC,EAAE,GAC7B,CAAC,SAAS,MAAM,GACd;IAAE,QAAQ,EAAE,GAAG,IAAI,MAAM,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;CAAE,GACnD,CAAC,CAAC;AACR,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,yBAAyB,CAAC,CAAC,CAAC"}
|