-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update with final models and codegen
- Loading branch information
Liz Hennessy
authored and
Liz Hennessy
committed
Feb 2, 2024
1 parent
f3e7e5a
commit 3afd6cb
Showing
5 changed files
with
131 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
export type PlaylistModel = { | ||
id: string; | ||
name: string; | ||
description: string; | ||
tracks: { | ||
items: TrackModelFromPlaylist[]; | ||
}; | ||
}; | ||
|
||
/* this model reflects how a playlist stores and returns | ||
its track objects */ | ||
export type TrackModelFromPlaylist = { | ||
track: TrackModel; | ||
}; | ||
|
||
export type TrackModel = { | ||
id: string; | ||
name: string; | ||
duration_ms: number; | ||
explicit: boolean; | ||
uri: string; | ||
}; | ||
|
||
export type AddItemsToPlaylistPayloadModel = { | ||
code: number; | ||
success: boolean; | ||
message: string; | ||
playlistId: string; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters