@snaptrude/plugin-core 0.11.0-rc.1 → 1.0.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/AGENTS.md +4 -0
- package/CHANGELOG.md +176 -14
- package/api-manifest.json +872 -49
- 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 +447 -0
- package/dist/api/core/camera/index.d.ts.map +1 -1
- package/dist/api/core/geom/create/index.d.ts +942 -101
- package/dist/api/core/geom/create/index.d.ts.map +1 -1
- package/dist/api/core/geom/query/brep.d.ts +59 -2
- package/dist/api/core/geom/query/brep.d.ts.map +1 -1
- package/dist/api/core/geom/query/curve.d.ts +59 -35
- package/dist/api/core/geom/query/curve.d.ts.map +1 -1
- package/dist/api/core/geom/query/edge.d.ts +2 -2
- package/dist/api/core/geom/query/face.d.ts +105 -0
- package/dist/api/core/geom/query/face.d.ts.map +1 -1
- package/dist/api/core/geom/update/contour.d.ts +10 -2
- package/dist/api/core/geom/update/contour.d.ts.map +1 -1
- package/dist/api/core/geom/update/curve.d.ts +5 -5
- package/dist/api/core/geom/update/profile.d.ts +3 -1
- package/dist/api/core/geom/update/profile.d.ts.map +1 -1
- package/dist/api/core/handles/index.d.ts +4 -2
- package/dist/api/core/handles/index.d.ts.map +1 -1
- package/dist/api/core/index.d.ts +4 -4
- package/dist/api/core/index.d.ts.map +1 -1
- package/dist/api/core/io/import/index.d.ts +3 -1
- package/dist/api/core/io/import/index.d.ts.map +1 -1
- package/dist/api/core/layers.d.ts +377 -255
- package/dist/api/core/layers.d.ts.map +1 -1
- package/dist/api/core/mode/index.d.ts +19 -7
- package/dist/api/core/mode/index.d.ts.map +1 -1
- package/dist/api/core/proposals/index.d.ts +4 -3
- package/dist/api/core/proposals/index.d.ts.map +1 -1
- package/dist/api/core/storeys/index.d.ts +17 -2
- package/dist/api/core/storeys/index.d.ts.map +1 -1
- package/dist/api/core/storeys/layers.d.ts +408 -0
- package/dist/api/core/storeys/layers.d.ts.map +1 -0
- package/dist/api/core/tags.d.ts +84 -3
- package/dist/api/core/tags.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 +299 -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 +269 -0
- package/dist/api/design/create/bulk-items.d.ts.map +1 -0
- package/dist/api/design/create/grids.d.ts +132 -0
- package/dist/api/design/create/grids.d.ts.map +1 -0
- package/dist/api/design/create/index.d.ts +753 -102
- package/dist/api/design/create/index.d.ts.map +1 -1
- package/dist/api/design/create/opening-fields.d.ts +38 -0
- package/dist/api/design/create/opening-fields.d.ts.map +1 -0
- package/dist/api/design/delete/index.d.ts +7 -20
- package/dist/api/design/delete/index.d.ts.map +1 -1
- package/dist/api/design/dimensions.d.ts +427 -0
- package/dist/api/design/dimensions.d.ts.map +1 -0
- package/dist/api/design/doors/index.d.ts +24 -23
- package/dist/api/design/doors/index.d.ts.map +1 -1
- package/dist/api/design/family.d.ts +1446 -0
- package/dist/api/design/family.d.ts.map +1 -0
- package/dist/api/design/grids.d.ts +237 -0
- package/dist/api/design/grids.d.ts.map +1 -0
- package/dist/api/design/index.d.ts +30 -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/geometry/index.d.ts +33 -5
- package/dist/api/design/query/geometry/index.d.ts.map +1 -1
- package/dist/api/design/query/grids.d.ts +287 -0
- package/dist/api/design/query/grids.d.ts.map +1 -0
- package/dist/api/design/query/index.d.ts +143 -36
- package/dist/api/design/query/index.d.ts.map +1 -1
- package/dist/api/design/query/spaces.d.ts +5 -66
- package/dist/api/design/query/spaces.d.ts.map +1 -1
- package/dist/api/design/selection/index.d.ts +12 -12
- 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 +412 -8
- 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/entity/buildableEnvelope.d.ts +84 -2
- package/dist/api/entity/buildableEnvelope.d.ts.map +1 -1
- package/dist/api/entity/referenceLine.d.ts +13 -1
- package/dist/api/entity/referenceLine.d.ts.map +1 -1
- package/dist/api/entity/space.d.ts +12 -15
- package/dist/api/entity/space.d.ts.map +1 -1
- package/dist/api/entity/story.d.ts +4 -4
- package/dist/api/presentation/aiInspiration.d.ts +24 -24
- package/dist/api/presentation/annotate.d.ts +38 -22
- package/dist/api/presentation/annotate.d.ts.map +1 -1
- package/dist/api/presentation/camera.d.ts +265 -0
- package/dist/api/presentation/camera.d.ts.map +1 -0
- 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/graphics.d.ts +419 -0
- package/dist/api/presentation/graphics.d.ts.map +1 -0
- package/dist/api/presentation/index.d.ts +66 -12
- package/dist/api/presentation/index.d.ts.map +1 -1
- package/dist/api/presentation/placedViews.d.ts +117 -51
- 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 -37
- package/dist/api/presentation/sheets.d.ts.map +1 -1
- package/dist/api/presentation/standards.d.ts +590 -0
- package/dist/api/presentation/standards.d.ts.map +1 -0
- 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 +144 -9
- package/dist/api/presentation/views.d.ts.map +1 -1
- package/dist/api/presentation/walkthroughs.d.ts +1350 -0
- package/dist/api/presentation/walkthroughs.d.ts.map +1 -0
- package/dist/api/program/departments.d.ts +58 -2
- package/dist/api/program/departments.d.ts.map +1 -1
- package/dist/api/program/index.d.ts +16 -6
- package/dist/api/program/index.d.ts.map +1 -1
- package/dist/api/program/labels.d.ts +355 -0
- package/dist/api/program/labels.d.ts.map +1 -0
- package/dist/api/program/metadata.d.ts +328 -0
- package/dist/api/program/metadata.d.ts.map +1 -0
- package/dist/api/program/site.d.ts +4 -4
- package/dist/api/program/spreadsheet.d.ts +267 -4
- package/dist/api/program/spreadsheet.d.ts.map +1 -1
- package/dist/api/workspace/index.d.ts +49 -2
- package/dist/api/workspace/index.d.ts.map +1 -1
- package/dist/errors/codes.d.ts +5 -8
- package/dist/errors/codes.d.ts.map +1 -1
- package/dist/handles.d.ts +32 -3
- package/dist/handles.d.ts.map +1 -1
- package/dist/index.cjs +6534 -2865
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6118 -2857
- package/dist/index.js.map +1 -1
- package/dist/massParameters.d.ts +287 -0
- package/dist/massParameters.d.ts.map +1 -0
- package/dist/massParameters.ops.d.ts +138 -0
- package/dist/massParameters.ops.d.ts.map +1 -0
- package/package.json +2 -1
- package/scripts/check-dist-fresh.mjs +22 -0
- package/scripts/generate-manifest.mjs +5 -0
- package/scripts/generate-manifest.test.mjs +14 -3
- package/src/api/core/camera/index.ts +429 -1
- package/src/api/core/geom/create/index.ts +1037 -102
- package/src/api/core/geom/query/brep.ts +60 -2
- package/src/api/core/geom/query/curve.ts +26 -2
- package/src/api/core/geom/query/edge.ts +2 -2
- package/src/api/core/geom/query/face.ts +109 -4
- package/src/api/core/geom/update/contour.ts +10 -2
- package/src/api/core/geom/update/profile.ts +2 -0
- package/src/api/core/handles/index.ts +3 -2
- package/src/api/core/index.ts +4 -4
- package/src/api/core/io/import/index.ts +11 -3
- package/src/api/core/layers.ts +380 -173
- package/src/api/core/mode/index.ts +19 -7
- package/src/api/core/proposals/index.ts +4 -3
- package/src/api/core/storeys/index.ts +19 -2
- package/src/api/core/storeys/layers.ts +339 -0
- package/src/api/core/tags.ts +76 -0
- package/src/api/core/zoom/index.ts +13 -0
- package/src/api/design/bim.ts +210 -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 +294 -0
- package/src/api/design/create/grids.ts +137 -0
- package/src/api/design/create/index.ts +824 -141
- package/src/api/design/create/opening-fields.ts +40 -0
- package/src/api/design/delete/index.ts +6 -20
- package/src/api/design/dimensions.ts +453 -0
- package/src/api/design/doors/index.ts +64 -41
- package/src/api/design/family.ts +1342 -0
- package/src/api/design/grids.ts +237 -0
- package/src/api/design/index.ts +49 -4
- package/src/api/design/networks.ts +607 -0
- package/src/api/design/query/geometry/index.ts +35 -4
- package/src/api/design/query/grids.ts +197 -0
- package/src/api/design/query/index.ts +105 -5
- package/src/api/design/query/spaces.ts +0 -68
- package/src/api/design/types/index.ts +31 -24
- package/src/api/design/update/index.ts +398 -4
- package/src/api/design/windows/index.ts +40 -22
- package/src/api/entity/buildableEnvelope.ts +77 -2
- package/src/api/entity/referenceLine.ts +25 -12
- package/src/api/entity/space.ts +0 -2
- package/src/api/presentation/annotate.ts +90 -58
- package/src/api/presentation/camera.ts +289 -0
- 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/graphics.ts +324 -0
- package/src/api/presentation/index.ts +73 -14
- package/src/api/presentation/placedViews.ts +120 -57
- package/src/api/presentation/sections.ts +420 -0
- package/src/api/presentation/sheets.ts +182 -37
- package/src/api/presentation/standards.ts +445 -0
- package/src/api/presentation/viewPresets.ts +241 -0
- package/src/api/presentation/views.ts +81 -10
- package/src/api/presentation/walkthroughs.ts +1201 -0
- package/src/api/program/departments.ts +54 -2
- package/src/api/program/index.ts +16 -6
- package/src/api/program/labels.ts +332 -0
- package/src/api/program/metadata.ts +364 -0
- package/src/api/program/spreadsheet.ts +282 -0
- package/src/api/workspace/index.ts +51 -2
- package/src/errors/codes.ts +9 -30
- package/src/handles.ts +42 -3
- package/src/index.ts +2 -0
- package/src/massParameters.ops.ts +246 -0
- package/src/massParameters.ts +427 -0
- package/test/drawingContract.test.mjs +288 -0
- package/test/errors.test.mjs +1 -4
- package/test/massParameters.test.mjs +952 -0
- package/test/paperPensContract.test.mjs +75 -0
- package/test/presentationViewSettings.test.mjs +85 -0
- package/api-manifest.full.json +0 -6928
- package/snaptrude-plugin-core-0.11.0.tgz +0 -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,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C,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"}
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ComponentHandle } from "../../../handles";
|
|
3
|
+
/**
|
|
4
|
+
* Maximum items per bulk `design.create.*` call. A bounded request keeps
|
|
5
|
+
* validation, command capture and rollback work finite; split a larger import
|
|
6
|
+
* into separate awaited batches, each with its own undo entry.
|
|
7
|
+
*/
|
|
8
|
+
export declare const PLUGIN_CREATE_BATCH_LIMIT = 1000;
|
|
9
|
+
/**
|
|
10
|
+
* One break point of a wall's top edge — see {@linkcode PluginWallTopProfile}.
|
|
11
|
+
*
|
|
12
|
+
* | Property | Type | Description |
|
|
13
|
+
* |---|---|---|
|
|
14
|
+
* | `along` | `number` | Position along the wall centerline as a fraction: `0` = start of the curve, `1` = end |
|
|
15
|
+
* | `height` | `number` | Top height above the wall base at that point (Snaptrude units, > 0) |
|
|
16
|
+
*/
|
|
17
|
+
export declare const PluginWallTopProfilePoint: z.ZodObject<{
|
|
18
|
+
along: z.ZodNumber;
|
|
19
|
+
height: z.ZodNumber;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export type PluginWallTopProfilePoint = z.infer<typeof PluginWallTopProfilePoint>;
|
|
22
|
+
/**
|
|
23
|
+
* The top edge of ONE wall as a polyline over its centerline: at least two
|
|
24
|
+
* points, `along` strictly increasing from `0` (curve start) to `1` (curve end),
|
|
25
|
+
* straight segments between them. Two points give a single slope (a raked
|
|
26
|
+
* wall), three give a gable, more give any stepped or folded ridge. Heights are
|
|
27
|
+
* measured from the wall base, like `height`. Both long faces follow the same
|
|
28
|
+
* profile, so the top stays a set of flat faces and the wall keeps its thickness
|
|
29
|
+
* end to end.
|
|
30
|
+
*
|
|
31
|
+
* Only straight centerlines take a top profile (an arc curve with one is
|
|
32
|
+
* rejected). A wall built this way is a real Wall — doors and windows host on
|
|
33
|
+
* it, corners mitre, quantities and Revit export read its geometry — but it is
|
|
34
|
+
* **non-parametric**: the parametric wall graph does not rebuild it, so a later
|
|
35
|
+
* move of a neighbour does not re-mitre its corner, exactly like a wall whose
|
|
36
|
+
* top edge was dragged by hand. `design.update.wall({ height })` scales it
|
|
37
|
+
* proportionally.
|
|
38
|
+
*/
|
|
39
|
+
export declare const PluginWallTopProfile: z.ZodArray<z.ZodObject<{
|
|
40
|
+
along: z.ZodNumber;
|
|
41
|
+
height: z.ZodNumber;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
export type PluginWallTopProfile = z.infer<typeof PluginWallTopProfile>;
|
|
44
|
+
/**
|
|
45
|
+
* One wall run to create via {@linkcode PluginDesignCreateApi.wallRuns} — the
|
|
46
|
+
* same inputs as {@linkcode PluginDesignCreateApi.walls}, one run per item.
|
|
47
|
+
*
|
|
48
|
+
* | Property | Type | Description |
|
|
49
|
+
* |---|---|---|
|
|
50
|
+
* | `profile` | {@linkcode ProfileHandle} | Ordered curve chain (wall centerlines) |
|
|
51
|
+
* | `height` | `number`? | Wall height (Snaptrude units, > 0; default engine default) |
|
|
52
|
+
* | `thickness` | `number`? | Wall thickness (Snaptrude units, > 0; default: `wallType`'s total layer thickness when given, else engine default) |
|
|
53
|
+
* | `wallType` | {@linkcode PluginWallType}? | Legacy name/id or exact native `{ id, version }` pin from `design.types.list("wall")` (default generic) |
|
|
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) |
|
|
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) |
|
|
56
|
+
*/
|
|
57
|
+
export declare const PluginCreateWallRunItem: z.ZodObject<{
|
|
58
|
+
profile: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"profile">, string>>;
|
|
59
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
thickness: z.ZodOptional<z.ZodNumber>;
|
|
61
|
+
wallType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
62
|
+
id: z.ZodString;
|
|
63
|
+
version: z.ZodNumber;
|
|
64
|
+
}, z.core.$strip>]>>;
|
|
65
|
+
storey: z.ZodOptional<z.ZodNumber>;
|
|
66
|
+
topProfiles: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
67
|
+
along: z.ZodNumber;
|
|
68
|
+
height: z.ZodNumber;
|
|
69
|
+
}, z.core.$strip>>>>>;
|
|
70
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>>>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
export type PluginCreateWallRunItem = z.infer<typeof PluginCreateWallRunItem>;
|
|
73
|
+
/** The `items` array of {@linkcode PluginDesignCreateApi.wallRuns} (1…1000). */
|
|
74
|
+
export declare const PluginCreateWallRunItems: z.ZodArray<z.ZodObject<{
|
|
75
|
+
profile: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"profile">, string>>;
|
|
76
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
77
|
+
thickness: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
wallType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
79
|
+
id: z.ZodString;
|
|
80
|
+
version: z.ZodNumber;
|
|
81
|
+
}, z.core.$strip>]>>;
|
|
82
|
+
storey: z.ZodOptional<z.ZodNumber>;
|
|
83
|
+
topProfiles: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
84
|
+
along: z.ZodNumber;
|
|
85
|
+
height: z.ZodNumber;
|
|
86
|
+
}, z.core.$strip>>>>>;
|
|
87
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>>>;
|
|
88
|
+
}, z.core.$strip>>;
|
|
89
|
+
export type PluginCreateWallRunItems = z.infer<typeof PluginCreateWallRunItems>;
|
|
90
|
+
/**
|
|
91
|
+
* One floor to create via {@linkcode PluginDesignCreateApi.floors} — the same
|
|
92
|
+
* footprint-extrude inputs as {@linkcode PluginDesignCreateApi.floor}.
|
|
93
|
+
*
|
|
94
|
+
* | Property | Type | Description |
|
|
95
|
+
* |---|---|---|
|
|
96
|
+
* | `contour` | {@linkcode ContourHandle} | Footprint (outer profile + holes) |
|
|
97
|
+
* | `thickness` | `number` | Floor thickness (Snaptrude units, > 0) |
|
|
98
|
+
* | `position` | {@linkcode Vec3Handle}? | Offset from origin (default origin) |
|
|
99
|
+
*/
|
|
100
|
+
export declare const PluginCreateFloorItem: z.ZodObject<{
|
|
101
|
+
contour: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"contour">, string>>;
|
|
102
|
+
thickness: z.ZodNumber;
|
|
103
|
+
position: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
export type PluginCreateFloorItem = z.infer<typeof PluginCreateFloorItem>;
|
|
106
|
+
/** The `items` array of {@linkcode PluginDesignCreateApi.floors} (1…1000). */
|
|
107
|
+
export declare const PluginCreateFloorItems: z.ZodArray<z.ZodObject<{
|
|
108
|
+
contour: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"contour">, string>>;
|
|
109
|
+
thickness: z.ZodNumber;
|
|
110
|
+
position: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
111
|
+
}, z.core.$strip>>;
|
|
112
|
+
export type PluginCreateFloorItems = z.infer<typeof PluginCreateFloorItems>;
|
|
113
|
+
/**
|
|
114
|
+
* One door to place via {@linkcode PluginDesignCreateApi.doors} — the same
|
|
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.
|
|
119
|
+
*
|
|
120
|
+
* | Property | Type | Description |
|
|
121
|
+
* |---|---|---|
|
|
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 |
|
|
125
|
+
* | `hostWall` | {@linkcode ComponentHandle} | The wall to host the door |
|
|
126
|
+
* | `position` | {@linkcode Vec3Handle} | World point projected onto the wall |
|
|
127
|
+
* | `facing` | {@linkcode Vec3Handle}? | World point on the side the door swings open to (default engine-chosen) |
|
|
128
|
+
* | `hinge` | {@linkcode Vec3Handle}? | World point near the hinged jamb; requires hand control |
|
|
129
|
+
* | `label` | `string`? | Instance name (optional) |
|
|
130
|
+
* | `width` | `number`? | Declared width parameter (SU, > 0), not evaluated hole width |
|
|
131
|
+
* | `height` | `number`? | Declared height parameter (SU, > 0) |
|
|
132
|
+
*/
|
|
133
|
+
export declare const PluginCreateDoorItem: z.ZodObject<{
|
|
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>>;
|
|
138
|
+
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
|
|
139
|
+
facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
140
|
+
hinge: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
141
|
+
label: z.ZodOptional<z.ZodString>;
|
|
142
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
143
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
144
|
+
}, z.core.$strict>;
|
|
145
|
+
export type PluginCreateDoorItem = z.infer<typeof PluginCreateDoorItem>;
|
|
146
|
+
/** The `items` array of {@linkcode PluginDesignCreateApi.doors} (1…1000). */
|
|
147
|
+
export declare const PluginCreateDoorItems: z.ZodArray<z.ZodObject<{
|
|
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>>;
|
|
152
|
+
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
|
|
153
|
+
facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
154
|
+
hinge: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
155
|
+
label: z.ZodOptional<z.ZodString>;
|
|
156
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
157
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
158
|
+
}, z.core.$strict>>;
|
|
159
|
+
export type PluginCreateDoorItems = z.infer<typeof PluginCreateDoorItems>;
|
|
160
|
+
/**
|
|
161
|
+
* One window to place via {@linkcode PluginDesignCreateApi.windows} — the same
|
|
162
|
+
* fields as a `"window"` {@linkcode PluginDesignCreateOpeningOptions}.
|
|
163
|
+
* `sillHeight` is a nonnegative Snaptrude-unit distance from the host wall's
|
|
164
|
+
* base to the BOTTOM of the window, not to its center. `facing` and `hinge`
|
|
165
|
+
* are WORLD POINTS, not directions: `facing` on the side of the wall the
|
|
166
|
+
* window opens to, `hinge` near the jamb it is hinged on. Rejects unknown
|
|
167
|
+
* fields.
|
|
168
|
+
*
|
|
169
|
+
* | Property | Type | Description |
|
|
170
|
+
* |---|---|---|
|
|
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 |
|
|
174
|
+
* | `hostWall` | {@linkcode ComponentHandle} | The wall to host the window |
|
|
175
|
+
* | `position` | {@linkcode Vec3Handle} | World point projected onto the wall |
|
|
176
|
+
* | `facing` | {@linkcode Vec3Handle}? | World point on the side the window opens to (default engine-chosen) |
|
|
177
|
+
* | `hinge` | {@linkcode Vec3Handle}? | World point near the hinged jamb; requires hand control |
|
|
178
|
+
* | `label` | `string`? | Instance name (optional) |
|
|
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 |
|
|
182
|
+
*/
|
|
183
|
+
export declare const PluginCreateWindowItem: z.ZodObject<{
|
|
184
|
+
sillHeight: z.ZodOptional<z.ZodNumber>;
|
|
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>>;
|
|
189
|
+
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
|
|
190
|
+
facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
191
|
+
hinge: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
192
|
+
label: z.ZodOptional<z.ZodString>;
|
|
193
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
194
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
195
|
+
}, z.core.$strict>;
|
|
196
|
+
export type PluginCreateWindowItem = z.infer<typeof PluginCreateWindowItem>;
|
|
197
|
+
/** The `items` array of {@linkcode PluginDesignCreateApi.windows} (1…1000). */
|
|
198
|
+
export declare const PluginCreateWindowItems: z.ZodArray<z.ZodObject<{
|
|
199
|
+
sillHeight: z.ZodOptional<z.ZodNumber>;
|
|
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>>;
|
|
204
|
+
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
|
|
205
|
+
facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
206
|
+
hinge: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
207
|
+
label: z.ZodOptional<z.ZodString>;
|
|
208
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
209
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
210
|
+
}, z.core.$strict>>;
|
|
211
|
+
export type PluginCreateWindowItems = z.infer<typeof PluginCreateWindowItems>;
|
|
212
|
+
/**
|
|
213
|
+
* One furniture instance to place via
|
|
214
|
+
* {@linkcode PluginDesignCreateApi.furnitureItems} — the same inputs as
|
|
215
|
+
* {@linkcode PluginDesignCreateApi.furniture} minus `createNewSourceMesh`: in a
|
|
216
|
+
* batch the host owns source-mesh persistence (a source is recorded once per
|
|
217
|
+
* call, however many items reuse it).
|
|
218
|
+
*
|
|
219
|
+
* `position.y` is the REST elevation: the item is grounded so its bounding-box
|
|
220
|
+
* base sits exactly at `position.y` (the same surface-flush contract as
|
|
221
|
+
* interactive drag-drop) — pass the floor/storey elevation to stand furniture
|
|
222
|
+
* on it; never add half the item's height yourself.
|
|
223
|
+
*
|
|
224
|
+
* | Property | Type | Description |
|
|
225
|
+
* |---|---|---|
|
|
226
|
+
* | `catalogId` | `string` | Library id: team `_id` or general `fullName` |
|
|
227
|
+
* | `position` | {@linkcode Vec3Handle} | Absolute world placement point (`y` = rest elevation) |
|
|
228
|
+
* | `label` | `string`? | Instance name and readable label (default auto `${name}Ins${n}`) |
|
|
229
|
+
* | `angleInDegrees` | `number`? | Rotation about the vertical axis, in degrees (default unrotated) |
|
|
230
|
+
*/
|
|
231
|
+
export declare const PluginCreateFurnitureItem: z.ZodObject<{
|
|
232
|
+
catalogId: z.ZodString;
|
|
233
|
+
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
|
|
234
|
+
label: z.ZodOptional<z.ZodString>;
|
|
235
|
+
angleInDegrees: z.ZodOptional<z.ZodNumber>;
|
|
236
|
+
}, z.core.$strip>;
|
|
237
|
+
export type PluginCreateFurnitureItem = z.infer<typeof PluginCreateFurnitureItem>;
|
|
238
|
+
/**
|
|
239
|
+
* The `items` array of {@linkcode PluginDesignCreateApi.furnitureItems}
|
|
240
|
+
* (1…1000).
|
|
241
|
+
*/
|
|
242
|
+
export declare const PluginCreateFurnitureItems: z.ZodArray<z.ZodObject<{
|
|
243
|
+
catalogId: z.ZodString;
|
|
244
|
+
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
|
|
245
|
+
label: z.ZodOptional<z.ZodString>;
|
|
246
|
+
angleInDegrees: z.ZodOptional<z.ZodNumber>;
|
|
247
|
+
}, z.core.$strip>>;
|
|
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>;
|
|
269
|
+
//# sourceMappingURL=bulk-items.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulk-items.d.ts","sourceRoot":"","sources":["../../../../src/api/design/create/bulk-items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