@blackcode_sa/metaestetics-api 1.7.6 → 1.7.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1013,13 +1013,14 @@ interface DoctorInfo {
1013
1013
  id: string;
1014
1014
  name: string;
1015
1015
  description?: string;
1016
- photo: string;
1016
+ photo: string | null;
1017
1017
  rating: number;
1018
1018
  services: string[];
1019
1019
  }
1020
1020
  /**
1021
- * Interface for service information
1021
+ * Type that allows a field to be either a URL string or a File object
1022
1022
  */
1023
+ type MediaResource = string | File | Blob;
1023
1024
  /**
1024
1025
  * Interface for clinic
1025
1026
  */
@@ -1032,10 +1033,10 @@ interface Clinic {
1032
1033
  contactInfo: ClinicContactInfo;
1033
1034
  workingHours: WorkingHours;
1034
1035
  tags: ClinicTag[];
1035
- featuredPhotos: string[];
1036
- coverPhoto: string | null;
1036
+ featuredPhotos: MediaResource[];
1037
+ coverPhoto: MediaResource | null;
1037
1038
  photosWithTags?: {
1038
- url: string;
1039
+ url: MediaResource;
1039
1040
  tag: string;
1040
1041
  }[];
1041
1042
  doctors: string[];
@@ -1048,7 +1049,7 @@ interface Clinic {
1048
1049
  updatedAt: Timestamp;
1049
1050
  isActive: boolean;
1050
1051
  isVerified: boolean;
1051
- logo?: string;
1052
+ logo?: MediaResource | null;
1052
1053
  }
1053
1054
 
1054
1055
  /**
@@ -1013,13 +1013,14 @@ interface DoctorInfo {
1013
1013
  id: string;
1014
1014
  name: string;
1015
1015
  description?: string;
1016
- photo: string;
1016
+ photo: string | null;
1017
1017
  rating: number;
1018
1018
  services: string[];
1019
1019
  }
1020
1020
  /**
1021
- * Interface for service information
1021
+ * Type that allows a field to be either a URL string or a File object
1022
1022
  */
1023
+ type MediaResource = string | File | Blob;
1023
1024
  /**
1024
1025
  * Interface for clinic
1025
1026
  */
@@ -1032,10 +1033,10 @@ interface Clinic {
1032
1033
  contactInfo: ClinicContactInfo;
1033
1034
  workingHours: WorkingHours;
1034
1035
  tags: ClinicTag[];
1035
- featuredPhotos: string[];
1036
- coverPhoto: string | null;
1036
+ featuredPhotos: MediaResource[];
1037
+ coverPhoto: MediaResource | null;
1037
1038
  photosWithTags?: {
1038
- url: string;
1039
+ url: MediaResource;
1039
1040
  tag: string;
1040
1041
  }[];
1041
1042
  doctors: string[];
@@ -1048,7 +1049,7 @@ interface Clinic {
1048
1049
  updatedAt: Timestamp;
1049
1050
  isActive: boolean;
1050
1051
  isVerified: boolean;
1051
- logo?: string;
1052
+ logo?: MediaResource | null;
1052
1053
  }
1053
1054
 
1054
1055
  /**
@@ -5604,7 +5604,7 @@ var BookingAdmin = class {
5604
5604
  const clinicInfo = {
5605
5605
  id: clinicSnap.id,
5606
5606
  name: clinicData.name,
5607
- featuredPhoto: clinicData.coverPhoto || clinicData.logo || "",
5607
+ featuredPhoto: (typeof clinicData.coverPhoto === "string" ? clinicData.coverPhoto : "") || (typeof clinicData.logo === "string" ? clinicData.logo : "") || "",
5608
5608
  description: clinicData.description,
5609
5609
  location: clinicData.location,
5610
5610
  contactInfo: clinicData.contactInfo
@@ -5549,7 +5549,7 @@ var BookingAdmin = class {
5549
5549
  const clinicInfo = {
5550
5550
  id: clinicSnap.id,
5551
5551
  name: clinicData.name,
5552
- featuredPhoto: clinicData.coverPhoto || clinicData.logo || "",
5552
+ featuredPhoto: (typeof clinicData.coverPhoto === "string" ? clinicData.coverPhoto : "") || (typeof clinicData.logo === "string" ? clinicData.logo : "") || "",
5553
5553
  description: clinicData.description,
5554
5554
  location: clinicData.location,
5555
5555
  contactInfo: clinicData.contactInfo