bruce-models 1.2.5 → 1.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.
@@ -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) {