diff --git a/src/stores/employee/types.ts b/src/stores/employee/types.ts index 19c277dd..ad388e2f 100644 --- a/src/stores/employee/types.ts +++ b/src/stores/employee/types.ts @@ -29,11 +29,11 @@ export type Employee = { }; export type EmployeeCreate = { + image: File; customerBranchId: string; status?: Status; - code: string; nrcNo: string; dateOfBirth: Date; @@ -48,16 +48,34 @@ export type EmployeeCreate = { addressEN: string; address: string; zipCode: string; - email: string; - telephoneNo: string; - arrivalBarricade: string; - arrivalCardNo: string; + passportType: 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; districtId?: string | null; provinceId?: string | null; - image: File; + + employeeWork?: EmployeeWorkCreate[]; + + employeeCheckup?: EmployeeCheckupCreate[]; + + employeeOtherInfo?: EmployeeOtherCreate; }; export type EmployeeUpdate = { @@ -90,3 +108,89 @@ export type EmployeeUpdate = { provinceId?: string | null; 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; +};