law-common 1.2.44 → 1.2.47
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/interface/billing.response.interface.d.ts +2 -0
- package/dist/src/entities/enums/reimbursement.entity.enum.d.ts +23 -0
- package/dist/src/entities/enums/reimbursement.entity.enum.js +31 -0
- package/dist/src/entities/index.d.ts +2 -0
- package/dist/src/entities/index.js +2 -0
- package/dist/src/entities/interface/client.entity.interface.d.ts +0 -1
- package/dist/src/entities/interface/project.entity.interface.d.ts +4 -4
- package/dist/src/entities/interface/reimbursement.entity.interface.d.ts +39 -0
- package/dist/src/entities/interface/reimbursement.entity.interface.js +2 -0
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ITimesheetEntity } from "../../entities";
|
|
2
2
|
import { ProjectBillingTypeEnum } from "../../entities/enums/project.entity.enum";
|
|
3
|
+
import { IProjectEntityGet } from "./project.entity.response";
|
|
3
4
|
export interface IProjectBillingOverviewDto {
|
|
4
5
|
projectId: number;
|
|
5
6
|
fromDateCode: string;
|
|
@@ -13,6 +14,7 @@ export interface IProjectBillingOverview {
|
|
|
13
14
|
totalAmount: number;
|
|
14
15
|
billingType: ProjectBillingTypeEnum;
|
|
15
16
|
details: IProjectEmployeeBillingOverview[];
|
|
17
|
+
project: IProjectEntityGet;
|
|
16
18
|
}
|
|
17
19
|
export interface IProjectEmployeeBillingOverview {
|
|
18
20
|
projectId: number;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare enum ReimbursementBillingTypeEnum {
|
|
2
|
+
BILLABLE = "BILLABLE",
|
|
3
|
+
NON_BILLABLE = "NON_BILLABLE"
|
|
4
|
+
}
|
|
5
|
+
export declare enum ReimbursementBillingPresentEnum {
|
|
6
|
+
YES = "YES",
|
|
7
|
+
NO = "NO"
|
|
8
|
+
}
|
|
9
|
+
export declare enum ReimbursementIncurredByEnum {
|
|
10
|
+
SELF = "SELF",
|
|
11
|
+
SELF_OTHERS = "SELF_OTHERS",
|
|
12
|
+
OTHERS = "OTHERS"
|
|
13
|
+
}
|
|
14
|
+
export declare enum ReimbursementStatusEnum {
|
|
15
|
+
PENDING = "PENDING",
|
|
16
|
+
FULLY_APPROVED = "FULLY_APPROVED",
|
|
17
|
+
PARTIALLY_APPROVED = "PARTIALLY_APPROVED",
|
|
18
|
+
REJECTED = "REJECTED"
|
|
19
|
+
}
|
|
20
|
+
export declare enum ReimbursementPaymentStatusEnum {
|
|
21
|
+
PAID = "PAID",
|
|
22
|
+
UNPAID = "UNPAID"
|
|
23
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReimbursementPaymentStatusEnum = exports.ReimbursementStatusEnum = exports.ReimbursementIncurredByEnum = exports.ReimbursementBillingPresentEnum = exports.ReimbursementBillingTypeEnum = void 0;
|
|
4
|
+
var ReimbursementBillingTypeEnum;
|
|
5
|
+
(function (ReimbursementBillingTypeEnum) {
|
|
6
|
+
ReimbursementBillingTypeEnum["BILLABLE"] = "BILLABLE";
|
|
7
|
+
ReimbursementBillingTypeEnum["NON_BILLABLE"] = "NON_BILLABLE";
|
|
8
|
+
})(ReimbursementBillingTypeEnum || (exports.ReimbursementBillingTypeEnum = ReimbursementBillingTypeEnum = {}));
|
|
9
|
+
var ReimbursementBillingPresentEnum;
|
|
10
|
+
(function (ReimbursementBillingPresentEnum) {
|
|
11
|
+
ReimbursementBillingPresentEnum["YES"] = "YES";
|
|
12
|
+
ReimbursementBillingPresentEnum["NO"] = "NO";
|
|
13
|
+
})(ReimbursementBillingPresentEnum || (exports.ReimbursementBillingPresentEnum = ReimbursementBillingPresentEnum = {}));
|
|
14
|
+
var ReimbursementIncurredByEnum;
|
|
15
|
+
(function (ReimbursementIncurredByEnum) {
|
|
16
|
+
ReimbursementIncurredByEnum["SELF"] = "SELF";
|
|
17
|
+
ReimbursementIncurredByEnum["SELF_OTHERS"] = "SELF_OTHERS";
|
|
18
|
+
ReimbursementIncurredByEnum["OTHERS"] = "OTHERS";
|
|
19
|
+
})(ReimbursementIncurredByEnum || (exports.ReimbursementIncurredByEnum = ReimbursementIncurredByEnum = {}));
|
|
20
|
+
var ReimbursementStatusEnum;
|
|
21
|
+
(function (ReimbursementStatusEnum) {
|
|
22
|
+
ReimbursementStatusEnum["PENDING"] = "PENDING";
|
|
23
|
+
ReimbursementStatusEnum["FULLY_APPROVED"] = "FULLY_APPROVED";
|
|
24
|
+
ReimbursementStatusEnum["PARTIALLY_APPROVED"] = "PARTIALLY_APPROVED";
|
|
25
|
+
ReimbursementStatusEnum["REJECTED"] = "REJECTED";
|
|
26
|
+
})(ReimbursementStatusEnum || (exports.ReimbursementStatusEnum = ReimbursementStatusEnum = {}));
|
|
27
|
+
var ReimbursementPaymentStatusEnum;
|
|
28
|
+
(function (ReimbursementPaymentStatusEnum) {
|
|
29
|
+
ReimbursementPaymentStatusEnum["PAID"] = "PAID";
|
|
30
|
+
ReimbursementPaymentStatusEnum["UNPAID"] = "UNPAID";
|
|
31
|
+
})(ReimbursementPaymentStatusEnum || (exports.ReimbursementPaymentStatusEnum = ReimbursementPaymentStatusEnum = {}));
|
|
@@ -15,3 +15,5 @@ export * from "./interface/rate.entity.interface";
|
|
|
15
15
|
export * from "./interface/client.entity.interface";
|
|
16
16
|
export * from "./interface/project.entity.interface";
|
|
17
17
|
export * from "./interface/timesheet.entity.interface";
|
|
18
|
+
export * from "./interface/reimbursement.entity.interface";
|
|
19
|
+
export * from "./enums/reimbursement.entity.enum";
|
|
@@ -31,3 +31,5 @@ __exportStar(require("./interface/rate.entity.interface"), exports);
|
|
|
31
31
|
__exportStar(require("./interface/client.entity.interface"), exports);
|
|
32
32
|
__exportStar(require("./interface/project.entity.interface"), exports);
|
|
33
33
|
__exportStar(require("./interface/timesheet.entity.interface"), exports);
|
|
34
|
+
__exportStar(require("./interface/reimbursement.entity.interface"), exports);
|
|
35
|
+
__exportStar(require("./enums/reimbursement.entity.enum"), exports);
|
|
@@ -25,7 +25,6 @@ export type IClientExclude = "organizationId";
|
|
|
25
25
|
export interface IClientEntityCreateDto extends Omit<IEntityCreateDto<IClientEntity>, IClientExclude>, IClientEntityDependent {
|
|
26
26
|
}
|
|
27
27
|
export interface IClientEntityUpdateDto extends Omit<IEntityUpdateDto<IClientEntity>, IClientExclude>, Partial<IClientEntityDependent> {
|
|
28
|
-
partnerIds?: number[];
|
|
29
28
|
}
|
|
30
29
|
export interface IClientEntityFilterDto extends IEntityFilterData<IClientEntity> {
|
|
31
30
|
}
|
|
@@ -22,16 +22,13 @@ export interface IProjectEntityDependent {
|
|
|
22
22
|
resourceIds: number[];
|
|
23
23
|
}
|
|
24
24
|
export type IProjectExclude = "organizationId" | "billingRate";
|
|
25
|
-
export interface IProjectExcludeT extends Pick<IProjectEntity,
|
|
25
|
+
export interface IProjectExcludeT extends Pick<IProjectEntity, IProjectExclude> {
|
|
26
26
|
}
|
|
27
27
|
export interface IProjectHourlyRate {
|
|
28
28
|
id: number;
|
|
29
29
|
rate: number;
|
|
30
30
|
unit: TimeUnitEnum.HOUR;
|
|
31
31
|
}
|
|
32
|
-
export interface IProjectCreateDtoExtra {
|
|
33
|
-
projectBillingRate: IProjectHourlyRate[] | IProjectFixedMonthlyRate | IProjectAdhocRate;
|
|
34
|
-
}
|
|
35
32
|
export interface IProjectFixedMonthlyRate {
|
|
36
33
|
rate: number;
|
|
37
34
|
unit: TimeUnitEnum.MONTH;
|
|
@@ -41,6 +38,9 @@ export interface IProjectAdhocRate {
|
|
|
41
38
|
rate: number;
|
|
42
39
|
maxEstimatedHours: number;
|
|
43
40
|
}
|
|
41
|
+
export interface IProjectCreateDtoExtra {
|
|
42
|
+
projectBillingRate: IProjectHourlyRate[] | IProjectFixedMonthlyRate | IProjectAdhocRate;
|
|
43
|
+
}
|
|
44
44
|
export interface IProjectEntityCreateDto extends Omit<IEntityCreateDto<IProjectEntity>, IProjectExclude>, IProjectEntityDependent, IProjectCreateDtoExtra {
|
|
45
45
|
}
|
|
46
46
|
export interface IProjectEntityUpdateDto extends Omit<IEntityUpdateDto<IProjectEntity>, IProjectExclude>, Partial<IProjectEntityDependent>, Partial<IProjectCreateDtoExtra> {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ReimbursementBillingPresentEnum, ReimbursementBillingTypeEnum, ReimbursementIncurredByEnum, ReimbursementPaymentStatusEnum, ReimbursementStatusEnum } from "../enums/reimbursement.entity.enum";
|
|
2
|
+
import { IAuditColumnEntity } from "./audit-column.entity.interface";
|
|
3
|
+
import { IEntityCreateDto } from "./entity.utils.interface";
|
|
4
|
+
export interface IReimbursementEntity extends IAuditColumnEntity {
|
|
5
|
+
id: number;
|
|
6
|
+
billingType: ReimbursementBillingTypeEnum;
|
|
7
|
+
billDate: string;
|
|
8
|
+
amount: number;
|
|
9
|
+
billNo?: string;
|
|
10
|
+
expenseIncurredBy: ReimbursementIncurredByEnum;
|
|
11
|
+
reimbursementType: string;
|
|
12
|
+
billPresent: ReimbursementBillingPresentEnum;
|
|
13
|
+
split: boolean;
|
|
14
|
+
expenseDetailsJson: string;
|
|
15
|
+
projectIdsCsv: string;
|
|
16
|
+
description: string;
|
|
17
|
+
attachmentUrlsCsv?: string;
|
|
18
|
+
status: ReimbursementStatusEnum;
|
|
19
|
+
paymentStatus: ReimbursementPaymentStatusEnum;
|
|
20
|
+
amountReimbursed?: number;
|
|
21
|
+
processedBy?: number;
|
|
22
|
+
processedDate?: string;
|
|
23
|
+
approvedBy?: number;
|
|
24
|
+
}
|
|
25
|
+
export interface IReimbursementExpenseDetails {
|
|
26
|
+
members: number[];
|
|
27
|
+
details: IReimbursementExpenseAllocation[];
|
|
28
|
+
}
|
|
29
|
+
export interface IReimbursementExpenseAllocation {
|
|
30
|
+
userIds: number[];
|
|
31
|
+
projectId: number;
|
|
32
|
+
amount: number;
|
|
33
|
+
}
|
|
34
|
+
export interface IReimbursementCreateDtoExtra {
|
|
35
|
+
expenseDetails: IReimbursementExpenseDetails;
|
|
36
|
+
}
|
|
37
|
+
export type IReimbursementExclude = "expenseDetailsJson" | "projectIdsCsv" | "attachmentUrlsCsv" | "amountReimbursed" | "processedBy" | "processedDate" | "approvedBy";
|
|
38
|
+
export interface IReimbursementEntityCreateDto extends Omit<IEntityCreateDto<IReimbursementEntity>, IReimbursementExclude>, IReimbursementCreateDtoExtra {
|
|
39
|
+
}
|