| 123456789101112131415 |
- export const regionsQueryKeys = {
- getMegaregions: (token: string) => ['getMegaregions', { token }] as const,
- setTCCRegion: () => ['setTCCRegion'] as const,
- getVisits: (token: string, region: number) => ['getVisits', { region, token }] as const,
- getRegions: (
- token: string,
- megaregion: number | 'all' | undefined,
- country: number | 'all' | undefined
- ) => ['getRegions', { megaregion, country, token }] as const,
- addVisit: () => ['addVisit'] as const,
- updateVisit: () => ['updateVisit'] as const,
- deleteVisit: () => ['deleteVisit'] as const,
- getSingleRegion: () => ['getSingleRegion'] as const,
- setNotVisited: () => ['setNotVisited'] as const
- };
|