Describe the bug
The GetGamesByFiltersParams type in @azuro-org/toolkit currently lacks a countrySlug field. This omission makes it impossible to distinguish between leagues that share the exact same leagueSlug but belong to different countries (e.g., "Premier League" in different regions or generic league names like "Cup").
To Reproduce
- Attempt to fetch games using
GetGamesByFiltersParams for a specific country's league.
- Notice that if another country has a league with the identical
leagueSlug, the filters cannot uniquely isolate the desired league due to the missing country identifier.
Expected behavior
GetGamesByFiltersParams should include an optional (or required, depending on the architecture) countrySlug: string field. This ensures that queries can accurately scope leagues down to their respective countries and avoid data collision.
Suggested Solution
Update the type definition to include countrySlug:
export type GetGamesByFiltersParams = {
sportSlug: string
countrySlug?: string // <-- Add this field
leagueSlug?: string
// ... other existing fields
}
Describe the bug
The
GetGamesByFiltersParamstype in@azuro-org/toolkitcurrently lacks acountrySlugfield. This omission makes it impossible to distinguish between leagues that share the exact sameleagueSlugbut belong to different countries (e.g., "Premier League" in different regions or generic league names like "Cup").To Reproduce
GetGamesByFiltersParamsfor a specific country's league.leagueSlug, the filters cannot uniquely isolate the desired league due to the missing country identifier.Expected behavior
GetGamesByFiltersParamsshould include an optional (or required, depending on the architecture)countrySlug: stringfield. This ensures that queries can accurately scope leagues down to their respective countries and avoid data collision.Suggested Solution
Update the type definition to include
countrySlug: