-
Rémi PAILHAREY authoredRémi PAILHAREY authored
profile.model.ts 1.28 KiB
import { DateTime } from 'luxon'
interface Onboarding {
isWelcomeSeen: boolean
}
export interface ProfileEntity {
id: string
ecogestureHash: string
challengeHash: string
duelHash: string
quizHash: string
explorationHash: string
isFirstConnection: boolean
lastConnectionDate: string
haveSeenLastAnalysis: boolean
sendAnalysisNotification: boolean
isAnalysisReminderEnabled: boolean
monthlyAnalysisDate: string
sendConsumptionAlert: boolean
waterDailyConsumptionLimit: number
isProfileTypeCompleted: boolean
isProfileEcogestureCompleted: boolean
onboarding: Onboarding
mailToken: string
partnersIssueSeenDate: {
enedis?: string
egl?: string
grdf?: string
}
haveSeenEcogestureModal: boolean
activateHalfHourDate: string
customPopupDate: string
_id?: string
_rev?: string
}
export interface Profile
extends Omit<
ProfileEntity,
| 'lastConnectionDate'
| 'monthlyAnalysisDate'
| 'partnersIssueSeenDate'
| 'activateHalfHourDate'
| 'customPopupDate'
> {
lastConnectionDate: DateTime
monthlyAnalysisDate: DateTime
partnersIssueSeenDate: {
enedis: DateTime
egl: DateTime
grdf: DateTime
}
customPopupDate: DateTime
activateHalfHourDate: DateTime
}