law-common 8.8.1-beta.1 → 8.9.0

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.
Files changed (32) hide show
  1. package/dist/src/api/index.d.ts +0 -2
  2. package/dist/src/api/index.js +0 -2
  3. package/dist/src/api/interface/bank.create.dto.interface.d.ts +1 -2
  4. package/dist/src/api/interface/bank.entity.response.d.ts +0 -5
  5. package/dist/src/api/interface/bank.update.dto.interface.d.ts +1 -2
  6. package/dist/src/api/interface/billing.create.dto.interface.d.ts +9 -4
  7. package/dist/src/api/interface/billing.entity.response.d.ts +36 -3
  8. package/dist/src/api/interface/billing.update.dto.interface.d.ts +15 -4
  9. package/dist/src/entities/enums/bank_entity_keys.enum.d.ts +2 -2
  10. package/dist/src/entities/enums/bank_entity_keys.enum.js +2 -2
  11. package/dist/src/entities/enums/billing.action.enum.d.ts +1 -4
  12. package/dist/src/entities/enums/billing.action.enum.js +0 -6
  13. package/dist/src/entities/index.d.ts +11 -14
  14. package/dist/src/entities/index.js +11 -14
  15. package/dist/src/entities/interface/bank.entity.interface.d.ts +7 -0
  16. package/dist/src/entities/interface/billing.entity.interface.d.ts +37 -13
  17. package/dist/src/entities/interface/organization.entity.interface.d.ts +0 -5
  18. package/dist/src/enums/currency.enum.d.ts +0 -1
  19. package/dist/src/enums/currency.enum.js +3 -25
  20. package/dist/src/utils/models/date-code.model.util.d.ts +0 -1
  21. package/dist/src/utils/models/date-code.model.util.js +0 -4
  22. package/package.json +1 -1
  23. package/dist/src/api/interface/intermediary.bank.entity.response.d.ts +0 -3
  24. package/dist/src/api/interface/intermediary.bank.entity.response.js +0 -2
  25. package/dist/src/api/interface/organization.entity.api.d.ts +0 -3
  26. package/dist/src/api/interface/organization.entity.api.js +0 -2
  27. package/dist/src/entities/enums/billing_invoice_type.enum.d.ts +0 -4
  28. package/dist/src/entities/enums/billing_invoice_type.enum.js +0 -8
  29. package/dist/src/entities/interface/billing_timesheet.entity.interface.d.ts +0 -49
  30. package/dist/src/entities/interface/billing_timesheet.entity.interface.js +0 -2
  31. package/dist/src/entities/interface/intermediary_bank.entity.interface.d.ts +0 -21
  32. package/dist/src/entities/interface/intermediary_bank.entity.interface.js +0 -2
@@ -73,5 +73,3 @@ export * from "./interface/work.from.home.create.dto.interface";
73
73
  export * from "./interface/work.from.home.update.interface";
74
74
  export * from "./interface/work_from_home_history.api";
75
75
  export * from "./interface/country.entity.response";
76
- export * from "./interface/organization.entity.api";
77
- export * from "./interface/intermediary.bank.entity.response";
@@ -89,5 +89,3 @@ __exportStar(require("./interface/work.from.home.create.dto.interface"), exports
89
89
  __exportStar(require("./interface/work.from.home.update.interface"), exports);
90
90
  __exportStar(require("./interface/work_from_home_history.api"), exports);
91
91
  __exportStar(require("./interface/country.entity.response"), exports);
92
- __exportStar(require("./interface/organization.entity.api"), exports);
93
- __exportStar(require("./interface/intermediary.bank.entity.response"), exports);
@@ -1,6 +1,5 @@
1
- import { BankStatusEnum, IBankEntity, IEntityCreateDto, IIntermediaryBankCreateDto } from "../../entities";
1
+ import { BankStatusEnum, IBankEntity, IEntityCreateDto } from "../../entities";
2
2
  export interface IBankCreateDto extends Omit<IEntityCreateDto<IBankEntity>, IBankExclude> {
3
3
  status?: BankStatusEnum;
4
- intermediaryBankDetails?: IIntermediaryBankCreateDto[];
5
4
  }
6
5
  export type IBankExclude = "status";
@@ -1,7 +1,6 @@
1
1
  import { BankActionEnum, BankStatusEnum } from "../../entities";
2
2
  import { IBankApiEntity } from "./bank.entity.api";
3
3
  import { IBaseResponse } from "./base.response.interface";
4
- import { IIntermediaryBankApiEntityArray } from "./intermediary.bank.entity.response";
5
4
  export type IBankApiEntityResponse = IBaseResponse<IBankApiEntity>;
6
5
  export type IBankApiEntityResponseArray = IBaseResponse<IBankApiEntity[]>;
7
6
  export type IBankFlowConfig = {
@@ -14,7 +13,3 @@ export type IBankFlowConfig = {
14
13
  };
15
14
  };
16
15
  };
17
- export interface IBankEntityGet extends IBankApiEntity {
18
- intermediaryBankDetails?: IIntermediaryBankApiEntityArray;
19
- }
20
- export type IBankEntityGetArray = IBankEntityGet[];
@@ -1,5 +1,4 @@
1
- import { IBankActionDataDto, IBankEntity, IEntityUpdateDto, IIntermediaryBankUpdateDto } from "../../entities";
1
+ import { IBankActionDataDto, IBankEntity, IEntityUpdateDto } from "../../entities";
2
2
  export interface IBankUpdateDto extends IEntityUpdateDto<IBankEntity> {
3
3
  actionData?: IBankActionDataDto;
4
- intermediaryBankDetails?: IIntermediaryBankUpdateDto[];
5
4
  }
@@ -1,8 +1,13 @@
1
- import { BillingImpactEnum, BillingStatusEnum, IBillingEntity, IEntityCreateDto } from "../../entities";
2
- export type IBillingCreateExclude = "paymentStatus" | "status" | "writeoffAmount" | "tdsAmount" | "totalAmountPaid" | "creditNoteAmount" | "invoicePdfUrl";
3
- export interface IBillingCreateDto extends Omit<IEntityCreateDto<IBillingEntity>, IBillingCreateExclude> {
1
+ import { BillingImpactEnum } from "../../entities";
2
+ export interface IBillingCreateDto {
3
+ startDate: string;
4
+ endDate: string;
5
+ projectId: number;
6
+ totalAmount: number;
7
+ totalMinutes: number;
8
+ invoiceNumber?: number;
9
+ writeOffAmount?: number;
4
10
  timesheets: IBillingTimesheetsDto;
5
- status?: BillingStatusEnum;
6
11
  }
7
12
  export interface IBillingTimesheetUnchagedDto {
8
13
  id: number;
@@ -1,20 +1,53 @@
1
- import { BillingActionsEnum, BillingStatusEnum, IBillingEntity } from "../../entities";
1
+ import { BillingActionsEnum, BillingStatusEnum, IAuditColumnEntity, IBillingEntity, IBillingTimesheetDetail, PaymentStatusEnum } from "../../entities";
2
2
  import { IBillingApiEntity } from "./billing.entity.api";
3
3
  import { IBillingTimesheetApiEntity } from "./billing.timesheet.entity.api";
4
4
  import { IUpdateBillingDto } from "./billing.update.dto.interface";
5
5
  import { IProjectApiEntity } from "./project.entity.response";
6
6
  import { IUserApiEntity } from "./user.entity.api";
7
- export type IBillingEntityResponse = {
7
+ export interface IBillingEntityResponse extends IAuditColumnEntity {
8
+ id: number;
9
+ startDate: string;
10
+ endDate: string;
11
+ projectId: number;
12
+ totalMinutes: number;
13
+ totalAmount: number;
14
+ invoiceNumber?: number;
15
+ paymentStatus: PaymentStatusEnum;
16
+ billingTimesheets: IBillingTimesheetDetail[];
17
+ status?: BillingStatusEnum;
18
+ writeoffAmount?: number;
19
+ }
20
+ export type IBillingEntityGet = {
8
21
  billing: IBillingApiEntity;
9
22
  billingTimesheets: IBillingTimesheetApiEntity[];
10
23
  };
11
24
  export interface IBillingEntitySearchResponse {
12
- billings: IBillingEntityResponse[];
25
+ billings: IBillingEntityGet[];
13
26
  users?: IUserApiEntity[];
14
27
  projects?: IProjectApiEntity[];
15
28
  }
16
29
  export interface IBillingEntitySearchResponseInclude extends IBillingEntitySearchResponse {
17
30
  }
31
+ export type IBillingEntityUpdateGet = {
32
+ id: number;
33
+ startDate: string;
34
+ endDate: string;
35
+ projectId: number;
36
+ totalAmount: number;
37
+ totalMinutes: number;
38
+ paymentStatus: PaymentStatusEnum;
39
+ status: BillingStatusEnum;
40
+ invoiceNumber?: number;
41
+ writeoffAmount: number;
42
+ totalAmountPaid: number;
43
+ tdsAmount: number;
44
+ creditNoteAmount: number;
45
+ createdOn: string;
46
+ updatedOn: string;
47
+ createdBy: number;
48
+ updatedBy: number;
49
+ timesheets: IBillingTimesheetApiEntity[];
50
+ };
18
51
  export type IBillingFlowConfig = {
19
52
  [key in BillingStatusEnum]?: {
20
53
  actions: {
@@ -1,10 +1,21 @@
1
- import { BillingActionsEnum, IBillingEntity, IBillingEntityCreateDtoValidationData, IBillingTimesheetUpdateDto, IEntityUpdateDto } from "../../entities";
1
+ import { BillingImpactEnum, BillingActionsEnum, BillingTimesheetStatusEnum, IBillingEntity, IBillingTimesheetEntity, IEntityUpdateDto } from "../../entities";
2
2
  export interface IBillingUpdateDto extends IEntityUpdateDto<IBillingEntity> {
3
3
  }
4
+ export interface IBillingTimesheetUpdateDto extends IEntityUpdateDto<IBillingTimesheetEntity> {
5
+ id?: number;
6
+ task?: string;
7
+ description?: string;
8
+ dateCode?: string;
9
+ totalDuration?: number;
10
+ totalAmount?: number;
11
+ impact?: BillingImpactEnum;
12
+ amendmentPurpose?: string;
13
+ }
14
+ export interface IBillingTimesheetDeleteDto extends Partial<IBillingTimesheetEntity> {
15
+ id: number;
16
+ changedStatus: BillingTimesheetStatusEnum;
17
+ }
4
18
  export interface IUpdateBillingDto extends IBillingUpdateDto {
5
19
  action?: BillingActionsEnum;
6
20
  timesheets?: IBillingTimesheetUpdateDto[];
7
21
  }
8
- export interface IBillingUpdateDtoValidationData extends IBillingEntityCreateDtoValidationData {
9
- billingEntity: IBillingEntity;
10
- }
@@ -5,11 +5,11 @@ export declare enum BankEntityKeysEnum {
5
5
  name = "name",
6
6
  accountNo = "accountNo",
7
7
  branchAddress = "branchAddress",
8
+ micrCode = "micrCode",
8
9
  ifscCode = "ifscCode",
9
10
  emailForPaymentInfoCsv = "emailForPaymentInfoCsv",
10
11
  status = "status",
11
- remark = "remark",
12
- swiftAddress = "swiftAddress"
12
+ remark = "remark"
13
13
  }
14
14
  export declare namespace BankEntityKeysEnum {
15
15
  const keyLabelMap: Record<BankEntityKeysEnum, string>;
@@ -11,11 +11,11 @@ var BankEntityKeysEnum;
11
11
  BankEntityKeysEnum["name"] = "name";
12
12
  BankEntityKeysEnum["accountNo"] = "accountNo";
13
13
  BankEntityKeysEnum["branchAddress"] = "branchAddress";
14
+ BankEntityKeysEnum["micrCode"] = "micrCode";
14
15
  BankEntityKeysEnum["ifscCode"] = "ifscCode";
15
16
  BankEntityKeysEnum["emailForPaymentInfoCsv"] = "emailForPaymentInfoCsv";
16
17
  BankEntityKeysEnum["status"] = "status";
17
18
  BankEntityKeysEnum["remark"] = "remark";
18
- BankEntityKeysEnum["swiftAddress"] = "swiftAddress";
19
19
  })(BankEntityKeysEnum || (exports.BankEntityKeysEnum = BankEntityKeysEnum = {}));
20
20
  (function (BankEntityKeysEnum) {
21
21
  BankEntityKeysEnum.keyLabelMap = {
@@ -25,11 +25,11 @@ var BankEntityKeysEnum;
25
25
  [BankEntityKeysEnum.name]: "Bank Name",
26
26
  [BankEntityKeysEnum.accountNo]: "Account Number",
27
27
  [BankEntityKeysEnum.branchAddress]: "Branch Address",
28
+ [BankEntityKeysEnum.micrCode]: "MICR Code",
28
29
  [BankEntityKeysEnum.ifscCode]: "IFSC Code",
29
30
  [BankEntityKeysEnum.emailForPaymentInfoCsv]: "Email for Payment Info CSV",
30
31
  [BankEntityKeysEnum.status]: "Status",
31
32
  [BankEntityKeysEnum.remark]: "Remark",
32
- [BankEntityKeysEnum.swiftAddress]: "Swift Address",
33
33
  };
34
34
  function getLabel(key) {
35
35
  if (!Object.values(BankEntityKeysEnum).includes(key)) {
@@ -11,10 +11,7 @@ export declare enum BillingActionsEnum {
11
11
  UPDATE_PAYMENT = "updatePayment",
12
12
  CREDIT_NOTE = "creditNote",
13
13
  WRITE_OFF = "writeOff",
14
- TDS = "tds",
15
- PDF_VIEW = "pdfView",
16
- PDF_GENERATE = "pdfGenerate",
17
- PDF_DELETE = "pdfDelete"
14
+ TDS = "tds"
18
15
  }
19
16
  export declare namespace BillingActionsEnum {
20
17
  function getLabel(action: BillingActionsEnum): string;
@@ -18,9 +18,6 @@ var BillingActionsEnum;
18
18
  BillingActionsEnum["CREDIT_NOTE"] = "creditNote";
19
19
  BillingActionsEnum["WRITE_OFF"] = "writeOff";
20
20
  BillingActionsEnum["TDS"] = "tds";
21
- BillingActionsEnum["PDF_VIEW"] = "pdfView";
22
- BillingActionsEnum["PDF_GENERATE"] = "pdfGenerate";
23
- BillingActionsEnum["PDF_DELETE"] = "pdfDelete";
24
21
  })(BillingActionsEnum || (exports.BillingActionsEnum = BillingActionsEnum = {}));
25
22
  (function (BillingActionsEnum) {
26
23
  const actionLabelMap = {
@@ -37,9 +34,6 @@ var BillingActionsEnum;
37
34
  [BillingActionsEnum.CREDIT_NOTE]: "Credit Note",
38
35
  [BillingActionsEnum.WRITE_OFF]: "Write Off",
39
36
  [BillingActionsEnum.TDS]: "TDS",
40
- [BillingActionsEnum.PDF_DELETE]: "Pdf Delete",
41
- [BillingActionsEnum.PDF_GENERATE]: "Pdf Generate",
42
- [BillingActionsEnum.PDF_VIEW]: "Pdf View",
43
37
  };
44
38
  function getLabel(action) {
45
39
  if (!Object.values(BillingActionsEnum).includes(action)) {
@@ -4,9 +4,9 @@ export * from "./enums/organization.entity.enum";
4
4
  export * from "./func/convert-to-common-entity.func";
5
5
  export * from "./interface/audit-column.entity.interface";
6
6
  export * from "./interface/entity.utils.interface";
7
- export * from "./interface/organization.entity.interface";
8
7
  export * from "./interface/task.entity.interface";
9
8
  export * from "./interface/user.entity.interface";
9
+ export * from "./interface/organization.entity.interface";
10
10
  export * from "./interface/designation.entity.interface";
11
11
  export * from "./interface/industry.entity.interface";
12
12
  export * from "./interface/configuration.entity.interface";
@@ -14,54 +14,51 @@ export * from "./interface/rate.entity.interface";
14
14
  export * from "./interface/client.entity.interface";
15
15
  export * from "./interface/project.entity.interface";
16
16
  export * from "./interface/timesheet.entity.interface";
17
- export * from "./enums/reimbursement.entity.enum";
18
17
  export * from "./interface/reimbursement.entity.interface";
19
- export * from "./enums/expense_type.entity.enum";
18
+ export * from "./enums/reimbursement.entity.enum";
20
19
  export * from "./interface/expense_type.entity.interface";
20
+ export * from "./enums/expense_type.entity.enum";
21
21
  export * from "./enums/billing.impact.enum";
22
- export * from "./enums/payment_status.enum";
23
22
  export * from "./interface/billing.entity.interface";
24
- export * from "./enums/billing.status.enum";
23
+ export * from "./enums/payment_status.enum";
25
24
  export * from "./enums/billing.timesheet.change.status.enum";
25
+ export * from "./enums/billing.status.enum";
26
26
  export * from "./interface/office.location.entity";
27
27
  export * from "./interface/bank.entity.interface";
28
28
  export * from "./enums/billing.payment.type.enum";
29
29
  export * from "./interface/billing_payment.entity.interface";
30
30
  export * from "./interface/client_affiliate_entity.interface";
31
- export * from "./interface/permission.entity.interface";
32
31
  export * from "./interface/role.entity.interface";
32
+ export * from "./interface/permission.entity.interface";
33
33
  export * from "./interface/role.permission.mapping.entity.interface";
34
- export * from "./enums/billing.transaction.enum";
35
34
  export * from "./interface/billing_transaction.entity.interface";
35
+ export * from "./enums/billing.transaction.enum";
36
36
  export * from "./interface/timesheet_history.entity.interface";
37
37
  export * from "./enums/history_operation.enum";
38
38
  export * from "./interface/billing_history.entity.interface";
39
39
  export * from "./interface/billing_timesheet_history.entity.interface";
40
40
  export * from "./enums/history_operation.enum";
41
- export * from "./enums/timesheet.action.enum";
42
41
  export * from "./enums/timesheet.status.enum";
42
+ export * from "./enums/timesheet.action.enum";
43
43
  export * from "./enums/billing.action.enum";
44
44
  export * from "./enums/configuration.type.enum";
45
45
  export * from "./enums/project_user_status.enum";
46
- export * from "./interface/reimbursement_expense.entity.interface";
47
46
  export * from "./interface/reimbursement_history.entity.interface";
47
+ export * from "./interface/reimbursement_expense.entity.interface";
48
48
  export * from "./enums/entity_search_constraint_type.enum";
49
49
  export * from "./enums/timesheet_entity_keys.enum";
50
50
  export * from "./enums/bank_action.enum";
51
- export * from "./enums/bank_entity_keys.enum";
52
51
  export * from "./enums/bank_status.enum";
53
52
  export * from "./interface/bank_history.entity.interface";
53
+ export * from "./enums/bank_entity_keys.enum";
54
54
  export * from "./enums/leave.action.enum";
55
55
  export * from "./enums/leave.status.enum";
56
- export * from "./enums/leave_entity_keys.enum";
57
56
  export * from "./interface/leave.entity.interface";
58
57
  export * from "./interface/leave_history.entity.interface";
58
+ export * from "./enums/leave_entity_keys.enum";
59
59
  export * from "./enums/work.from.home.action.enum";
60
60
  export * from "./enums/work.from.home.status.enum";
61
61
  export * from "./enums/work_from_entity_keys.enum";
62
62
  export * from "./interface/work_from_home.entity.interface";
63
63
  export * from "./interface/work_from_home_history.entity.interface";
64
64
  export * from "./interface/country.entity.interface";
65
- export * from "./enums/billing_invoice_type.enum";
66
- export * from "./interface/billing_timesheet.entity.interface";
67
- export * from "./interface/intermediary_bank.entity.interface";
@@ -21,9 +21,9 @@ __exportStar(require("./enums/organization.entity.enum"), exports);
21
21
  __exportStar(require("./func/convert-to-common-entity.func"), exports);
22
22
  __exportStar(require("./interface/audit-column.entity.interface"), exports);
23
23
  __exportStar(require("./interface/entity.utils.interface"), exports);
24
- __exportStar(require("./interface/organization.entity.interface"), exports);
25
24
  __exportStar(require("./interface/task.entity.interface"), exports);
26
25
  __exportStar(require("./interface/user.entity.interface"), exports);
26
+ __exportStar(require("./interface/organization.entity.interface"), exports);
27
27
  __exportStar(require("./interface/designation.entity.interface"), exports);
28
28
  __exportStar(require("./interface/industry.entity.interface"), exports);
29
29
  __exportStar(require("./interface/configuration.entity.interface"), exports);
@@ -31,54 +31,51 @@ __exportStar(require("./interface/rate.entity.interface"), exports);
31
31
  __exportStar(require("./interface/client.entity.interface"), exports);
32
32
  __exportStar(require("./interface/project.entity.interface"), exports);
33
33
  __exportStar(require("./interface/timesheet.entity.interface"), exports);
34
- __exportStar(require("./enums/reimbursement.entity.enum"), exports);
35
34
  __exportStar(require("./interface/reimbursement.entity.interface"), exports);
36
- __exportStar(require("./enums/expense_type.entity.enum"), exports);
35
+ __exportStar(require("./enums/reimbursement.entity.enum"), exports);
37
36
  __exportStar(require("./interface/expense_type.entity.interface"), exports);
37
+ __exportStar(require("./enums/expense_type.entity.enum"), exports);
38
38
  __exportStar(require("./enums/billing.impact.enum"), exports);
39
- __exportStar(require("./enums/payment_status.enum"), exports);
40
39
  __exportStar(require("./interface/billing.entity.interface"), exports);
41
- __exportStar(require("./enums/billing.status.enum"), exports);
40
+ __exportStar(require("./enums/payment_status.enum"), exports);
42
41
  __exportStar(require("./enums/billing.timesheet.change.status.enum"), exports);
42
+ __exportStar(require("./enums/billing.status.enum"), exports);
43
43
  __exportStar(require("./interface/office.location.entity"), exports);
44
44
  __exportStar(require("./interface/bank.entity.interface"), exports);
45
45
  __exportStar(require("./enums/billing.payment.type.enum"), exports);
46
46
  __exportStar(require("./interface/billing_payment.entity.interface"), exports);
47
47
  __exportStar(require("./interface/client_affiliate_entity.interface"), exports);
48
- __exportStar(require("./interface/permission.entity.interface"), exports);
49
48
  __exportStar(require("./interface/role.entity.interface"), exports);
49
+ __exportStar(require("./interface/permission.entity.interface"), exports);
50
50
  __exportStar(require("./interface/role.permission.mapping.entity.interface"), exports);
51
- __exportStar(require("./enums/billing.transaction.enum"), exports);
52
51
  __exportStar(require("./interface/billing_transaction.entity.interface"), exports);
52
+ __exportStar(require("./enums/billing.transaction.enum"), exports);
53
53
  __exportStar(require("./interface/timesheet_history.entity.interface"), exports);
54
54
  __exportStar(require("./enums/history_operation.enum"), exports);
55
55
  __exportStar(require("./interface/billing_history.entity.interface"), exports);
56
56
  __exportStar(require("./interface/billing_timesheet_history.entity.interface"), exports);
57
57
  __exportStar(require("./enums/history_operation.enum"), exports);
58
- __exportStar(require("./enums/timesheet.action.enum"), exports);
59
58
  __exportStar(require("./enums/timesheet.status.enum"), exports);
59
+ __exportStar(require("./enums/timesheet.action.enum"), exports);
60
60
  __exportStar(require("./enums/billing.action.enum"), exports);
61
61
  __exportStar(require("./enums/configuration.type.enum"), exports);
62
62
  __exportStar(require("./enums/project_user_status.enum"), exports);
63
- __exportStar(require("./interface/reimbursement_expense.entity.interface"), exports);
64
63
  __exportStar(require("./interface/reimbursement_history.entity.interface"), exports);
64
+ __exportStar(require("./interface/reimbursement_expense.entity.interface"), exports);
65
65
  __exportStar(require("./enums/entity_search_constraint_type.enum"), exports);
66
66
  __exportStar(require("./enums/timesheet_entity_keys.enum"), exports);
67
67
  __exportStar(require("./enums/bank_action.enum"), exports);
68
- __exportStar(require("./enums/bank_entity_keys.enum"), exports);
69
68
  __exportStar(require("./enums/bank_status.enum"), exports);
70
69
  __exportStar(require("./interface/bank_history.entity.interface"), exports);
70
+ __exportStar(require("./enums/bank_entity_keys.enum"), exports);
71
71
  __exportStar(require("./enums/leave.action.enum"), exports);
72
72
  __exportStar(require("./enums/leave.status.enum"), exports);
73
- __exportStar(require("./enums/leave_entity_keys.enum"), exports);
74
73
  __exportStar(require("./interface/leave.entity.interface"), exports);
75
74
  __exportStar(require("./interface/leave_history.entity.interface"), exports);
75
+ __exportStar(require("./enums/leave_entity_keys.enum"), exports);
76
76
  __exportStar(require("./enums/work.from.home.action.enum"), exports);
77
77
  __exportStar(require("./enums/work.from.home.status.enum"), exports);
78
78
  __exportStar(require("./enums/work_from_entity_keys.enum"), exports);
79
79
  __exportStar(require("./interface/work_from_home.entity.interface"), exports);
80
80
  __exportStar(require("./interface/work_from_home_history.entity.interface"), exports);
81
81
  __exportStar(require("./interface/country.entity.interface"), exports);
82
- __exportStar(require("./enums/billing_invoice_type.enum"), exports);
83
- __exportStar(require("./interface/billing_timesheet.entity.interface"), exports);
84
- __exportStar(require("./interface/intermediary_bank.entity.interface"), exports);
@@ -9,11 +9,18 @@ export interface IBankEntity extends IAuditColumnEntity {
9
9
  name: string;
10
10
  accountNo: string;
11
11
  branchAddress: string;
12
+ micrCode: string;
12
13
  ifscCode: string;
13
14
  emailForPaymentInfoCsv: string;
14
15
  status: BankStatusEnum;
15
16
  remark?: string;
16
17
  swiftAddress?: string;
18
+ eefcBankAccountNo?: string;
19
+ intermediaryBankDetails?: string;
20
+ intermediaryBankAccountNo?: string;
21
+ intermediaryBankAddress?: string;
22
+ intermediarySwiftAddress?: string;
23
+ ibanNo?: string;
17
24
  }
18
25
  export interface IBankEntityUpdateDtoValidationData {
19
26
  bankEntity: IBankEntity;
@@ -1,10 +1,9 @@
1
+ import { BillingImpactEnum } from "../enums/billing.impact.enum";
1
2
  import { BillingStatusEnum } from "../enums/billing.status.enum";
2
- import { BillingInvoiceTypeEnum } from "../enums/billing_invoice_type.enum";
3
+ import { BillingTimesheetStatusEnum } from "../enums/billing.timesheet.change.status.enum";
3
4
  import { PaymentStatusEnum } from "../enums/payment_status.enum";
4
5
  import { IAuditColumnEntity } from "./audit-column.entity.interface";
5
- import { EntityEnum, IEntityFilterData } from "./entity.utils.interface";
6
- import { IProjectEntity } from "./project.entity.interface";
7
- import { ITimesheetEntity } from "./timesheet.entity.interface";
6
+ import { EntityEnum, IEntityCreateDto, IEntityFilterData } from "./entity.utils.interface";
8
7
  export interface IBillingEntity extends IAuditColumnEntity {
9
8
  id: number;
10
9
  startDate: string;
@@ -12,24 +11,49 @@ export interface IBillingEntity extends IAuditColumnEntity {
12
11
  projectId: number;
13
12
  totalAmount: number;
14
13
  totalMinutes: number;
15
- invoiceNumber: string;
14
+ invoiceNumber?: number;
16
15
  paymentStatus: PaymentStatusEnum;
17
16
  status: BillingStatusEnum;
18
17
  writeoffAmount: number;
19
18
  totalAmountPaid: number;
20
19
  tdsAmount: number;
21
20
  creditNoteAmount: number;
22
- invoiceEntityId: number;
23
- invoiceEntityType: BillingInvoiceTypeEnum;
24
- invoicePdfUrl?: string | null;
25
- invoiceContactName: string;
26
- bankId: number;
21
+ }
22
+ export interface IBillingTimesheetEntity extends IAuditColumnEntity {
23
+ id: number;
24
+ billingId: number;
25
+ dateCode: string;
26
+ timesheetId: number;
27
+ userId: number;
28
+ projectId: number;
29
+ task: string;
30
+ description?: string;
31
+ totalDuration: number;
32
+ totalAmount: number;
33
+ impact: BillingImpactEnum;
34
+ amendmentPurpose?: string;
35
+ changedStatus: BillingTimesheetStatusEnum;
36
+ }
37
+ export interface IBillingTimesheetEntityCreateDto extends IEntityCreateDto<IBillingTimesheetEntity> {
38
+ }
39
+ export interface IBillingTimesheetDetail extends IAuditColumnEntity {
40
+ timesheetId: number;
41
+ totalAmount: number;
42
+ changedStatus: BillingTimesheetStatusEnum;
43
+ impact: BillingImpactEnum;
44
+ amendmentPurpose?: string;
45
+ userId: number;
46
+ projectId: number;
47
+ task: string;
48
+ description?: string;
49
+ totalDuration: number;
50
+ dateCode: string;
51
+ }
52
+ export interface IBillingTimesheetDetailsArray extends Array<IBillingTimesheetDetail> {
27
53
  }
28
54
  export interface IBillingEntityFilterDto extends IEntityFilterData<IBillingEntity> {
29
55
  }
30
- export interface IBillingEntityCreateDtoValidationData {
31
- projectEntity: IProjectEntity;
32
- timesheetEntities: ITimesheetEntity[];
56
+ export interface IBillingTimesheetEntityFilterDto extends IEntityFilterData<IBillingTimesheetEntity> {
33
57
  }
34
58
  export declare const billingRelations: EntityEnum[];
35
59
  export declare const billingEntities: EntityEnum[];
@@ -1,6 +1,5 @@
1
1
  import { OrganizationStatusEnum } from "../enums/organization.entity.enum";
2
2
  import { IAuditColumnEntity } from "./audit-column.entity.interface";
3
- import { IEntityFilterData } from "./entity.utils.interface";
4
3
  export interface IOrganizationEntity extends IAuditColumnEntity {
5
4
  id: string;
6
5
  name: string;
@@ -9,8 +8,4 @@ export interface IOrganizationEntity extends IAuditColumnEntity {
9
8
  description: string;
10
9
  address: string;
11
10
  status: OrganizationStatusEnum;
12
- panNo: string;
13
- panDocumentUrl?: string | null;
14
- }
15
- export interface IOrganizationEntityFilterDto extends IEntityFilterData<IOrganizationEntity> {
16
11
  }
@@ -7,5 +7,4 @@ export declare enum CurrencyEnum {
7
7
  export declare namespace CurrencyEnum {
8
8
  function parse(value: string): CurrencyEnum;
9
9
  function getNames(): string[];
10
- function getFullCurrencyName(currency: CurrencyEnum | string): string;
11
10
  }
@@ -23,37 +23,15 @@ var CurrencyEnum;
23
23
  return CurrencyEnum.GBP;
24
24
  default:
25
25
  throw new exceptions_1.AppBadRequestException({
26
- message: [
27
- `Invalid currency: '${value}'. Valid values are: ${CurrencyEnum.getNames().join(", ")}`,
28
- ],
26
+ message: [`Invalid currency: '${value}'. Valid values are: ${CurrencyEnum.getNames().join(", ")}`],
29
27
  key: error_key_enum_1.ErrorKeyEnum.CURRENCY,
30
28
  });
31
29
  }
32
30
  }
33
31
  CurrencyEnum.parse = parse;
34
32
  function getNames() {
35
- return Object.values(CurrencyEnum).filter((value) => typeof value === "string");
33
+ return Object.values(CurrencyEnum).filter(value => typeof value === 'string');
34
+ ;
36
35
  }
37
36
  CurrencyEnum.getNames = getNames;
38
- // Internal map
39
- const CurrencyNameMap = {
40
- USD: "United States Dollar",
41
- INR: "Indian Rupees",
42
- GBP: "British Sterling Pound",
43
- EUR: "Euro",
44
- };
45
- // Public function to get full currency name
46
- function getFullCurrencyName(currency) {
47
- const name = CurrencyNameMap[currency];
48
- if (!name) {
49
- throw new exceptions_1.AppBadRequestException({
50
- message: [
51
- `Invalid currency for full name: '${currency}'. Valid values are: ${CurrencyEnum.getNames().join(", ")}`,
52
- ],
53
- key: error_key_enum_1.ErrorKeyEnum.CURRENCY,
54
- });
55
- }
56
- return name;
57
- }
58
- CurrencyEnum.getFullCurrencyName = getFullCurrencyName;
59
37
  })(CurrencyEnum || (exports.CurrencyEnum = CurrencyEnum = {}));
@@ -8,6 +8,5 @@ export declare class DateCodeModel {
8
8
  static fromDate(date: Date): string;
9
9
  getFormattedDate(): string;
10
10
  getFormattedDateWithMonthName(): string;
11
- static formatDateCode(dateCode: string): string;
12
11
  isWithinOffset(offsetInDays: number): boolean;
13
12
  }
@@ -52,10 +52,6 @@ class DateCodeModel {
52
52
  getFormattedDateWithMonthName() {
53
53
  return (0, date_fns_1.format)(this.getDate(), "dd-MMM-yyyy");
54
54
  }
55
- static formatDateCode(dateCode) {
56
- const parsedDate = (0, date_fns_1.parse)(dateCode, "yyyyMMdd", new Date());
57
- return (0, date_fns_1.format)(parsedDate, "MMMM d, yyyy");
58
- }
59
55
  isWithinOffset(offsetInDays) {
60
56
  const todaysDateModel = new DateCodeModel(DateCodeModel.fromDate(new Date()));
61
57
  const onTimeDateModel = todaysDateModel.getByOffset(offsetInDays);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "law-common",
3
- "version": "8.8.1-beta.1",
3
+ "version": "8.9.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -1,3 +0,0 @@
1
- import { IApiEntity, IIntermediaryBankEntity } from "../../entities";
2
- export type IIntermediaryBankApiEntity = IApiEntity<IIntermediaryBankEntity>;
3
- export type IIntermediaryBankApiEntityArray = IIntermediaryBankApiEntity[];
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- import { IApiEntity, IOrganizationEntity } from "../../entities";
2
- export type IOrganizationApiEntity = IApiEntity<IOrganizationEntity>;
3
- export type IOrganizationApiEntityArray = IOrganizationApiEntity[];
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- export declare enum BillingInvoiceTypeEnum {
2
- CLIENT = "client",
3
- CLIENT_AFFILIATE = "client_affiliate"
4
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BillingInvoiceTypeEnum = void 0;
4
- var BillingInvoiceTypeEnum;
5
- (function (BillingInvoiceTypeEnum) {
6
- BillingInvoiceTypeEnum["CLIENT"] = "client";
7
- BillingInvoiceTypeEnum["CLIENT_AFFILIATE"] = "client_affiliate";
8
- })(BillingInvoiceTypeEnum || (exports.BillingInvoiceTypeEnum = BillingInvoiceTypeEnum = {}));
@@ -1,49 +0,0 @@
1
- import { BillingImpactEnum } from "../enums/billing.impact.enum";
2
- import { BillingTimesheetStatusEnum } from "../enums/billing.timesheet.change.status.enum";
3
- import { IAuditColumnEntity } from "./audit-column.entity.interface";
4
- import { IEntityCreateDto, IEntityFilterData, IEntityUpdateDto } from "./entity.utils.interface";
5
- import { ITimesheetEntity } from "./timesheet.entity.interface";
6
- export interface IBillingTimesheetEntity extends IAuditColumnEntity {
7
- id: number;
8
- billingId: number;
9
- dateCode: string;
10
- timesheetId: number;
11
- userId: number;
12
- projectId: number;
13
- task: string;
14
- description?: string;
15
- totalDuration: number;
16
- totalAmount: number;
17
- impact: BillingImpactEnum;
18
- amendmentPurpose?: string;
19
- changedStatus: BillingTimesheetStatusEnum;
20
- }
21
- export interface IBillingTimesheetEntityCreateDto extends IEntityCreateDto<IBillingTimesheetEntity> {
22
- }
23
- export interface IBillingTimesheetDetail extends IAuditColumnEntity {
24
- timesheetId: number;
25
- billingId: number;
26
- totalAmount: number;
27
- changedStatus: BillingTimesheetStatusEnum;
28
- impact: BillingImpactEnum;
29
- amendmentPurpose?: string;
30
- userId: number;
31
- projectId: number;
32
- task: string;
33
- description?: string;
34
- totalDuration: number;
35
- dateCode: string;
36
- }
37
- export interface IBillingTimesheetDetailsArray extends Array<IBillingTimesheetDetail> {
38
- }
39
- export interface IBillingTimesheetEntityFilterDto extends IEntityFilterData<IBillingTimesheetEntity> {
40
- }
41
- export interface IBillingTimesheetEntityCreateDtoValidationResult {
42
- timesheets: ITimesheetEntity[];
43
- }
44
- export interface IBillingTimesheetUpdateDto extends IEntityUpdateDto<IBillingTimesheetEntity> {
45
- }
46
- export interface IBillingTimesheetDeleteDto extends Partial<IBillingTimesheetEntity> {
47
- id: number;
48
- changedStatus: BillingTimesheetStatusEnum;
49
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,21 +0,0 @@
1
- import { CurrencyEnum } from "../../enums";
2
- import { IAuditColumnEntity } from "./audit-column.entity.interface";
3
- import { IEntityCreateDto, IEntityFilterData, IEntityUpdateDto } from "./entity.utils.interface";
4
- export interface IIntermediaryBankEntity extends IAuditColumnEntity {
5
- id: number;
6
- name: string;
7
- bankId: number;
8
- accountNo: string;
9
- currency: CurrencyEnum;
10
- swiftCode: string;
11
- address: string;
12
- }
13
- export type IIntermediaryBankCreateDtoExclude = "bankId";
14
- export interface IIntermediaryBankCreateDto extends Omit<IEntityCreateDto<IIntermediaryBankEntity>, IIntermediaryBankCreateDtoExclude> {
15
- bankId?: number;
16
- }
17
- export interface IIntermediaryBankUpdateDto extends IEntityUpdateDto<IIntermediaryBankEntity> {
18
- id?: number;
19
- }
20
- export interface IIntermediaryBankFilterDto extends IEntityFilterData<IIntermediaryBankEntity> {
21
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });