law-common 10.18.1-beta.16 → 10.18.1-beta.17

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.
@@ -10,6 +10,7 @@ import { RelationConfigs } from "../interface/relation-config.interface";
10
10
  import { BankEntityModel } from "./bank.entity.model";
11
11
  import { BaseEntityModel } from "./base.entity.model";
12
12
  import { BillingReimbursementExpneseEntityModel } from "./billing-reimbursement-expense.entity.model";
13
+ import { BillingTimesheetEntityModel } from "./billing-timesheet.entity.model";
13
14
  import { ClientEntityModel } from "./client.entity.model";
14
15
  import { ProjectEntityModel } from "./project.entity.model";
15
16
  import { ReimbursementExpenseEntityModel } from "./reimbursement-expense.entity.model";
@@ -57,12 +58,14 @@ export declare class BillingEntityModel extends BaseEntityModel<EntityEnum.BILLI
57
58
  billingIdReimbursementExpense?: BillingReimbursementExpneseEntityModel[];
58
59
  reimbursementExpense?: ReimbursementExpenseEntityModel[];
59
60
  bank?: BankEntityModel[];
61
+ billingTimesheets?: BillingTimesheetEntityModel[];
60
62
  static relationConfigs: RelationConfigs<[
61
63
  EntityEnum.PROJECT,
62
64
  EntityEnum.CLIENT,
63
65
  EntityEnum.USER,
64
66
  EntityEnum.REIMBURSEMENT_EXPENSE,
65
67
  EntityEnum.BILLING_REIMBURSEMENT_EXPENSE,
68
+ EntityEnum.BILLING_TIMESHEET,
66
69
  EntityEnum.BANK
67
70
  ], EnumEntityType<EntityEnum.BILLING>>;
68
71
  static fromApiEntity(apiEntity: IBillingApiEntity): BillingEntityModel;
@@ -225,6 +225,15 @@ BillingEntityModel.relationConfigs = [
225
225
  key: "id",
226
226
  },
227
227
  },
228
+ {
229
+ name: entity_utils_interface_1.EntityEnum.BILLING_TIMESHEET,
230
+ relation: relation_type_enum_1.RelationType.MANY,
231
+ key: "billingTimesheets",
232
+ mapKeyConfig: {
233
+ relationKey: "billingId",
234
+ key: "id",
235
+ },
236
+ },
228
237
  {
229
238
  name: entity_utils_interface_1.EntityEnum.BANK,
230
239
  relation: relation_type_enum_1.RelationType.MANY,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "law-common",
3
- "version": "10.18.1-beta.16",
3
+ "version": "10.18.1-beta.17",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [