@thefittingroom/sdk 1.1.7 → 1.1.8
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/api/shop.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare class TfrShop {
|
|
|
14
14
|
getColorwaySizeAssetFromSku(colorwaySizeAssetSku: string): Promise<types.FirestoreColorwaySizeAsset>;
|
|
15
15
|
getMeasurementLocationsFromSku(sku: string): Promise<string[]>;
|
|
16
16
|
private getColorwaySizeAssets;
|
|
17
|
-
|
|
17
|
+
getStyle(styleId: number): Promise<types.FirestoreStyleCategory>;
|
|
18
18
|
private getGetTaxonomy;
|
|
19
19
|
private getMeasurementLocations;
|
|
20
20
|
private fetchMeasurementLocations;
|
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* thefittingroom v1.1.
|
|
2
|
+
* thefittingroom v1.1.8 (2024-06-20T17:59:34.232Z)
|
|
3
3
|
* Copyright 2022-present, TheFittingRoom, Inc. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
// Code generated by tygo. DO NOT EDIT.
|
|
@@ -22968,7 +22968,7 @@ class TfrShop {
|
|
|
22968
22968
|
const asset = await this.getColorwaySizeAssetFromSku(sku);
|
|
22969
22969
|
if (!asset)
|
|
22970
22970
|
throw new Error('No colorway size asset found for sku');
|
|
22971
|
-
const styleCategory = await this.
|
|
22971
|
+
const styleCategory = await this.getStyle(asset.style_id);
|
|
22972
22972
|
if (!styleCategory)
|
|
22973
22973
|
throw new Error('Style category not found for style id');
|
|
22974
22974
|
const taxonomy = await this.getGetTaxonomy(styleCategory.style_garment_category_id);
|
|
@@ -22997,7 +22997,7 @@ class TfrShop {
|
|
|
22997
22997
|
return getFirebaseError(error);
|
|
22998
22998
|
}
|
|
22999
22999
|
}
|
|
23000
|
-
async
|
|
23000
|
+
async getStyle(styleId) {
|
|
23001
23001
|
try {
|
|
23002
23002
|
const doc = await this.firebase.getDoc('styles', String(styleId));
|
|
23003
23003
|
return doc;
|