From 2bb76bd86688130c2ff796759df22970322073c3 Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Wed, 2 Oct 2024 14:06:09 +0700 Subject: [PATCH] refactor: edit type --- src/stores/employee/types.ts | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/src/stores/employee/types.ts b/src/stores/employee/types.ts index b8fe3082..03a6cdc3 100644 --- a/src/stores/employee/types.ts +++ b/src/stores/employee/types.ts @@ -20,12 +20,19 @@ export type Employee = { dateOfBirth: Date; gender: string; nationality: string; + address: string; - addressEN: string; + addressEN?: string; + street: string; + streetEN?: string; + moo?: string; + mooEN?: string; + soi?: string; + soiEN?: string; provinceId: string; districtId: string; subDistrictId: string; - zipCode: string; + passportType: string; passportNumber: string; passportIssuingCountry: string; @@ -95,13 +102,17 @@ export type EmployeeCreate = { middleName?: string; middleNameEN?: string; - addressEN: string; address: string; - zipCode: string; - - subDistrictId?: string | null; - districtId?: string | null; - provinceId?: string | null; + addressEN?: string; + street: string; + streetEN?: string; + moo?: string; + mooEN?: string; + soi?: string; + soiEN?: string; + provinceId: string; + districtId: string; + subDistrictId: string; employeeCheckup?: EmployeeCheckupCreate[]; employeeWork?: EmployeeWorkCreate[];