@snaptrude/plugin-core 0.9.15 → 0.9.16-networks-20261009.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/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 +418 -0
- package/dist/api/core/camera/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/catalog.d.ts +242 -0
- package/dist/api/design/catalog.d.ts.map +1 -0
- package/dist/api/design/create/bulk-items.d.ts +40 -21
- package/dist/api/design/create/bulk-items.d.ts.map +1 -1
- package/dist/api/design/create/index.d.ts +120 -97
- 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/doors/index.d.ts +18 -24
- package/dist/api/design/doors/index.d.ts.map +1 -1
- package/dist/api/design/family.d.ts +576 -12
- 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 +30 -30
- 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 +40 -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/index.d.ts +9 -0
- package/dist/api/presentation/index.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/index.cjs +3262 -2185
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3153 -2185
- 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 +400 -1
- package/src/api/design/bim.ts +121 -0
- package/src/api/design/catalog.ts +128 -0
- package/src/api/design/create/bulk-items.ts +23 -16
- package/src/api/design/create/index.ts +129 -119
- package/src/api/design/create/opening-fields.ts +15 -12
- package/src/api/design/doors/index.ts +58 -42
- package/src/api/design/family.ts +470 -17
- package/src/api/design/index.ts +34 -4
- package/src/api/design/networks.ts +607 -0
- package/src/api/design/types/index.ts +31 -24
- package/src/api/design/update/index.ts +41 -3
- package/src/api/design/windows/index.ts +40 -22
- package/src/api/presentation/index.ts +9 -0
- package/src/api/presentation/walkthroughs.ts +1201 -0
- package/api-manifest.full.json +0 -8930
- package/api-manifest.json +0 -9318
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ComponentHandle } from "../../handles";
|
|
3
|
+
import type { PluginApiReturn } from "../../types";
|
|
4
|
+
/** Read scope. Omit spaces to inspect the active proposal's sketch spaces. */
|
|
5
|
+
export declare const PluginBimContextArgs: z.ZodObject<{
|
|
6
|
+
spaces: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>>;
|
|
7
|
+
}, z.core.$strict>;
|
|
8
|
+
export type PluginBimContextArgs = z.infer<typeof PluginBimContextArgs>;
|
|
9
|
+
/** Directed graph edge. Side A lies along world-up × curve-direction; side B is opposite.
|
|
10
|
+
* Region IDs are snapshot identifiers, not component handles. Null means no adjacent region.
|
|
11
|
+
*/
|
|
12
|
+
export declare const PluginBimEdge: z.ZodObject<{
|
|
13
|
+
id: z.ZodString;
|
|
14
|
+
startMm: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
15
|
+
endMm: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
16
|
+
lengthMm: z.ZodNumber;
|
|
17
|
+
heightMm: z.ZodNumber;
|
|
18
|
+
sideA: z.ZodNullable<z.ZodString>;
|
|
19
|
+
sideB: z.ZodNullable<z.ZodString>;
|
|
20
|
+
wall: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
|
|
21
|
+
supported: z.ZodBoolean;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export type PluginBimEdge = z.infer<typeof PluginBimEdge>;
|
|
24
|
+
/** Construction context is detached. Revision covers geometry, room metadata and construction state. */
|
|
25
|
+
export declare const PluginBimContext: z.ZodObject<{
|
|
26
|
+
revision: z.ZodString;
|
|
27
|
+
proposalId: z.ZodString;
|
|
28
|
+
units: z.ZodLiteral<"mm">;
|
|
29
|
+
spaces: z.ZodArray<z.ZodObject<{
|
|
30
|
+
component: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
31
|
+
label: z.ZodString;
|
|
32
|
+
storey: z.ZodNumber;
|
|
33
|
+
eligible: z.ZodBoolean;
|
|
34
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
regions: z.ZodArray<z.ZodObject<{
|
|
37
|
+
id: z.ZodString;
|
|
38
|
+
spaces: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
edges: z.ZodArray<z.ZodObject<{
|
|
41
|
+
id: z.ZodString;
|
|
42
|
+
startMm: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
43
|
+
endMm: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
44
|
+
lengthMm: z.ZodNumber;
|
|
45
|
+
heightMm: z.ZodNumber;
|
|
46
|
+
sideA: z.ZodNullable<z.ZodString>;
|
|
47
|
+
sideB: z.ZodNullable<z.ZodString>;
|
|
48
|
+
wall: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
|
|
49
|
+
supported: z.ZodBoolean;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
export type PluginBimContext = z.infer<typeof PluginBimContext>;
|
|
53
|
+
/** Plan-local key selects either an existing construction or a new project-only native recipe.
|
|
54
|
+
* Bundles use the native DSL's SU/unit-expression rules; values overrides use mm/degrees.
|
|
55
|
+
*/
|
|
56
|
+
export declare const PluginBimConstruction: z.ZodUnion<readonly [z.ZodObject<{
|
|
57
|
+
key: z.ZodString;
|
|
58
|
+
reference: z.ZodUnion<readonly [z.ZodObject<{
|
|
59
|
+
id: z.ZodString;
|
|
60
|
+
version: z.ZodNumber;
|
|
61
|
+
}, z.core.$strict>, z.ZodString]>;
|
|
62
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
63
|
+
key: z.ZodString;
|
|
64
|
+
bundle: z.ZodObject<{
|
|
65
|
+
root: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
66
|
+
deps: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
67
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
68
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
69
|
+
role: z.ZodEnum<{
|
|
70
|
+
pipe: "pipe";
|
|
71
|
+
duct: "duct";
|
|
72
|
+
wire: "wire";
|
|
73
|
+
cable: "cable";
|
|
74
|
+
conduit: "conduit";
|
|
75
|
+
cableDuct: "cableDuct";
|
|
76
|
+
cableTray: "cableTray";
|
|
77
|
+
connector: "connector";
|
|
78
|
+
equipment: "equipment";
|
|
79
|
+
}>;
|
|
80
|
+
lengthParameter: z.ZodOptional<z.ZodString>;
|
|
81
|
+
ports: z.ZodArray<z.ZodObject<{
|
|
82
|
+
id: z.ZodString;
|
|
83
|
+
position: z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>;
|
|
84
|
+
direction: z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>;
|
|
85
|
+
size: z.ZodString;
|
|
86
|
+
height: z.ZodOptional<z.ZodString>;
|
|
87
|
+
widthDirection: z.ZodOptional<z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>>;
|
|
88
|
+
systems: z.ZodArray<z.ZodString>;
|
|
89
|
+
}, z.core.$strict>>;
|
|
90
|
+
}, z.core.$strict>>;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
}, z.core.$strict>]>;
|
|
93
|
+
export type PluginBimConstruction = z.infer<typeof PluginBimConstruction>;
|
|
94
|
+
/** Every unwalled edge in the selected scope needs exactly one assignment.
|
|
95
|
+
* The first authored layer faces sideA unless reversed. Alignment sets the initial core-centre offset.
|
|
96
|
+
* Later parameter edits preserve the offset and reject invalid core alignment.
|
|
97
|
+
*/
|
|
98
|
+
export declare const PluginBimWallAssignment: z.ZodObject<{
|
|
99
|
+
edgeId: z.ZodString;
|
|
100
|
+
construction: z.ZodString;
|
|
101
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>>>;
|
|
102
|
+
reversed: z.ZodBoolean;
|
|
103
|
+
alignment: z.ZodLiteral<"coreCentre">;
|
|
104
|
+
}, z.core.$strict>;
|
|
105
|
+
export type PluginBimWallAssignment = z.infer<typeof PluginBimWallAssignment>;
|
|
106
|
+
export declare const PluginBimPrepareArgs: z.ZodObject<{
|
|
107
|
+
revision: z.ZodString;
|
|
108
|
+
spaces: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
|
|
109
|
+
constructions: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
110
|
+
key: z.ZodString;
|
|
111
|
+
reference: z.ZodUnion<readonly [z.ZodObject<{
|
|
112
|
+
id: z.ZodString;
|
|
113
|
+
version: z.ZodNumber;
|
|
114
|
+
}, z.core.$strict>, z.ZodString]>;
|
|
115
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
116
|
+
key: z.ZodString;
|
|
117
|
+
bundle: z.ZodObject<{
|
|
118
|
+
root: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
119
|
+
deps: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
120
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
121
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
122
|
+
role: z.ZodEnum<{
|
|
123
|
+
pipe: "pipe";
|
|
124
|
+
duct: "duct";
|
|
125
|
+
wire: "wire";
|
|
126
|
+
cable: "cable";
|
|
127
|
+
conduit: "conduit";
|
|
128
|
+
cableDuct: "cableDuct";
|
|
129
|
+
cableTray: "cableTray";
|
|
130
|
+
connector: "connector";
|
|
131
|
+
equipment: "equipment";
|
|
132
|
+
}>;
|
|
133
|
+
lengthParameter: z.ZodOptional<z.ZodString>;
|
|
134
|
+
ports: z.ZodArray<z.ZodObject<{
|
|
135
|
+
id: z.ZodString;
|
|
136
|
+
position: z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>;
|
|
137
|
+
direction: z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>;
|
|
138
|
+
size: z.ZodString;
|
|
139
|
+
height: z.ZodOptional<z.ZodString>;
|
|
140
|
+
widthDirection: z.ZodOptional<z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>>;
|
|
141
|
+
systems: z.ZodArray<z.ZodString>;
|
|
142
|
+
}, z.core.$strict>>;
|
|
143
|
+
}, z.core.$strict>>;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
}, z.core.$strict>]>>;
|
|
146
|
+
walls: z.ZodArray<z.ZodObject<{
|
|
147
|
+
edgeId: z.ZodString;
|
|
148
|
+
construction: z.ZodString;
|
|
149
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>>>;
|
|
150
|
+
reversed: z.ZodBoolean;
|
|
151
|
+
alignment: z.ZodLiteral<"coreCentre">;
|
|
152
|
+
}, z.core.$strict>>;
|
|
153
|
+
}, z.core.$strict>;
|
|
154
|
+
export type PluginBimPrepareArgs = z.infer<typeof PluginBimPrepareArgs>;
|
|
155
|
+
/** Expected recipe/plan failures are diagnostics. No scene or library change occurs during prepare. */
|
|
156
|
+
export declare const PluginBimPreparation: z.ZodObject<{
|
|
157
|
+
ok: z.ZodBoolean;
|
|
158
|
+
preparationId: z.ZodOptional<z.ZodString>;
|
|
159
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
160
|
+
path: z.ZodString;
|
|
161
|
+
message: z.ZodString;
|
|
162
|
+
}, z.core.$strip>>;
|
|
163
|
+
}, z.core.$strip>;
|
|
164
|
+
export type PluginBimPreparation = z.infer<typeof PluginBimPreparation>;
|
|
165
|
+
export declare const PluginBimCreateArgs: z.ZodObject<{
|
|
166
|
+
preparationId: z.ZodString;
|
|
167
|
+
}, z.core.$strict>;
|
|
168
|
+
/** Source IDs identify removed sketch spaces, not live handles. Successful storeys share one undo step.
|
|
169
|
+
* Failed storeys remain spaces. Cancellation rolls back the whole conversion. Persistence is queued
|
|
170
|
+
* through normal model commands; this result is not a durable server-save acknowledgement.
|
|
171
|
+
*/
|
|
172
|
+
export declare const PluginBimResult: z.ZodObject<{
|
|
173
|
+
status: z.ZodEnum<{
|
|
174
|
+
created: "created";
|
|
175
|
+
cancelled: "cancelled";
|
|
176
|
+
partial: "partial";
|
|
177
|
+
unchanged: "unchanged";
|
|
178
|
+
}>;
|
|
179
|
+
convertedSpaceIds: z.ZodArray<z.ZodString>;
|
|
180
|
+
created: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
|
|
181
|
+
kept: z.ZodArray<z.ZodObject<{
|
|
182
|
+
space: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
183
|
+
reason: z.ZodString;
|
|
184
|
+
}, z.core.$strip>>;
|
|
185
|
+
}, z.core.$strip>;
|
|
186
|
+
export type PluginBimResult = z.infer<typeof PluginBimResult>;
|
|
187
|
+
/** Agent-driven Sketch-to-BIM. Uses PG2 topology; never redraws routes or publishes library families. */
|
|
188
|
+
export declare abstract class PluginDesignBimApi {
|
|
189
|
+
/** Read room adjacency and native conversion eligibility in the active proposal.
|
|
190
|
+
* @param options Optional explicit spaces; filters edges but keeps adjacent room metadata.
|
|
191
|
+
* @returns Rooms, directed boundaries in mm, eligibility and revision.
|
|
192
|
+
* @examplePrompt Inspect the rooms on each side of these sketch wall boundaries
|
|
193
|
+
*/
|
|
194
|
+
abstract getContext(options?: PluginBimContextArgs): PluginApiReturn<PluginBimContext>;
|
|
195
|
+
/** Stage a complete wall-construction assignment. A new prepare replaces this plugin's prior plan.
|
|
196
|
+
* @param plan Exact context revision, selected spaces, constructions and edge assignments.
|
|
197
|
+
* @returns Diagnostics or an opaque preparation ID, scoped to the caller and current project.
|
|
198
|
+
* @examplePrompt Validate wall layer assignments before converting sketch rooms to BIM
|
|
199
|
+
*/
|
|
200
|
+
abstract prepare(plan: PluginBimPrepareArgs): PluginApiReturn<PluginBimPreparation>;
|
|
201
|
+
/** Execute native Sketch-to-BIM. Revalidates scope, catalogue access and construction before mutation.
|
|
202
|
+
* Uses native progress/cancel controls and worker cancellation. Floors/roofs retain project defaults.
|
|
203
|
+
* @param preparationId ID returned by prepare. Consumed once; stale or foreign IDs throw PRECONDITION_FAILED.
|
|
204
|
+
* @returns Created component handles and explicit converted/kept outcomes, including partial success.
|
|
205
|
+
* @examplePrompt Convert these sketch rooms to BIM with wall layers chosen for each room boundary
|
|
206
|
+
*/
|
|
207
|
+
abstract create(preparationId: string): PluginApiReturn<PluginBimResult>;
|
|
208
|
+
}
|
|
209
|
+
//# sourceMappingURL=bim.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{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,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AACvE,eAAO,MAAM,mBAAmB;;kBAA2C,CAAA;AAE3E;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;iBAK1B,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AAE7D,yGAAyG;AACzG,8BAAsB,kBAAkB;IACtC;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,oBAAoB,GAAG,eAAe,CAAC,gBAAgB,CAAC;IAEtF;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CAAC,IAAI,EAAE,oBAAoB,GAAG,eAAe,CAAC,oBAAoB,CAAC;IAEnF;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,CAAC,aAAa,EAAE,MAAM,GAAG,eAAe,CAAC,eAAe,CAAC;CACzE"}
|
|
@@ -0,0 +1,242 @@
|
|
|
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
|
+
beam: "beam";
|
|
96
|
+
column: "column";
|
|
97
|
+
door: "door";
|
|
98
|
+
window: "window";
|
|
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
|
+
beam: "beam";
|
|
122
|
+
column: "column";
|
|
123
|
+
door: "door";
|
|
124
|
+
window: "window";
|
|
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
|
+
beam: "beam";
|
|
224
|
+
column: "column";
|
|
225
|
+
door: "door";
|
|
226
|
+
window: "window";
|
|
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
|
+
/** Shared read surface over existing libraries. Does not publish, register, or place definitions. */
|
|
236
|
+
export declare abstract class PluginDesignCatalogApi {
|
|
237
|
+
/** @param kind Optional element filter. @returns Accessible entries and their supported API paths. */
|
|
238
|
+
abstract list(kind?: PluginCatalogKind): PluginApiReturn<PluginCatalogEntry[]>;
|
|
239
|
+
/** @param reference Exact reference from list. @returns The current entry, or null when unavailable. */
|
|
240
|
+
abstract get(reference: PluginCatalogReference): PluginApiReturn<PluginCatalogEntry | null>;
|
|
241
|
+
}
|
|
242
|
+
//# 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;AAIlD,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,sBAAs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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiB7B,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AACnE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;iBAEhC,CAAA;AACF,eAAO,MAAM,oBAAoB;;;;;iBAE/B,CAAA;AAEF,qGAAqG;AACrG,8BAAsB,sBAAsB;IAC1C,sGAAsG;IACtG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,iBAAiB,GAAG,eAAe,CAAC,kBAAkB,EAAE,CAAC;IAC9E,wGAAwG;IACxG,QAAQ,CAAC,GAAG,CACV,SAAS,EAAE,sBAAsB,GAChC,eAAe,CAAC,kBAAkB,GAAG,IAAI,CAAC;CAC9C"}
|
|
@@ -49,7 +49,7 @@ export type PluginWallTopProfile = z.infer<typeof PluginWallTopProfile>;
|
|
|
49
49
|
* | `profile` | {@linkcode ProfileHandle} | Ordered curve chain (wall centerlines) |
|
|
50
50
|
* | `height` | `number`? | Wall height (Snaptrude units, > 0; default engine default) |
|
|
51
51
|
* | `thickness` | `number`? | Wall thickness (Snaptrude units, > 0; default: `wallType`'s total layer thickness when given, else engine default) |
|
|
52
|
-
* | `wallType` |
|
|
52
|
+
* | `wallType` | {@linkcode PluginWallType}? | Legacy name/id or exact native `{ id, version }` pin from `design.types.list("wall")` (default generic) |
|
|
53
53
|
* | `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
54
|
* | `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
55
|
*/
|
|
@@ -57,12 +57,16 @@ export declare const PluginCreateWallRunItem: z.ZodObject<{
|
|
|
57
57
|
profile: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"profile">, string>>;
|
|
58
58
|
height: z.ZodOptional<z.ZodNumber>;
|
|
59
59
|
thickness: z.ZodOptional<z.ZodNumber>;
|
|
60
|
-
wallType: z.ZodOptional<z.ZodString
|
|
60
|
+
wallType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
61
|
+
id: z.ZodString;
|
|
62
|
+
version: z.ZodNumber;
|
|
63
|
+
}, z.core.$strip>]>>;
|
|
61
64
|
storey: z.ZodOptional<z.ZodNumber>;
|
|
62
65
|
topProfiles: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
63
66
|
along: z.ZodNumber;
|
|
64
67
|
height: z.ZodNumber;
|
|
65
68
|
}, z.core.$strip>>>>>;
|
|
69
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>>>;
|
|
66
70
|
}, z.core.$strip>;
|
|
67
71
|
export type PluginCreateWallRunItem = z.infer<typeof PluginCreateWallRunItem>;
|
|
68
72
|
/** The `items` array of {@linkcode PluginDesignCreateApi.wallRuns} (1…1000). */
|
|
@@ -70,12 +74,16 @@ export declare const PluginCreateWallRunItems: z.ZodArray<z.ZodObject<{
|
|
|
70
74
|
profile: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"profile">, string>>;
|
|
71
75
|
height: z.ZodOptional<z.ZodNumber>;
|
|
72
76
|
thickness: z.ZodOptional<z.ZodNumber>;
|
|
73
|
-
wallType: z.ZodOptional<z.ZodString
|
|
77
|
+
wallType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
78
|
+
id: z.ZodString;
|
|
79
|
+
version: z.ZodNumber;
|
|
80
|
+
}, z.core.$strip>]>>;
|
|
74
81
|
storey: z.ZodOptional<z.ZodNumber>;
|
|
75
82
|
topProfiles: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
76
83
|
along: z.ZodNumber;
|
|
77
84
|
height: z.ZodNumber;
|
|
78
85
|
}, z.core.$strip>>>>>;
|
|
86
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>>>;
|
|
79
87
|
}, z.core.$strip>>;
|
|
80
88
|
export type PluginCreateWallRunItems = z.infer<typeof PluginCreateWallRunItems>;
|
|
81
89
|
/**
|
|
@@ -103,25 +111,28 @@ export declare const PluginCreateFloorItems: z.ZodArray<z.ZodObject<{
|
|
|
103
111
|
export type PluginCreateFloorItems = z.infer<typeof PluginCreateFloorItems>;
|
|
104
112
|
/**
|
|
105
113
|
* 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.
|
|
114
|
+
* fields as a `"door"` {@linkcode PluginDesignCreateOpeningOptions}.
|
|
115
|
+
* Values are evaluated before cutting. Numeric lengths use SU; unit strings
|
|
116
|
+
* are accepted in values. `facing` selects local +Z; `hinge` sets the declared
|
|
117
|
+
* hand enum (left = local -X, right = +X). Both are world points.
|
|
111
118
|
*
|
|
112
119
|
* | Property | Type | Description |
|
|
113
120
|
* |---|---|---|
|
|
114
|
-
* | `
|
|
121
|
+
* | `familyId` | `string` | Hosted door family definition ID |
|
|
122
|
+
* | `version` | `number`? | Exact version; newest known by default |
|
|
123
|
+
* | `values` | `Record<string, number \| string>`? | Authored parameter overrides |
|
|
115
124
|
* | `hostWall` | {@linkcode ComponentHandle} | The wall to host the door |
|
|
116
125
|
* | `position` | {@linkcode Vec3Handle} | World point projected onto the wall |
|
|
117
126
|
* | `facing` | {@linkcode Vec3Handle}? | World point on the side the door swings open to (default engine-chosen) |
|
|
118
|
-
* | `hinge` | {@linkcode Vec3Handle}? | World point near the
|
|
127
|
+
* | `hinge` | {@linkcode Vec3Handle}? | World point near the hinged jamb; requires hand control |
|
|
119
128
|
* | `label` | `string`? | Instance name (optional) |
|
|
120
|
-
* | `width` | `number`? |
|
|
121
|
-
* | `height` | `number`? |
|
|
129
|
+
* | `width` | `number`? | Declared width parameter (SU, > 0), not evaluated hole width |
|
|
130
|
+
* | `height` | `number`? | Declared height parameter (SU, > 0) |
|
|
122
131
|
*/
|
|
123
132
|
export declare const PluginCreateDoorItem: z.ZodObject<{
|
|
124
|
-
|
|
133
|
+
familyId: z.ZodString;
|
|
134
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
135
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
125
136
|
hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").ComponentHandle, string>>;
|
|
126
137
|
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
|
|
127
138
|
facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
@@ -133,7 +144,9 @@ export declare const PluginCreateDoorItem: z.ZodObject<{
|
|
|
133
144
|
export type PluginCreateDoorItem = z.infer<typeof PluginCreateDoorItem>;
|
|
134
145
|
/** The `items` array of {@linkcode PluginDesignCreateApi.doors} (1…1000). */
|
|
135
146
|
export declare const PluginCreateDoorItems: z.ZodArray<z.ZodObject<{
|
|
136
|
-
|
|
147
|
+
familyId: z.ZodString;
|
|
148
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
149
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
137
150
|
hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").ComponentHandle, string>>;
|
|
138
151
|
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
|
|
139
152
|
facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
@@ -154,19 +167,23 @@ export type PluginCreateDoorItems = z.infer<typeof PluginCreateDoorItems>;
|
|
|
154
167
|
*
|
|
155
168
|
* | Property | Type | Description |
|
|
156
169
|
* |---|---|---|
|
|
157
|
-
* | `
|
|
170
|
+
* | `familyId` | `string` | Hosted window family definition ID |
|
|
171
|
+
* | `version` | `number`? | Exact version; newest known by default |
|
|
172
|
+
* | `values` | `Record<string, number \| string>`? | Authored parameter overrides; numeric lengths use SU |
|
|
158
173
|
* | `hostWall` | {@linkcode ComponentHandle} | The wall to host the window |
|
|
159
174
|
* | `position` | {@linkcode Vec3Handle} | World point projected onto the wall |
|
|
160
175
|
* | `facing` | {@linkcode Vec3Handle}? | World point on the side the window opens to (default engine-chosen) |
|
|
161
|
-
* | `hinge` | {@linkcode Vec3Handle}? | World point near the
|
|
176
|
+
* | `hinge` | {@linkcode Vec3Handle}? | World point near the hinged jamb; requires hand control |
|
|
162
177
|
* | `label` | `string`? | Instance name (optional) |
|
|
163
|
-
* | `width` | `number`? |
|
|
164
|
-
* | `height` | `number`? |
|
|
165
|
-
* | `sillHeight` | `number`? |
|
|
178
|
+
* | `width` | `number`? | Declared width parameter (SU, > 0), not evaluated hole width |
|
|
179
|
+
* | `height` | `number`? | Declared height parameter (SU, > 0) |
|
|
180
|
+
* | `sillHeight` | `number`? | Declared sill parameter (SU, ≥ 0); position Y is ignored |
|
|
166
181
|
*/
|
|
167
182
|
export declare const PluginCreateWindowItem: z.ZodObject<{
|
|
168
183
|
sillHeight: z.ZodOptional<z.ZodNumber>;
|
|
169
|
-
|
|
184
|
+
familyId: z.ZodString;
|
|
185
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
186
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
170
187
|
hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").ComponentHandle, string>>;
|
|
171
188
|
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
|
|
172
189
|
facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
@@ -179,7 +196,9 @@ export type PluginCreateWindowItem = z.infer<typeof PluginCreateWindowItem>;
|
|
|
179
196
|
/** The `items` array of {@linkcode PluginDesignCreateApi.windows} (1…1000). */
|
|
180
197
|
export declare const PluginCreateWindowItems: z.ZodArray<z.ZodObject<{
|
|
181
198
|
sillHeight: z.ZodOptional<z.ZodNumber>;
|
|
182
|
-
|
|
199
|
+
familyId: z.ZodString;
|
|
200
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
201
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
183
202
|
hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").ComponentHandle, string>>;
|
|
184
203
|
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
|
|
185
204
|
facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
@@ -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,KAAK,CAAA;AAMxB;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,OAAO,CAAA;AAM7C;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB;;;iBAGpC,CAAA;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,yBAAyB,CACjC,CAAA;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,oBAAoB;;;kBA0B7B,CAAA;AACJ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAMvE;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;iBASlC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE7E,gFAAgF;AAChF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;kBAGJ,CAAA;AACjC,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAM/E;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB;;;;iBAIhC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE,8EAA8E;AAC9E,eAAO,MAAM,sBAAsB;;;;kBAGF,CAAA;AACjC,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAM3E;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,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