be-components 7.4.7 → 7.5.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/lib/commonjs/ApiOverrides/index.js +4 -0
- package/lib/commonjs/ApiOverrides/index.js.map +1 -1
- package/lib/commonjs/BetRouter/api/index.js +884 -0
- package/lib/commonjs/BetRouter/api/index.js.map +1 -0
- package/lib/commonjs/BetRouter/api/types.js +2 -0
- package/lib/commonjs/BetRouter/api/types.js.map +1 -0
- package/lib/commonjs/BetRouter/components/AccountManager.js +592 -0
- package/lib/commonjs/BetRouter/components/AccountManager.js.map +1 -0
- package/lib/commonjs/BetRouter/components/AdminPortal.js +51 -0
- package/lib/commonjs/BetRouter/components/AdminPortal.js.map +1 -0
- package/lib/commonjs/BetRouter/components/BuyOpportunities.js +550 -0
- package/lib/commonjs/BetRouter/components/BuyOpportunities.js.map +1 -0
- package/lib/commonjs/BetRouter/components/BuyOpportunityCard.js +320 -0
- package/lib/commonjs/BetRouter/components/BuyOpportunityCard.js.map +1 -0
- package/lib/commonjs/BetRouter/components/ContestLiquidity.js +666 -0
- package/lib/commonjs/BetRouter/components/ContestLiquidity.js.map +1 -0
- package/lib/commonjs/BetRouter/components/ContestSelector.js +193 -0
- package/lib/commonjs/BetRouter/components/ContestSelector.js.map +1 -0
- package/lib/commonjs/BetRouter/components/MyOpportunities.js +332 -0
- package/lib/commonjs/BetRouter/components/MyOpportunities.js.map +1 -0
- package/lib/commonjs/BetRouter/components/MyOpportunities.tsx.bak +440 -0
- package/lib/commonjs/BetRouter/components/OpportunityDetailModal.js +545 -0
- package/lib/commonjs/BetRouter/components/OpportunityDetailModal.js.map +1 -0
- package/lib/commonjs/BetRouter/components/OpportunityHistory.js +489 -0
- package/lib/commonjs/BetRouter/components/OpportunityHistory.js.map +1 -0
- package/lib/commonjs/BetRouter/components/PartnerCredentials.js +229 -0
- package/lib/commonjs/BetRouter/components/PartnerCredentials.js.map +1 -0
- package/lib/commonjs/BetRouter/components/PlacedOpportunityModal.js +262 -0
- package/lib/commonjs/BetRouter/components/PlacedOpportunityModal.js.map +1 -0
- package/lib/commonjs/BetRouter/components/admin/AutoFillView.js +380 -0
- package/lib/commonjs/BetRouter/components/admin/AutoFillView.js.map +1 -0
- package/lib/commonjs/BetRouter/components/admin/ConfigManager.js +814 -0
- package/lib/commonjs/BetRouter/components/admin/ConfigManager.js.map +1 -0
- package/lib/commonjs/BetRouter/components/admin/JobManager.js +895 -0
- package/lib/commonjs/BetRouter/components/admin/JobManager.js.map +1 -0
- package/lib/commonjs/BetRouter/components/admin/LeagueContests.js +2844 -0
- package/lib/commonjs/BetRouter/components/admin/LeagueContests.js.map +1 -0
- package/lib/commonjs/BetRouter/components/admin/LeagueInfo.js +378 -0
- package/lib/commonjs/BetRouter/components/admin/LeagueInfo.js.map +1 -0
- package/lib/commonjs/BetRouter/components/admin/LeagueParticipants.js +795 -0
- package/lib/commonjs/BetRouter/components/admin/LeagueParticipants.js.map +1 -0
- package/lib/commonjs/BetRouter/index.js +411 -0
- package/lib/commonjs/BetRouter/index.js.map +1 -0
- package/lib/commonjs/BetRouter/layouts/DesktopAdminLayout.js +312 -0
- package/lib/commonjs/BetRouter/layouts/DesktopAdminLayout.js.map +1 -0
- package/lib/commonjs/BetRouter/layouts/DesktopLayout.js +271 -0
- package/lib/commonjs/BetRouter/layouts/DesktopLayout.js.map +1 -0
- package/lib/commonjs/BetRouter/layouts/MobileAdminLayout.js +435 -0
- package/lib/commonjs/BetRouter/layouts/MobileAdminLayout.js.map +1 -0
- package/lib/commonjs/BetRouter/layouts/MobileLayout.js +293 -0
- package/lib/commonjs/BetRouter/layouts/MobileLayout.js.map +1 -0
- package/lib/commonjs/BetRouter/types/ADMIN_PORTAL.md +863 -0
- package/lib/commonjs/BetRouter/types/ADMIN_PORTAL_SIMPLIFIED.md +1881 -0
- package/lib/commonjs/BetRouter/types/CREDENTIALS_EXAMPLE.md +350 -0
- package/lib/commonjs/BetRouter/types/LIQUIDITY_CLIENT_GUIDE.md +399 -0
- package/lib/commonjs/BetRouter/types/MARKET_LINKING_WORKFLOW.md +682 -0
- package/lib/commonjs/BetRouter/types/MARKET_LINKING_WORKFLOW_V2.md +627 -0
- package/lib/commonjs/BetRouter/types/README.md +249 -0
- package/lib/commonjs/BetRouter/types/accounts.js +2 -0
- package/lib/commonjs/BetRouter/types/accounts.js.map +1 -0
- package/lib/commonjs/BetRouter/types/api-contracts.js +776 -0
- package/lib/commonjs/BetRouter/types/api-contracts.js.map +1 -0
- package/lib/commonjs/BetRouter/types/config.js +2 -0
- package/lib/commonjs/BetRouter/types/config.js.map +1 -0
- package/lib/commonjs/BetRouter/types/contests.js +2 -0
- package/lib/commonjs/BetRouter/types/contests.js.map +1 -0
- package/lib/commonjs/BetRouter/types/credentials.js +90 -0
- package/lib/commonjs/BetRouter/types/credentials.js.map +1 -0
- package/lib/commonjs/BetRouter/types/index.js +149 -0
- package/lib/commonjs/BetRouter/types/index.js.map +1 -0
- package/lib/commonjs/BetRouter/types/jobs.js +2 -0
- package/lib/commonjs/BetRouter/types/jobs.js.map +1 -0
- package/lib/commonjs/BetRouter/types/leagues.js +2 -0
- package/lib/commonjs/BetRouter/types/leagues.js.map +1 -0
- package/lib/commonjs/BetRouter/types/liquidity.js +2 -0
- package/lib/commonjs/BetRouter/types/liquidity.js.map +1 -0
- package/lib/commonjs/BetRouter/types/markets.js +2 -0
- package/lib/commonjs/BetRouter/types/markets.js.map +1 -0
- package/lib/commonjs/BetRouter/types/opportunities.js +6 -0
- package/lib/commonjs/BetRouter/types/opportunities.js.map +1 -0
- package/lib/commonjs/BetRouter/types/orders.js +2 -0
- package/lib/commonjs/BetRouter/types/orders.js.map +1 -0
- package/lib/commonjs/BetRouter/types/participants.js +2 -0
- package/lib/commonjs/BetRouter/types/participants.js.map +1 -0
- package/lib/commonjs/BetRouter/types/partners.js +2 -0
- package/lib/commonjs/BetRouter/types/partners.js.map +1 -0
- package/lib/commonjs/Charts/README.md +310 -0
- package/lib/commonjs/Charts/adapters/TradeChartAdapter.js +406 -0
- package/lib/commonjs/Charts/adapters/TradeChartAdapter.js.map +1 -0
- package/lib/commonjs/Charts/components/BaseLineChart.js +285 -0
- package/lib/commonjs/Charts/components/BaseLineChart.js.map +1 -0
- package/lib/commonjs/Charts/components/LivePriceChart.js +504 -0
- package/lib/commonjs/Charts/components/LivePriceChart.js.map +1 -0
- package/lib/commonjs/Charts/index.js +126 -0
- package/lib/commonjs/Charts/index.js.map +1 -0
- package/lib/commonjs/Charts/themes/chartTheme.js +141 -0
- package/lib/commonjs/Charts/themes/chartTheme.js.map +1 -0
- package/lib/commonjs/Charts/types.js +2 -0
- package/lib/commonjs/Charts/types.js.map +1 -0
- package/lib/commonjs/Charts/utils/formatters.js +194 -0
- package/lib/commonjs/Charts/utils/formatters.js.map +1 -0
- package/lib/commonjs/Components/Dropdown.js +5 -3
- package/lib/commonjs/Components/Dropdown.js.map +1 -1
- package/lib/commonjs/Components/Icons.js +24 -0
- package/lib/commonjs/Components/Icons.js.map +1 -1
- package/lib/commonjs/Components/index.js +34 -0
- package/lib/commonjs/Components/index.js.map +1 -1
- package/lib/commonjs/LocationTracker/LocationStatus.js +5 -2
- package/lib/commonjs/LocationTracker/LocationStatus.js.map +1 -1
- package/lib/commonjs/LocationTracker/api/index.js +2 -2
- package/lib/commonjs/LocationTracker/api/index.js.map +1 -1
- package/lib/commonjs/index.js +28 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/types.d.js +16 -0
- package/lib/commonjs/types.d.js.map +1 -1
- package/lib/module/ApiOverrides/index.js +4 -0
- package/lib/module/ApiOverrides/index.js.map +1 -1
- package/lib/module/BetRouter/api/index.js +873 -0
- package/lib/module/BetRouter/api/index.js.map +1 -0
- package/lib/module/BetRouter/api/types.js +2 -0
- package/lib/module/BetRouter/api/types.js.map +1 -0
- package/lib/module/BetRouter/components/AccountManager.js +584 -0
- package/lib/module/BetRouter/components/AccountManager.js.map +1 -0
- package/lib/module/BetRouter/components/AdminPortal.js +43 -0
- package/lib/module/BetRouter/components/AdminPortal.js.map +1 -0
- package/lib/module/BetRouter/components/BuyOpportunities.js +542 -0
- package/lib/module/BetRouter/components/BuyOpportunities.js.map +1 -0
- package/lib/module/BetRouter/components/BuyOpportunityCard.js +313 -0
- package/lib/module/BetRouter/components/BuyOpportunityCard.js.map +1 -0
- package/lib/module/BetRouter/components/ContestLiquidity.js +658 -0
- package/lib/module/BetRouter/components/ContestLiquidity.js.map +1 -0
- package/lib/module/BetRouter/components/ContestSelector.js +185 -0
- package/lib/module/BetRouter/components/ContestSelector.js.map +1 -0
- package/lib/module/BetRouter/components/MyOpportunities.js +324 -0
- package/lib/module/BetRouter/components/MyOpportunities.js.map +1 -0
- package/lib/module/BetRouter/components/MyOpportunities.tsx.bak +440 -0
- package/lib/module/BetRouter/components/OpportunityDetailModal.js +538 -0
- package/lib/module/BetRouter/components/OpportunityDetailModal.js.map +1 -0
- package/lib/module/BetRouter/components/OpportunityHistory.js +481 -0
- package/lib/module/BetRouter/components/OpportunityHistory.js.map +1 -0
- package/lib/module/BetRouter/components/PartnerCredentials.js +222 -0
- package/lib/module/BetRouter/components/PartnerCredentials.js.map +1 -0
- package/lib/module/BetRouter/components/PlacedOpportunityModal.js +255 -0
- package/lib/module/BetRouter/components/PlacedOpportunityModal.js.map +1 -0
- package/lib/module/BetRouter/components/admin/AutoFillView.js +372 -0
- package/lib/module/BetRouter/components/admin/AutoFillView.js.map +1 -0
- package/lib/module/BetRouter/components/admin/ConfigManager.js +806 -0
- package/lib/module/BetRouter/components/admin/ConfigManager.js.map +1 -0
- package/lib/module/BetRouter/components/admin/JobManager.js +888 -0
- package/lib/module/BetRouter/components/admin/JobManager.js.map +1 -0
- package/lib/module/BetRouter/components/admin/LeagueContests.js +2836 -0
- package/lib/module/BetRouter/components/admin/LeagueContests.js.map +1 -0
- package/lib/module/BetRouter/components/admin/LeagueInfo.js +372 -0
- package/lib/module/BetRouter/components/admin/LeagueInfo.js.map +1 -0
- package/lib/module/BetRouter/components/admin/LeagueParticipants.js +787 -0
- package/lib/module/BetRouter/components/admin/LeagueParticipants.js.map +1 -0
- package/lib/module/BetRouter/index.js +399 -0
- package/lib/module/BetRouter/index.js.map +1 -0
- package/lib/module/BetRouter/layouts/DesktopAdminLayout.js +304 -0
- package/lib/module/BetRouter/layouts/DesktopAdminLayout.js.map +1 -0
- package/lib/module/BetRouter/layouts/DesktopLayout.js +263 -0
- package/lib/module/BetRouter/layouts/DesktopLayout.js.map +1 -0
- package/lib/module/BetRouter/layouts/MobileAdminLayout.js +427 -0
- package/lib/module/BetRouter/layouts/MobileAdminLayout.js.map +1 -0
- package/lib/module/BetRouter/layouts/MobileLayout.js +285 -0
- package/lib/module/BetRouter/layouts/MobileLayout.js.map +1 -0
- package/lib/module/BetRouter/types/ADMIN_PORTAL.md +863 -0
- package/lib/module/BetRouter/types/ADMIN_PORTAL_SIMPLIFIED.md +1881 -0
- package/lib/module/BetRouter/types/CREDENTIALS_EXAMPLE.md +350 -0
- package/lib/module/BetRouter/types/LIQUIDITY_CLIENT_GUIDE.md +399 -0
- package/lib/module/BetRouter/types/MARKET_LINKING_WORKFLOW.md +682 -0
- package/lib/module/BetRouter/types/MARKET_LINKING_WORKFLOW_V2.md +627 -0
- package/lib/module/BetRouter/types/README.md +249 -0
- package/lib/module/BetRouter/types/accounts.js +2 -0
- package/lib/module/BetRouter/types/accounts.js.map +1 -0
- package/lib/module/BetRouter/types/api-contracts.js +770 -0
- package/lib/module/BetRouter/types/api-contracts.js.map +1 -0
- package/lib/module/BetRouter/types/config.js +2 -0
- package/lib/module/BetRouter/types/config.js.map +1 -0
- package/lib/module/BetRouter/types/contests.js +2 -0
- package/lib/module/BetRouter/types/contests.js.map +1 -0
- package/lib/module/BetRouter/types/credentials.js +78 -0
- package/lib/module/BetRouter/types/credentials.js.map +1 -0
- package/lib/module/BetRouter/types/index.js +17 -0
- package/lib/module/BetRouter/types/index.js.map +1 -0
- package/lib/module/BetRouter/types/jobs.js +2 -0
- package/lib/module/BetRouter/types/jobs.js.map +1 -0
- package/lib/module/BetRouter/types/leagues.js +2 -0
- package/lib/module/BetRouter/types/leagues.js.map +1 -0
- package/lib/module/BetRouter/types/liquidity.js +2 -0
- package/lib/module/BetRouter/types/liquidity.js.map +1 -0
- package/lib/module/BetRouter/types/markets.js +2 -0
- package/lib/module/BetRouter/types/markets.js.map +1 -0
- package/lib/module/BetRouter/types/opportunities.js +2 -0
- package/lib/module/BetRouter/types/opportunities.js.map +1 -0
- package/lib/module/BetRouter/types/orders.js +2 -0
- package/lib/module/BetRouter/types/orders.js.map +1 -0
- package/lib/module/BetRouter/types/participants.js +2 -0
- package/lib/module/BetRouter/types/participants.js.map +1 -0
- package/lib/module/BetRouter/types/partners.js +2 -0
- package/lib/module/BetRouter/types/partners.js.map +1 -0
- package/lib/module/Charts/README.md +310 -0
- package/lib/module/Charts/adapters/TradeChartAdapter.js +400 -0
- package/lib/module/Charts/adapters/TradeChartAdapter.js.map +1 -0
- package/lib/module/Charts/components/BaseLineChart.js +281 -0
- package/lib/module/Charts/components/BaseLineChart.js.map +1 -0
- package/lib/module/Charts/components/LivePriceChart.js +497 -0
- package/lib/module/Charts/components/LivePriceChart.js.map +1 -0
- package/lib/module/Charts/index.js +36 -0
- package/lib/module/Charts/index.js.map +1 -0
- package/lib/module/Charts/themes/chartTheme.js +134 -0
- package/lib/module/Charts/themes/chartTheme.js.map +1 -0
- package/lib/module/Charts/types.js +2 -0
- package/lib/module/Charts/types.js.map +1 -0
- package/lib/module/Charts/utils/formatters.js +178 -0
- package/lib/module/Charts/utils/formatters.js.map +1 -0
- package/lib/module/Components/Dropdown.js +5 -3
- package/lib/module/Components/Dropdown.js.map +1 -1
- package/lib/module/Components/Icons.js +24 -1
- package/lib/module/Components/Icons.js.map +1 -1
- package/lib/module/Components/index.js +3 -0
- package/lib/module/Components/index.js.map +1 -1
- package/lib/module/LocationTracker/LocationStatus.js +5 -2
- package/lib/module/LocationTracker/LocationStatus.js.map +1 -1
- package/lib/module/LocationTracker/api/index.js +2 -2
- package/lib/module/LocationTracker/api/index.js.map +1 -1
- package/lib/module/index.js +5 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/types.d.js +16 -0
- package/lib/module/types.d.js.map +1 -1
- package/lib/typescript/lib/commonjs/ApiOverrides/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/BetRouter/api/index.d.ts +109 -0
- package/lib/typescript/lib/commonjs/BetRouter/api/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/api/types.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/api/types.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/AccountManager.d.ts +16 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/AccountManager.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/AdminPortal.d.ts +9 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/AdminPortal.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/BuyOpportunities.d.ts +16 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/BuyOpportunities.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/BuyOpportunityCard.d.ts +14 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/BuyOpportunityCard.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/ContestLiquidity.d.ts +11 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/ContestLiquidity.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/ContestSelector.d.ts +11 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/ContestSelector.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/MyOpportunities.d.ts +8 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/MyOpportunities.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/OpportunityDetailModal.d.ts +14 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/OpportunityDetailModal.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/OpportunityHistory.d.ts +9 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/OpportunityHistory.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/PartnerCredentials.d.ts +10 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/PartnerCredentials.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/PlacedOpportunityModal.d.ts +11 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/PlacedOpportunityModal.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/AutoFillView.d.ts +4 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/AutoFillView.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/ConfigManager.d.ts +4 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/ConfigManager.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/JobManager.d.ts +4 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/JobManager.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueContests.d.ts +7 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueContests.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueInfo.d.ts +6 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueInfo.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueParticipants.d.ts +6 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueParticipants.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/index.d.ts +8 -0
- package/lib/typescript/lib/commonjs/BetRouter/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/DesktopAdminLayout.d.ts +9 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/DesktopAdminLayout.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/DesktopLayout.d.ts +20 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/DesktopLayout.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/MobileAdminLayout.d.ts +9 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/MobileAdminLayout.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/MobileLayout.d.ts +20 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/MobileLayout.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/accounts.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/accounts.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/api-contracts.d.ts +743 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/api-contracts.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/config.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/config.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/contests.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/contests.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/credentials.d.ts +56 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/credentials.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/index.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/jobs.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/jobs.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/leagues.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/leagues.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/liquidity.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/liquidity.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/markets.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/markets.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/opportunities.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/opportunities.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/orders.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/orders.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/participants.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/participants.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/partners.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/partners.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Charts/adapters/TradeChartAdapter.d.ts +87 -0
- package/lib/typescript/lib/commonjs/Charts/adapters/TradeChartAdapter.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Charts/components/BaseLineChart.d.ts +31 -0
- package/lib/typescript/lib/commonjs/Charts/components/BaseLineChart.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Charts/components/LivePriceChart.d.ts +45 -0
- package/lib/typescript/lib/commonjs/Charts/components/LivePriceChart.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Charts/index.d.ts +95 -0
- package/lib/typescript/lib/commonjs/Charts/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Charts/themes/chartTheme.d.ts +106 -0
- package/lib/typescript/lib/commonjs/Charts/themes/chartTheme.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Charts/types.d.ts +2 -0
- package/lib/typescript/lib/commonjs/Charts/types.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Charts/utils/formatters.d.ts +24 -0
- package/lib/typescript/lib/commonjs/Charts/utils/formatters.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Components/Dropdown.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Icons.d.ts +5 -0
- package/lib/typescript/lib/commonjs/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/LocationTracker/LocationStatus.d.ts +2 -1
- package/lib/typescript/lib/commonjs/LocationTracker/LocationStatus.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/LocationTracker/api/index.d.ts +1 -1
- package/lib/typescript/lib/commonjs/LocationTracker/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/index.d.ts +6 -1
- package/lib/typescript/lib/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/ApiOverrides/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/BetRouter/api/index.d.ts +108 -0
- package/lib/typescript/lib/module/BetRouter/api/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/api/types.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/api/types.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/AccountManager.d.ts +16 -0
- package/lib/typescript/lib/module/BetRouter/components/AccountManager.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/AdminPortal.d.ts +9 -0
- package/lib/typescript/lib/module/BetRouter/components/AdminPortal.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/BuyOpportunities.d.ts +16 -0
- package/lib/typescript/lib/module/BetRouter/components/BuyOpportunities.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/BuyOpportunityCard.d.ts +14 -0
- package/lib/typescript/lib/module/BetRouter/components/BuyOpportunityCard.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/ContestLiquidity.d.ts +11 -0
- package/lib/typescript/lib/module/BetRouter/components/ContestLiquidity.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/ContestSelector.d.ts +11 -0
- package/lib/typescript/lib/module/BetRouter/components/ContestSelector.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/MyOpportunities.d.ts +8 -0
- package/lib/typescript/lib/module/BetRouter/components/MyOpportunities.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/OpportunityDetailModal.d.ts +15 -0
- package/lib/typescript/lib/module/BetRouter/components/OpportunityDetailModal.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/OpportunityHistory.d.ts +9 -0
- package/lib/typescript/lib/module/BetRouter/components/OpportunityHistory.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/PartnerCredentials.d.ts +11 -0
- package/lib/typescript/lib/module/BetRouter/components/PartnerCredentials.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/PlacedOpportunityModal.d.ts +12 -0
- package/lib/typescript/lib/module/BetRouter/components/PlacedOpportunityModal.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/AutoFillView.d.ts +4 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/AutoFillView.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/ConfigManager.d.ts +4 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/ConfigManager.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/JobManager.d.ts +4 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/JobManager.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/LeagueContests.d.ts +9 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/LeagueContests.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/LeagueInfo.d.ts +6 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/LeagueInfo.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/LeagueParticipants.d.ts +8 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/LeagueParticipants.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/index.d.ts +9 -0
- package/lib/typescript/lib/module/BetRouter/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/layouts/DesktopAdminLayout.d.ts +9 -0
- package/lib/typescript/lib/module/BetRouter/layouts/DesktopAdminLayout.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/layouts/DesktopLayout.d.ts +20 -0
- package/lib/typescript/lib/module/BetRouter/layouts/DesktopLayout.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/layouts/MobileAdminLayout.d.ts +9 -0
- package/lib/typescript/lib/module/BetRouter/layouts/MobileAdminLayout.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/layouts/MobileLayout.d.ts +20 -0
- package/lib/typescript/lib/module/BetRouter/layouts/MobileLayout.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/accounts.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/accounts.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/api-contracts.d.ts +742 -0
- package/lib/typescript/lib/module/BetRouter/types/api-contracts.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/config.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/config.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/contests.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/contests.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/credentials.d.ts +55 -0
- package/lib/typescript/lib/module/BetRouter/types/credentials.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/index.d.ts +14 -0
- package/lib/typescript/lib/module/BetRouter/types/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/jobs.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/jobs.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/leagues.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/leagues.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/liquidity.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/liquidity.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/markets.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/markets.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/opportunities.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/opportunities.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/orders.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/orders.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/participants.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/participants.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/partners.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/partners.d.ts.map +1 -0
- package/lib/typescript/lib/module/Charts/adapters/TradeChartAdapter.d.ts +81 -0
- package/lib/typescript/lib/module/Charts/adapters/TradeChartAdapter.d.ts.map +1 -0
- package/lib/typescript/lib/module/Charts/components/BaseLineChart.d.ts +31 -0
- package/lib/typescript/lib/module/Charts/components/BaseLineChart.d.ts.map +1 -0
- package/lib/typescript/lib/module/Charts/components/LivePriceChart.d.ts +41 -0
- package/lib/typescript/lib/module/Charts/components/LivePriceChart.d.ts.map +1 -0
- package/lib/typescript/lib/module/Charts/index.d.ts +6 -0
- package/lib/typescript/lib/module/Charts/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/Charts/themes/chartTheme.d.ts +102 -0
- package/lib/typescript/lib/module/Charts/themes/chartTheme.d.ts.map +1 -0
- package/lib/typescript/lib/module/Charts/types.d.ts +2 -0
- package/lib/typescript/lib/module/Charts/types.d.ts.map +1 -0
- package/lib/typescript/lib/module/Charts/utils/formatters.d.ts +14 -0
- package/lib/typescript/lib/module/Charts/utils/formatters.d.ts.map +1 -0
- package/lib/typescript/lib/module/Components/Dropdown.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Icons.d.ts +5 -0
- package/lib/typescript/lib/module/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/index.d.ts +1 -0
- package/lib/typescript/lib/module/Components/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/LocationTracker/LocationStatus.d.ts +2 -1
- package/lib/typescript/lib/module/LocationTracker/LocationStatus.d.ts.map +1 -1
- package/lib/typescript/lib/module/LocationTracker/api/index.d.ts +1 -1
- package/lib/typescript/lib/module/index.d.ts +3 -1
- package/lib/typescript/lib/module/index.d.ts.map +1 -1
- package/lib/typescript/src/ApiOverrides/index.d.ts.map +1 -1
- package/lib/typescript/src/BetRouter/api/index.d.ts +115 -0
- package/lib/typescript/src/BetRouter/api/index.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/api/types.d.ts +2 -0
- package/lib/typescript/src/BetRouter/api/types.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/AccountManager.d.ts +18 -0
- package/lib/typescript/src/BetRouter/components/AccountManager.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/AdminPortal.d.ts +15 -0
- package/lib/typescript/src/BetRouter/components/AdminPortal.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/BuyOpportunities.d.ts +24 -0
- package/lib/typescript/src/BetRouter/components/BuyOpportunities.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/BuyOpportunityCard.d.ts +19 -0
- package/lib/typescript/src/BetRouter/components/BuyOpportunityCard.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/ContestLiquidity.d.ts +15 -0
- package/lib/typescript/src/BetRouter/components/ContestLiquidity.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/ContestSelector.d.ts +13 -0
- package/lib/typescript/src/BetRouter/components/ContestSelector.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/MyOpportunities.d.ts +16 -0
- package/lib/typescript/src/BetRouter/components/MyOpportunities.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/OpportunityDetailModal.d.ts +21 -0
- package/lib/typescript/src/BetRouter/components/OpportunityDetailModal.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/OpportunityHistory.d.ts +20 -0
- package/lib/typescript/src/BetRouter/components/OpportunityHistory.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/PartnerCredentials.d.ts +12 -0
- package/lib/typescript/src/BetRouter/components/PartnerCredentials.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/PlacedOpportunityModal.d.ts +18 -0
- package/lib/typescript/src/BetRouter/components/PlacedOpportunityModal.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/admin/AutoFillView.d.ts +4 -0
- package/lib/typescript/src/BetRouter/components/admin/AutoFillView.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/admin/ConfigManager.d.ts +4 -0
- package/lib/typescript/src/BetRouter/components/admin/ConfigManager.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/admin/JobManager.d.ts +4 -0
- package/lib/typescript/src/BetRouter/components/admin/JobManager.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/admin/LeagueContests.d.ts +9 -0
- package/lib/typescript/src/BetRouter/components/admin/LeagueContests.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/admin/LeagueInfo.d.ts +8 -0
- package/lib/typescript/src/BetRouter/components/admin/LeagueInfo.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/admin/LeagueParticipants.d.ts +8 -0
- package/lib/typescript/src/BetRouter/components/admin/LeagueParticipants.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/index.d.ts +16 -0
- package/lib/typescript/src/BetRouter/index.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/layouts/DesktopAdminLayout.d.ts +15 -0
- package/lib/typescript/src/BetRouter/layouts/DesktopAdminLayout.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/layouts/DesktopLayout.d.ts +44 -0
- package/lib/typescript/src/BetRouter/layouts/DesktopLayout.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/layouts/MobileAdminLayout.d.ts +15 -0
- package/lib/typescript/src/BetRouter/layouts/MobileAdminLayout.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/layouts/MobileLayout.d.ts +44 -0
- package/lib/typescript/src/BetRouter/layouts/MobileLayout.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/accounts.d.ts +19 -0
- package/lib/typescript/src/BetRouter/types/accounts.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/api-contracts.d.ts +1071 -0
- package/lib/typescript/src/BetRouter/types/api-contracts.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/config.d.ts +12 -0
- package/lib/typescript/src/BetRouter/types/config.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/contests.d.ts +34 -0
- package/lib/typescript/src/BetRouter/types/contests.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/credentials.d.ts +24 -0
- package/lib/typescript/src/BetRouter/types/credentials.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/index.d.ts +14 -0
- package/lib/typescript/src/BetRouter/types/index.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/jobs.d.ts +35 -0
- package/lib/typescript/src/BetRouter/types/jobs.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/leagues.d.ts +26 -0
- package/lib/typescript/src/BetRouter/types/leagues.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/liquidity.d.ts +14 -0
- package/lib/typescript/src/BetRouter/types/liquidity.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/markets.d.ts +87 -0
- package/lib/typescript/src/BetRouter/types/markets.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/opportunities.d.ts +88 -0
- package/lib/typescript/src/BetRouter/types/opportunities.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/orders.d.ts +34 -0
- package/lib/typescript/src/BetRouter/types/orders.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/participants.d.ts +33 -0
- package/lib/typescript/src/BetRouter/types/participants.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/partners.d.ts +11 -0
- package/lib/typescript/src/BetRouter/types/partners.d.ts.map +1 -0
- package/lib/typescript/src/Charts/adapters/TradeChartAdapter.d.ts +117 -0
- package/lib/typescript/src/Charts/adapters/TradeChartAdapter.d.ts.map +1 -0
- package/lib/typescript/src/Charts/components/BaseLineChart.d.ts +40 -0
- package/lib/typescript/src/Charts/components/BaseLineChart.d.ts.map +1 -0
- package/lib/typescript/src/Charts/components/LivePriceChart.d.ts +13 -0
- package/lib/typescript/src/Charts/components/LivePriceChart.d.ts.map +1 -0
- package/lib/typescript/src/Charts/index.d.ts +28 -0
- package/lib/typescript/src/Charts/index.d.ts.map +1 -0
- package/lib/typescript/src/Charts/themes/chartTheme.d.ts +78 -0
- package/lib/typescript/src/Charts/themes/chartTheme.d.ts.map +1 -0
- package/lib/typescript/src/Charts/types.d.ts +155 -0
- package/lib/typescript/src/Charts/types.d.ts.map +1 -0
- package/lib/typescript/src/Charts/utils/formatters.d.ts +66 -0
- package/lib/typescript/src/Charts/utils/formatters.d.ts.map +1 -0
- package/lib/typescript/src/Components/Dropdown.d.ts.map +1 -1
- package/lib/typescript/src/Components/Icons.d.ts +1 -0
- package/lib/typescript/src/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/src/Components/index.d.ts +1 -0
- package/lib/typescript/src/Components/index.d.ts.map +1 -1
- package/lib/typescript/src/LocationTracker/LocationStatus.d.ts +2 -1
- package/lib/typescript/src/LocationTracker/LocationStatus.d.ts.map +1 -1
- package/lib/typescript/src/LocationTracker/api/index.d.ts +3 -1
- package/lib/typescript/src/LocationTracker/api/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +4 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +4 -2
- package/src/ApiOverrides/index.ts +4 -0
- package/src/BetRouter/api/index.ts +854 -0
- package/src/BetRouter/api/types.ts +0 -0
- package/src/BetRouter/components/AccountManager.tsx +533 -0
- package/src/BetRouter/components/AdminPortal.tsx +44 -0
- package/src/BetRouter/components/BuyOpportunities.tsx +491 -0
- package/src/BetRouter/components/BuyOpportunityCard.tsx +331 -0
- package/src/BetRouter/components/ContestLiquidity.tsx +613 -0
- package/src/BetRouter/components/ContestSelector.tsx +179 -0
- package/src/BetRouter/components/MyOpportunities.tsx +279 -0
- package/src/BetRouter/components/MyOpportunities.tsx.bak +440 -0
- package/src/BetRouter/components/OpportunityDetailModal.tsx +360 -0
- package/src/BetRouter/components/OpportunityHistory.tsx +408 -0
- package/src/BetRouter/components/PartnerCredentials.tsx +212 -0
- package/src/BetRouter/components/PlacedOpportunityModal.tsx +192 -0
- package/src/BetRouter/components/admin/AutoFillView.tsx +275 -0
- package/src/BetRouter/components/admin/ConfigManager.tsx +596 -0
- package/src/BetRouter/components/admin/JobManager.tsx +758 -0
- package/src/BetRouter/components/admin/LeagueContests.tsx +2443 -0
- package/src/BetRouter/components/admin/LeagueInfo.tsx +253 -0
- package/src/BetRouter/components/admin/LeagueParticipants.tsx +662 -0
- package/src/BetRouter/index.tsx +453 -0
- package/src/BetRouter/layouts/DesktopAdminLayout.tsx +348 -0
- package/src/BetRouter/layouts/DesktopLayout.tsx +292 -0
- package/src/BetRouter/layouts/MobileAdminLayout.tsx +387 -0
- package/src/BetRouter/layouts/MobileLayout.tsx +325 -0
- package/src/BetRouter/types/ADMIN_PORTAL.md +863 -0
- package/src/BetRouter/types/ADMIN_PORTAL_SIMPLIFIED.md +1881 -0
- package/src/BetRouter/types/CREDENTIALS_EXAMPLE.md +350 -0
- package/src/BetRouter/types/LIQUIDITY_CLIENT_GUIDE.md +399 -0
- package/src/BetRouter/types/MARKET_LINKING_WORKFLOW.md +682 -0
- package/src/BetRouter/types/MARKET_LINKING_WORKFLOW_V2.md +627 -0
- package/src/BetRouter/types/README.md +249 -0
- package/src/BetRouter/types/accounts.ts +21 -0
- package/src/BetRouter/types/api-contracts.ts +1164 -0
- package/src/BetRouter/types/config.ts +12 -0
- package/src/BetRouter/types/contests.ts +37 -0
- package/src/BetRouter/types/credentials.ts +99 -0
- package/src/BetRouter/types/index.ts +16 -0
- package/src/BetRouter/types/jobs.ts +37 -0
- package/src/BetRouter/types/leagues.ts +29 -0
- package/src/BetRouter/types/liquidity.ts +15 -0
- package/src/BetRouter/types/markets.ts +94 -0
- package/src/BetRouter/types/opportunities.ts +107 -0
- package/src/BetRouter/types/orders.ts +51 -0
- package/src/BetRouter/types/participants.ts +34 -0
- package/src/BetRouter/types/partners.ts +10 -0
- package/src/Charts/README.md +310 -0
- package/src/Charts/adapters/TradeChartAdapter.ts +471 -0
- package/src/Charts/components/BaseLineChart.tsx +293 -0
- package/src/Charts/components/LivePriceChart.tsx +521 -0
- package/src/Charts/index.tsx +62 -0
- package/src/Charts/themes/chartTheme.ts +113 -0
- package/src/Charts/types.ts +160 -0
- package/src/Charts/utils/formatters.ts +182 -0
- package/src/Components/Dropdown.tsx +6 -3
- package/src/Components/Icons.tsx +12 -0
- package/src/Components/index.tsx +4 -0
- package/src/LocationTracker/LocationStatus.tsx +4 -3
- package/src/LocationTracker/api/index.tsx +2 -2
- package/src/index.tsx +6 -0
- package/src/types.d.ts +410 -2
|
@@ -0,0 +1,1164 @@
|
|
|
1
|
+
// API Contracts - All API endpoints with their request/response types
|
|
2
|
+
// This is the SINGLE SOURCE OF TRUTH for API types
|
|
3
|
+
// Copy the entire src/types folder to your client project
|
|
4
|
+
|
|
5
|
+
import type { BuyOpportunity, OpportunityProps, OpportunityStatusLegProps, OpportunitySummaryProps } from './opportunities';
|
|
6
|
+
import type { RouterOrderProps } from './orders';
|
|
7
|
+
import type { RouterAccountProps, AccountPartnerProps } from './accounts';
|
|
8
|
+
import type { RouterPartnerProps } from './partners';
|
|
9
|
+
import type { RouterLeagueProps, PartnerLeagueProps, RawLeagueProps } from './leagues';
|
|
10
|
+
import type { RouterContestProps, PartnerContestProps, RawContestProps } from './contests';
|
|
11
|
+
import type { RouterParticipantProps, RawParticipantProps, PartnerParticipantProps } from './participants';
|
|
12
|
+
import type {
|
|
13
|
+
RouterMarketProps,
|
|
14
|
+
RouterMarketVariableProps,
|
|
15
|
+
RouterMarketSideProps,
|
|
16
|
+
PartnerMarketProps,
|
|
17
|
+
RawMarketProps,
|
|
18
|
+
MarketContestProps
|
|
19
|
+
} from './markets';
|
|
20
|
+
import type { RouterLiquidityProps } from './liquidity';
|
|
21
|
+
import type { PartnerCredentialProps } from './credentials';
|
|
22
|
+
import type { ConfigProps } from './config';
|
|
23
|
+
import type { RouterJobProps, RouterJobStatusProps } from './jobs';
|
|
24
|
+
|
|
25
|
+
// Auto-linking types
|
|
26
|
+
export interface AutoLinkResult {
|
|
27
|
+
success: boolean;
|
|
28
|
+
router_entity_id: string;
|
|
29
|
+
partner_id: string;
|
|
30
|
+
partner_name: string;
|
|
31
|
+
raw_entity_id?: string;
|
|
32
|
+
partner_entity_id?: string;
|
|
33
|
+
confidence: number;
|
|
34
|
+
match_method: string;
|
|
35
|
+
error?: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface AutoLinkSummary {
|
|
39
|
+
entity_type: 'league' | 'contest' | 'participant' | 'market';
|
|
40
|
+
partner_name: string;
|
|
41
|
+
total_router_entities: number;
|
|
42
|
+
matched_count: number;
|
|
43
|
+
created_count: number;
|
|
44
|
+
updated_count: number;
|
|
45
|
+
failed_count: number;
|
|
46
|
+
results: AutoLinkResult[];
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Base response types
|
|
50
|
+
export interface SuccessResponse {
|
|
51
|
+
message: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface ErrorResponse {
|
|
55
|
+
message: string;
|
|
56
|
+
error: string;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// API Contracts Definition
|
|
60
|
+
export const ApiContracts = {
|
|
61
|
+
// ========== Opportunities Routes ==========
|
|
62
|
+
'POST /opportunities/opportunity/buy': {
|
|
63
|
+
auth: true,
|
|
64
|
+
body: {
|
|
65
|
+
buy_opportunity: {} as BuyOpportunity
|
|
66
|
+
},
|
|
67
|
+
responses: {
|
|
68
|
+
200: {} as SuccessResponse & {
|
|
69
|
+
success: boolean;
|
|
70
|
+
total_legs: number;
|
|
71
|
+
successful_orders: number;
|
|
72
|
+
router_orders: RouterOrderProps[];
|
|
73
|
+
buy_results: RouterOrderProps[]; // Deprecated, use router_orders
|
|
74
|
+
},
|
|
75
|
+
400: {} as ErrorResponse & {
|
|
76
|
+
success: boolean;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
|
|
81
|
+
'GET /opportunities/open/me': {
|
|
82
|
+
auth: true,
|
|
83
|
+
responses: {
|
|
84
|
+
200: {} as SuccessResponse & {
|
|
85
|
+
opportunities: OpportunityProps[];
|
|
86
|
+
opportunity_status_legs: OpportunityStatusLegProps[];
|
|
87
|
+
router_orders: RouterOrderProps[];
|
|
88
|
+
router_contests: RouterContestProps[];
|
|
89
|
+
},
|
|
90
|
+
400: {} as ErrorResponse
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
|
|
94
|
+
'GET /opportunities/past/me': {
|
|
95
|
+
auth: true,
|
|
96
|
+
query: {
|
|
97
|
+
from: 0 as number, // UNIX timestamp in milliseconds
|
|
98
|
+
to: 0 as number, // UNIX timestamp in milliseconds
|
|
99
|
+
offset: 0 as number // Pagination offset (0-based)
|
|
100
|
+
},
|
|
101
|
+
responses: {
|
|
102
|
+
200: {} as SuccessResponse & {
|
|
103
|
+
opportunities: OpportunityProps[];
|
|
104
|
+
opportunity_summary: OpportunitySummaryProps[];
|
|
105
|
+
opportunity_status_legs: OpportunityStatusLegProps[];
|
|
106
|
+
router_orders: RouterOrderProps[];
|
|
107
|
+
router_contests: RouterContestProps[];
|
|
108
|
+
pages: number;
|
|
109
|
+
},
|
|
110
|
+
400: {} as ErrorResponse
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
|
|
114
|
+
'POST /opportunities/reconcile': {
|
|
115
|
+
auth: false,
|
|
116
|
+
responses: {
|
|
117
|
+
200: {} as SuccessResponse,
|
|
118
|
+
500: {} as ErrorResponse
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
|
|
122
|
+
// ========== Accounts Routes ==========
|
|
123
|
+
'POST /accounts/join': {
|
|
124
|
+
auth: true,
|
|
125
|
+
responses: {
|
|
126
|
+
200: {} as SuccessResponse & {
|
|
127
|
+
account: RouterAccountProps
|
|
128
|
+
},
|
|
129
|
+
400: {} as ErrorResponse
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
|
|
133
|
+
'POST /accounts/leave': {
|
|
134
|
+
auth: true,
|
|
135
|
+
responses: {
|
|
136
|
+
200: {} as SuccessResponse & {
|
|
137
|
+
account: RouterAccountProps
|
|
138
|
+
},
|
|
139
|
+
400: {} as ErrorResponse
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
|
|
143
|
+
'GET /accounts/me': {
|
|
144
|
+
auth: true,
|
|
145
|
+
responses: {
|
|
146
|
+
200: {} as SuccessResponse & {
|
|
147
|
+
account: RouterAccountProps
|
|
148
|
+
},
|
|
149
|
+
400: {} as ErrorResponse
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
|
|
153
|
+
'GET /accounts/partners/me': {
|
|
154
|
+
auth: true,
|
|
155
|
+
query: {
|
|
156
|
+
partner_id: '' as string
|
|
157
|
+
},
|
|
158
|
+
responses: {
|
|
159
|
+
200: {} as SuccessResponse & {
|
|
160
|
+
account_partner: AccountPartnerProps
|
|
161
|
+
},
|
|
162
|
+
400: {} as ErrorResponse
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
|
|
166
|
+
'POST /accounts/partner/connect': {
|
|
167
|
+
auth: true,
|
|
168
|
+
body: {
|
|
169
|
+
partner_id: '' as string
|
|
170
|
+
},
|
|
171
|
+
responses: {
|
|
172
|
+
200: {} as SuccessResponse & {
|
|
173
|
+
account_partner: AccountPartnerProps
|
|
174
|
+
},
|
|
175
|
+
400: {} as ErrorResponse
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
|
|
179
|
+
'POST /accounts/partner/disconnect': {
|
|
180
|
+
auth: true,
|
|
181
|
+
body: {
|
|
182
|
+
partner_id: '' as string
|
|
183
|
+
},
|
|
184
|
+
responses: {
|
|
185
|
+
200: {} as SuccessResponse & {
|
|
186
|
+
account_partner: AccountPartnerProps
|
|
187
|
+
},
|
|
188
|
+
400: {} as ErrorResponse
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
|
|
192
|
+
'POST /accounts/partner/credentials/update': {
|
|
193
|
+
auth: true,
|
|
194
|
+
body: {
|
|
195
|
+
partner_id: '' as string,
|
|
196
|
+
credentials: {} as PartnerCredentialProps
|
|
197
|
+
},
|
|
198
|
+
responses: {
|
|
199
|
+
200: {} as SuccessResponse & {
|
|
200
|
+
account_partner: AccountPartnerProps
|
|
201
|
+
},
|
|
202
|
+
400: {} as ErrorResponse
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
|
|
206
|
+
'POST /accounts/partner/credentials/test': {
|
|
207
|
+
auth: true,
|
|
208
|
+
body: {
|
|
209
|
+
partner_id: '' as string
|
|
210
|
+
},
|
|
211
|
+
responses: {
|
|
212
|
+
200: {} as SuccessResponse & {
|
|
213
|
+
account_partner: AccountPartnerProps
|
|
214
|
+
},
|
|
215
|
+
400: {} as ErrorResponse
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
|
|
219
|
+
'POST /accounts/balance/update': {
|
|
220
|
+
auth: true,
|
|
221
|
+
responses: {
|
|
222
|
+
200: {} as SuccessResponse & {
|
|
223
|
+
account_partners: AccountPartnerProps[]
|
|
224
|
+
},
|
|
225
|
+
400: {} as ErrorResponse
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
|
|
229
|
+
'GET /accounts/balance/me': {
|
|
230
|
+
auth: true,
|
|
231
|
+
responses: {
|
|
232
|
+
200: {} as SuccessResponse & {
|
|
233
|
+
account_partners: AccountPartnerProps[];
|
|
234
|
+
balance: number
|
|
235
|
+
},
|
|
236
|
+
400: {} as ErrorResponse
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
|
|
240
|
+
// ========== Partners Routes ==========
|
|
241
|
+
'GET /partners': {
|
|
242
|
+
auth: false,
|
|
243
|
+
responses: {
|
|
244
|
+
200: {} as RouterPartnerProps[]
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
|
|
248
|
+
'POST /partners/load': {
|
|
249
|
+
auth: true,
|
|
250
|
+
responses: {
|
|
251
|
+
200: {} as SuccessResponse & {
|
|
252
|
+
count: number;
|
|
253
|
+
partners: RouterPartnerProps[]
|
|
254
|
+
},
|
|
255
|
+
400: {} as ErrorResponse
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
|
|
259
|
+
// ========== Leagues Routes ==========
|
|
260
|
+
'GET /leagues': {
|
|
261
|
+
auth: false,
|
|
262
|
+
query: {
|
|
263
|
+
status: '' as string | undefined
|
|
264
|
+
},
|
|
265
|
+
responses: {
|
|
266
|
+
200: {} as RouterLeagueProps[]
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
|
|
270
|
+
'GET /leagues/open': {
|
|
271
|
+
auth: false,
|
|
272
|
+
query: {
|
|
273
|
+
partner_ids: '' as string | undefined // Comma-separated partner IDs to filter by
|
|
274
|
+
},
|
|
275
|
+
responses: {
|
|
276
|
+
200: {} as SuccessResponse & {
|
|
277
|
+
router_leagues: RouterLeagueProps[];
|
|
278
|
+
raw_leagues: RawLeagueProps[];
|
|
279
|
+
partner_leagues: PartnerLeagueProps[]
|
|
280
|
+
},
|
|
281
|
+
400: {} as ErrorResponse
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
|
|
285
|
+
'POST /leagues/link': {
|
|
286
|
+
auth: false,
|
|
287
|
+
body: {
|
|
288
|
+
raw_league_ids: '' as string | string[], // Support both single string and array
|
|
289
|
+
router_league_id: '' as string
|
|
290
|
+
},
|
|
291
|
+
responses: {
|
|
292
|
+
200: {} as SuccessResponse & {
|
|
293
|
+
partnerLeagues: PartnerLeagueProps[]
|
|
294
|
+
},
|
|
295
|
+
400: {} as ErrorResponse
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
|
|
299
|
+
'POST /leagues/load': {
|
|
300
|
+
auth: false,
|
|
301
|
+
responses: {
|
|
302
|
+
200: {} as SuccessResponse & {
|
|
303
|
+
count: number;
|
|
304
|
+
leagues: RouterLeagueProps[]
|
|
305
|
+
},
|
|
306
|
+
400: {} as ErrorResponse
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
|
|
310
|
+
'GET /leagues/:router_league_id/available-raw/:partner_id': {
|
|
311
|
+
auth: false,
|
|
312
|
+
params: {
|
|
313
|
+
router_league_id: '' as string,
|
|
314
|
+
partner_id: '' as string
|
|
315
|
+
},
|
|
316
|
+
responses: {
|
|
317
|
+
200: {} as SuccessResponse & {
|
|
318
|
+
router_league: RouterLeagueProps;
|
|
319
|
+
raw_leagues: RawLeagueProps[];
|
|
320
|
+
already_linked: RawLeagueProps[]
|
|
321
|
+
},
|
|
322
|
+
400: {} as ErrorResponse
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
|
|
326
|
+
'POST /leagues/load-raw': {
|
|
327
|
+
auth: false,
|
|
328
|
+
body: {
|
|
329
|
+
partner_id: '' as string
|
|
330
|
+
},
|
|
331
|
+
responses: {
|
|
332
|
+
200: {} as SuccessResponse & {
|
|
333
|
+
count: number;
|
|
334
|
+
raw_leagues: RawLeagueProps[]
|
|
335
|
+
},
|
|
336
|
+
400: {} as ErrorResponse
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
|
|
340
|
+
// ========== Contests Routes ==========
|
|
341
|
+
'GET /contests/router': {
|
|
342
|
+
auth: false,
|
|
343
|
+
query: {
|
|
344
|
+
status: '' as string | undefined
|
|
345
|
+
},
|
|
346
|
+
responses: {
|
|
347
|
+
200: {} as RouterContestProps[]
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
|
|
351
|
+
'GET /contests/partner': {
|
|
352
|
+
auth: false,
|
|
353
|
+
responses: {
|
|
354
|
+
200: {} as PartnerContestProps[]
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
|
|
358
|
+
'GET /contests/auto-fill': {
|
|
359
|
+
auth: false,
|
|
360
|
+
responses: {
|
|
361
|
+
200: {} as SuccessResponse & {
|
|
362
|
+
router_contests: RouterContestProps[];
|
|
363
|
+
market_contests: MarketContestProps[]
|
|
364
|
+
},
|
|
365
|
+
500: {} as ErrorResponse
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
|
|
369
|
+
'GET /contests/open/:router_league_id': {
|
|
370
|
+
auth: false,
|
|
371
|
+
params: {
|
|
372
|
+
router_league_id: '' as string
|
|
373
|
+
},
|
|
374
|
+
query: {
|
|
375
|
+
status: 'open' as string | undefined, // Filter by status. Default: 'open'
|
|
376
|
+
offset: 0 as number | undefined // Pagination offset (only used with status='closed'). Max 100 results per page
|
|
377
|
+
},
|
|
378
|
+
responses: {
|
|
379
|
+
200: {} as SuccessResponse & {
|
|
380
|
+
router_contests: RouterContestProps[];
|
|
381
|
+
raw_contests: RawContestProps[];
|
|
382
|
+
partner_contests: PartnerContestProps[];
|
|
383
|
+
total_count: number; // Total count of contests (useful for pagination)
|
|
384
|
+
has_more: boolean; // Whether there are more results available
|
|
385
|
+
},
|
|
386
|
+
400: {} as ErrorResponse
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
|
|
390
|
+
'GET /contests/:router_contest_id': {
|
|
391
|
+
auth: false,
|
|
392
|
+
params: {
|
|
393
|
+
router_contest_id: '' as string
|
|
394
|
+
},
|
|
395
|
+
responses: {
|
|
396
|
+
200: {} as SuccessResponse & {
|
|
397
|
+
router_contest: RouterContestProps;
|
|
398
|
+
partner_contests: PartnerContestProps[];
|
|
399
|
+
market_contests: MarketContestProps[];
|
|
400
|
+
router_markets: RouterMarketProps[];
|
|
401
|
+
partner_markets: PartnerMarketProps[]
|
|
402
|
+
},
|
|
403
|
+
400: {} as ErrorResponse
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
|
|
407
|
+
'POST /contests/link': {
|
|
408
|
+
auth: false,
|
|
409
|
+
body: {
|
|
410
|
+
raw_contest_ids: [] as string[],
|
|
411
|
+
router_contest_id: '' as string
|
|
412
|
+
},
|
|
413
|
+
responses: {
|
|
414
|
+
200: {} as SuccessResponse & {
|
|
415
|
+
count: number;
|
|
416
|
+
partner_contests: PartnerContestProps[]
|
|
417
|
+
},
|
|
418
|
+
400: {} as ErrorResponse
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
|
|
422
|
+
'POST /contests/load': {
|
|
423
|
+
auth: false,
|
|
424
|
+
body: {
|
|
425
|
+
router_league_id: '' as string
|
|
426
|
+
},
|
|
427
|
+
responses: {
|
|
428
|
+
200: {} as SuccessResponse & {
|
|
429
|
+
count: number;
|
|
430
|
+
contests: RouterContestProps[]
|
|
431
|
+
},
|
|
432
|
+
400: {} as ErrorResponse
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
|
|
436
|
+
'POST /contests/load-raw': {
|
|
437
|
+
auth: false,
|
|
438
|
+
body: {
|
|
439
|
+
partner_id: '' as string,
|
|
440
|
+
router_league_id: '' as string
|
|
441
|
+
},
|
|
442
|
+
responses: {
|
|
443
|
+
200: {} as SuccessResponse & {
|
|
444
|
+
count: number;
|
|
445
|
+
raw_contests: RawContestProps[]
|
|
446
|
+
},
|
|
447
|
+
400: {} as ErrorResponse
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
|
|
451
|
+
'POST /contests/check-status': {
|
|
452
|
+
auth: false,
|
|
453
|
+
responses: {
|
|
454
|
+
200: {} as SuccessResponse & {
|
|
455
|
+
updated: number;
|
|
456
|
+
closed_contest_ids: string[]
|
|
457
|
+
},
|
|
458
|
+
400: {} as ErrorResponse
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
|
|
462
|
+
'PATCH /contests/router/:router_contest_id': {
|
|
463
|
+
auth: false,
|
|
464
|
+
params: {
|
|
465
|
+
router_contest_id: '' as string
|
|
466
|
+
},
|
|
467
|
+
body: {} as Partial<Omit<RouterContestProps, 'router_contest_id' | 'create_datetime'>>,
|
|
468
|
+
responses: {
|
|
469
|
+
200: {} as SuccessResponse & {
|
|
470
|
+
contest: RouterContestProps
|
|
471
|
+
},
|
|
472
|
+
400: {} as ErrorResponse,
|
|
473
|
+
404: {} as ErrorResponse & {
|
|
474
|
+
router_contest_id: string
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
notes: 'When setting auto_fill=false, all market_contests for this contest will also be disabled. When setting auto_fill=true, only the contest level is updated.'
|
|
478
|
+
},
|
|
479
|
+
|
|
480
|
+
'GET /contests/:router_contest_id/available-raw/:partner_id': {
|
|
481
|
+
auth: false,
|
|
482
|
+
params: {
|
|
483
|
+
router_contest_id: '' as string,
|
|
484
|
+
partner_id: '' as string
|
|
485
|
+
},
|
|
486
|
+
responses: {
|
|
487
|
+
200: {} as SuccessResponse & {
|
|
488
|
+
router_contest: RouterContestProps;
|
|
489
|
+
raw_contests: RawContestProps[];
|
|
490
|
+
already_linked: RawContestProps[]
|
|
491
|
+
},
|
|
492
|
+
400: {} as ErrorResponse
|
|
493
|
+
}
|
|
494
|
+
},
|
|
495
|
+
|
|
496
|
+
// ========== Participants Routes ==========
|
|
497
|
+
'GET /participants/router': {
|
|
498
|
+
auth: false,
|
|
499
|
+
query: {
|
|
500
|
+
router_league_id: '' as string | undefined,
|
|
501
|
+
participant_type: '' as string | undefined,
|
|
502
|
+
status: '' as string | undefined
|
|
503
|
+
},
|
|
504
|
+
responses: {
|
|
505
|
+
200: {} as RouterParticipantProps[]
|
|
506
|
+
}
|
|
507
|
+
},
|
|
508
|
+
|
|
509
|
+
'GET /participants/raw': {
|
|
510
|
+
auth: false,
|
|
511
|
+
responses: {
|
|
512
|
+
200: {} as RawParticipantProps[]
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
|
|
516
|
+
'GET /participants/partner': {
|
|
517
|
+
auth: false,
|
|
518
|
+
responses: {
|
|
519
|
+
200: {} as PartnerParticipantProps[]
|
|
520
|
+
}
|
|
521
|
+
},
|
|
522
|
+
|
|
523
|
+
'POST /participants/load': {
|
|
524
|
+
auth: false,
|
|
525
|
+
body: {
|
|
526
|
+
router_league_id: '' as string
|
|
527
|
+
},
|
|
528
|
+
responses: {
|
|
529
|
+
200: {} as SuccessResponse & {
|
|
530
|
+
router_participants_count: number;
|
|
531
|
+
raw_participants_count: number;
|
|
532
|
+
router_participants: RouterParticipantProps[];
|
|
533
|
+
raw_participants: RawParticipantProps[]
|
|
534
|
+
},
|
|
535
|
+
400: {} as ErrorResponse
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
|
|
539
|
+
'POST /participants/load-raw': {
|
|
540
|
+
auth: false,
|
|
541
|
+
body: {
|
|
542
|
+
partner_id: '' as string,
|
|
543
|
+
router_league_id: '' as string
|
|
544
|
+
},
|
|
545
|
+
responses: {
|
|
546
|
+
200: {} as SuccessResponse & {
|
|
547
|
+
count: number;
|
|
548
|
+
raw_participants: RawParticipantProps[]
|
|
549
|
+
},
|
|
550
|
+
400: {} as ErrorResponse
|
|
551
|
+
}
|
|
552
|
+
},
|
|
553
|
+
|
|
554
|
+
'POST /participants/link': {
|
|
555
|
+
auth: false,
|
|
556
|
+
body: {
|
|
557
|
+
raw_participant_ids: [] as string[],
|
|
558
|
+
router_participant_id: '' as string
|
|
559
|
+
},
|
|
560
|
+
responses: {
|
|
561
|
+
200: {} as SuccessResponse & {
|
|
562
|
+
count: number;
|
|
563
|
+
partner_participants: PartnerParticipantProps[]
|
|
564
|
+
},
|
|
565
|
+
400: {} as ErrorResponse
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
|
|
569
|
+
'GET /participants/:router_participant_id/available-raw/:partner_id/:router_league_id': {
|
|
570
|
+
auth: false,
|
|
571
|
+
params: {
|
|
572
|
+
router_participant_id: '' as string,
|
|
573
|
+
partner_id: '' as string,
|
|
574
|
+
router_league_id: '' as string
|
|
575
|
+
},
|
|
576
|
+
responses: {
|
|
577
|
+
200: {} as SuccessResponse & {
|
|
578
|
+
router_participant: RouterParticipantProps;
|
|
579
|
+
raw_participants: RawParticipantProps[];
|
|
580
|
+
already_linked: RawParticipantProps[]
|
|
581
|
+
},
|
|
582
|
+
400: {} as ErrorResponse
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
|
|
586
|
+
// ========== Markets Routes ==========
|
|
587
|
+
'GET /markets/router': {
|
|
588
|
+
auth: false,
|
|
589
|
+
responses: {
|
|
590
|
+
200: {} as RouterMarketProps[]
|
|
591
|
+
}
|
|
592
|
+
},
|
|
593
|
+
|
|
594
|
+
'GET /markets/variables': {
|
|
595
|
+
auth: false,
|
|
596
|
+
responses: {
|
|
597
|
+
200: {} as RouterMarketVariableProps[]
|
|
598
|
+
}
|
|
599
|
+
},
|
|
600
|
+
|
|
601
|
+
'GET /markets/sides': {
|
|
602
|
+
auth: false,
|
|
603
|
+
responses: {
|
|
604
|
+
200: {} as RouterMarketSideProps[]
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
|
|
608
|
+
'GET /markets/partner': {
|
|
609
|
+
auth: false,
|
|
610
|
+
responses: {
|
|
611
|
+
200: {} as PartnerMarketProps[]
|
|
612
|
+
}
|
|
613
|
+
},
|
|
614
|
+
|
|
615
|
+
'GET /markets/supported/:router_contest_id': {
|
|
616
|
+
auth: false,
|
|
617
|
+
params: {
|
|
618
|
+
router_contest_id: '' as string
|
|
619
|
+
},
|
|
620
|
+
responses: {
|
|
621
|
+
200: {} as SuccessResponse & {
|
|
622
|
+
market_contests: MarketContestProps[];
|
|
623
|
+
router_markets: RouterMarketProps[]
|
|
624
|
+
},
|
|
625
|
+
400: {} as ErrorResponse
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
|
|
629
|
+
'GET /markets/available-to-support/:router_contest_id': {
|
|
630
|
+
auth: false,
|
|
631
|
+
params: {
|
|
632
|
+
router_contest_id: '' as string
|
|
633
|
+
},
|
|
634
|
+
responses: {
|
|
635
|
+
200: {} as SuccessResponse & {
|
|
636
|
+
router_contest: RouterContestProps;
|
|
637
|
+
all_router_markets: RouterMarketProps[];
|
|
638
|
+
market_contests: MarketContestProps[]
|
|
639
|
+
},
|
|
640
|
+
400: {} as ErrorResponse
|
|
641
|
+
}
|
|
642
|
+
},
|
|
643
|
+
|
|
644
|
+
'POST /markets/supported': {
|
|
645
|
+
auth: false,
|
|
646
|
+
body: {
|
|
647
|
+
router_contest_id: '' as string,
|
|
648
|
+
router_market_id: '' as string
|
|
649
|
+
},
|
|
650
|
+
responses: {
|
|
651
|
+
200: {} as SuccessResponse & {
|
|
652
|
+
market_contest: MarketContestProps
|
|
653
|
+
},
|
|
654
|
+
400: {} as ErrorResponse
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
|
|
658
|
+
'DELETE /markets/supported/:market_contest_id': {
|
|
659
|
+
auth: false,
|
|
660
|
+
params: {
|
|
661
|
+
market_contest_id: '' as string
|
|
662
|
+
},
|
|
663
|
+
responses: {
|
|
664
|
+
200: {} as SuccessResponse,
|
|
665
|
+
400: {} as ErrorResponse
|
|
666
|
+
}
|
|
667
|
+
},
|
|
668
|
+
|
|
669
|
+
'GET /markets/:router_contest_id/:router_market_id/linking-data/:partner_id': {
|
|
670
|
+
auth: false,
|
|
671
|
+
params: {
|
|
672
|
+
router_contest_id: '' as string,
|
|
673
|
+
router_market_id: '' as string,
|
|
674
|
+
partner_id: '' as string
|
|
675
|
+
},
|
|
676
|
+
responses: {
|
|
677
|
+
200: {} as SuccessResponse & {
|
|
678
|
+
router_contest: RouterContestProps;
|
|
679
|
+
router_market: RouterMarketProps;
|
|
680
|
+
market_sides: RouterMarketSideProps[];
|
|
681
|
+
timeframes: any[];
|
|
682
|
+
participants: {
|
|
683
|
+
partner_participant_id: string;
|
|
684
|
+
router_participant_id: string;
|
|
685
|
+
name: string;
|
|
686
|
+
participant_type: string;
|
|
687
|
+
external_id: string;
|
|
688
|
+
raw_name: string;
|
|
689
|
+
tags: string[];
|
|
690
|
+
}[];
|
|
691
|
+
variables: RouterMarketVariableProps[]
|
|
692
|
+
},
|
|
693
|
+
400: {} as ErrorResponse
|
|
694
|
+
}
|
|
695
|
+
},
|
|
696
|
+
|
|
697
|
+
'GET /markets/:router_contest_id/:router_market_id/variables-and-raw/:partner_id': {
|
|
698
|
+
auth: false,
|
|
699
|
+
params: {
|
|
700
|
+
router_contest_id: '' as string,
|
|
701
|
+
router_market_id: '' as string,
|
|
702
|
+
partner_id: '' as string
|
|
703
|
+
},
|
|
704
|
+
responses: {
|
|
705
|
+
200: {} as SuccessResponse & {
|
|
706
|
+
router_contest: RouterContestProps;
|
|
707
|
+
router_market: RouterMarketProps;
|
|
708
|
+
existing_variables: Array<{
|
|
709
|
+
router_market_variable_id: string;
|
|
710
|
+
variable: number;
|
|
711
|
+
variable_type: 'total' | 'spread';
|
|
712
|
+
linked_count: number;
|
|
713
|
+
}>;
|
|
714
|
+
existing_participants: Array<{
|
|
715
|
+
partner_participant_id: string;
|
|
716
|
+
name: string;
|
|
717
|
+
participant_type: string;
|
|
718
|
+
linked_count: number;
|
|
719
|
+
variables: number[];
|
|
720
|
+
}>;
|
|
721
|
+
raw_markets: RawMarketProps[];
|
|
722
|
+
already_linked_by_variable: Record<string, string[]>;
|
|
723
|
+
},
|
|
724
|
+
400: {} as ErrorResponse
|
|
725
|
+
}
|
|
726
|
+
},
|
|
727
|
+
|
|
728
|
+
'GET /markets/:router_contest_id/:router_market_id/available-raw/:partner_id': {
|
|
729
|
+
auth: false,
|
|
730
|
+
params: {
|
|
731
|
+
router_contest_id: '' as string,
|
|
732
|
+
router_market_id: '' as string,
|
|
733
|
+
partner_id: '' as string
|
|
734
|
+
},
|
|
735
|
+
responses: {
|
|
736
|
+
200: {} as SuccessResponse & {
|
|
737
|
+
router_contest: RouterContestProps;
|
|
738
|
+
router_market: RouterMarketProps;
|
|
739
|
+
raw_markets: RawMarketProps[];
|
|
740
|
+
already_linked: RawMarketProps[]
|
|
741
|
+
},
|
|
742
|
+
400: {} as ErrorResponse
|
|
743
|
+
}
|
|
744
|
+
},
|
|
745
|
+
|
|
746
|
+
'POST /markets/load-raw': {
|
|
747
|
+
auth: false,
|
|
748
|
+
body: {
|
|
749
|
+
partner_id: '' as string,
|
|
750
|
+
router_contest_id: '' as string
|
|
751
|
+
},
|
|
752
|
+
responses: {
|
|
753
|
+
200: {} as SuccessResponse & {
|
|
754
|
+
count: number;
|
|
755
|
+
raw_markets: RawMarketProps[]
|
|
756
|
+
},
|
|
757
|
+
400: {} as ErrorResponse
|
|
758
|
+
}
|
|
759
|
+
},
|
|
760
|
+
|
|
761
|
+
'GET /markets/raw/:router_contest_id': {
|
|
762
|
+
auth: false,
|
|
763
|
+
params: {
|
|
764
|
+
router_contest_id: '' as string
|
|
765
|
+
},
|
|
766
|
+
responses: {
|
|
767
|
+
200: {} as SuccessResponse & {
|
|
768
|
+
router_contest: RouterContestProps;
|
|
769
|
+
raw_markets_count: number;
|
|
770
|
+
partner_markets_count: number;
|
|
771
|
+
router_market_sides_count: number;
|
|
772
|
+
router_markets_count: number;
|
|
773
|
+
raw_markets: RawMarketProps[];
|
|
774
|
+
partner_markets: PartnerMarketProps[];
|
|
775
|
+
router_market_sides: RouterMarketSideProps[];
|
|
776
|
+
router_markets: RouterMarketProps[]
|
|
777
|
+
},
|
|
778
|
+
400: {} as ErrorResponse
|
|
779
|
+
}
|
|
780
|
+
},
|
|
781
|
+
|
|
782
|
+
'POST /markets/load': {
|
|
783
|
+
auth: false,
|
|
784
|
+
responses: {
|
|
785
|
+
200: {} as SuccessResponse & {
|
|
786
|
+
count: number;
|
|
787
|
+
markets: RawMarketProps[]
|
|
788
|
+
},
|
|
789
|
+
400: {} as ErrorResponse
|
|
790
|
+
}
|
|
791
|
+
},
|
|
792
|
+
|
|
793
|
+
'POST /markets/link': {
|
|
794
|
+
auth: false,
|
|
795
|
+
body: {
|
|
796
|
+
raw_market_id: '' as string,
|
|
797
|
+
router_market_id: '' as string,
|
|
798
|
+
market_side_id: '' as string,
|
|
799
|
+
partner_participant_id: '' as string,
|
|
800
|
+
timeframe_id: '' as string,
|
|
801
|
+
variable: 0 as number,
|
|
802
|
+
variable_type: '' as 'total' | 'spread',
|
|
803
|
+
price_key: '' as string | undefined
|
|
804
|
+
},
|
|
805
|
+
responses: {
|
|
806
|
+
200: {} as SuccessResponse & {
|
|
807
|
+
partnerMarket: PartnerMarketProps
|
|
808
|
+
},
|
|
809
|
+
400: {} as ErrorResponse
|
|
810
|
+
}
|
|
811
|
+
},
|
|
812
|
+
|
|
813
|
+
'POST /markets/add-variable': {
|
|
814
|
+
auth: false,
|
|
815
|
+
body: {
|
|
816
|
+
router_contest_id: '' as string,
|
|
817
|
+
router_market_id: '' as string,
|
|
818
|
+
partner_id: '' as string,
|
|
819
|
+
variable: 0 as number
|
|
820
|
+
},
|
|
821
|
+
responses: {
|
|
822
|
+
200: {} as SuccessResponse & {
|
|
823
|
+
partner_markets_created: PartnerMarketProps[];
|
|
824
|
+
count: number;
|
|
825
|
+
},
|
|
826
|
+
400: {} as ErrorResponse
|
|
827
|
+
}
|
|
828
|
+
},
|
|
829
|
+
|
|
830
|
+
'PATCH /markets/supported/:market_contest_id': {
|
|
831
|
+
auth: false,
|
|
832
|
+
params: {
|
|
833
|
+
market_contest_id: '' as string
|
|
834
|
+
},
|
|
835
|
+
body: {} as Partial<Omit<MarketContestProps, 'market_contest_id' | 'create_datetime'>>,
|
|
836
|
+
responses: {
|
|
837
|
+
200: {} as SuccessResponse & {
|
|
838
|
+
market_contest: MarketContestProps
|
|
839
|
+
},
|
|
840
|
+
400: {} as ErrorResponse,
|
|
841
|
+
404: {} as ErrorResponse & {
|
|
842
|
+
market_contest_id: string
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
},
|
|
846
|
+
|
|
847
|
+
// ========== Liquidity Routes ==========
|
|
848
|
+
'GET /liquidity/contest/:router_contest_id': {
|
|
849
|
+
auth: false,
|
|
850
|
+
params: {
|
|
851
|
+
router_contest_id: '' as string
|
|
852
|
+
},
|
|
853
|
+
query: {
|
|
854
|
+
partner_ids: '' as string | undefined, // CSV of partner IDs (e.g., "partner1,partner2")
|
|
855
|
+
include_opportunities: '' as string | undefined // 'true' to include opportunities in response (default: false)
|
|
856
|
+
},
|
|
857
|
+
responses: {
|
|
858
|
+
200: {} as SuccessResponse & {
|
|
859
|
+
contest: RouterContestProps;
|
|
860
|
+
partners: RouterPartnerProps[];
|
|
861
|
+
liquidity_count: number;
|
|
862
|
+
liquidities: RouterLiquidityProps[];
|
|
863
|
+
partner_contests: PartnerContestProps[];
|
|
864
|
+
partner_markets: PartnerMarketProps[];
|
|
865
|
+
router_markets: RouterMarketProps[];
|
|
866
|
+
router_market_sides: RouterMarketSideProps[];
|
|
867
|
+
router_market_variables: RouterMarketVariableProps[];
|
|
868
|
+
opportunity_count?: number; // Only present when include_opportunities=true
|
|
869
|
+
opportunities?: BuyOpportunity[]; // Only present when include_opportunities=true
|
|
870
|
+
},
|
|
871
|
+
400: {} as ErrorResponse
|
|
872
|
+
}
|
|
873
|
+
},
|
|
874
|
+
|
|
875
|
+
'POST /liquidity/generate-all': {
|
|
876
|
+
auth: false,
|
|
877
|
+
responses: {
|
|
878
|
+
200: {} as SuccessResponse & {
|
|
879
|
+
contests_processed: number;
|
|
880
|
+
total_liquidity_count: number;
|
|
881
|
+
total_opportunities: number;
|
|
882
|
+
opportunities: BuyOpportunity[];
|
|
883
|
+
router_contests: RouterContestProps[];
|
|
884
|
+
partner_markets: PartnerMarketProps[];
|
|
885
|
+
router_market_variables: RouterMarketVariableProps[];
|
|
886
|
+
router_markets: RouterMarketProps[];
|
|
887
|
+
router_market_sides: RouterMarketSideProps[];
|
|
888
|
+
partners: RouterPartnerProps[]
|
|
889
|
+
},
|
|
890
|
+
400: {} as ErrorResponse
|
|
891
|
+
}
|
|
892
|
+
},
|
|
893
|
+
|
|
894
|
+
// ========== Auto-Linking Routes ==========
|
|
895
|
+
'POST /autolinking/contests': {
|
|
896
|
+
auth: false,
|
|
897
|
+
body: {
|
|
898
|
+
router_league_id: '' as string,
|
|
899
|
+
partner_id: '' as string
|
|
900
|
+
},
|
|
901
|
+
responses: {
|
|
902
|
+
200: {} as SuccessResponse & AutoLinkSummary,
|
|
903
|
+
500: {} as ErrorResponse
|
|
904
|
+
}
|
|
905
|
+
},
|
|
906
|
+
|
|
907
|
+
'POST /autolinking/participants': {
|
|
908
|
+
auth: false,
|
|
909
|
+
body: {
|
|
910
|
+
router_league_id: '' as string,
|
|
911
|
+
partner_id: '' as string
|
|
912
|
+
},
|
|
913
|
+
responses: {
|
|
914
|
+
200: {} as SuccessResponse & AutoLinkSummary,
|
|
915
|
+
500: {} as ErrorResponse
|
|
916
|
+
}
|
|
917
|
+
},
|
|
918
|
+
|
|
919
|
+
'POST /autolinking/markets': {
|
|
920
|
+
auth: false,
|
|
921
|
+
body: {
|
|
922
|
+
router_league_id: '' as string,
|
|
923
|
+
router_market_id: '' as string,
|
|
924
|
+
partner_id: '' as string
|
|
925
|
+
},
|
|
926
|
+
responses: {
|
|
927
|
+
200: {} as SuccessResponse & AutoLinkSummary,
|
|
928
|
+
500: {} as ErrorResponse
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
|
|
932
|
+
// ========== Config Routes ==========
|
|
933
|
+
'GET /config': {
|
|
934
|
+
auth: false,
|
|
935
|
+
responses: {
|
|
936
|
+
200: {} as SuccessResponse & {
|
|
937
|
+
count: number;
|
|
938
|
+
configs: ConfigProps[]
|
|
939
|
+
},
|
|
940
|
+
500: {} as ErrorResponse
|
|
941
|
+
}
|
|
942
|
+
},
|
|
943
|
+
|
|
944
|
+
'GET /config/:config': {
|
|
945
|
+
auth: false,
|
|
946
|
+
params: {
|
|
947
|
+
config: '' as string
|
|
948
|
+
},
|
|
949
|
+
responses: {
|
|
950
|
+
200: {} as SuccessResponse & {
|
|
951
|
+
config: ConfigProps
|
|
952
|
+
},
|
|
953
|
+
404: {} as ErrorResponse & {
|
|
954
|
+
config: string
|
|
955
|
+
},
|
|
956
|
+
500: {} as ErrorResponse
|
|
957
|
+
}
|
|
958
|
+
},
|
|
959
|
+
|
|
960
|
+
'GET /config/:config/value': {
|
|
961
|
+
auth: false,
|
|
962
|
+
params: {
|
|
963
|
+
config: '' as string
|
|
964
|
+
},
|
|
965
|
+
responses: {
|
|
966
|
+
200: {} as SuccessResponse & {
|
|
967
|
+
config: string;
|
|
968
|
+
value: any
|
|
969
|
+
},
|
|
970
|
+
404: {} as ErrorResponse & {
|
|
971
|
+
config: string
|
|
972
|
+
},
|
|
973
|
+
500: {} as ErrorResponse
|
|
974
|
+
}
|
|
975
|
+
},
|
|
976
|
+
|
|
977
|
+
'POST /config': {
|
|
978
|
+
auth: false,
|
|
979
|
+
body: {
|
|
980
|
+
config: '' as string,
|
|
981
|
+
value: '' as any,
|
|
982
|
+
config_format: 'string' as 'string' | 'number' | 'boolean' | 'json'
|
|
983
|
+
},
|
|
984
|
+
responses: {
|
|
985
|
+
201: {} as SuccessResponse & {
|
|
986
|
+
config: ConfigProps
|
|
987
|
+
},
|
|
988
|
+
400: {} as ErrorResponse,
|
|
989
|
+
409: {} as ErrorResponse & {
|
|
990
|
+
config: string
|
|
991
|
+
},
|
|
992
|
+
500: {} as ErrorResponse
|
|
993
|
+
}
|
|
994
|
+
},
|
|
995
|
+
|
|
996
|
+
'PUT /config/:config': {
|
|
997
|
+
auth: false,
|
|
998
|
+
params: {
|
|
999
|
+
config: '' as string
|
|
1000
|
+
},
|
|
1001
|
+
body: {
|
|
1002
|
+
value: '' as any | undefined,
|
|
1003
|
+
config_format: '' as ('string' | 'number' | 'boolean' | 'json') | undefined
|
|
1004
|
+
},
|
|
1005
|
+
responses: {
|
|
1006
|
+
200: {} as SuccessResponse & {
|
|
1007
|
+
config: ConfigProps
|
|
1008
|
+
},
|
|
1009
|
+
400: {} as ErrorResponse,
|
|
1010
|
+
404: {} as ErrorResponse & {
|
|
1011
|
+
config: string
|
|
1012
|
+
},
|
|
1013
|
+
500: {} as ErrorResponse
|
|
1014
|
+
}
|
|
1015
|
+
},
|
|
1016
|
+
|
|
1017
|
+
'DELETE /config/:config': {
|
|
1018
|
+
auth: false,
|
|
1019
|
+
params: {
|
|
1020
|
+
config: '' as string
|
|
1021
|
+
},
|
|
1022
|
+
responses: {
|
|
1023
|
+
200: {} as SuccessResponse & {
|
|
1024
|
+
config: string
|
|
1025
|
+
},
|
|
1026
|
+
404: {} as ErrorResponse & {
|
|
1027
|
+
config: string
|
|
1028
|
+
},
|
|
1029
|
+
500: {} as ErrorResponse
|
|
1030
|
+
}
|
|
1031
|
+
},
|
|
1032
|
+
|
|
1033
|
+
// ========== Jobs Routes ==========
|
|
1034
|
+
'POST /jobs/create': {
|
|
1035
|
+
auth: true,
|
|
1036
|
+
body: {
|
|
1037
|
+
job_key: '' as string,
|
|
1038
|
+
name: '' as string,
|
|
1039
|
+
description: '' as string,
|
|
1040
|
+
frequency: 0 as number,
|
|
1041
|
+
frequency_type: 'seconds' as 'seconds' | 'minutes' | 'hours' | 'days'
|
|
1042
|
+
},
|
|
1043
|
+
responses: {
|
|
1044
|
+
201: {} as SuccessResponse & {
|
|
1045
|
+
job: RouterJobProps
|
|
1046
|
+
},
|
|
1047
|
+
400: {} as ErrorResponse
|
|
1048
|
+
}
|
|
1049
|
+
},
|
|
1050
|
+
|
|
1051
|
+
'PUT /jobs/update': {
|
|
1052
|
+
auth: true,
|
|
1053
|
+
body: {} as { router_job_id: string } & Partial<Omit<RouterJobProps, 'router_job_id' | 'create_datetime'>>,
|
|
1054
|
+
responses: {
|
|
1055
|
+
200: {} as SuccessResponse & {
|
|
1056
|
+
job: RouterJobProps
|
|
1057
|
+
},
|
|
1058
|
+
400: {} as ErrorResponse,
|
|
1059
|
+
404: {} as ErrorResponse & {
|
|
1060
|
+
router_job_id: string
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
},
|
|
1064
|
+
|
|
1065
|
+
'POST /jobs/queue': {
|
|
1066
|
+
auth: true,
|
|
1067
|
+
body: {
|
|
1068
|
+
job_key: '' as string
|
|
1069
|
+
},
|
|
1070
|
+
responses: {
|
|
1071
|
+
200: {} as SuccessResponse & {
|
|
1072
|
+
job_key: string;
|
|
1073
|
+
job_name: string;
|
|
1074
|
+
note: string
|
|
1075
|
+
},
|
|
1076
|
+
400: {} as ErrorResponse,
|
|
1077
|
+
404: {} as ErrorResponse & {
|
|
1078
|
+
job_key: string
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
},
|
|
1082
|
+
|
|
1083
|
+
'GET /jobs': {
|
|
1084
|
+
auth: true,
|
|
1085
|
+
responses: {
|
|
1086
|
+
200: {} as SuccessResponse & {
|
|
1087
|
+
count: number;
|
|
1088
|
+
jobs: RouterJobProps[]
|
|
1089
|
+
},
|
|
1090
|
+
500: {} as ErrorResponse
|
|
1091
|
+
}
|
|
1092
|
+
},
|
|
1093
|
+
|
|
1094
|
+
'GET /jobs/:job_key': {
|
|
1095
|
+
auth: true,
|
|
1096
|
+
params: {
|
|
1097
|
+
job_key: '' as string
|
|
1098
|
+
},
|
|
1099
|
+
responses: {
|
|
1100
|
+
200: {} as SuccessResponse & {
|
|
1101
|
+
job: RouterJobProps
|
|
1102
|
+
},
|
|
1103
|
+
404: {} as ErrorResponse & {
|
|
1104
|
+
job_key: string
|
|
1105
|
+
},
|
|
1106
|
+
500: {} as ErrorResponse
|
|
1107
|
+
}
|
|
1108
|
+
},
|
|
1109
|
+
|
|
1110
|
+
'DELETE /jobs/:router_job_id': {
|
|
1111
|
+
auth: true,
|
|
1112
|
+
params: {
|
|
1113
|
+
router_job_id: '' as string
|
|
1114
|
+
},
|
|
1115
|
+
responses: {
|
|
1116
|
+
200: {} as SuccessResponse & {
|
|
1117
|
+
router_job_id: string;
|
|
1118
|
+
job_key: string
|
|
1119
|
+
},
|
|
1120
|
+
404: {} as ErrorResponse & {
|
|
1121
|
+
router_job_id: string
|
|
1122
|
+
},
|
|
1123
|
+
500: {} as ErrorResponse
|
|
1124
|
+
}
|
|
1125
|
+
},
|
|
1126
|
+
|
|
1127
|
+
'GET /jobs/statuses/recent': {
|
|
1128
|
+
auth: true,
|
|
1129
|
+
query: {
|
|
1130
|
+
limit: 0 as number | undefined, // Default: 50
|
|
1131
|
+
offset: 0 as number | undefined // Default: 0
|
|
1132
|
+
},
|
|
1133
|
+
responses: {
|
|
1134
|
+
200: {} as SuccessResponse & {
|
|
1135
|
+
count: number;
|
|
1136
|
+
limit: number;
|
|
1137
|
+
offset: number;
|
|
1138
|
+
statuses: RouterJobStatusProps[];
|
|
1139
|
+
jobs: RouterJobProps[]
|
|
1140
|
+
},
|
|
1141
|
+
500: {} as ErrorResponse
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
} as const;
|
|
1145
|
+
|
|
1146
|
+
// Type helpers to extract types from contracts
|
|
1147
|
+
export type ApiContract = typeof ApiContracts;
|
|
1148
|
+
|
|
1149
|
+
export type ExtractRequestBody<T extends keyof ApiContract> =
|
|
1150
|
+
ApiContract[T] extends { body: infer B } ? B : never;
|
|
1151
|
+
|
|
1152
|
+
export type ExtractRequestQuery<T extends keyof ApiContract> =
|
|
1153
|
+
ApiContract[T] extends { query: infer Q } ? Q : never;
|
|
1154
|
+
|
|
1155
|
+
export type ExtractRequestParams<T extends keyof ApiContract> =
|
|
1156
|
+
ApiContract[T] extends { params: infer P } ? P : never;
|
|
1157
|
+
|
|
1158
|
+
export type ExtractSuccessResponse<T extends keyof ApiContract> =
|
|
1159
|
+
ApiContract[T] extends { responses: { 200: infer R } } ? R :
|
|
1160
|
+
ApiContract[T] extends { responses: { 201: infer R } } ? R : never;
|
|
1161
|
+
|
|
1162
|
+
export type ExtractErrorResponse<T extends keyof ApiContract> =
|
|
1163
|
+
ApiContract[T] extends { responses: { 400: infer R } } ? R :
|
|
1164
|
+
ApiContract[T] extends { responses: { 500: infer R } } ? R : never;
|