export type ApiResponse<T = unknown> = {
  success: boolean;
  data?: T;
  error?: { code: string; message: string };
};

export type StampWithStatus = {
  id: string;
  name: string;
  note: string | null;
  imageColor: string;
  imageGrey: string;
  sortOrder: number;
  collected: boolean;
  collectedAt: string | null;
};

export type RedemptionRuleInfo = {
  id: string;
  name: string;
  description: string | null;
  threshold: number;
};

export type RedemptionRecord = {
  id: string;
  ruleName: string;
  stampCount: number;
  redeemedAt: string;
};

export type ArticleSummary = {
  id: string;
  title: string;
  subtitle: string | null;
  coverImage: string;
  sortOrder: number;
};

export type ArticleDetail = {
  id: string;
  title: string;
  subtitle: string | null;
  body: string;
  coverImage: string;
  caption: string | null;
  sortOrder: number;
};

export type MusicSummary = {
  id: string;
  title: string;
  subtitle: string | null;
  audioFile: string;
  sortOrder: number;
};

export type MusicDetail = {
  id: string;
  title: string;
  subtitle: string | null;
  audioFile: string;
  sortOrder: number;
};
