-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathqueryKeys.ts
More file actions
43 lines (43 loc) · 1.35 KB
/
queryKeys.ts
File metadata and controls
43 lines (43 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
export const queryKeys = {
googleCalendar: {
all: ['googleCalendar'] as const,
calendars: () => ['googleCalendar', 'calendars'] as const,
events: (calendarId: string, timeMin: string, timeMax: string) =>
['googleCalendar', 'events', calendarId, timeMin, timeMax] as const,
},
applicants: {
all: ['clubApplicants'] as const,
detail: (applicationFormId: string) =>
['clubApplicants', applicationFormId] as const,
},
application: {
all: ['applicationForm'] as const,
detail: (clubId: string, applicationFormId: string) =>
['applicationForm', clubId, applicationFormId] as const,
},
club: {
all: ['clubs'] as const,
detail: (clubParam: string) => ['clubDetail', clubParam] as const,
calendarEvents: (clubParam: string) =>
['clubCalendarEvents', clubParam] as const,
list: (
keyword: string,
recruitmentStatus: string,
category: string,
division: string,
) => ['clubs', keyword, recruitmentStatus, category, division] as const,
},
promotion: {
all: ['promotions'] as const,
list: () => ['promotions', 'list'] as const,
},
banner: {
all: ['banner'] as const,
list: (type: 'WEB' | 'APP_HOME' | 'WEB_MOBILE') =>
['banner', type] as const,
},
game: {
all: ['game'] as const,
ranking: () => ['game', 'ranking'] as const,
},
} as const;