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,884 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getPartners = exports.getParticipants = exports.getLeagues = exports.getContests = exports.BetRouterApi = void 0;
|
|
7
|
+
var _axios = _interopRequireDefault(require("axios"));
|
|
8
|
+
var _ApiOverrides = require("../../ApiOverrides");
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
let AUTH_SVC_API = '';
|
|
11
|
+
let BR_SVC_API = '';
|
|
12
|
+
|
|
13
|
+
// Simpler named exports for common operations - these return the actual API response types
|
|
14
|
+
const getPartners = () => BetRouterApi.BetRouter.PartnerApi.getPartners();
|
|
15
|
+
exports.getPartners = getPartners;
|
|
16
|
+
const getLeagues = status => BetRouterApi.BetRouter.LeagueApi.getLeagues(status);
|
|
17
|
+
exports.getLeagues = getLeagues;
|
|
18
|
+
const getContests = status => BetRouterApi.BetRouter.ContestApi.getRouterContests(status);
|
|
19
|
+
exports.getContests = getContests;
|
|
20
|
+
const getParticipants = (router_league_id, participant_type, status) => BetRouterApi.BetRouter.ParticipantApi.getRouterParticipants(router_league_id, participant_type, status);
|
|
21
|
+
exports.getParticipants = getParticipants;
|
|
22
|
+
const BetRouterApi = exports.BetRouterApi = {
|
|
23
|
+
setEnvironment: () => {
|
|
24
|
+
const endpoints = _ApiOverrides.APIOverrides.getEndpoints();
|
|
25
|
+
AUTH_SVC_API = endpoints['AUTH_SVC_API'];
|
|
26
|
+
BR_SVC_API = endpoints['BR_SVC_API'];
|
|
27
|
+
console.log(BR_SVC_API);
|
|
28
|
+
},
|
|
29
|
+
BettorEdge: {
|
|
30
|
+
// BettorEdge specific APIs would go here
|
|
31
|
+
getMyDetails: async () => {
|
|
32
|
+
try {
|
|
33
|
+
const resp = await _axios.default.get(`${AUTH_SVC_API}/v1/players/player/me`);
|
|
34
|
+
return resp.data.player;
|
|
35
|
+
} catch (e) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
BetRouter: {
|
|
41
|
+
AccountApi: {
|
|
42
|
+
// POST /accounts/join
|
|
43
|
+
join: async () => {
|
|
44
|
+
try {
|
|
45
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/accounts/join`);
|
|
46
|
+
return resp.data;
|
|
47
|
+
} catch (e) {
|
|
48
|
+
throw e;
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
// POST /accounts/leave
|
|
52
|
+
leave: async () => {
|
|
53
|
+
try {
|
|
54
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/accounts/leave`);
|
|
55
|
+
return resp.data;
|
|
56
|
+
} catch (e) {
|
|
57
|
+
throw e;
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
// GET /accounts/me
|
|
61
|
+
getMe: async () => {
|
|
62
|
+
try {
|
|
63
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/accounts/me`);
|
|
64
|
+
return resp.data;
|
|
65
|
+
} catch (e) {
|
|
66
|
+
console.log('ERROR');
|
|
67
|
+
console.log(e);
|
|
68
|
+
throw e;
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
// GET /accounts/partners/me
|
|
72
|
+
getMyPartner: async partner_id => {
|
|
73
|
+
try {
|
|
74
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/accounts/partners/me`, {
|
|
75
|
+
params: {
|
|
76
|
+
partner_id
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
return resp.data;
|
|
80
|
+
} catch (e) {
|
|
81
|
+
throw e;
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
// POST /accounts/partner/connect
|
|
85
|
+
connectPartner: async partner_id => {
|
|
86
|
+
try {
|
|
87
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/accounts/partner/connect`, {
|
|
88
|
+
partner_id
|
|
89
|
+
});
|
|
90
|
+
return resp.data;
|
|
91
|
+
} catch (e) {
|
|
92
|
+
throw e;
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
// POST /accounts/partner/disconnect
|
|
96
|
+
disconnectPartner: async partner_id => {
|
|
97
|
+
try {
|
|
98
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/accounts/partner/disconnect`, {
|
|
99
|
+
partner_id
|
|
100
|
+
});
|
|
101
|
+
return resp.data;
|
|
102
|
+
} catch (e) {
|
|
103
|
+
throw e;
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
// POST /accounts/partner/credentials/update
|
|
107
|
+
updatePartnerCredentials: async (partner_id, credentials) => {
|
|
108
|
+
try {
|
|
109
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/accounts/partner/credentials/update`, {
|
|
110
|
+
partner_id,
|
|
111
|
+
credentials
|
|
112
|
+
});
|
|
113
|
+
return resp.data;
|
|
114
|
+
} catch (e) {
|
|
115
|
+
throw e;
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
// POST /accounts/partner/credentials/test
|
|
119
|
+
testPartnerCredentials: async partner_id => {
|
|
120
|
+
try {
|
|
121
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/accounts/partner/credentials/test`, {
|
|
122
|
+
partner_id
|
|
123
|
+
});
|
|
124
|
+
return resp.data;
|
|
125
|
+
} catch (e) {
|
|
126
|
+
throw e;
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
// POST /accounts/balance/update
|
|
130
|
+
updateBalance: async () => {
|
|
131
|
+
try {
|
|
132
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/accounts/balance/update`);
|
|
133
|
+
return resp.data;
|
|
134
|
+
} catch (e) {
|
|
135
|
+
throw e;
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
// GET /accounts/balance/me
|
|
139
|
+
getMyBalance: async () => {
|
|
140
|
+
try {
|
|
141
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/accounts/balance/me`);
|
|
142
|
+
return resp.data;
|
|
143
|
+
} catch (e) {
|
|
144
|
+
throw e;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
OpportunityApi: {
|
|
149
|
+
// GET /opportunities/open/me
|
|
150
|
+
getMyOpenOpportunities: async () => {
|
|
151
|
+
try {
|
|
152
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/opportunities/open/me`);
|
|
153
|
+
return resp.data;
|
|
154
|
+
} catch (e) {
|
|
155
|
+
console.log(e);
|
|
156
|
+
return {
|
|
157
|
+
message: 'Error fetching opportunities',
|
|
158
|
+
opportunities: [],
|
|
159
|
+
opportunity_status_legs: [],
|
|
160
|
+
router_orders: [],
|
|
161
|
+
router_contests: []
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
// GET /opportunities/past/me
|
|
166
|
+
getMyPastOpportunities: async (from, to, offset = 0) => {
|
|
167
|
+
try {
|
|
168
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/opportunities/past/me`, {
|
|
169
|
+
params: {
|
|
170
|
+
from,
|
|
171
|
+
to,
|
|
172
|
+
offset
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
return resp.data;
|
|
176
|
+
} catch (e) {
|
|
177
|
+
console.log(e);
|
|
178
|
+
return {
|
|
179
|
+
message: 'Error fetching past opportunities',
|
|
180
|
+
opportunities: [],
|
|
181
|
+
opportunity_summary: [],
|
|
182
|
+
router_contests: [],
|
|
183
|
+
router_orders: [],
|
|
184
|
+
opportunity_status_legs: [],
|
|
185
|
+
pages: 0
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
// POST /opportunities/opportunity/buy
|
|
190
|
+
buyOpportunity: async buy_opportunity => {
|
|
191
|
+
try {
|
|
192
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/opportunities/opportunity/buy`, {
|
|
193
|
+
buy_opportunity
|
|
194
|
+
});
|
|
195
|
+
console.log(resp.data);
|
|
196
|
+
return resp.data;
|
|
197
|
+
} catch (e) {
|
|
198
|
+
console.log(e);
|
|
199
|
+
return {
|
|
200
|
+
message: 'Error buying opportunity',
|
|
201
|
+
success: false,
|
|
202
|
+
total_legs: 0,
|
|
203
|
+
successful_orders: 0,
|
|
204
|
+
router_orders: [],
|
|
205
|
+
buy_results: []
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
// POST /opportunities/reconcile
|
|
210
|
+
reconcileOpportunities: async () => {
|
|
211
|
+
try {
|
|
212
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/opportunities/reconcile`);
|
|
213
|
+
return resp.data;
|
|
214
|
+
} catch (e) {
|
|
215
|
+
throw e;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
PartnerApi: {
|
|
220
|
+
// GET /partners
|
|
221
|
+
getPartners: async () => {
|
|
222
|
+
try {
|
|
223
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/partners`);
|
|
224
|
+
return resp.data;
|
|
225
|
+
} catch (e) {
|
|
226
|
+
throw e;
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
// POST /partners/load
|
|
230
|
+
loadPartners: async () => {
|
|
231
|
+
try {
|
|
232
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/partners/load`);
|
|
233
|
+
return resp.data;
|
|
234
|
+
} catch (e) {
|
|
235
|
+
throw e;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
LeagueApi: {
|
|
240
|
+
// GET /leagues
|
|
241
|
+
getLeagues: async status => {
|
|
242
|
+
try {
|
|
243
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/leagues`, {
|
|
244
|
+
params: status ? {
|
|
245
|
+
status
|
|
246
|
+
} : undefined
|
|
247
|
+
});
|
|
248
|
+
return resp.data;
|
|
249
|
+
} catch (e) {
|
|
250
|
+
console.log('ERROR', e);
|
|
251
|
+
throw e;
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
// GET /leagues/open
|
|
255
|
+
getOpenLeagues: async () => {
|
|
256
|
+
try {
|
|
257
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/leagues/open`);
|
|
258
|
+
return resp.data;
|
|
259
|
+
} catch (e) {
|
|
260
|
+
throw e;
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
// POST /leagues/link
|
|
264
|
+
linkLeague: async (raw_league_ids, router_league_id) => {
|
|
265
|
+
try {
|
|
266
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/leagues/link`, {
|
|
267
|
+
raw_league_ids,
|
|
268
|
+
router_league_id
|
|
269
|
+
});
|
|
270
|
+
return resp.data;
|
|
271
|
+
} catch (e) {
|
|
272
|
+
throw e;
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
// POST /leagues/load
|
|
276
|
+
loadLeagues: async () => {
|
|
277
|
+
try {
|
|
278
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/leagues/load`);
|
|
279
|
+
return resp.data;
|
|
280
|
+
} catch (e) {
|
|
281
|
+
throw e;
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
// GET /leagues/:router_league_id/available-raw/:partner_id
|
|
285
|
+
getAvailableRawLeagues: async (router_league_id, partner_id) => {
|
|
286
|
+
try {
|
|
287
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/leagues/${router_league_id}/available-raw/${partner_id}`);
|
|
288
|
+
return resp.data;
|
|
289
|
+
} catch (e) {
|
|
290
|
+
throw e;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
ParticipantApi: {
|
|
295
|
+
// GET /participants/router
|
|
296
|
+
getRouterParticipants: async (router_league_id, participant_type, status) => {
|
|
297
|
+
try {
|
|
298
|
+
const params = {};
|
|
299
|
+
if (router_league_id) params.router_league_id = router_league_id;
|
|
300
|
+
if (participant_type) params.participant_type = participant_type;
|
|
301
|
+
if (status) params.status = status;
|
|
302
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/participants/router`, {
|
|
303
|
+
params: Object.keys(params).length > 0 ? params : undefined
|
|
304
|
+
});
|
|
305
|
+
return resp.data;
|
|
306
|
+
} catch (e) {
|
|
307
|
+
throw e;
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
// GET /participants/raw
|
|
311
|
+
getRawParticipants: async () => {
|
|
312
|
+
try {
|
|
313
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/participants/raw`);
|
|
314
|
+
return resp.data;
|
|
315
|
+
} catch (e) {
|
|
316
|
+
throw e;
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
// GET /participants/partner
|
|
320
|
+
getPartnerParticipants: async () => {
|
|
321
|
+
try {
|
|
322
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/participants/partner`);
|
|
323
|
+
return resp.data;
|
|
324
|
+
} catch (e) {
|
|
325
|
+
throw e;
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
// GET /participants/:router_participant_id/available-raw/:partner_id/:router_league_id
|
|
329
|
+
getAvailableRawParticipants: async (router_participant_id, partner_id, router_league_id) => {
|
|
330
|
+
try {
|
|
331
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/participants/${router_participant_id}/available-raw/${partner_id}/${router_league_id}`);
|
|
332
|
+
return resp.data;
|
|
333
|
+
} catch (e) {
|
|
334
|
+
throw e;
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
// POST /participants/link
|
|
338
|
+
linkParticipant: async (raw_participant_ids, router_participant_id) => {
|
|
339
|
+
try {
|
|
340
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/participants/link`, {
|
|
341
|
+
raw_participant_ids,
|
|
342
|
+
router_participant_id
|
|
343
|
+
});
|
|
344
|
+
return resp.data;
|
|
345
|
+
} catch (e) {
|
|
346
|
+
throw e;
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
// POST /participants/load
|
|
350
|
+
loadParticipants: async router_league_id => {
|
|
351
|
+
try {
|
|
352
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/participants/load`, {
|
|
353
|
+
router_league_id
|
|
354
|
+
});
|
|
355
|
+
return resp.data;
|
|
356
|
+
} catch (e) {
|
|
357
|
+
throw e;
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
// POST /participants/load-raw
|
|
361
|
+
loadRawParticipants: async (partner_id, router_league_id) => {
|
|
362
|
+
try {
|
|
363
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/participants/load-raw`, {
|
|
364
|
+
partner_id,
|
|
365
|
+
router_league_id
|
|
366
|
+
});
|
|
367
|
+
return resp.data;
|
|
368
|
+
} catch (e) {
|
|
369
|
+
throw e;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
ContestApi: {
|
|
374
|
+
// GET /contests/router
|
|
375
|
+
getRouterContests: async status => {
|
|
376
|
+
try {
|
|
377
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/contests/router`, {
|
|
378
|
+
params: status ? {
|
|
379
|
+
status
|
|
380
|
+
} : undefined
|
|
381
|
+
});
|
|
382
|
+
return resp.data;
|
|
383
|
+
} catch (e) {
|
|
384
|
+
throw e;
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
// GET /contests/partner
|
|
388
|
+
getPartnerContests: async () => {
|
|
389
|
+
try {
|
|
390
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/contests/partner`);
|
|
391
|
+
return resp.data;
|
|
392
|
+
} catch (e) {
|
|
393
|
+
throw e;
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
// GET /contests/:router_contest_id
|
|
397
|
+
getContest: async router_contest_id => {
|
|
398
|
+
try {
|
|
399
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/contests/${router_contest_id}`);
|
|
400
|
+
return resp.data;
|
|
401
|
+
} catch (e) {
|
|
402
|
+
throw e;
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
// GET /contests/open/:router_league_id
|
|
406
|
+
getOpenContests: async (router_league_id, status = 'open', offset) => {
|
|
407
|
+
try {
|
|
408
|
+
const params = {
|
|
409
|
+
status
|
|
410
|
+
};
|
|
411
|
+
if (status === 'closed' && offset !== undefined) {
|
|
412
|
+
params.offset = offset;
|
|
413
|
+
}
|
|
414
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/contests/open/${router_league_id}`, {
|
|
415
|
+
params
|
|
416
|
+
});
|
|
417
|
+
return resp.data;
|
|
418
|
+
} catch (e) {
|
|
419
|
+
throw e;
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
// POST /contests/link
|
|
423
|
+
linkContest: async (raw_contest_ids, router_contest_id) => {
|
|
424
|
+
try {
|
|
425
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/contests/link`, {
|
|
426
|
+
raw_contest_ids,
|
|
427
|
+
router_contest_id
|
|
428
|
+
});
|
|
429
|
+
return resp.data;
|
|
430
|
+
} catch (e) {
|
|
431
|
+
throw e;
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
// POST /contests/load
|
|
435
|
+
loadContests: async router_league_id => {
|
|
436
|
+
try {
|
|
437
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/contests/load`, {
|
|
438
|
+
router_league_id
|
|
439
|
+
});
|
|
440
|
+
return resp.data;
|
|
441
|
+
} catch (e) {
|
|
442
|
+
throw e;
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
// POST /contests/load-raw
|
|
446
|
+
loadRawContests: async (partner_id, router_league_id) => {
|
|
447
|
+
try {
|
|
448
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/contests/load-raw`, {
|
|
449
|
+
partner_id,
|
|
450
|
+
router_league_id
|
|
451
|
+
});
|
|
452
|
+
return resp.data;
|
|
453
|
+
} catch (e) {
|
|
454
|
+
throw e;
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
// POST /contests/check-status
|
|
458
|
+
checkStatus: async () => {
|
|
459
|
+
try {
|
|
460
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/contests/check-status`);
|
|
461
|
+
return resp.data;
|
|
462
|
+
} catch (e) {
|
|
463
|
+
throw e;
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
// PATCH /contests/router/:router_contest_id
|
|
467
|
+
updateRouterContest: async (router_contest_id, updates) => {
|
|
468
|
+
try {
|
|
469
|
+
const resp = await _axios.default.patch(`${BR_SVC_API}/contests/router/${router_contest_id}`, updates);
|
|
470
|
+
return resp.data;
|
|
471
|
+
} catch (e) {
|
|
472
|
+
throw e;
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
// GET /contests/:router_contest_id/available-raw/:partner_id
|
|
476
|
+
getAvailableRawContests: async (router_contest_id, partner_id) => {
|
|
477
|
+
try {
|
|
478
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/contests/${router_contest_id}/available-raw/${partner_id}`);
|
|
479
|
+
return resp.data;
|
|
480
|
+
} catch (e) {
|
|
481
|
+
throw e;
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
// GET /contests/auto-fill
|
|
485
|
+
getAutoFillContests: async () => {
|
|
486
|
+
try {
|
|
487
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/contests/auto-fill`);
|
|
488
|
+
return resp.data;
|
|
489
|
+
} catch (e) {
|
|
490
|
+
throw e;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
MarketApi: {
|
|
495
|
+
// GET /markets/router
|
|
496
|
+
getRouterMarkets: async () => {
|
|
497
|
+
try {
|
|
498
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/markets/router`);
|
|
499
|
+
return resp.data;
|
|
500
|
+
} catch (e) {
|
|
501
|
+
throw e;
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
// GET /markets/variables
|
|
505
|
+
getMarketVariables: async () => {
|
|
506
|
+
try {
|
|
507
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/markets/variables`);
|
|
508
|
+
return resp.data;
|
|
509
|
+
} catch (e) {
|
|
510
|
+
throw e;
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
// GET /markets/sides
|
|
514
|
+
getMarketSides: async () => {
|
|
515
|
+
try {
|
|
516
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/markets/sides`);
|
|
517
|
+
return resp.data;
|
|
518
|
+
} catch (e) {
|
|
519
|
+
throw e;
|
|
520
|
+
}
|
|
521
|
+
},
|
|
522
|
+
// GET /markets/partner
|
|
523
|
+
getPartnerMarkets: async () => {
|
|
524
|
+
try {
|
|
525
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/markets/partner`);
|
|
526
|
+
return resp.data;
|
|
527
|
+
} catch (e) {
|
|
528
|
+
throw e;
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
// GET /markets/raw/:router_contest_id
|
|
532
|
+
getOpenMarkets: async router_contest_id => {
|
|
533
|
+
try {
|
|
534
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/markets/raw/${router_contest_id}`);
|
|
535
|
+
return resp.data;
|
|
536
|
+
} catch (e) {
|
|
537
|
+
throw e;
|
|
538
|
+
}
|
|
539
|
+
},
|
|
540
|
+
// POST /markets/load
|
|
541
|
+
loadMarkets: async () => {
|
|
542
|
+
try {
|
|
543
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/markets/load`);
|
|
544
|
+
return resp.data;
|
|
545
|
+
} catch (e) {
|
|
546
|
+
throw e;
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
// POST /markets/link
|
|
550
|
+
linkMarket: async (raw_market_id, router_market_id, market_side_id, partner_participant_id, timeframe_id, variable, variable_type, price_key) => {
|
|
551
|
+
try {
|
|
552
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/markets/link`, {
|
|
553
|
+
raw_market_id,
|
|
554
|
+
router_market_id,
|
|
555
|
+
market_side_id,
|
|
556
|
+
partner_participant_id,
|
|
557
|
+
timeframe_id,
|
|
558
|
+
variable,
|
|
559
|
+
variable_type,
|
|
560
|
+
price_key
|
|
561
|
+
});
|
|
562
|
+
return resp.data;
|
|
563
|
+
} catch (e) {
|
|
564
|
+
throw e;
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
// GET /markets/supported/:router_contest_id
|
|
568
|
+
getSupportedMarkets: async router_contest_id => {
|
|
569
|
+
try {
|
|
570
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/markets/supported/${router_contest_id}`);
|
|
571
|
+
return resp.data;
|
|
572
|
+
} catch (e) {
|
|
573
|
+
throw e;
|
|
574
|
+
}
|
|
575
|
+
},
|
|
576
|
+
// GET /markets/available-to-support/:router_contest_id
|
|
577
|
+
getAvailableToSupport: async router_contest_id => {
|
|
578
|
+
try {
|
|
579
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/markets/available-to-support/${router_contest_id}`);
|
|
580
|
+
return resp.data;
|
|
581
|
+
} catch (e) {
|
|
582
|
+
throw e;
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
// POST /markets/supported
|
|
586
|
+
addSupportedMarket: async (router_contest_id, router_market_id) => {
|
|
587
|
+
try {
|
|
588
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/markets/supported`, {
|
|
589
|
+
router_contest_id,
|
|
590
|
+
router_market_id
|
|
591
|
+
});
|
|
592
|
+
return resp.data;
|
|
593
|
+
} catch (e) {
|
|
594
|
+
throw e;
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
// DELETE /markets/supported/:market_contest_id
|
|
598
|
+
removeSupportedMarket: async market_contest_id => {
|
|
599
|
+
try {
|
|
600
|
+
const resp = await _axios.default.delete(`${BR_SVC_API}/markets/supported/${market_contest_id}`);
|
|
601
|
+
return resp.data;
|
|
602
|
+
} catch (e) {
|
|
603
|
+
throw e;
|
|
604
|
+
}
|
|
605
|
+
},
|
|
606
|
+
// PATCH /markets/supported/:market_contest_id
|
|
607
|
+
updateMarketContest: async (market_contest_id, updates) => {
|
|
608
|
+
try {
|
|
609
|
+
const resp = await _axios.default.patch(`${BR_SVC_API}/markets/supported/${market_contest_id}`, updates);
|
|
610
|
+
return resp.data;
|
|
611
|
+
} catch (e) {
|
|
612
|
+
throw e;
|
|
613
|
+
}
|
|
614
|
+
},
|
|
615
|
+
// GET /markets/:router_contest_id/:router_market_id/available-raw/:partner_id
|
|
616
|
+
getAvailableRawMarkets: async (router_contest_id, router_market_id, partner_id) => {
|
|
617
|
+
try {
|
|
618
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/markets/${router_contest_id}/${router_market_id}/available-raw/${partner_id}`);
|
|
619
|
+
return resp.data;
|
|
620
|
+
} catch (e) {
|
|
621
|
+
throw e;
|
|
622
|
+
}
|
|
623
|
+
},
|
|
624
|
+
// GET /markets/:router_contest_id/:router_market_id/linking-data/:partner_id
|
|
625
|
+
getMarketLinkingData: async (router_contest_id, router_market_id, partner_id) => {
|
|
626
|
+
try {
|
|
627
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/markets/${router_contest_id}/${router_market_id}/linking-data/${partner_id}`);
|
|
628
|
+
return resp.data;
|
|
629
|
+
} catch (e) {
|
|
630
|
+
throw e;
|
|
631
|
+
}
|
|
632
|
+
},
|
|
633
|
+
// GET /markets/:router_contest_id/:router_market_id/variables-and-raw/:partner_id
|
|
634
|
+
getVariablesAndRaw: async (router_contest_id, router_market_id, partner_id) => {
|
|
635
|
+
try {
|
|
636
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/markets/${router_contest_id}/${router_market_id}/variables-and-raw/${partner_id}`);
|
|
637
|
+
return resp.data;
|
|
638
|
+
} catch (e) {
|
|
639
|
+
throw e;
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
// POST /markets/add-variable
|
|
643
|
+
addVariable: async (router_contest_id, router_market_id, partner_id, variable) => {
|
|
644
|
+
try {
|
|
645
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/markets/add-variable`, {
|
|
646
|
+
router_contest_id,
|
|
647
|
+
router_market_id,
|
|
648
|
+
partner_id,
|
|
649
|
+
variable
|
|
650
|
+
});
|
|
651
|
+
return resp.data;
|
|
652
|
+
} catch (e) {
|
|
653
|
+
throw e;
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
LiquidityApi: {
|
|
658
|
+
// GET /liquidity/contest/:router_contest_id
|
|
659
|
+
getLiquidity: async (router_contest_id, partner_ids, include_opportunities) => {
|
|
660
|
+
try {
|
|
661
|
+
const params = {};
|
|
662
|
+
if (partner_ids && partner_ids.length > 0) {
|
|
663
|
+
params.partner_ids = partner_ids.join(',');
|
|
664
|
+
}
|
|
665
|
+
if (include_opportunities) {
|
|
666
|
+
params.include_opportunities = 'true';
|
|
667
|
+
}
|
|
668
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/liquidity/contest/${router_contest_id}`, {
|
|
669
|
+
params
|
|
670
|
+
});
|
|
671
|
+
return resp.data;
|
|
672
|
+
} catch (e) {
|
|
673
|
+
throw e;
|
|
674
|
+
}
|
|
675
|
+
},
|
|
676
|
+
// POST /liquidity/generate-all
|
|
677
|
+
getAllOpportunities: async () => {
|
|
678
|
+
try {
|
|
679
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/liquidity/generate-all`);
|
|
680
|
+
return resp.data;
|
|
681
|
+
} catch (e) {
|
|
682
|
+
console.log(e);
|
|
683
|
+
return {
|
|
684
|
+
message: 'Error generating opportunities',
|
|
685
|
+
contests_processed: 0,
|
|
686
|
+
total_liquidity_count: 0,
|
|
687
|
+
total_opportunities: 0,
|
|
688
|
+
opportunities: [],
|
|
689
|
+
router_contests: [],
|
|
690
|
+
partner_markets: [],
|
|
691
|
+
router_market_variables: [],
|
|
692
|
+
router_markets: [],
|
|
693
|
+
router_market_sides: [],
|
|
694
|
+
partners: []
|
|
695
|
+
};
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
},
|
|
699
|
+
AutoLinkingApi: {
|
|
700
|
+
// POST /autolinking/contests
|
|
701
|
+
autoLinkContests: async (router_league_id, partner_id) => {
|
|
702
|
+
try {
|
|
703
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/autolinking/contests`, {
|
|
704
|
+
router_league_id,
|
|
705
|
+
partner_id
|
|
706
|
+
});
|
|
707
|
+
return resp.data;
|
|
708
|
+
} catch (e) {
|
|
709
|
+
throw e;
|
|
710
|
+
}
|
|
711
|
+
},
|
|
712
|
+
// POST /autolinking/participants
|
|
713
|
+
autoLinkParticipants: async (router_league_id, partner_id) => {
|
|
714
|
+
try {
|
|
715
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/autolinking/participants`, {
|
|
716
|
+
router_league_id,
|
|
717
|
+
partner_id
|
|
718
|
+
});
|
|
719
|
+
return resp.data;
|
|
720
|
+
} catch (e) {
|
|
721
|
+
throw e;
|
|
722
|
+
}
|
|
723
|
+
},
|
|
724
|
+
// POST /autolinking/markets
|
|
725
|
+
autoLinkMarkets: async (router_league_id, router_market_id, partner_id) => {
|
|
726
|
+
try {
|
|
727
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/autolinking/markets`, {
|
|
728
|
+
router_league_id,
|
|
729
|
+
router_market_id,
|
|
730
|
+
partner_id
|
|
731
|
+
});
|
|
732
|
+
return resp.data;
|
|
733
|
+
} catch (e) {
|
|
734
|
+
throw e;
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
},
|
|
738
|
+
JobApi: {
|
|
739
|
+
// GET /jobs
|
|
740
|
+
getJobs: async () => {
|
|
741
|
+
try {
|
|
742
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/jobs`);
|
|
743
|
+
return resp.data;
|
|
744
|
+
} catch (e) {
|
|
745
|
+
throw e;
|
|
746
|
+
}
|
|
747
|
+
},
|
|
748
|
+
// GET /jobs/:job_key
|
|
749
|
+
getJob: async job_key => {
|
|
750
|
+
try {
|
|
751
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/jobs/${job_key}`);
|
|
752
|
+
return resp.data;
|
|
753
|
+
} catch (e) {
|
|
754
|
+
throw e;
|
|
755
|
+
}
|
|
756
|
+
},
|
|
757
|
+
// POST /jobs/create
|
|
758
|
+
createJob: async (job_key, name, description, frequency, frequency_type) => {
|
|
759
|
+
try {
|
|
760
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/jobs/create`, {
|
|
761
|
+
job_key,
|
|
762
|
+
name,
|
|
763
|
+
description,
|
|
764
|
+
frequency,
|
|
765
|
+
frequency_type
|
|
766
|
+
});
|
|
767
|
+
return resp.data;
|
|
768
|
+
} catch (e) {
|
|
769
|
+
throw e;
|
|
770
|
+
}
|
|
771
|
+
},
|
|
772
|
+
// PUT /jobs/update
|
|
773
|
+
updateJob: async (router_job_id, updates) => {
|
|
774
|
+
try {
|
|
775
|
+
const resp = await _axios.default.put(`${BR_SVC_API}/jobs/update`, {
|
|
776
|
+
router_job_id,
|
|
777
|
+
...updates
|
|
778
|
+
});
|
|
779
|
+
return resp.data;
|
|
780
|
+
} catch (e) {
|
|
781
|
+
throw e;
|
|
782
|
+
}
|
|
783
|
+
},
|
|
784
|
+
// DELETE /jobs/:router_job_id
|
|
785
|
+
deleteJob: async router_job_id => {
|
|
786
|
+
try {
|
|
787
|
+
const resp = await _axios.default.delete(`${BR_SVC_API}/jobs/${router_job_id}`);
|
|
788
|
+
return resp.data;
|
|
789
|
+
} catch (e) {
|
|
790
|
+
throw e;
|
|
791
|
+
}
|
|
792
|
+
},
|
|
793
|
+
// POST /jobs/queue
|
|
794
|
+
queueJob: async job_key => {
|
|
795
|
+
try {
|
|
796
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/jobs/queue`, {
|
|
797
|
+
job_key
|
|
798
|
+
});
|
|
799
|
+
return resp.data;
|
|
800
|
+
} catch (e) {
|
|
801
|
+
throw e;
|
|
802
|
+
}
|
|
803
|
+
},
|
|
804
|
+
// GET /jobs/statuses/recent
|
|
805
|
+
getRecentStatuses: async (limit, offset) => {
|
|
806
|
+
try {
|
|
807
|
+
const params = {};
|
|
808
|
+
if (limit !== undefined) params.limit = limit;
|
|
809
|
+
if (offset !== undefined) params.offset = offset;
|
|
810
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/jobs/statuses/recent`, {
|
|
811
|
+
params: Object.keys(params).length > 0 ? params : undefined
|
|
812
|
+
});
|
|
813
|
+
return resp.data;
|
|
814
|
+
} catch (e) {
|
|
815
|
+
throw e;
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
},
|
|
819
|
+
ConfigApi: {
|
|
820
|
+
// GET /config
|
|
821
|
+
getConfigs: async () => {
|
|
822
|
+
try {
|
|
823
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/config`);
|
|
824
|
+
return resp.data;
|
|
825
|
+
} catch (e) {
|
|
826
|
+
throw e;
|
|
827
|
+
}
|
|
828
|
+
},
|
|
829
|
+
// GET /config/:config
|
|
830
|
+
getConfig: async config => {
|
|
831
|
+
try {
|
|
832
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/config/${config}`);
|
|
833
|
+
return resp.data;
|
|
834
|
+
} catch (e) {
|
|
835
|
+
throw e;
|
|
836
|
+
}
|
|
837
|
+
},
|
|
838
|
+
// GET /config/:config/value
|
|
839
|
+
getConfigValue: async config => {
|
|
840
|
+
try {
|
|
841
|
+
const resp = await _axios.default.get(`${BR_SVC_API}/config/${config}/value`);
|
|
842
|
+
return resp.data;
|
|
843
|
+
} catch (e) {
|
|
844
|
+
throw e;
|
|
845
|
+
}
|
|
846
|
+
},
|
|
847
|
+
// POST /config
|
|
848
|
+
createConfig: async (config, value, config_format) => {
|
|
849
|
+
try {
|
|
850
|
+
const resp = await _axios.default.post(`${BR_SVC_API}/config`, {
|
|
851
|
+
config,
|
|
852
|
+
value,
|
|
853
|
+
config_format
|
|
854
|
+
});
|
|
855
|
+
return resp.data;
|
|
856
|
+
} catch (e) {
|
|
857
|
+
throw e;
|
|
858
|
+
}
|
|
859
|
+
},
|
|
860
|
+
// PUT /config/:config
|
|
861
|
+
updateConfig: async (config, value, config_format) => {
|
|
862
|
+
try {
|
|
863
|
+
const body = {};
|
|
864
|
+
if (value !== undefined) body.value = value;
|
|
865
|
+
if (config_format !== undefined) body.config_format = config_format;
|
|
866
|
+
const resp = await _axios.default.put(`${BR_SVC_API}/config/${config}`, body);
|
|
867
|
+
return resp.data;
|
|
868
|
+
} catch (e) {
|
|
869
|
+
throw e;
|
|
870
|
+
}
|
|
871
|
+
},
|
|
872
|
+
// DELETE /config/:config
|
|
873
|
+
deleteConfig: async config => {
|
|
874
|
+
try {
|
|
875
|
+
const resp = await _axios.default.delete(`${BR_SVC_API}/config/${config}`);
|
|
876
|
+
return resp.data;
|
|
877
|
+
} catch (e) {
|
|
878
|
+
throw e;
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
};
|
|
884
|
+
//# sourceMappingURL=index.js.map
|