All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 50s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
41 lines
734 B
TypeScript
41 lines
734 B
TypeScript
import type { Dump } from "./dump.ts";
|
|
|
|
export interface Playlist {
|
|
id: string;
|
|
userId: string;
|
|
title: string;
|
|
slug?: string;
|
|
description?: string;
|
|
isPublic: boolean;
|
|
createdAt: Date;
|
|
updatedAt?: Date;
|
|
imageMime?: string;
|
|
dumpCount?: number;
|
|
ownerUsername?: string;
|
|
}
|
|
|
|
export interface PlaylistWithDumps extends Playlist {
|
|
dumps: Dump[];
|
|
}
|
|
|
|
export interface PlaylistMembership {
|
|
playlist: Playlist;
|
|
hasDump: boolean;
|
|
}
|
|
|
|
export interface CreatePlaylistRequest {
|
|
title: string;
|
|
description?: string;
|
|
isPublic: boolean;
|
|
}
|
|
|
|
export interface UpdatePlaylistRequest {
|
|
title?: string;
|
|
description?: string | null;
|
|
isPublic?: boolean;
|
|
}
|
|
|
|
export interface ReorderPlaylistRequest {
|
|
dumpIds: string[];
|
|
}
|