@snaptrude/plugin-core 0.9.6 → 0.11.0-rc.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 +17 -0
- package/api-manifest.full.json +6928 -0
- package/api-manifest.json +26 -3
- package/dist/api/design/create/index.d.ts +29 -6
- package/dist/api/design/create/index.d.ts.map +1 -1
- package/dist/api/design/delete/index.d.ts +20 -2
- package/dist/api/design/delete/index.d.ts.map +1 -1
- package/dist/api/design/query/index.d.ts +2 -0
- package/dist/api/design/query/index.d.ts.map +1 -1
- package/dist/api/design/query/spaces.d.ts +61 -0
- package/dist/api/design/query/spaces.d.ts.map +1 -1
- package/dist/api/entity/space.d.ts +3 -0
- package/dist/api/entity/space.d.ts.map +1 -1
- package/dist/api/presentation/placedViews.d.ts +35 -1
- package/dist/api/presentation/placedViews.d.ts.map +1 -1
- package/dist/api/presentation/sheets.d.ts +20 -2
- package/dist/api/presentation/sheets.d.ts.map +1 -1
- package/dist/errors/codes.d.ts +8 -3
- package/dist/errors/codes.d.ts.map +1 -1
- package/dist/index.cjs +54 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +49 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/snaptrude-plugin-core-0.11.0.tgz +0 -0
- package/src/api/design/create/index.ts +34 -8
- package/src/api/design/delete/index.ts +20 -1
- package/src/api/design/query/index.ts +2 -0
- package/src/api/design/query/spaces.ts +68 -0
- package/src/api/entity/space.ts +2 -0
- package/src/api/presentation/placedViews.ts +29 -1
- package/src/api/presentation/sheets.ts +19 -3
- package/src/errors/codes.ts +30 -2
- package/test/errors.test.mjs +4 -0
package/dist/index.js
CHANGED
|
@@ -1928,7 +1928,8 @@ var PluginSpaceUpdateResult = z38.object({
|
|
|
1928
1928
|
massType: z38.string().optional(),
|
|
1929
1929
|
spaceType: z38.string().optional(),
|
|
1930
1930
|
areaClass: PluginAreaClass.optional(),
|
|
1931
|
-
departmentId: z38.string().nullable().optional()
|
|
1931
|
+
departmentId: z38.string().nullable().optional(),
|
|
1932
|
+
rebuilt: z38.boolean().optional()
|
|
1932
1933
|
});
|
|
1933
1934
|
var PluginSpaceBulkCreateItem = z38.discriminatedUnion("kind", [
|
|
1934
1935
|
z38.object({
|
|
@@ -2257,6 +2258,14 @@ var PluginSpaceEnclosure = z41.object({
|
|
|
2257
2258
|
surfaces: z41.array(PluginEnclosureSurface),
|
|
2258
2259
|
adjacentSpaces: z41.array(PluginAdjacentSpace)
|
|
2259
2260
|
});
|
|
2261
|
+
var PluginDesignQuerySpacesListGeneratedBimArgs = z41.object({
|
|
2262
|
+
space: ComponentHandle
|
|
2263
|
+
});
|
|
2264
|
+
var PluginSpaceGeneratedBim = z41.object({
|
|
2265
|
+
walls: z41.array(ComponentHandle),
|
|
2266
|
+
floors: z41.array(ComponentHandle),
|
|
2267
|
+
slabs: z41.array(ComponentHandle)
|
|
2268
|
+
});
|
|
2260
2269
|
|
|
2261
2270
|
// src/api/design/query/referenceLines.ts
|
|
2262
2271
|
var PluginDesignQueryReferenceLinesApi = class {
|
|
@@ -2327,6 +2336,7 @@ var PluginEntityProperties = z42.object({
|
|
|
2327
2336
|
isLocked: z42.boolean(),
|
|
2328
2337
|
isHidden: z42.boolean(),
|
|
2329
2338
|
isSelected: z42.boolean(),
|
|
2339
|
+
isVisible: z42.boolean(),
|
|
2330
2340
|
boundingBox: BBoxComponents,
|
|
2331
2341
|
adjacency: z42.array(z42.object({ spaceId: z42.string(), value: z42.number() }))
|
|
2332
2342
|
}).partial();
|
|
@@ -2676,6 +2686,9 @@ import * as z50 from "zod";
|
|
|
2676
2686
|
var PluginDesignDeleteEntitiesArgs = z50.object({
|
|
2677
2687
|
components: z50.array(ComponentHandle).min(1)
|
|
2678
2688
|
});
|
|
2689
|
+
var PluginDesignDeleteResult = PluginDesignChangeResult.extend({
|
|
2690
|
+
cascaded: z50.array(ComponentHandle).optional()
|
|
2691
|
+
});
|
|
2679
2692
|
var PluginDesignDeleteApi = class {
|
|
2680
2693
|
constructor() {
|
|
2681
2694
|
}
|
|
@@ -3969,6 +3982,7 @@ var PluginSheetPosition = z70.object({
|
|
|
3969
3982
|
x: z70.number(),
|
|
3970
3983
|
y: z70.number()
|
|
3971
3984
|
});
|
|
3985
|
+
var PluginViewLod = z70.enum(["design", "bim"]);
|
|
3972
3986
|
var PluginPresentationSheetsListResult = z70.object({
|
|
3973
3987
|
sheets: z70.array(PluginPresentationSheet)
|
|
3974
3988
|
});
|
|
@@ -3994,7 +4008,8 @@ var PluginPresentationSheetsPlaceArgs = z70.object({
|
|
|
3994
4008
|
sheetId: z70.string(),
|
|
3995
4009
|
viewId: z70.string(),
|
|
3996
4010
|
position: PluginSheetPosition.optional(),
|
|
3997
|
-
scale: z70.number().positive().optional()
|
|
4011
|
+
scale: z70.number().positive().optional(),
|
|
4012
|
+
lod: PluginViewLod.optional()
|
|
3998
4013
|
});
|
|
3999
4014
|
var PluginPresentationSheetsPlaceResult = z70.object({
|
|
4000
4015
|
shapeId: z70.string()
|
|
@@ -4051,7 +4066,9 @@ var PluginPlacedView = z71.object({
|
|
|
4051
4066
|
is3d: z71.boolean(),
|
|
4052
4067
|
rotation: z71.number(),
|
|
4053
4068
|
crop: PluginPlacedViewCrop.nullable(),
|
|
4054
|
-
isUnlinked: z71.boolean()
|
|
4069
|
+
isUnlinked: z71.boolean(),
|
|
4070
|
+
lod: PluginViewLod.optional(),
|
|
4071
|
+
inactiveBuildingMask: z71.boolean().optional()
|
|
4055
4072
|
});
|
|
4056
4073
|
var PluginPresentationPlacedViewsListArgs = z71.object({
|
|
4057
4074
|
sheetId: z71.string().optional()
|
|
@@ -4192,6 +4209,10 @@ var PluginPlacedViewsSetMaskArgs = z71.object({
|
|
|
4192
4209
|
shapeId: z71.string().min(1),
|
|
4193
4210
|
enabled: z71.boolean()
|
|
4194
4211
|
});
|
|
4212
|
+
var PluginPlacedViewsSetLodArgs = z71.object({
|
|
4213
|
+
shapeId: z71.string().min(1),
|
|
4214
|
+
lod: PluginViewLod
|
|
4215
|
+
});
|
|
4195
4216
|
|
|
4196
4217
|
// src/api/presentation/diagrams.ts
|
|
4197
4218
|
import * as z72 from "zod";
|
|
@@ -5358,6 +5379,10 @@ var PLUGIN_ERROR_CODES = [
|
|
|
5358
5379
|
"NO_ACTIVE_STRUCTURE",
|
|
5359
5380
|
"NO_ELIGIBLE_ELEMENTS",
|
|
5360
5381
|
"PROPOSAL_SWITCH_BLOCKED",
|
|
5382
|
+
"HANDLE_STALE",
|
|
5383
|
+
"KIND_HIDDEN_IN_MODE",
|
|
5384
|
+
"MERGED_INTO_EXISTING",
|
|
5385
|
+
"BLOCKED_IN_BIM",
|
|
5361
5386
|
"INTERNAL",
|
|
5362
5387
|
"UNKNOWN"
|
|
5363
5388
|
];
|
|
@@ -5415,6 +5440,22 @@ var CODE_META = {
|
|
|
5415
5440
|
category: "execution",
|
|
5416
5441
|
hintTemplate: "Wait for the in-canvas agent run to finish, then retry."
|
|
5417
5442
|
},
|
|
5443
|
+
HANDLE_STALE: {
|
|
5444
|
+
category: "handle",
|
|
5445
|
+
hintTemplate: "The entity was retired by a parametric resolution (merge/split/rebuild); re-query for its successor."
|
|
5446
|
+
},
|
|
5447
|
+
KIND_HIDDEN_IN_MODE: {
|
|
5448
|
+
category: "execution",
|
|
5449
|
+
hintTemplate: "This entity kind has no representation in the current mode/LOD; switch mode or target a visible kind."
|
|
5450
|
+
},
|
|
5451
|
+
MERGED_INTO_EXISTING: {
|
|
5452
|
+
category: "execution",
|
|
5453
|
+
hintTemplate: "The created geometry merged into an existing entity; use the surviving handles from details."
|
|
5454
|
+
},
|
|
5455
|
+
BLOCKED_IN_BIM: {
|
|
5456
|
+
category: "execution",
|
|
5457
|
+
hintTemplate: "This operation is unavailable in BIM mode; switch to Design and retry."
|
|
5458
|
+
},
|
|
5418
5459
|
INTERNAL: {
|
|
5419
5460
|
category: "internal",
|
|
5420
5461
|
hintTemplate: "Host-side fault. Report with errorId."
|
|
@@ -5850,6 +5891,7 @@ export {
|
|
|
5850
5891
|
PluginDesignCreateWindowArgs,
|
|
5851
5892
|
PluginDesignDeleteApi,
|
|
5852
5893
|
PluginDesignDeleteEntitiesArgs,
|
|
5894
|
+
PluginDesignDeleteResult,
|
|
5853
5895
|
PluginDesignDoorArgs,
|
|
5854
5896
|
PluginDesignDoorExistsArgs,
|
|
5855
5897
|
PluginDesignDoorGetCatalogItemArgs,
|
|
@@ -5904,6 +5946,7 @@ export {
|
|
|
5904
5946
|
PluginDesignQuerySpacesGetEnclosureArgs,
|
|
5905
5947
|
PluginDesignQuerySpacesGetProperty,
|
|
5906
5948
|
PluginDesignQuerySpacesGetResult,
|
|
5949
|
+
PluginDesignQuerySpacesListGeneratedBimArgs,
|
|
5907
5950
|
PluginDesignRotateArgs,
|
|
5908
5951
|
PluginDesignSelectionAddArgs,
|
|
5909
5952
|
PluginDesignSelectionApi,
|
|
@@ -6180,6 +6223,7 @@ export {
|
|
|
6180
6223
|
PluginPlacedViewsMoveShapeArgs,
|
|
6181
6224
|
PluginPlacedViewsResizeShapeArgs,
|
|
6182
6225
|
PluginPlacedViewsSetLabelHiddenArgs,
|
|
6226
|
+
PluginPlacedViewsSetLodArgs,
|
|
6183
6227
|
PluginPlacedViewsSetMaskArgs,
|
|
6184
6228
|
PluginPlacedViewsSetOpacityArgs,
|
|
6185
6229
|
PluginPlacedViewsUpdateFontStylesArgs,
|
|
@@ -6461,6 +6505,7 @@ export {
|
|
|
6461
6505
|
PluginSpaceCreateRectangularResult,
|
|
6462
6506
|
PluginSpaceDeleteArgs,
|
|
6463
6507
|
PluginSpaceEnclosure,
|
|
6508
|
+
PluginSpaceGeneratedBim,
|
|
6464
6509
|
PluginSpaceGeometryUpdate,
|
|
6465
6510
|
PluginSpaceGetAllResult,
|
|
6466
6511
|
PluginSpaceGetArgs,
|
|
@@ -6555,6 +6600,7 @@ export {
|
|
|
6555
6600
|
PluginVec3Api,
|
|
6556
6601
|
PluginViewLabelType,
|
|
6557
6602
|
PluginViewLineStyle,
|
|
6603
|
+
PluginViewLod,
|
|
6558
6604
|
PluginViewSettingCategory,
|
|
6559
6605
|
PluginWallUpdates,
|
|
6560
6606
|
PluginWeatherGetSeriesArgs,
|