generated from nhcarrigan/template
feat: add manga and shows collections
This commit is contained in:
@@ -7,5 +7,7 @@ export * from "./lib/game.types";
|
||||
export * from "./lib/book.types";
|
||||
export * from "./lib/music.types";
|
||||
export * from "./lib/art.types";
|
||||
export * from "./lib/show.types";
|
||||
export * from "./lib/manga.types";
|
||||
export type * from "./lib/auth.types";
|
||||
export * from "./lib/comment.types";
|
||||
@@ -19,6 +19,8 @@ export interface Comment {
|
||||
bookId?: string;
|
||||
musicId?: string;
|
||||
artId?: string;
|
||||
showId?: string;
|
||||
mangaId?: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* @copyright 2026 NHCarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
export enum MangaStatus {
|
||||
reading = "READING",
|
||||
completed = "COMPLETED",
|
||||
wantToRead = "WANT_TO_READ",
|
||||
}
|
||||
|
||||
export interface Manga {
|
||||
id: string;
|
||||
title: string;
|
||||
author: string;
|
||||
status: MangaStatus;
|
||||
dateAdded: Date;
|
||||
dateCompleted?: Date;
|
||||
rating?: number;
|
||||
notes?: string;
|
||||
coverImage?: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}
|
||||
|
||||
export interface CreateMangaDto {
|
||||
title: string;
|
||||
author: string;
|
||||
status: MangaStatus;
|
||||
rating?: number;
|
||||
notes?: string;
|
||||
coverImage?: string;
|
||||
}
|
||||
|
||||
export interface UpdateMangaDto extends Partial<CreateMangaDto> {
|
||||
dateCompleted?: Date;
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
/**
|
||||
* @copyright 2026 NHCarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
export enum ShowType {
|
||||
tvSeries = "TV_SERIES",
|
||||
anime = "ANIME",
|
||||
film = "FILM",
|
||||
documentary = "DOCUMENTARY",
|
||||
}
|
||||
|
||||
export enum ShowStatus {
|
||||
watching = "WATCHING",
|
||||
completed = "COMPLETED",
|
||||
wantToWatch = "WANT_TO_WATCH",
|
||||
}
|
||||
|
||||
export interface Show {
|
||||
id: string;
|
||||
title: string;
|
||||
type: ShowType;
|
||||
status: ShowStatus;
|
||||
dateAdded: Date;
|
||||
dateCompleted?: Date;
|
||||
rating?: number;
|
||||
notes?: string;
|
||||
coverImage?: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}
|
||||
|
||||
export interface CreateShowDto {
|
||||
title: string;
|
||||
type: ShowType;
|
||||
status: ShowStatus;
|
||||
rating?: number;
|
||||
notes?: string;
|
||||
coverImage?: string;
|
||||
}
|
||||
|
||||
export interface UpdateShowDto extends Partial<CreateShowDto> {
|
||||
dateCompleted?: Date;
|
||||
}
|
||||
Reference in New Issue
Block a user