law-common 2.8.1-beta.20 → 2.8.1-beta.21

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.
@@ -17,7 +17,6 @@ export declare enum ReimbursementStatusEnum {
17
17
  APPROVED = "APPROVED",
18
18
  REJECTED = "REJECTED",
19
19
  PARTIALLY_APPROVED = "PARTIALLY_APPROVED",
20
- PAYMENT_PENDING = "PAYMENT_PENDING",
21
20
  PAYMENT_DISBURSE = "PAYMENT_DISBURSE",
22
21
  DELETED = "DELETED"
23
22
  }
@@ -26,7 +26,6 @@ var ReimbursementStatusEnum;
26
26
  ReimbursementStatusEnum["APPROVED"] = "APPROVED";
27
27
  ReimbursementStatusEnum["REJECTED"] = "REJECTED";
28
28
  ReimbursementStatusEnum["PARTIALLY_APPROVED"] = "PARTIALLY_APPROVED";
29
- ReimbursementStatusEnum["PAYMENT_PENDING"] = "PAYMENT_PENDING";
30
29
  ReimbursementStatusEnum["PAYMENT_DISBURSE"] = "PAYMENT_DISBURSE";
31
30
  ReimbursementStatusEnum["DELETED"] = "DELETED";
32
31
  })(ReimbursementStatusEnum || (exports.ReimbursementStatusEnum = ReimbursementStatusEnum = {}));
@@ -17,9 +17,8 @@ export interface IReimbursementEntity extends IAuditColumnEntity {
17
17
  processedBy?: number;
18
18
  processedDate?: string;
19
19
  approvedBy?: number;
20
- }
21
- export interface IReimbursementExpenseDetails {
22
- details?: IReimbursementExpenseAllocation[];
20
+ paymentDetails?: string;
21
+ remark?: string;
23
22
  }
24
23
  export interface IReimbursementExpenseAllocation {
25
24
  userId: number;
@@ -1,6 +1,6 @@
1
1
  import { ReimbursementActionSubRowEnum, ReimbursementSubRowState } from "../enums/reimbursement.entity.enum";
2
2
  import { IAuditColumnEntity } from "./audit-column.entity.interface";
3
- import { IEntityCreateDto, IEntityUpdateDto } from "./entity.utils.interface";
3
+ import { IEntityCreateDto, IEntityFilterData, IEntityUpdateDto } from "./entity.utils.interface";
4
4
  export interface IReimbursementExpenseEntity extends IAuditColumnEntity {
5
5
  id: number;
6
6
  reimbursementId: number;
@@ -17,3 +17,6 @@ export interface IReimbursementExpenseEntityUpdateDto extends IEntityUpdateDto<I
17
17
  id?: number;
18
18
  action?: ReimbursementActionSubRowEnum;
19
19
  }
20
+ export interface IReimbursementExpenseEntityFilterDto extends IEntityFilterData<IReimbursementExpenseEntity> {
21
+ createdBy?: number[];
22
+ }
@@ -4,5 +4,6 @@ export declare class DateCodeModel {
4
4
  isValid(): boolean;
5
5
  getDate(): Date;
6
6
  static getRange(startDate: DateCodeModel, endDate: DateCodeModel): DateCodeModel[];
7
+ static fromDate(date: Date): string;
7
8
  isWithinOffset(offsetInDays: number): boolean;
8
9
  }
@@ -35,6 +35,9 @@ class DateCodeModel {
35
35
  }
36
36
  return dateCodes;
37
37
  }
38
+ static fromDate(date) {
39
+ return (0, date_fns_1.format)(date, "yyyyMMdd");
40
+ }
38
41
  isWithinOffset(offsetInDays) {
39
42
  const currentDate = new Date();
40
43
  const diffInDays = Math.abs((currentDate.getTime() - this.getDate().getTime()) / (1000 * 3600 * 24));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "law-common",
3
- "version": "2.8.1-beta.20",
3
+ "version": "2.8.1-beta.21",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [