import { ScheduleType } from '~/pages/event/types/GenEventSearch';
import { Picker } from '../util';
export default interface EduEventSearch {
    eventName: string;
    year: string;
    group: { id: string, displayName: string };
    type: { id: string, displayName: string };
}

export interface EduEventSearchFormData {
    eventName: string;
    year: string;
    group: string;
    type: string;
    onlyQualification: boolean;

}
export interface EduEventSortFilter {
    sortByKey: string;
    sortDirection: string;
    onlyQualification: boolean;
}
export interface EduEventSortFilterFormData {
    sortByKey: string;
    sortDirection: string;
}

export enum EduEventMyEventRelationType {
    ALL = '',
    PARTICIPANT = 'participant',
    TEAM = 'team',
    MYUNIT = 'myunit',
    MYUNITSUBORDINATE = 'myunit',
}

export const formattedEduEventMyEventRel: Picker[] = [
    { key: EduEventMyEventRelationType.ALL, label: 'vše' },
    { key: EduEventMyEventRelationType.PARTICIPANT, label: 'Jsem účastník' },
    { key: EduEventMyEventRelationType.TEAM, label: 'Jsem v týmu' },
    { key: EduEventMyEventRelationType.MYUNIT, label: 'Pořádá moje jednotka' },
    { key: EduEventMyEventRelationType.MYUNITSUBORDINATE, label: 'Pořádá podřízená jednotka' },
];

export interface EduEventMySearchFormData {
    year: string;
    type: { id: string, displayName: string };
    relation: EduEventMyEventRelationType;
    schedule: ScheduleType;
    unit: string;
}
