law-common 10.25.1-beta.0 → 10.25.1-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.
@@ -31,7 +31,6 @@ export * from "./interface/billing.payment.entity.api";
31
31
  export * from "./interface/billing.payment.update.dto.interface";
32
32
  export * from "./interface/client.affiliate.create.dto.interface";
33
33
  export * from "./interface/client.affiliate.update.dto.interface";
34
- export * from "./interface/client.affiliate.entity.api";
35
34
  export * from "./interface/role.create.dto.interface";
36
35
  export * from "./interface/role.update.dto.interface";
37
36
  export * from "./interface/permission.create.dto.interface";
@@ -47,7 +47,6 @@ __exportStar(require("./interface/billing.payment.entity.api"), exports);
47
47
  __exportStar(require("./interface/billing.payment.update.dto.interface"), exports);
48
48
  __exportStar(require("./interface/client.affiliate.create.dto.interface"), exports);
49
49
  __exportStar(require("./interface/client.affiliate.update.dto.interface"), exports);
50
- __exportStar(require("./interface/client.affiliate.entity.api"), exports);
51
50
  __exportStar(require("./interface/role.create.dto.interface"), exports);
52
51
  __exportStar(require("./interface/role.update.dto.interface"), exports);
53
52
  __exportStar(require("./interface/permission.create.dto.interface"), exports);
@@ -1,6 +1,6 @@
1
- import { IAuditColumnEntity } from "./audit-column.entity.interface";
1
+ import { IEntityAuditColumn } from "./entity-audit-columns.interface";
2
2
  import { IEntityFilterData } from "./entity.utils.interface";
3
- export interface IClientAffiliateEntity extends IAuditColumnEntity {
3
+ export interface IClientAffiliateEntity extends IEntityAuditColumn {
4
4
  id: number;
5
5
  name: string;
6
6
  address: string;
@@ -1,7 +1,7 @@
1
- import { IClientAffiliateApiEntity } from "../../api";
1
+ import { IClientAffiliateEntity } from "../interface/client_affiliate_entity.interface";
2
2
  import { EntityEnum } from "../interface/entity.utils.interface";
3
3
  import { BaseEntityModel } from "./base.entity.model";
4
- export declare class ClientAffiliateEntityModel extends BaseEntityModel<EntityEnum.CLIENT_AFFILIATE> implements IClientAffiliateApiEntity {
4
+ export declare class ClientAffiliateEntityModel extends BaseEntityModel<EntityEnum.CLIENT_AFFILIATE> implements IClientAffiliateEntity {
5
5
  id: number;
6
6
  name: string;
7
7
  address: string;
@@ -10,10 +10,10 @@ export declare class ClientAffiliateEntityModel extends BaseEntityModel<EntityEn
10
10
  organizationId: number;
11
11
  zipCode: string;
12
12
  country: string;
13
- createdOn: string;
14
- updatedOn: string;
13
+ createdOn: number;
14
+ updatedOn: number;
15
15
  createdBy: number;
16
16
  updatedBy: number;
17
17
  getRelationConfigs(): any;
18
- static fromApiEntity(apiEntity: IClientAffiliateApiEntity): ClientAffiliateEntityModel;
18
+ static fromEntity(entity: IClientAffiliateEntity): ClientAffiliateEntityModel;
19
19
  }
@@ -13,18 +13,18 @@ class ClientAffiliateEntityModel extends base_entity_model_1.BaseEntityModel {
13
13
  this.organizationId = 0;
14
14
  this.zipCode = "";
15
15
  this.country = "";
16
- this.createdOn = "";
17
- this.updatedOn = "";
16
+ this.createdOn = 0;
17
+ this.updatedOn = 0;
18
18
  this.createdBy = 0;
19
19
  this.updatedBy = 0;
20
20
  }
21
21
  getRelationConfigs() {
22
22
  return this.constructor.prototype.constructor.relationConfigs;
23
23
  }
24
- static fromApiEntity(apiEntity) {
25
- const entity = new ClientAffiliateEntityModel(entity_utils_interface_1.EntityEnum.CLIENT_AFFILIATE);
26
- Object.assign(entity, apiEntity);
27
- return entity;
24
+ static fromEntity(entity) {
25
+ const result = new ClientAffiliateEntityModel(entity_utils_interface_1.EntityEnum.CLIENT_AFFILIATE);
26
+ Object.assign(result, entity);
27
+ return result;
28
28
  }
29
29
  }
30
30
  exports.ClientAffiliateEntityModel = ClientAffiliateEntityModel;
@@ -58,7 +58,7 @@ function parseEntities(json, baseEntity, entityMap) {
58
58
  [entity_utils_interface_1.EntityEnum.REIMBURSEMENT]: reimbursement_entity_model_1.ReimbursementEntityModel.fromApiEntity,
59
59
  [entity_utils_interface_1.EntityEnum.REIMBURSEMENT_EXPENSE]: reimbursement_expense_entity_model_1.ReimbursementExpenseEntityModel.fromApiEntity,
60
60
  [entity_utils_interface_1.EntityEnum.BILLING_REIMBURSEMENT_EXPENSE]: billing_reimbursement_expense_entity_model_1.BillingReimbursementExpneseEntityModel.fromApiEntity,
61
- [entity_utils_interface_1.EntityEnum.CLIENT_AFFILIATE]: client_affiliate_entity_model_1.ClientAffiliateEntityModel.fromApiEntity,
61
+ [entity_utils_interface_1.EntityEnum.CLIENT_AFFILIATE]: client_affiliate_entity_model_1.ClientAffiliateEntityModel.fromEntity,
62
62
  [entity_utils_interface_1.EntityEnum.BANK]: bank_entity_model_1.BankEntityModel.fromEntity,
63
63
  [entity_utils_interface_1.EntityEnum.CONFIGURATION]: configuration_model_1.ConfigurationEntityModel.fromEntity,
64
64
  [entity_utils_interface_1.EntityEnum.TASK]: task_entity_model_1.TaskEntityModel.fromEntity,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "law-common",
3
- "version": "10.25.1-beta.0",
3
+ "version": "10.25.1-beta.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -1,3 +0,0 @@
1
- import { IApiEntity, IClientAffiliateEntity } from "../../entities";
2
- export type IClientAffiliateApiEntity = IApiEntity<IClientAffiliateEntity>;
3
- export type IClientAffiliateApiEntityArray = IClientAffiliateApiEntity[];
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });