fast-simon-sdk 1.6.4 → 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.
Files changed (167) hide show
  1. package/lib/config.d.ts +25 -22
  2. package/lib/config.js +30 -27
  3. package/lib/config.js.map +1 -1
  4. package/lib/index.d.ts +3 -3
  5. package/lib/index.js +72 -71
  6. package/lib/index.js.map +1 -1
  7. package/lib/models/autocomplete.d.ts +73 -70
  8. package/lib/models/autocomplete.js +2 -2
  9. package/lib/models/common.d.ts +267 -208
  10. package/lib/models/common.js +65 -63
  11. package/lib/models/common.js.map +1 -1
  12. package/lib/models/content.d.ts +37 -37
  13. package/lib/models/content.js +2 -2
  14. package/lib/models/events.d.ts +113 -87
  15. package/lib/models/events.js +2 -2
  16. package/lib/models/exports.d.ts +6 -6
  17. package/lib/models/exports.js +5 -5
  18. package/lib/models/fullTextSearch.d.ts +130 -126
  19. package/lib/models/fullTextSearch.js +17 -17
  20. package/lib/models/fullTextSearch.js.map +1 -1
  21. package/lib/models/lookAlikeProductRecommendation.d.ts +8 -8
  22. package/lib/models/lookAlikeProductRecommendation.js +2 -2
  23. package/lib/models/productsInventory.d.ts +10 -10
  24. package/lib/models/productsInventory.js +2 -2
  25. package/lib/models/related.d.ts +35 -35
  26. package/lib/models/related.js +2 -2
  27. package/lib/models/smartCollections.d.ts +94 -90
  28. package/lib/models/smartCollections.js +2 -2
  29. package/lib/models/visualDiscovery.d.ts +129 -0
  30. package/lib/models/visualDiscovery.js +31 -0
  31. package/lib/models/visualDiscovery.js.map +1 -0
  32. package/lib/sections/contentSearch/index.d.ts +7 -7
  33. package/lib/sections/contentSearch/index.js +44 -44
  34. package/lib/sections/contentSearch/index.js.map +1 -1
  35. package/lib/sections/enums/index.d.ts +47 -45
  36. package/lib/sections/enums/index.js +50 -48
  37. package/lib/sections/enums/index.js.map +1 -1
  38. package/lib/sections/eventReporter/index.d.ts +10 -10
  39. package/lib/sections/eventReporter/index.js +628 -501
  40. package/lib/sections/eventReporter/index.js.map +1 -1
  41. package/lib/sections/eventReporter/utils.d.ts +9 -9
  42. package/lib/sections/eventReporter/utils.js +31 -29
  43. package/lib/sections/eventReporter/utils.js.map +1 -1
  44. package/lib/sections/fullTextSearch/index.d.ts +6 -6
  45. package/lib/sections/fullTextSearch/index.js +178 -171
  46. package/lib/sections/fullTextSearch/index.js.map +1 -1
  47. package/lib/sections/fullTextSearch/utils.d.ts +17 -17
  48. package/lib/sections/fullTextSearch/utils.js +185 -177
  49. package/lib/sections/fullTextSearch/utils.js.map +1 -1
  50. package/lib/sections/index.d.ts +3 -3
  51. package/lib/sections/index.js +432 -342
  52. package/lib/sections/index.js.map +1 -1
  53. package/lib/sections/initialization/index.d.ts +8 -8
  54. package/lib/sections/initialization/index.js +150 -150
  55. package/lib/sections/initialization/index.js.map +1 -1
  56. package/lib/sections/initialization/utils.d.ts +11 -11
  57. package/lib/sections/initialization/utils.js +200 -196
  58. package/lib/sections/initialization/utils.js.map +1 -1
  59. package/lib/sections/instantSearch/index.d.ts +6 -6
  60. package/lib/sections/instantSearch/index.js +66 -66
  61. package/lib/sections/instantSearch/index.js.map +1 -1
  62. package/lib/sections/instantSearch/utils.d.ts +21 -21
  63. package/lib/sections/instantSearch/utils.js +232 -232
  64. package/lib/sections/instantSearch/utils.js.map +1 -1
  65. package/lib/sections/landingPage/index.d.ts +6 -6
  66. package/lib/sections/landingPage/index.js +95 -95
  67. package/lib/sections/landingPage/index.js.map +1 -1
  68. package/lib/sections/landingPage/utils.d.ts +14 -14
  69. package/lib/sections/landingPage/utils.js +96 -90
  70. package/lib/sections/landingPage/utils.js.map +1 -1
  71. package/lib/sections/lookAlikeProductRecommendation/index.d.ts +6 -6
  72. package/lib/sections/lookAlikeProductRecommendation/index.js +23 -23
  73. package/lib/sections/recommendations/index.d.ts +10 -6
  74. package/lib/sections/recommendations/index.js +95 -48
  75. package/lib/sections/recommendations/index.js.map +1 -1
  76. package/lib/sections/recommendations/utils.d.ts +6 -7
  77. package/lib/sections/recommendations/utils.js +82 -91
  78. package/lib/sections/recommendations/utils.js.map +1 -1
  79. package/lib/sections/smartCollections/index.d.ts +6 -6
  80. package/lib/sections/smartCollections/index.js +169 -163
  81. package/lib/sections/smartCollections/index.js.map +1 -1
  82. package/lib/sections/smartCollections/utils.d.ts +41 -40
  83. package/lib/sections/smartCollections/utils.js +286 -269
  84. package/lib/sections/smartCollections/utils.js.map +1 -1
  85. package/lib/sections/visualDiscovery/index.d.ts +22 -0
  86. package/lib/sections/visualDiscovery/index.js +262 -0
  87. package/lib/sections/visualDiscovery/index.js.map +1 -0
  88. package/lib/services/autocomplete.d.ts +24 -24
  89. package/lib/services/autocomplete.js +50 -50
  90. package/lib/services/common.d.ts +35 -35
  91. package/lib/services/common.js +94 -94
  92. package/lib/services/content.d.ts +4 -4
  93. package/lib/services/content.js +25 -25
  94. package/lib/services/fullTextSearch.d.ts +4 -4
  95. package/lib/services/fullTextSearch.js +87 -84
  96. package/lib/services/fullTextSearch.js.map +1 -1
  97. package/lib/services/landingPage.d.ts +21 -21
  98. package/lib/services/landingPage.js +44 -44
  99. package/lib/services/lookAlikeProductRecommendation.d.ts +13 -13
  100. package/lib/services/lookAlikeProductRecommendation.js +23 -23
  101. package/lib/services/related.d.ts +48 -29
  102. package/lib/services/related.js +114 -72
  103. package/lib/services/related.js.map +1 -1
  104. package/lib/services/reporting.d.ts +80 -68
  105. package/lib/services/reporting.js +258 -208
  106. package/lib/services/reporting.js.map +1 -1
  107. package/lib/services/smartCollections.d.ts +5 -5
  108. package/lib/services/smartCollections.js +93 -82
  109. package/lib/services/smartCollections.js.map +1 -1
  110. package/lib/services/utils.d.ts +5 -5
  111. package/lib/services/utils.js +25 -25
  112. package/lib/services/utils.js.map +1 -1
  113. package/lib/services/visualDiscovery.d.ts +9 -0
  114. package/lib/services/visualDiscovery.js +167 -0
  115. package/lib/services/visualDiscovery.js.map +1 -0
  116. package/lib/utils/ABTesting.d.ts +2 -1
  117. package/lib/utils/ABTesting.js +27 -14
  118. package/lib/utils/ABTesting.js.map +1 -1
  119. package/lib/utils/API.d.ts +19 -19
  120. package/lib/utils/API.js +81 -81
  121. package/lib/utils/API.js.map +1 -1
  122. package/lib/utils/ArrayUtils.d.ts +2 -2
  123. package/lib/utils/ArrayUtils.js +16 -17
  124. package/lib/utils/ArrayUtils.js.map +1 -1
  125. package/lib/utils/bindingBoxes.d.ts +23 -0
  126. package/lib/utils/bindingBoxes.js +89 -0
  127. package/lib/utils/bindingBoxes.js.map +1 -0
  128. package/lib/utils/cookies.d.ts +13 -13
  129. package/lib/utils/cookies.js +50 -50
  130. package/lib/utils/debug.d.ts +4 -4
  131. package/lib/utils/debug.js +31 -31
  132. package/lib/utils/debug.js.map +1 -1
  133. package/lib/utils/duplicationsHandler.d.ts +19 -0
  134. package/lib/utils/duplicationsHandler.js +70 -0
  135. package/lib/utils/duplicationsHandler.js.map +1 -0
  136. package/lib/utils/filtersPersonalization.d.ts +3 -3
  137. package/lib/utils/filtersPersonalization.js +39 -39
  138. package/lib/utils/filtersPersonalization.js.map +1 -1
  139. package/lib/utils/image.d.ts +6 -0
  140. package/lib/utils/image.js +154 -0
  141. package/lib/utils/image.js.map +1 -0
  142. package/lib/utils/klaviyo.js +1 -1
  143. package/lib/utils/location.d.ts +1 -1
  144. package/lib/utils/location.js +11 -11
  145. package/lib/utils/location.js.map +1 -1
  146. package/lib/utils/mappingUtil.d.ts +4 -4
  147. package/lib/utils/mappingUtil.js +16 -16
  148. package/lib/utils/options.d.ts +23 -23
  149. package/lib/utils/options.js +16 -16
  150. package/lib/utils/personalization.d.ts +2 -0
  151. package/lib/utils/personalization.js +21 -0
  152. package/lib/utils/personalization.js.map +1 -0
  153. package/lib/utils/segments.d.ts +2 -2
  154. package/lib/utils/segments.js +19 -20
  155. package/lib/utils/segments.js.map +1 -1
  156. package/lib/utils/shopifyMarkets.d.ts +3 -3
  157. package/lib/utils/shopifyMarkets.js +12 -12
  158. package/lib/utils/sortUtil.d.ts +1 -0
  159. package/lib/utils/sortUtil.js +25 -0
  160. package/lib/utils/sortUtil.js.map +1 -0
  161. package/lib/utils/updateRecentSearches.d.ts +2 -1
  162. package/lib/utils/updateRecentSearches.js +56 -26
  163. package/lib/utils/updateRecentSearches.js.map +1 -1
  164. package/lib/utils/validation.d.ts +5 -5
  165. package/lib/utils/validation.js +46 -46
  166. package/lib/utils/validation.js.map +1 -1
  167. package/package.json +3 -2
@@ -1,45 +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
- RecommendationProductClicked: string;
14
- LookALikeClickedSerp: string;
15
- QuickViewClickedCollection: string;
16
- LookALikeClickedCollection: string;
17
- QuickViewClickedSerp: string;
18
- LookALikeProductClicked: string;
19
- QuickViewProductClicked: string;
20
- DirectProductClicked: string;
21
- CartVisited: string;
22
- AddToCartPerformed: string;
23
- };
24
- export declare const FastSortBy: {
25
- PriceHighToLow: string;
26
- PriceLowToHigh: string;
27
- NewFirst: string;
28
- OldFirst: string;
29
- Popularity: string;
30
- Reviews: string;
31
- AtoZ: string;
32
- ZtoA: string;
33
- relevancy: string;
34
- };
35
- export declare const FastRecommendationsSource: {
36
- relatedRecentProducts: string;
37
- relatedPurchase: string;
38
- relatedViews: string;
39
- relatedCart: string;
40
- similarProducts: string;
41
- relatedRecentlyViewed: string;
42
- similarProducts_byAttributes: string;
43
- similarProductsLookalike: string;
44
- relatedTopProducts: string;
45
- };
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,49 +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
- RecommendationProductClicked: "productFromRecommendation",
17
- LookALikeClickedSerp: "lookALikeViewSerp",
18
- QuickViewClickedCollection: "quickViewCollection",
19
- LookALikeClickedCollection: "lookALikeViewCollection",
20
- QuickViewClickedSerp: "quickViewSerp",
21
- LookALikeProductClicked: "productFromLookALike",
22
- QuickViewProductClicked: "productFromQuickView",
23
- DirectProductClicked: "productDirect",
24
- CartVisited: "cartVisited",
25
- AddToCartPerformed: "cartPerformed",
26
- };
27
- exports.FastSortBy = {
28
- PriceHighToLow: "price_max_to_min",
29
- PriceLowToHigh: "price_min_to_max",
30
- NewFirst: "creation_date",
31
- OldFirst: "creation_date_oldest",
32
- Popularity: "popularity",
33
- Reviews: "reviews",
34
- AtoZ: "a_to_z",
35
- ZtoA: "z_to_a",
36
- relevancy: "relevency"
37
- };
38
- exports.FastRecommendationsSource = {
39
- relatedRecentProducts: "related_recent_products",
40
- relatedPurchase: "related_purchase",
41
- relatedViews: "related_views",
42
- relatedCart: "related_cart",
43
- similarProducts: "similar_products",
44
- relatedRecentlyViewed: "related_recently_viewed",
45
- similarProducts_byAttributes: "similar_products_by_attributes",
46
- similarProductsLookalike: "similar_products_lookalike",
47
- relatedTopProducts: "related_top_products",
48
- };
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
+ };
49
51
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sections/enums/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IACvB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE,KAAK;CACnB,CAAC;AAEW,QAAA,aAAa,GAAG;IACzB,0BAA0B,EAAE,uBAAuB;IACnD,2BAA2B,EAAE,wBAAwB;IACrD,0BAA0B,EAAE,8BAA8B;IAC1D,eAAe,EAAE,QAAQ;IACzB,wBAAwB,EAAE,YAAY;IACtC,kBAAkB,EAAE,mBAAmB;IACvC,wBAAwB,EAAE,uBAAuB;IACjD,4BAA4B,EAAE,2BAA2B;IACzD,oBAAoB,EAAE,mBAAmB;IACzC,0BAA0B,EAAE,qBAAqB;IACjD,0BAA0B,EAAE,yBAAyB;IACrD,oBAAoB,EAAE,eAAe;IACrC,uBAAuB,EAAE,sBAAsB;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D,oBAAoB,EAAE,eAAe;IACrC,uBAAuB,EAAE,sBAAsB;IAC/C,uBAAuB,EAAE,sBAAsB;IAC/C,oBAAoB,EAAE,eAAe;IACrC,WAAW,EAAE,aAAa;IAC1B,kBAAkB,EAAE,eAAe;CACtC,CAAC;AAEW,QAAA,UAAU,GAAG;IACtB,cAAc,EAAE,kBAAkB;IAClC,cAAc,EAAE,kBAAkB;IAClC,QAAQ,EAAE,eAAe;IACzB,QAAQ,EAAE,sBAAsB;IAChC,UAAU,EAAE,YAAY;IACxB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;IACd,SAAS,EAAE,WAAW;CACzB,CAAC;AAEW,QAAA,yBAAyB,GAAG;IACrC,qBAAqB,EAAE,yBAAyB;IAChD,eAAe,EAAE,kBAAkB;IACnC,YAAY,EAAE,eAAe;IAC7B,WAAW,EAAE,cAAc;IAC3B,eAAe,EAAE,kBAAkB;IACnC,qBAAqB,EAAE,yBAAyB;IAChD,4BAA4B,EAAE,gCAAgC;IAC9D,wBAAwB,EAAE,4BAA4B;IACtD,kBAAkB,EAAE,sBAAsB;CAC7C,CAAC"}
@@ -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 {};