law-common 8.8.1-beta.0 → 8.8.1-beta.1
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.
|
@@ -1,58 +1,20 @@
|
|
|
1
|
-
import { BillingActionsEnum,
|
|
1
|
+
import { BillingActionsEnum, BillingStatusEnum, IBillingEntity } from "../../entities";
|
|
2
2
|
import { IBillingApiEntity } from "./billing.entity.api";
|
|
3
3
|
import { IBillingTimesheetApiEntity } from "./billing.timesheet.entity.api";
|
|
4
4
|
import { IUpdateBillingDto } from "./billing.update.dto.interface";
|
|
5
5
|
import { IProjectApiEntity } from "./project.entity.response";
|
|
6
6
|
import { IUserApiEntity } from "./user.entity.api";
|
|
7
|
-
export
|
|
8
|
-
id: number;
|
|
9
|
-
startDate: string;
|
|
10
|
-
endDate: string;
|
|
11
|
-
projectId: number;
|
|
12
|
-
totalMinutes: number;
|
|
13
|
-
totalAmount: number;
|
|
14
|
-
invoiceNumber?: number;
|
|
15
|
-
paymentStatus: PaymentStatusEnum;
|
|
16
|
-
billingTimesheets: IBillingTimesheetDetail[];
|
|
17
|
-
status?: BillingStatusEnum;
|
|
18
|
-
writeoffAmount?: number;
|
|
19
|
-
}
|
|
20
|
-
export type IBillingEntityGet = {
|
|
7
|
+
export type IBillingEntityResponse = {
|
|
21
8
|
billing: IBillingApiEntity;
|
|
22
9
|
billingTimesheets: IBillingTimesheetApiEntity[];
|
|
23
10
|
};
|
|
24
11
|
export interface IBillingEntitySearchResponse {
|
|
25
|
-
billings:
|
|
12
|
+
billings: IBillingEntityResponse[];
|
|
26
13
|
users?: IUserApiEntity[];
|
|
27
14
|
projects?: IProjectApiEntity[];
|
|
28
15
|
}
|
|
29
16
|
export interface IBillingEntitySearchResponseInclude extends IBillingEntitySearchResponse {
|
|
30
17
|
}
|
|
31
|
-
export type IBillingEntityUpdateGet = {
|
|
32
|
-
id: number;
|
|
33
|
-
startDate: string;
|
|
34
|
-
endDate: string;
|
|
35
|
-
projectId: number;
|
|
36
|
-
totalAmount: number;
|
|
37
|
-
totalMinutes: number;
|
|
38
|
-
paymentStatus: PaymentStatusEnum;
|
|
39
|
-
status: BillingStatusEnum;
|
|
40
|
-
invoiceNumber: string;
|
|
41
|
-
writeoffAmount: number;
|
|
42
|
-
totalAmountPaid: number;
|
|
43
|
-
tdsAmount: number;
|
|
44
|
-
creditNoteAmount: number;
|
|
45
|
-
createdOn: string;
|
|
46
|
-
updatedOn: string;
|
|
47
|
-
createdBy: number;
|
|
48
|
-
updatedBy: number;
|
|
49
|
-
invoiceEntityId: number;
|
|
50
|
-
invoiceEntityType: BillingInvoiceTypeEnum;
|
|
51
|
-
invoicePdfUrl?: string | null;
|
|
52
|
-
invoiceContactName: string;
|
|
53
|
-
bankId: number;
|
|
54
|
-
timesheets: IBillingTimesheetApiEntity[];
|
|
55
|
-
};
|
|
56
18
|
export type IBillingFlowConfig = {
|
|
57
19
|
[key in BillingStatusEnum]?: {
|
|
58
20
|
actions: {
|