law-common 2.8.1-beta.17 → 2.8.1-beta.19
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.
- package/dist/src/api/index.d.ts +1 -0
- package/dist/src/api/index.js +1 -0
- package/dist/src/api/interface/reimbursement.entity.response.d.ts +6 -2
- package/dist/src/api/interface/reimbursement_expense.api.d.ts +3 -0
- package/dist/src/api/interface/reimbursement_expense.api.js +2 -0
- package/dist/src/entities/interface/reimbursement.entity.interface.d.ts +1 -3
- package/dist/src/entities/interface/reimbursement_expense.entity.interface.d.ts +2 -0
- package/package.json +1 -1
package/dist/src/api/index.d.ts
CHANGED
|
@@ -62,3 +62,4 @@ export * from "./interface/timesheet.history.api";
|
|
|
62
62
|
export * from "./interface/billing.history.api";
|
|
63
63
|
export * from "./interface/billing_timesheet_history.api";
|
|
64
64
|
export * from "./interface/reimbursement_history.api";
|
|
65
|
+
export * from "./interface/reimbursement_expense.api";
|
package/dist/src/api/index.js
CHANGED
|
@@ -78,3 +78,4 @@ __exportStar(require("./interface/timesheet.history.api"), exports);
|
|
|
78
78
|
__exportStar(require("./interface/billing.history.api"), exports);
|
|
79
79
|
__exportStar(require("./interface/billing_timesheet_history.api"), exports);
|
|
80
80
|
__exportStar(require("./interface/reimbursement_history.api"), exports);
|
|
81
|
+
__exportStar(require("./interface/reimbursement_expense.api"), exports);
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { IApiEntity, IReimbursementEntity, ReimbursementActionEnum, ReimbursementActionSubRowEnum, ReimbursementStatusEnum, ReimbursementSubRowState } from "../../entities";
|
|
2
2
|
import { IProjectEntityGet } from "./project.entity.response";
|
|
3
|
+
import { IReimbursementExpenseApiEntityArray } from "./reimbursement_expense.api";
|
|
3
4
|
import { IUserApiEntity } from "./user.entity.api";
|
|
4
5
|
export type IReimbursementApiEntity = IApiEntity<IReimbursementEntity>;
|
|
5
6
|
export type IReimbursementApiEntityArray = IReimbursementApiEntity[];
|
|
6
7
|
export type IReimbursementEntityGet = {
|
|
7
|
-
reimbursements:
|
|
8
|
+
reimbursements: IReimbursementResponse[];
|
|
8
9
|
users: {
|
|
9
10
|
[key: string]: IUserApiEntity;
|
|
10
11
|
};
|
|
@@ -33,5 +34,8 @@ export type IReimbursementFlowConfig = {
|
|
|
33
34
|
};
|
|
34
35
|
};
|
|
35
36
|
export type IReimbursementFlowContextData = {
|
|
36
|
-
|
|
37
|
+
expenseDetails: IReimbursementExpenseApiEntityArray;
|
|
38
|
+
};
|
|
39
|
+
export type IReimbursementResponse = IReimbursementApiEntity & {
|
|
40
|
+
expenseDetails: IReimbursementExpenseApiEntityArray;
|
|
37
41
|
};
|
|
@@ -9,7 +9,6 @@ export interface IReimbursementEntity extends IAuditColumnEntity {
|
|
|
9
9
|
billNo?: string;
|
|
10
10
|
expenseIncurredBy: ReimbursementIncurredByEnum;
|
|
11
11
|
billPresent: ReimbursementBillingPresentEnum;
|
|
12
|
-
expenseDetailsJson: string;
|
|
13
12
|
projectIdsCsv: string;
|
|
14
13
|
userIdsCsv: string;
|
|
15
14
|
description: string;
|
|
@@ -22,7 +21,6 @@ export interface IReimbursementEntity extends IAuditColumnEntity {
|
|
|
22
21
|
approvedBy?: number;
|
|
23
22
|
}
|
|
24
23
|
export interface IReimbursementExpenseDetails {
|
|
25
|
-
members: number[];
|
|
26
24
|
details?: IReimbursementExpenseAllocation[];
|
|
27
25
|
}
|
|
28
26
|
export interface IReimbursementExpenseAllocation {
|
|
@@ -34,7 +32,7 @@ export interface IReimbursementExpenseAllocation {
|
|
|
34
32
|
action?: ReimbursementActionSubRowEnum;
|
|
35
33
|
}
|
|
36
34
|
export interface IReimbursementCreateDtoExtra {
|
|
37
|
-
expenseDetails:
|
|
35
|
+
expenseDetails: IReimbursementExpenseAllocation[];
|
|
38
36
|
attachmentDocumentUrls?: string[];
|
|
39
37
|
}
|
|
40
38
|
export type IReimbursementExclude = "billingType" | "expenseDetailsJson" | "projectIdsCsv" | "attachmentUrlsCsv" | "amountReimbursed" | "processedBy" | "processedDate" | "approvedBy" | "userIdsCsv";
|
|
@@ -11,7 +11,9 @@ export interface IReimbursementExpenseEntity extends IAuditColumnEntity {
|
|
|
11
11
|
state?: ReimbursementSubRowState;
|
|
12
12
|
}
|
|
13
13
|
export interface IReimbursementExpenseEntityCreateDto extends IEntityCreateDto<IReimbursementExpenseEntity> {
|
|
14
|
+
id?: number;
|
|
14
15
|
}
|
|
15
16
|
export interface IReimbursementExpenseEntityUpdateDto extends IEntityUpdateDto<IReimbursementExpenseEntity> {
|
|
17
|
+
id?: number;
|
|
16
18
|
action?: ReimbursementActionSubRowEnum;
|
|
17
19
|
}
|