fix/feat: employee type
This commit is contained in:
parent
c2f6d53e51
commit
21e59f0df8
1 changed files with 110 additions and 6 deletions
|
|
@ -29,11 +29,11 @@ export type Employee = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export type EmployeeCreate = {
|
export type EmployeeCreate = {
|
||||||
|
image: File;
|
||||||
customerBranchId: string;
|
customerBranchId: string;
|
||||||
|
|
||||||
status?: Status;
|
status?: Status;
|
||||||
|
|
||||||
code: string;
|
|
||||||
nrcNo: string;
|
nrcNo: string;
|
||||||
|
|
||||||
dateOfBirth: Date;
|
dateOfBirth: Date;
|
||||||
|
|
@ -48,16 +48,34 @@ export type EmployeeCreate = {
|
||||||
addressEN: string;
|
addressEN: string;
|
||||||
address: string;
|
address: string;
|
||||||
zipCode: string;
|
zipCode: string;
|
||||||
email: string;
|
|
||||||
telephoneNo: string;
|
|
||||||
|
|
||||||
arrivalBarricade: string;
|
passportType: string;
|
||||||
arrivalCardNo: string;
|
passportNumber: string;
|
||||||
|
passportIssueDate: Date;
|
||||||
|
passportExpiryDate: Date;
|
||||||
|
passportIssuingCountry: string;
|
||||||
|
passportIssuingPlace: string;
|
||||||
|
previousPassportReference?: string;
|
||||||
|
|
||||||
|
visaType: string;
|
||||||
|
visaNumber: string;
|
||||||
|
visaIssueDate: Date;
|
||||||
|
visaExpiryDate: Date;
|
||||||
|
visaIssuingPlace: string;
|
||||||
|
visaStayUntilDate: Date;
|
||||||
|
tm6Number: string;
|
||||||
|
entryDate: Date;
|
||||||
|
workerStatus: string;
|
||||||
|
|
||||||
subDistrictId?: string | null;
|
subDistrictId?: string | null;
|
||||||
districtId?: string | null;
|
districtId?: string | null;
|
||||||
provinceId?: string | null;
|
provinceId?: string | null;
|
||||||
image: File;
|
|
||||||
|
employeeWork?: EmployeeWorkCreate[];
|
||||||
|
|
||||||
|
employeeCheckup?: EmployeeCheckupCreate[];
|
||||||
|
|
||||||
|
employeeOtherInfo?: EmployeeOtherCreate;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type EmployeeUpdate = {
|
export type EmployeeUpdate = {
|
||||||
|
|
@ -90,3 +108,89 @@ export type EmployeeUpdate = {
|
||||||
provinceId?: string | null;
|
provinceId?: string | null;
|
||||||
image?: File;
|
image?: File;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type EmployeeCheckup = {
|
||||||
|
updatedAt: Date;
|
||||||
|
updateBy: Date;
|
||||||
|
createdAt: Date;
|
||||||
|
createdBy: string;
|
||||||
|
coverageExpireDate: Date;
|
||||||
|
coverageStartDate: Date;
|
||||||
|
insuranceCompany: string;
|
||||||
|
medicalBenefitScheme: string;
|
||||||
|
remark: string;
|
||||||
|
hospitalName: string;
|
||||||
|
provinceId: string;
|
||||||
|
checkupType: string;
|
||||||
|
checkupResult: string;
|
||||||
|
employeeId: string;
|
||||||
|
id: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type EmployeeCheckupCreate = {
|
||||||
|
coverageExpireDate?: Date;
|
||||||
|
coverageStartDate?: Date;
|
||||||
|
insuranceCompany?: string;
|
||||||
|
medicalBenefitScheme?: string;
|
||||||
|
remark?: string;
|
||||||
|
hospitalName?: string;
|
||||||
|
provinceId?: string;
|
||||||
|
checkupResult?: string;
|
||||||
|
checkupType?: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type EmployeeWork = {
|
||||||
|
updatedAt: Date;
|
||||||
|
updateBy: string;
|
||||||
|
createdAt: Date;
|
||||||
|
createdBy: string;
|
||||||
|
workEndDate: Date;
|
||||||
|
workPermitExpireDate: Date;
|
||||||
|
workPermitIssuDate: Date;
|
||||||
|
workPermitNo: string;
|
||||||
|
workplace: string;
|
||||||
|
jobType: string;
|
||||||
|
positionName: string;
|
||||||
|
ownerName: string;
|
||||||
|
employeeId: string;
|
||||||
|
id: string;
|
||||||
|
remark?: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type EmployeeWorkCreate = {
|
||||||
|
workEndDate?: Date;
|
||||||
|
workPermitExpireDate?: Date;
|
||||||
|
workPermitIssuDate?: Date;
|
||||||
|
workPermitNo?: string;
|
||||||
|
workplace?: string;
|
||||||
|
jobType?: string;
|
||||||
|
positionName?: string;
|
||||||
|
ownerName?: string;
|
||||||
|
remark?: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type EmployeeOther = {
|
||||||
|
birthPlace: string;
|
||||||
|
motherLastNameEN: string;
|
||||||
|
motherFirstNameEN: string;
|
||||||
|
fatherLastNameEN: string;
|
||||||
|
fatherFirstNameEN: string;
|
||||||
|
motherLastName: string;
|
||||||
|
motherFirstName: string;
|
||||||
|
fatherLastName: string;
|
||||||
|
fatherFirstName: string;
|
||||||
|
citizenId: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type EmployeeOtherCreate = {
|
||||||
|
birthPlace?: string;
|
||||||
|
motherLastNameEN?: string;
|
||||||
|
motherFirstNameEN?: string;
|
||||||
|
fatherLastNameEN?: string;
|
||||||
|
fatherFirstNameEN?: string;
|
||||||
|
motherLastName?: string;
|
||||||
|
motherFirstName?: string;
|
||||||
|
fatherLastName?: string;
|
||||||
|
fatherFirstName?: string;
|
||||||
|
citizenId?: string;
|
||||||
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue