refactor: update type

This commit is contained in:
Methapon2001 2024-04-17 13:51:55 +07:00
parent 5c1cc88a48
commit 38e2eef6ed
2 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,5 @@
export type BranchContact = { export type BranchContact = {
id: string; id: string;
lineId: string;
telephoneNo: string; telephoneNo: string;
qrCodeImageUrl: string; qrCodeImageUrl: string;
updatedAt: string; updatedAt: string;
@ -11,6 +10,5 @@ export type BranchContact = {
}; };
export type BranchContactCreate = { export type BranchContactCreate = {
lineId: string;
telephoneNo: string; telephoneNo: string;
}; };

View file

@ -14,7 +14,8 @@ export type Branch = {
isHeadOffice: boolean; isHeadOffice: boolean;
longitude: string; longitude: string;
latitude: string; latitude: string;
telephoneNo: string; contactName: string;
qrCodeImageUrl: string;
email: string; email: string;
zipCode: string; zipCode: string;
subDistrictId: string | null; subDistrictId: string | null;
@ -39,7 +40,8 @@ export type BranchCreate = {
address: string; address: string;
zipCode: string; zipCode: string;
email: string; email: string;
telephoneNo: string; contactName: string;
telephoneNo: string | string[];
longitude: string; longitude: string;
latitude: string; latitude: string;
subDistrictId?: string | null; subDistrictId?: string | null;