Skip to content
Snippets Groups Projects
consent.model.ts 611 B
Newer Older
  • Learn to ignore specific revisions
  • import { DateTime } from 'luxon'
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
    export interface IConsent
      extends Omit<ConsentEntity, 'CreatedAt' | 'endDate' | 'inseeCode'> {
    
      startDate: DateTime
      endDate: DateTime
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
    }
    
    export interface ConsentEntity {
      ID: number
      CreatedAt: string
      endDate: string
      firstname: string
      lastname: string
      pointID: number
      address: string
      postalCode: string
      inseeCode: string
    
    Bastien DUMONT's avatar
    Bastien DUMONT committed
      city: string
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
    }
    
    export interface IConsentPagination
      extends Omit<ConsentPaginationEntity, 'rows'> {
      rows: IConsent[]
    }
    
    export interface ConsentPaginationEntity {
      totalRows: number
      totalPages: number
      rows: ConsentEntity[]
    }