@thefittingroom/sdk 1.1.5 → 1.1.6
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 +7 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.min.js +2 -2
- package/dist/esm/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* thefittingroom v1.1.
|
|
2
|
+
* thefittingroom v1.1.6 (2024-05-16T02:58:10.847Z)
|
|
3
3
|
* Copyright 2022-present, TheFittingRoom, Inc. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
// Code generated by tygo. DO NOT EDIT.
|
|
@@ -23330,8 +23330,14 @@ class TfrShop {
|
|
|
23330
23330
|
async getMeasurementLocationsFromSku(sku) {
|
|
23331
23331
|
var _a;
|
|
23332
23332
|
const asset = await this.getColorwaySizeAssetFromSku(sku);
|
|
23333
|
+
if (!asset)
|
|
23334
|
+
throw new Error('No colorway size asset found for sku');
|
|
23333
23335
|
const styleCategory = await this.getStyleCategory(asset.style_id);
|
|
23336
|
+
if (!styleCategory)
|
|
23337
|
+
throw new Error('Style category not found for style id');
|
|
23334
23338
|
const taxonomy = await this.getGetTaxonomy(styleCategory.style_garment_category_id);
|
|
23339
|
+
if (!taxonomy)
|
|
23340
|
+
throw new Error('Taxonomy not found for style garment category id');
|
|
23335
23341
|
const classificationLocation = ((_a = Taxonomy[taxonomy.style_category]) === null || _a === void 0 ? void 0 : _a[taxonomy.garment_category]) || null;
|
|
23336
23342
|
return classificationLocation
|
|
23337
23343
|
? ClassificationLocations[classificationLocation].map((location) => MeasurementLocationName[location])
|