import DateMeasurementUnit from "../utils/data-measurement-unit";

export interface Service {
  id: string;
  name: string | { en: string; am: string }; // Can be string or localized object
  description: string;
  categoryId: string;
  categoryName?: string;
  isActive: boolean;
  createdAt?: string;
  updatedAt?: string;

  // Add these missing properties
  estimatedDuration?: number;
  estimatedDurationUnit?: string;
  status?: string;
  parentId?: string;
  requirements?: string;
}

export interface IServiceResponse {
  createdAt: string;
  updatedAt: string | null;
  tenantId: string;
  amharicCreatedAt: string | null;
  amharicUpdatedAt: string | null;
  id: string;
  slug: string;

  name: {
    am: string;
    en: string;
  };

  description: {
    am: string;
    en: string;
  };

  estimatedTime: number;
  estimatedTimeUnit: DateMeasurementUnit;

  organizationId: string | null;
  serviceCategoryId?: string | null;
}
