71 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			71 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { resources } from "@lib/resources.ts";
 | |
| 
 | |
| 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;
 | |
| }
 | |
| 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;
 | |
| }
 | |
| 
 | |
| export type GenericResource = {
 | |
|   name: string;
 | |
|   id: string;
 | |
|   tags?: string[];
 | |
|   type: keyof typeof resources;
 | |
|   content?: string;
 | |
|   meta?: {
 | |
|     image?: string;
 | |
|     author?: string;
 | |
|     rating?: number;
 | |
|     average?: string;
 | |
|     date?: Date | string;
 | |
|     thumbnail?: string;
 | |
|   };
 | |
| };
 | |
| 
 | |
| export interface GiteaOauthUser {
 | |
|   sub: string;
 | |
|   name: string;
 | |
|   preferred_username: string;
 | |
|   email: string;
 | |
|   picture: string;
 | |
|   groups: any;
 | |
| }
 | |
| 
 | |
| export type SearchResult = {
 | |
|   id: string;
 | |
|   name: string;
 | |
|   type: keyof typeof resources;
 | |
|   date?: string;
 | |
|   rating: number;
 | |
|   tags: string[];
 | |
|   description?: string;
 | |
|   image?: string;
 | |
| };
 |