@sparkvault/sdk-js 13.1.0 → 13.2.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 +10 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +15 -6
- package/dist/index.mjs +10 -3
- package/dist/index.mjs.map +1 -1
- package/dist/ingots/index.d.ts +9 -2
- package/dist/ingots/types.d.ts +6 -4
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/package.json +3 -3
package/dist/ingots/index.d.ts
CHANGED
|
@@ -226,10 +226,17 @@ export declare class IngotsModule {
|
|
|
226
226
|
*/
|
|
227
227
|
list(vault: UnsealedVault, options?: ListIngotsOptions): Promise<IngotPage>;
|
|
228
228
|
/**
|
|
229
|
-
* Search ingots in an unsealed vault.
|
|
229
|
+
* Search ingots in an unsealed vault, one page at a time. A page can hold
|
|
230
|
+
* fewer ingots than `limit`, even none, while more remain: follow
|
|
231
|
+
* `nextCursor` until it is absent, never stop on the count.
|
|
230
232
|
*
|
|
231
233
|
* @example
|
|
232
|
-
*
|
|
234
|
+
* let cursor: string | undefined;
|
|
235
|
+
* do {
|
|
236
|
+
* const page = await sv.ingots.search(unsealed, { q: 'invoice', cursor });
|
|
237
|
+
* page.ingots.forEach((i) => console.log(i.name));
|
|
238
|
+
* cursor = page.nextCursor;
|
|
239
|
+
* } while (cursor);
|
|
233
240
|
*/
|
|
234
241
|
search(vault: UnsealedVault, options?: SearchIngotsOptions): Promise<IngotPage>;
|
|
235
242
|
/**
|
package/dist/ingots/types.d.ts
CHANGED
|
@@ -277,10 +277,12 @@ export interface FolderContents {
|
|
|
277
277
|
/** Options for search. */
|
|
278
278
|
export interface SearchIngotsOptions {
|
|
279
279
|
/**
|
|
280
|
-
*
|
|
281
|
-
*
|
|
282
|
-
*
|
|
283
|
-
*
|
|
280
|
+
* A part of the ingot's file name, matched ignoring letter case, accents
|
|
281
|
+
* and Unicode compatibility forms (`resume` matches `Résumé.pdf`, `strasse`
|
|
282
|
+
* matches `Straße.txt`); a whole name matches too. Results come in creation
|
|
283
|
+
* order, newest first unless `sortOrder` is `asc`, and a page can hold none
|
|
284
|
+
* while `nextCursor` is set: follow it. Text no name can hold is refused
|
|
285
|
+
* (400).
|
|
284
286
|
*/
|
|
285
287
|
q?: string;
|
|
286
288
|
/**
|