@blackcode_sa/metaestetics-api 1.4.10 → 1.4.12
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/index.js
CHANGED
|
@@ -3853,7 +3853,7 @@ async function createClinicGroup(db, data, ownerId, isDefault = false, clinicAdm
|
|
|
3853
3853
|
name: validatedData.name,
|
|
3854
3854
|
logo: logoUrl,
|
|
3855
3855
|
// Use the uploaded logo URL or the original value
|
|
3856
|
-
description: isDefault ?
|
|
3856
|
+
description: isDefault ? "" : validatedData.description || "",
|
|
3857
3857
|
hqLocation: {
|
|
3858
3858
|
address: validatedData.hqLocation.address || "",
|
|
3859
3859
|
city: validatedData.hqLocation.city || "",
|
|
@@ -3861,13 +3861,13 @@ async function createClinicGroup(db, data, ownerId, isDefault = false, clinicAdm
|
|
|
3861
3861
|
postalCode: validatedData.hqLocation.postalCode || "",
|
|
3862
3862
|
latitude: validatedData.hqLocation.latitude || 0,
|
|
3863
3863
|
longitude: validatedData.hqLocation.longitude || 0,
|
|
3864
|
-
geohash: validatedData.hqLocation.geohash ||
|
|
3864
|
+
geohash: validatedData.hqLocation.geohash || ""
|
|
3865
3865
|
},
|
|
3866
3866
|
contactInfo: {
|
|
3867
3867
|
email: validatedData.contactInfo.email || "",
|
|
3868
3868
|
phoneNumber: validatedData.contactInfo.phoneNumber || "",
|
|
3869
|
-
alternativePhoneNumber: isDefault ?
|
|
3870
|
-
website: isDefault ?
|
|
3869
|
+
alternativePhoneNumber: isDefault ? "" : validatedData.contactInfo.alternativePhoneNumber || "",
|
|
3870
|
+
website: isDefault ? "" : validatedData.contactInfo.website || ""
|
|
3871
3871
|
},
|
|
3872
3872
|
contactPerson: {
|
|
3873
3873
|
firstName: ((_a = validatedData.contactPerson) == null ? void 0 : _a.firstName) || "",
|
|
@@ -4503,7 +4503,7 @@ async function createClinic(db, data, creatorAdminId, clinicGroupService, clinic
|
|
|
4503
4503
|
const clinicData = {
|
|
4504
4504
|
...validatedData,
|
|
4505
4505
|
id: clinicId,
|
|
4506
|
-
description: validatedData.description ||
|
|
4506
|
+
description: validatedData.description || "",
|
|
4507
4507
|
location: {
|
|
4508
4508
|
address: validatedData.location.address || "",
|
|
4509
4509
|
city: validatedData.location.city || "",
|
|
@@ -4511,15 +4511,15 @@ async function createClinic(db, data, creatorAdminId, clinicGroupService, clinic
|
|
|
4511
4511
|
postalCode: validatedData.location.postalCode || "",
|
|
4512
4512
|
latitude: validatedData.location.latitude || 0,
|
|
4513
4513
|
longitude: validatedData.location.longitude || 0,
|
|
4514
|
-
geohash: validatedData.location.geohash ||
|
|
4514
|
+
geohash: validatedData.location.geohash || ""
|
|
4515
4515
|
},
|
|
4516
4516
|
contactInfo: {
|
|
4517
4517
|
email: validatedData.contactInfo.email || "",
|
|
4518
4518
|
phoneNumber: validatedData.contactInfo.phoneNumber || "",
|
|
4519
|
-
alternativePhoneNumber: validatedData.contactInfo.alternativePhoneNumber ||
|
|
4520
|
-
website: validatedData.contactInfo.website ||
|
|
4519
|
+
alternativePhoneNumber: validatedData.contactInfo.alternativePhoneNumber || "",
|
|
4520
|
+
website: validatedData.contactInfo.website || ""
|
|
4521
4521
|
},
|
|
4522
|
-
logo: logoUrl ||
|
|
4522
|
+
logo: logoUrl || "",
|
|
4523
4523
|
tags: validatedData.tags || [],
|
|
4524
4524
|
featuredPhotos: processedFeaturedPhotos || [],
|
|
4525
4525
|
photos: processedPhotos || [],
|
package/dist/index.mjs
CHANGED
|
@@ -3809,7 +3809,7 @@ async function createClinicGroup(db, data, ownerId, isDefault = false, clinicAdm
|
|
|
3809
3809
|
name: validatedData.name,
|
|
3810
3810
|
logo: logoUrl,
|
|
3811
3811
|
// Use the uploaded logo URL or the original value
|
|
3812
|
-
description: isDefault ?
|
|
3812
|
+
description: isDefault ? "" : validatedData.description || "",
|
|
3813
3813
|
hqLocation: {
|
|
3814
3814
|
address: validatedData.hqLocation.address || "",
|
|
3815
3815
|
city: validatedData.hqLocation.city || "",
|
|
@@ -3817,13 +3817,13 @@ async function createClinicGroup(db, data, ownerId, isDefault = false, clinicAdm
|
|
|
3817
3817
|
postalCode: validatedData.hqLocation.postalCode || "",
|
|
3818
3818
|
latitude: validatedData.hqLocation.latitude || 0,
|
|
3819
3819
|
longitude: validatedData.hqLocation.longitude || 0,
|
|
3820
|
-
geohash: validatedData.hqLocation.geohash ||
|
|
3820
|
+
geohash: validatedData.hqLocation.geohash || ""
|
|
3821
3821
|
},
|
|
3822
3822
|
contactInfo: {
|
|
3823
3823
|
email: validatedData.contactInfo.email || "",
|
|
3824
3824
|
phoneNumber: validatedData.contactInfo.phoneNumber || "",
|
|
3825
|
-
alternativePhoneNumber: isDefault ?
|
|
3826
|
-
website: isDefault ?
|
|
3825
|
+
alternativePhoneNumber: isDefault ? "" : validatedData.contactInfo.alternativePhoneNumber || "",
|
|
3826
|
+
website: isDefault ? "" : validatedData.contactInfo.website || ""
|
|
3827
3827
|
},
|
|
3828
3828
|
contactPerson: {
|
|
3829
3829
|
firstName: ((_a = validatedData.contactPerson) == null ? void 0 : _a.firstName) || "",
|
|
@@ -4469,7 +4469,7 @@ async function createClinic(db, data, creatorAdminId, clinicGroupService, clinic
|
|
|
4469
4469
|
const clinicData = {
|
|
4470
4470
|
...validatedData,
|
|
4471
4471
|
id: clinicId,
|
|
4472
|
-
description: validatedData.description ||
|
|
4472
|
+
description: validatedData.description || "",
|
|
4473
4473
|
location: {
|
|
4474
4474
|
address: validatedData.location.address || "",
|
|
4475
4475
|
city: validatedData.location.city || "",
|
|
@@ -4477,15 +4477,15 @@ async function createClinic(db, data, creatorAdminId, clinicGroupService, clinic
|
|
|
4477
4477
|
postalCode: validatedData.location.postalCode || "",
|
|
4478
4478
|
latitude: validatedData.location.latitude || 0,
|
|
4479
4479
|
longitude: validatedData.location.longitude || 0,
|
|
4480
|
-
geohash: validatedData.location.geohash ||
|
|
4480
|
+
geohash: validatedData.location.geohash || ""
|
|
4481
4481
|
},
|
|
4482
4482
|
contactInfo: {
|
|
4483
4483
|
email: validatedData.contactInfo.email || "",
|
|
4484
4484
|
phoneNumber: validatedData.contactInfo.phoneNumber || "",
|
|
4485
|
-
alternativePhoneNumber: validatedData.contactInfo.alternativePhoneNumber ||
|
|
4486
|
-
website: validatedData.contactInfo.website ||
|
|
4485
|
+
alternativePhoneNumber: validatedData.contactInfo.alternativePhoneNumber || "",
|
|
4486
|
+
website: validatedData.contactInfo.website || ""
|
|
4487
4487
|
},
|
|
4488
|
-
logo: logoUrl ||
|
|
4488
|
+
logo: logoUrl || "",
|
|
4489
4489
|
tags: validatedData.tags || [],
|
|
4490
4490
|
featuredPhotos: processedFeaturedPhotos || [],
|
|
4491
4491
|
photos: processedPhotos || [],
|
package/package.json
CHANGED
|
@@ -152,7 +152,7 @@ export async function createClinicGroup(
|
|
|
152
152
|
id: groupId,
|
|
153
153
|
name: validatedData.name,
|
|
154
154
|
logo: logoUrl, // Use the uploaded logo URL or the original value
|
|
155
|
-
description: isDefault ?
|
|
155
|
+
description: isDefault ? "" : validatedData.description || "",
|
|
156
156
|
hqLocation: {
|
|
157
157
|
address: validatedData.hqLocation.address || "",
|
|
158
158
|
city: validatedData.hqLocation.city || "",
|
|
@@ -160,17 +160,15 @@ export async function createClinicGroup(
|
|
|
160
160
|
postalCode: validatedData.hqLocation.postalCode || "",
|
|
161
161
|
latitude: validatedData.hqLocation.latitude || 0,
|
|
162
162
|
longitude: validatedData.hqLocation.longitude || 0,
|
|
163
|
-
geohash: validatedData.hqLocation.geohash ||
|
|
163
|
+
geohash: validatedData.hqLocation.geohash || "",
|
|
164
164
|
},
|
|
165
165
|
contactInfo: {
|
|
166
166
|
email: validatedData.contactInfo.email || "",
|
|
167
167
|
phoneNumber: validatedData.contactInfo.phoneNumber || "",
|
|
168
168
|
alternativePhoneNumber: isDefault
|
|
169
|
-
?
|
|
170
|
-
: validatedData.contactInfo.alternativePhoneNumber ||
|
|
171
|
-
website: isDefault
|
|
172
|
-
? undefined
|
|
173
|
-
: validatedData.contactInfo.website || undefined,
|
|
169
|
+
? ""
|
|
170
|
+
: validatedData.contactInfo.alternativePhoneNumber || "",
|
|
171
|
+
website: isDefault ? "" : validatedData.contactInfo.website || "",
|
|
174
172
|
},
|
|
175
173
|
contactPerson: {
|
|
176
174
|
firstName: validatedData.contactPerson?.firstName || "",
|
|
@@ -249,7 +249,7 @@ export async function createClinic(
|
|
|
249
249
|
const clinicData: Clinic = {
|
|
250
250
|
...validatedData,
|
|
251
251
|
id: clinicId,
|
|
252
|
-
description: validatedData.description ||
|
|
252
|
+
description: validatedData.description || "",
|
|
253
253
|
location: {
|
|
254
254
|
address: validatedData.location.address || "",
|
|
255
255
|
city: validatedData.location.city || "",
|
|
@@ -257,16 +257,16 @@ export async function createClinic(
|
|
|
257
257
|
postalCode: validatedData.location.postalCode || "",
|
|
258
258
|
latitude: validatedData.location.latitude || 0,
|
|
259
259
|
longitude: validatedData.location.longitude || 0,
|
|
260
|
-
geohash: validatedData.location.geohash ||
|
|
260
|
+
geohash: validatedData.location.geohash || "",
|
|
261
261
|
},
|
|
262
262
|
contactInfo: {
|
|
263
263
|
email: validatedData.contactInfo.email || "",
|
|
264
264
|
phoneNumber: validatedData.contactInfo.phoneNumber || "",
|
|
265
265
|
alternativePhoneNumber:
|
|
266
|
-
validatedData.contactInfo.alternativePhoneNumber ||
|
|
267
|
-
website: validatedData.contactInfo.website ||
|
|
266
|
+
validatedData.contactInfo.alternativePhoneNumber || "",
|
|
267
|
+
website: validatedData.contactInfo.website || "",
|
|
268
268
|
},
|
|
269
|
-
logo: logoUrl ||
|
|
269
|
+
logo: logoUrl || "",
|
|
270
270
|
tags: validatedData.tags || [],
|
|
271
271
|
featuredPhotos: processedFeaturedPhotos || [],
|
|
272
272
|
photos: processedPhotos || [],
|