@findlane/server 0.25.0 → 0.26.0
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/dist/index.cjs +1 -0
- package/dist/index.d.cts +70 -0
- package/dist/index.d.ts +70 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -357,6 +357,7 @@ class SearchServerClient {
|
|
|
357
357
|
productCounts: (options = {}) => report("product-counts", options),
|
|
358
358
|
product: (objectID, options = {}) => report(`products/${encodeURIComponent(objectID)}`, options),
|
|
359
359
|
revenue: (options = {}) => report("revenue", options),
|
|
360
|
+
filterSales: (options = {}) => report("filter-sales", options),
|
|
360
361
|
banners: (options = {}) => request(`/banners?range=${options.range ?? "30d"}`, "GET", undefined, options.signal)
|
|
361
362
|
},
|
|
362
363
|
upsert: (records, signal) => request("/records", "POST", { records }, signal),
|
package/dist/index.d.cts
CHANGED
|
@@ -750,6 +750,13 @@ export type ServerEvent = {
|
|
|
750
750
|
list?: "goesWith" | "similar" | "together" | "related";
|
|
751
751
|
from?: string;
|
|
752
752
|
timestamp?: number;
|
|
753
|
+
/** When the search wasn't made on the store but opened from outside it: an ad, an email, or another site's
|
|
754
|
+
* link. Revenue from search leaves these clicks out. */
|
|
755
|
+
landing?: "ad" | "email" | "link";
|
|
756
|
+
/** With `landing: "ad"`: the ad's network, from its click ID or tags. */
|
|
757
|
+
network?: "google" | "microsoft" | "meta" | "tiktok" | "x" | "linkedin" | "pinterest" | "snapchat";
|
|
758
|
+
/** The filters of the search the click came from, as the search took them, for sales by filter value. */
|
|
759
|
+
filters?: Record<string, unknown>;
|
|
753
760
|
} | {
|
|
754
761
|
type: "addToCart";
|
|
755
762
|
items: EventItem[];
|
|
@@ -1115,6 +1122,8 @@ export type RevenueQuery = {
|
|
|
1115
1122
|
carts: number;
|
|
1116
1123
|
orders: number;
|
|
1117
1124
|
revenue: number;
|
|
1125
|
+
/** Orders' value after this search when an ad, an email or another site opened it, not counted in `revenue`. */
|
|
1126
|
+
openedRevenue: number;
|
|
1118
1127
|
typed: string[];
|
|
1119
1128
|
};
|
|
1120
1129
|
/** A product's orders and their value, beside those found through search, and the query it was found by most. */
|
|
@@ -1126,6 +1135,7 @@ export type RevenueProduct = {
|
|
|
1126
1135
|
revenue: number;
|
|
1127
1136
|
searchOrders: number;
|
|
1128
1137
|
searchRevenue: number;
|
|
1138
|
+
openedRevenue: number;
|
|
1129
1139
|
topQuery: string | null;
|
|
1130
1140
|
};
|
|
1131
1141
|
/** Revenue from search (0.20.0): purchases and add-to-carts of products the shopper clicked in search results in
|
|
@@ -1144,6 +1154,19 @@ export type RevenueReport = AnalyticsReport & {
|
|
|
1144
1154
|
searchCarts: number;
|
|
1145
1155
|
searchCartValue: number;
|
|
1146
1156
|
searchClicks: number;
|
|
1157
|
+
/** Orders and add-to-carts after searches an ad, an email or another site's link opened (0.26.0): the shopper didn't
|
|
1158
|
+
* search, so they're left out of the search numbers. By kind, with the clicks on such searches. */
|
|
1159
|
+
opened: {
|
|
1160
|
+
orders: number;
|
|
1161
|
+
revenue: number;
|
|
1162
|
+
carts: number;
|
|
1163
|
+
cartValue: number;
|
|
1164
|
+
clicks: number;
|
|
1165
|
+
byKind: Record<"ad" | "email" | "link", {
|
|
1166
|
+
orders: number;
|
|
1167
|
+
revenue: number;
|
|
1168
|
+
}>;
|
|
1169
|
+
};
|
|
1147
1170
|
otherCurrencies: {
|
|
1148
1171
|
currency: string;
|
|
1149
1172
|
orders: number;
|
|
@@ -1164,6 +1187,31 @@ export type RevenueReport = AnalyticsReport & {
|
|
|
1164
1187
|
/** The products bought after a search, the most revenue from search first, up to 50. */
|
|
1165
1188
|
products: RevenueProduct[];
|
|
1166
1189
|
};
|
|
1190
|
+
/** A filter value's clicks on results while it was chosen, and the add-to-carts, orders and revenue of the products
|
|
1191
|
+
* clicked. */
|
|
1192
|
+
export type FilterValueSales = {
|
|
1193
|
+
value: string;
|
|
1194
|
+
clicks: number;
|
|
1195
|
+
carts: number;
|
|
1196
|
+
orders: number;
|
|
1197
|
+
revenue: number;
|
|
1198
|
+
};
|
|
1199
|
+
/** Sales by filter value (0.26.0): for each facet field, the values shoppers filtered on, on searches and on category
|
|
1200
|
+
* pages apart, attributed as revenue from search is. A click with several values counts for each. From when clicks
|
|
1201
|
+
* started carrying filters (`since`). */
|
|
1202
|
+
export type FilterSalesReport = AnalyticsReport & {
|
|
1203
|
+
computedAt: string;
|
|
1204
|
+
since: string;
|
|
1205
|
+
currency: string | null;
|
|
1206
|
+
fields: {
|
|
1207
|
+
field: string;
|
|
1208
|
+
search: FilterValueSales[];
|
|
1209
|
+
page: FilterValueSales[];
|
|
1210
|
+
}[];
|
|
1211
|
+
/** Searches without filters, to compare with. */
|
|
1212
|
+
unfiltered: Omit<FilterValueSales, "value">;
|
|
1213
|
+
visitorIds: boolean;
|
|
1214
|
+
};
|
|
1167
1215
|
export declare class FindlaneError extends Error {
|
|
1168
1216
|
status: number;
|
|
1169
1217
|
constructor(status: number, message: string);
|
|
@@ -1351,6 +1399,8 @@ export declare class SearchServerClient {
|
|
|
1351
1399
|
/** Revenue from search: orders and add-to-carts of products found through search, per query and per
|
|
1352
1400
|
* product (0.20.0). */
|
|
1353
1401
|
revenue: (options?: Omit<AnalyticsOptions, "source">) => Promise<RevenueReport>;
|
|
1402
|
+
/** Sales by filter value: each facet value's clicks, add-to-carts, orders and revenue (0.26.0). */
|
|
1403
|
+
filterSales: (options?: Omit<AnalyticsOptions, "source">) => Promise<FilterSalesReport>;
|
|
1354
1404
|
/** Each banner's shown (shoppers' searches that showed it, cache answers included) and clicks, by its rule,
|
|
1355
1405
|
* over the last 7, 30 (by default) or 90 days (0.23.0). */
|
|
1356
1406
|
banners: (options?: {
|
|
@@ -1557,6 +1607,8 @@ export declare class SearchServerClient {
|
|
|
1557
1607
|
/** Revenue from search: orders and add-to-carts of products found through search, per query and per
|
|
1558
1608
|
* product (0.20.0). */
|
|
1559
1609
|
revenue: (options?: Omit<AnalyticsOptions, "source">) => Promise<RevenueReport>;
|
|
1610
|
+
/** Sales by filter value: each facet value's clicks, add-to-carts, orders and revenue (0.26.0). */
|
|
1611
|
+
filterSales: (options?: Omit<AnalyticsOptions, "source">) => Promise<FilterSalesReport>;
|
|
1560
1612
|
/** Each banner's shown (shoppers' searches that showed it, cache answers included) and clicks, by its rule,
|
|
1561
1613
|
* over the last 7, 30 (by default) or 90 days (0.23.0). */
|
|
1562
1614
|
banners: (options?: {
|
|
@@ -1761,6 +1813,8 @@ export declare class SearchServerClient {
|
|
|
1761
1813
|
/** Revenue from search: orders and add-to-carts of products found through search, per query and per
|
|
1762
1814
|
* product (0.20.0). */
|
|
1763
1815
|
revenue: (options?: Omit<AnalyticsOptions, "source">) => Promise<RevenueReport>;
|
|
1816
|
+
/** Sales by filter value: each facet value's clicks, add-to-carts, orders and revenue (0.26.0). */
|
|
1817
|
+
filterSales: (options?: Omit<AnalyticsOptions, "source">) => Promise<FilterSalesReport>;
|
|
1764
1818
|
/** Each banner's shown (shoppers' searches that showed it, cache answers included) and clicks, by its rule,
|
|
1765
1819
|
* over the last 7, 30 (by default) or 90 days (0.23.0). */
|
|
1766
1820
|
banners: (options?: {
|
|
@@ -1965,6 +2019,8 @@ export declare class SearchServerClient {
|
|
|
1965
2019
|
/** Revenue from search: orders and add-to-carts of products found through search, per query and per
|
|
1966
2020
|
* product (0.20.0). */
|
|
1967
2021
|
revenue: (options?: Omit<AnalyticsOptions, "source">) => Promise<RevenueReport>;
|
|
2022
|
+
/** Sales by filter value: each facet value's clicks, add-to-carts, orders and revenue (0.26.0). */
|
|
2023
|
+
filterSales: (options?: Omit<AnalyticsOptions, "source">) => Promise<FilterSalesReport>;
|
|
1968
2024
|
/** Each banner's shown (shoppers' searches that showed it, cache answers included) and clicks, by its rule,
|
|
1969
2025
|
* over the last 7, 30 (by default) or 90 days (0.23.0). */
|
|
1970
2026
|
banners: (options?: {
|
|
@@ -2169,6 +2225,8 @@ export declare class SearchServerClient {
|
|
|
2169
2225
|
/** Revenue from search: orders and add-to-carts of products found through search, per query and per
|
|
2170
2226
|
* product (0.20.0). */
|
|
2171
2227
|
revenue: (options?: Omit<AnalyticsOptions, "source">) => Promise<RevenueReport>;
|
|
2228
|
+
/** Sales by filter value: each facet value's clicks, add-to-carts, orders and revenue (0.26.0). */
|
|
2229
|
+
filterSales: (options?: Omit<AnalyticsOptions, "source">) => Promise<FilterSalesReport>;
|
|
2172
2230
|
/** Each banner's shown (shoppers' searches that showed it, cache answers included) and clicks, by its rule,
|
|
2173
2231
|
* over the last 7, 30 (by default) or 90 days (0.23.0). */
|
|
2174
2232
|
banners: (options?: {
|
|
@@ -2373,6 +2431,8 @@ export declare class SearchServerClient {
|
|
|
2373
2431
|
/** Revenue from search: orders and add-to-carts of products found through search, per query and per
|
|
2374
2432
|
* product (0.20.0). */
|
|
2375
2433
|
revenue: (options?: Omit<AnalyticsOptions, "source">) => Promise<RevenueReport>;
|
|
2434
|
+
/** Sales by filter value: each facet value's clicks, add-to-carts, orders and revenue (0.26.0). */
|
|
2435
|
+
filterSales: (options?: Omit<AnalyticsOptions, "source">) => Promise<FilterSalesReport>;
|
|
2376
2436
|
/** Each banner's shown (shoppers' searches that showed it, cache answers included) and clicks, by its rule,
|
|
2377
2437
|
* over the last 7, 30 (by default) or 90 days (0.23.0). */
|
|
2378
2438
|
banners: (options?: {
|
|
@@ -2577,6 +2637,8 @@ export declare class SearchServerClient {
|
|
|
2577
2637
|
/** Revenue from search: orders and add-to-carts of products found through search, per query and per
|
|
2578
2638
|
* product (0.20.0). */
|
|
2579
2639
|
revenue: (options?: Omit<AnalyticsOptions, "source">) => Promise<RevenueReport>;
|
|
2640
|
+
/** Sales by filter value: each facet value's clicks, add-to-carts, orders and revenue (0.26.0). */
|
|
2641
|
+
filterSales: (options?: Omit<AnalyticsOptions, "source">) => Promise<FilterSalesReport>;
|
|
2580
2642
|
/** Each banner's shown (shoppers' searches that showed it, cache answers included) and clicks, by its rule,
|
|
2581
2643
|
* over the last 7, 30 (by default) or 90 days (0.23.0). */
|
|
2582
2644
|
banners: (options?: {
|
|
@@ -2781,6 +2843,8 @@ export declare class SearchServerClient {
|
|
|
2781
2843
|
/** Revenue from search: orders and add-to-carts of products found through search, per query and per
|
|
2782
2844
|
* product (0.20.0). */
|
|
2783
2845
|
revenue: (options?: Omit<AnalyticsOptions, "source">) => Promise<RevenueReport>;
|
|
2846
|
+
/** Sales by filter value: each facet value's clicks, add-to-carts, orders and revenue (0.26.0). */
|
|
2847
|
+
filterSales: (options?: Omit<AnalyticsOptions, "source">) => Promise<FilterSalesReport>;
|
|
2784
2848
|
/** Each banner's shown (shoppers' searches that showed it, cache answers included) and clicks, by its rule,
|
|
2785
2849
|
* over the last 7, 30 (by default) or 90 days (0.23.0). */
|
|
2786
2850
|
banners: (options?: {
|
|
@@ -2985,6 +3049,8 @@ export declare class SearchServerClient {
|
|
|
2985
3049
|
/** Revenue from search: orders and add-to-carts of products found through search, per query and per
|
|
2986
3050
|
* product (0.20.0). */
|
|
2987
3051
|
revenue: (options?: Omit<AnalyticsOptions, "source">) => Promise<RevenueReport>;
|
|
3052
|
+
/** Sales by filter value: each facet value's clicks, add-to-carts, orders and revenue (0.26.0). */
|
|
3053
|
+
filterSales: (options?: Omit<AnalyticsOptions, "source">) => Promise<FilterSalesReport>;
|
|
2988
3054
|
/** Each banner's shown (shoppers' searches that showed it, cache answers included) and clicks, by its rule,
|
|
2989
3055
|
* over the last 7, 30 (by default) or 90 days (0.23.0). */
|
|
2990
3056
|
banners: (options?: {
|
|
@@ -3189,6 +3255,8 @@ export declare class SearchServerClient {
|
|
|
3189
3255
|
/** Revenue from search: orders and add-to-carts of products found through search, per query and per
|
|
3190
3256
|
* product (0.20.0). */
|
|
3191
3257
|
revenue: (options?: Omit<AnalyticsOptions, "source">) => Promise<RevenueReport>;
|
|
3258
|
+
/** Sales by filter value: each facet value's clicks, add-to-carts, orders and revenue (0.26.0). */
|
|
3259
|
+
filterSales: (options?: Omit<AnalyticsOptions, "source">) => Promise<FilterSalesReport>;
|
|
3192
3260
|
/** Each banner's shown (shoppers' searches that showed it, cache answers included) and clicks, by its rule,
|
|
3193
3261
|
* over the last 7, 30 (by default) or 90 days (0.23.0). */
|
|
3194
3262
|
banners: (options?: {
|
|
@@ -3393,6 +3461,8 @@ export declare class SearchServerClient {
|
|
|
3393
3461
|
/** Revenue from search: orders and add-to-carts of products found through search, per query and per
|
|
3394
3462
|
* product (0.20.0). */
|
|
3395
3463
|
revenue: (options?: Omit<AnalyticsOptions, "source">) => Promise<RevenueReport>;
|
|
3464
|
+
/** Sales by filter value: each facet value's clicks, add-to-carts, orders and revenue (0.26.0). */
|
|
3465
|
+
filterSales: (options?: Omit<AnalyticsOptions, "source">) => Promise<FilterSalesReport>;
|
|
3396
3466
|
/** Each banner's shown (shoppers' searches that showed it, cache answers included) and clicks, by its rule,
|
|
3397
3467
|
* over the last 7, 30 (by default) or 90 days (0.23.0). */
|
|
3398
3468
|
banners: (options?: {
|
package/dist/index.d.ts
CHANGED
|
@@ -750,6 +750,13 @@ export type ServerEvent = {
|
|
|
750
750
|
list?: "goesWith" | "similar" | "together" | "related";
|
|
751
751
|
from?: string;
|
|
752
752
|
timestamp?: number;
|
|
753
|
+
/** When the search wasn't made on the store but opened from outside it: an ad, an email, or another site's
|
|
754
|
+
* link. Revenue from search leaves these clicks out. */
|
|
755
|
+
landing?: "ad" | "email" | "link";
|
|
756
|
+
/** With `landing: "ad"`: the ad's network, from its click ID or tags. */
|
|
757
|
+
network?: "google" | "microsoft" | "meta" | "tiktok" | "x" | "linkedin" | "pinterest" | "snapchat";
|
|
758
|
+
/** The filters of the search the click came from, as the search took them, for sales by filter value. */
|
|
759
|
+
filters?: Record<string, unknown>;
|
|
753
760
|
} | {
|
|
754
761
|
type: "addToCart";
|
|
755
762
|
items: EventItem[];
|
|
@@ -1115,6 +1122,8 @@ export type RevenueQuery = {
|
|
|
1115
1122
|
carts: number;
|
|
1116
1123
|
orders: number;
|
|
1117
1124
|
revenue: number;
|
|
1125
|
+
/** Orders' value after this search when an ad, an email or another site opened it, not counted in `revenue`. */
|
|
1126
|
+
openedRevenue: number;
|
|
1118
1127
|
typed: string[];
|
|
1119
1128
|
};
|
|
1120
1129
|
/** A product's orders and their value, beside those found through search, and the query it was found by most. */
|
|
@@ -1126,6 +1135,7 @@ export type RevenueProduct = {
|
|
|
1126
1135
|
revenue: number;
|
|
1127
1136
|
searchOrders: number;
|
|
1128
1137
|
searchRevenue: number;
|
|
1138
|
+
openedRevenue: number;
|
|
1129
1139
|
topQuery: string | null;
|
|
1130
1140
|
};
|
|
1131
1141
|
/** Revenue from search (0.20.0): purchases and add-to-carts of products the shopper clicked in search results in
|
|
@@ -1144,6 +1154,19 @@ export type RevenueReport = AnalyticsReport & {
|
|
|
1144
1154
|
searchCarts: number;
|
|
1145
1155
|
searchCartValue: number;
|
|
1146
1156
|
searchClicks: number;
|
|
1157
|
+
/** Orders and add-to-carts after searches an ad, an email or another site's link opened (0.26.0): the shopper didn't
|
|
1158
|
+
* search, so they're left out of the search numbers. By kind, with the clicks on such searches. */
|
|
1159
|
+
opened: {
|
|
1160
|
+
orders: number;
|
|
1161
|
+
revenue: number;
|
|
1162
|
+
carts: number;
|
|
1163
|
+
cartValue: number;
|
|
1164
|
+
clicks: number;
|
|
1165
|
+
byKind: Record<"ad" | "email" | "link", {
|
|
1166
|
+
orders: number;
|
|
1167
|
+
revenue: number;
|
|
1168
|
+
}>;
|
|
1169
|
+
};
|
|
1147
1170
|
otherCurrencies: {
|
|
1148
1171
|
currency: string;
|
|
1149
1172
|
orders: number;
|
|
@@ -1164,6 +1187,31 @@ export type RevenueReport = AnalyticsReport & {
|
|
|
1164
1187
|
/** The products bought after a search, the most revenue from search first, up to 50. */
|
|
1165
1188
|
products: RevenueProduct[];
|
|
1166
1189
|
};
|
|
1190
|
+
/** A filter value's clicks on results while it was chosen, and the add-to-carts, orders and revenue of the products
|
|
1191
|
+
* clicked. */
|
|
1192
|
+
export type FilterValueSales = {
|
|
1193
|
+
value: string;
|
|
1194
|
+
clicks: number;
|
|
1195
|
+
carts: number;
|
|
1196
|
+
orders: number;
|
|
1197
|
+
revenue: number;
|
|
1198
|
+
};
|
|
1199
|
+
/** Sales by filter value (0.26.0): for each facet field, the values shoppers filtered on, on searches and on category
|
|
1200
|
+
* pages apart, attributed as revenue from search is. A click with several values counts for each. From when clicks
|
|
1201
|
+
* started carrying filters (`since`). */
|
|
1202
|
+
export type FilterSalesReport = AnalyticsReport & {
|
|
1203
|
+
computedAt: string;
|
|
1204
|
+
since: string;
|
|
1205
|
+
currency: string | null;
|
|
1206
|
+
fields: {
|
|
1207
|
+
field: string;
|
|
1208
|
+
search: FilterValueSales[];
|
|
1209
|
+
page: FilterValueSales[];
|
|
1210
|
+
}[];
|
|
1211
|
+
/** Searches without filters, to compare with. */
|
|
1212
|
+
unfiltered: Omit<FilterValueSales, "value">;
|
|
1213
|
+
visitorIds: boolean;
|
|
1214
|
+
};
|
|
1167
1215
|
export declare class FindlaneError extends Error {
|
|
1168
1216
|
status: number;
|
|
1169
1217
|
constructor(status: number, message: string);
|
|
@@ -1351,6 +1399,8 @@ export declare class SearchServerClient {
|
|
|
1351
1399
|
/** Revenue from search: orders and add-to-carts of products found through search, per query and per
|
|
1352
1400
|
* product (0.20.0). */
|
|
1353
1401
|
revenue: (options?: Omit<AnalyticsOptions, "source">) => Promise<RevenueReport>;
|
|
1402
|
+
/** Sales by filter value: each facet value's clicks, add-to-carts, orders and revenue (0.26.0). */
|
|
1403
|
+
filterSales: (options?: Omit<AnalyticsOptions, "source">) => Promise<FilterSalesReport>;
|
|
1354
1404
|
/** Each banner's shown (shoppers' searches that showed it, cache answers included) and clicks, by its rule,
|
|
1355
1405
|
* over the last 7, 30 (by default) or 90 days (0.23.0). */
|
|
1356
1406
|
banners: (options?: {
|
|
@@ -1557,6 +1607,8 @@ export declare class SearchServerClient {
|
|
|
1557
1607
|
/** Revenue from search: orders and add-to-carts of products found through search, per query and per
|
|
1558
1608
|
* product (0.20.0). */
|
|
1559
1609
|
revenue: (options?: Omit<AnalyticsOptions, "source">) => Promise<RevenueReport>;
|
|
1610
|
+
/** Sales by filter value: each facet value's clicks, add-to-carts, orders and revenue (0.26.0). */
|
|
1611
|
+
filterSales: (options?: Omit<AnalyticsOptions, "source">) => Promise<FilterSalesReport>;
|
|
1560
1612
|
/** Each banner's shown (shoppers' searches that showed it, cache answers included) and clicks, by its rule,
|
|
1561
1613
|
* over the last 7, 30 (by default) or 90 days (0.23.0). */
|
|
1562
1614
|
banners: (options?: {
|
|
@@ -1761,6 +1813,8 @@ export declare class SearchServerClient {
|
|
|
1761
1813
|
/** Revenue from search: orders and add-to-carts of products found through search, per query and per
|
|
1762
1814
|
* product (0.20.0). */
|
|
1763
1815
|
revenue: (options?: Omit<AnalyticsOptions, "source">) => Promise<RevenueReport>;
|
|
1816
|
+
/** Sales by filter value: each facet value's clicks, add-to-carts, orders and revenue (0.26.0). */
|
|
1817
|
+
filterSales: (options?: Omit<AnalyticsOptions, "source">) => Promise<FilterSalesReport>;
|
|
1764
1818
|
/** Each banner's shown (shoppers' searches that showed it, cache answers included) and clicks, by its rule,
|
|
1765
1819
|
* over the last 7, 30 (by default) or 90 days (0.23.0). */
|
|
1766
1820
|
banners: (options?: {
|
|
@@ -1965,6 +2019,8 @@ export declare class SearchServerClient {
|
|
|
1965
2019
|
/** Revenue from search: orders and add-to-carts of products found through search, per query and per
|
|
1966
2020
|
* product (0.20.0). */
|
|
1967
2021
|
revenue: (options?: Omit<AnalyticsOptions, "source">) => Promise<RevenueReport>;
|
|
2022
|
+
/** Sales by filter value: each facet value's clicks, add-to-carts, orders and revenue (0.26.0). */
|
|
2023
|
+
filterSales: (options?: Omit<AnalyticsOptions, "source">) => Promise<FilterSalesReport>;
|
|
1968
2024
|
/** Each banner's shown (shoppers' searches that showed it, cache answers included) and clicks, by its rule,
|
|
1969
2025
|
* over the last 7, 30 (by default) or 90 days (0.23.0). */
|
|
1970
2026
|
banners: (options?: {
|
|
@@ -2169,6 +2225,8 @@ export declare class SearchServerClient {
|
|
|
2169
2225
|
/** Revenue from search: orders and add-to-carts of products found through search, per query and per
|
|
2170
2226
|
* product (0.20.0). */
|
|
2171
2227
|
revenue: (options?: Omit<AnalyticsOptions, "source">) => Promise<RevenueReport>;
|
|
2228
|
+
/** Sales by filter value: each facet value's clicks, add-to-carts, orders and revenue (0.26.0). */
|
|
2229
|
+
filterSales: (options?: Omit<AnalyticsOptions, "source">) => Promise<FilterSalesReport>;
|
|
2172
2230
|
/** Each banner's shown (shoppers' searches that showed it, cache answers included) and clicks, by its rule,
|
|
2173
2231
|
* over the last 7, 30 (by default) or 90 days (0.23.0). */
|
|
2174
2232
|
banners: (options?: {
|
|
@@ -2373,6 +2431,8 @@ export declare class SearchServerClient {
|
|
|
2373
2431
|
/** Revenue from search: orders and add-to-carts of products found through search, per query and per
|
|
2374
2432
|
* product (0.20.0). */
|
|
2375
2433
|
revenue: (options?: Omit<AnalyticsOptions, "source">) => Promise<RevenueReport>;
|
|
2434
|
+
/** Sales by filter value: each facet value's clicks, add-to-carts, orders and revenue (0.26.0). */
|
|
2435
|
+
filterSales: (options?: Omit<AnalyticsOptions, "source">) => Promise<FilterSalesReport>;
|
|
2376
2436
|
/** Each banner's shown (shoppers' searches that showed it, cache answers included) and clicks, by its rule,
|
|
2377
2437
|
* over the last 7, 30 (by default) or 90 days (0.23.0). */
|
|
2378
2438
|
banners: (options?: {
|
|
@@ -2577,6 +2637,8 @@ export declare class SearchServerClient {
|
|
|
2577
2637
|
/** Revenue from search: orders and add-to-carts of products found through search, per query and per
|
|
2578
2638
|
* product (0.20.0). */
|
|
2579
2639
|
revenue: (options?: Omit<AnalyticsOptions, "source">) => Promise<RevenueReport>;
|
|
2640
|
+
/** Sales by filter value: each facet value's clicks, add-to-carts, orders and revenue (0.26.0). */
|
|
2641
|
+
filterSales: (options?: Omit<AnalyticsOptions, "source">) => Promise<FilterSalesReport>;
|
|
2580
2642
|
/** Each banner's shown (shoppers' searches that showed it, cache answers included) and clicks, by its rule,
|
|
2581
2643
|
* over the last 7, 30 (by default) or 90 days (0.23.0). */
|
|
2582
2644
|
banners: (options?: {
|
|
@@ -2781,6 +2843,8 @@ export declare class SearchServerClient {
|
|
|
2781
2843
|
/** Revenue from search: orders and add-to-carts of products found through search, per query and per
|
|
2782
2844
|
* product (0.20.0). */
|
|
2783
2845
|
revenue: (options?: Omit<AnalyticsOptions, "source">) => Promise<RevenueReport>;
|
|
2846
|
+
/** Sales by filter value: each facet value's clicks, add-to-carts, orders and revenue (0.26.0). */
|
|
2847
|
+
filterSales: (options?: Omit<AnalyticsOptions, "source">) => Promise<FilterSalesReport>;
|
|
2784
2848
|
/** Each banner's shown (shoppers' searches that showed it, cache answers included) and clicks, by its rule,
|
|
2785
2849
|
* over the last 7, 30 (by default) or 90 days (0.23.0). */
|
|
2786
2850
|
banners: (options?: {
|
|
@@ -2985,6 +3049,8 @@ export declare class SearchServerClient {
|
|
|
2985
3049
|
/** Revenue from search: orders and add-to-carts of products found through search, per query and per
|
|
2986
3050
|
* product (0.20.0). */
|
|
2987
3051
|
revenue: (options?: Omit<AnalyticsOptions, "source">) => Promise<RevenueReport>;
|
|
3052
|
+
/** Sales by filter value: each facet value's clicks, add-to-carts, orders and revenue (0.26.0). */
|
|
3053
|
+
filterSales: (options?: Omit<AnalyticsOptions, "source">) => Promise<FilterSalesReport>;
|
|
2988
3054
|
/** Each banner's shown (shoppers' searches that showed it, cache answers included) and clicks, by its rule,
|
|
2989
3055
|
* over the last 7, 30 (by default) or 90 days (0.23.0). */
|
|
2990
3056
|
banners: (options?: {
|
|
@@ -3189,6 +3255,8 @@ export declare class SearchServerClient {
|
|
|
3189
3255
|
/** Revenue from search: orders and add-to-carts of products found through search, per query and per
|
|
3190
3256
|
* product (0.20.0). */
|
|
3191
3257
|
revenue: (options?: Omit<AnalyticsOptions, "source">) => Promise<RevenueReport>;
|
|
3258
|
+
/** Sales by filter value: each facet value's clicks, add-to-carts, orders and revenue (0.26.0). */
|
|
3259
|
+
filterSales: (options?: Omit<AnalyticsOptions, "source">) => Promise<FilterSalesReport>;
|
|
3192
3260
|
/** Each banner's shown (shoppers' searches that showed it, cache answers included) and clicks, by its rule,
|
|
3193
3261
|
* over the last 7, 30 (by default) or 90 days (0.23.0). */
|
|
3194
3262
|
banners: (options?: {
|
|
@@ -3393,6 +3461,8 @@ export declare class SearchServerClient {
|
|
|
3393
3461
|
/** Revenue from search: orders and add-to-carts of products found through search, per query and per
|
|
3394
3462
|
* product (0.20.0). */
|
|
3395
3463
|
revenue: (options?: Omit<AnalyticsOptions, "source">) => Promise<RevenueReport>;
|
|
3464
|
+
/** Sales by filter value: each facet value's clicks, add-to-carts, orders and revenue (0.26.0). */
|
|
3465
|
+
filterSales: (options?: Omit<AnalyticsOptions, "source">) => Promise<FilterSalesReport>;
|
|
3396
3466
|
/** Each banner's shown (shoppers' searches that showed it, cache answers included) and clicks, by its rule,
|
|
3397
3467
|
* over the last 7, 30 (by default) or 90 days (0.23.0). */
|
|
3398
3468
|
banners: (options?: {
|
package/dist/index.js
CHANGED
|
@@ -311,6 +311,7 @@ class SearchServerClient {
|
|
|
311
311
|
productCounts: (options = {}) => report("product-counts", options),
|
|
312
312
|
product: (objectID, options = {}) => report(`products/${encodeURIComponent(objectID)}`, options),
|
|
313
313
|
revenue: (options = {}) => report("revenue", options),
|
|
314
|
+
filterSales: (options = {}) => report("filter-sales", options),
|
|
314
315
|
banners: (options = {}) => request(`/banners?range=${options.range ?? "30d"}`, "GET", undefined, options.signal)
|
|
315
316
|
},
|
|
316
317
|
upsert: (records, signal) => request("/records", "POST", { records }, signal),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@findlane/server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"description": "Findlane server SDK: upload catalogs, manage index settings, and search with a secret workspace API key.",
|
|
5
5
|
"keywords": ["findlane", "search", "full-text search", "typo tolerance", "ecommerce search", "search api", "sdk"],
|
|
6
6
|
"license": "MIT",
|