Office
import type { Office } from "https://googleapis.deno.dev/v1/civicinfo:v2.ts";
Information about an Office held by one or more Officials.
interface Office {
divisionId?: string;
levels?:
| "international"
| "country"
| "administrativeArea1"
| "regional"
| "administrativeArea2"
| "locality"
| "subLocality1"
| "subLocality2"
| "special"[];
name?: string;
officialIndices?: number[];
roles?:
| "headOfState"
| "headOfGovernment"
| "deputyHeadOfGovernment"
| "governmentOfficer"
| "executiveCouncil"
| "legislatorUpperBody"
| "legislatorLowerBody"
| "highestCourtJudge"
| "judge"
| "schoolBoard"
| "specialPurposeOfficer"
| "otherRole"[];
sources?: Source[];
}§Properties
§
levels?: "international" | "country" | "administrativeArea1" | "regional" | "administrativeArea2" | "locality" | "subLocality1" | "subLocality2" | "special"[]
[src]The levels of government of which this office is part. There may be more than one in cases where a jurisdiction effectively acts at two different levels of government; for example, the mayor of the District of Columbia acts at "locality" level, but also effectively at both "administrative-area-2" and "administrative-area-1".
§
officialIndices?: number[]
[src]List of indices in the officials array of people who presently hold this office.
§
roles?: "headOfState" | "headOfGovernment" | "deputyHeadOfGovernment" | "governmentOfficer" | "executiveCouncil" | "legislatorUpperBody" | "legislatorLowerBody" | "highestCourtJudge" | "judge" | "schoolBoard" | "specialPurposeOfficer" | "otherRole"[]
[src]The roles which this office fulfills. Roles are not meant to be exhaustive, or to exactly specify the entire set of responsibilities of a given office, but are meant to be rough categories that are useful for general selection from or sorting of a list of offices.