regions-query-keys.tsx 677 B

123456789101112131415
  1. export const regionsQueryKeys = {
  2. getMegaregions: (token: string) => ['getMegaregions', { token }] as const,
  3. setTCCRegion: () => ['setTCCRegion'] as const,
  4. getVisits: (token: string, region: number) => ['getVisits', { region, token }] as const,
  5. getRegions: (
  6. token: string,
  7. megaregion: number | 'all' | undefined,
  8. country: number | 'all' | undefined
  9. ) => ['getRegions', { megaregion, country, token }] as const,
  10. addVisit: () => ['addVisit'] as const,
  11. updateVisit: () => ['updateVisit'] as const,
  12. deleteVisit: () => ['deleteVisit'] as const,
  13. getSingleRegion: () => ['getSingleRegion'] as const,
  14. setNotVisited: () => ['setNotVisited'] as const
  15. };