import {Event, Registration} from "./services/event.service";

export interface CalendarEvent{
  event: Event;
  registrations: Registration;
}

export interface PasswordChangeRequest{
  passwordOld: string;
  password: string;
}


export const RegistrationErrors ={
  CARD_NOT_FOUND : 1,
  CUSTOMER_NOT_FOUND : 2,
  TICKET_NOT_FOUND : 3,
  NO_FREE_SEATS : 4,
  EVENT_TYPE_NOT_FOUND : 5,
  TICKET_INSUFFICIENT : 6,
  UNKNOWN_ERROR : 7,
  MAX_SEAT_COUNT_EXCEEDED : 8,
  EVENT_UNAVAILABLE : 9,
  ALREADY_REGISTERED : 10,
  EVENT_START_DATE_IN_PAST : 11,
  EVENT_NOT_FOUND: 12,
  ALREADY_CANCELLED: 13,
  ALREADY_DELETED: 14,
  CANCEL_TIME_LIMIT_REACHED: 15
}

export interface TimeTableFilter {
  idEventType: number;
  idTrainer: number;
}
