@qrush/types 2.1.71 → 2.1.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/Artist.d.ts +14 -12
  2. package/package.json +1 -1
package/dist/Artist.d.ts CHANGED
@@ -17,19 +17,21 @@ export interface ArtistSameAs {
17
17
  tiktok?: string;
18
18
  website?: string;
19
19
  }
20
- /** A single Deezer track with a 30-second preview URL */
21
- export interface DeezerTrack {
22
- id: number;
20
+ /** A single music preview track with a permanent CDN preview URL (Apple Music) */
21
+ export interface MusicPreviewTrack {
22
+ id: string;
23
23
  title: string;
24
- /** Direct 30-sec MP3 CDN URL (no auth required) */
24
+ /** Permanent CDN URL for 30-sec preview (Apple Music M4A) */
25
25
  previewUrl: string;
26
- albumCoverSmall?: string;
26
+ artworkUrl?: string;
27
27
  }
28
- /** Deezer enrichment data stored on the artist document */
29
- export interface ArtistDeezer {
30
- /** Deezer artist ID — auto-matched by name or manually set via admin */
31
- artistId?: number;
32
- topTracks?: DeezerTrack[];
28
+ /** Music preview configuration stored on the artist document */
29
+ export interface MusicPreviewConfig {
30
+ /** Apple Music artist ID — auto-matched by name or manually set via admin */
31
+ appleMusicId?: string;
32
+ tracks?: MusicPreviewTrack[];
33
+ /** ISO timestamp of last enrichment */
34
+ lastEnrichedAt?: string;
33
35
  }
34
36
  /**
35
37
  * Full artist document stored in the `artists` collection
@@ -45,8 +47,8 @@ export interface IFireArtist {
45
47
  /** Structured genre selections for the artist */
46
48
  genres?: GenreSelection[];
47
49
  sameAs?: ArtistSameAs;
48
- /** Deezer music preview data (enriched at import time) */
49
- deezer?: ArtistDeezer;
50
+ /** Apple Music preview data (permanent CDN URLs, enriched at import time) */
51
+ musicPreview?: MusicPreviewConfig;
50
52
  /** true if created by promoter (name-only, no SEO links) */
51
53
  isFallback: boolean;
52
54
  createdAt?: Timestamp;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qrush/types",
3
- "version": "2.1.71",
3
+ "version": "2.1.72",
4
4
  "description": "Shared TypeScript types for the QRush ecosystem",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",