generated from nhcarrigan/template
feat: add tags and links
This commit is contained in:
@@ -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";
|
||||
@@ -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> {}
|
||||
|
||||
@@ -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> {
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
export interface Link {
|
||||
title: string;
|
||||
url: string;
|
||||
}
|
||||
@@ -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> {
|
||||
|
||||
@@ -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> {
|
||||
|
||||
@@ -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> {
|
||||
|
||||
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user