fansunited-data-layer 0.2.0 → 0.2.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.
Files changed (308) hide show
  1. package/api/fansunited/constants.d.ts +5 -0
  2. package/api/fansunited/constants.d.ts.map +1 -0
  3. package/api/fansunited/football/competition/index.d.ts +30 -0
  4. package/api/fansunited/football/competition/index.d.ts.map +1 -0
  5. package/api/fansunited/football/competition/transformer.d.ts +11 -0
  6. package/api/fansunited/football/competition/transformer.d.ts.map +1 -0
  7. package/api/fansunited/football/competition/types.d.ts +70 -0
  8. package/api/fansunited/football/competition/types.d.ts.map +1 -0
  9. package/api/fansunited/football/competitions/index.d.ts +27 -0
  10. package/api/fansunited/football/competitions/index.d.ts.map +1 -0
  11. package/api/fansunited/football/competitions/transformer.d.ts +14 -0
  12. package/api/fansunited/football/competitions/transformer.d.ts.map +1 -0
  13. package/api/fansunited/football/competitions/types.d.ts +67 -0
  14. package/api/fansunited/football/competitions/types.d.ts.map +1 -0
  15. package/api/fansunited/football/http.d.ts +8 -0
  16. package/api/fansunited/football/http.d.ts.map +1 -0
  17. package/api/fansunited/football/index.d.ts +19 -0
  18. package/api/fansunited/football/index.d.ts.map +1 -0
  19. package/api/fansunited/football/matches/index.d.ts +61 -0
  20. package/api/fansunited/football/matches/index.d.ts.map +1 -0
  21. package/api/fansunited/football/matches/transformer.d.ts +28 -0
  22. package/api/fansunited/football/matches/transformer.d.ts.map +1 -0
  23. package/api/fansunited/football/matches/types.d.ts +328 -0
  24. package/api/fansunited/football/matches/types.d.ts.map +1 -0
  25. package/api/fansunited/football/players/index.d.ts +30 -0
  26. package/api/fansunited/football/players/index.d.ts.map +1 -0
  27. package/api/fansunited/football/players/transformer.d.ts +10 -0
  28. package/api/fansunited/football/players/transformer.d.ts.map +1 -0
  29. package/api/fansunited/football/players/types.d.ts +70 -0
  30. package/api/fansunited/football/players/types.d.ts.map +1 -0
  31. package/api/fansunited/football/search/index.d.ts +49 -0
  32. package/api/fansunited/football/search/index.d.ts.map +1 -0
  33. package/api/fansunited/football/search/transformer.d.ts +10 -0
  34. package/api/fansunited/football/search/transformer.d.ts.map +1 -0
  35. package/api/fansunited/football/search/types.d.ts +151 -0
  36. package/api/fansunited/football/search/types.d.ts.map +1 -0
  37. package/api/fansunited/football/teams/index.d.ts +30 -0
  38. package/api/fansunited/football/teams/index.d.ts.map +1 -0
  39. package/api/fansunited/football/teams/transformer.d.ts +10 -0
  40. package/api/fansunited/football/teams/transformer.d.ts.map +1 -0
  41. package/api/fansunited/football/teams/types.d.ts +87 -0
  42. package/api/fansunited/football/teams/types.d.ts.map +1 -0
  43. package/api/fansunited/http.d.ts +54 -0
  44. package/api/fansunited/http.d.ts.map +1 -0
  45. package/api/fansunited/index.d.ts +10 -0
  46. package/api/fansunited/index.d.ts.map +1 -0
  47. package/api/sportal365-sports/constants.d.ts +16 -0
  48. package/api/sportal365-sports/constants.d.ts.map +1 -0
  49. package/api/sportal365-sports/football/competitions/competition.types.d.ts +148 -0
  50. package/api/sportal365-sports/football/competitions/competition.types.d.ts.map +1 -0
  51. package/api/sportal365-sports/football/competitions/index.d.ts +54 -0
  52. package/api/sportal365-sports/football/competitions/index.d.ts.map +1 -0
  53. package/api/sportal365-sports/football/competitions/utils.d.ts +14 -0
  54. package/api/sportal365-sports/football/competitions/utils.d.ts.map +1 -0
  55. package/api/sportal365-sports/football/http.d.ts +8 -0
  56. package/api/sportal365-sports/football/http.d.ts.map +1 -0
  57. package/api/sportal365-sports/football/index.d.ts +19 -0
  58. package/api/sportal365-sports/football/index.d.ts.map +1 -0
  59. package/api/sportal365-sports/football/matches/index.d.ts +151 -0
  60. package/api/sportal365-sports/football/matches/index.d.ts.map +1 -0
  61. package/api/sportal365-sports/football/matches/transformers/commentary.d.ts +12 -0
  62. package/api/sportal365-sports/football/matches/transformers/commentary.d.ts.map +1 -0
  63. package/api/sportal365-sports/football/matches/transformers/index.d.ts +10 -0
  64. package/api/sportal365-sports/football/matches/transformers/index.d.ts.map +1 -0
  65. package/api/sportal365-sports/football/matches/transformers/lineup.d.ts +11 -0
  66. package/api/sportal365-sports/football/matches/transformers/lineup.d.ts.map +1 -0
  67. package/api/sportal365-sports/football/matches/transformers/match-event.d.ts +12 -0
  68. package/api/sportal365-sports/football/matches/transformers/match-event.d.ts.map +1 -0
  69. package/api/sportal365-sports/football/matches/transformers/match.d.ts +11 -0
  70. package/api/sportal365-sports/football/matches/transformers/match.d.ts.map +1 -0
  71. package/api/sportal365-sports/football/matches/transformers/odds.d.ts +11 -0
  72. package/api/sportal365-sports/football/matches/transformers/odds.d.ts.map +1 -0
  73. package/api/sportal365-sports/football/matches/transformers/statistics.d.ts +11 -0
  74. package/api/sportal365-sports/football/matches/transformers/statistics.d.ts.map +1 -0
  75. package/api/sportal365-sports/football/matches/types/commentary.types.d.ts +27 -0
  76. package/api/sportal365-sports/football/matches/types/commentary.types.d.ts.map +1 -0
  77. package/api/sportal365-sports/football/matches/types/event.types.d.ts +19 -0
  78. package/api/sportal365-sports/football/matches/types/event.types.d.ts.map +1 -0
  79. package/api/sportal365-sports/football/matches/types/index.d.ts +16 -0
  80. package/api/sportal365-sports/football/matches/types/index.d.ts.map +1 -0
  81. package/api/sportal365-sports/football/matches/types/lineup.types.d.ts +80 -0
  82. package/api/sportal365-sports/football/matches/types/lineup.types.d.ts.map +1 -0
  83. package/api/sportal365-sports/football/matches/types/match.types.d.ts +47 -0
  84. package/api/sportal365-sports/football/matches/types/match.types.d.ts.map +1 -0
  85. package/api/sportal365-sports/football/matches/types/minute.types.d.ts +8 -0
  86. package/api/sportal365-sports/football/matches/types/minute.types.d.ts.map +1 -0
  87. package/api/sportal365-sports/football/matches/types/odds.types.d.ts +80 -0
  88. package/api/sportal365-sports/football/matches/types/odds.types.d.ts.map +1 -0
  89. package/api/sportal365-sports/football/matches/types/option.types.d.ts +129 -0
  90. package/api/sportal365-sports/football/matches/types/option.types.d.ts.map +1 -0
  91. package/api/sportal365-sports/football/matches/types/referee.types.d.ts +13 -0
  92. package/api/sportal365-sports/football/matches/types/referee.types.d.ts.map +1 -0
  93. package/api/sportal365-sports/football/matches/types/statistics.types.d.ts +45 -0
  94. package/api/sportal365-sports/football/matches/types/statistics.types.d.ts.map +1 -0
  95. package/api/sportal365-sports/football/matches/types/status.types.d.ts +13 -0
  96. package/api/sportal365-sports/football/matches/types/status.types.d.ts.map +1 -0
  97. package/api/sportal365-sports/football/matches/types/team.types.d.ts +17 -0
  98. package/api/sportal365-sports/football/matches/types/team.types.d.ts.map +1 -0
  99. package/api/sportal365-sports/football/matches/types/winner.types.d.ts +15 -0
  100. package/api/sportal365-sports/football/matches/types/winner.types.d.ts.map +1 -0
  101. package/api/sportal365-sports/football/search/index.d.ts +45 -0
  102. package/api/sportal365-sports/football/search/index.d.ts.map +1 -0
  103. package/api/sportal365-sports/football/search/search.transformer.d.ts +10 -0
  104. package/api/sportal365-sports/football/search/search.transformer.d.ts.map +1 -0
  105. package/api/sportal365-sports/football/search/search.types.d.ts +147 -0
  106. package/api/sportal365-sports/football/search/search.types.d.ts.map +1 -0
  107. package/api/sportal365-sports/football/standings/index.d.ts +43 -0
  108. package/api/sportal365-sports/football/standings/index.d.ts.map +1 -0
  109. package/api/sportal365-sports/football/standings/standing.transformer.d.ts +15 -0
  110. package/api/sportal365-sports/football/standings/standing.transformer.d.ts.map +1 -0
  111. package/api/sportal365-sports/football/standings/standing.types.d.ts +73 -0
  112. package/api/sportal365-sports/football/standings/standing.types.d.ts.map +1 -0
  113. package/api/sportal365-sports/football/statistics/index.d.ts +42 -0
  114. package/api/sportal365-sports/football/statistics/index.d.ts.map +1 -0
  115. package/api/sportal365-sports/football/statistics/player-season.transformer.d.ts +11 -0
  116. package/api/sportal365-sports/football/statistics/player-season.transformer.d.ts.map +1 -0
  117. package/api/sportal365-sports/football/statistics/player-season.types.d.ts +84 -0
  118. package/api/sportal365-sports/football/statistics/player-season.types.d.ts.map +1 -0
  119. package/api/sportal365-sports/football/teams/index.d.ts +53 -0
  120. package/api/sportal365-sports/football/teams/index.d.ts.map +1 -0
  121. package/api/sportal365-sports/football/teams/squad.types.d.ts +63 -0
  122. package/api/sportal365-sports/football/teams/squad.types.d.ts.map +1 -0
  123. package/api/sportal365-sports/football/teams/team.types.d.ts +58 -0
  124. package/api/sportal365-sports/football/teams/team.types.d.ts.map +1 -0
  125. package/api/sportal365-sports/football/teams/utils.d.ts +24 -0
  126. package/api/sportal365-sports/football/teams/utils.d.ts.map +1 -0
  127. package/api/sportal365-sports/http.d.ts +59 -0
  128. package/api/sportal365-sports/http.d.ts.map +1 -0
  129. package/api/sportal365-sports/index.d.ts +14 -0
  130. package/api/sportal365-sports/index.d.ts.map +1 -0
  131. package/api/sportal365-sports/search/http.d.ts +8 -0
  132. package/api/sportal365-sports/search/http.d.ts.map +1 -0
  133. package/api/sportal365-sports/search/index.d.ts +43 -0
  134. package/api/sportal365-sports/search/index.d.ts.map +1 -0
  135. package/api/sportal365-sports/search/search.transformer.d.ts +10 -0
  136. package/api/sportal365-sports/search/search.transformer.d.ts.map +1 -0
  137. package/api/sportal365-sports/search/search.types.d.ts +209 -0
  138. package/api/sportal365-sports/search/search.types.d.ts.map +1 -0
  139. package/api/sportal365-sports/shared/index.d.ts +6 -0
  140. package/api/sportal365-sports/shared/index.d.ts.map +1 -0
  141. package/api/sportal365-sports/shared/providerRef.helper.d.ts +79 -0
  142. package/api/sportal365-sports/shared/providerRef.helper.d.ts.map +1 -0
  143. package/api/sportal365-sports/shared/types.d.ts +189 -0
  144. package/api/sportal365-sports/shared/types.d.ts.map +1 -0
  145. package/api/sportal365-sports/statistics/http.d.ts +8 -0
  146. package/api/sportal365-sports/statistics/http.d.ts.map +1 -0
  147. package/api/sportal365-sports/statistics/index.d.ts +55 -0
  148. package/api/sportal365-sports/statistics/index.d.ts.map +1 -0
  149. package/api/sportal365-sports/statistics/team-stats.transformer.d.ts +14 -0
  150. package/api/sportal365-sports/statistics/team-stats.transformer.d.ts.map +1 -0
  151. package/api/sportal365-sports/statistics/team-stats.types.d.ts +45 -0
  152. package/api/sportal365-sports/statistics/team-stats.types.d.ts.map +1 -0
  153. package/client.cjs +8 -0
  154. package/client.d.ts +20 -0
  155. package/client.d.ts.map +1 -0
  156. package/client.js +12065 -0
  157. package/config/index.d.ts +31 -0
  158. package/config/index.d.ts.map +1 -0
  159. package/config/types.d.ts +36 -0
  160. package/config/types.d.ts.map +1 -0
  161. package/fansunited-data-layer.cjs +1 -0
  162. package/fansunited-data-layer.js +1739 -0
  163. package/helpers/competition.helpers.d.ts +22 -0
  164. package/helpers/competition.helpers.d.ts.map +1 -0
  165. package/helpers/index.d.ts +7 -0
  166. package/helpers/index.d.ts.map +1 -0
  167. package/helpers/team.helpers.d.ts +289 -0
  168. package/helpers/team.helpers.d.ts.map +1 -0
  169. package/index-Cogo-Kkd.cjs +1 -0
  170. package/index-D7T2Yy11.js +1170 -0
  171. package/index.d.ts +39 -0
  172. package/index.d.ts.map +1 -0
  173. package/package.json +12 -15
  174. package/providers/competition/hooks/index.d.ts +6 -0
  175. package/providers/competition/hooks/index.d.ts.map +1 -0
  176. package/providers/competition/hooks/useCompetitionStats.d.ts +8 -0
  177. package/providers/competition/hooks/useCompetitionStats.d.ts.map +1 -0
  178. package/providers/competition/hooks/useGoalDistribution.d.ts +11 -0
  179. package/providers/competition/hooks/useGoalDistribution.d.ts.map +1 -0
  180. package/providers/competition/hooks/useMatchHelpers.d.ts +16 -0
  181. package/providers/competition/hooks/useMatchHelpers.d.ts.map +1 -0
  182. package/providers/competition/hooks/useStandingsCalculations.d.ts +18 -0
  183. package/providers/competition/hooks/useStandingsCalculations.d.ts.map +1 -0
  184. package/providers/competition/hooks/useStandingsHelpers.d.ts +23 -0
  185. package/providers/competition/hooks/useStandingsHelpers.d.ts.map +1 -0
  186. package/providers/competition/hooks/useTeamPosition.d.ts +8 -0
  187. package/providers/competition/hooks/useTeamPosition.d.ts.map +1 -0
  188. package/providers/competition/hooks/useTeamResultsTable.d.ts +9 -0
  189. package/providers/competition/hooks/useTeamResultsTable.d.ts.map +1 -0
  190. package/providers/competition/utils/competitionStats.d.ts +42 -0
  191. package/providers/competition/utils/competitionStats.d.ts.map +1 -0
  192. package/providers/competition/utils/goalDistribution.d.ts +41 -0
  193. package/providers/competition/utils/goalDistribution.d.ts.map +1 -0
  194. package/providers/competition/utils/index.d.ts +6 -0
  195. package/providers/competition/utils/index.d.ts.map +1 -0
  196. package/providers/competition/utils/standingsCalculations.d.ts +24 -0
  197. package/providers/competition/utils/standingsCalculations.d.ts.map +1 -0
  198. package/providers/competition.context.d.ts +8 -0
  199. package/providers/competition.context.d.ts.map +1 -0
  200. package/providers/competition.provider.d.ts +3 -0
  201. package/providers/competition.provider.d.ts.map +1 -0
  202. package/providers/competition.types.d.ts +118 -0
  203. package/providers/competition.types.d.ts.map +1 -0
  204. package/providers/fansunited-config.context.d.ts +6 -0
  205. package/providers/fansunited-config.context.d.ts.map +1 -0
  206. package/providers/fansunited-config.hooks.d.ts +19 -0
  207. package/providers/fansunited-config.hooks.d.ts.map +1 -0
  208. package/providers/fansunited-config.provider.d.ts +44 -0
  209. package/providers/fansunited-config.provider.d.ts.map +1 -0
  210. package/providers/fansunited-config.types.d.ts +48 -0
  211. package/providers/fansunited-config.types.d.ts.map +1 -0
  212. package/providers/fansunited-sdk.hook.d.ts +40 -0
  213. package/providers/fansunited-sdk.hook.d.ts.map +1 -0
  214. package/providers/index.d.ts +20 -0
  215. package/providers/index.d.ts.map +1 -0
  216. package/providers/match/hooks/useEventHelpers.d.ts +12 -0
  217. package/providers/match/hooks/useEventHelpers.d.ts.map +1 -0
  218. package/providers/match/hooks/useHeadToHeadHelpers.d.ts +13 -0
  219. package/providers/match/hooks/useHeadToHeadHelpers.d.ts.map +1 -0
  220. package/providers/match/hooks/useLineupHelpers.d.ts +13 -0
  221. package/providers/match/hooks/useLineupHelpers.d.ts.map +1 -0
  222. package/providers/match/hooks/useMatchStandingsCalculations.d.ts +20 -0
  223. package/providers/match/hooks/useMatchStandingsCalculations.d.ts.map +1 -0
  224. package/providers/match/hooks/useMatchStatus.d.ts +12 -0
  225. package/providers/match/hooks/useMatchStatus.d.ts.map +1 -0
  226. package/providers/match/hooks/useOddsHelpers.d.ts +10 -0
  227. package/providers/match/hooks/useOddsHelpers.d.ts.map +1 -0
  228. package/providers/match/hooks/useScoreHelpers.d.ts +16 -0
  229. package/providers/match/hooks/useScoreHelpers.d.ts.map +1 -0
  230. package/providers/match/hooks/useStandingsHelpers.d.ts +22 -0
  231. package/providers/match/hooks/useStandingsHelpers.d.ts.map +1 -0
  232. package/providers/match/hooks/useStatisticsHelpers.d.ts +13 -0
  233. package/providers/match/hooks/useStatisticsHelpers.d.ts.map +1 -0
  234. package/providers/match/hooks/useTeamHelpers.d.ts +11 -0
  235. package/providers/match/hooks/useTeamHelpers.d.ts.map +1 -0
  236. package/providers/match/hooks/useTeamStatsHelpers.d.ts +12 -0
  237. package/providers/match/hooks/useTeamStatsHelpers.d.ts.map +1 -0
  238. package/providers/match.context.d.ts +8 -0
  239. package/providers/match.context.d.ts.map +1 -0
  240. package/providers/match.provider.d.ts +3 -0
  241. package/providers/match.provider.d.ts.map +1 -0
  242. package/providers/match.types.d.ts +151 -0
  243. package/providers/match.types.d.ts.map +1 -0
  244. package/providers/team/hooks/useFormStats.d.ts +49 -0
  245. package/providers/team/hooks/useFormStats.d.ts.map +1 -0
  246. package/providers/team/hooks/useMatchHelpers.d.ts +12 -0
  247. package/providers/team/hooks/useMatchHelpers.d.ts.map +1 -0
  248. package/providers/team/hooks/useSquadHelpers.d.ts +17 -0
  249. package/providers/team/hooks/useSquadHelpers.d.ts.map +1 -0
  250. package/providers/team.context.d.ts +8 -0
  251. package/providers/team.context.d.ts.map +1 -0
  252. package/providers/team.provider.d.ts +3 -0
  253. package/providers/team.provider.d.ts.map +1 -0
  254. package/providers/team.types.d.ts +68 -0
  255. package/providers/team.types.d.ts.map +1 -0
  256. package/types/canonical/base.types.d.ts +366 -0
  257. package/types/canonical/base.types.d.ts.map +1 -0
  258. package/types/canonical/commentary.types.d.ts +42 -0
  259. package/types/canonical/commentary.types.d.ts.map +1 -0
  260. package/types/canonical/event.types.d.ts +31 -0
  261. package/types/canonical/event.types.d.ts.map +1 -0
  262. package/types/canonical/index.d.ts +17 -0
  263. package/types/canonical/index.d.ts.map +1 -0
  264. package/types/canonical/lineup.types.d.ts +33 -0
  265. package/types/canonical/lineup.types.d.ts.map +1 -0
  266. package/types/canonical/match.types.d.ts +153 -0
  267. package/types/canonical/match.types.d.ts.map +1 -0
  268. package/types/canonical/odds.types.d.ts +73 -0
  269. package/types/canonical/odds.types.d.ts.map +1 -0
  270. package/types/canonical/search.types.d.ts +101 -0
  271. package/types/canonical/search.types.d.ts.map +1 -0
  272. package/types/canonical/sports-search.types.d.ts +151 -0
  273. package/types/canonical/sports-search.types.d.ts.map +1 -0
  274. package/types/canonical/squad.types.d.ts +30 -0
  275. package/types/canonical/squad.types.d.ts.map +1 -0
  276. package/types/canonical/standing.types.d.ts +85 -0
  277. package/types/canonical/standing.types.d.ts.map +1 -0
  278. package/types/canonical/statistics.types.d.ts +81 -0
  279. package/types/canonical/statistics.types.d.ts.map +1 -0
  280. package/types/index.d.ts +10 -0
  281. package/types/index.d.ts.map +1 -0
  282. package/utilities/stats/core/helpers.d.ts +65 -0
  283. package/utilities/stats/core/helpers.d.ts.map +1 -0
  284. package/utilities/stats/core/index.d.ts +7 -0
  285. package/utilities/stats/core/index.d.ts.map +1 -0
  286. package/utilities/stats/core/types.d.ts +39 -0
  287. package/utilities/stats/core/types.d.ts.map +1 -0
  288. package/utilities/stats/index.d.ts +27 -0
  289. package/utilities/stats/index.d.ts.map +1 -0
  290. package/utilities/stats/match/headToHead.d.ts +73 -0
  291. package/utilities/stats/match/headToHead.d.ts.map +1 -0
  292. package/utilities/stats/match/homeVsAway.d.ts +30 -0
  293. package/utilities/stats/match/homeVsAway.d.ts.map +1 -0
  294. package/utilities/stats/match/index.d.ts +8 -0
  295. package/utilities/stats/match/index.d.ts.map +1 -0
  296. package/utilities/stats/match/overUnder.d.ts +59 -0
  297. package/utilities/stats/match/overUnder.d.ts.map +1 -0
  298. package/utilities/stats/match/result.d.ts +13 -0
  299. package/utilities/stats/match/result.d.ts.map +1 -0
  300. package/utilities/stats/team/commonOpponents.d.ts +28 -0
  301. package/utilities/stats/team/commonOpponents.d.ts.map +1 -0
  302. package/utilities/stats/team/goalStats.d.ts +42 -0
  303. package/utilities/stats/team/goalStats.d.ts.map +1 -0
  304. package/utilities/stats/team/index.d.ts +7 -0
  305. package/utilities/stats/team/index.d.ts.map +1 -0
  306. package/utilities/stats/team/streaks.d.ts +48 -0
  307. package/utilities/stats/team/streaks.d.ts.map +1 -0
  308. package/vite.svg +1 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/fansunited/football/search/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,KAAK,EACR,mBAAmB,EACnB,sBAAsB,EACtB,wBAAwB,EAC3B,MAAM,6BAA6B,CAAC;AAErC;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEjE;;;;GAIG;AACH,MAAM,MAAM,8BAA8B,GACpC;IACI,MAAM,EAAE,UAAU,CAAC;IACnB,UAAU,EAAE,aAAa,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,mBAAmB,CAAC;CACnC,GACD;IACI,MAAM,EAAE,UAAU,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,sBAAsB,CAAC;CACtC,GACD;IACI,MAAM,EAAE,UAAU,CAAC;IACnB,UAAU,EAAE,QAAQ,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU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AAc;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,oBAAoB,GAAG,aAAa,GAAG,eAAe,GAAG,cAAc,GAAG,cAAc,CAAC;AAEvH;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE;QACF,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC;QACxB,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;QAC5B,YAAY,CAAC,EAAE,oBAAoB,EAAE,CAAC;KACzC,CAAC;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Football team endpoints for Fans United Football API
3
+ */
4
+ import type { FUSportsTeamCompetitor } from "../../../../types/canonical";
5
+ import { type DataLayerConfig } from "../../../../config";
6
+ import type { GetFootballTeamOptions } from "./types";
7
+ export type { GetFootballTeamOptions } from "./types";
8
+ /**
9
+ * Get a football team by ID from Fans United Football API
10
+ *
11
+ * @param teamId - The team ID
12
+ * @param options - Query options
13
+ * @param config - Optional data layer config (uses singleton if not provided)
14
+ * @returns Team in canonical format
15
+ *
16
+ * @example
17
+ * ```typescript
18
+ * import { getFansUnitedFootballTeam } from 'fansunited-data-layer';
19
+ *
20
+ * // Get team by ID
21
+ * const team = await getFansUnitedFootballTeam('123', {
22
+ * lang: 'EN'
23
+ * });
24
+ *
25
+ * console.log(team.name); // "Manchester United"
26
+ * console.log(team.threeLetterCode); // "MUN"
27
+ * ```
28
+ */
29
+ export declare function getFansUnitedFootballTeam(teamId: string, options?: GetFootballTeamOptions, config?: DataLayerConfig): Promise<FUSportsTeamCompetitor>;
30
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/fansunited/football/teams/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAa,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErE,OAAO,KAAK,EAAE,sBAAsB,EAAmB,MAAM,SAAS,CAAC;AAIvE,YAAY,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,yBAAyB,CAC3C,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,sBAAsB,EAChC,MAAM,CAAC,EAAE,eAAe,GACzB,OAAO,CAAC,sBAAsB,CAAC,CAkBjC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Transform raw team data to canonical FUSports types
3
+ */
4
+ import type { FUSportsTeamCompetitor } from "../../../../types/canonical";
5
+ import type { RawTeamResponse } from "./types";
6
+ /**
7
+ * Transform raw team response to canonical FUSportsTeamCompetitor
8
+ */
9
+ export declare function transformTeam(raw: RawTeamResponse): FUSportsTeamCompetitor;
10
+ //# sourceMappingURL=transformer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transformer.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/fansunited/football/teams/transformer.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAuB,MAAM,SAAS,CAAC;AA0DpE;;GAEG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,eAAe,GAAG,sBAAsB,CAE1E"}
@@ -0,0 +1,87 @@
1
+ /**
2
+ * Team types for Fans United Football API
3
+ */
4
+ import type { NextCacheOptions } from "../../http";
5
+ export interface RawCountry {
6
+ id: string;
7
+ alias?: string | null;
8
+ country_code?: string;
9
+ name: string;
10
+ assets?: {
11
+ flag?: string;
12
+ };
13
+ }
14
+ export interface RawVenue {
15
+ id: number;
16
+ name: string;
17
+ slug?: string;
18
+ city?: string;
19
+ capacity?: number;
20
+ latitude?: number;
21
+ longitude?: number;
22
+ image?: string;
23
+ }
24
+ export interface RawCoach {
25
+ id: number;
26
+ name: string;
27
+ slug?: string;
28
+ country?: RawCountry;
29
+ birthdate?: string;
30
+ photo?: string;
31
+ }
32
+ export interface RawSocial {
33
+ website?: string;
34
+ twitter?: string;
35
+ facebook?: string;
36
+ instagram?: string;
37
+ wikipedia?: string;
38
+ }
39
+ export interface RawShirtColor {
40
+ type: "home" | "away" | "third";
41
+ color_code: string;
42
+ }
43
+ export interface RawSeason {
44
+ id: number;
45
+ name: string;
46
+ slug?: string;
47
+ active: boolean;
48
+ }
49
+ /**
50
+ * Raw team data from API
51
+ */
52
+ export interface RawTeam {
53
+ id: string;
54
+ name: string;
55
+ full_name?: string | null;
56
+ short_name?: string | null;
57
+ code?: string;
58
+ national: boolean;
59
+ gender?: "male" | "female";
60
+ undecided?: boolean;
61
+ is_deleted?: boolean;
62
+ country?: RawCountry;
63
+ assets?: {
64
+ logo?: string;
65
+ };
66
+ colors?: {
67
+ primary?: string;
68
+ secondary?: string | null;
69
+ tertiary?: string | null;
70
+ };
71
+ squad?: unknown[];
72
+ competitions?: unknown[];
73
+ }
74
+ /**
75
+ * Raw team response from /v1/teams/{id}
76
+ * The API wraps the team data in a "data" property
77
+ */
78
+ export interface RawTeamResponse {
79
+ data: RawTeam;
80
+ }
81
+ export interface GetFootballTeamOptions {
82
+ /** Language code for translations (e.g., 'EN', 'BG'). Defaults to 'EN' */
83
+ lang?: string;
84
+ /** Next.js cache options for ISR/on-demand revalidation */
85
+ next?: NextCacheOptions;
86
+ }
87
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":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ache options for ISR/on-demand revalidation
7
+ */
8
+ export interface NextCacheOptions {
9
+ revalidate?: number | false;
10
+ tags?: string[];
11
+ }
12
+ export interface RequestOptions {
13
+ /** API path (e.g., '/v1/competitions') */
14
+ path: string;
15
+ /** Query parameters */
16
+ params?: Record<string, string | string[] | undefined>;
17
+ /** Custom headers to include in the request */
18
+ headers?: Record<string, string>;
19
+ /** Next.js cache options for ISR/on-demand revalidation */
20
+ next?: NextCacheOptions;
21
+ /** Optional data layer config (uses singleton if not provided) */
22
+ config?: DataLayerConfig;
23
+ }
24
+ export interface FansUnitedHttpClient {
25
+ /**
26
+ * Make a GET request to a Fans United API
27
+ *
28
+ * Handles:
29
+ * - API key and client ID authentication via query params
30
+ * - Timeout
31
+ * - Error handling
32
+ *
33
+ * @param options - Request options
34
+ * @returns Parsed JSON response
35
+ */
36
+ get<T>(options: RequestOptions): Promise<T>;
37
+ }
38
+ /**
39
+ * Create an HTTP client for a specific Fans United API domain
40
+ *
41
+ * @param domain - The base URL for the API (e.g., 'https://football.fansunitedapi.com')
42
+ * @returns HTTP client configured for the specified domain
43
+ *
44
+ * @example
45
+ * ```typescript
46
+ * import { createHttpClient } from '../http';
47
+ * import { FANSUNITED_FOOTBALL_DOMAIN } from '../constants';
48
+ *
49
+ * const footballHttp = createHttpClient(FANSUNITED_FOOTBALL_DOMAIN);
50
+ * const data = await footballHttp.get({ path: '/v1/competitions' });
51
+ * ```
52
+ */
53
+ export declare function createHttpClient(domain: string): FansUnitedHttpClient;
54
+ //# sourceMappingURL=http.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/lib/api/fansunited/http.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAa,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/D;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,cAAc;IAC3B,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,uBAAuB;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC;IACvD,+CAA+C;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,2DAA2D;IAC3D,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,kEAAkE;IAClE,MAAM,CAAC,EAAE,eAAe,CAAC;CAC5B;AAED,MAAM,WAAW,oBAAoB;IACjC;;;;;;;;;;OAUG;IACH,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;CAC/C;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,oBAAoB,CA6ErE"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Fans United API
3
+ *
4
+ * API layer for communicating with Fans United APIs.
5
+ * All public functions return canonical FUSports types.
6
+ */
7
+ export { getFansUnitedFootballCompetitions, getFansUnitedFootballCompetition, getFansUnitedFootballTeam, getFansUnitedFootballPlayer, getFansUnitedFootballMatch, getFansUnitedFootballMatches, getFansUnitedFootballSearch, } from "./football";
8
+ export type { GetFootballCompetitionsOptions, GetFootballCompetitionOptions, GetFootballTeamOptions, GetFootballPlayerOptions, GetFootballMatchOptions, GetFootballMatchesOptions, GetFootballSearchOptions, SearchEntityType, FansUnitedFootballSearchResult, } from "./football";
9
+ export type { NextCacheOptions } from "./http";
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/api/fansunited/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACH,iCAAiC,EACjC,gCAAgC,EAChC,yBAAyB,EACzB,2BAA2B,EAC3B,0BAA0B,EAC1B,4BAA4B,EAC5B,2BAA2B,GAC9B,MAAM,YAAY,CAAC;AAEpB,YAAY,EACR,8BAA8B,EAC9B,6BAA6B,EAC7B,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EACvB,yBAAyB,EACzB,wBAAwB,EACxB,gBAAgB,EAChB,8BAA8B,GACjC,MAAM,YAAY,CAAC;AAGpB,YAAY,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Sportal365 API Domain Constants
3
+ *
4
+ * Each Sportal365 API has its own domain based on the sport/functionality.
5
+ */
6
+ /** Football API domain */
7
+ export declare const SPORTAL365_FOOTBALL_DOMAIN = "https://football.api.sportal365.com";
8
+ /** Basketball API domain */
9
+ export declare const SPORTAL365_BASKETBALL_DOMAIN = "https://basketball.api.sportal365.com";
10
+ /** Tennis API domain */
11
+ export declare const SPORTAL365_TENNIS_DOMAIN = "https://tennis.api.sportal365.com";
12
+ /** Statistics API domain */
13
+ export declare const SPORTAL365_STATISTICS_DOMAIN = "https://sports-statistics.api.sportal365.com";
14
+ /** Sports Search API domain */
15
+ export declare const SPORTAL365_SPORTS_SEARCH_DOMAIN = "https://sports-search.api.sportal365.com";
16
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/lib/api/sportal365-sports/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,0BAA0B;AAC1B,eAAO,MAAM,0BAA0B,wCAAwC,CAAC;AAEhF,4BAA4B;AAC5B,eAAO,MAAM,4BAA4B,0CAA0C,CAAC;AAEpF,wBAAwB;AACxB,eAAO,MAAM,wBAAwB,sCAAsC,CAAC;AAE5E,4BAA4B;AAC5B,eAAO,MAAM,4BAA4B,iDAAiD,CAAC;AAE3F,+BAA+B;AAC/B,eAAO,MAAM,+BAA+B,6CAA6C,CAAC"}
@@ -0,0 +1,148 @@
1
+ /**
2
+ * Competition types for Sportal365 Sports API
3
+ * Types for tournament/competition entity responses
4
+ */
5
+ import type { NextCacheOptions } from "../../http";
6
+ /**
7
+ * Country in tournament response (v1 format)
8
+ */
9
+ export interface RawTournamentCountry {
10
+ id: number;
11
+ name: string;
12
+ slug: string;
13
+ uuid: string;
14
+ url_flag?: string;
15
+ }
16
+ /**
17
+ * Season in tournament response
18
+ */
19
+ export interface RawTournamentSeason {
20
+ id: number;
21
+ name: string;
22
+ slug: string;
23
+ active: boolean;
24
+ uuid: string;
25
+ }
26
+ /**
27
+ * Raw tournament response from /tournaments/{id}
28
+ */
29
+ export interface RawTournamentResponse {
30
+ id: number;
31
+ name: string;
32
+ slug: string;
33
+ country: RawTournamentCountry;
34
+ regional_league: boolean;
35
+ gender: "MALE" | "FEMALE";
36
+ type: "LEAGUE" | "CUP";
37
+ region: "DOMESTIC" | "INTERNATIONAL";
38
+ uuid: string;
39
+ seasons: RawTournamentSeason[];
40
+ url_logo?: string;
41
+ }
42
+ /**
43
+ * Country in v2 season details response
44
+ */
45
+ export interface RawSeasonDetailsCountry {
46
+ id: string;
47
+ name: string;
48
+ slug: string;
49
+ code: string | null;
50
+ assets?: {
51
+ flag?: {
52
+ url: string;
53
+ };
54
+ };
55
+ uuid: string;
56
+ }
57
+ /**
58
+ * Tournament in v2 season details response
59
+ */
60
+ export interface RawSeasonDetailsTournament {
61
+ id: string;
62
+ name: string;
63
+ slug: string;
64
+ country: RawSeasonDetailsCountry;
65
+ gender: "MALE" | "FEMALE";
66
+ type: "LEAGUE" | "CUP";
67
+ region: "DOMESTIC" | "INTERNATIONAL";
68
+ assets?: {
69
+ logo?: {
70
+ url: string;
71
+ };
72
+ };
73
+ uuid: string;
74
+ }
75
+ /**
76
+ * Season in v2 season details response
77
+ */
78
+ export interface RawSeasonDetailsSeason {
79
+ id: string;
80
+ name: string;
81
+ slug: string;
82
+ tournament: RawSeasonDetailsTournament;
83
+ status: "ACTIVE" | "INACTIVE";
84
+ uuid: string;
85
+ }
86
+ /**
87
+ * Round in v2 season details response
88
+ */
89
+ export interface RawSeasonDetailsRound {
90
+ id: string;
91
+ key: string;
92
+ name: string;
93
+ type: "LEAGUE" | "CUP" | "QUALIFICATION" | "PLAYOFF";
94
+ status: "ACTIVE" | "INACTIVE";
95
+ start_date: string;
96
+ end_date: string;
97
+ uuid: string;
98
+ }
99
+ /**
100
+ * Stage in v2 season details response
101
+ */
102
+ export interface RawSeasonDetailsStage {
103
+ id: string;
104
+ name: string;
105
+ slug: string;
106
+ type: "LEAGUE" | "CUP" | "GROUP" | "KNOCKOUT" | "PLAYOFF" | "QUALIFICATION";
107
+ status: "ACTIVE" | "INACTIVE";
108
+ coverage: "LIVE" | "HIGHLIGHTS" | "NONE";
109
+ order_in_season: number;
110
+ start_date: string;
111
+ end_date: string;
112
+ short_name: string | null;
113
+ uuid: string;
114
+ }
115
+ /**
116
+ * Stage with rounds in v2 season details response
117
+ */
118
+ export interface RawSeasonDetailsStageWithRounds {
119
+ stage: RawSeasonDetailsStage;
120
+ rounds: RawSeasonDetailsRound[];
121
+ uuid: string;
122
+ }
123
+ /**
124
+ * Full response from /v2/seasons/details endpoint
125
+ */
126
+ export interface RawSeasonDetailsResponse {
127
+ season: RawSeasonDetailsSeason;
128
+ stages: RawSeasonDetailsStageWithRounds[];
129
+ }
130
+ export interface GetFootballCompetitionOptions {
131
+ /** Language code for translations (e.g., 'en', 'bg'). Defaults to 'en' */
132
+ languageCode?: string;
133
+ /** Next.js cache options for ISR/on-demand revalidation */
134
+ next?: NextCacheOptions;
135
+ }
136
+ export interface GetFootballSeasonDetailsOptions {
137
+ /** Season ID to fetch details for */
138
+ seasonId?: string;
139
+ /** Tournament/competition ID (used with status to get current season) */
140
+ competitionId?: string;
141
+ /** Season status filter (e.g., 'CURRENT'). Used with competitionId */
142
+ status?: "CURRENT";
143
+ /** Language code for translations (e.g., 'en', 'bg'). Defaults to 'en' */
144
+ languageCode?: string;
145
+ /** Next.js cache options for ISR/on-demand revalidation */
146
+ next?: NextCacheOptions;
147
+ }
148
+ //# sourceMappingURL=competition.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"competition.types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/football/competitions/competition.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAMnD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,oBAAoB,CAAC;IAC9B,eAAe,EAAE,OAAO,CAAC;IACzB,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC1B,IAAI,EAAE,QAAQ,GAAG,KAAK,CAAC;IACvB,MAAM,EAAE,UAAU,GAAG,eAAe,CAAC;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAMD;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,M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AM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,GAAG,KAAK,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,eAAe,CAAC;IAC5E,MAAM,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC9B,QAAQ,EAAE,MAAM,GAAG,YAAY,GAAG,MAAM,CAAC;IACzC,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC5C,KAAK,EAAE,qBAAqB,CAAC;IAC7B,MAAM,EAAE,qBAAqB,EAAE,CAAC;IAChC,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,MAAM,EAAE,sBAAsB,CAAC;IAC/B,MAAM,EAAE,+BAA+B,EAAE,CAAC;CAC7C;AAMD,MAAM,WAAW,6BAA6B;IAC1C,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2DAA2D;IAC3D,IAAI,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAED,MAAM,WAAW,+BAA+B;IAC5C,qCAAqC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yEAAyE;IACzE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sEAAsE;IACtE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2DAA2D;IAC3D,IAAI,CAAC,EAAE,gBAAgB,CAAC;CAC3B"}
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Sportal365 Sports API - Football Competitions
3
+ *
4
+ * Fetches competition/tournament data and transforms to canonical FUSports types.
5
+ */
6
+ import type { FUSportsCompetition, FUSportsSeasonDetails } from "../../../../types/canonical";
7
+ import { type DataLayerConfig } from "../../../../config";
8
+ import type { GetFootballCompetitionOptions, GetFootballSeasonDetailsOptions } from "./competition.types";
9
+ export type { GetFootballCompetitionOptions, GetFootballSeasonDetailsOptions } from "./competition.types";
10
+ /**
11
+ * Get a football competition/tournament by ID
12
+ *
13
+ * Fetches full competition details including all available seasons.
14
+ *
15
+ * @param competitionId - The competition ID, UUID, or slug
16
+ * @param options - Optional parameters
17
+ * @param config - Optional data layer config (uses singleton if not provided)
18
+ * @returns Canonical FUSportsCompetition with all seasons
19
+ *
20
+ * @example
21
+ * ```typescript
22
+ * const competition = await getFootballCompetition('3');
23
+ * console.log(competition.name); // "Premier League"
24
+ * console.log(competition.seasons?.length); // 27
25
+ * ```
26
+ */
27
+ export declare function getFootballCompetition(competitionId: string, options?: GetFootballCompetitionOptions, config?: DataLayerConfig): Promise<FUSportsCompetition>;
28
+ /**
29
+ * Get detailed season information with stages and rounds
30
+ *
31
+ * Can be called with either:
32
+ * - `seasonId` to get a specific season's details
33
+ * - `competitionId` + `status: 'CURRENT'` to get the current season for a competition
34
+ *
35
+ * @param options - Options including seasonId or competitionId+status
36
+ * @param config - Optional data layer config (uses singleton if not provided)
37
+ * @returns Canonical FUSportsSeasonDetails with competition, stages, and rounds
38
+ *
39
+ * @example
40
+ * ```typescript
41
+ * // Get by season ID
42
+ * const season = await getFootballSeasonDetails({ seasonId: '7575016' });
43
+ * console.log(season.name); // "2025/2026"
44
+ * console.log(season.stages?.length); // 1
45
+ *
46
+ * // Get current season for a competition
47
+ * const currentSeason = await getFootballSeasonDetails({
48
+ * competitionId: '3',
49
+ * status: 'CURRENT'
50
+ * });
51
+ * ```
52
+ */
53
+ export declare function getFootballSeasonDetails(options?: GetFootballSeasonDetailsOptions, config?: DataLayerConfig): Promise<FUSportsSeasonDetails>;
54
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/football/competitions/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC9F,OAAO,EAAa,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErE,OAAO,KAAK,EAGR,6BAA6B,EAC7B,+BAA+B,EAClC,MAAM,qBAAqB,CAAC;AAI7B,YAAY,EAAE,6BAA6B,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAE1G;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,sBAAsB,CACxC,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,6BAA6B,EACvC,MAAM,CAAC,EAAE,eAAe,GACzB,OAAO,CAAC,mBAAmB,CAAC,CAiB9B;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,wBAAwB,CAC1C,OAAO,CAAC,EAAE,+BAA+B,EACzC,MAAM,CAAC,EAAE,eAAe,GACzB,OAAO,CAAC,qBAAqB,CAAC,CAgChC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Competition transformers for Sportal365 Sports API
3
+ */
4
+ import type { FUSportsCompetition, FUSportsSeasonDetails } from "../../../../types/canonical";
5
+ import type { RawTournamentResponse, RawSeasonDetailsResponse } from "./competition.types";
6
+ /**
7
+ * Transform raw tournament response to canonical FUSportsCompetition
8
+ */
9
+ export declare function transformCompetition(raw: RawTournamentResponse): FUSportsCompetition;
10
+ /**
11
+ * Transform raw season details response to canonical FUSportsSeasonDetails
12
+ */
13
+ export declare function transformSeasonDetails(raw: RawSeasonDetailsResponse): FUSportsSeasonDetails;
14
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/football/competitions/utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACR,mBAAmB,EACnB,qBAAqB,EAGxB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EACR,qBAAqB,EACrB,wBAAwB,EAE3B,MAAM,qBAAqB,CAAC;AAG7B;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,qBAAqB,GAAG,mBAAmB,CA4BpF;AAiCD;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,wBAAwB,GAAG,qBAAqB,CAoC3F"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Football HTTP client for Sportal365 API
3
+ */
4
+ /**
5
+ * HTTP client configured for the Sportal365 Football API
6
+ */
7
+ export declare const footballHttp: import("../http").Sportal365HttpClient;
8
+ //# sourceMappingURL=http.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../../src/lib/api/sportal365-sports/football/http.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH;;GAEG;AACH,eAAO,MAAM,YAAY,wCAA+C,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Sportal365 Sports API - Football
3
+ *
4
+ * Football-specific endpoints for the Sportal365 Sports API.
5
+ * All functions return canonical FUSports types.
6
+ */
7
+ export { getFootballMatch, getFootballMatchEvents, getFootballMatchLineups, getFootballMatchOdds, getFootballMatchStatistics, getFootballMatchCommentary, getFootballMatches, } from "./matches";
8
+ export type { GetFootballMatchOptions, GetFootballMatchEventsOptions, GetFootballMatchLineupsOptions, GetFootballMatchOddsOptions, GetFootballMatchStatisticsOptions, GetFootballMatchCommentaryOptions, GetFootballMatchesOptions, OddType, ScopeType, OddFormat, MarketType, OptionalMatchData, MatchStatusType, SortDirection, } from "./matches";
9
+ export { getFootballTeam, getFootballTeamSquad } from "./teams";
10
+ export type { GetFootballTeamOptions, GetFootballTeamSquadOptions } from "./teams";
11
+ export { getFootballCompetition, getFootballSeasonDetails } from "./competitions";
12
+ export type { GetFootballCompetitionOptions, GetFootballSeasonDetailsOptions } from "./competitions";
13
+ export { getFootballStandings } from "./standings";
14
+ export type { GetFootballStandingsOptions, FootballStandingsExpandOption } from "./standings";
15
+ export { getFootballPlayerSeasonStatistics } from "./statistics";
16
+ export type { GetFootballPlayerSeasonStatisticsOptions } from "./statistics";
17
+ export { searchFootball } from "./search";
18
+ export type { GetFootballSearchOptions, SearchEntityType } from "./search";
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/api/sportal365-sports/football/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACH,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,0BAA0B,EAC1B,0BAA0B,EAC1B,kBAAkB,GACrB,MAAM,WAAW,CAAC;AAEnB,YAAY,EACR,uBAAuB,EACvB,6BAA6B,EAC7B,8BAA8B,EAC9B,2BAA2B,EAC3B,iCAAiC,EACjC,iCAAiC,EACjC,yBAAyB,EACzB,OAAO,EACP,SAAS,EACT,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,aAAa,GAChB,MAAM,WAAW,CAAC;AAGnB,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAChE,YAAY,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAGnF,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAClF,YAAY,EAAE,6BAA6B,EAAE,+BAA+B,EAAE,MAAM,gBAAgB,CAAC;AAGrG,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,YAAY,EAAE,2BAA2B,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAG9F,OAAO,EAAE,iCAAiC,EAAE,MAAM,cAAc,CAAC;AACjE,YAAY,EAAE,wCAAwC,EAAE,MAAM,cAAc,CAAC;AAG7E,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,YAAY,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC"}