mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
feat(api): fetch listens from spotify
This commit is contained in:
parent
f253a66f86
commit
f2065d3f1f
54 changed files with 1180 additions and 256 deletions
8
src/music-library/dto/create-album.dto.ts
Normal file
8
src/music-library/dto/create-album.dto.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { SpotifyLibraryDetails } from "../../sources/spotify/spotify-library-details.entity";
|
||||
import { Artist } from "../artist.entity";
|
||||
|
||||
export class CreateAlbumDto {
|
||||
name: string;
|
||||
artists: Artist[];
|
||||
spotify?: SpotifyLibraryDetails;
|
||||
}
|
||||
6
src/music-library/dto/create-artist.dto.ts
Normal file
6
src/music-library/dto/create-artist.dto.ts
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import { SpotifyLibraryDetails } from "../../sources/spotify/spotify-library-details.entity";
|
||||
|
||||
export class CreateArtistDto {
|
||||
name: string;
|
||||
spotify?: SpotifyLibraryDetails;
|
||||
}
|
||||
10
src/music-library/dto/create-track.dto.ts
Normal file
10
src/music-library/dto/create-track.dto.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import { SpotifyLibraryDetails } from "../../sources/spotify/spotify-library-details.entity";
|
||||
import { Album } from "../album.entity";
|
||||
import { Artist } from "../artist.entity";
|
||||
|
||||
export class CreateTrackDto {
|
||||
album: Album;
|
||||
artists: Artist[];
|
||||
name: string;
|
||||
spotify?: SpotifyLibraryDetails;
|
||||
}
|
||||
5
src/music-library/dto/find-album.dto.ts
Normal file
5
src/music-library/dto/find-album.dto.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
export class FindAlbumDto {
|
||||
spotify: {
|
||||
id: string;
|
||||
};
|
||||
}
|
||||
5
src/music-library/dto/find-artist.dto.ts
Normal file
5
src/music-library/dto/find-artist.dto.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
export class FindArtistDto {
|
||||
spotify: {
|
||||
id: string;
|
||||
};
|
||||
}
|
||||
5
src/music-library/dto/find-track.dto.ts
Normal file
5
src/music-library/dto/find-track.dto.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
export class FindTrackDto {
|
||||
spotify: {
|
||||
id: string;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue