feat: add tags and links

This commit is contained in:
2026-02-04 19:49:27 -08:00
parent 9902c5ad45
commit b9f33bc055
21 changed files with 1873 additions and 31 deletions
+2 -1
View File
@@ -12,4 +12,5 @@ export * from "./lib/manga.types";
export type * from "./lib/auth.types";
export * from "./lib/comment.types";
export * from "./lib/audit.types";
export * from "./lib/suggestion.types";
export * from "./lib/suggestion.types";
export * from "./lib/common.types";
+6
View File
@@ -3,12 +3,16 @@
* @license Naomi's Public License
*/
import { Link } from "./common.types";
export interface Art {
id: string;
title: string;
artist: string;
description?: string;
imageUrl: string;
tags: string[];
links: Link[];
dateAdded: Date;
createdAt: Date;
updatedAt: Date;
@@ -19,6 +23,8 @@ export interface CreateArtDto {
artist: string;
description?: string;
imageUrl: string;
tags?: string[];
links?: Link[];
}
export interface UpdateArtDto extends Partial<CreateArtDto> {}
+6
View File
@@ -10,6 +10,8 @@ export enum BookStatus {
toRead = "TO_READ",
}
import { Link } from "./common.types";
export interface Book {
id: string;
title: string;
@@ -21,6 +23,8 @@ export interface Book {
rating?: number;
notes?: string;
coverImage?: string;
tags: string[];
links: Link[];
createdAt: Date;
updatedAt: Date;
}
@@ -33,6 +37,8 @@ export interface CreateBookDto {
rating?: number;
notes?: string;
coverImage?: string;
tags?: string[];
links?: Link[];
}
export interface UpdateBookDto extends Partial<CreateBookDto> {
+4
View File
@@ -0,0 +1,4 @@
export interface Link {
title: string;
url: string;
}
+6
View File
@@ -10,6 +10,8 @@ export enum GameStatus {
backlog = "BACKLOG",
}
import { Link } from "./common.types";
export interface Game {
id: string;
title: string;
@@ -20,6 +22,8 @@ export interface Game {
rating?: number;
notes?: string;
coverImage?: string;
tags: string[];
links: Link[];
createdAt: Date;
updatedAt: Date;
}
@@ -31,6 +35,8 @@ export interface CreateGameDto {
rating?: number;
notes?: string;
coverImage?: string;
tags?: string[];
links?: Link[];
}
export interface UpdateGameDto extends Partial<CreateGameDto> {
+6
View File
@@ -10,6 +10,8 @@ export enum MangaStatus {
wantToRead = "WANT_TO_READ",
}
import { Link } from "./common.types";
export interface Manga {
id: string;
title: string;
@@ -20,6 +22,8 @@ export interface Manga {
rating?: number;
notes?: string;
coverImage?: string;
tags: string[];
links: Link[];
createdAt: Date;
updatedAt: Date;
}
@@ -31,6 +35,8 @@ export interface CreateMangaDto {
rating?: number;
notes?: string;
coverImage?: string;
tags?: string[];
links?: Link[];
}
export interface UpdateMangaDto extends Partial<CreateMangaDto> {
+6
View File
@@ -16,6 +16,8 @@ export enum MusicStatus {
wantToListen = "WANT_TO_LISTEN",
}
import { Link } from "./common.types";
export interface Music {
id: string;
title: string;
@@ -27,6 +29,8 @@ export interface Music {
rating?: number;
notes?: string;
coverArt?: string;
tags: string[];
links: Link[];
createdAt: Date;
updatedAt: Date;
}
@@ -39,6 +43,8 @@ export interface CreateMusicDto {
rating?: number;
notes?: string;
coverArt?: string;
tags?: string[];
links?: Link[];
}
export interface UpdateMusicDto extends Partial<CreateMusicDto> {
+6
View File
@@ -17,6 +17,8 @@ export enum ShowStatus {
wantToWatch = "WANT_TO_WATCH",
}
import { Link } from "./common.types";
export interface Show {
id: string;
title: string;
@@ -27,6 +29,8 @@ export interface Show {
rating?: number;
notes?: string;
coverImage?: string;
tags: string[];
links: Link[];
createdAt: Date;
updatedAt: Date;
}
@@ -38,6 +42,8 @@ export interface CreateShowDto {
rating?: number;
notes?: string;
coverImage?: string;
tags?: string[];
links?: Link[];
}
export interface UpdateShowDto extends Partial<CreateShowDto> {