law-common 1.2.58-beta.1 → 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 +2 -0
- package/dist/src/api/index.js +2 -0
- package/dist/src/api/interface/billing.entity.response.d.ts +18 -3
- 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/user.create.dto.interace.d.ts +3 -1
- package/dist/src/entities/interface/billing.entity.interface.d.ts +3 -3
- 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
|
@@ -30,3 +30,5 @@ export * from "./interface/office.location.create.dto.interface";
|
|
|
30
30
|
export * from "./interface/office.location.entity.api";
|
|
31
31
|
export * from "./interface/office.Location.update.dto.interface";
|
|
32
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
|
@@ -46,3 +46,5 @@ __exportStar(require("./interface/office.location.create.dto.interface"), export
|
|
|
46
46
|
__exportStar(require("./interface/office.location.entity.api"), exports);
|
|
47
47
|
__exportStar(require("./interface/office.Location.update.dto.interface"), exports);
|
|
48
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);
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IAuditColumnEntity, IBillingTimesheetDetail, PaymentStatusEnum } from "../../entities";
|
|
2
2
|
import { IBillingApiEntity } from "./billing.entity.api";
|
|
3
|
-
|
|
4
|
-
export
|
|
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[];
|
|
@@ -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
|
}
|
|
@@ -2,7 +2,7 @@ import { BillingImpactEnum } from "../enums/billing.impact.enum";
|
|
|
2
2
|
import { BillingTimesheetStatusEnum } from "../enums/billing.timesheet.change.status.enum";
|
|
3
3
|
import { PaymentStatusEnum } from "../enums/payment_status.enum";
|
|
4
4
|
import { IAuditColumnEntity } from "./audit-column.entity.interface";
|
|
5
|
-
import { IEntityCreateDto
|
|
5
|
+
import { IEntityCreateDto } from "./entity.utils.interface";
|
|
6
6
|
export interface IBillingEntity extends IAuditColumnEntity {
|
|
7
7
|
id: number;
|
|
8
8
|
startDate: string;
|
|
@@ -30,7 +30,8 @@ export interface IBillingTimesheetEntity extends IAuditColumnEntity {
|
|
|
30
30
|
}
|
|
31
31
|
export interface IBillingTimesheetEntityCreateDto extends IEntityCreateDto<IBillingTimesheetEntity> {
|
|
32
32
|
}
|
|
33
|
-
export interface IBillingTimesheetDetail {
|
|
33
|
+
export interface IBillingTimesheetDetail extends IAuditColumnEntity {
|
|
34
|
+
id: number;
|
|
34
35
|
timesheetId: number;
|
|
35
36
|
totalAmount: number;
|
|
36
37
|
changedStatus: BillingTimesheetStatusEnum;
|
|
@@ -45,4 +46,3 @@ export interface IBillingTimesheetDetail {
|
|
|
45
46
|
}
|
|
46
47
|
export interface IBillingTimesheetDetailsArray extends Array<IBillingTimesheetDetail> {
|
|
47
48
|
}
|
|
48
|
-
export type IBillingEntityFilterData = IEntityFilterData<IBillingEntity>;
|
|
@@ -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);
|