@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/index.d.ts
CHANGED
|
@@ -3062,10 +3062,12 @@ interface FolderContents {
|
|
|
3062
3062
|
/** Options for search. */
|
|
3063
3063
|
interface SearchIngotsOptions {
|
|
3064
3064
|
/**
|
|
3065
|
-
*
|
|
3066
|
-
*
|
|
3067
|
-
*
|
|
3068
|
-
*
|
|
3065
|
+
* A part of the ingot's file name, matched ignoring letter case, accents
|
|
3066
|
+
* and Unicode compatibility forms (`resume` matches `Résumé.pdf`, `strasse`
|
|
3067
|
+
* matches `Straße.txt`); a whole name matches too. Results come in creation
|
|
3068
|
+
* order, newest first unless `sortOrder` is `asc`, and a page can hold none
|
|
3069
|
+
* while `nextCursor` is set: follow it. Text no name can hold is refused
|
|
3070
|
+
* (400).
|
|
3069
3071
|
*/
|
|
3070
3072
|
q?: string;
|
|
3071
3073
|
/**
|
|
@@ -3602,10 +3604,17 @@ declare class IngotsModule {
|
|
|
3602
3604
|
*/
|
|
3603
3605
|
list(vault: UnsealedVault, options?: ListIngotsOptions): Promise<IngotPage>;
|
|
3604
3606
|
/**
|
|
3605
|
-
* Search ingots in an unsealed vault.
|
|
3607
|
+
* Search ingots in an unsealed vault, one page at a time. A page can hold
|
|
3608
|
+
* fewer ingots than `limit`, even none, while more remain: follow
|
|
3609
|
+
* `nextCursor` until it is absent, never stop on the count.
|
|
3606
3610
|
*
|
|
3607
3611
|
* @example
|
|
3608
|
-
*
|
|
3612
|
+
* let cursor: string | undefined;
|
|
3613
|
+
* do {
|
|
3614
|
+
* const page = await sv.ingots.search(unsealed, { q: 'invoice', cursor });
|
|
3615
|
+
* page.ingots.forEach((i) => console.log(i.name));
|
|
3616
|
+
* cursor = page.nextCursor;
|
|
3617
|
+
* } while (cursor);
|
|
3609
3618
|
*/
|
|
3610
3619
|
search(vault: UnsealedVault, options?: SearchIngotsOptions): Promise<IngotPage>;
|
|
3611
3620
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -17358,10 +17358,17 @@ class IngotsModule {
|
|
|
17358
17358
|
return mapIngotPage(response.data);
|
|
17359
17359
|
}
|
|
17360
17360
|
/**
|
|
17361
|
-
* Search ingots in an unsealed vault.
|
|
17361
|
+
* Search ingots in an unsealed vault, one page at a time. A page can hold
|
|
17362
|
+
* fewer ingots than `limit`, even none, while more remain: follow
|
|
17363
|
+
* `nextCursor` until it is absent, never stop on the count.
|
|
17362
17364
|
*
|
|
17363
17365
|
* @example
|
|
17364
|
-
*
|
|
17366
|
+
* let cursor: string | undefined;
|
|
17367
|
+
* do {
|
|
17368
|
+
* const page = await sv.ingots.search(unsealed, { q: 'invoice', cursor });
|
|
17369
|
+
* page.ingots.forEach((i) => console.log(i.name));
|
|
17370
|
+
* cursor = page.nextCursor;
|
|
17371
|
+
* } while (cursor);
|
|
17365
17372
|
*/
|
|
17366
17373
|
async search(vault, options = {}) {
|
|
17367
17374
|
const vaultId = requireVaultId(vault);
|
|
@@ -18444,7 +18451,7 @@ class SparkVault {
|
|
|
18444
18451
|
}
|
|
18445
18452
|
/** Get the SDK version */
|
|
18446
18453
|
static get version() {
|
|
18447
|
-
return '13.
|
|
18454
|
+
return '13.2.0';
|
|
18448
18455
|
}
|
|
18449
18456
|
}
|
|
18450
18457
|
if (typeof window !== 'undefined') {
|