From 90a1fcc0568a1e3556d168d03bf60fa53f4f3c74 Mon Sep 17 00:00:00 2001 From: maciejpedzich Date: Wed, 6 Jul 2022 14:01:01 +0200 Subject: [PATCH] Rename calendar-entry to snapshot --- models/cumulative.ts | 10 ++++++++++ models/{calendar-entry.ts => snapshot.ts} | 3 ++- models/track.ts | 5 +++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 models/cumulative.ts rename models/{calendar-entry.ts => snapshot.ts} (57%) diff --git a/models/cumulative.ts b/models/cumulative.ts new file mode 100644 index 0000000..9c2f97d --- /dev/null +++ b/models/cumulative.ts @@ -0,0 +1,10 @@ +import { Track } from './track'; + +export interface Cumulative { + date_first_scraped: string; + description: string; + name: string; + published_playlist_ids: string[]; + tracks: Track[]; + url: string; +} diff --git a/models/calendar-entry.ts b/models/snapshot.ts similarity index 57% rename from models/calendar-entry.ts rename to models/snapshot.ts index f8cca15..35f6329 100644 --- a/models/calendar-entry.ts +++ b/models/snapshot.ts @@ -1,5 +1,6 @@ -export interface CalendarEntry { +export interface Snapshot { snapshotId: string; commitSha: string; dateCaptured: string; + numFollowers: number; } diff --git a/models/track.ts b/models/track.ts index b0e33b5..3cd3ec9 100644 --- a/models/track.ts +++ b/models/track.ts @@ -10,4 +10,9 @@ export interface Track { duration_ms: number; name: string; url: string; + date_added: string; + date_added_asterisk: boolean; + date_removed: string | null; + position?: string; + retention?: number; }