fids/browser-domain/src/Types.d.ts

53 lines
908 B
TypeScript

export interface Credentials {
password: string;
email: string;
username?: string;
}
export interface Token {
refresh_token: string;
access_token: string;
}
export interface TokenData {
sub: string;
airline: boolean;
}
export interface User {
id: number;
username: string;
email: string;
created_date?: Date;
}
export interface Zone {
id: number;
name: string;
}
export interface Flight {
id: number,
flight_code: string;
status: string;
origin: string;
destination: string;
departure_time: string;
arrival_time: string;
gate: string;
}
export interface FlightCreate {
flight_code: string;
status: string;
origin: string;
destination: string;
departure_time: string;
arrival_time: string;
gate: string;
}
export interface SubscriptionsCreate {
flight_id: number;
user_id: number;
}