law-common 10.22.1-beta.0 → 10.22.1-beta.2
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.
|
@@ -30,6 +30,6 @@ export declare class ClientEntityModel extends BaseEntityModel<EntityEnum.CLIENT
|
|
|
30
30
|
static relationConfigs: RelationConfigs<[
|
|
31
31
|
EntityEnum.PROJECT
|
|
32
32
|
], EnumEntityType<EntityEnum.CLIENT>>;
|
|
33
|
-
static
|
|
33
|
+
static fromEntity(apiEntity: IClientEntity): ClientEntityModel;
|
|
34
34
|
populateProjectIds(projects: ProjectEntityModel[]): ClientEntityModel;
|
|
35
35
|
}
|
|
@@ -24,7 +24,7 @@ class ClientEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
|
24
24
|
// return this.constructor.prototype.relationConfigs || [];
|
|
25
25
|
return this.constructor.prototype.constructor.relationConfigs;
|
|
26
26
|
}
|
|
27
|
-
static
|
|
27
|
+
static fromEntity(apiEntity) {
|
|
28
28
|
const entity = new ClientEntityModel(entity_utils_interface_1.EntityEnum.CLIENT);
|
|
29
29
|
Object.assign(entity, apiEntity);
|
|
30
30
|
return entity;
|
|
@@ -51,7 +51,7 @@ function parseEntities(json, baseEntity, entityMap, epoch) {
|
|
|
51
51
|
var _a;
|
|
52
52
|
const entityFromJsonMappings = {
|
|
53
53
|
[entity_utils_interface_1.EntityEnum.PROJECT]: project_entity_model_1.ProjectEntityModel.fromApiEntity,
|
|
54
|
-
[entity_utils_interface_1.EntityEnum.CLIENT]: client_entity_model_1.ClientEntityModel.
|
|
54
|
+
[entity_utils_interface_1.EntityEnum.CLIENT]: client_entity_model_1.ClientEntityModel.fromEntity,
|
|
55
55
|
[entity_utils_interface_1.EntityEnum.BILLING]: billing_entity_model_1.BillingEntityModel.fromApiEntity,
|
|
56
56
|
[entity_utils_interface_1.EntityEnum.USER]: user_entity_model_1.UserEntityModel.fromApiEntity,
|
|
57
57
|
[entity_utils_interface_1.EntityEnum.PROJECT_USER_MAPPING]: project_user_mapping_entity_model_1.ProjectUserMappingEntityModel.fromApiEntity,
|