@snaptrude/plugin-core 0.0.0-dev-20260827194031 → 0.0.0-dev-20260908074328
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 +23 -0
- 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 {
|
|
@@ -2328,6 +2337,7 @@ var PluginEntityProperties = z42.object({
|
|
|
2328
2337
|
isLocked: z42.boolean(),
|
|
2329
2338
|
isHidden: z42.boolean(),
|
|
2330
2339
|
isSelected: z42.boolean(),
|
|
2340
|
+
isVisible: z42.boolean(),
|
|
2331
2341
|
boundingBox: BBoxComponents,
|
|
2332
2342
|
adjacency: z42.array(z42.object({ spaceId: z42.string(), value: z42.number() }))
|
|
2333
2343
|
}).partial();
|
|
@@ -2677,6 +2687,9 @@ import * as z50 from "zod";
|
|
|
2677
2687
|
var PluginDesignDeleteEntitiesArgs = z50.object({
|
|
2678
2688
|
components: z50.array(ComponentHandle).min(1)
|
|
2679
2689
|
});
|
|
2690
|
+
var PluginDesignDeleteResult = PluginDesignChangeResult.extend({
|
|
2691
|
+
cascaded: z50.array(ComponentHandle).optional()
|
|
2692
|
+
});
|
|
2680
2693
|
var PluginDesignDeleteApi = class {
|
|
2681
2694
|
constructor() {
|
|
2682
2695
|
}
|
|
@@ -4007,6 +4020,7 @@ var PluginSheetPosition = z71.object({
|
|
|
4007
4020
|
x: z71.number(),
|
|
4008
4021
|
y: z71.number()
|
|
4009
4022
|
});
|
|
4023
|
+
var PluginViewLod = z71.enum(["design", "bim"]);
|
|
4010
4024
|
var PluginPresentationSheetsListResult = z71.object({
|
|
4011
4025
|
sheets: z71.array(PluginPresentationSheet)
|
|
4012
4026
|
});
|
|
@@ -4032,7 +4046,8 @@ var PluginPresentationSheetsPlaceArgs = z71.object({
|
|
|
4032
4046
|
sheetId: z71.string(),
|
|
4033
4047
|
viewId: z71.string(),
|
|
4034
4048
|
position: PluginSheetPosition.optional(),
|
|
4035
|
-
scale: z71.number().positive().optional()
|
|
4049
|
+
scale: z71.number().positive().optional(),
|
|
4050
|
+
lod: PluginViewLod.optional()
|
|
4036
4051
|
});
|
|
4037
4052
|
var PluginPresentationSheetsPlaceResult = z71.object({
|
|
4038
4053
|
shapeId: z71.string()
|
|
@@ -4089,7 +4104,9 @@ var PluginPlacedView = z72.object({
|
|
|
4089
4104
|
is3d: z72.boolean(),
|
|
4090
4105
|
rotation: z72.number(),
|
|
4091
4106
|
crop: PluginPlacedViewCrop.nullable(),
|
|
4092
|
-
isUnlinked: z72.boolean()
|
|
4107
|
+
isUnlinked: z72.boolean(),
|
|
4108
|
+
lod: PluginViewLod.optional(),
|
|
4109
|
+
inactiveBuildingMask: z72.boolean().optional()
|
|
4093
4110
|
});
|
|
4094
4111
|
var PluginPresentationPlacedViewsListArgs = z72.object({
|
|
4095
4112
|
sheetId: z72.string().optional()
|
|
@@ -4230,6 +4247,10 @@ var PluginPlacedViewsSetMaskArgs = z72.object({
|
|
|
4230
4247
|
shapeId: z72.string().min(1),
|
|
4231
4248
|
enabled: z72.boolean()
|
|
4232
4249
|
});
|
|
4250
|
+
var PluginPlacedViewsSetLodArgs = z72.object({
|
|
4251
|
+
shapeId: z72.string().min(1),
|
|
4252
|
+
lod: PluginViewLod
|
|
4253
|
+
});
|
|
4233
4254
|
|
|
4234
4255
|
// src/api/presentation/diagrams.ts
|
|
4235
4256
|
import * as z73 from "zod";
|
|
@@ -5396,6 +5417,10 @@ var PLUGIN_ERROR_CODES = [
|
|
|
5396
5417
|
"NO_ACTIVE_STRUCTURE",
|
|
5397
5418
|
"NO_ELIGIBLE_ELEMENTS",
|
|
5398
5419
|
"PROPOSAL_SWITCH_BLOCKED",
|
|
5420
|
+
"HANDLE_STALE",
|
|
5421
|
+
"KIND_HIDDEN_IN_MODE",
|
|
5422
|
+
"MERGED_INTO_EXISTING",
|
|
5423
|
+
"BLOCKED_IN_BIM",
|
|
5399
5424
|
"INTERNAL",
|
|
5400
5425
|
"UNKNOWN"
|
|
5401
5426
|
];
|
|
@@ -5453,6 +5478,22 @@ var CODE_META = {
|
|
|
5453
5478
|
category: "execution",
|
|
5454
5479
|
hintTemplate: "Wait for the in-canvas agent run to finish, then retry."
|
|
5455
5480
|
},
|
|
5481
|
+
HANDLE_STALE: {
|
|
5482
|
+
category: "handle",
|
|
5483
|
+
hintTemplate: "The entity was retired by a parametric resolution (merge/split/rebuild); re-query for its successor."
|
|
5484
|
+
},
|
|
5485
|
+
KIND_HIDDEN_IN_MODE: {
|
|
5486
|
+
category: "execution",
|
|
5487
|
+
hintTemplate: "This entity kind has no representation in the current mode/LOD; switch mode or target a visible kind."
|
|
5488
|
+
},
|
|
5489
|
+
MERGED_INTO_EXISTING: {
|
|
5490
|
+
category: "execution",
|
|
5491
|
+
hintTemplate: "The created geometry merged into an existing entity; use the surviving handles from details."
|
|
5492
|
+
},
|
|
5493
|
+
BLOCKED_IN_BIM: {
|
|
5494
|
+
category: "execution",
|
|
5495
|
+
hintTemplate: "This operation is unavailable in BIM mode; switch to Design and retry."
|
|
5496
|
+
},
|
|
5456
5497
|
INTERNAL: {
|
|
5457
5498
|
category: "internal",
|
|
5458
5499
|
hintTemplate: "Host-side fault. Report with errorId."
|
|
@@ -5888,6 +5929,7 @@ export {
|
|
|
5888
5929
|
PluginDesignCreateWindowArgs,
|
|
5889
5930
|
PluginDesignDeleteApi,
|
|
5890
5931
|
PluginDesignDeleteEntitiesArgs,
|
|
5932
|
+
PluginDesignDeleteResult,
|
|
5891
5933
|
PluginDesignDoorArgs,
|
|
5892
5934
|
PluginDesignDoorExistsArgs,
|
|
5893
5935
|
PluginDesignDoorGetCatalogItemArgs,
|
|
@@ -5949,6 +5991,7 @@ export {
|
|
|
5949
5991
|
PluginDesignQuerySpacesGetEnclosureArgs,
|
|
5950
5992
|
PluginDesignQuerySpacesGetProperty,
|
|
5951
5993
|
PluginDesignQuerySpacesGetResult,
|
|
5994
|
+
PluginDesignQuerySpacesListGeneratedBimArgs,
|
|
5952
5995
|
PluginDesignRotateArgs,
|
|
5953
5996
|
PluginDesignSelectionAddArgs,
|
|
5954
5997
|
PluginDesignSelectionApi,
|
|
@@ -6226,6 +6269,7 @@ export {
|
|
|
6226
6269
|
PluginPlacedViewsMoveShapeArgs,
|
|
6227
6270
|
PluginPlacedViewsResizeShapeArgs,
|
|
6228
6271
|
PluginPlacedViewsSetLabelHiddenArgs,
|
|
6272
|
+
PluginPlacedViewsSetLodArgs,
|
|
6229
6273
|
PluginPlacedViewsSetMaskArgs,
|
|
6230
6274
|
PluginPlacedViewsSetOpacityArgs,
|
|
6231
6275
|
PluginPlacedViewsUpdateFontStylesArgs,
|
|
@@ -6507,6 +6551,7 @@ export {
|
|
|
6507
6551
|
PluginSpaceCreateRectangularResult,
|
|
6508
6552
|
PluginSpaceDeleteArgs,
|
|
6509
6553
|
PluginSpaceEnclosure,
|
|
6554
|
+
PluginSpaceGeneratedBim,
|
|
6510
6555
|
PluginSpaceGeometryUpdate,
|
|
6511
6556
|
PluginSpaceGetAllResult,
|
|
6512
6557
|
PluginSpaceGetArgs,
|
|
@@ -6601,6 +6646,7 @@ export {
|
|
|
6601
6646
|
PluginVec3Api,
|
|
6602
6647
|
PluginViewLabelType,
|
|
6603
6648
|
PluginViewLineStyle,
|
|
6649
|
+
PluginViewLod,
|
|
6604
6650
|
PluginViewSettingCategory,
|
|
6605
6651
|
PluginWallUpdates,
|
|
6606
6652
|
PluginWeatherGetSeriesArgs,
|