fast-simon-sdk 1.6.8 → 1.6.10

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.
Files changed (165) hide show
  1. package/lib/config.d.ts +25 -25
  2. package/lib/config.js +30 -30
  3. package/lib/index.d.ts +3 -3
  4. package/lib/index.js +72 -72
  5. package/lib/index.js.map +1 -1
  6. package/lib/models/autocomplete.d.ts +73 -73
  7. package/lib/models/autocomplete.js +2 -2
  8. package/lib/models/common.d.ts +267 -267
  9. package/lib/models/common.js +65 -65
  10. package/lib/models/common.js.map +1 -1
  11. package/lib/models/content.d.ts +37 -37
  12. package/lib/models/content.js +2 -2
  13. package/lib/models/events.d.ts +113 -113
  14. package/lib/models/events.js +2 -2
  15. package/lib/models/exports.d.ts +6 -6
  16. package/lib/models/exports.js +5 -5
  17. package/lib/models/fullTextSearch.d.ts +130 -130
  18. package/lib/models/fullTextSearch.js +17 -17
  19. package/lib/models/fullTextSearch.js.map +1 -1
  20. package/lib/models/lookAlikeProductRecommendation.d.ts +8 -8
  21. package/lib/models/lookAlikeProductRecommendation.js +2 -2
  22. package/lib/models/productsInventory.d.ts +10 -10
  23. package/lib/models/productsInventory.js +2 -2
  24. package/lib/models/related.d.ts +35 -35
  25. package/lib/models/related.js +2 -2
  26. package/lib/models/smartCollections.d.ts +94 -94
  27. package/lib/models/smartCollections.js +2 -2
  28. package/lib/models/visualDiscovery.d.ts +129 -129
  29. package/lib/models/visualDiscovery.js +30 -30
  30. package/lib/models/visualDiscovery.js.map +1 -1
  31. package/lib/sections/contentSearch/index.d.ts +7 -7
  32. package/lib/sections/contentSearch/index.js +44 -44
  33. package/lib/sections/contentSearch/index.js.map +1 -1
  34. package/lib/sections/enums/index.d.ts +47 -47
  35. package/lib/sections/enums/index.js +50 -50
  36. package/lib/sections/eventReporter/index.d.ts +10 -10
  37. package/lib/sections/eventReporter/index.js +628 -628
  38. package/lib/sections/eventReporter/index.js.map +1 -1
  39. package/lib/sections/eventReporter/utils.d.ts +9 -9
  40. package/lib/sections/eventReporter/utils.js +31 -31
  41. package/lib/sections/eventReporter/utils.js.map +1 -1
  42. package/lib/sections/fullTextSearch/index.d.ts +6 -6
  43. package/lib/sections/fullTextSearch/index.js +178 -178
  44. package/lib/sections/fullTextSearch/index.js.map +1 -1
  45. package/lib/sections/fullTextSearch/utils.d.ts +17 -17
  46. package/lib/sections/fullTextSearch/utils.js +185 -181
  47. package/lib/sections/fullTextSearch/utils.js.map +1 -1
  48. package/lib/sections/index.d.ts +3 -3
  49. package/lib/sections/index.js +432 -434
  50. package/lib/sections/index.js.map +1 -1
  51. package/lib/sections/initialization/index.d.ts +8 -8
  52. package/lib/sections/initialization/index.js +155 -150
  53. package/lib/sections/initialization/index.js.map +1 -1
  54. package/lib/sections/initialization/utils.d.ts +11 -11
  55. package/lib/sections/initialization/utils.js +200 -200
  56. package/lib/sections/initialization/utils.js.map +1 -1
  57. package/lib/sections/instantSearch/index.d.ts +6 -6
  58. package/lib/sections/instantSearch/index.js +66 -66
  59. package/lib/sections/instantSearch/index.js.map +1 -1
  60. package/lib/sections/instantSearch/utils.d.ts +21 -21
  61. package/lib/sections/instantSearch/utils.js +232 -232
  62. package/lib/sections/instantSearch/utils.js.map +1 -1
  63. package/lib/sections/landingPage/index.d.ts +6 -6
  64. package/lib/sections/landingPage/index.js +95 -95
  65. package/lib/sections/landingPage/index.js.map +1 -1
  66. package/lib/sections/landingPage/utils.d.ts +14 -14
  67. package/lib/sections/landingPage/utils.js +96 -96
  68. package/lib/sections/landingPage/utils.js.map +1 -1
  69. package/lib/sections/lookAlikeProductRecommendation/index.d.ts +6 -6
  70. package/lib/sections/lookAlikeProductRecommendation/index.js +23 -23
  71. package/lib/sections/recommendations/index.d.ts +10 -10
  72. package/lib/sections/recommendations/index.js +95 -95
  73. package/lib/sections/recommendations/index.js.map +1 -1
  74. package/lib/sections/recommendations/utils.d.ts +6 -6
  75. package/lib/sections/recommendations/utils.js +82 -82
  76. package/lib/sections/recommendations/utils.js.map +1 -1
  77. package/lib/sections/smartCollections/index.d.ts +6 -6
  78. package/lib/sections/smartCollections/index.js +169 -169
  79. package/lib/sections/smartCollections/index.js.map +1 -1
  80. package/lib/sections/smartCollections/utils.d.ts +41 -41
  81. package/lib/sections/smartCollections/utils.js +286 -281
  82. package/lib/sections/smartCollections/utils.js.map +1 -1
  83. package/lib/sections/visualDiscovery/index.d.ts +22 -22
  84. package/lib/sections/visualDiscovery/index.js +261 -265
  85. package/lib/sections/visualDiscovery/index.js.map +1 -1
  86. package/lib/services/autocomplete.d.ts +24 -24
  87. package/lib/services/autocomplete.js +50 -50
  88. package/lib/services/common.d.ts +35 -35
  89. package/lib/services/common.js +94 -94
  90. package/lib/services/content.d.ts +4 -4
  91. package/lib/services/content.js +25 -25
  92. package/lib/services/fullTextSearch.d.ts +4 -4
  93. package/lib/services/fullTextSearch.js +87 -87
  94. package/lib/services/fullTextSearch.js.map +1 -1
  95. package/lib/services/landingPage.d.ts +21 -21
  96. package/lib/services/landingPage.js +44 -44
  97. package/lib/services/lookAlikeProductRecommendation.d.ts +13 -13
  98. package/lib/services/lookAlikeProductRecommendation.js +23 -23
  99. package/lib/services/related.d.ts +48 -48
  100. package/lib/services/related.js +114 -114
  101. package/lib/services/related.js.map +1 -1
  102. package/lib/services/reporting.d.ts +80 -80
  103. package/lib/services/reporting.js +258 -258
  104. package/lib/services/reporting.js.map +1 -1
  105. package/lib/services/smartCollections.d.ts +5 -5
  106. package/lib/services/smartCollections.js +93 -93
  107. package/lib/services/smartCollections.js.map +1 -1
  108. package/lib/services/utils.d.ts +5 -5
  109. package/lib/services/utils.js +25 -25
  110. package/lib/services/utils.js.map +1 -1
  111. package/lib/services/visualDiscovery.d.ts +9 -9
  112. package/lib/services/visualDiscovery.js +166 -170
  113. package/lib/services/visualDiscovery.js.map +1 -1
  114. package/lib/utils/ABTesting.d.ts +2 -2
  115. package/lib/utils/ABTesting.js +27 -28
  116. package/lib/utils/ABTesting.js.map +1 -1
  117. package/lib/utils/API.d.ts +19 -19
  118. package/lib/utils/API.js +81 -81
  119. package/lib/utils/API.js.map +1 -1
  120. package/lib/utils/ArrayUtils.d.ts +2 -2
  121. package/lib/utils/ArrayUtils.js +16 -17
  122. package/lib/utils/ArrayUtils.js.map +1 -1
  123. package/lib/utils/bindingBoxes.d.ts +23 -23
  124. package/lib/utils/bindingBoxes.js +88 -89
  125. package/lib/utils/bindingBoxes.js.map +1 -1
  126. package/lib/utils/cookies.d.ts +13 -13
  127. package/lib/utils/cookies.js +50 -50
  128. package/lib/utils/debug.d.ts +4 -4
  129. package/lib/utils/debug.js +31 -31
  130. package/lib/utils/debug.js.map +1 -1
  131. package/lib/utils/duplicationsHandler.d.ts +19 -0
  132. package/lib/utils/duplicationsHandler.js +70 -0
  133. package/lib/utils/duplicationsHandler.js.map +1 -0
  134. package/lib/utils/filtersPersonalization.d.ts +3 -3
  135. package/lib/utils/filtersPersonalization.js +39 -39
  136. package/lib/utils/filtersPersonalization.js.map +1 -1
  137. package/lib/utils/image.d.ts +6 -6
  138. package/lib/utils/image.js +153 -153
  139. package/lib/utils/image.js.map +1 -1
  140. package/lib/utils/klaviyo.js +1 -1
  141. package/lib/utils/location.d.ts +1 -1
  142. package/lib/utils/location.js +11 -11
  143. package/lib/utils/location.js.map +1 -1
  144. package/lib/utils/mappingUtil.d.ts +4 -4
  145. package/lib/utils/mappingUtil.js +16 -16
  146. package/lib/utils/options.d.ts +23 -23
  147. package/lib/utils/options.js +16 -16
  148. package/lib/utils/personalization.d.ts +2 -2
  149. package/lib/utils/personalization.js +20 -20
  150. package/lib/utils/personalization.js.map +1 -1
  151. package/lib/utils/segments.d.ts +2 -2
  152. package/lib/utils/segments.js +19 -20
  153. package/lib/utils/segments.js.map +1 -1
  154. package/lib/utils/shopifyMarkets.d.ts +3 -3
  155. package/lib/utils/shopifyMarkets.js +12 -12
  156. package/lib/utils/sortUtil.d.ts +1 -1
  157. package/lib/utils/sortUtil.js +24 -24
  158. package/lib/utils/sortUtil.js.map +1 -1
  159. package/lib/utils/updateRecentSearches.d.ts +2 -2
  160. package/lib/utils/updateRecentSearches.js +56 -57
  161. package/lib/utils/updateRecentSearches.js.map +1 -1
  162. package/lib/utils/validation.d.ts +5 -5
  163. package/lib/utils/validation.js +46 -46
  164. package/lib/utils/validation.js.map +1 -1
  165. 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;QACvB,OAAO,CAAC,KAAK,CAAC,0CAA0C,CAAC,CAAC;KAC7D;IAED,iBAAO,CAAC,MAAM,CAAC;QACX,IAAI,MAAA;QAAE,OAAO,SAAA;QAAE,GAAG,EA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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 {};