Newer
Older
import { UserChallengeState, UserChallengeSuccess } from 'enums'
UserDuel,
UserDuelEntity,
UserExploration,
UserQuiz,
export interface ChallengeState {
userChallengeList: UserChallenge[]
currentChallenge: UserChallenge | null
currentDataload: Dataload[]
export interface ChallengeEntity {
id: string
title: string
description: string
target: number
relationships: {
quiz: {
data: Relation
}
duel: {
data: Relation
}
exploration: { data: Relation[] }
}
export interface UserChallengeEntity {
Hugo
committed
title: string
Hugo
committed
description: string
progress: {
quizProgress: number
explorationProgress: number
actionProgress: number
}
success: UserChallengeSuccess
startDate: string | null
endingDate: string | null
exploration: UserExploration
export interface UserChallenge
extends Omit<
UserChallengeEntity,
'startDate' | 'endingDate' | 'duel' | 'action'
> {
startDate: DateTime | null
endingDate: DateTime | null