events-query-keys.tsx 1.1 KB

1234567891011121314151617181920
  1. export const eventsQueryKeys = {
  2. getEventsList: (token: string, past: number) => ['getEventsList', token, past] as const,
  3. getEvent: (token: string, url: string) => ['getEvent', { token, url }] as const,
  4. joinEvent: () => ['joinEvent'] as const,
  5. unjoinEvent: () => ['unjoinEvent'] as const,
  6. uploadTempFile: () => ['uploadTempFile'] as const,
  7. eventAddFile: () => ['eventAddFile'] as const,
  8. deleteFile: () => ['deleteFile'] as const,
  9. uploadPhoto: () => ['uploadPhoto'] as const,
  10. getMorePhotos: (token: string, event_id: number, last_id: number) =>
  11. ['getMorePhotos', { token, event_id, last_id }] as const,
  12. canAddEvent: (token: string) => ['canAddEvent', token] as const,
  13. getPhotosForRegion: () => ['getPhotosForRegion'] as const,
  14. getPhotosForRegionQuery: (region_id: number) => ['getPhotosForRegionQuery', region_id] as const,
  15. addEvent: () => ['addEvent'] as const,
  16. getEventForEditing: () => ['getEventForEditing'] as const,
  17. updateEvent: () => ['updateEvent'] as const,
  18. cancelEvent: () => ['cancelEvent'] as const,
  19. removeParticipant: () => ['removeParticipant'] as const
  20. };