law-common 10.28.2-beta.0 → 10.28.2-beta.1

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.
@@ -1,6 +1,8 @@
1
+ import { RelationType } from "../enums/relation-type.enum";
1
2
  import { IAddressBookEntity } from "../interface/address-book.entity.interface";
2
3
  import { EntityEnum } from "../interface/entity.utils.interface";
3
4
  import { BaseEntityModel } from "./base.entity.model";
5
+ import { UserEntityModel } from "./user.entity.model";
4
6
  export declare class AddressBookEntityModel extends BaseEntityModel<EntityEnum.ADDRESS_BOOK> implements IAddressBookEntity {
5
7
  id: number;
6
8
  organizationName: string;
@@ -14,7 +16,16 @@ export declare class AddressBookEntityModel extends BaseEntityModel<EntityEnum.A
14
16
  updatedOn: number;
15
17
  createdBy: number;
16
18
  updatedBy: number;
19
+ introducedByUser?: UserEntityModel | undefined;
17
20
  static fromEntity(entity: IAddressBookEntity): AddressBookEntityModel;
18
- static relationConfigs: never[];
21
+ static relationConfigs: {
22
+ name: EntityEnum;
23
+ relation: RelationType;
24
+ key: string;
25
+ mapKeyConfig: {
26
+ relationKey: string;
27
+ key: string;
28
+ };
29
+ }[];
19
30
  getRelationConfigs(): any[];
20
31
  }
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AddressBookEntityModel = void 0;
4
+ const relation_type_enum_1 = require("../enums/relation-type.enum");
4
5
  const entity_utils_interface_1 = require("../interface/entity.utils.interface");
5
6
  const base_entity_model_1 = require("./base.entity.model");
6
7
  class AddressBookEntityModel extends base_entity_model_1.BaseEntityModel {
@@ -29,4 +30,14 @@ class AddressBookEntityModel extends base_entity_model_1.BaseEntityModel {
29
30
  }
30
31
  }
31
32
  exports.AddressBookEntityModel = AddressBookEntityModel;
32
- AddressBookEntityModel.relationConfigs = [];
33
+ AddressBookEntityModel.relationConfigs = [
34
+ {
35
+ name: entity_utils_interface_1.EntityEnum.USER,
36
+ relation: relation_type_enum_1.RelationType.ONE,
37
+ key: "introducedByUser",
38
+ mapKeyConfig: {
39
+ relationKey: "id",
40
+ key: "introducedBy",
41
+ },
42
+ }
43
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "law-common",
3
- "version": "10.28.2-beta.0",
3
+ "version": "10.28.2-beta.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [