@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.cjs
CHANGED
|
@@ -367,6 +367,7 @@ __export(index_exports, {
|
|
|
367
367
|
PluginDesignCreateWindowArgs: () => PluginDesignCreateWindowArgs,
|
|
368
368
|
PluginDesignDeleteApi: () => PluginDesignDeleteApi,
|
|
369
369
|
PluginDesignDeleteEntitiesArgs: () => PluginDesignDeleteEntitiesArgs,
|
|
370
|
+
PluginDesignDeleteResult: () => PluginDesignDeleteResult,
|
|
370
371
|
PluginDesignDoorArgs: () => PluginDesignDoorArgs,
|
|
371
372
|
PluginDesignDoorExistsArgs: () => PluginDesignDoorExistsArgs,
|
|
372
373
|
PluginDesignDoorGetCatalogItemArgs: () => PluginDesignDoorGetCatalogItemArgs,
|
|
@@ -421,6 +422,7 @@ __export(index_exports, {
|
|
|
421
422
|
PluginDesignQuerySpacesGetEnclosureArgs: () => PluginDesignQuerySpacesGetEnclosureArgs,
|
|
422
423
|
PluginDesignQuerySpacesGetProperty: () => PluginDesignQuerySpacesGetProperty,
|
|
423
424
|
PluginDesignQuerySpacesGetResult: () => PluginDesignQuerySpacesGetResult,
|
|
425
|
+
PluginDesignQuerySpacesListGeneratedBimArgs: () => PluginDesignQuerySpacesListGeneratedBimArgs,
|
|
424
426
|
PluginDesignRotateArgs: () => PluginDesignRotateArgs,
|
|
425
427
|
PluginDesignSelectionAddArgs: () => PluginDesignSelectionAddArgs,
|
|
426
428
|
PluginDesignSelectionApi: () => PluginDesignSelectionApi,
|
|
@@ -697,6 +699,7 @@ __export(index_exports, {
|
|
|
697
699
|
PluginPlacedViewsMoveShapeArgs: () => PluginPlacedViewsMoveShapeArgs,
|
|
698
700
|
PluginPlacedViewsResizeShapeArgs: () => PluginPlacedViewsResizeShapeArgs,
|
|
699
701
|
PluginPlacedViewsSetLabelHiddenArgs: () => PluginPlacedViewsSetLabelHiddenArgs,
|
|
702
|
+
PluginPlacedViewsSetLodArgs: () => PluginPlacedViewsSetLodArgs,
|
|
700
703
|
PluginPlacedViewsSetMaskArgs: () => PluginPlacedViewsSetMaskArgs,
|
|
701
704
|
PluginPlacedViewsSetOpacityArgs: () => PluginPlacedViewsSetOpacityArgs,
|
|
702
705
|
PluginPlacedViewsUpdateFontStylesArgs: () => PluginPlacedViewsUpdateFontStylesArgs,
|
|
@@ -978,6 +981,7 @@ __export(index_exports, {
|
|
|
978
981
|
PluginSpaceCreateRectangularResult: () => PluginSpaceCreateRectangularResult,
|
|
979
982
|
PluginSpaceDeleteArgs: () => PluginSpaceDeleteArgs,
|
|
980
983
|
PluginSpaceEnclosure: () => PluginSpaceEnclosure,
|
|
984
|
+
PluginSpaceGeneratedBim: () => PluginSpaceGeneratedBim,
|
|
981
985
|
PluginSpaceGeometryUpdate: () => PluginSpaceGeometryUpdate,
|
|
982
986
|
PluginSpaceGetAllResult: () => PluginSpaceGetAllResult,
|
|
983
987
|
PluginSpaceGetArgs: () => PluginSpaceGetArgs,
|
|
@@ -1072,6 +1076,7 @@ __export(index_exports, {
|
|
|
1072
1076
|
PluginVec3Api: () => PluginVec3Api,
|
|
1073
1077
|
PluginViewLabelType: () => PluginViewLabelType,
|
|
1074
1078
|
PluginViewLineStyle: () => PluginViewLineStyle,
|
|
1079
|
+
PluginViewLod: () => PluginViewLod,
|
|
1075
1080
|
PluginViewSettingCategory: () => PluginViewSettingCategory,
|
|
1076
1081
|
PluginWallUpdates: () => PluginWallUpdates,
|
|
1077
1082
|
PluginWeatherGetSeriesArgs: () => PluginWeatherGetSeriesArgs,
|
|
@@ -3049,7 +3054,8 @@ var PluginSpaceUpdateResult = z38.object({
|
|
|
3049
3054
|
massType: z38.string().optional(),
|
|
3050
3055
|
spaceType: z38.string().optional(),
|
|
3051
3056
|
areaClass: PluginAreaClass.optional(),
|
|
3052
|
-
departmentId: z38.string().nullable().optional()
|
|
3057
|
+
departmentId: z38.string().nullable().optional(),
|
|
3058
|
+
rebuilt: z38.boolean().optional()
|
|
3053
3059
|
});
|
|
3054
3060
|
var PluginSpaceBulkCreateItem = z38.discriminatedUnion("kind", [
|
|
3055
3061
|
z38.object({
|
|
@@ -3378,6 +3384,14 @@ var PluginSpaceEnclosure = z41.object({
|
|
|
3378
3384
|
surfaces: z41.array(PluginEnclosureSurface),
|
|
3379
3385
|
adjacentSpaces: z41.array(PluginAdjacentSpace)
|
|
3380
3386
|
});
|
|
3387
|
+
var PluginDesignQuerySpacesListGeneratedBimArgs = z41.object({
|
|
3388
|
+
space: ComponentHandle
|
|
3389
|
+
});
|
|
3390
|
+
var PluginSpaceGeneratedBim = z41.object({
|
|
3391
|
+
walls: z41.array(ComponentHandle),
|
|
3392
|
+
floors: z41.array(ComponentHandle),
|
|
3393
|
+
slabs: z41.array(ComponentHandle)
|
|
3394
|
+
});
|
|
3381
3395
|
|
|
3382
3396
|
// src/api/design/query/referenceLines.ts
|
|
3383
3397
|
var PluginDesignQueryReferenceLinesApi = class {
|
|
@@ -3448,6 +3462,7 @@ var PluginEntityProperties = z42.object({
|
|
|
3448
3462
|
isLocked: z42.boolean(),
|
|
3449
3463
|
isHidden: z42.boolean(),
|
|
3450
3464
|
isSelected: z42.boolean(),
|
|
3465
|
+
isVisible: z42.boolean(),
|
|
3451
3466
|
boundingBox: BBoxComponents,
|
|
3452
3467
|
adjacency: z42.array(z42.object({ spaceId: z42.string(), value: z42.number() }))
|
|
3453
3468
|
}).partial();
|
|
@@ -3797,6 +3812,9 @@ var z50 = __toESM(require("zod"), 1);
|
|
|
3797
3812
|
var PluginDesignDeleteEntitiesArgs = z50.object({
|
|
3798
3813
|
components: z50.array(ComponentHandle).min(1)
|
|
3799
3814
|
});
|
|
3815
|
+
var PluginDesignDeleteResult = PluginDesignChangeResult.extend({
|
|
3816
|
+
cascaded: z50.array(ComponentHandle).optional()
|
|
3817
|
+
});
|
|
3800
3818
|
var PluginDesignDeleteApi = class {
|
|
3801
3819
|
constructor() {
|
|
3802
3820
|
}
|
|
@@ -5090,6 +5108,7 @@ var PluginSheetPosition = z70.object({
|
|
|
5090
5108
|
x: z70.number(),
|
|
5091
5109
|
y: z70.number()
|
|
5092
5110
|
});
|
|
5111
|
+
var PluginViewLod = z70.enum(["design", "bim"]);
|
|
5093
5112
|
var PluginPresentationSheetsListResult = z70.object({
|
|
5094
5113
|
sheets: z70.array(PluginPresentationSheet)
|
|
5095
5114
|
});
|
|
@@ -5115,7 +5134,8 @@ var PluginPresentationSheetsPlaceArgs = z70.object({
|
|
|
5115
5134
|
sheetId: z70.string(),
|
|
5116
5135
|
viewId: z70.string(),
|
|
5117
5136
|
position: PluginSheetPosition.optional(),
|
|
5118
|
-
scale: z70.number().positive().optional()
|
|
5137
|
+
scale: z70.number().positive().optional(),
|
|
5138
|
+
lod: PluginViewLod.optional()
|
|
5119
5139
|
});
|
|
5120
5140
|
var PluginPresentationSheetsPlaceResult = z70.object({
|
|
5121
5141
|
shapeId: z70.string()
|
|
@@ -5172,7 +5192,9 @@ var PluginPlacedView = z71.object({
|
|
|
5172
5192
|
is3d: z71.boolean(),
|
|
5173
5193
|
rotation: z71.number(),
|
|
5174
5194
|
crop: PluginPlacedViewCrop.nullable(),
|
|
5175
|
-
isUnlinked: z71.boolean()
|
|
5195
|
+
isUnlinked: z71.boolean(),
|
|
5196
|
+
lod: PluginViewLod.optional(),
|
|
5197
|
+
inactiveBuildingMask: z71.boolean().optional()
|
|
5176
5198
|
});
|
|
5177
5199
|
var PluginPresentationPlacedViewsListArgs = z71.object({
|
|
5178
5200
|
sheetId: z71.string().optional()
|
|
@@ -5313,6 +5335,10 @@ var PluginPlacedViewsSetMaskArgs = z71.object({
|
|
|
5313
5335
|
shapeId: z71.string().min(1),
|
|
5314
5336
|
enabled: z71.boolean()
|
|
5315
5337
|
});
|
|
5338
|
+
var PluginPlacedViewsSetLodArgs = z71.object({
|
|
5339
|
+
shapeId: z71.string().min(1),
|
|
5340
|
+
lod: PluginViewLod
|
|
5341
|
+
});
|
|
5316
5342
|
|
|
5317
5343
|
// src/api/presentation/diagrams.ts
|
|
5318
5344
|
var z72 = __toESM(require("zod"), 1);
|
|
@@ -6479,6 +6505,10 @@ var PLUGIN_ERROR_CODES = [
|
|
|
6479
6505
|
"NO_ACTIVE_STRUCTURE",
|
|
6480
6506
|
"NO_ELIGIBLE_ELEMENTS",
|
|
6481
6507
|
"PROPOSAL_SWITCH_BLOCKED",
|
|
6508
|
+
"HANDLE_STALE",
|
|
6509
|
+
"KIND_HIDDEN_IN_MODE",
|
|
6510
|
+
"MERGED_INTO_EXISTING",
|
|
6511
|
+
"BLOCKED_IN_BIM",
|
|
6482
6512
|
"INTERNAL",
|
|
6483
6513
|
"UNKNOWN"
|
|
6484
6514
|
];
|
|
@@ -6536,6 +6566,22 @@ var CODE_META = {
|
|
|
6536
6566
|
category: "execution",
|
|
6537
6567
|
hintTemplate: "Wait for the in-canvas agent run to finish, then retry."
|
|
6538
6568
|
},
|
|
6569
|
+
HANDLE_STALE: {
|
|
6570
|
+
category: "handle",
|
|
6571
|
+
hintTemplate: "The entity was retired by a parametric resolution (merge/split/rebuild); re-query for its successor."
|
|
6572
|
+
},
|
|
6573
|
+
KIND_HIDDEN_IN_MODE: {
|
|
6574
|
+
category: "execution",
|
|
6575
|
+
hintTemplate: "This entity kind has no representation in the current mode/LOD; switch mode or target a visible kind."
|
|
6576
|
+
},
|
|
6577
|
+
MERGED_INTO_EXISTING: {
|
|
6578
|
+
category: "execution",
|
|
6579
|
+
hintTemplate: "The created geometry merged into an existing entity; use the surviving handles from details."
|
|
6580
|
+
},
|
|
6581
|
+
BLOCKED_IN_BIM: {
|
|
6582
|
+
category: "execution",
|
|
6583
|
+
hintTemplate: "This operation is unavailable in BIM mode; switch to Design and retry."
|
|
6584
|
+
},
|
|
6539
6585
|
INTERNAL: {
|
|
6540
6586
|
category: "internal",
|
|
6541
6587
|
hintTemplate: "Host-side fault. Report with errorId."
|
|
@@ -6972,6 +7018,7 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
6972
7018
|
PluginDesignCreateWindowArgs,
|
|
6973
7019
|
PluginDesignDeleteApi,
|
|
6974
7020
|
PluginDesignDeleteEntitiesArgs,
|
|
7021
|
+
PluginDesignDeleteResult,
|
|
6975
7022
|
PluginDesignDoorArgs,
|
|
6976
7023
|
PluginDesignDoorExistsArgs,
|
|
6977
7024
|
PluginDesignDoorGetCatalogItemArgs,
|
|
@@ -7026,6 +7073,7 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
7026
7073
|
PluginDesignQuerySpacesGetEnclosureArgs,
|
|
7027
7074
|
PluginDesignQuerySpacesGetProperty,
|
|
7028
7075
|
PluginDesignQuerySpacesGetResult,
|
|
7076
|
+
PluginDesignQuerySpacesListGeneratedBimArgs,
|
|
7029
7077
|
PluginDesignRotateArgs,
|
|
7030
7078
|
PluginDesignSelectionAddArgs,
|
|
7031
7079
|
PluginDesignSelectionApi,
|
|
@@ -7302,6 +7350,7 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
7302
7350
|
PluginPlacedViewsMoveShapeArgs,
|
|
7303
7351
|
PluginPlacedViewsResizeShapeArgs,
|
|
7304
7352
|
PluginPlacedViewsSetLabelHiddenArgs,
|
|
7353
|
+
PluginPlacedViewsSetLodArgs,
|
|
7305
7354
|
PluginPlacedViewsSetMaskArgs,
|
|
7306
7355
|
PluginPlacedViewsSetOpacityArgs,
|
|
7307
7356
|
PluginPlacedViewsUpdateFontStylesArgs,
|
|
@@ -7583,6 +7632,7 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
7583
7632
|
PluginSpaceCreateRectangularResult,
|
|
7584
7633
|
PluginSpaceDeleteArgs,
|
|
7585
7634
|
PluginSpaceEnclosure,
|
|
7635
|
+
PluginSpaceGeneratedBim,
|
|
7586
7636
|
PluginSpaceGeometryUpdate,
|
|
7587
7637
|
PluginSpaceGetAllResult,
|
|
7588
7638
|
PluginSpaceGetArgs,
|
|
@@ -7677,6 +7727,7 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
7677
7727
|
PluginVec3Api,
|
|
7678
7728
|
PluginViewLabelType,
|
|
7679
7729
|
PluginViewLineStyle,
|
|
7730
|
+
PluginViewLod,
|
|
7680
7731
|
PluginViewSettingCategory,
|
|
7681
7732
|
PluginWallUpdates,
|
|
7682
7733
|
PluginWeatherGetSeriesArgs,
|