@sparkvault/sdk-js 8.11.1 → 8.11.3
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/errors.d.ts +7 -7
- package/dist/index.d.ts +9 -7
- package/dist/ingots/types.d.ts +2 -0
- package/dist/sparkvault.cjs.js +5 -9
- package/dist/sparkvault.cjs.js.map +1 -1
- package/dist/sparkvault.esm.js +5 -9
- package/dist/sparkvault.esm.js.map +1 -1
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/package.json +1 -1
package/dist/sparkvault.esm.js
CHANGED
|
@@ -45,9 +45,9 @@ class PlanRequiredError extends SparkVaultError {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
|
-
* Quota exceeded gate (402 QUOTA_EXCEEDED) — a pooled-capacity
|
|
49
|
-
* exhausted. `resource` identifies which pool so callers can
|
|
50
|
-
*
|
|
48
|
+
* Quota exceeded gate (402 QUOTA_EXCEEDED) — a pooled-capacity limit is
|
|
49
|
+
* exhausted. `resource` identifies which pool so callers can point the CTA at
|
|
50
|
+
* the right capacity block.
|
|
51
51
|
*/
|
|
52
52
|
class QuotaExceededError extends SparkVaultError {
|
|
53
53
|
constructor(message, details) {
|
|
@@ -55,12 +55,7 @@ class QuotaExceededError extends SparkVaultError {
|
|
|
55
55
|
this.name = 'QuotaExceededError';
|
|
56
56
|
const resource = details?.resource;
|
|
57
57
|
this.resource =
|
|
58
|
-
resource === 'storage' ||
|
|
59
|
-
resource === 'bandwidth' ||
|
|
60
|
-
resource === 'seats' ||
|
|
61
|
-
resource === 'identity'
|
|
62
|
-
? resource
|
|
63
|
-
: undefined;
|
|
58
|
+
resource === 'storage' || resource === 'bandwidth' ? resource : undefined;
|
|
64
59
|
Object.setPrototypeOf(this, QuotaExceededError.prototype);
|
|
65
60
|
}
|
|
66
61
|
}
|
|
@@ -12866,6 +12861,7 @@ class IngotsModule {
|
|
|
12866
12861
|
const query = buildQuery$1({
|
|
12867
12862
|
q: options.q,
|
|
12868
12863
|
file_type: options.fileType,
|
|
12864
|
+
folder_id: options.folderId,
|
|
12869
12865
|
min_size: options.minSize,
|
|
12870
12866
|
max_size: options.maxSize,
|
|
12871
12867
|
limit: options.limit,
|