wapi-client 0.5.1 → 0.6.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.
@@ -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, FindBalanceManyTxInput, FindBalanceManyTxOutput, FindTokenManyTxInput, FindTokenManyTxOutput, FindTransferGroupManyTxInput, FindTransferGroupManyTxOutput, FindTransferManyTxInput, FindTransferManyTxOutput, FindWalletManyTxInput, FindWalletManyTxOutput, FinishTransactionTxInput, FinishTransactionTxOutput, GetBalanceTxInput, GetBalanceTxOutput, GetBalanceHistoryTxInput, GetBalanceHistoryTxOutput, GetFlagsTxInput, GetFlagsTxOutput, GetStatisticsTxInput, GetStatisticsTxOutput, GetTokenTxInput, GetTokenTxOutput, GetTokenManyTxInput, GetTokenManyTxOutput, GetTransferTxInput, GetTransferTxOutput, GetTransferGroupTxInput, GetTransferGroupTxOutput, GetWalletTxInput, GetWalletTxOutput, GetWalletManyTxInput, GetWalletManyTxOutput, ImportActionsTxInput, ImportActionsTxOutput, ImportActionsTxOptions, 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, 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';
8
8
  export interface ClientHooks {
9
9
  connected?: (socId: undefined | string) => void;
10
10
  disconnected?: () => void;
@@ -119,6 +119,13 @@ export declare class BaseClient {
119
119
  *
120
120
  */
121
121
  createWithdrawal(input: CreateWithdrawalTxInput): StreamPromise<CreateWithdrawalTxOutput>;
122
+ /**
123
+ *
124
+ * @param {ExportDatabaseTxInput} input
125
+ * @returns {StreamPromise<ExportDatabaseTxOutput>}
126
+ *
127
+ */
128
+ exportDatabase(input: ExportDatabaseTxInput): StreamPromise<ExportDatabaseTxOutput>;
122
129
  /**
123
130
  *
124
131
  * @param {FindBalanceManyTxInput} input
@@ -175,6 +182,20 @@ export declare class BaseClient {
175
182
  *
176
183
  */
177
184
  getBalanceHistory(input: GetBalanceHistoryTxInput): StreamPromise<GetBalanceHistoryTxOutput>;
185
+ /**
186
+ *
187
+ * @param {GetDatabaseExportProgressTxInput} input
188
+ * @returns {StreamPromise<GetDatabaseExportProgressTxOutput>}
189
+ *
190
+ */
191
+ getDatabaseExportProgress(input: GetDatabaseExportProgressTxInput): StreamPromise<GetDatabaseExportProgressTxOutput>;
192
+ /**
193
+ *
194
+ * @param {GetDatabaseImportProgressTxInput} input
195
+ * @returns {StreamPromise<GetDatabaseImportProgressTxOutput>}
196
+ *
197
+ */
198
+ getDatabaseImportProgress(input: GetDatabaseImportProgressTxInput): StreamPromise<GetDatabaseImportProgressTxOutput>;
178
199
  /**
179
200
  *
180
201
  * @param {GetFlagsTxInput} input
@@ -246,6 +267,20 @@ export declare class BaseClient {
246
267
  *
247
268
  */
248
269
  importActionsStream<PreTransformChunk>(input?: ImportActionsTxOptions, transform?: TransformStream<PreTransformChunk, ImportActionsTxInput>): StreamPromiseInput<ImportActionsTxOutput, PreTransformChunk>;
270
+ /**
271
+ *
272
+ * @param {ImportDatabaseTxInput} input
273
+ * @returns {StreamPromise<ImportDatabaseTxOutput>}
274
+ *
275
+ */
276
+ importDatabase(input: ImportDatabaseTxInput): StreamPromise<ImportDatabaseTxOutput>;
277
+ /**
278
+ *
279
+ * @param {ListDatabaseBackupsTxInput} input
280
+ * @returns {StreamPromise<ListDatabaseBackupsTxOutput>}
281
+ *
282
+ */
283
+ listDatabaseBackups(input: ListDatabaseBackupsTxInput): StreamPromise<ListDatabaseBackupsTxOutput>;
249
284
  /**
250
285
  *
251
286
  * @param {QueryTxInput} input
package/dist/client.d.ts CHANGED
@@ -176,6 +176,21 @@ export declare class Client {
176
176
  /**
177
177
  *
178
178
  *
179
+ * ```javascript
180
+ *
181
+ * const response = await wapiClient.createAccessToken({
182
+ * token: {
183
+ * type: 'limited',
184
+ * scopes: ['getBalance'],
185
+ * filters: {
186
+ * wallet_foreign: 'user-1-wallet',
187
+ * token_foreign: 'EUR',
188
+ * },
189
+ * expiresIn: 60,
190
+ * }
191
+ * });
192
+ *
193
+ * ```
179
194
  *
180
195
  * @param {CreateAccessTokenFnInput} [input]
181
196
  * @param {CreateAccessTokenFnOptions} [options]
@@ -310,7 +310,39 @@ export declare enum ERROR_MESSAGES {
310
310
  /**
311
311
  * Method is disabled
312
312
  */
313
- METHOD_DISABLED = 'METHOD_DISABLED'
313
+ METHOD_DISABLED = 'METHOD_DISABLED',
314
+ /**
315
+ * Unexpected error while importing database backup
316
+ */
317
+ DATABASE_IMPORT_UNEXPECTED_ERROR = 'DATABASE_IMPORT_UNEXPECTED_ERROR',
318
+ /**
319
+ * Database import file not found
320
+ */
321
+ DATABASE_IMPORT_NOT_FOUND = 'DATABASE_IMPORT_NOT_FOUND',
322
+ /**
323
+ * Unexpected error while creating database backup
324
+ */
325
+ DATABASE_BACKUP_CREATE_UNEXPECTED_ERROR = 'DATABASE_BACKUP_CREATE_UNEXPECTED_ERROR',
326
+ /**
327
+ * Unexpected error while listing database backups
328
+ */
329
+ LIST_DATABASE_BACKUPS_UNEXPECTED_ERROR = 'LIST_DATABASE_BACKUPS_UNEXPECTED_ERROR',
330
+ /**
331
+ * Import database progress not found
332
+ */
333
+ IMPORT_DATABASE_PROGRESS_NOT_FOUND = 'IMPORT_DATABASE_PROGRESS_NOT_FOUND',
334
+ /**
335
+ * Unexpected error while getting database import progress
336
+ */
337
+ IMPORT_DATABASE_PROGRESS_UNEXPECTED_ERROR = 'IMPORT_DATABASE_PROGRESS_UNEXPECTED_ERROR',
338
+ /**
339
+ * Database backup progress not found
340
+ */
341
+ DATABASE_BACKUP_PROGRESS_NOT_FOUND = 'DATABASE_BACKUP_PROGRESS_NOT_FOUND',
342
+ /**
343
+ * Unexpected error while getting database backup progress
344
+ */
345
+ DATABASE_BACKUP_PROGRESS_UNEXPECTED_ERROR = 'DATABASE_BACKUP_PROGRESS_UNEXPECTED_ERROR'
314
346
  }
315
347
  export declare const ErrorDescriptions: {
316
348
  [key in keyof typeof ERROR_MESSAGES]: string;
@@ -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' | 'FindBalanceManyTxInput' | 'FindBalanceManyTxOutput' | 'FindTokenManyTxInput' | 'FindTokenManyTxOutput' | 'FindTransferGroupManyTxInput' | 'FindTransferGroupManyTxOutput' | 'FindTransferManyTxInput' | 'FindTransferManyTxOutput' | 'FindWalletManyTxInput' | 'FindWalletManyTxOutput' | 'FinishTransactionTxInput' | 'FinishTransactionTxOutput' | 'GetBalanceTxInput' | 'GetBalanceTxOutput' | 'GetBalanceHistoryTxInput' | 'GetBalanceHistoryTxOutput' | 'GetFlagsTxInput' | 'GetFlagsTxOutput' | 'GetStatisticsTxInput' | 'GetStatisticsTxOutput' | 'GetTokenTxInput' | 'GetTokenTxOutput' | 'GetTokenManyTxInput' | 'GetTokenManyTxOutput' | 'GetTransferTxInput' | 'GetTransferTxOutput' | 'GetTransferGroupTxInput' | 'GetTransferGroupTxOutput' | 'GetWalletTxInput' | 'GetWalletTxOutput' | 'GetWalletManyTxInput' | 'GetWalletManyTxOutput' | 'ImportActionsTxInput' | 'ImportActionsTxOptions' | 'ImportActionsTxStreamChunk' | 'ImportActionsTxOutput' | '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' | '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';
12
12
  /**
13
13
  * @internal
14
14
  */
@@ -135,6 +135,8 @@ export declare enum SchemaNames {
135
135
  CreateWalletTxOutput = 'CreateWalletTxOutput',
136
136
  CreateWithdrawalTxInput = 'CreateWithdrawalTxInput',
137
137
  CreateWithdrawalTxOutput = 'CreateWithdrawalTxOutput',
138
+ ExportDatabaseTxInput = 'ExportDatabaseTxInput',
139
+ ExportDatabaseTxOutput = 'ExportDatabaseTxOutput',
138
140
  FindBalanceManyTxInput = 'FindBalanceManyTxInput',
139
141
  FindBalanceManyTxOutput = 'FindBalanceManyTxOutput',
140
142
  FindTokenManyTxInput = 'FindTokenManyTxInput',
@@ -151,6 +153,10 @@ export declare enum SchemaNames {
151
153
  GetBalanceTxOutput = 'GetBalanceTxOutput',
152
154
  GetBalanceHistoryTxInput = 'GetBalanceHistoryTxInput',
153
155
  GetBalanceHistoryTxOutput = 'GetBalanceHistoryTxOutput',
156
+ GetDatabaseExportProgressTxInput = 'GetDatabaseExportProgressTxInput',
157
+ GetDatabaseExportProgressTxOutput = 'GetDatabaseExportProgressTxOutput',
158
+ GetDatabaseImportProgressTxInput = 'GetDatabaseImportProgressTxInput',
159
+ GetDatabaseImportProgressTxOutput = 'GetDatabaseImportProgressTxOutput',
154
160
  GetFlagsTxInput = 'GetFlagsTxInput',
155
161
  GetFlagsTxOutput = 'GetFlagsTxOutput',
156
162
  GetStatisticsTxInput = 'GetStatisticsTxInput',
@@ -171,6 +177,10 @@ export declare enum SchemaNames {
171
177
  ImportActionsTxOptions = 'ImportActionsTxOptions',
172
178
  ImportActionsTxStreamChunk = 'ImportActionsTxStreamChunk',
173
179
  ImportActionsTxOutput = 'ImportActionsTxOutput',
180
+ ImportDatabaseTxInput = 'ImportDatabaseTxInput',
181
+ ImportDatabaseTxOutput = 'ImportDatabaseTxOutput',
182
+ ListDatabaseBackupsTxInput = 'ListDatabaseBackupsTxInput',
183
+ ListDatabaseBackupsTxOutput = 'ListDatabaseBackupsTxOutput',
174
184
  QueryTxInput = 'QueryTxInput',
175
185
  QueryTxOutput = 'QueryTxOutput',
176
186
  QueryLogsTxInput = 'QueryLogsTxInput',
@@ -0,0 +1,20 @@
1
+ export declare type ExportDatabaseTxInputStringFields = 'export_name';
2
+ /**
3
+ * Input for exportDatabase
4
+ *
5
+ * @category Input
6
+ */
7
+ export interface ExportDatabaseTxInput {
8
+ /**
9
+ * Name of the created export file
10
+ */
11
+ export_name?: string;
12
+ }
13
+ /**
14
+ * Output of exportDatabase
15
+ *
16
+ * @category Output
17
+ */
18
+ export interface ExportDatabaseTxOutput {
19
+ message?: string;
20
+ }
@@ -0,0 +1,4 @@
1
+ import { ExportDatabaseTxInput } from './export-database.enums';
2
+ export declare function isExportDatabaseTxInput(input: unknown): input is ExportDatabaseTxInput;
3
+ import { ExportDatabaseTxOutput } from './export-database.enums';
4
+ export declare function isExportDatabaseTxOutput(input: unknown): input is ExportDatabaseTxOutput;
@@ -0,0 +1,34 @@
1
+ import { ITxGeneralOptions } from '../tx-consts.enums';
2
+ /**
3
+ * Optional flags for input
4
+ */
5
+ export interface GetDatabaseBackupProgressAdditionalOptions {
6
+ }
7
+ export declare type GetDatabaseBackupProgressTxOptions = ITxGeneralOptions & GetDatabaseBackupProgressAdditionalOptions;
8
+ /**
9
+ * Input for getDatabaseExportProgress
10
+ *
11
+ * @category Input
12
+ */
13
+ export interface GetDatabaseExportProgressTxInput {
14
+ options?: GetDatabaseBackupProgressTxOptions;
15
+ }
16
+ /**
17
+ * Output of getDatabaseExportProgress
18
+ *
19
+ * @category Output
20
+ */
21
+ export interface GetDatabaseExportProgressTxOutput {
22
+ /**
23
+ * Size of a exported backup in MB
24
+ */
25
+ size?: number;
26
+ /**
27
+ * Boolean indicating if export has started
28
+ */
29
+ started?: boolean;
30
+ /**
31
+ * Boolean indicating if export has finished
32
+ */
33
+ finished?: boolean;
34
+ }
@@ -0,0 +1,4 @@
1
+ import { GetDatabaseExportProgressTxInput } from './get-database-export-progress.enums';
2
+ export declare function isGetDatabaseExportProgressTxInput(input: unknown): input is GetDatabaseExportProgressTxInput;
3
+ import { GetDatabaseExportProgressTxOutput } from './get-database-export-progress.enums';
4
+ export declare function isGetDatabaseExportProgressTxOutput(input: unknown): input is GetDatabaseExportProgressTxOutput;
@@ -0,0 +1,21 @@
1
+ import { ITxGeneralOptions } from '../tx-consts.enums';
2
+ export declare type ImportDatabaseProgressTxOptions = ITxGeneralOptions;
3
+ /**
4
+ * Input for GetDatabaseImportProgress
5
+ *
6
+ * @category Input
7
+ */
8
+ export interface GetDatabaseImportProgressTxInput {
9
+ options?: ImportDatabaseProgressTxOptions;
10
+ }
11
+ /**
12
+ * Output of GetDatabaseImportProgress
13
+ *
14
+ * @category Output
15
+ */
16
+ export interface GetDatabaseImportProgressTxOutput {
17
+ /**
18
+ * Percentage of imported database
19
+ */
20
+ progress?: number;
21
+ }
@@ -0,0 +1,4 @@
1
+ import { GetDatabaseImportProgressTxInput } from './get-database-import-progress.enums';
2
+ export declare function isGetDatabaseImportProgressTxInput(input: unknown): input is GetDatabaseImportProgressTxInput;
3
+ import { GetDatabaseImportProgressTxOutput } from './get-database-import-progress.enums';
4
+ export declare function isGetDatabaseImportProgressTxOutput(input: unknown): input is GetDatabaseImportProgressTxOutput;
@@ -0,0 +1,17 @@
1
+ export declare type ImportDatabaseTxInputStringFields = 'name';
2
+ /**
3
+ * Input for importDatabase
4
+ *
5
+ * @category Input
6
+ */
7
+ export interface ImportDatabaseTxInput {
8
+ name?: string;
9
+ }
10
+ /**
11
+ * Output of importDatabase
12
+ *
13
+ * @category Output
14
+ */
15
+ export interface ImportDatabaseTxOutput {
16
+ message?: string;
17
+ }
@@ -0,0 +1,4 @@
1
+ import { ImportDatabaseTxInput } from './import-database.enums';
2
+ export declare function isImportDatabaseTxInput(input: unknown): input is ImportDatabaseTxInput;
3
+ import { ImportDatabaseTxOutput } from './import-database.enums';
4
+ export declare function isImportDatabaseTxOutput(input: unknown): input is ImportDatabaseTxOutput;
@@ -49,6 +49,10 @@ export * from './create-withdrawal/create-withdrawal.enums';
49
49
  interface CreateWithdrawalTxInputSchema { [key: string]: any; }
50
50
  interface CreateWithdrawalTxOutputSchema { [key: string]: any; }
51
51
  export { CreateWithdrawalTxInputSchema, CreateWithdrawalTxOutputSchema };
52
+ export * from './export-database/export-database.enums';
53
+ interface ExportDatabaseTxInputSchema { [key: string]: any; }
54
+ interface ExportDatabaseTxOutputSchema { [key: string]: any; }
55
+ export { ExportDatabaseTxInputSchema, ExportDatabaseTxOutputSchema };
52
56
  export * from './find-balance-many/find-balance-many.enums';
53
57
  interface FindBalanceManyTxInputSchema { [key: string]: any; }
54
58
  interface FindBalanceManyTxOutputSchema { [key: string]: any; }
@@ -81,6 +85,14 @@ export * from './get-balance-history/get-balance-history.enums';
81
85
  interface GetBalanceHistoryTxInputSchema { [key: string]: any; }
82
86
  interface GetBalanceHistoryTxOutputSchema { [key: string]: any; }
83
87
  export { GetBalanceHistoryTxInputSchema, GetBalanceHistoryTxOutputSchema };
88
+ export * from './get-database-export-progress/get-database-export-progress.enums';
89
+ interface GetDatabaseExportProgressTxInputSchema { [key: string]: any; }
90
+ interface GetDatabaseExportProgressTxOutputSchema { [key: string]: any; }
91
+ export { GetDatabaseExportProgressTxInputSchema, GetDatabaseExportProgressTxOutputSchema, };
92
+ export * from './get-database-import-progress/get-database-import-progress.enums';
93
+ interface GetDatabaseImportProgressTxInputSchema { [key: string]: any; }
94
+ interface GetDatabaseImportProgressTxOutputSchema { [key: string]: any; }
95
+ export { GetDatabaseImportProgressTxInputSchema, GetDatabaseImportProgressTxOutputSchema, };
84
96
  export * from './get-flags/get-flags.enums';
85
97
  interface GetFlagsTxInputSchema { [key: string]: any; }
86
98
  interface GetFlagsTxOutputSchema { [key: string]: any; }
@@ -117,6 +129,14 @@ export * from './import-actions/import-actions.enums';
117
129
  interface ImportActionsTxInputSchema { [key: string]: any; }
118
130
  interface ImportActionsTxOutputSchema { [key: string]: any; }
119
131
  export { ImportActionsTxInputSchema, ImportActionsTxOutputSchema };
132
+ export * from './import-database/import-database.enums';
133
+ interface ImportDatabaseTxInputSchema { [key: string]: any; }
134
+ interface ImportDatabaseTxOutputSchema { [key: string]: any; }
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 };
120
140
  export * from './query/query.enums';
121
141
  interface QueryTxInputSchema { [key: string]: any; }
122
142
  interface QueryTxOutputSchema { [key: string]: any; }
@@ -190,6 +210,7 @@ export declare const APIValidators: {
190
210
  createTransferMany: import("../lib/validator").ValidationFunction;
191
211
  createWallet: import("../lib/validator").ValidationFunction;
192
212
  createWithdrawal: import("../lib/validator").ValidationFunction;
213
+ exportDatabase: import("../lib/validator").ValidationFunction;
193
214
  findBalanceMany: import("../lib/validator").ValidationFunction;
194
215
  findTokenMany: import("../lib/validator").ValidationFunction;
195
216
  findTransferGroupMany: import("../lib/validator").ValidationFunction;
@@ -198,6 +219,8 @@ export declare const APIValidators: {
198
219
  finishTransaction: import("../lib/validator").ValidationFunction;
199
220
  getBalance: import("../lib/validator").ValidationFunction;
200
221
  getBalanceHistory: import("../lib/validator").ValidationFunction;
222
+ getDatabaseExportProgress: import("../lib/validator").ValidationFunction;
223
+ getDatabaseImportProgress: import("../lib/validator").ValidationFunction;
201
224
  getFlags: import("../lib/validator").ValidationFunction;
202
225
  getStatistics: import("../lib/validator").ValidationFunction;
203
226
  getToken: import("../lib/validator").ValidationFunction;
@@ -207,6 +230,8 @@ export declare const APIValidators: {
207
230
  getWallet: import("../lib/validator").ValidationFunction;
208
231
  getWalletMany: import("../lib/validator").ValidationFunction;
209
232
  importActions: import("../lib/validator").ValidationFunction;
233
+ importDatabase: import("../lib/validator").ValidationFunction;
234
+ listDatabaseBackups: import("../lib/validator").ValidationFunction;
210
235
  query: import("../lib/validator").ValidationFunction;
211
236
  queryLogs: import("../lib/validator").ValidationFunction;
212
237
  resetDatabase: import("../lib/validator").ValidationFunction;
@@ -236,6 +261,7 @@ export declare enum APIFunctions {
236
261
  createTransferMany = 'createTransferMany',
237
262
  createWallet = 'createWallet',
238
263
  createWithdrawal = 'createWithdrawal',
264
+ exportDatabase = 'exportDatabase',
239
265
  findBalanceMany = 'findBalanceMany',
240
266
  findTokenMany = 'findTokenMany',
241
267
  findTransferGroupMany = 'findTransferGroupMany',
@@ -244,6 +270,8 @@ export declare enum APIFunctions {
244
270
  finishTransaction = 'finishTransaction',
245
271
  getBalance = 'getBalance',
246
272
  getBalanceHistory = 'getBalanceHistory',
273
+ getDatabaseExportProgress = 'getDatabaseExportProgress',
274
+ getDatabaseImportProgress = 'getDatabaseImportProgress',
247
275
  getFlags = 'getFlags',
248
276
  getStatistics = 'getStatistics',
249
277
  getToken = 'getToken',
@@ -253,6 +281,8 @@ export declare enum APIFunctions {
253
281
  getWallet = 'getWallet',
254
282
  getWalletMany = 'getWalletMany',
255
283
  importActions = 'importActions',
284
+ importDatabase = 'importDatabase',
285
+ listDatabaseBackups = 'listDatabaseBackups',
256
286
  query = 'query',
257
287
  queryLogs = 'queryLogs',
258
288
  resetDatabase = 'resetDatabase',
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Input for listDatabaseBackups
3
+ *
4
+ * @category Input
5
+ */
6
+ export interface ListDatabaseBackupsTxInput {
7
+ }
8
+ /**
9
+ * Output of listDatabaseBackups
10
+ *
11
+ * @category Output
12
+ */
13
+ export interface ListDatabaseBackupsTxOutput {
14
+ backups?: string[];
15
+ }
@@ -0,0 +1,4 @@
1
+ import { ListDatabaseBackupsTxInput } from './list-database-backups.enums';
2
+ export declare function isListDatabaseBackupsTxInput(input: unknown): input is ListDatabaseBackupsTxInput;
3
+ import { ListDatabaseBackupsTxOutput } from './list-database-backups.enums';
4
+ export declare function isListDatabaseBackupsTxOutput(input: unknown): input is ListDatabaseBackupsTxOutput;