jukebox-vibe/web/src/types.ts

44 lines
792 B
TypeScript
Raw Normal View History

2025-08-07 23:24:56 +02:00
export type Sound = {
fileName: string;
name: string;
folder?: string;
relativePath?: string;
isRecent?: boolean;
badges?: string[];
2025-08-07 23:24:56 +02:00
};
export type SoundsResponse = {
items: Sound[];
total: number;
folders: Array<{ key: string; name: string; count: number }>;
categories?: Category[];
fileCategories?: Record<string, string[]>;
};
2025-08-07 23:24:56 +02:00
export type VoiceChannelInfo = {
guildId: string;
guildName: string;
channelId: string;
channelName: string;
selected?: boolean;
2025-08-07 23:24:56 +02:00
};
export type Category = { id: string; name: string; color?: string; sort?: number };
export type AnalyticsItem = {
name: string;
relativePath: string;
count: number;
};
export type AnalyticsResponse = {
totalSounds: number;
totalPlays: number;
mostPlayed: AnalyticsItem[];
};
2025-08-07 23:24:56 +02:00