sonovault 4.4.0 → 4.5.1

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.
package/dist/index.cjs CHANGED
@@ -50,7 +50,7 @@ var SonoVaultError = class extends Error {
50
50
  };
51
51
 
52
52
  // src/version.ts
53
- var VERSION = "4.4.0";
53
+ var VERSION = "4.5.1";
54
54
 
55
55
  // src/client.ts
56
56
  var SonoVault = class {
package/dist/index.d.cts CHANGED
@@ -185,6 +185,15 @@ interface Release {
185
185
  * requested. Only returned by `releases.get()`.
186
186
  */
187
187
  edition?: number | null;
188
+ /**
189
+ * The UPC the release was delivered to digital stores with, picked from its
190
+ * digital editions (Beatport, then Apple Music, then Spotify, then
191
+ * MusicBrainz and Discogs digital editions whose title matches the release).
192
+ * 12 digits (UPC-A) when it fits, otherwise the 13-digit EAN. `null` when no
193
+ * digital edition carries one. Returned by `releases.get()` and
194
+ * `releases.new()`.
195
+ */
196
+ digital_upc?: string | null;
188
197
  [key: string]: unknown;
189
198
  }
190
199
  /**
@@ -195,7 +204,7 @@ interface Release {
195
204
  interface ReleaseEdition {
196
205
  id: number;
197
206
  /** The provider describing this edition. */
198
- source: "spotify" | "discogs" | "musicbrainz";
207
+ source: "spotify" | "discogs" | "musicbrainz" | "beatport" | "applemusic";
199
208
  /** The edition's ID at that provider. */
200
209
  external_id: string;
201
210
  /**
@@ -237,7 +246,7 @@ interface ReleaseEdition {
237
246
  id: number;
238
247
  name: string;
239
248
  } | null;
240
- /** The pressing's catalog number, from Discogs and MusicBrainz. */
249
+ /** The pressing's catalog number, from Discogs, MusicBrainz and Beatport. */
241
250
  catalog_no: string | null;
242
251
  }
243
252
  interface Genre {
@@ -267,9 +276,15 @@ interface PlatformLinksResponse {
267
276
  interface IswcLookupResponse {
268
277
  sonovault_id?: number;
269
278
  isrc?: string;
279
+ /**
280
+ * By ISRC: the works a source links to that exact ISRC (`basis: "isrc"`),
281
+ * or, when none is stated, every work on the recording (`basis: "recording"`).
282
+ * By id: every work on the recording.
283
+ */
270
284
  iswcs?: {
271
285
  iswc: string;
272
286
  title: string | null;
287
+ basis?: "isrc" | "recording";
273
288
  }[];
274
289
  [key: string]: unknown;
275
290
  }
package/dist/index.d.ts CHANGED
@@ -185,6 +185,15 @@ interface Release {
185
185
  * requested. Only returned by `releases.get()`.
186
186
  */
187
187
  edition?: number | null;
188
+ /**
189
+ * The UPC the release was delivered to digital stores with, picked from its
190
+ * digital editions (Beatport, then Apple Music, then Spotify, then
191
+ * MusicBrainz and Discogs digital editions whose title matches the release).
192
+ * 12 digits (UPC-A) when it fits, otherwise the 13-digit EAN. `null` when no
193
+ * digital edition carries one. Returned by `releases.get()` and
194
+ * `releases.new()`.
195
+ */
196
+ digital_upc?: string | null;
188
197
  [key: string]: unknown;
189
198
  }
190
199
  /**
@@ -195,7 +204,7 @@ interface Release {
195
204
  interface ReleaseEdition {
196
205
  id: number;
197
206
  /** The provider describing this edition. */
198
- source: "spotify" | "discogs" | "musicbrainz";
207
+ source: "spotify" | "discogs" | "musicbrainz" | "beatport" | "applemusic";
199
208
  /** The edition's ID at that provider. */
200
209
  external_id: string;
201
210
  /**
@@ -237,7 +246,7 @@ interface ReleaseEdition {
237
246
  id: number;
238
247
  name: string;
239
248
  } | null;
240
- /** The pressing's catalog number, from Discogs and MusicBrainz. */
249
+ /** The pressing's catalog number, from Discogs, MusicBrainz and Beatport. */
241
250
  catalog_no: string | null;
242
251
  }
243
252
  interface Genre {
@@ -267,9 +276,15 @@ interface PlatformLinksResponse {
267
276
  interface IswcLookupResponse {
268
277
  sonovault_id?: number;
269
278
  isrc?: string;
279
+ /**
280
+ * By ISRC: the works a source links to that exact ISRC (`basis: "isrc"`),
281
+ * or, when none is stated, every work on the recording (`basis: "recording"`).
282
+ * By id: every work on the recording.
283
+ */
270
284
  iswcs?: {
271
285
  iswc: string;
272
286
  title: string | null;
287
+ basis?: "isrc" | "recording";
273
288
  }[];
274
289
  [key: string]: unknown;
275
290
  }
package/dist/index.js CHANGED
@@ -21,7 +21,7 @@ var SonoVaultError = class extends Error {
21
21
  };
22
22
 
23
23
  // src/version.ts
24
- var VERSION = "4.4.0";
24
+ var VERSION = "4.5.1";
25
25
 
26
26
  // src/client.ts
27
27
  var SonoVault = class {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sonovault",
3
- "version": "4.4.0",
3
+ "version": "4.5.1",
4
4
  "description": "TypeScript/Node client for the SonoVault music metadata API: ISRC, ISWC, genre, BPM, key, labels, release dates, and cross-platform IDs for 93M+ tracks.",
5
5
  "keywords": [
6
6
  "music",