@behindthemusictree/app-kit 34.1.0 → 36.0.0
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/{chunk-4TE4OSOM.js → chunk-7S6EALIP.js} +90 -26
- package/dist/chunk-7S6EALIP.js.map +1 -0
- package/dist/{chunk-HLAKW2YJ.js → chunk-G5ULARLT.js} +1 -1
- package/dist/{chunk-QZXZHP4R.js → chunk-XIJPC7D5.js} +73 -63
- package/dist/chunk-XIJPC7D5.js.map +1 -0
- package/dist/genre-tree/index.cjs +361 -289
- package/dist/genre-tree/index.cjs.map +1 -1
- package/dist/genre-tree/index.d.ts +259 -211
- package/dist/genre-tree/index.js +2 -2
- package/dist/index.cjs +436 -360
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -3
- package/dist/transport/index.cjs +198 -130
- package/dist/transport/index.cjs.map +1 -1
- package/dist/transport/index.d.ts +30 -6
- package/dist/transport/index.js +6 -2
- package/dist/useFetchWrapper-C5lt5fQz.d.ts +15 -0
- package/package.json +1 -1
- package/dist/chunk-4TE4OSOM.js.map +0 -1
- package/dist/chunk-QZXZHP4R.js.map +0 -1
- package/dist/scope-BoMVOHmz.d.ts +0 -4
- /package/dist/{chunk-HLAKW2YJ.js.map → chunk-G5ULARLT.js.map} +0 -0
|
@@ -2,7 +2,7 @@ import * as _tanstack_react_query from '@tanstack/react-query';
|
|
|
2
2
|
import { QueryKey, InfiniteData } from '@tanstack/react-query';
|
|
3
3
|
import * as zod from 'zod';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
import { S as Scope } from '../
|
|
5
|
+
import { S as Scope, u as useFetchWrapper } from '../useFetchWrapper-C5lt5fQz.js';
|
|
6
6
|
import { b as GenreUuid, G as GenrePlaylistUuid } from '../ids-D8XCErUS.js';
|
|
7
7
|
export { a as GenrePlaylistUuidSchema, c as GenreUuidSchema } from '../ids-D8XCErUS.js';
|
|
8
8
|
import * as react from 'react';
|
|
@@ -34,7 +34,7 @@ declare const CriteriaDetailedSchema: z.ZodObject<{
|
|
|
34
34
|
}, z.core.$strip>;
|
|
35
35
|
degree: z.ZodNumber;
|
|
36
36
|
}, z.core.$strip>>;
|
|
37
|
-
descendants: z.ZodArray<z.ZodObject<{
|
|
37
|
+
descendants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
38
38
|
descendant: z.ZodObject<{
|
|
39
39
|
uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
|
|
40
40
|
name: z.ZodString;
|
|
@@ -45,7 +45,7 @@ declare const CriteriaDetailedSchema: z.ZodObject<{
|
|
|
45
45
|
wikidataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
46
|
}, z.core.$strip>;
|
|
47
47
|
degree: z.ZodNumber;
|
|
48
|
-
}, z.core.$strip
|
|
48
|
+
}, z.core.$strip>>>;
|
|
49
49
|
root: z.ZodObject<{
|
|
50
50
|
uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
|
|
51
51
|
name: z.ZodString;
|
|
@@ -74,7 +74,7 @@ declare const CriteriaDetailedSchema: z.ZodObject<{
|
|
|
74
74
|
all: z.ZodNumber;
|
|
75
75
|
}, z.core.$strict>]>;
|
|
76
76
|
}, z.core.$strip>, "GenreCatalogueCounts", "out">>;
|
|
77
|
-
criteriaPlaylist: z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodObject<{
|
|
77
|
+
criteriaPlaylist: z.ZodNullable<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodObject<{
|
|
78
78
|
uuid: z.core.$ZodBranded<z.ZodString, "GenrePlaylistUuid", "out">;
|
|
79
79
|
name: z.ZodString;
|
|
80
80
|
genreOnlyTracksCount: z.ZodNumber;
|
|
@@ -88,8 +88,8 @@ declare const CriteriaDetailedSchema: z.ZodObject<{
|
|
|
88
88
|
}, z.core.$strip>, "GenrePlaylistSummary", "out">, z.ZodObject<{
|
|
89
89
|
uuid: z.core.$ZodBranded<z.ZodString, "GenrePlaylistUuid", "out">;
|
|
90
90
|
name: z.ZodString;
|
|
91
|
-
}, z.core.$strip>]
|
|
92
|
-
tracks: z.ZodArray<z.ZodObject<{
|
|
91
|
+
}, z.core.$strip>]>>;
|
|
92
|
+
tracks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
93
93
|
title: z.ZodString;
|
|
94
94
|
uuid: z.ZodString;
|
|
95
95
|
artists: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -97,7 +97,7 @@ declare const CriteriaDetailedSchema: z.ZodObject<{
|
|
|
97
97
|
name: z.ZodString;
|
|
98
98
|
isSpecialPurpose: z.ZodOptional<z.ZodBoolean>;
|
|
99
99
|
}, z.core.$strip>>>>;
|
|
100
|
-
}, z.core.$strip
|
|
100
|
+
}, z.core.$strip>>>;
|
|
101
101
|
essentialSongs: z.ZodArray<z.ZodObject<{
|
|
102
102
|
title: z.ZodString;
|
|
103
103
|
uuid: z.ZodString;
|
|
@@ -536,15 +536,6 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
536
536
|
};
|
|
537
537
|
degree: number;
|
|
538
538
|
}[];
|
|
539
|
-
descendants: {
|
|
540
|
-
descendant: {
|
|
541
|
-
uuid: string & z.core.$brand<"GenreUuid">;
|
|
542
|
-
name: string;
|
|
543
|
-
side?: "pop" | "core" | null | undefined;
|
|
544
|
-
wikidataId?: string | null | undefined;
|
|
545
|
-
};
|
|
546
|
-
degree: number;
|
|
547
|
-
}[];
|
|
548
539
|
root: {
|
|
549
540
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
550
541
|
name: string;
|
|
@@ -571,16 +562,7 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
571
562
|
} | {
|
|
572
563
|
all: number;
|
|
573
564
|
};
|
|
574
|
-
} & z.core.$brand<"GenrePlaylistSummary">);
|
|
575
|
-
tracks: {
|
|
576
|
-
title: string;
|
|
577
|
-
uuid: string;
|
|
578
|
-
artists?: {
|
|
579
|
-
uuid: string;
|
|
580
|
-
name: string;
|
|
581
|
-
isSpecialPurpose?: boolean | undefined;
|
|
582
|
-
}[] | null | undefined;
|
|
583
|
-
}[];
|
|
565
|
+
} & z.core.$brand<"GenrePlaylistSummary">) | null;
|
|
584
566
|
essentialSongs: {
|
|
585
567
|
title: string;
|
|
586
568
|
uuid: string;
|
|
@@ -593,6 +575,15 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
593
575
|
tracksCount: number;
|
|
594
576
|
updatedOn: string | null;
|
|
595
577
|
wikidataId?: string | null | undefined;
|
|
578
|
+
descendants?: {
|
|
579
|
+
descendant: {
|
|
580
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
581
|
+
name: string;
|
|
582
|
+
side?: "pop" | "core" | null | undefined;
|
|
583
|
+
wikidataId?: string | null | undefined;
|
|
584
|
+
};
|
|
585
|
+
degree: number;
|
|
586
|
+
}[] | undefined;
|
|
596
587
|
catalogue?: ({
|
|
597
588
|
genreOnlyTracksCount: number;
|
|
598
589
|
genreAndSubgenresTracksCount: {
|
|
@@ -603,6 +594,15 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
603
594
|
all: number;
|
|
604
595
|
};
|
|
605
596
|
} & z.core.$brand<"GenreCatalogueCounts">) | undefined;
|
|
597
|
+
tracks?: {
|
|
598
|
+
title: string;
|
|
599
|
+
uuid: string;
|
|
600
|
+
artists?: {
|
|
601
|
+
uuid: string;
|
|
602
|
+
name: string;
|
|
603
|
+
isSpecialPurpose?: boolean | undefined;
|
|
604
|
+
}[] | null | undefined;
|
|
605
|
+
}[] | undefined;
|
|
606
606
|
}, Error, {
|
|
607
607
|
name: string;
|
|
608
608
|
parent?: (string & z.core.$brand<"GenreUuid">) | undefined;
|
|
@@ -633,15 +633,6 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
633
633
|
};
|
|
634
634
|
degree: number;
|
|
635
635
|
}[];
|
|
636
|
-
descendants: {
|
|
637
|
-
descendant: {
|
|
638
|
-
uuid: string & z.core.$brand<"GenreUuid">;
|
|
639
|
-
name: string;
|
|
640
|
-
side?: "pop" | "core" | null | undefined;
|
|
641
|
-
wikidataId?: string | null | undefined;
|
|
642
|
-
};
|
|
643
|
-
degree: number;
|
|
644
|
-
}[];
|
|
645
636
|
root: {
|
|
646
637
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
647
638
|
name: string;
|
|
@@ -668,16 +659,7 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
668
659
|
} | {
|
|
669
660
|
all: number;
|
|
670
661
|
};
|
|
671
|
-
} & z.core.$brand<"GenrePlaylistSummary">);
|
|
672
|
-
tracks: {
|
|
673
|
-
title: string;
|
|
674
|
-
uuid: string;
|
|
675
|
-
artists?: {
|
|
676
|
-
uuid: string;
|
|
677
|
-
name: string;
|
|
678
|
-
isSpecialPurpose?: boolean | undefined;
|
|
679
|
-
}[] | null | undefined;
|
|
680
|
-
}[];
|
|
662
|
+
} & z.core.$brand<"GenrePlaylistSummary">) | null;
|
|
681
663
|
essentialSongs: {
|
|
682
664
|
title: string;
|
|
683
665
|
uuid: string;
|
|
@@ -690,6 +672,15 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
690
672
|
tracksCount: number;
|
|
691
673
|
updatedOn: string | null;
|
|
692
674
|
wikidataId?: string | null | undefined;
|
|
675
|
+
descendants?: {
|
|
676
|
+
descendant: {
|
|
677
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
678
|
+
name: string;
|
|
679
|
+
side?: "pop" | "core" | null | undefined;
|
|
680
|
+
wikidataId?: string | null | undefined;
|
|
681
|
+
};
|
|
682
|
+
degree: number;
|
|
683
|
+
}[] | undefined;
|
|
693
684
|
catalogue?: ({
|
|
694
685
|
genreOnlyTracksCount: number;
|
|
695
686
|
genreAndSubgenresTracksCount: {
|
|
@@ -700,6 +691,15 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
700
691
|
all: number;
|
|
701
692
|
};
|
|
702
693
|
} & z.core.$brand<"GenreCatalogueCounts">) | undefined;
|
|
694
|
+
tracks?: {
|
|
695
|
+
title: string;
|
|
696
|
+
uuid: string;
|
|
697
|
+
artists?: {
|
|
698
|
+
uuid: string;
|
|
699
|
+
name: string;
|
|
700
|
+
isSpecialPurpose?: boolean | undefined;
|
|
701
|
+
}[] | null | undefined;
|
|
702
|
+
}[] | undefined;
|
|
703
703
|
}, Error, {
|
|
704
704
|
name: string;
|
|
705
705
|
parent?: (string & z.core.$brand<"GenreUuid">) | undefined;
|
|
@@ -741,15 +741,6 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
741
741
|
};
|
|
742
742
|
degree: number;
|
|
743
743
|
}[];
|
|
744
|
-
descendants: {
|
|
745
|
-
descendant: {
|
|
746
|
-
uuid: string & z.core.$brand<"GenreUuid">;
|
|
747
|
-
name: string;
|
|
748
|
-
side?: "pop" | "core" | null | undefined;
|
|
749
|
-
wikidataId?: string | null | undefined;
|
|
750
|
-
};
|
|
751
|
-
degree: number;
|
|
752
|
-
}[];
|
|
753
744
|
root: {
|
|
754
745
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
755
746
|
name: string;
|
|
@@ -776,16 +767,7 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
776
767
|
} | {
|
|
777
768
|
all: number;
|
|
778
769
|
};
|
|
779
|
-
} & z.core.$brand<"GenrePlaylistSummary">);
|
|
780
|
-
tracks: {
|
|
781
|
-
title: string;
|
|
782
|
-
uuid: string;
|
|
783
|
-
artists?: {
|
|
784
|
-
uuid: string;
|
|
785
|
-
name: string;
|
|
786
|
-
isSpecialPurpose?: boolean | undefined;
|
|
787
|
-
}[] | null | undefined;
|
|
788
|
-
}[];
|
|
770
|
+
} & z.core.$brand<"GenrePlaylistSummary">) | null;
|
|
789
771
|
essentialSongs: {
|
|
790
772
|
title: string;
|
|
791
773
|
uuid: string;
|
|
@@ -798,6 +780,15 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
798
780
|
tracksCount: number;
|
|
799
781
|
updatedOn: string | null;
|
|
800
782
|
wikidataId?: string | null | undefined;
|
|
783
|
+
descendants?: {
|
|
784
|
+
descendant: {
|
|
785
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
786
|
+
name: string;
|
|
787
|
+
side?: "pop" | "core" | null | undefined;
|
|
788
|
+
wikidataId?: string | null | undefined;
|
|
789
|
+
};
|
|
790
|
+
degree: number;
|
|
791
|
+
}[] | undefined;
|
|
801
792
|
catalogue?: ({
|
|
802
793
|
genreOnlyTracksCount: number;
|
|
803
794
|
genreAndSubgenresTracksCount: {
|
|
@@ -808,6 +799,15 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
808
799
|
all: number;
|
|
809
800
|
};
|
|
810
801
|
} & z.core.$brand<"GenreCatalogueCounts">) | undefined;
|
|
802
|
+
tracks?: {
|
|
803
|
+
title: string;
|
|
804
|
+
uuid: string;
|
|
805
|
+
artists?: {
|
|
806
|
+
uuid: string;
|
|
807
|
+
name: string;
|
|
808
|
+
isSpecialPurpose?: boolean | undefined;
|
|
809
|
+
}[] | null | undefined;
|
|
810
|
+
}[] | undefined;
|
|
811
811
|
}, Error, {
|
|
812
812
|
name: string;
|
|
813
813
|
parent?: (string & z.core.$brand<"GenreUuid">) | undefined;
|
|
@@ -838,15 +838,6 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
838
838
|
};
|
|
839
839
|
degree: number;
|
|
840
840
|
}[];
|
|
841
|
-
descendants: {
|
|
842
|
-
descendant: {
|
|
843
|
-
uuid: string & z.core.$brand<"GenreUuid">;
|
|
844
|
-
name: string;
|
|
845
|
-
side?: "pop" | "core" | null | undefined;
|
|
846
|
-
wikidataId?: string | null | undefined;
|
|
847
|
-
};
|
|
848
|
-
degree: number;
|
|
849
|
-
}[];
|
|
850
841
|
root: {
|
|
851
842
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
852
843
|
name: string;
|
|
@@ -873,16 +864,7 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
873
864
|
} | {
|
|
874
865
|
all: number;
|
|
875
866
|
};
|
|
876
|
-
} & z.core.$brand<"GenrePlaylistSummary">);
|
|
877
|
-
tracks: {
|
|
878
|
-
title: string;
|
|
879
|
-
uuid: string;
|
|
880
|
-
artists?: {
|
|
881
|
-
uuid: string;
|
|
882
|
-
name: string;
|
|
883
|
-
isSpecialPurpose?: boolean | undefined;
|
|
884
|
-
}[] | null | undefined;
|
|
885
|
-
}[];
|
|
867
|
+
} & z.core.$brand<"GenrePlaylistSummary">) | null;
|
|
886
868
|
essentialSongs: {
|
|
887
869
|
title: string;
|
|
888
870
|
uuid: string;
|
|
@@ -895,6 +877,15 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
895
877
|
tracksCount: number;
|
|
896
878
|
updatedOn: string | null;
|
|
897
879
|
wikidataId?: string | null | undefined;
|
|
880
|
+
descendants?: {
|
|
881
|
+
descendant: {
|
|
882
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
883
|
+
name: string;
|
|
884
|
+
side?: "pop" | "core" | null | undefined;
|
|
885
|
+
wikidataId?: string | null | undefined;
|
|
886
|
+
};
|
|
887
|
+
degree: number;
|
|
888
|
+
}[] | undefined;
|
|
898
889
|
catalogue?: ({
|
|
899
890
|
genreOnlyTracksCount: number;
|
|
900
891
|
genreAndSubgenresTracksCount: {
|
|
@@ -905,6 +896,15 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
905
896
|
all: number;
|
|
906
897
|
};
|
|
907
898
|
} & z.core.$brand<"GenreCatalogueCounts">) | undefined;
|
|
899
|
+
tracks?: {
|
|
900
|
+
title: string;
|
|
901
|
+
uuid: string;
|
|
902
|
+
artists?: {
|
|
903
|
+
uuid: string;
|
|
904
|
+
name: string;
|
|
905
|
+
isSpecialPurpose?: boolean | undefined;
|
|
906
|
+
}[] | null | undefined;
|
|
907
|
+
}[] | undefined;
|
|
908
908
|
}, Error, {
|
|
909
909
|
name: string;
|
|
910
910
|
parent?: (string & z.core.$brand<"GenreUuid">) | undefined;
|
|
@@ -946,15 +946,6 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
946
946
|
};
|
|
947
947
|
degree: number;
|
|
948
948
|
}[];
|
|
949
|
-
descendants: {
|
|
950
|
-
descendant: {
|
|
951
|
-
uuid: string & z.core.$brand<"GenreUuid">;
|
|
952
|
-
name: string;
|
|
953
|
-
side?: "pop" | "core" | null | undefined;
|
|
954
|
-
wikidataId?: string | null | undefined;
|
|
955
|
-
};
|
|
956
|
-
degree: number;
|
|
957
|
-
}[];
|
|
958
949
|
root: {
|
|
959
950
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
960
951
|
name: string;
|
|
@@ -981,16 +972,7 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
981
972
|
} | {
|
|
982
973
|
all: number;
|
|
983
974
|
};
|
|
984
|
-
} & z.core.$brand<"GenrePlaylistSummary">);
|
|
985
|
-
tracks: {
|
|
986
|
-
title: string;
|
|
987
|
-
uuid: string;
|
|
988
|
-
artists?: {
|
|
989
|
-
uuid: string;
|
|
990
|
-
name: string;
|
|
991
|
-
isSpecialPurpose?: boolean | undefined;
|
|
992
|
-
}[] | null | undefined;
|
|
993
|
-
}[];
|
|
975
|
+
} & z.core.$brand<"GenrePlaylistSummary">) | null;
|
|
994
976
|
essentialSongs: {
|
|
995
977
|
title: string;
|
|
996
978
|
uuid: string;
|
|
@@ -1003,6 +985,15 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
1003
985
|
tracksCount: number;
|
|
1004
986
|
updatedOn: string | null;
|
|
1005
987
|
wikidataId?: string | null | undefined;
|
|
988
|
+
descendants?: {
|
|
989
|
+
descendant: {
|
|
990
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
991
|
+
name: string;
|
|
992
|
+
side?: "pop" | "core" | null | undefined;
|
|
993
|
+
wikidataId?: string | null | undefined;
|
|
994
|
+
};
|
|
995
|
+
degree: number;
|
|
996
|
+
}[] | undefined;
|
|
1006
997
|
catalogue?: ({
|
|
1007
998
|
genreOnlyTracksCount: number;
|
|
1008
999
|
genreAndSubgenresTracksCount: {
|
|
@@ -1013,6 +1004,15 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
1013
1004
|
all: number;
|
|
1014
1005
|
};
|
|
1015
1006
|
} & z.core.$brand<"GenreCatalogueCounts">) | undefined;
|
|
1007
|
+
tracks?: {
|
|
1008
|
+
title: string;
|
|
1009
|
+
uuid: string;
|
|
1010
|
+
artists?: {
|
|
1011
|
+
uuid: string;
|
|
1012
|
+
name: string;
|
|
1013
|
+
isSpecialPurpose?: boolean | undefined;
|
|
1014
|
+
}[] | null | undefined;
|
|
1015
|
+
}[] | undefined;
|
|
1016
1016
|
}, Error, {
|
|
1017
1017
|
name: string;
|
|
1018
1018
|
parent?: (string & z.core.$brand<"GenreUuid">) | undefined;
|
|
@@ -1043,15 +1043,6 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
1043
1043
|
};
|
|
1044
1044
|
degree: number;
|
|
1045
1045
|
}[];
|
|
1046
|
-
descendants: {
|
|
1047
|
-
descendant: {
|
|
1048
|
-
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1049
|
-
name: string;
|
|
1050
|
-
side?: "pop" | "core" | null | undefined;
|
|
1051
|
-
wikidataId?: string | null | undefined;
|
|
1052
|
-
};
|
|
1053
|
-
degree: number;
|
|
1054
|
-
}[];
|
|
1055
1046
|
root: {
|
|
1056
1047
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1057
1048
|
name: string;
|
|
@@ -1078,16 +1069,7 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
1078
1069
|
} | {
|
|
1079
1070
|
all: number;
|
|
1080
1071
|
};
|
|
1081
|
-
} & z.core.$brand<"GenrePlaylistSummary">);
|
|
1082
|
-
tracks: {
|
|
1083
|
-
title: string;
|
|
1084
|
-
uuid: string;
|
|
1085
|
-
artists?: {
|
|
1086
|
-
uuid: string;
|
|
1087
|
-
name: string;
|
|
1088
|
-
isSpecialPurpose?: boolean | undefined;
|
|
1089
|
-
}[] | null | undefined;
|
|
1090
|
-
}[];
|
|
1072
|
+
} & z.core.$brand<"GenrePlaylistSummary">) | null;
|
|
1091
1073
|
essentialSongs: {
|
|
1092
1074
|
title: string;
|
|
1093
1075
|
uuid: string;
|
|
@@ -1100,6 +1082,15 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
1100
1082
|
tracksCount: number;
|
|
1101
1083
|
updatedOn: string | null;
|
|
1102
1084
|
wikidataId?: string | null | undefined;
|
|
1085
|
+
descendants?: {
|
|
1086
|
+
descendant: {
|
|
1087
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1088
|
+
name: string;
|
|
1089
|
+
side?: "pop" | "core" | null | undefined;
|
|
1090
|
+
wikidataId?: string | null | undefined;
|
|
1091
|
+
};
|
|
1092
|
+
degree: number;
|
|
1093
|
+
}[] | undefined;
|
|
1103
1094
|
catalogue?: ({
|
|
1104
1095
|
genreOnlyTracksCount: number;
|
|
1105
1096
|
genreAndSubgenresTracksCount: {
|
|
@@ -1110,6 +1101,15 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
1110
1101
|
all: number;
|
|
1111
1102
|
};
|
|
1112
1103
|
} & z.core.$brand<"GenreCatalogueCounts">) | undefined;
|
|
1104
|
+
tracks?: {
|
|
1105
|
+
title: string;
|
|
1106
|
+
uuid: string;
|
|
1107
|
+
artists?: {
|
|
1108
|
+
uuid: string;
|
|
1109
|
+
name: string;
|
|
1110
|
+
isSpecialPurpose?: boolean | undefined;
|
|
1111
|
+
}[] | null | undefined;
|
|
1112
|
+
}[] | undefined;
|
|
1113
1113
|
}, Error, {
|
|
1114
1114
|
name: string;
|
|
1115
1115
|
parent?: (string & z.core.$brand<"GenreUuid">) | undefined;
|
|
@@ -1139,15 +1139,6 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
1139
1139
|
};
|
|
1140
1140
|
degree: number;
|
|
1141
1141
|
}[];
|
|
1142
|
-
descendants: {
|
|
1143
|
-
descendant: {
|
|
1144
|
-
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1145
|
-
name: string;
|
|
1146
|
-
side?: "pop" | "core" | null | undefined;
|
|
1147
|
-
wikidataId?: string | null | undefined;
|
|
1148
|
-
};
|
|
1149
|
-
degree: number;
|
|
1150
|
-
}[];
|
|
1151
1142
|
root: {
|
|
1152
1143
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1153
1144
|
name: string;
|
|
@@ -1174,16 +1165,7 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
1174
1165
|
} | {
|
|
1175
1166
|
all: number;
|
|
1176
1167
|
};
|
|
1177
|
-
} & z.core.$brand<"GenrePlaylistSummary">);
|
|
1178
|
-
tracks: {
|
|
1179
|
-
title: string;
|
|
1180
|
-
uuid: string;
|
|
1181
|
-
artists?: {
|
|
1182
|
-
uuid: string;
|
|
1183
|
-
name: string;
|
|
1184
|
-
isSpecialPurpose?: boolean | undefined;
|
|
1185
|
-
}[] | null | undefined;
|
|
1186
|
-
}[];
|
|
1168
|
+
} & z.core.$brand<"GenrePlaylistSummary">) | null;
|
|
1187
1169
|
essentialSongs: {
|
|
1188
1170
|
title: string;
|
|
1189
1171
|
uuid: string;
|
|
@@ -1196,6 +1178,15 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
1196
1178
|
tracksCount: number;
|
|
1197
1179
|
updatedOn: string | null;
|
|
1198
1180
|
wikidataId?: string | null | undefined;
|
|
1181
|
+
descendants?: {
|
|
1182
|
+
descendant: {
|
|
1183
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1184
|
+
name: string;
|
|
1185
|
+
side?: "pop" | "core" | null | undefined;
|
|
1186
|
+
wikidataId?: string | null | undefined;
|
|
1187
|
+
};
|
|
1188
|
+
degree: number;
|
|
1189
|
+
}[] | undefined;
|
|
1199
1190
|
catalogue?: ({
|
|
1200
1191
|
genreOnlyTracksCount: number;
|
|
1201
1192
|
genreAndSubgenresTracksCount: {
|
|
@@ -1206,6 +1197,15 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
1206
1197
|
all: number;
|
|
1207
1198
|
};
|
|
1208
1199
|
} & z.core.$brand<"GenreCatalogueCounts">) | undefined;
|
|
1200
|
+
tracks?: {
|
|
1201
|
+
title: string;
|
|
1202
|
+
uuid: string;
|
|
1203
|
+
artists?: {
|
|
1204
|
+
uuid: string;
|
|
1205
|
+
name: string;
|
|
1206
|
+
isSpecialPurpose?: boolean | undefined;
|
|
1207
|
+
}[] | null | undefined;
|
|
1208
|
+
}[] | undefined;
|
|
1209
1209
|
};
|
|
1210
1210
|
error: null;
|
|
1211
1211
|
variables: {
|
|
@@ -1237,15 +1237,6 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
1237
1237
|
};
|
|
1238
1238
|
degree: number;
|
|
1239
1239
|
}[];
|
|
1240
|
-
descendants: {
|
|
1241
|
-
descendant: {
|
|
1242
|
-
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1243
|
-
name: string;
|
|
1244
|
-
side?: "pop" | "core" | null | undefined;
|
|
1245
|
-
wikidataId?: string | null | undefined;
|
|
1246
|
-
};
|
|
1247
|
-
degree: number;
|
|
1248
|
-
}[];
|
|
1249
1240
|
root: {
|
|
1250
1241
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1251
1242
|
name: string;
|
|
@@ -1272,16 +1263,7 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
1272
1263
|
} | {
|
|
1273
1264
|
all: number;
|
|
1274
1265
|
};
|
|
1275
|
-
} & z.core.$brand<"GenrePlaylistSummary">);
|
|
1276
|
-
tracks: {
|
|
1277
|
-
title: string;
|
|
1278
|
-
uuid: string;
|
|
1279
|
-
artists?: {
|
|
1280
|
-
uuid: string;
|
|
1281
|
-
name: string;
|
|
1282
|
-
isSpecialPurpose?: boolean | undefined;
|
|
1283
|
-
}[] | null | undefined;
|
|
1284
|
-
}[];
|
|
1266
|
+
} & z.core.$brand<"GenrePlaylistSummary">) | null;
|
|
1285
1267
|
essentialSongs: {
|
|
1286
1268
|
title: string;
|
|
1287
1269
|
uuid: string;
|
|
@@ -1294,6 +1276,15 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
1294
1276
|
tracksCount: number;
|
|
1295
1277
|
updatedOn: string | null;
|
|
1296
1278
|
wikidataId?: string | null | undefined;
|
|
1279
|
+
descendants?: {
|
|
1280
|
+
descendant: {
|
|
1281
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1282
|
+
name: string;
|
|
1283
|
+
side?: "pop" | "core" | null | undefined;
|
|
1284
|
+
wikidataId?: string | null | undefined;
|
|
1285
|
+
};
|
|
1286
|
+
degree: number;
|
|
1287
|
+
}[] | undefined;
|
|
1297
1288
|
catalogue?: ({
|
|
1298
1289
|
genreOnlyTracksCount: number;
|
|
1299
1290
|
genreAndSubgenresTracksCount: {
|
|
@@ -1304,6 +1295,15 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
1304
1295
|
all: number;
|
|
1305
1296
|
};
|
|
1306
1297
|
} & z.core.$brand<"GenreCatalogueCounts">) | undefined;
|
|
1298
|
+
tracks?: {
|
|
1299
|
+
title: string;
|
|
1300
|
+
uuid: string;
|
|
1301
|
+
artists?: {
|
|
1302
|
+
uuid: string;
|
|
1303
|
+
name: string;
|
|
1304
|
+
isSpecialPurpose?: boolean | undefined;
|
|
1305
|
+
}[] | null | undefined;
|
|
1306
|
+
}[] | undefined;
|
|
1307
1307
|
}, Error, {
|
|
1308
1308
|
name: string;
|
|
1309
1309
|
parent?: (string & z.core.$brand<"GenreUuid">) | undefined;
|
|
@@ -1334,15 +1334,6 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
1334
1334
|
};
|
|
1335
1335
|
degree: number;
|
|
1336
1336
|
}[];
|
|
1337
|
-
descendants: {
|
|
1338
|
-
descendant: {
|
|
1339
|
-
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1340
|
-
name: string;
|
|
1341
|
-
side?: "pop" | "core" | null | undefined;
|
|
1342
|
-
wikidataId?: string | null | undefined;
|
|
1343
|
-
};
|
|
1344
|
-
degree: number;
|
|
1345
|
-
}[];
|
|
1346
1337
|
root: {
|
|
1347
1338
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1348
1339
|
name: string;
|
|
@@ -1369,16 +1360,7 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
1369
1360
|
} | {
|
|
1370
1361
|
all: number;
|
|
1371
1362
|
};
|
|
1372
|
-
} & z.core.$brand<"GenrePlaylistSummary">);
|
|
1373
|
-
tracks: {
|
|
1374
|
-
title: string;
|
|
1375
|
-
uuid: string;
|
|
1376
|
-
artists?: {
|
|
1377
|
-
uuid: string;
|
|
1378
|
-
name: string;
|
|
1379
|
-
isSpecialPurpose?: boolean | undefined;
|
|
1380
|
-
}[] | null | undefined;
|
|
1381
|
-
}[];
|
|
1363
|
+
} & z.core.$brand<"GenrePlaylistSummary">) | null;
|
|
1382
1364
|
essentialSongs: {
|
|
1383
1365
|
title: string;
|
|
1384
1366
|
uuid: string;
|
|
@@ -1391,6 +1373,15 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
1391
1373
|
tracksCount: number;
|
|
1392
1374
|
updatedOn: string | null;
|
|
1393
1375
|
wikidataId?: string | null | undefined;
|
|
1376
|
+
descendants?: {
|
|
1377
|
+
descendant: {
|
|
1378
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1379
|
+
name: string;
|
|
1380
|
+
side?: "pop" | "core" | null | undefined;
|
|
1381
|
+
wikidataId?: string | null | undefined;
|
|
1382
|
+
};
|
|
1383
|
+
degree: number;
|
|
1384
|
+
}[] | undefined;
|
|
1394
1385
|
catalogue?: ({
|
|
1395
1386
|
genreOnlyTracksCount: number;
|
|
1396
1387
|
genreAndSubgenresTracksCount: {
|
|
@@ -1401,6 +1392,15 @@ declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
1401
1392
|
all: number;
|
|
1402
1393
|
};
|
|
1403
1394
|
} & z.core.$brand<"GenreCatalogueCounts">) | undefined;
|
|
1395
|
+
tracks?: {
|
|
1396
|
+
title: string;
|
|
1397
|
+
uuid: string;
|
|
1398
|
+
artists?: {
|
|
1399
|
+
uuid: string;
|
|
1400
|
+
name: string;
|
|
1401
|
+
isSpecialPurpose?: boolean | undefined;
|
|
1402
|
+
}[] | null | undefined;
|
|
1403
|
+
}[] | undefined;
|
|
1404
1404
|
}, Error, {
|
|
1405
1405
|
name: string;
|
|
1406
1406
|
parent?: (string & z.core.$brand<"GenreUuid">) | undefined;
|
|
@@ -1427,15 +1427,6 @@ declare function useUpdateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
1427
1427
|
};
|
|
1428
1428
|
degree: number;
|
|
1429
1429
|
}[];
|
|
1430
|
-
descendants: {
|
|
1431
|
-
descendant: {
|
|
1432
|
-
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1433
|
-
name: string;
|
|
1434
|
-
side?: "pop" | "core" | null | undefined;
|
|
1435
|
-
wikidataId?: string | null | undefined;
|
|
1436
|
-
};
|
|
1437
|
-
degree: number;
|
|
1438
|
-
}[];
|
|
1439
1430
|
root: {
|
|
1440
1431
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1441
1432
|
name: string;
|
|
@@ -1462,16 +1453,7 @@ declare function useUpdateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
1462
1453
|
} | {
|
|
1463
1454
|
all: number;
|
|
1464
1455
|
};
|
|
1465
|
-
} & z.core.$brand<"GenrePlaylistSummary">);
|
|
1466
|
-
tracks: {
|
|
1467
|
-
title: string;
|
|
1468
|
-
uuid: string;
|
|
1469
|
-
artists?: {
|
|
1470
|
-
uuid: string;
|
|
1471
|
-
name: string;
|
|
1472
|
-
isSpecialPurpose?: boolean | undefined;
|
|
1473
|
-
}[] | null | undefined;
|
|
1474
|
-
}[];
|
|
1456
|
+
} & z.core.$brand<"GenrePlaylistSummary">) | null;
|
|
1475
1457
|
essentialSongs: {
|
|
1476
1458
|
title: string;
|
|
1477
1459
|
uuid: string;
|
|
@@ -1484,6 +1466,15 @@ declare function useUpdateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
1484
1466
|
tracksCount: number;
|
|
1485
1467
|
updatedOn: string | null;
|
|
1486
1468
|
wikidataId?: string | null | undefined;
|
|
1469
|
+
descendants?: {
|
|
1470
|
+
descendant: {
|
|
1471
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1472
|
+
name: string;
|
|
1473
|
+
side?: "pop" | "core" | null | undefined;
|
|
1474
|
+
wikidataId?: string | null | undefined;
|
|
1475
|
+
};
|
|
1476
|
+
degree: number;
|
|
1477
|
+
}[] | undefined;
|
|
1487
1478
|
catalogue?: ({
|
|
1488
1479
|
genreOnlyTracksCount: number;
|
|
1489
1480
|
genreAndSubgenresTracksCount: {
|
|
@@ -1494,6 +1485,15 @@ declare function useUpdateGenre(scope: Scope, getBackendBaseUrl: () => string):
|
|
|
1494
1485
|
all: number;
|
|
1495
1486
|
};
|
|
1496
1487
|
} & z.core.$brand<"GenreCatalogueCounts">) | undefined;
|
|
1488
|
+
tracks?: {
|
|
1489
|
+
title: string;
|
|
1490
|
+
uuid: string;
|
|
1491
|
+
artists?: {
|
|
1492
|
+
uuid: string;
|
|
1493
|
+
name: string;
|
|
1494
|
+
isSpecialPurpose?: boolean | undefined;
|
|
1495
|
+
}[] | null | undefined;
|
|
1496
|
+
}[] | undefined;
|
|
1497
1497
|
}, Error, {
|
|
1498
1498
|
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1499
1499
|
data: {
|
|
@@ -3907,6 +3907,8 @@ interface UseRemoteSearchOptions<TSchema extends z.ZodTypeAny> {
|
|
|
3907
3907
|
* makes old results wrong for the new query (e.g. the playback key); omit it to always keep them.
|
|
3908
3908
|
*/
|
|
3909
3909
|
scope?: string;
|
|
3910
|
+
/** Replaces the plain fetch, e.g. `usePlaybackFetch`'s `fetchBound` for country-dependent endpoints. */
|
|
3911
|
+
fetch?: ReturnType<typeof useFetchWrapper>["fetch"];
|
|
3910
3912
|
}
|
|
3911
3913
|
interface UseRemoteSearchResult<T> {
|
|
3912
3914
|
results: T[];
|
|
@@ -3917,7 +3919,7 @@ interface UseRemoteSearchResult<T> {
|
|
|
3917
3919
|
pending: boolean;
|
|
3918
3920
|
}
|
|
3919
3921
|
/** Debounced typeahead against a search endpoint; the shared core of the artist, song and genre searches. */
|
|
3920
|
-
declare function useRemoteSearch<TSchema extends z.ZodType<unknown[]>>(getBackendBaseUrl: () => string, { queryKey, endpoint, params, schema, context, text, enabled: extraEnabled, scope }: UseRemoteSearchOptions<TSchema>): UseRemoteSearchResult<z.infer<TSchema>[number]>;
|
|
3922
|
+
declare function useRemoteSearch<TSchema extends z.ZodType<unknown[]>>(getBackendBaseUrl: () => string, { queryKey, endpoint, params, schema, context, text, enabled: extraEnabled, scope, fetch: fetchOverride }: UseRemoteSearchOptions<TSchema>): UseRemoteSearchResult<z.infer<TSchema>[number]>;
|
|
3921
3923
|
|
|
3922
3924
|
interface UseSearchQueryStateOptions {
|
|
3923
3925
|
/** Name of the currently selected item; fills the query whenever it changes. */
|
|
@@ -3962,16 +3964,16 @@ interface UseGenreTreeViewStateOptions<O extends CriteriaOverview = CriteriaOver
|
|
|
3962
3964
|
viewMode?: GenreViewMode;
|
|
3963
3965
|
/** Narrows the tree to this artist's footprint (see `useVisibleGenrePlaylists`). */
|
|
3964
3966
|
artistUuid?: string | null;
|
|
3965
|
-
/**
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
selectedNodeId?: string | null;
|
|
3969
|
-
/** Called when selection changes, including normalizing a legacy criteria UUID to its playlist UUID. */
|
|
3970
|
-
onSelectedNodeIdChange?: (nodeId: string | null) => void;
|
|
3967
|
+
/** Entity selection is independent of the visible renderer nodes. */
|
|
3968
|
+
selectedGenreUuid?: GenreUuid | null;
|
|
3969
|
+
onSelectedGenreUuidChange?: (genreUuid: GenreUuid | null) => void;
|
|
3971
3970
|
criteriaOverviewSchema?: z.ZodType<O, unknown>;
|
|
3972
3971
|
}
|
|
3973
3972
|
interface UseGenreTreeViewStateResult {
|
|
3974
3973
|
isLoading: boolean;
|
|
3974
|
+
/** The tree failed to load and nothing is cached. `genrePlaylists` is empty, which is not "no genres". */
|
|
3975
|
+
isError: boolean;
|
|
3976
|
+
refetch: () => void;
|
|
3975
3977
|
/** True while the visible tree is being refreshed or re-pruned; the previous tree stays in `genrePlaylists`. */
|
|
3976
3978
|
isFetching: boolean;
|
|
3977
3979
|
genrePlaylists: CriteriaPlaylistSimple[];
|
|
@@ -3979,7 +3981,9 @@ interface UseGenreTreeViewStateResult {
|
|
|
3979
3981
|
/** Playlists the current view mode may show: unaccepted roots and, outside stacked/outline, criteria-less playlists are hidden. */
|
|
3980
3982
|
visibleGenrePlaylists: CriteriaPlaylistSimple[];
|
|
3981
3983
|
groupedGenrePlaylistsByRoot: Record<string, CriteriaPlaylistSimple[]>;
|
|
3984
|
+
selectedGenreUuid: GenreUuid | null;
|
|
3982
3985
|
selectedNodeId: string | null;
|
|
3986
|
+
selectGenre: (genreUuid: GenreUuid | null) => void;
|
|
3983
3987
|
selectedGenrePlaylist: CriteriaPlaylistSimple | undefined;
|
|
3984
3988
|
selectNode: (node: {
|
|
3985
3989
|
id: string;
|
|
@@ -3999,7 +4003,7 @@ interface UseGenreTreeViewStateResult {
|
|
|
3999
4003
|
id: string;
|
|
4000
4004
|
}) => void;
|
|
4001
4005
|
}
|
|
4002
|
-
declare function useGenreTreeViewState<O extends CriteriaOverview = CriteriaOverview>({ scope, getBackendBaseUrl, viewMode: controlledViewMode, artistUuid,
|
|
4006
|
+
declare function useGenreTreeViewState<O extends CriteriaOverview = CriteriaOverview>({ scope, getBackendBaseUrl, viewMode: controlledViewMode, artistUuid, selectedGenreUuid: controlledSelectedGenreUuid, onSelectedGenreUuidChange, criteriaOverviewSchema, }: UseGenreTreeViewStateOptions<O>): UseGenreTreeViewStateResult;
|
|
4003
4007
|
|
|
4004
4008
|
interface UseVisibleGenrePlaylistsOptions {
|
|
4005
4009
|
scope: Scope;
|
|
@@ -4017,6 +4021,50 @@ interface UseVisibleGenrePlaylistsOptions {
|
|
|
4017
4021
|
*/
|
|
4018
4022
|
declare function useVisibleGenrePlaylists({ scope, getBackendBaseUrl, artistUuid }: UseVisibleGenrePlaylistsOptions): {
|
|
4019
4023
|
isLoading: boolean;
|
|
4024
|
+
isError: boolean;
|
|
4025
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<NoInfer<{
|
|
4026
|
+
uuid: string & zod.$brand<"GenrePlaylistUuid">;
|
|
4027
|
+
name: string;
|
|
4028
|
+
createdOn: string;
|
|
4029
|
+
updatedOn: string | null;
|
|
4030
|
+
root: {
|
|
4031
|
+
uuid: string & zod.$brand<"GenrePlaylistUuid">;
|
|
4032
|
+
name: string;
|
|
4033
|
+
};
|
|
4034
|
+
parent: {
|
|
4035
|
+
uuid: string & zod.$brand<"GenrePlaylistUuid">;
|
|
4036
|
+
name: string;
|
|
4037
|
+
} | null;
|
|
4038
|
+
tracksCount: number;
|
|
4039
|
+
criteria: {
|
|
4040
|
+
uuid: string & zod.$brand<"GenreUuid">;
|
|
4041
|
+
name: string;
|
|
4042
|
+
side?: "pop" | "core" | null | undefined;
|
|
4043
|
+
wikidataId?: string | null | undefined;
|
|
4044
|
+
} | null;
|
|
4045
|
+
isUnacceptedRoot: boolean;
|
|
4046
|
+
genreOnlyTracksCount?: number | undefined;
|
|
4047
|
+
genreAndSubgenresTracksCount?: {
|
|
4048
|
+
canonical: number;
|
|
4049
|
+
regional: number;
|
|
4050
|
+
all: number;
|
|
4051
|
+
} | {
|
|
4052
|
+
all: number;
|
|
4053
|
+
} | undefined;
|
|
4054
|
+
catalogue?: ({
|
|
4055
|
+
genreOnlyTracksCount: number;
|
|
4056
|
+
genreAndSubgenresTracksCount: {
|
|
4057
|
+
canonical: number;
|
|
4058
|
+
regional: number;
|
|
4059
|
+
all: number;
|
|
4060
|
+
} | {
|
|
4061
|
+
all: number;
|
|
4062
|
+
};
|
|
4063
|
+
} & zod.$brand<"GenreCatalogueCounts">) | undefined;
|
|
4064
|
+
viewsCount?: number | undefined;
|
|
4065
|
+
isUmbrella?: boolean | undefined;
|
|
4066
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
4067
|
+
}[]>, Error>>;
|
|
4020
4068
|
isFetching: boolean;
|
|
4021
4069
|
genrePlaylists: {
|
|
4022
4070
|
uuid: string & zod.$brand<"GenrePlaylistUuid">;
|
|
@@ -4813,7 +4861,7 @@ declare const ReferenceGenreDetailedSchema: z.ZodObject<{
|
|
|
4813
4861
|
}, z.core.$strip>;
|
|
4814
4862
|
degree: z.ZodNumber;
|
|
4815
4863
|
}, z.core.$strip>>;
|
|
4816
|
-
descendants: z.ZodArray<z.ZodObject<{
|
|
4864
|
+
descendants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4817
4865
|
descendant: z.ZodObject<{
|
|
4818
4866
|
uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
|
|
4819
4867
|
name: z.ZodString;
|
|
@@ -4824,7 +4872,7 @@ declare const ReferenceGenreDetailedSchema: z.ZodObject<{
|
|
|
4824
4872
|
wikidataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4825
4873
|
}, z.core.$strip>;
|
|
4826
4874
|
degree: z.ZodNumber;
|
|
4827
|
-
}, z.core.$strip
|
|
4875
|
+
}, z.core.$strip>>>;
|
|
4828
4876
|
root: z.ZodObject<{
|
|
4829
4877
|
uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
|
|
4830
4878
|
name: z.ZodString;
|
|
@@ -4843,7 +4891,7 @@ declare const ReferenceGenreDetailedSchema: z.ZodObject<{
|
|
|
4843
4891
|
}>>>;
|
|
4844
4892
|
wikidataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4845
4893
|
}, z.core.$strip>>;
|
|
4846
|
-
tracks: z.ZodArray<z.ZodObject<{
|
|
4894
|
+
tracks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4847
4895
|
title: z.ZodString;
|
|
4848
4896
|
uuid: z.ZodString;
|
|
4849
4897
|
artists: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -4851,7 +4899,7 @@ declare const ReferenceGenreDetailedSchema: z.ZodObject<{
|
|
|
4851
4899
|
name: z.ZodString;
|
|
4852
4900
|
isSpecialPurpose: z.ZodOptional<z.ZodBoolean>;
|
|
4853
4901
|
}, z.core.$strip>>>>;
|
|
4854
|
-
}, z.core.$strip
|
|
4902
|
+
}, z.core.$strip>>>;
|
|
4855
4903
|
essentialSongs: z.ZodArray<z.ZodObject<{
|
|
4856
4904
|
title: z.ZodString;
|
|
4857
4905
|
uuid: z.ZodString;
|
|
@@ -4873,7 +4921,7 @@ declare const ReferenceGenreDetailedSchema: z.ZodObject<{
|
|
|
4873
4921
|
all: z.ZodNumber;
|
|
4874
4922
|
}, z.core.$strict>]>;
|
|
4875
4923
|
}, z.core.$strip>, "GenreCatalogueCounts", "out">;
|
|
4876
|
-
criteriaPlaylist: z.core.$ZodBranded<z.ZodObject<{
|
|
4924
|
+
criteriaPlaylist: z.ZodNullable<z.core.$ZodBranded<z.ZodObject<{
|
|
4877
4925
|
uuid: z.core.$ZodBranded<z.ZodString, "GenrePlaylistUuid", "out">;
|
|
4878
4926
|
name: z.ZodString;
|
|
4879
4927
|
genreOnlyTracksCount: z.ZodNumber;
|
|
@@ -4884,7 +4932,7 @@ declare const ReferenceGenreDetailedSchema: z.ZodObject<{
|
|
|
4884
4932
|
}, z.core.$strict>, z.ZodObject<{
|
|
4885
4933
|
all: z.ZodNumber;
|
|
4886
4934
|
}, z.core.$strict>]>;
|
|
4887
|
-
}, z.core.$strip>, "GenrePlaylistSummary", "out"
|
|
4935
|
+
}, z.core.$strip>, "GenrePlaylistSummary", "out">>;
|
|
4888
4936
|
}, z.core.$strip>;
|
|
4889
4937
|
declare const ReferenceGenrePlaylistSchema: z.ZodObject<{
|
|
4890
4938
|
uuid: z.core.$ZodBranded<z.ZodString, "GenrePlaylistUuid", "out">;
|