@snaptrude/plugin-core 0.2.4 → 0.2.6
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 +13 -0
- package/dist/api/core/geom/arc.d.ts +81 -0
- package/dist/api/core/geom/arc.d.ts.map +1 -0
- package/dist/api/core/geom/curve.d.ts +70 -0
- package/dist/api/core/geom/curve.d.ts.map +1 -0
- package/dist/api/core/geom/index.d.ts +32 -0
- package/dist/api/core/geom/index.d.ts.map +1 -0
- package/dist/api/core/geom/line.d.ts +56 -0
- package/dist/api/core/geom/line.d.ts.map +1 -0
- package/dist/api/core/geom/profile.d.ts +121 -0
- package/dist/api/core/geom/profile.d.ts.map +1 -0
- package/dist/api/core/index.d.ts +18 -0
- package/dist/api/core/index.d.ts.map +1 -0
- package/dist/api/core/math/index.d.ts +18 -0
- package/dist/api/core/math/index.d.ts.map +1 -0
- package/dist/api/core/math/quat.d.ts +187 -0
- package/dist/api/core/math/quat.d.ts.map +1 -0
- package/dist/api/core/math/vec3.d.ts +156 -0
- package/dist/api/core/math/vec3.d.ts.map +1 -0
- package/dist/api/entity/buildableEnvelope.d.ts +233 -0
- package/dist/api/entity/buildableEnvelope.d.ts.map +1 -0
- package/dist/api/entity/department.d.ts +99 -0
- package/dist/api/entity/department.d.ts.map +1 -0
- package/dist/api/entity/index.d.ts +33 -0
- package/dist/api/entity/index.d.ts.map +1 -0
- package/dist/api/entity/referenceLine.d.ts +259 -0
- package/dist/api/entity/referenceLine.d.ts.map +1 -0
- package/dist/api/entity/space.d.ts +1490 -0
- package/dist/api/entity/space.d.ts.map +1 -0
- package/dist/api/entity/story.d.ts +239 -0
- package/dist/api/entity/story.d.ts.map +1 -0
- package/dist/api/index.d.ts +30 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/tools/copy.d.ts +59 -0
- package/dist/api/tools/copy.d.ts.map +1 -0
- package/dist/api/tools/index.d.ts +29 -0
- package/dist/api/tools/index.d.ts.map +1 -0
- package/dist/api/tools/offset.d.ts +43 -0
- package/dist/api/tools/offset.d.ts.map +1 -0
- package/dist/api/tools/selection.d.ts +48 -0
- package/dist/api/tools/selection.d.ts.map +1 -0
- package/dist/api/tools/transform.d.ts +114 -0
- package/dist/api/tools/transform.d.ts.map +1 -0
- package/dist/api/units/index.d.ts +163 -0
- package/dist/api/units/index.d.ts.map +1 -0
- package/dist/host-utils.d.ts +41 -0
- package/dist/host-utils.d.ts.map +1 -0
- package/dist/index.cjs +71 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +63 -0
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +16 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/api/entity/space.ts +270 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -849,6 +849,61 @@ var PluginSpaceUpdateResult = z10.object({
|
|
|
849
849
|
spaceType: z10.string().optional(),
|
|
850
850
|
departmentId: z10.string().nullable().optional()
|
|
851
851
|
});
|
|
852
|
+
var PluginSpaceBulkCreateItem = z10.discriminatedUnion("kind", [
|
|
853
|
+
z10.object({
|
|
854
|
+
kind: z10.literal("rectangular"),
|
|
855
|
+
position: PVec3,
|
|
856
|
+
dimensions: z10.object({
|
|
857
|
+
width: z10.number(),
|
|
858
|
+
height: z10.number(),
|
|
859
|
+
depth: z10.number()
|
|
860
|
+
}),
|
|
861
|
+
room_type: z10.string().optional(),
|
|
862
|
+
spaceType: PluginSpaceType.optional(),
|
|
863
|
+
massType: PluginMassType.optional(),
|
|
864
|
+
departmentId: PluginDepartmentId.optional()
|
|
865
|
+
}),
|
|
866
|
+
z10.object({
|
|
867
|
+
kind: z10.literal("profile"),
|
|
868
|
+
profile: PProfile,
|
|
869
|
+
innerProfiles: z10.array(PProfile).optional(),
|
|
870
|
+
extrudeHeight: z10.number(),
|
|
871
|
+
position: PVec3,
|
|
872
|
+
room_type: z10.string().optional(),
|
|
873
|
+
spaceType: PluginSpaceType.optional(),
|
|
874
|
+
massType: PluginMassType.optional(),
|
|
875
|
+
departmentId: PluginDepartmentId.optional()
|
|
876
|
+
})
|
|
877
|
+
]);
|
|
878
|
+
var PluginSpaceBulkCreateArgs = z10.object({
|
|
879
|
+
items: z10.array(PluginSpaceBulkCreateItem)
|
|
880
|
+
});
|
|
881
|
+
var PluginSpaceBulkCreateResult = z10.object({
|
|
882
|
+
spaceIds: z10.array(z10.string())
|
|
883
|
+
});
|
|
884
|
+
var PluginSpaceBulkUpdateItem = z10.object({
|
|
885
|
+
spaceId: z10.string(),
|
|
886
|
+
profile: PProfile.optional(),
|
|
887
|
+
extrudeHeight: z10.number().optional(),
|
|
888
|
+
properties: z10.object({
|
|
889
|
+
room_type: z10.string().optional(),
|
|
890
|
+
massType: PluginMassType.optional(),
|
|
891
|
+
spaceType: PluginSpaceType.optional(),
|
|
892
|
+
departmentId: PluginDepartmentId.optional()
|
|
893
|
+
}).optional()
|
|
894
|
+
});
|
|
895
|
+
var PluginSpaceBulkUpdateArgs = z10.object({
|
|
896
|
+
items: z10.array(PluginSpaceBulkUpdateItem)
|
|
897
|
+
});
|
|
898
|
+
var PluginSpaceBulkUpdateResult = z10.object({
|
|
899
|
+
spaces: z10.array(PluginSpaceUpdateResult)
|
|
900
|
+
});
|
|
901
|
+
var PluginSpaceBulkDeleteArgs = z10.object({
|
|
902
|
+
spaceIds: z10.array(z10.string())
|
|
903
|
+
});
|
|
904
|
+
var PluginSpaceBulkDeleteResult = z10.object({
|
|
905
|
+
deletedSpaceIds: z10.array(z10.string())
|
|
906
|
+
});
|
|
852
907
|
|
|
853
908
|
// src/api/entity/story.ts
|
|
854
909
|
import * as z11 from "zod";
|
|
@@ -1059,6 +1114,14 @@ export {
|
|
|
1059
1114
|
PluginSelectionApi,
|
|
1060
1115
|
PluginSelectionGetResult,
|
|
1061
1116
|
PluginSpaceApi,
|
|
1117
|
+
PluginSpaceBulkCreateArgs,
|
|
1118
|
+
PluginSpaceBulkCreateItem,
|
|
1119
|
+
PluginSpaceBulkCreateResult,
|
|
1120
|
+
PluginSpaceBulkDeleteArgs,
|
|
1121
|
+
PluginSpaceBulkDeleteResult,
|
|
1122
|
+
PluginSpaceBulkUpdateArgs,
|
|
1123
|
+
PluginSpaceBulkUpdateItem,
|
|
1124
|
+
PluginSpaceBulkUpdateResult,
|
|
1062
1125
|
PluginSpaceCreateFromProfileArgs,
|
|
1063
1126
|
PluginSpaceCreateFromProfileResult,
|
|
1064
1127
|
PluginSpaceCreateRectangularArgs,
|