Newer
Older
import { createSteeringURL } from '@/api'
import { Category, FundingCategory, Host, Language, MusicFocus, Topic, Type } from '@/types'
import { steeringAuthInit } from '@/stores/auth'
import { createUnpaginatedAPIStore } from '@/stores/util'
export { useAuthStore, useUserStore } from '@/stores/auth'
export { useImageStore } from '@/stores/images'
export { useLicenseStore } from '@/stores/licenses'
export { useNoteStore } from '@/stores/notes'
export { usePlaylistStore } from '@/stores/playlists'
export { usePlayoutStore } from '@/stores/playout'
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
export { useScheduleStore } from '@/stores/schedules'
export { useShowStore } from '@/stores/shows'
export { useTimeSlotStore } from '@/stores/timeslots'
export const useFundingCategoryStore = createUnpaginatedAPIStore<FundingCategory>(
'fundingCategories',
createSteeringURL.prefix('funding-categories'),
steeringAuthInit,
{ syncOnAuth: true },
)
export const useCategoryStore = createUnpaginatedAPIStore<Category>(
'categories',
createSteeringURL.prefix('categories'),
steeringAuthInit,
{ syncOnAuth: true },
)
export const useLanguageStore = createUnpaginatedAPIStore<Language>(
'languages',
createSteeringURL.prefix('languages'),
steeringAuthInit,
{ syncOnAuth: true },
)
export const useTopicStore = createUnpaginatedAPIStore<Topic>(
'topics',
createSteeringURL.prefix('topics'),
steeringAuthInit,
{ syncOnAuth: true },
)
export const useTypeStore = createUnpaginatedAPIStore<Type>(
'types',
createSteeringURL.prefix('types'),
steeringAuthInit,
{ syncOnAuth: true },
)
export const useMusicFocusStore = createUnpaginatedAPIStore<MusicFocus>(
'musicFocuses',
createSteeringURL.prefix('music-focus'),
steeringAuthInit,
{ syncOnAuth: true },
)
export const useHostStore = createUnpaginatedAPIStore<Host>(
'hosts',
createSteeringURL.prefix('hosts'),
steeringAuthInit,
{ syncOnAuth: true },
)