Skip to content
Snippets Groups Projects
grdfConsent.ts 671 B
Newer Older
  • Learn to ignore specific revisions
  • Bastien DUMONT's avatar
    Bastien DUMONT committed
    import { DateTime } from 'luxon'
    export interface IGrdfConsent
      extends Omit<GrdfConsentEntity, 'CreatedAt' | 'endDate' | 'inseeCode'> {
      startDate: DateTime
      endDate: DateTime
    }
    
    export interface GrdfConsentEntity {
      ID: number
      CreatedAt: string
      endDate: string
      firstname: string
      lastname: string
      pointID: number
      address: string
      postalCode: string
      inseeCode: string
      city: string
      safetyOnBoarding: boolean
    }
    
    export interface IGrdfConsentPagination
      extends Omit<GrdfConsentPaginationEntity, 'rows'> {
      rows: IGrdfConsent[]
    }
    
    export interface GrdfConsentPaginationEntity {
      totalRows: number
      totalPages: number
      rows: GrdfConsentEntity[]
    }