@snaptrude/plugin-core 0.2.5 → 0.2.7
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/entity/space.d.ts +680 -0
- package/dist/api/entity/space.d.ts.map +1 -1
- package/dist/index.cjs +80 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +72 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/api/entity/space.ts +277 -0
package/dist/index.js
CHANGED
|
@@ -759,7 +759,9 @@ var PluginSpaceGetProperty = z10.enum([
|
|
|
759
759
|
"rotationQuaternion",
|
|
760
760
|
// Derived from brep
|
|
761
761
|
"planPoints",
|
|
762
|
-
"profile"
|
|
762
|
+
"profile",
|
|
763
|
+
// Derived from adjacency manager
|
|
764
|
+
"adjacency"
|
|
763
765
|
]);
|
|
764
766
|
var PluginSpaceGetArgs = z10.object({
|
|
765
767
|
spaceId: z10.string(),
|
|
@@ -801,7 +803,12 @@ var PluginSpaceGetResult = z10.object({
|
|
|
801
803
|
rotationQuaternion: PQuat.nullable(),
|
|
802
804
|
// Derived from brep
|
|
803
805
|
planPoints: z10.array(PVec3),
|
|
804
|
-
profile: PProfile
|
|
806
|
+
profile: PProfile,
|
|
807
|
+
// Derived from adjacency manager
|
|
808
|
+
adjacency: z10.array(z10.object({
|
|
809
|
+
spaceId: z10.string(),
|
|
810
|
+
value: z10.number()
|
|
811
|
+
}))
|
|
805
812
|
}).partial();
|
|
806
813
|
var PluginSpaceGetAllResult = z10.object({
|
|
807
814
|
spacesIds: z10.array(z10.string())
|
|
@@ -849,6 +856,61 @@ var PluginSpaceUpdateResult = z10.object({
|
|
|
849
856
|
spaceType: z10.string().optional(),
|
|
850
857
|
departmentId: z10.string().nullable().optional()
|
|
851
858
|
});
|
|
859
|
+
var PluginSpaceBulkCreateItem = z10.discriminatedUnion("kind", [
|
|
860
|
+
z10.object({
|
|
861
|
+
kind: z10.literal("rectangular"),
|
|
862
|
+
position: PVec3,
|
|
863
|
+
dimensions: z10.object({
|
|
864
|
+
width: z10.number(),
|
|
865
|
+
height: z10.number(),
|
|
866
|
+
depth: z10.number()
|
|
867
|
+
}),
|
|
868
|
+
room_type: z10.string().optional(),
|
|
869
|
+
spaceType: PluginSpaceType.optional(),
|
|
870
|
+
massType: PluginMassType.optional(),
|
|
871
|
+
departmentId: PluginDepartmentId.optional()
|
|
872
|
+
}),
|
|
873
|
+
z10.object({
|
|
874
|
+
kind: z10.literal("profile"),
|
|
875
|
+
profile: PProfile,
|
|
876
|
+
innerProfiles: z10.array(PProfile).optional(),
|
|
877
|
+
extrudeHeight: z10.number(),
|
|
878
|
+
position: PVec3,
|
|
879
|
+
room_type: z10.string().optional(),
|
|
880
|
+
spaceType: PluginSpaceType.optional(),
|
|
881
|
+
massType: PluginMassType.optional(),
|
|
882
|
+
departmentId: PluginDepartmentId.optional()
|
|
883
|
+
})
|
|
884
|
+
]);
|
|
885
|
+
var PluginSpaceBulkCreateArgs = z10.object({
|
|
886
|
+
items: z10.array(PluginSpaceBulkCreateItem)
|
|
887
|
+
});
|
|
888
|
+
var PluginSpaceBulkCreateResult = z10.object({
|
|
889
|
+
spaceIds: z10.array(z10.string())
|
|
890
|
+
});
|
|
891
|
+
var PluginSpaceBulkUpdateItem = z10.object({
|
|
892
|
+
spaceId: z10.string(),
|
|
893
|
+
profile: PProfile.optional(),
|
|
894
|
+
extrudeHeight: z10.number().optional(),
|
|
895
|
+
properties: z10.object({
|
|
896
|
+
room_type: z10.string().optional(),
|
|
897
|
+
massType: PluginMassType.optional(),
|
|
898
|
+
spaceType: PluginSpaceType.optional(),
|
|
899
|
+
departmentId: PluginDepartmentId.optional()
|
|
900
|
+
}).optional()
|
|
901
|
+
});
|
|
902
|
+
var PluginSpaceBulkUpdateArgs = z10.object({
|
|
903
|
+
items: z10.array(PluginSpaceBulkUpdateItem)
|
|
904
|
+
});
|
|
905
|
+
var PluginSpaceBulkUpdateResult = z10.object({
|
|
906
|
+
spaces: z10.array(PluginSpaceUpdateResult)
|
|
907
|
+
});
|
|
908
|
+
var PluginSpaceBulkDeleteArgs = z10.object({
|
|
909
|
+
spaceIds: z10.array(z10.string())
|
|
910
|
+
});
|
|
911
|
+
var PluginSpaceBulkDeleteResult = z10.object({
|
|
912
|
+
deletedSpaceIds: z10.array(z10.string())
|
|
913
|
+
});
|
|
852
914
|
|
|
853
915
|
// src/api/entity/story.ts
|
|
854
916
|
import * as z11 from "zod";
|
|
@@ -1059,6 +1121,14 @@ export {
|
|
|
1059
1121
|
PluginSelectionApi,
|
|
1060
1122
|
PluginSelectionGetResult,
|
|
1061
1123
|
PluginSpaceApi,
|
|
1124
|
+
PluginSpaceBulkCreateArgs,
|
|
1125
|
+
PluginSpaceBulkCreateItem,
|
|
1126
|
+
PluginSpaceBulkCreateResult,
|
|
1127
|
+
PluginSpaceBulkDeleteArgs,
|
|
1128
|
+
PluginSpaceBulkDeleteResult,
|
|
1129
|
+
PluginSpaceBulkUpdateArgs,
|
|
1130
|
+
PluginSpaceBulkUpdateItem,
|
|
1131
|
+
PluginSpaceBulkUpdateResult,
|
|
1062
1132
|
PluginSpaceCreateFromProfileArgs,
|
|
1063
1133
|
PluginSpaceCreateFromProfileResult,
|
|
1064
1134
|
PluginSpaceCreateRectangularArgs,
|