@blackcode_sa/metaestetics-api 1.7.5 → 1.7.7
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.
- package/dist/admin/index.d.mts +7 -6
- package/dist/admin/index.d.ts +7 -6
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/index.d.mts +421 -130
- package/dist/index.d.ts +421 -130
- package/dist/index.js +1676 -1239
- package/dist/index.mjs +1480 -1026
- package/package.json +1 -1
- package/src/admin/booking/booking.admin.ts +6 -1
- package/src/services/auth.service.ts +7 -2
- package/src/services/clinic/clinic.service.ts +259 -76
- package/src/services/media/media.service.ts +135 -52
- package/src/services/practitioner/practitioner.service.ts +6 -2
- package/src/services/procedure/procedure.service.ts +12 -4
- package/src/types/clinic/index.ts +54 -62
- package/src/types/index.ts +7 -7
- package/src/validations/clinic.schema.ts +56 -26
- package/src/validations/schemas.ts +6 -17
package/dist/admin/index.d.mts
CHANGED
|
@@ -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
|
-
*
|
|
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:
|
|
1036
|
-
coverPhoto:
|
|
1036
|
+
featuredPhotos: MediaResource[];
|
|
1037
|
+
coverPhoto: MediaResource | null;
|
|
1037
1038
|
photosWithTags?: {
|
|
1038
|
-
url:
|
|
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?:
|
|
1052
|
+
logo?: MediaResource | null;
|
|
1052
1053
|
}
|
|
1053
1054
|
|
|
1054
1055
|
/**
|
package/dist/admin/index.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
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:
|
|
1036
|
-
coverPhoto:
|
|
1036
|
+
featuredPhotos: MediaResource[];
|
|
1037
|
+
coverPhoto: MediaResource | null;
|
|
1037
1038
|
photosWithTags?: {
|
|
1038
|
-
url:
|
|
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?:
|
|
1052
|
+
logo?: MediaResource | null;
|
|
1052
1053
|
}
|
|
1053
1054
|
|
|
1054
1055
|
/**
|
package/dist/admin/index.js
CHANGED
|
@@ -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
|
package/dist/admin/index.mjs
CHANGED
|
@@ -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
|