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,5 @@
1
+ /**
2
+ * Constants for Fans United APIs
3
+ */
4
+ export declare const FANSUNITED_FOOTBALL_DOMAIN = "https://football.fansunitedapi.com";
5
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/lib/api/fansunited/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,0BAA0B,uCAAuC,CAAC"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Football competition endpoints for Fans United Football API
3
+ */
4
+ import type { FUSportsCompetition } from "../../../../types/canonical";
5
+ import { type DataLayerConfig } from "../../../../config";
6
+ import type { GetFootballCompetitionOptions } from "./types";
7
+ export type { GetFootballCompetitionOptions } from "./types";
8
+ /**
9
+ * Get a football competition by ID from Fans United Football API
10
+ *
11
+ * @param competitionId - The competition ID
12
+ * @param options - Query options
13
+ * @param config - Optional data layer config (uses singleton if not provided)
14
+ * @returns Competition in canonical format
15
+ *
16
+ * @example
17
+ * ```typescript
18
+ * import { getFansUnitedFootballCompetition } from 'fansunited-data-layer';
19
+ *
20
+ * // Get competition by ID
21
+ * const competition = await getFansUnitedFootballCompetition('1', {
22
+ * lang: 'EN'
23
+ * });
24
+ *
25
+ * console.log(competition.name); // "Premier League"
26
+ * console.log(competition.type); // "LEAGUE"
27
+ * ```
28
+ */
29
+ export declare function getFansUnitedFootballCompetition(competitionId: string, options?: GetFootballCompetitionOptions, config?: DataLayerConfig): Promise<FUSportsCompetition>;
30
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/fansunited/football/competition/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAa,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErE,OAAO,KAAK,EAAE,6BAA6B,EAA0B,MAAM,SAAS,CAAC;AAIrF,YAAY,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAE7D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,gCAAgC,CAClD,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,6BAA6B,EACvC,MAAM,CAAC,EAAE,eAAe,GACzB,OAAO,CAAC,mBAAmB,CAAC,CAkB9B"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Transform raw competition data to canonical FUSports types
3
+ */
4
+ import type { FUSportsCompetition } from "../../../../types/canonical";
5
+ import type { RawCompetitionResponse } from "./types";
6
+ /**
7
+ * Transform raw competition response to canonical FUSportsCompetition
8
+ * The API wraps the competition data in a "data" property
9
+ */
10
+ export declare function transformCompetition(raw: RawCompetitionResponse): FUSportsCompetition;
11
+ //# sourceMappingURL=transformer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transformer.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/fansunited/football/competition/transformer.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,KAAK,EAAE,sBAAsB,EAA8B,MAAM,SAAS,CAAC;AAgDlF;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,sBAAsB,GAAG,mBAAmB,CAErF"}
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Competition 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 RawTeam {
15
+ id: string;
16
+ name: string;
17
+ full_name?: string | null;
18
+ short_name?: string | null;
19
+ code?: string;
20
+ national: boolean;
21
+ gender?: "male" | "female";
22
+ undecided?: boolean;
23
+ country?: RawCountry;
24
+ assets?: {
25
+ logo?: string;
26
+ };
27
+ }
28
+ export interface RawSeason {
29
+ id: number;
30
+ name: string;
31
+ slug?: string;
32
+ active: boolean;
33
+ start_date?: string;
34
+ end_date?: string;
35
+ }
36
+ export interface RawStage {
37
+ id: number;
38
+ name: string;
39
+ slug?: string;
40
+ type?: "LEAGUE" | "CUP" | "GROUP" | "KNOCKOUT" | "PLAYOFF" | "QUALIFICATION";
41
+ order?: number;
42
+ }
43
+ /**
44
+ * Raw competition data from API
45
+ */
46
+ export interface RawCompetition {
47
+ id: string;
48
+ name: string;
49
+ type?: "league" | "cup" | "tournament" | "friendly";
50
+ gender?: "male" | "female";
51
+ country?: RawCountry;
52
+ assets?: {
53
+ logo?: string;
54
+ };
55
+ participants?: RawTeam[];
56
+ }
57
+ /**
58
+ * Raw competition response from /v1/competitions/{id}
59
+ * The API wraps the competition data in a "data" property
60
+ */
61
+ export interface RawCompetitionResponse {
62
+ data: RawCompetition;
63
+ }
64
+ export interface GetFootballCompetitionOptions {
65
+ /** Language code for translations (e.g., 'EN', 'BG'). Defaults to 'EN' */
66
+ lang?: string;
67
+ /** Next.js cache options for ISR/on-demand revalidation */
68
+ next?: NextCacheOptions;
69
+ }
70
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/fansunited/football/competition/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAMnD,MAAM,WAAW,UAAU;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;CACL;AAED,MAAM,WAAW,OAAO;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,MAAM,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;CACL;AAED,MAAM,WAAW,SAAS;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,eAAe,CAAC;IAC7E,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,YAAY,GAAG,UAAU,CAAC;IACpD,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC3B,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,MAAM,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,YAAY,CAAC,EAAE,OAAO,EAAE,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACnC,IAAI,EAAE,cAAc,CAAC;CACxB;AAMD,MAAM,WAAW,6BAA6B;IAC1C,0EAA0E;IAC1E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2DAA2D;IAC3D,IAAI,CAAC,EAAE,gBAAgB,CAAC;CAC3B"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Competitions API for Fans United Football API
3
+ */
4
+ import type { FUSportsCompetition } from "../../../../types/canonical";
5
+ import type { DataLayerConfig } from "../../../../config";
6
+ import type { GetFootballCompetitionsOptions } from "./types";
7
+ /**
8
+ * Get all football competitions from Fans United Football API
9
+ *
10
+ * @param options - Query options for filtering and pagination
11
+ * @param config - Optional data layer config (uses singleton if not provided)
12
+ * @returns Array of competitions in canonical format
13
+ *
14
+ * @example
15
+ * ```typescript
16
+ * import { getFansUnitedFootballCompetitions } from 'fansunited-data-layer';
17
+ *
18
+ * // Get all competitions sorted by name
19
+ * const competitions = await getFansUnitedFootballCompetitions({
20
+ * lang: 'EN',
21
+ * sortField: 'name',
22
+ * sortOrder: 'asc'
23
+ * });
24
+ * ```
25
+ */
26
+ export declare function getFansUnitedFootballCompetitions(options?: GetFootballCompetitionsOptions, config?: DataLayerConfig): Promise<FUSportsCompetition[]>;
27
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/fansunited/football/competitions/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAE,8BAA8B,EAA2B,MAAM,SAAS,CAAC;AAEvF;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,iCAAiC,CACnD,OAAO,CAAC,EAAE,8BAA8B,EACxC,MAAM,CAAC,EAAE,eAAe,GACzB,OAAO,CAAC,mBAAmB,EAAE,CAAC,CA0ChC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Competition transformers for Fans United Football API
3
+ */
4
+ import type { FUSportsCompetition } from "../../../../types/canonical";
5
+ import type { RawCompetition } from "./types";
6
+ /**
7
+ * Transform raw competition response to canonical FUSportsCompetition
8
+ */
9
+ export declare function transformCompetition(raw: RawCompetition): FUSportsCompetition;
10
+ /**
11
+ * Transform array of raw competitions to canonical format
12
+ */
13
+ export declare function transformCompetitions(raw: RawCompetition[]): FUSportsCompetition[];
14
+ //# sourceMappingURL=transformer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transformer.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/fansunited/football/competitions/transformer.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAkB,MAAM,6BAA6B,CAAC;AACvF,OAAO,KAAK,EAAE,cAAc,EAAwB,MAAM,SAAS,CAAC;AAmBpE;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,mBAAmB,CAuD7E;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,cAAc,EAAE,GAAG,mBAAmB,EAAE,CAElF"}
@@ -0,0 +1,67 @@
1
+ /**
2
+ * Competition types for Fans United Football API
3
+ */
4
+ import type { NextCacheOptions } from "../../http";
5
+ /**
6
+ * Country in competition response
7
+ */
8
+ export interface RawCompetitionCountry {
9
+ id: number;
10
+ name: string;
11
+ code?: string;
12
+ flag?: string;
13
+ }
14
+ /**
15
+ * Season in competition response
16
+ */
17
+ export interface RawCompetitionSeason {
18
+ id: number;
19
+ name: string;
20
+ active: boolean;
21
+ start_date?: string;
22
+ end_date?: string;
23
+ }
24
+ /**
25
+ * Raw competition response from /v1/competitions
26
+ */
27
+ export interface RawCompetition {
28
+ id: number;
29
+ name: string;
30
+ short_name?: string;
31
+ slug?: string;
32
+ type?: "LEAGUE" | "CUP" | "TOURNAMENT" | "FRIENDLY";
33
+ region?: "DOMESTIC" | "INTERNATIONAL" | "CONTINENTAL";
34
+ gender?: "MALE" | "FEMALE";
35
+ country?: RawCompetitionCountry;
36
+ logo?: string;
37
+ seasons?: RawCompetitionSeason[];
38
+ current_season?: RawCompetitionSeason;
39
+ }
40
+ /**
41
+ * Response from /v1/competitions endpoint
42
+ */
43
+ export interface RawCompetitionsResponse {
44
+ data: RawCompetition[];
45
+ total?: number;
46
+ page?: number;
47
+ per_page?: number;
48
+ }
49
+ export interface GetFootballCompetitionsOptions {
50
+ /** Language code for translations (e.g., 'EN', 'BG'). Defaults to 'EN' */
51
+ lang?: string;
52
+ /** Field to sort by (e.g., 'name', 'id') */
53
+ sortField?: string;
54
+ /** Sort order ('asc' or 'desc') */
55
+ sortOrder?: "asc" | "desc";
56
+ /** Page number for pagination */
57
+ page?: number;
58
+ /** Number of items per page */
59
+ perPage?: number;
60
+ /** Filter by country ID */
61
+ countryId?: number;
62
+ /** Filter by active status */
63
+ active?: boolean;
64
+ /** Next.js cache options for ISR/on-demand revalidation */
65
+ next?: NextCacheOptions;
66
+ }
67
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/fansunited/football/competitions/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAMnD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,YAAY,GAAG,UAAU,CAAC;IACpD,MAAM,CAAC,EAAE,UAAU,GAAG,eAAe,GAAG,aAAa,CAAC;IACtD,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC3B,OAAO,CAAC,EAAE,qBAAqB,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACjC,cAAc,CAAC,EAAE,oBAAoB,CAAC;CACzC;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,IAAI,EAAE,cAAc,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAMD,MAAM,WAAW,8BAA8B;IAC3C,0EAA0E;IAC1E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC3B,iCAAiC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,+BAA+B;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,2DAA2D;IAC3D,IAAI,CAAC,EAAE,gBAAgB,CAAC;CAC3B"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Football HTTP client for Fans United API
3
+ */
4
+ /**
5
+ * HTTP client configured for the Fans United Football API
6
+ */
7
+ export declare const footballHttp: import("../http").FansUnitedHttpClient;
8
+ //# sourceMappingURL=http.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../../src/lib/api/fansunited/football/http.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH;;GAEG;AACH,eAAO,MAAM,YAAY,wCAA+C,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Fans United API - Football
3
+ *
4
+ * Football-specific endpoints for the Fans United API.
5
+ * All functions return canonical FUSports types.
6
+ */
7
+ export { getFansUnitedFootballCompetitions } from "./competitions";
8
+ export type { GetFootballCompetitionsOptions } from "./competitions/types";
9
+ export { getFansUnitedFootballCompetition } from "./competition";
10
+ export type { GetFootballCompetitionOptions } from "./competition/types";
11
+ export { getFansUnitedFootballTeam } from "./teams";
12
+ export type { GetFootballTeamOptions } from "./teams/types";
13
+ export { getFansUnitedFootballPlayer } from "./players";
14
+ export type { GetFootballPlayerOptions } from "./players/types";
15
+ export { getFansUnitedFootballMatch, getFansUnitedFootballMatches } from "./matches";
16
+ export type { GetFootballMatchOptions, GetFootballMatchesOptions } from "./matches/types";
17
+ export { getFansUnitedFootballSearch } from "./search";
18
+ export type { GetFootballSearchOptions, SearchEntityType, FansUnitedFootballSearchResult } from "./search/types";
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/api/fansunited/football/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,iCAAiC,EAAE,MAAM,gBAAgB,CAAC;AACnE,YAAY,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AAG3E,OAAO,EAAE,gCAAgC,EAAE,MAAM,eAAe,CAAC;AACjE,YAAY,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AAGzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AACpD,YAAY,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAG5D,OAAO,EAAE,2BAA2B,EAAE,MAAM,WAAW,CAAC;AACxD,YAAY,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAGhE,OAAO,EAAE,0BAA0B,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAC;AACrF,YAAY,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAG1F,OAAO,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AACvD,YAAY,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Football match endpoints for Fans United Football API
3
+ */
4
+ import type { FUSportsMatch } from "../../../../types/canonical";
5
+ import { type DataLayerConfig } from "../../../../config";
6
+ import type { GetFootballMatchOptions, GetFootballMatchesOptions } from "./types";
7
+ export type { GetFootballMatchOptions, GetFootballMatchesOptions } from "./types";
8
+ /**
9
+ * Get a football match by ID from Fans United Football API
10
+ *
11
+ * @param matchId - The match ID
12
+ * @param options - Query options
13
+ * @param config - Optional data layer config (uses singleton if not provided)
14
+ * @returns Match in canonical format
15
+ *
16
+ * @example
17
+ * ```typescript
18
+ * import { getFansUnitedFootballMatch } from 'fansunited-data-layer';
19
+ *
20
+ * // Get match by ID
21
+ * const match = await getFansUnitedFootballMatch('12345', {
22
+ * lang: 'EN'
23
+ * });
24
+ *
25
+ * console.log(match.competitorOne.name); // "Manchester United"
26
+ * console.log(match.competitorTwo.name); // "Liverpool"
27
+ * console.log(match.score?.competitorOne); // "2"
28
+ * ```
29
+ */
30
+ export declare function getFansUnitedFootballMatch(matchId: string, options?: GetFootballMatchOptions, config?: DataLayerConfig): Promise<FUSportsMatch>;
31
+ /**
32
+ * Get multiple football matches from Fans United Football API
33
+ *
34
+ * @param options - Query options for filtering, sorting, and pagination
35
+ * @param config - Optional data layer config (uses singleton if not provided)
36
+ * @returns Array of matches in canonical format
37
+ *
38
+ * @example
39
+ * ```typescript
40
+ * import { getFansUnitedFootballMatches } from 'fansunited-data-layer';
41
+ *
42
+ * // Get upcoming matches for specific teams
43
+ * const matches = await getFansUnitedFootballMatches({
44
+ * teams: 'fb:t:8102,fb:t:8104',
45
+ * status: 'upcoming',
46
+ * limit: 10,
47
+ * lang: 'EN'
48
+ * });
49
+ *
50
+ * // Get matches for a specific competition
51
+ * const competitionMatches = await getFansUnitedFootballMatches({
52
+ * competitions: 'fb:c:3',
53
+ * fromDate: '2026-01-01T00:00:00Z',
54
+ * toDate: '2026-01-31T23:59:59Z',
55
+ * sortField: 'kickoff_at',
56
+ * sortOrder: 'asc'
57
+ * });
58
+ * ```
59
+ */
60
+ export declare function getFansUnitedFootballMatches(options?: GetFootballMatchesOptions, config?: DataLayerConfig): Promise<FUSportsMatch[]>;
61
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/fansunited/football/matches/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAa,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErE,OAAO,KAAK,EAAE,uBAAuB,EAAE,yBAAyB,EAAwC,MAAM,SAAS,CAAC;AAIxH,YAAY,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAElF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,0BAA0B,CAC5C,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,uBAAuB,EACjC,MAAM,CAAC,EAAE,eAAe,GACzB,OAAO,CAAC,aAAa,CAAC,CAkBxB;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAsB,4BAA4B,CAC9C,OAAO,CAAC,EAAE,yBAAyB,EACnC,MAAM,CAAC,EAAE,eAAe,GACzB,OAAO,CAAC,aAAa,EAAE,CAAC,CA8D1B"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Transform raw match data to canonical FUSports types
3
+ */
4
+ import type { FUSportsMatch, FUSportsPlayerMatchStats, FUSportsMatchStatistics, FUSportsMatchLineups } from "../../../../types/canonical";
5
+ import type { RawMatchResponse, RawMatchesResponse, RawPlayerStats, RawMatchStats, RawLineups } from "./types";
6
+ /**
7
+ * Transform raw player stats to canonical format
8
+ */
9
+ export declare function transformPlayerStats(raw: RawPlayerStats): FUSportsPlayerMatchStats;
10
+ /**
11
+ * Transform raw match stats to canonical format with period breakdowns
12
+ */
13
+ export declare function transformMatchStatistics(raw: RawMatchStats, homeTeamId: string, awayTeamId: string): FUSportsMatchStatistics;
14
+ /**
15
+ * Transform raw lineups to canonical format
16
+ */
17
+ export declare function transformLineups(raw: RawLineups, matchId: string, homeTeamId: string, awayTeamId: string): FUSportsMatchLineups;
18
+ /**
19
+ * Transform raw match response to canonical FUSportsMatch
20
+ * The API wraps the match data in a "data" property
21
+ */
22
+ export declare function transformMatch(raw: RawMatchResponse): FUSportsMatch;
23
+ /**
24
+ * Transform raw matches response to array of canonical FUSportsMatch
25
+ * The API wraps the matches array in a "data" property with pagination metadata
26
+ */
27
+ export declare function transformMatches(raw: RawMatchesResponse): FUSportsMatch[];
28
+ //# sourceMappingURL=transformer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transformer.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/fansunited/football/matches/transformer.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACR,aAAa,EAKb,wBAAwB,EACxB,uBAAuB,EAEvB,oBAAoB,EAGvB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EACR,gBAAgB,EAChB,kBAAkB,EAMlB,cAAc,EACd,aAAa,EAEb,UAAU,EAIb,MAAM,SAAS,CAAC;AAkKjB;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,wBAAwB,CAuDlF;AA+DD;;GAEG;AACH,wBAAgB,wBAAwB,CACpC,GAAG,EAAE,aAAa,EAClB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,GACnB,uBAAuB,CA6EzB;AAgDD;;GAEG;AACH,wBAAgB,gBAAgB,CAC5B,GAAG,EAAE,UAAU,EACf,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,GACnB,oBAAoB,CAOtB;AA0BD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,gBAAgB,GAAG,aAAa,CAEnE;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,kBAAkB,GAAG,aAAa,EAAE,CAEzE"}