wapi-client 0.9.6 → 0.10.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 +87 -70
- package/dist/api/base-client.browser.js +87 -70
- package/dist/api/base-client.cjs +87 -70
- package/dist/api/base-client.d.ts +70 -59
- package/dist/api/base-client.js +88 -71
- package/dist/api/connection/connection.enums.d.ts +0 -12
- package/dist/api/http-client.d.ts +1 -1
- package/dist/api/ws-client.browser.cjs +15 -8
- package/dist/api/ws-client.browser.js +15 -8
- package/dist/api/ws-client.cjs +16 -9
- package/dist/api/ws-client.d.ts +2 -2
- package/dist/api/ws-client.js +16 -9
- package/dist/client.browser.cjs +623 -441
- package/dist/client.browser.js +623 -441
- package/dist/client.cjs +624 -442
- package/dist/client.d.ts +851 -547
- package/dist/client.js +624 -442
- package/dist/db/consts.schema.json +3 -2
- package/dist/db/index.browser.cjs +5 -1
- package/dist/db/index.browser.js +5 -1
- package/dist/db/index.cjs +8 -2
- package/dist/db/index.d.ts +3 -0
- package/dist/db/index.js +5 -1
- package/dist/db/token/token.schema.input.json +5 -16
- package/dist/db/token/token.schema.json +8 -32
- package/dist/db/token/token.schema.optional.json +5 -16
- package/dist/db/transfer/transfer.schema.input.json +6 -21
- package/dist/db/transfer/transfer.schema.json +8 -28
- package/dist/db/transfer/transfer.schema.optional.json +7 -24
- package/dist/db/transfer-group/transfer-group.schema.input.json +6 -20
- package/dist/db/transfer-group/transfer-group.schema.json +8 -27
- package/dist/db/transfer-group/transfer-group.schema.optional.json +6 -20
- package/dist/db/transfer-log/transfer-log.schema.input.json +1 -1
- package/dist/db/transfer-log/transfer-log.schema.json +7 -29
- package/dist/db/transfer-log/transfer-log.schema.optional.json +6 -20
- package/dist/db/wallet/wallet.schema.input.json +4 -12
- package/dist/db/wallet/wallet.schema.json +8 -35
- package/dist/db/wallet/wallet.schema.optional.json +4 -12
- package/dist/db/wallet-token-setting/wallet-token-setting.schema.input.json +1 -1
- package/dist/db/wallet-token-setting/wallet-token-setting.schema.json +5 -17
- package/dist/db/wallet-token-setting/wallet-token-setting.schema.optional.json +2 -4
- package/dist/db/wapi-setting/wapi-setting.schema.input.json +2 -5
- package/dist/db/wapi-setting/wapi-setting.schema.json +5 -21
- package/dist/db/wapi-setting/wapi-setting.schema.optional.json +2 -4
- package/dist/{txs/export-database/export-database.enums.cjs → db/wapi-statistic/wapi-statistic.enums.browser.cjs} +3 -3
- package/dist/{txs/import-database/import-database.enums.cjs → db/wapi-statistic/wapi-statistic.enums.cjs} +3 -3
- package/dist/db/wapi-statistic/wapi-statistic.enums.d.ts +96 -0
- package/dist/db/wapi-statistic/wapi-statistic.schema.input.json +29 -0
- package/dist/db/wapi-statistic/wapi-statistic.schema.json +81 -0
- package/dist/db/wapi-statistic/wapi-statistic.schema.optional.json +43 -0
- package/dist/fns/export-balance-history/export-balance-history.browser.cjs +51 -0
- package/dist/fns/export-balance-history/export-balance-history.browser.js +30 -0
- package/dist/fns/export-balance-history/export-balance-history.cjs +55 -0
- package/dist/fns/export-balance-history/export-balance-history.d.ts +8 -0
- package/dist/fns/export-balance-history/export-balance-history.enums.browser.cjs +17 -0
- package/dist/fns/export-balance-history/export-balance-history.enums.cjs +17 -0
- package/dist/fns/export-balance-history/export-balance-history.enums.d.ts +29 -0
- package/dist/fns/export-balance-history/export-balance-history.guards.browser.cjs +36 -0
- package/dist/fns/export-balance-history/export-balance-history.guards.browser.js +16 -0
- package/dist/fns/export-balance-history/export-balance-history.guards.cjs +41 -0
- package/dist/fns/export-balance-history/export-balance-history.guards.d.ts +4 -0
- package/dist/fns/export-balance-history/export-balance-history.guards.js +16 -0
- package/dist/fns/export-balance-history/export-balance-history.js +30 -0
- package/dist/fns/export-balance-history/export-balance-history.schema.input.json +33 -0
- package/dist/fns/export-balance-history/export-balance-history.schema.output.json +8 -0
- package/dist/fns/export-tokens/export-tokens.browser.cjs +91 -0
- package/dist/fns/export-tokens/export-tokens.browser.js +77 -0
- package/dist/fns/export-tokens/export-tokens.cjs +95 -0
- package/dist/fns/export-tokens/export-tokens.d.ts +19 -0
- package/dist/fns/export-tokens/export-tokens.enums.browser.cjs +17 -0
- package/dist/fns/export-tokens/export-tokens.enums.cjs +17 -0
- package/dist/fns/export-tokens/export-tokens.enums.d.ts +39 -0
- package/dist/fns/export-tokens/export-tokens.guards.browser.cjs +36 -0
- package/dist/fns/export-tokens/export-tokens.guards.browser.js +16 -0
- package/dist/fns/export-tokens/export-tokens.guards.cjs +41 -0
- package/dist/fns/export-tokens/export-tokens.guards.d.ts +4 -0
- package/dist/fns/export-tokens/export-tokens.guards.js +16 -0
- package/dist/fns/export-tokens/export-tokens.js +77 -0
- package/dist/fns/export-tokens/export-tokens.schema.input.json +43 -0
- package/dist/fns/export-tokens/export-tokens.schema.output.json +8 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.browser.cjs +94 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.browser.js +80 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.cjs +98 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.d.ts +19 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.enums.browser.cjs +17 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.enums.cjs +17 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.enums.d.ts +47 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.guards.browser.cjs +36 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.guards.browser.js +16 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.guards.cjs +41 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.guards.d.ts +4 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.guards.js +16 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.js +80 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.schema.input.json +49 -0
- package/dist/fns/export-transfer-groups/export-transfer-groups.schema.output.json +8 -0
- package/dist/fns/export-transfers/export-transfers.browser.cjs +140 -0
- package/dist/fns/export-transfers/export-transfers.browser.js +127 -0
- package/dist/fns/export-transfers/export-transfers.cjs +144 -0
- package/dist/fns/export-transfers/export-transfers.d.ts +19 -0
- package/dist/{txs/export-database/export-database.enums.browser.cjs → fns/export-transfers/export-transfers.enums.browser.cjs} +3 -3
- package/dist/{txs/import-database/import-database.enums.browser.cjs → fns/export-transfers/export-transfers.enums.cjs} +3 -3
- package/dist/fns/export-transfers/export-transfers.enums.d.ts +54 -0
- package/dist/fns/export-transfers/export-transfers.guards.browser.cjs +36 -0
- package/dist/fns/export-transfers/export-transfers.guards.browser.js +16 -0
- package/dist/fns/export-transfers/export-transfers.guards.cjs +41 -0
- package/dist/fns/export-transfers/export-transfers.guards.d.ts +4 -0
- package/dist/fns/export-transfers/export-transfers.guards.js +16 -0
- package/dist/fns/export-transfers/export-transfers.js +127 -0
- package/dist/fns/export-transfers/export-transfers.schema.input.json +73 -0
- package/dist/fns/export-transfers/export-transfers.schema.output.json +8 -0
- package/dist/fns/export-wallets/export-wallets.browser.cjs +86 -0
- package/dist/fns/export-wallets/export-wallets.browser.js +72 -0
- package/dist/fns/export-wallets/export-wallets.cjs +90 -0
- package/dist/fns/export-wallets/export-wallets.d.ts +18 -0
- package/dist/fns/export-wallets/export-wallets.enums.browser.cjs +17 -0
- package/dist/fns/export-wallets/export-wallets.enums.cjs +17 -0
- package/dist/fns/export-wallets/export-wallets.enums.d.ts +45 -0
- package/dist/fns/export-wallets/export-wallets.guards.browser.cjs +36 -0
- package/dist/fns/export-wallets/export-wallets.guards.browser.js +16 -0
- package/dist/fns/export-wallets/export-wallets.guards.cjs +41 -0
- package/dist/fns/export-wallets/export-wallets.guards.d.ts +4 -0
- package/dist/fns/export-wallets/export-wallets.guards.js +16 -0
- package/dist/fns/export-wallets/export-wallets.js +72 -0
- package/dist/fns/export-wallets/export-wallets.schema.input.json +54 -0
- package/dist/fns/export-wallets/export-wallets.schema.output.json +8 -0
- package/dist/fns/get-export/get-export.browser.cjs +45 -0
- package/dist/fns/get-export/get-export.browser.js +24 -0
- package/dist/fns/get-export/get-export.cjs +49 -0
- package/dist/fns/get-export/get-export.d.ts +9 -0
- package/dist/{txs/query/query.enums.browser.cjs → fns/get-export/get-export.enums.browser.cjs} +3 -3
- package/dist/fns/get-export/get-export.enums.browser.js +0 -0
- package/dist/{txs/query/query.enums.cjs → fns/get-export/get-export.enums.cjs} +3 -3
- package/dist/fns/get-export/get-export.enums.d.ts +22 -0
- package/dist/fns/get-export/get-export.enums.js +0 -0
- package/dist/fns/get-export/get-export.guards.browser.cjs +36 -0
- package/dist/fns/get-export/get-export.guards.browser.js +16 -0
- package/dist/fns/get-export/get-export.guards.cjs +41 -0
- package/dist/fns/get-export/get-export.guards.d.ts +4 -0
- package/dist/fns/get-export/get-export.guards.js +16 -0
- package/dist/fns/get-export/get-export.js +24 -0
- package/dist/fns/get-export/get-export.schema.input.json +27 -0
- package/dist/fns/get-export/get-export.schema.output.json +8 -0
- package/dist/fns/index.browser.cjs +65 -0
- package/dist/fns/index.browser.js +65 -0
- package/dist/fns/index.cjs +86 -0
- package/dist/fns/index.d.ts +45 -1
- package/dist/fns/index.js +65 -0
- package/dist/fns/list-exports/list-exports.browser.cjs +51 -0
- package/dist/fns/list-exports/list-exports.browser.js +30 -0
- package/dist/fns/list-exports/list-exports.cjs +55 -0
- package/dist/fns/list-exports/list-exports.d.ts +10 -0
- package/dist/fns/list-exports/list-exports.enums.browser.cjs +17 -0
- package/dist/fns/list-exports/list-exports.enums.browser.js +0 -0
- package/dist/fns/list-exports/list-exports.enums.cjs +17 -0
- package/dist/fns/list-exports/list-exports.enums.d.ts +24 -0
- package/dist/fns/list-exports/list-exports.enums.js +0 -0
- package/dist/fns/list-exports/list-exports.guards.browser.cjs +36 -0
- package/dist/fns/list-exports/list-exports.guards.browser.js +16 -0
- package/dist/fns/list-exports/list-exports.guards.cjs +41 -0
- package/dist/fns/list-exports/list-exports.guards.d.ts +4 -0
- package/dist/fns/list-exports/list-exports.guards.js +16 -0
- package/dist/fns/list-exports/list-exports.js +30 -0
- package/dist/fns/list-exports/list-exports.schema.input.json +22 -0
- package/dist/fns/list-exports/list-exports.schema.output.json +8 -0
- package/dist/index.d.ts +6 -1
- package/dist/lib/validator.browser.cjs +286 -90
- package/dist/lib/validator.browser.js +286 -90
- package/dist/lib/validator.cjs +286 -90
- package/dist/lib/validator.d.ts +32 -13
- package/dist/lib/validator.js +286 -90
- package/dist/txs/aggregate-transfer-many/aggregate-transfer-many.schema.input.json +1 -0
- package/dist/txs/create-access-token/create-access-token.schema.input.json +1 -0
- package/dist/txs/create-transfer-group/create-transfer-group.schema.input.json +0 -1
- package/dist/txs/export-balance-history/export-balance-history.enums.browser.cjs +17 -0
- package/dist/txs/export-balance-history/export-balance-history.enums.browser.js +0 -0
- package/dist/txs/export-balance-history/export-balance-history.enums.cjs +17 -0
- package/dist/txs/export-balance-history/export-balance-history.enums.d.ts +22 -0
- package/dist/txs/export-balance-history/export-balance-history.enums.js +0 -0
- package/dist/txs/export-balance-history/export-balance-history.schema.input.json +38 -0
- package/dist/txs/export-balance-history/export-balance-history.schema.output.json +14 -0
- package/dist/txs/export-token-many/export-token-many.enums.browser.cjs +17 -0
- package/dist/txs/export-token-many/export-token-many.enums.browser.js +0 -0
- package/dist/txs/export-token-many/export-token-many.enums.cjs +17 -0
- package/dist/txs/export-token-many/export-token-many.enums.d.ts +9 -0
- package/dist/txs/export-token-many/export-token-many.enums.js +0 -0
- package/dist/txs/export-token-many/export-token-many.schema.input.json +21 -0
- package/dist/txs/export-token-many/export-token-many.schema.output.json +14 -0
- package/dist/txs/export-transfer-group-many/export-transfer-group-many.enums.browser.cjs +17 -0
- package/dist/txs/export-transfer-group-many/export-transfer-group-many.enums.browser.js +0 -0
- package/dist/txs/export-transfer-group-many/export-transfer-group-many.enums.cjs +17 -0
- package/dist/txs/export-transfer-group-many/export-transfer-group-many.enums.d.ts +9 -0
- package/dist/txs/export-transfer-group-many/export-transfer-group-many.enums.js +0 -0
- package/dist/txs/export-transfer-group-many/export-transfer-group-many.schema.input.json +21 -0
- package/dist/txs/export-transfer-group-many/export-transfer-group-many.schema.output.json +14 -0
- package/dist/txs/export-transfer-many/export-transfer-many.enums.browser.cjs +17 -0
- package/dist/txs/export-transfer-many/export-transfer-many.enums.browser.js +0 -0
- package/dist/txs/export-transfer-many/export-transfer-many.enums.cjs +17 -0
- package/dist/txs/export-transfer-many/export-transfer-many.enums.d.ts +11 -0
- package/dist/txs/export-transfer-many/export-transfer-many.enums.js +0 -0
- package/dist/txs/export-transfer-many/export-transfer-many.schema.input.json +40 -0
- package/dist/txs/export-transfer-many/export-transfer-many.schema.output.json +14 -0
- package/dist/txs/export-wallet-many/export-wallet-many.enums.browser.cjs +17 -0
- package/dist/txs/export-wallet-many/export-wallet-many.enums.browser.js +0 -0
- package/dist/txs/export-wallet-many/export-wallet-many.enums.cjs +17 -0
- package/dist/txs/export-wallet-many/export-wallet-many.enums.d.ts +9 -0
- package/dist/txs/export-wallet-many/export-wallet-many.enums.js +0 -0
- package/dist/txs/export-wallet-many/export-wallet-many.schema.input.json +21 -0
- package/dist/txs/export-wallet-many/export-wallet-many.schema.output.json +14 -0
- package/dist/txs/find-transfer-group-many/find-transfer-group-many.enums.d.ts +1 -1
- package/dist/txs/find-transfer-group-many/find-transfer-group-many.schema.input.json +0 -1
- package/dist/txs/find-transfer-many/find-transfer-many.enums.d.ts +1 -1
- package/dist/txs/find-transfer-many/find-transfer-many.schema.input.json +0 -1
- package/dist/txs/get-balance-history/get-balance-history.enums.d.ts +1 -1
- package/dist/txs/get-balance-history/get-balance-history.schema.input.json +1 -0
- package/dist/txs/get-export/get-export.enums.browser.cjs +17 -0
- package/dist/txs/get-export/get-export.enums.browser.js +0 -0
- package/dist/txs/get-export/get-export.enums.cjs +17 -0
- package/dist/txs/get-export/get-export.enums.d.ts +82 -0
- package/dist/txs/get-export/get-export.enums.js +0 -0
- package/dist/txs/get-export/get-export.schema.input.json +51 -0
- package/dist/txs/get-export/get-export.schema.output.json +70 -0
- package/dist/txs/get-wallet-many/get-wallet-many.enums.d.ts +1 -1
- package/dist/txs/get-wallet-many/get-wallet-many.schema.input.json +1 -0
- package/dist/txs/healthcheck/healthcheck.schema.input.json +0 -1
- package/dist/txs/index.browser.cjs +63 -58
- package/dist/txs/index.browser.js +61 -62
- package/dist/txs/index.cjs +77 -75
- package/dist/txs/index.d.ts +37 -33
- package/dist/txs/index.js +61 -62
- package/dist/txs/list-export-many/list-export-many.enums.browser.cjs +17 -0
- package/dist/txs/list-export-many/list-export-many.enums.browser.js +0 -0
- package/dist/txs/list-export-many/list-export-many.enums.cjs +17 -0
- package/dist/txs/list-export-many/list-export-many.enums.d.ts +23 -0
- package/dist/txs/list-export-many/list-export-many.enums.js +0 -0
- package/dist/txs/list-export-many/list-export-many.schema.input.json +76 -0
- package/dist/txs/list-export-many/list-export-many.schema.output.json +18 -0
- package/dist/txs/reverse-transfer-group/reverse-transfer-group.enums.d.ts +1 -1
- package/dist/txs/reverse-transfer-group/reverse-transfer-group.schema.input.json +1 -0
- package/dist/txs/update-token/update-token.enums.d.ts +1 -1
- package/dist/txs/update-token/update-token.schema.input.json +1 -1
- package/dist/txs/update-transfer/update-transfer.enums.d.ts +1 -1
- package/dist/txs/update-transfer/update-transfer.schema.input.json +1 -1
- package/dist/txs/update-transfer-group/update-transfer-group.enums.d.ts +1 -1
- package/dist/txs/update-transfer-group/update-transfer-group.schema.input.json +1 -1
- package/dist/txs/update-transfer-group-many/update-transfer-group-many.enums.d.ts +1 -1
- package/dist/txs/update-transfer-group-many/update-transfer-group-many.schema.input.json +1 -1
- package/dist/txs/update-wallet/update-wallet.enums.d.ts +1 -1
- package/dist/txs/update-wallet/update-wallet.schema.input.json +1 -1
- package/dist/types/index.d.ts +2264 -1330
- package/dist/wapi-client-web.iife.js +6 -6
- package/dist/wapi-client.iife.js +6 -6
- package/package.json +1 -1
- package/dist/txs/export-database/export-database.enums.d.ts +0 -20
- package/dist/txs/export-database/export-database.schema.input.json +0 -15
- package/dist/txs/export-database/export-database.schema.output.json +0 -13
- package/dist/txs/get-database-export-progress/get-database-export-progress.enums.browser.cjs +0 -17
- package/dist/txs/get-database-export-progress/get-database-export-progress.enums.cjs +0 -17
- package/dist/txs/get-database-export-progress/get-database-export-progress.enums.d.ts +0 -38
- package/dist/txs/get-database-export-progress/get-database-export-progress.schema.input.json +0 -31
- package/dist/txs/get-database-export-progress/get-database-export-progress.schema.output.json +0 -27
- package/dist/txs/get-database-import-progress/get-database-import-progress.enums.browser.cjs +0 -17
- package/dist/txs/get-database-import-progress/get-database-import-progress.enums.cjs +0 -17
- package/dist/txs/get-database-import-progress/get-database-import-progress.enums.d.ts +0 -33
- package/dist/txs/get-database-import-progress/get-database-import-progress.schema.input.json +0 -22
- package/dist/txs/get-database-import-progress/get-database-import-progress.schema.output.json +0 -27
- package/dist/txs/import-database/import-database.enums.d.ts +0 -17
- package/dist/txs/import-database/import-database.schema.input.json +0 -14
- package/dist/txs/import-database/import-database.schema.output.json +0 -13
- package/dist/txs/list-database-exports/list-database-exports.enums.browser.cjs +0 -17
- package/dist/txs/list-database-exports/list-database-exports.enums.cjs +0 -17
- package/dist/txs/list-database-exports/list-database-exports.enums.d.ts +0 -26
- package/dist/txs/list-database-exports/list-database-exports.schema.input.json +0 -10
- package/dist/txs/list-database-exports/list-database-exports.schema.output.json +0 -33
- package/dist/txs/query/query.enums.d.ts +0 -30
- package/dist/txs/query/query.schema.input.json +0 -31
- package/dist/txs/query/query.schema.output.json +0 -15
- /package/dist/{txs/export-database/export-database.enums.browser.js → db/wapi-statistic/wapi-statistic.enums.browser.js} +0 -0
- /package/dist/{txs/export-database/export-database.enums.js → db/wapi-statistic/wapi-statistic.enums.js} +0 -0
- /package/dist/{txs/get-database-export-progress/get-database-export-progress.enums.browser.js → fns/export-balance-history/export-balance-history.enums.browser.js} +0 -0
- /package/dist/{txs/get-database-export-progress/get-database-export-progress.enums.js → fns/export-balance-history/export-balance-history.enums.js} +0 -0
- /package/dist/{txs/get-database-import-progress/get-database-import-progress.enums.browser.js → fns/export-tokens/export-tokens.enums.browser.js} +0 -0
- /package/dist/{txs/get-database-import-progress/get-database-import-progress.enums.js → fns/export-tokens/export-tokens.enums.js} +0 -0
- /package/dist/{txs/import-database/import-database.enums.browser.js → fns/export-transfer-groups/export-transfer-groups.enums.browser.js} +0 -0
- /package/dist/{txs/import-database/import-database.enums.js → fns/export-transfer-groups/export-transfer-groups.enums.js} +0 -0
- /package/dist/{txs/list-database-exports/list-database-exports.enums.browser.js → fns/export-transfers/export-transfers.enums.browser.js} +0 -0
- /package/dist/{txs/list-database-exports/list-database-exports.enums.js → fns/export-transfers/export-transfers.enums.js} +0 -0
- /package/dist/{txs/query/query.enums.browser.js → fns/export-wallets/export-wallets.enums.browser.js} +0 -0
- /package/dist/{txs/query/query.enums.js → fns/export-wallets/export-wallets.enums.js} +0 -0
|
@@ -90,28 +90,30 @@ var BaseClient = class {
|
|
|
90
90
|
this.$connect = $connect;
|
|
91
91
|
}
|
|
92
92
|
_setConnected(value) {
|
|
93
|
-
this
|
|
94
|
-
if (
|
|
93
|
+
this.$connect = void 0;
|
|
94
|
+
if (value && this._error !== false) {
|
|
95
95
|
this._error = false;
|
|
96
96
|
}
|
|
97
|
-
if (this.isConnected && this.hooks.connected) {
|
|
97
|
+
if (!this.isConnected && value && this.hooks.connected) {
|
|
98
98
|
this.hooks.connected(this.socId);
|
|
99
99
|
}
|
|
100
|
-
if (
|
|
100
|
+
if (this.isConnected && !value && this.hooks.disconnected) {
|
|
101
101
|
this.hooks.disconnected();
|
|
102
102
|
}
|
|
103
|
+
this.isConnected = value;
|
|
103
104
|
}
|
|
104
105
|
_setErrored(err) {
|
|
105
106
|
this._error = err;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
this._setConnected(false);
|
|
108
|
+
}
|
|
109
|
+
_clearError() {
|
|
110
|
+
this._error = void 0;
|
|
109
111
|
}
|
|
110
112
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
111
113
|
_send(input) {
|
|
112
114
|
throw new Error("This method must be implemented by child class");
|
|
113
115
|
}
|
|
114
|
-
_reconnect() {
|
|
116
|
+
_reconnect(nrOfAttempts) {
|
|
115
117
|
throw new Error("This method must be implemented by child class");
|
|
116
118
|
}
|
|
117
119
|
close() {
|
|
@@ -208,10 +210,13 @@ var BaseClient = class {
|
|
|
208
210
|
if (!isValid) {
|
|
209
211
|
throw error;
|
|
210
212
|
}
|
|
213
|
+
return this._sendRaw(name, inputCopy);
|
|
214
|
+
}
|
|
215
|
+
_sendRaw(method, params) {
|
|
211
216
|
const jsonRpcMessage = {
|
|
212
217
|
jsonrpc: import_jsonrpc.JSONRPC.version,
|
|
213
|
-
method
|
|
214
|
-
params
|
|
218
|
+
method,
|
|
219
|
+
params,
|
|
215
220
|
id: (0, import_utils.getRandomHex)()
|
|
216
221
|
};
|
|
217
222
|
if (this.hooks.preflight && this.hooks.preflight(jsonRpcMessage) === false) {
|
|
@@ -219,11 +224,14 @@ var BaseClient = class {
|
|
|
219
224
|
}
|
|
220
225
|
return new import_stream_promise.StreamPromise((stream) => __async(this, null, function* () {
|
|
221
226
|
if (this._error) {
|
|
222
|
-
this._reconnect();
|
|
227
|
+
this._reconnect(5);
|
|
223
228
|
}
|
|
224
229
|
if (!this.isConnected) {
|
|
225
230
|
yield this.$connect;
|
|
226
231
|
}
|
|
232
|
+
if (this._error) {
|
|
233
|
+
throw this._error;
|
|
234
|
+
}
|
|
227
235
|
this._requests.set(jsonRpcMessage.id, {
|
|
228
236
|
stream,
|
|
229
237
|
start: Date.now()
|
|
@@ -285,11 +293,14 @@ var BaseClient = class {
|
|
|
285
293
|
}
|
|
286
294
|
return new import_stream_promise_input.StreamPromiseInput((stream) => __async(this, null, function* () {
|
|
287
295
|
if (this._error) {
|
|
288
|
-
this._reconnect();
|
|
296
|
+
this._reconnect(5);
|
|
289
297
|
}
|
|
290
298
|
if (!this.isConnected) {
|
|
291
299
|
yield this.$connect;
|
|
292
300
|
}
|
|
301
|
+
if (this._error) {
|
|
302
|
+
throw this._error;
|
|
303
|
+
}
|
|
293
304
|
let timeout = setTimeout(() => {
|
|
294
305
|
stream.push({
|
|
295
306
|
error: new import_errors.StreamError("INPUT_STREAM_TIMEOUT", { streamId })
|
|
@@ -394,7 +405,7 @@ var BaseClient = class {
|
|
|
394
405
|
*
|
|
395
406
|
*/
|
|
396
407
|
authenticationCheck(input) {
|
|
397
|
-
return this._sendTransaction(import_txs.APIFunctions.authenticationCheck, input);
|
|
408
|
+
return this._sendTransaction(import_txs.APIFunctions.authenticationCheck, input != null ? input : {});
|
|
398
409
|
}
|
|
399
410
|
/**
|
|
400
411
|
*
|
|
@@ -469,7 +480,7 @@ var BaseClient = class {
|
|
|
469
480
|
*
|
|
470
481
|
*/
|
|
471
482
|
createTransferGroup(input) {
|
|
472
|
-
return this._sendTransaction(import_txs.APIFunctions.createTransferGroup, input);
|
|
483
|
+
return this._sendTransaction(import_txs.APIFunctions.createTransferGroup, input != null ? input : {});
|
|
473
484
|
}
|
|
474
485
|
/**
|
|
475
486
|
*
|
|
@@ -503,15 +514,48 @@ var BaseClient = class {
|
|
|
503
514
|
}
|
|
504
515
|
/**
|
|
505
516
|
*
|
|
506
|
-
* @param {
|
|
507
|
-
* @returns {StreamPromise<
|
|
517
|
+
* @param {ExportBalanceHistoryTxInput} input
|
|
518
|
+
* @returns {StreamPromise<ExportBalanceHistoryTxOutput>}
|
|
508
519
|
*
|
|
509
520
|
*/
|
|
510
|
-
|
|
511
|
-
return this._sendTransaction(
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
521
|
+
exportBalanceHistory(input) {
|
|
522
|
+
return this._sendTransaction(import_txs.APIFunctions.exportBalanceHistory, input);
|
|
523
|
+
}
|
|
524
|
+
/**
|
|
525
|
+
*
|
|
526
|
+
* @param {ExportTokenManyTxInput} input
|
|
527
|
+
* @returns {StreamPromise<ExportTokenManyTxOutput>}
|
|
528
|
+
*
|
|
529
|
+
*/
|
|
530
|
+
exportTokenMany(input) {
|
|
531
|
+
return this._sendTransaction(import_txs.APIFunctions.exportTokenMany, input != null ? input : {});
|
|
532
|
+
}
|
|
533
|
+
/**
|
|
534
|
+
*
|
|
535
|
+
* @param {ExportTransferGroupManyTxInput} input
|
|
536
|
+
* @returns {StreamPromise<ExportTransferGroupManyTxOutput>}
|
|
537
|
+
*
|
|
538
|
+
*/
|
|
539
|
+
exportTransferGroupMany(input) {
|
|
540
|
+
return this._sendTransaction(import_txs.APIFunctions.exportTransferGroupMany, input != null ? input : {});
|
|
541
|
+
}
|
|
542
|
+
/**
|
|
543
|
+
*
|
|
544
|
+
* @param {ExportTransferManyTxInput} input
|
|
545
|
+
* @returns {StreamPromise<ExportTransferManyTxOutput>}
|
|
546
|
+
*
|
|
547
|
+
*/
|
|
548
|
+
exportTransferMany(input) {
|
|
549
|
+
return this._sendTransaction(import_txs.APIFunctions.exportTransferMany, input != null ? input : {});
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
*
|
|
553
|
+
* @param {ExportWalletManyTxInput} input
|
|
554
|
+
* @returns {StreamPromise<ExportWalletManyTxOutput>}
|
|
555
|
+
*
|
|
556
|
+
*/
|
|
557
|
+
exportWalletMany(input) {
|
|
558
|
+
return this._sendTransaction(import_txs.APIFunctions.exportWalletMany, input != null ? input : {});
|
|
515
559
|
}
|
|
516
560
|
/**
|
|
517
561
|
*
|
|
@@ -520,7 +564,7 @@ var BaseClient = class {
|
|
|
520
564
|
*
|
|
521
565
|
*/
|
|
522
566
|
findBalanceMany(input) {
|
|
523
|
-
return this._sendTransaction(import_txs.APIFunctions.findBalanceMany, input);
|
|
567
|
+
return this._sendTransaction(import_txs.APIFunctions.findBalanceMany, input != null ? input : {});
|
|
524
568
|
}
|
|
525
569
|
/**
|
|
526
570
|
*
|
|
@@ -531,7 +575,7 @@ var BaseClient = class {
|
|
|
531
575
|
findTokenMany(input) {
|
|
532
576
|
return this._sendTransaction(
|
|
533
577
|
import_txs.APIFunctions.findTokenMany,
|
|
534
|
-
input
|
|
578
|
+
input != null ? input : {}
|
|
535
579
|
);
|
|
536
580
|
}
|
|
537
581
|
/**
|
|
@@ -541,7 +585,7 @@ var BaseClient = class {
|
|
|
541
585
|
*
|
|
542
586
|
*/
|
|
543
587
|
findTransferGroupMany(input) {
|
|
544
|
-
return this._sendTransaction(import_txs.APIFunctions.findTransferGroupMany, input);
|
|
588
|
+
return this._sendTransaction(import_txs.APIFunctions.findTransferGroupMany, input != null ? input : {});
|
|
545
589
|
}
|
|
546
590
|
/**
|
|
547
591
|
*
|
|
@@ -550,7 +594,7 @@ var BaseClient = class {
|
|
|
550
594
|
*
|
|
551
595
|
*/
|
|
552
596
|
findTransferMany(input) {
|
|
553
|
-
return this._sendTransaction(import_txs.APIFunctions.findTransferMany, input);
|
|
597
|
+
return this._sendTransaction(import_txs.APIFunctions.findTransferMany, input != null ? input : {});
|
|
554
598
|
}
|
|
555
599
|
/**
|
|
556
600
|
*
|
|
@@ -561,7 +605,7 @@ var BaseClient = class {
|
|
|
561
605
|
findWalletMany(input) {
|
|
562
606
|
return this._sendTransaction(
|
|
563
607
|
import_txs.APIFunctions.findWalletMany,
|
|
564
|
-
input
|
|
608
|
+
input != null ? input : {}
|
|
565
609
|
);
|
|
566
610
|
}
|
|
567
611
|
/**
|
|
@@ -596,21 +640,15 @@ var BaseClient = class {
|
|
|
596
640
|
}
|
|
597
641
|
/**
|
|
598
642
|
*
|
|
599
|
-
* @param {
|
|
600
|
-
* @returns {StreamPromise<
|
|
643
|
+
* @param {GetExportTxInput} input
|
|
644
|
+
* @returns {StreamPromise<GetExportTxOutput>}
|
|
601
645
|
*
|
|
602
646
|
*/
|
|
603
|
-
|
|
604
|
-
return this._sendTransaction(
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
* @param {GetDatabaseImportProgressTxInput} input
|
|
609
|
-
* @returns {StreamPromise<GetDatabaseImportProgressTxOutput>}
|
|
610
|
-
*
|
|
611
|
-
*/
|
|
612
|
-
getDatabaseImportProgress(input) {
|
|
613
|
-
return this._sendTransaction(import_txs.APIFunctions.getDatabaseImportProgress, input);
|
|
647
|
+
getExport(input) {
|
|
648
|
+
return this._sendTransaction(
|
|
649
|
+
import_txs.APIFunctions.getExport,
|
|
650
|
+
input
|
|
651
|
+
);
|
|
614
652
|
}
|
|
615
653
|
/**
|
|
616
654
|
*
|
|
@@ -621,7 +659,7 @@ var BaseClient = class {
|
|
|
621
659
|
getFlags(input) {
|
|
622
660
|
return this._sendTransaction(
|
|
623
661
|
import_txs.APIFunctions.getFlags,
|
|
624
|
-
input
|
|
662
|
+
input != null ? input : {}
|
|
625
663
|
);
|
|
626
664
|
}
|
|
627
665
|
/**
|
|
@@ -633,7 +671,7 @@ var BaseClient = class {
|
|
|
633
671
|
getStatistics(input) {
|
|
634
672
|
return this._sendTransaction(
|
|
635
673
|
import_txs.APIFunctions.getStatistics,
|
|
636
|
-
input
|
|
674
|
+
input != null ? input : {}
|
|
637
675
|
);
|
|
638
676
|
}
|
|
639
677
|
/**
|
|
@@ -746,35 +784,14 @@ var BaseClient = class {
|
|
|
746
784
|
}
|
|
747
785
|
/**
|
|
748
786
|
*
|
|
749
|
-
* @param {
|
|
750
|
-
* @returns {StreamPromise<
|
|
751
|
-
*
|
|
752
|
-
*/
|
|
753
|
-
importDatabase(input) {
|
|
754
|
-
return this._sendTransaction(
|
|
755
|
-
import_txs.APIFunctions.importDatabase,
|
|
756
|
-
input
|
|
757
|
-
);
|
|
758
|
-
}
|
|
759
|
-
/**
|
|
760
|
-
*
|
|
761
|
-
* @param {ListDatabaseExportsTxInput} input
|
|
762
|
-
* @returns {StreamPromise<ListDatabaseExportsTxOutput>}
|
|
787
|
+
* @param {ListExportManyTxInput} input
|
|
788
|
+
* @returns {StreamPromise<ListExportManyTxOutput>}
|
|
763
789
|
*
|
|
764
790
|
*/
|
|
765
|
-
|
|
766
|
-
return this._sendTransaction(import_txs.APIFunctions.listDatabaseExports, input);
|
|
767
|
-
}
|
|
768
|
-
/**
|
|
769
|
-
*
|
|
770
|
-
* @param {QueryTxInput} input
|
|
771
|
-
* @returns {StreamPromise<QueryTxOutput>}
|
|
772
|
-
*
|
|
773
|
-
*/
|
|
774
|
-
query(input) {
|
|
791
|
+
listExportMany(input) {
|
|
775
792
|
return this._sendTransaction(
|
|
776
|
-
import_txs.APIFunctions.
|
|
777
|
-
input
|
|
793
|
+
import_txs.APIFunctions.listExportMany,
|
|
794
|
+
input != null ? input : {}
|
|
778
795
|
);
|
|
779
796
|
}
|
|
780
797
|
/**
|
|
@@ -786,7 +803,7 @@ var BaseClient = class {
|
|
|
786
803
|
queryLogs(input) {
|
|
787
804
|
return this._sendTransaction(
|
|
788
805
|
import_txs.APIFunctions.queryLogs,
|
|
789
|
-
input
|
|
806
|
+
input != null ? input : {}
|
|
790
807
|
);
|
|
791
808
|
}
|
|
792
809
|
/**
|
|
@@ -798,7 +815,7 @@ var BaseClient = class {
|
|
|
798
815
|
resetDatabase(input) {
|
|
799
816
|
return this._sendTransaction(
|
|
800
817
|
import_txs.APIFunctions.resetDatabase,
|
|
801
|
-
input
|
|
818
|
+
input != null ? input : {}
|
|
802
819
|
);
|
|
803
820
|
}
|
|
804
821
|
/**
|
|
@@ -856,7 +873,7 @@ var BaseClient = class {
|
|
|
856
873
|
*
|
|
857
874
|
*/
|
|
858
875
|
startTransaction(input) {
|
|
859
|
-
return this._sendTransaction(import_txs.APIFunctions.startTransaction, input);
|
|
876
|
+
return this._sendTransaction(import_txs.APIFunctions.startTransaction, input != null ? input : {});
|
|
860
877
|
}
|
|
861
878
|
/**
|
|
862
879
|
*
|
|
@@ -77,28 +77,30 @@ var BaseClient = class {
|
|
|
77
77
|
this.$connect = $connect;
|
|
78
78
|
}
|
|
79
79
|
_setConnected(value) {
|
|
80
|
-
this
|
|
81
|
-
if (
|
|
80
|
+
this.$connect = void 0;
|
|
81
|
+
if (value && this._error !== false) {
|
|
82
82
|
this._error = false;
|
|
83
83
|
}
|
|
84
|
-
if (this.isConnected && this.hooks.connected) {
|
|
84
|
+
if (!this.isConnected && value && this.hooks.connected) {
|
|
85
85
|
this.hooks.connected(this.socId);
|
|
86
86
|
}
|
|
87
|
-
if (
|
|
87
|
+
if (this.isConnected && !value && this.hooks.disconnected) {
|
|
88
88
|
this.hooks.disconnected();
|
|
89
89
|
}
|
|
90
|
+
this.isConnected = value;
|
|
90
91
|
}
|
|
91
92
|
_setErrored(err) {
|
|
92
93
|
this._error = err;
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
this._setConnected(false);
|
|
95
|
+
}
|
|
96
|
+
_clearError() {
|
|
97
|
+
this._error = void 0;
|
|
96
98
|
}
|
|
97
99
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
98
100
|
_send(input) {
|
|
99
101
|
throw new Error("This method must be implemented by child class");
|
|
100
102
|
}
|
|
101
|
-
_reconnect() {
|
|
103
|
+
_reconnect(nrOfAttempts) {
|
|
102
104
|
throw new Error("This method must be implemented by child class");
|
|
103
105
|
}
|
|
104
106
|
close() {
|
|
@@ -195,10 +197,13 @@ var BaseClient = class {
|
|
|
195
197
|
if (!isValid) {
|
|
196
198
|
throw error;
|
|
197
199
|
}
|
|
200
|
+
return this._sendRaw(name, inputCopy);
|
|
201
|
+
}
|
|
202
|
+
_sendRaw(method, params) {
|
|
198
203
|
const jsonRpcMessage = {
|
|
199
204
|
jsonrpc: JSONRPC.version,
|
|
200
|
-
method
|
|
201
|
-
params
|
|
205
|
+
method,
|
|
206
|
+
params,
|
|
202
207
|
id: getRandomHex()
|
|
203
208
|
};
|
|
204
209
|
if (this.hooks.preflight && this.hooks.preflight(jsonRpcMessage) === false) {
|
|
@@ -206,11 +211,14 @@ var BaseClient = class {
|
|
|
206
211
|
}
|
|
207
212
|
return new StreamPromise((stream) => __async(this, null, function* () {
|
|
208
213
|
if (this._error) {
|
|
209
|
-
this._reconnect();
|
|
214
|
+
this._reconnect(5);
|
|
210
215
|
}
|
|
211
216
|
if (!this.isConnected) {
|
|
212
217
|
yield this.$connect;
|
|
213
218
|
}
|
|
219
|
+
if (this._error) {
|
|
220
|
+
throw this._error;
|
|
221
|
+
}
|
|
214
222
|
this._requests.set(jsonRpcMessage.id, {
|
|
215
223
|
stream,
|
|
216
224
|
start: Date.now()
|
|
@@ -272,11 +280,14 @@ var BaseClient = class {
|
|
|
272
280
|
}
|
|
273
281
|
return new StreamPromiseInput((stream) => __async(this, null, function* () {
|
|
274
282
|
if (this._error) {
|
|
275
|
-
this._reconnect();
|
|
283
|
+
this._reconnect(5);
|
|
276
284
|
}
|
|
277
285
|
if (!this.isConnected) {
|
|
278
286
|
yield this.$connect;
|
|
279
287
|
}
|
|
288
|
+
if (this._error) {
|
|
289
|
+
throw this._error;
|
|
290
|
+
}
|
|
280
291
|
let timeout = setTimeout(() => {
|
|
281
292
|
stream.push({
|
|
282
293
|
error: new StreamError("INPUT_STREAM_TIMEOUT", { streamId })
|
|
@@ -381,7 +392,7 @@ var BaseClient = class {
|
|
|
381
392
|
*
|
|
382
393
|
*/
|
|
383
394
|
authenticationCheck(input) {
|
|
384
|
-
return this._sendTransaction(APIFunctions.authenticationCheck, input);
|
|
395
|
+
return this._sendTransaction(APIFunctions.authenticationCheck, input != null ? input : {});
|
|
385
396
|
}
|
|
386
397
|
/**
|
|
387
398
|
*
|
|
@@ -456,7 +467,7 @@ var BaseClient = class {
|
|
|
456
467
|
*
|
|
457
468
|
*/
|
|
458
469
|
createTransferGroup(input) {
|
|
459
|
-
return this._sendTransaction(APIFunctions.createTransferGroup, input);
|
|
470
|
+
return this._sendTransaction(APIFunctions.createTransferGroup, input != null ? input : {});
|
|
460
471
|
}
|
|
461
472
|
/**
|
|
462
473
|
*
|
|
@@ -490,15 +501,48 @@ var BaseClient = class {
|
|
|
490
501
|
}
|
|
491
502
|
/**
|
|
492
503
|
*
|
|
493
|
-
* @param {
|
|
494
|
-
* @returns {StreamPromise<
|
|
504
|
+
* @param {ExportBalanceHistoryTxInput} input
|
|
505
|
+
* @returns {StreamPromise<ExportBalanceHistoryTxOutput>}
|
|
495
506
|
*
|
|
496
507
|
*/
|
|
497
|
-
|
|
498
|
-
return this._sendTransaction(
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
508
|
+
exportBalanceHistory(input) {
|
|
509
|
+
return this._sendTransaction(APIFunctions.exportBalanceHistory, input);
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
*
|
|
513
|
+
* @param {ExportTokenManyTxInput} input
|
|
514
|
+
* @returns {StreamPromise<ExportTokenManyTxOutput>}
|
|
515
|
+
*
|
|
516
|
+
*/
|
|
517
|
+
exportTokenMany(input) {
|
|
518
|
+
return this._sendTransaction(APIFunctions.exportTokenMany, input != null ? input : {});
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
*
|
|
522
|
+
* @param {ExportTransferGroupManyTxInput} input
|
|
523
|
+
* @returns {StreamPromise<ExportTransferGroupManyTxOutput>}
|
|
524
|
+
*
|
|
525
|
+
*/
|
|
526
|
+
exportTransferGroupMany(input) {
|
|
527
|
+
return this._sendTransaction(APIFunctions.exportTransferGroupMany, input != null ? input : {});
|
|
528
|
+
}
|
|
529
|
+
/**
|
|
530
|
+
*
|
|
531
|
+
* @param {ExportTransferManyTxInput} input
|
|
532
|
+
* @returns {StreamPromise<ExportTransferManyTxOutput>}
|
|
533
|
+
*
|
|
534
|
+
*/
|
|
535
|
+
exportTransferMany(input) {
|
|
536
|
+
return this._sendTransaction(APIFunctions.exportTransferMany, input != null ? input : {});
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
*
|
|
540
|
+
* @param {ExportWalletManyTxInput} input
|
|
541
|
+
* @returns {StreamPromise<ExportWalletManyTxOutput>}
|
|
542
|
+
*
|
|
543
|
+
*/
|
|
544
|
+
exportWalletMany(input) {
|
|
545
|
+
return this._sendTransaction(APIFunctions.exportWalletMany, input != null ? input : {});
|
|
502
546
|
}
|
|
503
547
|
/**
|
|
504
548
|
*
|
|
@@ -507,7 +551,7 @@ var BaseClient = class {
|
|
|
507
551
|
*
|
|
508
552
|
*/
|
|
509
553
|
findBalanceMany(input) {
|
|
510
|
-
return this._sendTransaction(APIFunctions.findBalanceMany, input);
|
|
554
|
+
return this._sendTransaction(APIFunctions.findBalanceMany, input != null ? input : {});
|
|
511
555
|
}
|
|
512
556
|
/**
|
|
513
557
|
*
|
|
@@ -518,7 +562,7 @@ var BaseClient = class {
|
|
|
518
562
|
findTokenMany(input) {
|
|
519
563
|
return this._sendTransaction(
|
|
520
564
|
APIFunctions.findTokenMany,
|
|
521
|
-
input
|
|
565
|
+
input != null ? input : {}
|
|
522
566
|
);
|
|
523
567
|
}
|
|
524
568
|
/**
|
|
@@ -528,7 +572,7 @@ var BaseClient = class {
|
|
|
528
572
|
*
|
|
529
573
|
*/
|
|
530
574
|
findTransferGroupMany(input) {
|
|
531
|
-
return this._sendTransaction(APIFunctions.findTransferGroupMany, input);
|
|
575
|
+
return this._sendTransaction(APIFunctions.findTransferGroupMany, input != null ? input : {});
|
|
532
576
|
}
|
|
533
577
|
/**
|
|
534
578
|
*
|
|
@@ -537,7 +581,7 @@ var BaseClient = class {
|
|
|
537
581
|
*
|
|
538
582
|
*/
|
|
539
583
|
findTransferMany(input) {
|
|
540
|
-
return this._sendTransaction(APIFunctions.findTransferMany, input);
|
|
584
|
+
return this._sendTransaction(APIFunctions.findTransferMany, input != null ? input : {});
|
|
541
585
|
}
|
|
542
586
|
/**
|
|
543
587
|
*
|
|
@@ -548,7 +592,7 @@ var BaseClient = class {
|
|
|
548
592
|
findWalletMany(input) {
|
|
549
593
|
return this._sendTransaction(
|
|
550
594
|
APIFunctions.findWalletMany,
|
|
551
|
-
input
|
|
595
|
+
input != null ? input : {}
|
|
552
596
|
);
|
|
553
597
|
}
|
|
554
598
|
/**
|
|
@@ -583,21 +627,15 @@ var BaseClient = class {
|
|
|
583
627
|
}
|
|
584
628
|
/**
|
|
585
629
|
*
|
|
586
|
-
* @param {
|
|
587
|
-
* @returns {StreamPromise<
|
|
630
|
+
* @param {GetExportTxInput} input
|
|
631
|
+
* @returns {StreamPromise<GetExportTxOutput>}
|
|
588
632
|
*
|
|
589
633
|
*/
|
|
590
|
-
|
|
591
|
-
return this._sendTransaction(
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
* @param {GetDatabaseImportProgressTxInput} input
|
|
596
|
-
* @returns {StreamPromise<GetDatabaseImportProgressTxOutput>}
|
|
597
|
-
*
|
|
598
|
-
*/
|
|
599
|
-
getDatabaseImportProgress(input) {
|
|
600
|
-
return this._sendTransaction(APIFunctions.getDatabaseImportProgress, input);
|
|
634
|
+
getExport(input) {
|
|
635
|
+
return this._sendTransaction(
|
|
636
|
+
APIFunctions.getExport,
|
|
637
|
+
input
|
|
638
|
+
);
|
|
601
639
|
}
|
|
602
640
|
/**
|
|
603
641
|
*
|
|
@@ -608,7 +646,7 @@ var BaseClient = class {
|
|
|
608
646
|
getFlags(input) {
|
|
609
647
|
return this._sendTransaction(
|
|
610
648
|
APIFunctions.getFlags,
|
|
611
|
-
input
|
|
649
|
+
input != null ? input : {}
|
|
612
650
|
);
|
|
613
651
|
}
|
|
614
652
|
/**
|
|
@@ -620,7 +658,7 @@ var BaseClient = class {
|
|
|
620
658
|
getStatistics(input) {
|
|
621
659
|
return this._sendTransaction(
|
|
622
660
|
APIFunctions.getStatistics,
|
|
623
|
-
input
|
|
661
|
+
input != null ? input : {}
|
|
624
662
|
);
|
|
625
663
|
}
|
|
626
664
|
/**
|
|
@@ -733,35 +771,14 @@ var BaseClient = class {
|
|
|
733
771
|
}
|
|
734
772
|
/**
|
|
735
773
|
*
|
|
736
|
-
* @param {
|
|
737
|
-
* @returns {StreamPromise<
|
|
738
|
-
*
|
|
739
|
-
*/
|
|
740
|
-
importDatabase(input) {
|
|
741
|
-
return this._sendTransaction(
|
|
742
|
-
APIFunctions.importDatabase,
|
|
743
|
-
input
|
|
744
|
-
);
|
|
745
|
-
}
|
|
746
|
-
/**
|
|
747
|
-
*
|
|
748
|
-
* @param {ListDatabaseExportsTxInput} input
|
|
749
|
-
* @returns {StreamPromise<ListDatabaseExportsTxOutput>}
|
|
774
|
+
* @param {ListExportManyTxInput} input
|
|
775
|
+
* @returns {StreamPromise<ListExportManyTxOutput>}
|
|
750
776
|
*
|
|
751
777
|
*/
|
|
752
|
-
|
|
753
|
-
return this._sendTransaction(APIFunctions.listDatabaseExports, input);
|
|
754
|
-
}
|
|
755
|
-
/**
|
|
756
|
-
*
|
|
757
|
-
* @param {QueryTxInput} input
|
|
758
|
-
* @returns {StreamPromise<QueryTxOutput>}
|
|
759
|
-
*
|
|
760
|
-
*/
|
|
761
|
-
query(input) {
|
|
778
|
+
listExportMany(input) {
|
|
762
779
|
return this._sendTransaction(
|
|
763
|
-
APIFunctions.
|
|
764
|
-
input
|
|
780
|
+
APIFunctions.listExportMany,
|
|
781
|
+
input != null ? input : {}
|
|
765
782
|
);
|
|
766
783
|
}
|
|
767
784
|
/**
|
|
@@ -773,7 +790,7 @@ var BaseClient = class {
|
|
|
773
790
|
queryLogs(input) {
|
|
774
791
|
return this._sendTransaction(
|
|
775
792
|
APIFunctions.queryLogs,
|
|
776
|
-
input
|
|
793
|
+
input != null ? input : {}
|
|
777
794
|
);
|
|
778
795
|
}
|
|
779
796
|
/**
|
|
@@ -785,7 +802,7 @@ var BaseClient = class {
|
|
|
785
802
|
resetDatabase(input) {
|
|
786
803
|
return this._sendTransaction(
|
|
787
804
|
APIFunctions.resetDatabase,
|
|
788
|
-
input
|
|
805
|
+
input != null ? input : {}
|
|
789
806
|
);
|
|
790
807
|
}
|
|
791
808
|
/**
|
|
@@ -843,7 +860,7 @@ var BaseClient = class {
|
|
|
843
860
|
*
|
|
844
861
|
*/
|
|
845
862
|
startTransaction(input) {
|
|
846
|
-
return this._sendTransaction(APIFunctions.startTransaction, input);
|
|
863
|
+
return this._sendTransaction(APIFunctions.startTransaction, input != null ? input : {});
|
|
847
864
|
}
|
|
848
865
|
/**
|
|
849
866
|
*
|