wapi-client 0.6.3 → 0.6.11

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.
@@ -4,7 +4,7 @@ import { TransformStream } from '../lib/isomorphic/node/streams';
4
4
  import { JSONRPCRequest, JSONRPCResponse } from './jsonrpc/jsonrpc.enums';
5
5
  import { WapiClientType } from '../';
6
6
  import { HttpConnectionClient } from './http-client';
7
- import { AggregateTransferManyTxInput, AggregateTransferManyTxOutput, AuthenticationCheckTxInput, AuthenticationCheckTxOutput, CreateAccessTokenTxInput, CreateAccessTokenTxOutput, CreateContractTxInput, CreateContractTxOutput, CreateDepositTxInput, CreateDepositTxOutput, CreateDistributionTxInput, CreateDistributionTxOutput, CreateTokenTxInput, CreateTokenTxOutput, CreateTransferTxInput, CreateTransferTxOutput, CreateTransferGroupTxInput, CreateTransferGroupTxOutput, CreateTransferManyTxInput, CreateTransferManyTxOutput, CreateWalletTxInput, CreateWalletTxOutput, CreateWithdrawalTxInput, CreateWithdrawalTxOutput, ExportDatabaseTxInput, ExportDatabaseTxOutput, FindBalanceManyTxInput, FindBalanceManyTxOutput, FindTokenManyTxInput, FindTokenManyTxOutput, FindTransferGroupManyTxInput, FindTransferGroupManyTxOutput, FindTransferManyTxInput, FindTransferManyTxOutput, FindWalletManyTxInput, FindWalletManyTxOutput, FinishTransactionTxInput, FinishTransactionTxOutput, GetBalanceTxInput, GetBalanceTxOutput, GetBalanceHistoryTxInput, GetBalanceHistoryTxOutput, GetDatabaseExportProgressTxInput, GetDatabaseExportProgressTxOutput, GetDatabaseImportProgressTxInput, GetDatabaseImportProgressTxOutput, GetFlagsTxInput, GetFlagsTxOutput, GetStatisticsTxInput, GetStatisticsTxOutput, GetTokenTxInput, GetTokenTxOutput, GetTokenManyTxInput, GetTokenManyTxOutput, GetTransferTxInput, GetTransferTxOutput, GetTransferGroupTxInput, GetTransferGroupTxOutput, GetWalletTxInput, GetWalletTxOutput, GetWalletManyTxInput, GetWalletManyTxOutput, ImportActionsTxInput, ImportActionsTxOutput, ImportActionsTxOptions, ImportDatabaseTxInput, ImportDatabaseTxOutput, ListDatabaseBackupsTxInput, ListDatabaseBackupsTxOutput, QueryTxInput, QueryTxOutput, QueryLogsTxInput, QueryLogsTxOutput, ResetDatabaseTxInput, ResetDatabaseTxOutput, ReverseTransferTxInput, ReverseTransferTxOutput, ReverseTransferGroupTxInput, ReverseTransferGroupTxOutput, ReverseTransferGroupManyTxInput, ReverseTransferGroupManyTxOutput, ReverseTransferManyTxInput, ReverseTransferManyTxOutput, SetFlagsTxInput, SetFlagsTxOutput, StartTransactionTxInput, StartTransactionTxOutput, UpdateTokenTxInput, UpdateTokenTxOutput, UpdateTransferTxInput, UpdateTransferTxOutput, UpdateTransferGroupTxInput, UpdateTransferGroupTxOutput, UpdateTransferGroupManyTxInput, UpdateTransferGroupManyTxOutput, UpdateTransferManyTxInput, UpdateTransferManyTxOutput, UpdateWalletTxInput, UpdateWalletTxOutput } from '../txs';
7
+ import { AggregateTransferManyTxInput, AggregateTransferManyTxOutput, AuthenticationCheckTxInput, AuthenticationCheckTxOutput, CreateAccessTokenTxInput, CreateAccessTokenTxOutput, CreateContractTxInput, CreateContractTxOutput, CreateDepositTxInput, CreateDepositTxOutput, CreateDistributionTxInput, CreateDistributionTxOutput, CreateTokenTxInput, CreateTokenTxOutput, CreateTransferTxInput, CreateTransferTxOutput, CreateTransferGroupTxInput, CreateTransferGroupTxOutput, CreateTransferManyTxInput, CreateTransferManyTxOutput, CreateWalletTxInput, CreateWalletTxOutput, CreateWithdrawalTxInput, CreateWithdrawalTxOutput, ExportDatabaseTxInput, ExportDatabaseTxOutput, FindBalanceManyTxInput, FindBalanceManyTxOutput, FindTokenManyTxInput, FindTokenManyTxOutput, FindTransferGroupManyTxInput, FindTransferGroupManyTxOutput, FindTransferManyTxInput, FindTransferManyTxOutput, FindWalletManyTxInput, FindWalletManyTxOutput, FinishTransactionTxInput, FinishTransactionTxOutput, GetBalanceTxInput, GetBalanceTxOutput, GetBalanceHistoryTxInput, GetBalanceHistoryTxOutput, GetDatabaseExportProgressTxInput, GetDatabaseExportProgressTxOutput, GetDatabaseImportProgressTxInput, GetDatabaseImportProgressTxOutput, GetFlagsTxInput, GetFlagsTxOutput, GetStatisticsTxInput, GetStatisticsTxOutput, GetTokenTxInput, GetTokenTxOutput, GetTokenManyTxInput, GetTokenManyTxOutput, GetTransferTxInput, GetTransferTxOutput, GetTransferGroupTxInput, GetTransferGroupTxOutput, GetWalletTxInput, GetWalletTxOutput, GetWalletManyTxInput, GetWalletManyTxOutput, ImportActionsTxInput, ImportActionsTxOutput, ImportActionsTxOptions, ImportDatabaseTxInput, ImportDatabaseTxOutput, ListDatabaseExportsTxInput, ListDatabaseExportsTxOutput, QueryTxInput, QueryTxOutput, QueryLogsTxInput, QueryLogsTxOutput, ResetDatabaseTxInput, ResetDatabaseTxOutput, ReverseTransferTxInput, ReverseTransferTxOutput, ReverseTransferGroupTxInput, ReverseTransferGroupTxOutput, ReverseTransferGroupManyTxInput, ReverseTransferGroupManyTxOutput, ReverseTransferManyTxInput, ReverseTransferManyTxOutput, SetFlagsTxInput, SetFlagsTxOutput, StartTransactionTxInput, StartTransactionTxOutput, UpdateTokenTxInput, UpdateTokenTxOutput, UpdateTransferTxInput, UpdateTransferTxOutput, UpdateTransferGroupTxInput, UpdateTransferGroupTxOutput, UpdateTransferGroupManyTxInput, UpdateTransferGroupManyTxOutput, UpdateTransferManyTxInput, UpdateTransferManyTxOutput, UpdateWalletTxInput, UpdateWalletTxOutput } from '../txs';
8
8
  export interface ClientHooks {
9
9
  connected?: (socId: undefined | string) => void;
10
10
  disconnected?: () => void;
@@ -276,11 +276,11 @@ export declare class BaseClient {
276
276
  importDatabase(input: ImportDatabaseTxInput): StreamPromise<ImportDatabaseTxOutput>;
277
277
  /**
278
278
  *
279
- * @param {ListDatabaseBackupsTxInput} input
280
- * @returns {StreamPromise<ListDatabaseBackupsTxOutput>}
279
+ * @param {ListDatabaseExportsTxInput} input
280
+ * @returns {StreamPromise<ListDatabaseExportsTxOutput>}
281
281
  *
282
282
  */
283
- listDatabaseBackups(input: ListDatabaseBackupsTxInput): StreamPromise<ListDatabaseBackupsTxOutput>;
283
+ listDatabaseExports(input: ListDatabaseExportsTxInput): StreamPromise<ListDatabaseExportsTxOutput>;
284
284
  /**
285
285
  *
286
286
  * @param {QueryTxInput} input
@@ -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;
@@ -13,7 +13,7 @@ export declare class WriteStream extends Writable {
13
13
  export declare class ReadWriteStream<InputType> extends PassThrough {
14
14
  constructor();
15
15
  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): void;
16
+ end(chunk?: InputType | (() => void), encoding?: BufferEncoding | (() => void), cb?: () => void): this;
17
17
  }
18
18
  declare type DataTransformCallback<Output> = (error?: Error | null, data?: Output) => void;
19
19
  interface DataTransformOptions<Input, Output> extends TransformOptions {
@@ -8,7 +8,7 @@ export interface ValidationResult<M> {
8
8
  inputCopy: M;
9
9
  error?: ValidationError;
10
10
  }
11
- export declare type SchemaName = 'JSONRPCRequest' | 'JSONRPCResponse' | 'ClientOptions' | 'Consts' | 'TokenTableInput' | 'TokenTable' | 'TokenTableOptional' | 'TransferTableInput' | 'TransferTable' | 'TransferTableOptional' | 'TransferGroupTableInput' | 'TransferGroupTable' | 'TransferGroupTableOptional' | 'TransferLogTableInput' | 'TransferLogTable' | 'TransferLogTableOptional' | 'WalletTableInput' | 'WalletTable' | 'WalletTableOptional' | 'WalletTokenSettingTableInput' | 'WalletTokenSettingTable' | 'WalletTokenSettingTableOptional' | 'WapiSettingTableInput' | 'WapiSettingTable' | 'WapiSettingTableOptional' | 'AggregateTransfersFnInput' | 'AggregateTransfersFnOutput' | 'CreateAccessTokenFnInput' | 'CreateAccessTokenFnOutput' | 'CreateContractFnInput' | 'CreateContractFnOutput' | 'CreateDepositFnInput' | 'CreateDepositFnOutput' | 'CreateExchangeFnInput' | 'CreateExchangeFnOutput' | 'CreateTokenFnInput' | 'CreateTokenFnOutput' | 'CreateTransferFnInput' | 'CreateTransferFnOutput' | 'CreateTransferGroupFnInput' | 'CreateTransferGroupFnOutput' | 'CreateTransfersFnInput' | 'CreateTransfersFnOutput' | 'CreateWalletFnInput' | 'CreateWalletFnOutput' | 'CreateWithdrawalFnInput' | 'CreateWithdrawalFnOutput' | 'FindBalancesFnInput' | 'FindBalancesFnOutput' | 'FindTokensFnInput' | 'FindTokensFnOutput' | 'FindTransferGroupsFnInput' | 'FindTransferGroupsFnOutput' | 'FindTransfersFnInput' | 'FindTransfersFnOutput' | 'FindWalletsFnInput' | 'FindWalletsFnOutput' | 'FnConsts' | 'GetBalanceFnInput' | 'GetBalanceFnOutput' | 'GetBalanceHistoryFnInput' | 'GetBalanceHistoryFnOutput' | 'GetFlagsFnInput' | 'GetFlagsFnOutput' | 'GetStatisticsFnInput' | 'GetStatisticsFnOutput' | 'GetTokenFnInput' | 'GetTokenFnOutput' | 'GetTransferFnInput' | 'GetTransferFnOutput' | 'GetTransferGroupFnInput' | 'GetTransferGroupFnOutput' | 'GetWalletFnInput' | 'GetWalletFnOutput' | 'ImportDataFnInput' | 'ImportDataFnOptions' | 'ImportDataFnStreamChunk' | 'ImportDataFnOutput' | 'ReverseTransferFnInput' | 'ReverseTransferFnOutput' | 'ReverseTransferGroupFnInput' | 'ReverseTransferGroupFnOutput' | 'ReverseTransfersFnInput' | 'ReverseTransfersFnOutput' | 'SetFlagsFnInput' | 'SetFlagsFnOutput' | 'UpdateTokenFnInput' | 'UpdateTokenFnOutput' | 'UpdateTransferFnInput' | 'UpdateTransferFnOutput' | 'UpdateTransferGroupFnInput' | 'UpdateTransferGroupFnOutput' | 'UpdateTransferGroupsFnInput' | 'UpdateTransferGroupsFnOutput' | 'UpdateTransfersFnInput' | 'UpdateTransfersFnOutput' | 'UpdateWalletFnInput' | 'UpdateWalletFnOutput' | 'AggregateTransferManyTxInput' | 'AggregateTransferManyTxOutput' | 'AuthenticationCheckTxInput' | 'AuthenticationCheckTxOutput' | 'CreateAccessTokenTxInput' | 'CreateAccessTokenTxOutput' | 'CreateContractTxInput' | 'CreateContractTxOutput' | 'CreateDepositTxInput' | 'CreateDepositTxOutput' | 'CreateDistributionTxInput' | 'CreateDistributionTxOutput' | 'CreateTokenTxInput' | 'CreateTokenTxOutput' | 'CreateTransferTxInput' | 'CreateTransferTxOutput' | 'CreateTransferGroupTxInput' | 'CreateTransferGroupTxOutput' | 'CreateTransferManyTxInput' | 'CreateTransferManyTxOutput' | 'CreateWalletTxInput' | 'CreateWalletTxOutput' | 'CreateWithdrawalTxInput' | 'CreateWithdrawalTxOutput' | 'ExportDatabaseTxInput' | 'ExportDatabaseTxOutput' | 'FindBalanceManyTxInput' | 'FindBalanceManyTxOutput' | 'FindTokenManyTxInput' | 'FindTokenManyTxOutput' | 'FindTransferGroupManyTxInput' | 'FindTransferGroupManyTxOutput' | 'FindTransferManyTxInput' | 'FindTransferManyTxOutput' | 'FindWalletManyTxInput' | 'FindWalletManyTxOutput' | 'FinishTransactionTxInput' | 'FinishTransactionTxOutput' | 'GetBalanceTxInput' | 'GetBalanceTxOutput' | 'GetBalanceHistoryTxInput' | 'GetBalanceHistoryTxOutput' | 'GetDatabaseExportProgressTxInput' | 'GetDatabaseExportProgressTxOutput' | 'GetDatabaseImportProgressTxInput' | 'GetDatabaseImportProgressTxOutput' | 'GetFlagsTxInput' | 'GetFlagsTxOutput' | 'GetStatisticsTxInput' | 'GetStatisticsTxOutput' | 'GetTokenTxInput' | 'GetTokenTxOutput' | 'GetTokenManyTxInput' | 'GetTokenManyTxOutput' | 'GetTransferTxInput' | 'GetTransferTxOutput' | 'GetTransferGroupTxInput' | 'GetTransferGroupTxOutput' | 'GetWalletTxInput' | 'GetWalletTxOutput' | 'GetWalletManyTxInput' | 'GetWalletManyTxOutput' | 'ImportActionsTxInput' | 'ImportActionsTxOptions' | 'ImportActionsTxStreamChunk' | 'ImportActionsTxOutput' | 'ImportDatabaseTxInput' | 'ImportDatabaseTxOutput' | 'ListDatabaseBackupsTxInput' | 'ListDatabaseBackupsTxOutput' | 'QueryTxInput' | 'QueryTxOutput' | 'QueryLogsTxInput' | 'QueryLogsTxOutput' | 'ResetDatabaseTxInput' | 'ResetDatabaseTxOutput' | 'ReverseTransferTxInput' | 'ReverseTransferTxOutput' | 'ReverseTransferGroupTxInput' | 'ReverseTransferGroupTxOutput' | 'ReverseTransferGroupManyTxInput' | 'ReverseTransferGroupManyTxOutput' | 'ReverseTransferManyTxInput' | 'ReverseTransferManyTxOutput' | 'SetFlagsTxInput' | 'SetFlagsTxOutput' | 'StartTransactionTxInput' | 'StartTransactionTxOutput' | 'TxConsts' | 'UpdateTokenTxInput' | 'UpdateTokenTxOutput' | 'UpdateTransferTxInput' | 'UpdateTransferTxOutput' | 'UpdateTransferGroupTxInput' | 'UpdateTransferGroupTxOutput' | 'UpdateTransferGroupManyTxInput' | 'UpdateTransferGroupManyTxOutput' | 'UpdateTransferManyTxInput' | 'UpdateTransferManyTxOutput' | 'UpdateWalletTxInput' | 'UpdateWalletTxOutput';
11
+ export declare type SchemaName = 'JSONRPCRequest' | 'JSONRPCResponse' | 'ClientOptions' | 'Consts' | 'TokenTableInput' | 'TokenTable' | 'TokenTableOptional' | 'TransferTableInput' | 'TransferTable' | 'TransferTableOptional' | 'TransferGroupTableInput' | 'TransferGroupTable' | 'TransferGroupTableOptional' | 'TransferLogTableInput' | 'TransferLogTable' | 'TransferLogTableOptional' | 'WalletTableInput' | 'WalletTable' | 'WalletTableOptional' | 'WalletTokenSettingTableInput' | 'WalletTokenSettingTable' | 'WalletTokenSettingTableOptional' | 'WapiSettingTableInput' | 'WapiSettingTable' | 'WapiSettingTableOptional' | 'AggregateTransfersFnInput' | 'AggregateTransfersFnOutput' | 'CreateAccessTokenFnInput' | 'CreateAccessTokenFnOutput' | 'CreateContractFnInput' | 'CreateContractFnOutput' | 'CreateDepositFnInput' | 'CreateDepositFnOutput' | 'CreateExchangeFnInput' | 'CreateExchangeFnOutput' | 'CreateTokenFnInput' | 'CreateTokenFnOutput' | 'CreateTransferFnInput' | 'CreateTransferFnOutput' | 'CreateTransferGroupFnInput' | 'CreateTransferGroupFnOutput' | 'CreateTransfersFnInput' | 'CreateTransfersFnOutput' | 'CreateWalletFnInput' | 'CreateWalletFnOutput' | 'CreateWithdrawalFnInput' | 'CreateWithdrawalFnOutput' | 'FindBalancesFnInput' | 'FindBalancesFnOutput' | 'FindTokensFnInput' | 'FindTokensFnOutput' | 'FindTransferGroupsFnInput' | 'FindTransferGroupsFnOutput' | 'FindTransfersFnInput' | 'FindTransfersFnOutput' | 'FindWalletsFnInput' | 'FindWalletsFnOutput' | 'FnConsts' | 'GetBalanceFnInput' | 'GetBalanceFnOutput' | 'GetBalanceHistoryFnInput' | 'GetBalanceHistoryFnOutput' | 'GetFlagsFnInput' | 'GetFlagsFnOutput' | 'GetStatisticsFnInput' | 'GetStatisticsFnOutput' | 'GetTokenFnInput' | 'GetTokenFnOutput' | 'GetTransferFnInput' | 'GetTransferFnOutput' | 'GetTransferGroupFnInput' | 'GetTransferGroupFnOutput' | 'GetWalletFnInput' | 'GetWalletFnOutput' | 'ImportDataFnInput' | 'ImportDataFnOptions' | 'ImportDataFnStreamChunk' | 'ImportDataFnOutput' | 'ReverseTransferFnInput' | 'ReverseTransferFnOutput' | 'ReverseTransferGroupFnInput' | 'ReverseTransferGroupFnOutput' | 'ReverseTransfersFnInput' | 'ReverseTransfersFnOutput' | 'SetFlagsFnInput' | 'SetFlagsFnOutput' | 'UpdateTokenFnInput' | 'UpdateTokenFnOutput' | 'UpdateTransferFnInput' | 'UpdateTransferFnOutput' | 'UpdateTransferGroupFnInput' | 'UpdateTransferGroupFnOutput' | 'UpdateTransferGroupsFnInput' | 'UpdateTransferGroupsFnOutput' | 'UpdateTransfersFnInput' | 'UpdateTransfersFnOutput' | 'UpdateWalletFnInput' | 'UpdateWalletFnOutput' | 'AggregateTransferManyTxInput' | 'AggregateTransferManyTxOutput' | 'AuthenticationCheckTxInput' | 'AuthenticationCheckTxOutput' | 'CreateAccessTokenTxInput' | 'CreateAccessTokenTxOutput' | 'CreateContractTxInput' | 'CreateContractTxOutput' | 'CreateDepositTxInput' | 'CreateDepositTxOutput' | 'CreateDistributionTxInput' | 'CreateDistributionTxOutput' | 'CreateTokenTxInput' | 'CreateTokenTxOutput' | 'CreateTransferTxInput' | 'CreateTransferTxOutput' | 'CreateTransferGroupTxInput' | 'CreateTransferGroupTxOutput' | 'CreateTransferManyTxInput' | 'CreateTransferManyTxOutput' | 'CreateWalletTxInput' | 'CreateWalletTxOutput' | 'CreateWithdrawalTxInput' | 'CreateWithdrawalTxOutput' | 'ExportDatabaseTxInput' | 'ExportDatabaseTxOutput' | 'FindBalanceManyTxInput' | 'FindBalanceManyTxOutput' | 'FindTokenManyTxInput' | 'FindTokenManyTxOutput' | 'FindTransferGroupManyTxInput' | 'FindTransferGroupManyTxOutput' | 'FindTransferManyTxInput' | 'FindTransferManyTxOutput' | 'FindWalletManyTxInput' | 'FindWalletManyTxOutput' | 'FinishTransactionTxInput' | 'FinishTransactionTxOutput' | 'GetBalanceTxInput' | 'GetBalanceTxOutput' | 'GetBalanceHistoryTxInput' | 'GetBalanceHistoryTxOutput' | 'GetDatabaseExportProgressTxInput' | 'GetDatabaseExportProgressTxOutput' | 'GetDatabaseImportProgressTxInput' | 'GetDatabaseImportProgressTxOutput' | 'GetFlagsTxInput' | 'GetFlagsTxOutput' | 'GetStatisticsTxInput' | 'GetStatisticsTxOutput' | 'GetTokenTxInput' | 'GetTokenTxOutput' | 'GetTokenManyTxInput' | 'GetTokenManyTxOutput' | 'GetTransferTxInput' | 'GetTransferTxOutput' | 'GetTransferGroupTxInput' | 'GetTransferGroupTxOutput' | 'GetWalletTxInput' | 'GetWalletTxOutput' | 'GetWalletManyTxInput' | 'GetWalletManyTxOutput' | 'ImportActionsTxInput' | 'ImportActionsTxOptions' | 'ImportActionsTxStreamChunk' | 'ImportActionsTxOutput' | 'ImportDatabaseTxInput' | 'ImportDatabaseTxOutput' | 'ListDatabaseExportsTxInput' | 'ListDatabaseExportsTxOutput' | 'QueryTxInput' | 'QueryTxOutput' | 'QueryLogsTxInput' | 'QueryLogsTxOutput' | 'ResetDatabaseTxInput' | 'ResetDatabaseTxOutput' | 'ReverseTransferTxInput' | 'ReverseTransferTxOutput' | 'ReverseTransferGroupTxInput' | 'ReverseTransferGroupTxOutput' | 'ReverseTransferGroupManyTxInput' | 'ReverseTransferGroupManyTxOutput' | 'ReverseTransferManyTxInput' | 'ReverseTransferManyTxOutput' | 'SetFlagsTxInput' | 'SetFlagsTxOutput' | 'StartTransactionTxInput' | 'StartTransactionTxOutput' | 'TxConsts' | 'UpdateTokenTxInput' | 'UpdateTokenTxOutput' | 'UpdateTransferTxInput' | 'UpdateTransferTxOutput' | 'UpdateTransferGroupTxInput' | 'UpdateTransferGroupTxOutput' | 'UpdateTransferGroupManyTxInput' | 'UpdateTransferGroupManyTxOutput' | 'UpdateTransferManyTxInput' | 'UpdateTransferManyTxOutput' | 'UpdateWalletTxInput' | 'UpdateWalletTxOutput';
12
12
  /**
13
13
  * @internal
14
14
  */
@@ -179,8 +179,8 @@ export declare enum SchemaNames {
179
179
  ImportActionsTxOutput = 'ImportActionsTxOutput',
180
180
  ImportDatabaseTxInput = 'ImportDatabaseTxInput',
181
181
  ImportDatabaseTxOutput = 'ImportDatabaseTxOutput',
182
- ListDatabaseBackupsTxInput = 'ListDatabaseBackupsTxInput',
183
- ListDatabaseBackupsTxOutput = 'ListDatabaseBackupsTxOutput',
182
+ ListDatabaseExportsTxInput = 'ListDatabaseExportsTxInput',
183
+ ListDatabaseExportsTxOutput = 'ListDatabaseExportsTxOutput',
184
184
  QueryTxInput = 'QueryTxInput',
185
185
  QueryTxOutput = 'QueryTxOutput',
186
186
  QueryLogsTxInput = 'QueryLogsTxInput',
@@ -22,13 +22,17 @@ export interface GetDatabaseExportProgressTxOutput {
22
22
  /**
23
23
  * Size of a exported backup in MB
24
24
  */
25
- size?: number;
25
+ size: number;
26
26
  /**
27
27
  * Boolean indicating if export has started
28
28
  */
29
- started?: boolean;
29
+ started: boolean;
30
30
  /**
31
31
  * Boolean indicating if export has finished
32
32
  */
33
- finished?: boolean;
33
+ finished: boolean;
34
+ /**
35
+ * Error message in case one occurs
36
+ */
37
+ error?: string;
34
38
  }
@@ -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
  }
@@ -133,10 +133,10 @@ export * from './import-database/import-database.enums';
133
133
  interface ImportDatabaseTxInputSchema { [key: string]: any; }
134
134
  interface ImportDatabaseTxOutputSchema { [key: string]: any; }
135
135
  export { ImportDatabaseTxInputSchema, ImportDatabaseTxOutputSchema };
136
- export * from './list-database-backups/list-database-backups.enums';
137
- interface ListDatabaseBackupsTxInputSchema { [key: string]: any; }
138
- interface ListDatabaseBackupsTxOutputSchema { [key: string]: any; }
139
- export { ListDatabaseBackupsTxInputSchema, ListDatabaseBackupsTxOutputSchema };
136
+ export * from './list-database-exports/list-database-exports.enums';
137
+ interface ListDatabaseExportsTxInputSchema { [key: string]: any; }
138
+ interface ListDatabaseExportsTxOutputSchema { [key: string]: any; }
139
+ export { ListDatabaseExportsTxInputSchema, ListDatabaseExportsTxOutputSchema };
140
140
  export * from './query/query.enums';
141
141
  interface QueryTxInputSchema { [key: string]: any; }
142
142
  interface QueryTxOutputSchema { [key: string]: any; }
@@ -231,7 +231,7 @@ export declare const APIValidators: {
231
231
  getWalletMany: import("../lib/validator").ValidationFunction;
232
232
  importActions: import("../lib/validator").ValidationFunction;
233
233
  importDatabase: import("../lib/validator").ValidationFunction;
234
- listDatabaseBackups: import("../lib/validator").ValidationFunction;
234
+ listDatabaseExports: import("../lib/validator").ValidationFunction;
235
235
  query: import("../lib/validator").ValidationFunction;
236
236
  queryLogs: import("../lib/validator").ValidationFunction;
237
237
  resetDatabase: import("../lib/validator").ValidationFunction;
@@ -282,7 +282,7 @@ export declare enum APIFunctions {
282
282
  getWalletMany = 'getWalletMany',
283
283
  importActions = 'importActions',
284
284
  importDatabase = 'importDatabase',
285
- listDatabaseBackups = 'listDatabaseBackups',
285
+ listDatabaseExports = 'listDatabaseExports',
286
286
  query = 'query',
287
287
  queryLogs = 'queryLogs',
288
288
  resetDatabase = 'resetDatabase',
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Input for listDatabaseExports
3
+ *
4
+ * @category Input
5
+ */
6
+ export interface ListDatabaseExportsTxInput {
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
+ }
19
+ /**
20
+ * Output of listDatabaseExports
21
+ *
22
+ * @category Output
23
+ */
24
+ export interface ListDatabaseExportsTxOutput {
25
+ exports: DatabaseExport[];
26
+ }
@@ -0,0 +1,4 @@
1
+ import { ListDatabaseExportsTxInput } from './list-database-exports.enums';
2
+ export declare function isListDatabaseExportsTxInput(input: unknown): input is ListDatabaseExportsTxInput;
3
+ import { ListDatabaseExportsTxOutput } from './list-database-exports.enums';
4
+ export declare function isListDatabaseExportsTxOutput(input: unknown): input is ListDatabaseExportsTxOutput;