wapi-client 0.9.0 → 0.9.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.browser.cjs +12 -0
- package/dist/api/base-client.browser.js +13 -4
- package/dist/api/base-client.cjs +12 -0
- package/dist/api/base-client.d.ts +8 -0
- package/dist/api/base-client.js +13 -4
- package/dist/api/ws-client.cjs +1 -1
- package/dist/api/ws-client.d.ts +0 -1
- package/dist/api/ws-client.js +1 -1
- package/dist/client.browser.cjs +27 -0
- package/dist/client.browser.js +27 -0
- package/dist/client.cjs +28 -1
- package/dist/client.d.ts +26 -0
- package/dist/client.js +28 -1
- package/dist/fns/healthcheck/healthcheck.browser.cjs +56 -0
- package/dist/fns/healthcheck/healthcheck.browser.js +38 -0
- package/dist/fns/healthcheck/healthcheck.cjs +60 -0
- package/dist/fns/healthcheck/healthcheck.d.ts +9 -0
- package/dist/fns/healthcheck/healthcheck.enums.browser.cjs +17 -0
- package/dist/fns/healthcheck/healthcheck.enums.browser.js +0 -0
- package/dist/fns/healthcheck/healthcheck.enums.cjs +17 -0
- package/dist/fns/healthcheck/healthcheck.enums.d.ts +20 -0
- package/dist/fns/healthcheck/healthcheck.enums.js +0 -0
- package/dist/fns/healthcheck/healthcheck.guards.browser.cjs +36 -0
- package/dist/fns/healthcheck/healthcheck.guards.browser.js +16 -0
- package/dist/fns/healthcheck/healthcheck.guards.cjs +41 -0
- package/dist/fns/healthcheck/healthcheck.guards.d.ts +4 -0
- package/dist/fns/healthcheck/healthcheck.guards.js +16 -0
- package/dist/fns/healthcheck/healthcheck.js +38 -0
- package/dist/fns/healthcheck/healthcheck.schema.input.json +25 -0
- package/dist/fns/healthcheck/healthcheck.schema.output.json +8 -0
- package/dist/fns/import-data/import-data.cjs +22 -0
- package/dist/fns/import-data/import-data.js +22 -0
- package/dist/fns/import-data/import-data.node.browser.cjs +22 -0
- package/dist/fns/import-data/import-data.node.browser.js +22 -0
- package/dist/fns/import-data/import-data.node.cjs +22 -0
- package/dist/fns/import-data/import-data.node.js +22 -0
- package/dist/fns/index.browser.cjs +9 -0
- package/dist/fns/index.browser.js +9 -0
- package/dist/fns/index.cjs +12 -0
- package/dist/fns/index.d.ts +7 -1
- package/dist/fns/index.js +9 -0
- package/dist/lib/errors.d.ts +1 -1
- package/dist/lib/isomorphic/node/fetch.cjs +20 -17
- package/dist/lib/isomorphic/node/fetch.js +20 -17
- package/dist/lib/isomorphic/node/streams.d.ts +0 -2
- package/dist/lib/validator.browser.cjs +651 -960
- package/dist/lib/validator.browser.js +651 -960
- package/dist/lib/validator.cjs +41 -1
- package/dist/lib/validator.d.ts +5 -1
- package/dist/lib/validator.js +41 -1
- package/dist/lib/ws-types.d.ts +0 -1
- package/dist/txs/healthcheck/healthcheck.enums.browser.cjs +17 -0
- package/dist/txs/healthcheck/healthcheck.enums.browser.js +0 -0
- package/dist/txs/healthcheck/healthcheck.enums.cjs +17 -0
- package/dist/txs/healthcheck/healthcheck.enums.d.ts +22 -0
- package/dist/txs/healthcheck/healthcheck.enums.js +0 -0
- package/dist/txs/healthcheck/healthcheck.schema.input.json +23 -0
- package/dist/txs/healthcheck/healthcheck.schema.output.json +32 -0
- package/dist/txs/index.browser.cjs +7 -0
- package/dist/txs/index.browser.js +7 -0
- package/dist/txs/index.cjs +9 -0
- package/dist/txs/index.d.ts +5 -0
- package/dist/txs/index.js +7 -0
- package/dist/types/index.d.ts +119 -6
- package/dist/wapi-client-web.iife.js +6 -11
- package/dist/wapi-client.iife.js +6 -11
- package/package.json +7 -7
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
/// <reference types="node" />
|
|
4
1
|
declare module 'wapi-client/lib/ws-types' {
|
|
5
2
|
import WebSocket from 'modern-isomorphic-ws';
|
|
6
3
|
export interface ErrorEvent {
|
|
@@ -1498,7 +1495,7 @@ declare module 'wapi-client/lib/errors' {
|
|
|
1498
1495
|
toJSON(): IJSONRPCError;
|
|
1499
1496
|
}
|
|
1500
1497
|
export const ERROR_CODE_TO_TYPE: {
|
|
1501
|
-
[key: number]:
|
|
1498
|
+
[key: number]: ERROR_TYPES;
|
|
1502
1499
|
};
|
|
1503
1500
|
export function getError({ code, message, data }: IJSONRPCError): WAPIError;
|
|
1504
1501
|
export const ERROR_MESSAGES: {
|
|
@@ -1757,7 +1754,7 @@ declare module 'wapi-client/lib/validator' {
|
|
|
1757
1754
|
inputCopy: M;
|
|
1758
1755
|
error?: ValidationError;
|
|
1759
1756
|
}
|
|
1760
|
-
export type SchemaName = 'JSONRPCRequest' | 'JSONRPCResponse' | 'ClientOptions' | 'Consts' | 'TokenTableInput' | 'TokenTable' | 'TokenTableOptional' | 'TransferTableInput' | 'TransferTable' | 'TransferTableOptional' | 'TransferGroupTableInput' | 'TransferGroupTable' | 'TransferGroupTableOptional' | 'TransferLogTableInput' | 'TransferLogTable' | 'TransferLogTableOptional' | 'WalletTableInput' | 'WalletTable' | 'WalletTableOptional' | 'WalletTokenSettingTableInput' | 'WalletTokenSettingTable' | 'WalletTokenSettingTableOptional' | 'WapiSettingTableInput' | 'WapiSettingTable' | 'WapiSettingTableOptional' | 'AggregateTransfersFnInput' | 'AggregateTransfersFnOutput' | 'CreateAccessTokenFnInput' | 'CreateAccessTokenFnOutput' | 'CreateContractFnInput' | 'CreateContractFnOutput' | 'CreateDepositFnInput' | 'CreateDepositFnOutput' | 'CreateExchangeFnInput' | 'CreateExchangeFnOutput' | 'CreateTokenFnInput' | 'CreateTokenFnOutput' | 'CreateTransferFnInput' | 'CreateTransferFnOutput' | 'CreateTransferGroupFnInput' | 'CreateTransferGroupFnOutput' | 'CreateTransfersFnInput' | 'CreateTransfersFnOutput' | 'CreateWalletFnInput' | 'CreateWalletFnOutput' | 'CreateWithdrawalFnInput' | 'CreateWithdrawalFnOutput' | 'FindBalancesFnInput' | 'FindBalancesFnOutput' | 'FindTokensFnInput' | 'FindTokensFnOutput' | 'FindTransferGroupsFnInput' | 'FindTransferGroupsFnOutput' | 'FindTransfersFnInput' | 'FindTransfersFnOutput' | 'FindWalletsFnInput' | 'FindWalletsFnOutput' | 'FnConsts' | 'GetBalanceFnInput' | 'GetBalanceFnOutput' | 'GetBalanceHistoryFnInput' | 'GetBalanceHistoryFnOutput' | 'GetFlagsFnInput' | 'GetFlagsFnOutput' | 'GetStatisticsFnInput' | 'GetStatisticsFnOutput' | 'GetTokenFnInput' | 'GetTokenFnOutput' | 'GetTransferFnInput' | 'GetTransferFnOutput' | 'GetTransferGroupFnInput' | 'GetTransferGroupFnOutput' | 'GetWalletFnInput' | 'GetWalletFnOutput' | 'ImportDataFnInput' | 'ImportDataFnOptions' | 'ImportDataFnStreamChunk' | 'ImportDataFnOutput' | 'ReverseTransferFnInput' | 'ReverseTransferFnOutput' | 'ReverseTransferGroupFnInput' | 'ReverseTransferGroupFnOutput' | 'ReverseTransfersFnInput' | 'ReverseTransfersFnOutput' | 'SetFlagsFnInput' | 'SetFlagsFnOutput' | 'UpdateTokenFnInput' | 'UpdateTokenFnOutput' | 'UpdateTransferFnInput' | 'UpdateTransferFnOutput' | 'UpdateTransferGroupFnInput' | 'UpdateTransferGroupFnOutput' | 'UpdateTransferGroupsFnInput' | 'UpdateTransferGroupsFnOutput' | 'UpdateTransfersFnInput' | 'UpdateTransfersFnOutput' | 'UpdateWalletFnInput' | 'UpdateWalletFnOutput' | 'AggregateTransferManyTxInput' | 'AggregateTransferManyTxOutput' | 'AuthenticationCheckTxInput' | 'AuthenticationCheckTxOutput' | 'CreateAccessTokenTxInput' | 'CreateAccessTokenTxOutput' | 'CreateContractTxInput' | 'CreateContractTxOutput' | 'CreateDepositTxInput' | 'CreateDepositTxOutput' | 'CreateDistributionTxInput' | 'CreateDistributionTxOutput' | 'CreateTokenTxInput' | 'CreateTokenTxOutput' | 'CreateTransferTxInput' | 'CreateTransferTxOutput' | 'CreateTransferGroupTxInput' | 'CreateTransferGroupTxOutput' | 'CreateTransferManyTxInput' | 'CreateTransferManyTxOutput' | 'CreateWalletTxInput' | 'CreateWalletTxOutput' | 'CreateWithdrawalTxInput' | 'CreateWithdrawalTxOutput' | 'ExportDatabaseTxInput' | 'ExportDatabaseTxOutput' | 'FindBalanceManyTxInput' | 'FindBalanceManyTxOutput' | 'FindTokenManyTxInput' | 'FindTokenManyTxOutput' | 'FindTransferGroupManyTxInput' | 'FindTransferGroupManyTxOutput' | 'FindTransferManyTxInput' | 'FindTransferManyTxOutput' | 'FindWalletManyTxInput' | 'FindWalletManyTxOutput' | 'FinishTransactionTxInput' | 'FinishTransactionTxOutput' | 'GetBalanceTxInput' | 'GetBalanceTxOutput' | 'GetBalanceHistoryTxInput' | 'GetBalanceHistoryTxOutput' | 'GetDatabaseExportProgressTxInput' | 'GetDatabaseExportProgressTxOutput' | 'GetDatabaseImportProgressTxInput' | 'GetDatabaseImportProgressTxOutput' | 'GetFlagsTxInput' | 'GetFlagsTxOutput' | 'GetStatisticsTxInput' | 'GetStatisticsTxOutput' | 'GetTokenTxInput' | 'GetTokenTxOutput' | 'GetTokenManyTxInput' | 'GetTokenManyTxOutput' | 'GetTransferTxInput' | 'GetTransferTxOutput' | 'GetTransferGroupTxInput' | 'GetTransferGroupTxOutput' | 'GetWalletTxInput' | 'GetWalletTxOutput' | 'GetWalletManyTxInput' | 'GetWalletManyTxOutput' | 'ImportActionsTxInput' | 'ImportActionsTxOptions' | 'ImportActionsTxStreamChunk' | 'ImportActionsTxOutput' | 'ImportDatabaseTxInput' | 'ImportDatabaseTxOutput' | 'ListDatabaseExportsTxInput' | 'ListDatabaseExportsTxOutput' | 'QueryTxInput' | 'QueryTxOutput' | 'QueryLogsTxInput' | 'QueryLogsTxOutput' | 'ResetDatabaseTxInput' | 'ResetDatabaseTxOutput' | 'ReverseTransferTxInput' | 'ReverseTransferTxOutput' | 'ReverseTransferGroupTxInput' | 'ReverseTransferGroupTxOutput' | 'ReverseTransferGroupManyTxInput' | 'ReverseTransferGroupManyTxOutput' | 'ReverseTransferManyTxInput' | 'ReverseTransferManyTxOutput' | 'SetFlagsTxInput' | 'SetFlagsTxOutput' | 'StartTransactionTxInput' | 'StartTransactionTxOutput' | 'TxConsts' | 'UpdateTokenTxInput' | 'UpdateTokenTxOutput' | 'UpdateTransferTxInput' | 'UpdateTransferTxOutput' | 'UpdateTransferGroupTxInput' | 'UpdateTransferGroupTxOutput' | 'UpdateTransferGroupManyTxInput' | 'UpdateTransferGroupManyTxOutput' | 'UpdateTransferManyTxInput' | 'UpdateTransferManyTxOutput' | 'UpdateWalletTxInput' | 'UpdateWalletTxOutput';
|
|
1757
|
+
export 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' | 'HealthcheckFnInput' | 'HealthcheckFnOutput' | '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' | 'HealthcheckTxInput' | 'HealthcheckTxOutput' | 'ImportActionsTxInput' | 'ImportActionsTxOptions' | 'ImportActionsTxStreamChunk' | 'ImportActionsTxOutput' | 'ImportDatabaseTxInput' | 'ImportDatabaseTxOutput' | 'ListDatabaseExportsTxInput' | 'ListDatabaseExportsTxOutput' | 'QueryTxInput' | 'QueryTxOutput' | 'QueryLogsTxInput' | 'QueryLogsTxOutput' | 'ResetDatabaseTxInput' | 'ResetDatabaseTxOutput' | 'ReverseTransferTxInput' | 'ReverseTransferTxOutput' | 'ReverseTransferGroupTxInput' | 'ReverseTransferGroupTxOutput' | 'ReverseTransferGroupManyTxInput' | 'ReverseTransferGroupManyTxOutput' | 'ReverseTransferManyTxInput' | 'ReverseTransferManyTxOutput' | 'SetFlagsTxInput' | 'SetFlagsTxOutput' | 'StartTransactionTxInput' | 'StartTransactionTxOutput' | 'TxConsts' | 'UpdateTokenTxInput' | 'UpdateTokenTxOutput' | 'UpdateTransferTxInput' | 'UpdateTransferTxOutput' | 'UpdateTransferGroupTxInput' | 'UpdateTransferGroupTxOutput' | 'UpdateTransferGroupManyTxInput' | 'UpdateTransferGroupManyTxOutput' | 'UpdateTransferManyTxInput' | 'UpdateTransferManyTxOutput' | 'UpdateWalletTxInput' | 'UpdateWalletTxOutput';
|
|
1761
1758
|
/**
|
|
1762
1759
|
* @internal
|
|
1763
1760
|
*/
|
|
@@ -1836,6 +1833,8 @@ declare module 'wapi-client/lib/validator' {
|
|
|
1836
1833
|
GetTransferGroupFnOutput = 'GetTransferGroupFnOutput',
|
|
1837
1834
|
GetWalletFnInput = 'GetWalletFnInput',
|
|
1838
1835
|
GetWalletFnOutput = 'GetWalletFnOutput',
|
|
1836
|
+
HealthcheckFnInput = 'HealthcheckFnInput',
|
|
1837
|
+
HealthcheckFnOutput = 'HealthcheckFnOutput',
|
|
1839
1838
|
ImportDataFnInput = 'ImportDataFnInput',
|
|
1840
1839
|
ImportDataFnOptions = 'ImportDataFnOptions',
|
|
1841
1840
|
ImportDataFnStreamChunk = 'ImportDataFnStreamChunk',
|
|
@@ -1922,6 +1921,8 @@ declare module 'wapi-client/lib/validator' {
|
|
|
1922
1921
|
GetWalletTxOutput = 'GetWalletTxOutput',
|
|
1923
1922
|
GetWalletManyTxInput = 'GetWalletManyTxInput',
|
|
1924
1923
|
GetWalletManyTxOutput = 'GetWalletManyTxOutput',
|
|
1924
|
+
HealthcheckTxInput = 'HealthcheckTxInput',
|
|
1925
|
+
HealthcheckTxOutput = 'HealthcheckTxOutput',
|
|
1925
1926
|
ImportActionsTxInput = 'ImportActionsTxInput',
|
|
1926
1927
|
ImportActionsTxOptions = 'ImportActionsTxOptions',
|
|
1927
1928
|
ImportActionsTxStreamChunk = 'ImportActionsTxStreamChunk',
|
|
@@ -7602,6 +7603,63 @@ declare module 'wapi-client/fns/get-wallet/get-wallet' {
|
|
|
7602
7603
|
*/
|
|
7603
7604
|
export function getWallet(options: ClientFunctionOptions, input: GetWalletFnInput, fnOptions?: GetWalletFnOptions): StreamPromise<GetWalletFnOutput>;
|
|
7604
7605
|
}
|
|
7606
|
+
declare module 'wapi-client/txs/healthcheck/healthcheck.enums' {
|
|
7607
|
+
import { ITxGeneralOptionsWithoutTx } from 'wapi-client/txs/tx-consts.enums';
|
|
7608
|
+
export type HealthcheckTxOptions = ITxGeneralOptionsWithoutTx;
|
|
7609
|
+
/**
|
|
7610
|
+
* Input for healthcheck
|
|
7611
|
+
*
|
|
7612
|
+
* @category Input
|
|
7613
|
+
*/
|
|
7614
|
+
export interface HealthcheckTxInput {
|
|
7615
|
+
options?: HealthcheckTxOptions;
|
|
7616
|
+
}
|
|
7617
|
+
/**
|
|
7618
|
+
* Output of healthcheck
|
|
7619
|
+
*
|
|
7620
|
+
* @category Output
|
|
7621
|
+
*/
|
|
7622
|
+
export interface HealthcheckTxOutput {
|
|
7623
|
+
status: 'green' | 'yellow' | 'red';
|
|
7624
|
+
message?: string;
|
|
7625
|
+
database_size?: string;
|
|
7626
|
+
indexes_size?: string;
|
|
7627
|
+
connection_count?: number;
|
|
7628
|
+
}
|
|
7629
|
+
}
|
|
7630
|
+
declare module 'wapi-client/fns/healthcheck/healthcheck.enums' {
|
|
7631
|
+
import { HealthcheckTxOptions, HealthcheckTxOutput } from 'wapi-client/txs/healthcheck/healthcheck.enums';
|
|
7632
|
+
/**
|
|
7633
|
+
* Optional flags for input
|
|
7634
|
+
*/
|
|
7635
|
+
export type HealthcheckFnOptions = HealthcheckTxOptions;
|
|
7636
|
+
/**
|
|
7637
|
+
* Input for healthcheck
|
|
7638
|
+
*
|
|
7639
|
+
* @category Input
|
|
7640
|
+
*/
|
|
7641
|
+
export interface HealthcheckFnInput {
|
|
7642
|
+
options?: HealthcheckFnOptions;
|
|
7643
|
+
}
|
|
7644
|
+
/**
|
|
7645
|
+
* Output of healthcheck
|
|
7646
|
+
*
|
|
7647
|
+
* @category Output
|
|
7648
|
+
*/
|
|
7649
|
+
export interface HealthcheckFnOutput extends HealthcheckTxOutput {
|
|
7650
|
+
}
|
|
7651
|
+
}
|
|
7652
|
+
declare module 'wapi-client/fns/healthcheck/healthcheck' {
|
|
7653
|
+
import { ClientFunctionOptions } from 'wapi-client/fns/fn-consts.enums';
|
|
7654
|
+
import { StreamPromise } from 'wapi-client/lib/stream-promise';
|
|
7655
|
+
import { HealthcheckFnInput, HealthcheckFnOptions, HealthcheckFnOutput } from 'wapi-client/fns/healthcheck/healthcheck.enums';
|
|
7656
|
+
/**
|
|
7657
|
+
* @internal
|
|
7658
|
+
*
|
|
7659
|
+
* Get information about wallet
|
|
7660
|
+
*/
|
|
7661
|
+
export function healthcheck(options: ClientFunctionOptions, input: HealthcheckFnInput, fnOptions?: HealthcheckFnOptions): StreamPromise<HealthcheckFnOutput>;
|
|
7662
|
+
}
|
|
7605
7663
|
declare module 'wapi-client/txs/import-actions/import-actions.enums' {
|
|
7606
7664
|
import { ITxGeneralOptions } from 'wapi-client/txs/tx-consts.enums';
|
|
7607
7665
|
import { WalletTableInput } from 'wapi-client/db/wallet/wallet.enums';
|
|
@@ -9351,6 +9409,7 @@ declare module 'wapi-client/fns/index' {
|
|
|
9351
9409
|
import { getTransfer } from 'wapi-client/fns/get-transfer/get-transfer';
|
|
9352
9410
|
import { getTransferGroup } from 'wapi-client/fns/get-transfer-group/get-transfer-group';
|
|
9353
9411
|
import { getWallet } from 'wapi-client/fns/get-wallet/get-wallet';
|
|
9412
|
+
import { healthcheck } from 'wapi-client/fns/healthcheck/healthcheck';
|
|
9354
9413
|
import { importData } from 'wapi-client/fns/import-data/import-data';
|
|
9355
9414
|
import { reverseTransfer } from 'wapi-client/fns/reverse-transfer/reverse-transfer';
|
|
9356
9415
|
import { reverseTransferGroup } from 'wapi-client/fns/reverse-transfer-group/reverse-transfer-group';
|
|
@@ -9410,6 +9469,8 @@ declare module 'wapi-client/fns/index' {
|
|
|
9410
9469
|
interface GetTransferGroupFnOutputSchema { [key: string]: any; }
|
|
9411
9470
|
interface GetWalletFnInputSchema { [key: string]: any; }
|
|
9412
9471
|
interface GetWalletFnOutputSchema { [key: string]: any; }
|
|
9472
|
+
interface HealthcheckFnInputSchema { [key: string]: any; }
|
|
9473
|
+
interface HealthcheckFnOutputSchema { [key: string]: any; }
|
|
9413
9474
|
interface ImportDataFnInputSchema { [key: string]: any; }
|
|
9414
9475
|
interface ImportDataFnOutputSchema { [key: string]: any; }
|
|
9415
9476
|
interface ReverseTransferFnInputSchema { [key: string]: any; }
|
|
@@ -9435,7 +9496,7 @@ declare module 'wapi-client/fns/index' {
|
|
|
9435
9496
|
/**
|
|
9436
9497
|
* @internal
|
|
9437
9498
|
*/
|
|
9438
|
-
export { FnConstsSchema, aggregateTransfers, createAccessToken, createContract, createDeposit, createExchange, createToken, createTransfer, createTransferGroup, createTransfers, createWallet, createWithdrawal, findBalances, findTokens, findTransferGroups, findTransfers, findWallets, getBalance, getBalanceHistory, getFlags, getStatistics, getToken, getTransfer, getTransferGroup, getWallet, importData, reverseTransfer, reverseTransferGroup, reverseTransfers, setFlags, updateToken, updateTransfer, updateTransferGroup, updateTransferGroups, updateTransfers, 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, };
|
|
9499
|
+
export { FnConstsSchema, aggregateTransfers, createAccessToken, createContract, createDeposit, createExchange, createToken, createTransfer, createTransferGroup, createTransfers, createWallet, createWithdrawal, findBalances, findTokens, findTransferGroups, findTransfers, findWallets, getBalance, getBalanceHistory, getFlags, getStatistics, getToken, getTransfer, getTransferGroup, getWallet, healthcheck, importData, reverseTransfer, reverseTransferGroup, reverseTransfers, setFlags, updateToken, updateTransfer, updateTransferGroup, updateTransferGroups, updateTransfers, 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, HealthcheckFnInputSchema, HealthcheckFnOutputSchema, ImportDataFnInputSchema, ImportDataFnOutputSchema, ReverseTransferFnInputSchema, ReverseTransferFnOutputSchema, ReverseTransferGroupFnInputSchema, ReverseTransferGroupFnOutputSchema, ReverseTransfersFnInputSchema, ReverseTransfersFnOutputSchema, SetFlagsFnInputSchema, SetFlagsFnOutputSchema, UpdateTokenFnInputSchema, UpdateTokenFnOutputSchema, UpdateTransferFnInputSchema, UpdateTransferFnOutputSchema, UpdateTransferGroupFnInputSchema, UpdateTransferGroupFnOutputSchema, UpdateTransferGroupsFnInputSchema, UpdateTransferGroupsFnOutputSchema, UpdateTransfersFnInputSchema, UpdateTransfersFnOutputSchema, UpdateWalletFnInputSchema, UpdateWalletFnOutputSchema, };
|
|
9439
9500
|
/**
|
|
9440
9501
|
* @internal
|
|
9441
9502
|
*/
|
|
@@ -9464,6 +9525,7 @@ declare module 'wapi-client/fns/index' {
|
|
|
9464
9525
|
getTransfer: import("wapi-client/lib/validator").ValidationFunction;
|
|
9465
9526
|
getTransferGroup: import("wapi-client/lib/validator").ValidationFunction;
|
|
9466
9527
|
getWallet: import("wapi-client/lib/validator").ValidationFunction;
|
|
9528
|
+
healthcheck: import("wapi-client/lib/validator").ValidationFunction;
|
|
9467
9529
|
importData: import("wapi-client/lib/validator").ValidationFunction;
|
|
9468
9530
|
reverseTransfer: import("wapi-client/lib/validator").ValidationFunction;
|
|
9469
9531
|
reverseTransferGroup: import("wapi-client/lib/validator").ValidationFunction;
|
|
@@ -9504,6 +9566,7 @@ declare module 'wapi-client/fns/index' {
|
|
|
9504
9566
|
getTransfer: typeof getTransfer;
|
|
9505
9567
|
getTransferGroup: typeof getTransferGroup;
|
|
9506
9568
|
getWallet: typeof getWallet;
|
|
9569
|
+
healthcheck: typeof healthcheck;
|
|
9507
9570
|
importData: typeof importData;
|
|
9508
9571
|
reverseTransfer: typeof reverseTransfer;
|
|
9509
9572
|
reverseTransferGroup: typeof reverseTransferGroup;
|
|
@@ -9544,6 +9607,7 @@ declare module 'wapi-client/fns/index' {
|
|
|
9544
9607
|
getTransfer = 'getTransfer',
|
|
9545
9608
|
getTransferGroup = 'getTransferGroup',
|
|
9546
9609
|
getWallet = 'getWallet',
|
|
9610
|
+
healthcheck = 'healthcheck',
|
|
9547
9611
|
importData = 'importData',
|
|
9548
9612
|
reverseTransfer = 'reverseTransfer',
|
|
9549
9613
|
reverseTransferGroup = 'reverseTransferGroup',
|
|
@@ -9661,6 +9725,9 @@ declare module 'wapi-client/txs/index' {
|
|
|
9661
9725
|
interface GetWalletManyTxInputSchema { [key: string]: any; }
|
|
9662
9726
|
interface GetWalletManyTxOutputSchema { [key: string]: any; }
|
|
9663
9727
|
export { GetWalletManyTxInputSchema, GetWalletManyTxOutputSchema };
|
|
9728
|
+
interface HealthcheckTxInputSchema { [key: string]: any; }
|
|
9729
|
+
interface HealthcheckTxOutputSchema { [key: string]: any; }
|
|
9730
|
+
export { HealthcheckTxInputSchema, HealthcheckTxOutputSchema };
|
|
9664
9731
|
interface ImportActionsTxInputSchema { [key: string]: any; }
|
|
9665
9732
|
interface ImportActionsTxOutputSchema { [key: string]: any; }
|
|
9666
9733
|
export { ImportActionsTxInputSchema, ImportActionsTxOutputSchema };
|
|
@@ -9747,6 +9814,7 @@ declare module 'wapi-client/txs/index' {
|
|
|
9747
9814
|
getTransferGroup: import("wapi-client/lib/validator").ValidationFunction;
|
|
9748
9815
|
getWallet: import("wapi-client/lib/validator").ValidationFunction;
|
|
9749
9816
|
getWalletMany: import("wapi-client/lib/validator").ValidationFunction;
|
|
9817
|
+
healthcheck: import("wapi-client/lib/validator").ValidationFunction;
|
|
9750
9818
|
importActions: import("wapi-client/lib/validator").ValidationFunction;
|
|
9751
9819
|
importDatabase: import("wapi-client/lib/validator").ValidationFunction;
|
|
9752
9820
|
listDatabaseExports: import("wapi-client/lib/validator").ValidationFunction;
|
|
@@ -9798,6 +9866,7 @@ declare module 'wapi-client/txs/index' {
|
|
|
9798
9866
|
getTransferGroup = 'getTransferGroup',
|
|
9799
9867
|
getWallet = 'getWallet',
|
|
9800
9868
|
getWalletMany = 'getWalletMany',
|
|
9869
|
+
healthcheck = 'healthcheck',
|
|
9801
9870
|
importActions = 'importActions',
|
|
9802
9871
|
importDatabase = 'importDatabase',
|
|
9803
9872
|
listDatabaseExports = 'listDatabaseExports',
|
|
@@ -9909,6 +9978,9 @@ export * from 'wapi-client/fns/get-transfer-group/get-transfer-group.enums';
|
|
|
9909
9978
|
export * from 'wapi-client/fns/get-transfer-group/get-transfer-group';
|
|
9910
9979
|
export * from 'wapi-client/fns/get-wallet/get-wallet.enums';
|
|
9911
9980
|
export * from 'wapi-client/fns/get-wallet/get-wallet';
|
|
9981
|
+
export * from 'wapi-client/txs/healthcheck/healthcheck.enums';
|
|
9982
|
+
export * from 'wapi-client/fns/healthcheck/healthcheck.enums';
|
|
9983
|
+
export * from 'wapi-client/fns/healthcheck/healthcheck';
|
|
9912
9984
|
export * from 'wapi-client/txs/import-actions/import-actions.enums';
|
|
9913
9985
|
export * from 'wapi-client/txs/update-transfer/update-transfer.enums';
|
|
9914
9986
|
export * from 'wapi-client/txs/reverse-transfer/reverse-transfer.enums';
|
|
@@ -9993,6 +10065,7 @@ export * from 'wapi-client/fns/get-token/get-token.guards';
|
|
|
9993
10065
|
export * from 'wapi-client/fns/get-transfer/get-transfer.guards';
|
|
9994
10066
|
export * from 'wapi-client/fns/get-transfer-group/get-transfer-group.guards';
|
|
9995
10067
|
export * from 'wapi-client/fns/get-wallet/get-wallet.guards';
|
|
10068
|
+
export * from 'wapi-client/fns/healthcheck/healthcheck.guards';
|
|
9996
10069
|
export * from 'wapi-client/fns/reverse-transfer/reverse-transfer.guards';
|
|
9997
10070
|
export * from 'wapi-client/fns/reverse-transfer-group/reverse-transfer-group.guards';
|
|
9998
10071
|
export * from 'wapi-client/fns/reverse-transfers/reverse-transfers.guards';
|
|
@@ -10769,6 +10842,7 @@ declare module 'wapi-client/api/base-client' {
|
|
|
10769
10842
|
import { GetTransferTxInput, GetTransferTxOutput } from 'wapi-client/txs/get-transfer/get-transfer.enums';
|
|
10770
10843
|
import { GetWalletManyTxInput, GetWalletManyTxOutput } from 'wapi-client/txs/get-wallet-many/get-wallet-many.enums';
|
|
10771
10844
|
import { GetWalletTxInput, GetWalletTxOutput } from 'wapi-client/txs/get-wallet/get-wallet.enums';
|
|
10845
|
+
import { HealthcheckTxInput, HealthcheckTxOutput } from 'wapi-client/txs/healthcheck/healthcheck.enums';
|
|
10772
10846
|
import { ImportActionsTxInput, ImportActionsTxOutput, ImportActionsTxOptions } from 'wapi-client/txs/import-actions/import-actions.enums';
|
|
10773
10847
|
import { ImportDatabaseTxInput, ImportDatabaseTxOutput } from 'wapi-client/txs/import-database/import-database.enums';
|
|
10774
10848
|
import { ListDatabaseExportsTxInput, ListDatabaseExportsTxOutput } from 'wapi-client/txs/list-database-exports/list-database-exports.enums';
|
|
@@ -11035,6 +11109,13 @@ declare module 'wapi-client/api/base-client' {
|
|
|
11035
11109
|
*
|
|
11036
11110
|
*/
|
|
11037
11111
|
getWalletMany(input: GetWalletManyTxInput): StreamPromise<GetWalletManyTxOutput>;
|
|
11112
|
+
/**
|
|
11113
|
+
*
|
|
11114
|
+
* @param {HealthcheckTxInput} input
|
|
11115
|
+
* @returns {StreamPromise<HealthcheckTxOutput>}
|
|
11116
|
+
*
|
|
11117
|
+
*/
|
|
11118
|
+
healthcheck(input?: HealthcheckTxInput): StreamPromise<HealthcheckTxOutput>;
|
|
11038
11119
|
/**
|
|
11039
11120
|
*
|
|
11040
11121
|
* @param {ImportActionsTxInput} input
|
|
@@ -11279,6 +11360,7 @@ declare module 'wapi-client/client' {
|
|
|
11279
11360
|
import { GetTransferGroupFnInput, GetTransferGroupFnOptions, GetTransferGroupFnOutput } from 'wapi-client/fns/get-transfer-group/get-transfer-group.enums';
|
|
11280
11361
|
import { GetTransferFnInput, GetTransferFnOptions, GetTransferFnOutput } from 'wapi-client/fns/get-transfer/get-transfer.enums';
|
|
11281
11362
|
import { GetWalletFnInput, GetWalletFnOptions, GetWalletFnOutput } from 'wapi-client/fns/get-wallet/get-wallet.enums';
|
|
11363
|
+
import { HealthcheckFnInput, HealthcheckFnOptions, HealthcheckFnOutput } from 'wapi-client/fns/healthcheck/healthcheck.enums';
|
|
11282
11364
|
import { ImportDataFnOptions, ImportDataFnOutput, ImportDataFnStreamChunk, ImportDataFnInput } from 'wapi-client/fns/import-data/import-data.enums';
|
|
11283
11365
|
import { ReverseTransferGroupFnInput, ReverseTransferGroupFnOptions, ReverseTransferGroupFnOutput } from 'wapi-client/fns/reverse-transfer-group/reverse-transfer-group.enums';
|
|
11284
11366
|
import { ReverseTransferFnInput, ReverseTransferFnOptions, ReverseTransferFnOutput } from 'wapi-client/fns/reverse-transfer/reverse-transfer.enums';
|
|
@@ -12518,6 +12600,31 @@ declare module 'wapi-client/client' {
|
|
|
12518
12600
|
*
|
|
12519
12601
|
*/
|
|
12520
12602
|
getWallet(input: GetWalletFnInput, options?: GetWalletFnOptions): StreamPromise<GetWalletFnOutput>;
|
|
12603
|
+
/**
|
|
12604
|
+
*
|
|
12605
|
+
* Get health information about service
|
|
12606
|
+
*
|
|
12607
|
+
* ```javascript
|
|
12608
|
+
*
|
|
12609
|
+
* const result = await wapiClient.healthcheck({
|
|
12610
|
+
* }, {
|
|
12611
|
+
* tracking_id: 'mylogId',
|
|
12612
|
+
* });
|
|
12613
|
+
* expect(result).toEqual({
|
|
12614
|
+
* status: 'green',
|
|
12615
|
+
* database_size: '3240MB',
|
|
12616
|
+
* indexes_size: '1234MB',
|
|
12617
|
+
* connection_count: 1,
|
|
12618
|
+
* });
|
|
12619
|
+
*
|
|
12620
|
+
* ```
|
|
12621
|
+
*
|
|
12622
|
+
* @param {HealthcheckFnInput} input
|
|
12623
|
+
* @param {HealthcheckFnOptions} [options]
|
|
12624
|
+
* @returns {StreamPromise<HealthcheckFnOutput>}
|
|
12625
|
+
*
|
|
12626
|
+
*/
|
|
12627
|
+
healthcheck(input?: HealthcheckFnInput, options?: HealthcheckFnOptions): StreamPromise<HealthcheckFnOutput>;
|
|
12521
12628
|
/**
|
|
12522
12629
|
*
|
|
12523
12630
|
*
|
|
@@ -13366,6 +13473,12 @@ declare module 'wapi-client/fns/get-wallet/get-wallet.guards' {
|
|
|
13366
13473
|
import { GetWalletFnOutput } from 'wapi-client/fns/get-wallet/get-wallet.enums';
|
|
13367
13474
|
export function isGetWalletFnOutput(input: unknown): input is GetWalletFnOutput;
|
|
13368
13475
|
}
|
|
13476
|
+
declare module 'wapi-client/fns/healthcheck/healthcheck.guards' {
|
|
13477
|
+
import { HealthcheckFnInput } from 'wapi-client/fns/healthcheck/healthcheck.enums';
|
|
13478
|
+
export function isHealthcheckFnInput(input: unknown): input is HealthcheckFnInput;
|
|
13479
|
+
import { HealthcheckFnOutput } from 'wapi-client/fns/healthcheck/healthcheck.enums';
|
|
13480
|
+
export function isHealthcheckFnOutput(input: unknown): input is HealthcheckFnOutput;
|
|
13481
|
+
}
|
|
13369
13482
|
|
|
13370
13483
|
declare module 'wapi-client/fns/reverse-transfer/reverse-transfer.guards' {
|
|
13371
13484
|
import { ReverseTransferFnInput } from 'wapi-client/fns/reverse-transfer/reverse-transfer.enums';
|