snaptrade-typescript-sdk 9.0.200 → 10.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -2
- package/dist/chunk-e9Ob2GDo.mjs +26 -0
- package/dist/index.cjs +6594 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.d.mts +10422 -0
- package/dist/index.d.ts +1 -5
- package/dist/index.mjs +6527 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +27 -13
- package/dist/api/account-information-api-generated.d.ts +0 -950
- package/dist/api/account-information-api-generated.js +0 -1372
- package/dist/api/account-information-api.d.ts +0 -4
- package/dist/api/account-information-api.js +0 -22
- package/dist/api/api-status-api-generated.d.ts +0 -59
- package/dist/api/api-status-api-generated.js +0 -133
- package/dist/api/api-status-api.d.ts +0 -4
- package/dist/api/api-status-api.js +0 -22
- package/dist/api/authentication-api-generated.d.ts +0 -241
- package/dist/api/authentication-api-generated.js +0 -482
- package/dist/api/authentication-api.d.ts +0 -4
- package/dist/api/authentication-api.js +0 -22
- package/dist/api/connections-api-generated.d.ts +0 -576
- package/dist/api/connections-api-generated.js +0 -868
- package/dist/api/connections-api.d.ts +0 -4
- package/dist/api/connections-api.js +0 -22
- package/dist/api/options-api-generated.d.ts +0 -90
- package/dist/api/options-api-generated.js +0 -158
- package/dist/api/options-api.d.ts +0 -4
- package/dist/api/options-api.js +0 -22
- package/dist/api/reference-data-api-generated.d.ts +0 -497
- package/dist/api/reference-data-api-generated.js +0 -973
- package/dist/api/reference-data-api.d.ts +0 -4
- package/dist/api/reference-data-api.js +0 -22
- package/dist/api/trading-api-generated.d.ts +0 -1058
- package/dist/api/trading-api-generated.js +0 -1688
- package/dist/api/trading-api.d.ts +0 -4
- package/dist/api/trading-api.js +0 -22
- package/dist/api/transactions-and-reporting-api-generated.d.ts +0 -215
- package/dist/api/transactions-and-reporting-api-generated.js +0 -299
- package/dist/api/transactions-and-reporting-api.d.ts +0 -4
- package/dist/api/transactions-and-reporting-api.js +0 -22
- package/dist/api.d.ts +0 -8
- package/dist/api.js +0 -36
- package/dist/base.d.ts +0 -44
- package/dist/base.js +0 -60
- package/dist/browser.js +0 -2
- package/dist/browser.js.LICENSE.txt +0 -1
- package/dist/client-custom.d.ts +0 -4
- package/dist/client-custom.js +0 -7
- package/dist/client.d.ts +0 -14
- package/dist/client.js +0 -31
- package/dist/common.d.ts +0 -61
- package/dist/common.js +0 -220
- package/dist/configuration.d.ts +0 -98
- package/dist/configuration.js +0 -53
- package/dist/error.d.ts +0 -46
- package/dist/error.js +0 -105
- package/dist/index.js +0 -33
- package/dist/jest.config.d.ts +0 -3
- package/dist/jest.config.js +0 -13
- package/dist/mock.test.d.ts +0 -1
- package/dist/mock.test.js +0 -29
- package/dist/models/account-balance-total.d.ts +0 -19
- package/dist/models/account-balance-total.js +0 -2
- package/dist/models/account-balance.d.ts +0 -14
- package/dist/models/account-balance.js +0 -2
- package/dist/models/account-holdings-account.d.ts +0 -51
- package/dist/models/account-holdings-account.js +0 -2
- package/dist/models/account-holdings.d.ts +0 -37
- package/dist/models/account-holdings.js +0 -2
- package/dist/models/account-information-get-user-account-order-detail-request.d.ts +0 -13
- package/dist/models/account-information-get-user-account-order-detail-request.js +0 -2
- package/dist/models/account-order-record-child-brokerage-order-ids.d.ts +0 -19
- package/dist/models/account-order-record-child-brokerage-order-ids.js +0 -2
- package/dist/models/account-order-record-leg-instrument.d.ts +0 -38
- package/dist/models/account-order-record-leg-instrument.js +0 -2
- package/dist/models/account-order-record-leg.d.ts +0 -58
- package/dist/models/account-order-record-leg.js +0 -2
- package/dist/models/account-order-record-option-symbol.d.ts +0 -52
- package/dist/models/account-order-record-option-symbol.js +0 -2
- package/dist/models/account-order-record-quote-currency.d.ts +0 -25
- package/dist/models/account-order-record-quote-currency.js +0 -2
- package/dist/models/account-order-record-quote-universal-symbol.d.ts +0 -73
- package/dist/models/account-order-record-quote-universal-symbol.js +0 -2
- package/dist/models/account-order-record-status-v2.d.ts +0 -6
- package/dist/models/account-order-record-status-v2.js +0 -2
- package/dist/models/account-order-record-status.d.ts +0 -6
- package/dist/models/account-order-record-status.js +0 -2
- package/dist/models/account-order-record-trailing-stop.d.ts +0 -21
- package/dist/models/account-order-record-trailing-stop.js +0 -2
- package/dist/models/account-order-record-universal-symbol.d.ts +0 -73
- package/dist/models/account-order-record-universal-symbol.js +0 -2
- package/dist/models/account-order-record-v2.d.ts +0 -97
- package/dist/models/account-order-record-v2.js +0 -2
- package/dist/models/account-order-record.d.ts +0 -168
- package/dist/models/account-order-record.js +0 -2
- package/dist/models/account-orders-v2-response.d.ts +0 -15
- package/dist/models/account-orders-v2-response.js +0 -2
- package/dist/models/account-position.d.ts +0 -52
- package/dist/models/account-position.js +0 -2
- package/dist/models/account-simple.d.ts +0 -39
- package/dist/models/account-simple.js +0 -2
- package/dist/models/account-sync-status.d.ts +0 -21
- package/dist/models/account-sync-status.js +0 -2
- package/dist/models/account-universal-activity-currency.d.ts +0 -25
- package/dist/models/account-universal-activity-currency.js +0 -2
- package/dist/models/account-universal-activity-option-symbol.d.ts +0 -52
- package/dist/models/account-universal-activity-option-symbol.js +0 -2
- package/dist/models/account-universal-activity-symbol.d.ts +0 -65
- package/dist/models/account-universal-activity-symbol.js +0 -2
- package/dist/models/account-universal-activity.d.ts +0 -107
- package/dist/models/account-universal-activity.js +0 -2
- package/dist/models/account-value-history-item.d.ts +0 -20
- package/dist/models/account-value-history-item.js +0 -2
- package/dist/models/account-value-history-response.d.ts +0 -21
- package/dist/models/account-value-history-response.js +0 -2
- package/dist/models/account.d.ts +0 -126
- package/dist/models/account.js +0 -2
- package/dist/models/action-strict-with-options.d.ts +0 -6
- package/dist/models/action-strict-with-options.js +0 -2
- package/dist/models/action-strict.d.ts +0 -6
- package/dist/models/action-strict.js +0 -2
- package/dist/models/adr-instrument.d.ts +0 -59
- package/dist/models/adr-instrument.js +0 -2
- package/dist/models/all-account-positions-response.d.ts +0 -15
- package/dist/models/all-account-positions-response.js +0 -2
- package/dist/models/authentication-login-snap-trade-user200-response.d.ts +0 -7
- package/dist/models/authentication-login-snap-trade-user200-response.js +0 -2
- package/dist/models/balance-currency.d.ts +0 -25
- package/dist/models/balance-currency.js +0 -2
- package/dist/models/balance.d.ts +0 -27
- package/dist/models/balance.js +0 -2
- package/dist/models/brokerage-authorization-disabled-confirmation.d.ts +0 -14
- package/dist/models/brokerage-authorization-disabled-confirmation.js +0 -2
- package/dist/models/brokerage-authorization-refresh-confirmation.d.ts +0 -14
- package/dist/models/brokerage-authorization-refresh-confirmation.js +0 -2
- package/dist/models/brokerage-authorization-transactions-sync-confirmation.d.ts +0 -14
- package/dist/models/brokerage-authorization-transactions-sync-confirmation.js +0 -2
- package/dist/models/brokerage-authorization-type-read-only-brokerage.d.ts +0 -26
- package/dist/models/brokerage-authorization-type-read-only-brokerage.js +0 -2
- package/dist/models/brokerage-authorization-type-read-only.d.ts +0 -36
- package/dist/models/brokerage-authorization-type-read-only.js +0 -2
- package/dist/models/brokerage-authorization.d.ts +0 -73
- package/dist/models/brokerage-authorization.js +0 -2
- package/dist/models/brokerage-instrument.d.ts +0 -38
- package/dist/models/brokerage-instrument.js +0 -2
- package/dist/models/brokerage-instruments-response.d.ts +0 -15
- package/dist/models/brokerage-instruments-response.js +0 -2
- package/dist/models/brokerage-type.d.ts +0 -20
- package/dist/models/brokerage-type.js +0 -2
- package/dist/models/brokerage.d.ts +0 -122
- package/dist/models/brokerage.js +0 -2
- package/dist/models/cancel-order-response.d.ts +0 -22
- package/dist/models/cancel-order-response.js +0 -2
- package/dist/models/cef-instrument.d.ts +0 -59
- package/dist/models/cef-instrument.js +0 -2
- package/dist/models/child-brokerage-order-ids.d.ts +0 -20
- package/dist/models/child-brokerage-order-ids.js +0 -2
- package/dist/models/complex-order-leg.d.ts +0 -62
- package/dist/models/complex-order-leg.js +0 -2
- package/dist/models/complex-order-response.d.ts +0 -22
- package/dist/models/complex-order-response.js +0 -2
- package/dist/models/connections-session-events200-response-inner.d.ts +0 -6
- package/dist/models/connections-session-events200-response-inner.js +0 -2
- package/dist/models/crypto-instrument.d.ts +0 -59
- package/dist/models/crypto-instrument.js +0 -2
- package/dist/models/crypto-order-form.d.ts +0 -66
- package/dist/models/crypto-order-form.js +0 -2
- package/dist/models/crypto-order-preview-estimated-fee.d.ts +0 -20
- package/dist/models/crypto-order-preview-estimated-fee.js +0 -2
- package/dist/models/crypto-order-preview.d.ts +0 -15
- package/dist/models/crypto-order-preview.js +0 -2
- package/dist/models/crypto-trading-instrument.d.ts +0 -22
- package/dist/models/crypto-trading-instrument.js +0 -2
- package/dist/models/cryptocurrency-pair-quote.d.ts +0 -32
- package/dist/models/cryptocurrency-pair-quote.js +0 -2
- package/dist/models/cryptocurrency-pair.d.ts +0 -32
- package/dist/models/cryptocurrency-pair.js +0 -2
- package/dist/models/currency.d.ts +0 -26
- package/dist/models/currency.js +0 -2
- package/dist/models/delete-connection-confirmation.d.ts +0 -20
- package/dist/models/delete-connection-confirmation.js +0 -2
- package/dist/models/delete-user-response.d.ts +0 -26
- package/dist/models/delete-user-response.js +0 -2
- package/dist/models/dividend-at-date.d.ts +0 -26
- package/dist/models/dividend-at-date.js +0 -2
- package/dist/models/encrypted-response-encrypted-message-data.d.ts +0 -26
- package/dist/models/encrypted-response-encrypted-message-data.js +0 -2
- package/dist/models/encrypted-response.d.ts +0 -20
- package/dist/models/encrypted-response.js +0 -2
- package/dist/models/etf-instrument.d.ts +0 -59
- package/dist/models/etf-instrument.js +0 -2
- package/dist/models/exchange-rate-pairs.d.ts +0 -27
- package/dist/models/exchange-rate-pairs.js +0 -2
- package/dist/models/exchange.d.ts +0 -56
- package/dist/models/exchange.js +0 -2
- package/dist/models/figi-instrument.d.ts +0 -20
- package/dist/models/figi-instrument.js +0 -2
- package/dist/models/future-instrument.d.ts +0 -64
- package/dist/models/future-instrument.js +0 -2
- package/dist/models/holdings-status.d.ts +0 -19
- package/dist/models/holdings-status.js +0 -2
- package/dist/models/index.d.ts +0 -173
- package/dist/models/index.js +0 -189
- package/dist/models/instrument.d.ts +0 -33
- package/dist/models/instrument.js +0 -2
- package/dist/models/login-redirect-uri.d.ts +0 -19
- package/dist/models/login-redirect-uri.js +0 -2
- package/dist/models/manual-trade-and-impact.d.ts +0 -29
- package/dist/models/manual-trade-and-impact.js +0 -2
- package/dist/models/manual-trade-balance.d.ts +0 -28
- package/dist/models/manual-trade-balance.js +0 -2
- package/dist/models/manual-trade-form-bracket.d.ts +0 -67
- package/dist/models/manual-trade-form-bracket.js +0 -2
- package/dist/models/manual-trade-form-complex.d.ts +0 -28
- package/dist/models/manual-trade-form-complex.js +0 -2
- package/dist/models/manual-trade-form-notional-value.d.ts +0 -6
- package/dist/models/manual-trade-form-notional-value.js +0 -2
- package/dist/models/manual-trade-form-with-options.d.ts +0 -78
- package/dist/models/manual-trade-form-with-options.js +0 -2
- package/dist/models/manual-trade-form.d.ts +0 -65
- package/dist/models/manual-trade-form.js +0 -2
- package/dist/models/manual-trade-impact.d.ts +0 -38
- package/dist/models/manual-trade-impact.js +0 -2
- package/dist/models/manual-trade-replace-form.d.ts +0 -58
- package/dist/models/manual-trade-replace-form.js +0 -2
- package/dist/models/manual-trade-symbol.d.ts +0 -49
- package/dist/models/manual-trade-symbol.js +0 -2
- package/dist/models/manual-trade.d.ts +0 -60
- package/dist/models/manual-trade.js +0 -2
- package/dist/models/mleg-action-strict.d.ts +0 -6
- package/dist/models/mleg-action-strict.js +0 -2
- package/dist/models/mleg-instrument-type.d.ts +0 -6
- package/dist/models/mleg-instrument-type.js +0 -2
- package/dist/models/mleg-leg.d.ts +0 -28
- package/dist/models/mleg-leg.js +0 -2
- package/dist/models/mleg-order-response.d.ts +0 -21
- package/dist/models/mleg-order-response.js +0 -2
- package/dist/models/mleg-order-type-strict.d.ts +0 -6
- package/dist/models/mleg-order-type-strict.js +0 -2
- package/dist/models/mleg-price-effect-strict.d.ts +0 -6
- package/dist/models/mleg-price-effect-strict.js +0 -2
- package/dist/models/mleg-trade-form.d.ts +0 -47
- package/dist/models/mleg-trade-form.js +0 -2
- package/dist/models/mleg-trading-instrument.d.ts +0 -21
- package/dist/models/mleg-trading-instrument.js +0 -2
- package/dist/models/model400-failed-request-response.d.ts +0 -20
- package/dist/models/model400-failed-request-response.js +0 -2
- package/dist/models/model401-failed-request-response.d.ts +0 -20
- package/dist/models/model401-failed-request-response.js +0 -2
- package/dist/models/model402-brokerage-auth-already-disabled-exception.d.ts +0 -20
- package/dist/models/model402-brokerage-auth-already-disabled-exception.js +0 -2
- package/dist/models/model402-brokerage-auth-disabled-response.d.ts +0 -20
- package/dist/models/model402-brokerage-auth-disabled-response.js +0 -2
- package/dist/models/model403-failed-request-response.d.ts +0 -20
- package/dist/models/model403-failed-request-response.js +0 -2
- package/dist/models/model403-feature-not-enabled-response.d.ts +0 -20
- package/dist/models/model403-feature-not-enabled-response.js +0 -2
- package/dist/models/model404-failed-request-response.d.ts +0 -20
- package/dist/models/model404-failed-request-response.js +0 -2
- package/dist/models/model425-failed-request-response.d.ts +0 -20
- package/dist/models/model425-failed-request-response.js +0 -2
- package/dist/models/model500-unexpected-exception-response.d.ts +0 -26
- package/dist/models/model500-unexpected-exception-response.js +0 -2
- package/dist/models/monthly-dividends.d.ts +0 -21
- package/dist/models/monthly-dividends.js +0 -2
- package/dist/models/mutual-fund-instrument.d.ts +0 -59
- package/dist/models/mutual-fund-instrument.js +0 -2
- package/dist/models/net-contributions.d.ts +0 -26
- package/dist/models/net-contributions.js +0 -2
- package/dist/models/net-dividend.d.ts +0 -27
- package/dist/models/net-dividend.js +0 -2
- package/dist/models/notional-value.d.ts +0 -6
- package/dist/models/notional-value.js +0 -2
- package/dist/models/option-brokerage-symbol.d.ts +0 -29
- package/dist/models/option-brokerage-symbol.js +0 -2
- package/dist/models/option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner.d.ts +0 -26
- package/dist/models/option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner.js +0 -2
- package/dist/models/option-chain-inner-chain-per-root-inner.d.ts +0 -27
- package/dist/models/option-chain-inner-chain-per-root-inner.js +0 -2
- package/dist/models/option-chain-inner.d.ts +0 -39
- package/dist/models/option-chain-inner.js +0 -2
- package/dist/models/option-impact.d.ts +0 -28
- package/dist/models/option-impact.js +0 -2
- package/dist/models/option-instrument.d.ts +0 -60
- package/dist/models/option-instrument.js +0 -2
- package/dist/models/option-leg.d.ts +0 -28
- package/dist/models/option-leg.js +0 -2
- package/dist/models/option-quote-greeks.d.ts +0 -32
- package/dist/models/option-quote-greeks.js +0 -2
- package/dist/models/option-quote.d.ts +0 -39
- package/dist/models/option-quote.js +0 -2
- package/dist/models/option-strategy-legs-inner.d.ts +0 -31
- package/dist/models/option-strategy-legs-inner.js +0 -2
- package/dist/models/option-strategy.d.ts +0 -40
- package/dist/models/option-strategy.js +0 -2
- package/dist/models/options-position-currency.d.ts +0 -25
- package/dist/models/options-position-currency.js +0 -2
- package/dist/models/options-position.d.ts +0 -41
- package/dist/models/options-position.js +0 -2
- package/dist/models/options-symbol.d.ts +0 -53
- package/dist/models/options-symbol.js +0 -2
- package/dist/models/order-type-strict.d.ts +0 -6
- package/dist/models/order-type-strict.js +0 -2
- package/dist/models/order-updated-response-order.d.ts +0 -167
- package/dist/models/order-updated-response-order.js +0 -2
- package/dist/models/order-updated-response.d.ts +0 -21
- package/dist/models/order-updated-response.js +0 -2
- package/dist/models/other-instrument.d.ts +0 -59
- package/dist/models/other-instrument.js +0 -2
- package/dist/models/paginated-universal-activity.d.ts +0 -22
- package/dist/models/paginated-universal-activity.js +0 -2
- package/dist/models/pagination-details.d.ts +0 -26
- package/dist/models/pagination-details.js +0 -2
- package/dist/models/partner-data.d.ts +0 -82
- package/dist/models/partner-data.js +0 -2
- package/dist/models/past-value.d.ts +0 -26
- package/dist/models/past-value.js +0 -2
- package/dist/models/performance-custom.d.ts +0 -127
- package/dist/models/performance-custom.js +0 -2
- package/dist/models/position-currency.d.ts +0 -25
- package/dist/models/position-currency.js +0 -2
- package/dist/models/position-symbol.d.ts +0 -50
- package/dist/models/position-symbol.js +0 -2
- package/dist/models/position.d.ts +0 -66
- package/dist/models/position.js +0 -2
- package/dist/models/rate-of-return-object.d.ts +0 -28
- package/dist/models/rate-of-return-object.js +0 -2
- package/dist/models/rate-of-return-response.d.ts +0 -15
- package/dist/models/rate-of-return-response.js +0 -2
- package/dist/models/recent-orders-response.d.ts +0 -15
- package/dist/models/recent-orders-response.js +0 -2
- package/dist/models/security-type.d.ts +0 -33
- package/dist/models/security-type.js +0 -2
- package/dist/models/session-event.d.ts +0 -52
- package/dist/models/session-event.js +0 -2
- package/dist/models/simple-order-form.d.ts +0 -67
- package/dist/models/simple-order-form.js +0 -2
- package/dist/models/snap-trade-holdings-account.d.ts +0 -60
- package/dist/models/snap-trade-holdings-account.js +0 -2
- package/dist/models/snap-trade-holdings-total-value.d.ts +0 -20
- package/dist/models/snap-trade-holdings-total-value.js +0 -2
- package/dist/models/snap-trade-login-user-request-body.d.ts +0 -58
- package/dist/models/snap-trade-login-user-request-body.js +0 -2
- package/dist/models/snap-trade-register-user-request-body.d.ts +0 -13
- package/dist/models/snap-trade-register-user-request-body.js +0 -2
- package/dist/models/status.d.ts +0 -26
- package/dist/models/status.js +0 -2
- package/dist/models/stock-instrument-figi-instrument.d.ts +0 -19
- package/dist/models/stock-instrument-figi-instrument.js +0 -2
- package/dist/models/stock-instrument.d.ts +0 -59
- package/dist/models/stock-instrument.js +0 -2
- package/dist/models/stop-loss.d.ts +0 -20
- package/dist/models/stop-loss.js +0 -2
- package/dist/models/strategy-order-record.d.ts +0 -77
- package/dist/models/strategy-order-record.js +0 -2
- package/dist/models/strategy-quotes-greek.d.ts +0 -38
- package/dist/models/strategy-quotes-greek.js +0 -2
- package/dist/models/strategy-quotes.d.ts +0 -46
- package/dist/models/strategy-quotes.js +0 -2
- package/dist/models/sub-period-return-rate.d.ts +0 -26
- package/dist/models/sub-period-return-rate.js +0 -2
- package/dist/models/symbol-currency.d.ts +0 -25
- package/dist/models/symbol-currency.js +0 -2
- package/dist/models/symbol-exchange.d.ts +0 -55
- package/dist/models/symbol-exchange.js +0 -2
- package/dist/models/symbol-query.d.ts +0 -13
- package/dist/models/symbol-query.js +0 -2
- package/dist/models/symbol.d.ts +0 -66
- package/dist/models/symbol.js +0 -2
- package/dist/models/symbols-quotes-inner.d.ts +0 -44
- package/dist/models/symbols-quotes-inner.js +0 -2
- package/dist/models/take-profit.d.ts +0 -14
- package/dist/models/take-profit.js +0 -2
- package/dist/models/tax-lot.d.ts +0 -50
- package/dist/models/tax-lot.js +0 -2
- package/dist/models/time-in-force-strict.d.ts +0 -6
- package/dist/models/time-in-force-strict.js +0 -2
- package/dist/models/trade-detection-cancel-subscription-response.d.ts +0 -14
- package/dist/models/trade-detection-cancel-subscription-response.js +0 -2
- package/dist/models/trade-detection-subscription.d.ts +0 -26
- package/dist/models/trade-detection-subscription.js +0 -2
- package/dist/models/trading-instrument.d.ts +0 -22
- package/dist/models/trading-instrument.js +0 -2
- package/dist/models/trading-search-cryptocurrency-pair-instruments200-response.d.ts +0 -15
- package/dist/models/trading-search-cryptocurrency-pair-instruments200-response.js +0 -2
- package/dist/models/trading-session.d.ts +0 -6
- package/dist/models/trading-session.js +0 -2
- package/dist/models/trailing-stop.d.ts +0 -22
- package/dist/models/trailing-stop.js +0 -2
- package/dist/models/transactions-status.d.ts +0 -25
- package/dist/models/transactions-status.js +0 -2
- package/dist/models/underlying-option-instrument.d.ts +0 -27
- package/dist/models/underlying-option-instrument.js +0 -2
- package/dist/models/underlying-symbol-exchange.d.ts +0 -61
- package/dist/models/underlying-symbol-exchange.js +0 -2
- package/dist/models/underlying-symbol-type.d.ts +0 -32
- package/dist/models/underlying-symbol-type.js +0 -2
- package/dist/models/underlying-symbol.d.ts +0 -74
- package/dist/models/underlying-symbol.js +0 -2
- package/dist/models/universal-activity.d.ts +0 -114
- package/dist/models/universal-activity.js +0 -2
- package/dist/models/universal-symbol.d.ts +0 -74
- package/dist/models/universal-symbol.js +0 -2
- package/dist/models/user-idand-secret.d.ts +0 -19
- package/dist/models/user-idand-secret.js +0 -2
- package/dist/models/usexchange.d.ts +0 -62
- package/dist/models/usexchange.js +0 -2
- package/dist/models/validated-trade-body.d.ts +0 -13
- package/dist/models/validated-trade-body.js +0 -2
- package/dist/operationParameterMap.d.ts +0 -8
- package/dist/operationParameterMap.js +0 -966
- package/dist/pagination/page-types.d.ts +0 -16
- package/dist/pagination/page-types.js +0 -12
- package/dist/pagination/page.d.ts +0 -25
- package/dist/pagination/page.js +0 -32
- package/dist/pagination/pageable.d.ts +0 -47
- package/dist/pagination/pageable.js +0 -70
- package/dist/pagination/paginate.d.ts +0 -6
- package/dist/pagination/paginate.js +0 -39
- package/dist/requestAfterHook.d.ts +0 -8
- package/dist/requestAfterHook.js +0 -82
- package/dist/requestBeforeHook.d.ts +0 -10
- package/dist/requestBeforeHook.js +0 -8
- package/dist/requestBeforeUrlHook.d.ts +0 -7
- package/dist/requestBeforeUrlHook.js +0 -5
|
@@ -1,482 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/*
|
|
5
|
-
SnapTrade
|
|
6
|
-
|
|
7
|
-
Connect brokerage accounts to your app for live positions and trading
|
|
8
|
-
|
|
9
|
-
The version of the OpenAPI document: 1.0.0
|
|
10
|
-
Contact: api@snaptrade.com
|
|
11
|
-
|
|
12
|
-
NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
13
|
-
*/
|
|
14
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.AuthenticationApiGenerated = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = void 0;
|
|
25
|
-
const axios_1 = require("axios");
|
|
26
|
-
// Some imports not used depending on template conditions
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
const common_1 = require("../common");
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
const base_1 = require("../base");
|
|
31
|
-
const requestBeforeHook_1 = require("../requestBeforeHook");
|
|
32
|
-
/**
|
|
33
|
-
* AuthenticationApi - axios parameter creator
|
|
34
|
-
* @export
|
|
35
|
-
*/
|
|
36
|
-
const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
37
|
-
return {
|
|
38
|
-
/**
|
|
39
|
-
* Deletes a registered user and all associated data. This action is irreversible. This API is asynchronous and will return a 200 status code if the request is accepted. The user and all associated data will be queued for deletion. Once deleted, a `USER_DELETED` webhook will be sent.
|
|
40
|
-
* @summary Delete user
|
|
41
|
-
* @param {string} userId
|
|
42
|
-
* @param {*} [options] Override http request option.
|
|
43
|
-
* @throws {RequiredError}
|
|
44
|
-
*/
|
|
45
|
-
deleteSnapTradeUser: (userId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
46
|
-
// verify required parameter 'userId' is not null or undefined
|
|
47
|
-
(0, common_1.assertParamExists)('deleteSnapTradeUser', 'userId', userId);
|
|
48
|
-
const localVarPath = `/snapTrade/deleteUser`;
|
|
49
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
51
|
-
let baseOptions;
|
|
52
|
-
if (configuration) {
|
|
53
|
-
baseOptions = configuration.baseOptions;
|
|
54
|
-
}
|
|
55
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
56
|
-
const localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
57
|
-
const localVarQueryParameter = {};
|
|
58
|
-
// authentication PartnerClientId required
|
|
59
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "clientId", keyParamName: "clientId", configuration });
|
|
60
|
-
// authentication PartnerSignature required
|
|
61
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, key: "Signature", keyParamName: "signature", configuration });
|
|
62
|
-
// authentication PartnerTimestamp required
|
|
63
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "timestamp", keyParamName: "timestamp", configuration });
|
|
64
|
-
if (userId !== undefined) {
|
|
65
|
-
localVarQueryParameter['userId'] = userId;
|
|
66
|
-
}
|
|
67
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
68
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
69
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
70
|
-
queryParameters: localVarQueryParameter,
|
|
71
|
-
requestConfig: localVarRequestOptions,
|
|
72
|
-
path: localVarPath,
|
|
73
|
-
configuration,
|
|
74
|
-
pathTemplate: '/snapTrade/deleteUser',
|
|
75
|
-
httpMethod: 'DELETE'
|
|
76
|
-
});
|
|
77
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
78
|
-
return {
|
|
79
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
80
|
-
options: localVarRequestOptions,
|
|
81
|
-
};
|
|
82
|
-
}),
|
|
83
|
-
/**
|
|
84
|
-
* Returns a list of all registered user IDs. Please note that the response is not currently paginated.
|
|
85
|
-
* @summary List all users
|
|
86
|
-
* @param {*} [options] Override http request option.
|
|
87
|
-
* @throws {RequiredError}
|
|
88
|
-
*/
|
|
89
|
-
listSnapTradeUsers: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
90
|
-
const localVarPath = `/snapTrade/listUsers`;
|
|
91
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
92
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
93
|
-
let baseOptions;
|
|
94
|
-
if (configuration) {
|
|
95
|
-
baseOptions = configuration.baseOptions;
|
|
96
|
-
}
|
|
97
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
98
|
-
const localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
99
|
-
const localVarQueryParameter = {};
|
|
100
|
-
// authentication PartnerClientId required
|
|
101
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "clientId", keyParamName: "clientId", configuration });
|
|
102
|
-
// authentication PartnerSignature required
|
|
103
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, key: "Signature", keyParamName: "signature", configuration });
|
|
104
|
-
// authentication PartnerTimestamp required
|
|
105
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "timestamp", keyParamName: "timestamp", configuration });
|
|
106
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
107
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
108
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
109
|
-
queryParameters: localVarQueryParameter,
|
|
110
|
-
requestConfig: localVarRequestOptions,
|
|
111
|
-
path: localVarPath,
|
|
112
|
-
configuration,
|
|
113
|
-
pathTemplate: '/snapTrade/listUsers',
|
|
114
|
-
httpMethod: 'GET'
|
|
115
|
-
});
|
|
116
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
117
|
-
return {
|
|
118
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
119
|
-
options: localVarRequestOptions,
|
|
120
|
-
};
|
|
121
|
-
}),
|
|
122
|
-
/**
|
|
123
|
-
* Authenticates a SnapTrade user and returns the Connection Portal URL used for connecting brokerage accounts. Please check [this guide](/docs/implement-connection-portal) for how to integrate the Connection Portal into your app. Please note that the returned URL expires in 5 minutes.
|
|
124
|
-
* @summary Generate Connection Portal URL
|
|
125
|
-
* @param {string} userId
|
|
126
|
-
* @param {string} userSecret
|
|
127
|
-
* @param {SnapTradeLoginUserRequestBody} [snapTradeLoginUserRequestBody]
|
|
128
|
-
* @param {*} [options] Override http request option.
|
|
129
|
-
* @throws {RequiredError}
|
|
130
|
-
*/
|
|
131
|
-
loginSnapTradeUser: (userId, userSecret, snapTradeLoginUserRequestBody, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
132
|
-
// verify required parameter 'userId' is not null or undefined
|
|
133
|
-
(0, common_1.assertParamExists)('loginSnapTradeUser', 'userId', userId);
|
|
134
|
-
// verify required parameter 'userSecret' is not null or undefined
|
|
135
|
-
(0, common_1.assertParamExists)('loginSnapTradeUser', 'userSecret', userSecret);
|
|
136
|
-
const localVarPath = `/snapTrade/login`;
|
|
137
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
138
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
139
|
-
let baseOptions;
|
|
140
|
-
if (configuration) {
|
|
141
|
-
baseOptions = configuration.baseOptions;
|
|
142
|
-
}
|
|
143
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
144
|
-
const localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
145
|
-
const localVarQueryParameter = {};
|
|
146
|
-
// authentication PartnerClientId required
|
|
147
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "clientId", keyParamName: "clientId", configuration });
|
|
148
|
-
// authentication PartnerSignature required
|
|
149
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, key: "Signature", keyParamName: "signature", configuration });
|
|
150
|
-
// authentication PartnerTimestamp required
|
|
151
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "timestamp", keyParamName: "timestamp", configuration });
|
|
152
|
-
if (userId !== undefined) {
|
|
153
|
-
localVarQueryParameter['userId'] = userId;
|
|
154
|
-
}
|
|
155
|
-
if (userSecret !== undefined) {
|
|
156
|
-
localVarQueryParameter['userSecret'] = userSecret;
|
|
157
|
-
}
|
|
158
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
159
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
160
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
161
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
162
|
-
requestBody: snapTradeLoginUserRequestBody,
|
|
163
|
-
queryParameters: localVarQueryParameter,
|
|
164
|
-
requestConfig: localVarRequestOptions,
|
|
165
|
-
path: localVarPath,
|
|
166
|
-
configuration,
|
|
167
|
-
pathTemplate: '/snapTrade/login',
|
|
168
|
-
httpMethod: 'POST'
|
|
169
|
-
});
|
|
170
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(snapTradeLoginUserRequestBody, localVarRequestOptions, configuration);
|
|
171
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
172
|
-
return {
|
|
173
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
174
|
-
options: localVarRequestOptions,
|
|
175
|
-
};
|
|
176
|
-
}),
|
|
177
|
-
/**
|
|
178
|
-
* Registers a new SnapTrade user under your Client ID. A user secret will be automatically generated for you and must be properly stored in your system. Most SnapTrade operations require a user ID and user secret to be passed in as parameters.
|
|
179
|
-
* @summary Register user
|
|
180
|
-
* @param {SnapTradeRegisterUserRequestBody} snapTradeRegisterUserRequestBody
|
|
181
|
-
* @param {*} [options] Override http request option.
|
|
182
|
-
* @throws {RequiredError}
|
|
183
|
-
*/
|
|
184
|
-
registerSnapTradeUser: (snapTradeRegisterUserRequestBody, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
185
|
-
// verify required parameter 'snapTradeRegisterUserRequestBody' is not null or undefined
|
|
186
|
-
(0, common_1.assertParamExists)('registerSnapTradeUser', 'snapTradeRegisterUserRequestBody', snapTradeRegisterUserRequestBody);
|
|
187
|
-
const localVarPath = `/snapTrade/registerUser`;
|
|
188
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
189
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
190
|
-
let baseOptions;
|
|
191
|
-
if (configuration) {
|
|
192
|
-
baseOptions = configuration.baseOptions;
|
|
193
|
-
}
|
|
194
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
195
|
-
const localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
196
|
-
const localVarQueryParameter = {};
|
|
197
|
-
// authentication PartnerClientId required
|
|
198
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "clientId", keyParamName: "clientId", configuration });
|
|
199
|
-
// authentication PartnerSignature required
|
|
200
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, key: "Signature", keyParamName: "signature", configuration });
|
|
201
|
-
// authentication PartnerTimestamp required
|
|
202
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "timestamp", keyParamName: "timestamp", configuration });
|
|
203
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
204
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
205
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
206
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
207
|
-
requestBody: snapTradeRegisterUserRequestBody,
|
|
208
|
-
queryParameters: localVarQueryParameter,
|
|
209
|
-
requestConfig: localVarRequestOptions,
|
|
210
|
-
path: localVarPath,
|
|
211
|
-
configuration,
|
|
212
|
-
pathTemplate: '/snapTrade/registerUser',
|
|
213
|
-
httpMethod: 'POST'
|
|
214
|
-
});
|
|
215
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(snapTradeRegisterUserRequestBody, localVarRequestOptions, configuration);
|
|
216
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
217
|
-
return {
|
|
218
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
219
|
-
options: localVarRequestOptions,
|
|
220
|
-
};
|
|
221
|
-
}),
|
|
222
|
-
/**
|
|
223
|
-
* Rotates the secret for a SnapTrade user. You might use this if `userSecret` is compromised. Please note that if you call this endpoint and fail to save the new secret, you\'ll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
|
|
224
|
-
* @summary Rotate user secret
|
|
225
|
-
* @param {UserIDandSecret} userIDandSecret
|
|
226
|
-
* @param {*} [options] Override http request option.
|
|
227
|
-
* @throws {RequiredError}
|
|
228
|
-
*/
|
|
229
|
-
resetSnapTradeUserSecret: (userIDandSecret, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
230
|
-
// verify required parameter 'userIDandSecret' is not null or undefined
|
|
231
|
-
(0, common_1.assertParamExists)('resetSnapTradeUserSecret', 'userIDandSecret', userIDandSecret);
|
|
232
|
-
const localVarPath = `/snapTrade/resetUserSecret`;
|
|
233
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
234
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
235
|
-
let baseOptions;
|
|
236
|
-
if (configuration) {
|
|
237
|
-
baseOptions = configuration.baseOptions;
|
|
238
|
-
}
|
|
239
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
240
|
-
const localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
241
|
-
const localVarQueryParameter = {};
|
|
242
|
-
// authentication PartnerClientId required
|
|
243
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "clientId", keyParamName: "clientId", configuration });
|
|
244
|
-
// authentication PartnerSignature required
|
|
245
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, key: "Signature", keyParamName: "signature", configuration });
|
|
246
|
-
// authentication PartnerTimestamp required
|
|
247
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "timestamp", keyParamName: "timestamp", configuration });
|
|
248
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
249
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
250
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
251
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
252
|
-
requestBody: userIDandSecret,
|
|
253
|
-
queryParameters: localVarQueryParameter,
|
|
254
|
-
requestConfig: localVarRequestOptions,
|
|
255
|
-
path: localVarPath,
|
|
256
|
-
configuration,
|
|
257
|
-
pathTemplate: '/snapTrade/resetUserSecret',
|
|
258
|
-
httpMethod: 'POST'
|
|
259
|
-
});
|
|
260
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(userIDandSecret, localVarRequestOptions, configuration);
|
|
261
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
262
|
-
return {
|
|
263
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
264
|
-
options: localVarRequestOptions,
|
|
265
|
-
};
|
|
266
|
-
}),
|
|
267
|
-
};
|
|
268
|
-
};
|
|
269
|
-
exports.AuthenticationApiAxiosParamCreator = AuthenticationApiAxiosParamCreator;
|
|
270
|
-
/**
|
|
271
|
-
* AuthenticationApi - functional programming interface
|
|
272
|
-
* @export
|
|
273
|
-
*/
|
|
274
|
-
const AuthenticationApiFp = function (configuration) {
|
|
275
|
-
const localVarAxiosParamCreator = (0, exports.AuthenticationApiAxiosParamCreator)(configuration);
|
|
276
|
-
return {
|
|
277
|
-
/**
|
|
278
|
-
* Deletes a registered user and all associated data. This action is irreversible. This API is asynchronous and will return a 200 status code if the request is accepted. The user and all associated data will be queued for deletion. Once deleted, a `USER_DELETED` webhook will be sent.
|
|
279
|
-
* @summary Delete user
|
|
280
|
-
* @param {AuthenticationApiDeleteSnapTradeUserRequest} requestParameters Request parameters.
|
|
281
|
-
* @param {*} [options] Override http request option.
|
|
282
|
-
* @throws {RequiredError}
|
|
283
|
-
*/
|
|
284
|
-
deleteSnapTradeUser(requestParameters, options) {
|
|
285
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
286
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSnapTradeUser(requestParameters.userId, options);
|
|
287
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
288
|
-
});
|
|
289
|
-
},
|
|
290
|
-
/**
|
|
291
|
-
* Returns a list of all registered user IDs. Please note that the response is not currently paginated.
|
|
292
|
-
* @summary List all users
|
|
293
|
-
* @param {*} [options] Override http request option.
|
|
294
|
-
* @throws {RequiredError}
|
|
295
|
-
*/
|
|
296
|
-
listSnapTradeUsers(options) {
|
|
297
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
298
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSnapTradeUsers(options);
|
|
299
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
300
|
-
});
|
|
301
|
-
},
|
|
302
|
-
/**
|
|
303
|
-
* Authenticates a SnapTrade user and returns the Connection Portal URL used for connecting brokerage accounts. Please check [this guide](/docs/implement-connection-portal) for how to integrate the Connection Portal into your app. Please note that the returned URL expires in 5 minutes.
|
|
304
|
-
* @summary Generate Connection Portal URL
|
|
305
|
-
* @param {AuthenticationApiLoginSnapTradeUserRequest} requestParameters Request parameters.
|
|
306
|
-
* @param {*} [options] Override http request option.
|
|
307
|
-
* @throws {RequiredError}
|
|
308
|
-
*/
|
|
309
|
-
loginSnapTradeUser(requestParameters, options) {
|
|
310
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
311
|
-
const snapTradeLoginUserRequestBody = {
|
|
312
|
-
broker: requestParameters.broker,
|
|
313
|
-
immediateRedirect: requestParameters.immediateRedirect,
|
|
314
|
-
customRedirect: requestParameters.customRedirect,
|
|
315
|
-
reconnect: requestParameters.reconnect,
|
|
316
|
-
connectionType: requestParameters.connectionType,
|
|
317
|
-
showCloseButton: requestParameters.showCloseButton,
|
|
318
|
-
darkMode: requestParameters.darkMode,
|
|
319
|
-
connectionPortalVersion: requestParameters.connectionPortalVersion
|
|
320
|
-
};
|
|
321
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.loginSnapTradeUser(requestParameters.userId, requestParameters.userSecret, snapTradeLoginUserRequestBody, options);
|
|
322
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
323
|
-
});
|
|
324
|
-
},
|
|
325
|
-
/**
|
|
326
|
-
* Registers a new SnapTrade user under your Client ID. A user secret will be automatically generated for you and must be properly stored in your system. Most SnapTrade operations require a user ID and user secret to be passed in as parameters.
|
|
327
|
-
* @summary Register user
|
|
328
|
-
* @param {AuthenticationApiRegisterSnapTradeUserRequest} requestParameters Request parameters.
|
|
329
|
-
* @param {*} [options] Override http request option.
|
|
330
|
-
* @throws {RequiredError}
|
|
331
|
-
*/
|
|
332
|
-
registerSnapTradeUser(requestParameters, options) {
|
|
333
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
334
|
-
const snapTradeRegisterUserRequestBody = {
|
|
335
|
-
userId: requestParameters.userId
|
|
336
|
-
};
|
|
337
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.registerSnapTradeUser(snapTradeRegisterUserRequestBody, options);
|
|
338
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
339
|
-
});
|
|
340
|
-
},
|
|
341
|
-
/**
|
|
342
|
-
* Rotates the secret for a SnapTrade user. You might use this if `userSecret` is compromised. Please note that if you call this endpoint and fail to save the new secret, you\'ll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
|
|
343
|
-
* @summary Rotate user secret
|
|
344
|
-
* @param {AuthenticationApiResetSnapTradeUserSecretRequest} requestParameters Request parameters.
|
|
345
|
-
* @param {*} [options] Override http request option.
|
|
346
|
-
* @throws {RequiredError}
|
|
347
|
-
*/
|
|
348
|
-
resetSnapTradeUserSecret(requestParameters, options) {
|
|
349
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
350
|
-
const userIDandSecret = {
|
|
351
|
-
userId: requestParameters.userId,
|
|
352
|
-
userSecret: requestParameters.userSecret
|
|
353
|
-
};
|
|
354
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.resetSnapTradeUserSecret(userIDandSecret, options);
|
|
355
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
356
|
-
});
|
|
357
|
-
},
|
|
358
|
-
};
|
|
359
|
-
};
|
|
360
|
-
exports.AuthenticationApiFp = AuthenticationApiFp;
|
|
361
|
-
/**
|
|
362
|
-
* AuthenticationApi - factory interface
|
|
363
|
-
* @export
|
|
364
|
-
*/
|
|
365
|
-
const AuthenticationApiFactory = function (configuration, basePath, axios) {
|
|
366
|
-
const localVarFp = (0, exports.AuthenticationApiFp)(configuration);
|
|
367
|
-
return {
|
|
368
|
-
/**
|
|
369
|
-
* Deletes a registered user and all associated data. This action is irreversible. This API is asynchronous and will return a 200 status code if the request is accepted. The user and all associated data will be queued for deletion. Once deleted, a `USER_DELETED` webhook will be sent.
|
|
370
|
-
* @summary Delete user
|
|
371
|
-
* @param {AuthenticationApiDeleteSnapTradeUserRequest} requestParameters Request parameters.
|
|
372
|
-
* @param {*} [options] Override http request option.
|
|
373
|
-
* @throws {RequiredError}
|
|
374
|
-
*/
|
|
375
|
-
deleteSnapTradeUser(requestParameters, options) {
|
|
376
|
-
return localVarFp.deleteSnapTradeUser(requestParameters, options).then((request) => request(axios, basePath));
|
|
377
|
-
},
|
|
378
|
-
/**
|
|
379
|
-
* Returns a list of all registered user IDs. Please note that the response is not currently paginated.
|
|
380
|
-
* @summary List all users
|
|
381
|
-
* @param {*} [options] Override http request option.
|
|
382
|
-
* @throws {RequiredError}
|
|
383
|
-
*/
|
|
384
|
-
listSnapTradeUsers(options) {
|
|
385
|
-
return localVarFp.listSnapTradeUsers(options).then((request) => request(axios, basePath));
|
|
386
|
-
},
|
|
387
|
-
/**
|
|
388
|
-
* Authenticates a SnapTrade user and returns the Connection Portal URL used for connecting brokerage accounts. Please check [this guide](/docs/implement-connection-portal) for how to integrate the Connection Portal into your app. Please note that the returned URL expires in 5 minutes.
|
|
389
|
-
* @summary Generate Connection Portal URL
|
|
390
|
-
* @param {AuthenticationApiLoginSnapTradeUserRequest} requestParameters Request parameters.
|
|
391
|
-
* @param {*} [options] Override http request option.
|
|
392
|
-
* @throws {RequiredError}
|
|
393
|
-
*/
|
|
394
|
-
loginSnapTradeUser(requestParameters, options) {
|
|
395
|
-
return localVarFp.loginSnapTradeUser(requestParameters, options).then((request) => request(axios, basePath));
|
|
396
|
-
},
|
|
397
|
-
/**
|
|
398
|
-
* Registers a new SnapTrade user under your Client ID. A user secret will be automatically generated for you and must be properly stored in your system. Most SnapTrade operations require a user ID and user secret to be passed in as parameters.
|
|
399
|
-
* @summary Register user
|
|
400
|
-
* @param {AuthenticationApiRegisterSnapTradeUserRequest} requestParameters Request parameters.
|
|
401
|
-
* @param {*} [options] Override http request option.
|
|
402
|
-
* @throws {RequiredError}
|
|
403
|
-
*/
|
|
404
|
-
registerSnapTradeUser(requestParameters, options) {
|
|
405
|
-
return localVarFp.registerSnapTradeUser(requestParameters, options).then((request) => request(axios, basePath));
|
|
406
|
-
},
|
|
407
|
-
/**
|
|
408
|
-
* Rotates the secret for a SnapTrade user. You might use this if `userSecret` is compromised. Please note that if you call this endpoint and fail to save the new secret, you\'ll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
|
|
409
|
-
* @summary Rotate user secret
|
|
410
|
-
* @param {AuthenticationApiResetSnapTradeUserSecretRequest} requestParameters Request parameters.
|
|
411
|
-
* @param {*} [options] Override http request option.
|
|
412
|
-
* @throws {RequiredError}
|
|
413
|
-
*/
|
|
414
|
-
resetSnapTradeUserSecret(requestParameters, options) {
|
|
415
|
-
return localVarFp.resetSnapTradeUserSecret(requestParameters, options).then((request) => request(axios, basePath));
|
|
416
|
-
},
|
|
417
|
-
};
|
|
418
|
-
};
|
|
419
|
-
exports.AuthenticationApiFactory = AuthenticationApiFactory;
|
|
420
|
-
/**
|
|
421
|
-
* AuthenticationApiGenerated - object-oriented interface
|
|
422
|
-
* @export
|
|
423
|
-
* @class AuthenticationApiGenerated
|
|
424
|
-
* @extends {BaseAPI}
|
|
425
|
-
*/
|
|
426
|
-
class AuthenticationApiGenerated extends base_1.BaseAPI {
|
|
427
|
-
/**
|
|
428
|
-
* Deletes a registered user and all associated data. This action is irreversible. This API is asynchronous and will return a 200 status code if the request is accepted. The user and all associated data will be queued for deletion. Once deleted, a `USER_DELETED` webhook will be sent.
|
|
429
|
-
* @summary Delete user
|
|
430
|
-
* @param {AuthenticationApiDeleteSnapTradeUserRequest} requestParameters Request parameters.
|
|
431
|
-
* @param {*} [options] Override http request option.
|
|
432
|
-
* @throws {RequiredError}
|
|
433
|
-
* @memberof AuthenticationApiGenerated
|
|
434
|
-
*/
|
|
435
|
-
deleteSnapTradeUser(requestParameters, options) {
|
|
436
|
-
return (0, exports.AuthenticationApiFp)(this.configuration).deleteSnapTradeUser(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
437
|
-
}
|
|
438
|
-
/**
|
|
439
|
-
* Returns a list of all registered user IDs. Please note that the response is not currently paginated.
|
|
440
|
-
* @summary List all users
|
|
441
|
-
* @param {*} [options] Override http request option.
|
|
442
|
-
* @throws {RequiredError}
|
|
443
|
-
* @memberof AuthenticationApiGenerated
|
|
444
|
-
*/
|
|
445
|
-
listSnapTradeUsers(options) {
|
|
446
|
-
return (0, exports.AuthenticationApiFp)(this.configuration).listSnapTradeUsers(options).then((request) => request(this.axios, this.basePath));
|
|
447
|
-
}
|
|
448
|
-
/**
|
|
449
|
-
* Authenticates a SnapTrade user and returns the Connection Portal URL used for connecting brokerage accounts. Please check [this guide](/docs/implement-connection-portal) for how to integrate the Connection Portal into your app. Please note that the returned URL expires in 5 minutes.
|
|
450
|
-
* @summary Generate Connection Portal URL
|
|
451
|
-
* @param {AuthenticationApiLoginSnapTradeUserRequest} requestParameters Request parameters.
|
|
452
|
-
* @param {*} [options] Override http request option.
|
|
453
|
-
* @throws {RequiredError}
|
|
454
|
-
* @memberof AuthenticationApiGenerated
|
|
455
|
-
*/
|
|
456
|
-
loginSnapTradeUser(requestParameters, options) {
|
|
457
|
-
return (0, exports.AuthenticationApiFp)(this.configuration).loginSnapTradeUser(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
458
|
-
}
|
|
459
|
-
/**
|
|
460
|
-
* Registers a new SnapTrade user under your Client ID. A user secret will be automatically generated for you and must be properly stored in your system. Most SnapTrade operations require a user ID and user secret to be passed in as parameters.
|
|
461
|
-
* @summary Register user
|
|
462
|
-
* @param {AuthenticationApiRegisterSnapTradeUserRequest} requestParameters Request parameters.
|
|
463
|
-
* @param {*} [options] Override http request option.
|
|
464
|
-
* @throws {RequiredError}
|
|
465
|
-
* @memberof AuthenticationApiGenerated
|
|
466
|
-
*/
|
|
467
|
-
registerSnapTradeUser(requestParameters, options) {
|
|
468
|
-
return (0, exports.AuthenticationApiFp)(this.configuration).registerSnapTradeUser(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
469
|
-
}
|
|
470
|
-
/**
|
|
471
|
-
* Rotates the secret for a SnapTrade user. You might use this if `userSecret` is compromised. Please note that if you call this endpoint and fail to save the new secret, you\'ll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
|
|
472
|
-
* @summary Rotate user secret
|
|
473
|
-
* @param {AuthenticationApiResetSnapTradeUserSecretRequest} requestParameters Request parameters.
|
|
474
|
-
* @param {*} [options] Override http request option.
|
|
475
|
-
* @throws {RequiredError}
|
|
476
|
-
* @memberof AuthenticationApiGenerated
|
|
477
|
-
*/
|
|
478
|
-
resetSnapTradeUserSecret(requestParameters, options) {
|
|
479
|
-
return (0, exports.AuthenticationApiFp)(this.configuration).resetSnapTradeUserSecret(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
exports.AuthenticationApiGenerated = AuthenticationApiGenerated;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.AuthenticationApi = void 0;
|
|
18
|
-
const authentication_api_generated_1 = require("./authentication-api-generated");
|
|
19
|
-
__exportStar(require("./authentication-api-generated"), exports);
|
|
20
|
-
class AuthenticationApi extends authentication_api_generated_1.AuthenticationApiGenerated {
|
|
21
|
-
}
|
|
22
|
-
exports.AuthenticationApi = AuthenticationApi;
|