@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.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),
|
|
@@ -441,6 +442,8 @@ class SearchServerClient {
|
|
|
441
442
|
await pause(Math.min(options.intervalMs ?? 1000, deadline - Date.now()), options.signal);
|
|
442
443
|
}
|
|
443
444
|
},
|
|
445
|
+
subindex: (subindex) => this.index(`${name}.${subindex}`),
|
|
446
|
+
listSubindexes: async (signal) => (await request("/subindexes", "GET", undefined, signal)).subindexes,
|
|
444
447
|
getPublicSearchAccess: (signal) => request("/public-access", "GET", undefined, signal),
|
|
445
448
|
setPublicSearchPolicy: (policy, signal) => request("/public-access/policy", "PUT", { policy }, signal),
|
|
446
449
|
usePublicIndexDefaults: (signal) => request("/public-access/policy", "DELETE", undefined, signal),
|