law-common 10.40.1-beta.5 → 10.40.1-beta.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.
@@ -40,4 +40,5 @@ export declare class EntityModelRelationHelper {
40
40
  updateEntityModel<T extends EntityEnum | VirtualEntityEnum>(entityModel: BaseEntityModel<T>, config?: {
41
41
  populateRelations?: boolean;
42
42
  }): EntityModelRelationHelper;
43
+ deleteById(entityEnum: EntityEnum, id: number): EntityModelRelationHelper;
43
44
  }
@@ -223,5 +223,11 @@ class EntityModelRelationHelper {
223
223
  }
224
224
  return EntityModelRelationHelper.getClone(this);
225
225
  }
226
+ deleteById(entityEnum, id) {
227
+ if (this.entityModelIndexMap[entityEnum]) {
228
+ delete this.entityModelIndexMap[entityEnum][id];
229
+ }
230
+ return EntityModelRelationHelper.getClone(this);
231
+ }
226
232
  }
227
233
  exports.EntityModelRelationHelper = EntityModelRelationHelper;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "law-common",
3
- "version": "10.40.1-beta.5",
3
+ "version": "10.40.1-beta.6",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [