law-common 10.28.2-beta.2 → 10.28.2-beta.3
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.
|
@@ -16,3 +16,4 @@ export declare function parseEntitiesWithoutModels<T extends EnumEntityType<Enti
|
|
|
16
16
|
}): {
|
|
17
17
|
[E in EntityEnum | VirtualEntityEnum]?: IApiEntity<EnumEntityType<E>>[];
|
|
18
18
|
};
|
|
19
|
+
export declare function removeEntityById(entityIndexMap: EntityIndexMap, entity: EntityEnum, id: number): void;
|
|
@@ -8,6 +8,7 @@ exports.entityMapToModels = entityMapToModels;
|
|
|
8
8
|
exports.parseEntities = parseEntities;
|
|
9
9
|
exports.entityMapToEntityIndexMap = entityMapToEntityIndexMap;
|
|
10
10
|
exports.parseEntitiesWithoutModels = parseEntitiesWithoutModels;
|
|
11
|
+
exports.removeEntityById = removeEntityById;
|
|
11
12
|
const entity_utils_interface_1 = require("../interface/entity.utils.interface");
|
|
12
13
|
const bank_entity_model_1 = require("./bank.entity.model");
|
|
13
14
|
const base_entity_model_1 = require("./base.entity.model");
|
|
@@ -125,3 +126,8 @@ function parseEntitiesWithoutModels(json, baseEntity, entityMap = {}) {
|
|
|
125
126
|
}
|
|
126
127
|
return entityMap;
|
|
127
128
|
}
|
|
129
|
+
function removeEntityById(entityIndexMap, entity, id) {
|
|
130
|
+
if (entityIndexMap[entity]) {
|
|
131
|
+
delete entityIndexMap[entity][id];
|
|
132
|
+
}
|
|
133
|
+
}
|