bruce-models 1.2.5 → 1.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/dist/bruce-models.es5.js +17 -1
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +17 -1
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/entity/entity-lod.js +17 -1
- package/dist/lib/entity/entity-lod.js.map +1 -1
- package/dist/types/entity/entity-lod.d.ts +1 -0
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -2824,7 +2824,7 @@
|
|
|
2824
2824
|
throw ("ClientFile.ID, LODCategory.Key and Level are required.");
|
|
2825
2825
|
}
|
|
2826
2826
|
const res = yield api.POST(`entity/${entityId}/lod/${params["LODCategory.Key"]}/${params.Level}`, {
|
|
2827
|
-
"Level":
|
|
2827
|
+
"Level": params.Level,
|
|
2828
2828
|
"ClientFile.ID": params["ClientFile.ID"]
|
|
2829
2829
|
}, exports.Api.PrepReqParams(reqParams));
|
|
2830
2830
|
api.Cache.Remove(GetEntityListKey(entityId));
|
|
@@ -2832,6 +2832,22 @@
|
|
|
2832
2832
|
});
|
|
2833
2833
|
}
|
|
2834
2834
|
EntityLod.Update = Update;
|
|
2835
|
+
function Delete(api, entityId, lodCategoryId, level, reqParams) {
|
|
2836
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2837
|
+
if (!entityId || !lodCategoryId) {
|
|
2838
|
+
throw ("Entity ID and LOD Category ID are required.");
|
|
2839
|
+
}
|
|
2840
|
+
level = +level;
|
|
2841
|
+
if (isNaN(level)) {
|
|
2842
|
+
throw ("Level is required. It must be a number.");
|
|
2843
|
+
}
|
|
2844
|
+
yield api.POST(`entity/${entityId}/deleteLODs`, {
|
|
2845
|
+
Items: [{ "LODCategory.Key": lodCategoryId, "Level": level }]
|
|
2846
|
+
}, exports.Api.PrepReqParams(reqParams));
|
|
2847
|
+
api.Cache.Remove(GetEntityListKey(entityId));
|
|
2848
|
+
});
|
|
2849
|
+
}
|
|
2850
|
+
EntityLod.Delete = Delete;
|
|
2835
2851
|
})(exports.EntityLod || (exports.EntityLod = {}));
|
|
2836
2852
|
|
|
2837
2853
|
(function (EntityRelationType) {
|