@thefittingroom/sdk 1.4.0 → 1.4.1

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.
@@ -18,6 +18,7 @@ export declare class TfrShop {
18
18
  getStyleByBrandStyleId(brandStyleId: string): Promise<types.FirestoreStyleCategory>;
19
19
  private getColorwaySizeAssets;
20
20
  getStyle(styleId: number): Promise<types.FirestoreStyleCategory>;
21
+ getMeasurementLocationName(location: string): string;
21
22
  private getGetTaxonomy;
22
23
  private getMeasurementLocations;
23
24
  private fetchMeasurementLocations;
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * thefittingroom v1.4.0 (2024-07-19T17:07:31.828Z)
2
+ * thefittingroom v1.4.1 (2024-07-24T23:18:17.347Z)
3
3
  * Copyright 2022-present, TheFittingRoom, Inc. All rights reserved.
4
4
  */
5
5
  // Code generated by tygo. DO NOT EDIT.
@@ -25489,6 +25489,9 @@ class TfrShop {
25489
25489
  return getFirebaseError(error);
25490
25490
  }
25491
25491
  }
25492
+ getMeasurementLocationName(location) {
25493
+ return this.measurementLocations.has(location) ? this.measurementLocations.get(location) : location;
25494
+ }
25492
25495
  async getGetTaxonomy(styleId) {
25493
25496
  try {
25494
25497
  const doc = await this.firebase.getDoc('style_garment_categories', String(styleId));