import {FilterStatusType} from "../ReactComponents";

export interface EmailAccount {

    ldap_status: boolean,
    dua_active_status: boolean,
    afm: string,
    personal_email: string,
    demokritos_email:  string,
    collaboration_type:  string,
    unit: string,
    unit_category_id: number
    building:  string,
    partner:  string,
    office: string,
    created_at: string
    id: number
    title: string
    type?: EmailAccountType
    username: string
    firstname_en: string
    lastname_en: string
    mobile_phone: string
    research_group: string
    operator_dua_id: number
    department: string
    firstname: string
    lastname: string
    phone: string
    scientific_supervisor_lastname: string
    scientific_supervisor_firstname: string
    ldap: 0 | 1
    dua_active: 0 | 1
}

export interface GetEmailAccountsParams {

    types: string[]
    page: number
    page_size: number
    search?: string
}

export interface EmailAccountType {
    new_name: string
    description: string
    id: number
    name: 'active' | 'emergency' | 'inactive'
    view_name: string
    view_name_plural: string
    ui_type: FilterStatusType
}
