@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.
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* thefittingroom v1.
|
|
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.
|
|
25430
|
-
: taxonomy.
|
|
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.
|
|
25447
|
-
: taxonomy.
|
|
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('
|
|
25509
|
+
const docs = await this.firebase.getDocs('measurement_locations', []);
|
|
25510
25510
|
return docs.docs.map((doc) => doc.data());
|
|
25511
25511
|
}
|
|
25512
25512
|
catch (error) {
|