koel/resources/assets/js/config/smart-playlist/models.ts

56 lines
837 B
TypeScript
Raw Normal View History

2022-04-15 14:24:30 +00:00
const models: SmartPlaylistModel[] = [
{
name: 'title',
type: 'text',
label: 'Title',
},
{
2022-04-15 14:24:30 +00:00
name: 'album.name',
type: 'text',
label: 'Album',
},
{
2022-04-15 14:24:30 +00:00
name: 'artist.name',
type: 'text',
label: 'Artist',
},
{
name: 'genre',
type: 'text',
label: 'Genre',
},
{
name: 'year',
type: 'number',
label: 'Year',
},
{
2022-04-15 14:24:30 +00:00
name: 'interactions.play_count',
type: 'number',
label: 'Play Count',
},
{
name: 'interactions.last_played_at',
2022-04-15 14:24:30 +00:00
type: 'date',
label: 'Last Played',
},
{
2022-04-15 14:24:30 +00:00
name: 'length',
type: 'number',
label: 'Length',
unit: 'seconds',
},
{
2022-04-15 14:24:30 +00:00
name: 'created_at',
type: 'date',
label: 'Date Added',
},
{
2022-04-15 14:24:30 +00:00
name: 'updated_at',
type: 'date',
label: 'Date Modified',
},
2022-04-15 14:24:30 +00:00
]
export default models