law-common 1.2.57 → 1.2.58-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.
- package/dist/src/api/index.d.ts +8 -0
- package/dist/src/api/index.js +8 -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 +19 -0
- package/dist/src/api/interface/billing.entity.response.js +2 -0
- package/dist/src/api/interface/billing.timesheet.entity.api.d.ts +3 -0
- package/dist/src/api/interface/billing.timesheet.entity.api.js +2 -0
- 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/api/interface/user.create.dto.interace.d.ts +3 -1
- 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/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/dist/src/entities/interface/user.entity.interface.d.ts +13 -0
- package/dist/src/misc/interface/optional.interface.js +23 -10
- package/package.json +1 -1
package/dist/src/api/index.d.ts
CHANGED
|
@@ -24,3 +24,11 @@ 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";
|
|
33
|
+
export * from "./interface/billing.timesheet.entity.api";
|
|
34
|
+
export * from "./interface/billing.entity.api";
|
package/dist/src/api/index.js
CHANGED
|
@@ -40,3 +40,11 @@ __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);
|
|
49
|
+
__exportStar(require("./interface/billing.timesheet.entity.api"), exports);
|
|
50
|
+
__exportStar(require("./interface/billing.entity.api"), 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,19 @@
|
|
|
1
|
+
import { IAuditColumnEntity, IBillingTimesheetDetail, PaymentStatusEnum } from "../../entities";
|
|
2
|
+
import { IBillingApiEntity } from "./billing.entity.api";
|
|
3
|
+
import { IBillingTimesheetApiEntity } from "./billing.timesheet.entity.api";
|
|
4
|
+
export interface IBillingEntityResponse extends IAuditColumnEntity {
|
|
5
|
+
id: number;
|
|
6
|
+
startDate: string;
|
|
7
|
+
endDate: string;
|
|
8
|
+
projectId: number;
|
|
9
|
+
totalMinutes: number;
|
|
10
|
+
totalAmount: number;
|
|
11
|
+
invoiceNumber?: number;
|
|
12
|
+
paymentStatus: PaymentStatusEnum;
|
|
13
|
+
billingTimesheets: IBillingTimesheetDetail[];
|
|
14
|
+
}
|
|
15
|
+
export type IBillingEntityGet = {
|
|
16
|
+
billing: IBillingApiEntity;
|
|
17
|
+
billingTimesheets: IBillingTimesheetApiEntity[];
|
|
18
|
+
};
|
|
19
|
+
export type IBillingEntityGetArray = IBillingEntityGet[];
|
|
@@ -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[]>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { IUserApiEntity } from "./user.entity.api";
|
|
2
|
-
export interface IUserCreateDto extends Omit<IUserApiEntity,
|
|
2
|
+
export interface IUserCreateDto extends Omit<IUserApiEntity, "id" | "updatedOn" | "updatedBy" | "createdBy" | "createdOn"> {
|
|
3
3
|
panDocument?: File;
|
|
4
4
|
aadharDocument?: File;
|
|
5
|
+
passportDocument?: File;
|
|
6
|
+
academicQualificationDocument?: File;
|
|
5
7
|
}
|
|
@@ -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 } 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 extends IAuditColumnEntity {
|
|
34
|
+
id: number;
|
|
35
|
+
timesheetId: number;
|
|
36
|
+
totalAmount: number;
|
|
37
|
+
changedStatus: BillingTimesheetStatusEnum;
|
|
38
|
+
impact: BillingImpactEnum;
|
|
39
|
+
amendmentPurpose?: string;
|
|
40
|
+
userId: number;
|
|
41
|
+
projectId: number;
|
|
42
|
+
task: string;
|
|
43
|
+
description?: string;
|
|
44
|
+
totalDuration: number;
|
|
45
|
+
dateCode: string;
|
|
46
|
+
}
|
|
47
|
+
export interface IBillingTimesheetDetailsArray extends Array<IBillingTimesheetDetail> {
|
|
48
|
+
}
|
|
@@ -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>;
|
|
@@ -23,5 +23,18 @@ export interface IUserEntity extends IAuditColumnEntity {
|
|
|
23
23
|
role: UserRoleEnum;
|
|
24
24
|
status: UserStatusEnum;
|
|
25
25
|
organizationId?: number;
|
|
26
|
+
passportDocumentUrl?: string;
|
|
27
|
+
academicQualificationDocumentUrl?: string;
|
|
28
|
+
officeAllocation: number;
|
|
29
|
+
tempAddress?: string;
|
|
30
|
+
tempZipCode?: number;
|
|
31
|
+
tempCountry?: CountryEnum;
|
|
32
|
+
tempAddressSameAsPrimary: boolean;
|
|
33
|
+
emergencyContactName: string;
|
|
34
|
+
emergencyContactNo: string;
|
|
35
|
+
emergencyContactRelation: string;
|
|
36
|
+
secondEmergencyContactName?: string;
|
|
37
|
+
secondaryEmergencyContactNo?: string;
|
|
38
|
+
secondaryEmergencyContactRelation?: string;
|
|
26
39
|
}
|
|
27
40
|
export type IUserEntityFilterData = IEntityFilterData<IUserEntity>;
|
|
@@ -2,26 +2,39 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const entities_1 = require("../../entities");
|
|
4
4
|
const userDTO = {
|
|
5
|
-
contactNo:
|
|
6
|
-
secondaryContactNo:
|
|
7
|
-
password:
|
|
8
|
-
userCode:
|
|
5
|
+
contactNo: "",
|
|
6
|
+
secondaryContactNo: "",
|
|
7
|
+
password: "",
|
|
8
|
+
userCode: "",
|
|
9
9
|
joiningDate: new Date(),
|
|
10
10
|
endDate: new Date(),
|
|
11
|
-
address:
|
|
11
|
+
address: "",
|
|
12
12
|
zipCode: 0,
|
|
13
13
|
country: entities_1.CountryEnum.India,
|
|
14
|
-
designation:
|
|
14
|
+
designation: "",
|
|
15
15
|
role: entities_1.UserRoleEnum.employee,
|
|
16
16
|
createdOn: new Date(),
|
|
17
17
|
updatedOn: new Date(),
|
|
18
18
|
createdBy: 1,
|
|
19
19
|
updatedBy: 1,
|
|
20
|
-
panDocumentUrl:
|
|
21
|
-
aadharDocumentUrl:
|
|
22
|
-
panNo:
|
|
23
|
-
aadharNo:
|
|
20
|
+
panDocumentUrl: "",
|
|
21
|
+
aadharDocumentUrl: "",
|
|
22
|
+
panNo: "",
|
|
23
|
+
aadharNo: "",
|
|
24
24
|
status: entities_1.UserStatusEnum.active,
|
|
25
25
|
organizationId: 1,
|
|
26
|
+
passportDocumentUrl: "",
|
|
27
|
+
academicQualificationDocumentUrl: "",
|
|
28
|
+
officeAllocation: 0,
|
|
29
|
+
tempAddress: "",
|
|
30
|
+
tempZipCode: 0,
|
|
31
|
+
tempCountry: entities_1.CountryEnum.India,
|
|
32
|
+
tempAddressSameAsPrimary: true,
|
|
33
|
+
emergencyContactName: "",
|
|
34
|
+
emergencyContactNo: "",
|
|
35
|
+
emergencyContactRelation: "",
|
|
36
|
+
secondEmergencyContactName: "",
|
|
37
|
+
secondaryEmergencyContactNo: "",
|
|
38
|
+
secondaryEmergencyContactRelation: "",
|
|
26
39
|
};
|
|
27
40
|
console.log(userDTO);
|