wapi-client 0.5.1 → 0.6.0
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/api/base-client.d.ts +36 -1
- package/dist/lib/errors.d.ts +33 -1
- package/dist/lib/validator.d.ts +11 -1
- package/dist/txs/create-database-backup/create-database-backup.enums.d.ts +20 -0
- package/dist/txs/create-database-backup/create-database-backup.guards.d.ts +4 -0
- package/dist/txs/get-database-backup-progress/get-database-backup-progress.enums.d.ts +26 -0
- package/dist/txs/get-database-backup-progress/get-database-backup-progress.guards.d.ts +4 -0
- package/dist/txs/import-database-backup/import-database-backup.enums.d.ts +17 -0
- package/dist/txs/import-database-backup/import-database-backup.guards.d.ts +4 -0
- package/dist/txs/import-database-progress/import-database-progress.enums.d.ts +21 -0
- package/dist/txs/import-database-progress/import-database-progress.guards.d.ts +4 -0
- package/dist/txs/index.d.ts +30 -0
- package/dist/txs/list-database-backups/list-database-backups.enums.d.ts +15 -0
- package/dist/txs/list-database-backups/list-database-backups.guards.d.ts +4 -0
- package/dist/wapi-client.cjs.development.js +1628 -1275
- package/dist/wapi-client.cjs.js +10 -10
- package/package.json +1 -1
|
@@ -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, CreateDatabaseBackupTxInput, CreateDatabaseBackupTxOutput, 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, GetDatabaseBackupProgressTxInput, GetDatabaseBackupProgressTxOutput, GetFlagsTxInput, GetFlagsTxOutput, GetStatisticsTxInput, GetStatisticsTxOutput, GetTokenTxInput, GetTokenTxOutput, GetTokenManyTxInput, GetTokenManyTxOutput, GetTransferTxInput, GetTransferTxOutput, GetTransferGroupTxInput, GetTransferGroupTxOutput, GetWalletTxInput, GetWalletTxOutput, GetWalletManyTxInput, GetWalletManyTxOutput, ImportActionsTxInput, ImportActionsTxOutput, ImportActionsTxOptions, ImportDatabaseBackupTxInput, ImportDatabaseBackupTxOutput, ImportDatabaseProgressTxInput, ImportDatabaseProgressTxOutput, 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;
|
|
@@ -63,6 +63,13 @@ export declare class BaseClient {
|
|
|
63
63
|
*
|
|
64
64
|
*/
|
|
65
65
|
createContract(input: CreateContractTxInput): StreamPromise<CreateContractTxOutput>;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @param {CreateDatabaseBackupTxInput} input
|
|
69
|
+
* @returns {StreamPromise<CreateDatabaseBackupTxOutput>}
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
createDatabaseBackup(input: CreateDatabaseBackupTxInput): StreamPromise<CreateDatabaseBackupTxOutput>;
|
|
66
73
|
/**
|
|
67
74
|
*
|
|
68
75
|
* @param {CreateDepositTxInput} input
|
|
@@ -175,6 +182,13 @@ export declare class BaseClient {
|
|
|
175
182
|
*
|
|
176
183
|
*/
|
|
177
184
|
getBalanceHistory(input: GetBalanceHistoryTxInput): StreamPromise<GetBalanceHistoryTxOutput>;
|
|
185
|
+
/**
|
|
186
|
+
*
|
|
187
|
+
* @param {GetDatabaseBackupProgressTxInput} input
|
|
188
|
+
* @returns {StreamPromise<GetDatabaseBackupProgressTxOutput>}
|
|
189
|
+
*
|
|
190
|
+
*/
|
|
191
|
+
getDatabaseBackupProgress(input: GetDatabaseBackupProgressTxInput): StreamPromise<GetDatabaseBackupProgressTxOutput>;
|
|
178
192
|
/**
|
|
179
193
|
*
|
|
180
194
|
* @param {GetFlagsTxInput} input
|
|
@@ -246,6 +260,27 @@ export declare class BaseClient {
|
|
|
246
260
|
*
|
|
247
261
|
*/
|
|
248
262
|
importActionsStream<PreTransformChunk>(input?: ImportActionsTxOptions, transform?: TransformStream<PreTransformChunk, ImportActionsTxInput>): StreamPromiseInput<ImportActionsTxOutput, PreTransformChunk>;
|
|
263
|
+
/**
|
|
264
|
+
*
|
|
265
|
+
* @param {ImportDatabaseBackupTxInput} input
|
|
266
|
+
* @returns {StreamPromise<ImportDatabaseBackupTxOutput>}
|
|
267
|
+
*
|
|
268
|
+
*/
|
|
269
|
+
importDatabaseBackup(input: ImportDatabaseBackupTxInput): StreamPromise<ImportDatabaseBackupTxOutput>;
|
|
270
|
+
/**
|
|
271
|
+
*
|
|
272
|
+
* @param {ImportDatabaseProgressTxInput} input
|
|
273
|
+
* @returns {StreamPromise<ImportDatabaseProgressTxOutput>}
|
|
274
|
+
*
|
|
275
|
+
*/
|
|
276
|
+
importDatabaseProgress(input: ImportDatabaseProgressTxInput): StreamPromise<ImportDatabaseProgressTxOutput>;
|
|
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/lib/errors.d.ts
CHANGED
|
@@ -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;
|
package/dist/lib/validator.d.ts
CHANGED
|
@@ -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' | 'CreateDatabaseBackupTxInput' | 'CreateDatabaseBackupTxOutput' | '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' | 'GetDatabaseBackupProgressTxInput' | 'GetDatabaseBackupProgressTxOutput' | 'GetFlagsTxInput' | 'GetFlagsTxOutput' | 'GetStatisticsTxInput' | 'GetStatisticsTxOutput' | 'GetTokenTxInput' | 'GetTokenTxOutput' | 'GetTokenManyTxInput' | 'GetTokenManyTxOutput' | 'GetTransferTxInput' | 'GetTransferTxOutput' | 'GetTransferGroupTxInput' | 'GetTransferGroupTxOutput' | 'GetWalletTxInput' | 'GetWalletTxOutput' | 'GetWalletManyTxInput' | 'GetWalletManyTxOutput' | 'ImportActionsTxInput' | 'ImportActionsTxOptions' | 'ImportActionsTxStreamChunk' | 'ImportActionsTxOutput' | 'ImportDatabaseBackupTxInput' | 'ImportDatabaseBackupTxOutput' | 'ImportDatabaseProgressTxInput' | 'ImportDatabaseProgressTxOutput' | '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
|
*/
|
|
@@ -119,6 +119,8 @@ export declare enum SchemaNames {
|
|
|
119
119
|
CreateAccessTokenTxOutput = 'CreateAccessTokenTxOutput',
|
|
120
120
|
CreateContractTxInput = 'CreateContractTxInput',
|
|
121
121
|
CreateContractTxOutput = 'CreateContractTxOutput',
|
|
122
|
+
CreateDatabaseBackupTxInput = 'CreateDatabaseBackupTxInput',
|
|
123
|
+
CreateDatabaseBackupTxOutput = 'CreateDatabaseBackupTxOutput',
|
|
122
124
|
CreateDepositTxInput = 'CreateDepositTxInput',
|
|
123
125
|
CreateDepositTxOutput = 'CreateDepositTxOutput',
|
|
124
126
|
CreateDistributionTxInput = 'CreateDistributionTxInput',
|
|
@@ -151,6 +153,8 @@ export declare enum SchemaNames {
|
|
|
151
153
|
GetBalanceTxOutput = 'GetBalanceTxOutput',
|
|
152
154
|
GetBalanceHistoryTxInput = 'GetBalanceHistoryTxInput',
|
|
153
155
|
GetBalanceHistoryTxOutput = 'GetBalanceHistoryTxOutput',
|
|
156
|
+
GetDatabaseBackupProgressTxInput = 'GetDatabaseBackupProgressTxInput',
|
|
157
|
+
GetDatabaseBackupProgressTxOutput = 'GetDatabaseBackupProgressTxOutput',
|
|
154
158
|
GetFlagsTxInput = 'GetFlagsTxInput',
|
|
155
159
|
GetFlagsTxOutput = 'GetFlagsTxOutput',
|
|
156
160
|
GetStatisticsTxInput = 'GetStatisticsTxInput',
|
|
@@ -171,6 +175,12 @@ export declare enum SchemaNames {
|
|
|
171
175
|
ImportActionsTxOptions = 'ImportActionsTxOptions',
|
|
172
176
|
ImportActionsTxStreamChunk = 'ImportActionsTxStreamChunk',
|
|
173
177
|
ImportActionsTxOutput = 'ImportActionsTxOutput',
|
|
178
|
+
ImportDatabaseBackupTxInput = 'ImportDatabaseBackupTxInput',
|
|
179
|
+
ImportDatabaseBackupTxOutput = 'ImportDatabaseBackupTxOutput',
|
|
180
|
+
ImportDatabaseProgressTxInput = 'ImportDatabaseProgressTxInput',
|
|
181
|
+
ImportDatabaseProgressTxOutput = 'ImportDatabaseProgressTxOutput',
|
|
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 CreateDatabaseBackupTxInputStringFields = 'export_name';
|
|
2
|
+
/**
|
|
3
|
+
* Input for createDatabaseBackup
|
|
4
|
+
*
|
|
5
|
+
* @category Input
|
|
6
|
+
*/
|
|
7
|
+
export interface CreateDatabaseBackupTxInput {
|
|
8
|
+
/**
|
|
9
|
+
* Name of the created export file
|
|
10
|
+
*/
|
|
11
|
+
export_name?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Output of createDatabaseBackup
|
|
15
|
+
*
|
|
16
|
+
* @category Output
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateDatabaseBackupTxOutput {
|
|
19
|
+
message?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CreateDatabaseBackupTxInput } from './create-database-backup.enums';
|
|
2
|
+
export declare function isCreateDatabaseBackupTxInput(input: unknown): input is CreateDatabaseBackupTxInput;
|
|
3
|
+
import { CreateDatabaseBackupTxOutput } from './create-database-backup.enums';
|
|
4
|
+
export declare function isCreateDatabaseBackupTxOutput(input: unknown): input is CreateDatabaseBackupTxOutput;
|
|
@@ -0,0 +1,26 @@
|
|
|
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 getDatabaseBackupProgress
|
|
10
|
+
*
|
|
11
|
+
* @category Input
|
|
12
|
+
*/
|
|
13
|
+
export interface GetDatabaseBackupProgressTxInput {
|
|
14
|
+
options?: GetDatabaseBackupProgressTxOptions;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Output of getDatabaseBackupProgress
|
|
18
|
+
*
|
|
19
|
+
* @category Output
|
|
20
|
+
*/
|
|
21
|
+
export interface GetDatabaseBackupProgressTxOutput {
|
|
22
|
+
/**
|
|
23
|
+
* Size of a exported backup in MB
|
|
24
|
+
*/
|
|
25
|
+
size?: number;
|
|
26
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { GetDatabaseBackupProgressTxInput } from './get-database-backup-progress.enums';
|
|
2
|
+
export declare function isGetDatabaseBackupProgressTxInput(input: unknown): input is GetDatabaseBackupProgressTxInput;
|
|
3
|
+
import { GetDatabaseBackupProgressTxOutput } from './get-database-backup-progress.enums';
|
|
4
|
+
export declare function isGetDatabaseBackupProgressTxOutput(input: unknown): input is GetDatabaseBackupProgressTxOutput;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare type ImportDatabaseBackupTxInputStringFields = 'name';
|
|
2
|
+
/**
|
|
3
|
+
* Input for importDatabaseBackup
|
|
4
|
+
*
|
|
5
|
+
* @category Input
|
|
6
|
+
*/
|
|
7
|
+
export interface ImportDatabaseBackupTxInput {
|
|
8
|
+
name?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Output of importDatabaseBackup
|
|
12
|
+
*
|
|
13
|
+
* @category Output
|
|
14
|
+
*/
|
|
15
|
+
export interface ImportDatabaseBackupTxOutput {
|
|
16
|
+
message?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ImportDatabaseBackupTxInput } from './import-database-backup.enums';
|
|
2
|
+
export declare function isImportDatabaseBackupTxInput(input: unknown): input is ImportDatabaseBackupTxInput;
|
|
3
|
+
import { ImportDatabaseBackupTxOutput } from './import-database-backup.enums';
|
|
4
|
+
export declare function isImportDatabaseBackupTxOutput(input: unknown): input is ImportDatabaseBackupTxOutput;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ITxGeneralOptions } from '../tx-consts.enums';
|
|
2
|
+
export declare type ImportDatabaseProgressTxOptions = ITxGeneralOptions;
|
|
3
|
+
/**
|
|
4
|
+
* Input for importDatabaseProgress
|
|
5
|
+
*
|
|
6
|
+
* @category Input
|
|
7
|
+
*/
|
|
8
|
+
export interface ImportDatabaseProgressTxInput {
|
|
9
|
+
options?: ImportDatabaseProgressTxOptions;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Output of importDatabaseProgress
|
|
13
|
+
*
|
|
14
|
+
* @category Output
|
|
15
|
+
*/
|
|
16
|
+
export interface ImportDatabaseProgressTxOutput {
|
|
17
|
+
/**
|
|
18
|
+
* Percentage of imported database
|
|
19
|
+
*/
|
|
20
|
+
progress?: number;
|
|
21
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ImportDatabaseProgressTxInput } from './import-database-progress.enums';
|
|
2
|
+
export declare function isImportDatabaseProgressTxInput(input: unknown): input is ImportDatabaseProgressTxInput;
|
|
3
|
+
import { ImportDatabaseProgressTxOutput } from './import-database-progress.enums';
|
|
4
|
+
export declare function isImportDatabaseProgressTxOutput(input: unknown): input is ImportDatabaseProgressTxOutput;
|
package/dist/txs/index.d.ts
CHANGED
|
@@ -17,6 +17,10 @@ export * from './create-contract/create-contract.enums';
|
|
|
17
17
|
interface CreateContractTxInputSchema { [key: string]: any; }
|
|
18
18
|
interface CreateContractTxOutputSchema { [key: string]: any; }
|
|
19
19
|
export { CreateContractTxInputSchema, CreateContractTxOutputSchema };
|
|
20
|
+
export * from './create-database-backup/create-database-backup.enums';
|
|
21
|
+
interface CreateDatabaseBackupTxInputSchema { [key: string]: any; }
|
|
22
|
+
interface CreateDatabaseBackupTxOutputSchema { [key: string]: any; }
|
|
23
|
+
export { CreateDatabaseBackupTxInputSchema, CreateDatabaseBackupTxOutputSchema, };
|
|
20
24
|
export * from './create-deposit/create-deposit.enums';
|
|
21
25
|
interface CreateDepositTxInputSchema { [key: string]: any; }
|
|
22
26
|
interface CreateDepositTxOutputSchema { [key: string]: any; }
|
|
@@ -81,6 +85,10 @@ 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-backup-progress/get-database-backup-progress.enums';
|
|
89
|
+
interface GetDatabaseBackupProgressTxInputSchema { [key: string]: any; }
|
|
90
|
+
interface GetDatabaseBackupProgressTxOutputSchema { [key: string]: any; }
|
|
91
|
+
export { GetDatabaseBackupProgressTxInputSchema, GetDatabaseBackupProgressTxOutputSchema, };
|
|
84
92
|
export * from './get-flags/get-flags.enums';
|
|
85
93
|
interface GetFlagsTxInputSchema { [key: string]: any; }
|
|
86
94
|
interface GetFlagsTxOutputSchema { [key: string]: any; }
|
|
@@ -117,6 +125,18 @@ export * from './import-actions/import-actions.enums';
|
|
|
117
125
|
interface ImportActionsTxInputSchema { [key: string]: any; }
|
|
118
126
|
interface ImportActionsTxOutputSchema { [key: string]: any; }
|
|
119
127
|
export { ImportActionsTxInputSchema, ImportActionsTxOutputSchema };
|
|
128
|
+
export * from './import-database-backup/import-database-backup.enums';
|
|
129
|
+
interface ImportDatabaseBackupTxInputSchema { [key: string]: any; }
|
|
130
|
+
interface ImportDatabaseBackupTxOutputSchema { [key: string]: any; }
|
|
131
|
+
export { ImportDatabaseBackupTxInputSchema, ImportDatabaseBackupTxOutputSchema, };
|
|
132
|
+
export * from './import-database-progress/import-database-progress.enums';
|
|
133
|
+
interface ImportDatabaseProgressTxInputSchema { [key: string]: any; }
|
|
134
|
+
interface ImportDatabaseProgressTxOutputSchema { [key: string]: any; }
|
|
135
|
+
export { ImportDatabaseProgressTxInputSchema, ImportDatabaseProgressTxOutputSchema, };
|
|
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; }
|
|
@@ -182,6 +202,7 @@ export declare const APIValidators: {
|
|
|
182
202
|
authenticationCheck: import("../lib/validator").ValidationFunction;
|
|
183
203
|
createAccessToken: import("../lib/validator").ValidationFunction;
|
|
184
204
|
createContract: import("../lib/validator").ValidationFunction;
|
|
205
|
+
createDatabaseBackup: import("../lib/validator").ValidationFunction;
|
|
185
206
|
createDeposit: import("../lib/validator").ValidationFunction;
|
|
186
207
|
createDistribution: import("../lib/validator").ValidationFunction;
|
|
187
208
|
createToken: import("../lib/validator").ValidationFunction;
|
|
@@ -198,6 +219,7 @@ 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
|
+
getDatabaseBackupProgress: import("../lib/validator").ValidationFunction;
|
|
201
223
|
getFlags: import("../lib/validator").ValidationFunction;
|
|
202
224
|
getStatistics: import("../lib/validator").ValidationFunction;
|
|
203
225
|
getToken: import("../lib/validator").ValidationFunction;
|
|
@@ -207,6 +229,9 @@ export declare const APIValidators: {
|
|
|
207
229
|
getWallet: import("../lib/validator").ValidationFunction;
|
|
208
230
|
getWalletMany: import("../lib/validator").ValidationFunction;
|
|
209
231
|
importActions: import("../lib/validator").ValidationFunction;
|
|
232
|
+
importDatabaseBackup: import("../lib/validator").ValidationFunction;
|
|
233
|
+
importDatabaseProgress: 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;
|
|
@@ -228,6 +253,7 @@ export declare enum APIFunctions {
|
|
|
228
253
|
authenticationCheck = 'authenticationCheck',
|
|
229
254
|
createAccessToken = 'createAccessToken',
|
|
230
255
|
createContract = 'createContract',
|
|
256
|
+
createDatabaseBackup = 'createDatabaseBackup',
|
|
231
257
|
createDeposit = 'createDeposit',
|
|
232
258
|
createDistribution = 'createDistribution',
|
|
233
259
|
createToken = 'createToken',
|
|
@@ -244,6 +270,7 @@ export declare enum APIFunctions {
|
|
|
244
270
|
finishTransaction = 'finishTransaction',
|
|
245
271
|
getBalance = 'getBalance',
|
|
246
272
|
getBalanceHistory = 'getBalanceHistory',
|
|
273
|
+
getDatabaseBackupProgress = 'getDatabaseBackupProgress',
|
|
247
274
|
getFlags = 'getFlags',
|
|
248
275
|
getStatistics = 'getStatistics',
|
|
249
276
|
getToken = 'getToken',
|
|
@@ -253,6 +280,9 @@ export declare enum APIFunctions {
|
|
|
253
280
|
getWallet = 'getWallet',
|
|
254
281
|
getWalletMany = 'getWalletMany',
|
|
255
282
|
importActions = 'importActions',
|
|
283
|
+
importDatabaseBackup = 'importDatabaseBackup',
|
|
284
|
+
importDatabaseProgress = 'importDatabaseProgress',
|
|
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;
|