mirror of
https://github.com/maciejpedzich/spotifyplaylistarchive.com.git
synced 2024-09-19 18:16:19 +02:00
Create interfaces for calendar entry and playlist
This commit is contained in:
parent
552efcae1b
commit
3de4584bc5
5
models/calendar-entry.ts
Normal file
5
models/calendar-entry.ts
Normal file
@ -0,0 +1,5 @@
|
||||
export interface CalendarEntry {
|
||||
snapshotId: string;
|
||||
commitSha: string;
|
||||
dateCaptured: string;
|
||||
}
|
4
models/owner.ts
Normal file
4
models/owner.ts
Normal file
@ -0,0 +1,4 @@
|
||||
export interface Owner {
|
||||
name: string;
|
||||
url: string;
|
||||
}
|
13
models/playlist.ts
Normal file
13
models/playlist.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import { Owner } from './owner';
|
||||
import { Track } from './track';
|
||||
|
||||
export interface Playlist {
|
||||
description: string;
|
||||
num_followers: number;
|
||||
original_name: string;
|
||||
owner: Owner;
|
||||
snapshot_id: string;
|
||||
tracks: Track[];
|
||||
unique_name: string;
|
||||
url: string;
|
||||
}
|
13
models/track.ts
Normal file
13
models/track.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import { Owner } from './owner';
|
||||
|
||||
export interface Track {
|
||||
added_at: string;
|
||||
album: {
|
||||
name: string;
|
||||
url: string;
|
||||
};
|
||||
artists: Owner[];
|
||||
duration_ms: number;
|
||||
name: string;
|
||||
url: string;
|
||||
}
|
Loading…
Reference in New Issue
Block a user