@thefittingroom/sdk 1.1.8 → 1.1.9
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 +1 -0
- package/dist/esm/index.js +10 -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/api/shop.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export declare class TfrShop {
|
|
|
13
13
|
submitTelephoneNumber(tel: string): Promise<void>;
|
|
14
14
|
getColorwaySizeAssetFromSku(colorwaySizeAssetSku: string): Promise<types.FirestoreColorwaySizeAsset>;
|
|
15
15
|
getMeasurementLocationsFromSku(sku: string): Promise<string[]>;
|
|
16
|
+
getStyleByBrandStyleId(brandStyleId: string): Promise<types.FirestoreStyleCategory>;
|
|
16
17
|
private getColorwaySizeAssets;
|
|
17
18
|
getStyle(styleId: number): Promise<types.FirestoreStyleCategory>;
|
|
18
19
|
private getGetTaxonomy;
|
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* thefittingroom v1.1.
|
|
2
|
+
* thefittingroom v1.1.9 (2024-06-20T18:09:09.877Z)
|
|
3
3
|
* Copyright 2022-present, TheFittingRoom, Inc. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
// Code generated by tygo. DO NOT EDIT.
|
|
@@ -22978,6 +22978,15 @@ class TfrShop {
|
|
|
22978
22978
|
return this.measurementLocations.has(location) ? this.measurementLocations.get(location) : location;
|
|
22979
22979
|
});
|
|
22980
22980
|
}
|
|
22981
|
+
async getStyleByBrandStyleId(brandStyleId) {
|
|
22982
|
+
try {
|
|
22983
|
+
const querySnapshot = await this.firebase.getDocs('styles', [rl('brand_style_id', '==', brandStyleId)]);
|
|
22984
|
+
return querySnapshot.docs[0].data();
|
|
22985
|
+
}
|
|
22986
|
+
catch (error) {
|
|
22987
|
+
return getFirebaseError(error);
|
|
22988
|
+
}
|
|
22989
|
+
}
|
|
22981
22990
|
async getColorwaySizeAssets(styleId, skus) {
|
|
22982
22991
|
const constraints = [rl('brand_id', '==', this.brandId)];
|
|
22983
22992
|
if (styleId)
|