@blackcode_sa/metaestetics-api 1.12.49 → 1.12.50

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
@@ -8727,8 +8727,7 @@ var PractitionerService = class extends BaseService {
8727
8727
  price: 0,
8728
8728
  currency: "EUR" /* EUR */,
8729
8729
  pricingMeasure: "per_session" /* PER_SESSION */,
8730
- productsMetadata: void 0,
8731
- // No products needed for consultations
8730
+ // productsMetadata omitted - no products needed for consultations
8732
8731
  duration: 30,
8733
8732
  // 30 minutes consultation
8734
8733
  practitionerId,
@@ -16570,7 +16569,8 @@ var ProcedureService = class extends BaseService {
16570
16569
  // Embed full objects
16571
16570
  subcategory,
16572
16571
  technology,
16573
- product,
16572
+ ...product && { product },
16573
+ // Only include product field if it exists (Firestore doesn't allow undefined)
16574
16574
  productsMetadata: transformedProductsMetadata,
16575
16575
  // Use transformed data, not original
16576
16576
  blockingConditions: technology.blockingConditions,
@@ -16718,7 +16718,8 @@ var ProcedureService = class extends BaseService {
16718
16718
  category,
16719
16719
  subcategory,
16720
16720
  technology,
16721
- product,
16721
+ ...product && { product },
16722
+ // Only include product field if it exists (Firestore doesn't allow undefined)
16722
16723
  productsMetadata: transformedProductsMetadata,
16723
16724
  // Use transformed data, not original
16724
16725
  blockingConditions: technology.blockingConditions,
@@ -17514,8 +17515,7 @@ var ProcedureService = class extends BaseService {
17514
17515
  category,
17515
17516
  subcategory,
17516
17517
  technology,
17517
- product: void 0,
17518
- // No product needed for consultations
17518
+ // No product field for consultations (Firestore doesn't allow undefined, so we omit it entirely)
17519
17519
  productsMetadata: transformedProductsMetadata,
17520
17520
  // Empty array for consultations
17521
17521
  blockingConditions: technology.blockingConditions,
package/dist/index.mjs CHANGED
@@ -8762,8 +8762,7 @@ var PractitionerService = class extends BaseService {
8762
8762
  price: 0,
8763
8763
  currency: "EUR" /* EUR */,
8764
8764
  pricingMeasure: "per_session" /* PER_SESSION */,
8765
- productsMetadata: void 0,
8766
- // No products needed for consultations
8765
+ // productsMetadata omitted - no products needed for consultations
8767
8766
  duration: 30,
8768
8767
  // 30 minutes consultation
8769
8768
  practitionerId,
@@ -16818,7 +16817,8 @@ var ProcedureService = class extends BaseService {
16818
16817
  // Embed full objects
16819
16818
  subcategory,
16820
16819
  technology,
16821
- product,
16820
+ ...product && { product },
16821
+ // Only include product field if it exists (Firestore doesn't allow undefined)
16822
16822
  productsMetadata: transformedProductsMetadata,
16823
16823
  // Use transformed data, not original
16824
16824
  blockingConditions: technology.blockingConditions,
@@ -16966,7 +16966,8 @@ var ProcedureService = class extends BaseService {
16966
16966
  category,
16967
16967
  subcategory,
16968
16968
  technology,
16969
- product,
16969
+ ...product && { product },
16970
+ // Only include product field if it exists (Firestore doesn't allow undefined)
16970
16971
  productsMetadata: transformedProductsMetadata,
16971
16972
  // Use transformed data, not original
16972
16973
  blockingConditions: technology.blockingConditions,
@@ -17762,8 +17763,7 @@ var ProcedureService = class extends BaseService {
17762
17763
  category,
17763
17764
  subcategory,
17764
17765
  technology,
17765
- product: void 0,
17766
- // No product needed for consultations
17766
+ // No product field for consultations (Firestore doesn't allow undefined, so we omit it entirely)
17767
17767
  productsMetadata: transformedProductsMetadata,
17768
17768
  // Empty array for consultations
17769
17769
  blockingConditions: technology.blockingConditions,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@blackcode_sa/metaestetics-api",
3
3
  "private": false,
4
- "version": "1.12.49",
4
+ "version": "1.12.50",
5
5
  "description": "Firebase authentication service with anonymous upgrade support",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.mjs",
@@ -1566,7 +1566,7 @@ export class PractitionerService extends BaseService {
1566
1566
  price: 0,
1567
1567
  currency: Currency.EUR,
1568
1568
  pricingMeasure: PricingMeasure.PER_SESSION,
1569
- productsMetadata: undefined, // No products needed for consultations
1569
+ // productsMetadata omitted - no products needed for consultations
1570
1570
  duration: 30, // 30 minutes consultation
1571
1571
  practitionerId: practitionerId,
1572
1572
  clinicBranchId: clinicId,
@@ -301,7 +301,7 @@ export class ProcedureService extends BaseService {
301
301
  category, // Embed full objects
302
302
  subcategory,
303
303
  technology,
304
- product,
304
+ ...(product && { product }), // Only include product field if it exists (Firestore doesn't allow undefined)
305
305
  productsMetadata: transformedProductsMetadata, // Use transformed data, not original
306
306
  blockingConditions: technology.blockingConditions,
307
307
  contraindications: technology.contraindications || [],
@@ -494,7 +494,7 @@ export class ProcedureService extends BaseService {
494
494
  category,
495
495
  subcategory,
496
496
  technology,
497
- product,
497
+ ...(product && { product }), // Only include product field if it exists (Firestore doesn't allow undefined)
498
498
  productsMetadata: transformedProductsMetadata, // Use transformed data, not original
499
499
  blockingConditions: technology.blockingConditions,
500
500
  contraindications: technology.contraindications || [],
@@ -1514,7 +1514,7 @@ export class ProcedureService extends BaseService {
1514
1514
  category,
1515
1515
  subcategory,
1516
1516
  technology,
1517
- product: undefined, // No product needed for consultations
1517
+ // No product field for consultations (Firestore doesn't allow undefined, so we omit it entirely)
1518
1518
  productsMetadata: transformedProductsMetadata, // Empty array for consultations
1519
1519
  blockingConditions: technology.blockingConditions,
1520
1520
  contraindications: technology.contraindications || [],