export interface PositionTypeDto {
  id: string;
  name: {
    am: string;
    en: string;
  };
  key: string;
  /**
   * Null for the built-in ("common") types, which `isSystem` marks and which
   * every unit can use. IAM has no organizationId on a position type — the
   * owning organization is only reachable via unit -> organizationId.
   */
  unitId: string | null;
  /** Built-in type. IAM rejects update/delete on these with a 403. */
  isSystem?: boolean;
  createdAt: string;
  updatedAt: string;
}

export interface PositionTypesListResponse {
  count: number;
  items: PositionTypeDto[];
}
