refactor: rename phone field to telephone in ClinicsPage and update related types
- Updated the form schema in ClinicsPage to change the field name from 'phone' to 'telephone'. - Adjusted the input registration to reflect the new field name. - Added a new interface ClinicDetail to define detailed clinic information including phone and other attributes. - Modified the ClinicController to use null-safe access for province ID retrieval.
This commit is contained in:
@@ -47,6 +47,30 @@ export interface Clinic {
|
||||
created_at: number;
|
||||
}
|
||||
|
||||
export interface ClinicDetail {
|
||||
id: string;
|
||||
uuid: string;
|
||||
name: string | null;
|
||||
title: string | null;
|
||||
is_active: boolean;
|
||||
phone: string | null;
|
||||
phone_number: string | null;
|
||||
logo: string | null;
|
||||
clinic_logo: string | null;
|
||||
caption: string | null;
|
||||
images_clinic: { url: string; fid?: number }[];
|
||||
specialties: { id: string; uuid: string; name: string }[];
|
||||
services: { id: string; uuid: string; name: string }[];
|
||||
list_bime: { id: string; uuid: string; name: string }[];
|
||||
doctors: number;
|
||||
city: { id: string; name: string }[];
|
||||
state: { id: string; name: string }[];
|
||||
location: string | null;
|
||||
map: { latitude: string | null; longitude: string | null };
|
||||
'24_7': boolean;
|
||||
field_working_days: string | null;
|
||||
}
|
||||
|
||||
export type AppointmentStatus =
|
||||
| 'waiting_for_payment'
|
||||
| 'reserved'
|
||||
|
||||
Reference in New Issue
Block a user