@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.cjs
CHANGED
|
@@ -291,6 +291,17 @@ class SearchServerClient {
|
|
|
291
291
|
uploadFromUrl: (url, signal) => request("/images", "POST", { url }, signal),
|
|
292
292
|
delete: (key, signal) => request(`/images/${key}`, "DELETE", undefined, signal)
|
|
293
293
|
},
|
|
294
|
+
feed: {
|
|
295
|
+
get: async (signal) => (await request("/feed", "GET", undefined, signal)).feed,
|
|
296
|
+
set: async (setup, signal) => (await request("/feed", "PUT", setup, signal)).feed,
|
|
297
|
+
remove: async (signal) => {
|
|
298
|
+
await request("/feed", "DELETE", undefined, signal);
|
|
299
|
+
},
|
|
300
|
+
check: (setup = {}, signal) => request("/feed/check", "POST", setup, signal),
|
|
301
|
+
run: async (signal) => (await request("/feed/runs", "POST", undefined, signal)).run,
|
|
302
|
+
runs: async (signal) => (await request("/feed/runs", "GET", undefined, signal)).runs,
|
|
303
|
+
importHeld: async (runId, signal) => (await request(`/feed/runs/${encodeURIComponent(runId)}/import`, "POST", undefined, signal)).run
|
|
304
|
+
},
|
|
294
305
|
lists: {
|
|
295
306
|
get: (id, options = {}) => request(`/lists/${encodeURIComponent(id)}${options.limit ? `?limit=${options.limit}` : ""}`, "GET", undefined, options.signal),
|
|
296
307
|
getMany: async (ids, options = {}) => {
|
|
@@ -430,6 +441,8 @@ class SearchServerClient {
|
|
|
430
441
|
await pause(Math.min(options.intervalMs ?? 1000, deadline - Date.now()), options.signal);
|
|
431
442
|
}
|
|
432
443
|
},
|
|
444
|
+
subindex: (subindex) => this.index(`${name}.${subindex}`),
|
|
445
|
+
listSubindexes: async (signal) => (await request("/subindexes", "GET", undefined, signal)).subindexes,
|
|
433
446
|
getPublicSearchAccess: (signal) => request("/public-access", "GET", undefined, signal),
|
|
434
447
|
setPublicSearchPolicy: (policy, signal) => request("/public-access/policy", "PUT", { policy }, signal),
|
|
435
448
|
usePublicIndexDefaults: (signal) => request("/public-access/policy", "DELETE", undefined, signal),
|