// ============================================================================
// Task template response types
// Generated from:
//   honeyDueAPI-go/internal/dto/responses/task_template.go
// ============================================================================

import type { TaskCategoryResponse, TaskFrequencyResponse } from "./task";

export interface TaskTemplateResponse {
  id: number;
  title: string;
  description: string;
  category_id: number | null;
  category?: TaskCategoryResponse | null;
  frequency_id: number | null;
  frequency?: TaskFrequencyResponse | null;
  icon_ios: string;
  icon_android: string;
  tags: string[];
  display_order: number;
  is_active: boolean;
  created_at: string;
  updated_at: string;
}

export interface TaskTemplateCategoryGroup {
  category_name: string;
  category_id: number | null;
  templates: TaskTemplateResponse[];
  count: number;
}

export interface TaskTemplatesGroupedResponse {
  categories: TaskTemplateCategoryGroup[];
  total_count: number;
}
