law-common 2.8.1-beta.0 → 2.8.1-beta.3
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,12 +12,13 @@ export declare enum ReimbursementIncurredByEnum {
|
|
|
12
12
|
OTHERS = "OTHERS"
|
|
13
13
|
}
|
|
14
14
|
export declare enum ReimbursementStatusEnum {
|
|
15
|
-
APPROVAL_PENDING = "APPROVAL_PENDING"
|
|
16
|
-
APPROVED = "APPROVED"
|
|
17
|
-
REJECTED = "REJECTED"
|
|
18
|
-
PARTIALLY_APPROVED = "PARTIALLY_APPROVED"
|
|
19
|
-
PAYMENT_PENDING = "PAYMENT_PENDING"
|
|
20
|
-
PAYMENT_DISBURSE = "PAYMENT_DISBURSE"
|
|
15
|
+
APPROVAL_PENDING = "APPROVAL_PENDING",
|
|
16
|
+
APPROVED = "APPROVED",
|
|
17
|
+
REJECTED = "REJECTED",
|
|
18
|
+
PARTIALLY_APPROVED = "PARTIALLY_APPROVED",
|
|
19
|
+
PAYMENT_PENDING = "PAYMENT_PENDING",
|
|
20
|
+
PAYMENT_DISBURSE = "PAYMENT_DISBURSE",
|
|
21
|
+
DELETED = "DELETED"
|
|
21
22
|
}
|
|
22
23
|
export declare enum ReimbursementSubRowState {
|
|
23
24
|
PENDING = "pending",
|
|
@@ -28,3 +29,16 @@ export declare enum ReimbursementPaymentStatusEnum {
|
|
|
28
29
|
PAID = "PAID",
|
|
29
30
|
UNPAID = "UNPAID"
|
|
30
31
|
}
|
|
32
|
+
export declare enum ReimbursementActionEnum {
|
|
33
|
+
VIEW = "view",
|
|
34
|
+
EDIT = "edit",
|
|
35
|
+
DELETE = "delete",
|
|
36
|
+
APPROVE = "approve",
|
|
37
|
+
REJECT = "reject",
|
|
38
|
+
PAYMENT_DONE = "payment_done"
|
|
39
|
+
}
|
|
40
|
+
export declare enum ReimbursementStatusSubRow {
|
|
41
|
+
APPROVED = "approved",
|
|
42
|
+
REJECTED = "rejected",
|
|
43
|
+
PENDING = "pending"
|
|
44
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReimbursementPaymentStatusEnum = exports.ReimbursementSubRowState = exports.ReimbursementStatusEnum = exports.ReimbursementIncurredByEnum = exports.ReimbursementBillingPresentEnum = exports.ReimbursementBillingTypeEnum = void 0;
|
|
3
|
+
exports.ReimbursementStatusSubRow = exports.ReimbursementActionEnum = 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";
|
|
@@ -25,6 +25,7 @@ var ReimbursementStatusEnum;
|
|
|
25
25
|
ReimbursementStatusEnum["PARTIALLY_APPROVED"] = "PARTIALLY_APPROVED";
|
|
26
26
|
ReimbursementStatusEnum["PAYMENT_PENDING"] = "PAYMENT_PENDING";
|
|
27
27
|
ReimbursementStatusEnum["PAYMENT_DISBURSE"] = "PAYMENT_DISBURSE";
|
|
28
|
+
ReimbursementStatusEnum["DELETED"] = "DELETED";
|
|
28
29
|
})(ReimbursementStatusEnum || (exports.ReimbursementStatusEnum = ReimbursementStatusEnum = {}));
|
|
29
30
|
var ReimbursementSubRowState;
|
|
30
31
|
(function (ReimbursementSubRowState) {
|
|
@@ -37,3 +38,18 @@ var ReimbursementPaymentStatusEnum;
|
|
|
37
38
|
ReimbursementPaymentStatusEnum["PAID"] = "PAID";
|
|
38
39
|
ReimbursementPaymentStatusEnum["UNPAID"] = "UNPAID";
|
|
39
40
|
})(ReimbursementPaymentStatusEnum || (exports.ReimbursementPaymentStatusEnum = ReimbursementPaymentStatusEnum = {}));
|
|
41
|
+
var ReimbursementActionEnum;
|
|
42
|
+
(function (ReimbursementActionEnum) {
|
|
43
|
+
ReimbursementActionEnum["VIEW"] = "view";
|
|
44
|
+
ReimbursementActionEnum["EDIT"] = "edit";
|
|
45
|
+
ReimbursementActionEnum["DELETE"] = "delete";
|
|
46
|
+
ReimbursementActionEnum["APPROVE"] = "approve";
|
|
47
|
+
ReimbursementActionEnum["REJECT"] = "reject";
|
|
48
|
+
ReimbursementActionEnum["PAYMENT_DONE"] = "payment_done";
|
|
49
|
+
})(ReimbursementActionEnum || (exports.ReimbursementActionEnum = ReimbursementActionEnum = {}));
|
|
50
|
+
var ReimbursementStatusSubRow;
|
|
51
|
+
(function (ReimbursementStatusSubRow) {
|
|
52
|
+
ReimbursementStatusSubRow["APPROVED"] = "approved";
|
|
53
|
+
ReimbursementStatusSubRow["REJECTED"] = "rejected";
|
|
54
|
+
ReimbursementStatusSubRow["PENDING"] = "pending";
|
|
55
|
+
})(ReimbursementStatusSubRow || (exports.ReimbursementStatusSubRow = ReimbursementStatusSubRow = {}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReimbursementBillingPresentEnum, ReimbursementBillingTypeEnum, ReimbursementIncurredByEnum, ReimbursementPaymentStatusEnum, ReimbursementStatusEnum, ReimbursementSubRowState } from "../enums/reimbursement.entity.enum";
|
|
1
|
+
import { ReimbursementActionEnum, ReimbursementBillingPresentEnum, ReimbursementBillingTypeEnum, ReimbursementIncurredByEnum, ReimbursementPaymentStatusEnum, ReimbursementStatusEnum, ReimbursementSubRowState } from "../enums/reimbursement.entity.enum";
|
|
2
2
|
import { IAuditColumnEntity } from "./audit-column.entity.interface";
|
|
3
3
|
import { IEntityCreateDto, IEntityFilterData, IEntityUpdateDto } from "./entity.utils.interface";
|
|
4
4
|
export interface IReimbursementEntity extends IAuditColumnEntity {
|
|
@@ -28,10 +28,10 @@ export interface IReimbursementExpenseDetails {
|
|
|
28
28
|
details?: IReimbursementExpenseAllocation[];
|
|
29
29
|
}
|
|
30
30
|
export interface IReimbursementExpenseAllocation {
|
|
31
|
-
|
|
31
|
+
userId: number[];
|
|
32
32
|
projectId: number;
|
|
33
33
|
amount: number;
|
|
34
|
-
state
|
|
34
|
+
state?: ReimbursementSubRowState;
|
|
35
35
|
}
|
|
36
36
|
export interface IReimbursementCreateDtoExtra {
|
|
37
37
|
expenseDetails: IReimbursementExpenseDetails;
|
|
@@ -45,3 +45,7 @@ export interface IReimbursementUpdateDto extends IEntityUpdateDto<IReimbursement
|
|
|
45
45
|
export interface IReimbursementEntityFilterDto extends IEntityFilterData<IReimbursementEntity> {
|
|
46
46
|
createdBy?: number[];
|
|
47
47
|
}
|
|
48
|
+
export interface IReimbursementActionDataDto {
|
|
49
|
+
action: ReimbursementActionEnum;
|
|
50
|
+
remark?: string;
|
|
51
|
+
}
|