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

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

§
divisionId?: string
[src]

The OCD ID of the division with which this office is associated.

§
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".

§
name?: string
[src]

The human-readable name of the office.

§
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.

§
sources?: Source[]
[src]

A list of sources for this office. If multiple sources are listed, the data has been aggregated from those sources.