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


export interface CardRequest {
    id: number
    issuer_id: number
    issuer: string
    operator_id: number,
    operator: string
    company_code: string
    firstname: string
    lastname: string,
    firstname_en: string
    lastname_en: string
    father_name: string
    mother_name: string
    afm: string
    gender: string
    office_phone: string
    mobile: string
    contract_start_date: string
    contract_end_date: string
    scientific_supervisor: string
    ydep_id: number
    ydep_info: string
    unit_id: number
    unit_acronym: string
    work_relation: string
    extend_until_date: string
    comments: string
    card_delivered_date: null,
    card_returned_date: null,
    specialization: string
    staff_category: string
    created_at: string
    updated_at: string
    building?: string;
    email?: string;
    personal_email?: string
    type: CardRequestType
    status: CardRequestStatus
    partner: string
    research_group: string
    floor: string
    office: string
    collaboration_type: string
}

export interface CardRequestStatus {
    id: number
    name: 'pending' | 'completed' | 'cancelled' | 'in_error' | 'ready'
    view_name_en: string
    view_name: string
    view_name_el: string
    description: string
    ui_type: FilterStatusType
}

export interface CardRequestType {
    id: number
    name: 'temp_card_extension' | 'renew_card' | 'remove_card' |'new_card'
    view_name: string
    description: string
    ui_type: FilterStatusType
}

