@thefittingroom/sdk 1.3.1 → 1.4.0

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.
@@ -74,7 +74,7 @@ export interface Invitation {
74
74
  brand_id: number;
75
75
  }
76
76
  export interface GarmentMeasurement {
77
- garment_measurement_location: string;
77
+ measurement_location: string;
78
78
  value: number;
79
79
  tolerance: number;
80
80
  }
@@ -81,7 +81,7 @@ export interface SizeRecommendation {
81
81
  }
82
82
  export interface GarmentMeasurement {
83
83
  id: number;
84
- garment_measurement_location: string;
84
+ measurement_location: string;
85
85
  value: number;
86
86
  tolerance: number;
87
87
  }
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * thefittingroom v1.3.1 (2024-07-11T00:19:42.936Z)
2
+ * thefittingroom v1.4.0 (2024-07-19T17:07:31.828Z)
3
3
  * Copyright 2022-present, TheFittingRoom, Inc. All rights reserved.
4
4
  */
5
5
  // Code generated by tygo. DO NOT EDIT.
@@ -25426,8 +25426,8 @@ class TfrShop {
25426
25426
  if (!taxonomy)
25427
25427
  throw new Error('Taxonomy not found for style garment category id');
25428
25428
  const filteredLocations = !filledLocations.length
25429
- ? taxonomy.garment_measurement_locations.female
25430
- : taxonomy.garment_measurement_locations.female.filter((location) => filledLocations.includes(location));
25429
+ ? taxonomy.measurement_locations.female
25430
+ : taxonomy.measurement_locations.female.filter((location) => filledLocations.includes(location));
25431
25431
  return filteredLocations.map((location) => {
25432
25432
  return this.measurementLocations.has(location) ? this.measurementLocations.get(location) : location;
25433
25433
  });
@@ -25443,8 +25443,8 @@ class TfrShop {
25443
25443
  if (!taxonomy)
25444
25444
  throw new Error('Taxonomy not found for style garment category id');
25445
25445
  const filteredLocations = !filledLocations.length
25446
- ? taxonomy.garment_measurement_locations.female
25447
- : taxonomy.garment_measurement_locations.female.filter((location) => filledLocations.includes(location));
25446
+ ? taxonomy.measurement_locations.female
25447
+ : taxonomy.measurement_locations.female.filter((location) => filledLocations.includes(location));
25448
25448
  return filteredLocations.map((location) => {
25449
25449
  return this.measurementLocations.has(location) ? this.measurementLocations.get(location) : location;
25450
25450
  });
@@ -25506,7 +25506,7 @@ class TfrShop {
25506
25506
  }
25507
25507
  async fetchMeasurementLocations() {
25508
25508
  try {
25509
- const docs = await this.firebase.getDocs('garment_measurement_locations', []);
25509
+ const docs = await this.firebase.getDocs('measurement_locations', []);
25510
25510
  return docs.docs.map((doc) => doc.data());
25511
25511
  }
25512
25512
  catch (error) {