odesli.js 1.1.1 → 1.1.2

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/lib/index.d.ts CHANGED
@@ -1,484 +1,484 @@
1
- // Type definitions for odesli.js
2
- // Project: https://github.com/MattrAus/odesli.js, https://www.npmjs.com/package/odesli.js
3
- // Definitions by: Mattr <https://github.com/MattrAus>
4
- // TypeScript Version: 2.7
5
-
6
- declare class Odesli {
7
- /**
8
- *
9
- * @param {string=} apiKey Limited to 10 Requests per Minute without an API Key.
10
- *
11
- * Email `developers@song.link` to get an API Key.
12
- *
13
- * @param {string=} version Defaults to `v1-alpha.1`
14
- */
15
- constructor(options?: {
16
- /**
17
- * @param {string=} apiKey Optional: Limited to 10 Requests per Minute without an API Key.
18
- *
19
- * Email `developers@song.link` to get an API Key.
20
- */
21
- apiKey?: string
22
- /**
23
- * @param {string=} version Optional: Defaults to `v1-alpha.1`
24
- */
25
- version?: 'v1-alpha.1' | string
26
- });
27
-
28
- /**
29
- *
30
- * @param {string} url Streaming service URL
31
- * @param {CountryCode} [country='US'] Optional: [ISO 3166-1 Alpha-2 Code](https://www.iso.org/obp/ui/#search/code/)
32
- * @returns Promise<Page.Response>
33
- */
34
- fetch(url: string, country?: CountryCode | 'US'): Promise<Page.Response>;
35
-
36
- /**
37
- *
38
- * @param {Platform} platform Streaming service
39
- * @param {entityType} type Type: song or album
40
- * @param {string} id Type: song or album
41
- * @param {CountryCode} [country='US'] Optional: [ISO 3166-1 Alpha-2 Code](https://www.iso.org/obp/ui/#search/code/)
42
- * @returns Promise<Page.Response>
43
- */
44
- getByParams(platform: string, type: entityType, id: string, country?: CountryCode): Promise<Page.Response>;
45
-
46
- /**
47
- *
48
- * @param url Streaming service URL
49
- * @param {CountryCode} [country='US'] Optional: [ISO 3166-1 Alpha-2 Code](https://www.iso.org/obp/ui/#search/code/)
50
- * @returns Promise<Page.Response>
51
- */
52
- getById(id: string, country?: CountryCode): Promise<Page.Response>;
53
- }
54
-
55
- declare namespace Page {
56
- interface Response {
57
- /**
58
- * The unique ID for the input entity that was supplied in the request.
59
- *
60
- * The data for this entity, such as title, artistName, etc. will be found in an object at `entitiesByUniqueId[entityUniqueId]`
61
- */
62
- entityUniqueId: string,
63
-
64
- /**
65
- * Song/Album Title of the given response, same as `Response.entitiesByUniqueId[Response.entityUniqueId].title`
66
- */
67
- title: string,
68
-
69
- /**
70
- * Artist's Name of the given response, same as `Response.entitiesByUniqueId[Response.entityUniqueId].artistName`
71
- */
72
- artist: string,
73
-
74
- /**
75
- * Type (song or album) of the given response, same as `Response.entitiesByUniqueId[Response.entityUniqueId].type`
76
- */
77
- type: entityType,
78
-
79
- /**
80
- * Thumbnail of the given response, same as `Response.entitiesByUniqueId[Response.entityUniqueId].thumbnailUrl`
81
- */
82
- thumbnail: string,
83
-
84
- /**
85
- * The userCountry query param that was supplied in the request. It signals
86
- * the country/availability we use to query the streaming platforms. Defaults
87
- * to 'US' if no userCountry supplied in the request.
88
- *
89
- * NOTE: As a fallback, our service may respond with matches that were found
90
- * in a locale other than the userCountry supplied
91
- */
92
- userCountry: CountryCode,
93
-
94
- /**
95
- * A URL that will render the Songlink page for this entity
96
- */
97
- pageUrl: string,
98
-
99
- /**
100
- * A collection of objects. Each key is a platform, and each value is an
101
- * object that contains data for linking to the match
102
- */
103
- linksByPlatform: {
104
- /**
105
- * Each key in `linksByPlatform` is a Platform. A Platform will exist here
106
- * only if there is a match found. E.g. if there is no YouTube match found,
107
- * then neither `youtube` or `youtubeMusic` properties will exist here
108
- */
109
- [key in Platform]: {
110
- /**
111
- * The unique ID for this entity. Use it to look up data about this entity
112
- * at `entitiesByUniqueId[entityUniqueId]`
113
- */
114
- entityUniqueId: string,
115
-
116
- /**
117
- * The URL for this match
118
- */
119
- url: string,
120
-
121
- /**
122
- * The native app URI that can be used on mobile devices to open this
123
- * entity directly in the native app
124
- */
125
- nativeAppUriMobile?: string,
126
-
127
- /**
128
- * The native app URI that can be used on desktop devices to open this
129
- * entity directly in the native app
130
- */
131
- nativeAppUriDesktop?: string,
132
- };
133
- },
134
-
135
- /**
136
- * A collection of objects. Each key is a unique identifier for a streaming
137
- * entity, and each value is an object that contains data for that entity,
138
- * such as `title`, `artistName`, `thumbnailUrl`, etc.
139
- */
140
- entitiesByUniqueId: {
141
- /**
142
- * The unique identifier key for a streaming entitiy
143
- */
144
- [entityUniqueId: string]: {
145
- /**
146
- * This is the unique identifier on the streaming platform/API provider
147
- */
148
- id: string,
149
-
150
- /**
151
- * The type of media this entity is
152
- */
153
- type: entityType,
154
-
155
- /**
156
- * The title of the `song`/`album`
157
- */
158
- title?: string,
159
-
160
- /**
161
- * The artist/s of the `song`/`album`
162
- */
163
- artistName?: [string],
164
-
165
- /**
166
- * The coverart image URL of the `song`/`album`
167
- */
168
- thumbnailUrl?: string,
169
-
170
- /**
171
- * Coverart's width
172
- */
173
- thumbnailWidth?: number,
174
- /**
175
- * Coverart's height
176
- */
177
- thumbnailHeight?: number,
178
-
179
- /**
180
- * The API provider that powered this match. Useful if you'd like to use
181
- * this entity's data to query the API directly
182
- */
183
- apiProvider: APIProvider,
184
-
185
- /**
186
- * An array of platforms that are "powered" by this entity. E.g. an entity
187
- * from Apple Music will generally have a `platforms` array of
188
- * `["appleMusic", "itunes"]` since both those platforms/links are derived
189
- * from this single entity
190
- */
191
- platforms: Platform[],
192
- },
193
- },
194
- }
195
- }
196
-
197
- type Platform =
198
- | 'spotify'
199
- | 'itunes'
200
- | 'appleMusic'
201
- | 'youtube'
202
- | 'youtubeMusic'
203
- | 'google'
204
- | 'googleStore'
205
- | 'pandora'
206
- | 'deezer'
207
- | 'tidal'
208
- | 'amazonStore'
209
- | 'amazonMusic'
210
- | 'soundcloud'
211
- | 'napster'
212
- | 'yandex'
213
- | 'spinrilla';
214
-
215
- type APIProvider =
216
- | 'spotify'
217
- | 'itunes'
218
- | 'youtube'
219
- | 'google'
220
- | 'pandora'
221
- | 'deezer'
222
- | 'tidal'
223
- | 'amazon'
224
- | 'soundcloud'
225
- | 'napster'
226
- | 'yandex'
227
- | 'spinrilla';
228
-
229
- type entityType =
230
- | 'song'
231
- | 'album'
232
-
233
- declare enum CountryCode {
234
- Afghanistan = 'AF',
235
- AlandIslands = 'AX',
236
- Albania = 'AL',
237
- Algeria = 'DZ',
238
- AmericanSamoa = 'AS',
239
- Andorra = 'AD',
240
- Angola = 'AO',
241
- Anguilla = 'AI',
242
- Antarctica = 'AQ',
243
- AntiguaAndBarbuda = 'AG',
244
- Argentina = 'AR',
245
- Armenia = 'AM',
246
- Aruba = 'AW',
247
- Australia = 'AU',
248
- Austria = 'AT',
249
- Azerbaijan = 'AZ',
250
- Bahamas = 'BS',
251
- Bahrain = 'BH',
252
- Bangladesh = 'BD',
253
- Barbados = 'BB',
254
- Belarus = 'BY',
255
- Belgium = 'BE',
256
- Belize = 'BZ',
257
- Benin = 'BJ',
258
- Bermuda = 'BM',
259
- Bhutan = 'BT',
260
- Bolivia = 'BO',
261
- BonaireSintEustatiusSaba = 'BQ',
262
- BosniaAndHerzegovina = 'BA',
263
- Botswana = 'BW',
264
- BouvetIsland = 'BV',
265
- Brazil = 'BR',
266
- BritishIndianOceanTerritory = 'IO',
267
- BruneiDarussalam = 'BN',
268
- Bulgaria = 'BG',
269
- BurkinaFaso = 'BF',
270
- Burundi = 'BI',
271
- Cambodia = 'KH',
272
- Cameroon = 'CM',
273
- Canada = 'CA',
274
- CapeVerde = 'CV',
275
- CaymanIslands = 'KY',
276
- CentralAfricanRepublic = 'CF',
277
- Chad = 'TD',
278
- Chile = 'CL',
279
- China = 'CN',
280
- ChristmasIsland = 'CX',
281
- CocosKeelingIslands = 'CC',
282
- Colombia = 'CO',
283
- Comoros = 'KM',
284
- Congo = 'CG',
285
- CongoDemocraticRepublic = 'CD',
286
- CookIslands = 'CK',
287
- CostaRica = 'CR',
288
- CoteDIvoire = 'CI',
289
- Croatia = 'HR',
290
- Cuba = 'CU',
291
- Curaçao = 'CW',
292
- Cyprus = 'CY',
293
- CzechRepublic = 'CZ',
294
- Denmark = 'DK',
295
- Djibouti = 'DJ',
296
- Dominica = 'DM',
297
- DominicanRepublic = 'DO',
298
- Ecuador = 'EC',
299
- Egypt = 'EG',
300
- ElSalvador = 'SV',
301
- EquatorialGuinea = 'GQ',
302
- Eritrea = 'ER',
303
- Estonia = 'EE',
304
- Ethiopia = 'ET',
305
- FalklandIslands = 'FK',
306
- FaroeIslands = 'FO',
307
- Fiji = 'FJ',
308
- Finland = 'FI',
309
- France = 'FR',
310
- FrenchGuiana = 'GF',
311
- FrenchPolynesia = 'PF',
312
- FrenchSouthernTerritories = 'TF',
313
- Gabon = 'GA',
314
- Gambia = 'GM',
315
- Georgia = 'GE',
316
- Germany = 'DE',
317
- Ghana = 'GH',
318
- Gibraltar = 'GI',
319
- Greece = 'GR',
320
- Greenland = 'GL',
321
- Grenada = 'GD',
322
- Guadeloupe = 'GP',
323
- Guam = 'GU',
324
- Guatemala = 'GT',
325
- Guernsey = 'GG',
326
- Guinea = 'GN',
327
- GuineaBissau = 'GW',
328
- Guyana = 'GY',
329
- Haiti = 'HT',
330
- HeardIslandMcdonaldIslands = 'HM',
331
- HolySeeVaticanCityState = 'VA',
332
- Honduras = 'HN',
333
- HongKong = 'HK',
334
- Hungary = 'HU',
335
- Iceland = 'IS',
336
- India = 'IN',
337
- Indonesia = 'ID',
338
- Iran = 'IR',
339
- Iraq = 'IQ',
340
- Ireland = 'IE',
341
- IsleOfMan = 'IM',
342
- Israel = 'IL',
343
- Italy = 'IT',
344
- Jamaica = 'JM',
345
- Japan = 'JP',
346
- Jersey = 'JE',
347
- Jordan = 'JO',
348
- Kazakhstan = 'KZ',
349
- Kenya = 'KE',
350
- Kiribati = 'KI',
351
- Korea = 'KR',
352
- KoreaDemocraticPeoplesRepublic = 'KP',
353
- Kuwait = 'KW',
354
- Kyrgyzstan = 'KG',
355
- LaoPeoplesDemocraticRepublic = 'LA',
356
- Latvia = 'LV',
357
- Lebanon = 'LB',
358
- Lesotho = 'LS',
359
- Liberia = 'LR',
360
- LibyanArabJamahiriya = 'LY',
361
- Liechtenstein = 'LI',
362
- Lithuania = 'LT',
363
- Luxembourg = 'LU',
364
- Macao = 'MO',
365
- Macedonia = 'MK',
366
- Madagascar = 'MG',
367
- Malawi = 'MW',
368
- Malaysia = 'MY',
369
- Maldives = 'MV',
370
- Mali = 'ML',
371
- Malta = 'MT',
372
- MarshallIslands = 'MH',
373
- Martinique = 'MQ',
374
- Mauritania = 'MR',
375
- Mauritius = 'MU',
376
- Mayotte = 'YT',
377
- Mexico = 'MX',
378
- Micronesia = 'FM',
379
- Moldova = 'MD',
380
- Monaco = 'MC',
381
- Mongolia = 'MN',
382
- Montenegro = 'ME',
383
- Montserrat = 'MS',
384
- Morocco = 'MA',
385
- Mozambique = 'MZ',
386
- Myanmar = 'MM',
387
- Namibia = 'NA',
388
- Nauru = 'NR',
389
- Nepal = 'NP',
390
- Netherlands = 'NL',
391
- NewCaledonia = 'NC',
392
- NewZealand = 'NZ',
393
- Nicaragua = 'NI',
394
- Niger = 'NE',
395
- Nigeria = 'NG',
396
- Niue = 'NU',
397
- NorfolkIsland = 'NF',
398
- NorthernMarianaIslands = 'MP',
399
- Norway = 'NO',
400
- Oman = 'OM',
401
- Pakistan = 'PK',
402
- Palau = 'PW',
403
- PalestinianTerritory = 'PS',
404
- Panama = 'PA',
405
- PapuaNewGuinea = 'PG',
406
- Paraguay = 'PY',
407
- Peru = 'PE',
408
- Philippines = 'PH',
409
- Pitcairn = 'PN',
410
- Poland = 'PL',
411
- Portugal = 'PT',
412
- PuertoRico = 'PR',
413
- Qatar = 'QA',
414
- Reunion = 'RE',
415
- Romania = 'RO',
416
- RussianFederation = 'RU',
417
- Rwanda = 'RW',
418
- SaintBarthelemy = 'BL',
419
- SaintHelena = 'SH',
420
- SaintKittsAndNevis = 'KN',
421
- SaintLucia = 'LC',
422
- SaintMartin = 'MF',
423
- SaintPierreAndMiquelon = 'PM',
424
- SaintVincentAndGrenadines = 'VC',
425
- Samoa = 'WS',
426
- SanMarino = 'SM',
427
- SaoTomeAndPrincipe = 'ST',
428
- SaudiArabia = 'SA',
429
- Senegal = 'SN',
430
- Serbia = 'RS',
431
- Seychelles = 'SC',
432
- SierraLeone = 'SL',
433
- Singapore = 'SG',
434
- SintMaarten = 'SX',
435
- Slovakia = 'SK',
436
- Slovenia = 'SI',
437
- SolomonIslands = 'SB',
438
- Somalia = 'SO',
439
- SouthAfrica = 'ZA',
440
- SouthGeorgiaAndSandwichIsl = 'GS',
441
- SouthSudan = 'SS',
442
- Spain = 'ES',
443
- SriLanka = 'LK',
444
- Sudan = 'SD',
445
- Suriname = 'SR',
446
- SvalbardAndJanMayen = 'SJ',
447
- Swaziland = 'SZ',
448
- Sweden = 'SE',
449
- Switzerland = 'CH',
450
- SyrianArabRepublic = 'SY',
451
- Taiwan = 'TW',
452
- Tajikistan = 'TJ',
453
- Tanzania = 'TZ',
454
- Thailand = 'TH',
455
- TimorLeste = 'TL',
456
- Togo = 'TG',
457
- Tokelau = 'TK',
458
- Tonga = 'TO',
459
- TrinidadAndTobago = 'TT',
460
- Tunisia = 'TN',
461
- Turkey = 'TR',
462
- Turkmenistan = 'TM',
463
- TurksAndCaicosIslands = 'TC',
464
- Tuvalu = 'TV',
465
- Uganda = 'UG',
466
- Ukraine = 'UA',
467
- UnitedArabEmirates = 'AE',
468
- UnitedKingdom = 'GB',
469
- UnitedStates = 'US',
470
- UnitedStatesOutlyingIslands = 'UM',
471
- Uruguay = 'UY',
472
- Uzbekistan = 'UZ',
473
- Vanuatu = 'VU',
474
- Venezuela = 'VE',
475
- Vietnam = 'VN',
476
- VirginIslandsBritish = 'VG',
477
- VirginIslandsUS = 'VI',
478
- WallisAndFutuna = 'WF',
479
- WesternSahara = 'EH',
480
- Yemen = 'YE',
481
- Zambia = 'ZM',
482
- Zimbabwe = 'ZW',
483
- }
484
- export = Odesli;
1
+ // Type definitions for odesli.js
2
+ // Project: https://github.com/MattrAus/odesli.js, https://www.npmjs.com/package/odesli.js
3
+ // Definitions by: Mattr <https://github.com/MattrAus>
4
+ // TypeScript Version: 2.7
5
+
6
+ declare class Odesli {
7
+ /**
8
+ *
9
+ * @param {string=} apiKey Limited to 10 Requests per Minute without an API Key.
10
+ *
11
+ * Email `developers@song.link` to get an API Key.
12
+ *
13
+ * @param {string=} version Defaults to `v1-alpha.1`
14
+ */
15
+ constructor(options?: {
16
+ /**
17
+ * @param {string=} apiKey Optional: Limited to 10 Requests per Minute without an API Key.
18
+ *
19
+ * Email `developers@song.link` to get an API Key.
20
+ */
21
+ apiKey?: string
22
+ /**
23
+ * @param {string=} version Optional: Defaults to `v1-alpha.1`
24
+ */
25
+ version?: 'v1-alpha.1' | string
26
+ });
27
+
28
+ /**
29
+ *
30
+ * @param {string} url Streaming service URL
31
+ * @param {CountryCode} [country='US'] Optional: [ISO 3166-1 Alpha-2 Code](https://www.iso.org/obp/ui/#search/code/)
32
+ * @returns Promise<Page.Response>
33
+ */
34
+ fetch(url: string, country?: CountryCode | 'US'): Promise<Page.Response>;
35
+
36
+ /**
37
+ *
38
+ * @param {Platform} platform Streaming service
39
+ * @param {entityType} type Type: song or album
40
+ * @param {string} id Type: song or album
41
+ * @param {CountryCode} [country='US'] Optional: [ISO 3166-1 Alpha-2 Code](https://www.iso.org/obp/ui/#search/code/)
42
+ * @returns Promise<Page.Response>
43
+ */
44
+ getByParams(platform: string, type: entityType, id: string, country?: CountryCode): Promise<Page.Response>;
45
+
46
+ /**
47
+ *
48
+ * @param url Streaming service URL
49
+ * @param {CountryCode} [country='US'] Optional: [ISO 3166-1 Alpha-2 Code](https://www.iso.org/obp/ui/#search/code/)
50
+ * @returns Promise<Page.Response>
51
+ */
52
+ getById(id: string, country?: CountryCode): Promise<Page.Response>;
53
+ }
54
+
55
+ declare namespace Page {
56
+ interface Response {
57
+ /**
58
+ * The unique ID for the input entity that was supplied in the request.
59
+ *
60
+ * The data for this entity, such as title, artistName, etc. will be found in an object at `entitiesByUniqueId[entityUniqueId]`
61
+ */
62
+ entityUniqueId: string,
63
+
64
+ /**
65
+ * Song/Album Title of the given response, same as `Response.entitiesByUniqueId[Response.entityUniqueId].title`
66
+ */
67
+ title: string,
68
+
69
+ /**
70
+ * Artist's Name of the given response, same as `Response.entitiesByUniqueId[Response.entityUniqueId].artistName`
71
+ */
72
+ artist: string,
73
+
74
+ /**
75
+ * Type (song or album) of the given response, same as `Response.entitiesByUniqueId[Response.entityUniqueId].type`
76
+ */
77
+ type: entityType,
78
+
79
+ /**
80
+ * Thumbnail of the given response, same as `Response.entitiesByUniqueId[Response.entityUniqueId].thumbnailUrl`
81
+ */
82
+ thumbnail: string,
83
+
84
+ /**
85
+ * The userCountry query param that was supplied in the request. It signals
86
+ * the country/availability we use to query the streaming platforms. Defaults
87
+ * to 'US' if no userCountry supplied in the request.
88
+ *
89
+ * NOTE: As a fallback, our service may respond with matches that were found
90
+ * in a locale other than the userCountry supplied
91
+ */
92
+ userCountry: CountryCode,
93
+
94
+ /**
95
+ * A URL that will render the Songlink page for this entity
96
+ */
97
+ pageUrl: string,
98
+
99
+ /**
100
+ * A collection of objects. Each key is a platform, and each value is an
101
+ * object that contains data for linking to the match
102
+ */
103
+ linksByPlatform: {
104
+ /**
105
+ * Each key in `linksByPlatform` is a Platform. A Platform will exist here
106
+ * only if there is a match found. E.g. if there is no YouTube match found,
107
+ * then neither `youtube` or `youtubeMusic` properties will exist here
108
+ */
109
+ [key in Platform]: {
110
+ /**
111
+ * The unique ID for this entity. Use it to look up data about this entity
112
+ * at `entitiesByUniqueId[entityUniqueId]`
113
+ */
114
+ entityUniqueId: string,
115
+
116
+ /**
117
+ * The URL for this match
118
+ */
119
+ url: string,
120
+
121
+ /**
122
+ * The native app URI that can be used on mobile devices to open this
123
+ * entity directly in the native app
124
+ */
125
+ nativeAppUriMobile?: string,
126
+
127
+ /**
128
+ * The native app URI that can be used on desktop devices to open this
129
+ * entity directly in the native app
130
+ */
131
+ nativeAppUriDesktop?: string,
132
+ };
133
+ },
134
+
135
+ /**
136
+ * A collection of objects. Each key is a unique identifier for a streaming
137
+ * entity, and each value is an object that contains data for that entity,
138
+ * such as `title`, `artistName`, `thumbnailUrl`, etc.
139
+ */
140
+ entitiesByUniqueId: {
141
+ /**
142
+ * The unique identifier key for a streaming entitiy
143
+ */
144
+ [entityUniqueId: string]: {
145
+ /**
146
+ * This is the unique identifier on the streaming platform/API provider
147
+ */
148
+ id: string,
149
+
150
+ /**
151
+ * The type of media this entity is
152
+ */
153
+ type: entityType,
154
+
155
+ /**
156
+ * The title of the `song`/`album`
157
+ */
158
+ title?: string,
159
+
160
+ /**
161
+ * The artist/s of the `song`/`album`
162
+ */
163
+ artistName?: [string],
164
+
165
+ /**
166
+ * The coverart image URL of the `song`/`album`
167
+ */
168
+ thumbnailUrl?: string,
169
+
170
+ /**
171
+ * Coverart's width
172
+ */
173
+ thumbnailWidth?: number,
174
+ /**
175
+ * Coverart's height
176
+ */
177
+ thumbnailHeight?: number,
178
+
179
+ /**
180
+ * The API provider that powered this match. Useful if you'd like to use
181
+ * this entity's data to query the API directly
182
+ */
183
+ apiProvider: APIProvider,
184
+
185
+ /**
186
+ * An array of platforms that are "powered" by this entity. E.g. an entity
187
+ * from Apple Music will generally have a `platforms` array of
188
+ * `["appleMusic", "itunes"]` since both those platforms/links are derived
189
+ * from this single entity
190
+ */
191
+ platforms: Platform[],
192
+ },
193
+ },
194
+ }
195
+ }
196
+
197
+ type Platform =
198
+ | 'spotify'
199
+ | 'itunes'
200
+ | 'appleMusic'
201
+ | 'youtube'
202
+ | 'youtubeMusic'
203
+ | 'google'
204
+ | 'googleStore'
205
+ | 'pandora'
206
+ | 'deezer'
207
+ | 'tidal'
208
+ | 'amazonStore'
209
+ | 'amazonMusic'
210
+ | 'soundcloud'
211
+ | 'napster'
212
+ | 'yandex'
213
+ | 'spinrilla';
214
+
215
+ type APIProvider =
216
+ | 'spotify'
217
+ | 'itunes'
218
+ | 'youtube'
219
+ | 'google'
220
+ | 'pandora'
221
+ | 'deezer'
222
+ | 'tidal'
223
+ | 'amazon'
224
+ | 'soundcloud'
225
+ | 'napster'
226
+ | 'yandex'
227
+ | 'spinrilla';
228
+
229
+ type entityType =
230
+ | 'song'
231
+ | 'album'
232
+
233
+ declare enum CountryCode {
234
+ Afghanistan = 'AF',
235
+ AlandIslands = 'AX',
236
+ Albania = 'AL',
237
+ Algeria = 'DZ',
238
+ AmericanSamoa = 'AS',
239
+ Andorra = 'AD',
240
+ Angola = 'AO',
241
+ Anguilla = 'AI',
242
+ Antarctica = 'AQ',
243
+ AntiguaAndBarbuda = 'AG',
244
+ Argentina = 'AR',
245
+ Armenia = 'AM',
246
+ Aruba = 'AW',
247
+ Australia = 'AU',
248
+ Austria = 'AT',
249
+ Azerbaijan = 'AZ',
250
+ Bahamas = 'BS',
251
+ Bahrain = 'BH',
252
+ Bangladesh = 'BD',
253
+ Barbados = 'BB',
254
+ Belarus = 'BY',
255
+ Belgium = 'BE',
256
+ Belize = 'BZ',
257
+ Benin = 'BJ',
258
+ Bermuda = 'BM',
259
+ Bhutan = 'BT',
260
+ Bolivia = 'BO',
261
+ BonaireSintEustatiusSaba = 'BQ',
262
+ BosniaAndHerzegovina = 'BA',
263
+ Botswana = 'BW',
264
+ BouvetIsland = 'BV',
265
+ Brazil = 'BR',
266
+ BritishIndianOceanTerritory = 'IO',
267
+ BruneiDarussalam = 'BN',
268
+ Bulgaria = 'BG',
269
+ BurkinaFaso = 'BF',
270
+ Burundi = 'BI',
271
+ Cambodia = 'KH',
272
+ Cameroon = 'CM',
273
+ Canada = 'CA',
274
+ CapeVerde = 'CV',
275
+ CaymanIslands = 'KY',
276
+ CentralAfricanRepublic = 'CF',
277
+ Chad = 'TD',
278
+ Chile = 'CL',
279
+ China = 'CN',
280
+ ChristmasIsland = 'CX',
281
+ CocosKeelingIslands = 'CC',
282
+ Colombia = 'CO',
283
+ Comoros = 'KM',
284
+ Congo = 'CG',
285
+ CongoDemocraticRepublic = 'CD',
286
+ CookIslands = 'CK',
287
+ CostaRica = 'CR',
288
+ CoteDIvoire = 'CI',
289
+ Croatia = 'HR',
290
+ Cuba = 'CU',
291
+ Curaçao = 'CW',
292
+ Cyprus = 'CY',
293
+ CzechRepublic = 'CZ',
294
+ Denmark = 'DK',
295
+ Djibouti = 'DJ',
296
+ Dominica = 'DM',
297
+ DominicanRepublic = 'DO',
298
+ Ecuador = 'EC',
299
+ Egypt = 'EG',
300
+ ElSalvador = 'SV',
301
+ EquatorialGuinea = 'GQ',
302
+ Eritrea = 'ER',
303
+ Estonia = 'EE',
304
+ Ethiopia = 'ET',
305
+ FalklandIslands = 'FK',
306
+ FaroeIslands = 'FO',
307
+ Fiji = 'FJ',
308
+ Finland = 'FI',
309
+ France = 'FR',
310
+ FrenchGuiana = 'GF',
311
+ FrenchPolynesia = 'PF',
312
+ FrenchSouthernTerritories = 'TF',
313
+ Gabon = 'GA',
314
+ Gambia = 'GM',
315
+ Georgia = 'GE',
316
+ Germany = 'DE',
317
+ Ghana = 'GH',
318
+ Gibraltar = 'GI',
319
+ Greece = 'GR',
320
+ Greenland = 'GL',
321
+ Grenada = 'GD',
322
+ Guadeloupe = 'GP',
323
+ Guam = 'GU',
324
+ Guatemala = 'GT',
325
+ Guernsey = 'GG',
326
+ Guinea = 'GN',
327
+ GuineaBissau = 'GW',
328
+ Guyana = 'GY',
329
+ Haiti = 'HT',
330
+ HeardIslandMcdonaldIslands = 'HM',
331
+ HolySeeVaticanCityState = 'VA',
332
+ Honduras = 'HN',
333
+ HongKong = 'HK',
334
+ Hungary = 'HU',
335
+ Iceland = 'IS',
336
+ India = 'IN',
337
+ Indonesia = 'ID',
338
+ Iran = 'IR',
339
+ Iraq = 'IQ',
340
+ Ireland = 'IE',
341
+ IsleOfMan = 'IM',
342
+ Israel = 'IL',
343
+ Italy = 'IT',
344
+ Jamaica = 'JM',
345
+ Japan = 'JP',
346
+ Jersey = 'JE',
347
+ Jordan = 'JO',
348
+ Kazakhstan = 'KZ',
349
+ Kenya = 'KE',
350
+ Kiribati = 'KI',
351
+ Korea = 'KR',
352
+ KoreaDemocraticPeoplesRepublic = 'KP',
353
+ Kuwait = 'KW',
354
+ Kyrgyzstan = 'KG',
355
+ LaoPeoplesDemocraticRepublic = 'LA',
356
+ Latvia = 'LV',
357
+ Lebanon = 'LB',
358
+ Lesotho = 'LS',
359
+ Liberia = 'LR',
360
+ LibyanArabJamahiriya = 'LY',
361
+ Liechtenstein = 'LI',
362
+ Lithuania = 'LT',
363
+ Luxembourg = 'LU',
364
+ Macao = 'MO',
365
+ Macedonia = 'MK',
366
+ Madagascar = 'MG',
367
+ Malawi = 'MW',
368
+ Malaysia = 'MY',
369
+ Maldives = 'MV',
370
+ Mali = 'ML',
371
+ Malta = 'MT',
372
+ MarshallIslands = 'MH',
373
+ Martinique = 'MQ',
374
+ Mauritania = 'MR',
375
+ Mauritius = 'MU',
376
+ Mayotte = 'YT',
377
+ Mexico = 'MX',
378
+ Micronesia = 'FM',
379
+ Moldova = 'MD',
380
+ Monaco = 'MC',
381
+ Mongolia = 'MN',
382
+ Montenegro = 'ME',
383
+ Montserrat = 'MS',
384
+ Morocco = 'MA',
385
+ Mozambique = 'MZ',
386
+ Myanmar = 'MM',
387
+ Namibia = 'NA',
388
+ Nauru = 'NR',
389
+ Nepal = 'NP',
390
+ Netherlands = 'NL',
391
+ NewCaledonia = 'NC',
392
+ NewZealand = 'NZ',
393
+ Nicaragua = 'NI',
394
+ Niger = 'NE',
395
+ Nigeria = 'NG',
396
+ Niue = 'NU',
397
+ NorfolkIsland = 'NF',
398
+ NorthernMarianaIslands = 'MP',
399
+ Norway = 'NO',
400
+ Oman = 'OM',
401
+ Pakistan = 'PK',
402
+ Palau = 'PW',
403
+ PalestinianTerritory = 'PS',
404
+ Panama = 'PA',
405
+ PapuaNewGuinea = 'PG',
406
+ Paraguay = 'PY',
407
+ Peru = 'PE',
408
+ Philippines = 'PH',
409
+ Pitcairn = 'PN',
410
+ Poland = 'PL',
411
+ Portugal = 'PT',
412
+ PuertoRico = 'PR',
413
+ Qatar = 'QA',
414
+ Reunion = 'RE',
415
+ Romania = 'RO',
416
+ RussianFederation = 'RU',
417
+ Rwanda = 'RW',
418
+ SaintBarthelemy = 'BL',
419
+ SaintHelena = 'SH',
420
+ SaintKittsAndNevis = 'KN',
421
+ SaintLucia = 'LC',
422
+ SaintMartin = 'MF',
423
+ SaintPierreAndMiquelon = 'PM',
424
+ SaintVincentAndGrenadines = 'VC',
425
+ Samoa = 'WS',
426
+ SanMarino = 'SM',
427
+ SaoTomeAndPrincipe = 'ST',
428
+ SaudiArabia = 'SA',
429
+ Senegal = 'SN',
430
+ Serbia = 'RS',
431
+ Seychelles = 'SC',
432
+ SierraLeone = 'SL',
433
+ Singapore = 'SG',
434
+ SintMaarten = 'SX',
435
+ Slovakia = 'SK',
436
+ Slovenia = 'SI',
437
+ SolomonIslands = 'SB',
438
+ Somalia = 'SO',
439
+ SouthAfrica = 'ZA',
440
+ SouthGeorgiaAndSandwichIsl = 'GS',
441
+ SouthSudan = 'SS',
442
+ Spain = 'ES',
443
+ SriLanka = 'LK',
444
+ Sudan = 'SD',
445
+ Suriname = 'SR',
446
+ SvalbardAndJanMayen = 'SJ',
447
+ Swaziland = 'SZ',
448
+ Sweden = 'SE',
449
+ Switzerland = 'CH',
450
+ SyrianArabRepublic = 'SY',
451
+ Taiwan = 'TW',
452
+ Tajikistan = 'TJ',
453
+ Tanzania = 'TZ',
454
+ Thailand = 'TH',
455
+ TimorLeste = 'TL',
456
+ Togo = 'TG',
457
+ Tokelau = 'TK',
458
+ Tonga = 'TO',
459
+ TrinidadAndTobago = 'TT',
460
+ Tunisia = 'TN',
461
+ Turkey = 'TR',
462
+ Turkmenistan = 'TM',
463
+ TurksAndCaicosIslands = 'TC',
464
+ Tuvalu = 'TV',
465
+ Uganda = 'UG',
466
+ Ukraine = 'UA',
467
+ UnitedArabEmirates = 'AE',
468
+ UnitedKingdom = 'GB',
469
+ UnitedStates = 'US',
470
+ UnitedStatesOutlyingIslands = 'UM',
471
+ Uruguay = 'UY',
472
+ Uzbekistan = 'UZ',
473
+ Vanuatu = 'VU',
474
+ Venezuela = 'VE',
475
+ Vietnam = 'VN',
476
+ VirginIslandsBritish = 'VG',
477
+ VirginIslandsUS = 'VI',
478
+ WallisAndFutuna = 'WF',
479
+ WesternSahara = 'EH',
480
+ Yemen = 'YE',
481
+ Zambia = 'ZM',
482
+ Zimbabwe = 'ZW',
483
+ }
484
+ export = Odesli;