From 77270e028d15fdd6b65a941fe156d45c3f10f12a Mon Sep 17 00:00:00 2001 From: puriphatt Date: Tue, 9 Apr 2024 14:39:25 +0700 Subject: [PATCH] fix: add code for user&branch type --- src/stores/branch/types.ts | 1 + src/stores/user/types.ts | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/stores/branch/types.ts b/src/stores/branch/types.ts index e57f63c0..180c97ca 100644 --- a/src/stores/branch/types.ts +++ b/src/stores/branch/types.ts @@ -26,6 +26,7 @@ export type Branch = { name: string; taxNo: string; id: string; + code: string; }; export type BranchCreate = { diff --git a/src/stores/user/types.ts b/src/stores/user/types.ts index ac8fb2ac..8aab4fd8 100644 --- a/src/stores/user/types.ts +++ b/src/stores/user/types.ts @@ -38,6 +38,7 @@ export type User = { keycloakId: string; id: string; profileImageUrl: string; + code: string; }; export type UserCreate = { @@ -53,12 +54,12 @@ export type UserCreate = { trainingPlace?: string; importNationality?: string; sourceNationality?: string; - licenseExpireDate?: Date; - licenseIssueDate?: Date; + licenseExpireDate?: Date | null; + licenseIssueDate?: Date | null; licenseNo?: string; discountCondition?: string; - retireDate?: Date; - startDate?: Date; + retireDate?: Date | null; + startDate?: Date | null; registrationNo?: string; lastNameEN: string; lastName: string; @@ -67,5 +68,5 @@ export type UserCreate = { userRole: string; userType: string; keycloakId: string; - profileImage: File; + profileImage?: File; };