/**
 * WIRE CONTRACT for the DUO diploma lookup ("BFF-lite" — one screen-shaped call
 * returning everything the beroep step needs).
 *
 * Each diploma carries its server-computed `beroep` (the profession it maps to)
 * and the `policyQuestions` (geldigheidsvragen) that apply to it. These are
 * DECISIONS computed by the backend from the diploma's attributes — the frontend
 * renders them, it does not derive them (decision-DTO pattern, ADR-0001). E.g. an
 * English-language diploma carries the Dutch-proficiency question.
 *
 * `handmatig` is the fallback when the diploma is not in the DUO list: the
 * professions the user may declare and the MAXIMAL policy-question set that then
 * applies (a manual diploma is unverified, so the strictest set is used).
 */
export interface DuoLookupDto {
  diplomas: DuoDiplomaDto[];
  handmatig: ManualDiplomaPolicyDto;
}

export interface DuoDiplomaDto {
  id: string;
  naam: string;
  instelling: string;
  jaar: number;
  beroep: string; // server-derived profession
  policyQuestions: PolicyQuestionDto[]; // server-decided geldigheidsvragen
}

export interface ManualDiplomaPolicyDto {
  beroepen: string[]; // professions the user may declare for a manual diploma
  policyQuestions: PolicyQuestionDto[]; // maximal set applied to a manual diploma
}

export interface PolicyQuestionDto {
  id: string;
  vraag: string;
  type: 'ja-nee' | 'tekst';
}
