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/lib/validator.cjs
CHANGED
|
@@ -126,6 +126,8 @@ var import_get_transfer_group_schema_input = __toESM(require('../fns/get-transfe
|
|
|
126
126
|
var import_get_transfer_group_schema_output = __toESM(require('../fns/get-transfer-group/get-transfer-group.schema.output.json'), 1);
|
|
127
127
|
var import_get_wallet_schema_input = __toESM(require('../fns/get-wallet/get-wallet.schema.input.json'), 1);
|
|
128
128
|
var import_get_wallet_schema_output = __toESM(require('../fns/get-wallet/get-wallet.schema.output.json'), 1);
|
|
129
|
+
var import_healthcheck_schema_input = __toESM(require('../fns/healthcheck/healthcheck.schema.input.json'), 1);
|
|
130
|
+
var import_healthcheck_schema_output = __toESM(require('../fns/healthcheck/healthcheck.schema.output.json'), 1);
|
|
129
131
|
var import_import_data_schema_input = __toESM(require('../fns/import-data/import-data.schema.input.json'), 1);
|
|
130
132
|
var import_import_data_schema_output = __toESM(require('../fns/import-data/import-data.schema.output.json'), 1);
|
|
131
133
|
var import_reverse_transfer_schema_input = __toESM(require('../fns/reverse-transfer/reverse-transfer.schema.input.json'), 1);
|
|
@@ -210,6 +212,8 @@ var import_get_wallet_schema_input2 = __toESM(require('../txs/get-wallet/get-wal
|
|
|
210
212
|
var import_get_wallet_schema_output2 = __toESM(require('../txs/get-wallet/get-wallet.schema.output.json'), 1);
|
|
211
213
|
var import_get_wallet_many_schema_input = __toESM(require('../txs/get-wallet-many/get-wallet-many.schema.input.json'), 1);
|
|
212
214
|
var import_get_wallet_many_schema_output = __toESM(require('../txs/get-wallet-many/get-wallet-many.schema.output.json'), 1);
|
|
215
|
+
var import_healthcheck_schema_input2 = __toESM(require('../txs/healthcheck/healthcheck.schema.input.json'), 1);
|
|
216
|
+
var import_healthcheck_schema_output2 = __toESM(require('../txs/healthcheck/healthcheck.schema.output.json'), 1);
|
|
213
217
|
var import_import_actions_schema_input = __toESM(require('../txs/import-actions/import-actions.schema.input.json'), 1);
|
|
214
218
|
var import_import_actions_schema_output = __toESM(require('../txs/import-actions/import-actions.schema.output.json'), 1);
|
|
215
219
|
var import_import_database_schema_input = __toESM(require('../txs/import-database/import-database.schema.input.json'), 1);
|
|
@@ -253,7 +257,7 @@ var ajv = new import_ajv.default({
|
|
|
253
257
|
coerceTypes: true,
|
|
254
258
|
// Client side allows looser input, API will not
|
|
255
259
|
formats: {
|
|
256
|
-
validkey: /^[
|
|
260
|
+
validkey: /^(?!.*\.\.)[a-zA-Z_][a-zA-Z0-9_.-]*[a-zA-Z0-9_-]$/
|
|
257
261
|
},
|
|
258
262
|
strict: false
|
|
259
263
|
});
|
|
@@ -899,6 +903,22 @@ ajv.addSchema(
|
|
|
899
903
|
"/fns/get-wallet/get-wallet.schema.output.json"
|
|
900
904
|
);
|
|
901
905
|
Schemas.GetWalletFnOutput = import_get_wallet_schema_output.default;
|
|
906
|
+
ajv.addSchema(
|
|
907
|
+
fixSelfRefs(
|
|
908
|
+
import_healthcheck_schema_input.default,
|
|
909
|
+
"/fns/healthcheck/healthcheck.schema.input.json"
|
|
910
|
+
),
|
|
911
|
+
"/fns/healthcheck/healthcheck.schema.input.json"
|
|
912
|
+
);
|
|
913
|
+
Schemas.HealthcheckFnInput = import_healthcheck_schema_input.default;
|
|
914
|
+
ajv.addSchema(
|
|
915
|
+
fixSelfRefs(
|
|
916
|
+
import_healthcheck_schema_output.default,
|
|
917
|
+
"/fns/healthcheck/healthcheck.schema.output.json"
|
|
918
|
+
),
|
|
919
|
+
"/fns/healthcheck/healthcheck.schema.output.json"
|
|
920
|
+
);
|
|
921
|
+
Schemas.HealthcheckFnOutput = import_healthcheck_schema_output.default;
|
|
902
922
|
ajv.addSchema(
|
|
903
923
|
fixSelfRefs(
|
|
904
924
|
import_import_data_schema_input.default,
|
|
@@ -1589,6 +1609,22 @@ ajv.addSchema(
|
|
|
1589
1609
|
"/txs/get-wallet-many/get-wallet-many.schema.output.json"
|
|
1590
1610
|
);
|
|
1591
1611
|
Schemas.GetWalletManyTxOutput = import_get_wallet_many_schema_output.default;
|
|
1612
|
+
ajv.addSchema(
|
|
1613
|
+
fixSelfRefs(
|
|
1614
|
+
import_healthcheck_schema_input2.default,
|
|
1615
|
+
"/txs/healthcheck/healthcheck.schema.input.json"
|
|
1616
|
+
),
|
|
1617
|
+
"/txs/healthcheck/healthcheck.schema.input.json"
|
|
1618
|
+
);
|
|
1619
|
+
Schemas.HealthcheckTxInput = import_healthcheck_schema_input2.default;
|
|
1620
|
+
ajv.addSchema(
|
|
1621
|
+
fixSelfRefs(
|
|
1622
|
+
import_healthcheck_schema_output2.default,
|
|
1623
|
+
"/txs/healthcheck/healthcheck.schema.output.json"
|
|
1624
|
+
),
|
|
1625
|
+
"/txs/healthcheck/healthcheck.schema.output.json"
|
|
1626
|
+
);
|
|
1627
|
+
Schemas.HealthcheckTxOutput = import_healthcheck_schema_output2.default;
|
|
1592
1628
|
ajv.addSchema(
|
|
1593
1629
|
fixSelfRefs(
|
|
1594
1630
|
import_import_actions_schema_input.default,
|
|
@@ -1969,6 +2005,8 @@ var SchemaNames = /* @__PURE__ */ ((SchemaNames2) => {
|
|
|
1969
2005
|
SchemaNames2["GetTransferGroupFnOutput"] = "GetTransferGroupFnOutput";
|
|
1970
2006
|
SchemaNames2["GetWalletFnInput"] = "GetWalletFnInput";
|
|
1971
2007
|
SchemaNames2["GetWalletFnOutput"] = "GetWalletFnOutput";
|
|
2008
|
+
SchemaNames2["HealthcheckFnInput"] = "HealthcheckFnInput";
|
|
2009
|
+
SchemaNames2["HealthcheckFnOutput"] = "HealthcheckFnOutput";
|
|
1972
2010
|
SchemaNames2["ImportDataFnInput"] = "ImportDataFnInput";
|
|
1973
2011
|
SchemaNames2["ImportDataFnOptions"] = "ImportDataFnOptions";
|
|
1974
2012
|
SchemaNames2["ImportDataFnStreamChunk"] = "ImportDataFnStreamChunk";
|
|
@@ -2055,6 +2093,8 @@ var SchemaNames = /* @__PURE__ */ ((SchemaNames2) => {
|
|
|
2055
2093
|
SchemaNames2["GetWalletTxOutput"] = "GetWalletTxOutput";
|
|
2056
2094
|
SchemaNames2["GetWalletManyTxInput"] = "GetWalletManyTxInput";
|
|
2057
2095
|
SchemaNames2["GetWalletManyTxOutput"] = "GetWalletManyTxOutput";
|
|
2096
|
+
SchemaNames2["HealthcheckTxInput"] = "HealthcheckTxInput";
|
|
2097
|
+
SchemaNames2["HealthcheckTxOutput"] = "HealthcheckTxOutput";
|
|
2058
2098
|
SchemaNames2["ImportActionsTxInput"] = "ImportActionsTxInput";
|
|
2059
2099
|
SchemaNames2["ImportActionsTxOptions"] = "ImportActionsTxOptions";
|
|
2060
2100
|
SchemaNames2["ImportActionsTxStreamChunk"] = "ImportActionsTxStreamChunk";
|
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";
|
|
@@ -220,7 +224,7 @@ var ajv = new Ajv({
|
|
|
220
224
|
coerceTypes: true,
|
|
221
225
|
// Client side allows looser input, API will not
|
|
222
226
|
formats: {
|
|
223
|
-
validkey: /^[
|
|
227
|
+
validkey: /^(?!.*\.\.)[a-zA-Z_][a-zA-Z0-9_.-]*[a-zA-Z0-9_-]$/
|
|
224
228
|
},
|
|
225
229
|
strict: false
|
|
226
230
|
});
|
|
@@ -866,6 +870,22 @@ ajv.addSchema(
|
|
|
866
870
|
"/fns/get-wallet/get-wallet.schema.output.json"
|
|
867
871
|
);
|
|
868
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;
|
|
869
889
|
ajv.addSchema(
|
|
870
890
|
fixSelfRefs(
|
|
871
891
|
ImportDataFnInputSchema,
|
|
@@ -1556,6 +1576,22 @@ ajv.addSchema(
|
|
|
1556
1576
|
"/txs/get-wallet-many/get-wallet-many.schema.output.json"
|
|
1557
1577
|
);
|
|
1558
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;
|
|
1559
1595
|
ajv.addSchema(
|
|
1560
1596
|
fixSelfRefs(
|
|
1561
1597
|
ImportActionsTxInputSchema,
|
|
@@ -1936,6 +1972,8 @@ var SchemaNames = /* @__PURE__ */ ((SchemaNames2) => {
|
|
|
1936
1972
|
SchemaNames2["GetTransferGroupFnOutput"] = "GetTransferGroupFnOutput";
|
|
1937
1973
|
SchemaNames2["GetWalletFnInput"] = "GetWalletFnInput";
|
|
1938
1974
|
SchemaNames2["GetWalletFnOutput"] = "GetWalletFnOutput";
|
|
1975
|
+
SchemaNames2["HealthcheckFnInput"] = "HealthcheckFnInput";
|
|
1976
|
+
SchemaNames2["HealthcheckFnOutput"] = "HealthcheckFnOutput";
|
|
1939
1977
|
SchemaNames2["ImportDataFnInput"] = "ImportDataFnInput";
|
|
1940
1978
|
SchemaNames2["ImportDataFnOptions"] = "ImportDataFnOptions";
|
|
1941
1979
|
SchemaNames2["ImportDataFnStreamChunk"] = "ImportDataFnStreamChunk";
|
|
@@ -2022,6 +2060,8 @@ var SchemaNames = /* @__PURE__ */ ((SchemaNames2) => {
|
|
|
2022
2060
|
SchemaNames2["GetWalletTxOutput"] = "GetWalletTxOutput";
|
|
2023
2061
|
SchemaNames2["GetWalletManyTxInput"] = "GetWalletManyTxInput";
|
|
2024
2062
|
SchemaNames2["GetWalletManyTxOutput"] = "GetWalletManyTxOutput";
|
|
2063
|
+
SchemaNames2["HealthcheckTxInput"] = "HealthcheckTxInput";
|
|
2064
|
+
SchemaNames2["HealthcheckTxOutput"] = "HealthcheckTxOutput";
|
|
2025
2065
|
SchemaNames2["ImportActionsTxInput"] = "ImportActionsTxInput";
|
|
2026
2066
|
SchemaNames2["ImportActionsTxOptions"] = "ImportActionsTxOptions";
|
|
2027
2067
|
SchemaNames2["ImportActionsTxStreamChunk"] = "ImportActionsTxStreamChunk";
|
package/dist/lib/ws-types.d.ts
CHANGED
|
@@ -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,
|