law-common 2.8.0 → 2.8.1-beta.2
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,40 @@ export declare enum ReimbursementIncurredByEnum {
|
|
|
12
12
|
OTHERS = "OTHERS"
|
|
13
13
|
}
|
|
14
14
|
export declare enum ReimbursementStatusEnum {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
APPROVAL_PENDING = "APPROVAL_PENDING",
|
|
16
|
+
APPROVED = "APPROVED",
|
|
17
|
+
REJECTED = "REJECTED",
|
|
17
18
|
PARTIALLY_APPROVED = "PARTIALLY_APPROVED",
|
|
18
|
-
|
|
19
|
+
PAYMENT_PENDING = "PAYMENT_PENDING",
|
|
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",
|
|
22
29
|
UNPAID = "UNPAID"
|
|
23
30
|
}
|
|
31
|
+
export declare enum ReimbursementActionEnum {
|
|
32
|
+
VIEW = "view",
|
|
33
|
+
EDIT = "edit",
|
|
34
|
+
DELETE = "delete",
|
|
35
|
+
APPROVE = "approve",
|
|
36
|
+
REJECT = "reject",
|
|
37
|
+
PAYMENT_DONE = "payment_done"
|
|
38
|
+
}
|
|
39
|
+
export declare enum ReimbursementStatusEnumMainRow {
|
|
40
|
+
APPROVAL_PENDING = "approval_pending",
|
|
41
|
+
APPROVED = "approved",
|
|
42
|
+
REJECTED = "rejected",
|
|
43
|
+
PARTIALLY_APPROVED = "partially_approved",
|
|
44
|
+
PAYMENT_PENDING = "payment_pending",
|
|
45
|
+
PAYMENT_DISBURSE = "payment_disburse"
|
|
46
|
+
}
|
|
47
|
+
export declare enum ReimbursementStatusSubRow {
|
|
48
|
+
APPROVED = "approved",
|
|
49
|
+
REJECTED = "rejected",
|
|
50
|
+
PENDING = "pending"
|
|
51
|
+
}
|
|
@@ -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.ReimbursementStatusSubRow = exports.ReimbursementStatusEnumMainRow = 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";
|
|
@@ -19,13 +19,45 @@ 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";
|
|
30
38
|
ReimbursementPaymentStatusEnum["UNPAID"] = "UNPAID";
|
|
31
39
|
})(ReimbursementPaymentStatusEnum || (exports.ReimbursementPaymentStatusEnum = ReimbursementPaymentStatusEnum = {}));
|
|
40
|
+
var ReimbursementActionEnum;
|
|
41
|
+
(function (ReimbursementActionEnum) {
|
|
42
|
+
ReimbursementActionEnum["VIEW"] = "view";
|
|
43
|
+
ReimbursementActionEnum["EDIT"] = "edit";
|
|
44
|
+
ReimbursementActionEnum["DELETE"] = "delete";
|
|
45
|
+
ReimbursementActionEnum["APPROVE"] = "approve";
|
|
46
|
+
ReimbursementActionEnum["REJECT"] = "reject";
|
|
47
|
+
ReimbursementActionEnum["PAYMENT_DONE"] = "payment_done";
|
|
48
|
+
})(ReimbursementActionEnum || (exports.ReimbursementActionEnum = ReimbursementActionEnum = {}));
|
|
49
|
+
var ReimbursementStatusEnumMainRow;
|
|
50
|
+
(function (ReimbursementStatusEnumMainRow) {
|
|
51
|
+
ReimbursementStatusEnumMainRow["APPROVAL_PENDING"] = "approval_pending";
|
|
52
|
+
ReimbursementStatusEnumMainRow["APPROVED"] = "approved";
|
|
53
|
+
ReimbursementStatusEnumMainRow["REJECTED"] = "rejected";
|
|
54
|
+
ReimbursementStatusEnumMainRow["PARTIALLY_APPROVED"] = "partially_approved";
|
|
55
|
+
ReimbursementStatusEnumMainRow["PAYMENT_PENDING"] = "payment_pending";
|
|
56
|
+
ReimbursementStatusEnumMainRow["PAYMENT_DISBURSE"] = "payment_disburse";
|
|
57
|
+
})(ReimbursementStatusEnumMainRow || (exports.ReimbursementStatusEnumMainRow = ReimbursementStatusEnumMainRow = {}));
|
|
58
|
+
var ReimbursementStatusSubRow;
|
|
59
|
+
(function (ReimbursementStatusSubRow) {
|
|
60
|
+
ReimbursementStatusSubRow["APPROVED"] = "approved";
|
|
61
|
+
ReimbursementStatusSubRow["REJECTED"] = "rejected";
|
|
62
|
+
ReimbursementStatusSubRow["PENDING"] = "pending";
|
|
63
|
+
})(ReimbursementStatusSubRow || (exports.ReimbursementStatusSubRow = ReimbursementStatusSubRow = {}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReimbursementBillingPresentEnum, ReimbursementBillingTypeEnum, ReimbursementIncurredByEnum, ReimbursementPaymentStatusEnum, ReimbursementStatusEnum } 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
|
-
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,12 @@ 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
|
}
|
|
48
|
+
export interface IReimbursementActionDataDto {
|
|
49
|
+
action: ReimbursementActionEnum;
|
|
50
|
+
remark?: string;
|
|
51
|
+
}
|
package/package.json
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "law-common",
|
|
3
|
-
"version": "2.8.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"files": [
|
|
7
|
-
"dist/**/*"
|
|
8
|
-
],
|
|
9
|
-
"scripts": {
|
|
10
|
-
"clean": "rm -rf dist",
|
|
11
|
-
"build": "npm run clean && tsc",
|
|
12
|
-
"publish:beta": "npm version prerelease --preid beta && git push && npm run build && npm publish --tag beta",
|
|
13
|
-
"publish:patch": "npm version patch && git push && npm run build && npm publish",
|
|
14
|
-
"publish:minor": "npm version minor && git push && npm run build && npm publish",
|
|
15
|
-
"publish:major": "npm version major && git push && npm run build && npm publish",
|
|
16
|
-
"link": "npm run build && npm link",
|
|
17
|
-
"test": "jest"
|
|
18
|
-
},
|
|
19
|
-
"keywords": [],
|
|
20
|
-
"author": "",
|
|
21
|
-
"license": "ISC",
|
|
22
|
-
"devDependencies": {
|
|
23
|
-
"@types/jest": "^29.5.13",
|
|
24
|
-
"@types/node": "^22.6.1",
|
|
25
|
-
"jest": "^29.7.0",
|
|
26
|
-
"ts-jest": "^29.2.5",
|
|
27
|
-
"ts-node": "^10.9.2",
|
|
28
|
-
"typescript": "^5.6.2"
|
|
29
|
-
},
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"@types/express": "^5.0.0",
|
|
32
|
-
"@types/multer": "^1.4.12",
|
|
33
|
-
"date-fns": "^4.1.0"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "law-common",
|
|
3
|
+
"version": "2.8.1-beta.2",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist/**/*"
|
|
8
|
+
],
|
|
9
|
+
"scripts": {
|
|
10
|
+
"clean": "rm -rf dist",
|
|
11
|
+
"build": "npm run clean && tsc",
|
|
12
|
+
"publish:beta": "npm version prerelease --preid beta && git push && npm run build && npm publish --tag beta",
|
|
13
|
+
"publish:patch": "npm version patch && git push && npm run build && npm publish",
|
|
14
|
+
"publish:minor": "npm version minor && git push && npm run build && npm publish",
|
|
15
|
+
"publish:major": "npm version major && git push && npm run build && npm publish",
|
|
16
|
+
"link": "npm run build && npm link",
|
|
17
|
+
"test": "jest"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [],
|
|
20
|
+
"author": "",
|
|
21
|
+
"license": "ISC",
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@types/jest": "^29.5.13",
|
|
24
|
+
"@types/node": "^22.6.1",
|
|
25
|
+
"jest": "^29.7.0",
|
|
26
|
+
"ts-jest": "^29.2.5",
|
|
27
|
+
"ts-node": "^10.9.2",
|
|
28
|
+
"typescript": "^5.6.2"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@types/express": "^5.0.0",
|
|
32
|
+
"@types/multer": "^1.4.12",
|
|
33
|
+
"date-fns": "^4.1.0"
|
|
34
|
+
}
|
|
35
|
+
}
|