Skip to content
Snippets Groups Projects
profile.model.ts 999 B
import { DateTime } from 'luxon'
import { ProfileType } from './profileType.model'

interface Tutorial {
  isWelcomeSeen: boolean
}

export interface ProfileEntity {
  id: string
  ecogestureHash: string
  challengeHash: string
  duelHash: string
  quizHash: string
  explorationHash: string
  isFirstConnection: boolean
  GCUApprovalDate: string | null
  lastConnectionDate: string
  haveSeenLastAnalysis: boolean
  haveSeenOldFluidModal: string | boolean
  sendAnalysisNotification: boolean
  monthlyAnalysisDate: string
  profileType: ProfileType
  isProfileTypeCompleted: boolean
  tutorial: Tutorial
  _id?: string
  _rev?: string
}

export interface Profile
  extends Omit<
    ProfileEntity,
    | 'GCUApprovalDate'
    | 'haveSeenOldFluidModal'
    | 'lastConnectionDate'
    | 'monthlyAnalysisDate'
  > {
  GCUApprovalDate: DateTime | null
  lastConnectionDate: DateTime
  haveSeenOldFluidModal: DateTime | boolean
  monthlyAnalysisDate: DateTime
}