import { MultiLanguageText } from './index';

export interface Category {
    id: number;
    name: MultiLanguageText;
    slug: string;
    description: MultiLanguageText;
    icon: string | null;
    sort_order: number;
    is_active: boolean;
    created_at: Date;
    updated_at: Date | null;
}

export interface ListCategoriesResponse {
    code: number;
    message: string;
    data: {
        categories: Category[];
        total: number;
    }
}

export interface createCategory {
    name: MultiLanguageText;
    slug: string;
    description: MultiLanguageText;
    created_by: number;
}

export interface createCategoryResponse {
    code: number;
    message: string;
    data: {
        id: number;
        name: MultiLanguageText;
        slug: string;
        description: MultiLanguageText;
        created_by: number;
    };
}

export interface updateCategory {
    id: number;
    name: MultiLanguageText;
    slug: string;
    description: MultiLanguageText;
}

export interface updateCategoryResponse {
    code: number;
    message: string;
    data: {
        id: number;
        name: MultiLanguageText;
        slug: string;
        description: MultiLanguageText;
        updated_by: number;
    };
}

export interface deleteCategoryResponse {
    code: number;
    message: string;
}