wapi-client 0.5.0 → 0.5.1
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/client.d.ts +11 -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/validator.d.ts +3 -1
- package/dist/txs/create-access-token/create-access-token.enums.d.ts +1 -0
- package/dist/wapi-client.cjs.development.js +2446 -2346
- package/dist/wapi-client.cjs.js +10 -10
- package/package.json +1 -1
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,16 @@ 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
|
+
*
|
|
180
|
+
* @param {CreateAccessTokenFnInput} [input]
|
|
181
|
+
* @param {CreateAccessTokenFnOptions} [options]
|
|
182
|
+
* @returns {StreamPromise<CreateAccessTokenFnOutput>}
|
|
183
|
+
*
|
|
184
|
+
*/
|
|
185
|
+
createAccessToken(input?: CreateAccessTokenFnInput, options?: CreateAccessTokenFnOptions): StreamPromise<CreateAccessTokenFnOutput>;
|
|
176
186
|
/**
|
|
177
187
|
*
|
|
178
188
|
*
|
|
@@ -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/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' | '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';
|
|
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',
|
|
@@ -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
|