import { Institution } from './institution' import { Portal } from './portal' import { Nullable } from './utils' export type Affiliation = { cachedConfirmedAt: Nullable cachedEntitlement: Nullable cachedLastDayToReconfirm: Nullable cachedPastReconfirmDate: boolean cachedReconfirmedAt: Nullable department: Nullable domainCapturedByGroup?: boolean inReconfirmNotificationPeriod: boolean inferred: boolean institution: Institution licence: 'free' | 'pro_plus' pastReconfirmDate: boolean portal: Portal role: Nullable group?: { domainCaptureEnabled: boolean managedUsersEnabled: boolean _id: string } }