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.
@@ -2907,6 +2907,22 @@ var EntityLod;
2907
2907
  });
2908
2908
  }
2909
2909
  EntityLod.Update = Update;
2910
+ function Delete(api, entityId, lodCategoryId, level, reqParams) {
2911
+ return __awaiter(this, void 0, void 0, function* () {
2912
+ if (!entityId || !lodCategoryId) {
2913
+ throw ("Entity ID and LOD Category ID are required.");
2914
+ }
2915
+ level = +level;
2916
+ if (isNaN(level)) {
2917
+ throw ("Level is required. It must be a number.");
2918
+ }
2919
+ yield api.POST(`entity/${entityId}/deleteLODs`, {
2920
+ Items: [{ "LODCategory.Key": lodCategoryId, "Level": level }]
2921
+ }, Api.PrepReqParams(reqParams));
2922
+ api.Cache.Remove(GetEntityListKey(entityId));
2923
+ });
2924
+ }
2925
+ EntityLod.Delete = Delete;
2910
2926
  })(EntityLod || (EntityLod = {}));
2911
2927
 
2912
2928
  /**