import { api } from "./client"; export interface Band { id: string; name: string; slug: string; genre_tags: string[]; nc_folder_path: string | null; created_at: string; updated_at: string; memberships?: BandMembership[]; } export interface BandMembership { member: { id: string; email: string; display_name: string }; role: string; instrument: string | null; joined_at: string; } export const listBands = () => api.get("/bands"); export const getBand = (bandId: string) => api.get(`/bands/${bandId}`); export const createBand = (data: { name: string; slug: string; genre_tags?: string[]; nc_base_path?: string; }) => api.post("/bands", data);