law-common 2.7.1-beta.5 → 2.8.1-beta.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.
|
@@ -12,10 +12,17 @@ export declare enum ReimbursementIncurredByEnum {
|
|
|
12
12
|
OTHERS = "OTHERS"
|
|
13
13
|
}
|
|
14
14
|
export declare enum ReimbursementStatusEnum {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
APPROVAL_PENDING = "APPROVAL_PENDING",//new
|
|
16
|
+
APPROVED = "APPROVED",//new
|
|
17
|
+
REJECTED = "REJECTED",// need in new
|
|
18
|
+
PARTIALLY_APPROVED = "PARTIALLY_APPROVED",//need in new
|
|
19
|
+
PAYMENT_PENDING = "PAYMENT_PENDING",//new
|
|
20
|
+
PAYMENT_DISBURSE = "PAYMENT_DISBURSE"
|
|
21
|
+
}
|
|
22
|
+
export declare enum ReimbursementSubRowState {
|
|
23
|
+
PENDING = "pending",
|
|
24
|
+
APPROVED = "approved",
|
|
25
|
+
REJECT = "reject"
|
|
19
26
|
}
|
|
20
27
|
export declare enum ReimbursementPaymentStatusEnum {
|
|
21
28
|
PAID = "PAID",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReimbursementPaymentStatusEnum = exports.ReimbursementStatusEnum = exports.ReimbursementIncurredByEnum = exports.ReimbursementBillingPresentEnum = exports.ReimbursementBillingTypeEnum = void 0;
|
|
3
|
+
exports.ReimbursementPaymentStatusEnum = exports.ReimbursementSubRowState = exports.ReimbursementStatusEnum = exports.ReimbursementIncurredByEnum = exports.ReimbursementBillingPresentEnum = exports.ReimbursementBillingTypeEnum = void 0;
|
|
4
4
|
var ReimbursementBillingTypeEnum;
|
|
5
5
|
(function (ReimbursementBillingTypeEnum) {
|
|
6
6
|
ReimbursementBillingTypeEnum["BILLABLE"] = "BILLABLE";
|
|
@@ -19,11 +19,19 @@ var ReimbursementIncurredByEnum;
|
|
|
19
19
|
})(ReimbursementIncurredByEnum || (exports.ReimbursementIncurredByEnum = ReimbursementIncurredByEnum = {}));
|
|
20
20
|
var ReimbursementStatusEnum;
|
|
21
21
|
(function (ReimbursementStatusEnum) {
|
|
22
|
-
ReimbursementStatusEnum["
|
|
23
|
-
ReimbursementStatusEnum["
|
|
24
|
-
ReimbursementStatusEnum["PARTIALLY_APPROVED"] = "PARTIALLY_APPROVED";
|
|
22
|
+
ReimbursementStatusEnum["APPROVAL_PENDING"] = "APPROVAL_PENDING";
|
|
23
|
+
ReimbursementStatusEnum["APPROVED"] = "APPROVED";
|
|
25
24
|
ReimbursementStatusEnum["REJECTED"] = "REJECTED";
|
|
25
|
+
ReimbursementStatusEnum["PARTIALLY_APPROVED"] = "PARTIALLY_APPROVED";
|
|
26
|
+
ReimbursementStatusEnum["PAYMENT_PENDING"] = "PAYMENT_PENDING";
|
|
27
|
+
ReimbursementStatusEnum["PAYMENT_DISBURSE"] = "PAYMENT_DISBURSE";
|
|
26
28
|
})(ReimbursementStatusEnum || (exports.ReimbursementStatusEnum = ReimbursementStatusEnum = {}));
|
|
29
|
+
var ReimbursementSubRowState;
|
|
30
|
+
(function (ReimbursementSubRowState) {
|
|
31
|
+
ReimbursementSubRowState["PENDING"] = "pending";
|
|
32
|
+
ReimbursementSubRowState["APPROVED"] = "approved";
|
|
33
|
+
ReimbursementSubRowState["REJECT"] = "reject";
|
|
34
|
+
})(ReimbursementSubRowState || (exports.ReimbursementSubRowState = ReimbursementSubRowState = {}));
|
|
27
35
|
var ReimbursementPaymentStatusEnum;
|
|
28
36
|
(function (ReimbursementPaymentStatusEnum) {
|
|
29
37
|
ReimbursementPaymentStatusEnum["PAID"] = "PAID";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReimbursementBillingPresentEnum, ReimbursementBillingTypeEnum, ReimbursementIncurredByEnum, ReimbursementPaymentStatusEnum, ReimbursementStatusEnum } from "../enums/reimbursement.entity.enum";
|
|
1
|
+
import { ReimbursementBillingPresentEnum, ReimbursementBillingTypeEnum, ReimbursementIncurredByEnum, ReimbursementPaymentStatusEnum, ReimbursementStatusEnum, ReimbursementSubRowState } from "../enums/reimbursement.entity.enum";
|
|
2
2
|
import { IAuditColumnEntity } from "./audit-column.entity.interface";
|
|
3
|
-
import { IEntityCreateDto, IEntityFilterData } from "./entity.utils.interface";
|
|
3
|
+
import { IEntityCreateDto, IEntityFilterData, IEntityUpdateDto } from "./entity.utils.interface";
|
|
4
4
|
export interface IReimbursementEntity extends IAuditColumnEntity {
|
|
5
5
|
id: number;
|
|
6
6
|
billingType: ReimbursementBillingTypeEnum;
|
|
@@ -31,6 +31,7 @@ export interface IReimbursementExpenseAllocation {
|
|
|
31
31
|
userIds: number[];
|
|
32
32
|
projectId: number;
|
|
33
33
|
amount: number;
|
|
34
|
+
state: ReimbursementSubRowState;
|
|
34
35
|
}
|
|
35
36
|
export interface IReimbursementCreateDtoExtra {
|
|
36
37
|
expenseDetails: IReimbursementExpenseDetails;
|
|
@@ -39,6 +40,8 @@ export interface IReimbursementCreateDtoExtra {
|
|
|
39
40
|
export type IReimbursementExclude = "expenseDetailsJson" | "projectIdsCsv" | "attachmentUrlsCsv" | "amountReimbursed" | "processedBy" | "processedDate" | "approvedBy" | "userIdsCsv";
|
|
40
41
|
export interface IReimbursementEntityCreateDto extends Omit<IEntityCreateDto<IReimbursementEntity>, IReimbursementExclude>, IReimbursementCreateDtoExtra {
|
|
41
42
|
}
|
|
43
|
+
export interface IReimbursementUpdateDto extends IEntityUpdateDto<IReimbursementEntity> {
|
|
44
|
+
}
|
|
42
45
|
export interface IReimbursementEntityFilterDto extends IEntityFilterData<IReimbursementEntity> {
|
|
43
46
|
createdBy?: number[];
|
|
44
47
|
}
|