memorium/lib/types.ts

71 lines
1.3 KiB
TypeScript
Raw Permalink Normal View History

2023-08-06 17:47:26 +02:00
import { resources } from "@lib/resources.ts";
2023-07-31 04:19:04 +02:00
export interface TMDBMovie {
adult: boolean;
backdrop_path: string;
genre_ids: number[];
id: number;
original_language: string;
original_title: string;
overview: string;
popularity: number;
poster_path: string;
release_date: string;
title: string;
video: boolean;
vote_average: number;
vote_count: number;
}
2023-08-08 21:50:23 +02:00
export interface TMDBSeries {
adult: boolean;
backdrop_path: string;
genre_ids: number[];
id: number;
origin_country: string[];
original_language: string;
original_name: string;
overview: string;
popularity: number;
poster_path: string;
first_air_date: string;
name: string;
vote_average: number;
vote_count: number;
}
2023-08-04 22:35:25 +02:00
2023-08-12 18:32:56 +02:00
export type GenericResource = {
name: string;
id: string;
2023-09-08 13:33:29 +02:00
tags?: string[];
2023-08-12 18:32:56 +02:00
type: keyof typeof resources;
2025-01-05 23:14:19 +01:00
content?: string;
2023-08-12 18:32:56 +02:00
meta?: {
image?: string;
author?: string;
rating?: number;
2023-08-12 18:32:56 +02:00
average?: string;
2023-08-29 13:48:52 +02:00
date?: Date | string;
2023-08-12 18:32:56 +02:00
thumbnail?: string;
};
};
2023-08-04 22:35:25 +02:00
export interface GiteaOauthUser {
sub: string;
name: string;
preferred_username: string;
email: string;
picture: string;
groups: any;
}
2023-08-06 17:47:26 +02:00
2025-01-05 23:14:19 +01:00
export type SearchResult = {
2023-08-08 11:03:20 +02:00
id: string;
2023-08-06 17:47:26 +02:00
name: string;
type: keyof typeof resources;
date?: string;
rating: number;
tags: string[];
description?: string;
image?: string;
2023-08-08 11:03:20 +02:00
};