wapi-client 0.6.6 → 0.6.7

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.
@@ -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 backup
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
- * Unexpected error while creating database backup
323
+ * Database export already in progress
324
324
  */
325
- DATABASE_BACKUP_CREATE_UNEXPECTED_ERROR = 'DATABASE_BACKUP_CREATE_UNEXPECTED_ERROR',
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
- LIST_DATABASE_BACKUPS_UNEXPECTED_ERROR = 'LIST_DATABASE_BACKUPS_UNEXPECTED_ERROR',
337
+ DATABASE_EXPORT_LIST_UNEXPECTED_ERROR = 'DATABASE_EXPORT_LIST_UNEXPECTED_ERROR',
330
338
  /**
331
339
  * Import database progress not found
332
340
  */
333
- IMPORT_DATABASE_PROGRESS_NOT_FOUND = 'IMPORT_DATABASE_PROGRESS_NOT_FOUND',
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
- IMPORT_DATABASE_PROGRESS_UNEXPECTED_ERROR = 'IMPORT_DATABASE_PROGRESS_UNEXPECTED_ERROR',
345
+ DATABASE_IMPORT_PROGRESS_UNEXPECTED_ERROR = 'DATABASE_IMPORT_PROGRESS_UNEXPECTED_ERROR',
338
346
  /**
339
347
  * Database backup progress not found
340
348
  */
341
- DATABASE_BACKUP_PROGRESS_NOT_FOUND = 'DATABASE_BACKUP_PROGRESS_NOT_FOUND',
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
- DATABASE_BACKUP_PROGRESS_UNEXPECTED_ERROR = 'DATABASE_BACKUP_PROGRESS_UNEXPECTED_ERROR'
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;
@@ -17,5 +17,17 @@ export interface GetDatabaseImportProgressTxOutput {
17
17
  /**
18
18
  * Percentage of imported database
19
19
  */
20
- progress?: number;
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?: string[];
25
+ exports: DatabaseExport[];
15
26
  }