PlaylistsActions.ts 439 B

123456789101112131415161718
  1. import { PlaylistModel, PlaylistSong } from "../models/Playlist";
  2. import { BaseResponse } from "./BaseActions";
  3. export type IndexMyPlaylistsResponse = BaseResponse & {
  4. data: {
  5. playlists: (PlaylistModel & { weight: number })[];
  6. };
  7. };
  8. export type AddSongToPlaylistResponse = BaseResponse & {
  9. data: {
  10. songs: PlaylistSong[];
  11. };
  12. };
  13. export type RemoveSongFromPlaylistResponse = BaseResponse & {
  14. data: {
  15. songs: PlaylistSong[];
  16. };
  17. };