import {Order} from "../../components/UI/DuaList/ListHeader/ListHead"
import { GetRequestParams } from "../Axios"
import {FilterStatusType} from "../ReactComponents";

// export interface RescomProject {
//     Κωδικός_Έργου: number,
//     Τίτλος: string,
//     Προϋπολογισμός: number,
//     Έναρξη: string
//     Λήξη: string,
//     Κωδικός_Τμήματος: number,
//     Τμήμα: string,
//     Φορολογική_Διάκριση: string
// }


export interface RescomProject {
    data:any;
    // ui_status: ProjectStatus;
    ui_status: any;
    a1_ready: boolean;
    active_contracts:any
    inactive_contracts:any
    project_managers:any
    project_snapshots:any
    available_project_managers:any
    project_data:any
    project_code: number,
    project_type: string,
    project_type_id: number,
    project_start_date: string,
    project_end_date: string,
    project_duration: string,
    project_ncsr_budget: string,
    project_status: string,
    project_status_id: number,
    project_cost_type: string,
    project_cost_type_id: string,
    scientific_supervisor_fullname: string,
    deputy_scientific_supervisor_fullname: string,
    scientific_supervisor_code: string,
    scientific_supervisor_title: string,
    unit_acronym: string,
    unit_code: string,
    project_title_el: string,
    project_entity: string,
    project_contribution_type: string,
    active_counters:number,
    inactive_counters:number,
    managers_count:number,
    grant_agreement_number:number,
    extra:any,
}

export interface GetRescomProjectParams extends GetRequestParams {
    project_entity: string;
    project_status_id:number;
    unit_code: any;
    ui_status:any;
    order: Order,
    order_by: string
    search: string
    role?: string
}

export interface ProjectStatus {
    new_name: string
    description: string
    id: number
    name: string
    view_name: string
    view_name_el: string
    view_name_plural: string
    type: FilterStatusType
    ui_type?: FilterStatusType
}
