law-common 1.2.56 → 1.2.58-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.
- package/dist/src/api/index.d.ts +6 -0
- package/dist/src/api/index.js +6 -0
- package/dist/src/api/interface/billing.create.dto.interface.d.ts +30 -0
- package/dist/src/api/interface/billing.create.dto.interface.js +2 -0
- package/dist/src/api/interface/billing.entity.api.d.ts +3 -0
- package/dist/src/api/interface/billing.entity.api.js +2 -0
- package/dist/src/api/interface/billing.entity.response.d.ts +4 -0
- package/dist/src/api/interface/billing.entity.response.js +2 -0
- package/dist/src/api/interface/expense_type.entity.response.d.ts +1 -2
- package/dist/src/api/interface/office.Location.update.dto.interface.d.ts +3 -0
- package/dist/src/api/interface/office.Location.update.dto.interface.js +2 -0
- package/dist/src/api/interface/office.location.create.dto.interface.d.ts +3 -0
- package/dist/src/api/interface/office.location.create.dto.interface.js +2 -0
- package/dist/src/api/interface/office.location.entity.api.d.ts +3 -0
- package/dist/src/api/interface/office.location.entity.api.js +2 -0
- package/dist/src/api/interface/office.location.entity.response.d.ts +4 -0
- package/dist/src/api/interface/office.location.entity.response.js +2 -0
- package/dist/src/entities/enums/billing.impact.enum.d.ts +5 -0
- package/dist/src/entities/enums/billing.impact.enum.js +9 -0
- package/dist/src/entities/enums/billing.timesheet.change.status.enum.d.ts +5 -0
- package/dist/src/entities/enums/billing.timesheet.change.status.enum.js +9 -0
- package/dist/src/entities/enums/payment_status.enum.d.ts +4 -0
- package/dist/src/entities/enums/payment_status.enum.js +8 -0
- package/dist/src/entities/index.d.ts +5 -0
- package/dist/src/entities/index.js +5 -0
- package/dist/src/entities/interface/billing.entity.interface.d.ts +48 -0
- package/dist/src/entities/interface/billing.entity.interface.js +2 -0
- package/dist/src/entities/interface/client.entity.interface.d.ts +8 -5
- package/dist/src/entities/interface/expense_type.entity.interface.d.ts +3 -0
- package/dist/src/entities/interface/office.location.entity.d.ts +11 -0
- package/dist/src/entities/interface/office.location.entity.js +2 -0
- package/package.json +1 -1
package/dist/src/api/index.d.ts
CHANGED
|
@@ -24,3 +24,9 @@ export * from "./interface/task.create.dto.interface";
|
|
|
24
24
|
export * from "./interface/expense_type.entity.api";
|
|
25
25
|
export * from "./interface/expense_type.update.dto";
|
|
26
26
|
export * from "./interface/expense_type.entity.response";
|
|
27
|
+
export * from "./interface/billing.create.dto.interface";
|
|
28
|
+
export * from "./interface/billing.entity.response";
|
|
29
|
+
export * from "./interface/office.location.create.dto.interface";
|
|
30
|
+
export * from "./interface/office.location.entity.api";
|
|
31
|
+
export * from "./interface/office.Location.update.dto.interface";
|
|
32
|
+
export * from "./interface/office.location.entity.response";
|
package/dist/src/api/index.js
CHANGED
|
@@ -40,3 +40,9 @@ __exportStar(require("./interface/task.create.dto.interface"), exports);
|
|
|
40
40
|
__exportStar(require("./interface/expense_type.entity.api"), exports);
|
|
41
41
|
__exportStar(require("./interface/expense_type.update.dto"), exports);
|
|
42
42
|
__exportStar(require("./interface/expense_type.entity.response"), exports);
|
|
43
|
+
__exportStar(require("./interface/billing.create.dto.interface"), exports);
|
|
44
|
+
__exportStar(require("./interface/billing.entity.response"), exports);
|
|
45
|
+
__exportStar(require("./interface/office.location.create.dto.interface"), exports);
|
|
46
|
+
__exportStar(require("./interface/office.location.entity.api"), exports);
|
|
47
|
+
__exportStar(require("./interface/office.Location.update.dto.interface"), exports);
|
|
48
|
+
__exportStar(require("./interface/office.location.entity.response"), exports);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { BillingImpactEnum } from "../../entities";
|
|
2
|
+
export interface IBillingCreateDto {
|
|
3
|
+
startDate: string;
|
|
4
|
+
endDate: string;
|
|
5
|
+
projectId: number;
|
|
6
|
+
totalAmount: number;
|
|
7
|
+
totalMinutes: number;
|
|
8
|
+
invoiceNumber?: number;
|
|
9
|
+
timesheets: IBillingTimesheetsDto;
|
|
10
|
+
}
|
|
11
|
+
export interface IBillingTimesheetUnchagedDto {
|
|
12
|
+
id: number;
|
|
13
|
+
amount: number;
|
|
14
|
+
}
|
|
15
|
+
export interface IBillingTimesheetUpdateDeleteDetailDto {
|
|
16
|
+
id: number;
|
|
17
|
+
task: string;
|
|
18
|
+
description: string;
|
|
19
|
+
date: string;
|
|
20
|
+
duration: number;
|
|
21
|
+
amount: number;
|
|
22
|
+
impact: BillingImpactEnum;
|
|
23
|
+
amendmentPurpose: string;
|
|
24
|
+
}
|
|
25
|
+
export interface IBillingTimesheetsDto {
|
|
26
|
+
all: number[];
|
|
27
|
+
unchanged: IBillingTimesheetUnchagedDto[];
|
|
28
|
+
updateDetails: IBillingTimesheetUpdateDeleteDetailDto[];
|
|
29
|
+
deleteDetails: IBillingTimesheetUpdateDeleteDetailDto[];
|
|
30
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IBaseResponse } from "./base.response.interface";
|
|
2
|
+
import { IBillingApiEntity } from "./billing.entity.api";
|
|
3
|
+
export type IBillingApiEntityResponse = IBaseResponse<IBillingApiEntity>;
|
|
4
|
+
export type IBillingApiEntityResponseArray = IBaseResponse<IBillingApiEntity[]>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { IExpenseTypeEntity } from "../../entities";
|
|
2
1
|
import { IBaseResponse } from "./base.response.interface";
|
|
3
2
|
import { IExpenseTypeApiEntity } from "./expense_type.entity.api";
|
|
4
|
-
export type IExpenseTypeApiEntityResponse = IBaseResponse<
|
|
3
|
+
export type IExpenseTypeApiEntityResponse = IBaseResponse<IExpenseTypeApiEntity>;
|
|
5
4
|
export type IExpenseTypeApiEntityResponseArray = IBaseResponse<IExpenseTypeApiEntity[]>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IBaseResponse } from "./base.response.interface";
|
|
2
|
+
import { IOfficeLocationApiEntity } from "./office.location.entity.api";
|
|
3
|
+
export type IOfficeLocationApiEntityResponse = IBaseResponse<IOfficeLocationApiEntity>;
|
|
4
|
+
export type IOfficeLocationApiEntityResponseArray = IBaseResponse<IOfficeLocationApiEntity[]>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BillingImpactEnum = void 0;
|
|
4
|
+
var BillingImpactEnum;
|
|
5
|
+
(function (BillingImpactEnum) {
|
|
6
|
+
BillingImpactEnum["POSITIVE"] = "positive";
|
|
7
|
+
BillingImpactEnum["NEUTRAL"] = "neutral";
|
|
8
|
+
BillingImpactEnum["NEGATIVE"] = "negative";
|
|
9
|
+
})(BillingImpactEnum || (exports.BillingImpactEnum = BillingImpactEnum = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BillingTimesheetStatusEnum = void 0;
|
|
4
|
+
var BillingTimesheetStatusEnum;
|
|
5
|
+
(function (BillingTimesheetStatusEnum) {
|
|
6
|
+
BillingTimesheetStatusEnum["UNCHANGED"] = "unchanged";
|
|
7
|
+
BillingTimesheetStatusEnum["UPDATED"] = "updated";
|
|
8
|
+
BillingTimesheetStatusEnum["DELETED"] = "deleted";
|
|
9
|
+
})(BillingTimesheetStatusEnum || (exports.BillingTimesheetStatusEnum = BillingTimesheetStatusEnum = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentStatusEnum = void 0;
|
|
4
|
+
var PaymentStatusEnum;
|
|
5
|
+
(function (PaymentStatusEnum) {
|
|
6
|
+
PaymentStatusEnum["PENDING"] = "pending";
|
|
7
|
+
PaymentStatusEnum["COMPLETED"] = "completed";
|
|
8
|
+
})(PaymentStatusEnum || (exports.PaymentStatusEnum = PaymentStatusEnum = {}));
|
|
@@ -19,3 +19,8 @@ export * from "./interface/reimbursement.entity.interface";
|
|
|
19
19
|
export * from "./enums/reimbursement.entity.enum";
|
|
20
20
|
export * from "./interface/expense_type.entity.interface";
|
|
21
21
|
export * from "./enums/expense_type.entity.enum";
|
|
22
|
+
export * from "./enums/billing.impact.enum";
|
|
23
|
+
export * from "./interface/billing.entity.interface";
|
|
24
|
+
export * from "./enums/payment_status.enum";
|
|
25
|
+
export * from "./enums/billing.timesheet.change.status.enum";
|
|
26
|
+
export * from "./interface/office.location.entity";
|
|
@@ -35,3 +35,8 @@ __exportStar(require("./interface/reimbursement.entity.interface"), exports);
|
|
|
35
35
|
__exportStar(require("./enums/reimbursement.entity.enum"), exports);
|
|
36
36
|
__exportStar(require("./interface/expense_type.entity.interface"), exports);
|
|
37
37
|
__exportStar(require("./enums/expense_type.entity.enum"), exports);
|
|
38
|
+
__exportStar(require("./enums/billing.impact.enum"), exports);
|
|
39
|
+
__exportStar(require("./interface/billing.entity.interface"), exports);
|
|
40
|
+
__exportStar(require("./enums/payment_status.enum"), exports);
|
|
41
|
+
__exportStar(require("./enums/billing.timesheet.change.status.enum"), exports);
|
|
42
|
+
__exportStar(require("./interface/office.location.entity"), exports);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { BillingImpactEnum } from "../enums/billing.impact.enum";
|
|
2
|
+
import { BillingTimesheetStatusEnum } from "../enums/billing.timesheet.change.status.enum";
|
|
3
|
+
import { PaymentStatusEnum } from "../enums/payment_status.enum";
|
|
4
|
+
import { IAuditColumnEntity } from "./audit-column.entity.interface";
|
|
5
|
+
import { IEntityCreateDto, IEntityFilterData } from "./entity.utils.interface";
|
|
6
|
+
export interface IBillingEntity extends IAuditColumnEntity {
|
|
7
|
+
id: number;
|
|
8
|
+
startDate: string;
|
|
9
|
+
endDate: string;
|
|
10
|
+
projectId: number;
|
|
11
|
+
totalAmount: number;
|
|
12
|
+
totalMinutes: number;
|
|
13
|
+
invoiceNumber?: number;
|
|
14
|
+
paymentStatus: PaymentStatusEnum;
|
|
15
|
+
}
|
|
16
|
+
export interface IBillingTimesheetEntity extends IAuditColumnEntity {
|
|
17
|
+
id: number;
|
|
18
|
+
billingId: number;
|
|
19
|
+
dateCode: string;
|
|
20
|
+
timesheetId: number;
|
|
21
|
+
userId: number;
|
|
22
|
+
projectId: number;
|
|
23
|
+
task: string;
|
|
24
|
+
description?: string;
|
|
25
|
+
totalDuration: number;
|
|
26
|
+
totalAmount: number;
|
|
27
|
+
impact: BillingImpactEnum;
|
|
28
|
+
amendmentPurpose?: string;
|
|
29
|
+
changedStatus: BillingTimesheetStatusEnum;
|
|
30
|
+
}
|
|
31
|
+
export interface IBillingTimesheetEntityCreateDto extends IEntityCreateDto<IBillingTimesheetEntity> {
|
|
32
|
+
}
|
|
33
|
+
export interface IBillingTimesheetDetail {
|
|
34
|
+
timesheetId: number;
|
|
35
|
+
totalAmount: number;
|
|
36
|
+
changedStatus: BillingTimesheetStatusEnum;
|
|
37
|
+
impact: BillingImpactEnum;
|
|
38
|
+
amendmentPurpose?: string;
|
|
39
|
+
userId: number;
|
|
40
|
+
projectId: number;
|
|
41
|
+
task: string;
|
|
42
|
+
description?: string;
|
|
43
|
+
totalDuration: number;
|
|
44
|
+
dateCode: string;
|
|
45
|
+
}
|
|
46
|
+
export interface IBillingTimesheetDetailsArray extends Array<IBillingTimesheetDetail> {
|
|
47
|
+
}
|
|
48
|
+
export type IBillingEntityFilterData = IEntityFilterData<IBillingEntity>;
|
|
@@ -4,16 +4,19 @@ import { IEntityCreateDto, IEntityFilterData, IEntityUpdateDto } from "./entity.
|
|
|
4
4
|
export interface IClientEntity extends IAuditColumnEntity {
|
|
5
5
|
id: number;
|
|
6
6
|
name: string;
|
|
7
|
-
|
|
7
|
+
description?: string;
|
|
8
|
+
primaryContactName: string;
|
|
9
|
+
primaryContact: string;
|
|
10
|
+
primaryEmail: string;
|
|
11
|
+
secondaryContactName?: string;
|
|
8
12
|
secondaryEmail?: string;
|
|
9
|
-
contact: string;
|
|
10
|
-
secondaryContact?: string;
|
|
11
13
|
address?: string;
|
|
12
|
-
|
|
14
|
+
secondaryContact?: string;
|
|
13
15
|
country?: CountryEnum;
|
|
14
16
|
industry?: string;
|
|
15
|
-
|
|
17
|
+
zipCode?: string;
|
|
16
18
|
organizationId: number;
|
|
19
|
+
reference?: string;
|
|
17
20
|
}
|
|
18
21
|
export interface IClientEntityDependent {
|
|
19
22
|
partnerIds: number[];
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { ExpenseTypeEnum } from "../enums/expense_type.entity.enum";
|
|
2
2
|
import { IAuditColumnEntity } from "./audit-column.entity.interface";
|
|
3
|
+
import { IEntityFilterData } from "./entity.utils.interface";
|
|
3
4
|
export interface IExpenseTypeEntity extends IAuditColumnEntity {
|
|
4
5
|
id: number;
|
|
5
6
|
name: string;
|
|
6
7
|
description?: string;
|
|
7
8
|
type: ExpenseTypeEnum;
|
|
8
9
|
}
|
|
10
|
+
export interface IExpenseTypeEntityFilterDto extends IEntityFilterData<IExpenseTypeEntity> {
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CountryEnum } from "../enums/country.entity.enum";
|
|
2
|
+
import { IAuditColumnEntity } from "../interface/audit-column.entity.interface";
|
|
3
|
+
import { IEntityFilterData } from "./entity.utils.interface";
|
|
4
|
+
export interface IOfficeLocationEntity extends IAuditColumnEntity {
|
|
5
|
+
id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
address: string;
|
|
8
|
+
zipCode: number;
|
|
9
|
+
country: CountryEnum;
|
|
10
|
+
}
|
|
11
|
+
export type IOfficeLocationEntityFilterData = IEntityFilterData<IOfficeLocationEntity>;
|