Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

RepresentativesRepresentativeInfoByDivisionOptions

import type { RepresentativesRepresentativeInfoByDivisionOptions } from "https://googleapis.deno.dev/v1/civicinfo:v2.ts";

Additional options for Civicinfo#representativesRepresentativeInfoByDivision.

interface RepresentativesRepresentativeInfoByDivisionOptions {
levels?:
| "international"
| "country"
| "administrativeArea1"
| "regional"
| "administrativeArea2"
| "locality"
| "subLocality1"
| "subLocality2"
| "special";
recursive?: boolean;
roles?:
| "headOfState"
| "headOfGovernment"
| "deputyHeadOfGovernment"
| "governmentOfficer"
| "executiveCouncil"
| "legislatorUpperBody"
| "legislatorLowerBody"
| "highestCourtJudge"
| "judge"
| "schoolBoard"
| "specialPurposeOfficer"
| "otherRole";
}

§Properties

§
levels?: "international" | "country" | "administrativeArea1" | "regional" | "administrativeArea2" | "locality" | "subLocality1" | "subLocality2" | "special"
[src]

A list of office levels to filter by. Only offices that serve at least one of these levels will be returned. Divisions that don't contain a matching office will not be returned.

§
recursive?: boolean
[src]

If true, information about all divisions contained in the division requested will be included as well. For example, if querying ocd-division/country:us/district:dc, this would also return all DC's wards and ANCs.

§
roles?: "headOfState" | "headOfGovernment" | "deputyHeadOfGovernment" | "governmentOfficer" | "executiveCouncil" | "legislatorUpperBody" | "legislatorLowerBody" | "highestCourtJudge" | "judge" | "schoolBoard" | "specialPurposeOfficer" | "otherRole"
[src]

A list of office roles to filter by. Only offices fulfilling one of these roles will be returned. Divisions that don't contain a matching office will not be returned.