wapi-client 0.8.13 → 0.9.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/api/base-client.browser.cjs +21 -14
- package/dist/api/base-client.browser.js +22 -20
- package/dist/api/base-client.cjs +21 -14
- package/dist/api/base-client.d.ts +8 -0
- package/dist/api/base-client.js +22 -20
- package/dist/api/jsonrpc/jsonrpc.enums.d.ts +5 -4
- package/dist/api/ws-client.browser.cjs +3 -11
- package/dist/api/ws-client.browser.js +4 -16
- package/dist/api/ws-client.cjs +4 -12
- package/dist/api/ws-client.js +5 -17
- package/dist/client.browser.cjs +29 -5
- package/dist/client.browser.js +30 -6
- package/dist/client.cjs +30 -6
- package/dist/client.d.ts +26 -0
- package/dist/client.js +31 -7
- package/dist/fns/create-deposit/create-deposit.browser.cjs +1 -4
- package/dist/fns/create-deposit/create-deposit.browser.js +2 -5
- package/dist/fns/create-deposit/create-deposit.cjs +1 -4
- package/dist/fns/create-deposit/create-deposit.js +2 -5
- package/dist/fns/create-withdrawal/create-withdrawal.browser.cjs +1 -4
- package/dist/fns/create-withdrawal/create-withdrawal.browser.js +2 -5
- package/dist/fns/create-withdrawal/create-withdrawal.cjs +1 -4
- package/dist/fns/create-withdrawal/create-withdrawal.js +2 -5
- package/dist/fns/find-transfers/find-transfers.browser.cjs +8 -20
- package/dist/fns/find-transfers/find-transfers.browser.js +9 -21
- package/dist/fns/find-transfers/find-transfers.cjs +8 -20
- package/dist/fns/find-transfers/find-transfers.js +9 -21
- package/dist/fns/get-balance/get-balance.browser.cjs +2 -8
- package/dist/fns/get-balance/get-balance.browser.js +3 -9
- package/dist/fns/get-balance/get-balance.cjs +2 -8
- package/dist/fns/get-balance/get-balance.js +3 -9
- package/dist/fns/get-balance-history/get-balance-history.browser.cjs +1 -4
- package/dist/fns/get-balance-history/get-balance-history.browser.js +2 -5
- package/dist/fns/get-balance-history/get-balance-history.cjs +1 -4
- package/dist/fns/get-balance-history/get-balance-history.js +2 -5
- package/dist/fns/get-token/get-token.browser.cjs +1 -4
- package/dist/fns/get-token/get-token.browser.js +2 -5
- package/dist/fns/get-token/get-token.cjs +1 -4
- package/dist/fns/get-token/get-token.js +2 -5
- 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 +2 -5
- package/dist/fns/import-data/import-data.js +3 -6
- package/dist/fns/import-data/import-data.node.browser.cjs +2 -5
- package/dist/fns/import-data/import-data.node.browser.js +3 -6
- package/dist/fns/import-data/import-data.node.cjs +2 -5
- package/dist/fns/import-data/import-data.node.js +3 -6
- 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/fns/set-flags/set-flags.browser.cjs +3 -3
- package/dist/fns/set-flags/set-flags.browser.js +3 -3
- package/dist/fns/set-flags/set-flags.cjs +3 -3
- package/dist/fns/set-flags/set-flags.js +3 -3
- package/dist/index.browser.cjs +13 -1
- package/dist/index.browser.js +25 -1
- package/dist/index.cjs +25 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +25 -1
- package/dist/lib/errors.browser.cjs +642 -214
- package/dist/lib/errors.browser.js +645 -214
- package/dist/lib/errors.cjs +652 -218
- package/dist/lib/errors.d.ts +1411 -342
- package/dist/lib/errors.js +645 -214
- package/dist/lib/query-builder.browser.cjs +2 -2
- package/dist/lib/query-builder.browser.js +2 -2
- package/dist/lib/query-builder.cjs +2 -2
- package/dist/lib/query-builder.js +2 -2
- package/dist/lib/stream-promise.browser.cjs +3 -4
- package/dist/lib/stream-promise.browser.js +4 -5
- package/dist/lib/stream-promise.cjs +3 -4
- package/dist/lib/stream-promise.js +4 -5
- package/dist/lib/utils.browser.cjs +9 -13
- package/dist/lib/utils.browser.js +9 -13
- package/dist/lib/utils.cjs +9 -13
- package/dist/lib/utils.js +9 -13
- package/dist/lib/validator.browser.cjs +46 -4
- package/dist/lib/validator.browser.js +46 -4
- package/dist/lib/validator.cjs +46 -4
- package/dist/lib/validator.d.ts +5 -1
- package/dist/lib/validator.js +46 -4
- 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 +2425 -1239
- package/dist/wapi-client-web.iife.js +4 -4
- package/dist/wapi-client.iife.js +4 -4
- package/package.json +1 -1
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 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';
|
|
11
|
+
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';
|
|
12
12
|
/**
|
|
13
13
|
* @internal
|
|
14
14
|
*/
|
|
@@ -87,6 +87,8 @@ export declare enum SchemaNames {
|
|
|
87
87
|
GetTransferGroupFnOutput = "GetTransferGroupFnOutput",
|
|
88
88
|
GetWalletFnInput = "GetWalletFnInput",
|
|
89
89
|
GetWalletFnOutput = "GetWalletFnOutput",
|
|
90
|
+
HealthcheckFnInput = "HealthcheckFnInput",
|
|
91
|
+
HealthcheckFnOutput = "HealthcheckFnOutput",
|
|
90
92
|
ImportDataFnInput = "ImportDataFnInput",
|
|
91
93
|
ImportDataFnOptions = "ImportDataFnOptions",
|
|
92
94
|
ImportDataFnStreamChunk = "ImportDataFnStreamChunk",
|
|
@@ -173,6 +175,8 @@ export declare enum SchemaNames {
|
|
|
173
175
|
GetWalletTxOutput = "GetWalletTxOutput",
|
|
174
176
|
GetWalletManyTxInput = "GetWalletManyTxInput",
|
|
175
177
|
GetWalletManyTxOutput = "GetWalletManyTxOutput",
|
|
178
|
+
HealthcheckTxInput = "HealthcheckTxInput",
|
|
179
|
+
HealthcheckTxOutput = "HealthcheckTxOutput",
|
|
176
180
|
ImportActionsTxInput = "ImportActionsTxInput",
|
|
177
181
|
ImportActionsTxOptions = "ImportActionsTxOptions",
|
|
178
182
|
ImportActionsTxStreamChunk = "ImportActionsTxStreamChunk",
|
package/dist/lib/validator.js
CHANGED
|
@@ -93,6 +93,8 @@ import GetTransferGroupFnInputSchema from "../fns/get-transfer-group/get-transfe
|
|
|
93
93
|
import GetTransferGroupFnOutputSchema from "../fns/get-transfer-group/get-transfer-group.schema.output.json";
|
|
94
94
|
import GetWalletFnInputSchema from "../fns/get-wallet/get-wallet.schema.input.json";
|
|
95
95
|
import GetWalletFnOutputSchema from "../fns/get-wallet/get-wallet.schema.output.json";
|
|
96
|
+
import HealthcheckFnInputSchema from "../fns/healthcheck/healthcheck.schema.input.json";
|
|
97
|
+
import HealthcheckFnOutputSchema from "../fns/healthcheck/healthcheck.schema.output.json";
|
|
96
98
|
import ImportDataFnInputSchema from "../fns/import-data/import-data.schema.input.json";
|
|
97
99
|
import ImportDataFnOutputSchema from "../fns/import-data/import-data.schema.output.json";
|
|
98
100
|
import ReverseTransferFnInputSchema from "../fns/reverse-transfer/reverse-transfer.schema.input.json";
|
|
@@ -177,6 +179,8 @@ import GetWalletTxInputSchema from "../txs/get-wallet/get-wallet.schema.input.js
|
|
|
177
179
|
import GetWalletTxOutputSchema from "../txs/get-wallet/get-wallet.schema.output.json";
|
|
178
180
|
import GetWalletManyTxInputSchema from "../txs/get-wallet-many/get-wallet-many.schema.input.json";
|
|
179
181
|
import GetWalletManyTxOutputSchema from "../txs/get-wallet-many/get-wallet-many.schema.output.json";
|
|
182
|
+
import HealthcheckTxInputSchema from "../txs/healthcheck/healthcheck.schema.input.json";
|
|
183
|
+
import HealthcheckTxOutputSchema from "../txs/healthcheck/healthcheck.schema.output.json";
|
|
180
184
|
import ImportActionsTxInputSchema from "../txs/import-actions/import-actions.schema.input.json";
|
|
181
185
|
import ImportActionsTxOutputSchema from "../txs/import-actions/import-actions.schema.output.json";
|
|
182
186
|
import ImportDatabaseTxInputSchema from "../txs/import-database/import-database.schema.input.json";
|
|
@@ -231,10 +235,12 @@ function getValidationError(errors, errorsText) {
|
|
|
231
235
|
if (errorsText === void 0) {
|
|
232
236
|
return;
|
|
233
237
|
}
|
|
234
|
-
return new ValidationError(
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
+
return new ValidationError(
|
|
239
|
+
{
|
|
240
|
+
errors
|
|
241
|
+
},
|
|
242
|
+
errorsText
|
|
243
|
+
);
|
|
238
244
|
}
|
|
239
245
|
function wrapValidator(validate) {
|
|
240
246
|
return function(input) {
|
|
@@ -864,6 +870,22 @@ ajv.addSchema(
|
|
|
864
870
|
"/fns/get-wallet/get-wallet.schema.output.json"
|
|
865
871
|
);
|
|
866
872
|
Schemas.GetWalletFnOutput = GetWalletFnOutputSchema;
|
|
873
|
+
ajv.addSchema(
|
|
874
|
+
fixSelfRefs(
|
|
875
|
+
HealthcheckFnInputSchema,
|
|
876
|
+
"/fns/healthcheck/healthcheck.schema.input.json"
|
|
877
|
+
),
|
|
878
|
+
"/fns/healthcheck/healthcheck.schema.input.json"
|
|
879
|
+
);
|
|
880
|
+
Schemas.HealthcheckFnInput = HealthcheckFnInputSchema;
|
|
881
|
+
ajv.addSchema(
|
|
882
|
+
fixSelfRefs(
|
|
883
|
+
HealthcheckFnOutputSchema,
|
|
884
|
+
"/fns/healthcheck/healthcheck.schema.output.json"
|
|
885
|
+
),
|
|
886
|
+
"/fns/healthcheck/healthcheck.schema.output.json"
|
|
887
|
+
);
|
|
888
|
+
Schemas.HealthcheckFnOutput = HealthcheckFnOutputSchema;
|
|
867
889
|
ajv.addSchema(
|
|
868
890
|
fixSelfRefs(
|
|
869
891
|
ImportDataFnInputSchema,
|
|
@@ -1554,6 +1576,22 @@ ajv.addSchema(
|
|
|
1554
1576
|
"/txs/get-wallet-many/get-wallet-many.schema.output.json"
|
|
1555
1577
|
);
|
|
1556
1578
|
Schemas.GetWalletManyTxOutput = GetWalletManyTxOutputSchema;
|
|
1579
|
+
ajv.addSchema(
|
|
1580
|
+
fixSelfRefs(
|
|
1581
|
+
HealthcheckTxInputSchema,
|
|
1582
|
+
"/txs/healthcheck/healthcheck.schema.input.json"
|
|
1583
|
+
),
|
|
1584
|
+
"/txs/healthcheck/healthcheck.schema.input.json"
|
|
1585
|
+
);
|
|
1586
|
+
Schemas.HealthcheckTxInput = HealthcheckTxInputSchema;
|
|
1587
|
+
ajv.addSchema(
|
|
1588
|
+
fixSelfRefs(
|
|
1589
|
+
HealthcheckTxOutputSchema,
|
|
1590
|
+
"/txs/healthcheck/healthcheck.schema.output.json"
|
|
1591
|
+
),
|
|
1592
|
+
"/txs/healthcheck/healthcheck.schema.output.json"
|
|
1593
|
+
);
|
|
1594
|
+
Schemas.HealthcheckTxOutput = HealthcheckTxOutputSchema;
|
|
1557
1595
|
ajv.addSchema(
|
|
1558
1596
|
fixSelfRefs(
|
|
1559
1597
|
ImportActionsTxInputSchema,
|
|
@@ -1934,6 +1972,8 @@ var SchemaNames = /* @__PURE__ */ ((SchemaNames2) => {
|
|
|
1934
1972
|
SchemaNames2["GetTransferGroupFnOutput"] = "GetTransferGroupFnOutput";
|
|
1935
1973
|
SchemaNames2["GetWalletFnInput"] = "GetWalletFnInput";
|
|
1936
1974
|
SchemaNames2["GetWalletFnOutput"] = "GetWalletFnOutput";
|
|
1975
|
+
SchemaNames2["HealthcheckFnInput"] = "HealthcheckFnInput";
|
|
1976
|
+
SchemaNames2["HealthcheckFnOutput"] = "HealthcheckFnOutput";
|
|
1937
1977
|
SchemaNames2["ImportDataFnInput"] = "ImportDataFnInput";
|
|
1938
1978
|
SchemaNames2["ImportDataFnOptions"] = "ImportDataFnOptions";
|
|
1939
1979
|
SchemaNames2["ImportDataFnStreamChunk"] = "ImportDataFnStreamChunk";
|
|
@@ -2020,6 +2060,8 @@ var SchemaNames = /* @__PURE__ */ ((SchemaNames2) => {
|
|
|
2020
2060
|
SchemaNames2["GetWalletTxOutput"] = "GetWalletTxOutput";
|
|
2021
2061
|
SchemaNames2["GetWalletManyTxInput"] = "GetWalletManyTxInput";
|
|
2022
2062
|
SchemaNames2["GetWalletManyTxOutput"] = "GetWalletManyTxOutput";
|
|
2063
|
+
SchemaNames2["HealthcheckTxInput"] = "HealthcheckTxInput";
|
|
2064
|
+
SchemaNames2["HealthcheckTxOutput"] = "HealthcheckTxOutput";
|
|
2023
2065
|
SchemaNames2["ImportActionsTxInput"] = "ImportActionsTxInput";
|
|
2024
2066
|
SchemaNames2["ImportActionsTxOptions"] = "ImportActionsTxOptions";
|
|
2025
2067
|
SchemaNames2["ImportActionsTxStreamChunk"] = "ImportActionsTxStreamChunk";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
|
|
15
|
+
// src/txs/healthcheck/healthcheck.enums.ts
|
|
16
|
+
var healthcheck_enums_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(healthcheck_enums_exports);
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
|
|
15
|
+
// src/txs/healthcheck/healthcheck.enums.ts
|
|
16
|
+
var healthcheck_enums_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(healthcheck_enums_exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ITxGeneralOptionsWithoutTx } from '../tx-consts.enums';
|
|
2
|
+
export type HealthcheckTxOptions = ITxGeneralOptionsWithoutTx;
|
|
3
|
+
/**
|
|
4
|
+
* Input for healthcheck
|
|
5
|
+
*
|
|
6
|
+
* @category Input
|
|
7
|
+
*/
|
|
8
|
+
export interface HealthcheckTxInput {
|
|
9
|
+
options?: HealthcheckTxOptions;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Output of healthcheck
|
|
13
|
+
*
|
|
14
|
+
* @category Output
|
|
15
|
+
*/
|
|
16
|
+
export interface HealthcheckTxOutput {
|
|
17
|
+
status: 'green' | 'yellow' | 'red';
|
|
18
|
+
message?: string;
|
|
19
|
+
database_size?: string;
|
|
20
|
+
indexes_size?: string;
|
|
21
|
+
connection_count?: number;
|
|
22
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "HealthcheckTxInput",
|
|
4
|
+
"title": "HealthcheckTxInput",
|
|
5
|
+
"description": "Input for healthcheck",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"options": {
|
|
9
|
+
"$ref": "#/definitions/healthcheck_tx_options"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"definitions": {
|
|
13
|
+
"healthcheck_tx_options": {
|
|
14
|
+
"allOf": [
|
|
15
|
+
{
|
|
16
|
+
"$ref": "/txs/tx-consts.schema.json#/definitions/i_tx_general_options_without_tx"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": [],
|
|
22
|
+
"additionalProperties": false
|
|
23
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "HealthcheckTxOutput",
|
|
4
|
+
"title": "HealthcheckTxOutput",
|
|
5
|
+
"description": "Output of healthcheck",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"status": {
|
|
9
|
+
"description": "Status of the service",
|
|
10
|
+
"type": "string",
|
|
11
|
+
"enum": ["green", "yellow", "red"]
|
|
12
|
+
},
|
|
13
|
+
"message": {
|
|
14
|
+
"description": "Error message if some error occurred",
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"database_size": {
|
|
18
|
+
"description": "Size of the database in MB",
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"indexes_size": {
|
|
22
|
+
"description": "Size of all indexes of database in MB",
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"connection_count": {
|
|
26
|
+
"description": "Number of external connections to this database",
|
|
27
|
+
"type": "number"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"required": ["status"],
|
|
31
|
+
"additionalProperties": false
|
|
32
|
+
}
|
|
@@ -93,6 +93,8 @@ __export(txs_exports, {
|
|
|
93
93
|
GetWalletManyTxOutputSchema: () => import_get_wallet_many_schema_output.default,
|
|
94
94
|
GetWalletTxInputSchema: () => import_get_wallet_schema_input.default,
|
|
95
95
|
GetWalletTxOutputSchema: () => import_get_wallet_schema_output.default,
|
|
96
|
+
HealthcheckTxInputSchema: () => import_get_wallet_many_schema_input2.default,
|
|
97
|
+
HealthcheckTxOutputSchema: () => import_get_wallet_many_schema_output2.default,
|
|
96
98
|
ITxAggregatorSimpleEnum: () => import_tx_consts.ITxAggregatorSimpleEnum,
|
|
97
99
|
ITxDistributorLeftoverRuleEnum: () => import_tx_consts.ITxDistributorLeftoverRuleEnum,
|
|
98
100
|
ITxMetadataActionEnum: () => import_tx_consts.ITxMetadataActionEnum,
|
|
@@ -202,6 +204,8 @@ var import_get_wallet_schema_input = __toESM(require('./get-wallet/get-wallet.sc
|
|
|
202
204
|
var import_get_wallet_schema_output = __toESM(require('./get-wallet/get-wallet.schema.output.json'), 1);
|
|
203
205
|
var import_get_wallet_many_schema_input = __toESM(require('./get-wallet-many/get-wallet-many.schema.input.json'), 1);
|
|
204
206
|
var import_get_wallet_many_schema_output = __toESM(require('./get-wallet-many/get-wallet-many.schema.output.json'), 1);
|
|
207
|
+
var import_get_wallet_many_schema_input2 = __toESM(require('./get-wallet-many/get-wallet-many.schema.input.json'), 1);
|
|
208
|
+
var import_get_wallet_many_schema_output2 = __toESM(require('./get-wallet-many/get-wallet-many.schema.output.json'), 1);
|
|
205
209
|
var import_import_actions_schema_input = __toESM(require('./import-actions/import-actions.schema.input.json'), 1);
|
|
206
210
|
var import_import_actions_schema_output = __toESM(require('./import-actions/import-actions.schema.output.json'), 1);
|
|
207
211
|
var import_import_database_schema_input = __toESM(require('./import-database/import-database.schema.input.json'), 1);
|
|
@@ -299,6 +303,7 @@ var getTransferGroupValidator = (0, import_validator.getValidator)(
|
|
|
299
303
|
);
|
|
300
304
|
var getWalletValidator = (0, import_validator.getValidator)(import_validator.SchemaNames.GetWalletTxInput);
|
|
301
305
|
var getWalletManyValidator = (0, import_validator.getValidator)(import_validator.SchemaNames.GetWalletManyTxInput);
|
|
306
|
+
var healthcheckValidator = (0, import_validator.getValidator)(import_validator.SchemaNames.HealthcheckTxInput);
|
|
302
307
|
var importActionsValidator = (0, import_validator.getValidator)(import_validator.SchemaNames.ImportActionsTxInput);
|
|
303
308
|
var importDatabaseValidator = (0, import_validator.getValidator)(import_validator.SchemaNames.ImportDatabaseTxInput);
|
|
304
309
|
var listDatabaseExportsValidator = (0, import_validator.getValidator)(
|
|
@@ -367,6 +372,7 @@ var APIValidators = {
|
|
|
367
372
|
getTransferGroup: getTransferGroupValidator,
|
|
368
373
|
getWallet: getWalletValidator,
|
|
369
374
|
getWalletMany: getWalletManyValidator,
|
|
375
|
+
healthcheck: healthcheckValidator,
|
|
370
376
|
importActions: importActionsValidator,
|
|
371
377
|
importDatabase: importDatabaseValidator,
|
|
372
378
|
listDatabaseExports: listDatabaseExportsValidator,
|
|
@@ -418,6 +424,7 @@ var APIFunctions = /* @__PURE__ */ ((APIFunctions2) => {
|
|
|
418
424
|
APIFunctions2["getTransferGroup"] = "getTransferGroup";
|
|
419
425
|
APIFunctions2["getWallet"] = "getWallet";
|
|
420
426
|
APIFunctions2["getWalletMany"] = "getWalletMany";
|
|
427
|
+
APIFunctions2["healthcheck"] = "healthcheck";
|
|
421
428
|
APIFunctions2["importActions"] = "importActions";
|
|
422
429
|
APIFunctions2["importDatabase"] = "importDatabase";
|
|
423
430
|
APIFunctions2["listDatabaseExports"] = "listDatabaseExports";
|
|
@@ -70,6 +70,8 @@ import GetWalletTxInputSchema from "./get-wallet/get-wallet.schema.input.json";
|
|
|
70
70
|
import GetWalletTxOutputSchema from "./get-wallet/get-wallet.schema.output.json";
|
|
71
71
|
import GetWalletManyTxInputSchema from "./get-wallet-many/get-wallet-many.schema.input.json";
|
|
72
72
|
import GetWalletManyTxOutputSchema from "./get-wallet-many/get-wallet-many.schema.output.json";
|
|
73
|
+
import HealthcheckTxInputSchema from "./get-wallet-many/get-wallet-many.schema.input.json";
|
|
74
|
+
import HealthcheckTxOutputSchema from "./get-wallet-many/get-wallet-many.schema.output.json";
|
|
73
75
|
import ImportActionsTxInputSchema from "./import-actions/import-actions.schema.input.json";
|
|
74
76
|
import ImportActionsTxOutputSchema from "./import-actions/import-actions.schema.output.json";
|
|
75
77
|
import ImportDatabaseTxInputSchema from "./import-database/import-database.schema.input.json";
|
|
@@ -167,6 +169,7 @@ var getTransferGroupValidator = getValidator(
|
|
|
167
169
|
);
|
|
168
170
|
var getWalletValidator = getValidator(SchemaNames.GetWalletTxInput);
|
|
169
171
|
var getWalletManyValidator = getValidator(SchemaNames.GetWalletManyTxInput);
|
|
172
|
+
var healthcheckValidator = getValidator(SchemaNames.HealthcheckTxInput);
|
|
170
173
|
var importActionsValidator = getValidator(SchemaNames.ImportActionsTxInput);
|
|
171
174
|
var importDatabaseValidator = getValidator(SchemaNames.ImportDatabaseTxInput);
|
|
172
175
|
var listDatabaseExportsValidator = getValidator(
|
|
@@ -235,6 +238,7 @@ var APIValidators = {
|
|
|
235
238
|
getTransferGroup: getTransferGroupValidator,
|
|
236
239
|
getWallet: getWalletValidator,
|
|
237
240
|
getWalletMany: getWalletManyValidator,
|
|
241
|
+
healthcheck: healthcheckValidator,
|
|
238
242
|
importActions: importActionsValidator,
|
|
239
243
|
importDatabase: importDatabaseValidator,
|
|
240
244
|
listDatabaseExports: listDatabaseExportsValidator,
|
|
@@ -286,6 +290,7 @@ var APIFunctions = /* @__PURE__ */ ((APIFunctions2) => {
|
|
|
286
290
|
APIFunctions2["getTransferGroup"] = "getTransferGroup";
|
|
287
291
|
APIFunctions2["getWallet"] = "getWallet";
|
|
288
292
|
APIFunctions2["getWalletMany"] = "getWalletMany";
|
|
293
|
+
APIFunctions2["healthcheck"] = "healthcheck";
|
|
289
294
|
APIFunctions2["importActions"] = "importActions";
|
|
290
295
|
APIFunctions2["importDatabase"] = "importDatabase";
|
|
291
296
|
APIFunctions2["listDatabaseExports"] = "listDatabaseExports";
|
|
@@ -371,6 +376,8 @@ export {
|
|
|
371
376
|
GetWalletManyTxOutputSchema,
|
|
372
377
|
GetWalletTxInputSchema,
|
|
373
378
|
GetWalletTxOutputSchema,
|
|
379
|
+
HealthcheckTxInputSchema,
|
|
380
|
+
HealthcheckTxOutputSchema,
|
|
374
381
|
ITxAggregatorSimpleEnum,
|
|
375
382
|
ITxDistributorLeftoverRuleEnum,
|
|
376
383
|
ITxMetadataActionEnum,
|
package/dist/txs/index.cjs
CHANGED
|
@@ -93,6 +93,8 @@ __export(txs_exports, {
|
|
|
93
93
|
GetWalletManyTxOutputSchema: () => import_get_wallet_many_schema_output.default,
|
|
94
94
|
GetWalletTxInputSchema: () => import_get_wallet_schema_input.default,
|
|
95
95
|
GetWalletTxOutputSchema: () => import_get_wallet_schema_output.default,
|
|
96
|
+
HealthcheckTxInputSchema: () => import_get_wallet_many_schema_input2.default,
|
|
97
|
+
HealthcheckTxOutputSchema: () => import_get_wallet_many_schema_output2.default,
|
|
96
98
|
ITxAggregatorSimpleEnum: () => import_tx_consts.ITxAggregatorSimpleEnum,
|
|
97
99
|
ITxDistributorLeftoverRuleEnum: () => import_tx_consts.ITxDistributorLeftoverRuleEnum,
|
|
98
100
|
ITxMetadataActionEnum: () => import_tx_consts.ITxMetadataActionEnum,
|
|
@@ -202,6 +204,8 @@ var import_get_wallet_schema_input = __toESM(require('./get-wallet/get-wallet.sc
|
|
|
202
204
|
var import_get_wallet_schema_output = __toESM(require('./get-wallet/get-wallet.schema.output.json'), 1);
|
|
203
205
|
var import_get_wallet_many_schema_input = __toESM(require('./get-wallet-many/get-wallet-many.schema.input.json'), 1);
|
|
204
206
|
var import_get_wallet_many_schema_output = __toESM(require('./get-wallet-many/get-wallet-many.schema.output.json'), 1);
|
|
207
|
+
var import_get_wallet_many_schema_input2 = __toESM(require('./get-wallet-many/get-wallet-many.schema.input.json'), 1);
|
|
208
|
+
var import_get_wallet_many_schema_output2 = __toESM(require('./get-wallet-many/get-wallet-many.schema.output.json'), 1);
|
|
205
209
|
var import_import_actions_schema_input = __toESM(require('./import-actions/import-actions.schema.input.json'), 1);
|
|
206
210
|
var import_import_actions_schema_output = __toESM(require('./import-actions/import-actions.schema.output.json'), 1);
|
|
207
211
|
var import_import_database_schema_input = __toESM(require('./import-database/import-database.schema.input.json'), 1);
|
|
@@ -299,6 +303,7 @@ var getTransferGroupValidator = (0, import_validator.getValidator)(
|
|
|
299
303
|
);
|
|
300
304
|
var getWalletValidator = (0, import_validator.getValidator)(import_validator.SchemaNames.GetWalletTxInput);
|
|
301
305
|
var getWalletManyValidator = (0, import_validator.getValidator)(import_validator.SchemaNames.GetWalletManyTxInput);
|
|
306
|
+
var healthcheckValidator = (0, import_validator.getValidator)(import_validator.SchemaNames.HealthcheckTxInput);
|
|
302
307
|
var importActionsValidator = (0, import_validator.getValidator)(import_validator.SchemaNames.ImportActionsTxInput);
|
|
303
308
|
var importDatabaseValidator = (0, import_validator.getValidator)(import_validator.SchemaNames.ImportDatabaseTxInput);
|
|
304
309
|
var listDatabaseExportsValidator = (0, import_validator.getValidator)(
|
|
@@ -367,6 +372,7 @@ var APIValidators = {
|
|
|
367
372
|
getTransferGroup: getTransferGroupValidator,
|
|
368
373
|
getWallet: getWalletValidator,
|
|
369
374
|
getWalletMany: getWalletManyValidator,
|
|
375
|
+
healthcheck: healthcheckValidator,
|
|
370
376
|
importActions: importActionsValidator,
|
|
371
377
|
importDatabase: importDatabaseValidator,
|
|
372
378
|
listDatabaseExports: listDatabaseExportsValidator,
|
|
@@ -418,6 +424,7 @@ var APIFunctions = /* @__PURE__ */ ((APIFunctions2) => {
|
|
|
418
424
|
APIFunctions2["getTransferGroup"] = "getTransferGroup";
|
|
419
425
|
APIFunctions2["getWallet"] = "getWallet";
|
|
420
426
|
APIFunctions2["getWalletMany"] = "getWalletMany";
|
|
427
|
+
APIFunctions2["healthcheck"] = "healthcheck";
|
|
421
428
|
APIFunctions2["importActions"] = "importActions";
|
|
422
429
|
APIFunctions2["importDatabase"] = "importDatabase";
|
|
423
430
|
APIFunctions2["listDatabaseExports"] = "listDatabaseExports";
|
|
@@ -504,6 +511,8 @@ var APIFunctions = /* @__PURE__ */ ((APIFunctions2) => {
|
|
|
504
511
|
GetWalletManyTxOutputSchema,
|
|
505
512
|
GetWalletTxInputSchema,
|
|
506
513
|
GetWalletTxOutputSchema,
|
|
514
|
+
HealthcheckTxInputSchema,
|
|
515
|
+
HealthcheckTxOutputSchema,
|
|
507
516
|
ITxAggregatorSimpleEnum,
|
|
508
517
|
ITxDistributorLeftoverRuleEnum,
|
|
509
518
|
ITxMetadataActionEnum,
|
package/dist/txs/index.d.ts
CHANGED
|
@@ -94,6 +94,9 @@ export { GetWalletTxInputSchema, GetWalletTxOutputSchema };
|
|
|
94
94
|
import GetWalletManyTxInputSchema from './get-wallet-many/get-wallet-many.schema.input.json';
|
|
95
95
|
import GetWalletManyTxOutputSchema from './get-wallet-many/get-wallet-many.schema.output.json';
|
|
96
96
|
export { GetWalletManyTxInputSchema, GetWalletManyTxOutputSchema };
|
|
97
|
+
import HealthcheckTxInputSchema from './get-wallet-many/get-wallet-many.schema.input.json';
|
|
98
|
+
import HealthcheckTxOutputSchema from './get-wallet-many/get-wallet-many.schema.output.json';
|
|
99
|
+
export { HealthcheckTxInputSchema, HealthcheckTxOutputSchema };
|
|
97
100
|
import ImportActionsTxInputSchema from './import-actions/import-actions.schema.input.json';
|
|
98
101
|
import ImportActionsTxOutputSchema from './import-actions/import-actions.schema.output.json';
|
|
99
102
|
export { ImportActionsTxInputSchema, ImportActionsTxOutputSchema };
|
|
@@ -180,6 +183,7 @@ export declare const APIValidators: {
|
|
|
180
183
|
getTransferGroup: import("../lib/validator").ValidationFunction;
|
|
181
184
|
getWallet: import("../lib/validator").ValidationFunction;
|
|
182
185
|
getWalletMany: import("../lib/validator").ValidationFunction;
|
|
186
|
+
healthcheck: import("../lib/validator").ValidationFunction;
|
|
183
187
|
importActions: import("../lib/validator").ValidationFunction;
|
|
184
188
|
importDatabase: import("../lib/validator").ValidationFunction;
|
|
185
189
|
listDatabaseExports: import("../lib/validator").ValidationFunction;
|
|
@@ -231,6 +235,7 @@ export declare enum APIFunctions {
|
|
|
231
235
|
getTransferGroup = "getTransferGroup",
|
|
232
236
|
getWallet = "getWallet",
|
|
233
237
|
getWalletMany = "getWalletMany",
|
|
238
|
+
healthcheck = "healthcheck",
|
|
234
239
|
importActions = "importActions",
|
|
235
240
|
importDatabase = "importDatabase",
|
|
236
241
|
listDatabaseExports = "listDatabaseExports",
|
package/dist/txs/index.js
CHANGED
|
@@ -70,6 +70,8 @@ import GetWalletTxInputSchema from "./get-wallet/get-wallet.schema.input.json";
|
|
|
70
70
|
import GetWalletTxOutputSchema from "./get-wallet/get-wallet.schema.output.json";
|
|
71
71
|
import GetWalletManyTxInputSchema from "./get-wallet-many/get-wallet-many.schema.input.json";
|
|
72
72
|
import GetWalletManyTxOutputSchema from "./get-wallet-many/get-wallet-many.schema.output.json";
|
|
73
|
+
import HealthcheckTxInputSchema from "./get-wallet-many/get-wallet-many.schema.input.json";
|
|
74
|
+
import HealthcheckTxOutputSchema from "./get-wallet-many/get-wallet-many.schema.output.json";
|
|
73
75
|
import ImportActionsTxInputSchema from "./import-actions/import-actions.schema.input.json";
|
|
74
76
|
import ImportActionsTxOutputSchema from "./import-actions/import-actions.schema.output.json";
|
|
75
77
|
import ImportDatabaseTxInputSchema from "./import-database/import-database.schema.input.json";
|
|
@@ -167,6 +169,7 @@ var getTransferGroupValidator = getValidator(
|
|
|
167
169
|
);
|
|
168
170
|
var getWalletValidator = getValidator(SchemaNames.GetWalletTxInput);
|
|
169
171
|
var getWalletManyValidator = getValidator(SchemaNames.GetWalletManyTxInput);
|
|
172
|
+
var healthcheckValidator = getValidator(SchemaNames.HealthcheckTxInput);
|
|
170
173
|
var importActionsValidator = getValidator(SchemaNames.ImportActionsTxInput);
|
|
171
174
|
var importDatabaseValidator = getValidator(SchemaNames.ImportDatabaseTxInput);
|
|
172
175
|
var listDatabaseExportsValidator = getValidator(
|
|
@@ -235,6 +238,7 @@ var APIValidators = {
|
|
|
235
238
|
getTransferGroup: getTransferGroupValidator,
|
|
236
239
|
getWallet: getWalletValidator,
|
|
237
240
|
getWalletMany: getWalletManyValidator,
|
|
241
|
+
healthcheck: healthcheckValidator,
|
|
238
242
|
importActions: importActionsValidator,
|
|
239
243
|
importDatabase: importDatabaseValidator,
|
|
240
244
|
listDatabaseExports: listDatabaseExportsValidator,
|
|
@@ -286,6 +290,7 @@ var APIFunctions = /* @__PURE__ */ ((APIFunctions2) => {
|
|
|
286
290
|
APIFunctions2["getTransferGroup"] = "getTransferGroup";
|
|
287
291
|
APIFunctions2["getWallet"] = "getWallet";
|
|
288
292
|
APIFunctions2["getWalletMany"] = "getWalletMany";
|
|
293
|
+
APIFunctions2["healthcheck"] = "healthcheck";
|
|
289
294
|
APIFunctions2["importActions"] = "importActions";
|
|
290
295
|
APIFunctions2["importDatabase"] = "importDatabase";
|
|
291
296
|
APIFunctions2["listDatabaseExports"] = "listDatabaseExports";
|
|
@@ -371,6 +376,8 @@ export {
|
|
|
371
376
|
GetWalletManyTxOutputSchema,
|
|
372
377
|
GetWalletTxInputSchema,
|
|
373
378
|
GetWalletTxOutputSchema,
|
|
379
|
+
HealthcheckTxInputSchema,
|
|
380
|
+
HealthcheckTxOutputSchema,
|
|
374
381
|
ITxAggregatorSimpleEnum,
|
|
375
382
|
ITxDistributorLeftoverRuleEnum,
|
|
376
383
|
ITxMetadataActionEnum,
|