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,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 {};
|