fast-simon-sdk 1.6.8 → 1.6.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/lib/config.d.ts +25 -25
- package/lib/config.js +30 -30
- package/lib/index.d.ts +3 -3
- package/lib/index.js +72 -72
- package/lib/index.js.map +1 -1
- package/lib/models/autocomplete.d.ts +73 -73
- package/lib/models/autocomplete.js +2 -2
- package/lib/models/common.d.ts +267 -267
- package/lib/models/common.js +65 -65
- package/lib/models/common.js.map +1 -1
- package/lib/models/content.d.ts +37 -37
- package/lib/models/content.js +2 -2
- package/lib/models/events.d.ts +113 -113
- package/lib/models/events.js +2 -2
- package/lib/models/exports.d.ts +6 -6
- package/lib/models/exports.js +5 -5
- package/lib/models/fullTextSearch.d.ts +130 -130
- package/lib/models/fullTextSearch.js +17 -17
- package/lib/models/fullTextSearch.js.map +1 -1
- package/lib/models/lookAlikeProductRecommendation.d.ts +8 -8
- package/lib/models/lookAlikeProductRecommendation.js +2 -2
- package/lib/models/productsInventory.d.ts +10 -10
- package/lib/models/productsInventory.js +2 -2
- package/lib/models/related.d.ts +35 -35
- package/lib/models/related.js +2 -2
- package/lib/models/smartCollections.d.ts +94 -94
- package/lib/models/smartCollections.js +2 -2
- package/lib/models/visualDiscovery.d.ts +129 -129
- package/lib/models/visualDiscovery.js +30 -30
- package/lib/models/visualDiscovery.js.map +1 -1
- package/lib/sections/contentSearch/index.d.ts +7 -7
- package/lib/sections/contentSearch/index.js +44 -44
- package/lib/sections/contentSearch/index.js.map +1 -1
- package/lib/sections/enums/index.d.ts +47 -47
- package/lib/sections/enums/index.js +50 -50
- package/lib/sections/eventReporter/index.d.ts +10 -10
- package/lib/sections/eventReporter/index.js +628 -628
- package/lib/sections/eventReporter/index.js.map +1 -1
- package/lib/sections/eventReporter/utils.d.ts +9 -9
- package/lib/sections/eventReporter/utils.js +31 -31
- package/lib/sections/eventReporter/utils.js.map +1 -1
- package/lib/sections/fullTextSearch/index.d.ts +6 -6
- package/lib/sections/fullTextSearch/index.js +178 -178
- package/lib/sections/fullTextSearch/index.js.map +1 -1
- package/lib/sections/fullTextSearch/utils.d.ts +17 -17
- package/lib/sections/fullTextSearch/utils.js +185 -181
- package/lib/sections/fullTextSearch/utils.js.map +1 -1
- package/lib/sections/index.d.ts +3 -3
- package/lib/sections/index.js +432 -434
- package/lib/sections/index.js.map +1 -1
- package/lib/sections/initialization/index.d.ts +8 -8
- package/lib/sections/initialization/index.js +150 -150
- package/lib/sections/initialization/index.js.map +1 -1
- package/lib/sections/initialization/utils.d.ts +11 -11
- package/lib/sections/initialization/utils.js +200 -200
- package/lib/sections/initialization/utils.js.map +1 -1
- package/lib/sections/instantSearch/index.d.ts +6 -6
- package/lib/sections/instantSearch/index.js +66 -66
- package/lib/sections/instantSearch/index.js.map +1 -1
- package/lib/sections/instantSearch/utils.d.ts +21 -21
- package/lib/sections/instantSearch/utils.js +232 -232
- package/lib/sections/instantSearch/utils.js.map +1 -1
- package/lib/sections/landingPage/index.d.ts +6 -6
- package/lib/sections/landingPage/index.js +95 -95
- package/lib/sections/landingPage/index.js.map +1 -1
- package/lib/sections/landingPage/utils.d.ts +14 -14
- package/lib/sections/landingPage/utils.js +96 -96
- package/lib/sections/landingPage/utils.js.map +1 -1
- package/lib/sections/lookAlikeProductRecommendation/index.d.ts +6 -6
- package/lib/sections/lookAlikeProductRecommendation/index.js +23 -23
- package/lib/sections/recommendations/index.d.ts +10 -10
- package/lib/sections/recommendations/index.js +95 -95
- package/lib/sections/recommendations/index.js.map +1 -1
- package/lib/sections/recommendations/utils.d.ts +6 -6
- package/lib/sections/recommendations/utils.js +82 -82
- package/lib/sections/recommendations/utils.js.map +1 -1
- package/lib/sections/smartCollections/index.d.ts +6 -6
- package/lib/sections/smartCollections/index.js +169 -169
- package/lib/sections/smartCollections/index.js.map +1 -1
- package/lib/sections/smartCollections/utils.d.ts +41 -41
- package/lib/sections/smartCollections/utils.js +286 -281
- package/lib/sections/smartCollections/utils.js.map +1 -1
- package/lib/sections/visualDiscovery/index.d.ts +22 -22
- package/lib/sections/visualDiscovery/index.js +261 -265
- package/lib/sections/visualDiscovery/index.js.map +1 -1
- package/lib/services/autocomplete.d.ts +24 -24
- package/lib/services/autocomplete.js +50 -50
- package/lib/services/common.d.ts +35 -35
- package/lib/services/common.js +94 -94
- package/lib/services/content.d.ts +4 -4
- package/lib/services/content.js +25 -25
- package/lib/services/fullTextSearch.d.ts +4 -4
- package/lib/services/fullTextSearch.js +87 -87
- package/lib/services/fullTextSearch.js.map +1 -1
- package/lib/services/landingPage.d.ts +21 -21
- package/lib/services/landingPage.js +44 -44
- package/lib/services/lookAlikeProductRecommendation.d.ts +13 -13
- package/lib/services/lookAlikeProductRecommendation.js +23 -23
- package/lib/services/related.d.ts +48 -48
- package/lib/services/related.js +114 -114
- package/lib/services/related.js.map +1 -1
- package/lib/services/reporting.d.ts +80 -80
- package/lib/services/reporting.js +258 -258
- package/lib/services/reporting.js.map +1 -1
- package/lib/services/smartCollections.d.ts +5 -5
- package/lib/services/smartCollections.js +93 -93
- package/lib/services/smartCollections.js.map +1 -1
- package/lib/services/utils.d.ts +5 -5
- package/lib/services/utils.js +25 -25
- package/lib/services/utils.js.map +1 -1
- package/lib/services/visualDiscovery.d.ts +9 -9
- package/lib/services/visualDiscovery.js +166 -170
- package/lib/services/visualDiscovery.js.map +1 -1
- package/lib/utils/ABTesting.d.ts +2 -2
- package/lib/utils/ABTesting.js +27 -28
- package/lib/utils/ABTesting.js.map +1 -1
- package/lib/utils/API.d.ts +19 -19
- package/lib/utils/API.js +81 -81
- package/lib/utils/API.js.map +1 -1
- package/lib/utils/ArrayUtils.d.ts +2 -2
- package/lib/utils/ArrayUtils.js +16 -17
- package/lib/utils/ArrayUtils.js.map +1 -1
- package/lib/utils/bindingBoxes.d.ts +23 -23
- package/lib/utils/bindingBoxes.js +88 -89
- package/lib/utils/bindingBoxes.js.map +1 -1
- package/lib/utils/cookies.d.ts +13 -13
- package/lib/utils/cookies.js +50 -50
- package/lib/utils/debug.d.ts +4 -4
- package/lib/utils/debug.js +31 -31
- package/lib/utils/debug.js.map +1 -1
- package/lib/utils/duplicationsHandler.d.ts +19 -0
- package/lib/utils/duplicationsHandler.js +70 -0
- package/lib/utils/duplicationsHandler.js.map +1 -0
- package/lib/utils/filtersPersonalization.d.ts +3 -3
- package/lib/utils/filtersPersonalization.js +39 -39
- package/lib/utils/filtersPersonalization.js.map +1 -1
- package/lib/utils/image.d.ts +6 -6
- package/lib/utils/image.js +153 -153
- package/lib/utils/image.js.map +1 -1
- package/lib/utils/klaviyo.js +1 -1
- package/lib/utils/location.d.ts +1 -1
- package/lib/utils/location.js +11 -11
- package/lib/utils/location.js.map +1 -1
- package/lib/utils/mappingUtil.d.ts +4 -4
- package/lib/utils/mappingUtil.js +16 -16
- package/lib/utils/options.d.ts +23 -23
- package/lib/utils/options.js +16 -16
- package/lib/utils/personalization.d.ts +2 -2
- package/lib/utils/personalization.js +20 -20
- package/lib/utils/personalization.js.map +1 -1
- package/lib/utils/segments.d.ts +2 -2
- package/lib/utils/segments.js +19 -20
- package/lib/utils/segments.js.map +1 -1
- package/lib/utils/shopifyMarkets.d.ts +3 -3
- package/lib/utils/shopifyMarkets.js +12 -12
- package/lib/utils/sortUtil.d.ts +1 -1
- package/lib/utils/sortUtil.js +24 -24
- package/lib/utils/sortUtil.js.map +1 -1
- package/lib/utils/updateRecentSearches.d.ts +2 -2
- package/lib/utils/updateRecentSearches.js +56 -57
- package/lib/utils/updateRecentSearches.js.map +1 -1
- package/lib/utils/validation.d.ts +5 -5
- package/lib/utils/validation.js +46 -46
- package/lib/utils/validation.js.map +1 -1
- package/package.json +3 -2
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.contentSearch = void 0;
|
|
4
|
-
var content_1 = require("../../services/content");
|
|
5
|
-
var contentSearch = function (_a) {
|
|
6
|
-
var self = _a.self, _b = _a.page, page = _b === void 0 ? 1 : _b, query = _a.query, callback = _a.callback;
|
|
7
|
-
var _c = self.data, uuid = _c.uuid, storeID = _c.storeID, cdnKey = _c.cdnKey, contentData = _c.contentData;
|
|
8
|
-
var cursor = contentData[page - 1];
|
|
9
|
-
if (!cursor && page !== 1) {
|
|
10
|
-
console.error("Could not access this page at the moment");
|
|
11
|
-
}
|
|
12
|
-
content_1.Content.search({
|
|
13
|
-
uuid: uuid,
|
|
14
|
-
storeID: storeID,
|
|
15
|
-
cdn: cdnKey,
|
|
16
|
-
query: query,
|
|
17
|
-
cursor: cursor !== null && cursor !== void 0 ? cursor : undefined
|
|
18
|
-
}).then(function (response) {
|
|
19
|
-
contentData[page] = response.content_cursor;
|
|
20
|
-
callback({
|
|
21
|
-
action: "content-search",
|
|
22
|
-
payload: {
|
|
23
|
-
content: response.content_results ? serializeContentData(response.content_results) : [],
|
|
24
|
-
page: page,
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
exports.contentSearch = contentSearch;
|
|
30
|
-
var serializeContentData = function (content) {
|
|
31
|
-
return content.map(function (article) {
|
|
32
|
-
var result = {
|
|
33
|
-
title: article[0],
|
|
34
|
-
url: article[1],
|
|
35
|
-
};
|
|
36
|
-
if (article[2]) {
|
|
37
|
-
result["description"] = article[2];
|
|
38
|
-
}
|
|
39
|
-
if (article[4]) {
|
|
40
|
-
result["image"] = article[4];
|
|
41
|
-
}
|
|
42
|
-
return result;
|
|
43
|
-
});
|
|
44
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.contentSearch = void 0;
|
|
4
|
+
var content_1 = require("../../services/content");
|
|
5
|
+
var contentSearch = function (_a) {
|
|
6
|
+
var self = _a.self, _b = _a.page, page = _b === void 0 ? 1 : _b, query = _a.query, callback = _a.callback;
|
|
7
|
+
var _c = self.data, uuid = _c.uuid, storeID = _c.storeID, cdnKey = _c.cdnKey, contentData = _c.contentData;
|
|
8
|
+
var cursor = contentData[page - 1];
|
|
9
|
+
if (!cursor && page !== 1) {
|
|
10
|
+
console.error("Could not access this page at the moment");
|
|
11
|
+
}
|
|
12
|
+
content_1.Content.search({
|
|
13
|
+
uuid: uuid,
|
|
14
|
+
storeID: storeID,
|
|
15
|
+
cdn: cdnKey,
|
|
16
|
+
query: query,
|
|
17
|
+
cursor: cursor !== null && cursor !== void 0 ? cursor : undefined
|
|
18
|
+
}).then(function (response) {
|
|
19
|
+
contentData[page] = response.content_cursor;
|
|
20
|
+
callback({
|
|
21
|
+
action: "content-search",
|
|
22
|
+
payload: {
|
|
23
|
+
content: response.content_results ? serializeContentData(response.content_results) : [],
|
|
24
|
+
page: page,
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
exports.contentSearch = contentSearch;
|
|
30
|
+
var serializeContentData = function (content) {
|
|
31
|
+
return content.map(function (article) {
|
|
32
|
+
var result = {
|
|
33
|
+
title: article[0],
|
|
34
|
+
url: article[1],
|
|
35
|
+
};
|
|
36
|
+
if (article[2]) {
|
|
37
|
+
result["description"] = article[2];
|
|
38
|
+
}
|
|
39
|
+
if (article[4]) {
|
|
40
|
+
result["image"] = article[4];
|
|
41
|
+
}
|
|
42
|
+
return result;
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
45
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sections/contentSearch/index.ts"],"names":[],"mappings":";;;AAEA,kDAA+C;AAMxC,IAAM,aAAa,GAAG,UAAC,EAAwC;QAAvC,IAAI,UAAA,EAAE,YAAQ,EAAR,IAAI,mBAAG,CAAC,KAAA,EAAE,KAAK,WAAA,EAAE,QAAQ,cAAA;IACpD,IAAA,KAAuC,IAAI,CAAC,IAAI,EAA/C,IAAI,UAAA,EAAE,OAAO,aAAA,EAAE,MAAM,YAAA,EAAE,WAAW,iBAAa,CAAC;IAEvD,IAAM,MAAM,GAAG,WAAW,CAAC,IAAI,GAAG,CAAC,CAAW,CAAC;IAE/C,IAAI,CAAC,MAAM,IAAI,IAAI,KAAK,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sections/contentSearch/index.ts"],"names":[],"mappings":";;;AAEA,kDAA+C;AAMxC,IAAM,aAAa,GAAG,UAAC,EAAwC;QAAvC,IAAI,UAAA,EAAE,YAAQ,EAAR,IAAI,mBAAG,CAAC,KAAA,EAAE,KAAK,WAAA,EAAE,QAAQ,cAAA;IACpD,IAAA,KAAuC,IAAI,CAAC,IAAI,EAA/C,IAAI,UAAA,EAAE,OAAO,aAAA,EAAE,MAAM,YAAA,EAAE,WAAW,iBAAa,CAAC;IAEvD,IAAM,MAAM,GAAG,WAAW,CAAC,IAAI,GAAG,CAAC,CAAW,CAAC;IAE/C,IAAI,CAAC,MAAM,IAAI,IAAI,KAAK,CAAC,EAAE,CAAC;QACxB,OAAO,CAAC,KAAK,CAAC,0CAA0C,CAAC,CAAC;IAC9D,CAAC;IAED,iBAAO,CAAC,MAAM,CAAC;QACX,IAAI,MAAA;QAAE,OAAO,SAAA;QAAE,GAAG,EAAE,MAAM;QAAE,KAAK,OAAA;QAAE,MAAM,EAAE,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,SAAS;KACjE,CAAC,CAAC,IAAI,CAAC,UAAA,QAAQ;QACZ,WAAW,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,cAAc,CAAC;QAE5C,QAAQ,CAAC;YACL,MAAM,EAAE,gBAAgB;YACxB,OAAO,EAAE;gBACL,OAAO,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,oBAAoB,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,EAAE;gBACvF,IAAI,MAAA;aACP;SACJ,CAAC,CAAA;IACN,CAAC,CAAC,CAAA;AACN,CAAC,CAAA;AAtBY,QAAA,aAAa,iBAsBzB;AAED,IAAM,oBAAoB,GAAG,UAAC,OAAsB;IAChD,OAAO,OAAO,CAAC,GAAG,CAAC,UAAC,OAAO;QACvB,IAAI,MAAM,GAAkB;YACxB,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;YACjB,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;SAClB,CAAC;QAEF,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;YACb,MAAM,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;QACtC,CAAC;QAED,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;YACb,MAAM,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;QAChC,CAAC;QAED,OAAO,MAAM,CAAA;IACjB,CAAC,CAAC,CAAC;AACP,CAAC,CAAA"}
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
export declare const FastAppType: {
|
|
2
|
-
SinglePage: string;
|
|
3
|
-
MultiPage: string;
|
|
4
|
-
};
|
|
5
|
-
export declare const FastEventName: {
|
|
6
|
-
AutocompleteProductClicked: string;
|
|
7
|
-
AutocompleteCategoryClicked: string;
|
|
8
|
-
AutocompletePopularClicked: string;
|
|
9
|
-
SearchPerformed: string;
|
|
10
|
-
SmartCollectionPreformed: string;
|
|
11
|
-
SerpProductClicked: string;
|
|
12
|
-
CollectionProductClicked: string;
|
|
13
|
-
SerpPromoTileClicked: string;
|
|
14
|
-
CollectionPromoTileClicked: string;
|
|
15
|
-
RecommendationProductClicked: string;
|
|
16
|
-
LookALikeClickedSerp: string;
|
|
17
|
-
QuickViewClickedCollection: string;
|
|
18
|
-
LookALikeClickedCollection: string;
|
|
19
|
-
QuickViewClickedSerp: string;
|
|
20
|
-
LookALikeProductClicked: string;
|
|
21
|
-
QuickViewProductClicked: string;
|
|
22
|
-
DirectProductClicked: string;
|
|
23
|
-
CartVisited: string;
|
|
24
|
-
AddToCartPerformed: string;
|
|
25
|
-
};
|
|
26
|
-
export declare const FastSortBy: {
|
|
27
|
-
PriceHighToLow: string;
|
|
28
|
-
PriceLowToHigh: string;
|
|
29
|
-
NewFirst: string;
|
|
30
|
-
OldFirst: string;
|
|
31
|
-
Popularity: string;
|
|
32
|
-
Reviews: string;
|
|
33
|
-
AtoZ: string;
|
|
34
|
-
ZtoA: string;
|
|
35
|
-
relevancy: string;
|
|
36
|
-
};
|
|
37
|
-
export declare const FastRecommendationsSource: {
|
|
38
|
-
relatedRecentProducts: string;
|
|
39
|
-
relatedPurchase: string;
|
|
40
|
-
relatedViews: string;
|
|
41
|
-
relatedCart: string;
|
|
42
|
-
similarProducts: string;
|
|
43
|
-
relatedRecentlyViewed: string;
|
|
44
|
-
similarProducts_byAttributes: string;
|
|
45
|
-
similarProductsLookalike: string;
|
|
46
|
-
relatedTopProducts: string;
|
|
47
|
-
};
|
|
1
|
+
export declare const FastAppType: {
|
|
2
|
+
SinglePage: string;
|
|
3
|
+
MultiPage: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const FastEventName: {
|
|
6
|
+
AutocompleteProductClicked: string;
|
|
7
|
+
AutocompleteCategoryClicked: string;
|
|
8
|
+
AutocompletePopularClicked: string;
|
|
9
|
+
SearchPerformed: string;
|
|
10
|
+
SmartCollectionPreformed: string;
|
|
11
|
+
SerpProductClicked: string;
|
|
12
|
+
CollectionProductClicked: string;
|
|
13
|
+
SerpPromoTileClicked: string;
|
|
14
|
+
CollectionPromoTileClicked: string;
|
|
15
|
+
RecommendationProductClicked: string;
|
|
16
|
+
LookALikeClickedSerp: string;
|
|
17
|
+
QuickViewClickedCollection: string;
|
|
18
|
+
LookALikeClickedCollection: string;
|
|
19
|
+
QuickViewClickedSerp: string;
|
|
20
|
+
LookALikeProductClicked: string;
|
|
21
|
+
QuickViewProductClicked: string;
|
|
22
|
+
DirectProductClicked: string;
|
|
23
|
+
CartVisited: string;
|
|
24
|
+
AddToCartPerformed: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const FastSortBy: {
|
|
27
|
+
PriceHighToLow: string;
|
|
28
|
+
PriceLowToHigh: string;
|
|
29
|
+
NewFirst: string;
|
|
30
|
+
OldFirst: string;
|
|
31
|
+
Popularity: string;
|
|
32
|
+
Reviews: string;
|
|
33
|
+
AtoZ: string;
|
|
34
|
+
ZtoA: string;
|
|
35
|
+
relevancy: string;
|
|
36
|
+
};
|
|
37
|
+
export declare const FastRecommendationsSource: {
|
|
38
|
+
relatedRecentProducts: string;
|
|
39
|
+
relatedPurchase: string;
|
|
40
|
+
relatedViews: string;
|
|
41
|
+
relatedCart: string;
|
|
42
|
+
similarProducts: string;
|
|
43
|
+
relatedRecentlyViewed: string;
|
|
44
|
+
similarProducts_byAttributes: string;
|
|
45
|
+
similarProductsLookalike: string;
|
|
46
|
+
relatedTopProducts: string;
|
|
47
|
+
};
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FastRecommendationsSource = exports.FastSortBy = exports.FastEventName = exports.FastAppType = void 0;
|
|
4
|
-
exports.FastAppType = {
|
|
5
|
-
SinglePage: "SPA",
|
|
6
|
-
MultiPage: "MPA"
|
|
7
|
-
};
|
|
8
|
-
exports.FastEventName = {
|
|
9
|
-
AutocompleteProductClicked: "instantsearch-product",
|
|
10
|
-
AutocompleteCategoryClicked: "instantsearch-category",
|
|
11
|
-
AutocompletePopularClicked: "instantsearch-popular-search",
|
|
12
|
-
SearchPerformed: "search",
|
|
13
|
-
SmartCollectionPreformed: "collection",
|
|
14
|
-
SerpProductClicked: "productFromSearch",
|
|
15
|
-
CollectionProductClicked: "productFromCollection",
|
|
16
|
-
SerpPromoTileClicked: "promoTileFromSearch",
|
|
17
|
-
CollectionPromoTileClicked: "promoTileFromCollection",
|
|
18
|
-
RecommendationProductClicked: "productFromRecommendation",
|
|
19
|
-
LookALikeClickedSerp: "lookALikeViewSerp",
|
|
20
|
-
QuickViewClickedCollection: "quickViewCollection",
|
|
21
|
-
LookALikeClickedCollection: "lookALikeViewCollection",
|
|
22
|
-
QuickViewClickedSerp: "quickViewSerp",
|
|
23
|
-
LookALikeProductClicked: "productFromLookALike",
|
|
24
|
-
QuickViewProductClicked: "productFromQuickView",
|
|
25
|
-
DirectProductClicked: "productDirect",
|
|
26
|
-
CartVisited: "cartVisited",
|
|
27
|
-
AddToCartPerformed: "cartPerformed",
|
|
28
|
-
};
|
|
29
|
-
exports.FastSortBy = {
|
|
30
|
-
PriceHighToLow: "price_max_to_min",
|
|
31
|
-
PriceLowToHigh: "price_min_to_max",
|
|
32
|
-
NewFirst: "creation_date",
|
|
33
|
-
OldFirst: "creation_date_oldest",
|
|
34
|
-
Popularity: "popularity",
|
|
35
|
-
Reviews: "reviews",
|
|
36
|
-
AtoZ: "a_to_z",
|
|
37
|
-
ZtoA: "z_to_a",
|
|
38
|
-
relevancy: "relevency"
|
|
39
|
-
};
|
|
40
|
-
exports.FastRecommendationsSource = {
|
|
41
|
-
relatedRecentProducts: "related_recent_products",
|
|
42
|
-
relatedPurchase: "related_purchase",
|
|
43
|
-
relatedViews: "related_views",
|
|
44
|
-
relatedCart: "related_cart",
|
|
45
|
-
similarProducts: "similar_products",
|
|
46
|
-
relatedRecentlyViewed: "related_recently_viewed",
|
|
47
|
-
similarProducts_byAttributes: "similar_products_by_attributes",
|
|
48
|
-
similarProductsLookalike: "similar_products_lookalike",
|
|
49
|
-
relatedTopProducts: "related_top_products",
|
|
50
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FastRecommendationsSource = exports.FastSortBy = exports.FastEventName = exports.FastAppType = void 0;
|
|
4
|
+
exports.FastAppType = {
|
|
5
|
+
SinglePage: "SPA",
|
|
6
|
+
MultiPage: "MPA"
|
|
7
|
+
};
|
|
8
|
+
exports.FastEventName = {
|
|
9
|
+
AutocompleteProductClicked: "instantsearch-product",
|
|
10
|
+
AutocompleteCategoryClicked: "instantsearch-category",
|
|
11
|
+
AutocompletePopularClicked: "instantsearch-popular-search",
|
|
12
|
+
SearchPerformed: "search",
|
|
13
|
+
SmartCollectionPreformed: "collection",
|
|
14
|
+
SerpProductClicked: "productFromSearch",
|
|
15
|
+
CollectionProductClicked: "productFromCollection",
|
|
16
|
+
SerpPromoTileClicked: "promoTileFromSearch",
|
|
17
|
+
CollectionPromoTileClicked: "promoTileFromCollection",
|
|
18
|
+
RecommendationProductClicked: "productFromRecommendation",
|
|
19
|
+
LookALikeClickedSerp: "lookALikeViewSerp",
|
|
20
|
+
QuickViewClickedCollection: "quickViewCollection",
|
|
21
|
+
LookALikeClickedCollection: "lookALikeViewCollection",
|
|
22
|
+
QuickViewClickedSerp: "quickViewSerp",
|
|
23
|
+
LookALikeProductClicked: "productFromLookALike",
|
|
24
|
+
QuickViewProductClicked: "productFromQuickView",
|
|
25
|
+
DirectProductClicked: "productDirect",
|
|
26
|
+
CartVisited: "cartVisited",
|
|
27
|
+
AddToCartPerformed: "cartPerformed",
|
|
28
|
+
};
|
|
29
|
+
exports.FastSortBy = {
|
|
30
|
+
PriceHighToLow: "price_max_to_min",
|
|
31
|
+
PriceLowToHigh: "price_min_to_max",
|
|
32
|
+
NewFirst: "creation_date",
|
|
33
|
+
OldFirst: "creation_date_oldest",
|
|
34
|
+
Popularity: "popularity",
|
|
35
|
+
Reviews: "reviews",
|
|
36
|
+
AtoZ: "a_to_z",
|
|
37
|
+
ZtoA: "z_to_a",
|
|
38
|
+
relevancy: "relevency"
|
|
39
|
+
};
|
|
40
|
+
exports.FastRecommendationsSource = {
|
|
41
|
+
relatedRecentProducts: "related_recent_products",
|
|
42
|
+
relatedPurchase: "related_purchase",
|
|
43
|
+
relatedViews: "related_views",
|
|
44
|
+
relatedCart: "related_cart",
|
|
45
|
+
similarProducts: "similar_products",
|
|
46
|
+
relatedRecentlyViewed: "related_recently_viewed",
|
|
47
|
+
similarProducts_byAttributes: "similar_products_by_attributes",
|
|
48
|
+
similarProductsLookalike: "similar_products_lookalike",
|
|
49
|
+
relatedTopProducts: "related_top_products",
|
|
50
|
+
};
|
|
51
51
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { EventName, Report } from "../../models/events";
|
|
2
|
-
import { SDKUtils } from "../../models/common";
|
|
3
|
-
interface ReportEvent<T> {
|
|
4
|
-
self: SDKUtils;
|
|
5
|
-
report: Report<T>;
|
|
6
|
-
}
|
|
7
|
-
export declare const SPAOnlyReports: Set<EventName>;
|
|
8
|
-
export declare const event: ({ report, self }: ReportEvent<any>) => void;
|
|
9
|
-
export declare function reportEvent({ report, self }: ReportEvent<any>): void;
|
|
10
|
-
export {};
|
|
1
|
+
import { EventName, Report } from "../../models/events";
|
|
2
|
+
import { SDKUtils } from "../../models/common";
|
|
3
|
+
interface ReportEvent<T> {
|
|
4
|
+
self: SDKUtils;
|
|
5
|
+
report: Report<T>;
|
|
6
|
+
}
|
|
7
|
+
export declare const SPAOnlyReports: Set<EventName>;
|
|
8
|
+
export declare const event: ({ report, self }: ReportEvent<any>) => void;
|
|
9
|
+
export declare function reportEvent({ report, self }: ReportEvent<any>): void;
|
|
10
|
+
export {};
|