@findlane/server 0.24.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 +3 -0
- package/dist/index.d.cts +2258 -0
- package/dist/index.d.ts +2258 -0
- package/dist/index.js +3 -0
- package/package.json +1 -1
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),
|
|
@@ -395,6 +396,8 @@ class SearchServerClient {
|
|
|
395
396
|
await pause(Math.min(options.intervalMs ?? 1000, deadline - Date.now()), options.signal);
|
|
396
397
|
}
|
|
397
398
|
},
|
|
399
|
+
subindex: (subindex) => this.index(`${name}.${subindex}`),
|
|
400
|
+
listSubindexes: async (signal) => (await request("/subindexes", "GET", undefined, signal)).subindexes,
|
|
398
401
|
getPublicSearchAccess: (signal) => request("/public-access", "GET", undefined, signal),
|
|
399
402
|
setPublicSearchPolicy: (policy, signal) => request("/public-access/policy", "PUT", { policy }, signal),
|
|
400
403
|
usePublicIndexDefaults: (signal) => request("/public-access/policy", "DELETE", undefined, 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",
|