1module Playlists exposing (..)
2
3import Time
4
5
6
7-- 🌳
8
9
10type alias Playlist =
11 { autoGenerated : Maybe { level : Int }
12 , collection : Bool
13 , name : String
14 , public : Bool
15 , tracks : List PlaylistTrack
16 }
17
18
19type alias PlaylistTrackWithoutMetadata =
20 { album : Maybe String
21 , artist : Maybe String
22 , title : String
23 }
24
25
26type alias PlaylistTrack =
27 { album : Maybe String
28 , artist : Maybe String
29 , title : String
30
31 --
32 , insertedAt : Time.Posix
33 }
34
35
36type alias IdentifiedPlaylistTrack =
37 ( Identifiers, PlaylistTrack )
38
39
40type alias Identifiers =
41 { index : Int }