wapi-client 0.6.1 → 0.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/base-client.d.ts +4 -4
- package/dist/lib/errors.d.ts +16 -8
- package/dist/lib/validator.d.ts +3 -3
- package/dist/txs/get-database-export-progress/get-database-export-progress.enums.d.ts +13 -1
- package/dist/txs/get-database-import-progress/get-database-import-progress.enums.d.ts +13 -1
- package/dist/txs/index.d.ts +6 -6
- package/dist/txs/list-database-exports/list-database-exports.enums.d.ts +26 -0
- package/dist/txs/list-database-exports/list-database-exports.guards.d.ts +4 -0
- package/dist/wapi-client.cjs.development.js +178 -127
- package/dist/wapi-client.cjs.js +6 -6
- package/package.json +1 -1
- package/dist/txs/list-database-backups/list-database-backups.enums.d.ts +0 -15
- package/dist/txs/list-database-backups/list-database-backups.guards.d.ts +0 -4
|
@@ -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,
|
|
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 {
|
|
280
|
-
* @returns {StreamPromise<
|
|
279
|
+
* @param {ListDatabaseExportsTxInput} input
|
|
280
|
+
* @returns {StreamPromise<ListDatabaseExportsTxOutput>}
|
|
281
281
|
*
|
|
282
282
|
*/
|
|
283
|
-
|
|
283
|
+
listDatabaseExports(input: ListDatabaseExportsTxInput): StreamPromise<ListDatabaseExportsTxOutput>;
|
|
284
284
|
/**
|
|
285
285
|
*
|
|
286
286
|
* @param {QueryTxInput} input
|
package/dist/lib/errors.d.ts
CHANGED
|
@@ -312,7 +312,7 @@ export declare enum ERROR_MESSAGES {
|
|
|
312
312
|
*/
|
|
313
313
|
METHOD_DISABLED = 'METHOD_DISABLED',
|
|
314
314
|
/**
|
|
315
|
-
* Unexpected error while importing database
|
|
315
|
+
* Unexpected error while importing database
|
|
316
316
|
*/
|
|
317
317
|
DATABASE_IMPORT_UNEXPECTED_ERROR = 'DATABASE_IMPORT_UNEXPECTED_ERROR',
|
|
318
318
|
/**
|
|
@@ -320,29 +320,37 @@ export declare enum ERROR_MESSAGES {
|
|
|
320
320
|
*/
|
|
321
321
|
DATABASE_IMPORT_NOT_FOUND = 'DATABASE_IMPORT_NOT_FOUND',
|
|
322
322
|
/**
|
|
323
|
-
*
|
|
323
|
+
* Database export already in progress
|
|
324
324
|
*/
|
|
325
|
-
|
|
325
|
+
DATABASE_EXPORT_CONFLICT = 'DATABASE_EXPORT_CONFLICT',
|
|
326
|
+
/**
|
|
327
|
+
* Database import already in progress
|
|
328
|
+
*/
|
|
329
|
+
DATABASE_IMPORT_CONFLICT = 'DATABASE_IMPORT_CONFLICT',
|
|
330
|
+
/**
|
|
331
|
+
* Unexpected error while creating database export
|
|
332
|
+
*/
|
|
333
|
+
DATABASE_EXPORT_UNEXPECTED_ERROR = 'DATABASE_EXPORT_UNEXPECTED_ERROR',
|
|
326
334
|
/**
|
|
327
335
|
* Unexpected error while listing database backups
|
|
328
336
|
*/
|
|
329
|
-
|
|
337
|
+
DATABASE_EXPORT_LIST_UNEXPECTED_ERROR = 'DATABASE_EXPORT_LIST_UNEXPECTED_ERROR',
|
|
330
338
|
/**
|
|
331
339
|
* Import database progress not found
|
|
332
340
|
*/
|
|
333
|
-
|
|
341
|
+
DATABASE_IMPORT_PROGRESS_NOT_FOUND = 'DATABASE_IMPORT_PROGRESS_NOT_FOUND',
|
|
334
342
|
/**
|
|
335
343
|
* Unexpected error while getting database import progress
|
|
336
344
|
*/
|
|
337
|
-
|
|
345
|
+
DATABASE_IMPORT_PROGRESS_UNEXPECTED_ERROR = 'DATABASE_IMPORT_PROGRESS_UNEXPECTED_ERROR',
|
|
338
346
|
/**
|
|
339
347
|
* Database backup progress not found
|
|
340
348
|
*/
|
|
341
|
-
|
|
349
|
+
DATABASE_EXPORT_PROGRESS_NOT_FOUND = 'DATABASE_EXPORT_PROGRESS_NOT_FOUND',
|
|
342
350
|
/**
|
|
343
351
|
* Unexpected error while getting database backup progress
|
|
344
352
|
*/
|
|
345
|
-
|
|
353
|
+
DATABASE_EXPORT_PROGRESS_UNEXPECTED_ERROR = 'DATABASE_EXPORT_PROGRESS_UNEXPECTED_ERROR'
|
|
346
354
|
}
|
|
347
355
|
export declare const ErrorDescriptions: {
|
|
348
356
|
[key in keyof typeof ERROR_MESSAGES]: string;
|
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' | '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' | '
|
|
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
|
-
|
|
183
|
-
|
|
182
|
+
ListDatabaseExportsTxInput = 'ListDatabaseExportsTxInput',
|
|
183
|
+
ListDatabaseExportsTxOutput = 'ListDatabaseExportsTxOutput',
|
|
184
184
|
QueryTxInput = 'QueryTxInput',
|
|
185
185
|
QueryTxOutput = 'QueryTxOutput',
|
|
186
186
|
QueryLogsTxInput = 'QueryLogsTxInput',
|
|
@@ -22,5 +22,17 @@ export interface GetDatabaseExportProgressTxOutput {
|
|
|
22
22
|
/**
|
|
23
23
|
* Size of a exported backup in MB
|
|
24
24
|
*/
|
|
25
|
-
size
|
|
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
|
+
/**
|
|
35
|
+
* Error message in case one occurs
|
|
36
|
+
*/
|
|
37
|
+
error?: string;
|
|
26
38
|
}
|
|
@@ -17,5 +17,17 @@ export interface GetDatabaseImportProgressTxOutput {
|
|
|
17
17
|
/**
|
|
18
18
|
* Percentage of imported database
|
|
19
19
|
*/
|
|
20
|
-
progress
|
|
20
|
+
progress: number;
|
|
21
|
+
/**
|
|
22
|
+
* Boolean indicating if import has started
|
|
23
|
+
*/
|
|
24
|
+
started: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Boolean indicating if import has finished
|
|
27
|
+
*/
|
|
28
|
+
finished: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Error message in case one occurs
|
|
31
|
+
*/
|
|
32
|
+
error?: string;
|
|
21
33
|
}
|
package/dist/txs/index.d.ts
CHANGED
|
@@ -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-
|
|
137
|
-
interface
|
|
138
|
-
interface
|
|
139
|
-
export {
|
|
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
|
-
|
|
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
|
-
|
|
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;
|