export interface LocalePair {
  en: string;
  am: string;
}

export interface Certification {
  id: string;
  name: LocalePair;
  description: LocalePair;
  isActive: boolean;
  rankKey: string | null;
  createdAt: string;
  updatedAt: string;
}

export interface ListResponse<T> {
  total: number;
  items: T[];
}

export interface CreateCertificationPayload {
  name: LocalePair;
  description: LocalePair;
  rankKey?: string;
}

export interface UpdateCertificationPayload {
  id: string;
  name?: LocalePair;
  description?: LocalePair;
  isActive?: boolean;
  /** Omit to leave unchanged, null to clear a previously-set rank. */
  rankKey?: string | null;
}
