@findlane/server 0.23.0 → 0.25.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 +13 -0
- package/dist/index.d.cts +2272 -0
- package/dist/index.d.ts +2272 -0
- package/dist/index.js +13 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -245,6 +245,17 @@ class SearchServerClient {
|
|
|
245
245
|
uploadFromUrl: (url, signal) => request("/images", "POST", { url }, signal),
|
|
246
246
|
delete: (key, signal) => request(`/images/${key}`, "DELETE", undefined, signal)
|
|
247
247
|
},
|
|
248
|
+
feed: {
|
|
249
|
+
get: async (signal) => (await request("/feed", "GET", undefined, signal)).feed,
|
|
250
|
+
set: async (setup, signal) => (await request("/feed", "PUT", setup, signal)).feed,
|
|
251
|
+
remove: async (signal) => {
|
|
252
|
+
await request("/feed", "DELETE", undefined, signal);
|
|
253
|
+
},
|
|
254
|
+
check: (setup = {}, signal) => request("/feed/check", "POST", setup, signal),
|
|
255
|
+
run: async (signal) => (await request("/feed/runs", "POST", undefined, signal)).run,
|
|
256
|
+
runs: async (signal) => (await request("/feed/runs", "GET", undefined, signal)).runs,
|
|
257
|
+
importHeld: async (runId, signal) => (await request(`/feed/runs/${encodeURIComponent(runId)}/import`, "POST", undefined, signal)).run
|
|
258
|
+
},
|
|
248
259
|
lists: {
|
|
249
260
|
get: (id, options = {}) => request(`/lists/${encodeURIComponent(id)}${options.limit ? `?limit=${options.limit}` : ""}`, "GET", undefined, options.signal),
|
|
250
261
|
getMany: async (ids, options = {}) => {
|
|
@@ -384,6 +395,8 @@ class SearchServerClient {
|
|
|
384
395
|
await pause(Math.min(options.intervalMs ?? 1000, deadline - Date.now()), options.signal);
|
|
385
396
|
}
|
|
386
397
|
},
|
|
398
|
+
subindex: (subindex) => this.index(`${name}.${subindex}`),
|
|
399
|
+
listSubindexes: async (signal) => (await request("/subindexes", "GET", undefined, signal)).subindexes,
|
|
387
400
|
getPublicSearchAccess: (signal) => request("/public-access", "GET", undefined, signal),
|
|
388
401
|
setPublicSearchPolicy: (policy, signal) => request("/public-access/policy", "PUT", { policy }, signal),
|
|
389
402
|
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.25.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",
|