@saavn-labs/sdk 0.1.0 → 0.1.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/core/models/album.d.ts +1 -1
- package/dist/core/models/artist.d.ts +1 -1
- package/dist/core/models/index.d.ts +4 -4
- package/dist/core/models/index.js +4 -4
- package/dist/core/models/playlist.d.ts +1 -1
- package/dist/core/models/song.d.ts +1 -1
- package/dist/core/modules/album.module.js +4 -4
- package/dist/core/modules/artist.module.js +4 -4
- package/dist/core/modules/extras.module.js +3 -3
- package/dist/core/modules/playlist.module.js +4 -4
- package/dist/core/modules/song.module.d.ts +1 -1
- package/dist/core/modules/song.module.js +5 -5
- package/dist/helpers/experimental/stream-urls/index.js +3 -3
- package/dist/helpers/experimental/stream-urls/stream-urls.edge.js +1 -1
- package/dist/helpers/fetch.js +1 -1
- package/dist/helpers/utils.d.ts +1 -1
- package/dist/index.d.ts +11 -10
- package/dist/index.js +9 -8
- package/dist/saavn/common-mapper.d.ts +4 -4
- package/dist/saavn/entities/album.entity.js +2 -2
- package/dist/saavn/entities/artist.entity.js +2 -2
- package/dist/saavn/entities/extras.js +2 -2
- package/dist/saavn/entities/index.d.ts +6 -6
- package/dist/saavn/entities/index.js +6 -6
- package/dist/saavn/entities/playlist.entity.js +2 -2
- package/dist/saavn/entities/song.entity.js +1 -1
- package/dist/saavn/operations/get-details/index.d.ts +9 -9
- package/dist/saavn/operations/get-details/index.js +2 -2
- package/dist/saavn/operations/get-details/mapper.ops.d.ts +9 -9
- package/dist/saavn/operations/get-details/mapper.ops.js +2 -2
- package/dist/saavn/operations/get-details/schema.ops.js +3 -3
- package/dist/saavn/operations/get-reco/index.d.ts +4 -4
- package/dist/saavn/operations/get-reco/index.js +2 -2
- package/dist/saavn/operations/get-reco/mapper.ops.d.ts +4 -4
- package/dist/saavn/operations/get-reco/mapper.ops.js +2 -2
- package/dist/saavn/operations/get-reco/schema.ops.js +3 -3
- package/dist/saavn/operations/get-trending/index.d.ts +5 -5
- package/dist/saavn/operations/get-trending/index.js +2 -2
- package/dist/saavn/operations/get-trending/mapper.ops.d.ts +2 -2
- package/dist/saavn/operations/get-trending/mapper.ops.js +2 -2
- package/dist/saavn/operations/get-trending/schema.ops.js +2 -2
- package/dist/saavn/operations/index.d.ts +6 -6
- package/dist/saavn/operations/index.js +6 -6
- package/dist/saavn/operations/search-results/index.d.ts +39 -39
- package/dist/saavn/operations/search-results/index.js +2 -2
- package/dist/saavn/operations/search-results/mapper.ops.d.ts +39 -39
- package/dist/saavn/operations/search-results/mapper.ops.js +2 -2
- package/dist/saavn/operations/search-results/schema.ops.js +3 -3
- package/dist/saavn/operations/web-api/index.d.ts +5 -5
- package/dist/saavn/operations/web-api/index.js +2 -2
- package/dist/saavn/operations/web-api/mapper.ops.d.ts +5 -5
- package/dist/saavn/operations/web-api/mapper.ops.js +2 -2
- package/dist/saavn/operations/web-api/schema.ops.js +3 -3
- package/dist/saavn/operations/web-radio/index.d.ts +2 -2
- package/dist/saavn/operations/web-radio/index.js +2 -2
- package/dist/saavn/operations/web-radio/mapper.ops.d.ts +2 -2
- package/dist/saavn/operations/web-radio/mapper.ops.js +2 -2
- package/dist/saavn/operations/web-radio/schema.ops.js +3 -3
- package/dist/saavn/run-operation.js +2 -2
- package/dist/schemas/index.js +6 -6
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { NonEmptyString } from '../../primitives/string';
|
|
3
|
-
import { SaavnTrendingAlbum, SaavnTrendingPlaylist, SaavnTrendingSongEntity, } from '../../entities';
|
|
2
|
+
import { NonEmptyString } from '../../primitives/string.js';
|
|
3
|
+
import { SaavnTrendingAlbum, SaavnTrendingPlaylist, SaavnTrendingSongEntity, } from '../../entities/index.js';
|
|
4
4
|
export const SaavnGetTrendingSchema = {
|
|
5
5
|
all: {
|
|
6
6
|
params: z.strictObject({}),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './get-details';
|
|
2
|
-
export * from './get-reco';
|
|
3
|
-
export * from './get-trending';
|
|
4
|
-
export * from './search-results';
|
|
5
|
-
export * from './web-api';
|
|
6
|
-
export * from './web-radio';
|
|
1
|
+
export * from './get-details/index.js';
|
|
2
|
+
export * from './get-reco/index.js';
|
|
3
|
+
export * from './get-trending/index.js';
|
|
4
|
+
export * from './search-results/index.js';
|
|
5
|
+
export * from './web-api/index.js';
|
|
6
|
+
export * from './web-radio/index.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './get-details';
|
|
2
|
-
export * from './get-reco';
|
|
3
|
-
export * from './get-trending';
|
|
4
|
-
export * from './search-results';
|
|
5
|
-
export * from './web-api';
|
|
6
|
-
export * from './web-radio';
|
|
1
|
+
export * from './get-details/index.js';
|
|
2
|
+
export * from './get-reco/index.js';
|
|
3
|
+
export * from './get-trending/index.js';
|
|
4
|
+
export * from './search-results/index.js';
|
|
5
|
+
export * from './web-api/index.js';
|
|
6
|
+
export * from './web-radio/index.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SaavnSearchResultsSchema } from './schema.ops';
|
|
1
|
+
import { SaavnSearchResultsSchema } from './schema.ops.js';
|
|
2
2
|
export declare const SaavnSearchResults: {
|
|
3
3
|
all: {
|
|
4
4
|
call: string;
|
|
@@ -195,7 +195,7 @@ export declare const SaavnSearchResults: {
|
|
|
195
195
|
subtitle: any;
|
|
196
196
|
description: any;
|
|
197
197
|
url: any;
|
|
198
|
-
images: import("
|
|
198
|
+
images: import("../../../types.js").Image[];
|
|
199
199
|
flags: {
|
|
200
200
|
isExplicit: boolean;
|
|
201
201
|
isRadioPresent?: undefined;
|
|
@@ -208,7 +208,7 @@ export declare const SaavnSearchResults: {
|
|
|
208
208
|
subtitle: any;
|
|
209
209
|
description: any;
|
|
210
210
|
url: any;
|
|
211
|
-
images: import("
|
|
211
|
+
images: import("../../../types.js").Image[];
|
|
212
212
|
flags: {
|
|
213
213
|
isExplicit: boolean;
|
|
214
214
|
isRadioPresent?: undefined;
|
|
@@ -219,7 +219,7 @@ export declare const SaavnSearchResults: {
|
|
|
219
219
|
type: "artist";
|
|
220
220
|
name: any;
|
|
221
221
|
url: any;
|
|
222
|
-
images: import("
|
|
222
|
+
images: import("../../../types.js").Image[];
|
|
223
223
|
flags: {
|
|
224
224
|
isRadioPresent: any;
|
|
225
225
|
isExplicit?: undefined;
|
|
@@ -234,7 +234,7 @@ export declare const SaavnSearchResults: {
|
|
|
234
234
|
subtitle: any;
|
|
235
235
|
description: any;
|
|
236
236
|
url: any;
|
|
237
|
-
images: import("
|
|
237
|
+
images: import("../../../types.js").Image[];
|
|
238
238
|
flags: {
|
|
239
239
|
isExplicit: boolean;
|
|
240
240
|
isRadioPresent?: undefined;
|
|
@@ -247,7 +247,7 @@ export declare const SaavnSearchResults: {
|
|
|
247
247
|
subtitle: any;
|
|
248
248
|
description: any;
|
|
249
249
|
url: any;
|
|
250
|
-
images: import("
|
|
250
|
+
images: import("../../../types.js").Image[];
|
|
251
251
|
flags?: undefined;
|
|
252
252
|
name?: undefined;
|
|
253
253
|
} | null)[];
|
|
@@ -261,7 +261,7 @@ export declare const SaavnSearchResults: {
|
|
|
261
261
|
subtitle: any;
|
|
262
262
|
description: any;
|
|
263
263
|
url: any;
|
|
264
|
-
images: import("
|
|
264
|
+
images: import("../../../types.js").Image[];
|
|
265
265
|
flags: {
|
|
266
266
|
isExplicit: boolean;
|
|
267
267
|
isRadioPresent?: undefined;
|
|
@@ -274,7 +274,7 @@ export declare const SaavnSearchResults: {
|
|
|
274
274
|
subtitle: any;
|
|
275
275
|
description: any;
|
|
276
276
|
url: any;
|
|
277
|
-
images: import("
|
|
277
|
+
images: import("../../../types.js").Image[];
|
|
278
278
|
flags: {
|
|
279
279
|
isExplicit: boolean;
|
|
280
280
|
isRadioPresent?: undefined;
|
|
@@ -285,7 +285,7 @@ export declare const SaavnSearchResults: {
|
|
|
285
285
|
type: "artist";
|
|
286
286
|
name: any;
|
|
287
287
|
url: any;
|
|
288
|
-
images: import("
|
|
288
|
+
images: import("../../../types.js").Image[];
|
|
289
289
|
flags: {
|
|
290
290
|
isRadioPresent: any;
|
|
291
291
|
isExplicit?: undefined;
|
|
@@ -300,7 +300,7 @@ export declare const SaavnSearchResults: {
|
|
|
300
300
|
subtitle: any;
|
|
301
301
|
description: any;
|
|
302
302
|
url: any;
|
|
303
|
-
images: import("
|
|
303
|
+
images: import("../../../types.js").Image[];
|
|
304
304
|
flags: {
|
|
305
305
|
isExplicit: boolean;
|
|
306
306
|
isRadioPresent?: undefined;
|
|
@@ -313,7 +313,7 @@ export declare const SaavnSearchResults: {
|
|
|
313
313
|
subtitle: any;
|
|
314
314
|
description: any;
|
|
315
315
|
url: any;
|
|
316
|
-
images: import("
|
|
316
|
+
images: import("../../../types.js").Image[];
|
|
317
317
|
flags?: undefined;
|
|
318
318
|
name?: undefined;
|
|
319
319
|
} | null)[];
|
|
@@ -327,7 +327,7 @@ export declare const SaavnSearchResults: {
|
|
|
327
327
|
subtitle: any;
|
|
328
328
|
description: any;
|
|
329
329
|
url: any;
|
|
330
|
-
images: import("
|
|
330
|
+
images: import("../../../types.js").Image[];
|
|
331
331
|
flags: {
|
|
332
332
|
isExplicit: boolean;
|
|
333
333
|
isRadioPresent?: undefined;
|
|
@@ -340,7 +340,7 @@ export declare const SaavnSearchResults: {
|
|
|
340
340
|
subtitle: any;
|
|
341
341
|
description: any;
|
|
342
342
|
url: any;
|
|
343
|
-
images: import("
|
|
343
|
+
images: import("../../../types.js").Image[];
|
|
344
344
|
flags: {
|
|
345
345
|
isExplicit: boolean;
|
|
346
346
|
isRadioPresent?: undefined;
|
|
@@ -351,7 +351,7 @@ export declare const SaavnSearchResults: {
|
|
|
351
351
|
type: "artist";
|
|
352
352
|
name: any;
|
|
353
353
|
url: any;
|
|
354
|
-
images: import("
|
|
354
|
+
images: import("../../../types.js").Image[];
|
|
355
355
|
flags: {
|
|
356
356
|
isRadioPresent: any;
|
|
357
357
|
isExplicit?: undefined;
|
|
@@ -366,7 +366,7 @@ export declare const SaavnSearchResults: {
|
|
|
366
366
|
subtitle: any;
|
|
367
367
|
description: any;
|
|
368
368
|
url: any;
|
|
369
|
-
images: import("
|
|
369
|
+
images: import("../../../types.js").Image[];
|
|
370
370
|
flags: {
|
|
371
371
|
isExplicit: boolean;
|
|
372
372
|
isRadioPresent?: undefined;
|
|
@@ -379,7 +379,7 @@ export declare const SaavnSearchResults: {
|
|
|
379
379
|
subtitle: any;
|
|
380
380
|
description: any;
|
|
381
381
|
url: any;
|
|
382
|
-
images: import("
|
|
382
|
+
images: import("../../../types.js").Image[];
|
|
383
383
|
flags?: undefined;
|
|
384
384
|
name?: undefined;
|
|
385
385
|
} | null)[];
|
|
@@ -393,7 +393,7 @@ export declare const SaavnSearchResults: {
|
|
|
393
393
|
subtitle: any;
|
|
394
394
|
description: any;
|
|
395
395
|
url: any;
|
|
396
|
-
images: import("
|
|
396
|
+
images: import("../../../types.js").Image[];
|
|
397
397
|
flags: {
|
|
398
398
|
isExplicit: boolean;
|
|
399
399
|
isRadioPresent?: undefined;
|
|
@@ -406,7 +406,7 @@ export declare const SaavnSearchResults: {
|
|
|
406
406
|
subtitle: any;
|
|
407
407
|
description: any;
|
|
408
408
|
url: any;
|
|
409
|
-
images: import("
|
|
409
|
+
images: import("../../../types.js").Image[];
|
|
410
410
|
flags: {
|
|
411
411
|
isExplicit: boolean;
|
|
412
412
|
isRadioPresent?: undefined;
|
|
@@ -417,7 +417,7 @@ export declare const SaavnSearchResults: {
|
|
|
417
417
|
type: "artist";
|
|
418
418
|
name: any;
|
|
419
419
|
url: any;
|
|
420
|
-
images: import("
|
|
420
|
+
images: import("../../../types.js").Image[];
|
|
421
421
|
flags: {
|
|
422
422
|
isRadioPresent: any;
|
|
423
423
|
isExplicit?: undefined;
|
|
@@ -432,7 +432,7 @@ export declare const SaavnSearchResults: {
|
|
|
432
432
|
subtitle: any;
|
|
433
433
|
description: any;
|
|
434
434
|
url: any;
|
|
435
|
-
images: import("
|
|
435
|
+
images: import("../../../types.js").Image[];
|
|
436
436
|
flags: {
|
|
437
437
|
isExplicit: boolean;
|
|
438
438
|
isRadioPresent?: undefined;
|
|
@@ -445,7 +445,7 @@ export declare const SaavnSearchResults: {
|
|
|
445
445
|
subtitle: any;
|
|
446
446
|
description: any;
|
|
447
447
|
url: any;
|
|
448
|
-
images: import("
|
|
448
|
+
images: import("../../../types.js").Image[];
|
|
449
449
|
flags?: undefined;
|
|
450
450
|
name?: undefined;
|
|
451
451
|
} | null)[];
|
|
@@ -459,7 +459,7 @@ export declare const SaavnSearchResults: {
|
|
|
459
459
|
subtitle: any;
|
|
460
460
|
description: any;
|
|
461
461
|
url: any;
|
|
462
|
-
images: import("
|
|
462
|
+
images: import("../../../types.js").Image[];
|
|
463
463
|
flags: {
|
|
464
464
|
isExplicit: boolean;
|
|
465
465
|
isRadioPresent?: undefined;
|
|
@@ -472,7 +472,7 @@ export declare const SaavnSearchResults: {
|
|
|
472
472
|
subtitle: any;
|
|
473
473
|
description: any;
|
|
474
474
|
url: any;
|
|
475
|
-
images: import("
|
|
475
|
+
images: import("../../../types.js").Image[];
|
|
476
476
|
flags: {
|
|
477
477
|
isExplicit: boolean;
|
|
478
478
|
isRadioPresent?: undefined;
|
|
@@ -483,7 +483,7 @@ export declare const SaavnSearchResults: {
|
|
|
483
483
|
type: "artist";
|
|
484
484
|
name: any;
|
|
485
485
|
url: any;
|
|
486
|
-
images: import("
|
|
486
|
+
images: import("../../../types.js").Image[];
|
|
487
487
|
flags: {
|
|
488
488
|
isRadioPresent: any;
|
|
489
489
|
isExplicit?: undefined;
|
|
@@ -498,7 +498,7 @@ export declare const SaavnSearchResults: {
|
|
|
498
498
|
subtitle: any;
|
|
499
499
|
description: any;
|
|
500
500
|
url: any;
|
|
501
|
-
images: import("
|
|
501
|
+
images: import("../../../types.js").Image[];
|
|
502
502
|
flags: {
|
|
503
503
|
isExplicit: boolean;
|
|
504
504
|
isRadioPresent?: undefined;
|
|
@@ -511,7 +511,7 @@ export declare const SaavnSearchResults: {
|
|
|
511
511
|
subtitle: any;
|
|
512
512
|
description: any;
|
|
513
513
|
url: any;
|
|
514
|
-
images: import("
|
|
514
|
+
images: import("../../../types.js").Image[];
|
|
515
515
|
flags?: undefined;
|
|
516
516
|
name?: undefined;
|
|
517
517
|
} | null)[];
|
|
@@ -583,7 +583,7 @@ export declare const SaavnSearchResults: {
|
|
|
583
583
|
mapper: (data: import("zod").infer<typeof SaavnSearchResultsSchema.albums.response>) => {
|
|
584
584
|
total: number;
|
|
585
585
|
start: number;
|
|
586
|
-
results: import("../../../core/models").Album[];
|
|
586
|
+
results: import("../../../core/models/album.js").Album[];
|
|
587
587
|
};
|
|
588
588
|
};
|
|
589
589
|
artists: {
|
|
@@ -624,7 +624,7 @@ export declare const SaavnSearchResults: {
|
|
|
624
624
|
name: string;
|
|
625
625
|
subtitle?: string;
|
|
626
626
|
url: string;
|
|
627
|
-
images: import("
|
|
627
|
+
images: import("../../../types.js").Image[];
|
|
628
628
|
stats?: {
|
|
629
629
|
followerCount?: number;
|
|
630
630
|
fanCount?: number;
|
|
@@ -634,7 +634,7 @@ export declare const SaavnSearchResults: {
|
|
|
634
634
|
available?: string[];
|
|
635
635
|
};
|
|
636
636
|
profile?: {
|
|
637
|
-
bio?: import("
|
|
637
|
+
bio?: import("../../../index.js").BioSection[];
|
|
638
638
|
dob?: string;
|
|
639
639
|
};
|
|
640
640
|
links?: {
|
|
@@ -652,20 +652,20 @@ export declare const SaavnSearchResults: {
|
|
|
652
652
|
};
|
|
653
653
|
};
|
|
654
654
|
songs?: {
|
|
655
|
-
top?: import("../../../core/models").Song[];
|
|
656
|
-
latest?: import("../../../core/models").Song[];
|
|
655
|
+
top?: import("../../../core/models/song.js").Song[];
|
|
656
|
+
latest?: import("../../../core/models/song.js").Song[];
|
|
657
657
|
};
|
|
658
658
|
albums?: {
|
|
659
|
-
top?: import("../../../core/models").Album[];
|
|
660
|
-
singles?: import("../../../core/models").Album[];
|
|
661
|
-
latest?: import("../../../core/models").Album[];
|
|
659
|
+
top?: import("../../../core/models/album.js").Album[];
|
|
660
|
+
singles?: import("../../../core/models/album.js").Album[];
|
|
661
|
+
latest?: import("../../../core/models/album.js").Album[];
|
|
662
662
|
};
|
|
663
663
|
playlists?: {
|
|
664
|
-
dedicated?: import("../../../core/models").Playlist[];
|
|
665
|
-
featured?: import("../../../core/models").Playlist[];
|
|
664
|
+
dedicated?: import("../../../core/models/playlist.js").Playlist[];
|
|
665
|
+
featured?: import("../../../core/models/playlist.js").Playlist[];
|
|
666
666
|
};
|
|
667
667
|
related?: {
|
|
668
|
-
similar?: import("../../../core/models").Artist[];
|
|
668
|
+
similar?: import("../../../core/models/artist.js").Artist[];
|
|
669
669
|
};
|
|
670
670
|
}[];
|
|
671
671
|
};
|
|
@@ -705,7 +705,7 @@ export declare const SaavnSearchResults: {
|
|
|
705
705
|
mapper: (data: import("zod").infer<typeof SaavnSearchResultsSchema.playlists.response>) => {
|
|
706
706
|
total: number;
|
|
707
707
|
start: number;
|
|
708
|
-
results: import("../../../core/models").Playlist[];
|
|
708
|
+
results: import("../../../core/models/playlist.js").Playlist[];
|
|
709
709
|
};
|
|
710
710
|
};
|
|
711
711
|
songs: {
|
|
@@ -784,7 +784,7 @@ export declare const SaavnSearchResults: {
|
|
|
784
784
|
mapper: (data: import("zod").infer<typeof SaavnSearchResultsSchema.songs.response>) => {
|
|
785
785
|
total: number;
|
|
786
786
|
start: number;
|
|
787
|
-
results: import("../../../core/models").Song[];
|
|
787
|
+
results: import("../../../core/models/song.js").Song[];
|
|
788
788
|
};
|
|
789
789
|
};
|
|
790
790
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SaavnSearchResultsMapper } from './mapper.ops';
|
|
2
|
-
import { SaavnSearchResultsSchema } from './schema.ops';
|
|
1
|
+
import { SaavnSearchResultsMapper } from './mapper.ops.js';
|
|
2
|
+
import { SaavnSearchResultsSchema } from './schema.ops.js';
|
|
3
3
|
export const SaavnSearchResults = {
|
|
4
4
|
all: {
|
|
5
5
|
call: 'autocomplete.get',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { SaavnSearchResultsSchema } from './schema.ops';
|
|
2
|
+
import { SaavnSearchResultsSchema } from './schema.ops.js';
|
|
3
3
|
export declare const SaavnSearchResultsMapper: {
|
|
4
4
|
all: (data: z.infer<typeof SaavnSearchResultsSchema.all.response>) => {
|
|
5
5
|
albums: {
|
|
@@ -11,7 +11,7 @@ export declare const SaavnSearchResultsMapper: {
|
|
|
11
11
|
subtitle: any;
|
|
12
12
|
description: any;
|
|
13
13
|
url: any;
|
|
14
|
-
images: import("
|
|
14
|
+
images: import("../../../types.js").Image[];
|
|
15
15
|
flags: {
|
|
16
16
|
isExplicit: boolean;
|
|
17
17
|
isRadioPresent?: undefined;
|
|
@@ -24,7 +24,7 @@ export declare const SaavnSearchResultsMapper: {
|
|
|
24
24
|
subtitle: any;
|
|
25
25
|
description: any;
|
|
26
26
|
url: any;
|
|
27
|
-
images: import("
|
|
27
|
+
images: import("../../../types.js").Image[];
|
|
28
28
|
flags: {
|
|
29
29
|
isExplicit: boolean;
|
|
30
30
|
isRadioPresent?: undefined;
|
|
@@ -35,7 +35,7 @@ export declare const SaavnSearchResultsMapper: {
|
|
|
35
35
|
type: "artist";
|
|
36
36
|
name: any;
|
|
37
37
|
url: any;
|
|
38
|
-
images: import("
|
|
38
|
+
images: import("../../../types.js").Image[];
|
|
39
39
|
flags: {
|
|
40
40
|
isRadioPresent: any;
|
|
41
41
|
isExplicit?: undefined;
|
|
@@ -50,7 +50,7 @@ export declare const SaavnSearchResultsMapper: {
|
|
|
50
50
|
subtitle: any;
|
|
51
51
|
description: any;
|
|
52
52
|
url: any;
|
|
53
|
-
images: import("
|
|
53
|
+
images: import("../../../types.js").Image[];
|
|
54
54
|
flags: {
|
|
55
55
|
isExplicit: boolean;
|
|
56
56
|
isRadioPresent?: undefined;
|
|
@@ -63,7 +63,7 @@ export declare const SaavnSearchResultsMapper: {
|
|
|
63
63
|
subtitle: any;
|
|
64
64
|
description: any;
|
|
65
65
|
url: any;
|
|
66
|
-
images: import("
|
|
66
|
+
images: import("../../../types.js").Image[];
|
|
67
67
|
flags?: undefined;
|
|
68
68
|
name?: undefined;
|
|
69
69
|
} | null)[];
|
|
@@ -77,7 +77,7 @@ export declare const SaavnSearchResultsMapper: {
|
|
|
77
77
|
subtitle: any;
|
|
78
78
|
description: any;
|
|
79
79
|
url: any;
|
|
80
|
-
images: import("
|
|
80
|
+
images: import("../../../types.js").Image[];
|
|
81
81
|
flags: {
|
|
82
82
|
isExplicit: boolean;
|
|
83
83
|
isRadioPresent?: undefined;
|
|
@@ -90,7 +90,7 @@ export declare const SaavnSearchResultsMapper: {
|
|
|
90
90
|
subtitle: any;
|
|
91
91
|
description: any;
|
|
92
92
|
url: any;
|
|
93
|
-
images: import("
|
|
93
|
+
images: import("../../../types.js").Image[];
|
|
94
94
|
flags: {
|
|
95
95
|
isExplicit: boolean;
|
|
96
96
|
isRadioPresent?: undefined;
|
|
@@ -101,7 +101,7 @@ export declare const SaavnSearchResultsMapper: {
|
|
|
101
101
|
type: "artist";
|
|
102
102
|
name: any;
|
|
103
103
|
url: any;
|
|
104
|
-
images: import("
|
|
104
|
+
images: import("../../../types.js").Image[];
|
|
105
105
|
flags: {
|
|
106
106
|
isRadioPresent: any;
|
|
107
107
|
isExplicit?: undefined;
|
|
@@ -116,7 +116,7 @@ export declare const SaavnSearchResultsMapper: {
|
|
|
116
116
|
subtitle: any;
|
|
117
117
|
description: any;
|
|
118
118
|
url: any;
|
|
119
|
-
images: import("
|
|
119
|
+
images: import("../../../types.js").Image[];
|
|
120
120
|
flags: {
|
|
121
121
|
isExplicit: boolean;
|
|
122
122
|
isRadioPresent?: undefined;
|
|
@@ -129,7 +129,7 @@ export declare const SaavnSearchResultsMapper: {
|
|
|
129
129
|
subtitle: any;
|
|
130
130
|
description: any;
|
|
131
131
|
url: any;
|
|
132
|
-
images: import("
|
|
132
|
+
images: import("../../../types.js").Image[];
|
|
133
133
|
flags?: undefined;
|
|
134
134
|
name?: undefined;
|
|
135
135
|
} | null)[];
|
|
@@ -143,7 +143,7 @@ export declare const SaavnSearchResultsMapper: {
|
|
|
143
143
|
subtitle: any;
|
|
144
144
|
description: any;
|
|
145
145
|
url: any;
|
|
146
|
-
images: import("
|
|
146
|
+
images: import("../../../types.js").Image[];
|
|
147
147
|
flags: {
|
|
148
148
|
isExplicit: boolean;
|
|
149
149
|
isRadioPresent?: undefined;
|
|
@@ -156,7 +156,7 @@ export declare const SaavnSearchResultsMapper: {
|
|
|
156
156
|
subtitle: any;
|
|
157
157
|
description: any;
|
|
158
158
|
url: any;
|
|
159
|
-
images: import("
|
|
159
|
+
images: import("../../../types.js").Image[];
|
|
160
160
|
flags: {
|
|
161
161
|
isExplicit: boolean;
|
|
162
162
|
isRadioPresent?: undefined;
|
|
@@ -167,7 +167,7 @@ export declare const SaavnSearchResultsMapper: {
|
|
|
167
167
|
type: "artist";
|
|
168
168
|
name: any;
|
|
169
169
|
url: any;
|
|
170
|
-
images: import("
|
|
170
|
+
images: import("../../../types.js").Image[];
|
|
171
171
|
flags: {
|
|
172
172
|
isRadioPresent: any;
|
|
173
173
|
isExplicit?: undefined;
|
|
@@ -182,7 +182,7 @@ export declare const SaavnSearchResultsMapper: {
|
|
|
182
182
|
subtitle: any;
|
|
183
183
|
description: any;
|
|
184
184
|
url: any;
|
|
185
|
-
images: import("
|
|
185
|
+
images: import("../../../types.js").Image[];
|
|
186
186
|
flags: {
|
|
187
187
|
isExplicit: boolean;
|
|
188
188
|
isRadioPresent?: undefined;
|
|
@@ -195,7 +195,7 @@ export declare const SaavnSearchResultsMapper: {
|
|
|
195
195
|
subtitle: any;
|
|
196
196
|
description: any;
|
|
197
197
|
url: any;
|
|
198
|
-
images: import("
|
|
198
|
+
images: import("../../../types.js").Image[];
|
|
199
199
|
flags?: undefined;
|
|
200
200
|
name?: undefined;
|
|
201
201
|
} | null)[];
|
|
@@ -209,7 +209,7 @@ export declare const SaavnSearchResultsMapper: {
|
|
|
209
209
|
subtitle: any;
|
|
210
210
|
description: any;
|
|
211
211
|
url: any;
|
|
212
|
-
images: import("
|
|
212
|
+
images: import("../../../types.js").Image[];
|
|
213
213
|
flags: {
|
|
214
214
|
isExplicit: boolean;
|
|
215
215
|
isRadioPresent?: undefined;
|
|
@@ -222,7 +222,7 @@ export declare const SaavnSearchResultsMapper: {
|
|
|
222
222
|
subtitle: any;
|
|
223
223
|
description: any;
|
|
224
224
|
url: any;
|
|
225
|
-
images: import("
|
|
225
|
+
images: import("../../../types.js").Image[];
|
|
226
226
|
flags: {
|
|
227
227
|
isExplicit: boolean;
|
|
228
228
|
isRadioPresent?: undefined;
|
|
@@ -233,7 +233,7 @@ export declare const SaavnSearchResultsMapper: {
|
|
|
233
233
|
type: "artist";
|
|
234
234
|
name: any;
|
|
235
235
|
url: any;
|
|
236
|
-
images: import("
|
|
236
|
+
images: import("../../../types.js").Image[];
|
|
237
237
|
flags: {
|
|
238
238
|
isRadioPresent: any;
|
|
239
239
|
isExplicit?: undefined;
|
|
@@ -248,7 +248,7 @@ export declare const SaavnSearchResultsMapper: {
|
|
|
248
248
|
subtitle: any;
|
|
249
249
|
description: any;
|
|
250
250
|
url: any;
|
|
251
|
-
images: import("
|
|
251
|
+
images: import("../../../types.js").Image[];
|
|
252
252
|
flags: {
|
|
253
253
|
isExplicit: boolean;
|
|
254
254
|
isRadioPresent?: undefined;
|
|
@@ -261,7 +261,7 @@ export declare const SaavnSearchResultsMapper: {
|
|
|
261
261
|
subtitle: any;
|
|
262
262
|
description: any;
|
|
263
263
|
url: any;
|
|
264
|
-
images: import("
|
|
264
|
+
images: import("../../../types.js").Image[];
|
|
265
265
|
flags?: undefined;
|
|
266
266
|
name?: undefined;
|
|
267
267
|
} | null)[];
|
|
@@ -275,7 +275,7 @@ export declare const SaavnSearchResultsMapper: {
|
|
|
275
275
|
subtitle: any;
|
|
276
276
|
description: any;
|
|
277
277
|
url: any;
|
|
278
|
-
images: import("
|
|
278
|
+
images: import("../../../types.js").Image[];
|
|
279
279
|
flags: {
|
|
280
280
|
isExplicit: boolean;
|
|
281
281
|
isRadioPresent?: undefined;
|
|
@@ -288,7 +288,7 @@ export declare const SaavnSearchResultsMapper: {
|
|
|
288
288
|
subtitle: any;
|
|
289
289
|
description: any;
|
|
290
290
|
url: any;
|
|
291
|
-
images: import("
|
|
291
|
+
images: import("../../../types.js").Image[];
|
|
292
292
|
flags: {
|
|
293
293
|
isExplicit: boolean;
|
|
294
294
|
isRadioPresent?: undefined;
|
|
@@ -299,7 +299,7 @@ export declare const SaavnSearchResultsMapper: {
|
|
|
299
299
|
type: "artist";
|
|
300
300
|
name: any;
|
|
301
301
|
url: any;
|
|
302
|
-
images: import("
|
|
302
|
+
images: import("../../../types.js").Image[];
|
|
303
303
|
flags: {
|
|
304
304
|
isRadioPresent: any;
|
|
305
305
|
isExplicit?: undefined;
|
|
@@ -314,7 +314,7 @@ export declare const SaavnSearchResultsMapper: {
|
|
|
314
314
|
subtitle: any;
|
|
315
315
|
description: any;
|
|
316
316
|
url: any;
|
|
317
|
-
images: import("
|
|
317
|
+
images: import("../../../types.js").Image[];
|
|
318
318
|
flags: {
|
|
319
319
|
isExplicit: boolean;
|
|
320
320
|
isRadioPresent?: undefined;
|
|
@@ -327,7 +327,7 @@ export declare const SaavnSearchResultsMapper: {
|
|
|
327
327
|
subtitle: any;
|
|
328
328
|
description: any;
|
|
329
329
|
url: any;
|
|
330
|
-
images: import("
|
|
330
|
+
images: import("../../../types.js").Image[];
|
|
331
331
|
flags?: undefined;
|
|
332
332
|
name?: undefined;
|
|
333
333
|
} | null)[];
|
|
@@ -340,7 +340,7 @@ export declare const SaavnSearchResultsMapper: {
|
|
|
340
340
|
albums: (data: z.infer<typeof SaavnSearchResultsSchema.albums.response>) => {
|
|
341
341
|
total: number;
|
|
342
342
|
start: number;
|
|
343
|
-
results: import("../../../core/models").Album[];
|
|
343
|
+
results: import("../../../core/models/album.js").Album[];
|
|
344
344
|
};
|
|
345
345
|
artists: (data: z.infer<typeof SaavnSearchResultsSchema.artists.response>) => {
|
|
346
346
|
total: number;
|
|
@@ -355,7 +355,7 @@ export declare const SaavnSearchResultsMapper: {
|
|
|
355
355
|
name: string;
|
|
356
356
|
subtitle?: string;
|
|
357
357
|
url: string;
|
|
358
|
-
images: import("
|
|
358
|
+
images: import("../../../types.js").Image[];
|
|
359
359
|
stats?: {
|
|
360
360
|
followerCount?: number;
|
|
361
361
|
fanCount?: number;
|
|
@@ -365,7 +365,7 @@ export declare const SaavnSearchResultsMapper: {
|
|
|
365
365
|
available?: string[];
|
|
366
366
|
};
|
|
367
367
|
profile?: {
|
|
368
|
-
bio?: import("
|
|
368
|
+
bio?: import("../../../index.js").BioSection[];
|
|
369
369
|
dob?: string;
|
|
370
370
|
};
|
|
371
371
|
links?: {
|
|
@@ -383,31 +383,31 @@ export declare const SaavnSearchResultsMapper: {
|
|
|
383
383
|
};
|
|
384
384
|
};
|
|
385
385
|
songs?: {
|
|
386
|
-
top?: import("../../../core/models").Song[];
|
|
387
|
-
latest?: import("../../../core/models").Song[];
|
|
386
|
+
top?: import("../../../core/models/song.js").Song[];
|
|
387
|
+
latest?: import("../../../core/models/song.js").Song[];
|
|
388
388
|
};
|
|
389
389
|
albums?: {
|
|
390
|
-
top?: import("../../../core/models").Album[];
|
|
391
|
-
singles?: import("../../../core/models").Album[];
|
|
392
|
-
latest?: import("../../../core/models").Album[];
|
|
390
|
+
top?: import("../../../core/models/album.js").Album[];
|
|
391
|
+
singles?: import("../../../core/models/album.js").Album[];
|
|
392
|
+
latest?: import("../../../core/models/album.js").Album[];
|
|
393
393
|
};
|
|
394
394
|
playlists?: {
|
|
395
|
-
dedicated?: import("../../../core/models").Playlist[];
|
|
396
|
-
featured?: import("../../../core/models").Playlist[];
|
|
395
|
+
dedicated?: import("../../../core/models/playlist.js").Playlist[];
|
|
396
|
+
featured?: import("../../../core/models/playlist.js").Playlist[];
|
|
397
397
|
};
|
|
398
398
|
related?: {
|
|
399
|
-
similar?: import("../../../core/models").Artist[];
|
|
399
|
+
similar?: import("../../../core/models/artist.js").Artist[];
|
|
400
400
|
};
|
|
401
401
|
}[];
|
|
402
402
|
};
|
|
403
403
|
playlists: (data: z.infer<typeof SaavnSearchResultsSchema.playlists.response>) => {
|
|
404
404
|
total: number;
|
|
405
405
|
start: number;
|
|
406
|
-
results: import("../../../core/models").Playlist[];
|
|
406
|
+
results: import("../../../core/models/playlist.js").Playlist[];
|
|
407
407
|
};
|
|
408
408
|
songs: (data: z.infer<typeof SaavnSearchResultsSchema.songs.response>) => {
|
|
409
409
|
total: number;
|
|
410
410
|
start: number;
|
|
411
|
-
results: import("../../../core/models").Song[];
|
|
411
|
+
results: import("../../../core/models/song.js").Song[];
|
|
412
412
|
};
|
|
413
413
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { mapAlbumEdgeCase, mapPlaylistEdgeCase, mapSong, mapArtistBase, mapSearchAllBase, } from '../../common-mapper';
|
|
3
|
-
import { SaavnSearchResultsSchema } from './schema.ops';
|
|
2
|
+
import { mapAlbumEdgeCase, mapPlaylistEdgeCase, mapSong, mapArtistBase, mapSearchAllBase, } from '../../common-mapper.js';
|
|
3
|
+
import { SaavnSearchResultsSchema } from './schema.ops.js';
|
|
4
4
|
function normalizeSection(section) {
|
|
5
5
|
return {
|
|
6
6
|
position: section?.position ?? 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { NonEmptyString, PositiveString } from '../../primitives/string';
|
|
3
|
-
import { SaavnArtistBase } from '../../entities/base';
|
|
4
|
-
import { SaavnAlbumEdgeCase, SaavnPlaylistEdgeCase, SaavnSongEntity, SaavnSearchAlbumEntity, SaavnArtistSearchEntity, SaavnPlaylistSearchEntity, SaavnSongSearchEntity, SaavnShowEntity, } from '../../entities';
|
|
2
|
+
import { NonEmptyString, PositiveString } from '../../primitives/string.js';
|
|
3
|
+
import { SaavnArtistBase } from '../../entities/base.js';
|
|
4
|
+
import { SaavnAlbumEdgeCase, SaavnPlaylistEdgeCase, SaavnSongEntity, SaavnSearchAlbumEntity, SaavnArtistSearchEntity, SaavnPlaylistSearchEntity, SaavnSongSearchEntity, SaavnShowEntity, } from '../../entities/index.js';
|
|
5
5
|
const PageString = z.string().regex(/^\d+$/);
|
|
6
6
|
export const SaavnSearchResultsSchema = {
|
|
7
7
|
all: {
|