increase 0.1.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/.eslintrc.js +10 -0
- package/.prettierrc +6 -0
- package/.stats.yml +1 -0
- package/LICENSE +201 -0
- package/README.md +211 -0
- package/api.md +477 -0
- package/bin/check-test-server +50 -0
- package/build +12 -0
- package/check-version.ts +15 -0
- package/core.ts +908 -0
- package/dist/cjs/check-version.d.ts +1 -0
- package/dist/cjs/check-version.js +21 -0
- package/dist/cjs/check-version.js.map +1 -0
- package/dist/cjs/core.d.ts +262 -0
- package/dist/cjs/core.js +978 -0
- package/dist/cjs/core.js.map +1 -0
- package/dist/cjs/fetch-polyfill.d.ts +5 -0
- package/dist/cjs/fetch-polyfill.js +55 -0
- package/dist/cjs/fetch-polyfill.js.map +1 -0
- package/dist/cjs/index.d.ts +201 -0
- package/dist/cjs/index.js +180 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/pagination.d.ts +28 -0
- package/dist/cjs/pagination.js +30 -0
- package/dist/cjs/pagination.js.map +1 -0
- package/dist/cjs/resource.d.ts +11 -0
- package/dist/cjs/resource.js +17 -0
- package/dist/cjs/resource.js.map +1 -0
- package/dist/cjs/resources/account-numbers.d.ts +103 -0
- package/dist/cjs/resources/account-numbers.js +37 -0
- package/dist/cjs/resources/account-numbers.js.map +1 -0
- package/dist/cjs/resources/account-statements.d.ts +99 -0
- package/dist/cjs/resources/account-statements.js +25 -0
- package/dist/cjs/resources/account-statements.js.map +1 -0
- package/dist/cjs/resources/account-transfers.d.ts +189 -0
- package/dist/cjs/resources/account-transfers.js +43 -0
- package/dist/cjs/resources/account-transfers.js.map +1 -0
- package/dist/cjs/resources/accounts.d.ts +133 -0
- package/dist/cjs/resources/accounts.js +43 -0
- package/dist/cjs/resources/accounts.js.map +1 -0
- package/dist/cjs/resources/ach-prenotifications.d.ts +188 -0
- package/dist/cjs/resources/ach-prenotifications.js +35 -0
- package/dist/cjs/resources/ach-prenotifications.js.map +1 -0
- package/dist/cjs/resources/ach-transfers.d.ts +375 -0
- package/dist/cjs/resources/ach-transfers.js +43 -0
- package/dist/cjs/resources/ach-transfers.js.map +1 -0
- package/dist/cjs/resources/card-disputes.d.ts +143 -0
- package/dist/cjs/resources/card-disputes.js +31 -0
- package/dist/cjs/resources/card-disputes.js.map +1 -0
- package/dist/cjs/resources/card-profiles.d.ts +183 -0
- package/dist/cjs/resources/card-profiles.js +31 -0
- package/dist/cjs/resources/card-profiles.js.map +1 -0
- package/dist/cjs/resources/cards.d.ts +316 -0
- package/dist/cjs/resources/cards.js +43 -0
- package/dist/cjs/resources/cards.js.map +1 -0
- package/dist/cjs/resources/check-deposits.d.ts +241 -0
- package/dist/cjs/resources/check-deposits.js +31 -0
- package/dist/cjs/resources/check-deposits.js.map +1 -0
- package/dist/cjs/resources/check-transfers.d.ts +331 -0
- package/dist/cjs/resources/check-transfers.js +49 -0
- package/dist/cjs/resources/check-transfers.js.map +1 -0
- package/dist/cjs/resources/declined-transactions.d.ts +424 -0
- package/dist/cjs/resources/declined-transactions.js +29 -0
- package/dist/cjs/resources/declined-transactions.js.map +1 -0
- package/dist/cjs/resources/digital-wallet-tokens.d.ts +85 -0
- package/dist/cjs/resources/digital-wallet-tokens.js +29 -0
- package/dist/cjs/resources/digital-wallet-tokens.js.map +1 -0
- package/dist/cjs/resources/documents.d.ts +87 -0
- package/dist/cjs/resources/documents.js +25 -0
- package/dist/cjs/resources/documents.js.map +1 -0
- package/dist/cjs/resources/entities/entities.d.ts +1383 -0
- package/dist/cjs/resources/entities/entities.js +36 -0
- package/dist/cjs/resources/entities/entities.js.map +1 -0
- package/dist/cjs/resources/entities/index.d.ts +2 -0
- package/dist/cjs/resources/entities/index.js +12 -0
- package/dist/cjs/resources/entities/index.js.map +1 -0
- package/dist/cjs/resources/entities/supplemental-documents.d.ts +19 -0
- package/dist/cjs/resources/entities/supplemental-documents.js +15 -0
- package/dist/cjs/resources/entities/supplemental-documents.js.map +1 -0
- package/dist/cjs/resources/event-subscriptions.d.ts +196 -0
- package/dist/cjs/resources/event-subscriptions.js +37 -0
- package/dist/cjs/resources/event-subscriptions.js.map +1 -0
- package/dist/cjs/resources/events.d.ts +183 -0
- package/dist/cjs/resources/events.js +25 -0
- package/dist/cjs/resources/events.js.map +1 -0
- package/dist/cjs/resources/external-accounts.d.ts +121 -0
- package/dist/cjs/resources/external-accounts.js +37 -0
- package/dist/cjs/resources/external-accounts.js.map +1 -0
- package/dist/cjs/resources/files.d.ts +148 -0
- package/dist/cjs/resources/files.js +34 -0
- package/dist/cjs/resources/files.js.map +1 -0
- package/dist/cjs/resources/groups.d.ts +37 -0
- package/dist/cjs/resources/groups.js +15 -0
- package/dist/cjs/resources/groups.js.map +1 -0
- package/dist/cjs/resources/inbound-ach-transfer-returns.d.ts +106 -0
- package/dist/cjs/resources/inbound-ach-transfer-returns.js +35 -0
- package/dist/cjs/resources/inbound-ach-transfer-returns.js.map +1 -0
- package/dist/cjs/resources/inbound-wire-drawdown-requests.d.ts +124 -0
- package/dist/cjs/resources/inbound-wire-drawdown-requests.js +29 -0
- package/dist/cjs/resources/inbound-wire-drawdown-requests.js.map +1 -0
- package/dist/cjs/resources/index.d.ts +163 -0
- package/dist/cjs/resources/index.js +478 -0
- package/dist/cjs/resources/index.js.map +1 -0
- package/dist/cjs/resources/limits.d.ts +105 -0
- package/dist/cjs/resources/limits.js +37 -0
- package/dist/cjs/resources/limits.js.map +1 -0
- package/dist/cjs/resources/oauth-connections.d.ts +50 -0
- package/dist/cjs/resources/oauth-connections.js +25 -0
- package/dist/cjs/resources/oauth-connections.js.map +1 -0
- package/dist/cjs/resources/pending-transactions.d.ts +397 -0
- package/dist/cjs/resources/pending-transactions.js +29 -0
- package/dist/cjs/resources/pending-transactions.js.map +1 -0
- package/dist/cjs/resources/real-time-decisions.d.ts +289 -0
- package/dist/cjs/resources/real-time-decisions.js +21 -0
- package/dist/cjs/resources/real-time-decisions.js.map +1 -0
- package/dist/cjs/resources/routing-numbers.d.ts +49 -0
- package/dist/cjs/resources/routing-numbers.js +21 -0
- package/dist/cjs/resources/routing-numbers.js.map +1 -0
- package/dist/cjs/resources/shared.d.ts +15 -0
- package/dist/cjs/resources/shared.js +4 -0
- package/dist/cjs/resources/shared.js.map +1 -0
- package/dist/cjs/resources/simulations/account-statements.d.ts +19 -0
- package/dist/cjs/resources/simulations/account-statements.js +16 -0
- package/dist/cjs/resources/simulations/account-statements.js.map +1 -0
- package/dist/cjs/resources/simulations/account-transfers.d.ts +15 -0
- package/dist/cjs/resources/simulations/account-transfers.js +18 -0
- package/dist/cjs/resources/simulations/account-transfers.js.map +1 -0
- package/dist/cjs/resources/simulations/ach-transfers.d.ts +1488 -0
- package/dist/cjs/resources/simulations/ach-transfers.js +39 -0
- package/dist/cjs/resources/simulations/ach-transfers.js.map +1 -0
- package/dist/cjs/resources/simulations/card-disputes.d.ts +26 -0
- package/dist/cjs/resources/simulations/card-disputes.js +18 -0
- package/dist/cjs/resources/simulations/card-disputes.js.map +1 -0
- package/dist/cjs/resources/simulations/card-refunds.d.ts +20 -0
- package/dist/cjs/resources/simulations/card-refunds.js +16 -0
- package/dist/cjs/resources/simulations/card-refunds.js.map +1 -0
- package/dist/cjs/resources/simulations/cards.d.ts +793 -0
- package/dist/cjs/resources/simulations/cards.js +31 -0
- package/dist/cjs/resources/simulations/cards.js.map +1 -0
- package/dist/cjs/resources/simulations/check-deposits.d.ts +30 -0
- package/dist/cjs/resources/simulations/check-deposits.js +31 -0
- package/dist/cjs/resources/simulations/check-deposits.js.map +1 -0
- package/dist/cjs/resources/simulations/check-transfers.d.ts +22 -0
- package/dist/cjs/resources/simulations/check-transfers.js +24 -0
- package/dist/cjs/resources/simulations/check-transfers.js.map +1 -0
- package/dist/cjs/resources/simulations/digital-wallet-token-requests.d.ts +43 -0
- package/dist/cjs/resources/simulations/digital-wallet-token-requests.js +16 -0
- package/dist/cjs/resources/simulations/digital-wallet-token-requests.js.map +1 -0
- package/dist/cjs/resources/simulations/documents.d.ts +18 -0
- package/dist/cjs/resources/simulations/documents.js +15 -0
- package/dist/cjs/resources/simulations/documents.js.map +1 -0
- package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.d.ts +101 -0
- package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.js +16 -0
- package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.js.map +1 -0
- package/dist/cjs/resources/simulations/index.d.ts +20 -0
- package/dist/cjs/resources/simulations/index.js +4 -0
- package/dist/cjs/resources/simulations/index.js.map +1 -0
- package/dist/cjs/resources/simulations/real-time-payments-transfers.d.ts +1431 -0
- package/dist/cjs/resources/simulations/real-time-payments-transfers.js +16 -0
- package/dist/cjs/resources/simulations/real-time-payments-transfers.js.map +1 -0
- package/dist/cjs/resources/simulations/simulations.d.ts +29 -0
- package/dist/cjs/resources/simulations/simulations.js +44 -0
- package/dist/cjs/resources/simulations/simulations.js.map +1 -0
- package/dist/cjs/resources/simulations/wire-transfers.d.ts +1104 -0
- package/dist/cjs/resources/simulations/wire-transfers.js +15 -0
- package/dist/cjs/resources/simulations/wire-transfers.js.map +1 -0
- package/dist/cjs/resources/transactions.d.ts +1101 -0
- package/dist/cjs/resources/transactions.js +25 -0
- package/dist/cjs/resources/transactions.js.map +1 -0
- package/dist/cjs/resources/wire-drawdown-requests.d.ts +148 -0
- package/dist/cjs/resources/wire-drawdown-requests.js +35 -0
- package/dist/cjs/resources/wire-drawdown-requests.js.map +1 -0
- package/dist/cjs/resources/wire-transfers.d.ts +310 -0
- package/dist/cjs/resources/wire-transfers.js +60 -0
- package/dist/cjs/resources/wire-transfers.js.map +1 -0
- package/dist/cjs/tests/api-resources/account-numbers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/account-numbers.test.js +104 -0
- package/dist/cjs/tests/api-resources/account-numbers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/account-statements.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/account-statements.test.js +101 -0
- package/dist/cjs/tests/api-resources/account-statements.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/account-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/account-transfers.test.js +146 -0
- package/dist/cjs/tests/api-resources/account-transfers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/accounts.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/accounts.test.js +119 -0
- package/dist/cjs/tests/api-resources/accounts.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/ach-prenotifications.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/ach-prenotifications.test.js +125 -0
- package/dist/cjs/tests/api-resources/ach-prenotifications.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/ach-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/ach-transfers.test.js +159 -0
- package/dist/cjs/tests/api-resources/ach-transfers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/card-disputes.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/card-disputes.test.js +108 -0
- package/dist/cjs/tests/api-resources/card-disputes.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/card-profiles.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/card-profiles.test.js +97 -0
- package/dist/cjs/tests/api-resources/card-profiles.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/cards.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/cards.test.js +138 -0
- package/dist/cjs/tests/api-resources/cards.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/check-deposits.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/check-deposits.test.js +113 -0
- package/dist/cjs/tests/api-resources/check-deposits.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/check-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/check-transfers.test.js +172 -0
- package/dist/cjs/tests/api-resources/check-transfers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/declined-transactions.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/declined-transactions.test.js +105 -0
- package/dist/cjs/tests/api-resources/declined-transactions.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.js +103 -0
- package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/documents.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/documents.test.js +101 -0
- package/dist/cjs/tests/api-resources/documents.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/entities/entities.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/entities/entities.test.js +280 -0
- package/dist/cjs/tests/api-resources/entities/entities.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.js +49 -0
- package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/event-subscriptions.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/event-subscriptions.test.js +109 -0
- package/dist/cjs/tests/api-resources/event-subscriptions.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/events.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/events.test.js +101 -0
- package/dist/cjs/tests/api-resources/events.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/external-accounts.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/external-accounts.test.js +113 -0
- package/dist/cjs/tests/api-resources/external-accounts.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/files.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/files.test.js +117 -0
- package/dist/cjs/tests/api-resources/files.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/groups.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/groups.test.js +54 -0
- package/dist/cjs/tests/api-resources/groups.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.js +90 -0
- package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.js +83 -0
- package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/limits.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/limits.test.js +100 -0
- package/dist/cjs/tests/api-resources/limits.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/oauth-connections.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/oauth-connections.test.js +78 -0
- package/dist/cjs/tests/api-resources/oauth-connections.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/pending-transactions.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/pending-transactions.test.js +97 -0
- package/dist/cjs/tests/api-resources/pending-transactions.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/real-time-decisions.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/real-time-decisions.test.js +71 -0
- package/dist/cjs/tests/api-resources/real-time-decisions.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/routing-numbers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/routing-numbers.test.js +55 -0
- package/dist/cjs/tests/api-resources/routing-numbers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/account-statements.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/account-statements.test.js +49 -0
- package/dist/cjs/tests/api-resources/simulations/account-statements.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/account-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/account-transfers.test.js +60 -0
- package/dist/cjs/tests/api-resources/simulations/account-transfers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.js +92 -0
- package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/card-disputes.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/card-disputes.test.js +56 -0
- package/dist/cjs/tests/api-resources/simulations/card-disputes.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/card-refunds.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/card-refunds.test.js +49 -0
- package/dist/cjs/tests/api-resources/simulations/card-refunds.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/cards.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/cards.test.js +70 -0
- package/dist/cjs/tests/api-resources/simulations/cards.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/check-deposits.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/check-deposits.test.js +86 -0
- package/dist/cjs/tests/api-resources/simulations/check-deposits.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/check-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/check-transfers.test.js +73 -0
- package/dist/cjs/tests/api-resources/simulations/check-transfers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.js +49 -0
- package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/documents.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/documents.test.js +49 -0
- package/dist/cjs/tests/api-resources/simulations/documents.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.js +81 -0
- package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.js +62 -0
- package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.js +70 -0
- package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/transactions.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/transactions.test.js +109 -0
- package/dist/cjs/tests/api-resources/transactions.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.js +110 -0
- package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/wire-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/wire-transfers.test.js +184 -0
- package/dist/cjs/tests/api-resources/wire-transfers.test.js.map +1 -0
- package/dist/cjs/tests/form.test.d.ts +1 -0
- package/dist/cjs/tests/form.test.js +60 -0
- package/dist/cjs/tests/form.test.js.map +1 -0
- package/dist/cjs/tests/index.test.d.ts +1 -0
- package/dist/cjs/tests/index.test.js +44 -0
- package/dist/cjs/tests/index.test.js.map +1 -0
- package/dist/cjs/tests/responses.test.d.ts +1 -0
- package/dist/cjs/tests/responses.test.js +59 -0
- package/dist/cjs/tests/responses.test.js.map +1 -0
- package/dist/cjs/version.d.ts +1 -0
- package/dist/cjs/version.js +5 -0
- package/dist/cjs/version.js.map +1 -0
- package/fetch-polyfill.ts +69 -0
- package/index.ts +276 -0
- package/jest.config.js +8 -0
- package/package.json +47 -0
- package/pagination.ts +58 -0
- package/resource.ts +24 -0
- package/resources/account-numbers.ts +141 -0
- package/resources/account-statements.ts +132 -0
- package/resources/account-transfers.ts +244 -0
- package/resources/accounts.ts +179 -0
- package/resources/ach-prenotifications.ts +242 -0
- package/resources/ach-transfers.ts +465 -0
- package/resources/card-disputes.ts +187 -0
- package/resources/card-profiles.ts +236 -0
- package/resources/cards.ts +398 -0
- package/resources/check-deposits.ts +303 -0
- package/resources/check-transfers.ts +422 -0
- package/resources/declined-transactions.ts +547 -0
- package/resources/digital-wallet-tokens.ts +115 -0
- package/resources/documents.ts +119 -0
- package/resources/entities/entities.ts +1668 -0
- package/resources/entities/index.ts +4 -0
- package/resources/entities/supplemental-documents.ts +25 -0
- package/resources/event-subscriptions.ts +232 -0
- package/resources/events.ts +215 -0
- package/resources/external-accounts.ts +162 -0
- package/resources/files.ts +188 -0
- package/resources/groups.ts +47 -0
- package/resources/inbound-ach-transfer-returns.ts +142 -0
- package/resources/inbound-wire-drawdown-requests.ts +168 -0
- package/resources/index.ts +165 -0
- package/resources/limits.ts +144 -0
- package/resources/oauth-connections.ts +74 -0
- package/resources/pending-transactions.ts +491 -0
- package/resources/real-time-decisions.ts +345 -0
- package/resources/routing-numbers.ts +62 -0
- package/resources/shared.ts +17 -0
- package/resources/simulations/account-statements.ts +25 -0
- package/resources/simulations/account-transfers.ts +20 -0
- package/resources/simulations/ach-transfers.ts +1873 -0
- package/resources/simulations/card-disputes.ts +33 -0
- package/resources/simulations/card-refunds.ts +26 -0
- package/resources/simulations/cards.ts +979 -0
- package/resources/simulations/check-deposits.ts +41 -0
- package/resources/simulations/check-transfers.ts +30 -0
- package/resources/simulations/digital-wallet-token-requests.ts +52 -0
- package/resources/simulations/documents.ts +24 -0
- package/resources/simulations/inbound-wire-drawdown-requests.ts +126 -0
- package/resources/simulations/index.ts +22 -0
- package/resources/simulations/real-time-payments-transfers.ts +1809 -0
- package/resources/simulations/simulations.ts +32 -0
- package/resources/simulations/wire-transfers.ts +1391 -0
- package/resources/transactions.ts +1393 -0
- package/resources/wire-drawdown-requests.ts +195 -0
- package/resources/wire-transfers.ts +399 -0
- package/tests/api-resources/account-numbers.test.ts +67 -0
- package/tests/api-resources/account-statements.test.ts +64 -0
- package/tests/api-resources/account-transfers.test.ts +109 -0
- package/tests/api-resources/accounts.test.ts +82 -0
- package/tests/api-resources/ach-prenotifications.test.ts +86 -0
- package/tests/api-resources/ach-transfers.test.ts +120 -0
- package/tests/api-resources/card-disputes.test.ts +71 -0
- package/tests/api-resources/card-profiles.test.ts +60 -0
- package/tests/api-resources/cards.test.ts +101 -0
- package/tests/api-resources/check-deposits.test.ts +74 -0
- package/tests/api-resources/check-transfers.test.ts +135 -0
- package/tests/api-resources/declined-transactions.test.ts +68 -0
- package/tests/api-resources/digital-wallet-tokens.test.ts +64 -0
- package/tests/api-resources/documents.test.ts +64 -0
- package/tests/api-resources/entities/entities.test.ts +243 -0
- package/tests/api-resources/entities/supplemental-documents.test.ts +12 -0
- package/tests/api-resources/event-subscriptions.test.ts +69 -0
- package/tests/api-resources/events.test.ts +64 -0
- package/tests/api-resources/external-accounts.test.ts +76 -0
- package/tests/api-resources/files.test.ts +81 -0
- package/tests/api-resources/groups.test.ts +17 -0
- package/tests/api-resources/inbound-ach-transfer-returns.test.ts +53 -0
- package/tests/api-resources/inbound-wire-drawdown-requests.test.ts +46 -0
- package/tests/api-resources/limits.test.ts +63 -0
- package/tests/api-resources/oauth-connections.test.ts +41 -0
- package/tests/api-resources/pending-transactions.test.ts +58 -0
- package/tests/api-resources/real-time-decisions.test.ts +34 -0
- package/tests/api-resources/routing-numbers.test.ts +18 -0
- package/tests/api-resources/simulations/account-statements.test.ts +12 -0
- package/tests/api-resources/simulations/account-transfers.test.ts +23 -0
- package/tests/api-resources/simulations/ach-transfers.test.ts +52 -0
- package/tests/api-resources/simulations/card-disputes.test.ts +19 -0
- package/tests/api-resources/simulations/card-refunds.test.ts +12 -0
- package/tests/api-resources/simulations/cards.test.ts +33 -0
- package/tests/api-resources/simulations/check-deposits.test.ts +49 -0
- package/tests/api-resources/simulations/check-transfers.test.ts +34 -0
- package/tests/api-resources/simulations/digital-wallet-token-requests.test.ts +12 -0
- package/tests/api-resources/simulations/documents.test.ts +12 -0
- package/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.ts +44 -0
- package/tests/api-resources/simulations/real-time-payments-transfers.test.ts +25 -0
- package/tests/api-resources/simulations/wire-transfers.test.ts +33 -0
- package/tests/api-resources/transactions.test.ts +70 -0
- package/tests/api-resources/wire-drawdown-requests.test.ts +73 -0
- package/tests/api-resources/wire-transfers.test.ts +147 -0
- package/tests/form.test.ts +27 -0
- package/tests/index.test.ts +47 -0
- package/tests/responses.test.ts +25 -0
- package/tsconfig.cjs.json +8 -0
- package/tsconfig.json +37 -0
- package/typings/digest-fetch/index.d.ts +33 -0
- package/version.ts +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wire-transfers.test.js","sourceRoot":"","sources":["../../../../../tests/api-resources/simulations/wire-transfers.test.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;AAErD,oDAA+B;AAC/B,MAAM,QAAQ,GAAG,IAAI,eAAQ,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC,CAAC;AAE7F,QAAQ,CAAC,yBAAyB,EAAE,GAAG,EAAE;IACvC,IAAI,CAAC,sCAAsC,EAAE,GAAS,EAAE;QACtD,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,WAAW,CAAC,aAAa,CAAC,aAAa,CAAC;YACtE,iBAAiB,EAAE,qCAAqC;YACxD,MAAM,EAAE,IAAI;SACb,CAAC,CAAC;IACL,CAAC,CAAA,CAAC,CAAC;IAEH,IAAI,CAAC,8CAA8C,EAAE,GAAS,EAAE;QAC9D,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,WAAW,CAAC,aAAa,CAAC,aAAa,CAAC;YACtE,iBAAiB,EAAE,qCAAqC;YACxD,MAAM,EAAE,IAAI;YACZ,yBAAyB,EAAE,GAAG;YAC9B,yBAAyB,EAAE,GAAG;YAC9B,yBAAyB,EAAE,GAAG;YAC9B,gBAAgB,EAAE,GAAG;YACrB,qBAAqB,EAAE,GAAG;YAC1B,wBAAwB,EAAE,GAAG;YAC7B,wBAAwB,EAAE,GAAG;YAC7B,wBAAwB,EAAE,GAAG;YAC7B,eAAe,EAAE,GAAG;YACpB,2CAA2C,EAAE,GAAG;YAChD,2CAA2C,EAAE,GAAG;YAChD,2CAA2C,EAAE,GAAG;YAChD,2CAA2C,EAAE,GAAG;SACjD,CAAC,CAAC;IACL,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
var __awaiter =
|
|
4
|
+
(this && this.__awaiter) ||
|
|
5
|
+
function (thisArg, _arguments, P, generator) {
|
|
6
|
+
function adopt(value) {
|
|
7
|
+
return value instanceof P ? value
|
|
8
|
+
: new P(function (resolve) {
|
|
9
|
+
resolve(value);
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
13
|
+
function fulfilled(value) {
|
|
14
|
+
try {
|
|
15
|
+
step(generator.next(value));
|
|
16
|
+
} catch (e) {
|
|
17
|
+
reject(e);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function rejected(value) {
|
|
21
|
+
try {
|
|
22
|
+
step(generator['throw'](value));
|
|
23
|
+
} catch (e) {
|
|
24
|
+
reject(e);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function step(result) {
|
|
28
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
29
|
+
}
|
|
30
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
var __importDefault =
|
|
34
|
+
(this && this.__importDefault) ||
|
|
35
|
+
function (mod) {
|
|
36
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
39
|
+
const index_1 = __importDefault(require('../../index'));
|
|
40
|
+
const increase = new index_1.default({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
|
|
41
|
+
describe('resource transactions', () => {
|
|
42
|
+
test('retrieve', () =>
|
|
43
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
44
|
+
const response = yield increase.transactions.retrieve('transaction_uyrp7fld2ium70oa7oi');
|
|
45
|
+
}));
|
|
46
|
+
test('retrieve: request options instead of params are passed correctly', () =>
|
|
47
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
48
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
49
|
+
yield expect(
|
|
50
|
+
increase.transactions.retrieve('transaction_uyrp7fld2ium70oa7oi', {
|
|
51
|
+
path: '/_stainless_unknown_path',
|
|
52
|
+
}),
|
|
53
|
+
).rejects.toThrow(index_1.default.NotFoundError);
|
|
54
|
+
}));
|
|
55
|
+
test('list: only required params', () =>
|
|
56
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
57
|
+
const response = yield increase.transactions.list();
|
|
58
|
+
}));
|
|
59
|
+
test('list: required and optional params', () =>
|
|
60
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
61
|
+
const response = yield increase.transactions.list({
|
|
62
|
+
cursor: 'string',
|
|
63
|
+
limit: 0,
|
|
64
|
+
account_id: 'string',
|
|
65
|
+
route_id: 'string',
|
|
66
|
+
created_at: {
|
|
67
|
+
after: '2019-12-27T18:11:19.117Z',
|
|
68
|
+
before: '2019-12-27T18:11:19.117Z',
|
|
69
|
+
on_or_after: '2019-12-27T18:11:19.117Z',
|
|
70
|
+
on_or_before: '2019-12-27T18:11:19.117Z',
|
|
71
|
+
},
|
|
72
|
+
category: {
|
|
73
|
+
in: ['account_transfer_intention', 'account_transfer_intention', 'account_transfer_intention'],
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
}));
|
|
77
|
+
test('list: request options instead of params are passed correctly', () =>
|
|
78
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
79
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
80
|
+
yield expect(increase.transactions.list({ path: '/_stainless_unknown_path' })).rejects.toThrow(
|
|
81
|
+
index_1.default.NotFoundError,
|
|
82
|
+
);
|
|
83
|
+
}));
|
|
84
|
+
test('list: request options and params are passed correctly', () =>
|
|
85
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
86
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
87
|
+
yield expect(
|
|
88
|
+
increase.transactions.list(
|
|
89
|
+
{
|
|
90
|
+
cursor: 'string',
|
|
91
|
+
limit: 0,
|
|
92
|
+
account_id: 'string',
|
|
93
|
+
route_id: 'string',
|
|
94
|
+
created_at: {
|
|
95
|
+
after: '2019-12-27T18:11:19.117Z',
|
|
96
|
+
before: '2019-12-27T18:11:19.117Z',
|
|
97
|
+
on_or_after: '2019-12-27T18:11:19.117Z',
|
|
98
|
+
on_or_before: '2019-12-27T18:11:19.117Z',
|
|
99
|
+
},
|
|
100
|
+
category: {
|
|
101
|
+
in: ['account_transfer_intention', 'account_transfer_intention', 'account_transfer_intention'],
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
{ path: '/_stainless_unknown_path' },
|
|
105
|
+
),
|
|
106
|
+
).rejects.toThrow(index_1.default.NotFoundError);
|
|
107
|
+
}));
|
|
108
|
+
});
|
|
109
|
+
//# sourceMappingURL=transactions.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactions.test.js","sourceRoot":"","sources":["../../../../tests/api-resources/transactions.test.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;AAErD,oDAA+B;AAC/B,MAAM,QAAQ,GAAG,IAAI,eAAQ,CAAC,EAAE,MAAM,EA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;QACrH,MAAM,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,0BAA0B,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAC5F,eAAQ,CAAC,aAAa,CACvB,CAAC;IACJ,CAAC,CAAA,CAAC,CAAC;IAEH,IAAI,CAAC,uDAAuD,EAAE,GAAS,EAAE;QACvE,qHAAqH;QACrH,MAAM,MAAM,CACV,QAAQ,CAAC,YAAY,CAAC,IAAI,CACxB;YACE,MAAM,EAAE,QAAQ;YAChB,KAAK,EAAE,CAAC;YACR,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE;gBACV,KAAK,EAAE,0BAA0B;gBACjC,MAAM,EAAE,0BAA0B;gBAClC,WAAW,EAAE,0BAA0B;gBACvC,YAAY,EAAE,0BAA0B;aACzC;YACD,QAAQ,EAAE;gBACR,EAAE,EAAE,CAAC,4BAA4B,EAAE,4BAA4B,EAAE,4BAA4B,CAAC;aAC/F;SACF,EACD,EAAE,IAAI,EAAE,0BAA0B,EAAE,CACrC,CACF,CAAC,OAAO,CAAC,OAAO,CAAC,eAAQ,CAAC,aAAa,CAAC,CAAC;IAC5C,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
var __awaiter =
|
|
4
|
+
(this && this.__awaiter) ||
|
|
5
|
+
function (thisArg, _arguments, P, generator) {
|
|
6
|
+
function adopt(value) {
|
|
7
|
+
return value instanceof P ? value
|
|
8
|
+
: new P(function (resolve) {
|
|
9
|
+
resolve(value);
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
13
|
+
function fulfilled(value) {
|
|
14
|
+
try {
|
|
15
|
+
step(generator.next(value));
|
|
16
|
+
} catch (e) {
|
|
17
|
+
reject(e);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function rejected(value) {
|
|
21
|
+
try {
|
|
22
|
+
step(generator['throw'](value));
|
|
23
|
+
} catch (e) {
|
|
24
|
+
reject(e);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function step(result) {
|
|
28
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
29
|
+
}
|
|
30
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
var __importDefault =
|
|
34
|
+
(this && this.__importDefault) ||
|
|
35
|
+
function (mod) {
|
|
36
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
39
|
+
const index_1 = __importDefault(require('../../index'));
|
|
40
|
+
const increase = new index_1.default({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
|
|
41
|
+
describe('resource wire_drawdown_requests', () => {
|
|
42
|
+
// Prism tests are broken
|
|
43
|
+
test.skip('create: only required params', () =>
|
|
44
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
45
|
+
const response = yield increase.wireDrawdownRequests.create({
|
|
46
|
+
account_number_id: 'account_number_v18nkfqm6afpsrvy82b2',
|
|
47
|
+
amount: 10000,
|
|
48
|
+
message_to_recipient: 'Invoice 29582',
|
|
49
|
+
recipient_account_number: '987654321',
|
|
50
|
+
recipient_routing_number: '101050001',
|
|
51
|
+
recipient_name: 'Ian Crease',
|
|
52
|
+
});
|
|
53
|
+
}));
|
|
54
|
+
// Prism tests are broken
|
|
55
|
+
test.skip('create: required and optional params', () =>
|
|
56
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
57
|
+
const response = yield increase.wireDrawdownRequests.create({
|
|
58
|
+
account_number_id: 'account_number_v18nkfqm6afpsrvy82b2',
|
|
59
|
+
amount: 10000,
|
|
60
|
+
message_to_recipient: 'Invoice 29582',
|
|
61
|
+
recipient_account_number: '987654321',
|
|
62
|
+
recipient_routing_number: '101050001',
|
|
63
|
+
recipient_name: 'Ian Crease',
|
|
64
|
+
recipient_address_line1: '33 Liberty Street',
|
|
65
|
+
recipient_address_line2: 'New York, NY, 10045',
|
|
66
|
+
recipient_address_line3: 'x',
|
|
67
|
+
});
|
|
68
|
+
}));
|
|
69
|
+
test('retrieve', () =>
|
|
70
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
71
|
+
const response = yield increase.wireDrawdownRequests.retrieve(
|
|
72
|
+
'wire_drawdown_request_q6lmocus3glo0lr2bfv3',
|
|
73
|
+
);
|
|
74
|
+
}));
|
|
75
|
+
test('retrieve: request options instead of params are passed correctly', () =>
|
|
76
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
77
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
78
|
+
yield expect(
|
|
79
|
+
increase.wireDrawdownRequests.retrieve('wire_drawdown_request_q6lmocus3glo0lr2bfv3', {
|
|
80
|
+
path: '/_stainless_unknown_path',
|
|
81
|
+
}),
|
|
82
|
+
).rejects.toThrow(index_1.default.NotFoundError);
|
|
83
|
+
}));
|
|
84
|
+
test('list: only required params', () =>
|
|
85
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
86
|
+
const response = yield increase.wireDrawdownRequests.list();
|
|
87
|
+
}));
|
|
88
|
+
test('list: required and optional params', () =>
|
|
89
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
90
|
+
const response = yield increase.wireDrawdownRequests.list({ cursor: 'string', limit: 0 });
|
|
91
|
+
}));
|
|
92
|
+
test('list: request options instead of params are passed correctly', () =>
|
|
93
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
94
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
95
|
+
yield expect(increase.wireDrawdownRequests.list({ path: '/_stainless_unknown_path' })).rejects.toThrow(
|
|
96
|
+
index_1.default.NotFoundError,
|
|
97
|
+
);
|
|
98
|
+
}));
|
|
99
|
+
test('list: request options and params are passed correctly', () =>
|
|
100
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
101
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
102
|
+
yield expect(
|
|
103
|
+
increase.wireDrawdownRequests.list(
|
|
104
|
+
{ cursor: 'string', limit: 0 },
|
|
105
|
+
{ path: '/_stainless_unknown_path' },
|
|
106
|
+
),
|
|
107
|
+
).rejects.toThrow(index_1.default.NotFoundError);
|
|
108
|
+
}));
|
|
109
|
+
});
|
|
110
|
+
//# sourceMappingURL=wire-drawdown-requests.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wire-drawdown-requests.test.js","sourceRoot":"","sources":["../../../../tests/api-resources/wire-drawdown-requests.test.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;AAErD,oDAA+B;AAC/B,MAAM,QAAQ,GAAG,IAAI,eAAQ,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC,CAAC;AAE7F,QAAQ,CAAC,iCAAiC,EAAE,GAAG,EAAE;IAC/C,yBAAyB;IACzB,IAAI,CAAC,IAAI,CAAC,8BAA8B,EAAE,GAAS,EAAE;QACnD,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC;YAC1D,iBAAiB,EAAE,qCAAqC;YACxD,MAAM,EAAE,KAAK;YACb,oBAAoB,EAAE,eAAe;YACrC,wBAAwB,EAAE,WAAW;YACrC,wBAAwB,EAAE,WAAW;YACrC,cAAc,EAAE,YAAY;SAC7B,CAAC,CAAC;IACL,CAAC,CAAA,CAAC,CAAC;IAEH,yBAAyB;IACzB,IAAI,CAAC,IAAI,CAAC,sCAAsC,EAAE,GAAS,EAAE;QAC3D,MAAM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M,MAAM,CAAC,QAAQ,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,0BAA0B,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CACpG,eAAQ,CAAC,aAAa,CACvB,CAAC;IACJ,CAAC,CAAA,CAAC,CAAC;IAEH,IAAI,CAAC,uDAAuD,EAAE,GAAS,EAAE;QACvE,qHAAqH;QACrH,MAAM,MAAM,CACV,QAAQ,CAAC,oBAAoB,CAAC,IAAI,CAChC,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,EAAE,EAC9B,EAAE,IAAI,EAAE,0BAA0B,EAAE,CACrC,CACF,CAAC,OAAO,CAAC,OAAO,CAAC,eAAQ,CAAC,aAAa,CAAC,CAAC;IAC5C,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
var __awaiter =
|
|
4
|
+
(this && this.__awaiter) ||
|
|
5
|
+
function (thisArg, _arguments, P, generator) {
|
|
6
|
+
function adopt(value) {
|
|
7
|
+
return value instanceof P ? value
|
|
8
|
+
: new P(function (resolve) {
|
|
9
|
+
resolve(value);
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
13
|
+
function fulfilled(value) {
|
|
14
|
+
try {
|
|
15
|
+
step(generator.next(value));
|
|
16
|
+
} catch (e) {
|
|
17
|
+
reject(e);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function rejected(value) {
|
|
21
|
+
try {
|
|
22
|
+
step(generator['throw'](value));
|
|
23
|
+
} catch (e) {
|
|
24
|
+
reject(e);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function step(result) {
|
|
28
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
29
|
+
}
|
|
30
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
var __importDefault =
|
|
34
|
+
(this && this.__importDefault) ||
|
|
35
|
+
function (mod) {
|
|
36
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
39
|
+
const index_1 = __importDefault(require('../../index'));
|
|
40
|
+
const increase = new index_1.default({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
|
|
41
|
+
describe('resource wire_transfers', () => {
|
|
42
|
+
test('create: only required params', () =>
|
|
43
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
44
|
+
const response = yield increase.wireTransfers.create({
|
|
45
|
+
account_id: 'account_in71c4amph0vgo2qllky',
|
|
46
|
+
amount: 100,
|
|
47
|
+
message_to_recipient: 'New account transfer',
|
|
48
|
+
beneficiary_name: 'Ian Crease',
|
|
49
|
+
});
|
|
50
|
+
}));
|
|
51
|
+
test('create: required and optional params', () =>
|
|
52
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
53
|
+
const response = yield increase.wireTransfers.create({
|
|
54
|
+
account_id: 'account_in71c4amph0vgo2qllky',
|
|
55
|
+
account_number: '987654321',
|
|
56
|
+
routing_number: '101050001',
|
|
57
|
+
external_account_id: 'string',
|
|
58
|
+
amount: 100,
|
|
59
|
+
message_to_recipient: 'New account transfer',
|
|
60
|
+
beneficiary_name: 'Ian Crease',
|
|
61
|
+
beneficiary_address_line1: '33 Liberty Street',
|
|
62
|
+
beneficiary_address_line2: 'New York',
|
|
63
|
+
beneficiary_address_line3: 'NY 10045',
|
|
64
|
+
require_approval: true,
|
|
65
|
+
});
|
|
66
|
+
}));
|
|
67
|
+
test('retrieve', () =>
|
|
68
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
69
|
+
const response = yield increase.wireTransfers.retrieve('wire_transfer_5akynk7dqsq25qwk9q2u');
|
|
70
|
+
}));
|
|
71
|
+
test('retrieve: request options instead of params are passed correctly', () =>
|
|
72
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
73
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
74
|
+
yield expect(
|
|
75
|
+
increase.wireTransfers.retrieve('wire_transfer_5akynk7dqsq25qwk9q2u', {
|
|
76
|
+
path: '/_stainless_unknown_path',
|
|
77
|
+
}),
|
|
78
|
+
).rejects.toThrow(index_1.default.NotFoundError);
|
|
79
|
+
}));
|
|
80
|
+
test('list: only required params', () =>
|
|
81
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
82
|
+
const response = yield increase.wireTransfers.list();
|
|
83
|
+
}));
|
|
84
|
+
test('list: required and optional params', () =>
|
|
85
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
86
|
+
const response = yield increase.wireTransfers.list({
|
|
87
|
+
cursor: 'string',
|
|
88
|
+
limit: 0,
|
|
89
|
+
account_id: 'string',
|
|
90
|
+
external_account_id: 'string',
|
|
91
|
+
created_at: {
|
|
92
|
+
after: '2019-12-27T18:11:19.117Z',
|
|
93
|
+
before: '2019-12-27T18:11:19.117Z',
|
|
94
|
+
on_or_after: '2019-12-27T18:11:19.117Z',
|
|
95
|
+
on_or_before: '2019-12-27T18:11:19.117Z',
|
|
96
|
+
},
|
|
97
|
+
});
|
|
98
|
+
}));
|
|
99
|
+
test('list: request options instead of params are passed correctly', () =>
|
|
100
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
101
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
102
|
+
yield expect(increase.wireTransfers.list({ path: '/_stainless_unknown_path' })).rejects.toThrow(
|
|
103
|
+
index_1.default.NotFoundError,
|
|
104
|
+
);
|
|
105
|
+
}));
|
|
106
|
+
test('list: request options and params are passed correctly', () =>
|
|
107
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
108
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
109
|
+
yield expect(
|
|
110
|
+
increase.wireTransfers.list(
|
|
111
|
+
{
|
|
112
|
+
cursor: 'string',
|
|
113
|
+
limit: 0,
|
|
114
|
+
account_id: 'string',
|
|
115
|
+
external_account_id: 'string',
|
|
116
|
+
created_at: {
|
|
117
|
+
after: '2019-12-27T18:11:19.117Z',
|
|
118
|
+
before: '2019-12-27T18:11:19.117Z',
|
|
119
|
+
on_or_after: '2019-12-27T18:11:19.117Z',
|
|
120
|
+
on_or_before: '2019-12-27T18:11:19.117Z',
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
{ path: '/_stainless_unknown_path' },
|
|
124
|
+
),
|
|
125
|
+
).rejects.toThrow(index_1.default.NotFoundError);
|
|
126
|
+
}));
|
|
127
|
+
test('approve', () =>
|
|
128
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
129
|
+
const response = yield increase.wireTransfers.approve('wire_transfer_5akynk7dqsq25qwk9q2u');
|
|
130
|
+
}));
|
|
131
|
+
test('approve: request options instead of params are passed correctly', () =>
|
|
132
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
133
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
134
|
+
yield expect(
|
|
135
|
+
increase.wireTransfers.approve('wire_transfer_5akynk7dqsq25qwk9q2u', {
|
|
136
|
+
path: '/_stainless_unknown_path',
|
|
137
|
+
}),
|
|
138
|
+
).rejects.toThrow(index_1.default.NotFoundError);
|
|
139
|
+
}));
|
|
140
|
+
test('cancel', () =>
|
|
141
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
142
|
+
const response = yield increase.wireTransfers.cancel('wire_transfer_5akynk7dqsq25qwk9q2u');
|
|
143
|
+
}));
|
|
144
|
+
test('cancel: request options instead of params are passed correctly', () =>
|
|
145
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
146
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
147
|
+
yield expect(
|
|
148
|
+
increase.wireTransfers.cancel('wire_transfer_5akynk7dqsq25qwk9q2u', {
|
|
149
|
+
path: '/_stainless_unknown_path',
|
|
150
|
+
}),
|
|
151
|
+
).rejects.toThrow(index_1.default.NotFoundError);
|
|
152
|
+
}));
|
|
153
|
+
// Prism tests are broken
|
|
154
|
+
test.skip('reverse', () =>
|
|
155
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
156
|
+
const response = yield increase.wireTransfers.reverse('wire_transfer_5akynk7dqsq25qwk9q2u');
|
|
157
|
+
}));
|
|
158
|
+
// Prism tests are broken
|
|
159
|
+
test.skip('reverse: request options instead of params are passed correctly', () =>
|
|
160
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
161
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
162
|
+
yield expect(
|
|
163
|
+
increase.wireTransfers.reverse('wire_transfer_5akynk7dqsq25qwk9q2u', {
|
|
164
|
+
path: '/_stainless_unknown_path',
|
|
165
|
+
}),
|
|
166
|
+
).rejects.toThrow(index_1.default.NotFoundError);
|
|
167
|
+
}));
|
|
168
|
+
// Prism tests are broken
|
|
169
|
+
test.skip('submit', () =>
|
|
170
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
171
|
+
const response = yield increase.wireTransfers.submit('wire_transfer_5akynk7dqsq25qwk9q2u');
|
|
172
|
+
}));
|
|
173
|
+
// Prism tests are broken
|
|
174
|
+
test.skip('submit: request options instead of params are passed correctly', () =>
|
|
175
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
176
|
+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
|
|
177
|
+
yield expect(
|
|
178
|
+
increase.wireTransfers.submit('wire_transfer_5akynk7dqsq25qwk9q2u', {
|
|
179
|
+
path: '/_stainless_unknown_path',
|
|
180
|
+
}),
|
|
181
|
+
).rejects.toThrow(index_1.default.NotFoundError);
|
|
182
|
+
}));
|
|
183
|
+
});
|
|
184
|
+
//# sourceMappingURL=wire-transfers.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wire-transfers.test.js","sourceRoot":"","sources":["../../../../tests/api-resources/wire-transfers.test.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;AAErD,oDAA+B;AAC/B,MAAM,QAAQ,GAAG,IAAI,eAAQ,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC,CAAC;AAE7F,QAAQ,CAAC,yBAAyB,EAAE,GAAG,EAAE;IACvC,IAAI,CAAC,8BAA8B,EAAE,GAAS,EAAE;QAC9C,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC;YACnD,UAAU,EAAE,8BAA8B;YAC1C,MAAM,EAAE,GAAG;YACX,oBAAoB,EAAE,sBAAsB;YAC5C,gBAAgB,EAAE,YAAY;SAC/B,CAAC,CAAC;IACL,CAAC,CAAA,CAAC,CAAC;IAEH,IAAI,CAAC,sCAAsC,EAAE,GAAS,EAAE;QACtD,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC;YACnD,UAAU,EAAE,8BAA8B;YAC1C,cAAc,EAAE,WAAW;YAC3B,cAAc,EAAE,WAAW;YAC3B,mBAAmB,EAAE,QAAQ;YAC7B,MAAM,EAAE,GAAG;YACX,oBAAoB,EAAE,sBAAsB;YAC5C,gBAAgB,EAAE,YAAY;YAC9B,yBAAyB,EAAE,mBAAmB;YAC9C,yBAAyB,EAAE,UAAU;YACrC,yBAAyB,EAAE,UAAU;YACrC,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC,CAAA,CAAC,CAAC;IAEH,IAAI,CAAC,UAAU,EAAE,GAAS,EAAE;QAC1B,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,oCAAoC,CAAC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,CAAC,CAAC;IAEH,yBAAyB;IACzB,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,GAAS,EAAE;QAC9B,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,oCAAoC,CAAC,CAAC;IAC9F,CAAC,CAAA,CAAC,CAAC;IAEH,yBAAyB;IACzB,IAAI,CAAC,IAAI,CAAC,iEAAiE,EAAE,GAAS,EAAE;QACtF,qHAAqH;QACrH,MAAM,MAAM,CACV,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,oCAAoC,EAAE;YACnE,IAAI,EAAE,0BAA0B;SACjC,CAAC,CACH,CAAC,OAAO,CAAC,OAAO,CAAC,eAAQ,CAAC,aAAa,CAAC,CAAC;IAC5C,CAAC,CAAA,CAAC,CAAC;IAEH,yBAAyB;IACzB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAS,EAAE;QAC7B,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,oCAAoC,CAAC,CAAC;IAC7F,CAAC,CAAA,CAAC,CAAC;IAEH,yBAAyB;IACzB,IAAI,CAAC,IAAI,CAAC,gEAAgE,EAAE,GAAS,EAAE;QACrF,qHAAqH;QACrH,MAAM,MAAM,CACV,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,oCAAoC,EAAE;YAClE,IAAI,EAAE,0BAA0B;SACjC,CAAC,CACH,CAAC,OAAO,CAAC,OAAO,CAAC,eAAQ,CAAC,aAAa,CAAC,CAAC;IAC5C,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var __awaiter =
|
|
3
|
+
(this && this.__awaiter) ||
|
|
4
|
+
function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) {
|
|
6
|
+
return value instanceof P ? value
|
|
7
|
+
: new P(function (resolve) {
|
|
8
|
+
resolve(value);
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
12
|
+
function fulfilled(value) {
|
|
13
|
+
try {
|
|
14
|
+
step(generator.next(value));
|
|
15
|
+
} catch (e) {
|
|
16
|
+
reject(e);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function rejected(value) {
|
|
20
|
+
try {
|
|
21
|
+
step(generator['throw'](value));
|
|
22
|
+
} catch (e) {
|
|
23
|
+
reject(e);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function step(result) {
|
|
27
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
28
|
+
}
|
|
29
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
33
|
+
const core_1 = require('../core');
|
|
34
|
+
const formdata_node_1 = require('formdata-node');
|
|
35
|
+
const file_from_path_1 = require('formdata-node/file-from-path');
|
|
36
|
+
describe('form data validation', () => {
|
|
37
|
+
test('valid values do not error', () =>
|
|
38
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
39
|
+
(0, core_1.multipartFormRequestOptions)({
|
|
40
|
+
body: {
|
|
41
|
+
foo: 'foo',
|
|
42
|
+
string: 1,
|
|
43
|
+
bool: true,
|
|
44
|
+
file: yield (0, file_from_path_1.fileFromPath)('README.md'),
|
|
45
|
+
blob: new formdata_node_1.Blob(['Some content'], { type: 'text/plain' }),
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
}));
|
|
49
|
+
test('null', () =>
|
|
50
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
51
|
+
expect(() =>
|
|
52
|
+
(0, core_1.multipartFormRequestOptions)({
|
|
53
|
+
body: {
|
|
54
|
+
null: null,
|
|
55
|
+
},
|
|
56
|
+
}),
|
|
57
|
+
).toThrow(TypeError);
|
|
58
|
+
}));
|
|
59
|
+
});
|
|
60
|
+
//# sourceMappingURL=form.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.test.js","sourceRoot":"","sources":["../../../tests/form.test.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,iCAAqD;AACrD,iDAAqC;AACrC,iEAA4D;AAE5D,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACpC,IAAI,CAAC,2BAA2B,EAAE,GAAS,EAAE;QAC3C,IAAA,kCAA2B,EAAC;YAC1B,IAAI,EAAE;gBACJ,GAAG,EAAE,KAAK;gBACV,MAAM,EAAE,CAAC;gBACT,IAAI,EAAE,IAAI;gBACV,IAAI,EAAE,MAAM,IAAA,6BAAY,EAAC,WAAW,CAAC;gBACrC,IAAI,EAAE,IAAI,oBAAI,CAAC,CAAC,cAAc,CAAC,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;aACzD;SACF,CAAC,CAAC;IACL,CAAC,CAAA,CAAC,CAAC;IAEH,IAAI,CAAC,MAAM,EAAE,GAAS,EAAE;QACtB,MAAM,CAAC,GAAG,EAAE,CACV,IAAA,kCAA2B,EAAC;YAC1B,IAAI,EAAE;gBACJ,IAAI,EAAE,IAAI;aACX;SACF,CAAC,CACH,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACvB,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
var __importDefault =
|
|
4
|
+
(this && this.__importDefault) ||
|
|
5
|
+
function (mod) {
|
|
6
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
|
+
const index_1 = __importDefault(require('../index'));
|
|
10
|
+
describe('instantiate client', () => {
|
|
11
|
+
const env = process.env;
|
|
12
|
+
beforeEach(() => {
|
|
13
|
+
jest.resetModules();
|
|
14
|
+
process.env = Object.assign({}, env);
|
|
15
|
+
console.warn = jest.fn();
|
|
16
|
+
});
|
|
17
|
+
afterEach(() => {
|
|
18
|
+
process.env = env;
|
|
19
|
+
});
|
|
20
|
+
test('with minimal arguments', () => {
|
|
21
|
+
// set API Key via env var
|
|
22
|
+
process.env['INCREASE_API_KEY'] = 'env var api key';
|
|
23
|
+
const client = new index_1.default();
|
|
24
|
+
expect(client.apiKey).toBe('env var api key');
|
|
25
|
+
});
|
|
26
|
+
test('with apiKey argument', () => {
|
|
27
|
+
process.env['INCREASE_API_KEY'] = 'env var api key';
|
|
28
|
+
const client = new index_1.default({ apiKey: 'another api key' });
|
|
29
|
+
expect(client.apiKey).toBe('another api key');
|
|
30
|
+
});
|
|
31
|
+
test('with options argument', () => {
|
|
32
|
+
process.env['INCREASE_API_KEY'] = 'env var api key';
|
|
33
|
+
// apiKey
|
|
34
|
+
const client = new index_1.default({ apiKey: 'my api key' });
|
|
35
|
+
expect(client.apiKey).toBe('my api key');
|
|
36
|
+
});
|
|
37
|
+
test('with disabled authentication', () => {
|
|
38
|
+
// fails if no API Key provided
|
|
39
|
+
expect(() => {
|
|
40
|
+
new index_1.default();
|
|
41
|
+
}).toThrow();
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
//# sourceMappingURL=index.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.test.js","sourceRoot":"","sources":["../../../tests/index.test.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;AAErD,qDAAgC;AAEhC,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAClC,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAExB,UAAU,CAAC,GAAG,EAAE;QACd,IAAI,CAAC,YAAY,EAAE,CAAC;QACpB,O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E,CAAC;QACjB,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IACf,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var __awaiter =
|
|
3
|
+
(this && this.__awaiter) ||
|
|
4
|
+
function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) {
|
|
6
|
+
return value instanceof P ? value
|
|
7
|
+
: new P(function (resolve) {
|
|
8
|
+
resolve(value);
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
12
|
+
function fulfilled(value) {
|
|
13
|
+
try {
|
|
14
|
+
step(generator.next(value));
|
|
15
|
+
} catch (e) {
|
|
16
|
+
reject(e);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function rejected(value) {
|
|
20
|
+
try {
|
|
21
|
+
step(generator['throw'](value));
|
|
22
|
+
} catch (e) {
|
|
23
|
+
reject(e);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function step(result) {
|
|
27
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
28
|
+
}
|
|
29
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
33
|
+
const core_1 = require('../core');
|
|
34
|
+
const node_fetch_1 = require('node-fetch');
|
|
35
|
+
describe('response parsing', () => {
|
|
36
|
+
// TODO: test unicode characters
|
|
37
|
+
test('headers are case agnostic', () =>
|
|
38
|
+
__awaiter(void 0, void 0, void 0, function* () {
|
|
39
|
+
const headers = (0, core_1.createResponseHeaders)(
|
|
40
|
+
new node_fetch_1.Headers({ 'Content-Type': 'foo', Accept: 'text/plain' }),
|
|
41
|
+
);
|
|
42
|
+
expect(headers['content-type']).toEqual('foo');
|
|
43
|
+
expect(headers['Content-type']).toEqual('foo');
|
|
44
|
+
expect(headers['Content-Type']).toEqual('foo');
|
|
45
|
+
expect(headers['accept']).toEqual('text/plain');
|
|
46
|
+
expect(headers['Accept']).toEqual('text/plain');
|
|
47
|
+
expect(headers['Hello-World']).toBeUndefined();
|
|
48
|
+
}));
|
|
49
|
+
test('duplicate headers are concatenated', () => {
|
|
50
|
+
const headers = (0, core_1.createResponseHeaders)(
|
|
51
|
+
new node_fetch_1.Headers([
|
|
52
|
+
['Content-Type', 'text/xml'],
|
|
53
|
+
['Content-Type', 'application/json'],
|
|
54
|
+
]),
|
|
55
|
+
);
|
|
56
|
+
expect(headers['content-type']).toBe('text/xml, application/json');
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
//# sourceMappingURL=responses.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responses.test.js","sourceRoot":"","sources":["../../../tests/responses.test.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,iCAA+C;AAC/C,2CAAqC;AAErC,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,gCAAgC;IAChC,IAAI,CAAC,2BAA2B,EAAE,GAAS,EAAE;QAC3C,MAAM,OAAO,GAAG,IAAA,4BAAqB,EAAC,IAAI,oBAAO,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC;QACpG,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAC/C,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAC/C,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAC/C,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY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