kalshi-typescript 2.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/.openapi-generator/FILES +210 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +25 -0
- package/README.md +212 -0
- package/api/api-keys-api.ts +354 -0
- package/api/communications-api.ts +863 -0
- package/api/events-api.ts +330 -0
- package/api/exchange-api.ts +315 -0
- package/api/markets-api.ts +554 -0
- package/api/milestones-api.ts +216 -0
- package/api/multivariate-collections-api.ts +293 -0
- package/api/portfolio-api.ts +1646 -0
- package/api/series-api.ts +208 -0
- package/api/structured-targets-api.ts +216 -0
- package/api.ts +27 -0
- package/base.ts +62 -0
- package/common.ts +98 -0
- package/configuration.ts +94 -0
- package/dist/api/api-keys-api.d.ts +163 -0
- package/dist/api/api-keys-api.js +333 -0
- package/dist/api/communications-api.d.ts +388 -0
- package/dist/api/communications-api.js +803 -0
- package/dist/api/events-api.d.ts +157 -0
- package/dist/api/events-api.js +312 -0
- package/dist/api/exchange-api.d.ts +150 -0
- package/dist/api/exchange-api.js +301 -0
- package/dist/api/markets-api.d.ts +263 -0
- package/dist/api/markets-api.js +515 -0
- package/dist/api/milestones-api.d.ts +104 -0
- package/dist/api/milestones-api.js +209 -0
- package/dist/api/multivariate-collections-api.d.ts +138 -0
- package/dist/api/multivariate-collections-api.js +278 -0
- package/dist/api/portfolio-api.d.ts +742 -0
- package/dist/api/portfolio-api.js +1498 -0
- package/dist/api/series-api.d.ts +100 -0
- package/dist/api/series-api.js +202 -0
- package/dist/api/structured-targets-api.d.ts +104 -0
- package/dist/api/structured-targets-api.js +209 -0
- package/dist/api.d.ts +21 -0
- package/dist/api.js +39 -0
- package/dist/base.d.ts +42 -0
- package/dist/base.js +46 -0
- package/dist/common.d.ts +29 -0
- package/dist/common.js +109 -0
- package/dist/configuration.d.ts +75 -0
- package/dist/configuration.js +40 -0
- package/dist/esm/api/api-keys-api.d.ts +163 -0
- package/dist/esm/api/api-keys-api.js +326 -0
- package/dist/esm/api/communications-api.d.ts +388 -0
- package/dist/esm/api/communications-api.js +796 -0
- package/dist/esm/api/events-api.d.ts +157 -0
- package/dist/esm/api/events-api.js +305 -0
- package/dist/esm/api/exchange-api.d.ts +150 -0
- package/dist/esm/api/exchange-api.js +294 -0
- package/dist/esm/api/markets-api.d.ts +263 -0
- package/dist/esm/api/markets-api.js +508 -0
- package/dist/esm/api/milestones-api.d.ts +104 -0
- package/dist/esm/api/milestones-api.js +202 -0
- package/dist/esm/api/multivariate-collections-api.d.ts +138 -0
- package/dist/esm/api/multivariate-collections-api.js +271 -0
- package/dist/esm/api/portfolio-api.d.ts +742 -0
- package/dist/esm/api/portfolio-api.js +1491 -0
- package/dist/esm/api/series-api.d.ts +100 -0
- package/dist/esm/api/series-api.js +195 -0
- package/dist/esm/api/structured-targets-api.d.ts +104 -0
- package/dist/esm/api/structured-targets-api.js +202 -0
- package/dist/esm/api.d.ts +21 -0
- package/dist/esm/api.js +23 -0
- package/dist/esm/base.d.ts +42 -0
- package/dist/esm/base.js +41 -0
- package/dist/esm/common.d.ts +29 -0
- package/dist/esm/common.js +97 -0
- package/dist/esm/configuration.d.ts +75 -0
- package/dist/esm/configuration.js +36 -0
- package/dist/esm/index.d.ts +14 -0
- package/dist/esm/index.js +16 -0
- package/dist/esm/models/accept-quote-request.d.ts +14 -0
- package/dist/esm/models/accept-quote-request.js +14 -0
- package/dist/esm/models/amend-order-request.d.ts +16 -0
- package/dist/esm/models/amend-order-request.js +14 -0
- package/dist/esm/models/amend-order-response.d.ts +15 -0
- package/dist/esm/models/amend-order-response.js +14 -0
- package/dist/esm/models/announcement.d.ts +28 -0
- package/dist/esm/models/announcement.js +22 -0
- package/dist/esm/models/api-key.d.ts +25 -0
- package/dist/esm/models/api-key.js +14 -0
- package/dist/esm/models/batch-cancel-orders-request.d.ts +14 -0
- package/dist/esm/models/batch-cancel-orders-request.js +14 -0
- package/dist/esm/models/batch-cancel-orders-response-responses-inner.d.ts +17 -0
- package/dist/esm/models/batch-cancel-orders-response-responses-inner.js +14 -0
- package/dist/esm/models/batch-cancel-orders-response.d.ts +15 -0
- package/dist/esm/models/batch-cancel-orders-response.js +14 -0
- package/dist/esm/models/batch-create-orders-request.d.ts +15 -0
- package/dist/esm/models/batch-create-orders-request.js +14 -0
- package/dist/esm/models/batch-create-orders-response-responses-inner.d.ts +17 -0
- package/dist/esm/models/batch-create-orders-response-responses-inner.js +14 -0
- package/dist/esm/models/batch-create-orders-response.d.ts +15 -0
- package/dist/esm/models/batch-create-orders-response.js +14 -0
- package/dist/esm/models/cancel-order-response.d.ts +16 -0
- package/dist/esm/models/cancel-order-response.js +14 -0
- package/dist/esm/models/candlestick.d.ts +20 -0
- package/dist/esm/models/candlestick.js +14 -0
- package/dist/esm/models/create-api-key-request.d.ts +21 -0
- package/dist/esm/models/create-api-key-request.js +14 -0
- package/dist/esm/models/create-api-key-response.d.ts +17 -0
- package/dist/esm/models/create-api-key-response.js +14 -0
- package/dist/esm/models/create-order-group-request.d.ts +14 -0
- package/dist/esm/models/create-order-group-request.js +14 -0
- package/dist/esm/models/create-order-group-response.d.ts +15 -0
- package/dist/esm/models/create-order-group-response.js +14 -0
- package/dist/esm/models/create-order-request.d.ts +39 -0
- package/dist/esm/models/create-order-request.js +25 -0
- package/dist/esm/models/create-order-response.d.ts +15 -0
- package/dist/esm/models/create-order-response.js +14 -0
- package/dist/esm/models/create-quote-request.d.ts +16 -0
- package/dist/esm/models/create-quote-request.js +14 -0
- package/dist/esm/models/create-quote-response.d.ts +15 -0
- package/dist/esm/models/create-quote-response.js +14 -0
- package/dist/esm/models/create-rfqrequest.d.ts +22 -0
- package/dist/esm/models/create-rfqrequest.js +17 -0
- package/dist/esm/models/create-rfqresponse.d.ts +15 -0
- package/dist/esm/models/create-rfqresponse.js +14 -0
- package/dist/esm/models/daily-schedule.d.ts +15 -0
- package/dist/esm/models/daily-schedule.js +14 -0
- package/dist/esm/models/decrease-order-request.d.ts +14 -0
- package/dist/esm/models/decrease-order-request.js +14 -0
- package/dist/esm/models/decrease-order-response.d.ts +15 -0
- package/dist/esm/models/decrease-order-response.js +14 -0
- package/dist/esm/models/error-response-error.d.ts +25 -0
- package/dist/esm/models/error-response-error.js +14 -0
- package/dist/esm/models/error-response.d.ts +15 -0
- package/dist/esm/models/error-response.js +14 -0
- package/dist/esm/models/event.d.ts +26 -0
- package/dist/esm/models/event.js +18 -0
- package/dist/esm/models/exchange-status.d.ts +15 -0
- package/dist/esm/models/exchange-status.js +14 -0
- package/dist/esm/models/fill.d.ts +32 -0
- package/dist/esm/models/fill.js +21 -0
- package/dist/esm/models/generate-api-key-request.d.ts +17 -0
- package/dist/esm/models/generate-api-key-request.js +14 -0
- package/dist/esm/models/generate-api-key-response.d.ts +21 -0
- package/dist/esm/models/generate-api-key-response.js +14 -0
- package/dist/esm/models/get-api-keys-response.d.ts +18 -0
- package/dist/esm/models/get-api-keys-response.js +14 -0
- package/dist/esm/models/get-balance-response.d.ts +17 -0
- package/dist/esm/models/get-balance-response.js +14 -0
- package/dist/esm/models/get-communications-idresponse.d.ts +17 -0
- package/dist/esm/models/get-communications-idresponse.js +14 -0
- package/dist/esm/models/get-event-metadata-response.d.ts +14 -0
- package/dist/esm/models/get-event-metadata-response.js +14 -0
- package/dist/esm/models/get-event-response.d.ts +17 -0
- package/dist/esm/models/get-event-response.js +14 -0
- package/dist/esm/models/get-events-response.d.ts +16 -0
- package/dist/esm/models/get-events-response.js +14 -0
- package/dist/esm/models/get-exchange-announcements-response.d.ts +15 -0
- package/dist/esm/models/get-exchange-announcements-response.js +14 -0
- package/dist/esm/models/get-exchange-schedule-response-schedule.d.ts +21 -0
- package/dist/esm/models/get-exchange-schedule-response-schedule.js +14 -0
- package/dist/esm/models/get-exchange-schedule-response.d.ts +15 -0
- package/dist/esm/models/get-exchange-schedule-response.js +14 -0
- package/dist/esm/models/get-fills-response.d.ts +16 -0
- package/dist/esm/models/get-fills-response.js +14 -0
- package/dist/esm/models/get-market-candlesticks-response.d.ts +15 -0
- package/dist/esm/models/get-market-candlesticks-response.js +14 -0
- package/dist/esm/models/get-market-orderbook-response-orderbook.d.ts +16 -0
- package/dist/esm/models/get-market-orderbook-response-orderbook.js +14 -0
- package/dist/esm/models/get-market-orderbook-response.d.ts +15 -0
- package/dist/esm/models/get-market-orderbook-response.js +14 -0
- package/dist/esm/models/get-market-response.d.ts +15 -0
- package/dist/esm/models/get-market-response.js +14 -0
- package/dist/esm/models/get-markets-response.d.ts +16 -0
- package/dist/esm/models/get-markets-response.js +14 -0
- package/dist/esm/models/get-milestone-response.d.ts +15 -0
- package/dist/esm/models/get-milestone-response.js +14 -0
- package/dist/esm/models/get-milestones-response.d.ts +15 -0
- package/dist/esm/models/get-milestones-response.js +14 -0
- package/dist/esm/models/get-multivariate-event-collection-response.d.ts +15 -0
- package/dist/esm/models/get-multivariate-event-collection-response.js +14 -0
- package/dist/esm/models/get-multivariate-event-collections-response.d.ts +15 -0
- package/dist/esm/models/get-multivariate-event-collections-response.js +14 -0
- package/dist/esm/models/get-order-groups-response.d.ts +16 -0
- package/dist/esm/models/get-order-groups-response.js +14 -0
- package/dist/esm/models/get-order-queue-position-response.d.ts +14 -0
- package/dist/esm/models/get-order-queue-position-response.js +14 -0
- package/dist/esm/models/get-order-response.d.ts +15 -0
- package/dist/esm/models/get-order-response.js +14 -0
- package/dist/esm/models/get-orders-response.d.ts +16 -0
- package/dist/esm/models/get-orders-response.js +14 -0
- package/dist/esm/models/get-positions-response.d.ts +16 -0
- package/dist/esm/models/get-positions-response.js +14 -0
- package/dist/esm/models/get-queue-positions-request.d.ts +14 -0
- package/dist/esm/models/get-queue-positions-request.js +14 -0
- package/dist/esm/models/get-queue-positions-response.d.ts +16 -0
- package/dist/esm/models/get-queue-positions-response.js +14 -0
- package/dist/esm/models/get-quote-response.d.ts +15 -0
- package/dist/esm/models/get-quote-response.js +14 -0
- package/dist/esm/models/get-quotes-response.d.ts +15 -0
- package/dist/esm/models/get-quotes-response.js +14 -0
- package/dist/esm/models/get-rfqresponse.d.ts +15 -0
- package/dist/esm/models/get-rfqresponse.js +14 -0
- package/dist/esm/models/get-rfqs-response.d.ts +15 -0
- package/dist/esm/models/get-rfqs-response.js +14 -0
- package/dist/esm/models/get-series-by-ticker-response.d.ts +15 -0
- package/dist/esm/models/get-series-by-ticker-response.js +14 -0
- package/dist/esm/models/get-series-response.d.ts +15 -0
- package/dist/esm/models/get-series-response.js +14 -0
- package/dist/esm/models/get-settlements-response.d.ts +16 -0
- package/dist/esm/models/get-settlements-response.js +14 -0
- package/dist/esm/models/get-structured-target-response.d.ts +15 -0
- package/dist/esm/models/get-structured-target-response.js +14 -0
- package/dist/esm/models/get-structured-targets-response.d.ts +15 -0
- package/dist/esm/models/get-structured-targets-response.js +14 -0
- package/dist/esm/models/get-total-resting-order-value-response.d.ts +14 -0
- package/dist/esm/models/get-total-resting-order-value-response.js +14 -0
- package/dist/esm/models/get-trades-response.d.ts +16 -0
- package/dist/esm/models/get-trades-response.js +14 -0
- package/dist/esm/models/get-user-data-timestamp-response.d.ts +14 -0
- package/dist/esm/models/get-user-data-timestamp-response.js +14 -0
- package/dist/esm/models/index.d.ts +88 -0
- package/dist/esm/models/index.js +88 -0
- package/dist/esm/models/lookup-bundle-request-bundle-inner.d.ts +15 -0
- package/dist/esm/models/lookup-bundle-request-bundle-inner.js +14 -0
- package/dist/esm/models/lookup-bundle-request.d.ts +15 -0
- package/dist/esm/models/lookup-bundle-request.js +14 -0
- package/dist/esm/models/lookup-bundle-response.d.ts +15 -0
- package/dist/esm/models/lookup-bundle-response.js +14 -0
- package/dist/esm/models/market.d.ts +49 -0
- package/dist/esm/models/market.js +25 -0
- package/dist/esm/models/milestone.d.ts +16 -0
- package/dist/esm/models/milestone.js +14 -0
- package/dist/esm/models/multivariate-event-collection-events-inner.d.ts +17 -0
- package/dist/esm/models/multivariate-event-collection-events-inner.js +14 -0
- package/dist/esm/models/multivariate-event-collection.d.ts +18 -0
- package/dist/esm/models/multivariate-event-collection.js +14 -0
- package/dist/esm/models/order-group.d.ts +17 -0
- package/dist/esm/models/order-group.js +14 -0
- package/dist/esm/models/order.d.ts +49 -0
- package/dist/esm/models/order.js +31 -0
- package/dist/esm/models/orderbook-level.d.ts +15 -0
- package/dist/esm/models/orderbook-level.js +14 -0
- package/dist/esm/models/position.d.ts +26 -0
- package/dist/esm/models/position.js +17 -0
- package/dist/esm/models/quote.d.ts +27 -0
- package/dist/esm/models/quote.js +17 -0
- package/dist/esm/models/rfq.d.ts +26 -0
- package/dist/esm/models/rfq.js +17 -0
- package/dist/esm/models/series.d.ts +20 -0
- package/dist/esm/models/series.js +14 -0
- package/dist/esm/models/settlement.d.ts +24 -0
- package/dist/esm/models/settlement.js +17 -0
- package/dist/esm/models/structured-target.d.ts +16 -0
- package/dist/esm/models/structured-target.js +14 -0
- package/dist/esm/models/trade.d.ts +24 -0
- package/dist/esm/models/trade.js +17 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +32 -0
- package/dist/models/accept-quote-request.d.ts +14 -0
- package/dist/models/accept-quote-request.js +15 -0
- package/dist/models/amend-order-request.d.ts +16 -0
- package/dist/models/amend-order-request.js +15 -0
- package/dist/models/amend-order-response.d.ts +15 -0
- package/dist/models/amend-order-response.js +15 -0
- package/dist/models/announcement.d.ts +28 -0
- package/dist/models/announcement.js +25 -0
- package/dist/models/api-key.d.ts +25 -0
- package/dist/models/api-key.js +15 -0
- package/dist/models/batch-cancel-orders-request.d.ts +14 -0
- package/dist/models/batch-cancel-orders-request.js +15 -0
- package/dist/models/batch-cancel-orders-response-responses-inner.d.ts +17 -0
- package/dist/models/batch-cancel-orders-response-responses-inner.js +15 -0
- package/dist/models/batch-cancel-orders-response.d.ts +15 -0
- package/dist/models/batch-cancel-orders-response.js +15 -0
- package/dist/models/batch-create-orders-request.d.ts +15 -0
- package/dist/models/batch-create-orders-request.js +15 -0
- package/dist/models/batch-create-orders-response-responses-inner.d.ts +17 -0
- package/dist/models/batch-create-orders-response-responses-inner.js +15 -0
- package/dist/models/batch-create-orders-response.d.ts +15 -0
- package/dist/models/batch-create-orders-response.js +15 -0
- package/dist/models/cancel-order-response.d.ts +16 -0
- package/dist/models/cancel-order-response.js +15 -0
- package/dist/models/candlestick.d.ts +20 -0
- package/dist/models/candlestick.js +15 -0
- package/dist/models/create-api-key-request.d.ts +21 -0
- package/dist/models/create-api-key-request.js +15 -0
- package/dist/models/create-api-key-response.d.ts +17 -0
- package/dist/models/create-api-key-response.js +15 -0
- package/dist/models/create-order-group-request.d.ts +14 -0
- package/dist/models/create-order-group-request.js +15 -0
- package/dist/models/create-order-group-response.d.ts +15 -0
- package/dist/models/create-order-group-response.js +15 -0
- package/dist/models/create-order-request.d.ts +39 -0
- package/dist/models/create-order-request.js +28 -0
- package/dist/models/create-order-response.d.ts +15 -0
- package/dist/models/create-order-response.js +15 -0
- package/dist/models/create-quote-request.d.ts +16 -0
- package/dist/models/create-quote-request.js +15 -0
- package/dist/models/create-quote-response.d.ts +15 -0
- package/dist/models/create-quote-response.js +15 -0
- package/dist/models/create-rfqrequest.d.ts +22 -0
- package/dist/models/create-rfqrequest.js +20 -0
- package/dist/models/create-rfqresponse.d.ts +15 -0
- package/dist/models/create-rfqresponse.js +15 -0
- package/dist/models/daily-schedule.d.ts +15 -0
- package/dist/models/daily-schedule.js +15 -0
- package/dist/models/decrease-order-request.d.ts +14 -0
- package/dist/models/decrease-order-request.js +15 -0
- package/dist/models/decrease-order-response.d.ts +15 -0
- package/dist/models/decrease-order-response.js +15 -0
- package/dist/models/error-response-error.d.ts +25 -0
- package/dist/models/error-response-error.js +15 -0
- package/dist/models/error-response.d.ts +15 -0
- package/dist/models/error-response.js +15 -0
- package/dist/models/event.d.ts +26 -0
- package/dist/models/event.js +21 -0
- package/dist/models/exchange-status.d.ts +15 -0
- package/dist/models/exchange-status.js +15 -0
- package/dist/models/fill.d.ts +32 -0
- package/dist/models/fill.js +24 -0
- package/dist/models/generate-api-key-request.d.ts +17 -0
- package/dist/models/generate-api-key-request.js +15 -0
- package/dist/models/generate-api-key-response.d.ts +21 -0
- package/dist/models/generate-api-key-response.js +15 -0
- package/dist/models/get-api-keys-response.d.ts +18 -0
- package/dist/models/get-api-keys-response.js +15 -0
- package/dist/models/get-balance-response.d.ts +17 -0
- package/dist/models/get-balance-response.js +15 -0
- package/dist/models/get-communications-idresponse.d.ts +17 -0
- package/dist/models/get-communications-idresponse.js +15 -0
- package/dist/models/get-event-metadata-response.d.ts +14 -0
- package/dist/models/get-event-metadata-response.js +15 -0
- package/dist/models/get-event-response.d.ts +17 -0
- package/dist/models/get-event-response.js +15 -0
- package/dist/models/get-events-response.d.ts +16 -0
- package/dist/models/get-events-response.js +15 -0
- package/dist/models/get-exchange-announcements-response.d.ts +15 -0
- package/dist/models/get-exchange-announcements-response.js +15 -0
- package/dist/models/get-exchange-schedule-response-schedule.d.ts +21 -0
- package/dist/models/get-exchange-schedule-response-schedule.js +15 -0
- package/dist/models/get-exchange-schedule-response.d.ts +15 -0
- package/dist/models/get-exchange-schedule-response.js +15 -0
- package/dist/models/get-fills-response.d.ts +16 -0
- package/dist/models/get-fills-response.js +15 -0
- package/dist/models/get-market-candlesticks-response.d.ts +15 -0
- package/dist/models/get-market-candlesticks-response.js +15 -0
- package/dist/models/get-market-orderbook-response-orderbook.d.ts +16 -0
- package/dist/models/get-market-orderbook-response-orderbook.js +15 -0
- package/dist/models/get-market-orderbook-response.d.ts +15 -0
- package/dist/models/get-market-orderbook-response.js +15 -0
- package/dist/models/get-market-response.d.ts +15 -0
- package/dist/models/get-market-response.js +15 -0
- package/dist/models/get-markets-response.d.ts +16 -0
- package/dist/models/get-markets-response.js +15 -0
- package/dist/models/get-milestone-response.d.ts +15 -0
- package/dist/models/get-milestone-response.js +15 -0
- package/dist/models/get-milestones-response.d.ts +15 -0
- package/dist/models/get-milestones-response.js +15 -0
- package/dist/models/get-multivariate-event-collection-response.d.ts +15 -0
- package/dist/models/get-multivariate-event-collection-response.js +15 -0
- package/dist/models/get-multivariate-event-collections-response.d.ts +15 -0
- package/dist/models/get-multivariate-event-collections-response.js +15 -0
- package/dist/models/get-order-groups-response.d.ts +16 -0
- package/dist/models/get-order-groups-response.js +15 -0
- package/dist/models/get-order-queue-position-response.d.ts +14 -0
- package/dist/models/get-order-queue-position-response.js +15 -0
- package/dist/models/get-order-response.d.ts +15 -0
- package/dist/models/get-order-response.js +15 -0
- package/dist/models/get-orders-response.d.ts +16 -0
- package/dist/models/get-orders-response.js +15 -0
- package/dist/models/get-positions-response.d.ts +16 -0
- package/dist/models/get-positions-response.js +15 -0
- package/dist/models/get-queue-positions-request.d.ts +14 -0
- package/dist/models/get-queue-positions-request.js +15 -0
- package/dist/models/get-queue-positions-response.d.ts +16 -0
- package/dist/models/get-queue-positions-response.js +15 -0
- package/dist/models/get-quote-response.d.ts +15 -0
- package/dist/models/get-quote-response.js +15 -0
- package/dist/models/get-quotes-response.d.ts +15 -0
- package/dist/models/get-quotes-response.js +15 -0
- package/dist/models/get-rfqresponse.d.ts +15 -0
- package/dist/models/get-rfqresponse.js +15 -0
- package/dist/models/get-rfqs-response.d.ts +15 -0
- package/dist/models/get-rfqs-response.js +15 -0
- package/dist/models/get-series-by-ticker-response.d.ts +15 -0
- package/dist/models/get-series-by-ticker-response.js +15 -0
- package/dist/models/get-series-response.d.ts +15 -0
- package/dist/models/get-series-response.js +15 -0
- package/dist/models/get-settlements-response.d.ts +16 -0
- package/dist/models/get-settlements-response.js +15 -0
- package/dist/models/get-structured-target-response.d.ts +15 -0
- package/dist/models/get-structured-target-response.js +15 -0
- package/dist/models/get-structured-targets-response.d.ts +15 -0
- package/dist/models/get-structured-targets-response.js +15 -0
- package/dist/models/get-total-resting-order-value-response.d.ts +14 -0
- package/dist/models/get-total-resting-order-value-response.js +15 -0
- package/dist/models/get-trades-response.d.ts +16 -0
- package/dist/models/get-trades-response.js +15 -0
- package/dist/models/get-user-data-timestamp-response.d.ts +14 -0
- package/dist/models/get-user-data-timestamp-response.js +15 -0
- package/dist/models/index.d.ts +88 -0
- package/dist/models/index.js +104 -0
- package/dist/models/lookup-bundle-request-bundle-inner.d.ts +15 -0
- package/dist/models/lookup-bundle-request-bundle-inner.js +15 -0
- package/dist/models/lookup-bundle-request.d.ts +15 -0
- package/dist/models/lookup-bundle-request.js +15 -0
- package/dist/models/lookup-bundle-response.d.ts +15 -0
- package/dist/models/lookup-bundle-response.js +15 -0
- package/dist/models/market.d.ts +49 -0
- package/dist/models/market.js +28 -0
- package/dist/models/milestone.d.ts +16 -0
- package/dist/models/milestone.js +15 -0
- package/dist/models/multivariate-event-collection-events-inner.d.ts +17 -0
- package/dist/models/multivariate-event-collection-events-inner.js +15 -0
- package/dist/models/multivariate-event-collection.d.ts +18 -0
- package/dist/models/multivariate-event-collection.js +15 -0
- package/dist/models/order-group.d.ts +17 -0
- package/dist/models/order-group.js +15 -0
- package/dist/models/order.d.ts +49 -0
- package/dist/models/order.js +34 -0
- package/dist/models/orderbook-level.d.ts +15 -0
- package/dist/models/orderbook-level.js +15 -0
- package/dist/models/position.d.ts +26 -0
- package/dist/models/position.js +20 -0
- package/dist/models/quote.d.ts +27 -0
- package/dist/models/quote.js +20 -0
- package/dist/models/rfq.d.ts +26 -0
- package/dist/models/rfq.js +20 -0
- package/dist/models/series.d.ts +20 -0
- package/dist/models/series.js +15 -0
- package/dist/models/settlement.d.ts +24 -0
- package/dist/models/settlement.js +20 -0
- package/dist/models/structured-target.d.ts +16 -0
- package/dist/models/structured-target.js +15 -0
- package/dist/models/trade.d.ts +24 -0
- package/dist/models/trade.js +20 -0
- package/docs/AcceptQuoteRequest.md +20 -0
- package/docs/AmendOrderRequest.md +24 -0
- package/docs/AmendOrderResponse.md +20 -0
- package/docs/Announcement.md +26 -0
- package/docs/ApiKey.md +24 -0
- package/docs/ApiKeysApi.md +223 -0
- package/docs/BatchCancelOrdersRequest.md +20 -0
- package/docs/BatchCancelOrdersResponse.md +20 -0
- package/docs/BatchCancelOrdersResponseResponsesInner.md +24 -0
- package/docs/BatchCreateOrdersRequest.md +20 -0
- package/docs/BatchCreateOrdersResponse.md +20 -0
- package/docs/BatchCreateOrdersResponseResponsesInner.md +22 -0
- package/docs/CancelOrderResponse.md +22 -0
- package/docs/Candlestick.md +32 -0
- package/docs/CommunicationsApi.md +595 -0
- package/docs/CreateApiKeyRequest.md +22 -0
- package/docs/CreateApiKeyResponse.md +20 -0
- package/docs/CreateOrderGroupRequest.md +20 -0
- package/docs/CreateOrderGroupResponse.md +20 -0
- package/docs/CreateOrderRequest.md +40 -0
- package/docs/CreateOrderResponse.md +20 -0
- package/docs/CreateQuoteRequest.md +24 -0
- package/docs/CreateQuoteResponse.md +20 -0
- package/docs/CreateRFQRequest.md +26 -0
- package/docs/CreateRFQResponse.md +20 -0
- package/docs/DailySchedule.md +22 -0
- package/docs/DecreaseOrderRequest.md +20 -0
- package/docs/DecreaseOrderResponse.md +20 -0
- package/docs/ErrorResponse.md +20 -0
- package/docs/ErrorResponseError.md +24 -0
- package/docs/Event.md +30 -0
- package/docs/EventsApi.md +190 -0
- package/docs/ExchangeApi.md +192 -0
- package/docs/ExchangeStatus.md +22 -0
- package/docs/Fill.md +36 -0
- package/docs/GenerateApiKeyRequest.md +20 -0
- package/docs/GenerateApiKeyResponse.md +22 -0
- package/docs/GetApiKeysResponse.md +20 -0
- package/docs/GetBalanceResponse.md +20 -0
- package/docs/GetCommunicationsIDResponse.md +20 -0
- package/docs/GetEventMetadataResponse.md +20 -0
- package/docs/GetEventResponse.md +22 -0
- package/docs/GetEventsResponse.md +22 -0
- package/docs/GetExchangeAnnouncementsResponse.md +20 -0
- package/docs/GetExchangeScheduleResponse.md +20 -0
- package/docs/GetExchangeScheduleResponseSchedule.md +32 -0
- package/docs/GetFillsResponse.md +22 -0
- package/docs/GetMarketCandlesticksResponse.md +20 -0
- package/docs/GetMarketOrderbookResponse.md +20 -0
- package/docs/GetMarketOrderbookResponseOrderbook.md +22 -0
- package/docs/GetMarketResponse.md +20 -0
- package/docs/GetMarketsResponse.md +22 -0
- package/docs/GetMilestoneResponse.md +20 -0
- package/docs/GetMilestonesResponse.md +20 -0
- package/docs/GetMultivariateEventCollectionResponse.md +20 -0
- package/docs/GetMultivariateEventCollectionsResponse.md +20 -0
- package/docs/GetOrderGroupsResponse.md +22 -0
- package/docs/GetOrderQueuePositionResponse.md +20 -0
- package/docs/GetOrderResponse.md +20 -0
- package/docs/GetOrdersResponse.md +22 -0
- package/docs/GetPositionsResponse.md +22 -0
- package/docs/GetQueuePositionsRequest.md +20 -0
- package/docs/GetQueuePositionsResponse.md +20 -0
- package/docs/GetQuoteResponse.md +20 -0
- package/docs/GetQuotesResponse.md +20 -0
- package/docs/GetRFQResponse.md +20 -0
- package/docs/GetRFQsResponse.md +20 -0
- package/docs/GetSeriesByTickerResponse.md +20 -0
- package/docs/GetSeriesResponse.md +20 -0
- package/docs/GetSettlementsResponse.md +22 -0
- package/docs/GetStructuredTargetResponse.md +20 -0
- package/docs/GetStructuredTargetsResponse.md +20 -0
- package/docs/GetTotalRestingOrderValueResponse.md +20 -0
- package/docs/GetTradesResponse.md +22 -0
- package/docs/GetUserDataTimestampResponse.md +20 -0
- package/docs/LookupBundleRequest.md +20 -0
- package/docs/LookupBundleRequestBundleInner.md +22 -0
- package/docs/LookupBundleResponse.md +22 -0
- package/docs/Market.md +56 -0
- package/docs/MarketsApi.md +330 -0
- package/docs/Milestone.md +24 -0
- package/docs/MilestonesApi.md +119 -0
- package/docs/MultivariateCollectionsApi.md +176 -0
- package/docs/MultivariateEventCollection.md +26 -0
- package/docs/MultivariateEventCollectionEventsInner.md +26 -0
- package/docs/Order.md +46 -0
- package/docs/OrderGroup.md +26 -0
- package/docs/OrderbookLevel.md +22 -0
- package/docs/PortfolioApi.md +1109 -0
- package/docs/Position.md +34 -0
- package/docs/Quote.md +36 -0
- package/docs/RFQ.md +34 -0
- package/docs/Series.md +26 -0
- package/docs/SeriesApi.md +116 -0
- package/docs/Settlement.md +30 -0
- package/docs/StructuredTarget.md +24 -0
- package/docs/StructuredTargetsApi.md +119 -0
- package/docs/Trade.md +30 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/models/accept-quote-request.ts +20 -0
- package/models/amend-order-request.ts +22 -0
- package/models/amend-order-response.ts +23 -0
- package/models/announcement.ts +38 -0
- package/models/api-key.ts +31 -0
- package/models/batch-cancel-orders-request.ts +20 -0
- package/models/batch-cancel-orders-response-responses-inner.ts +25 -0
- package/models/batch-cancel-orders-response.ts +23 -0
- package/models/batch-create-orders-request.ts +23 -0
- package/models/batch-create-orders-response-responses-inner.ts +27 -0
- package/models/batch-create-orders-response.ts +23 -0
- package/models/cancel-order-response.ts +24 -0
- package/models/candlestick.ts +26 -0
- package/models/create-api-key-request.ts +27 -0
- package/models/create-api-key-response.ts +23 -0
- package/models/create-order-group-request.ts +20 -0
- package/models/create-order-group-response.ts +23 -0
- package/models/create-order-request.ts +50 -0
- package/models/create-order-response.ts +23 -0
- package/models/create-quote-request.ts +22 -0
- package/models/create-quote-response.ts +23 -0
- package/models/create-rfqrequest.ts +31 -0
- package/models/create-rfqresponse.ts +23 -0
- package/models/daily-schedule.ts +21 -0
- package/models/decrease-order-request.ts +20 -0
- package/models/decrease-order-response.ts +23 -0
- package/models/error-response-error.ts +31 -0
- package/models/error-response.ts +23 -0
- package/models/event.ts +37 -0
- package/models/exchange-status.ts +21 -0
- package/models/fill.ts +42 -0
- package/models/generate-api-key-request.ts +23 -0
- package/models/generate-api-key-response.ts +27 -0
- package/models/get-api-keys-response.ts +26 -0
- package/models/get-balance-response.ts +23 -0
- package/models/get-communications-idresponse.ts +23 -0
- package/models/get-event-metadata-response.ts +20 -0
- package/models/get-event-response.ts +27 -0
- package/models/get-events-response.ts +24 -0
- package/models/get-exchange-announcements-response.ts +23 -0
- package/models/get-exchange-schedule-response-schedule.ts +29 -0
- package/models/get-exchange-schedule-response.ts +23 -0
- package/models/get-fills-response.ts +24 -0
- package/models/get-market-candlesticks-response.ts +23 -0
- package/models/get-market-orderbook-response-orderbook.ts +24 -0
- package/models/get-market-orderbook-response.ts +23 -0
- package/models/get-market-response.ts +23 -0
- package/models/get-markets-response.ts +24 -0
- package/models/get-milestone-response.ts +23 -0
- package/models/get-milestones-response.ts +23 -0
- package/models/get-multivariate-event-collection-response.ts +23 -0
- package/models/get-multivariate-event-collections-response.ts +23 -0
- package/models/get-order-groups-response.ts +24 -0
- package/models/get-order-queue-position-response.ts +20 -0
- package/models/get-order-response.ts +23 -0
- package/models/get-orders-response.ts +24 -0
- package/models/get-positions-response.ts +24 -0
- package/models/get-queue-positions-request.ts +20 -0
- package/models/get-queue-positions-response.ts +20 -0
- package/models/get-quote-response.ts +23 -0
- package/models/get-quotes-response.ts +23 -0
- package/models/get-rfqresponse.ts +23 -0
- package/models/get-rfqs-response.ts +23 -0
- package/models/get-series-by-ticker-response.ts +23 -0
- package/models/get-series-response.ts +23 -0
- package/models/get-settlements-response.ts +24 -0
- package/models/get-structured-target-response.ts +23 -0
- package/models/get-structured-targets-response.ts +23 -0
- package/models/get-total-resting-order-value-response.ts +20 -0
- package/models/get-trades-response.ts +24 -0
- package/models/get-user-data-timestamp-response.ts +20 -0
- package/models/index.ts +88 -0
- package/models/lookup-bundle-request-bundle-inner.ts +21 -0
- package/models/lookup-bundle-request.ts +23 -0
- package/models/lookup-bundle-response.ts +21 -0
- package/models/market.ts +59 -0
- package/models/milestone.ts +22 -0
- package/models/multivariate-event-collection-events-inner.ts +23 -0
- package/models/multivariate-event-collection.ts +26 -0
- package/models/order-group.ts +23 -0
- package/models/order.ts +61 -0
- package/models/orderbook-level.ts +21 -0
- package/models/position.ts +35 -0
- package/models/quote.ts +36 -0
- package/models/rfq.ts +35 -0
- package/models/series.ts +26 -0
- package/models/settlement.ts +33 -0
- package/models/structured-target.ts +22 -0
- package/models/trade.ts +33 -0
- package/package.json +33 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,803 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Kalshi Trading API
|
|
6
|
+
* Complete API for the Kalshi trading platform including all handlers for SDK generation
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
* Contact: support@kalshi.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.CommunicationsApi = exports.CommunicationsApiFactory = exports.CommunicationsApiFp = exports.CommunicationsApiAxiosParamCreator = void 0;
|
|
26
|
+
const axios_1 = require("axios");
|
|
27
|
+
// URLSearchParams not necessarily used
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
const url_1 = require("url");
|
|
30
|
+
// Some imports not used depending on template conditions
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
const common_1 = require("../common");
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
const base_1 = require("../base");
|
|
35
|
+
/**
|
|
36
|
+
* CommunicationsApi - axios parameter creator
|
|
37
|
+
*/
|
|
38
|
+
const CommunicationsApiAxiosParamCreator = function (configuration) {
|
|
39
|
+
return {
|
|
40
|
+
/**
|
|
41
|
+
* Accept a quote. This will require the quoter to confirm
|
|
42
|
+
* @summary Accept Quote
|
|
43
|
+
* @param {string} quoteId Quote ID
|
|
44
|
+
* @param {AcceptQuoteRequest} acceptQuoteRequest
|
|
45
|
+
* @param {*} [options] Override http request option.
|
|
46
|
+
* @throws {RequiredError}
|
|
47
|
+
*/
|
|
48
|
+
acceptQuote: (quoteId_1, acceptQuoteRequest_1, ...args_1) => __awaiter(this, [quoteId_1, acceptQuoteRequest_1, ...args_1], void 0, function* (quoteId, acceptQuoteRequest, options = {}) {
|
|
49
|
+
// verify required parameter 'quoteId' is not null or undefined
|
|
50
|
+
(0, common_1.assertParamExists)('acceptQuote', 'quoteId', quoteId);
|
|
51
|
+
// verify required parameter 'acceptQuoteRequest' is not null or undefined
|
|
52
|
+
(0, common_1.assertParamExists)('acceptQuote', 'acceptQuoteRequest', acceptQuoteRequest);
|
|
53
|
+
const localVarPath = `/communications/quotes/{quote_id}/accept`
|
|
54
|
+
.replace(`{${"quote_id"}}`, encodeURIComponent(String(quoteId)));
|
|
55
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
56
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
57
|
+
let baseOptions;
|
|
58
|
+
if (configuration) {
|
|
59
|
+
baseOptions = configuration.baseOptions;
|
|
60
|
+
}
|
|
61
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
62
|
+
const localVarHeaderParameter = {};
|
|
63
|
+
const localVarQueryParameter = {};
|
|
64
|
+
// authentication bearerAuth required
|
|
65
|
+
// http bearer authentication required
|
|
66
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
67
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
68
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
69
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
70
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
71
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(acceptQuoteRequest, localVarRequestOptions, configuration);
|
|
72
|
+
return {
|
|
73
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
74
|
+
options: localVarRequestOptions,
|
|
75
|
+
};
|
|
76
|
+
}),
|
|
77
|
+
/**
|
|
78
|
+
* Confirm a quote. This will start a timer for order execution
|
|
79
|
+
* @summary Confirm Quote
|
|
80
|
+
* @param {string} quoteId Quote ID
|
|
81
|
+
* @param {*} [options] Override http request option.
|
|
82
|
+
* @throws {RequiredError}
|
|
83
|
+
*/
|
|
84
|
+
confirmQuote: (quoteId_1, ...args_1) => __awaiter(this, [quoteId_1, ...args_1], void 0, function* (quoteId, options = {}) {
|
|
85
|
+
// verify required parameter 'quoteId' is not null or undefined
|
|
86
|
+
(0, common_1.assertParamExists)('confirmQuote', 'quoteId', quoteId);
|
|
87
|
+
const localVarPath = `/communications/quotes/{quote_id}/confirm`
|
|
88
|
+
.replace(`{${"quote_id"}}`, encodeURIComponent(String(quoteId)));
|
|
89
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
90
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
91
|
+
let baseOptions;
|
|
92
|
+
if (configuration) {
|
|
93
|
+
baseOptions = configuration.baseOptions;
|
|
94
|
+
}
|
|
95
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
96
|
+
const localVarHeaderParameter = {};
|
|
97
|
+
const localVarQueryParameter = {};
|
|
98
|
+
// authentication bearerAuth required
|
|
99
|
+
// http bearer authentication required
|
|
100
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
101
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
102
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
103
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
104
|
+
return {
|
|
105
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
106
|
+
options: localVarRequestOptions,
|
|
107
|
+
};
|
|
108
|
+
}),
|
|
109
|
+
/**
|
|
110
|
+
* Create a quote in response to an RFQ
|
|
111
|
+
* @summary Create Quote
|
|
112
|
+
* @param {CreateQuoteRequest} createQuoteRequest
|
|
113
|
+
* @param {*} [options] Override http request option.
|
|
114
|
+
* @throws {RequiredError}
|
|
115
|
+
*/
|
|
116
|
+
createQuote: (createQuoteRequest_1, ...args_1) => __awaiter(this, [createQuoteRequest_1, ...args_1], void 0, function* (createQuoteRequest, options = {}) {
|
|
117
|
+
// verify required parameter 'createQuoteRequest' is not null or undefined
|
|
118
|
+
(0, common_1.assertParamExists)('createQuote', 'createQuoteRequest', createQuoteRequest);
|
|
119
|
+
const localVarPath = `/communications/quotes`;
|
|
120
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
121
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
122
|
+
let baseOptions;
|
|
123
|
+
if (configuration) {
|
|
124
|
+
baseOptions = configuration.baseOptions;
|
|
125
|
+
}
|
|
126
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
127
|
+
const localVarHeaderParameter = {};
|
|
128
|
+
const localVarQueryParameter = {};
|
|
129
|
+
// authentication bearerAuth required
|
|
130
|
+
// http bearer authentication required
|
|
131
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
132
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
133
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
134
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
135
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
136
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createQuoteRequest, localVarRequestOptions, configuration);
|
|
137
|
+
return {
|
|
138
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
139
|
+
options: localVarRequestOptions,
|
|
140
|
+
};
|
|
141
|
+
}),
|
|
142
|
+
/**
|
|
143
|
+
* Create a new RFQ
|
|
144
|
+
* @summary Create RFQ
|
|
145
|
+
* @param {CreateRFQRequest} createRFQRequest
|
|
146
|
+
* @param {*} [options] Override http request option.
|
|
147
|
+
* @throws {RequiredError}
|
|
148
|
+
*/
|
|
149
|
+
createRFQ: (createRFQRequest_1, ...args_1) => __awaiter(this, [createRFQRequest_1, ...args_1], void 0, function* (createRFQRequest, options = {}) {
|
|
150
|
+
// verify required parameter 'createRFQRequest' is not null or undefined
|
|
151
|
+
(0, common_1.assertParamExists)('createRFQ', 'createRFQRequest', createRFQRequest);
|
|
152
|
+
const localVarPath = `/communications/rfqs`;
|
|
153
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
154
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
155
|
+
let baseOptions;
|
|
156
|
+
if (configuration) {
|
|
157
|
+
baseOptions = configuration.baseOptions;
|
|
158
|
+
}
|
|
159
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
160
|
+
const localVarHeaderParameter = {};
|
|
161
|
+
const localVarQueryParameter = {};
|
|
162
|
+
// authentication bearerAuth required
|
|
163
|
+
// http bearer authentication required
|
|
164
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
165
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
166
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
167
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
168
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
169
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createRFQRequest, localVarRequestOptions, configuration);
|
|
170
|
+
return {
|
|
171
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
172
|
+
options: localVarRequestOptions,
|
|
173
|
+
};
|
|
174
|
+
}),
|
|
175
|
+
/**
|
|
176
|
+
* Delete a quote, which means it can no longer be accepted
|
|
177
|
+
* @summary Delete Quote
|
|
178
|
+
* @param {string} quoteId Quote ID
|
|
179
|
+
* @param {*} [options] Override http request option.
|
|
180
|
+
* @throws {RequiredError}
|
|
181
|
+
*/
|
|
182
|
+
deleteQuote: (quoteId_1, ...args_1) => __awaiter(this, [quoteId_1, ...args_1], void 0, function* (quoteId, options = {}) {
|
|
183
|
+
// verify required parameter 'quoteId' is not null or undefined
|
|
184
|
+
(0, common_1.assertParamExists)('deleteQuote', 'quoteId', quoteId);
|
|
185
|
+
const localVarPath = `/communications/quotes/{quote_id}`
|
|
186
|
+
.replace(`{${"quote_id"}}`, encodeURIComponent(String(quoteId)));
|
|
187
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
188
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
189
|
+
let baseOptions;
|
|
190
|
+
if (configuration) {
|
|
191
|
+
baseOptions = configuration.baseOptions;
|
|
192
|
+
}
|
|
193
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
194
|
+
const localVarHeaderParameter = {};
|
|
195
|
+
const localVarQueryParameter = {};
|
|
196
|
+
// authentication bearerAuth required
|
|
197
|
+
// http bearer authentication required
|
|
198
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
199
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
200
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
201
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
202
|
+
return {
|
|
203
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
204
|
+
options: localVarRequestOptions,
|
|
205
|
+
};
|
|
206
|
+
}),
|
|
207
|
+
/**
|
|
208
|
+
* Delete an RFQ by ID
|
|
209
|
+
* @summary Delete RFQ
|
|
210
|
+
* @param {string} rfqId RFQ ID
|
|
211
|
+
* @param {*} [options] Override http request option.
|
|
212
|
+
* @throws {RequiredError}
|
|
213
|
+
*/
|
|
214
|
+
deleteRFQ: (rfqId_1, ...args_1) => __awaiter(this, [rfqId_1, ...args_1], void 0, function* (rfqId, options = {}) {
|
|
215
|
+
// verify required parameter 'rfqId' is not null or undefined
|
|
216
|
+
(0, common_1.assertParamExists)('deleteRFQ', 'rfqId', rfqId);
|
|
217
|
+
const localVarPath = `/communications/rfqs/{rfq_id}`
|
|
218
|
+
.replace(`{${"rfq_id"}}`, encodeURIComponent(String(rfqId)));
|
|
219
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
220
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
221
|
+
let baseOptions;
|
|
222
|
+
if (configuration) {
|
|
223
|
+
baseOptions = configuration.baseOptions;
|
|
224
|
+
}
|
|
225
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
226
|
+
const localVarHeaderParameter = {};
|
|
227
|
+
const localVarQueryParameter = {};
|
|
228
|
+
// authentication bearerAuth required
|
|
229
|
+
// http bearer authentication required
|
|
230
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
231
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
232
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
233
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
234
|
+
return {
|
|
235
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
236
|
+
options: localVarRequestOptions,
|
|
237
|
+
};
|
|
238
|
+
}),
|
|
239
|
+
/**
|
|
240
|
+
* Get the communications ID of the logged-in user
|
|
241
|
+
* @summary Get Communications ID
|
|
242
|
+
* @param {*} [options] Override http request option.
|
|
243
|
+
* @throws {RequiredError}
|
|
244
|
+
*/
|
|
245
|
+
getCommunicationsID: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
246
|
+
const localVarPath = `/communications/id`;
|
|
247
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
248
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
249
|
+
let baseOptions;
|
|
250
|
+
if (configuration) {
|
|
251
|
+
baseOptions = configuration.baseOptions;
|
|
252
|
+
}
|
|
253
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
254
|
+
const localVarHeaderParameter = {};
|
|
255
|
+
const localVarQueryParameter = {};
|
|
256
|
+
// authentication bearerAuth required
|
|
257
|
+
// http bearer authentication required
|
|
258
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
259
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
260
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
261
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
262
|
+
return {
|
|
263
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
264
|
+
options: localVarRequestOptions,
|
|
265
|
+
};
|
|
266
|
+
}),
|
|
267
|
+
/**
|
|
268
|
+
* Get a particular quote by ID
|
|
269
|
+
* @summary Get Quote
|
|
270
|
+
* @param {string} quoteId Quote ID
|
|
271
|
+
* @param {*} [options] Override http request option.
|
|
272
|
+
* @throws {RequiredError}
|
|
273
|
+
*/
|
|
274
|
+
getQuote: (quoteId_1, ...args_1) => __awaiter(this, [quoteId_1, ...args_1], void 0, function* (quoteId, options = {}) {
|
|
275
|
+
// verify required parameter 'quoteId' is not null or undefined
|
|
276
|
+
(0, common_1.assertParamExists)('getQuote', 'quoteId', quoteId);
|
|
277
|
+
const localVarPath = `/communications/quotes/{quote_id}`
|
|
278
|
+
.replace(`{${"quote_id"}}`, encodeURIComponent(String(quoteId)));
|
|
279
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
280
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
281
|
+
let baseOptions;
|
|
282
|
+
if (configuration) {
|
|
283
|
+
baseOptions = configuration.baseOptions;
|
|
284
|
+
}
|
|
285
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
286
|
+
const localVarHeaderParameter = {};
|
|
287
|
+
const localVarQueryParameter = {};
|
|
288
|
+
// authentication bearerAuth required
|
|
289
|
+
// http bearer authentication required
|
|
290
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
291
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
292
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
293
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
294
|
+
return {
|
|
295
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
296
|
+
options: localVarRequestOptions,
|
|
297
|
+
};
|
|
298
|
+
}),
|
|
299
|
+
/**
|
|
300
|
+
* Retrieve all quotes
|
|
301
|
+
* @summary Get Quotes
|
|
302
|
+
* @param {*} [options] Override http request option.
|
|
303
|
+
* @throws {RequiredError}
|
|
304
|
+
*/
|
|
305
|
+
getQuotes: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
306
|
+
const localVarPath = `/communications/quotes`;
|
|
307
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
308
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
309
|
+
let baseOptions;
|
|
310
|
+
if (configuration) {
|
|
311
|
+
baseOptions = configuration.baseOptions;
|
|
312
|
+
}
|
|
313
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
314
|
+
const localVarHeaderParameter = {};
|
|
315
|
+
const localVarQueryParameter = {};
|
|
316
|
+
// authentication bearerAuth required
|
|
317
|
+
// http bearer authentication required
|
|
318
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
319
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
320
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
321
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
322
|
+
return {
|
|
323
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
324
|
+
options: localVarRequestOptions,
|
|
325
|
+
};
|
|
326
|
+
}),
|
|
327
|
+
/**
|
|
328
|
+
* Get a single RFQ by ID
|
|
329
|
+
* @summary Get RFQ
|
|
330
|
+
* @param {string} rfqId RFQ ID
|
|
331
|
+
* @param {*} [options] Override http request option.
|
|
332
|
+
* @throws {RequiredError}
|
|
333
|
+
*/
|
|
334
|
+
getRFQ: (rfqId_1, ...args_1) => __awaiter(this, [rfqId_1, ...args_1], void 0, function* (rfqId, options = {}) {
|
|
335
|
+
// verify required parameter 'rfqId' is not null or undefined
|
|
336
|
+
(0, common_1.assertParamExists)('getRFQ', 'rfqId', rfqId);
|
|
337
|
+
const localVarPath = `/communications/rfqs/{rfq_id}`
|
|
338
|
+
.replace(`{${"rfq_id"}}`, encodeURIComponent(String(rfqId)));
|
|
339
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
340
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
341
|
+
let baseOptions;
|
|
342
|
+
if (configuration) {
|
|
343
|
+
baseOptions = configuration.baseOptions;
|
|
344
|
+
}
|
|
345
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
346
|
+
const localVarHeaderParameter = {};
|
|
347
|
+
const localVarQueryParameter = {};
|
|
348
|
+
// authentication bearerAuth required
|
|
349
|
+
// http bearer authentication required
|
|
350
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
351
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
352
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
353
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
354
|
+
return {
|
|
355
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
356
|
+
options: localVarRequestOptions,
|
|
357
|
+
};
|
|
358
|
+
}),
|
|
359
|
+
/**
|
|
360
|
+
* Retrieve all RFQs
|
|
361
|
+
* @summary Get RFQs
|
|
362
|
+
* @param {*} [options] Override http request option.
|
|
363
|
+
* @throws {RequiredError}
|
|
364
|
+
*/
|
|
365
|
+
getRFQs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
366
|
+
const localVarPath = `/communications/rfqs`;
|
|
367
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
368
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
369
|
+
let baseOptions;
|
|
370
|
+
if (configuration) {
|
|
371
|
+
baseOptions = configuration.baseOptions;
|
|
372
|
+
}
|
|
373
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
374
|
+
const localVarHeaderParameter = {};
|
|
375
|
+
const localVarQueryParameter = {};
|
|
376
|
+
// authentication bearerAuth required
|
|
377
|
+
// http bearer authentication required
|
|
378
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
379
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
380
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
381
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
382
|
+
return {
|
|
383
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
384
|
+
options: localVarRequestOptions,
|
|
385
|
+
};
|
|
386
|
+
}),
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
exports.CommunicationsApiAxiosParamCreator = CommunicationsApiAxiosParamCreator;
|
|
390
|
+
/**
|
|
391
|
+
* CommunicationsApi - functional programming interface
|
|
392
|
+
*/
|
|
393
|
+
const CommunicationsApiFp = function (configuration) {
|
|
394
|
+
const localVarAxiosParamCreator = (0, exports.CommunicationsApiAxiosParamCreator)(configuration);
|
|
395
|
+
return {
|
|
396
|
+
/**
|
|
397
|
+
* Accept a quote. This will require the quoter to confirm
|
|
398
|
+
* @summary Accept Quote
|
|
399
|
+
* @param {string} quoteId Quote ID
|
|
400
|
+
* @param {AcceptQuoteRequest} acceptQuoteRequest
|
|
401
|
+
* @param {*} [options] Override http request option.
|
|
402
|
+
* @throws {RequiredError}
|
|
403
|
+
*/
|
|
404
|
+
acceptQuote(quoteId, acceptQuoteRequest, options) {
|
|
405
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
406
|
+
var _a, _b, _c;
|
|
407
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.acceptQuote(quoteId, acceptQuoteRequest, options);
|
|
408
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
409
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CommunicationsApi.acceptQuote']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
410
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
411
|
+
});
|
|
412
|
+
},
|
|
413
|
+
/**
|
|
414
|
+
* Confirm a quote. This will start a timer for order execution
|
|
415
|
+
* @summary Confirm Quote
|
|
416
|
+
* @param {string} quoteId Quote ID
|
|
417
|
+
* @param {*} [options] Override http request option.
|
|
418
|
+
* @throws {RequiredError}
|
|
419
|
+
*/
|
|
420
|
+
confirmQuote(quoteId, options) {
|
|
421
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
422
|
+
var _a, _b, _c;
|
|
423
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmQuote(quoteId, options);
|
|
424
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
425
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CommunicationsApi.confirmQuote']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
426
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
427
|
+
});
|
|
428
|
+
},
|
|
429
|
+
/**
|
|
430
|
+
* Create a quote in response to an RFQ
|
|
431
|
+
* @summary Create Quote
|
|
432
|
+
* @param {CreateQuoteRequest} createQuoteRequest
|
|
433
|
+
* @param {*} [options] Override http request option.
|
|
434
|
+
* @throws {RequiredError}
|
|
435
|
+
*/
|
|
436
|
+
createQuote(createQuoteRequest, options) {
|
|
437
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
438
|
+
var _a, _b, _c;
|
|
439
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createQuote(createQuoteRequest, options);
|
|
440
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
441
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CommunicationsApi.createQuote']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
442
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
443
|
+
});
|
|
444
|
+
},
|
|
445
|
+
/**
|
|
446
|
+
* Create a new RFQ
|
|
447
|
+
* @summary Create RFQ
|
|
448
|
+
* @param {CreateRFQRequest} createRFQRequest
|
|
449
|
+
* @param {*} [options] Override http request option.
|
|
450
|
+
* @throws {RequiredError}
|
|
451
|
+
*/
|
|
452
|
+
createRFQ(createRFQRequest, options) {
|
|
453
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
454
|
+
var _a, _b, _c;
|
|
455
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createRFQ(createRFQRequest, options);
|
|
456
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
457
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CommunicationsApi.createRFQ']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
458
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
459
|
+
});
|
|
460
|
+
},
|
|
461
|
+
/**
|
|
462
|
+
* Delete a quote, which means it can no longer be accepted
|
|
463
|
+
* @summary Delete Quote
|
|
464
|
+
* @param {string} quoteId Quote ID
|
|
465
|
+
* @param {*} [options] Override http request option.
|
|
466
|
+
* @throws {RequiredError}
|
|
467
|
+
*/
|
|
468
|
+
deleteQuote(quoteId, options) {
|
|
469
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
470
|
+
var _a, _b, _c;
|
|
471
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteQuote(quoteId, options);
|
|
472
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
473
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CommunicationsApi.deleteQuote']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
474
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
475
|
+
});
|
|
476
|
+
},
|
|
477
|
+
/**
|
|
478
|
+
* Delete an RFQ by ID
|
|
479
|
+
* @summary Delete RFQ
|
|
480
|
+
* @param {string} rfqId RFQ ID
|
|
481
|
+
* @param {*} [options] Override http request option.
|
|
482
|
+
* @throws {RequiredError}
|
|
483
|
+
*/
|
|
484
|
+
deleteRFQ(rfqId, options) {
|
|
485
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
486
|
+
var _a, _b, _c;
|
|
487
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteRFQ(rfqId, options);
|
|
488
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
489
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CommunicationsApi.deleteRFQ']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
490
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
491
|
+
});
|
|
492
|
+
},
|
|
493
|
+
/**
|
|
494
|
+
* Get the communications ID of the logged-in user
|
|
495
|
+
* @summary Get Communications ID
|
|
496
|
+
* @param {*} [options] Override http request option.
|
|
497
|
+
* @throws {RequiredError}
|
|
498
|
+
*/
|
|
499
|
+
getCommunicationsID(options) {
|
|
500
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
501
|
+
var _a, _b, _c;
|
|
502
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCommunicationsID(options);
|
|
503
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
504
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CommunicationsApi.getCommunicationsID']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
505
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
506
|
+
});
|
|
507
|
+
},
|
|
508
|
+
/**
|
|
509
|
+
* Get a particular quote by ID
|
|
510
|
+
* @summary Get Quote
|
|
511
|
+
* @param {string} quoteId Quote ID
|
|
512
|
+
* @param {*} [options] Override http request option.
|
|
513
|
+
* @throws {RequiredError}
|
|
514
|
+
*/
|
|
515
|
+
getQuote(quoteId, options) {
|
|
516
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
517
|
+
var _a, _b, _c;
|
|
518
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getQuote(quoteId, options);
|
|
519
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
520
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CommunicationsApi.getQuote']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
521
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
522
|
+
});
|
|
523
|
+
},
|
|
524
|
+
/**
|
|
525
|
+
* Retrieve all quotes
|
|
526
|
+
* @summary Get Quotes
|
|
527
|
+
* @param {*} [options] Override http request option.
|
|
528
|
+
* @throws {RequiredError}
|
|
529
|
+
*/
|
|
530
|
+
getQuotes(options) {
|
|
531
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
532
|
+
var _a, _b, _c;
|
|
533
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getQuotes(options);
|
|
534
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
535
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CommunicationsApi.getQuotes']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
536
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
537
|
+
});
|
|
538
|
+
},
|
|
539
|
+
/**
|
|
540
|
+
* Get a single RFQ by ID
|
|
541
|
+
* @summary Get RFQ
|
|
542
|
+
* @param {string} rfqId RFQ ID
|
|
543
|
+
* @param {*} [options] Override http request option.
|
|
544
|
+
* @throws {RequiredError}
|
|
545
|
+
*/
|
|
546
|
+
getRFQ(rfqId, options) {
|
|
547
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
548
|
+
var _a, _b, _c;
|
|
549
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRFQ(rfqId, options);
|
|
550
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
551
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CommunicationsApi.getRFQ']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
552
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
553
|
+
});
|
|
554
|
+
},
|
|
555
|
+
/**
|
|
556
|
+
* Retrieve all RFQs
|
|
557
|
+
* @summary Get RFQs
|
|
558
|
+
* @param {*} [options] Override http request option.
|
|
559
|
+
* @throws {RequiredError}
|
|
560
|
+
*/
|
|
561
|
+
getRFQs(options) {
|
|
562
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
563
|
+
var _a, _b, _c;
|
|
564
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRFQs(options);
|
|
565
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
566
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CommunicationsApi.getRFQs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
567
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
568
|
+
});
|
|
569
|
+
},
|
|
570
|
+
};
|
|
571
|
+
};
|
|
572
|
+
exports.CommunicationsApiFp = CommunicationsApiFp;
|
|
573
|
+
/**
|
|
574
|
+
* CommunicationsApi - factory interface
|
|
575
|
+
*/
|
|
576
|
+
const CommunicationsApiFactory = function (configuration, basePath, axios) {
|
|
577
|
+
const localVarFp = (0, exports.CommunicationsApiFp)(configuration);
|
|
578
|
+
return {
|
|
579
|
+
/**
|
|
580
|
+
* Accept a quote. This will require the quoter to confirm
|
|
581
|
+
* @summary Accept Quote
|
|
582
|
+
* @param {string} quoteId Quote ID
|
|
583
|
+
* @param {AcceptQuoteRequest} acceptQuoteRequest
|
|
584
|
+
* @param {*} [options] Override http request option.
|
|
585
|
+
* @throws {RequiredError}
|
|
586
|
+
*/
|
|
587
|
+
acceptQuote(quoteId, acceptQuoteRequest, options) {
|
|
588
|
+
return localVarFp.acceptQuote(quoteId, acceptQuoteRequest, options).then((request) => request(axios, basePath));
|
|
589
|
+
},
|
|
590
|
+
/**
|
|
591
|
+
* Confirm a quote. This will start a timer for order execution
|
|
592
|
+
* @summary Confirm Quote
|
|
593
|
+
* @param {string} quoteId Quote ID
|
|
594
|
+
* @param {*} [options] Override http request option.
|
|
595
|
+
* @throws {RequiredError}
|
|
596
|
+
*/
|
|
597
|
+
confirmQuote(quoteId, options) {
|
|
598
|
+
return localVarFp.confirmQuote(quoteId, options).then((request) => request(axios, basePath));
|
|
599
|
+
},
|
|
600
|
+
/**
|
|
601
|
+
* Create a quote in response to an RFQ
|
|
602
|
+
* @summary Create Quote
|
|
603
|
+
* @param {CreateQuoteRequest} createQuoteRequest
|
|
604
|
+
* @param {*} [options] Override http request option.
|
|
605
|
+
* @throws {RequiredError}
|
|
606
|
+
*/
|
|
607
|
+
createQuote(createQuoteRequest, options) {
|
|
608
|
+
return localVarFp.createQuote(createQuoteRequest, options).then((request) => request(axios, basePath));
|
|
609
|
+
},
|
|
610
|
+
/**
|
|
611
|
+
* Create a new RFQ
|
|
612
|
+
* @summary Create RFQ
|
|
613
|
+
* @param {CreateRFQRequest} createRFQRequest
|
|
614
|
+
* @param {*} [options] Override http request option.
|
|
615
|
+
* @throws {RequiredError}
|
|
616
|
+
*/
|
|
617
|
+
createRFQ(createRFQRequest, options) {
|
|
618
|
+
return localVarFp.createRFQ(createRFQRequest, options).then((request) => request(axios, basePath));
|
|
619
|
+
},
|
|
620
|
+
/**
|
|
621
|
+
* Delete a quote, which means it can no longer be accepted
|
|
622
|
+
* @summary Delete Quote
|
|
623
|
+
* @param {string} quoteId Quote ID
|
|
624
|
+
* @param {*} [options] Override http request option.
|
|
625
|
+
* @throws {RequiredError}
|
|
626
|
+
*/
|
|
627
|
+
deleteQuote(quoteId, options) {
|
|
628
|
+
return localVarFp.deleteQuote(quoteId, options).then((request) => request(axios, basePath));
|
|
629
|
+
},
|
|
630
|
+
/**
|
|
631
|
+
* Delete an RFQ by ID
|
|
632
|
+
* @summary Delete RFQ
|
|
633
|
+
* @param {string} rfqId RFQ ID
|
|
634
|
+
* @param {*} [options] Override http request option.
|
|
635
|
+
* @throws {RequiredError}
|
|
636
|
+
*/
|
|
637
|
+
deleteRFQ(rfqId, options) {
|
|
638
|
+
return localVarFp.deleteRFQ(rfqId, options).then((request) => request(axios, basePath));
|
|
639
|
+
},
|
|
640
|
+
/**
|
|
641
|
+
* Get the communications ID of the logged-in user
|
|
642
|
+
* @summary Get Communications ID
|
|
643
|
+
* @param {*} [options] Override http request option.
|
|
644
|
+
* @throws {RequiredError}
|
|
645
|
+
*/
|
|
646
|
+
getCommunicationsID(options) {
|
|
647
|
+
return localVarFp.getCommunicationsID(options).then((request) => request(axios, basePath));
|
|
648
|
+
},
|
|
649
|
+
/**
|
|
650
|
+
* Get a particular quote by ID
|
|
651
|
+
* @summary Get Quote
|
|
652
|
+
* @param {string} quoteId Quote ID
|
|
653
|
+
* @param {*} [options] Override http request option.
|
|
654
|
+
* @throws {RequiredError}
|
|
655
|
+
*/
|
|
656
|
+
getQuote(quoteId, options) {
|
|
657
|
+
return localVarFp.getQuote(quoteId, options).then((request) => request(axios, basePath));
|
|
658
|
+
},
|
|
659
|
+
/**
|
|
660
|
+
* Retrieve all quotes
|
|
661
|
+
* @summary Get Quotes
|
|
662
|
+
* @param {*} [options] Override http request option.
|
|
663
|
+
* @throws {RequiredError}
|
|
664
|
+
*/
|
|
665
|
+
getQuotes(options) {
|
|
666
|
+
return localVarFp.getQuotes(options).then((request) => request(axios, basePath));
|
|
667
|
+
},
|
|
668
|
+
/**
|
|
669
|
+
* Get a single RFQ by ID
|
|
670
|
+
* @summary Get RFQ
|
|
671
|
+
* @param {string} rfqId RFQ ID
|
|
672
|
+
* @param {*} [options] Override http request option.
|
|
673
|
+
* @throws {RequiredError}
|
|
674
|
+
*/
|
|
675
|
+
getRFQ(rfqId, options) {
|
|
676
|
+
return localVarFp.getRFQ(rfqId, options).then((request) => request(axios, basePath));
|
|
677
|
+
},
|
|
678
|
+
/**
|
|
679
|
+
* Retrieve all RFQs
|
|
680
|
+
* @summary Get RFQs
|
|
681
|
+
* @param {*} [options] Override http request option.
|
|
682
|
+
* @throws {RequiredError}
|
|
683
|
+
*/
|
|
684
|
+
getRFQs(options) {
|
|
685
|
+
return localVarFp.getRFQs(options).then((request) => request(axios, basePath));
|
|
686
|
+
},
|
|
687
|
+
};
|
|
688
|
+
};
|
|
689
|
+
exports.CommunicationsApiFactory = CommunicationsApiFactory;
|
|
690
|
+
/**
|
|
691
|
+
* CommunicationsApi - object-oriented interface
|
|
692
|
+
*/
|
|
693
|
+
class CommunicationsApi extends base_1.BaseAPI {
|
|
694
|
+
/**
|
|
695
|
+
* Accept a quote. This will require the quoter to confirm
|
|
696
|
+
* @summary Accept Quote
|
|
697
|
+
* @param {string} quoteId Quote ID
|
|
698
|
+
* @param {AcceptQuoteRequest} acceptQuoteRequest
|
|
699
|
+
* @param {*} [options] Override http request option.
|
|
700
|
+
* @throws {RequiredError}
|
|
701
|
+
*/
|
|
702
|
+
acceptQuote(quoteId, acceptQuoteRequest, options) {
|
|
703
|
+
return (0, exports.CommunicationsApiFp)(this.configuration).acceptQuote(quoteId, acceptQuoteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
704
|
+
}
|
|
705
|
+
/**
|
|
706
|
+
* Confirm a quote. This will start a timer for order execution
|
|
707
|
+
* @summary Confirm Quote
|
|
708
|
+
* @param {string} quoteId Quote ID
|
|
709
|
+
* @param {*} [options] Override http request option.
|
|
710
|
+
* @throws {RequiredError}
|
|
711
|
+
*/
|
|
712
|
+
confirmQuote(quoteId, options) {
|
|
713
|
+
return (0, exports.CommunicationsApiFp)(this.configuration).confirmQuote(quoteId, options).then((request) => request(this.axios, this.basePath));
|
|
714
|
+
}
|
|
715
|
+
/**
|
|
716
|
+
* Create a quote in response to an RFQ
|
|
717
|
+
* @summary Create Quote
|
|
718
|
+
* @param {CreateQuoteRequest} createQuoteRequest
|
|
719
|
+
* @param {*} [options] Override http request option.
|
|
720
|
+
* @throws {RequiredError}
|
|
721
|
+
*/
|
|
722
|
+
createQuote(createQuoteRequest, options) {
|
|
723
|
+
return (0, exports.CommunicationsApiFp)(this.configuration).createQuote(createQuoteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
724
|
+
}
|
|
725
|
+
/**
|
|
726
|
+
* Create a new RFQ
|
|
727
|
+
* @summary Create RFQ
|
|
728
|
+
* @param {CreateRFQRequest} createRFQRequest
|
|
729
|
+
* @param {*} [options] Override http request option.
|
|
730
|
+
* @throws {RequiredError}
|
|
731
|
+
*/
|
|
732
|
+
createRFQ(createRFQRequest, options) {
|
|
733
|
+
return (0, exports.CommunicationsApiFp)(this.configuration).createRFQ(createRFQRequest, options).then((request) => request(this.axios, this.basePath));
|
|
734
|
+
}
|
|
735
|
+
/**
|
|
736
|
+
* Delete a quote, which means it can no longer be accepted
|
|
737
|
+
* @summary Delete Quote
|
|
738
|
+
* @param {string} quoteId Quote ID
|
|
739
|
+
* @param {*} [options] Override http request option.
|
|
740
|
+
* @throws {RequiredError}
|
|
741
|
+
*/
|
|
742
|
+
deleteQuote(quoteId, options) {
|
|
743
|
+
return (0, exports.CommunicationsApiFp)(this.configuration).deleteQuote(quoteId, options).then((request) => request(this.axios, this.basePath));
|
|
744
|
+
}
|
|
745
|
+
/**
|
|
746
|
+
* Delete an RFQ by ID
|
|
747
|
+
* @summary Delete RFQ
|
|
748
|
+
* @param {string} rfqId RFQ ID
|
|
749
|
+
* @param {*} [options] Override http request option.
|
|
750
|
+
* @throws {RequiredError}
|
|
751
|
+
*/
|
|
752
|
+
deleteRFQ(rfqId, options) {
|
|
753
|
+
return (0, exports.CommunicationsApiFp)(this.configuration).deleteRFQ(rfqId, options).then((request) => request(this.axios, this.basePath));
|
|
754
|
+
}
|
|
755
|
+
/**
|
|
756
|
+
* Get the communications ID of the logged-in user
|
|
757
|
+
* @summary Get Communications ID
|
|
758
|
+
* @param {*} [options] Override http request option.
|
|
759
|
+
* @throws {RequiredError}
|
|
760
|
+
*/
|
|
761
|
+
getCommunicationsID(options) {
|
|
762
|
+
return (0, exports.CommunicationsApiFp)(this.configuration).getCommunicationsID(options).then((request) => request(this.axios, this.basePath));
|
|
763
|
+
}
|
|
764
|
+
/**
|
|
765
|
+
* Get a particular quote by ID
|
|
766
|
+
* @summary Get Quote
|
|
767
|
+
* @param {string} quoteId Quote ID
|
|
768
|
+
* @param {*} [options] Override http request option.
|
|
769
|
+
* @throws {RequiredError}
|
|
770
|
+
*/
|
|
771
|
+
getQuote(quoteId, options) {
|
|
772
|
+
return (0, exports.CommunicationsApiFp)(this.configuration).getQuote(quoteId, options).then((request) => request(this.axios, this.basePath));
|
|
773
|
+
}
|
|
774
|
+
/**
|
|
775
|
+
* Retrieve all quotes
|
|
776
|
+
* @summary Get Quotes
|
|
777
|
+
* @param {*} [options] Override http request option.
|
|
778
|
+
* @throws {RequiredError}
|
|
779
|
+
*/
|
|
780
|
+
getQuotes(options) {
|
|
781
|
+
return (0, exports.CommunicationsApiFp)(this.configuration).getQuotes(options).then((request) => request(this.axios, this.basePath));
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
* Get a single RFQ by ID
|
|
785
|
+
* @summary Get RFQ
|
|
786
|
+
* @param {string} rfqId RFQ ID
|
|
787
|
+
* @param {*} [options] Override http request option.
|
|
788
|
+
* @throws {RequiredError}
|
|
789
|
+
*/
|
|
790
|
+
getRFQ(rfqId, options) {
|
|
791
|
+
return (0, exports.CommunicationsApiFp)(this.configuration).getRFQ(rfqId, options).then((request) => request(this.axios, this.basePath));
|
|
792
|
+
}
|
|
793
|
+
/**
|
|
794
|
+
* Retrieve all RFQs
|
|
795
|
+
* @summary Get RFQs
|
|
796
|
+
* @param {*} [options] Override http request option.
|
|
797
|
+
* @throws {RequiredError}
|
|
798
|
+
*/
|
|
799
|
+
getRFQs(options) {
|
|
800
|
+
return (0, exports.CommunicationsApiFp)(this.configuration).getRFQs(options).then((request) => request(this.axios, this.basePath));
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
exports.CommunicationsApi = CommunicationsApi;
|