remove _custom query usage for playlists

This commit is contained in:
jeffvli
2025-12-03 18:31:42 -08:00
parent a47f94ebb2
commit cb2581252b
10 changed files with 37 additions and 83 deletions
@@ -527,6 +527,7 @@ const createPlaylist = playlist.pick({
const createPlaylistParameters = z.object({
comment: z.string().optional(),
name: z.string(),
ownerId: z.string().optional(),
public: z.boolean().optional(),
rules: z.record(z.any()).optional(),
sync: z.boolean().optional(),
+7
View File
@@ -893,7 +893,10 @@ export type CreatePlaylistBody = {
_custom?: Record<string, any>;
comment?: string;
name: string;
ownerId?: string;
public?: boolean;
queryBuilderRules?: Record<string, any>;
sync?: boolean;
};
// Create Playlist
@@ -924,6 +927,7 @@ export type PlaylistListCountArgs = BaseEndpointArgs & { query: ListCountQuery<P
export interface PlaylistListQuery extends BaseQuery<PlaylistListSort> {
_custom?: Record<string, any>;
excludeSmartPlaylists?: boolean;
limit?: number;
searchTerm?: string;
startIndex: number;
@@ -978,7 +982,10 @@ export type UpdatePlaylistBody = {
comment?: string;
genres?: Genre[];
name: string;
ownerId?: string;
public?: boolean;
queryBuilderRules?: Record<string, any>;
sync?: boolean;
};
export type UpdatePlaylistQuery = {