FitTrackee/fittrackee_client/src/store/constants.ts

67 lines
1.3 KiB
TypeScript

import {
AuthUserActions,
AuthUserGetters,
AuthUserMutations,
} from '@/store/modules/authUser/enums'
import {
RootActions,
RootGetters,
RootMutations,
} from '@/store/modules/root/enums'
import {
SportsActions,
SportsGetters,
SportsMutation,
} from '@/store/modules/sports/enums'
import {
StatisticsActions,
StatisticsGetters,
StatisticsMutations,
} from '@/store/modules/statistics/enums'
import {
UsersActions,
UsersGetters,
UsersMutations,
} from '@/store/modules/users/enums'
import {
WorkoutsActions,
WorkoutsGetters,
WorkoutsMutations,
} from '@/store/modules/workouts/enums'
export const ROOT_STORE = {
ACTIONS: RootActions,
GETTERS: RootGetters,
MUTATIONS: RootMutations,
}
export const SPORTS_STORE = {
ACTIONS: SportsActions,
GETTERS: SportsGetters,
MUTATIONS: SportsMutation,
}
export const STATS_STORE = {
ACTIONS: StatisticsActions,
GETTERS: StatisticsGetters,
MUTATIONS: StatisticsMutations,
}
export const AUTH_USER_STORE = {
ACTIONS: AuthUserActions,
GETTERS: AuthUserGetters,
MUTATIONS: AuthUserMutations,
}
export const USERS_STORE = {
ACTIONS: UsersActions,
GETTERS: UsersGetters,
MUTATIONS: UsersMutations,
}
export const WORKOUTS_STORE = {
ACTIONS: WorkoutsActions,
GETTERS: WorkoutsGetters,
MUTATIONS: WorkoutsMutations,
}