wapi-client 0.9.5 → 0.10.0
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 +69 -60
- package/dist/api/base-client.browser.js +69 -60
- package/dist/api/base-client.cjs +69 -60
- package/dist/api/base-client.d.ts +67 -58
- package/dist/api/base-client.js +70 -61
- package/dist/api/connection/connection.enums.d.ts +0 -12
- package/dist/api/http-client.d.ts +1 -1
- package/dist/api/ws-client.cjs +1 -1
- package/dist/api/ws-client.d.ts +1 -1
- package/dist/api/ws-client.js +1 -1
- 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/lib/errors.browser.cjs +44 -22
- package/dist/lib/errors.browser.js +44 -22
- package/dist/lib/errors.cjs +44 -22
- package/dist/lib/errors.d.ts +6 -6
- package/dist/lib/errors.js +44 -22
- 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 +2260 -1333
- 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
package/dist/fns/index.js
CHANGED
|
@@ -12,6 +12,11 @@ import { createTransferGroup } from "./create-transfer-group/create-transfer-gro
|
|
|
12
12
|
import { createTransfers } from "./create-transfers/create-transfers";
|
|
13
13
|
import { createWallet } from "./create-wallet/create-wallet";
|
|
14
14
|
import { createWithdrawal } from "./create-withdrawal/create-withdrawal";
|
|
15
|
+
import { exportBalanceHistory } from "./export-balance-history/export-balance-history";
|
|
16
|
+
import { exportTokens } from "./export-tokens/export-tokens";
|
|
17
|
+
import { exportTransferGroups } from "./export-transfer-groups/export-transfer-groups";
|
|
18
|
+
import { exportTransfers } from "./export-transfers/export-transfers";
|
|
19
|
+
import { exportWallets } from "./export-wallets/export-wallets";
|
|
15
20
|
import { findBalances } from "./find-balances/find-balances";
|
|
16
21
|
import { findTokens } from "./find-tokens/find-tokens";
|
|
17
22
|
import { findTransferGroups } from "./find-transfer-groups/find-transfer-groups";
|
|
@@ -19,6 +24,7 @@ import { findTransfers } from "./find-transfers/find-transfers";
|
|
|
19
24
|
import { findWallets } from "./find-wallets/find-wallets";
|
|
20
25
|
import { getBalance } from "./get-balance/get-balance";
|
|
21
26
|
import { getBalanceHistory } from "./get-balance-history/get-balance-history";
|
|
27
|
+
import { getExport } from "./get-export/get-export";
|
|
22
28
|
import { getFlags } from "./get-flags/get-flags";
|
|
23
29
|
import { getStatistics } from "./get-statistics/get-statistics";
|
|
24
30
|
import { getToken } from "./get-token/get-token";
|
|
@@ -27,6 +33,7 @@ import { getTransferGroup } from "./get-transfer-group/get-transfer-group";
|
|
|
27
33
|
import { getWallet } from "./get-wallet/get-wallet";
|
|
28
34
|
import { healthcheck } from "./healthcheck/healthcheck";
|
|
29
35
|
import { importData } from "./import-data/import-data";
|
|
36
|
+
import { listExports } from "./list-exports/list-exports";
|
|
30
37
|
import { reverseTransfer } from "./reverse-transfer/reverse-transfer";
|
|
31
38
|
import { reverseTransferGroup } from "./reverse-transfer-group/reverse-transfer-group";
|
|
32
39
|
import { reverseTransfers } from "./reverse-transfers/reverse-transfers";
|
|
@@ -59,6 +66,16 @@ import CreateWalletFnInputSchema from "./create-wallet/create-wallet.schema.inpu
|
|
|
59
66
|
import CreateWalletFnOutputSchema from "./create-wallet/create-wallet.schema.output.json";
|
|
60
67
|
import CreateWithdrawalFnInputSchema from "./create-withdrawal/create-withdrawal.schema.input.json";
|
|
61
68
|
import CreateWithdrawalFnOutputSchema from "./create-withdrawal/create-withdrawal.schema.output.json";
|
|
69
|
+
import ExportBalanceHistoryFnInputSchema from "./export-balance-history/export-balance-history.schema.input.json";
|
|
70
|
+
import ExportBalanceHistoryFnOutputSchema from "./export-balance-history/export-balance-history.schema.output.json";
|
|
71
|
+
import ExportTokensFnInputSchema from "./export-tokens/export-tokens.schema.input.json";
|
|
72
|
+
import ExportTokensFnOutputSchema from "./export-tokens/export-tokens.schema.output.json";
|
|
73
|
+
import ExportTransferGroupsFnInputSchema from "./export-transfer-groups/export-transfer-groups.schema.input.json";
|
|
74
|
+
import ExportTransferGroupsFnOutputSchema from "./export-transfer-groups/export-transfer-groups.schema.output.json";
|
|
75
|
+
import ExportTransfersFnInputSchema from "./export-transfers/export-transfers.schema.input.json";
|
|
76
|
+
import ExportTransfersFnOutputSchema from "./export-transfers/export-transfers.schema.output.json";
|
|
77
|
+
import ExportWalletsFnInputSchema from "./export-wallets/export-wallets.schema.input.json";
|
|
78
|
+
import ExportWalletsFnOutputSchema from "./export-wallets/export-wallets.schema.output.json";
|
|
62
79
|
import FindBalancesFnInputSchema from "./find-balances/find-balances.schema.input.json";
|
|
63
80
|
import FindBalancesFnOutputSchema from "./find-balances/find-balances.schema.output.json";
|
|
64
81
|
import FindTokensFnInputSchema from "./find-tokens/find-tokens.schema.input.json";
|
|
@@ -73,6 +90,8 @@ import GetBalanceFnInputSchema from "./get-balance/get-balance.schema.input.json
|
|
|
73
90
|
import GetBalanceFnOutputSchema from "./get-balance/get-balance.schema.output.json";
|
|
74
91
|
import GetBalanceHistoryFnInputSchema from "./get-balance-history/get-balance-history.schema.input.json";
|
|
75
92
|
import GetBalanceHistoryFnOutputSchema from "./get-balance-history/get-balance-history.schema.output.json";
|
|
93
|
+
import GetExportFnInputSchema from "./get-export/get-export.schema.input.json";
|
|
94
|
+
import GetExportFnOutputSchema from "./get-export/get-export.schema.output.json";
|
|
76
95
|
import GetFlagsFnInputSchema from "./get-flags/get-flags.schema.input.json";
|
|
77
96
|
import GetFlagsFnOutputSchema from "./get-flags/get-flags.schema.output.json";
|
|
78
97
|
import GetStatisticsFnInputSchema from "./get-statistics/get-statistics.schema.input.json";
|
|
@@ -89,6 +108,8 @@ import HealthcheckFnInputSchema from "./healthcheck/healthcheck.schema.input.jso
|
|
|
89
108
|
import HealthcheckFnOutputSchema from "./healthcheck/healthcheck.schema.output.json";
|
|
90
109
|
import ImportDataFnInputSchema from "./import-data/import-data.schema.input.json";
|
|
91
110
|
import ImportDataFnOutputSchema from "./import-data/import-data.schema.output.json";
|
|
111
|
+
import ListExportsFnInputSchema from "./list-exports/list-exports.schema.input.json";
|
|
112
|
+
import ListExportsFnOutputSchema from "./list-exports/list-exports.schema.output.json";
|
|
92
113
|
import ReverseTransferFnInputSchema from "./reverse-transfer/reverse-transfer.schema.input.json";
|
|
93
114
|
import ReverseTransferFnOutputSchema from "./reverse-transfer/reverse-transfer.schema.output.json";
|
|
94
115
|
import ReverseTransferGroupFnInputSchema from "./reverse-transfer-group/reverse-transfer-group.schema.input.json";
|
|
@@ -126,6 +147,11 @@ var ClientValidators = {
|
|
|
126
147
|
createTransfers: getValidator(SchemaNames.CreateTransfersFnInput),
|
|
127
148
|
createWallet: getValidator(SchemaNames.CreateWalletFnInput),
|
|
128
149
|
createWithdrawal: getValidator(SchemaNames.CreateWithdrawalFnInput),
|
|
150
|
+
exportBalanceHistory: getValidator(SchemaNames.ExportBalanceHistoryFnInput),
|
|
151
|
+
exportTokens: getValidator(SchemaNames.ExportTokensFnInput),
|
|
152
|
+
exportTransferGroups: getValidator(SchemaNames.ExportTransferGroupsFnInput),
|
|
153
|
+
exportTransfers: getValidator(SchemaNames.ExportTransfersFnInput),
|
|
154
|
+
exportWallets: getValidator(SchemaNames.ExportWalletsFnInput),
|
|
129
155
|
findBalances: getValidator(SchemaNames.FindBalancesFnInput),
|
|
130
156
|
findTokens: getValidator(SchemaNames.FindTokensFnInput),
|
|
131
157
|
findTransferGroups: getValidator(SchemaNames.FindTransferGroupsFnInput),
|
|
@@ -133,6 +159,7 @@ var ClientValidators = {
|
|
|
133
159
|
findWallets: getValidator(SchemaNames.FindWalletsFnInput),
|
|
134
160
|
getBalance: getValidator(SchemaNames.GetBalanceFnInput),
|
|
135
161
|
getBalanceHistory: getValidator(SchemaNames.GetBalanceHistoryFnInput),
|
|
162
|
+
getExport: getValidator(SchemaNames.GetExportFnInput),
|
|
136
163
|
getFlags: getValidator(SchemaNames.GetFlagsFnInput),
|
|
137
164
|
getStatistics: getValidator(SchemaNames.GetStatisticsFnInput),
|
|
138
165
|
getToken: getValidator(SchemaNames.GetTokenFnInput),
|
|
@@ -141,6 +168,7 @@ var ClientValidators = {
|
|
|
141
168
|
getWallet: getValidator(SchemaNames.GetWalletFnInput),
|
|
142
169
|
healthcheck: getValidator(SchemaNames.HealthcheckFnInput),
|
|
143
170
|
importData: getValidator(SchemaNames.ImportDataFnInput),
|
|
171
|
+
listExports: getValidator(SchemaNames.ListExportsFnInput),
|
|
144
172
|
reverseTransfer: getValidator(SchemaNames.ReverseTransferFnInput),
|
|
145
173
|
reverseTransferGroup: getValidator(SchemaNames.ReverseTransferGroupFnInput),
|
|
146
174
|
reverseTransfers: getValidator(SchemaNames.ReverseTransfersFnInput),
|
|
@@ -170,6 +198,11 @@ var ClientFunctions = {
|
|
|
170
198
|
createTransfers,
|
|
171
199
|
createWallet,
|
|
172
200
|
createWithdrawal,
|
|
201
|
+
exportBalanceHistory,
|
|
202
|
+
exportTokens,
|
|
203
|
+
exportTransferGroups,
|
|
204
|
+
exportTransfers,
|
|
205
|
+
exportWallets,
|
|
173
206
|
findBalances,
|
|
174
207
|
findTokens,
|
|
175
208
|
findTransferGroups,
|
|
@@ -177,6 +210,7 @@ var ClientFunctions = {
|
|
|
177
210
|
findWallets,
|
|
178
211
|
getBalance,
|
|
179
212
|
getBalanceHistory,
|
|
213
|
+
getExport,
|
|
180
214
|
getFlags,
|
|
181
215
|
getStatistics,
|
|
182
216
|
getToken,
|
|
@@ -185,6 +219,7 @@ var ClientFunctions = {
|
|
|
185
219
|
getWallet,
|
|
186
220
|
healthcheck,
|
|
187
221
|
importData,
|
|
222
|
+
listExports,
|
|
188
223
|
reverseTransfer,
|
|
189
224
|
reverseTransferGroup,
|
|
190
225
|
reverseTransfers,
|
|
@@ -209,6 +244,11 @@ var ClientFunctionsEnum = /* @__PURE__ */ ((ClientFunctionsEnum2) => {
|
|
|
209
244
|
ClientFunctionsEnum2["createTransfers"] = "createTransfers";
|
|
210
245
|
ClientFunctionsEnum2["createWallet"] = "createWallet";
|
|
211
246
|
ClientFunctionsEnum2["createWithdrawal"] = "createWithdrawal";
|
|
247
|
+
ClientFunctionsEnum2["exportBalanceHistory"] = "exportBalanceHistory";
|
|
248
|
+
ClientFunctionsEnum2["exportTokens"] = "exportTokens";
|
|
249
|
+
ClientFunctionsEnum2["exportTransferGroups"] = "exportTransferGroups";
|
|
250
|
+
ClientFunctionsEnum2["exportTransfers"] = "exportTransfers";
|
|
251
|
+
ClientFunctionsEnum2["exportWallets"] = "exportWallets";
|
|
212
252
|
ClientFunctionsEnum2["findBalances"] = "findBalances";
|
|
213
253
|
ClientFunctionsEnum2["findTokens"] = "findTokens";
|
|
214
254
|
ClientFunctionsEnum2["findTransferGroups"] = "findTransferGroups";
|
|
@@ -216,6 +256,7 @@ var ClientFunctionsEnum = /* @__PURE__ */ ((ClientFunctionsEnum2) => {
|
|
|
216
256
|
ClientFunctionsEnum2["findWallets"] = "findWallets";
|
|
217
257
|
ClientFunctionsEnum2["getBalance"] = "getBalance";
|
|
218
258
|
ClientFunctionsEnum2["getBalanceHistory"] = "getBalanceHistory";
|
|
259
|
+
ClientFunctionsEnum2["getExport"] = "getExport";
|
|
219
260
|
ClientFunctionsEnum2["getFlags"] = "getFlags";
|
|
220
261
|
ClientFunctionsEnum2["getStatistics"] = "getStatistics";
|
|
221
262
|
ClientFunctionsEnum2["getToken"] = "getToken";
|
|
@@ -224,6 +265,7 @@ var ClientFunctionsEnum = /* @__PURE__ */ ((ClientFunctionsEnum2) => {
|
|
|
224
265
|
ClientFunctionsEnum2["getWallet"] = "getWallet";
|
|
225
266
|
ClientFunctionsEnum2["healthcheck"] = "healthcheck";
|
|
226
267
|
ClientFunctionsEnum2["importData"] = "importData";
|
|
268
|
+
ClientFunctionsEnum2["listExports"] = "listExports";
|
|
227
269
|
ClientFunctionsEnum2["reverseTransfer"] = "reverseTransfer";
|
|
228
270
|
ClientFunctionsEnum2["reverseTransferGroup"] = "reverseTransferGroup";
|
|
229
271
|
ClientFunctionsEnum2["reverseTransfers"] = "reverseTransfers";
|
|
@@ -237,6 +279,8 @@ var ClientFunctionsEnum = /* @__PURE__ */ ((ClientFunctionsEnum2) => {
|
|
|
237
279
|
return ClientFunctionsEnum2;
|
|
238
280
|
})(ClientFunctionsEnum || {});
|
|
239
281
|
var ClientQueryBuilderFunctionsEnum = /* @__PURE__ */ ((ClientQueryBuilderFunctionsEnum2) => {
|
|
282
|
+
ClientQueryBuilderFunctionsEnum2["findTokens"] = "findTokens";
|
|
283
|
+
ClientQueryBuilderFunctionsEnum2["findTransferGroups"] = "findTransferGroups";
|
|
240
284
|
ClientQueryBuilderFunctionsEnum2["findTransfers"] = "findTransfers";
|
|
241
285
|
ClientQueryBuilderFunctionsEnum2["findWallets"] = "findWallets";
|
|
242
286
|
return ClientQueryBuilderFunctionsEnum2;
|
|
@@ -268,6 +312,16 @@ export {
|
|
|
268
312
|
CreateWalletFnOutputSchema,
|
|
269
313
|
CreateWithdrawalFnInputSchema,
|
|
270
314
|
CreateWithdrawalFnOutputSchema,
|
|
315
|
+
ExportBalanceHistoryFnInputSchema,
|
|
316
|
+
ExportBalanceHistoryFnOutputSchema,
|
|
317
|
+
ExportTokensFnInputSchema,
|
|
318
|
+
ExportTokensFnOutputSchema,
|
|
319
|
+
ExportTransferGroupsFnInputSchema,
|
|
320
|
+
ExportTransferGroupsFnOutputSchema,
|
|
321
|
+
ExportTransfersFnInputSchema,
|
|
322
|
+
ExportTransfersFnOutputSchema,
|
|
323
|
+
ExportWalletsFnInputSchema,
|
|
324
|
+
ExportWalletsFnOutputSchema,
|
|
271
325
|
FindBalancesFnInputSchema,
|
|
272
326
|
FindBalancesFnOutputSchema,
|
|
273
327
|
FindTokensFnInputSchema,
|
|
@@ -283,6 +337,8 @@ export {
|
|
|
283
337
|
GetBalanceFnOutputSchema,
|
|
284
338
|
GetBalanceHistoryFnInputSchema,
|
|
285
339
|
GetBalanceHistoryFnOutputSchema,
|
|
340
|
+
GetExportFnInputSchema,
|
|
341
|
+
GetExportFnOutputSchema,
|
|
286
342
|
GetFlagsFnInputSchema,
|
|
287
343
|
GetFlagsFnOutputSchema,
|
|
288
344
|
GetStatisticsFnInputSchema,
|
|
@@ -299,6 +355,8 @@ export {
|
|
|
299
355
|
HealthcheckFnOutputSchema,
|
|
300
356
|
ImportDataFnInputSchema,
|
|
301
357
|
ImportDataFnOutputSchema,
|
|
358
|
+
ListExportsFnInputSchema,
|
|
359
|
+
ListExportsFnOutputSchema,
|
|
302
360
|
ReverseTransferFnInputSchema,
|
|
303
361
|
ReverseTransferFnOutputSchema,
|
|
304
362
|
ReverseTransferGroupFnInputSchema,
|
|
@@ -330,6 +388,11 @@ export {
|
|
|
330
388
|
createTransfers,
|
|
331
389
|
createWallet,
|
|
332
390
|
createWithdrawal,
|
|
391
|
+
exportBalanceHistory,
|
|
392
|
+
exportTokens,
|
|
393
|
+
exportTransferGroups,
|
|
394
|
+
exportTransfers,
|
|
395
|
+
exportWallets,
|
|
333
396
|
findBalances,
|
|
334
397
|
findTokens,
|
|
335
398
|
findTransferGroups,
|
|
@@ -337,6 +400,7 @@ export {
|
|
|
337
400
|
findWallets,
|
|
338
401
|
getBalance,
|
|
339
402
|
getBalanceHistory,
|
|
403
|
+
getExport,
|
|
340
404
|
getFlags,
|
|
341
405
|
getStatistics,
|
|
342
406
|
getToken,
|
|
@@ -345,6 +409,7 @@ export {
|
|
|
345
409
|
getWallet,
|
|
346
410
|
healthcheck,
|
|
347
411
|
importData,
|
|
412
|
+
listExports,
|
|
348
413
|
reverseTransfer,
|
|
349
414
|
reverseTransferGroup,
|
|
350
415
|
reverseTransfers,
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/fns/list-exports/list-exports.ts
|
|
21
|
+
var list_exports_exports = {};
|
|
22
|
+
__export(list_exports_exports, {
|
|
23
|
+
listExports: () => listExports
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(list_exports_exports);
|
|
26
|
+
var import_utils = require('../../lib/utils.cjs');
|
|
27
|
+
var import_validator = require('../../lib/validator.cjs');
|
|
28
|
+
var validate = (0, import_validator.getValidator)(import_validator.SchemaNames.ListExportsFnInput);
|
|
29
|
+
function listExports(options, input, fnOptions) {
|
|
30
|
+
const { client } = options;
|
|
31
|
+
const { inputCopy, error } = (0, import_utils.validateClientFnInput)({
|
|
32
|
+
input,
|
|
33
|
+
options: fnOptions,
|
|
34
|
+
validate
|
|
35
|
+
});
|
|
36
|
+
if (error) {
|
|
37
|
+
throw error;
|
|
38
|
+
}
|
|
39
|
+
const date = (() => {
|
|
40
|
+
if (typeof inputCopy.date === "string") {
|
|
41
|
+
return inputCopy.date;
|
|
42
|
+
}
|
|
43
|
+
return void 0;
|
|
44
|
+
})();
|
|
45
|
+
return client.api.listExportMany({
|
|
46
|
+
export: {
|
|
47
|
+
date
|
|
48
|
+
},
|
|
49
|
+
options: fnOptions
|
|
50
|
+
});
|
|
51
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// src/fns/list-exports/list-exports.ts
|
|
2
|
+
import { validateClientFnInput } from "../../lib/utils.browser.js";
|
|
3
|
+
import { getValidator, SchemaNames } from "../../lib/validator.browser.js";
|
|
4
|
+
var validate = getValidator(SchemaNames.ListExportsFnInput);
|
|
5
|
+
function listExports(options, input, fnOptions) {
|
|
6
|
+
const { client } = options;
|
|
7
|
+
const { inputCopy, error } = validateClientFnInput({
|
|
8
|
+
input,
|
|
9
|
+
options: fnOptions,
|
|
10
|
+
validate
|
|
11
|
+
});
|
|
12
|
+
if (error) {
|
|
13
|
+
throw error;
|
|
14
|
+
}
|
|
15
|
+
const date = (() => {
|
|
16
|
+
if (typeof inputCopy.date === "string") {
|
|
17
|
+
return inputCopy.date;
|
|
18
|
+
}
|
|
19
|
+
return void 0;
|
|
20
|
+
})();
|
|
21
|
+
return client.api.listExportMany({
|
|
22
|
+
export: {
|
|
23
|
+
date
|
|
24
|
+
},
|
|
25
|
+
options: fnOptions
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
listExports
|
|
30
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/fns/list-exports/list-exports.ts
|
|
21
|
+
var list_exports_exports = {};
|
|
22
|
+
__export(list_exports_exports, {
|
|
23
|
+
listExports: () => listExports
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(list_exports_exports);
|
|
26
|
+
var import_utils = require('../../lib/utils.cjs');
|
|
27
|
+
var import_validator = require('../../lib/validator.cjs');
|
|
28
|
+
var validate = (0, import_validator.getValidator)(import_validator.SchemaNames.ListExportsFnInput);
|
|
29
|
+
function listExports(options, input, fnOptions) {
|
|
30
|
+
const { client } = options;
|
|
31
|
+
const { inputCopy, error } = (0, import_utils.validateClientFnInput)({
|
|
32
|
+
input,
|
|
33
|
+
options: fnOptions,
|
|
34
|
+
validate
|
|
35
|
+
});
|
|
36
|
+
if (error) {
|
|
37
|
+
throw error;
|
|
38
|
+
}
|
|
39
|
+
const date = (() => {
|
|
40
|
+
if (typeof inputCopy.date === "string") {
|
|
41
|
+
return inputCopy.date;
|
|
42
|
+
}
|
|
43
|
+
return void 0;
|
|
44
|
+
})();
|
|
45
|
+
return client.api.listExportMany({
|
|
46
|
+
export: {
|
|
47
|
+
date
|
|
48
|
+
},
|
|
49
|
+
options: fnOptions
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
53
|
+
0 && (module.exports = {
|
|
54
|
+
listExports
|
|
55
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StreamPromise } from '../../lib/stream-promise';
|
|
2
|
+
import { ClientFunctionOptions } from '../fn-consts.enums';
|
|
3
|
+
import { ListExportsFnInput, ListExportsFnOptions, ListExportsFnOutput } from './list-exports.enums';
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*
|
|
7
|
+
* Search for Balances using either a simple filter or queryBuilder
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
export declare function listExports(options: ClientFunctionOptions, input: ListExportsFnInput, fnOptions: ListExportsFnOptions): StreamPromise<ListExportsFnOutput>;
|
|
@@ -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/fns/list-exports/list-exports.enums.ts
|
|
16
|
+
var list_exports_enums_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(list_exports_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/fns/list-exports/list-exports.enums.ts
|
|
16
|
+
var list_exports_enums_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(list_exports_enums_exports);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ListExportManyTxOutput } from '../../txs/list-export-many/list-export-many.enums';
|
|
2
|
+
export type ListExportsFnInputStringFields = 'date';
|
|
3
|
+
export interface ListExportsFnOptions {
|
|
4
|
+
[k: string]: unknown;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Input for listExports
|
|
8
|
+
*
|
|
9
|
+
* @category Input
|
|
10
|
+
*/
|
|
11
|
+
export interface ListExportsFnInput {
|
|
12
|
+
/**
|
|
13
|
+
* Date of the export
|
|
14
|
+
*/
|
|
15
|
+
date?: string;
|
|
16
|
+
options?: ListExportsFnOptions;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Output of listExports
|
|
20
|
+
*
|
|
21
|
+
* @category Output
|
|
22
|
+
*/
|
|
23
|
+
export interface ListExportsFnOutput extends ListExportManyTxOutput {
|
|
24
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/fns/list-exports/list-exports.guards.ts
|
|
20
|
+
var list_exports_guards_exports = {};
|
|
21
|
+
__export(list_exports_guards_exports, {
|
|
22
|
+
isListExportsFnInput: () => isListExportsFnInput,
|
|
23
|
+
isListExportsFnOutput: () => isListExportsFnOutput
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(list_exports_guards_exports);
|
|
26
|
+
var import_validator = require('../../lib/validator.cjs');
|
|
27
|
+
var inputValidator = (0, import_validator.getValidator)(import_validator.SchemaNames.ListExportsFnInput);
|
|
28
|
+
function isListExportsFnInput(input) {
|
|
29
|
+
const { error } = inputValidator(input);
|
|
30
|
+
return error === void 0;
|
|
31
|
+
}
|
|
32
|
+
var outputValidator = (0, import_validator.getValidator)(import_validator.SchemaNames.ListExportsFnOutput);
|
|
33
|
+
function isListExportsFnOutput(input) {
|
|
34
|
+
const { error } = outputValidator(input);
|
|
35
|
+
return error === void 0;
|
|
36
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// src/fns/list-exports/list-exports.guards.ts
|
|
2
|
+
import { getValidator, SchemaNames } from "../../lib/validator.browser.js";
|
|
3
|
+
var inputValidator = getValidator(SchemaNames.ListExportsFnInput);
|
|
4
|
+
function isListExportsFnInput(input) {
|
|
5
|
+
const { error } = inputValidator(input);
|
|
6
|
+
return error === void 0;
|
|
7
|
+
}
|
|
8
|
+
var outputValidator = getValidator(SchemaNames.ListExportsFnOutput);
|
|
9
|
+
function isListExportsFnOutput(input) {
|
|
10
|
+
const { error } = outputValidator(input);
|
|
11
|
+
return error === void 0;
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
isListExportsFnInput,
|
|
15
|
+
isListExportsFnOutput
|
|
16
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/fns/list-exports/list-exports.guards.ts
|
|
20
|
+
var list_exports_guards_exports = {};
|
|
21
|
+
__export(list_exports_guards_exports, {
|
|
22
|
+
isListExportsFnInput: () => isListExportsFnInput,
|
|
23
|
+
isListExportsFnOutput: () => isListExportsFnOutput
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(list_exports_guards_exports);
|
|
26
|
+
var import_validator = require('../../lib/validator.cjs');
|
|
27
|
+
var inputValidator = (0, import_validator.getValidator)(import_validator.SchemaNames.ListExportsFnInput);
|
|
28
|
+
function isListExportsFnInput(input) {
|
|
29
|
+
const { error } = inputValidator(input);
|
|
30
|
+
return error === void 0;
|
|
31
|
+
}
|
|
32
|
+
var outputValidator = (0, import_validator.getValidator)(import_validator.SchemaNames.ListExportsFnOutput);
|
|
33
|
+
function isListExportsFnOutput(input) {
|
|
34
|
+
const { error } = outputValidator(input);
|
|
35
|
+
return error === void 0;
|
|
36
|
+
}
|
|
37
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
+
0 && (module.exports = {
|
|
39
|
+
isListExportsFnInput,
|
|
40
|
+
isListExportsFnOutput
|
|
41
|
+
});
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ListExportsFnInput } from './list-exports.enums';
|
|
2
|
+
export declare function isListExportsFnInput(input: unknown): input is ListExportsFnInput;
|
|
3
|
+
import { ListExportsFnOutput } from './list-exports.enums';
|
|
4
|
+
export declare function isListExportsFnOutput(input: unknown): input is ListExportsFnOutput;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// src/fns/list-exports/list-exports.guards.ts
|
|
2
|
+
import { getValidator, SchemaNames } from "../../lib/validator";
|
|
3
|
+
var inputValidator = getValidator(SchemaNames.ListExportsFnInput);
|
|
4
|
+
function isListExportsFnInput(input) {
|
|
5
|
+
const { error } = inputValidator(input);
|
|
6
|
+
return error === void 0;
|
|
7
|
+
}
|
|
8
|
+
var outputValidator = getValidator(SchemaNames.ListExportsFnOutput);
|
|
9
|
+
function isListExportsFnOutput(input) {
|
|
10
|
+
const { error } = outputValidator(input);
|
|
11
|
+
return error === void 0;
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
isListExportsFnInput,
|
|
15
|
+
isListExportsFnOutput
|
|
16
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// src/fns/list-exports/list-exports.ts
|
|
2
|
+
import { validateClientFnInput } from "../../lib/utils";
|
|
3
|
+
import { getValidator, SchemaNames } from "../../lib/validator";
|
|
4
|
+
var validate = getValidator(SchemaNames.ListExportsFnInput);
|
|
5
|
+
function listExports(options, input, fnOptions) {
|
|
6
|
+
const { client } = options;
|
|
7
|
+
const { inputCopy, error } = validateClientFnInput({
|
|
8
|
+
input,
|
|
9
|
+
options: fnOptions,
|
|
10
|
+
validate
|
|
11
|
+
});
|
|
12
|
+
if (error) {
|
|
13
|
+
throw error;
|
|
14
|
+
}
|
|
15
|
+
const date = (() => {
|
|
16
|
+
if (typeof inputCopy.date === "string") {
|
|
17
|
+
return inputCopy.date;
|
|
18
|
+
}
|
|
19
|
+
return void 0;
|
|
20
|
+
})();
|
|
21
|
+
return client.api.listExportMany({
|
|
22
|
+
export: {
|
|
23
|
+
date
|
|
24
|
+
},
|
|
25
|
+
options: fnOptions
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
listExports
|
|
30
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "ListExportsFnInput",
|
|
4
|
+
"title": "ListExportsFnInput",
|
|
5
|
+
"description": "Input for listExports",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"date": {
|
|
9
|
+
"description": "Date of the export",
|
|
10
|
+
"type": ["string"]
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"$ref": "#/definitions/list_exports_fn_options"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"definitions": {
|
|
17
|
+
"list_exports_fn_options": {
|
|
18
|
+
"$ref": "/txs/list-export-many/list-export-many.schema.input.json#/definitions/list_export_many_tx_options"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"additionalProperties": false
|
|
22
|
+
}
|