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.
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 +150 -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,80 +1,80 @@
1
- import { Narrow, SortBy } from "../models/fullTextSearch";
2
- import { LookAlikeEventType } from "../models/lookAlikeProductRecommendation";
3
- import { PromotileEvent } from "../models/events";
4
- interface RequestKey {
5
- uuid: string;
6
- storeID: number;
7
- userToken: string;
8
- sessionStart: number;
9
- cartToken: string;
10
- }
11
- type source = "autocomplete" | "search" | "category" | "quick view" | "look a like" | "direct" | "related";
12
- interface ProductVisitedProps extends RequestKey {
13
- type: source;
14
- productId: string;
15
- originId?: string;
16
- term?: string;
17
- query?: string;
18
- recommended?: boolean;
19
- position?: number;
20
- reference?: string;
21
- originProduct?: string;
22
- categoryName?: string;
23
- categoryID?: string;
24
- imageID?: string;
25
- sourceProduct?: string;
26
- rec?: number | undefined;
27
- rec_src?: number | undefined;
28
- }
29
- interface PromotileVisitedProps extends ProductVisitedProps {
30
- link: string;
31
- thumbnail: string;
32
- }
33
- interface CategorySearchSeenProps extends Omit<ProductVisitedProps, "productId" | "type"> {
34
- categoryID: string;
35
- }
36
- interface SearchPreformedProps extends RequestKey {
37
- query: string;
38
- narrow?: Narrow[];
39
- sortBy?: SortBy;
40
- products?: string[];
41
- pagenum?: string;
42
- rescount?: string;
43
- promoTiles?: PromotileEvent[];
44
- personalizedProducts?: string | undefined;
45
- sessionProducts?: string;
46
- }
47
- interface collectionPreformedProps extends RequestKey {
48
- collectionID: string;
49
- query: string;
50
- narrow?: Narrow[];
51
- sortBy?: SortBy;
52
- products?: string[];
53
- pagenum?: string;
54
- rescount?: string;
55
- promoTiles?: PromotileEvent[];
56
- personalizedProducts?: string | undefined;
57
- sessionProducts?: string;
58
- }
59
- interface PopUpUsedProps extends RequestKey {
60
- type: LookAlikeEventType;
61
- position: number;
62
- productId: string;
63
- query?: string;
64
- categoryID?: string;
65
- categoryName?: string;
66
- }
67
- interface AddToCartProps extends RequestKey {
68
- productID?: string;
69
- }
70
- export declare const Reporting: {
71
- productSeen: ({ type, categoryID, categoryName, cartToken, originId, originProduct, productId, reference, term, sessionStart, storeID, userToken, uuid, position, recommended, imageID, sourceProduct, rec_src }: ProductVisitedProps) => Promise<any>;
72
- promotileClicked: ({ type, categoryID, categoryName, cartToken, originId, originProduct, productId, reference, term, sessionStart, storeID, userToken, uuid, position, recommended, imageID, sourceProduct, rec_src, link, thumbnail }: PromotileVisitedProps) => Promise<any>;
73
- popularSearchSeen: ({ originId, userToken, storeID, sessionStart, cartToken, uuid, term }: Omit<ProductVisitedProps, "productId" | "type" | "query">) => Promise<any>;
74
- categorySearchSeen: ({ uuid, storeID, term, categoryID, sessionStart, userToken, cartToken }: CategorySearchSeenProps) => Promise<any>;
75
- searchPerformed: ({ storeID, uuid, query, sortBy, narrow, sessionStart, userToken, cartToken, products, pagenum, rescount, promoTiles, personalizedProducts, sessionProducts, }: SearchPreformedProps) => Promise<any>;
76
- collectionPerformed: ({ sortBy, query, narrow, sessionStart, userToken, uuid, storeID, collectionID, cartToken, products, pagenum, rescount, promoTiles, personalizedProducts, sessionProducts }: collectionPreformedProps, fromTurboLink?: boolean) => Promise<any>;
77
- popUpUsed: ({ cartToken, sessionStart, userToken, uuid, storeID, position, productId, categoryID, categoryName, query, type }: PopUpUsedProps) => Promise<any>;
78
- addToCart: ({ storeID, uuid, cartToken, sessionStart, userToken, productID }: AddToCartProps) => Promise<any>;
79
- };
80
- export {};
1
+ import { Narrow, SortBy } from "../models/fullTextSearch";
2
+ import { LookAlikeEventType } from "../models/lookAlikeProductRecommendation";
3
+ import { PromotileEvent } from "../models/events";
4
+ interface RequestKey {
5
+ uuid: string;
6
+ storeID: number;
7
+ userToken: string;
8
+ sessionStart: number;
9
+ cartToken: string;
10
+ }
11
+ type source = "autocomplete" | "search" | "category" | "quick view" | "look a like" | "direct" | "related";
12
+ interface ProductVisitedProps extends RequestKey {
13
+ type: source;
14
+ productId: string;
15
+ originId?: string;
16
+ term?: string;
17
+ query?: string;
18
+ recommended?: boolean;
19
+ position?: number;
20
+ reference?: string;
21
+ originProduct?: string;
22
+ categoryName?: string;
23
+ categoryID?: string;
24
+ imageID?: string;
25
+ sourceProduct?: string;
26
+ rec?: number | undefined;
27
+ rec_src?: number | undefined;
28
+ }
29
+ interface PromotileVisitedProps extends ProductVisitedProps {
30
+ link: string;
31
+ thumbnail: string;
32
+ }
33
+ interface CategorySearchSeenProps extends Omit<ProductVisitedProps, "productId" | "type"> {
34
+ categoryID: string;
35
+ }
36
+ interface SearchPreformedProps extends RequestKey {
37
+ query: string;
38
+ narrow?: Narrow[];
39
+ sortBy?: SortBy;
40
+ products?: string[];
41
+ pagenum?: string;
42
+ rescount?: string;
43
+ promoTiles?: PromotileEvent[];
44
+ personalizedProducts?: string | undefined;
45
+ sessionProducts?: string;
46
+ }
47
+ interface collectionPreformedProps extends RequestKey {
48
+ collectionID: string;
49
+ query: string;
50
+ narrow?: Narrow[];
51
+ sortBy?: SortBy;
52
+ products?: string[];
53
+ pagenum?: string;
54
+ rescount?: string;
55
+ promoTiles?: PromotileEvent[];
56
+ personalizedProducts?: string | undefined;
57
+ sessionProducts?: string;
58
+ }
59
+ interface PopUpUsedProps extends RequestKey {
60
+ type: LookAlikeEventType;
61
+ position: number;
62
+ productId: string;
63
+ query?: string;
64
+ categoryID?: string;
65
+ categoryName?: string;
66
+ }
67
+ interface AddToCartProps extends RequestKey {
68
+ productID?: string;
69
+ }
70
+ export declare const Reporting: {
71
+ productSeen: ({ type, categoryID, categoryName, cartToken, originId, originProduct, productId, reference, term, sessionStart, storeID, userToken, uuid, position, recommended, imageID, sourceProduct, rec_src }: ProductVisitedProps) => Promise<any>;
72
+ promotileClicked: ({ type, categoryID, categoryName, cartToken, originId, originProduct, productId, reference, term, sessionStart, storeID, userToken, uuid, position, recommended, imageID, sourceProduct, rec_src, link, thumbnail }: PromotileVisitedProps) => Promise<any>;
73
+ popularSearchSeen: ({ originId, userToken, storeID, sessionStart, cartToken, uuid, term }: Omit<ProductVisitedProps, "productId" | "type" | "query">) => Promise<any>;
74
+ categorySearchSeen: ({ uuid, storeID, term, categoryID, sessionStart, userToken, cartToken }: CategorySearchSeenProps) => Promise<any>;
75
+ searchPerformed: ({ storeID, uuid, query, sortBy, narrow, sessionStart, userToken, cartToken, products, pagenum, rescount, promoTiles, personalizedProducts, sessionProducts, }: SearchPreformedProps) => Promise<any>;
76
+ collectionPerformed: ({ sortBy, query, narrow, sessionStart, userToken, uuid, storeID, collectionID, cartToken, products, pagenum, rescount, promoTiles, personalizedProducts, sessionProducts }: collectionPreformedProps, fromTurboLink?: boolean) => Promise<any>;
77
+ popUpUsed: ({ cartToken, sessionStart, userToken, uuid, storeID, position, productId, categoryID, categoryName, query, type }: PopUpUsedProps) => Promise<any>;
78
+ addToCart: ({ storeID, uuid, cartToken, sessionStart, userToken, productID }: AddToCartProps) => Promise<any>;
79
+ };
80
+ export {};