fansunited-data-layer 0.0.14 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/README.md +233 -12
  2. package/package.json +8 -2
  3. package/dist/api/sportal365-sports/constants.d.ts +0 -12
  4. package/dist/api/sportal365-sports/constants.d.ts.map +0 -1
  5. package/dist/api/sportal365-sports/football/competitions/competition.types.d.ts +0 -148
  6. package/dist/api/sportal365-sports/football/competitions/competition.types.d.ts.map +0 -1
  7. package/dist/api/sportal365-sports/football/competitions/index.d.ts +0 -51
  8. package/dist/api/sportal365-sports/football/competitions/index.d.ts.map +0 -1
  9. package/dist/api/sportal365-sports/football/competitions/utils.d.ts +0 -14
  10. package/dist/api/sportal365-sports/football/competitions/utils.d.ts.map +0 -1
  11. package/dist/api/sportal365-sports/football/http.d.ts +0 -8
  12. package/dist/api/sportal365-sports/football/http.d.ts.map +0 -1
  13. package/dist/api/sportal365-sports/football/index.d.ts +0 -15
  14. package/dist/api/sportal365-sports/football/index.d.ts.map +0 -1
  15. package/dist/api/sportal365-sports/football/matches/index.d.ts +0 -143
  16. package/dist/api/sportal365-sports/football/matches/index.d.ts.map +0 -1
  17. package/dist/api/sportal365-sports/football/matches/transformers/commentary.d.ts +0 -12
  18. package/dist/api/sportal365-sports/football/matches/transformers/commentary.d.ts.map +0 -1
  19. package/dist/api/sportal365-sports/football/matches/transformers/index.d.ts +0 -10
  20. package/dist/api/sportal365-sports/football/matches/transformers/index.d.ts.map +0 -1
  21. package/dist/api/sportal365-sports/football/matches/transformers/lineup.d.ts +0 -11
  22. package/dist/api/sportal365-sports/football/matches/transformers/lineup.d.ts.map +0 -1
  23. package/dist/api/sportal365-sports/football/matches/transformers/match-event.d.ts +0 -12
  24. package/dist/api/sportal365-sports/football/matches/transformers/match-event.d.ts.map +0 -1
  25. package/dist/api/sportal365-sports/football/matches/transformers/match.d.ts +0 -11
  26. package/dist/api/sportal365-sports/football/matches/transformers/match.d.ts.map +0 -1
  27. package/dist/api/sportal365-sports/football/matches/transformers/odds.d.ts +0 -11
  28. package/dist/api/sportal365-sports/football/matches/transformers/odds.d.ts.map +0 -1
  29. package/dist/api/sportal365-sports/football/matches/transformers/statistics.d.ts +0 -11
  30. package/dist/api/sportal365-sports/football/matches/transformers/statistics.d.ts.map +0 -1
  31. package/dist/api/sportal365-sports/football/matches/types/commentary.types.d.ts +0 -27
  32. package/dist/api/sportal365-sports/football/matches/types/commentary.types.d.ts.map +0 -1
  33. package/dist/api/sportal365-sports/football/matches/types/event.types.d.ts +0 -19
  34. package/dist/api/sportal365-sports/football/matches/types/event.types.d.ts.map +0 -1
  35. package/dist/api/sportal365-sports/football/matches/types/index.d.ts +0 -16
  36. package/dist/api/sportal365-sports/football/matches/types/index.d.ts.map +0 -1
  37. package/dist/api/sportal365-sports/football/matches/types/lineup.types.d.ts +0 -78
  38. package/dist/api/sportal365-sports/football/matches/types/lineup.types.d.ts.map +0 -1
  39. package/dist/api/sportal365-sports/football/matches/types/match.types.d.ts +0 -47
  40. package/dist/api/sportal365-sports/football/matches/types/match.types.d.ts.map +0 -1
  41. package/dist/api/sportal365-sports/football/matches/types/minute.types.d.ts +0 -8
  42. package/dist/api/sportal365-sports/football/matches/types/minute.types.d.ts.map +0 -1
  43. package/dist/api/sportal365-sports/football/matches/types/odds.types.d.ts +0 -80
  44. package/dist/api/sportal365-sports/football/matches/types/odds.types.d.ts.map +0 -1
  45. package/dist/api/sportal365-sports/football/matches/types/option.types.d.ts +0 -129
  46. package/dist/api/sportal365-sports/football/matches/types/option.types.d.ts.map +0 -1
  47. package/dist/api/sportal365-sports/football/matches/types/referee.types.d.ts +0 -13
  48. package/dist/api/sportal365-sports/football/matches/types/referee.types.d.ts.map +0 -1
  49. package/dist/api/sportal365-sports/football/matches/types/statistics.types.d.ts +0 -45
  50. package/dist/api/sportal365-sports/football/matches/types/statistics.types.d.ts.map +0 -1
  51. package/dist/api/sportal365-sports/football/matches/types/status.types.d.ts +0 -13
  52. package/dist/api/sportal365-sports/football/matches/types/status.types.d.ts.map +0 -1
  53. package/dist/api/sportal365-sports/football/matches/types/team.types.d.ts +0 -17
  54. package/dist/api/sportal365-sports/football/matches/types/team.types.d.ts.map +0 -1
  55. package/dist/api/sportal365-sports/football/matches/types/winner.types.d.ts +0 -15
  56. package/dist/api/sportal365-sports/football/matches/types/winner.types.d.ts.map +0 -1
  57. package/dist/api/sportal365-sports/football/standings/index.d.ts +0 -35
  58. package/dist/api/sportal365-sports/football/standings/index.d.ts.map +0 -1
  59. package/dist/api/sportal365-sports/football/standings/standing.transformer.d.ts +0 -15
  60. package/dist/api/sportal365-sports/football/standings/standing.transformer.d.ts.map +0 -1
  61. package/dist/api/sportal365-sports/football/standings/standing.types.d.ts +0 -71
  62. package/dist/api/sportal365-sports/football/standings/standing.types.d.ts.map +0 -1
  63. package/dist/api/sportal365-sports/football/teams/index.d.ts +0 -25
  64. package/dist/api/sportal365-sports/football/teams/index.d.ts.map +0 -1
  65. package/dist/api/sportal365-sports/football/teams/team.types.d.ts +0 -58
  66. package/dist/api/sportal365-sports/football/teams/team.types.d.ts.map +0 -1
  67. package/dist/api/sportal365-sports/football/teams/utils.d.ts +0 -11
  68. package/dist/api/sportal365-sports/football/teams/utils.d.ts.map +0 -1
  69. package/dist/api/sportal365-sports/http.d.ts +0 -54
  70. package/dist/api/sportal365-sports/http.d.ts.map +0 -1
  71. package/dist/api/sportal365-sports/index.d.ts +0 -10
  72. package/dist/api/sportal365-sports/index.d.ts.map +0 -1
  73. package/dist/api/sportal365-sports/shared/index.d.ts +0 -5
  74. package/dist/api/sportal365-sports/shared/index.d.ts.map +0 -1
  75. package/dist/api/sportal365-sports/shared/types.d.ts +0 -189
  76. package/dist/api/sportal365-sports/shared/types.d.ts.map +0 -1
  77. package/dist/client.cjs +0 -6
  78. package/dist/client.d.ts +0 -20
  79. package/dist/client.d.ts.map +0 -1
  80. package/dist/client.js +0 -454
  81. package/dist/config/index.d.ts +0 -31
  82. package/dist/config/index.d.ts.map +0 -1
  83. package/dist/config/types.d.ts +0 -33
  84. package/dist/config/types.d.ts.map +0 -1
  85. package/dist/fansunited-data-layer.cjs +0 -1
  86. package/dist/fansunited-data-layer.js +0 -150
  87. package/dist/helpers/competition.helpers.d.ts +0 -22
  88. package/dist/helpers/competition.helpers.d.ts.map +0 -1
  89. package/dist/helpers/index.d.ts +0 -7
  90. package/dist/helpers/index.d.ts.map +0 -1
  91. package/dist/helpers/standings.helpers.d.ts +0 -70
  92. package/dist/helpers/standings.helpers.d.ts.map +0 -1
  93. package/dist/helpers/team.helpers.d.ts +0 -45
  94. package/dist/helpers/team.helpers.d.ts.map +0 -1
  95. package/dist/index-D1EJvAqY.js +0 -763
  96. package/dist/index-DbaLZvqQ.cjs +0 -1
  97. package/dist/index.d.ts +0 -31
  98. package/dist/index.d.ts.map +0 -1
  99. package/dist/providers/competition.context.d.ts +0 -8
  100. package/dist/providers/competition.context.d.ts.map +0 -1
  101. package/dist/providers/competition.provider.d.ts +0 -3
  102. package/dist/providers/competition.provider.d.ts.map +0 -1
  103. package/dist/providers/competition.types.d.ts +0 -86
  104. package/dist/providers/competition.types.d.ts.map +0 -1
  105. package/dist/providers/index.d.ts +0 -7
  106. package/dist/providers/index.d.ts.map +0 -1
  107. package/dist/types/canonical/base.types.d.ts +0 -194
  108. package/dist/types/canonical/base.types.d.ts.map +0 -1
  109. package/dist/types/canonical/commentary.types.d.ts +0 -42
  110. package/dist/types/canonical/commentary.types.d.ts.map +0 -1
  111. package/dist/types/canonical/event.types.d.ts +0 -31
  112. package/dist/types/canonical/event.types.d.ts.map +0 -1
  113. package/dist/types/canonical/index.d.ts +0 -14
  114. package/dist/types/canonical/index.d.ts.map +0 -1
  115. package/dist/types/canonical/lineup.types.d.ts +0 -33
  116. package/dist/types/canonical/lineup.types.d.ts.map +0 -1
  117. package/dist/types/canonical/match.types.d.ts +0 -142
  118. package/dist/types/canonical/match.types.d.ts.map +0 -1
  119. package/dist/types/canonical/odds.types.d.ts +0 -73
  120. package/dist/types/canonical/odds.types.d.ts.map +0 -1
  121. package/dist/types/canonical/standing.types.d.ts +0 -84
  122. package/dist/types/canonical/standing.types.d.ts.map +0 -1
  123. package/dist/types/canonical/statistics.types.d.ts +0 -27
  124. package/dist/types/canonical/statistics.types.d.ts.map +0 -1
  125. package/dist/types/index.d.ts +0 -10
  126. package/dist/types/index.d.ts.map +0 -1
  127. package/dist/vite.svg +0 -1
@@ -1,129 +0,0 @@
1
- /**
2
- * Match options types for Sportal365 Sports API
3
- */
4
- import type { NextCacheOptions } from "../../../http";
5
- export type OddType = "LIVE" | "PRE_EVENT" | "ALL";
6
- export type ScopeType = "ORDINARY_TIME" | "FULL_TIME";
7
- export type OddFormat = "FRACTIONAL" | "DECIMAL" | "MONEYLINE";
8
- export type MarketType = "1x2" | "12" | "OVER_UNDER" | "DOUBLE_CHANCE" | "BOTH_TO_SCORE" | "DRAW_NO_BET" | "FIRST_TEAM_TO_SCORE" | "CORRECT_SCORE" | "FIRST_HALF_GOALS" | "FIRST_PLAYER_TO_SCORE" | "PLAYER_TO_SCORE_DURING_GAME" | "PLAYER_TO_RECEIVE_CARD" | "FIRST_HALF_AND_FINAL_RESULT";
9
- export type OptionalMatchData = "MAIN_EVENTS" | "LINEUP_STATUS";
10
- export interface GetFootballMatchOptions {
11
- /** Language code for translations (e.g., 'en', 'bg'). Defaults to 'en' */
12
- languageCode?: string;
13
- /** Filter matches by odd client */
14
- oddClient?: string;
15
- /** Type of odds to include. Defaults to 'ALL' */
16
- oddType?: OddType;
17
- /** Scope type for odds. Defaults to 'ORDINARY_TIME' */
18
- scopeType?: ScopeType;
19
- /** Format of odds */
20
- oddFormat?: OddFormat;
21
- /** Market types to include */
22
- marketTypes?: MarketType[];
23
- /** Optional data to include in response */
24
- optionalData?: OptionalMatchData[];
25
- /** Filter odds by bookmaker IDs */
26
- bookmakerIds?: string[];
27
- /** Next.js cache options for ISR/on-demand revalidation */
28
- next?: NextCacheOptions;
29
- }
30
- export interface GetFootballMatchEventsOptions {
31
- /** Language code for translations. Defaults to 'en' */
32
- languageCode?: string;
33
- /** Next.js cache options for ISR/on-demand revalidation */
34
- next?: NextCacheOptions;
35
- }
36
- export interface GetFootballMatchLineupsOptions {
37
- /** Language code for translations. Defaults to 'en' */
38
- languageCode?: string;
39
- /** Next.js cache options for ISR/on-demand revalidation */
40
- next?: NextCacheOptions;
41
- }
42
- export interface GetFootballMatchOddsOptions {
43
- /** Language code for translations. Defaults to 'en' */
44
- languageCode?: string;
45
- /** Filter by odd client */
46
- oddClient?: string;
47
- /** Type of odds to include */
48
- oddType?: OddType;
49
- /** Scope type for odds */
50
- scopeType?: ScopeType;
51
- /** Format of odds */
52
- oddFormat?: OddFormat;
53
- /** Market types to include */
54
- marketTypes?: MarketType[];
55
- /** Filter odds by bookmaker IDs */
56
- bookmakerIds?: string[];
57
- /** Next.js cache options for ISR/on-demand revalidation */
58
- next?: NextCacheOptions;
59
- }
60
- export interface GetFootballMatchStatisticsOptions {
61
- /** Language code for translations. Defaults to 'en' */
62
- languageCode?: string;
63
- /** Next.js cache options for ISR/on-demand revalidation */
64
- next?: NextCacheOptions;
65
- }
66
- /** Status types for filtering matches */
67
- export type MatchStatusType = "FINISHED" | "NOT_STARTED" | "LIVE" | "INTERRUPTED" | "CANCELLED" | "UNKNOWN" | "POSTPONED";
68
- /** Sort direction for matches */
69
- export type SortDirection = "asc" | "desc";
70
- /**
71
- * Options for fetching multiple football matches
72
- */
73
- export interface GetFootballMatchesOptions {
74
- /** Language code for translations (e.g., 'en', 'bg'). Defaults to 'en' */
75
- languageCode?: string;
76
- /** Maximum number of matches to return */
77
- limit: number;
78
- /** Offset for pagination */
79
- offset: number;
80
- /** Filter by tournament IDs */
81
- tournamentIds?: string[];
82
- /** Filter by season IDs */
83
- seasonIds?: string[];
84
- /** Filter by stage IDs */
85
- stageIds?: string[];
86
- /** Filter by group IDs */
87
- groupIds?: string[];
88
- /** Filter by round IDs */
89
- roundIds?: string[];
90
- /** Filter by stage:round combinations (format: "stageId:roundId") */
91
- roundFilter?: string[];
92
- /** Filter matches from this kickoff time (ISO 8601 format) */
93
- fromKickoffTime?: string;
94
- /** Filter matches until this kickoff time (ISO 8601 format) */
95
- toKickoffTime?: string;
96
- /** Filter by team IDs */
97
- teamIds?: string[];
98
- /** Operator for teamIds filter ('AND' or 'OR'). Defaults to 'AND' */
99
- teamIdsOperator?: "AND" | "OR";
100
- /** Filter by referee ID */
101
- refereeId?: string;
102
- /** Filter by venue ID */
103
- venueId?: string;
104
- /** Filter by player ID */
105
- playerId?: string;
106
- /** Filter by status types (e.g., 'FINISHED', 'LIVE') */
107
- statusTypes?: MatchStatusType[];
108
- /** Filter by status codes */
109
- statusCodes?: string[];
110
- /** Filter by odd client */
111
- oddClient?: string;
112
- /** Type of odds to include */
113
- oddType?: OddType;
114
- /** Scope type for odds */
115
- scopeType?: ScopeType;
116
- /** Format of odds */
117
- oddFormat?: OddFormat;
118
- /** Market types to include */
119
- marketTypes?: MarketType[];
120
- /** Filter odds by bookmaker IDs */
121
- bookmakerIds?: string[];
122
- /** Sort direction by kickoff time */
123
- sortDirection?: SortDirection;
124
- /** Optional data to include ('MAIN_EVENTS') */
125
- optionalData?: "MAIN_EVENTS"[];
126
- /** Next.js cache options for ISR/on-demand revalidation */
127
- next?: NextCacheOptions;
128
- }
129
- //# sourceMappingURL=option.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"option.types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/types/option.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,WAAW,GAAG,KAAK,CAAC;AACnD,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG,WAAW,CAAC;AACtD,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,SAAS,GA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AAC,EAAE,MAAM,CAAC;IAGvB,yBAAyB;IACzB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,qEAAqE;IACrE,eAAe,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAC/B,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,wDAAwD;IACxD,WAAW,CAAC,EAAE,eAAe,EAAE,CAAC;IAChC,6BAA6B;IAC7B,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IAGvB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8BAA8B;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0BAA0B;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,qBAAqB;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,mCAAmC;IACnC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAGxB,qCAAqC;IACrC,aAAa,CAAC,EAAE,aAAa,CAAC;IAG9B,+CAA+C;IAC/C,YAAY,CAAC,EAAE,aAAa,EAAE,CAAC;IAE/B,2DAA2D;IAC3D,IAAI,CAAC,EAAE,gBAAgB,CAAC;CAC3B"}
@@ -1,13 +0,0 @@
1
- /**
2
- * Match referee types for Sportal365 Sports API
3
- */
4
- import type { RawAssets } from "../../../shared/types";
5
- export interface RawMatchReferee {
6
- id: string;
7
- name: string;
8
- slug: string;
9
- role?: "REFEREE";
10
- gender?: "MALE" | "FEMALE";
11
- assets?: RawAssets | null;
12
- }
13
- //# sourceMappingURL=referee.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"referee.types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/types/referee.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,MAAM,WAAW,eAAe;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC3B,MAAM,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;CAC7B"}
@@ -1,45 +0,0 @@
1
- /**
2
- * Team statistics types for Sportal365 Sports API
3
- */
4
- /**
5
- * Statistics object nested inside each team's data
6
- */
7
- export interface RawStatisticsData {
8
- pass?: number;
9
- possession?: number;
10
- goals?: number;
11
- corners?: number;
12
- crosses?: number;
13
- offside?: number;
14
- shots_on?: number;
15
- shots_blocked?: number;
16
- shots_off?: number;
17
- throw_in?: number;
18
- goal_kicks?: number;
19
- treatments?: number;
20
- yellow_cards?: number;
21
- substitutions?: number;
22
- counter_attacks?: number;
23
- fouls_committed?: number;
24
- [key: string]: unknown;
25
- }
26
- /**
27
- * Single team statistics entry from the API array
28
- */
29
- export interface RawTeamStatisticsEntry {
30
- team: {
31
- id: number | string;
32
- name: string;
33
- slug?: string;
34
- [key: string]: unknown;
35
- };
36
- home_team: boolean;
37
- statistics: RawStatisticsData;
38
- event_id: number;
39
- [key: string]: unknown;
40
- }
41
- /**
42
- * The API returns an array of team statistics entries
43
- */
44
- export type RawMatchStatisticsResponse = RawTeamStatisticsEntry[];
45
- //# sourceMappingURL=statistics.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"statistics.types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/types/statistics.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC,IAAI,EAAE;QACF,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;QACpB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KAC1B,CAAC;IACF,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,sBAAsB,EAAE,CAAC"}
@@ -1,13 +0,0 @@
1
- /**
2
- * Match status types for Sportal365 Sports API
3
- */
4
- export type RawMatchStatusType = "FINISHED" | "NOT_STARTED" | "LIVE" | "INTERRUPTED" | "CANCELLED" | "UNKNOWN" | "POSTPONED";
5
- export interface RawMatchStatus {
6
- id: string;
7
- name: string;
8
- short_name: string;
9
- type: RawMatchStatusType;
10
- code?: string;
11
- uuid?: string;
12
- }
13
- //# sourceMappingURL=status.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"status.types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/types/status.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,kBAAkB,GACxB,UAAU,GACV,aAAa,GACb,MAAM,GACN,aAAa,GACb,WAAW,GACX,SAAS,GACT,WAAW,CAAC;AAElB,MAAM,WAAW,cAAc;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,kBAAkB,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -1,17 +0,0 @@
1
- /**
2
- * Match team types for Sportal365 Sports API
3
- */
4
- import type { RawAssets } from "../../../shared/types";
5
- export interface RawMatchTeam {
6
- id: string;
7
- name: string;
8
- slug: string;
9
- three_letter_code?: string;
10
- gender?: string;
11
- short_name?: string | null;
12
- type?: "placeholder" | "national" | "club";
13
- shirt_color?: string;
14
- assets?: RawAssets | null;
15
- uuid?: string;
16
- }
17
- //# sourceMappingURL=team.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"team.types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/types/team.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,CAAC,EAAE,aAAa,GAAG,UAAU,GAAG,MAAM,CAAC;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -1,15 +0,0 @@
1
- /**
2
- * Match winner types for Sportal365 Sports API
3
- */
4
- export interface RawMatchWinnerReason {
5
- name: string;
6
- }
7
- export interface RawMatchOrAggregateWinner {
8
- id: string;
9
- reason?: RawMatchWinnerReason;
10
- }
11
- export interface RawMatchWinner {
12
- match?: RawMatchOrAggregateWinner;
13
- aggregate?: RawMatchOrAggregateWinner;
14
- }
15
- //# sourceMappingURL=winner.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"winner.types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/types/winner.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,oBAAoB;IACjC,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,yBAAyB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,oBAAoB,CAAC;CACjC;AAED,MAAM,WAAW,cAAc;IAC3B,KAAK,CAAC,EAAE,yBAAyB,CAAC;IAClC,SAAS,CAAC,EAAE,yBAAyB,CAAC;CACzC"}
@@ -1,35 +0,0 @@
1
- /**
2
- * Sportal365 Sports API - Football Standings
3
- *
4
- * Fetches standings data from the Football API and transforms to canonical FUSports types.
5
- */
6
- import type { FUSportsStandings } from "../../../../types/canonical";
7
- import type { GetFootballStandingsOptions } from "./standing.types";
8
- export type { RawFootballStandingTeam, RawFootballEventStatus, RawFootballFormEvent, RawFootballFormEntry, RawFootballStandingRule, RawFootballStandingEntry, RawFootballStandingsResponse, GetFootballStandingsOptions, FootballStandingsExpandOption, } from "./standing.types";
9
- /**
10
- * Get football standings for a stage
11
- *
12
- * @param options - Options including stageId (required) and expand options
13
- * @returns FUSportsStandings object with entries and metadata (including legend)
14
- *
15
- * @example
16
- * ```typescript
17
- * // Get all standings with form data
18
- * const standings = await getFootballStandings({
19
- * stageId: '8009708',
20
- * expand: ['rules', 'form.events']
21
- * });
22
- *
23
- * // Access entries and metadata
24
- * standings.entries.forEach(entry => {
25
- * console.log(`${entry.rank}. ${entry.competitor.name} - ${entry.stats.points} pts`);
26
- * });
27
- *
28
- * // Access legend for rules/zones
29
- * standings.metadata.legend.forEach(item => {
30
- * console.log(`${item.name} (${item.position})`);
31
- * });
32
- * ```
33
- */
34
- export declare function getFootballStandings(options: GetFootballStandingsOptions): Promise<FUSportsStandings>;
35
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/football/standings/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAErE,OAAO,KAAK,EAAgC,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AAIlG,YAAY,EACR,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACvB,wBAAwB,EACxB,4BAA4B,EAC5B,2BAA2B,EAC3B,6BAA6B,GAChC,MAAM,kBAAkB,CAAC;AAE1B;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,oBAAoB,CAAC,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAkB3G"}
@@ -1,15 +0,0 @@
1
- /**
2
- * Football API Standings Transformer
3
- * Converts raw Football API standings to canonical FUSports types
4
- */
5
- import type { FUSportsStandingEntry, FUSportsStandings } from "../../../../types/canonical";
6
- import type { RawFootballStandingEntry } from "./standing.types";
7
- /**
8
- * Transform a single Football API standing entry to canonical format
9
- */
10
- export declare function transformStandingEntry(raw: RawFootballStandingEntry): FUSportsStandingEntry;
11
- /**
12
- * Transform Football API standing entries to canonical standings with legend
13
- */
14
- export declare function transformStandings(rawEntries: RawFootballStandingEntry[]): FUSportsStandings;
15
- //# sourceMappingURL=standing.transformer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"standing.transformer.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/football/standings/standing.transformer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAER,qBAAqB,EAErB,iBAAiB,EACpB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,wBAAwB,EAAiD,MAAM,kBAAkB,CAAC;AA2EhH;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,wBAAwB,GAAG,qBAAqB,CA+B3F;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,wBAAwB,EAAE,GAAG,iBAAiB,CAuB5F"}
@@ -1,71 +0,0 @@
1
- /**
2
- * Football API Standings Types
3
- * Based on the Football API response structure from /tournaments/seasons/stages/{stageId}/standing
4
- */
5
- import type { NextCacheOptions } from "../../http";
6
- export interface RawFootballStandingTeam {
7
- id: number;
8
- name: string;
9
- slug: string;
10
- three_letter_code: string;
11
- type: string;
12
- gender: string;
13
- short_name: string | null;
14
- uuid: string;
15
- url_logo: string;
16
- form?: RawFootballFormEntry[];
17
- }
18
- export interface RawFootballEventStatus {
19
- id: number;
20
- name: string;
21
- type: string;
22
- code: string;
23
- short_name: string;
24
- uuid: string | null;
25
- }
26
- export interface RawFootballFormEvent {
27
- id: number;
28
- event_status: RawFootballEventStatus;
29
- start_time: string;
30
- home_team: RawFootballStandingTeam;
31
- away_team: RawFootballStandingTeam;
32
- round: string;
33
- goal_home: number;
34
- goal_away: number;
35
- slug: string;
36
- }
37
- export interface RawFootballFormEntry {
38
- outcome: "W" | "L" | "D";
39
- event: RawFootballFormEvent;
40
- }
41
- export interface RawFootballStandingRule {
42
- id: number;
43
- code: string;
44
- name: string;
45
- type: string;
46
- }
47
- export interface RawFootballStandingEntry {
48
- rank: number;
49
- team: RawFootballStandingTeam;
50
- played: number;
51
- wins: number;
52
- draws: number;
53
- defeits: number;
54
- goals_for: number;
55
- goals_against: number;
56
- points: number;
57
- rules: RawFootballStandingRule[];
58
- }
59
- export type RawFootballStandingsResponse = RawFootballStandingEntry[];
60
- /** Expand options for football API standings */
61
- export type FootballStandingsExpandOption = "rules" | "form.events";
62
- /** Options for fetching football standings */
63
- export interface GetFootballStandingsOptions {
64
- /** Stage ID (required) */
65
- stageId: string;
66
- /** Expand options to include additional data (e.g., "rules", "form.events") */
67
- expand?: FootballStandingsExpandOption[];
68
- /** Next.js cache options for ISR/on-demand revalidation */
69
- next?: NextCacheOptions;
70
- }
71
- //# sourceMappingURL=standing.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"standing.types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/football/standings/standing.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAMnD,MAAM,WAAW,uBAAuB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,oBAAoB,EAAE,CAAC;CACjC;AAMD,MAAM,WAAW,sBAAsB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UA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EAAE,6BAA6B,EAAE,CAAC;IACzC,2DAA2D;IAC3D,IAAI,CAAC,EAAE,gBAAgB,CAAC;CAC3B"}
@@ -1,25 +0,0 @@
1
- /**
2
- * Sportal365 Sports API - Football Teams
3
- *
4
- * Fetches team data and transforms to canonical FUSports types.
5
- */
6
- import type { FUSportsCompetitor } from "../../../../types/canonical";
7
- import type { GetFootballTeamOptions } from "./team.types";
8
- export type { GetFootballTeamOptions } from "./team.types";
9
- /**
10
- * Get a football team by ID, UUID, or slug
11
- *
12
- * Always fetches with `optional_data=form` to include recent match form.
13
- *
14
- * @param teamId - The team ID, UUID, or slug
15
- * @param options - Optional parameters
16
- * @returns Canonical FUSportsCompetitor
17
- *
18
- * @example
19
- * ```typescript
20
- * const team = await getFootballTeam('102');
21
- * console.log(team.name); // "Manchester United"
22
- * ```
23
- */
24
- export declare function getFootballTeam(teamId: string, options?: GetFootballTeamOptions): Promise<FUSportsCompetitor>;
25
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/football/teams/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAGtE,OAAO,KAAK,EAAkB,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAI3E,YAAY,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAE3D;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,eAAe,CACjC,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,sBAA2B,GACrC,OAAO,CAAC,kBAAkB,CAAC,CAa7B"}
@@ -1,58 +0,0 @@
1
- /**
2
- * Team-specific types for Sportal365 Sports API
3
- * Types specific to team entities and team profile responses
4
- */
5
- import type { RawAssets, RawCountry, RawVenue, RawSeason, RawFormMatch } from "../../shared/types";
6
- import type { NextCacheOptions } from "../../http";
7
- export interface RawTeamSocial {
8
- web?: string;
9
- twitter_id?: string;
10
- facebook_id?: string;
11
- instagram_id?: string;
12
- wikipedia_id?: string;
13
- }
14
- export interface RawCoach {
15
- id: string;
16
- name: string;
17
- slug: string;
18
- country: RawCountry;
19
- birthdate: string;
20
- gender: "MALE" | "FEMALE";
21
- assets: RawAssets | null;
22
- uuid: string;
23
- }
24
- export interface RawShirtColor {
25
- type: "home" | "away";
26
- color_code: string;
27
- }
28
- export interface GetFootballTeamOptions {
29
- /** Language code for translations (e.g., 'en', 'bg'). Defaults to 'en' */
30
- languageCode?: string;
31
- /** Next.js cache options for ISR/on-demand revalidation */
32
- next?: NextCacheOptions;
33
- }
34
- /**
35
- * Full team profile response from /v2/teams/{id}?optional_data=form
36
- */
37
- export interface RawTeamProfile {
38
- id: string;
39
- name: string;
40
- slug: string;
41
- three_letter_code: string;
42
- short_name: string | null;
43
- type: "club" | "national" | "placeholder";
44
- founded: number;
45
- country: RawCountry;
46
- venue: RawVenue;
47
- social: RawTeamSocial;
48
- coach: RawCoach | null;
49
- president: unknown | null;
50
- gender: "MALE" | "FEMALE";
51
- active_seasons: RawSeason[];
52
- assets: RawAssets;
53
- shirt_colors: RawShirtColor[];
54
- uuid: string;
55
- current_season: RawSeason;
56
- form: RawFormMatch[];
57
- }
58
- //# sourceMappingURL=team.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"team.types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/football/teams/team.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACnG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAMnD,MAAM,WAAW,aAAa;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CA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C9B,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,SAAS,CAAC;IAC1B,IAAI,EAAE,YAAY,EAAE,CAAC;CACxB"}
@@ -1,11 +0,0 @@
1
- /**
2
- * Team transformation utilities
3
- * Transforms raw API responses to canonical FUSports types
4
- */
5
- import type { FUSportsCompetitor } from "../../../../types/canonical";
6
- import type { RawTeamProfile } from "./team.types";
7
- /**
8
- * Transform raw team profile to canonical FUSportsCompetitor
9
- */
10
- export declare function transformTeam(raw: RawTeamProfile): FUSportsCompetitor;
11
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/football/teams/utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD;;GAEG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,cAAc,GAAG,kBAAkB,CA4BrE"}
@@ -1,54 +0,0 @@
1
- /**
2
- * Sportal365 Sports API - HTTP client factory
3
- * Creates sport-specific HTTP clients for Sportal365 APIs
4
- */
5
- /**
6
- * Next.js cache options for fetch requests
7
- * @see https://nextjs.org/docs/app/api-reference/functions/fetch#optionsnext
8
- */
9
- export interface NextCacheOptions {
10
- /** Time in seconds to cache the response. Set to 0 to disable caching. */
11
- revalidate?: number | false;
12
- /** Cache tags for on-demand revalidation with revalidateTag() */
13
- tags?: string[];
14
- }
15
- export interface RequestOptions {
16
- /** API path (e.g., '/v2/matches/123') */
17
- path: string;
18
- /** Query parameters */
19
- params?: Record<string, string | string[] | undefined>;
20
- /** Next.js cache options for ISR/on-demand revalidation */
21
- next?: NextCacheOptions;
22
- }
23
- export interface Sportal365HttpClient {
24
- /**
25
- * Make a GET request to the Sportal365 Sports API
26
- *
27
- * Handles:
28
- * - Authentication (Basic Auth)
29
- * - Project ID header
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 Sportal365 API domain
40
- *
41
- * @param domain - The base URL for the API (e.g., 'https://football.api.sportal365.com')
42
- * @returns HTTP client configured for the specified domain
43
- *
44
- * @example
45
- * ```typescript
46
- * import { createHttpClient } from '../http';
47
- * import { SPORTAL365_FOOTBALL_DOMAIN } from '../constants';
48
- *
49
- * const footballHttp = createHttpClient(SPORTAL365_FOOTBALL_DOMAIN);
50
- * const data = await footballHttp.get({ path: '/v2/matches/123' });
51
- * ```
52
- */
53
- export declare function createHttpClient(domain: string): Sportal365HttpClient;
54
- //# sourceMappingURL=http.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/lib/api/sportal365-sports/http.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC7B,0EAA0E;IAC1E,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC5B,iEAAiE;IACjE,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,cAAc;IAC3B,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,uBAAuB;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC;IACvD,2DAA2D;IAC3D,IAAI,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAED,MAAM,WAAW,oBAAoB;IACjC;;;;;;;;;;;OAWG;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,CA4DrE"}
@@ -1,10 +0,0 @@
1
- /**
2
- * Sportal365 Sports API
3
- *
4
- * API layer for communicating with Sportal365 Sports API.
5
- * All public functions return canonical FUSports types.
6
- */
7
- export { getFootballMatch, getFootballMatchEvents, getFootballMatchLineups, getFootballMatchOdds, getFootballMatchStatistics, getFootballMatchCommentary, getFootballMatches, getFootballTeam, getFootballCompetition, getFootballSeasonDetails, getFootballStandings, } from "./football";
8
- export type { GetFootballMatchOptions, GetFootballMatchEventsOptions, GetFootballMatchLineupsOptions, GetFootballMatchOddsOptions, GetFootballMatchStatisticsOptions, GetFootballMatchCommentaryOptions, GetFootballMatchesOptions, GetFootballTeamOptions, GetFootballCompetitionOptions, GetFootballSeasonDetailsOptions, GetFootballStandingsOptions, FootballStandingsExpandOption, OddType, ScopeType, OddFormat, MarketType, OptionalMatchData, MatchStatusType, SortDirection, } from "./football";
9
- export type { NextCacheOptions } from "./http";
10
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/api/sportal365-sports/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACH,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,0BAA0B,EAC1B,0BAA0B,EAC1B,kBAAkB,EAClB,eAAe,EACf,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,GACvB,MAAM,YAAY,CAAC;AAEpB,YAAY,EACR,uBAAuB,EACvB,6BAA6B,EAC7B,8BAA8B,EAC9B,2BAA2B,EAC3B,iCAAiC,EACjC,iCAAiC,EACjC,yBAAyB,EACzB,sBAAsB,EACtB,6BAA6B,EAC7B,+BAA+B,EAC/B,2BAA2B,EAC3B,6BAA6B,EAC7B,OAAO,EACP,SAAS,EACT,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,aAAa,GAChB,MAAM,YAAY,CAAC;AAGpB,YAAY,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Shared types and utilities for Sportal365 Sports API
3
- */
4
- export * from './types';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/api/sportal365-sports/shared/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC"}