Skip to content
Snippets Groups Projects
exploration.model.ts 634 B
Newer Older
  • Learn to ignore specific revisions
  • /* eslint-disable camelcase */
    
    Bastien DUMONT's avatar
    Bastien DUMONT committed
    import { FluidType } from 'enum/fluid.enum'
    
    import {
      UserExplorationState,
      UserExplorationType,
    } from 'enum/userExploration.enum'
    import { DateTime } from 'luxon'
    
    export interface ExplorationEntity {
      id: string
      state: UserExplorationState
      description: string
    
      complementary_description: string
    
      target: number
      type: UserExplorationType
      date: string | null
      ecogesture_id: string
      fluid_condition: FluidType[]
    
      message_success: string
    
    }
    
    export interface UserExploration extends Omit<ExplorationEntity, 'date'> {
      progress: number
      date: DateTime | null
    }