@snaptrude/plugin-core 0.9.16 → 0.9.18-voids-20261016.1
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 +6 -0
- package/api-manifest.full.json +10406 -0
- package/api-manifest.json +827 -51
- package/dist/api/analysis/daylight.d.ts +5 -5
- package/dist/api/analysis/solar.d.ts +2 -2
- package/dist/api/core/camera/index.d.ts +29 -0
- package/dist/api/core/camera/index.d.ts.map +1 -1
- package/dist/api/core/geom/create/index.d.ts +7 -1
- package/dist/api/core/geom/create/index.d.ts.map +1 -1
- package/dist/api/core/geom/update/contour.d.ts +8 -2
- package/dist/api/core/geom/update/contour.d.ts.map +1 -1
- package/dist/api/core/zoom/index.d.ts +13 -0
- package/dist/api/core/zoom/index.d.ts.map +1 -1
- package/dist/api/design/bim.d.ts +209 -0
- package/dist/api/design/bim.d.ts.map +1 -0
- package/dist/api/design/boolean/index.d.ts +2 -0
- package/dist/api/design/boolean/index.d.ts.map +1 -1
- package/dist/api/design/catalog.d.ts +320 -0
- package/dist/api/design/catalog.d.ts.map +1 -0
- package/dist/api/design/create/bulk-items.d.ts +65 -25
- package/dist/api/design/create/bulk-items.d.ts.map +1 -1
- package/dist/api/design/create/index.d.ts +272 -99
- package/dist/api/design/create/index.d.ts.map +1 -1
- package/dist/api/design/create/opening-fields.d.ts +13 -12
- package/dist/api/design/create/opening-fields.d.ts.map +1 -1
- package/dist/api/design/delete/index.d.ts +1 -0
- package/dist/api/design/delete/index.d.ts.map +1 -1
- package/dist/api/design/doors/index.d.ts +18 -24
- package/dist/api/design/doors/index.d.ts.map +1 -1
- package/dist/api/design/family.d.ts +797 -27
- package/dist/api/design/family.d.ts.map +1 -1
- package/dist/api/design/index.d.ts +16 -0
- package/dist/api/design/index.d.ts.map +1 -1
- package/dist/api/design/networks.d.ts +1703 -0
- package/dist/api/design/networks.d.ts.map +1 -0
- package/dist/api/design/query/index.d.ts +42 -32
- package/dist/api/design/query/index.d.ts.map +1 -1
- package/dist/api/design/selection/index.d.ts +10 -10
- package/dist/api/design/types/index.d.ts +40 -24
- package/dist/api/design/types/index.d.ts.map +1 -1
- package/dist/api/design/update/index.d.ts +43 -3
- package/dist/api/design/update/index.d.ts.map +1 -1
- package/dist/api/design/windows/index.d.ts +8 -8
- package/dist/api/design/windows/index.d.ts.map +1 -1
- package/dist/api/presentation/aiInspiration.d.ts +10 -10
- package/dist/api/presentation/annotate.d.ts +38 -22
- package/dist/api/presentation/annotate.d.ts.map +1 -1
- package/dist/api/presentation/drawingContract.d.ts +32 -0
- package/dist/api/presentation/drawingContract.d.ts.map +1 -0
- package/dist/api/presentation/drawings.d.ts +3523 -0
- package/dist/api/presentation/drawings.d.ts.map +1 -0
- package/dist/api/presentation/export.d.ts +23 -5
- package/dist/api/presentation/export.d.ts.map +1 -1
- package/dist/api/presentation/index.d.ts +41 -12
- package/dist/api/presentation/index.d.ts.map +1 -1
- package/dist/api/presentation/placedViews.d.ts +106 -6
- package/dist/api/presentation/placedViews.d.ts.map +1 -1
- package/dist/api/presentation/sections.d.ts +461 -0
- package/dist/api/presentation/sections.d.ts.map +1 -0
- package/dist/api/presentation/shapes.d.ts +2 -2
- package/dist/api/presentation/sheets.d.ts +175 -19
- package/dist/api/presentation/sheets.d.ts.map +1 -1
- package/dist/api/presentation/viewPresets.d.ts +222 -0
- package/dist/api/presentation/viewPresets.d.ts.map +1 -0
- package/dist/api/presentation/views.d.ts +103 -5
- package/dist/api/presentation/views.d.ts.map +1 -1
- package/dist/api/presentation/walkthroughs.d.ts +6 -6
- package/dist/errors/codes.d.ts +3 -1
- package/dist/errors/codes.d.ts.map +1 -1
- package/dist/index.cjs +3749 -2328
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3616 -2328
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/scripts/generate-manifest.mjs +5 -0
- package/src/api/core/camera/index.ts +29 -0
- package/src/api/core/geom/create/index.ts +7 -1
- package/src/api/core/geom/update/contour.ts +8 -2
- package/src/api/core/zoom/index.ts +13 -0
- package/src/api/design/bim.ts +121 -0
- package/src/api/design/boolean/index.ts +2 -0
- package/src/api/design/catalog.ts +203 -0
- package/src/api/design/create/bulk-items.ts +57 -17
- package/src/api/design/create/index.ts +288 -120
- package/src/api/design/create/opening-fields.ts +15 -12
- package/src/api/design/delete/index.ts +1 -0
- package/src/api/design/doors/index.ts +58 -42
- package/src/api/design/family.ts +662 -32
- package/src/api/design/index.ts +34 -4
- package/src/api/design/networks.ts +607 -0
- package/src/api/design/query/index.ts +12 -2
- package/src/api/design/types/index.ts +31 -24
- package/src/api/design/update/index.ts +44 -3
- package/src/api/design/windows/index.ts +40 -22
- package/src/api/presentation/annotate.ts +90 -58
- package/src/api/presentation/drawingContract.ts +70 -0
- package/src/api/presentation/drawings.ts +1179 -0
- package/src/api/presentation/export.ts +32 -6
- package/src/api/presentation/index.ts +48 -14
- package/src/api/presentation/placedViews.ts +119 -28
- package/src/api/presentation/sections.ts +420 -0
- package/src/api/presentation/sheets.ts +181 -20
- package/src/api/presentation/viewPresets.ts +241 -0
- package/src/api/presentation/views.ts +46 -6
- package/src/errors/codes.ts +7 -0
- package/test/drawingContract.test.mjs +288 -0
- package/test/errors.test.mjs +1 -0
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import type { PluginApiReturn } from "../../types";
|
|
3
|
+
/** Exact saved family identity. A label or a selected Draw type is not an identity. */
|
|
4
|
+
export declare const PluginSavedFamilyReference: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
version: z.ZodNumber;
|
|
7
|
+
}, z.core.$strict>;
|
|
8
|
+
export type PluginSavedFamilyReference = z.infer<typeof PluginSavedFamilyReference>;
|
|
9
|
+
/** Public overrides: physical lengths use mm, angles use degrees. Omitted values retain defaults. */
|
|
10
|
+
export declare const PluginFamilyValues: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>>;
|
|
11
|
+
export type PluginFamilyValues = z.infer<typeof PluginFamilyValues>;
|
|
12
|
+
/** Native construction uses a saved family or a project assembly token from the catalogue. */
|
|
13
|
+
export declare const PluginConstructionType: z.ZodUnion<readonly [z.ZodObject<{
|
|
14
|
+
id: z.ZodString;
|
|
15
|
+
version: z.ZodNumber;
|
|
16
|
+
}, z.core.$strict>, z.ZodString]>;
|
|
17
|
+
export type PluginConstructionType = z.infer<typeof PluginConstructionType>;
|
|
18
|
+
/** Family owns its layers/section. Geometry owns the footprint/axis; it is never a values override. */
|
|
19
|
+
export declare const PluginFamilyPlacement: z.ZodObject<{
|
|
20
|
+
type: z.ZodUnion<readonly [z.ZodObject<{
|
|
21
|
+
id: z.ZodString;
|
|
22
|
+
version: z.ZodNumber;
|
|
23
|
+
}, z.core.$strict>, z.ZodString]>;
|
|
24
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>>>;
|
|
25
|
+
}, z.core.$strict>;
|
|
26
|
+
export type PluginFamilyPlacement = z.infer<typeof PluginFamilyPlacement>;
|
|
27
|
+
/** Sparse native family edit. Omitted type keeps the component's exact saved reference. */
|
|
28
|
+
export declare const PluginFamilyUpdates: z.ZodObject<{
|
|
29
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
30
|
+
id: z.ZodString;
|
|
31
|
+
version: z.ZodNumber;
|
|
32
|
+
}, z.core.$strict>, z.ZodString]>>;
|
|
33
|
+
values: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>>>>;
|
|
34
|
+
}, z.core.$strict>;
|
|
35
|
+
export type PluginFamilyUpdates = z.infer<typeof PluginFamilyUpdates>;
|
|
36
|
+
export declare const PluginFamilyFloorOptions: z.ZodObject<{
|
|
37
|
+
type: z.ZodUnion<readonly [z.ZodObject<{
|
|
38
|
+
id: z.ZodString;
|
|
39
|
+
version: z.ZodNumber;
|
|
40
|
+
}, z.core.$strict>, z.ZodString]>;
|
|
41
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>>>;
|
|
42
|
+
position: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../..").Handle<"vec3">, string>>>;
|
|
43
|
+
}, z.core.$strict>;
|
|
44
|
+
export type PluginFamilyFloorOptions = z.infer<typeof PluginFamilyFloorOptions>;
|
|
45
|
+
export declare const PluginFamilySlabOptions: z.ZodObject<{
|
|
46
|
+
type: z.ZodUnion<readonly [z.ZodObject<{
|
|
47
|
+
id: z.ZodString;
|
|
48
|
+
version: z.ZodNumber;
|
|
49
|
+
}, z.core.$strict>, z.ZodString]>;
|
|
50
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>>>;
|
|
51
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
52
|
+
up: "up";
|
|
53
|
+
down: "down";
|
|
54
|
+
}>>;
|
|
55
|
+
}, z.core.$strict>;
|
|
56
|
+
export type PluginFamilySlabOptions = z.infer<typeof PluginFamilySlabOptions>;
|
|
57
|
+
export declare const PluginFamilyCeilingOptions: z.ZodObject<{
|
|
58
|
+
type: z.ZodUnion<readonly [z.ZodObject<{
|
|
59
|
+
id: z.ZodString;
|
|
60
|
+
version: z.ZodNumber;
|
|
61
|
+
}, z.core.$strict>, z.ZodString]>;
|
|
62
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>>>;
|
|
63
|
+
heightFromFloor: z.ZodOptional<z.ZodNumber>;
|
|
64
|
+
}, z.core.$strict>;
|
|
65
|
+
export type PluginFamilyCeilingOptions = z.infer<typeof PluginFamilyCeilingOptions>;
|
|
66
|
+
export declare const PluginFamilyContourArgs: z.ZodObject<{
|
|
67
|
+
contour: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../..").Handle<"contour">, string>>;
|
|
68
|
+
options: z.ZodObject<{
|
|
69
|
+
type: z.ZodUnion<readonly [z.ZodObject<{
|
|
70
|
+
id: z.ZodString;
|
|
71
|
+
version: z.ZodNumber;
|
|
72
|
+
}, z.core.$strict>, z.ZodString]>;
|
|
73
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>>>;
|
|
74
|
+
}, z.core.$strict>;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
export declare const PluginFamilyAxisArgs: z.ZodObject<{
|
|
77
|
+
axis: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../..").Handle<"line">, string>>;
|
|
78
|
+
options: z.ZodObject<{
|
|
79
|
+
type: z.ZodUnion<readonly [z.ZodObject<{
|
|
80
|
+
id: z.ZodString;
|
|
81
|
+
version: z.ZodNumber;
|
|
82
|
+
}, z.core.$strict>, z.ZodString]>;
|
|
83
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>>>;
|
|
84
|
+
}, z.core.$strict>;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
/** Inventory includes architectural recipes, ordinary PCs, and the existing placement libraries. */
|
|
87
|
+
export declare const PluginCatalogKind: z.ZodEnum<{
|
|
88
|
+
component: "component";
|
|
89
|
+
floor: "floor";
|
|
90
|
+
wall: "wall";
|
|
91
|
+
ceiling: "ceiling";
|
|
92
|
+
slab: "slab";
|
|
93
|
+
roof: "roof";
|
|
94
|
+
furniture: "furniture";
|
|
95
|
+
door: "door";
|
|
96
|
+
window: "window";
|
|
97
|
+
beam: "beam";
|
|
98
|
+
column: "column";
|
|
99
|
+
}>;
|
|
100
|
+
export type PluginCatalogKind = z.infer<typeof PluginCatalogKind>;
|
|
101
|
+
export declare const PluginCatalogReference: z.ZodUnion<readonly [z.ZodObject<{
|
|
102
|
+
id: z.ZodString;
|
|
103
|
+
version: z.ZodNumber;
|
|
104
|
+
}, z.core.$strict>, z.ZodString]>;
|
|
105
|
+
export type PluginCatalogReference = z.infer<typeof PluginCatalogReference>;
|
|
106
|
+
/** Read-only capability record. Availability is checked again on every mutation. */
|
|
107
|
+
export declare const PluginCatalogEntry: z.ZodObject<{
|
|
108
|
+
reference: z.ZodUnion<readonly [z.ZodObject<{
|
|
109
|
+
id: z.ZodString;
|
|
110
|
+
version: z.ZodNumber;
|
|
111
|
+
}, z.core.$strict>, z.ZodString]>;
|
|
112
|
+
label: z.ZodString;
|
|
113
|
+
kind: z.ZodEnum<{
|
|
114
|
+
component: "component";
|
|
115
|
+
floor: "floor";
|
|
116
|
+
wall: "wall";
|
|
117
|
+
ceiling: "ceiling";
|
|
118
|
+
slab: "slab";
|
|
119
|
+
roof: "roof";
|
|
120
|
+
furniture: "furniture";
|
|
121
|
+
door: "door";
|
|
122
|
+
window: "window";
|
|
123
|
+
beam: "beam";
|
|
124
|
+
column: "column";
|
|
125
|
+
}>;
|
|
126
|
+
source: z.ZodEnum<{
|
|
127
|
+
native: "native";
|
|
128
|
+
revit: "revit";
|
|
129
|
+
project: "project";
|
|
130
|
+
asset: "asset";
|
|
131
|
+
}>;
|
|
132
|
+
createMethods: z.ZodArray<z.ZodString>;
|
|
133
|
+
updateMethods: z.ZodArray<z.ZodString>;
|
|
134
|
+
requirements: z.ZodArray<z.ZodString>;
|
|
135
|
+
unsupportedReason: z.ZodOptional<z.ZodString>;
|
|
136
|
+
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
137
|
+
key: z.ZodString;
|
|
138
|
+
label: z.ZodString;
|
|
139
|
+
type: z.ZodEnum<{
|
|
140
|
+
boolean: "boolean";
|
|
141
|
+
enum: "enum";
|
|
142
|
+
length: "length";
|
|
143
|
+
text: "text";
|
|
144
|
+
integer: "integer";
|
|
145
|
+
}>;
|
|
146
|
+
unit: z.ZodOptional<z.ZodEnum<{
|
|
147
|
+
mm: "mm";
|
|
148
|
+
degrees: "degrees";
|
|
149
|
+
}>>;
|
|
150
|
+
default: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
151
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
152
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
153
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
154
|
+
drivesGeometry: z.ZodBoolean;
|
|
155
|
+
readOnly: z.ZodBoolean;
|
|
156
|
+
formulaDriven: z.ZodBoolean;
|
|
157
|
+
isInstance: z.ZodBoolean;
|
|
158
|
+
}, z.core.$strip>>>;
|
|
159
|
+
geometryParameters: z.ZodArray<z.ZodString>;
|
|
160
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
161
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
162
|
+
role: z.ZodEnum<{
|
|
163
|
+
pipe: "pipe";
|
|
164
|
+
duct: "duct";
|
|
165
|
+
wire: "wire";
|
|
166
|
+
cable: "cable";
|
|
167
|
+
conduit: "conduit";
|
|
168
|
+
cableDuct: "cableDuct";
|
|
169
|
+
cableTray: "cableTray";
|
|
170
|
+
connector: "connector";
|
|
171
|
+
equipment: "equipment";
|
|
172
|
+
}>;
|
|
173
|
+
lengthParameter: z.ZodOptional<z.ZodString>;
|
|
174
|
+
ports: z.ZodArray<z.ZodObject<{
|
|
175
|
+
id: z.ZodString;
|
|
176
|
+
position: z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>;
|
|
177
|
+
direction: z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>;
|
|
178
|
+
size: z.ZodString;
|
|
179
|
+
height: z.ZodOptional<z.ZodString>;
|
|
180
|
+
widthDirection: z.ZodOptional<z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>>;
|
|
181
|
+
systems: z.ZodArray<z.ZodString>;
|
|
182
|
+
}, z.core.$strict>>;
|
|
183
|
+
}, z.core.$strict>>;
|
|
184
|
+
construction: z.ZodOptional<z.ZodObject<{
|
|
185
|
+
root: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
186
|
+
deps: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
187
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
188
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
189
|
+
role: z.ZodEnum<{
|
|
190
|
+
pipe: "pipe";
|
|
191
|
+
duct: "duct";
|
|
192
|
+
wire: "wire";
|
|
193
|
+
cable: "cable";
|
|
194
|
+
conduit: "conduit";
|
|
195
|
+
cableDuct: "cableDuct";
|
|
196
|
+
cableTray: "cableTray";
|
|
197
|
+
connector: "connector";
|
|
198
|
+
equipment: "equipment";
|
|
199
|
+
}>;
|
|
200
|
+
lengthParameter: z.ZodOptional<z.ZodString>;
|
|
201
|
+
ports: z.ZodArray<z.ZodObject<{
|
|
202
|
+
id: z.ZodString;
|
|
203
|
+
position: z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>;
|
|
204
|
+
direction: z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>;
|
|
205
|
+
size: z.ZodString;
|
|
206
|
+
height: z.ZodOptional<z.ZodString>;
|
|
207
|
+
widthDirection: z.ZodOptional<z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>>;
|
|
208
|
+
systems: z.ZodArray<z.ZodString>;
|
|
209
|
+
}, z.core.$strict>>;
|
|
210
|
+
}, z.core.$strict>>;
|
|
211
|
+
}, z.core.$strip>>;
|
|
212
|
+
}, z.core.$strip>;
|
|
213
|
+
export type PluginCatalogEntry = z.infer<typeof PluginCatalogEntry>;
|
|
214
|
+
export declare const PluginCatalogListArgs: z.ZodObject<{
|
|
215
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
216
|
+
component: "component";
|
|
217
|
+
floor: "floor";
|
|
218
|
+
wall: "wall";
|
|
219
|
+
ceiling: "ceiling";
|
|
220
|
+
slab: "slab";
|
|
221
|
+
roof: "roof";
|
|
222
|
+
furniture: "furniture";
|
|
223
|
+
door: "door";
|
|
224
|
+
window: "window";
|
|
225
|
+
beam: "beam";
|
|
226
|
+
column: "column";
|
|
227
|
+
}>>;
|
|
228
|
+
}, z.core.$strip>;
|
|
229
|
+
export declare const PluginCatalogGetArgs: z.ZodObject<{
|
|
230
|
+
reference: z.ZodUnion<readonly [z.ZodObject<{
|
|
231
|
+
id: z.ZodString;
|
|
232
|
+
version: z.ZodNumber;
|
|
233
|
+
}, z.core.$strict>, z.ZodString]>;
|
|
234
|
+
}, z.core.$strip>;
|
|
235
|
+
/** Search metadata is extensible. A slash separates category path segments. */
|
|
236
|
+
export declare const PluginCatalogSearchArgs: z.ZodObject<{
|
|
237
|
+
query: z.ZodOptional<z.ZodString>;
|
|
238
|
+
category: z.ZodOptional<z.ZodString>;
|
|
239
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
240
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
241
|
+
}, z.core.$strict>;
|
|
242
|
+
export type PluginCatalogSearchArgs = z.infer<typeof PluginCatalogSearchArgs>;
|
|
243
|
+
/** Browse one hierarchy level without enumerating families or fetching recipe bodies. */
|
|
244
|
+
export declare const PluginCatalogListCategoriesArgs: z.ZodObject<{
|
|
245
|
+
parent: z.ZodOptional<z.ZodString>;
|
|
246
|
+
after: z.ZodOptional<z.ZodString>;
|
|
247
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
248
|
+
}, z.core.$strict>;
|
|
249
|
+
export type PluginCatalogListCategoriesArgs = z.infer<typeof PluginCatalogListCategoriesArgs>;
|
|
250
|
+
/** Metadata only: the category does not establish placement capabilities or recipe validity. */
|
|
251
|
+
export declare const PluginCatalogCategory: z.ZodObject<{
|
|
252
|
+
categoryPath: z.ZodArray<z.ZodString>;
|
|
253
|
+
hasChildren: z.ZodBoolean;
|
|
254
|
+
}, z.core.$strip>;
|
|
255
|
+
export type PluginCatalogCategory = z.infer<typeof PluginCatalogCategory>;
|
|
256
|
+
/** Metadata only. Read get(reference) to validate a selected family and inspect placement methods. */
|
|
257
|
+
export declare const PluginCatalogSummary: z.ZodObject<{
|
|
258
|
+
reference: z.ZodUnion<readonly [z.ZodObject<{
|
|
259
|
+
id: z.ZodString;
|
|
260
|
+
version: z.ZodNumber;
|
|
261
|
+
}, z.core.$strict>, z.ZodString]>;
|
|
262
|
+
label: z.ZodString;
|
|
263
|
+
categoryPath: z.ZodArray<z.ZodString>;
|
|
264
|
+
description: z.ZodString;
|
|
265
|
+
source: z.ZodEnum<{
|
|
266
|
+
native: "native";
|
|
267
|
+
revit: "revit";
|
|
268
|
+
project: "project";
|
|
269
|
+
asset: "asset";
|
|
270
|
+
}>;
|
|
271
|
+
}, z.core.$strip>;
|
|
272
|
+
export type PluginCatalogSummary = z.infer<typeof PluginCatalogSummary>;
|
|
273
|
+
export declare const PluginCatalogSearchResult: z.ZodObject<{
|
|
274
|
+
items: z.ZodArray<z.ZodObject<{
|
|
275
|
+
reference: z.ZodUnion<readonly [z.ZodObject<{
|
|
276
|
+
id: z.ZodString;
|
|
277
|
+
version: z.ZodNumber;
|
|
278
|
+
}, z.core.$strict>, z.ZodString]>;
|
|
279
|
+
label: z.ZodString;
|
|
280
|
+
categoryPath: z.ZodArray<z.ZodString>;
|
|
281
|
+
description: z.ZodString;
|
|
282
|
+
source: z.ZodEnum<{
|
|
283
|
+
native: "native";
|
|
284
|
+
revit: "revit";
|
|
285
|
+
project: "project";
|
|
286
|
+
asset: "asset";
|
|
287
|
+
}>;
|
|
288
|
+
}, z.core.$strip>>;
|
|
289
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
290
|
+
}, z.core.$strip>;
|
|
291
|
+
export type PluginCatalogSearchResult = z.infer<typeof PluginCatalogSearchResult>;
|
|
292
|
+
/** Shared read surface over existing libraries. Does not publish, register, or place definitions. */
|
|
293
|
+
export declare abstract class PluginDesignCatalogApi {
|
|
294
|
+
/**
|
|
295
|
+
* Discover categories from accessible saved families and current project constructions.
|
|
296
|
+
* Omit parent for roots; pass a slash-separated returned path for its direct children.
|
|
297
|
+
* This metadata read does not fetch recipes, include unsaved drafts or legacy mesh inventories,
|
|
298
|
+
* or establish capabilities. Use search then get before placement. Names retain their case.
|
|
299
|
+
* @param args Parent path, exclusive after-name, and page limit (default 50, maximum 100).
|
|
300
|
+
* For another page at the same parent, pass the last item's final categoryPath segment as after.
|
|
301
|
+
* @returns Categories in Unicode code-point order, with descendant flags. Stop when a page has
|
|
302
|
+
* fewer than limit items. Live pagination is not a snapshot. Metadata-service failures reject.
|
|
303
|
+
*/
|
|
304
|
+
abstract listCategories(args?: PluginCatalogListCategoriesArgs): PluginApiReturn<PluginCatalogCategory[]>;
|
|
305
|
+
/**
|
|
306
|
+
* Search accessible saved-family and project-construction metadata without downloading recipes.
|
|
307
|
+
* Categories are data, not an SDK enum. Legacy mesh inventories and unsaved drafts are excluded.
|
|
308
|
+
* Inspect selected references with get before placement; a search match does not prove validity
|
|
309
|
+
* or supported behavior. Pagination reads live data, not a snapshot. Failures reject.
|
|
310
|
+
* @param args Text/category filters, page limit (default 20, maximum 50), and opaque cursor.
|
|
311
|
+
* @returns Compact metadata and continuation. Continue until nextCursor is null or a suitable
|
|
312
|
+
* family is found. Concurrent changes can leave an empty page with continuation.
|
|
313
|
+
*/
|
|
314
|
+
abstract search(args?: PluginCatalogSearchArgs): PluginApiReturn<PluginCatalogSearchResult>;
|
|
315
|
+
/** @param kind Optional element filter. @returns Accessible entries and their supported API paths. */
|
|
316
|
+
abstract list(kind?: PluginCatalogKind): PluginApiReturn<PluginCatalogEntry[]>;
|
|
317
|
+
/** @param reference Exact reference from search or list. @returns The current entry, or null when unavailable. */
|
|
318
|
+
abstract get(reference: PluginCatalogReference): PluginApiReturn<PluginCatalogEntry | null>;
|
|
319
|
+
}
|
|
320
|
+
//# sourceMappingURL=catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/api/design/catalog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAOlD,uFAAuF;AACvF,eAAO,MAAM,0BAA0B;;;kBAK5B,CAAA;AACX,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,0BAA0B,CAClC,CAAA;AAED,qGAAqG;AACrG,eAAO,MAAM,kBAAkB,yFAG9B,CAAA;AACD,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEnE,8FAA8F;AAC9F,eAAO,MAAM,sBAAsB;;;iCAGjC,CAAA;AACF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAE3E,uGAAuG;AACvG,eAAO,MAAM,qBAAqB;;;;;;kBAKvB,CAAA;AACX,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE,2FAA2F;AAC3F,eAAO,MAAM,mBAAmB;;;;;;kBAG/B,CAAA;AACD,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAErE,eAAO,MAAM,wBAAwB;;;;;;;kBAEnC,CAAA;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAC/E,eAAO,MAAM,uBAAuB;;;;;;;;;;kBAElC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,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AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE,sGAAsG;AACtG,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;iBAM/B,CAAA;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AACvE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;iBAGpC,CAAA;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,yBAAyB,CACjC,CAAA;AAED,qGAAqG;AACrG,8BAAsB,sBAAsB;IAC1C;;;;;;;;;OASG;IACH,QAAQ,CAAC,cAAc,CACrB,IAAI,CAAC,EAAE,+BAA+B,GACrC,eAAe,CAAC,qBAAqB,EAAE,CAAC;IAC3C;;;;;;;;OAQG;IACH,QAAQ,CAAC,MAAM,CACb,IAAI,CAAC,EAAE,uBAAuB,GAC7B,eAAe,CAAC,yBAAyB,CAAC;IAC7C,sGAAsG;IACtG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,iBAAiB,GAAG,eAAe,CAAC,kBAAkB,EAAE,CAAC;IAC9E,kHAAkH;IAClH,QAAQ,CAAC,GAAG,CACV,SAAS,EAAE,sBAAsB,GAChC,eAAe,CAAC,kBAAkB,GAAG,IAAI,CAAC;CAC9C"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
+
import { ComponentHandle } from "../../../handles";
|
|
2
3
|
/**
|
|
3
4
|
* Maximum items per bulk `design.create.*` call. A bounded request keeps
|
|
4
5
|
* validation, command capture and rollback work finite; split a larger import
|
|
@@ -49,7 +50,7 @@ export type PluginWallTopProfile = z.infer<typeof PluginWallTopProfile>;
|
|
|
49
50
|
* | `profile` | {@linkcode ProfileHandle} | Ordered curve chain (wall centerlines) |
|
|
50
51
|
* | `height` | `number`? | Wall height (Snaptrude units, > 0; default engine default) |
|
|
51
52
|
* | `thickness` | `number`? | Wall thickness (Snaptrude units, > 0; default: `wallType`'s total layer thickness when given, else engine default) |
|
|
52
|
-
* | `wallType` |
|
|
53
|
+
* | `wallType` | {@linkcode PluginWallType}? | Legacy name/id or exact native `{ id, version }` pin from `design.types.list("wall")` (default generic) |
|
|
53
54
|
* | `storey` | `number`? (int) | Target storey (must exist) — the run's walls are assigned + lifted to its base in the same undo entry (default: geometry-derived) |
|
|
54
55
|
* | `topProfiles` | ({@linkcode PluginWallTopProfile} \| `null`)[]? | Top edge per curve of `profile`, same order; a `null` or missing entry keeps that wall flat at `height`. Raked / gabled walls (straight curves only) |
|
|
55
56
|
*/
|
|
@@ -57,12 +58,16 @@ export declare const PluginCreateWallRunItem: z.ZodObject<{
|
|
|
57
58
|
profile: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"profile">, string>>;
|
|
58
59
|
height: z.ZodOptional<z.ZodNumber>;
|
|
59
60
|
thickness: z.ZodOptional<z.ZodNumber>;
|
|
60
|
-
wallType: z.ZodOptional<z.ZodString
|
|
61
|
+
wallType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
62
|
+
id: z.ZodString;
|
|
63
|
+
version: z.ZodNumber;
|
|
64
|
+
}, z.core.$strip>]>>;
|
|
61
65
|
storey: z.ZodOptional<z.ZodNumber>;
|
|
62
66
|
topProfiles: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
63
67
|
along: z.ZodNumber;
|
|
64
68
|
height: z.ZodNumber;
|
|
65
69
|
}, z.core.$strip>>>>>;
|
|
70
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>>>;
|
|
66
71
|
}, z.core.$strip>;
|
|
67
72
|
export type PluginCreateWallRunItem = z.infer<typeof PluginCreateWallRunItem>;
|
|
68
73
|
/** The `items` array of {@linkcode PluginDesignCreateApi.wallRuns} (1…1000). */
|
|
@@ -70,12 +75,16 @@ export declare const PluginCreateWallRunItems: z.ZodArray<z.ZodObject<{
|
|
|
70
75
|
profile: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"profile">, string>>;
|
|
71
76
|
height: z.ZodOptional<z.ZodNumber>;
|
|
72
77
|
thickness: z.ZodOptional<z.ZodNumber>;
|
|
73
|
-
wallType: z.ZodOptional<z.ZodString
|
|
78
|
+
wallType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
79
|
+
id: z.ZodString;
|
|
80
|
+
version: z.ZodNumber;
|
|
81
|
+
}, z.core.$strip>]>>;
|
|
74
82
|
storey: z.ZodOptional<z.ZodNumber>;
|
|
75
83
|
topProfiles: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
76
84
|
along: z.ZodNumber;
|
|
77
85
|
height: z.ZodNumber;
|
|
78
86
|
}, z.core.$strip>>>>>;
|
|
87
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>>>;
|
|
79
88
|
}, z.core.$strip>>;
|
|
80
89
|
export type PluginCreateWallRunItems = z.infer<typeof PluginCreateWallRunItems>;
|
|
81
90
|
/**
|
|
@@ -103,26 +112,29 @@ export declare const PluginCreateFloorItems: z.ZodArray<z.ZodObject<{
|
|
|
103
112
|
export type PluginCreateFloorItems = z.infer<typeof PluginCreateFloorItems>;
|
|
104
113
|
/**
|
|
105
114
|
* One door to place via {@linkcode PluginDesignCreateApi.doors} — the same
|
|
106
|
-
* fields as a `"door"` {@linkcode PluginDesignCreateOpeningOptions}
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
* jamb it is hinged on. Rejects unknown fields.
|
|
115
|
+
* fields as a `"door"` {@linkcode PluginDesignCreateOpeningOptions}.
|
|
116
|
+
* Values are evaluated before cutting. Numeric lengths use SU; unit strings
|
|
117
|
+
* are accepted in values. `facing` selects local +Z; `hinge` sets the declared
|
|
118
|
+
* hand enum (left = local -X, right = +X). Both are world points.
|
|
111
119
|
*
|
|
112
120
|
* | Property | Type | Description |
|
|
113
121
|
* |---|---|---|
|
|
114
|
-
* | `
|
|
122
|
+
* | `familyId` | `string` | Hosted door family definition ID |
|
|
123
|
+
* | `version` | `number`? | Exact version; newest known by default |
|
|
124
|
+
* | `values` | `Record<string, number \| string>`? | Authored parameter overrides |
|
|
115
125
|
* | `hostWall` | {@linkcode ComponentHandle} | The wall to host the door |
|
|
116
126
|
* | `position` | {@linkcode Vec3Handle} | World point projected onto the wall |
|
|
117
127
|
* | `facing` | {@linkcode Vec3Handle}? | World point on the side the door swings open to (default engine-chosen) |
|
|
118
|
-
* | `hinge` | {@linkcode Vec3Handle}? | World point near the
|
|
128
|
+
* | `hinge` | {@linkcode Vec3Handle}? | World point near the hinged jamb; requires hand control |
|
|
119
129
|
* | `label` | `string`? | Instance name (optional) |
|
|
120
|
-
* | `width` | `number`? |
|
|
121
|
-
* | `height` | `number`? |
|
|
130
|
+
* | `width` | `number`? | Declared width parameter (SU, > 0), not evaluated hole width |
|
|
131
|
+
* | `height` | `number`? | Declared height parameter (SU, > 0) |
|
|
122
132
|
*/
|
|
123
133
|
export declare const PluginCreateDoorItem: z.ZodObject<{
|
|
124
|
-
|
|
125
|
-
|
|
134
|
+
familyId: z.ZodString;
|
|
135
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
136
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
137
|
+
hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
126
138
|
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
|
|
127
139
|
facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
128
140
|
hinge: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
@@ -133,8 +145,10 @@ export declare const PluginCreateDoorItem: z.ZodObject<{
|
|
|
133
145
|
export type PluginCreateDoorItem = z.infer<typeof PluginCreateDoorItem>;
|
|
134
146
|
/** The `items` array of {@linkcode PluginDesignCreateApi.doors} (1…1000). */
|
|
135
147
|
export declare const PluginCreateDoorItems: z.ZodArray<z.ZodObject<{
|
|
136
|
-
|
|
137
|
-
|
|
148
|
+
familyId: z.ZodString;
|
|
149
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
150
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
151
|
+
hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
138
152
|
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
|
|
139
153
|
facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
140
154
|
hinge: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
@@ -154,20 +168,24 @@ export type PluginCreateDoorItems = z.infer<typeof PluginCreateDoorItems>;
|
|
|
154
168
|
*
|
|
155
169
|
* | Property | Type | Description |
|
|
156
170
|
* |---|---|---|
|
|
157
|
-
* | `
|
|
171
|
+
* | `familyId` | `string` | Hosted window family definition ID |
|
|
172
|
+
* | `version` | `number`? | Exact version; newest known by default |
|
|
173
|
+
* | `values` | `Record<string, number \| string>`? | Authored parameter overrides; numeric lengths use SU |
|
|
158
174
|
* | `hostWall` | {@linkcode ComponentHandle} | The wall to host the window |
|
|
159
175
|
* | `position` | {@linkcode Vec3Handle} | World point projected onto the wall |
|
|
160
176
|
* | `facing` | {@linkcode Vec3Handle}? | World point on the side the window opens to (default engine-chosen) |
|
|
161
|
-
* | `hinge` | {@linkcode Vec3Handle}? | World point near the
|
|
177
|
+
* | `hinge` | {@linkcode Vec3Handle}? | World point near the hinged jamb; requires hand control |
|
|
162
178
|
* | `label` | `string`? | Instance name (optional) |
|
|
163
|
-
* | `width` | `number`? |
|
|
164
|
-
* | `height` | `number`? |
|
|
165
|
-
* | `sillHeight` | `number`? |
|
|
179
|
+
* | `width` | `number`? | Declared width parameter (SU, > 0), not evaluated hole width |
|
|
180
|
+
* | `height` | `number`? | Declared height parameter (SU, > 0) |
|
|
181
|
+
* | `sillHeight` | `number`? | Declared sill parameter (SU, ≥ 0); position Y is ignored |
|
|
166
182
|
*/
|
|
167
183
|
export declare const PluginCreateWindowItem: z.ZodObject<{
|
|
168
184
|
sillHeight: z.ZodOptional<z.ZodNumber>;
|
|
169
|
-
|
|
170
|
-
|
|
185
|
+
familyId: z.ZodString;
|
|
186
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
187
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
188
|
+
hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
171
189
|
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
|
|
172
190
|
facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
173
191
|
hinge: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
@@ -179,8 +197,10 @@ export type PluginCreateWindowItem = z.infer<typeof PluginCreateWindowItem>;
|
|
|
179
197
|
/** The `items` array of {@linkcode PluginDesignCreateApi.windows} (1…1000). */
|
|
180
198
|
export declare const PluginCreateWindowItems: z.ZodArray<z.ZodObject<{
|
|
181
199
|
sillHeight: z.ZodOptional<z.ZodNumber>;
|
|
182
|
-
|
|
183
|
-
|
|
200
|
+
familyId: z.ZodString;
|
|
201
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
202
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
203
|
+
hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
184
204
|
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
|
|
185
205
|
facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
186
206
|
hinge: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
@@ -226,4 +246,24 @@ export declare const PluginCreateFurnitureItems: z.ZodArray<z.ZodObject<{
|
|
|
226
246
|
angleInDegrees: z.ZodOptional<z.ZodNumber>;
|
|
227
247
|
}, z.core.$strip>>;
|
|
228
248
|
export type PluginCreateFurnitureItems = z.infer<typeof PluginCreateFurnitureItems>;
|
|
249
|
+
/**
|
|
250
|
+
* One void to cut via {@linkcode PluginDesignCreateApi.voids} — the same fields as
|
|
251
|
+
* {@linkcode PluginDesignCreateApi.void}. Rejects unknown fields.
|
|
252
|
+
*
|
|
253
|
+
* | Property | Type | Description |
|
|
254
|
+
* | --- | --- | --- |
|
|
255
|
+
* | `host` | {@linkcode ComponentHandle} | The slab, floor, roof or ceiling to cut through. Not a wall. |
|
|
256
|
+
* | `outline` | {@linkcode ProfileHandle} | Closed, flat plan outline in world SU (all points at one height). That height is ignored: it is dropped straight onto the host's top face. |
|
|
257
|
+
*/
|
|
258
|
+
export declare const PluginCreateVoidItem: z.ZodObject<{
|
|
259
|
+
host: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
260
|
+
outline: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"profile">, string>>;
|
|
261
|
+
}, z.core.$strict>;
|
|
262
|
+
export type PluginCreateVoidItem = z.infer<typeof PluginCreateVoidItem>;
|
|
263
|
+
/** The `items` array of {@linkcode PluginDesignCreateApi.voids} (1…1000; the host takes at most 200, 50 per host). */
|
|
264
|
+
export declare const PluginCreateVoidItems: z.ZodArray<z.ZodObject<{
|
|
265
|
+
host: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
266
|
+
outline: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"profile">, string>>;
|
|
267
|
+
}, z.core.$strict>>;
|
|
268
|
+
export type PluginCreateVoidItems = z.infer<typeof PluginCreateVoidItems>;
|
|
229
269
|
//# sourceMappingURL=bulk-items.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk-items.d.ts","sourceRoot":"","sources":["../../../../src/api/design/create/bulk-items.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"bulk-items.d.ts","sourceRoot":"","sources":["../../../../src/api/design/create/bulk-items.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM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