wapi-client 0.5.0 → 0.6.2
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/client.d.ts +26 -1
- package/dist/fns/create-access-token/create-access-token.d.ts +8 -0
- package/dist/fns/create-access-token/create-access-token.enums.d.ts +21 -0
- package/dist/fns/create-access-token/create-access-token.guards.d.ts +4 -0
- package/dist/fns/index.d.ts +8 -1
- package/dist/index.d.ts +2 -2
- package/dist/lib/errors.d.ts +33 -1
- package/dist/lib/validator.d.ts +13 -1
- package/dist/txs/create-access-token/create-access-token.enums.d.ts +1 -0
- 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 +34 -0
- package/dist/txs/get-database-export-progress/get-database-export-progress.guards.d.ts +4 -0
- package/dist/txs/get-database-import-progress/get-database-import-progress.enums.d.ts +21 -0
- 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 -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 +2847 -2386
- package/dist/wapi-client.cjs.js +7 -7
- 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, CreateDepositTxInput, CreateDepositTxOutput, CreateDistributionTxInput, CreateDistributionTxOutput, CreateTokenTxInput, CreateTokenTxOutput, CreateTransferTxInput, CreateTransferTxOutput, CreateTransferGroupTxInput, CreateTransferGroupTxOutput, CreateTransferManyTxInput, CreateTransferManyTxOutput, CreateWalletTxInput, CreateWalletTxOutput, CreateWithdrawalTxInput, CreateWithdrawalTxOutput, ExportDatabaseTxInput, ExportDatabaseTxOutput, FindBalanceManyTxInput, FindBalanceManyTxOutput, FindTokenManyTxInput, FindTokenManyTxOutput, FindTransferGroupManyTxInput, FindTransferGroupManyTxOutput, FindTransferManyTxInput, FindTransferManyTxOutput, FindWalletManyTxInput, FindWalletManyTxOutput, FinishTransactionTxInput, FinishTransactionTxOutput, GetBalanceTxInput, GetBalanceTxOutput, GetBalanceHistoryTxInput, GetBalanceHistoryTxOutput, GetDatabaseExportProgressTxInput, GetDatabaseExportProgressTxOutput, GetDatabaseImportProgressTxInput, GetDatabaseImportProgressTxOutput, GetFlagsTxInput, GetFlagsTxOutput, GetStatisticsTxInput, GetStatisticsTxOutput, GetTokenTxInput, GetTokenTxOutput, GetTokenManyTxInput, GetTokenManyTxOutput, GetTransferTxInput, GetTransferTxOutput, GetTransferGroupTxInput, GetTransferGroupTxOutput, GetWalletTxInput, GetWalletTxOutput, GetWalletManyTxInput, GetWalletManyTxOutput, ImportActionsTxInput, ImportActionsTxOutput, ImportActionsTxOptions, ImportDatabaseTxInput, ImportDatabaseTxOutput, ListDatabaseBackupsTxInput, ListDatabaseBackupsTxOutput, QueryTxInput, QueryTxOutput, QueryLogsTxInput, QueryLogsTxOutput, ResetDatabaseTxInput, ResetDatabaseTxOutput, ReverseTransferTxInput, ReverseTransferTxOutput, ReverseTransferGroupTxInput, ReverseTransferGroupTxOutput, ReverseTransferGroupManyTxInput, ReverseTransferGroupManyTxOutput, ReverseTransferManyTxInput, ReverseTransferManyTxOutput, SetFlagsTxInput, SetFlagsTxOutput, StartTransactionTxInput, StartTransactionTxOutput, UpdateTokenTxInput, UpdateTokenTxOutput, UpdateTransferTxInput, UpdateTransferTxOutput, UpdateTransferGroupTxInput, UpdateTransferGroupTxOutput, UpdateTransferGroupManyTxInput, UpdateTransferGroupManyTxOutput, UpdateTransferManyTxInput, UpdateTransferManyTxOutput, UpdateWalletTxInput, UpdateWalletTxOutput } from '../txs';
|
|
8
8
|
export interface ClientHooks {
|
|
9
9
|
connected?: (socId: undefined | string) => void;
|
|
10
10
|
disconnected?: () => void;
|
|
@@ -119,6 +119,13 @@ export declare class BaseClient {
|
|
|
119
119
|
*
|
|
120
120
|
*/
|
|
121
121
|
createWithdrawal(input: CreateWithdrawalTxInput): StreamPromise<CreateWithdrawalTxOutput>;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @param {ExportDatabaseTxInput} input
|
|
125
|
+
* @returns {StreamPromise<ExportDatabaseTxOutput>}
|
|
126
|
+
*
|
|
127
|
+
*/
|
|
128
|
+
exportDatabase(input: ExportDatabaseTxInput): StreamPromise<ExportDatabaseTxOutput>;
|
|
122
129
|
/**
|
|
123
130
|
*
|
|
124
131
|
* @param {FindBalanceManyTxInput} input
|
|
@@ -175,6 +182,20 @@ export declare class BaseClient {
|
|
|
175
182
|
*
|
|
176
183
|
*/
|
|
177
184
|
getBalanceHistory(input: GetBalanceHistoryTxInput): StreamPromise<GetBalanceHistoryTxOutput>;
|
|
185
|
+
/**
|
|
186
|
+
*
|
|
187
|
+
* @param {GetDatabaseExportProgressTxInput} input
|
|
188
|
+
* @returns {StreamPromise<GetDatabaseExportProgressTxOutput>}
|
|
189
|
+
*
|
|
190
|
+
*/
|
|
191
|
+
getDatabaseExportProgress(input: GetDatabaseExportProgressTxInput): StreamPromise<GetDatabaseExportProgressTxOutput>;
|
|
192
|
+
/**
|
|
193
|
+
*
|
|
194
|
+
* @param {GetDatabaseImportProgressTxInput} input
|
|
195
|
+
* @returns {StreamPromise<GetDatabaseImportProgressTxOutput>}
|
|
196
|
+
*
|
|
197
|
+
*/
|
|
198
|
+
getDatabaseImportProgress(input: GetDatabaseImportProgressTxInput): StreamPromise<GetDatabaseImportProgressTxOutput>;
|
|
178
199
|
/**
|
|
179
200
|
*
|
|
180
201
|
* @param {GetFlagsTxInput} input
|
|
@@ -246,6 +267,20 @@ export declare class BaseClient {
|
|
|
246
267
|
*
|
|
247
268
|
*/
|
|
248
269
|
importActionsStream<PreTransformChunk>(input?: ImportActionsTxOptions, transform?: TransformStream<PreTransformChunk, ImportActionsTxInput>): StreamPromiseInput<ImportActionsTxOutput, PreTransformChunk>;
|
|
270
|
+
/**
|
|
271
|
+
*
|
|
272
|
+
* @param {ImportDatabaseTxInput} input
|
|
273
|
+
* @returns {StreamPromise<ImportDatabaseTxOutput>}
|
|
274
|
+
*
|
|
275
|
+
*/
|
|
276
|
+
importDatabase(input: ImportDatabaseTxInput): StreamPromise<ImportDatabaseTxOutput>;
|
|
277
|
+
/**
|
|
278
|
+
*
|
|
279
|
+
* @param {ListDatabaseBackupsTxInput} input
|
|
280
|
+
* @returns {StreamPromise<ListDatabaseBackupsTxOutput>}
|
|
281
|
+
*
|
|
282
|
+
*/
|
|
283
|
+
listDatabaseBackups(input: ListDatabaseBackupsTxInput): StreamPromise<ListDatabaseBackupsTxOutput>;
|
|
249
284
|
/**
|
|
250
285
|
*
|
|
251
286
|
* @param {QueryTxInput} input
|
package/dist/client.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ClientHooks, ISocketId } from './api/base-client';
|
|
|
3
3
|
import { AggregateQueryBuilder, UpdateQueryBuilder, ReverseQueryBuilder, QueryBuilder } from './lib/query-builder';
|
|
4
4
|
import { StreamPromise } from './lib/stream-promise';
|
|
5
5
|
import { StreamPromiseInput } from './lib/stream-promise-input';
|
|
6
|
-
import { AggregateTransfersFnInput, AggregateTransfersFnOutput, AggregateTransfersFnOptions, AggregateTransfersFnFields, AggregateTransfersFnMetadataFields, AggregateTransfersFnStringFields, AggregateTransfersFnGroupFields, CreateContractFnInput, CreateContractFnOutput, CreateContractFnOptions, CreateDepositFnInput, CreateDepositFnOutput, CreateDepositFnOptions, CreateExchangeFnInput, CreateExchangeFnOutput, CreateExchangeFnOptions, CreateTokenFnInput, CreateTokenFnOutput, CreateTokenFnOptions, CreateTransferFnInput, CreateTransferFnOutput, CreateTransferFnOptions, CreateTransferGroupFnInput, CreateTransferGroupFnOutput, CreateTransferGroupFnOptions, CreateTransfersFnInput, CreateTransfersFnOutput, CreateTransfersFnOptions, CreateWalletFnInput, CreateWalletFnOutput, CreateWalletFnOptions, CreateWithdrawalFnInput, CreateWithdrawalFnOutput, CreateWithdrawalFnOptions, FindBalancesFnInput, FindBalancesFnOutput, FindBalancesFnOptions, FindBalancesFnFields, FindBalancesFnMetadataFields, FindBalancesFnStringFields, FindBalancesFnResultFields, FindTokensFnInput, FindTokensFnOutput, FindTokensFnOptions, FindTokensFnFields, FindTokensFnMetadataFields, FindTokensFnStringFields, FindTokensFnResultFields, FindTransferGroupsFnInput, FindTransferGroupsFnOutput, FindTransferGroupsFnOptions, FindTransferGroupsFnFields, FindTransferGroupsFnMetadataFields, FindTransferGroupsFnStringFields, FindTransferGroupsFnResultFields, FindTransfersFnInput, FindTransfersFnOutput, FindTransfersFnOptions, FindTransfersFnFields, FindTransfersFnMetadataFields, FindTransfersFnStringFields, FindTransfersFnResultFields, FindWalletsFnInput, FindWalletsFnOutput, FindWalletsFnOptions, FindWalletsFnFields, FindWalletsFnMetadataFields, FindWalletsFnStringFields, FindWalletsFnResultFields, GetBalanceFnInput, GetBalanceFnOutput, GetBalanceFnOptions, GetBalanceHistoryFnInput, GetBalanceHistoryFnOutput, GetBalanceHistoryFnOptions, GetFlagsFnInput, GetFlagsFnOutput, GetFlagsFnOptions, GetStatisticsFnInput, GetStatisticsFnOutput, GetStatisticsFnOptions, GetTokenFnInput, GetTokenFnOutput, GetTokenFnOptions, GetTransferFnInput, GetTransferFnOutput, GetTransferFnOptions, GetTransferGroupFnInput, GetTransferGroupFnOutput, GetTransferGroupFnOptions, GetWalletFnInput, GetWalletFnOutput, GetWalletFnOptions, ImportDataFnInput, ImportDataFnOutput, ImportDataFnOptions, ImportDataFnStreamChunk, ReverseTransferFnInput, ReverseTransferFnOutput, ReverseTransferFnOptions, ReverseTransferGroupFnInput, ReverseTransferGroupFnOutput, ReverseTransferGroupFnOptions, ReverseTransfersFnInput, ReverseTransfersFnOutput, ReverseTransfersFnOptions, ReverseTransfersFnFields, ReverseTransfersFnMetadataFields, ReverseTransfersFnStringFields, ReverseTransfersFnModifications, SetFlagsFnInput, SetFlagsFnOutput, SetFlagsFnOptions, UpdateTokenFnInput, UpdateTokenFnOutput, UpdateTokenFnOptions, UpdateTransferFnInput, UpdateTransferFnOutput, UpdateTransferFnOptions, UpdateTransferGroupFnInput, UpdateTransferGroupFnOutput, UpdateTransferGroupFnOptions, UpdateTransferGroupsFnInput, UpdateTransferGroupsFnOutput, UpdateTransferGroupsFnOptions, UpdateTransferGroupsFnFields, UpdateTransferGroupsFnMetadataFields, UpdateTransferGroupsFnStringFields, UpdateTransferGroupsFnResultFields, UpdateTransferGroupsFnUpdateFields, UpdateTransfersFnInput, UpdateTransfersFnOutput, UpdateTransfersFnOptions, UpdateTransfersFnFields, UpdateTransfersFnMetadataFields, UpdateTransfersFnStringFields, UpdateTransfersFnResultFields, UpdateTransfersFnUpdateFields, UpdateWalletFnInput, UpdateWalletFnOutput, UpdateWalletFnOptions } from './fns';
|
|
6
|
+
import { AggregateTransfersFnInput, AggregateTransfersFnOutput, AggregateTransfersFnOptions, AggregateTransfersFnFields, AggregateTransfersFnMetadataFields, AggregateTransfersFnStringFields, AggregateTransfersFnGroupFields, CreateAccessTokenFnInput, CreateAccessTokenFnOutput, CreateAccessTokenFnOptions, CreateContractFnInput, CreateContractFnOutput, CreateContractFnOptions, CreateDepositFnInput, CreateDepositFnOutput, CreateDepositFnOptions, CreateExchangeFnInput, CreateExchangeFnOutput, CreateExchangeFnOptions, CreateTokenFnInput, CreateTokenFnOutput, CreateTokenFnOptions, CreateTransferFnInput, CreateTransferFnOutput, CreateTransferFnOptions, CreateTransferGroupFnInput, CreateTransferGroupFnOutput, CreateTransferGroupFnOptions, CreateTransfersFnInput, CreateTransfersFnOutput, CreateTransfersFnOptions, CreateWalletFnInput, CreateWalletFnOutput, CreateWalletFnOptions, CreateWithdrawalFnInput, CreateWithdrawalFnOutput, CreateWithdrawalFnOptions, FindBalancesFnInput, FindBalancesFnOutput, FindBalancesFnOptions, FindBalancesFnFields, FindBalancesFnMetadataFields, FindBalancesFnStringFields, FindBalancesFnResultFields, FindTokensFnInput, FindTokensFnOutput, FindTokensFnOptions, FindTokensFnFields, FindTokensFnMetadataFields, FindTokensFnStringFields, FindTokensFnResultFields, FindTransferGroupsFnInput, FindTransferGroupsFnOutput, FindTransferGroupsFnOptions, FindTransferGroupsFnFields, FindTransferGroupsFnMetadataFields, FindTransferGroupsFnStringFields, FindTransferGroupsFnResultFields, FindTransfersFnInput, FindTransfersFnOutput, FindTransfersFnOptions, FindTransfersFnFields, FindTransfersFnMetadataFields, FindTransfersFnStringFields, FindTransfersFnResultFields, FindWalletsFnInput, FindWalletsFnOutput, FindWalletsFnOptions, FindWalletsFnFields, FindWalletsFnMetadataFields, FindWalletsFnStringFields, FindWalletsFnResultFields, GetBalanceFnInput, GetBalanceFnOutput, GetBalanceFnOptions, GetBalanceHistoryFnInput, GetBalanceHistoryFnOutput, GetBalanceHistoryFnOptions, GetFlagsFnInput, GetFlagsFnOutput, GetFlagsFnOptions, GetStatisticsFnInput, GetStatisticsFnOutput, GetStatisticsFnOptions, GetTokenFnInput, GetTokenFnOutput, GetTokenFnOptions, GetTransferFnInput, GetTransferFnOutput, GetTransferFnOptions, GetTransferGroupFnInput, GetTransferGroupFnOutput, GetTransferGroupFnOptions, GetWalletFnInput, GetWalletFnOutput, GetWalletFnOptions, ImportDataFnInput, ImportDataFnOutput, ImportDataFnOptions, ImportDataFnStreamChunk, ReverseTransferFnInput, ReverseTransferFnOutput, ReverseTransferFnOptions, ReverseTransferGroupFnInput, ReverseTransferGroupFnOutput, ReverseTransferGroupFnOptions, ReverseTransfersFnInput, ReverseTransfersFnOutput, ReverseTransfersFnOptions, ReverseTransfersFnFields, ReverseTransfersFnMetadataFields, ReverseTransfersFnStringFields, ReverseTransfersFnModifications, SetFlagsFnInput, SetFlagsFnOutput, SetFlagsFnOptions, UpdateTokenFnInput, UpdateTokenFnOutput, UpdateTokenFnOptions, UpdateTransferFnInput, UpdateTransferFnOutput, UpdateTransferFnOptions, UpdateTransferGroupFnInput, UpdateTransferGroupFnOutput, UpdateTransferGroupFnOptions, UpdateTransferGroupsFnInput, UpdateTransferGroupsFnOutput, UpdateTransferGroupsFnOptions, UpdateTransferGroupsFnFields, UpdateTransferGroupsFnMetadataFields, UpdateTransferGroupsFnStringFields, UpdateTransferGroupsFnResultFields, UpdateTransferGroupsFnUpdateFields, UpdateTransfersFnInput, UpdateTransfersFnOutput, UpdateTransfersFnOptions, UpdateTransfersFnFields, UpdateTransfersFnMetadataFields, UpdateTransfersFnStringFields, UpdateTransfersFnResultFields, UpdateTransfersFnUpdateFields, UpdateWalletFnInput, UpdateWalletFnOutput, UpdateWalletFnOptions } from './fns';
|
|
7
7
|
export interface ClientConfig {
|
|
8
8
|
token?: number | string;
|
|
9
9
|
hooks?: ClientHooks;
|
|
@@ -173,6 +173,31 @@ export declare class Client {
|
|
|
173
173
|
*/
|
|
174
174
|
aggregateTransfers(): AggregateQueryBuilder<AggregateTransfersFnFields, AggregateTransfersFnStringFields, AggregateTransfersFnMetadataFields, AggregateTransfersFnGroupFields, AggregateTransfersFnOutput>;
|
|
175
175
|
aggregateTransfers(input: AggregateTransfersFnInput, options?: AggregateTransfersFnOptions): StreamPromise<AggregateTransfersFnOutput>;
|
|
176
|
+
/**
|
|
177
|
+
*
|
|
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
|
+
* ```
|
|
194
|
+
*
|
|
195
|
+
* @param {CreateAccessTokenFnInput} [input]
|
|
196
|
+
* @param {CreateAccessTokenFnOptions} [options]
|
|
197
|
+
* @returns {StreamPromise<CreateAccessTokenFnOutput>}
|
|
198
|
+
*
|
|
199
|
+
*/
|
|
200
|
+
createAccessToken(input?: CreateAccessTokenFnInput, options?: CreateAccessTokenFnOptions): StreamPromise<CreateAccessTokenFnOutput>;
|
|
176
201
|
/**
|
|
177
202
|
*
|
|
178
203
|
*
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ClientFunctionOptions } from '../';
|
|
2
|
+
import { StreamPromise } from '../../lib/stream-promise';
|
|
3
|
+
import { CreateAccessTokenFnInput, CreateAccessTokenFnOutput, CreateAccessTokenFnOptions } from './create-access-token.enums';
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export default function createAccessToken(options: ClientFunctionOptions, input: CreateAccessTokenFnInput, fnOptions?: CreateAccessTokenFnOptions): StreamPromise<CreateAccessTokenFnOutput>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CreateAccessTokenLimited, CreateAccessTokenAdmin, CreateAccessTokenTxOptions, CreateAccessTokenTxOutput } from '../../txs';
|
|
2
|
+
/**
|
|
3
|
+
* Optional flags for input
|
|
4
|
+
*/
|
|
5
|
+
export declare type CreateAccessTokenFnOptions = CreateAccessTokenTxOptions;
|
|
6
|
+
/**
|
|
7
|
+
* Input for createAccessToken
|
|
8
|
+
*
|
|
9
|
+
* @category Input
|
|
10
|
+
*/
|
|
11
|
+
export interface CreateAccessTokenFnInput {
|
|
12
|
+
token?: CreateAccessTokenLimited | CreateAccessTokenAdmin;
|
|
13
|
+
options?: CreateAccessTokenFnOptions;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Output of createAccessToken
|
|
17
|
+
*
|
|
18
|
+
* @category Output
|
|
19
|
+
*/
|
|
20
|
+
export interface CreateAccessTokenFnOutput extends CreateAccessTokenTxOutput {
|
|
21
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CreateAccessTokenFnInput } from './create-access-token.enums';
|
|
2
|
+
export declare function isCreateAccessTokenFnInput(input: unknown): input is CreateAccessTokenFnInput;
|
|
3
|
+
import { CreateAccessTokenFnOutput } from './create-access-token.enums';
|
|
4
|
+
export declare function isCreateAccessTokenFnOutput(input: unknown): input is CreateAccessTokenFnOutput;
|
package/dist/fns/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export interface ClientFunctionOptions {
|
|
|
8
8
|
client: Client;
|
|
9
9
|
}
|
|
10
10
|
import aggregateTransfers, { AggregateTransfersFnFields, AggregateTransfersFnStringFields, AggregateTransfersFnMetadataFields, AggregateTransfersFnGroupFields } from './aggregate-transfers/aggregate-transfers';
|
|
11
|
+
import createAccessToken from './create-access-token/create-access-token';
|
|
11
12
|
import createContract from './create-contract/create-contract';
|
|
12
13
|
import createDeposit from './create-deposit/create-deposit';
|
|
13
14
|
import createExchange from './create-exchange/create-exchange';
|
|
@@ -43,6 +44,8 @@ import updateTransfers, { UpdateTransfersFnFields, UpdateTransfersFnMetadataFiel
|
|
|
43
44
|
import updateWallet from './update-wallet/update-wallet';
|
|
44
45
|
interface AggregateTransfersFnInputSchema { [key: string]: any; }
|
|
45
46
|
interface AggregateTransfersFnOutputSchema { [key: string]: any; }
|
|
47
|
+
interface CreateAccessTokenFnInputSchema { [key: string]: any; }
|
|
48
|
+
interface CreateAccessTokenFnOutputSchema { [key: string]: any; }
|
|
46
49
|
interface CreateContractFnInputSchema { [key: string]: any; }
|
|
47
50
|
interface CreateContractFnOutputSchema { [key: string]: any; }
|
|
48
51
|
interface CreateDepositFnInputSchema { [key: string]: any; }
|
|
@@ -112,8 +115,9 @@ interface UpdateWalletFnOutputSchema { [key: string]: any; }
|
|
|
112
115
|
/**
|
|
113
116
|
* @internal
|
|
114
117
|
*/
|
|
115
|
-
export { FnConstsSchema, aggregateTransfers, AggregateTransfersFnFields, AggregateTransfersFnMetadataFields, AggregateTransfersFnStringFields, AggregateTransfersFnGroupFields, createContract, createDeposit, createExchange, createToken, createTransfer, createTransferGroup, createTransfers, createWallet, createWithdrawal, findBalances, FindBalancesFnFields, FindBalancesFnMetadataFields, FindBalancesFnStringFields, FindBalancesFnResultFields, findTokens, FindTokensFnFields, FindTokensFnMetadataFields, FindTokensFnStringFields, FindTokensFnResultFields, findTransferGroups, FindTransferGroupsFnFields, FindTransferGroupsFnMetadataFields, FindTransferGroupsFnStringFields, FindTransferGroupsFnResultFields, findTransfers, FindTransfersFnFields, FindTransfersFnMetadataFields, FindTransfersFnStringFields, FindTransfersFnResultFields, findWallets, FindWalletsFnFields, FindWalletsFnMetadataFields, FindWalletsFnStringFields, FindWalletsFnResultFields, getBalance, getBalanceHistory, getFlags, getStatistics, getToken, getTransfer, getTransferGroup, getWallet, importData, isImportDataFnOptions, isImportDataFnInput, reverseTransfer, reverseTransferGroup, reverseTransfers, ReverseTransfersFnFields, ReverseTransfersFnMetadataFields, ReverseTransfersFnStringFields, setFlags, updateToken, updateTransfer, updateTransferGroup, updateTransferGroups, UpdateTransferGroupsFnFields, UpdateTransferGroupsFnMetadataFields, UpdateTransferGroupsFnStringFields, UpdateTransferGroupsFnResultFields, updateTransfers, UpdateTransfersFnFields, UpdateTransfersFnMetadataFields, UpdateTransfersFnStringFields, UpdateTransfersFnResultFields, updateWallet, AggregateTransfersFnInputSchema, AggregateTransfersFnOutputSchema, CreateContractFnInputSchema, CreateContractFnOutputSchema, CreateDepositFnInputSchema, CreateDepositFnOutputSchema, CreateExchangeFnInputSchema, CreateExchangeFnOutputSchema, CreateTokenFnInputSchema, CreateTokenFnOutputSchema, CreateTransferFnInputSchema, CreateTransferFnOutputSchema, CreateTransferGroupFnInputSchema, CreateTransferGroupFnOutputSchema, CreateTransfersFnInputSchema, CreateTransfersFnOutputSchema, CreateWalletFnInputSchema, CreateWalletFnOutputSchema, CreateWithdrawalFnInputSchema, CreateWithdrawalFnOutputSchema, FindBalancesFnInputSchema, FindBalancesFnOutputSchema, FindTokensFnInputSchema, FindTokensFnOutputSchema, FindTransferGroupsFnInputSchema, FindTransferGroupsFnOutputSchema, FindTransfersFnInputSchema, FindTransfersFnOutputSchema, FindWalletsFnInputSchema, FindWalletsFnOutputSchema, GetBalanceFnInputSchema, GetBalanceFnOutputSchema, GetBalanceHistoryFnInputSchema, GetBalanceHistoryFnOutputSchema, GetFlagsFnInputSchema, GetFlagsFnOutputSchema, GetStatisticsFnInputSchema, GetStatisticsFnOutputSchema, GetTokenFnInputSchema, GetTokenFnOutputSchema, GetTransferFnInputSchema, GetTransferFnOutputSchema, GetTransferGroupFnInputSchema, GetTransferGroupFnOutputSchema, GetWalletFnInputSchema, GetWalletFnOutputSchema, ImportDataFnInputSchema, ImportDataFnOutputSchema, ReverseTransferFnInputSchema, ReverseTransferFnOutputSchema, ReverseTransferGroupFnInputSchema, ReverseTransferGroupFnOutputSchema, ReverseTransfersFnInputSchema, ReverseTransfersFnOutputSchema, SetFlagsFnInputSchema, SetFlagsFnOutputSchema, UpdateTokenFnInputSchema, UpdateTokenFnOutputSchema, UpdateTransferFnInputSchema, UpdateTransferFnOutputSchema, UpdateTransferGroupFnInputSchema, UpdateTransferGroupFnOutputSchema, UpdateTransferGroupsFnInputSchema, UpdateTransferGroupsFnOutputSchema, UpdateTransfersFnInputSchema, UpdateTransfersFnOutputSchema, UpdateWalletFnInputSchema, UpdateWalletFnOutputSchema, };
|
|
118
|
+
export { FnConstsSchema, aggregateTransfers, AggregateTransfersFnFields, AggregateTransfersFnMetadataFields, AggregateTransfersFnStringFields, AggregateTransfersFnGroupFields, createAccessToken, createContract, createDeposit, createExchange, createToken, createTransfer, createTransferGroup, createTransfers, createWallet, createWithdrawal, findBalances, FindBalancesFnFields, FindBalancesFnMetadataFields, FindBalancesFnStringFields, FindBalancesFnResultFields, findTokens, FindTokensFnFields, FindTokensFnMetadataFields, FindTokensFnStringFields, FindTokensFnResultFields, findTransferGroups, FindTransferGroupsFnFields, FindTransferGroupsFnMetadataFields, FindTransferGroupsFnStringFields, FindTransferGroupsFnResultFields, findTransfers, FindTransfersFnFields, FindTransfersFnMetadataFields, FindTransfersFnStringFields, FindTransfersFnResultFields, findWallets, FindWalletsFnFields, FindWalletsFnMetadataFields, FindWalletsFnStringFields, FindWalletsFnResultFields, getBalance, getBalanceHistory, getFlags, getStatistics, getToken, getTransfer, getTransferGroup, getWallet, importData, isImportDataFnOptions, isImportDataFnInput, reverseTransfer, reverseTransferGroup, reverseTransfers, ReverseTransfersFnFields, ReverseTransfersFnMetadataFields, ReverseTransfersFnStringFields, setFlags, updateToken, updateTransfer, updateTransferGroup, updateTransferGroups, UpdateTransferGroupsFnFields, UpdateTransferGroupsFnMetadataFields, UpdateTransferGroupsFnStringFields, UpdateTransferGroupsFnResultFields, updateTransfers, UpdateTransfersFnFields, UpdateTransfersFnMetadataFields, UpdateTransfersFnStringFields, UpdateTransfersFnResultFields, updateWallet, AggregateTransfersFnInputSchema, AggregateTransfersFnOutputSchema, CreateAccessTokenFnInputSchema, CreateAccessTokenFnOutputSchema, CreateContractFnInputSchema, CreateContractFnOutputSchema, CreateDepositFnInputSchema, CreateDepositFnOutputSchema, CreateExchangeFnInputSchema, CreateExchangeFnOutputSchema, CreateTokenFnInputSchema, CreateTokenFnOutputSchema, CreateTransferFnInputSchema, CreateTransferFnOutputSchema, CreateTransferGroupFnInputSchema, CreateTransferGroupFnOutputSchema, CreateTransfersFnInputSchema, CreateTransfersFnOutputSchema, CreateWalletFnInputSchema, CreateWalletFnOutputSchema, CreateWithdrawalFnInputSchema, CreateWithdrawalFnOutputSchema, FindBalancesFnInputSchema, FindBalancesFnOutputSchema, FindTokensFnInputSchema, FindTokensFnOutputSchema, FindTransferGroupsFnInputSchema, FindTransferGroupsFnOutputSchema, FindTransfersFnInputSchema, FindTransfersFnOutputSchema, FindWalletsFnInputSchema, FindWalletsFnOutputSchema, GetBalanceFnInputSchema, GetBalanceFnOutputSchema, GetBalanceHistoryFnInputSchema, GetBalanceHistoryFnOutputSchema, GetFlagsFnInputSchema, GetFlagsFnOutputSchema, GetStatisticsFnInputSchema, GetStatisticsFnOutputSchema, GetTokenFnInputSchema, GetTokenFnOutputSchema, GetTransferFnInputSchema, GetTransferFnOutputSchema, GetTransferGroupFnInputSchema, GetTransferGroupFnOutputSchema, GetWalletFnInputSchema, GetWalletFnOutputSchema, ImportDataFnInputSchema, ImportDataFnOutputSchema, ReverseTransferFnInputSchema, ReverseTransferFnOutputSchema, ReverseTransferGroupFnInputSchema, ReverseTransferGroupFnOutputSchema, ReverseTransfersFnInputSchema, ReverseTransfersFnOutputSchema, SetFlagsFnInputSchema, SetFlagsFnOutputSchema, UpdateTokenFnInputSchema, UpdateTokenFnOutputSchema, UpdateTransferFnInputSchema, UpdateTransferFnOutputSchema, UpdateTransferGroupFnInputSchema, UpdateTransferGroupFnOutputSchema, UpdateTransferGroupsFnInputSchema, UpdateTransferGroupsFnOutputSchema, UpdateTransfersFnInputSchema, UpdateTransfersFnOutputSchema, UpdateWalletFnInputSchema, UpdateWalletFnOutputSchema, };
|
|
116
119
|
export * from './aggregate-transfers/aggregate-transfers.enums';
|
|
120
|
+
export * from './create-access-token/create-access-token.enums';
|
|
117
121
|
export * from './create-contract/create-contract.enums';
|
|
118
122
|
export * from './create-deposit/create-deposit.enums';
|
|
119
123
|
export * from './create-exchange/create-exchange.enums';
|
|
@@ -152,6 +156,7 @@ export * from './update-wallet/update-wallet.enums';
|
|
|
152
156
|
*/
|
|
153
157
|
export declare const ClientValidators: {
|
|
154
158
|
aggregateTransfers: import("../lib/validator").ValidationFunction;
|
|
159
|
+
createAccessToken: import("../lib/validator").ValidationFunction;
|
|
155
160
|
createContract: import("../lib/validator").ValidationFunction;
|
|
156
161
|
createDeposit: import("../lib/validator").ValidationFunction;
|
|
157
162
|
createExchange: import("../lib/validator").ValidationFunction;
|
|
@@ -191,6 +196,7 @@ export declare const ClientValidators: {
|
|
|
191
196
|
*/
|
|
192
197
|
export declare const ClientFunctions: {
|
|
193
198
|
aggregateTransfers: typeof aggregateTransfers;
|
|
199
|
+
createAccessToken: typeof createAccessToken;
|
|
194
200
|
createContract: typeof createContract;
|
|
195
201
|
createDeposit: typeof createDeposit;
|
|
196
202
|
createExchange: typeof createExchange;
|
|
@@ -230,6 +236,7 @@ export declare const ClientFunctions: {
|
|
|
230
236
|
*/
|
|
231
237
|
export declare enum ClientFunctionsEnum {
|
|
232
238
|
aggregateTransfers = 'aggregateTransfers',
|
|
239
|
+
createAccessToken = 'createAccessToken',
|
|
233
240
|
createContract = 'createContract',
|
|
234
241
|
createDeposit = 'createDeposit',
|
|
235
242
|
createExchange = 'createExchange',
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { getIdentifier } from './lib/utils';
|
|
|
7
7
|
import { Validator } from './lib/validator';
|
|
8
8
|
export declare enum WapiClientType {
|
|
9
9
|
ws = 'ws',
|
|
10
|
-
|
|
10
|
+
https = 'https'
|
|
11
11
|
}
|
|
12
12
|
export interface WapiClientWsOptions {
|
|
13
13
|
client: WapiClientType.ws;
|
|
@@ -15,7 +15,7 @@ export interface WapiClientWsOptions {
|
|
|
15
15
|
config?: ClientConfig;
|
|
16
16
|
}
|
|
17
17
|
export interface WapiCLientHttpOptions {
|
|
18
|
-
client: WapiClientType.
|
|
18
|
+
client: WapiClientType.https;
|
|
19
19
|
connection: WapiHttpConnectionOptions;
|
|
20
20
|
config?: ClientConfig;
|
|
21
21
|
}
|
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' | 'CreateContractFnInput' | 'CreateContractFnOutput' | 'CreateDepositFnInput' | 'CreateDepositFnOutput' | 'CreateExchangeFnInput' | 'CreateExchangeFnOutput' | 'CreateTokenFnInput' | 'CreateTokenFnOutput' | 'CreateTransferFnInput' | 'CreateTransferFnOutput' | 'CreateTransferGroupFnInput' | 'CreateTransferGroupFnOutput' | 'CreateTransfersFnInput' | 'CreateTransfersFnOutput' | 'CreateWalletFnInput' | 'CreateWalletFnOutput' | 'CreateWithdrawalFnInput' | 'CreateWithdrawalFnOutput' | 'FindBalancesFnInput' | 'FindBalancesFnOutput' | 'FindTokensFnInput' | 'FindTokensFnOutput' | 'FindTransferGroupsFnInput' | 'FindTransferGroupsFnOutput' | 'FindTransfersFnInput' | 'FindTransfersFnOutput' | 'FindWalletsFnInput' | 'FindWalletsFnOutput' | 'FnConsts' | 'GetBalanceFnInput' | 'GetBalanceFnOutput' | 'GetBalanceHistoryFnInput' | 'GetBalanceHistoryFnOutput' | 'GetFlagsFnInput' | 'GetFlagsFnOutput' | 'GetStatisticsFnInput' | 'GetStatisticsFnOutput' | 'GetTokenFnInput' | 'GetTokenFnOutput' | 'GetTransferFnInput' | 'GetTransferFnOutput' | 'GetTransferGroupFnInput' | 'GetTransferGroupFnOutput' | 'GetWalletFnInput' | 'GetWalletFnOutput' | 'ImportDataFnInput' | 'ImportDataFnOptions' | 'ImportDataFnStreamChunk' | 'ImportDataFnOutput' | 'ReverseTransferFnInput' | 'ReverseTransferFnOutput' | 'ReverseTransferGroupFnInput' | 'ReverseTransferGroupFnOutput' | 'ReverseTransfersFnInput' | 'ReverseTransfersFnOutput' | 'SetFlagsFnInput' | 'SetFlagsFnOutput' | 'UpdateTokenFnInput' | 'UpdateTokenFnOutput' | 'UpdateTransferFnInput' | 'UpdateTransferFnOutput' | 'UpdateTransferGroupFnInput' | 'UpdateTransferGroupFnOutput' | 'UpdateTransferGroupsFnInput' | 'UpdateTransferGroupsFnOutput' | 'UpdateTransfersFnInput' | 'UpdateTransfersFnOutput' | 'UpdateWalletFnInput' | 'UpdateWalletFnOutput' | 'AggregateTransferManyTxInput' | 'AggregateTransferManyTxOutput' | 'AuthenticationCheckTxInput' | 'AuthenticationCheckTxOutput' | 'CreateAccessTokenTxInput' | 'CreateAccessTokenTxOutput' | 'CreateContractTxInput' | 'CreateContractTxOutput' | 'CreateDepositTxInput' | 'CreateDepositTxOutput' | 'CreateDistributionTxInput' | 'CreateDistributionTxOutput' | 'CreateTokenTxInput' | 'CreateTokenTxOutput' | 'CreateTransferTxInput' | 'CreateTransferTxOutput' | 'CreateTransferGroupTxInput' | 'CreateTransferGroupTxOutput' | 'CreateTransferManyTxInput' | 'CreateTransferManyTxOutput' | 'CreateWalletTxInput' | 'CreateWalletTxOutput' | 'CreateWithdrawalTxInput' | 'CreateWithdrawalTxOutput' | 'FindBalanceManyTxInput' | 'FindBalanceManyTxOutput' | 'FindTokenManyTxInput' | 'FindTokenManyTxOutput' | 'FindTransferGroupManyTxInput' | 'FindTransferGroupManyTxOutput' | 'FindTransferManyTxInput' | 'FindTransferManyTxOutput' | 'FindWalletManyTxInput' | 'FindWalletManyTxOutput' | 'FinishTransactionTxInput' | 'FinishTransactionTxOutput' | 'GetBalanceTxInput' | 'GetBalanceTxOutput' | 'GetBalanceHistoryTxInput' | 'GetBalanceHistoryTxOutput' | 'GetFlagsTxInput' | 'GetFlagsTxOutput' | 'GetStatisticsTxInput' | 'GetStatisticsTxOutput' | 'GetTokenTxInput' | 'GetTokenTxOutput' | 'GetTokenManyTxInput' | 'GetTokenManyTxOutput' | 'GetTransferTxInput' | 'GetTransferTxOutput' | 'GetTransferGroupTxInput' | 'GetTransferGroupTxOutput' | 'GetWalletTxInput' | 'GetWalletTxOutput' | 'GetWalletManyTxInput' | 'GetWalletManyTxOutput' | 'ImportActionsTxInput' | 'ImportActionsTxOptions' | 'ImportActionsTxStreamChunk' | 'ImportActionsTxOutput' | 'QueryTxInput' | 'QueryTxOutput' | 'QueryLogsTxInput' | 'QueryLogsTxOutput' | 'ResetDatabaseTxInput' | 'ResetDatabaseTxOutput' | 'ReverseTransferTxInput' | 'ReverseTransferTxOutput' | 'ReverseTransferGroupTxInput' | 'ReverseTransferGroupTxOutput' | 'ReverseTransferGroupManyTxInput' | 'ReverseTransferGroupManyTxOutput' | 'ReverseTransferManyTxInput' | 'ReverseTransferManyTxOutput' | 'SetFlagsTxInput' | 'SetFlagsTxOutput' | 'StartTransactionTxInput' | 'StartTransactionTxOutput' | 'TxConsts' | 'UpdateTokenTxInput' | 'UpdateTokenTxOutput' | 'UpdateTransferTxInput' | 'UpdateTransferTxOutput' | 'UpdateTransferGroupTxInput' | 'UpdateTransferGroupTxOutput' | 'UpdateTransferGroupManyTxInput' | 'UpdateTransferGroupManyTxOutput' | 'UpdateTransferManyTxInput' | 'UpdateTransferManyTxOutput' | 'UpdateWalletTxInput' | 'UpdateWalletTxOutput';
|
|
11
|
+
export declare type SchemaName = 'JSONRPCRequest' | 'JSONRPCResponse' | 'ClientOptions' | 'Consts' | 'TokenTableInput' | 'TokenTable' | 'TokenTableOptional' | 'TransferTableInput' | 'TransferTable' | 'TransferTableOptional' | 'TransferGroupTableInput' | 'TransferGroupTable' | 'TransferGroupTableOptional' | 'TransferLogTableInput' | 'TransferLogTable' | 'TransferLogTableOptional' | 'WalletTableInput' | 'WalletTable' | 'WalletTableOptional' | 'WalletTokenSettingTableInput' | 'WalletTokenSettingTable' | 'WalletTokenSettingTableOptional' | 'WapiSettingTableInput' | 'WapiSettingTable' | 'WapiSettingTableOptional' | 'AggregateTransfersFnInput' | 'AggregateTransfersFnOutput' | 'CreateAccessTokenFnInput' | 'CreateAccessTokenFnOutput' | 'CreateContractFnInput' | 'CreateContractFnOutput' | 'CreateDepositFnInput' | 'CreateDepositFnOutput' | 'CreateExchangeFnInput' | 'CreateExchangeFnOutput' | 'CreateTokenFnInput' | 'CreateTokenFnOutput' | 'CreateTransferFnInput' | 'CreateTransferFnOutput' | 'CreateTransferGroupFnInput' | 'CreateTransferGroupFnOutput' | 'CreateTransfersFnInput' | 'CreateTransfersFnOutput' | 'CreateWalletFnInput' | 'CreateWalletFnOutput' | 'CreateWithdrawalFnInput' | 'CreateWithdrawalFnOutput' | 'FindBalancesFnInput' | 'FindBalancesFnOutput' | 'FindTokensFnInput' | 'FindTokensFnOutput' | 'FindTransferGroupsFnInput' | 'FindTransferGroupsFnOutput' | 'FindTransfersFnInput' | 'FindTransfersFnOutput' | 'FindWalletsFnInput' | 'FindWalletsFnOutput' | 'FnConsts' | 'GetBalanceFnInput' | 'GetBalanceFnOutput' | 'GetBalanceHistoryFnInput' | 'GetBalanceHistoryFnOutput' | 'GetFlagsFnInput' | 'GetFlagsFnOutput' | 'GetStatisticsFnInput' | 'GetStatisticsFnOutput' | 'GetTokenFnInput' | 'GetTokenFnOutput' | 'GetTransferFnInput' | 'GetTransferFnOutput' | 'GetTransferGroupFnInput' | 'GetTransferGroupFnOutput' | 'GetWalletFnInput' | 'GetWalletFnOutput' | 'ImportDataFnInput' | 'ImportDataFnOptions' | 'ImportDataFnStreamChunk' | 'ImportDataFnOutput' | 'ReverseTransferFnInput' | 'ReverseTransferFnOutput' | 'ReverseTransferGroupFnInput' | 'ReverseTransferGroupFnOutput' | 'ReverseTransfersFnInput' | 'ReverseTransfersFnOutput' | 'SetFlagsFnInput' | 'SetFlagsFnOutput' | 'UpdateTokenFnInput' | 'UpdateTokenFnOutput' | 'UpdateTransferFnInput' | 'UpdateTransferFnOutput' | 'UpdateTransferGroupFnInput' | 'UpdateTransferGroupFnOutput' | 'UpdateTransferGroupsFnInput' | 'UpdateTransferGroupsFnOutput' | 'UpdateTransfersFnInput' | 'UpdateTransfersFnOutput' | 'UpdateWalletFnInput' | 'UpdateWalletFnOutput' | 'AggregateTransferManyTxInput' | 'AggregateTransferManyTxOutput' | 'AuthenticationCheckTxInput' | 'AuthenticationCheckTxOutput' | 'CreateAccessTokenTxInput' | 'CreateAccessTokenTxOutput' | 'CreateContractTxInput' | 'CreateContractTxOutput' | 'CreateDepositTxInput' | 'CreateDepositTxOutput' | 'CreateDistributionTxInput' | 'CreateDistributionTxOutput' | 'CreateTokenTxInput' | 'CreateTokenTxOutput' | 'CreateTransferTxInput' | 'CreateTransferTxOutput' | 'CreateTransferGroupTxInput' | 'CreateTransferGroupTxOutput' | 'CreateTransferManyTxInput' | 'CreateTransferManyTxOutput' | 'CreateWalletTxInput' | 'CreateWalletTxOutput' | 'CreateWithdrawalTxInput' | 'CreateWithdrawalTxOutput' | 'ExportDatabaseTxInput' | 'ExportDatabaseTxOutput' | 'FindBalanceManyTxInput' | 'FindBalanceManyTxOutput' | 'FindTokenManyTxInput' | 'FindTokenManyTxOutput' | 'FindTransferGroupManyTxInput' | 'FindTransferGroupManyTxOutput' | 'FindTransferManyTxInput' | 'FindTransferManyTxOutput' | 'FindWalletManyTxInput' | 'FindWalletManyTxOutput' | 'FinishTransactionTxInput' | 'FinishTransactionTxOutput' | 'GetBalanceTxInput' | 'GetBalanceTxOutput' | 'GetBalanceHistoryTxInput' | 'GetBalanceHistoryTxOutput' | 'GetDatabaseExportProgressTxInput' | 'GetDatabaseExportProgressTxOutput' | 'GetDatabaseImportProgressTxInput' | 'GetDatabaseImportProgressTxOutput' | 'GetFlagsTxInput' | 'GetFlagsTxOutput' | 'GetStatisticsTxInput' | 'GetStatisticsTxOutput' | 'GetTokenTxInput' | 'GetTokenTxOutput' | 'GetTokenManyTxInput' | 'GetTokenManyTxOutput' | 'GetTransferTxInput' | 'GetTransferTxOutput' | 'GetTransferGroupTxInput' | 'GetTransferGroupTxOutput' | 'GetWalletTxInput' | 'GetWalletTxOutput' | 'GetWalletManyTxInput' | 'GetWalletManyTxOutput' | 'ImportActionsTxInput' | 'ImportActionsTxOptions' | 'ImportActionsTxStreamChunk' | 'ImportActionsTxOutput' | 'ImportDatabaseTxInput' | 'ImportDatabaseTxOutput' | 'ListDatabaseBackupsTxInput' | 'ListDatabaseBackupsTxOutput' | 'QueryTxInput' | 'QueryTxOutput' | 'QueryLogsTxInput' | 'QueryLogsTxOutput' | 'ResetDatabaseTxInput' | 'ResetDatabaseTxOutput' | 'ReverseTransferTxInput' | 'ReverseTransferTxOutput' | 'ReverseTransferGroupTxInput' | 'ReverseTransferGroupTxOutput' | 'ReverseTransferGroupManyTxInput' | 'ReverseTransferGroupManyTxOutput' | 'ReverseTransferManyTxInput' | 'ReverseTransferManyTxOutput' | 'SetFlagsTxInput' | 'SetFlagsTxOutput' | 'StartTransactionTxInput' | 'StartTransactionTxOutput' | 'TxConsts' | 'UpdateTokenTxInput' | 'UpdateTokenTxOutput' | 'UpdateTransferTxInput' | 'UpdateTransferTxOutput' | 'UpdateTransferGroupTxInput' | 'UpdateTransferGroupTxOutput' | 'UpdateTransferGroupManyTxInput' | 'UpdateTransferGroupManyTxOutput' | 'UpdateTransferManyTxInput' | 'UpdateTransferManyTxOutput' | 'UpdateWalletTxInput' | 'UpdateWalletTxOutput';
|
|
12
12
|
/**
|
|
13
13
|
* @internal
|
|
14
14
|
*/
|
|
@@ -40,6 +40,8 @@ export declare enum SchemaNames {
|
|
|
40
40
|
WapiSettingTableOptional = 'WapiSettingTableOptional',
|
|
41
41
|
AggregateTransfersFnInput = 'AggregateTransfersFnInput',
|
|
42
42
|
AggregateTransfersFnOutput = 'AggregateTransfersFnOutput',
|
|
43
|
+
CreateAccessTokenFnInput = 'CreateAccessTokenFnInput',
|
|
44
|
+
CreateAccessTokenFnOutput = 'CreateAccessTokenFnOutput',
|
|
43
45
|
CreateContractFnInput = 'CreateContractFnInput',
|
|
44
46
|
CreateContractFnOutput = 'CreateContractFnOutput',
|
|
45
47
|
CreateDepositFnInput = 'CreateDepositFnInput',
|
|
@@ -133,6 +135,8 @@ export declare enum SchemaNames {
|
|
|
133
135
|
CreateWalletTxOutput = 'CreateWalletTxOutput',
|
|
134
136
|
CreateWithdrawalTxInput = 'CreateWithdrawalTxInput',
|
|
135
137
|
CreateWithdrawalTxOutput = 'CreateWithdrawalTxOutput',
|
|
138
|
+
ExportDatabaseTxInput = 'ExportDatabaseTxInput',
|
|
139
|
+
ExportDatabaseTxOutput = 'ExportDatabaseTxOutput',
|
|
136
140
|
FindBalanceManyTxInput = 'FindBalanceManyTxInput',
|
|
137
141
|
FindBalanceManyTxOutput = 'FindBalanceManyTxOutput',
|
|
138
142
|
FindTokenManyTxInput = 'FindTokenManyTxInput',
|
|
@@ -149,6 +153,10 @@ export declare enum SchemaNames {
|
|
|
149
153
|
GetBalanceTxOutput = 'GetBalanceTxOutput',
|
|
150
154
|
GetBalanceHistoryTxInput = 'GetBalanceHistoryTxInput',
|
|
151
155
|
GetBalanceHistoryTxOutput = 'GetBalanceHistoryTxOutput',
|
|
156
|
+
GetDatabaseExportProgressTxInput = 'GetDatabaseExportProgressTxInput',
|
|
157
|
+
GetDatabaseExportProgressTxOutput = 'GetDatabaseExportProgressTxOutput',
|
|
158
|
+
GetDatabaseImportProgressTxInput = 'GetDatabaseImportProgressTxInput',
|
|
159
|
+
GetDatabaseImportProgressTxOutput = 'GetDatabaseImportProgressTxOutput',
|
|
152
160
|
GetFlagsTxInput = 'GetFlagsTxInput',
|
|
153
161
|
GetFlagsTxOutput = 'GetFlagsTxOutput',
|
|
154
162
|
GetStatisticsTxInput = 'GetStatisticsTxInput',
|
|
@@ -169,6 +177,10 @@ export declare enum SchemaNames {
|
|
|
169
177
|
ImportActionsTxOptions = 'ImportActionsTxOptions',
|
|
170
178
|
ImportActionsTxStreamChunk = 'ImportActionsTxStreamChunk',
|
|
171
179
|
ImportActionsTxOutput = 'ImportActionsTxOutput',
|
|
180
|
+
ImportDatabaseTxInput = 'ImportDatabaseTxInput',
|
|
181
|
+
ImportDatabaseTxOutput = 'ImportDatabaseTxOutput',
|
|
182
|
+
ListDatabaseBackupsTxInput = 'ListDatabaseBackupsTxInput',
|
|
183
|
+
ListDatabaseBackupsTxOutput = 'ListDatabaseBackupsTxOutput',
|
|
172
184
|
QueryTxInput = 'QueryTxInput',
|
|
173
185
|
QueryTxOutput = 'QueryTxOutput',
|
|
174
186
|
QueryLogsTxInput = 'QueryLogsTxInput',
|
|
@@ -39,6 +39,7 @@ export declare type CreateAccessTokenTxOptions = ITxGeneralOptions & CreateAcces
|
|
|
39
39
|
*/
|
|
40
40
|
export interface CreateAccessTokenTxInput {
|
|
41
41
|
token?: CreateAccessTokenLimited | CreateAccessTokenAdmin;
|
|
42
|
+
options?: CreateAccessTokenTxOptions;
|
|
42
43
|
}
|
|
43
44
|
/**
|
|
44
45
|
* Output of createAccessToken
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare type ExportDatabaseTxInputStringFields = 'export_name';
|
|
2
|
+
/**
|
|
3
|
+
* Input for exportDatabase
|
|
4
|
+
*
|
|
5
|
+
* @category Input
|
|
6
|
+
*/
|
|
7
|
+
export interface ExportDatabaseTxInput {
|
|
8
|
+
/**
|
|
9
|
+
* Name of the created export file
|
|
10
|
+
*/
|
|
11
|
+
export_name?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Output of exportDatabase
|
|
15
|
+
*
|
|
16
|
+
* @category Output
|
|
17
|
+
*/
|
|
18
|
+
export interface ExportDatabaseTxOutput {
|
|
19
|
+
message?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ExportDatabaseTxInput } from './export-database.enums';
|
|
2
|
+
export declare function isExportDatabaseTxInput(input: unknown): input is ExportDatabaseTxInput;
|
|
3
|
+
import { ExportDatabaseTxOutput } from './export-database.enums';
|
|
4
|
+
export declare function isExportDatabaseTxOutput(input: unknown): input is ExportDatabaseTxOutput;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ITxGeneralOptions } from '../tx-consts.enums';
|
|
2
|
+
/**
|
|
3
|
+
* Optional flags for input
|
|
4
|
+
*/
|
|
5
|
+
export interface GetDatabaseBackupProgressAdditionalOptions {
|
|
6
|
+
}
|
|
7
|
+
export declare type GetDatabaseBackupProgressTxOptions = ITxGeneralOptions & GetDatabaseBackupProgressAdditionalOptions;
|
|
8
|
+
/**
|
|
9
|
+
* Input for getDatabaseExportProgress
|
|
10
|
+
*
|
|
11
|
+
* @category Input
|
|
12
|
+
*/
|
|
13
|
+
export interface GetDatabaseExportProgressTxInput {
|
|
14
|
+
options?: GetDatabaseBackupProgressTxOptions;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Output of getDatabaseExportProgress
|
|
18
|
+
*
|
|
19
|
+
* @category Output
|
|
20
|
+
*/
|
|
21
|
+
export interface GetDatabaseExportProgressTxOutput {
|
|
22
|
+
/**
|
|
23
|
+
* Size of a exported backup in MB
|
|
24
|
+
*/
|
|
25
|
+
size?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Boolean indicating if export has started
|
|
28
|
+
*/
|
|
29
|
+
started?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Boolean indicating if export has finished
|
|
32
|
+
*/
|
|
33
|
+
finished?: boolean;
|
|
34
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { GetDatabaseExportProgressTxInput } from './get-database-export-progress.enums';
|
|
2
|
+
export declare function isGetDatabaseExportProgressTxInput(input: unknown): input is GetDatabaseExportProgressTxInput;
|
|
3
|
+
import { GetDatabaseExportProgressTxOutput } from './get-database-export-progress.enums';
|
|
4
|
+
export declare function isGetDatabaseExportProgressTxOutput(input: unknown): input is GetDatabaseExportProgressTxOutput;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ITxGeneralOptions } from '../tx-consts.enums';
|
|
2
|
+
export declare type ImportDatabaseProgressTxOptions = ITxGeneralOptions;
|
|
3
|
+
/**
|
|
4
|
+
* Input for GetDatabaseImportProgress
|
|
5
|
+
*
|
|
6
|
+
* @category Input
|
|
7
|
+
*/
|
|
8
|
+
export interface GetDatabaseImportProgressTxInput {
|
|
9
|
+
options?: ImportDatabaseProgressTxOptions;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Output of GetDatabaseImportProgress
|
|
13
|
+
*
|
|
14
|
+
* @category Output
|
|
15
|
+
*/
|
|
16
|
+
export interface GetDatabaseImportProgressTxOutput {
|
|
17
|
+
/**
|
|
18
|
+
* Percentage of imported database
|
|
19
|
+
*/
|
|
20
|
+
progress?: number;
|
|
21
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { GetDatabaseImportProgressTxInput } from './get-database-import-progress.enums';
|
|
2
|
+
export declare function isGetDatabaseImportProgressTxInput(input: unknown): input is GetDatabaseImportProgressTxInput;
|
|
3
|
+
import { GetDatabaseImportProgressTxOutput } from './get-database-import-progress.enums';
|
|
4
|
+
export declare function isGetDatabaseImportProgressTxOutput(input: unknown): input is GetDatabaseImportProgressTxOutput;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare type ImportDatabaseTxInputStringFields = 'name';
|
|
2
|
+
/**
|
|
3
|
+
* Input for importDatabase
|
|
4
|
+
*
|
|
5
|
+
* @category Input
|
|
6
|
+
*/
|
|
7
|
+
export interface ImportDatabaseTxInput {
|
|
8
|
+
name?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Output of importDatabase
|
|
12
|
+
*
|
|
13
|
+
* @category Output
|
|
14
|
+
*/
|
|
15
|
+
export interface ImportDatabaseTxOutput {
|
|
16
|
+
message?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ImportDatabaseTxInput } from './import-database.enums';
|
|
2
|
+
export declare function isImportDatabaseTxInput(input: unknown): input is ImportDatabaseTxInput;
|
|
3
|
+
import { ImportDatabaseTxOutput } from './import-database.enums';
|
|
4
|
+
export declare function isImportDatabaseTxOutput(input: unknown): input is ImportDatabaseTxOutput;
|
package/dist/txs/index.d.ts
CHANGED
|
@@ -49,6 +49,10 @@ export * from './create-withdrawal/create-withdrawal.enums';
|
|
|
49
49
|
interface CreateWithdrawalTxInputSchema { [key: string]: any; }
|
|
50
50
|
interface CreateWithdrawalTxOutputSchema { [key: string]: any; }
|
|
51
51
|
export { CreateWithdrawalTxInputSchema, CreateWithdrawalTxOutputSchema };
|
|
52
|
+
export * from './export-database/export-database.enums';
|
|
53
|
+
interface ExportDatabaseTxInputSchema { [key: string]: any; }
|
|
54
|
+
interface ExportDatabaseTxOutputSchema { [key: string]: any; }
|
|
55
|
+
export { ExportDatabaseTxInputSchema, ExportDatabaseTxOutputSchema };
|
|
52
56
|
export * from './find-balance-many/find-balance-many.enums';
|
|
53
57
|
interface FindBalanceManyTxInputSchema { [key: string]: any; }
|
|
54
58
|
interface FindBalanceManyTxOutputSchema { [key: string]: any; }
|
|
@@ -81,6 +85,14 @@ export * from './get-balance-history/get-balance-history.enums';
|
|
|
81
85
|
interface GetBalanceHistoryTxInputSchema { [key: string]: any; }
|
|
82
86
|
interface GetBalanceHistoryTxOutputSchema { [key: string]: any; }
|
|
83
87
|
export { GetBalanceHistoryTxInputSchema, GetBalanceHistoryTxOutputSchema };
|
|
88
|
+
export * from './get-database-export-progress/get-database-export-progress.enums';
|
|
89
|
+
interface GetDatabaseExportProgressTxInputSchema { [key: string]: any; }
|
|
90
|
+
interface GetDatabaseExportProgressTxOutputSchema { [key: string]: any; }
|
|
91
|
+
export { GetDatabaseExportProgressTxInputSchema, GetDatabaseExportProgressTxOutputSchema, };
|
|
92
|
+
export * from './get-database-import-progress/get-database-import-progress.enums';
|
|
93
|
+
interface GetDatabaseImportProgressTxInputSchema { [key: string]: any; }
|
|
94
|
+
interface GetDatabaseImportProgressTxOutputSchema { [key: string]: any; }
|
|
95
|
+
export { GetDatabaseImportProgressTxInputSchema, GetDatabaseImportProgressTxOutputSchema, };
|
|
84
96
|
export * from './get-flags/get-flags.enums';
|
|
85
97
|
interface GetFlagsTxInputSchema { [key: string]: any; }
|
|
86
98
|
interface GetFlagsTxOutputSchema { [key: string]: any; }
|
|
@@ -117,6 +129,14 @@ export * from './import-actions/import-actions.enums';
|
|
|
117
129
|
interface ImportActionsTxInputSchema { [key: string]: any; }
|
|
118
130
|
interface ImportActionsTxOutputSchema { [key: string]: any; }
|
|
119
131
|
export { ImportActionsTxInputSchema, ImportActionsTxOutputSchema };
|
|
132
|
+
export * from './import-database/import-database.enums';
|
|
133
|
+
interface ImportDatabaseTxInputSchema { [key: string]: any; }
|
|
134
|
+
interface ImportDatabaseTxOutputSchema { [key: string]: any; }
|
|
135
|
+
export { ImportDatabaseTxInputSchema, ImportDatabaseTxOutputSchema };
|
|
136
|
+
export * from './list-database-backups/list-database-backups.enums';
|
|
137
|
+
interface ListDatabaseBackupsTxInputSchema { [key: string]: any; }
|
|
138
|
+
interface ListDatabaseBackupsTxOutputSchema { [key: string]: any; }
|
|
139
|
+
export { ListDatabaseBackupsTxInputSchema, ListDatabaseBackupsTxOutputSchema };
|
|
120
140
|
export * from './query/query.enums';
|
|
121
141
|
interface QueryTxInputSchema { [key: string]: any; }
|
|
122
142
|
interface QueryTxOutputSchema { [key: string]: any; }
|
|
@@ -190,6 +210,7 @@ export declare const APIValidators: {
|
|
|
190
210
|
createTransferMany: import("../lib/validator").ValidationFunction;
|
|
191
211
|
createWallet: import("../lib/validator").ValidationFunction;
|
|
192
212
|
createWithdrawal: import("../lib/validator").ValidationFunction;
|
|
213
|
+
exportDatabase: import("../lib/validator").ValidationFunction;
|
|
193
214
|
findBalanceMany: import("../lib/validator").ValidationFunction;
|
|
194
215
|
findTokenMany: import("../lib/validator").ValidationFunction;
|
|
195
216
|
findTransferGroupMany: import("../lib/validator").ValidationFunction;
|
|
@@ -198,6 +219,8 @@ export declare const APIValidators: {
|
|
|
198
219
|
finishTransaction: import("../lib/validator").ValidationFunction;
|
|
199
220
|
getBalance: import("../lib/validator").ValidationFunction;
|
|
200
221
|
getBalanceHistory: import("../lib/validator").ValidationFunction;
|
|
222
|
+
getDatabaseExportProgress: import("../lib/validator").ValidationFunction;
|
|
223
|
+
getDatabaseImportProgress: import("../lib/validator").ValidationFunction;
|
|
201
224
|
getFlags: import("../lib/validator").ValidationFunction;
|
|
202
225
|
getStatistics: import("../lib/validator").ValidationFunction;
|
|
203
226
|
getToken: import("../lib/validator").ValidationFunction;
|
|
@@ -207,6 +230,8 @@ export declare const APIValidators: {
|
|
|
207
230
|
getWallet: import("../lib/validator").ValidationFunction;
|
|
208
231
|
getWalletMany: import("../lib/validator").ValidationFunction;
|
|
209
232
|
importActions: import("../lib/validator").ValidationFunction;
|
|
233
|
+
importDatabase: import("../lib/validator").ValidationFunction;
|
|
234
|
+
listDatabaseBackups: import("../lib/validator").ValidationFunction;
|
|
210
235
|
query: import("../lib/validator").ValidationFunction;
|
|
211
236
|
queryLogs: import("../lib/validator").ValidationFunction;
|
|
212
237
|
resetDatabase: import("../lib/validator").ValidationFunction;
|
|
@@ -236,6 +261,7 @@ export declare enum APIFunctions {
|
|
|
236
261
|
createTransferMany = 'createTransferMany',
|
|
237
262
|
createWallet = 'createWallet',
|
|
238
263
|
createWithdrawal = 'createWithdrawal',
|
|
264
|
+
exportDatabase = 'exportDatabase',
|
|
239
265
|
findBalanceMany = 'findBalanceMany',
|
|
240
266
|
findTokenMany = 'findTokenMany',
|
|
241
267
|
findTransferGroupMany = 'findTransferGroupMany',
|
|
@@ -244,6 +270,8 @@ export declare enum APIFunctions {
|
|
|
244
270
|
finishTransaction = 'finishTransaction',
|
|
245
271
|
getBalance = 'getBalance',
|
|
246
272
|
getBalanceHistory = 'getBalanceHistory',
|
|
273
|
+
getDatabaseExportProgress = 'getDatabaseExportProgress',
|
|
274
|
+
getDatabaseImportProgress = 'getDatabaseImportProgress',
|
|
247
275
|
getFlags = 'getFlags',
|
|
248
276
|
getStatistics = 'getStatistics',
|
|
249
277
|
getToken = 'getToken',
|
|
@@ -253,6 +281,8 @@ export declare enum APIFunctions {
|
|
|
253
281
|
getWallet = 'getWallet',
|
|
254
282
|
getWalletMany = 'getWalletMany',
|
|
255
283
|
importActions = 'importActions',
|
|
284
|
+
importDatabase = 'importDatabase',
|
|
285
|
+
listDatabaseBackups = 'listDatabaseBackups',
|
|
256
286
|
query = 'query',
|
|
257
287
|
queryLogs = 'queryLogs',
|
|
258
288
|
resetDatabase = 'resetDatabase',
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input for listDatabaseBackups
|
|
3
|
+
*
|
|
4
|
+
* @category Input
|
|
5
|
+
*/
|
|
6
|
+
export interface ListDatabaseBackupsTxInput {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Output of listDatabaseBackups
|
|
10
|
+
*
|
|
11
|
+
* @category Output
|
|
12
|
+
*/
|
|
13
|
+
export interface ListDatabaseBackupsTxOutput {
|
|
14
|
+
backups?: string[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ListDatabaseBackupsTxInput } from './list-database-backups.enums';
|
|
2
|
+
export declare function isListDatabaseBackupsTxInput(input: unknown): input is ListDatabaseBackupsTxInput;
|
|
3
|
+
import { ListDatabaseBackupsTxOutput } from './list-database-backups.enums';
|
|
4
|
+
export declare function isListDatabaseBackupsTxOutput(input: unknown): input is ListDatabaseBackupsTxOutput;
|