@behindthemusictree/app-kit 0.0.0-stage → 26.1.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/LICENSE +15 -0
- package/dist/app-error-B8IoFBhD.d.ts +45 -0
- package/dist/app-error-codes-D5eYg7xR.d.ts +49 -0
- package/dist/auth/index.cjs +479 -0
- package/dist/auth/index.cjs.map +1 -0
- package/dist/auth/index.d.ts +83 -0
- package/dist/auth/index.js +36 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/chunk-4MEK3CNF.js +246 -0
- package/dist/chunk-4MEK3CNF.js.map +1 -0
- package/dist/chunk-5NTNMBJP.js +25 -0
- package/dist/chunk-5NTNMBJP.js.map +1 -0
- package/dist/chunk-5YLNSX34.js +211 -0
- package/dist/chunk-5YLNSX34.js.map +1 -0
- package/dist/chunk-7EOS2K24.js +267 -0
- package/dist/chunk-7EOS2K24.js.map +1 -0
- package/dist/chunk-FYOLIMWU.js +25 -0
- package/dist/chunk-FYOLIMWU.js.map +1 -0
- package/dist/chunk-JMFEWI53.js +10 -0
- package/dist/chunk-JMFEWI53.js.map +1 -0
- package/dist/chunk-OGTDTTHJ.js +244 -0
- package/dist/chunk-OGTDTTHJ.js.map +1 -0
- package/dist/chunk-OIZPAN6I.js +356 -0
- package/dist/chunk-OIZPAN6I.js.map +1 -0
- package/dist/chunk-T4IDICOJ.js +1480 -0
- package/dist/chunk-T4IDICOJ.js.map +1 -0
- package/dist/chunk-T5D5T52J.js +271 -0
- package/dist/chunk-T5D5T52J.js.map +1 -0
- package/dist/chunk-TCXWV62L.js +1 -0
- package/dist/chunk-TCXWV62L.js.map +1 -0
- package/dist/genre-tree/index.cjs +2153 -0
- package/dist/genre-tree/index.cjs.map +1 -0
- package/dist/genre-tree/index.d.ts +3109 -0
- package/dist/genre-tree/index.js +181 -0
- package/dist/genre-tree/index.js.map +1 -0
- package/dist/genre-tree/testing.cjs +55 -0
- package/dist/genre-tree/testing.cjs.map +1 -0
- package/dist/genre-tree/testing.d.ts +7 -0
- package/dist/genre-tree/testing.js +27 -0
- package/dist/genre-tree/testing.js.map +1 -0
- package/dist/ids-D8XCErUS.d.ts +8 -0
- package/dist/index.cjs +3214 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +310 -0
- package/dist/index.js.map +1 -0
- package/dist/player/index.cjs +388 -0
- package/dist/player/index.cjs.map +1 -0
- package/dist/player/index.d.ts +108 -0
- package/dist/player/index.js +20 -0
- package/dist/player/index.js.map +1 -0
- package/dist/popup/index.cjs +403 -0
- package/dist/popup/index.cjs.map +1 -0
- package/dist/popup/index.d.ts +80 -0
- package/dist/popup/index.js +16 -0
- package/dist/popup/index.js.map +1 -0
- package/dist/scope-BoMVOHmz.d.ts +4 -0
- package/dist/track-noun/index.cjs +53 -0
- package/dist/track-noun/index.cjs.map +1 -0
- package/dist/track-noun/index.d.ts +15 -0
- package/dist/track-noun/index.js +11 -0
- package/dist/track-noun/index.js.map +1 -0
- package/dist/transport/index.cjs +773 -0
- package/dist/transport/index.cjs.map +1 -0
- package/dist/transport/index.d.ts +203 -0
- package/dist/transport/index.js +69 -0
- package/dist/transport/index.js.map +1 -0
- package/package.json +97 -4
- package/README.md +0 -3
|
@@ -0,0 +1,3109 @@
|
|
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
import { InfiniteData } from '@tanstack/react-query';
|
|
3
|
+
import * as zod from 'zod';
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
import { S as Scope } from '../scope-BoMVOHmz.js';
|
|
6
|
+
import { b as GenreUuid, G as GenrePlaylistUuid } from '../ids-D8XCErUS.js';
|
|
7
|
+
export { a as GenrePlaylistUuidSchema, c as GenreUuidSchema } from '../ids-D8XCErUS.js';
|
|
8
|
+
import * as react from 'react';
|
|
9
|
+
import { ReactNode } from 'react';
|
|
10
|
+
|
|
11
|
+
declare const CriteriaDetailedSchema: z.ZodObject<{
|
|
12
|
+
uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
|
|
13
|
+
name: z.ZodString;
|
|
14
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
15
|
+
parent: z.ZodNullable<z.ZodObject<{
|
|
16
|
+
uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
|
|
17
|
+
name: z.ZodString;
|
|
18
|
+
side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
19
|
+
pop: "pop";
|
|
20
|
+
core: "core";
|
|
21
|
+
}>>>;
|
|
22
|
+
wikidataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
ascendants: z.ZodArray<z.ZodObject<{
|
|
25
|
+
ascendant: z.ZodObject<{
|
|
26
|
+
uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
29
|
+
pop: "pop";
|
|
30
|
+
core: "core";
|
|
31
|
+
}>>>;
|
|
32
|
+
wikidataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
degree: z.ZodNumber;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
descendants: z.ZodArray<z.ZodObject<{
|
|
37
|
+
descendant: z.ZodObject<{
|
|
38
|
+
uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
|
|
39
|
+
name: z.ZodString;
|
|
40
|
+
side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
41
|
+
pop: "pop";
|
|
42
|
+
core: "core";
|
|
43
|
+
}>>>;
|
|
44
|
+
wikidataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
degree: z.ZodNumber;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
root: z.ZodObject<{
|
|
49
|
+
uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
|
|
50
|
+
name: z.ZodString;
|
|
51
|
+
side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
52
|
+
pop: "pop";
|
|
53
|
+
core: "core";
|
|
54
|
+
}>>>;
|
|
55
|
+
wikidataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
children: z.ZodArray<z.ZodObject<{
|
|
58
|
+
uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
|
|
59
|
+
name: z.ZodString;
|
|
60
|
+
side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
61
|
+
pop: "pop";
|
|
62
|
+
core: "core";
|
|
63
|
+
}>>>;
|
|
64
|
+
wikidataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
criteriaPlaylist: z.ZodObject<{
|
|
67
|
+
uuid: z.core.$ZodBranded<z.ZodString, "GenrePlaylistUuid", "out">;
|
|
68
|
+
name: z.ZodString;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
tracks: z.ZodArray<z.ZodObject<{
|
|
71
|
+
title: z.ZodString;
|
|
72
|
+
uuid: z.ZodString;
|
|
73
|
+
artists: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
74
|
+
uuid: z.ZodString;
|
|
75
|
+
name: z.ZodString;
|
|
76
|
+
isSpecialPurpose: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
+
}, z.core.$strip>>>>;
|
|
78
|
+
}, z.core.$strip>>;
|
|
79
|
+
essentialSongs: z.ZodArray<z.ZodObject<{
|
|
80
|
+
title: z.ZodString;
|
|
81
|
+
uuid: z.ZodString;
|
|
82
|
+
artists: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
83
|
+
uuid: z.ZodString;
|
|
84
|
+
name: z.ZodString;
|
|
85
|
+
isSpecialPurpose: z.ZodOptional<z.ZodBoolean>;
|
|
86
|
+
}, z.core.$strip>>>>;
|
|
87
|
+
}, z.core.$strip>>;
|
|
88
|
+
tracksCount: z.ZodNumber;
|
|
89
|
+
updatedOn: z.ZodNullable<z.ZodString>;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
type CriteriaDetailed = z.infer<typeof CriteriaDetailedSchema>;
|
|
92
|
+
|
|
93
|
+
declare const CriteriaOverviewSchema: z.ZodObject<{
|
|
94
|
+
uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
|
|
95
|
+
name: z.ZodString;
|
|
96
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
97
|
+
description: z.ZodNullable<z.ZodString>;
|
|
98
|
+
summarySourceUrl: z.ZodNullable<z.ZodURL>;
|
|
99
|
+
essentialSongs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
100
|
+
title: z.ZodString;
|
|
101
|
+
uuid: z.ZodString;
|
|
102
|
+
artists: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
103
|
+
uuid: z.ZodString;
|
|
104
|
+
name: z.ZodString;
|
|
105
|
+
isSpecialPurpose: z.ZodOptional<z.ZodBoolean>;
|
|
106
|
+
}, z.core.$strip>>>>;
|
|
107
|
+
}, z.core.$strip>>>;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
type CriteriaOverview = z.infer<typeof CriteriaOverviewSchema>;
|
|
110
|
+
|
|
111
|
+
declare function useListGenres(page: number | undefined, pageSize: number | string | undefined, scope: Scope, getBackendBaseUrl: () => string): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
112
|
+
overallTotal: number;
|
|
113
|
+
next: string | null;
|
|
114
|
+
previous: string | null;
|
|
115
|
+
results: {
|
|
116
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
117
|
+
name: string;
|
|
118
|
+
parent: {
|
|
119
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
120
|
+
name: string;
|
|
121
|
+
side?: "pop" | "core" | null | undefined;
|
|
122
|
+
wikidataId?: string | null | undefined;
|
|
123
|
+
} | null;
|
|
124
|
+
createdOn: string;
|
|
125
|
+
summary: string | null;
|
|
126
|
+
}[];
|
|
127
|
+
page: number;
|
|
128
|
+
pageSize: number;
|
|
129
|
+
totalPages: number;
|
|
130
|
+
}>, Error>;
|
|
131
|
+
declare function useFetchGenre(scope: Scope, getBackendBaseUrl: () => string): (id: GenreUuid) => Promise<CriteriaDetailed>;
|
|
132
|
+
declare function useFetchGenreDetail<D extends CriteriaDetailed = CriteriaDetailed>(id: GenreUuid | null, scope: Scope, getBackendBaseUrl: () => string, schema?: z.ZodType<D, unknown>): _tanstack_react_query.UseQueryResult<NoInfer<D>, Error>;
|
|
133
|
+
declare function useFetchGenreOverview<O extends CriteriaOverview = CriteriaOverview>(id: GenreUuid | null, scope: Scope, getBackendBaseUrl: () => string, schema?: z.ZodType<O, unknown>): _tanstack_react_query.UseQueryResult<NoInfer<O>, Error>;
|
|
134
|
+
declare function usePrefetchGenreOverview<O extends CriteriaOverview = CriteriaOverview>(scope: Scope, getBackendBaseUrl: () => string, schema?: z.ZodType<O, unknown>): (id: GenreUuid) => Promise<void>;
|
|
135
|
+
declare function useCreateGenre(scope: Scope, getBackendBaseUrl: () => string): {
|
|
136
|
+
formErrors: {
|
|
137
|
+
field: string;
|
|
138
|
+
message: string;
|
|
139
|
+
}[];
|
|
140
|
+
data: undefined;
|
|
141
|
+
variables: undefined;
|
|
142
|
+
error: null;
|
|
143
|
+
isError: false;
|
|
144
|
+
isIdle: true;
|
|
145
|
+
isPending: false;
|
|
146
|
+
isSuccess: false;
|
|
147
|
+
status: "idle";
|
|
148
|
+
mutate: _tanstack_react_query.UseMutateFunction<{
|
|
149
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
150
|
+
name: string;
|
|
151
|
+
summary: string | null;
|
|
152
|
+
parent: {
|
|
153
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
154
|
+
name: string;
|
|
155
|
+
side?: "pop" | "core" | null | undefined;
|
|
156
|
+
wikidataId?: string | null | undefined;
|
|
157
|
+
} | null;
|
|
158
|
+
ascendants: {
|
|
159
|
+
ascendant: {
|
|
160
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
161
|
+
name: string;
|
|
162
|
+
side?: "pop" | "core" | null | undefined;
|
|
163
|
+
wikidataId?: string | null | undefined;
|
|
164
|
+
};
|
|
165
|
+
degree: number;
|
|
166
|
+
}[];
|
|
167
|
+
descendants: {
|
|
168
|
+
descendant: {
|
|
169
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
170
|
+
name: string;
|
|
171
|
+
side?: "pop" | "core" | null | undefined;
|
|
172
|
+
wikidataId?: string | null | undefined;
|
|
173
|
+
};
|
|
174
|
+
degree: number;
|
|
175
|
+
}[];
|
|
176
|
+
root: {
|
|
177
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
178
|
+
name: string;
|
|
179
|
+
side?: "pop" | "core" | null | undefined;
|
|
180
|
+
wikidataId?: string | null | undefined;
|
|
181
|
+
};
|
|
182
|
+
children: {
|
|
183
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
184
|
+
name: string;
|
|
185
|
+
side?: "pop" | "core" | null | undefined;
|
|
186
|
+
wikidataId?: string | null | undefined;
|
|
187
|
+
}[];
|
|
188
|
+
criteriaPlaylist: {
|
|
189
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
190
|
+
name: string;
|
|
191
|
+
};
|
|
192
|
+
tracks: {
|
|
193
|
+
title: string;
|
|
194
|
+
uuid: string;
|
|
195
|
+
artists?: {
|
|
196
|
+
uuid: string;
|
|
197
|
+
name: string;
|
|
198
|
+
isSpecialPurpose?: boolean | undefined;
|
|
199
|
+
}[] | null | undefined;
|
|
200
|
+
}[];
|
|
201
|
+
essentialSongs: {
|
|
202
|
+
title: string;
|
|
203
|
+
uuid: string;
|
|
204
|
+
artists?: {
|
|
205
|
+
uuid: string;
|
|
206
|
+
name: string;
|
|
207
|
+
isSpecialPurpose?: boolean | undefined;
|
|
208
|
+
}[] | null | undefined;
|
|
209
|
+
}[];
|
|
210
|
+
tracksCount: number;
|
|
211
|
+
updatedOn: string | null;
|
|
212
|
+
}, Error, {
|
|
213
|
+
name: string;
|
|
214
|
+
parent?: (string & z.core.$brand<"GenreUuid">) | undefined;
|
|
215
|
+
essentialSongs?: string[] | undefined;
|
|
216
|
+
}, unknown>;
|
|
217
|
+
reset: () => void;
|
|
218
|
+
context: unknown;
|
|
219
|
+
failureCount: number;
|
|
220
|
+
failureReason: Error | null;
|
|
221
|
+
isPaused: boolean;
|
|
222
|
+
submittedAt: number;
|
|
223
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<{
|
|
224
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
225
|
+
name: string;
|
|
226
|
+
summary: string | null;
|
|
227
|
+
parent: {
|
|
228
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
229
|
+
name: string;
|
|
230
|
+
side?: "pop" | "core" | null | undefined;
|
|
231
|
+
wikidataId?: string | null | undefined;
|
|
232
|
+
} | null;
|
|
233
|
+
ascendants: {
|
|
234
|
+
ascendant: {
|
|
235
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
236
|
+
name: string;
|
|
237
|
+
side?: "pop" | "core" | null | undefined;
|
|
238
|
+
wikidataId?: string | null | undefined;
|
|
239
|
+
};
|
|
240
|
+
degree: number;
|
|
241
|
+
}[];
|
|
242
|
+
descendants: {
|
|
243
|
+
descendant: {
|
|
244
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
245
|
+
name: string;
|
|
246
|
+
side?: "pop" | "core" | null | undefined;
|
|
247
|
+
wikidataId?: string | null | undefined;
|
|
248
|
+
};
|
|
249
|
+
degree: number;
|
|
250
|
+
}[];
|
|
251
|
+
root: {
|
|
252
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
253
|
+
name: string;
|
|
254
|
+
side?: "pop" | "core" | null | undefined;
|
|
255
|
+
wikidataId?: string | null | undefined;
|
|
256
|
+
};
|
|
257
|
+
children: {
|
|
258
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
259
|
+
name: string;
|
|
260
|
+
side?: "pop" | "core" | null | undefined;
|
|
261
|
+
wikidataId?: string | null | undefined;
|
|
262
|
+
}[];
|
|
263
|
+
criteriaPlaylist: {
|
|
264
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
265
|
+
name: string;
|
|
266
|
+
};
|
|
267
|
+
tracks: {
|
|
268
|
+
title: string;
|
|
269
|
+
uuid: string;
|
|
270
|
+
artists?: {
|
|
271
|
+
uuid: string;
|
|
272
|
+
name: string;
|
|
273
|
+
isSpecialPurpose?: boolean | undefined;
|
|
274
|
+
}[] | null | undefined;
|
|
275
|
+
}[];
|
|
276
|
+
essentialSongs: {
|
|
277
|
+
title: string;
|
|
278
|
+
uuid: string;
|
|
279
|
+
artists?: {
|
|
280
|
+
uuid: string;
|
|
281
|
+
name: string;
|
|
282
|
+
isSpecialPurpose?: boolean | undefined;
|
|
283
|
+
}[] | null | undefined;
|
|
284
|
+
}[];
|
|
285
|
+
tracksCount: number;
|
|
286
|
+
updatedOn: string | null;
|
|
287
|
+
}, Error, {
|
|
288
|
+
name: string;
|
|
289
|
+
parent?: (string & z.core.$brand<"GenreUuid">) | undefined;
|
|
290
|
+
essentialSongs?: string[] | undefined;
|
|
291
|
+
}, unknown>;
|
|
292
|
+
} | {
|
|
293
|
+
formErrors: {
|
|
294
|
+
field: string;
|
|
295
|
+
message: string;
|
|
296
|
+
}[];
|
|
297
|
+
data: undefined;
|
|
298
|
+
variables: {
|
|
299
|
+
name: string;
|
|
300
|
+
parent?: (string & z.core.$brand<"GenreUuid">) | undefined;
|
|
301
|
+
essentialSongs?: string[] | undefined;
|
|
302
|
+
};
|
|
303
|
+
error: null;
|
|
304
|
+
isError: false;
|
|
305
|
+
isIdle: false;
|
|
306
|
+
isPending: true;
|
|
307
|
+
isSuccess: false;
|
|
308
|
+
status: "pending";
|
|
309
|
+
mutate: _tanstack_react_query.UseMutateFunction<{
|
|
310
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
311
|
+
name: string;
|
|
312
|
+
summary: string | null;
|
|
313
|
+
parent: {
|
|
314
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
315
|
+
name: string;
|
|
316
|
+
side?: "pop" | "core" | null | undefined;
|
|
317
|
+
wikidataId?: string | null | undefined;
|
|
318
|
+
} | null;
|
|
319
|
+
ascendants: {
|
|
320
|
+
ascendant: {
|
|
321
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
322
|
+
name: string;
|
|
323
|
+
side?: "pop" | "core" | null | undefined;
|
|
324
|
+
wikidataId?: string | null | undefined;
|
|
325
|
+
};
|
|
326
|
+
degree: number;
|
|
327
|
+
}[];
|
|
328
|
+
descendants: {
|
|
329
|
+
descendant: {
|
|
330
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
331
|
+
name: string;
|
|
332
|
+
side?: "pop" | "core" | null | undefined;
|
|
333
|
+
wikidataId?: string | null | undefined;
|
|
334
|
+
};
|
|
335
|
+
degree: number;
|
|
336
|
+
}[];
|
|
337
|
+
root: {
|
|
338
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
339
|
+
name: string;
|
|
340
|
+
side?: "pop" | "core" | null | undefined;
|
|
341
|
+
wikidataId?: string | null | undefined;
|
|
342
|
+
};
|
|
343
|
+
children: {
|
|
344
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
345
|
+
name: string;
|
|
346
|
+
side?: "pop" | "core" | null | undefined;
|
|
347
|
+
wikidataId?: string | null | undefined;
|
|
348
|
+
}[];
|
|
349
|
+
criteriaPlaylist: {
|
|
350
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
351
|
+
name: string;
|
|
352
|
+
};
|
|
353
|
+
tracks: {
|
|
354
|
+
title: string;
|
|
355
|
+
uuid: string;
|
|
356
|
+
artists?: {
|
|
357
|
+
uuid: string;
|
|
358
|
+
name: string;
|
|
359
|
+
isSpecialPurpose?: boolean | undefined;
|
|
360
|
+
}[] | null | undefined;
|
|
361
|
+
}[];
|
|
362
|
+
essentialSongs: {
|
|
363
|
+
title: string;
|
|
364
|
+
uuid: string;
|
|
365
|
+
artists?: {
|
|
366
|
+
uuid: string;
|
|
367
|
+
name: string;
|
|
368
|
+
isSpecialPurpose?: boolean | undefined;
|
|
369
|
+
}[] | null | undefined;
|
|
370
|
+
}[];
|
|
371
|
+
tracksCount: number;
|
|
372
|
+
updatedOn: string | null;
|
|
373
|
+
}, Error, {
|
|
374
|
+
name: string;
|
|
375
|
+
parent?: (string & z.core.$brand<"GenreUuid">) | undefined;
|
|
376
|
+
essentialSongs?: string[] | undefined;
|
|
377
|
+
}, unknown>;
|
|
378
|
+
reset: () => void;
|
|
379
|
+
context: unknown;
|
|
380
|
+
failureCount: number;
|
|
381
|
+
failureReason: Error | null;
|
|
382
|
+
isPaused: boolean;
|
|
383
|
+
submittedAt: number;
|
|
384
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<{
|
|
385
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
386
|
+
name: string;
|
|
387
|
+
summary: string | null;
|
|
388
|
+
parent: {
|
|
389
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
390
|
+
name: string;
|
|
391
|
+
side?: "pop" | "core" | null | undefined;
|
|
392
|
+
wikidataId?: string | null | undefined;
|
|
393
|
+
} | null;
|
|
394
|
+
ascendants: {
|
|
395
|
+
ascendant: {
|
|
396
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
397
|
+
name: string;
|
|
398
|
+
side?: "pop" | "core" | null | undefined;
|
|
399
|
+
wikidataId?: string | null | undefined;
|
|
400
|
+
};
|
|
401
|
+
degree: number;
|
|
402
|
+
}[];
|
|
403
|
+
descendants: {
|
|
404
|
+
descendant: {
|
|
405
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
406
|
+
name: string;
|
|
407
|
+
side?: "pop" | "core" | null | undefined;
|
|
408
|
+
wikidataId?: string | null | undefined;
|
|
409
|
+
};
|
|
410
|
+
degree: number;
|
|
411
|
+
}[];
|
|
412
|
+
root: {
|
|
413
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
414
|
+
name: string;
|
|
415
|
+
side?: "pop" | "core" | null | undefined;
|
|
416
|
+
wikidataId?: string | null | undefined;
|
|
417
|
+
};
|
|
418
|
+
children: {
|
|
419
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
420
|
+
name: string;
|
|
421
|
+
side?: "pop" | "core" | null | undefined;
|
|
422
|
+
wikidataId?: string | null | undefined;
|
|
423
|
+
}[];
|
|
424
|
+
criteriaPlaylist: {
|
|
425
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
426
|
+
name: string;
|
|
427
|
+
};
|
|
428
|
+
tracks: {
|
|
429
|
+
title: string;
|
|
430
|
+
uuid: string;
|
|
431
|
+
artists?: {
|
|
432
|
+
uuid: string;
|
|
433
|
+
name: string;
|
|
434
|
+
isSpecialPurpose?: boolean | undefined;
|
|
435
|
+
}[] | null | undefined;
|
|
436
|
+
}[];
|
|
437
|
+
essentialSongs: {
|
|
438
|
+
title: string;
|
|
439
|
+
uuid: string;
|
|
440
|
+
artists?: {
|
|
441
|
+
uuid: string;
|
|
442
|
+
name: string;
|
|
443
|
+
isSpecialPurpose?: boolean | undefined;
|
|
444
|
+
}[] | null | undefined;
|
|
445
|
+
}[];
|
|
446
|
+
tracksCount: number;
|
|
447
|
+
updatedOn: string | null;
|
|
448
|
+
}, Error, {
|
|
449
|
+
name: string;
|
|
450
|
+
parent?: (string & z.core.$brand<"GenreUuid">) | undefined;
|
|
451
|
+
essentialSongs?: string[] | undefined;
|
|
452
|
+
}, unknown>;
|
|
453
|
+
} | {
|
|
454
|
+
formErrors: {
|
|
455
|
+
field: string;
|
|
456
|
+
message: string;
|
|
457
|
+
}[];
|
|
458
|
+
data: undefined;
|
|
459
|
+
error: Error;
|
|
460
|
+
variables: {
|
|
461
|
+
name: string;
|
|
462
|
+
parent?: (string & z.core.$brand<"GenreUuid">) | undefined;
|
|
463
|
+
essentialSongs?: string[] | undefined;
|
|
464
|
+
};
|
|
465
|
+
isError: true;
|
|
466
|
+
isIdle: false;
|
|
467
|
+
isPending: false;
|
|
468
|
+
isSuccess: false;
|
|
469
|
+
status: "error";
|
|
470
|
+
mutate: _tanstack_react_query.UseMutateFunction<{
|
|
471
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
472
|
+
name: string;
|
|
473
|
+
summary: string | null;
|
|
474
|
+
parent: {
|
|
475
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
476
|
+
name: string;
|
|
477
|
+
side?: "pop" | "core" | null | undefined;
|
|
478
|
+
wikidataId?: string | null | undefined;
|
|
479
|
+
} | null;
|
|
480
|
+
ascendants: {
|
|
481
|
+
ascendant: {
|
|
482
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
483
|
+
name: string;
|
|
484
|
+
side?: "pop" | "core" | null | undefined;
|
|
485
|
+
wikidataId?: string | null | undefined;
|
|
486
|
+
};
|
|
487
|
+
degree: number;
|
|
488
|
+
}[];
|
|
489
|
+
descendants: {
|
|
490
|
+
descendant: {
|
|
491
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
492
|
+
name: string;
|
|
493
|
+
side?: "pop" | "core" | null | undefined;
|
|
494
|
+
wikidataId?: string | null | undefined;
|
|
495
|
+
};
|
|
496
|
+
degree: number;
|
|
497
|
+
}[];
|
|
498
|
+
root: {
|
|
499
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
500
|
+
name: string;
|
|
501
|
+
side?: "pop" | "core" | null | undefined;
|
|
502
|
+
wikidataId?: string | null | undefined;
|
|
503
|
+
};
|
|
504
|
+
children: {
|
|
505
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
506
|
+
name: string;
|
|
507
|
+
side?: "pop" | "core" | null | undefined;
|
|
508
|
+
wikidataId?: string | null | undefined;
|
|
509
|
+
}[];
|
|
510
|
+
criteriaPlaylist: {
|
|
511
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
512
|
+
name: string;
|
|
513
|
+
};
|
|
514
|
+
tracks: {
|
|
515
|
+
title: string;
|
|
516
|
+
uuid: string;
|
|
517
|
+
artists?: {
|
|
518
|
+
uuid: string;
|
|
519
|
+
name: string;
|
|
520
|
+
isSpecialPurpose?: boolean | undefined;
|
|
521
|
+
}[] | null | undefined;
|
|
522
|
+
}[];
|
|
523
|
+
essentialSongs: {
|
|
524
|
+
title: string;
|
|
525
|
+
uuid: string;
|
|
526
|
+
artists?: {
|
|
527
|
+
uuid: string;
|
|
528
|
+
name: string;
|
|
529
|
+
isSpecialPurpose?: boolean | undefined;
|
|
530
|
+
}[] | null | undefined;
|
|
531
|
+
}[];
|
|
532
|
+
tracksCount: number;
|
|
533
|
+
updatedOn: string | null;
|
|
534
|
+
}, Error, {
|
|
535
|
+
name: string;
|
|
536
|
+
parent?: (string & z.core.$brand<"GenreUuid">) | undefined;
|
|
537
|
+
essentialSongs?: string[] | undefined;
|
|
538
|
+
}, unknown>;
|
|
539
|
+
reset: () => void;
|
|
540
|
+
context: unknown;
|
|
541
|
+
failureCount: number;
|
|
542
|
+
failureReason: Error | null;
|
|
543
|
+
isPaused: boolean;
|
|
544
|
+
submittedAt: number;
|
|
545
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<{
|
|
546
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
547
|
+
name: string;
|
|
548
|
+
summary: string | null;
|
|
549
|
+
parent: {
|
|
550
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
551
|
+
name: string;
|
|
552
|
+
side?: "pop" | "core" | null | undefined;
|
|
553
|
+
wikidataId?: string | null | undefined;
|
|
554
|
+
} | null;
|
|
555
|
+
ascendants: {
|
|
556
|
+
ascendant: {
|
|
557
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
558
|
+
name: string;
|
|
559
|
+
side?: "pop" | "core" | null | undefined;
|
|
560
|
+
wikidataId?: string | null | undefined;
|
|
561
|
+
};
|
|
562
|
+
degree: number;
|
|
563
|
+
}[];
|
|
564
|
+
descendants: {
|
|
565
|
+
descendant: {
|
|
566
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
567
|
+
name: string;
|
|
568
|
+
side?: "pop" | "core" | null | undefined;
|
|
569
|
+
wikidataId?: string | null | undefined;
|
|
570
|
+
};
|
|
571
|
+
degree: number;
|
|
572
|
+
}[];
|
|
573
|
+
root: {
|
|
574
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
575
|
+
name: string;
|
|
576
|
+
side?: "pop" | "core" | null | undefined;
|
|
577
|
+
wikidataId?: string | null | undefined;
|
|
578
|
+
};
|
|
579
|
+
children: {
|
|
580
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
581
|
+
name: string;
|
|
582
|
+
side?: "pop" | "core" | null | undefined;
|
|
583
|
+
wikidataId?: string | null | undefined;
|
|
584
|
+
}[];
|
|
585
|
+
criteriaPlaylist: {
|
|
586
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
587
|
+
name: string;
|
|
588
|
+
};
|
|
589
|
+
tracks: {
|
|
590
|
+
title: string;
|
|
591
|
+
uuid: string;
|
|
592
|
+
artists?: {
|
|
593
|
+
uuid: string;
|
|
594
|
+
name: string;
|
|
595
|
+
isSpecialPurpose?: boolean | undefined;
|
|
596
|
+
}[] | null | undefined;
|
|
597
|
+
}[];
|
|
598
|
+
essentialSongs: {
|
|
599
|
+
title: string;
|
|
600
|
+
uuid: string;
|
|
601
|
+
artists?: {
|
|
602
|
+
uuid: string;
|
|
603
|
+
name: string;
|
|
604
|
+
isSpecialPurpose?: boolean | undefined;
|
|
605
|
+
}[] | null | undefined;
|
|
606
|
+
}[];
|
|
607
|
+
tracksCount: number;
|
|
608
|
+
updatedOn: string | null;
|
|
609
|
+
}, Error, {
|
|
610
|
+
name: string;
|
|
611
|
+
parent?: (string & z.core.$brand<"GenreUuid">) | undefined;
|
|
612
|
+
essentialSongs?: string[] | undefined;
|
|
613
|
+
}, unknown>;
|
|
614
|
+
} | {
|
|
615
|
+
formErrors: {
|
|
616
|
+
field: string;
|
|
617
|
+
message: string;
|
|
618
|
+
}[];
|
|
619
|
+
data: {
|
|
620
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
621
|
+
name: string;
|
|
622
|
+
summary: string | null;
|
|
623
|
+
parent: {
|
|
624
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
625
|
+
name: string;
|
|
626
|
+
side?: "pop" | "core" | null | undefined;
|
|
627
|
+
wikidataId?: string | null | undefined;
|
|
628
|
+
} | null;
|
|
629
|
+
ascendants: {
|
|
630
|
+
ascendant: {
|
|
631
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
632
|
+
name: string;
|
|
633
|
+
side?: "pop" | "core" | null | undefined;
|
|
634
|
+
wikidataId?: string | null | undefined;
|
|
635
|
+
};
|
|
636
|
+
degree: number;
|
|
637
|
+
}[];
|
|
638
|
+
descendants: {
|
|
639
|
+
descendant: {
|
|
640
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
641
|
+
name: string;
|
|
642
|
+
side?: "pop" | "core" | null | undefined;
|
|
643
|
+
wikidataId?: string | null | undefined;
|
|
644
|
+
};
|
|
645
|
+
degree: number;
|
|
646
|
+
}[];
|
|
647
|
+
root: {
|
|
648
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
649
|
+
name: string;
|
|
650
|
+
side?: "pop" | "core" | null | undefined;
|
|
651
|
+
wikidataId?: string | null | undefined;
|
|
652
|
+
};
|
|
653
|
+
children: {
|
|
654
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
655
|
+
name: string;
|
|
656
|
+
side?: "pop" | "core" | null | undefined;
|
|
657
|
+
wikidataId?: string | null | undefined;
|
|
658
|
+
}[];
|
|
659
|
+
criteriaPlaylist: {
|
|
660
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
661
|
+
name: string;
|
|
662
|
+
};
|
|
663
|
+
tracks: {
|
|
664
|
+
title: string;
|
|
665
|
+
uuid: string;
|
|
666
|
+
artists?: {
|
|
667
|
+
uuid: string;
|
|
668
|
+
name: string;
|
|
669
|
+
isSpecialPurpose?: boolean | undefined;
|
|
670
|
+
}[] | null | undefined;
|
|
671
|
+
}[];
|
|
672
|
+
essentialSongs: {
|
|
673
|
+
title: string;
|
|
674
|
+
uuid: string;
|
|
675
|
+
artists?: {
|
|
676
|
+
uuid: string;
|
|
677
|
+
name: string;
|
|
678
|
+
isSpecialPurpose?: boolean | undefined;
|
|
679
|
+
}[] | null | undefined;
|
|
680
|
+
}[];
|
|
681
|
+
tracksCount: number;
|
|
682
|
+
updatedOn: string | null;
|
|
683
|
+
};
|
|
684
|
+
error: null;
|
|
685
|
+
variables: {
|
|
686
|
+
name: string;
|
|
687
|
+
parent?: (string & z.core.$brand<"GenreUuid">) | undefined;
|
|
688
|
+
essentialSongs?: string[] | undefined;
|
|
689
|
+
};
|
|
690
|
+
isError: false;
|
|
691
|
+
isIdle: false;
|
|
692
|
+
isPending: false;
|
|
693
|
+
isSuccess: true;
|
|
694
|
+
status: "success";
|
|
695
|
+
mutate: _tanstack_react_query.UseMutateFunction<{
|
|
696
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
697
|
+
name: string;
|
|
698
|
+
summary: string | null;
|
|
699
|
+
parent: {
|
|
700
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
701
|
+
name: string;
|
|
702
|
+
side?: "pop" | "core" | null | undefined;
|
|
703
|
+
wikidataId?: string | null | undefined;
|
|
704
|
+
} | null;
|
|
705
|
+
ascendants: {
|
|
706
|
+
ascendant: {
|
|
707
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
708
|
+
name: string;
|
|
709
|
+
side?: "pop" | "core" | null | undefined;
|
|
710
|
+
wikidataId?: string | null | undefined;
|
|
711
|
+
};
|
|
712
|
+
degree: number;
|
|
713
|
+
}[];
|
|
714
|
+
descendants: {
|
|
715
|
+
descendant: {
|
|
716
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
717
|
+
name: string;
|
|
718
|
+
side?: "pop" | "core" | null | undefined;
|
|
719
|
+
wikidataId?: string | null | undefined;
|
|
720
|
+
};
|
|
721
|
+
degree: number;
|
|
722
|
+
}[];
|
|
723
|
+
root: {
|
|
724
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
725
|
+
name: string;
|
|
726
|
+
side?: "pop" | "core" | null | undefined;
|
|
727
|
+
wikidataId?: string | null | undefined;
|
|
728
|
+
};
|
|
729
|
+
children: {
|
|
730
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
731
|
+
name: string;
|
|
732
|
+
side?: "pop" | "core" | null | undefined;
|
|
733
|
+
wikidataId?: string | null | undefined;
|
|
734
|
+
}[];
|
|
735
|
+
criteriaPlaylist: {
|
|
736
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
737
|
+
name: string;
|
|
738
|
+
};
|
|
739
|
+
tracks: {
|
|
740
|
+
title: string;
|
|
741
|
+
uuid: string;
|
|
742
|
+
artists?: {
|
|
743
|
+
uuid: string;
|
|
744
|
+
name: string;
|
|
745
|
+
isSpecialPurpose?: boolean | undefined;
|
|
746
|
+
}[] | null | undefined;
|
|
747
|
+
}[];
|
|
748
|
+
essentialSongs: {
|
|
749
|
+
title: string;
|
|
750
|
+
uuid: string;
|
|
751
|
+
artists?: {
|
|
752
|
+
uuid: string;
|
|
753
|
+
name: string;
|
|
754
|
+
isSpecialPurpose?: boolean | undefined;
|
|
755
|
+
}[] | null | undefined;
|
|
756
|
+
}[];
|
|
757
|
+
tracksCount: number;
|
|
758
|
+
updatedOn: string | null;
|
|
759
|
+
}, Error, {
|
|
760
|
+
name: string;
|
|
761
|
+
parent?: (string & z.core.$brand<"GenreUuid">) | undefined;
|
|
762
|
+
essentialSongs?: string[] | undefined;
|
|
763
|
+
}, unknown>;
|
|
764
|
+
reset: () => void;
|
|
765
|
+
context: unknown;
|
|
766
|
+
failureCount: number;
|
|
767
|
+
failureReason: Error | null;
|
|
768
|
+
isPaused: boolean;
|
|
769
|
+
submittedAt: number;
|
|
770
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<{
|
|
771
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
772
|
+
name: string;
|
|
773
|
+
summary: string | null;
|
|
774
|
+
parent: {
|
|
775
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
776
|
+
name: string;
|
|
777
|
+
side?: "pop" | "core" | null | undefined;
|
|
778
|
+
wikidataId?: string | null | undefined;
|
|
779
|
+
} | null;
|
|
780
|
+
ascendants: {
|
|
781
|
+
ascendant: {
|
|
782
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
783
|
+
name: string;
|
|
784
|
+
side?: "pop" | "core" | null | undefined;
|
|
785
|
+
wikidataId?: string | null | undefined;
|
|
786
|
+
};
|
|
787
|
+
degree: number;
|
|
788
|
+
}[];
|
|
789
|
+
descendants: {
|
|
790
|
+
descendant: {
|
|
791
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
792
|
+
name: string;
|
|
793
|
+
side?: "pop" | "core" | null | undefined;
|
|
794
|
+
wikidataId?: string | null | undefined;
|
|
795
|
+
};
|
|
796
|
+
degree: number;
|
|
797
|
+
}[];
|
|
798
|
+
root: {
|
|
799
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
800
|
+
name: string;
|
|
801
|
+
side?: "pop" | "core" | null | undefined;
|
|
802
|
+
wikidataId?: string | null | undefined;
|
|
803
|
+
};
|
|
804
|
+
children: {
|
|
805
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
806
|
+
name: string;
|
|
807
|
+
side?: "pop" | "core" | null | undefined;
|
|
808
|
+
wikidataId?: string | null | undefined;
|
|
809
|
+
}[];
|
|
810
|
+
criteriaPlaylist: {
|
|
811
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
812
|
+
name: string;
|
|
813
|
+
};
|
|
814
|
+
tracks: {
|
|
815
|
+
title: string;
|
|
816
|
+
uuid: string;
|
|
817
|
+
artists?: {
|
|
818
|
+
uuid: string;
|
|
819
|
+
name: string;
|
|
820
|
+
isSpecialPurpose?: boolean | undefined;
|
|
821
|
+
}[] | null | undefined;
|
|
822
|
+
}[];
|
|
823
|
+
essentialSongs: {
|
|
824
|
+
title: string;
|
|
825
|
+
uuid: string;
|
|
826
|
+
artists?: {
|
|
827
|
+
uuid: string;
|
|
828
|
+
name: string;
|
|
829
|
+
isSpecialPurpose?: boolean | undefined;
|
|
830
|
+
}[] | null | undefined;
|
|
831
|
+
}[];
|
|
832
|
+
tracksCount: number;
|
|
833
|
+
updatedOn: string | null;
|
|
834
|
+
}, Error, {
|
|
835
|
+
name: string;
|
|
836
|
+
parent?: (string & z.core.$brand<"GenreUuid">) | undefined;
|
|
837
|
+
essentialSongs?: string[] | undefined;
|
|
838
|
+
}, unknown>;
|
|
839
|
+
};
|
|
840
|
+
declare function useUpdateGenre(scope: Scope, getBackendBaseUrl: () => string): {
|
|
841
|
+
mutate: _tanstack_react_query.UseMutateFunction<{
|
|
842
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
843
|
+
name: string;
|
|
844
|
+
summary: string | null;
|
|
845
|
+
parent: {
|
|
846
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
847
|
+
name: string;
|
|
848
|
+
side?: "pop" | "core" | null | undefined;
|
|
849
|
+
wikidataId?: string | null | undefined;
|
|
850
|
+
} | null;
|
|
851
|
+
ascendants: {
|
|
852
|
+
ascendant: {
|
|
853
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
854
|
+
name: string;
|
|
855
|
+
side?: "pop" | "core" | null | undefined;
|
|
856
|
+
wikidataId?: string | null | undefined;
|
|
857
|
+
};
|
|
858
|
+
degree: number;
|
|
859
|
+
}[];
|
|
860
|
+
descendants: {
|
|
861
|
+
descendant: {
|
|
862
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
863
|
+
name: string;
|
|
864
|
+
side?: "pop" | "core" | null | undefined;
|
|
865
|
+
wikidataId?: string | null | undefined;
|
|
866
|
+
};
|
|
867
|
+
degree: number;
|
|
868
|
+
}[];
|
|
869
|
+
root: {
|
|
870
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
871
|
+
name: string;
|
|
872
|
+
side?: "pop" | "core" | null | undefined;
|
|
873
|
+
wikidataId?: string | null | undefined;
|
|
874
|
+
};
|
|
875
|
+
children: {
|
|
876
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
877
|
+
name: string;
|
|
878
|
+
side?: "pop" | "core" | null | undefined;
|
|
879
|
+
wikidataId?: string | null | undefined;
|
|
880
|
+
}[];
|
|
881
|
+
criteriaPlaylist: {
|
|
882
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
883
|
+
name: string;
|
|
884
|
+
};
|
|
885
|
+
tracks: {
|
|
886
|
+
title: string;
|
|
887
|
+
uuid: string;
|
|
888
|
+
artists?: {
|
|
889
|
+
uuid: string;
|
|
890
|
+
name: string;
|
|
891
|
+
isSpecialPurpose?: boolean | undefined;
|
|
892
|
+
}[] | null | undefined;
|
|
893
|
+
}[];
|
|
894
|
+
essentialSongs: {
|
|
895
|
+
title: string;
|
|
896
|
+
uuid: string;
|
|
897
|
+
artists?: {
|
|
898
|
+
uuid: string;
|
|
899
|
+
name: string;
|
|
900
|
+
isSpecialPurpose?: boolean | undefined;
|
|
901
|
+
}[] | null | undefined;
|
|
902
|
+
}[];
|
|
903
|
+
tracksCount: number;
|
|
904
|
+
updatedOn: string | null;
|
|
905
|
+
}, Error, {
|
|
906
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
907
|
+
data: {
|
|
908
|
+
name?: string | undefined;
|
|
909
|
+
parent?: (string & z.core.$brand<"GenreUuid">) | null | undefined;
|
|
910
|
+
essentialSongs?: string[] | undefined;
|
|
911
|
+
};
|
|
912
|
+
}, unknown>;
|
|
913
|
+
renameGenre: (uuid: GenreUuid, name: string) => void;
|
|
914
|
+
updateGenreParent: (uuid: GenreUuid, parentUuid: GenreUuid | null) => Promise<void>;
|
|
915
|
+
isPending: boolean;
|
|
916
|
+
formErrors: {
|
|
917
|
+
field: string;
|
|
918
|
+
message: string;
|
|
919
|
+
}[];
|
|
920
|
+
};
|
|
921
|
+
declare function useDeleteGenre(scope: Scope, getBackendBaseUrl: () => string): {
|
|
922
|
+
formErrors: {
|
|
923
|
+
field: string;
|
|
924
|
+
message: string;
|
|
925
|
+
}[];
|
|
926
|
+
data: undefined;
|
|
927
|
+
variables: undefined;
|
|
928
|
+
error: null;
|
|
929
|
+
isError: false;
|
|
930
|
+
isIdle: true;
|
|
931
|
+
isPending: false;
|
|
932
|
+
isSuccess: false;
|
|
933
|
+
status: "idle";
|
|
934
|
+
mutate: _tanstack_react_query.UseMutateFunction<null, Error, {
|
|
935
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
936
|
+
}, unknown>;
|
|
937
|
+
reset: () => void;
|
|
938
|
+
context: unknown;
|
|
939
|
+
failureCount: number;
|
|
940
|
+
failureReason: Error | null;
|
|
941
|
+
isPaused: boolean;
|
|
942
|
+
submittedAt: number;
|
|
943
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<null, Error, {
|
|
944
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
945
|
+
}, unknown>;
|
|
946
|
+
} | {
|
|
947
|
+
formErrors: {
|
|
948
|
+
field: string;
|
|
949
|
+
message: string;
|
|
950
|
+
}[];
|
|
951
|
+
data: undefined;
|
|
952
|
+
variables: {
|
|
953
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
954
|
+
};
|
|
955
|
+
error: null;
|
|
956
|
+
isError: false;
|
|
957
|
+
isIdle: false;
|
|
958
|
+
isPending: true;
|
|
959
|
+
isSuccess: false;
|
|
960
|
+
status: "pending";
|
|
961
|
+
mutate: _tanstack_react_query.UseMutateFunction<null, Error, {
|
|
962
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
963
|
+
}, unknown>;
|
|
964
|
+
reset: () => void;
|
|
965
|
+
context: unknown;
|
|
966
|
+
failureCount: number;
|
|
967
|
+
failureReason: Error | null;
|
|
968
|
+
isPaused: boolean;
|
|
969
|
+
submittedAt: number;
|
|
970
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<null, Error, {
|
|
971
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
972
|
+
}, unknown>;
|
|
973
|
+
} | {
|
|
974
|
+
formErrors: {
|
|
975
|
+
field: string;
|
|
976
|
+
message: string;
|
|
977
|
+
}[];
|
|
978
|
+
data: undefined;
|
|
979
|
+
error: Error;
|
|
980
|
+
variables: {
|
|
981
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
982
|
+
};
|
|
983
|
+
isError: true;
|
|
984
|
+
isIdle: false;
|
|
985
|
+
isPending: false;
|
|
986
|
+
isSuccess: false;
|
|
987
|
+
status: "error";
|
|
988
|
+
mutate: _tanstack_react_query.UseMutateFunction<null, Error, {
|
|
989
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
990
|
+
}, unknown>;
|
|
991
|
+
reset: () => void;
|
|
992
|
+
context: unknown;
|
|
993
|
+
failureCount: number;
|
|
994
|
+
failureReason: Error | null;
|
|
995
|
+
isPaused: boolean;
|
|
996
|
+
submittedAt: number;
|
|
997
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<null, Error, {
|
|
998
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
999
|
+
}, unknown>;
|
|
1000
|
+
} | {
|
|
1001
|
+
formErrors: {
|
|
1002
|
+
field: string;
|
|
1003
|
+
message: string;
|
|
1004
|
+
}[];
|
|
1005
|
+
data: null;
|
|
1006
|
+
error: null;
|
|
1007
|
+
variables: {
|
|
1008
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1009
|
+
};
|
|
1010
|
+
isError: false;
|
|
1011
|
+
isIdle: false;
|
|
1012
|
+
isPending: false;
|
|
1013
|
+
isSuccess: true;
|
|
1014
|
+
status: "success";
|
|
1015
|
+
mutate: _tanstack_react_query.UseMutateFunction<null, Error, {
|
|
1016
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1017
|
+
}, unknown>;
|
|
1018
|
+
reset: () => void;
|
|
1019
|
+
context: unknown;
|
|
1020
|
+
failureCount: number;
|
|
1021
|
+
failureReason: Error | null;
|
|
1022
|
+
isPaused: boolean;
|
|
1023
|
+
submittedAt: number;
|
|
1024
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<null, Error, {
|
|
1025
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1026
|
+
}, unknown>;
|
|
1027
|
+
};
|
|
1028
|
+
|
|
1029
|
+
declare const useListGenrePlaylists: (page: number | undefined, pageSize: number | string | undefined, getBackendBaseUrl: () => string) => {
|
|
1030
|
+
invalidateGenrePlaylists: () => void;
|
|
1031
|
+
data: NoInfer<{
|
|
1032
|
+
overallTotal: number;
|
|
1033
|
+
next: string | null;
|
|
1034
|
+
previous: string | null;
|
|
1035
|
+
results: {
|
|
1036
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1037
|
+
name: string;
|
|
1038
|
+
root: {
|
|
1039
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1040
|
+
name: string;
|
|
1041
|
+
};
|
|
1042
|
+
tracksCount: number;
|
|
1043
|
+
viewsCount: number;
|
|
1044
|
+
criteria: {
|
|
1045
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1046
|
+
name: string;
|
|
1047
|
+
side?: "pop" | "core" | null | undefined;
|
|
1048
|
+
wikidataId?: string | null | undefined;
|
|
1049
|
+
} | null;
|
|
1050
|
+
parent: {
|
|
1051
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1052
|
+
name: string;
|
|
1053
|
+
} | null;
|
|
1054
|
+
createdOn: string;
|
|
1055
|
+
updatedOn: string | null;
|
|
1056
|
+
isUnacceptedRoot: boolean;
|
|
1057
|
+
isUmbrella?: boolean | undefined;
|
|
1058
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
1059
|
+
}[];
|
|
1060
|
+
page: number;
|
|
1061
|
+
pageSize: number;
|
|
1062
|
+
totalPages: number;
|
|
1063
|
+
}>;
|
|
1064
|
+
error: Error;
|
|
1065
|
+
isError: true;
|
|
1066
|
+
isPending: false;
|
|
1067
|
+
isLoading: false;
|
|
1068
|
+
isLoadingError: false;
|
|
1069
|
+
isRefetchError: true;
|
|
1070
|
+
isSuccess: false;
|
|
1071
|
+
isPlaceholderData: false;
|
|
1072
|
+
status: "error";
|
|
1073
|
+
dataUpdatedAt: number;
|
|
1074
|
+
errorUpdatedAt: number;
|
|
1075
|
+
failureCount: number;
|
|
1076
|
+
failureReason: Error | null;
|
|
1077
|
+
errorUpdateCount: number;
|
|
1078
|
+
isFetched: boolean;
|
|
1079
|
+
isFetchedAfterMount: boolean;
|
|
1080
|
+
isFetching: boolean;
|
|
1081
|
+
isInitialLoading: boolean;
|
|
1082
|
+
isPaused: boolean;
|
|
1083
|
+
isRefetching: boolean;
|
|
1084
|
+
isStale: boolean;
|
|
1085
|
+
isEnabled: boolean;
|
|
1086
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<NoInfer<{
|
|
1087
|
+
overallTotal: number;
|
|
1088
|
+
next: string | null;
|
|
1089
|
+
previous: string | null;
|
|
1090
|
+
results: {
|
|
1091
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1092
|
+
name: string;
|
|
1093
|
+
root: {
|
|
1094
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1095
|
+
name: string;
|
|
1096
|
+
};
|
|
1097
|
+
tracksCount: number;
|
|
1098
|
+
viewsCount: number;
|
|
1099
|
+
criteria: {
|
|
1100
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1101
|
+
name: string;
|
|
1102
|
+
side?: "pop" | "core" | null | undefined;
|
|
1103
|
+
wikidataId?: string | null | undefined;
|
|
1104
|
+
} | null;
|
|
1105
|
+
parent: {
|
|
1106
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1107
|
+
name: string;
|
|
1108
|
+
} | null;
|
|
1109
|
+
createdOn: string;
|
|
1110
|
+
updatedOn: string | null;
|
|
1111
|
+
isUnacceptedRoot: boolean;
|
|
1112
|
+
isUmbrella?: boolean | undefined;
|
|
1113
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
1114
|
+
}[];
|
|
1115
|
+
page: number;
|
|
1116
|
+
pageSize: number;
|
|
1117
|
+
totalPages: number;
|
|
1118
|
+
}>, Error>>;
|
|
1119
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
1120
|
+
promise: Promise<NoInfer<{
|
|
1121
|
+
overallTotal: number;
|
|
1122
|
+
next: string | null;
|
|
1123
|
+
previous: string | null;
|
|
1124
|
+
results: {
|
|
1125
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1126
|
+
name: string;
|
|
1127
|
+
root: {
|
|
1128
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1129
|
+
name: string;
|
|
1130
|
+
};
|
|
1131
|
+
tracksCount: number;
|
|
1132
|
+
viewsCount: number;
|
|
1133
|
+
criteria: {
|
|
1134
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1135
|
+
name: string;
|
|
1136
|
+
side?: "pop" | "core" | null | undefined;
|
|
1137
|
+
wikidataId?: string | null | undefined;
|
|
1138
|
+
} | null;
|
|
1139
|
+
parent: {
|
|
1140
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1141
|
+
name: string;
|
|
1142
|
+
} | null;
|
|
1143
|
+
createdOn: string;
|
|
1144
|
+
updatedOn: string | null;
|
|
1145
|
+
isUnacceptedRoot: boolean;
|
|
1146
|
+
isUmbrella?: boolean | undefined;
|
|
1147
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
1148
|
+
}[];
|
|
1149
|
+
page: number;
|
|
1150
|
+
pageSize: number;
|
|
1151
|
+
totalPages: number;
|
|
1152
|
+
}>>;
|
|
1153
|
+
} | {
|
|
1154
|
+
invalidateGenrePlaylists: () => void;
|
|
1155
|
+
data: NoInfer<{
|
|
1156
|
+
overallTotal: number;
|
|
1157
|
+
next: string | null;
|
|
1158
|
+
previous: string | null;
|
|
1159
|
+
results: {
|
|
1160
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1161
|
+
name: string;
|
|
1162
|
+
root: {
|
|
1163
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1164
|
+
name: string;
|
|
1165
|
+
};
|
|
1166
|
+
tracksCount: number;
|
|
1167
|
+
viewsCount: number;
|
|
1168
|
+
criteria: {
|
|
1169
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1170
|
+
name: string;
|
|
1171
|
+
side?: "pop" | "core" | null | undefined;
|
|
1172
|
+
wikidataId?: string | null | undefined;
|
|
1173
|
+
} | null;
|
|
1174
|
+
parent: {
|
|
1175
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1176
|
+
name: string;
|
|
1177
|
+
} | null;
|
|
1178
|
+
createdOn: string;
|
|
1179
|
+
updatedOn: string | null;
|
|
1180
|
+
isUnacceptedRoot: boolean;
|
|
1181
|
+
isUmbrella?: boolean | undefined;
|
|
1182
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
1183
|
+
}[];
|
|
1184
|
+
page: number;
|
|
1185
|
+
pageSize: number;
|
|
1186
|
+
totalPages: number;
|
|
1187
|
+
}>;
|
|
1188
|
+
error: null;
|
|
1189
|
+
isError: false;
|
|
1190
|
+
isPending: false;
|
|
1191
|
+
isLoading: false;
|
|
1192
|
+
isLoadingError: false;
|
|
1193
|
+
isRefetchError: false;
|
|
1194
|
+
isSuccess: true;
|
|
1195
|
+
isPlaceholderData: false;
|
|
1196
|
+
status: "success";
|
|
1197
|
+
dataUpdatedAt: number;
|
|
1198
|
+
errorUpdatedAt: number;
|
|
1199
|
+
failureCount: number;
|
|
1200
|
+
failureReason: Error | null;
|
|
1201
|
+
errorUpdateCount: number;
|
|
1202
|
+
isFetched: boolean;
|
|
1203
|
+
isFetchedAfterMount: boolean;
|
|
1204
|
+
isFetching: boolean;
|
|
1205
|
+
isInitialLoading: boolean;
|
|
1206
|
+
isPaused: boolean;
|
|
1207
|
+
isRefetching: boolean;
|
|
1208
|
+
isStale: boolean;
|
|
1209
|
+
isEnabled: boolean;
|
|
1210
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<NoInfer<{
|
|
1211
|
+
overallTotal: number;
|
|
1212
|
+
next: string | null;
|
|
1213
|
+
previous: string | null;
|
|
1214
|
+
results: {
|
|
1215
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1216
|
+
name: string;
|
|
1217
|
+
root: {
|
|
1218
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1219
|
+
name: string;
|
|
1220
|
+
};
|
|
1221
|
+
tracksCount: number;
|
|
1222
|
+
viewsCount: number;
|
|
1223
|
+
criteria: {
|
|
1224
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1225
|
+
name: string;
|
|
1226
|
+
side?: "pop" | "core" | null | undefined;
|
|
1227
|
+
wikidataId?: string | null | undefined;
|
|
1228
|
+
} | null;
|
|
1229
|
+
parent: {
|
|
1230
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1231
|
+
name: string;
|
|
1232
|
+
} | null;
|
|
1233
|
+
createdOn: string;
|
|
1234
|
+
updatedOn: string | null;
|
|
1235
|
+
isUnacceptedRoot: boolean;
|
|
1236
|
+
isUmbrella?: boolean | undefined;
|
|
1237
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
1238
|
+
}[];
|
|
1239
|
+
page: number;
|
|
1240
|
+
pageSize: number;
|
|
1241
|
+
totalPages: number;
|
|
1242
|
+
}>, Error>>;
|
|
1243
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
1244
|
+
promise: Promise<NoInfer<{
|
|
1245
|
+
overallTotal: number;
|
|
1246
|
+
next: string | null;
|
|
1247
|
+
previous: string | null;
|
|
1248
|
+
results: {
|
|
1249
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1250
|
+
name: string;
|
|
1251
|
+
root: {
|
|
1252
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1253
|
+
name: string;
|
|
1254
|
+
};
|
|
1255
|
+
tracksCount: number;
|
|
1256
|
+
viewsCount: number;
|
|
1257
|
+
criteria: {
|
|
1258
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1259
|
+
name: string;
|
|
1260
|
+
side?: "pop" | "core" | null | undefined;
|
|
1261
|
+
wikidataId?: string | null | undefined;
|
|
1262
|
+
} | null;
|
|
1263
|
+
parent: {
|
|
1264
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1265
|
+
name: string;
|
|
1266
|
+
} | null;
|
|
1267
|
+
createdOn: string;
|
|
1268
|
+
updatedOn: string | null;
|
|
1269
|
+
isUnacceptedRoot: boolean;
|
|
1270
|
+
isUmbrella?: boolean | undefined;
|
|
1271
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
1272
|
+
}[];
|
|
1273
|
+
page: number;
|
|
1274
|
+
pageSize: number;
|
|
1275
|
+
totalPages: number;
|
|
1276
|
+
}>>;
|
|
1277
|
+
} | {
|
|
1278
|
+
invalidateGenrePlaylists: () => void;
|
|
1279
|
+
data: undefined;
|
|
1280
|
+
error: Error;
|
|
1281
|
+
isError: true;
|
|
1282
|
+
isPending: false;
|
|
1283
|
+
isLoading: false;
|
|
1284
|
+
isLoadingError: true;
|
|
1285
|
+
isRefetchError: false;
|
|
1286
|
+
isSuccess: false;
|
|
1287
|
+
isPlaceholderData: false;
|
|
1288
|
+
status: "error";
|
|
1289
|
+
dataUpdatedAt: number;
|
|
1290
|
+
errorUpdatedAt: number;
|
|
1291
|
+
failureCount: number;
|
|
1292
|
+
failureReason: Error | null;
|
|
1293
|
+
errorUpdateCount: number;
|
|
1294
|
+
isFetched: boolean;
|
|
1295
|
+
isFetchedAfterMount: boolean;
|
|
1296
|
+
isFetching: boolean;
|
|
1297
|
+
isInitialLoading: boolean;
|
|
1298
|
+
isPaused: boolean;
|
|
1299
|
+
isRefetching: boolean;
|
|
1300
|
+
isStale: boolean;
|
|
1301
|
+
isEnabled: boolean;
|
|
1302
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<NoInfer<{
|
|
1303
|
+
overallTotal: number;
|
|
1304
|
+
next: string | null;
|
|
1305
|
+
previous: string | null;
|
|
1306
|
+
results: {
|
|
1307
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1308
|
+
name: string;
|
|
1309
|
+
root: {
|
|
1310
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1311
|
+
name: string;
|
|
1312
|
+
};
|
|
1313
|
+
tracksCount: number;
|
|
1314
|
+
viewsCount: number;
|
|
1315
|
+
criteria: {
|
|
1316
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1317
|
+
name: string;
|
|
1318
|
+
side?: "pop" | "core" | null | undefined;
|
|
1319
|
+
wikidataId?: string | null | undefined;
|
|
1320
|
+
} | null;
|
|
1321
|
+
parent: {
|
|
1322
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1323
|
+
name: string;
|
|
1324
|
+
} | null;
|
|
1325
|
+
createdOn: string;
|
|
1326
|
+
updatedOn: string | null;
|
|
1327
|
+
isUnacceptedRoot: boolean;
|
|
1328
|
+
isUmbrella?: boolean | undefined;
|
|
1329
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
1330
|
+
}[];
|
|
1331
|
+
page: number;
|
|
1332
|
+
pageSize: number;
|
|
1333
|
+
totalPages: number;
|
|
1334
|
+
}>, Error>>;
|
|
1335
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
1336
|
+
promise: Promise<NoInfer<{
|
|
1337
|
+
overallTotal: number;
|
|
1338
|
+
next: string | null;
|
|
1339
|
+
previous: string | null;
|
|
1340
|
+
results: {
|
|
1341
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1342
|
+
name: string;
|
|
1343
|
+
root: {
|
|
1344
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1345
|
+
name: string;
|
|
1346
|
+
};
|
|
1347
|
+
tracksCount: number;
|
|
1348
|
+
viewsCount: number;
|
|
1349
|
+
criteria: {
|
|
1350
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1351
|
+
name: string;
|
|
1352
|
+
side?: "pop" | "core" | null | undefined;
|
|
1353
|
+
wikidataId?: string | null | undefined;
|
|
1354
|
+
} | null;
|
|
1355
|
+
parent: {
|
|
1356
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1357
|
+
name: string;
|
|
1358
|
+
} | null;
|
|
1359
|
+
createdOn: string;
|
|
1360
|
+
updatedOn: string | null;
|
|
1361
|
+
isUnacceptedRoot: boolean;
|
|
1362
|
+
isUmbrella?: boolean | undefined;
|
|
1363
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
1364
|
+
}[];
|
|
1365
|
+
page: number;
|
|
1366
|
+
pageSize: number;
|
|
1367
|
+
totalPages: number;
|
|
1368
|
+
}>>;
|
|
1369
|
+
} | {
|
|
1370
|
+
invalidateGenrePlaylists: () => void;
|
|
1371
|
+
data: undefined;
|
|
1372
|
+
error: null;
|
|
1373
|
+
isError: false;
|
|
1374
|
+
isPending: true;
|
|
1375
|
+
isLoading: true;
|
|
1376
|
+
isLoadingError: false;
|
|
1377
|
+
isRefetchError: false;
|
|
1378
|
+
isSuccess: false;
|
|
1379
|
+
isPlaceholderData: false;
|
|
1380
|
+
status: "pending";
|
|
1381
|
+
dataUpdatedAt: number;
|
|
1382
|
+
errorUpdatedAt: number;
|
|
1383
|
+
failureCount: number;
|
|
1384
|
+
failureReason: Error | null;
|
|
1385
|
+
errorUpdateCount: number;
|
|
1386
|
+
isFetched: boolean;
|
|
1387
|
+
isFetchedAfterMount: boolean;
|
|
1388
|
+
isFetching: boolean;
|
|
1389
|
+
isInitialLoading: boolean;
|
|
1390
|
+
isPaused: boolean;
|
|
1391
|
+
isRefetching: boolean;
|
|
1392
|
+
isStale: boolean;
|
|
1393
|
+
isEnabled: boolean;
|
|
1394
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<NoInfer<{
|
|
1395
|
+
overallTotal: number;
|
|
1396
|
+
next: string | null;
|
|
1397
|
+
previous: string | null;
|
|
1398
|
+
results: {
|
|
1399
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1400
|
+
name: string;
|
|
1401
|
+
root: {
|
|
1402
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1403
|
+
name: string;
|
|
1404
|
+
};
|
|
1405
|
+
tracksCount: number;
|
|
1406
|
+
viewsCount: number;
|
|
1407
|
+
criteria: {
|
|
1408
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1409
|
+
name: string;
|
|
1410
|
+
side?: "pop" | "core" | null | undefined;
|
|
1411
|
+
wikidataId?: string | null | undefined;
|
|
1412
|
+
} | null;
|
|
1413
|
+
parent: {
|
|
1414
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1415
|
+
name: string;
|
|
1416
|
+
} | null;
|
|
1417
|
+
createdOn: string;
|
|
1418
|
+
updatedOn: string | null;
|
|
1419
|
+
isUnacceptedRoot: boolean;
|
|
1420
|
+
isUmbrella?: boolean | undefined;
|
|
1421
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
1422
|
+
}[];
|
|
1423
|
+
page: number;
|
|
1424
|
+
pageSize: number;
|
|
1425
|
+
totalPages: number;
|
|
1426
|
+
}>, Error>>;
|
|
1427
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
1428
|
+
promise: Promise<NoInfer<{
|
|
1429
|
+
overallTotal: number;
|
|
1430
|
+
next: string | null;
|
|
1431
|
+
previous: string | null;
|
|
1432
|
+
results: {
|
|
1433
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1434
|
+
name: string;
|
|
1435
|
+
root: {
|
|
1436
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1437
|
+
name: string;
|
|
1438
|
+
};
|
|
1439
|
+
tracksCount: number;
|
|
1440
|
+
viewsCount: number;
|
|
1441
|
+
criteria: {
|
|
1442
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1443
|
+
name: string;
|
|
1444
|
+
side?: "pop" | "core" | null | undefined;
|
|
1445
|
+
wikidataId?: string | null | undefined;
|
|
1446
|
+
} | null;
|
|
1447
|
+
parent: {
|
|
1448
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1449
|
+
name: string;
|
|
1450
|
+
} | null;
|
|
1451
|
+
createdOn: string;
|
|
1452
|
+
updatedOn: string | null;
|
|
1453
|
+
isUnacceptedRoot: boolean;
|
|
1454
|
+
isUmbrella?: boolean | undefined;
|
|
1455
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
1456
|
+
}[];
|
|
1457
|
+
page: number;
|
|
1458
|
+
pageSize: number;
|
|
1459
|
+
totalPages: number;
|
|
1460
|
+
}>>;
|
|
1461
|
+
} | {
|
|
1462
|
+
invalidateGenrePlaylists: () => void;
|
|
1463
|
+
data: undefined;
|
|
1464
|
+
error: null;
|
|
1465
|
+
isError: false;
|
|
1466
|
+
isPending: true;
|
|
1467
|
+
isLoadingError: false;
|
|
1468
|
+
isRefetchError: false;
|
|
1469
|
+
isSuccess: false;
|
|
1470
|
+
isPlaceholderData: false;
|
|
1471
|
+
status: "pending";
|
|
1472
|
+
dataUpdatedAt: number;
|
|
1473
|
+
errorUpdatedAt: number;
|
|
1474
|
+
failureCount: number;
|
|
1475
|
+
failureReason: Error | null;
|
|
1476
|
+
errorUpdateCount: number;
|
|
1477
|
+
isFetched: boolean;
|
|
1478
|
+
isFetchedAfterMount: boolean;
|
|
1479
|
+
isFetching: boolean;
|
|
1480
|
+
isLoading: boolean;
|
|
1481
|
+
isInitialLoading: boolean;
|
|
1482
|
+
isPaused: boolean;
|
|
1483
|
+
isRefetching: boolean;
|
|
1484
|
+
isStale: boolean;
|
|
1485
|
+
isEnabled: boolean;
|
|
1486
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<NoInfer<{
|
|
1487
|
+
overallTotal: number;
|
|
1488
|
+
next: string | null;
|
|
1489
|
+
previous: string | null;
|
|
1490
|
+
results: {
|
|
1491
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1492
|
+
name: string;
|
|
1493
|
+
root: {
|
|
1494
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1495
|
+
name: string;
|
|
1496
|
+
};
|
|
1497
|
+
tracksCount: number;
|
|
1498
|
+
viewsCount: number;
|
|
1499
|
+
criteria: {
|
|
1500
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1501
|
+
name: string;
|
|
1502
|
+
side?: "pop" | "core" | null | undefined;
|
|
1503
|
+
wikidataId?: string | null | undefined;
|
|
1504
|
+
} | null;
|
|
1505
|
+
parent: {
|
|
1506
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1507
|
+
name: string;
|
|
1508
|
+
} | null;
|
|
1509
|
+
createdOn: string;
|
|
1510
|
+
updatedOn: string | null;
|
|
1511
|
+
isUnacceptedRoot: boolean;
|
|
1512
|
+
isUmbrella?: boolean | undefined;
|
|
1513
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
1514
|
+
}[];
|
|
1515
|
+
page: number;
|
|
1516
|
+
pageSize: number;
|
|
1517
|
+
totalPages: number;
|
|
1518
|
+
}>, Error>>;
|
|
1519
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
1520
|
+
promise: Promise<NoInfer<{
|
|
1521
|
+
overallTotal: number;
|
|
1522
|
+
next: string | null;
|
|
1523
|
+
previous: string | null;
|
|
1524
|
+
results: {
|
|
1525
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1526
|
+
name: string;
|
|
1527
|
+
root: {
|
|
1528
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1529
|
+
name: string;
|
|
1530
|
+
};
|
|
1531
|
+
tracksCount: number;
|
|
1532
|
+
viewsCount: number;
|
|
1533
|
+
criteria: {
|
|
1534
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1535
|
+
name: string;
|
|
1536
|
+
side?: "pop" | "core" | null | undefined;
|
|
1537
|
+
wikidataId?: string | null | undefined;
|
|
1538
|
+
} | null;
|
|
1539
|
+
parent: {
|
|
1540
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1541
|
+
name: string;
|
|
1542
|
+
} | null;
|
|
1543
|
+
createdOn: string;
|
|
1544
|
+
updatedOn: string | null;
|
|
1545
|
+
isUnacceptedRoot: boolean;
|
|
1546
|
+
isUmbrella?: boolean | undefined;
|
|
1547
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
1548
|
+
}[];
|
|
1549
|
+
page: number;
|
|
1550
|
+
pageSize: number;
|
|
1551
|
+
totalPages: number;
|
|
1552
|
+
}>>;
|
|
1553
|
+
} | {
|
|
1554
|
+
invalidateGenrePlaylists: () => void;
|
|
1555
|
+
data: NoInfer<{
|
|
1556
|
+
overallTotal: number;
|
|
1557
|
+
next: string | null;
|
|
1558
|
+
previous: string | null;
|
|
1559
|
+
results: {
|
|
1560
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1561
|
+
name: string;
|
|
1562
|
+
root: {
|
|
1563
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1564
|
+
name: string;
|
|
1565
|
+
};
|
|
1566
|
+
tracksCount: number;
|
|
1567
|
+
viewsCount: number;
|
|
1568
|
+
criteria: {
|
|
1569
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1570
|
+
name: string;
|
|
1571
|
+
side?: "pop" | "core" | null | undefined;
|
|
1572
|
+
wikidataId?: string | null | undefined;
|
|
1573
|
+
} | null;
|
|
1574
|
+
parent: {
|
|
1575
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1576
|
+
name: string;
|
|
1577
|
+
} | null;
|
|
1578
|
+
createdOn: string;
|
|
1579
|
+
updatedOn: string | null;
|
|
1580
|
+
isUnacceptedRoot: boolean;
|
|
1581
|
+
isUmbrella?: boolean | undefined;
|
|
1582
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
1583
|
+
}[];
|
|
1584
|
+
page: number;
|
|
1585
|
+
pageSize: number;
|
|
1586
|
+
totalPages: number;
|
|
1587
|
+
}>;
|
|
1588
|
+
isError: false;
|
|
1589
|
+
error: null;
|
|
1590
|
+
isPending: false;
|
|
1591
|
+
isLoading: false;
|
|
1592
|
+
isLoadingError: false;
|
|
1593
|
+
isRefetchError: false;
|
|
1594
|
+
isSuccess: true;
|
|
1595
|
+
isPlaceholderData: true;
|
|
1596
|
+
status: "success";
|
|
1597
|
+
dataUpdatedAt: number;
|
|
1598
|
+
errorUpdatedAt: number;
|
|
1599
|
+
failureCount: number;
|
|
1600
|
+
failureReason: Error | null;
|
|
1601
|
+
errorUpdateCount: number;
|
|
1602
|
+
isFetched: boolean;
|
|
1603
|
+
isFetchedAfterMount: boolean;
|
|
1604
|
+
isFetching: boolean;
|
|
1605
|
+
isInitialLoading: boolean;
|
|
1606
|
+
isPaused: boolean;
|
|
1607
|
+
isRefetching: boolean;
|
|
1608
|
+
isStale: boolean;
|
|
1609
|
+
isEnabled: boolean;
|
|
1610
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<NoInfer<{
|
|
1611
|
+
overallTotal: number;
|
|
1612
|
+
next: string | null;
|
|
1613
|
+
previous: string | null;
|
|
1614
|
+
results: {
|
|
1615
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1616
|
+
name: string;
|
|
1617
|
+
root: {
|
|
1618
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1619
|
+
name: string;
|
|
1620
|
+
};
|
|
1621
|
+
tracksCount: number;
|
|
1622
|
+
viewsCount: number;
|
|
1623
|
+
criteria: {
|
|
1624
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1625
|
+
name: string;
|
|
1626
|
+
side?: "pop" | "core" | null | undefined;
|
|
1627
|
+
wikidataId?: string | null | undefined;
|
|
1628
|
+
} | null;
|
|
1629
|
+
parent: {
|
|
1630
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1631
|
+
name: string;
|
|
1632
|
+
} | null;
|
|
1633
|
+
createdOn: string;
|
|
1634
|
+
updatedOn: string | null;
|
|
1635
|
+
isUnacceptedRoot: boolean;
|
|
1636
|
+
isUmbrella?: boolean | undefined;
|
|
1637
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
1638
|
+
}[];
|
|
1639
|
+
page: number;
|
|
1640
|
+
pageSize: number;
|
|
1641
|
+
totalPages: number;
|
|
1642
|
+
}>, Error>>;
|
|
1643
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
1644
|
+
promise: Promise<NoInfer<{
|
|
1645
|
+
overallTotal: number;
|
|
1646
|
+
next: string | null;
|
|
1647
|
+
previous: string | null;
|
|
1648
|
+
results: {
|
|
1649
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1650
|
+
name: string;
|
|
1651
|
+
root: {
|
|
1652
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1653
|
+
name: string;
|
|
1654
|
+
};
|
|
1655
|
+
tracksCount: number;
|
|
1656
|
+
viewsCount: number;
|
|
1657
|
+
criteria: {
|
|
1658
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1659
|
+
name: string;
|
|
1660
|
+
side?: "pop" | "core" | null | undefined;
|
|
1661
|
+
wikidataId?: string | null | undefined;
|
|
1662
|
+
} | null;
|
|
1663
|
+
parent: {
|
|
1664
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1665
|
+
name: string;
|
|
1666
|
+
} | null;
|
|
1667
|
+
createdOn: string;
|
|
1668
|
+
updatedOn: string | null;
|
|
1669
|
+
isUnacceptedRoot: boolean;
|
|
1670
|
+
isUmbrella?: boolean | undefined;
|
|
1671
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
1672
|
+
}[];
|
|
1673
|
+
page: number;
|
|
1674
|
+
pageSize: number;
|
|
1675
|
+
totalPages: number;
|
|
1676
|
+
}>>;
|
|
1677
|
+
};
|
|
1678
|
+
declare const useListFullGenrePlaylists: (scope: Scope, getBackendBaseUrl: () => string) => {
|
|
1679
|
+
invalidateFullGenrePlaylists: () => void;
|
|
1680
|
+
data: NoInfer<{
|
|
1681
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1682
|
+
name: string;
|
|
1683
|
+
root: {
|
|
1684
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1685
|
+
name: string;
|
|
1686
|
+
};
|
|
1687
|
+
tracksCount: number;
|
|
1688
|
+
viewsCount: number;
|
|
1689
|
+
criteria: {
|
|
1690
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1691
|
+
name: string;
|
|
1692
|
+
side?: "pop" | "core" | null | undefined;
|
|
1693
|
+
wikidataId?: string | null | undefined;
|
|
1694
|
+
} | null;
|
|
1695
|
+
parent: {
|
|
1696
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1697
|
+
name: string;
|
|
1698
|
+
} | null;
|
|
1699
|
+
createdOn: string;
|
|
1700
|
+
updatedOn: string | null;
|
|
1701
|
+
isUnacceptedRoot: boolean;
|
|
1702
|
+
isUmbrella?: boolean | undefined;
|
|
1703
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
1704
|
+
}[]>;
|
|
1705
|
+
error: Error;
|
|
1706
|
+
isError: true;
|
|
1707
|
+
isPending: false;
|
|
1708
|
+
isLoading: false;
|
|
1709
|
+
isLoadingError: false;
|
|
1710
|
+
isRefetchError: true;
|
|
1711
|
+
isSuccess: false;
|
|
1712
|
+
isPlaceholderData: false;
|
|
1713
|
+
status: "error";
|
|
1714
|
+
dataUpdatedAt: number;
|
|
1715
|
+
errorUpdatedAt: number;
|
|
1716
|
+
failureCount: number;
|
|
1717
|
+
failureReason: Error | null;
|
|
1718
|
+
errorUpdateCount: number;
|
|
1719
|
+
isFetched: boolean;
|
|
1720
|
+
isFetchedAfterMount: boolean;
|
|
1721
|
+
isFetching: boolean;
|
|
1722
|
+
isInitialLoading: boolean;
|
|
1723
|
+
isPaused: boolean;
|
|
1724
|
+
isRefetching: boolean;
|
|
1725
|
+
isStale: boolean;
|
|
1726
|
+
isEnabled: boolean;
|
|
1727
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<NoInfer<{
|
|
1728
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1729
|
+
name: string;
|
|
1730
|
+
root: {
|
|
1731
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1732
|
+
name: string;
|
|
1733
|
+
};
|
|
1734
|
+
tracksCount: number;
|
|
1735
|
+
viewsCount: number;
|
|
1736
|
+
criteria: {
|
|
1737
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1738
|
+
name: string;
|
|
1739
|
+
side?: "pop" | "core" | null | undefined;
|
|
1740
|
+
wikidataId?: string | null | undefined;
|
|
1741
|
+
} | null;
|
|
1742
|
+
parent: {
|
|
1743
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1744
|
+
name: string;
|
|
1745
|
+
} | null;
|
|
1746
|
+
createdOn: string;
|
|
1747
|
+
updatedOn: string | null;
|
|
1748
|
+
isUnacceptedRoot: boolean;
|
|
1749
|
+
isUmbrella?: boolean | undefined;
|
|
1750
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
1751
|
+
}[]>, Error>>;
|
|
1752
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
1753
|
+
promise: Promise<NoInfer<{
|
|
1754
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1755
|
+
name: string;
|
|
1756
|
+
root: {
|
|
1757
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1758
|
+
name: string;
|
|
1759
|
+
};
|
|
1760
|
+
tracksCount: number;
|
|
1761
|
+
viewsCount: number;
|
|
1762
|
+
criteria: {
|
|
1763
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1764
|
+
name: string;
|
|
1765
|
+
side?: "pop" | "core" | null | undefined;
|
|
1766
|
+
wikidataId?: string | null | undefined;
|
|
1767
|
+
} | null;
|
|
1768
|
+
parent: {
|
|
1769
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1770
|
+
name: string;
|
|
1771
|
+
} | null;
|
|
1772
|
+
createdOn: string;
|
|
1773
|
+
updatedOn: string | null;
|
|
1774
|
+
isUnacceptedRoot: boolean;
|
|
1775
|
+
isUmbrella?: boolean | undefined;
|
|
1776
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
1777
|
+
}[]>>;
|
|
1778
|
+
} | {
|
|
1779
|
+
invalidateFullGenrePlaylists: () => void;
|
|
1780
|
+
data: NoInfer<{
|
|
1781
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1782
|
+
name: string;
|
|
1783
|
+
root: {
|
|
1784
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1785
|
+
name: string;
|
|
1786
|
+
};
|
|
1787
|
+
tracksCount: number;
|
|
1788
|
+
viewsCount: number;
|
|
1789
|
+
criteria: {
|
|
1790
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1791
|
+
name: string;
|
|
1792
|
+
side?: "pop" | "core" | null | undefined;
|
|
1793
|
+
wikidataId?: string | null | undefined;
|
|
1794
|
+
} | null;
|
|
1795
|
+
parent: {
|
|
1796
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1797
|
+
name: string;
|
|
1798
|
+
} | null;
|
|
1799
|
+
createdOn: string;
|
|
1800
|
+
updatedOn: string | null;
|
|
1801
|
+
isUnacceptedRoot: boolean;
|
|
1802
|
+
isUmbrella?: boolean | undefined;
|
|
1803
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
1804
|
+
}[]>;
|
|
1805
|
+
error: null;
|
|
1806
|
+
isError: false;
|
|
1807
|
+
isPending: false;
|
|
1808
|
+
isLoading: false;
|
|
1809
|
+
isLoadingError: false;
|
|
1810
|
+
isRefetchError: false;
|
|
1811
|
+
isSuccess: true;
|
|
1812
|
+
isPlaceholderData: false;
|
|
1813
|
+
status: "success";
|
|
1814
|
+
dataUpdatedAt: number;
|
|
1815
|
+
errorUpdatedAt: number;
|
|
1816
|
+
failureCount: number;
|
|
1817
|
+
failureReason: Error | null;
|
|
1818
|
+
errorUpdateCount: number;
|
|
1819
|
+
isFetched: boolean;
|
|
1820
|
+
isFetchedAfterMount: boolean;
|
|
1821
|
+
isFetching: boolean;
|
|
1822
|
+
isInitialLoading: boolean;
|
|
1823
|
+
isPaused: boolean;
|
|
1824
|
+
isRefetching: boolean;
|
|
1825
|
+
isStale: boolean;
|
|
1826
|
+
isEnabled: boolean;
|
|
1827
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<NoInfer<{
|
|
1828
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1829
|
+
name: string;
|
|
1830
|
+
root: {
|
|
1831
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1832
|
+
name: string;
|
|
1833
|
+
};
|
|
1834
|
+
tracksCount: number;
|
|
1835
|
+
viewsCount: number;
|
|
1836
|
+
criteria: {
|
|
1837
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1838
|
+
name: string;
|
|
1839
|
+
side?: "pop" | "core" | null | undefined;
|
|
1840
|
+
wikidataId?: string | null | undefined;
|
|
1841
|
+
} | null;
|
|
1842
|
+
parent: {
|
|
1843
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1844
|
+
name: string;
|
|
1845
|
+
} | null;
|
|
1846
|
+
createdOn: string;
|
|
1847
|
+
updatedOn: string | null;
|
|
1848
|
+
isUnacceptedRoot: boolean;
|
|
1849
|
+
isUmbrella?: boolean | undefined;
|
|
1850
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
1851
|
+
}[]>, Error>>;
|
|
1852
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
1853
|
+
promise: Promise<NoInfer<{
|
|
1854
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1855
|
+
name: string;
|
|
1856
|
+
root: {
|
|
1857
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1858
|
+
name: string;
|
|
1859
|
+
};
|
|
1860
|
+
tracksCount: number;
|
|
1861
|
+
viewsCount: number;
|
|
1862
|
+
criteria: {
|
|
1863
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1864
|
+
name: string;
|
|
1865
|
+
side?: "pop" | "core" | null | undefined;
|
|
1866
|
+
wikidataId?: string | null | undefined;
|
|
1867
|
+
} | null;
|
|
1868
|
+
parent: {
|
|
1869
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1870
|
+
name: string;
|
|
1871
|
+
} | null;
|
|
1872
|
+
createdOn: string;
|
|
1873
|
+
updatedOn: string | null;
|
|
1874
|
+
isUnacceptedRoot: boolean;
|
|
1875
|
+
isUmbrella?: boolean | undefined;
|
|
1876
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
1877
|
+
}[]>>;
|
|
1878
|
+
} | {
|
|
1879
|
+
invalidateFullGenrePlaylists: () => void;
|
|
1880
|
+
data: undefined;
|
|
1881
|
+
error: Error;
|
|
1882
|
+
isError: true;
|
|
1883
|
+
isPending: false;
|
|
1884
|
+
isLoading: false;
|
|
1885
|
+
isLoadingError: true;
|
|
1886
|
+
isRefetchError: false;
|
|
1887
|
+
isSuccess: false;
|
|
1888
|
+
isPlaceholderData: false;
|
|
1889
|
+
status: "error";
|
|
1890
|
+
dataUpdatedAt: number;
|
|
1891
|
+
errorUpdatedAt: number;
|
|
1892
|
+
failureCount: number;
|
|
1893
|
+
failureReason: Error | null;
|
|
1894
|
+
errorUpdateCount: number;
|
|
1895
|
+
isFetched: boolean;
|
|
1896
|
+
isFetchedAfterMount: boolean;
|
|
1897
|
+
isFetching: boolean;
|
|
1898
|
+
isInitialLoading: boolean;
|
|
1899
|
+
isPaused: boolean;
|
|
1900
|
+
isRefetching: boolean;
|
|
1901
|
+
isStale: boolean;
|
|
1902
|
+
isEnabled: boolean;
|
|
1903
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<NoInfer<{
|
|
1904
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1905
|
+
name: string;
|
|
1906
|
+
root: {
|
|
1907
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1908
|
+
name: string;
|
|
1909
|
+
};
|
|
1910
|
+
tracksCount: number;
|
|
1911
|
+
viewsCount: number;
|
|
1912
|
+
criteria: {
|
|
1913
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1914
|
+
name: string;
|
|
1915
|
+
side?: "pop" | "core" | null | undefined;
|
|
1916
|
+
wikidataId?: string | null | undefined;
|
|
1917
|
+
} | null;
|
|
1918
|
+
parent: {
|
|
1919
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1920
|
+
name: string;
|
|
1921
|
+
} | null;
|
|
1922
|
+
createdOn: string;
|
|
1923
|
+
updatedOn: string | null;
|
|
1924
|
+
isUnacceptedRoot: boolean;
|
|
1925
|
+
isUmbrella?: boolean | undefined;
|
|
1926
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
1927
|
+
}[]>, Error>>;
|
|
1928
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
1929
|
+
promise: Promise<NoInfer<{
|
|
1930
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1931
|
+
name: string;
|
|
1932
|
+
root: {
|
|
1933
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1934
|
+
name: string;
|
|
1935
|
+
};
|
|
1936
|
+
tracksCount: number;
|
|
1937
|
+
viewsCount: number;
|
|
1938
|
+
criteria: {
|
|
1939
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1940
|
+
name: string;
|
|
1941
|
+
side?: "pop" | "core" | null | undefined;
|
|
1942
|
+
wikidataId?: string | null | undefined;
|
|
1943
|
+
} | null;
|
|
1944
|
+
parent: {
|
|
1945
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1946
|
+
name: string;
|
|
1947
|
+
} | null;
|
|
1948
|
+
createdOn: string;
|
|
1949
|
+
updatedOn: string | null;
|
|
1950
|
+
isUnacceptedRoot: boolean;
|
|
1951
|
+
isUmbrella?: boolean | undefined;
|
|
1952
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
1953
|
+
}[]>>;
|
|
1954
|
+
} | {
|
|
1955
|
+
invalidateFullGenrePlaylists: () => void;
|
|
1956
|
+
data: undefined;
|
|
1957
|
+
error: null;
|
|
1958
|
+
isError: false;
|
|
1959
|
+
isPending: true;
|
|
1960
|
+
isLoading: true;
|
|
1961
|
+
isLoadingError: false;
|
|
1962
|
+
isRefetchError: false;
|
|
1963
|
+
isSuccess: false;
|
|
1964
|
+
isPlaceholderData: false;
|
|
1965
|
+
status: "pending";
|
|
1966
|
+
dataUpdatedAt: number;
|
|
1967
|
+
errorUpdatedAt: number;
|
|
1968
|
+
failureCount: number;
|
|
1969
|
+
failureReason: Error | null;
|
|
1970
|
+
errorUpdateCount: number;
|
|
1971
|
+
isFetched: boolean;
|
|
1972
|
+
isFetchedAfterMount: boolean;
|
|
1973
|
+
isFetching: boolean;
|
|
1974
|
+
isInitialLoading: boolean;
|
|
1975
|
+
isPaused: boolean;
|
|
1976
|
+
isRefetching: boolean;
|
|
1977
|
+
isStale: boolean;
|
|
1978
|
+
isEnabled: boolean;
|
|
1979
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<NoInfer<{
|
|
1980
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1981
|
+
name: string;
|
|
1982
|
+
root: {
|
|
1983
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1984
|
+
name: string;
|
|
1985
|
+
};
|
|
1986
|
+
tracksCount: number;
|
|
1987
|
+
viewsCount: number;
|
|
1988
|
+
criteria: {
|
|
1989
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
1990
|
+
name: string;
|
|
1991
|
+
side?: "pop" | "core" | null | undefined;
|
|
1992
|
+
wikidataId?: string | null | undefined;
|
|
1993
|
+
} | null;
|
|
1994
|
+
parent: {
|
|
1995
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
1996
|
+
name: string;
|
|
1997
|
+
} | null;
|
|
1998
|
+
createdOn: string;
|
|
1999
|
+
updatedOn: string | null;
|
|
2000
|
+
isUnacceptedRoot: boolean;
|
|
2001
|
+
isUmbrella?: boolean | undefined;
|
|
2002
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
2003
|
+
}[]>, Error>>;
|
|
2004
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
2005
|
+
promise: Promise<NoInfer<{
|
|
2006
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
2007
|
+
name: string;
|
|
2008
|
+
root: {
|
|
2009
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
2010
|
+
name: string;
|
|
2011
|
+
};
|
|
2012
|
+
tracksCount: number;
|
|
2013
|
+
viewsCount: number;
|
|
2014
|
+
criteria: {
|
|
2015
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
2016
|
+
name: string;
|
|
2017
|
+
side?: "pop" | "core" | null | undefined;
|
|
2018
|
+
wikidataId?: string | null | undefined;
|
|
2019
|
+
} | null;
|
|
2020
|
+
parent: {
|
|
2021
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
2022
|
+
name: string;
|
|
2023
|
+
} | null;
|
|
2024
|
+
createdOn: string;
|
|
2025
|
+
updatedOn: string | null;
|
|
2026
|
+
isUnacceptedRoot: boolean;
|
|
2027
|
+
isUmbrella?: boolean | undefined;
|
|
2028
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
2029
|
+
}[]>>;
|
|
2030
|
+
} | {
|
|
2031
|
+
invalidateFullGenrePlaylists: () => void;
|
|
2032
|
+
data: undefined;
|
|
2033
|
+
error: null;
|
|
2034
|
+
isError: false;
|
|
2035
|
+
isPending: true;
|
|
2036
|
+
isLoadingError: false;
|
|
2037
|
+
isRefetchError: false;
|
|
2038
|
+
isSuccess: false;
|
|
2039
|
+
isPlaceholderData: false;
|
|
2040
|
+
status: "pending";
|
|
2041
|
+
dataUpdatedAt: number;
|
|
2042
|
+
errorUpdatedAt: number;
|
|
2043
|
+
failureCount: number;
|
|
2044
|
+
failureReason: Error | null;
|
|
2045
|
+
errorUpdateCount: number;
|
|
2046
|
+
isFetched: boolean;
|
|
2047
|
+
isFetchedAfterMount: boolean;
|
|
2048
|
+
isFetching: boolean;
|
|
2049
|
+
isLoading: boolean;
|
|
2050
|
+
isInitialLoading: boolean;
|
|
2051
|
+
isPaused: boolean;
|
|
2052
|
+
isRefetching: boolean;
|
|
2053
|
+
isStale: boolean;
|
|
2054
|
+
isEnabled: boolean;
|
|
2055
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<NoInfer<{
|
|
2056
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
2057
|
+
name: string;
|
|
2058
|
+
root: {
|
|
2059
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
2060
|
+
name: string;
|
|
2061
|
+
};
|
|
2062
|
+
tracksCount: number;
|
|
2063
|
+
viewsCount: number;
|
|
2064
|
+
criteria: {
|
|
2065
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
2066
|
+
name: string;
|
|
2067
|
+
side?: "pop" | "core" | null | undefined;
|
|
2068
|
+
wikidataId?: string | null | undefined;
|
|
2069
|
+
} | null;
|
|
2070
|
+
parent: {
|
|
2071
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
2072
|
+
name: string;
|
|
2073
|
+
} | null;
|
|
2074
|
+
createdOn: string;
|
|
2075
|
+
updatedOn: string | null;
|
|
2076
|
+
isUnacceptedRoot: boolean;
|
|
2077
|
+
isUmbrella?: boolean | undefined;
|
|
2078
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
2079
|
+
}[]>, Error>>;
|
|
2080
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
2081
|
+
promise: Promise<NoInfer<{
|
|
2082
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
2083
|
+
name: string;
|
|
2084
|
+
root: {
|
|
2085
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
2086
|
+
name: string;
|
|
2087
|
+
};
|
|
2088
|
+
tracksCount: number;
|
|
2089
|
+
viewsCount: number;
|
|
2090
|
+
criteria: {
|
|
2091
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
2092
|
+
name: string;
|
|
2093
|
+
side?: "pop" | "core" | null | undefined;
|
|
2094
|
+
wikidataId?: string | null | undefined;
|
|
2095
|
+
} | null;
|
|
2096
|
+
parent: {
|
|
2097
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
2098
|
+
name: string;
|
|
2099
|
+
} | null;
|
|
2100
|
+
createdOn: string;
|
|
2101
|
+
updatedOn: string | null;
|
|
2102
|
+
isUnacceptedRoot: boolean;
|
|
2103
|
+
isUmbrella?: boolean | undefined;
|
|
2104
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
2105
|
+
}[]>>;
|
|
2106
|
+
} | {
|
|
2107
|
+
invalidateFullGenrePlaylists: () => void;
|
|
2108
|
+
data: NoInfer<{
|
|
2109
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
2110
|
+
name: string;
|
|
2111
|
+
root: {
|
|
2112
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
2113
|
+
name: string;
|
|
2114
|
+
};
|
|
2115
|
+
tracksCount: number;
|
|
2116
|
+
viewsCount: number;
|
|
2117
|
+
criteria: {
|
|
2118
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
2119
|
+
name: string;
|
|
2120
|
+
side?: "pop" | "core" | null | undefined;
|
|
2121
|
+
wikidataId?: string | null | undefined;
|
|
2122
|
+
} | null;
|
|
2123
|
+
parent: {
|
|
2124
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
2125
|
+
name: string;
|
|
2126
|
+
} | null;
|
|
2127
|
+
createdOn: string;
|
|
2128
|
+
updatedOn: string | null;
|
|
2129
|
+
isUnacceptedRoot: boolean;
|
|
2130
|
+
isUmbrella?: boolean | undefined;
|
|
2131
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
2132
|
+
}[]>;
|
|
2133
|
+
isError: false;
|
|
2134
|
+
error: null;
|
|
2135
|
+
isPending: false;
|
|
2136
|
+
isLoading: false;
|
|
2137
|
+
isLoadingError: false;
|
|
2138
|
+
isRefetchError: false;
|
|
2139
|
+
isSuccess: true;
|
|
2140
|
+
isPlaceholderData: true;
|
|
2141
|
+
status: "success";
|
|
2142
|
+
dataUpdatedAt: number;
|
|
2143
|
+
errorUpdatedAt: number;
|
|
2144
|
+
failureCount: number;
|
|
2145
|
+
failureReason: Error | null;
|
|
2146
|
+
errorUpdateCount: number;
|
|
2147
|
+
isFetched: boolean;
|
|
2148
|
+
isFetchedAfterMount: boolean;
|
|
2149
|
+
isFetching: boolean;
|
|
2150
|
+
isInitialLoading: boolean;
|
|
2151
|
+
isPaused: boolean;
|
|
2152
|
+
isRefetching: boolean;
|
|
2153
|
+
isStale: boolean;
|
|
2154
|
+
isEnabled: boolean;
|
|
2155
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<NoInfer<{
|
|
2156
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
2157
|
+
name: string;
|
|
2158
|
+
root: {
|
|
2159
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
2160
|
+
name: string;
|
|
2161
|
+
};
|
|
2162
|
+
tracksCount: number;
|
|
2163
|
+
viewsCount: number;
|
|
2164
|
+
criteria: {
|
|
2165
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
2166
|
+
name: string;
|
|
2167
|
+
side?: "pop" | "core" | null | undefined;
|
|
2168
|
+
wikidataId?: string | null | undefined;
|
|
2169
|
+
} | null;
|
|
2170
|
+
parent: {
|
|
2171
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
2172
|
+
name: string;
|
|
2173
|
+
} | null;
|
|
2174
|
+
createdOn: string;
|
|
2175
|
+
updatedOn: string | null;
|
|
2176
|
+
isUnacceptedRoot: boolean;
|
|
2177
|
+
isUmbrella?: boolean | undefined;
|
|
2178
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
2179
|
+
}[]>, Error>>;
|
|
2180
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
2181
|
+
promise: Promise<NoInfer<{
|
|
2182
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
2183
|
+
name: string;
|
|
2184
|
+
root: {
|
|
2185
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
2186
|
+
name: string;
|
|
2187
|
+
};
|
|
2188
|
+
tracksCount: number;
|
|
2189
|
+
viewsCount: number;
|
|
2190
|
+
criteria: {
|
|
2191
|
+
uuid: string & z.core.$brand<"GenreUuid">;
|
|
2192
|
+
name: string;
|
|
2193
|
+
side?: "pop" | "core" | null | undefined;
|
|
2194
|
+
wikidataId?: string | null | undefined;
|
|
2195
|
+
} | null;
|
|
2196
|
+
parent: {
|
|
2197
|
+
uuid: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
2198
|
+
name: string;
|
|
2199
|
+
} | null;
|
|
2200
|
+
createdOn: string;
|
|
2201
|
+
updatedOn: string | null;
|
|
2202
|
+
isUnacceptedRoot: boolean;
|
|
2203
|
+
isUmbrella?: boolean | undefined;
|
|
2204
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
2205
|
+
}[]>>;
|
|
2206
|
+
};
|
|
2207
|
+
declare const useFetchGenrePlaylist: <T>(uuid: GenrePlaylistUuid, getBackendBaseUrl: () => string, criteriaPlaylistDetailedSchema: z.ZodType<T, unknown>) => _tanstack_react_query.UseQueryResult<NoInfer<T>, Error>;
|
|
2208
|
+
declare const useInvalidateAllGenrePlaylistQueries: () => () => Promise<[void, void, void, void]>;
|
|
2209
|
+
|
|
2210
|
+
declare const ARTIST_LINK_KINDS: readonly ["official", "wikipedia", "wikidata", "spotify", "youtube", "bandcamp", "soundcloud", "discogs", "social"];
|
|
2211
|
+
declare const ArtistImageSchema: z.ZodObject<{
|
|
2212
|
+
url: z.ZodURL;
|
|
2213
|
+
pageUrl: z.ZodURL;
|
|
2214
|
+
author: z.ZodNullable<z.ZodString>;
|
|
2215
|
+
license: z.ZodString;
|
|
2216
|
+
licenseUrl: z.ZodNullable<z.ZodURL>;
|
|
2217
|
+
}, z.core.$strip>;
|
|
2218
|
+
declare const ArtistDetailedSchema: z.ZodObject<{
|
|
2219
|
+
uuid: z.ZodString;
|
|
2220
|
+
name: z.ZodString;
|
|
2221
|
+
musicbrainzArtistId: z.ZodNullable<z.ZodString>;
|
|
2222
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
2223
|
+
person: "person";
|
|
2224
|
+
group: "group";
|
|
2225
|
+
orchestra: "orchestra";
|
|
2226
|
+
choir: "choir";
|
|
2227
|
+
character: "character";
|
|
2228
|
+
other: "other";
|
|
2229
|
+
}>>;
|
|
2230
|
+
country: z.ZodNullable<z.ZodString>;
|
|
2231
|
+
beginYear: z.ZodNullable<z.ZodNumber>;
|
|
2232
|
+
endYear: z.ZodNullable<z.ZodNumber>;
|
|
2233
|
+
ended: z.ZodBoolean;
|
|
2234
|
+
links: z.ZodArray<z.ZodObject<{
|
|
2235
|
+
kind: z.ZodEnum<{
|
|
2236
|
+
youtube: "youtube";
|
|
2237
|
+
official: "official";
|
|
2238
|
+
wikipedia: "wikipedia";
|
|
2239
|
+
wikidata: "wikidata";
|
|
2240
|
+
spotify: "spotify";
|
|
2241
|
+
bandcamp: "bandcamp";
|
|
2242
|
+
soundcloud: "soundcloud";
|
|
2243
|
+
discogs: "discogs";
|
|
2244
|
+
social: "social";
|
|
2245
|
+
}>;
|
|
2246
|
+
url: z.ZodURL;
|
|
2247
|
+
}, z.core.$strip>>;
|
|
2248
|
+
members: z.ZodArray<z.ZodObject<{
|
|
2249
|
+
artist: z.ZodObject<{
|
|
2250
|
+
uuid: z.ZodString;
|
|
2251
|
+
name: z.ZodString;
|
|
2252
|
+
isSpecialPurpose: z.ZodOptional<z.ZodBoolean>;
|
|
2253
|
+
}, z.core.$strip>;
|
|
2254
|
+
beginYear: z.ZodNullable<z.ZodNumber>;
|
|
2255
|
+
endYear: z.ZodNullable<z.ZodNumber>;
|
|
2256
|
+
ended: z.ZodBoolean;
|
|
2257
|
+
roles: z.ZodArray<z.ZodString>;
|
|
2258
|
+
}, z.core.$strip>>;
|
|
2259
|
+
memberOf: z.ZodArray<z.ZodObject<{
|
|
2260
|
+
artist: z.ZodObject<{
|
|
2261
|
+
uuid: z.ZodString;
|
|
2262
|
+
name: z.ZodString;
|
|
2263
|
+
isSpecialPurpose: z.ZodOptional<z.ZodBoolean>;
|
|
2264
|
+
}, z.core.$strip>;
|
|
2265
|
+
beginYear: z.ZodNullable<z.ZodNumber>;
|
|
2266
|
+
endYear: z.ZodNullable<z.ZodNumber>;
|
|
2267
|
+
ended: z.ZodBoolean;
|
|
2268
|
+
roles: z.ZodArray<z.ZodString>;
|
|
2269
|
+
}, z.core.$strip>>;
|
|
2270
|
+
albums: z.ZodArray<z.ZodObject<{
|
|
2271
|
+
uuid: z.ZodString;
|
|
2272
|
+
name: z.ZodString;
|
|
2273
|
+
year: z.ZodNullable<z.ZodString>;
|
|
2274
|
+
primaryType: z.ZodNullable<z.ZodString>;
|
|
2275
|
+
secondaryTypes: z.ZodArray<z.ZodString>;
|
|
2276
|
+
}, z.core.$strip>>;
|
|
2277
|
+
tracksCount: z.ZodNumber;
|
|
2278
|
+
image: z.ZodNullable<z.ZodObject<{
|
|
2279
|
+
url: z.ZodURL;
|
|
2280
|
+
pageUrl: z.ZodURL;
|
|
2281
|
+
author: z.ZodNullable<z.ZodString>;
|
|
2282
|
+
license: z.ZodString;
|
|
2283
|
+
licenseUrl: z.ZodNullable<z.ZodURL>;
|
|
2284
|
+
}, z.core.$strip>>;
|
|
2285
|
+
}, z.core.$strip>;
|
|
2286
|
+
type ArtistImage = z.infer<typeof ArtistImageSchema>;
|
|
2287
|
+
type ArtistDetailed = z.infer<typeof ArtistDetailedSchema>;
|
|
2288
|
+
type ArtistMembership = ArtistDetailed["members"][number];
|
|
2289
|
+
type ArtistLink = ArtistDetailed["links"][number];
|
|
2290
|
+
type ArtistAlbum = ArtistDetailed["albums"][number];
|
|
2291
|
+
|
|
2292
|
+
type UseArtistResult = {
|
|
2293
|
+
status: "idle";
|
|
2294
|
+
} | {
|
|
2295
|
+
status: "not-found";
|
|
2296
|
+
} | {
|
|
2297
|
+
status: "error";
|
|
2298
|
+
} | {
|
|
2299
|
+
status: "loading";
|
|
2300
|
+
} | {
|
|
2301
|
+
status: "success";
|
|
2302
|
+
artist: ArtistDetailed;
|
|
2303
|
+
};
|
|
2304
|
+
declare function useArtist(uuid: string | null, getBackendBaseUrl: () => string): UseArtistResult;
|
|
2305
|
+
|
|
2306
|
+
declare const ArtistSearchResultSchema: z.ZodObject<{
|
|
2307
|
+
uuid: z.ZodString;
|
|
2308
|
+
name: z.ZodString;
|
|
2309
|
+
disambiguation: z.ZodNullable<z.ZodString>;
|
|
2310
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
2311
|
+
person: "person";
|
|
2312
|
+
group: "group";
|
|
2313
|
+
orchestra: "orchestra";
|
|
2314
|
+
choir: "choir";
|
|
2315
|
+
character: "character";
|
|
2316
|
+
other: "other";
|
|
2317
|
+
}>>;
|
|
2318
|
+
country: z.ZodNullable<z.ZodString>;
|
|
2319
|
+
beginYear: z.ZodNullable<z.ZodNumber>;
|
|
2320
|
+
endYear: z.ZodNullable<z.ZodNumber>;
|
|
2321
|
+
matchedAlias: z.ZodNullable<z.ZodString>;
|
|
2322
|
+
recordingCount: z.ZodNumber;
|
|
2323
|
+
}, z.core.$strip>;
|
|
2324
|
+
declare const ArtistSearchResultsSchema: z.ZodArray<z.ZodObject<{
|
|
2325
|
+
uuid: z.ZodString;
|
|
2326
|
+
name: z.ZodString;
|
|
2327
|
+
disambiguation: z.ZodNullable<z.ZodString>;
|
|
2328
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
2329
|
+
person: "person";
|
|
2330
|
+
group: "group";
|
|
2331
|
+
orchestra: "orchestra";
|
|
2332
|
+
choir: "choir";
|
|
2333
|
+
character: "character";
|
|
2334
|
+
other: "other";
|
|
2335
|
+
}>>;
|
|
2336
|
+
country: z.ZodNullable<z.ZodString>;
|
|
2337
|
+
beginYear: z.ZodNullable<z.ZodNumber>;
|
|
2338
|
+
endYear: z.ZodNullable<z.ZodNumber>;
|
|
2339
|
+
matchedAlias: z.ZodNullable<z.ZodString>;
|
|
2340
|
+
recordingCount: z.ZodNumber;
|
|
2341
|
+
}, z.core.$strip>>;
|
|
2342
|
+
type ArtistSearchResult = z.infer<typeof ArtistSearchResultSchema>;
|
|
2343
|
+
|
|
2344
|
+
interface UseArtistSearchResult {
|
|
2345
|
+
artists: ArtistSearchResult[];
|
|
2346
|
+
isError: boolean;
|
|
2347
|
+
/** True once the debounced query has caught up with the typed one and its fetch has finished. */
|
|
2348
|
+
settled: boolean;
|
|
2349
|
+
/** True from the first typed character past the minimum until results arrive or the search fails; covers the debounce. */
|
|
2350
|
+
pending: boolean;
|
|
2351
|
+
}
|
|
2352
|
+
declare function useArtistSearch(getBackendBaseUrl: () => string, text: string): UseArtistSearchResult;
|
|
2353
|
+
|
|
2354
|
+
/** The artist's footprint on the canonical tree (sparse: non-zero genre playlists only). Idle while `artistUuid` is null. */
|
|
2355
|
+
declare function useArtistGenreCounts(artistUuid: string | null, getBackendBaseUrl: () => string): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
2356
|
+
genrePlaylist: string & z.core.$brand<"GenrePlaylistUuid">;
|
|
2357
|
+
songsCount: number;
|
|
2358
|
+
tracksCount: number;
|
|
2359
|
+
}[]>, Error>;
|
|
2360
|
+
|
|
2361
|
+
declare const CriteriaPlaylistSimpleSchema: z.ZodObject<{
|
|
2362
|
+
uuid: z.core.$ZodBranded<z.ZodString, "GenrePlaylistUuid", "out">;
|
|
2363
|
+
name: z.ZodString;
|
|
2364
|
+
root: z.ZodObject<{
|
|
2365
|
+
uuid: z.core.$ZodBranded<z.ZodString, "GenrePlaylistUuid", "out">;
|
|
2366
|
+
name: z.ZodString;
|
|
2367
|
+
}, z.core.$strip>;
|
|
2368
|
+
tracksCount: z.ZodNumber;
|
|
2369
|
+
viewsCount: z.ZodNumber;
|
|
2370
|
+
criteria: z.ZodNullable<z.ZodObject<{
|
|
2371
|
+
uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
|
|
2372
|
+
name: z.ZodString;
|
|
2373
|
+
side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2374
|
+
pop: "pop";
|
|
2375
|
+
core: "core";
|
|
2376
|
+
}>>>;
|
|
2377
|
+
wikidataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2378
|
+
}, z.core.$strip>>;
|
|
2379
|
+
parent: z.ZodNullable<z.ZodObject<{
|
|
2380
|
+
uuid: z.core.$ZodBranded<z.ZodString, "GenrePlaylistUuid", "out">;
|
|
2381
|
+
name: z.ZodString;
|
|
2382
|
+
}, z.core.$strip>>;
|
|
2383
|
+
createdOn: z.ZodString;
|
|
2384
|
+
updatedOn: z.ZodNullable<z.ZodString>;
|
|
2385
|
+
isUnacceptedRoot: z.ZodBoolean;
|
|
2386
|
+
isUmbrella: z.ZodOptional<z.ZodBoolean>;
|
|
2387
|
+
scene: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2388
|
+
commercial: "commercial";
|
|
2389
|
+
underground: "underground";
|
|
2390
|
+
}>>>;
|
|
2391
|
+
}, z.core.$strip>;
|
|
2392
|
+
type CriteriaPlaylistSimple = z.infer<typeof CriteriaPlaylistSimpleSchema>;
|
|
2393
|
+
|
|
2394
|
+
interface UseGenreSearchOptions<T extends CriteriaPlaylistSimple = CriteriaPlaylistSimple> {
|
|
2395
|
+
genrePlaylists: T[];
|
|
2396
|
+
onSelect: (genrePlaylist: T) => void;
|
|
2397
|
+
/** Name of the currently selected genre; fills the query whenever it changes. */
|
|
2398
|
+
selectedName?: string | null;
|
|
2399
|
+
/** Called by `clear`, after it empties the query. */
|
|
2400
|
+
onClear?: () => void;
|
|
2401
|
+
}
|
|
2402
|
+
interface UseGenreSearchResult<T extends CriteriaPlaylistSimple = CriteriaPlaylistSimple> {
|
|
2403
|
+
query: string;
|
|
2404
|
+
setQuery: (query: string) => void;
|
|
2405
|
+
results: T[];
|
|
2406
|
+
/** Whether there is anything to clear (a typed query or a selected genre). */
|
|
2407
|
+
canClear: boolean;
|
|
2408
|
+
clear: () => void;
|
|
2409
|
+
select: (genrePlaylist: T) => void;
|
|
2410
|
+
}
|
|
2411
|
+
declare function useGenreSearch<T extends CriteriaPlaylistSimple = CriteriaPlaylistSimple>({ genrePlaylists, onSelect, selectedName, onClear, }: UseGenreSearchOptions<T>): UseGenreSearchResult<T>;
|
|
2412
|
+
|
|
2413
|
+
type GenreViewMode = "stacked" | "wheel" | "pop-core" | "outline";
|
|
2414
|
+
interface UseGenreTreeViewStateOptions<O extends CriteriaOverview = CriteriaOverview> {
|
|
2415
|
+
scope: Scope;
|
|
2416
|
+
getBackendBaseUrl: () => string;
|
|
2417
|
+
/** Controlled view mode; when provided the hook never changes it. */
|
|
2418
|
+
viewMode?: GenreViewMode;
|
|
2419
|
+
/** Narrows the tree to this artist's footprint (see `useVisibleGenrePlaylists`). */
|
|
2420
|
+
artistUuid?: string | null;
|
|
2421
|
+
/** Controlled selection (a genre playlist uuid, i.e. the tree node id). */
|
|
2422
|
+
selectedNodeId?: string | null;
|
|
2423
|
+
/** Called on every user-driven selection change (node click, search pick, search clear). */
|
|
2424
|
+
onSelectedNodeIdChange?: (nodeId: string | null) => void;
|
|
2425
|
+
criteriaOverviewSchema?: z.ZodType<O, unknown>;
|
|
2426
|
+
}
|
|
2427
|
+
interface UseGenreTreeViewStateResult {
|
|
2428
|
+
isLoading: boolean;
|
|
2429
|
+
/** True while the visible tree is being refreshed or re-pruned; the previous tree stays in `genrePlaylists`. */
|
|
2430
|
+
isFetching: boolean;
|
|
2431
|
+
genrePlaylists: CriteriaPlaylistSimple[];
|
|
2432
|
+
genrePlaylistByNodeId: Map<string, CriteriaPlaylistSimple>;
|
|
2433
|
+
/** Playlists the current view mode may show: unaccepted roots and, outside stacked/outline, criteria-less playlists are hidden. */
|
|
2434
|
+
visibleGenrePlaylists: CriteriaPlaylistSimple[];
|
|
2435
|
+
groupedGenrePlaylistsByRoot: Record<string, CriteriaPlaylistSimple[]>;
|
|
2436
|
+
selectedNodeId: string | null;
|
|
2437
|
+
selectedGenrePlaylist: CriteriaPlaylistSimple | undefined;
|
|
2438
|
+
selectNode: (node: {
|
|
2439
|
+
id: string;
|
|
2440
|
+
} | null) => void;
|
|
2441
|
+
selectGenrePlaylist: (genrePlaylist: CriteriaPlaylistSimple) => void;
|
|
2442
|
+
clearSelection: () => void;
|
|
2443
|
+
/** The effective view mode: falls back to "wheel" when a pop-core-based mode has no "Mainstream Pop" root. */
|
|
2444
|
+
viewMode: GenreViewMode;
|
|
2445
|
+
isViewModeControlled: boolean;
|
|
2446
|
+
setViewMode: (mode: GenreViewMode) => void;
|
|
2447
|
+
canShowPopCore: boolean;
|
|
2448
|
+
allowWheelRotation: boolean;
|
|
2449
|
+
toggleWheelRotation: () => void;
|
|
2450
|
+
/** Moves the genre under a new parent. */
|
|
2451
|
+
/** Prefetches the hovered genre's overview once the pointer has rested briefly. */
|
|
2452
|
+
onNodeHover: (node: {
|
|
2453
|
+
id: string;
|
|
2454
|
+
}) => void;
|
|
2455
|
+
}
|
|
2456
|
+
declare function useGenreTreeViewState<O extends CriteriaOverview = CriteriaOverview>({ scope, getBackendBaseUrl, viewMode: controlledViewMode, artistUuid, selectedNodeId: controlledSelectedNodeId, onSelectedNodeIdChange, criteriaOverviewSchema, }: UseGenreTreeViewStateOptions<O>): UseGenreTreeViewStateResult;
|
|
2457
|
+
|
|
2458
|
+
interface UseVisibleGenrePlaylistsOptions {
|
|
2459
|
+
scope: Scope;
|
|
2460
|
+
getBackendBaseUrl: () => string;
|
|
2461
|
+
/** When set, the tree is pruned to this artist's footprint and carries the artist's counts. */
|
|
2462
|
+
artistUuid?: string | null;
|
|
2463
|
+
}
|
|
2464
|
+
/**
|
|
2465
|
+
* The tree the user can navigate: the whole canonical tree, or the artist's footprint when
|
|
2466
|
+
* `artistUuid` is set. Hosts validate URL state (selected genre, focus) against this list. While the
|
|
2467
|
+
* artist's counts load the current tree stays (full, or the previous artist's footprint) and
|
|
2468
|
+
* `isFetching` is true; `isLoading` is true only until the first tree arrives. If the counts fail
|
|
2469
|
+
* (unknown artist, backend error) the whole tree is served, the artist panel being where that failure
|
|
2470
|
+
* is shown.
|
|
2471
|
+
*/
|
|
2472
|
+
declare function useVisibleGenrePlaylists({ scope, getBackendBaseUrl, artistUuid }: UseVisibleGenrePlaylistsOptions): {
|
|
2473
|
+
isLoading: boolean;
|
|
2474
|
+
isFetching: boolean;
|
|
2475
|
+
genrePlaylists: {
|
|
2476
|
+
uuid: string & zod.$brand<"GenrePlaylistUuid">;
|
|
2477
|
+
name: string;
|
|
2478
|
+
root: {
|
|
2479
|
+
uuid: string & zod.$brand<"GenrePlaylistUuid">;
|
|
2480
|
+
name: string;
|
|
2481
|
+
};
|
|
2482
|
+
tracksCount: number;
|
|
2483
|
+
viewsCount: number;
|
|
2484
|
+
criteria: {
|
|
2485
|
+
uuid: string & zod.$brand<"GenreUuid">;
|
|
2486
|
+
name: string;
|
|
2487
|
+
side?: "pop" | "core" | null | undefined;
|
|
2488
|
+
wikidataId?: string | null | undefined;
|
|
2489
|
+
} | null;
|
|
2490
|
+
parent: {
|
|
2491
|
+
uuid: string & zod.$brand<"GenrePlaylistUuid">;
|
|
2492
|
+
name: string;
|
|
2493
|
+
} | null;
|
|
2494
|
+
createdOn: string;
|
|
2495
|
+
updatedOn: string | null;
|
|
2496
|
+
isUnacceptedRoot: boolean;
|
|
2497
|
+
isUmbrella?: boolean | undefined;
|
|
2498
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
2499
|
+
}[];
|
|
2500
|
+
};
|
|
2501
|
+
|
|
2502
|
+
declare const TrackBaseSchema: z.ZodObject<{
|
|
2503
|
+
uuid: z.ZodString;
|
|
2504
|
+
title: z.ZodString;
|
|
2505
|
+
artists: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2506
|
+
uuid: z.ZodString;
|
|
2507
|
+
name: z.ZodString;
|
|
2508
|
+
isSpecialPurpose: z.ZodOptional<z.ZodBoolean>;
|
|
2509
|
+
}, z.core.$strip>>>>;
|
|
2510
|
+
album: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2511
|
+
uuid: z.ZodString;
|
|
2512
|
+
name: z.ZodString;
|
|
2513
|
+
albumArtists: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2514
|
+
uuid: z.ZodString;
|
|
2515
|
+
name: z.ZodString;
|
|
2516
|
+
isSpecialPurpose: z.ZodOptional<z.ZodBoolean>;
|
|
2517
|
+
}, z.core.$strip>>>>;
|
|
2518
|
+
}, z.core.$strip>>>;
|
|
2519
|
+
trackNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2520
|
+
genre: z.ZodObject<{
|
|
2521
|
+
uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
|
|
2522
|
+
name: z.ZodString;
|
|
2523
|
+
side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2524
|
+
pop: "pop";
|
|
2525
|
+
core: "core";
|
|
2526
|
+
}>>>;
|
|
2527
|
+
wikidataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2528
|
+
}, z.core.$strip>;
|
|
2529
|
+
rating: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2530
|
+
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2531
|
+
playCount: z.ZodNumber;
|
|
2532
|
+
createdOn: z.ZodString;
|
|
2533
|
+
updatedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2534
|
+
}, z.core.$strip>;
|
|
2535
|
+
type TrackBase = z.infer<typeof TrackBaseSchema>;
|
|
2536
|
+
|
|
2537
|
+
declare const CriteriaPlaylistMinimumSchema: z.ZodObject<{
|
|
2538
|
+
uuid: z.core.$ZodBranded<z.ZodString, "GenrePlaylistUuid", "out">;
|
|
2539
|
+
name: z.ZodString;
|
|
2540
|
+
}, z.core.$strip>;
|
|
2541
|
+
type CriteriaPlaylistMinimum = z.infer<typeof CriteriaPlaylistMinimumSchema>;
|
|
2542
|
+
|
|
2543
|
+
declare enum TrackListOriginType {
|
|
2544
|
+
TRACK = "TRACK",
|
|
2545
|
+
GENRE_PLAYLIST = "GENRE_PLAYLIST",
|
|
2546
|
+
ARTIST = "ARTIST"
|
|
2547
|
+
}
|
|
2548
|
+
|
|
2549
|
+
/**
|
|
2550
|
+
* Trimmed from grow-the-music-tree-frontend's original `TrackListOrigin.ts`: dropped
|
|
2551
|
+
* `TrackListOriginFromPlaylist` (Spotify-library playlist origin, backed by a `PlaylistDetailed`
|
|
2552
|
+
* schema that's part of grow's separate Spotify-library feature, out of scope for this package).
|
|
2553
|
+
* Kept origins: a single track, a genre playlist, and an artist (their playable songs,
|
|
2554
|
+
* paged through `playNewTrackListFromArtist`).
|
|
2555
|
+
*/
|
|
2556
|
+
|
|
2557
|
+
declare class TrackListOrigin {
|
|
2558
|
+
type: TrackListOriginType;
|
|
2559
|
+
label: string;
|
|
2560
|
+
uuid: string;
|
|
2561
|
+
scope: Scope;
|
|
2562
|
+
constructor(type: TrackListOriginType, label: string, uuid: string, scope: Scope);
|
|
2563
|
+
}
|
|
2564
|
+
declare class TrackListOriginFromTrack<T extends TrackBase = TrackBase> extends TrackListOrigin {
|
|
2565
|
+
track: T;
|
|
2566
|
+
constructor(track: T, scope: Scope);
|
|
2567
|
+
}
|
|
2568
|
+
declare class TrackListOriginFromCriteriaPlaylist extends TrackListOrigin {
|
|
2569
|
+
criteriaPlaylist: CriteriaPlaylistMinimum;
|
|
2570
|
+
from?: string | undefined;
|
|
2571
|
+
/** `from`: the track the list starts at (server-side `?from=`), kept so later pages use it too. */
|
|
2572
|
+
constructor(criteriaPlaylist: CriteriaPlaylistMinimum, scope: Scope, from?: string | undefined);
|
|
2573
|
+
}
|
|
2574
|
+
type ArtistSongsOrdering = "title" | "-title" | "albumYear" | "-albumYear";
|
|
2575
|
+
type ArtistTrackListOriginInput = {
|
|
2576
|
+
uuid: string;
|
|
2577
|
+
name: string;
|
|
2578
|
+
};
|
|
2579
|
+
declare class TrackListOriginFromArtist extends TrackListOrigin {
|
|
2580
|
+
artist: ArtistTrackListOriginInput;
|
|
2581
|
+
ordering: ArtistSongsOrdering;
|
|
2582
|
+
from?: string | undefined;
|
|
2583
|
+
/** Narrows the artist's songs to this genre's subtree. */
|
|
2584
|
+
genreUuid?: GenreUuid | undefined;
|
|
2585
|
+
/** `ordering`/`from`: kept so later pages use the same order and start track. */
|
|
2586
|
+
constructor(artist: ArtistTrackListOriginInput, scope: Scope, ordering: ArtistSongsOrdering, from?: string | undefined,
|
|
2587
|
+
/** Narrows the artist's songs to this genre's subtree. */
|
|
2588
|
+
genreUuid?: GenreUuid | undefined);
|
|
2589
|
+
}
|
|
2590
|
+
|
|
2591
|
+
declare class TrackList<T extends TrackBase = TrackBase> {
|
|
2592
|
+
tracks: T[];
|
|
2593
|
+
origin: TrackListOrigin;
|
|
2594
|
+
/** Tracks in the whole origin, loaded or not. */
|
|
2595
|
+
total: number;
|
|
2596
|
+
/** Next page to fetch, or null once every track is loaded. */
|
|
2597
|
+
nextPage: number | null;
|
|
2598
|
+
constructor(tracks: T[], origin: TrackListOrigin,
|
|
2599
|
+
/** Tracks in the whole origin, loaded or not. */
|
|
2600
|
+
total?: number,
|
|
2601
|
+
/** Next page to fetch, or null once every track is loaded. */
|
|
2602
|
+
nextPage?: number | null);
|
|
2603
|
+
}
|
|
2604
|
+
declare class TrackListFromTrack<T extends TrackBase = TrackBase> extends TrackList<T> {
|
|
2605
|
+
tracks: T[];
|
|
2606
|
+
origin: TrackListOriginFromTrack<T>;
|
|
2607
|
+
constructor(tracks: T[], origin: TrackListOriginFromTrack<T>);
|
|
2608
|
+
}
|
|
2609
|
+
declare class TrackListFromCriteriaPlaylist<T extends TrackBase = TrackBase> extends TrackList<T> {
|
|
2610
|
+
tracks: T[];
|
|
2611
|
+
origin: TrackListOriginFromCriteriaPlaylist;
|
|
2612
|
+
constructor(tracks: T[], origin: TrackListOriginFromCriteriaPlaylist, total: number, nextPage: number | null);
|
|
2613
|
+
}
|
|
2614
|
+
declare class TrackListFromArtist<T extends TrackBase = TrackBase> extends TrackList<T> {
|
|
2615
|
+
tracks: T[];
|
|
2616
|
+
origin: TrackListOriginFromArtist;
|
|
2617
|
+
constructor(tracks: T[], origin: TrackListOriginFromArtist, total: number, nextPage: number | null);
|
|
2618
|
+
}
|
|
2619
|
+
|
|
2620
|
+
declare function useListTracks<T>(scope: Scope | null, getBackendBaseUrl: () => string, schema: z.ZodType<T, unknown>, listEndpoint: (page: number) => string, listQueryKey: (page: number) => readonly unknown[], page?: number, pageSize?: number | string): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
2621
|
+
overallTotal: number;
|
|
2622
|
+
next: string | null;
|
|
2623
|
+
previous: string | null;
|
|
2624
|
+
results: T[];
|
|
2625
|
+
page: number;
|
|
2626
|
+
pageSize: number;
|
|
2627
|
+
totalPages: number;
|
|
2628
|
+
}>, Error>;
|
|
2629
|
+
type GenrePlaylistTracksPage<T> = {
|
|
2630
|
+
tracks: T[];
|
|
2631
|
+
total: number;
|
|
2632
|
+
nextPage: number | null;
|
|
2633
|
+
};
|
|
2634
|
+
type PlayGenrePlaylistOptions = {
|
|
2635
|
+
startSongUuid?: string;
|
|
2636
|
+
};
|
|
2637
|
+
type PlayArtistOptions = {
|
|
2638
|
+
ordering: ArtistSongsOrdering;
|
|
2639
|
+
startSongUuid?: string;
|
|
2640
|
+
genreUuid?: GenreUuid;
|
|
2641
|
+
};
|
|
2642
|
+
interface TrackListContextType<T extends TrackBase> {
|
|
2643
|
+
trackList: TrackList<T> | null;
|
|
2644
|
+
selectedTrack: T | null;
|
|
2645
|
+
setSelectedTrack: (track: T | null) => void;
|
|
2646
|
+
toTrackAtPosition: (position: number) => void;
|
|
2647
|
+
playNewTrackListFromTrackUuid: (track: T, scope: Scope) => void;
|
|
2648
|
+
/**
|
|
2649
|
+
* Fetches the playlist's first tracks page and plays its first track. Rejects on fetch/parse failure.
|
|
2650
|
+
* With `startSongUuid`, the list starts at that track (`?from=`), so earlier tracks aren't
|
|
2651
|
+
* queued; rejects when the playlist doesn't contain it.
|
|
2652
|
+
*/
|
|
2653
|
+
playNewTrackListFromGenrePlaylist: (genrePlaylist: CriteriaPlaylistMinimum, scope: Scope, options?: PlayGenrePlaylistOptions) => Promise<void>;
|
|
2654
|
+
/**
|
|
2655
|
+
* Fetches the artist's first page of playable songs in `ordering` and plays the first one;
|
|
2656
|
+
* later pages load lazily. With `startSongUuid`, the list starts at that song (`?from=`); with
|
|
2657
|
+
* `genreUuid`, only the songs in that genre's subtree are queued (`?genre=`).
|
|
2658
|
+
* Rejects on fetch/parse failure, or when the artist's playable songs don't contain it.
|
|
2659
|
+
*/
|
|
2660
|
+
playNewTrackListFromArtist: (artist: ArtistTrackListOriginInput, scope: Scope, options: PlayArtistOptions) => Promise<void>;
|
|
2661
|
+
/** One page of a genre playlist's tracks, parsed with the provider's track schema; `from` starts the list at that track. */
|
|
2662
|
+
fetchGenrePlaylistTracksPage: (uuid: GenrePlaylistUuid, scope: Scope, page: number, from?: string) => Promise<GenrePlaylistTracksPage<T>>;
|
|
2663
|
+
/** Appends the next tracks page of the current genre-playlist or artist list; no-op when fully loaded or already loading. */
|
|
2664
|
+
loadMore: () => Promise<void>;
|
|
2665
|
+
}
|
|
2666
|
+
interface TrackListProviderProps<T extends TrackBase> {
|
|
2667
|
+
children: ReactNode;
|
|
2668
|
+
getBackendBaseUrl: () => string;
|
|
2669
|
+
schema: z.ZodType<T, unknown>;
|
|
2670
|
+
listEndpoint: (page: number) => string;
|
|
2671
|
+
listQueryKey: (page: number) => readonly unknown[];
|
|
2672
|
+
}
|
|
2673
|
+
declare function TrackListProvider<T extends TrackBase>({ children, getBackendBaseUrl, schema, listEndpoint, listQueryKey, }: TrackListProviderProps<T>): react.JSX.Element;
|
|
2674
|
+
declare function useTrackList<T extends TrackBase = TrackBase>(): TrackListContextType<T>;
|
|
2675
|
+
|
|
2676
|
+
interface TrackListSidebarVisibilityContextType {
|
|
2677
|
+
isTrackListSidebarVisible: boolean;
|
|
2678
|
+
toggleTrackListSidebar: () => void;
|
|
2679
|
+
showTrackListSidebar: () => void;
|
|
2680
|
+
hideTrackListSidebar: () => void;
|
|
2681
|
+
}
|
|
2682
|
+
interface TrackListSidebarVisibilityProviderProps {
|
|
2683
|
+
children: ReactNode;
|
|
2684
|
+
}
|
|
2685
|
+
declare function TrackListSidebarVisibilityProvider({ children }: TrackListSidebarVisibilityProviderProps): react.JSX.Element;
|
|
2686
|
+
declare function useTrackListSidebarVisibility(): TrackListSidebarVisibilityContextType;
|
|
2687
|
+
|
|
2688
|
+
declare const ArtistMinimumSchema: z.ZodObject<{
|
|
2689
|
+
uuid: z.ZodString;
|
|
2690
|
+
name: z.ZodString;
|
|
2691
|
+
isSpecialPurpose: z.ZodOptional<z.ZodBoolean>;
|
|
2692
|
+
}, z.core.$strip>;
|
|
2693
|
+
type ArtistMinimum = z.infer<typeof ArtistMinimumSchema>;
|
|
2694
|
+
|
|
2695
|
+
/** Renders one artist name as a link — typically the consumer's router `Link`, so navigating keeps playback alive. */
|
|
2696
|
+
type RenderArtistLink = (artist: ArtistMinimum) => ReactNode;
|
|
2697
|
+
declare function ArtistNames({ artists, renderArtistLink, }: {
|
|
2698
|
+
artists: ArtistMinimum[];
|
|
2699
|
+
renderArtistLink?: RenderArtistLink;
|
|
2700
|
+
}): react.JSX.Element;
|
|
2701
|
+
|
|
2702
|
+
declare const UuidResourceSchema: z.ZodObject<{
|
|
2703
|
+
uuid: z.ZodString;
|
|
2704
|
+
}, z.core.$strip>;
|
|
2705
|
+
type UuidResource = z.infer<typeof UuidResourceSchema>;
|
|
2706
|
+
|
|
2707
|
+
/** One non-zero node of an artist's footprint on the canonical genre tree. */
|
|
2708
|
+
declare const ArtistGenreCountSchema: z.ZodObject<{
|
|
2709
|
+
genrePlaylist: z.core.$ZodBranded<z.ZodString, "GenrePlaylistUuid", "out">;
|
|
2710
|
+
songsCount: z.ZodNumber;
|
|
2711
|
+
tracksCount: z.ZodNumber;
|
|
2712
|
+
}, z.core.$strip>;
|
|
2713
|
+
type ArtistGenreCount = z.infer<typeof ArtistGenreCountSchema>;
|
|
2714
|
+
|
|
2715
|
+
declare const AlbumMinimumSchema: z.ZodObject<{
|
|
2716
|
+
uuid: z.ZodString;
|
|
2717
|
+
name: z.ZodString;
|
|
2718
|
+
albumArtists: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2719
|
+
uuid: z.ZodString;
|
|
2720
|
+
name: z.ZodString;
|
|
2721
|
+
isSpecialPurpose: z.ZodOptional<z.ZodBoolean>;
|
|
2722
|
+
}, z.core.$strip>>>>;
|
|
2723
|
+
}, z.core.$strip>;
|
|
2724
|
+
type AlbumMinimum = z.infer<typeof AlbumMinimumSchema>;
|
|
2725
|
+
|
|
2726
|
+
declare const MbArtistDetailedSchema: z.ZodObject<{
|
|
2727
|
+
musicbrainzId: z.ZodString;
|
|
2728
|
+
name: z.ZodString;
|
|
2729
|
+
musicbrainzLink: z.ZodURL;
|
|
2730
|
+
}, z.core.$strip>;
|
|
2731
|
+
type MusicbrainzArtistDetailed = z.infer<typeof MbArtistDetailedSchema>;
|
|
2732
|
+
|
|
2733
|
+
declare const MbRecordingDetailedSchema: z.ZodObject<{
|
|
2734
|
+
musicbrainzId: z.ZodString;
|
|
2735
|
+
title: z.ZodString;
|
|
2736
|
+
score: z.ZodNumber;
|
|
2737
|
+
musicbrainzArtists: z.ZodArray<z.ZodObject<{
|
|
2738
|
+
musicbrainzId: z.ZodString;
|
|
2739
|
+
name: z.ZodString;
|
|
2740
|
+
musicbrainzLink: z.ZodURL;
|
|
2741
|
+
}, z.core.$strip>>;
|
|
2742
|
+
musicbrainzLink: z.ZodURL;
|
|
2743
|
+
durationInSec: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2744
|
+
durationStrInHourMinSec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2745
|
+
releaseDate: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodTransform<string, string>>;
|
|
2746
|
+
}, z.core.$strip>;
|
|
2747
|
+
type MusicbrainzRecordingDetailed = z.infer<typeof MbRecordingDetailedSchema>;
|
|
2748
|
+
|
|
2749
|
+
declare const CriteriaMinimumSchema: z.ZodObject<{
|
|
2750
|
+
uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
|
|
2751
|
+
name: z.ZodString;
|
|
2752
|
+
side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2753
|
+
pop: "pop";
|
|
2754
|
+
core: "core";
|
|
2755
|
+
}>>>;
|
|
2756
|
+
wikidataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2757
|
+
}, z.core.$strip>;
|
|
2758
|
+
type CriteriaMinimum = z.infer<typeof CriteriaMinimumSchema>;
|
|
2759
|
+
|
|
2760
|
+
declare const CriteriaSimpleSchema: z.ZodObject<{
|
|
2761
|
+
uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
|
|
2762
|
+
name: z.ZodString;
|
|
2763
|
+
parent: z.ZodNullable<z.ZodObject<{
|
|
2764
|
+
uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
|
|
2765
|
+
name: z.ZodString;
|
|
2766
|
+
side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2767
|
+
pop: "pop";
|
|
2768
|
+
core: "core";
|
|
2769
|
+
}>>>;
|
|
2770
|
+
wikidataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2771
|
+
}, z.core.$strip>>;
|
|
2772
|
+
createdOn: z.ZodString;
|
|
2773
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
2774
|
+
}, z.core.$strip>;
|
|
2775
|
+
type CriteriaSimple = z.infer<typeof CriteriaSimpleSchema>;
|
|
2776
|
+
|
|
2777
|
+
declare const CriteriaCreationSchema: z.ZodObject<{
|
|
2778
|
+
name: z.ZodString;
|
|
2779
|
+
parent: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">>;
|
|
2780
|
+
essentialSongs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2781
|
+
}, z.core.$strip>;
|
|
2782
|
+
type CriteriaCreationValues = z.infer<typeof CriteriaCreationSchema>;
|
|
2783
|
+
|
|
2784
|
+
declare const CriteriaUpdateSchema: z.ZodObject<{
|
|
2785
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2786
|
+
parent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">>>;
|
|
2787
|
+
essentialSongs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2788
|
+
}, z.core.$strip>;
|
|
2789
|
+
type CriteriaUpdateValues = z.infer<typeof CriteriaUpdateSchema>;
|
|
2790
|
+
|
|
2791
|
+
declare const CriteriaLineageRelWithoutAscendantSchema: z.ZodObject<{
|
|
2792
|
+
descendant: z.ZodObject<{
|
|
2793
|
+
uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
|
|
2794
|
+
name: z.ZodString;
|
|
2795
|
+
side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2796
|
+
pop: "pop";
|
|
2797
|
+
core: "core";
|
|
2798
|
+
}>>>;
|
|
2799
|
+
wikidataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2800
|
+
}, z.core.$strip>;
|
|
2801
|
+
degree: z.ZodNumber;
|
|
2802
|
+
}, z.core.$strip>;
|
|
2803
|
+
type CriteriaLineageRelWithoutAscendant = z.infer<typeof CriteriaLineageRelWithoutAscendantSchema>;
|
|
2804
|
+
|
|
2805
|
+
declare const CriteriaLineageRelWithoutDescendantSchema: z.ZodObject<{
|
|
2806
|
+
ascendant: z.ZodObject<{
|
|
2807
|
+
uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
|
|
2808
|
+
name: z.ZodString;
|
|
2809
|
+
side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2810
|
+
pop: "pop";
|
|
2811
|
+
core: "core";
|
|
2812
|
+
}>>>;
|
|
2813
|
+
wikidataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2814
|
+
}, z.core.$strip>;
|
|
2815
|
+
degree: z.ZodNumber;
|
|
2816
|
+
}, z.core.$strip>;
|
|
2817
|
+
type CriteriaLineageRelWithoutDescendant = z.infer<typeof CriteriaLineageRelWithoutDescendantSchema>;
|
|
2818
|
+
|
|
2819
|
+
declare const CriteriaPlaylistDetailedSchema: z.ZodObject<{
|
|
2820
|
+
uuid: z.core.$ZodBranded<z.ZodString, "GenrePlaylistUuid", "out">;
|
|
2821
|
+
name: z.ZodString;
|
|
2822
|
+
tracksCount: z.ZodNumber;
|
|
2823
|
+
viewsCount: z.ZodNumber;
|
|
2824
|
+
durationInSec: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2825
|
+
durationStrInHourMinSec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2826
|
+
criteria: z.ZodNullable<z.ZodObject<{
|
|
2827
|
+
uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
|
|
2828
|
+
name: z.ZodString;
|
|
2829
|
+
side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2830
|
+
pop: "pop";
|
|
2831
|
+
core: "core";
|
|
2832
|
+
}>>>;
|
|
2833
|
+
wikidataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2834
|
+
}, z.core.$strip>>;
|
|
2835
|
+
parent: z.ZodNullable<z.ZodObject<{
|
|
2836
|
+
uuid: z.core.$ZodBranded<z.ZodString, "GenrePlaylistUuid", "out">;
|
|
2837
|
+
name: z.ZodString;
|
|
2838
|
+
}, z.core.$strip>>;
|
|
2839
|
+
root: z.ZodObject<{
|
|
2840
|
+
uuid: z.core.$ZodBranded<z.ZodString, "GenrePlaylistUuid", "out">;
|
|
2841
|
+
name: z.ZodString;
|
|
2842
|
+
}, z.core.$strip>;
|
|
2843
|
+
createdOn: z.ZodString;
|
|
2844
|
+
updatedOn: z.ZodNullable<z.ZodString>;
|
|
2845
|
+
}, z.core.$strip>;
|
|
2846
|
+
type CriteriaPlaylistDetailed = z.infer<typeof CriteriaPlaylistDetailedSchema>;
|
|
2847
|
+
|
|
2848
|
+
declare const YOUTUBE_UNPLAYABLE_REASON_LABELS: {
|
|
2849
|
+
readonly not_found: "Video unavailable";
|
|
2850
|
+
readonly not_embeddable: "Embedding disabled";
|
|
2851
|
+
readonly private: "Private video";
|
|
2852
|
+
readonly not_processed: "Video still processing";
|
|
2853
|
+
readonly region_whitelisted: "Region restricted";
|
|
2854
|
+
};
|
|
2855
|
+
type YoutubeUnplayableReason = keyof typeof YOUTUBE_UNPLAYABLE_REASON_LABELS;
|
|
2856
|
+
declare const SongDetailedSchema: z.ZodObject<{
|
|
2857
|
+
uuid: z.ZodString;
|
|
2858
|
+
title: z.ZodString;
|
|
2859
|
+
artists: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2860
|
+
uuid: z.ZodString;
|
|
2861
|
+
name: z.ZodString;
|
|
2862
|
+
isSpecialPurpose: z.ZodOptional<z.ZodBoolean>;
|
|
2863
|
+
}, z.core.$strip>>>>;
|
|
2864
|
+
album: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2865
|
+
uuid: z.ZodString;
|
|
2866
|
+
name: z.ZodString;
|
|
2867
|
+
albumArtists: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2868
|
+
uuid: z.ZodString;
|
|
2869
|
+
name: z.ZodString;
|
|
2870
|
+
isSpecialPurpose: z.ZodOptional<z.ZodBoolean>;
|
|
2871
|
+
}, z.core.$strip>>>>;
|
|
2872
|
+
}, z.core.$strip>>>;
|
|
2873
|
+
trackNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2874
|
+
genre: z.ZodObject<{
|
|
2875
|
+
uuid: z.core.$ZodBranded<z.ZodString, "GenreUuid", "out">;
|
|
2876
|
+
name: z.ZodString;
|
|
2877
|
+
side: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2878
|
+
pop: "pop";
|
|
2879
|
+
core: "core";
|
|
2880
|
+
}>>>;
|
|
2881
|
+
wikidataId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2882
|
+
}, z.core.$strip>;
|
|
2883
|
+
rating: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2884
|
+
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2885
|
+
playCount: z.ZodNumber;
|
|
2886
|
+
createdOn: z.ZodString;
|
|
2887
|
+
updatedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2888
|
+
youtubeVideo: z.ZodNullable<z.ZodObject<{
|
|
2889
|
+
id: z.ZodString;
|
|
2890
|
+
unplayableReason: z.ZodNullable<z.ZodEnum<{
|
|
2891
|
+
not_found: "not_found";
|
|
2892
|
+
not_embeddable: "not_embeddable";
|
|
2893
|
+
private: "private";
|
|
2894
|
+
not_processed: "not_processed";
|
|
2895
|
+
region_whitelisted: "region_whitelisted";
|
|
2896
|
+
}>>;
|
|
2897
|
+
}, z.core.$strip>>;
|
|
2898
|
+
musicbrainzRecordingId: z.ZodNullable<z.ZodString>;
|
|
2899
|
+
}, z.core.$strip>;
|
|
2900
|
+
type SongDetailed = z.infer<typeof SongDetailedSchema>;
|
|
2901
|
+
declare const NO_VIDEO_LABEL = "No video available";
|
|
2902
|
+
declare function isSong(track: TrackBase): track is SongDetailed;
|
|
2903
|
+
/** Human-readable reason a song can't be played, or null when it's playable. */
|
|
2904
|
+
declare function songUnplayableReason(song: SongDetailed): string | null;
|
|
2905
|
+
/** MusicBrainz recording page URL, or null when the song has no MBID. */
|
|
2906
|
+
declare function musicBrainzRecordingUrl(song: SongDetailed): string | null;
|
|
2907
|
+
|
|
2908
|
+
declare const TrackMinimumSchema: z.ZodObject<{
|
|
2909
|
+
title: z.ZodString;
|
|
2910
|
+
uuid: z.ZodString;
|
|
2911
|
+
artists: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2912
|
+
uuid: z.ZodString;
|
|
2913
|
+
name: z.ZodString;
|
|
2914
|
+
isSpecialPurpose: z.ZodOptional<z.ZodBoolean>;
|
|
2915
|
+
}, z.core.$strip>>>>;
|
|
2916
|
+
}, z.core.$strip>;
|
|
2917
|
+
type TrackMinimum = z.infer<typeof TrackMinimumSchema>;
|
|
2918
|
+
|
|
2919
|
+
declare const makeTrackPlaylistRelSchema: <T extends z.ZodTypeAny>(trackSchema: T) => z.ZodObject<{
|
|
2920
|
+
track: T;
|
|
2921
|
+
position: z.ZodNumber;
|
|
2922
|
+
}, z.core.$strip>;
|
|
2923
|
+
type TrackPlaylistRel<T extends z.ZodTypeAny> = z.infer<ReturnType<typeof makeTrackPlaylistRelSchema<T>>>;
|
|
2924
|
+
declare const makeTrackPlaylistRelPageSchema: <T extends z.ZodTypeAny>(trackSchema: T) => z.ZodObject<{
|
|
2925
|
+
overallTotal: z.ZodNumber;
|
|
2926
|
+
next: z.ZodNullable<z.ZodString>;
|
|
2927
|
+
previous: z.ZodNullable<z.ZodString>;
|
|
2928
|
+
results: z.ZodArray<z.ZodObject<{
|
|
2929
|
+
track: T;
|
|
2930
|
+
position: z.ZodNumber;
|
|
2931
|
+
}, z.core.$strip>>;
|
|
2932
|
+
page: z.ZodNumber;
|
|
2933
|
+
pageSize: z.ZodNumber;
|
|
2934
|
+
totalPages: z.ZodNumber;
|
|
2935
|
+
}, z.core.$strip>;
|
|
2936
|
+
|
|
2937
|
+
declare const genreQueryKeys: {
|
|
2938
|
+
me: {
|
|
2939
|
+
all: readonly ["genres"];
|
|
2940
|
+
list: (page: number) => readonly ["genres", "list", number];
|
|
2941
|
+
detail: (id: GenreUuid) => readonly ["genres", "detail", string & zod.$brand<"GenreUuid">];
|
|
2942
|
+
overview: (id: GenreUuid) => readonly ["genres", "overview", string & zod.$brand<"GenreUuid">];
|
|
2943
|
+
};
|
|
2944
|
+
reference: {
|
|
2945
|
+
all: readonly ["referenceGenres"];
|
|
2946
|
+
list: (page: number) => readonly ["referenceGenres", "list", number];
|
|
2947
|
+
detail: (id: GenreUuid) => readonly ["referenceGenres", "detail", string & zod.$brand<"GenreUuid">];
|
|
2948
|
+
overview: (id: GenreUuid) => readonly ["referenceGenres", "overview", string & zod.$brand<"GenreUuid">];
|
|
2949
|
+
};
|
|
2950
|
+
};
|
|
2951
|
+
declare const genreUpdateMutationKey: readonly ["genres", "update"];
|
|
2952
|
+
|
|
2953
|
+
declare const genreEndpoints: {
|
|
2954
|
+
me: {
|
|
2955
|
+
list: () => string;
|
|
2956
|
+
detail: (id: GenreUuid) => string;
|
|
2957
|
+
overview: (id: GenreUuid) => string;
|
|
2958
|
+
create: () => string;
|
|
2959
|
+
update: (id: GenreUuid) => string;
|
|
2960
|
+
delete: (id: GenreUuid) => string;
|
|
2961
|
+
};
|
|
2962
|
+
reference: {
|
|
2963
|
+
list: () => string;
|
|
2964
|
+
detail: (id: GenreUuid) => string;
|
|
2965
|
+
overview: (id: GenreUuid) => string;
|
|
2966
|
+
create: () => string;
|
|
2967
|
+
update: (id: GenreUuid) => string;
|
|
2968
|
+
delete: (id: GenreUuid) => string;
|
|
2969
|
+
};
|
|
2970
|
+
};
|
|
2971
|
+
|
|
2972
|
+
declare const artistQueryKeys: {
|
|
2973
|
+
search: (query: string) => readonly ["artistSearch", string];
|
|
2974
|
+
detail: (uuid: string | null) => readonly ["artist", string | null];
|
|
2975
|
+
genreCounts: (baseUrl: string, uuid: string | null) => readonly ["artistGenreCounts", string, string | null];
|
|
2976
|
+
};
|
|
2977
|
+
|
|
2978
|
+
declare const artistEndpoints: {
|
|
2979
|
+
search: () => string;
|
|
2980
|
+
detail: (uuid: string) => string;
|
|
2981
|
+
genreCounts: (uuid: string) => string;
|
|
2982
|
+
};
|
|
2983
|
+
|
|
2984
|
+
declare const genrePlaylistQueryKeys: {
|
|
2985
|
+
me: {
|
|
2986
|
+
all: readonly ["meGenrePlaylists"];
|
|
2987
|
+
list: (page: number) => readonly ["meGenrePlaylists", "list", number];
|
|
2988
|
+
full: readonly ["meGenrePlaylists", "full"];
|
|
2989
|
+
detail: (uuid: GenrePlaylistUuid) => readonly ["meGenrePlaylists", string & zod.$brand<"GenrePlaylistUuid">];
|
|
2990
|
+
tracks: (uuid: GenrePlaylistUuid) => readonly ["meGenrePlaylists", string & zod.$brand<"GenrePlaylistUuid">, "tracks"];
|
|
2991
|
+
};
|
|
2992
|
+
reference: {
|
|
2993
|
+
all: readonly ["referenceGenrePlaylists"];
|
|
2994
|
+
list: (baseUrl: string, page: number) => readonly ["referenceGenrePlaylists", string, "list", number];
|
|
2995
|
+
full: (baseUrl: string) => readonly ["referenceGenrePlaylists", string, "full"];
|
|
2996
|
+
detail: (baseUrl: string, uuid: GenrePlaylistUuid) => readonly ["referenceGenrePlaylists", string, string & zod.$brand<"GenrePlaylistUuid">];
|
|
2997
|
+
};
|
|
2998
|
+
};
|
|
2999
|
+
|
|
3000
|
+
declare const genrePlaylistEndpoints: {
|
|
3001
|
+
me: {
|
|
3002
|
+
list: () => string;
|
|
3003
|
+
detail: (uuid: GenrePlaylistUuid) => string;
|
|
3004
|
+
tracks: (uuid: GenrePlaylistUuid) => string;
|
|
3005
|
+
create: () => string;
|
|
3006
|
+
update: (uuid: GenrePlaylistUuid) => string;
|
|
3007
|
+
delete: (uuid: GenrePlaylistUuid) => string;
|
|
3008
|
+
};
|
|
3009
|
+
reference: {
|
|
3010
|
+
tree: () => string;
|
|
3011
|
+
list: () => string;
|
|
3012
|
+
detail: (uuid: GenrePlaylistUuid) => string;
|
|
3013
|
+
tracks: (uuid: GenrePlaylistUuid) => string;
|
|
3014
|
+
create: () => string;
|
|
3015
|
+
update: (uuid: GenrePlaylistUuid) => string;
|
|
3016
|
+
delete: (uuid: GenrePlaylistUuid) => string;
|
|
3017
|
+
};
|
|
3018
|
+
};
|
|
3019
|
+
|
|
3020
|
+
declare const libraryQueryKeys: {
|
|
3021
|
+
reference: {
|
|
3022
|
+
songs: {
|
|
3023
|
+
all: readonly [`${string}Songs`];
|
|
3024
|
+
list: (page: number) => readonly [`${string}Songs`, "list", number];
|
|
3025
|
+
detail: (uuid: string) => readonly [`${string}Songs`, "detail", string];
|
|
3026
|
+
byGenre: (baseUrl: string, genreUuid: GenreUuid) => readonly [`${string}Songs`, string, "genre", string & zod.$brand<"GenreUuid">];
|
|
3027
|
+
};
|
|
3028
|
+
};
|
|
3029
|
+
};
|
|
3030
|
+
declare const libraryEndpoints: {
|
|
3031
|
+
reference: {
|
|
3032
|
+
songs: {
|
|
3033
|
+
list: () => string;
|
|
3034
|
+
detail: (uuid: string) => string;
|
|
3035
|
+
delete: (uuid: string) => string;
|
|
3036
|
+
};
|
|
3037
|
+
};
|
|
3038
|
+
};
|
|
3039
|
+
|
|
3040
|
+
declare const FORM_RATING_NULL_VALUE = -1;
|
|
3041
|
+
|
|
3042
|
+
declare const formatTime: (seconds: number) => string;
|
|
3043
|
+
declare const capitalizeFirstLetter: (string: string) => string;
|
|
3044
|
+
|
|
3045
|
+
declare const getGenrePlaylistsGroupedByRoot: (genrePlaylists: CriteriaPlaylistSimple[]) => Record<string, {
|
|
3046
|
+
uuid: string & zod.$brand<"GenrePlaylistUuid">;
|
|
3047
|
+
name: string;
|
|
3048
|
+
root: {
|
|
3049
|
+
uuid: string & zod.$brand<"GenrePlaylistUuid">;
|
|
3050
|
+
name: string;
|
|
3051
|
+
};
|
|
3052
|
+
tracksCount: number;
|
|
3053
|
+
viewsCount: number;
|
|
3054
|
+
criteria: {
|
|
3055
|
+
uuid: string & zod.$brand<"GenreUuid">;
|
|
3056
|
+
name: string;
|
|
3057
|
+
side?: "pop" | "core" | null | undefined;
|
|
3058
|
+
wikidataId?: string | null | undefined;
|
|
3059
|
+
} | null;
|
|
3060
|
+
parent: {
|
|
3061
|
+
uuid: string & zod.$brand<"GenrePlaylistUuid">;
|
|
3062
|
+
name: string;
|
|
3063
|
+
} | null;
|
|
3064
|
+
createdOn: string;
|
|
3065
|
+
updatedOn: string | null;
|
|
3066
|
+
isUnacceptedRoot: boolean;
|
|
3067
|
+
isUmbrella?: boolean | undefined;
|
|
3068
|
+
scene?: "commercial" | "underground" | null | undefined;
|
|
3069
|
+
}[]>;
|
|
3070
|
+
/** Whether `nodes` contains a root node (`parentId === null`) named exactly "Mainstream Pop" —
|
|
3071
|
+
* the precondition `GenreTreeWheelRadialPopCore` requires before rendering. */
|
|
3072
|
+
declare const hasMainstreamPopRoot: (nodes: {
|
|
3073
|
+
parentId: string | null;
|
|
3074
|
+
name: string;
|
|
3075
|
+
}[]) => boolean;
|
|
3076
|
+
|
|
3077
|
+
/**
|
|
3078
|
+
* Narrows the canonical tree to an artist's footprint: nodes with songs in their subtree (which
|
|
3079
|
+
* includes every ancestor of such a node) carry the artist's counts. Two structural exceptions are
|
|
3080
|
+
* kept with zero counts: the "Mainstream Pop" root (pop-core needs it) and the scene children of a
|
|
3081
|
+
* kept "Core electronic" (the scene stack needs one commercial and one underground child).
|
|
3082
|
+
*/
|
|
3083
|
+
declare const pruneGenrePlaylistsForArtist: (playlists: CriteriaPlaylistSimple[], counts: ArtistGenreCount[]) => CriteriaPlaylistSimple[];
|
|
3084
|
+
|
|
3085
|
+
/** Case-insensitive substring match on genre name. An empty/whitespace query matches nothing. */
|
|
3086
|
+
declare const searchGenrePlaylistsByName: <T extends CriteriaPlaylistSimple>(genrePlaylists: T[], query: string) => T[];
|
|
3087
|
+
|
|
3088
|
+
type ReparentCandidate = CriteriaPlaylistSimple & {
|
|
3089
|
+
criteria: CriteriaMinimum;
|
|
3090
|
+
};
|
|
3091
|
+
/**
|
|
3092
|
+
* Genres a genre can move under: not itself, not its current parent, not a descendant (which would form a cycle),
|
|
3093
|
+
* and not a criteria-less playlist (the "Genreless" root), which has no genre to reparent under.
|
|
3094
|
+
*/
|
|
3095
|
+
declare const getReparentCandidates: (genrePlaylists: CriteriaPlaylistSimple[], genrePlaylistUuid: GenrePlaylistUuid) => ReparentCandidate[];
|
|
3096
|
+
|
|
3097
|
+
type SongsPage = {
|
|
3098
|
+
tracks: unknown[];
|
|
3099
|
+
total: number | null;
|
|
3100
|
+
};
|
|
3101
|
+
/**
|
|
3102
|
+
* Applies an optimistic edit to the cached infinite query
|
|
3103
|
+
* `libraryQueryKeys.reference.songs.byGenre(baseUrl, genreUuid)`: pages are `{ tracks, total, nextPage }`.
|
|
3104
|
+
* `edit` maps a page's tracks (return fewer to remove, changed copies to update); every page's `total` (a list-wide count) follows the
|
|
3105
|
+
* overall removed/added count. Use as `queryClient.setQueryData(key, (data) => editGenreSongPages(data, edit))`.
|
|
3106
|
+
*/
|
|
3107
|
+
declare function editGenreSongPages<P extends SongsPage>(data: InfiniteData<P> | undefined, edit: (tracks: P["tracks"]) => P["tracks"]): InfiniteData<P> | undefined;
|
|
3108
|
+
|
|
3109
|
+
export { ARTIST_LINK_KINDS, type AlbumMinimum, AlbumMinimumSchema, type ArtistAlbum, type ArtistDetailed, ArtistDetailedSchema, type ArtistGenreCount, ArtistGenreCountSchema, type ArtistImage, ArtistImageSchema, type ArtistLink, type ArtistMembership, type ArtistMinimum, ArtistMinimumSchema, ArtistNames, type ArtistSearchResult, ArtistSearchResultSchema, ArtistSearchResultsSchema, type ArtistSongsOrdering, type ArtistTrackListOriginInput, CriteriaCreationSchema, type CriteriaCreationValues, type CriteriaDetailed, CriteriaDetailedSchema, type CriteriaLineageRelWithoutAscendant, CriteriaLineageRelWithoutAscendantSchema, type CriteriaLineageRelWithoutDescendant, CriteriaLineageRelWithoutDescendantSchema, type CriteriaMinimum, CriteriaMinimumSchema, type CriteriaOverview, CriteriaOverviewSchema, type CriteriaPlaylistDetailed, CriteriaPlaylistDetailedSchema, type CriteriaPlaylistMinimum, CriteriaPlaylistMinimumSchema, type CriteriaPlaylistSimple, CriteriaPlaylistSimpleSchema, type CriteriaSimple, CriteriaSimpleSchema, CriteriaUpdateSchema, type CriteriaUpdateValues, FORM_RATING_NULL_VALUE, type GenrePlaylistTracksPage, GenrePlaylistUuid, GenreUuid, type GenreViewMode, MbArtistDetailedSchema, MbRecordingDetailedSchema, type MusicbrainzArtistDetailed, type MusicbrainzRecordingDetailed, NO_VIDEO_LABEL, type PlayArtistOptions, type PlayGenrePlaylistOptions, type RenderArtistLink, type ReparentCandidate, type SongDetailed, SongDetailedSchema, type TrackBase, TrackBaseSchema, TrackList, TrackListFromArtist, TrackListFromCriteriaPlaylist, TrackListFromTrack, TrackListOrigin, TrackListOriginFromArtist, TrackListOriginFromCriteriaPlaylist, TrackListOriginFromTrack, TrackListOriginType, TrackListProvider, TrackListSidebarVisibilityProvider, type TrackMinimum, TrackMinimumSchema, type TrackPlaylistRel, type UseArtistResult, type UseArtistSearchResult, type UseGenreSearchOptions, type UseGenreSearchResult, type UseGenreTreeViewStateOptions, type UseGenreTreeViewStateResult, type UseVisibleGenrePlaylistsOptions, type UuidResource, UuidResourceSchema, YOUTUBE_UNPLAYABLE_REASON_LABELS, type YoutubeUnplayableReason, artistEndpoints, artistQueryKeys, capitalizeFirstLetter, editGenreSongPages, formatTime, genreEndpoints, genrePlaylistEndpoints, genrePlaylistQueryKeys, genreQueryKeys, genreUpdateMutationKey, getGenrePlaylistsGroupedByRoot, getReparentCandidates, hasMainstreamPopRoot, isSong, libraryEndpoints, libraryQueryKeys, makeTrackPlaylistRelPageSchema, makeTrackPlaylistRelSchema, musicBrainzRecordingUrl, pruneGenrePlaylistsForArtist, searchGenrePlaylistsByName, songUnplayableReason, useArtist, useArtistGenreCounts, useArtistSearch, useCreateGenre, useDeleteGenre, useFetchGenre, useFetchGenreDetail, useFetchGenreOverview, useFetchGenrePlaylist, useGenreSearch, useGenreTreeViewState, useInvalidateAllGenrePlaylistQueries, useListFullGenrePlaylists, useListGenrePlaylists, useListGenres, useListTracks, usePrefetchGenreOverview, useTrackList, useTrackListSidebarVisibility, useUpdateGenre, useVisibleGenrePlaylists };
|