wapi-client 0.6.0 → 0.6.6
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 +24 -24
- package/dist/client.d.ts +15 -0
- package/dist/lib/validator.d.ts +11 -11
- package/dist/txs/export-database/export-database.enums.d.ts +20 -0
- package/dist/txs/export-database/export-database.guards.d.ts +4 -0
- package/dist/txs/get-database-export-progress/get-database-export-progress.enums.d.ts +38 -0
- package/dist/txs/get-database-export-progress/get-database-export-progress.guards.d.ts +4 -0
- package/dist/txs/{import-database-progress/import-database-progress.enums.d.ts → get-database-import-progress/get-database-import-progress.enums.d.ts} +4 -4
- package/dist/txs/get-database-import-progress/get-database-import-progress.guards.d.ts +4 -0
- package/dist/txs/import-database/import-database.enums.d.ts +17 -0
- package/dist/txs/import-database/import-database.guards.d.ts +4 -0
- package/dist/txs/index.d.ts +30 -30
- package/dist/txs/list-database-exports/list-database-exports.enums.d.ts +15 -0
- package/dist/txs/list-database-exports/list-database-exports.guards.d.ts +4 -0
- package/dist/wapi-client.cjs.development.js +760 -746
- package/dist/wapi-client.cjs.js +7 -7
- package/package.json +1 -1
- package/dist/txs/create-database-backup/create-database-backup.enums.d.ts +0 -20
- package/dist/txs/create-database-backup/create-database-backup.guards.d.ts +0 -4
- package/dist/txs/get-database-backup-progress/get-database-backup-progress.enums.d.ts +0 -26
- package/dist/txs/get-database-backup-progress/get-database-backup-progress.guards.d.ts +0 -4
- package/dist/txs/import-database-backup/import-database-backup.enums.d.ts +0 -17
- package/dist/txs/import-database-backup/import-database-backup.guards.d.ts +0 -4
- package/dist/txs/import-database-progress/import-database-progress.guards.d.ts +0 -4
- 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,
|
|
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;
|
|
@@ -63,13 +63,6 @@ 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>;
|
|
73
66
|
/**
|
|
74
67
|
*
|
|
75
68
|
* @param {CreateDepositTxInput} input
|
|
@@ -126,6 +119,13 @@ export declare class BaseClient {
|
|
|
126
119
|
*
|
|
127
120
|
*/
|
|
128
121
|
createWithdrawal(input: CreateWithdrawalTxInput): StreamPromise<CreateWithdrawalTxOutput>;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @param {ExportDatabaseTxInput} input
|
|
125
|
+
* @returns {StreamPromise<ExportDatabaseTxOutput>}
|
|
126
|
+
*
|
|
127
|
+
*/
|
|
128
|
+
exportDatabase(input: ExportDatabaseTxInput): StreamPromise<ExportDatabaseTxOutput>;
|
|
129
129
|
/**
|
|
130
130
|
*
|
|
131
131
|
* @param {FindBalanceManyTxInput} input
|
|
@@ -184,11 +184,18 @@ export declare class BaseClient {
|
|
|
184
184
|
getBalanceHistory(input: GetBalanceHistoryTxInput): StreamPromise<GetBalanceHistoryTxOutput>;
|
|
185
185
|
/**
|
|
186
186
|
*
|
|
187
|
-
* @param {
|
|
188
|
-
* @returns {StreamPromise<
|
|
187
|
+
* @param {GetDatabaseExportProgressTxInput} input
|
|
188
|
+
* @returns {StreamPromise<GetDatabaseExportProgressTxOutput>}
|
|
189
189
|
*
|
|
190
190
|
*/
|
|
191
|
-
|
|
191
|
+
getDatabaseExportProgress(input: GetDatabaseExportProgressTxInput): StreamPromise<GetDatabaseExportProgressTxOutput>;
|
|
192
|
+
/**
|
|
193
|
+
*
|
|
194
|
+
* @param {GetDatabaseImportProgressTxInput} input
|
|
195
|
+
* @returns {StreamPromise<GetDatabaseImportProgressTxOutput>}
|
|
196
|
+
*
|
|
197
|
+
*/
|
|
198
|
+
getDatabaseImportProgress(input: GetDatabaseImportProgressTxInput): StreamPromise<GetDatabaseImportProgressTxOutput>;
|
|
192
199
|
/**
|
|
193
200
|
*
|
|
194
201
|
* @param {GetFlagsTxInput} input
|
|
@@ -262,25 +269,18 @@ export declare class BaseClient {
|
|
|
262
269
|
importActionsStream<PreTransformChunk>(input?: ImportActionsTxOptions, transform?: TransformStream<PreTransformChunk, ImportActionsTxInput>): StreamPromiseInput<ImportActionsTxOutput, PreTransformChunk>;
|
|
263
270
|
/**
|
|
264
271
|
*
|
|
265
|
-
* @param {
|
|
266
|
-
* @returns {StreamPromise<
|
|
267
|
-
*
|
|
268
|
-
*/
|
|
269
|
-
importDatabaseBackup(input: ImportDatabaseBackupTxInput): StreamPromise<ImportDatabaseBackupTxOutput>;
|
|
270
|
-
/**
|
|
271
|
-
*
|
|
272
|
-
* @param {ImportDatabaseProgressTxInput} input
|
|
273
|
-
* @returns {StreamPromise<ImportDatabaseProgressTxOutput>}
|
|
272
|
+
* @param {ImportDatabaseTxInput} input
|
|
273
|
+
* @returns {StreamPromise<ImportDatabaseTxOutput>}
|
|
274
274
|
*
|
|
275
275
|
*/
|
|
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/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]
|
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' | '
|
|
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
|
*/
|
|
@@ -119,8 +119,6 @@ export declare enum SchemaNames {
|
|
|
119
119
|
CreateAccessTokenTxOutput = 'CreateAccessTokenTxOutput',
|
|
120
120
|
CreateContractTxInput = 'CreateContractTxInput',
|
|
121
121
|
CreateContractTxOutput = 'CreateContractTxOutput',
|
|
122
|
-
CreateDatabaseBackupTxInput = 'CreateDatabaseBackupTxInput',
|
|
123
|
-
CreateDatabaseBackupTxOutput = 'CreateDatabaseBackupTxOutput',
|
|
124
122
|
CreateDepositTxInput = 'CreateDepositTxInput',
|
|
125
123
|
CreateDepositTxOutput = 'CreateDepositTxOutput',
|
|
126
124
|
CreateDistributionTxInput = 'CreateDistributionTxInput',
|
|
@@ -137,6 +135,8 @@ export declare enum SchemaNames {
|
|
|
137
135
|
CreateWalletTxOutput = 'CreateWalletTxOutput',
|
|
138
136
|
CreateWithdrawalTxInput = 'CreateWithdrawalTxInput',
|
|
139
137
|
CreateWithdrawalTxOutput = 'CreateWithdrawalTxOutput',
|
|
138
|
+
ExportDatabaseTxInput = 'ExportDatabaseTxInput',
|
|
139
|
+
ExportDatabaseTxOutput = 'ExportDatabaseTxOutput',
|
|
140
140
|
FindBalanceManyTxInput = 'FindBalanceManyTxInput',
|
|
141
141
|
FindBalanceManyTxOutput = 'FindBalanceManyTxOutput',
|
|
142
142
|
FindTokenManyTxInput = 'FindTokenManyTxInput',
|
|
@@ -153,8 +153,10 @@ export declare enum SchemaNames {
|
|
|
153
153
|
GetBalanceTxOutput = 'GetBalanceTxOutput',
|
|
154
154
|
GetBalanceHistoryTxInput = 'GetBalanceHistoryTxInput',
|
|
155
155
|
GetBalanceHistoryTxOutput = 'GetBalanceHistoryTxOutput',
|
|
156
|
-
|
|
157
|
-
|
|
156
|
+
GetDatabaseExportProgressTxInput = 'GetDatabaseExportProgressTxInput',
|
|
157
|
+
GetDatabaseExportProgressTxOutput = 'GetDatabaseExportProgressTxOutput',
|
|
158
|
+
GetDatabaseImportProgressTxInput = 'GetDatabaseImportProgressTxInput',
|
|
159
|
+
GetDatabaseImportProgressTxOutput = 'GetDatabaseImportProgressTxOutput',
|
|
158
160
|
GetFlagsTxInput = 'GetFlagsTxInput',
|
|
159
161
|
GetFlagsTxOutput = 'GetFlagsTxOutput',
|
|
160
162
|
GetStatisticsTxInput = 'GetStatisticsTxInput',
|
|
@@ -175,12 +177,10 @@ export declare enum SchemaNames {
|
|
|
175
177
|
ImportActionsTxOptions = 'ImportActionsTxOptions',
|
|
176
178
|
ImportActionsTxStreamChunk = 'ImportActionsTxStreamChunk',
|
|
177
179
|
ImportActionsTxOutput = 'ImportActionsTxOutput',
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
ListDatabaseBackupsTxInput = 'ListDatabaseBackupsTxInput',
|
|
183
|
-
ListDatabaseBackupsTxOutput = 'ListDatabaseBackupsTxOutput',
|
|
180
|
+
ImportDatabaseTxInput = 'ImportDatabaseTxInput',
|
|
181
|
+
ImportDatabaseTxOutput = 'ImportDatabaseTxOutput',
|
|
182
|
+
ListDatabaseExportsTxInput = 'ListDatabaseExportsTxInput',
|
|
183
|
+
ListDatabaseExportsTxOutput = 'ListDatabaseExportsTxOutput',
|
|
184
184
|
QueryTxInput = 'QueryTxInput',
|
|
185
185
|
QueryTxOutput = 'QueryTxOutput',
|
|
186
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,38 @@
|
|
|
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
|
+
/**
|
|
35
|
+
* Error message in case one occurs
|
|
36
|
+
*/
|
|
37
|
+
error?: string;
|
|
38
|
+
}
|
|
@@ -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;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { ITxGeneralOptions } from '../tx-consts.enums';
|
|
2
2
|
export declare type ImportDatabaseProgressTxOptions = ITxGeneralOptions;
|
|
3
3
|
/**
|
|
4
|
-
* Input for
|
|
4
|
+
* Input for GetDatabaseImportProgress
|
|
5
5
|
*
|
|
6
6
|
* @category Input
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface GetDatabaseImportProgressTxInput {
|
|
9
9
|
options?: ImportDatabaseProgressTxOptions;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* Output of
|
|
12
|
+
* Output of GetDatabaseImportProgress
|
|
13
13
|
*
|
|
14
14
|
* @category Output
|
|
15
15
|
*/
|
|
16
|
-
export interface
|
|
16
|
+
export interface GetDatabaseImportProgressTxOutput {
|
|
17
17
|
/**
|
|
18
18
|
* Percentage of imported database
|
|
19
19
|
*/
|
|
@@ -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;
|
package/dist/txs/index.d.ts
CHANGED
|
@@ -17,10 +17,6 @@ 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, };
|
|
24
20
|
export * from './create-deposit/create-deposit.enums';
|
|
25
21
|
interface CreateDepositTxInputSchema { [key: string]: any; }
|
|
26
22
|
interface CreateDepositTxOutputSchema { [key: string]: any; }
|
|
@@ -53,6 +49,10 @@ export * from './create-withdrawal/create-withdrawal.enums';
|
|
|
53
49
|
interface CreateWithdrawalTxInputSchema { [key: string]: any; }
|
|
54
50
|
interface CreateWithdrawalTxOutputSchema { [key: string]: any; }
|
|
55
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 };
|
|
56
56
|
export * from './find-balance-many/find-balance-many.enums';
|
|
57
57
|
interface FindBalanceManyTxInputSchema { [key: string]: any; }
|
|
58
58
|
interface FindBalanceManyTxOutputSchema { [key: string]: any; }
|
|
@@ -85,10 +85,14 @@ export * from './get-balance-history/get-balance-history.enums';
|
|
|
85
85
|
interface GetBalanceHistoryTxInputSchema { [key: string]: any; }
|
|
86
86
|
interface GetBalanceHistoryTxOutputSchema { [key: string]: any; }
|
|
87
87
|
export { GetBalanceHistoryTxInputSchema, GetBalanceHistoryTxOutputSchema };
|
|
88
|
-
export * from './get-database-
|
|
89
|
-
interface
|
|
90
|
-
interface
|
|
91
|
-
export {
|
|
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, };
|
|
92
96
|
export * from './get-flags/get-flags.enums';
|
|
93
97
|
interface GetFlagsTxInputSchema { [key: string]: any; }
|
|
94
98
|
interface GetFlagsTxOutputSchema { [key: string]: any; }
|
|
@@ -125,18 +129,14 @@ export * from './import-actions/import-actions.enums';
|
|
|
125
129
|
interface ImportActionsTxInputSchema { [key: string]: any; }
|
|
126
130
|
interface ImportActionsTxOutputSchema { [key: string]: any; }
|
|
127
131
|
export { ImportActionsTxInputSchema, ImportActionsTxOutputSchema };
|
|
128
|
-
export * from './import-database
|
|
129
|
-
interface
|
|
130
|
-
interface
|
|
131
|
-
export {
|
|
132
|
-
export * from './
|
|
133
|
-
interface
|
|
134
|
-
interface
|
|
135
|
-
export {
|
|
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 };
|
|
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-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; }
|
|
@@ -202,7 +202,6 @@ export declare const APIValidators: {
|
|
|
202
202
|
authenticationCheck: import("../lib/validator").ValidationFunction;
|
|
203
203
|
createAccessToken: import("../lib/validator").ValidationFunction;
|
|
204
204
|
createContract: import("../lib/validator").ValidationFunction;
|
|
205
|
-
createDatabaseBackup: import("../lib/validator").ValidationFunction;
|
|
206
205
|
createDeposit: import("../lib/validator").ValidationFunction;
|
|
207
206
|
createDistribution: import("../lib/validator").ValidationFunction;
|
|
208
207
|
createToken: import("../lib/validator").ValidationFunction;
|
|
@@ -211,6 +210,7 @@ export declare const APIValidators: {
|
|
|
211
210
|
createTransferMany: import("../lib/validator").ValidationFunction;
|
|
212
211
|
createWallet: import("../lib/validator").ValidationFunction;
|
|
213
212
|
createWithdrawal: import("../lib/validator").ValidationFunction;
|
|
213
|
+
exportDatabase: import("../lib/validator").ValidationFunction;
|
|
214
214
|
findBalanceMany: import("../lib/validator").ValidationFunction;
|
|
215
215
|
findTokenMany: import("../lib/validator").ValidationFunction;
|
|
216
216
|
findTransferGroupMany: import("../lib/validator").ValidationFunction;
|
|
@@ -219,7 +219,8 @@ export declare const APIValidators: {
|
|
|
219
219
|
finishTransaction: import("../lib/validator").ValidationFunction;
|
|
220
220
|
getBalance: import("../lib/validator").ValidationFunction;
|
|
221
221
|
getBalanceHistory: import("../lib/validator").ValidationFunction;
|
|
222
|
-
|
|
222
|
+
getDatabaseExportProgress: import("../lib/validator").ValidationFunction;
|
|
223
|
+
getDatabaseImportProgress: import("../lib/validator").ValidationFunction;
|
|
223
224
|
getFlags: import("../lib/validator").ValidationFunction;
|
|
224
225
|
getStatistics: import("../lib/validator").ValidationFunction;
|
|
225
226
|
getToken: import("../lib/validator").ValidationFunction;
|
|
@@ -229,9 +230,8 @@ export declare const APIValidators: {
|
|
|
229
230
|
getWallet: import("../lib/validator").ValidationFunction;
|
|
230
231
|
getWalletMany: import("../lib/validator").ValidationFunction;
|
|
231
232
|
importActions: import("../lib/validator").ValidationFunction;
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
listDatabaseBackups: import("../lib/validator").ValidationFunction;
|
|
233
|
+
importDatabase: 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;
|
|
@@ -253,7 +253,6 @@ export declare enum APIFunctions {
|
|
|
253
253
|
authenticationCheck = 'authenticationCheck',
|
|
254
254
|
createAccessToken = 'createAccessToken',
|
|
255
255
|
createContract = 'createContract',
|
|
256
|
-
createDatabaseBackup = 'createDatabaseBackup',
|
|
257
256
|
createDeposit = 'createDeposit',
|
|
258
257
|
createDistribution = 'createDistribution',
|
|
259
258
|
createToken = 'createToken',
|
|
@@ -262,6 +261,7 @@ export declare enum APIFunctions {
|
|
|
262
261
|
createTransferMany = 'createTransferMany',
|
|
263
262
|
createWallet = 'createWallet',
|
|
264
263
|
createWithdrawal = 'createWithdrawal',
|
|
264
|
+
exportDatabase = 'exportDatabase',
|
|
265
265
|
findBalanceMany = 'findBalanceMany',
|
|
266
266
|
findTokenMany = 'findTokenMany',
|
|
267
267
|
findTransferGroupMany = 'findTransferGroupMany',
|
|
@@ -270,7 +270,8 @@ export declare enum APIFunctions {
|
|
|
270
270
|
finishTransaction = 'finishTransaction',
|
|
271
271
|
getBalance = 'getBalance',
|
|
272
272
|
getBalanceHistory = 'getBalanceHistory',
|
|
273
|
-
|
|
273
|
+
getDatabaseExportProgress = 'getDatabaseExportProgress',
|
|
274
|
+
getDatabaseImportProgress = 'getDatabaseImportProgress',
|
|
274
275
|
getFlags = 'getFlags',
|
|
275
276
|
getStatistics = 'getStatistics',
|
|
276
277
|
getToken = 'getToken',
|
|
@@ -280,9 +281,8 @@ export declare enum APIFunctions {
|
|
|
280
281
|
getWallet = 'getWallet',
|
|
281
282
|
getWalletMany = 'getWalletMany',
|
|
282
283
|
importActions = 'importActions',
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
listDatabaseBackups = 'listDatabaseBackups',
|
|
284
|
+
importDatabase = 'importDatabase',
|
|
285
|
+
listDatabaseExports = 'listDatabaseExports',
|
|
286
286
|
query = 'query',
|
|
287
287
|
queryLogs = 'queryLogs',
|
|
288
288
|
resetDatabase = 'resetDatabase',
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input for listDatabaseExports
|
|
3
|
+
*
|
|
4
|
+
* @category Input
|
|
5
|
+
*/
|
|
6
|
+
export interface ListDatabaseExportsTxInput {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Output of listDatabaseExports
|
|
10
|
+
*
|
|
11
|
+
* @category Output
|
|
12
|
+
*/
|
|
13
|
+
export interface ListDatabaseExportsTxOutput {
|
|
14
|
+
exports?: string[];
|
|
15
|
+
}
|
|
@@ -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;
|