generated from nhcarrigan/template
feat: add start and end dates
This commit is contained in:
@@ -19,6 +19,7 @@ interface Book {
|
||||
isbn?: string;
|
||||
status: BookStatus;
|
||||
dateAdded: Date;
|
||||
dateStarted?: Date;
|
||||
dateFinished?: Date;
|
||||
rating?: number;
|
||||
notes?: string;
|
||||
@@ -30,18 +31,21 @@ interface Book {
|
||||
}
|
||||
|
||||
interface CreateBookDto {
|
||||
title: string;
|
||||
author: string;
|
||||
isbn?: string;
|
||||
status: BookStatus;
|
||||
rating?: number;
|
||||
notes?: string;
|
||||
coverImage?: string;
|
||||
tags?: Array<string>;
|
||||
links?: Array<Link>;
|
||||
title: string;
|
||||
author: string;
|
||||
isbn?: string;
|
||||
status: BookStatus;
|
||||
dateStarted?: Date;
|
||||
dateFinished?: Date;
|
||||
rating?: number;
|
||||
notes?: string;
|
||||
coverImage?: string;
|
||||
tags?: Array<string>;
|
||||
links?: Array<Link>;
|
||||
}
|
||||
|
||||
interface UpdateBookDto extends Partial<CreateBookDto> {
|
||||
dateStarted?: Date;
|
||||
dateFinished?: Date;
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,9 @@ interface Game {
|
||||
platform?: string;
|
||||
status: GameStatus;
|
||||
dateAdded: Date;
|
||||
dateStarted?: Date;
|
||||
dateCompleted?: Date;
|
||||
dateFinished?: Date;
|
||||
rating?: number;
|
||||
notes?: string;
|
||||
coverImage?: string;
|
||||
@@ -29,18 +31,22 @@ interface Game {
|
||||
}
|
||||
|
||||
interface CreateGameDto {
|
||||
title: string;
|
||||
platform?: string;
|
||||
status: GameStatus;
|
||||
rating?: number;
|
||||
notes?: string;
|
||||
coverImage?: string;
|
||||
tags?: Array<string>;
|
||||
links?: Array<Link>;
|
||||
title: string;
|
||||
platform?: string;
|
||||
status: GameStatus;
|
||||
dateStarted?: Date;
|
||||
dateFinished?: Date;
|
||||
rating?: number;
|
||||
notes?: string;
|
||||
coverImage?: string;
|
||||
tags?: Array<string>;
|
||||
links?: Array<Link>;
|
||||
}
|
||||
|
||||
interface UpdateGameDto extends Partial<CreateGameDto> {
|
||||
dateStarted?: Date;
|
||||
dateCompleted?: Date;
|
||||
dateFinished?: Date;
|
||||
}
|
||||
|
||||
export { type CreateGameDto, type Game, GameStatus, type UpdateGameDto };
|
||||
|
||||
@@ -18,7 +18,9 @@ interface Manga {
|
||||
author: string;
|
||||
status: MangaStatus;
|
||||
dateAdded: Date;
|
||||
dateStarted?: Date;
|
||||
dateCompleted?: Date;
|
||||
dateFinished?: Date;
|
||||
rating?: number;
|
||||
notes?: string;
|
||||
coverImage?: string;
|
||||
@@ -29,18 +31,22 @@ interface Manga {
|
||||
}
|
||||
|
||||
interface CreateMangaDto {
|
||||
title: string;
|
||||
author: string;
|
||||
status: MangaStatus;
|
||||
rating?: number;
|
||||
notes?: string;
|
||||
coverImage?: string;
|
||||
tags?: Array<string>;
|
||||
links?: Array<Link>;
|
||||
title: string;
|
||||
author: string;
|
||||
status: MangaStatus;
|
||||
dateStarted?: Date;
|
||||
dateFinished?: Date;
|
||||
rating?: number;
|
||||
notes?: string;
|
||||
coverImage?: string;
|
||||
tags?: Array<string>;
|
||||
links?: Array<Link>;
|
||||
}
|
||||
|
||||
interface UpdateMangaDto extends Partial<CreateMangaDto> {
|
||||
dateStarted?: Date;
|
||||
dateCompleted?: Date;
|
||||
dateFinished?: Date;
|
||||
}
|
||||
|
||||
export { MangaStatus };
|
||||
|
||||
@@ -25,7 +25,9 @@ interface Music {
|
||||
type: MusicType;
|
||||
status: MusicStatus;
|
||||
dateAdded: Date;
|
||||
dateStarted?: Date;
|
||||
dateCompleted?: Date;
|
||||
dateFinished?: Date;
|
||||
rating?: number;
|
||||
notes?: string;
|
||||
coverArt?: string;
|
||||
@@ -36,19 +38,23 @@ interface Music {
|
||||
}
|
||||
|
||||
interface CreateMusicDto {
|
||||
title: string;
|
||||
artist: string;
|
||||
type: MusicType;
|
||||
status: MusicStatus;
|
||||
rating?: number;
|
||||
notes?: string;
|
||||
coverArt?: string;
|
||||
tags?: Array<string>;
|
||||
links?: Array<Link>;
|
||||
title: string;
|
||||
artist: string;
|
||||
type: MusicType;
|
||||
status: MusicStatus;
|
||||
dateStarted?: Date;
|
||||
dateFinished?: Date;
|
||||
rating?: number;
|
||||
notes?: string;
|
||||
coverArt?: string;
|
||||
tags?: Array<string>;
|
||||
links?: Array<Link>;
|
||||
}
|
||||
|
||||
interface UpdateMusicDto extends Partial<CreateMusicDto> {
|
||||
dateStarted?: Date;
|
||||
dateCompleted?: Date;
|
||||
dateFinished?: Date;
|
||||
}
|
||||
|
||||
export { MusicStatus, MusicType };
|
||||
|
||||
@@ -25,7 +25,9 @@ interface Show {
|
||||
type: ShowType;
|
||||
status: ShowStatus;
|
||||
dateAdded: Date;
|
||||
dateStarted?: Date;
|
||||
dateCompleted?: Date;
|
||||
dateFinished?: Date;
|
||||
rating?: number;
|
||||
notes?: string;
|
||||
coverImage?: string;
|
||||
@@ -36,18 +38,22 @@ interface Show {
|
||||
}
|
||||
|
||||
interface CreateShowDto {
|
||||
title: string;
|
||||
type: ShowType;
|
||||
status: ShowStatus;
|
||||
rating?: number;
|
||||
notes?: string;
|
||||
coverImage?: string;
|
||||
tags?: Array<string>;
|
||||
links?: Array<Link>;
|
||||
title: string;
|
||||
type: ShowType;
|
||||
status: ShowStatus;
|
||||
dateStarted?: Date;
|
||||
dateFinished?: Date;
|
||||
rating?: number;
|
||||
notes?: string;
|
||||
coverImage?: string;
|
||||
tags?: Array<string>;
|
||||
links?: Array<Link>;
|
||||
}
|
||||
|
||||
interface UpdateShowDto extends Partial<CreateShowDto> {
|
||||
dateStarted?: Date;
|
||||
dateCompleted?: Date;
|
||||
dateFinished?: Date;
|
||||
}
|
||||
|
||||
export { ShowStatus, ShowType };
|
||||
|
||||
Reference in New Issue
Block a user