cineclub-site/front/composables/types.ts

50 lines
890 B
TypeScript
Raw Normal View History

export enum Format {
ANALOG_35 = "35mm",
2022-04-09 02:48:03 +02:00
DIGITAL = "Numérique",
}
export enum LanguageSubtitles {
FRENCH = "VOF",
FOREIGN = "VOSTFR",
2022-12-04 03:11:55 +01:00
DUBBED = "VF",
}
export type Film = {
2022-04-09 00:34:47 +02:00
id?: number
projectionDate?: string
2022-04-09 00:34:47 +02:00
title?: string
actors?: string[]
director?: string
duration?: string
2022-04-09 00:34:47 +02:00
synopsis?: string
originCountry?: string
releaseYear?: number
2022-07-13 02:18:06 +02:00
facebookEventLink?: string
2022-04-09 00:34:47 +02:00
trailerLink?: string
isInColor?: boolean
movieFormat?: Format
languageSubtitles?: LanguageSubtitles
posterLink?: string
bannerLink?: string
isConfirmed?: boolean
2022-12-04 01:25:56 +01:00
tmdbId?: number
}
export type ShortFilm = {
id: number
projectionDate: Date
title: string
director?: string
}
2022-07-14 06:03:55 +02:00
export type FilmsByMonth = {
projectionMonth: string
films: Film[]
}
export type PaginatedResponse<T> = {
results: T[]
currentPage: number
totalResults: number
totalPages: number
}