from apollo_utils.core.constants.dsp import DSP from apollo_utils.core.utils.ext_enum import ExtEnum class RecentSearchType(ExtEnum): USER = "user" ALBUM = "album" TRACK = "track" PLAYLIST = "playlist" ARTIST = "artist" class RecentSearchOrderBy(ExtEnum): TIMESTAMP = "timestamp" TIMESTAMP_DESC = "-timestamp" RecentSearchTypeMapping = { RecentSearchType.USER.value: 0, RecentSearchType.ALBUM.value: 1, RecentSearchType.TRACK.value: 2, RecentSearchType.PLAYLIST.value: 3, RecentSearchType.ARTIST.value: 4, } RecentSearchSourceMapping = {DSP.APPLE.value: "AppleMusic", DSP.AMAZON.value: "Amazon", DSP.SPOTIFY.value: "Spotify"}