wapi-client 0.6.6 → 0.6.12
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/lib/errors.d.ts +16 -8
- package/dist/lib/isomorphic/node/streams.d.ts +2 -1
- package/dist/txs/get-database-import-progress/get-database-import-progress.enums.d.ts +13 -1
- package/dist/txs/list-database-exports/list-database-exports.enums.d.ts +12 -1
- package/dist/wapi-client.cjs.development.js +6484 -4350
- package/dist/wapi-client.cjs.js +11 -11
- package/package.json +17 -17
package/dist/lib/errors.d.ts
CHANGED
|
@@ -312,7 +312,7 @@ export declare enum ERROR_MESSAGES {
|
|
|
312
312
|
*/
|
|
313
313
|
METHOD_DISABLED = 'METHOD_DISABLED',
|
|
314
314
|
/**
|
|
315
|
-
* Unexpected error while importing database
|
|
315
|
+
* Unexpected error while importing database
|
|
316
316
|
*/
|
|
317
317
|
DATABASE_IMPORT_UNEXPECTED_ERROR = 'DATABASE_IMPORT_UNEXPECTED_ERROR',
|
|
318
318
|
/**
|
|
@@ -320,29 +320,37 @@ export declare enum ERROR_MESSAGES {
|
|
|
320
320
|
*/
|
|
321
321
|
DATABASE_IMPORT_NOT_FOUND = 'DATABASE_IMPORT_NOT_FOUND',
|
|
322
322
|
/**
|
|
323
|
-
*
|
|
323
|
+
* Database export already in progress
|
|
324
324
|
*/
|
|
325
|
-
|
|
325
|
+
DATABASE_EXPORT_CONFLICT = 'DATABASE_EXPORT_CONFLICT',
|
|
326
|
+
/**
|
|
327
|
+
* Database import already in progress
|
|
328
|
+
*/
|
|
329
|
+
DATABASE_IMPORT_CONFLICT = 'DATABASE_IMPORT_CONFLICT',
|
|
330
|
+
/**
|
|
331
|
+
* Unexpected error while creating database export
|
|
332
|
+
*/
|
|
333
|
+
DATABASE_EXPORT_UNEXPECTED_ERROR = 'DATABASE_EXPORT_UNEXPECTED_ERROR',
|
|
326
334
|
/**
|
|
327
335
|
* Unexpected error while listing database backups
|
|
328
336
|
*/
|
|
329
|
-
|
|
337
|
+
DATABASE_EXPORT_LIST_UNEXPECTED_ERROR = 'DATABASE_EXPORT_LIST_UNEXPECTED_ERROR',
|
|
330
338
|
/**
|
|
331
339
|
* Import database progress not found
|
|
332
340
|
*/
|
|
333
|
-
|
|
341
|
+
DATABASE_IMPORT_PROGRESS_NOT_FOUND = 'DATABASE_IMPORT_PROGRESS_NOT_FOUND',
|
|
334
342
|
/**
|
|
335
343
|
* Unexpected error while getting database import progress
|
|
336
344
|
*/
|
|
337
|
-
|
|
345
|
+
DATABASE_IMPORT_PROGRESS_UNEXPECTED_ERROR = 'DATABASE_IMPORT_PROGRESS_UNEXPECTED_ERROR',
|
|
338
346
|
/**
|
|
339
347
|
* Database backup progress not found
|
|
340
348
|
*/
|
|
341
|
-
|
|
349
|
+
DATABASE_EXPORT_PROGRESS_NOT_FOUND = 'DATABASE_EXPORT_PROGRESS_NOT_FOUND',
|
|
342
350
|
/**
|
|
343
351
|
* Unexpected error while getting database backup progress
|
|
344
352
|
*/
|
|
345
|
-
|
|
353
|
+
DATABASE_EXPORT_PROGRESS_UNEXPECTED_ERROR = 'DATABASE_EXPORT_PROGRESS_UNEXPECTED_ERROR'
|
|
346
354
|
}
|
|
347
355
|
export declare const ErrorDescriptions: {
|
|
348
356
|
[key in keyof typeof ERROR_MESSAGES]: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
2
3
|
import { DuplexOptions, PassThrough, Transform, TransformOptions, Writable, Readable, ReadableOptions } from 'stream';
|
|
3
4
|
/**
|
|
4
5
|
* @internal
|
|
@@ -13,7 +14,7 @@ export declare class WriteStream extends Writable {
|
|
|
13
14
|
export declare class ReadWriteStream<InputType> extends PassThrough {
|
|
14
15
|
constructor();
|
|
15
16
|
write(chunk: InputType, encoding?: BufferEncoding | ((error: Error | null | undefined) => void), cb?: (error: Error | null | undefined) => void): boolean;
|
|
16
|
-
end(chunk?: InputType | (() => void), encoding?: BufferEncoding | (() => void), cb?: () => void):
|
|
17
|
+
end(chunk?: InputType | (() => void), encoding?: BufferEncoding | (() => void), cb?: () => void): this;
|
|
17
18
|
}
|
|
18
19
|
declare type DataTransformCallback<Output> = (error?: Error | null, data?: Output) => void;
|
|
19
20
|
interface DataTransformOptions<Input, Output> extends TransformOptions {
|
|
@@ -17,5 +17,17 @@ export interface GetDatabaseImportProgressTxOutput {
|
|
|
17
17
|
/**
|
|
18
18
|
* Percentage of imported database
|
|
19
19
|
*/
|
|
20
|
-
progress
|
|
20
|
+
progress: number;
|
|
21
|
+
/**
|
|
22
|
+
* Boolean indicating if import has started
|
|
23
|
+
*/
|
|
24
|
+
started: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Boolean indicating if import has finished
|
|
27
|
+
*/
|
|
28
|
+
finished: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Error message in case one occurs
|
|
31
|
+
*/
|
|
32
|
+
error?: string;
|
|
21
33
|
}
|
|
@@ -5,11 +5,22 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export interface ListDatabaseExportsTxInput {
|
|
7
7
|
}
|
|
8
|
+
export interface DatabaseExport {
|
|
9
|
+
/**
|
|
10
|
+
* Name of the export
|
|
11
|
+
*/
|
|
12
|
+
name: string;
|
|
13
|
+
/**
|
|
14
|
+
* Size of the export
|
|
15
|
+
*/
|
|
16
|
+
size: number;
|
|
17
|
+
[k: string]: unknown;
|
|
18
|
+
}
|
|
8
19
|
/**
|
|
9
20
|
* Output of listDatabaseExports
|
|
10
21
|
*
|
|
11
22
|
* @category Output
|
|
12
23
|
*/
|
|
13
24
|
export interface ListDatabaseExportsTxOutput {
|
|
14
|
-
exports
|
|
25
|
+
exports: DatabaseExport[];
|
|
15
26
|
}
|