Observed since 20 Oct, 20:55 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Algolia wrapper to be used on both mobile-app and web
Algolia wrapper to be used on both mobile-app and web.
The first function that should be called when using the SDK. This function will set the Algolia object based on Algolia keys.
appID - Algolia application IDsearchKey - Algolia search Keyoptions - This is an optional object, with the following keys:
customIndices This is a list of custom indices grouped by locale, that will override the default values from configE.g:
{
customIndices: {
"en-ae": {
default: 'uat_english_products',
latest: 'uat_english_products_created_at_desc',
price_low: 'uat_english_products_price_default_asc',
price_high: 'uat_english_products_price_default_desc',
discount: 'uat_english_products_discount_desc'
}
}
}
import AlgoliaSDK from '@6thstreetdotcom/algolia-sdk';
AlgoliaSDK.init(appID, searchKey);
This function will set the Algolia index based on locale and env settings.
setIndex(locale, env);
locale - environment used for getting the right indexes
'en-ae'env - environment used for getting the right indexes
'production'ENUM = ('staging', 'production')import AlgoliaSDK from 'Algolia-sdk';
AlgoliaSDK.setIndex('en-ae', 'production');
Search using any available facet. Use comma , separated values for multiple values per facet.
To search using a search query, use the q param, as described below.
AlgoliaSDK.search({
q: 'Adidas',
hitsPerPage: 4,
'categories.level1': 'Women /// Shoes',
gender: 'Women'
});
Response: search-data.json
Search by a query string
getBrands(gender);
gender - String
''// to get all brands
AlgoliaSDK.getBrands();
// to get specific gender brand
AlgoliaSDK.getBrands('Women');
Response: brands-data.json
Returns a product's details for the given SKU.
getPDP(params);
params - Object
sku - String: product's sku
''highlights - Array: list of attributes to highlight
highlighted_attributes attribute which contains the list of highlighted attributesAlgoliaSDK.getPDP({
sku: 'VAMTFRYIH-BLACK',
highlights: ['brand_name', 'color', 'gender']
});
Response: pdp-data.json
Returns products for a PLP Screen.
getPLP(URL);
URL - String: URL for the Product listparams in URL should have the following form:
/...?key=value&key=value1,value2,value3
custom params:
brand_name=Adidas,Aldo,Nikecategories.level0=Womencategories.level1=Women /// Shoescategories.level2=Women /// Shoes /// Sandalscategories.level1=Men /// Shirts,Women /// Shoesspecial params:
gender - mandatory = ENUM('Women', 'Men', 'Kids')locale - mandatory = ENUM('en-ae', 'ar-ae', 'en-sa', 'ar-sa', 'en-kw', 'ar-kw', 'en-qa', 'ar-qa', 'en-om', 'ar-om', 'en-bh', 'ar-bh')sort = String: ENUM('recommended', price_low', 'price_high', 'discount')
'recommended' - default sorting'price_low'' - sort products by price ASC'price_high'' - sort products by price DESC'discount'' - sort products by highest discountprice.[currency].default - filter products by price
price.AED.default=gte50,lte700 - filter products with the price in interval >= 50 AED and <= 700 AEDprice.SAR.default=lt100 - filter products with the price less than 100 SARdiscount - filter products by discount
discount=gt20,lte70 - filter products with the discount in range > 20% and <= 70%discount=gte40 - filter products with the discount >= 40%Notes: for
priceanddiscountkey filters, instead of (>, <, >=, <=) symbols you should use the following:
- 'lt' : <
- 'lte' : <=
- 'gt' : >
- 'gte' : >=
- 'eq' : =
We cannot use operators because will interfere with the query params in a URL
AlgoliaSDK.getPLP(
'/women/outlet.html?q=Women%20Outlet&page=0&brand_name=Adidas,Aldo&categories.level0=Women&categories.level1=Women /// Shoes&discount=gt20,lte900&price.AED.default=gte50,lte1500&visibility_catalog=1&gender=Women&locale=en-ae'
);
Response: plp-data.json
Returns popular brands.
getPopularBrands(limit);
limit - Int: results limit
10AlgoliaSDK.getPopularBrands(5);
Response
{
"data": ["Adidas", "Aldo", "Adidas Originals", "Charles & Keith", "Nike"]
}
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.0.2-beta-9Registry latest | 24 Sept 2026 | 27 | |
| 0.0.2-beta-8 | 7 Sept 2026 | 27 | |
| 0.0.2-beta-7 | 27 Aug 2026 | 27 | |
| 0.0.2-beta-6 | 26 Aug 2026 | 27 | |
| 0.0.2-beta-5 | 26 Aug 2026 | 27 | |
| 0.0.2-beta-4 | 26 Aug 2026 | 27 | |
| 0.0.2-beta-3 | 24 Aug 2026 | 27 | |
| 0.0.2-beta-2 | 17 Aug 2026 | 27 | |
| 0.0.2-beta-1 | 17 Aug 2026 | 27 | |
| 0.0.2 | 17 Aug 2026 | 27 | |
| 0.0.1-beta-15 | 14 Aug 2026 | 27 | |
| 0.0.1-beta-14 | 17 Jul 2026 | 27 | |
| 0.0.1-beta-13 | 16 Jul 2026 | 27 | |
| 0.0.1-beta-12 | 25 Jun 2026 | 27 | |
| 0.0.1-beta-11 | 19 Jun 2026 | 27 | |
| 0.0.1-beta-9 | 8 May 2026 | 27 | |
| 0.0.1-beta-8 | 8 May 2026 | 27 | |
| 0.0.1-beta-7 | 5 May 2026 | 27 | |
| 0.0.1-beta-6 | 5 May 2026 | 27 | |
| 0.0.1-beta-5 | 25 Mar 2026 | 27 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 20:55 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:193f2f3f9a977c93b24a2f041ae507c22bb722a22173d0d653260882b88f93d0