@burdenoff/microfe-govcitizenhub 2026.720.6 → 2026.730.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/govcitizenhub/GovCitizenHubRoot.d.ts.map +1 -1
- package/dist/govcitizenhub/GovCitizenHubRoot.js +44 -36
- package/dist/govcitizenhub/GovCitizenHubRoot.js.map +1 -1
- package/dist/govcitizenhub/GovCitizenHubRoutes.d.ts.map +1 -1
- package/dist/govcitizenhub/GovCitizenHubRoutes.js +134 -6
- package/dist/govcitizenhub/GovCitizenHubRoutes.js.map +1 -1
- package/dist/govcitizenhub/components/DocumentUploadField.d.ts +17 -11
- package/dist/govcitizenhub/components/DocumentUploadField.d.ts.map +1 -1
- package/dist/govcitizenhub/components/DocumentUploadField.js +45 -42
- package/dist/govcitizenhub/components/DocumentUploadField.js.map +1 -1
- package/dist/govcitizenhub/components/GovCharts.js +127 -51
- package/dist/govcitizenhub/components/GovCharts.js.map +1 -1
- package/dist/govcitizenhub/hooks/index.d.ts +2 -0
- package/dist/govcitizenhub/hooks/index.d.ts.map +1 -1
- package/dist/govcitizenhub/hooks/index.js +2 -0
- package/dist/govcitizenhub/hooks/useGovApi.d.ts +23 -0
- package/dist/govcitizenhub/hooks/useGovApi.d.ts.map +1 -1
- package/dist/govcitizenhub/hooks/useGovApi.js +18 -7
- package/dist/govcitizenhub/hooks/useGovApi.js.map +1 -1
- package/dist/govcitizenhub/hooks/useGovCitizenHubAnalytics.d.ts +24 -0
- package/dist/govcitizenhub/hooks/useGovCitizenHubAnalytics.d.ts.map +1 -0
- package/dist/govcitizenhub/hooks/useGovCitizenHubAnalytics.js +40 -0
- package/dist/govcitizenhub/hooks/useGovCitizenHubAnalytics.js.map +1 -0
- package/dist/govcitizenhub/hooks/useIntelligenceApi.d.ts +214 -0
- package/dist/govcitizenhub/hooks/useIntelligenceApi.d.ts.map +1 -0
- package/dist/govcitizenhub/hooks/useIntelligenceApi.js +1140 -0
- package/dist/govcitizenhub/hooks/useIntelligenceApi.js.map +1 -0
- package/dist/govcitizenhub/index.d.ts +1 -0
- package/dist/govcitizenhub/index.d.ts.map +1 -1
- package/dist/govcitizenhub/index.js +18 -0
- package/dist/govcitizenhub/pages/agencies/AgenciesPage.js +7 -7
- package/dist/govcitizenhub/pages/agencies/AgencyFormDialog.js +6 -6
- package/dist/govcitizenhub/pages/applications/ApplicationDetailPage.d.ts.map +1 -1
- package/dist/govcitizenhub/pages/applications/ApplicationDetailPage.js +178 -172
- package/dist/govcitizenhub/pages/applications/ApplicationDetailPage.js.map +1 -1
- package/dist/govcitizenhub/pages/applications/ApplicationsPage.js +35 -35
- package/dist/govcitizenhub/pages/applications/ApplicationsPage.js.map +1 -1
- package/dist/govcitizenhub/pages/applications/NewApplicationPage.d.ts.map +1 -1
- package/dist/govcitizenhub/pages/applications/NewApplicationPage.js +151 -147
- package/dist/govcitizenhub/pages/applications/NewApplicationPage.js.map +1 -1
- package/dist/govcitizenhub/pages/documents/DocumentsPage.js +5 -5
- package/dist/govcitizenhub/pages/grievances/GrievanceDetailPage.js +30 -30
- package/dist/govcitizenhub/pages/grievances/GrievanceDetailPage.js.map +1 -1
- package/dist/govcitizenhub/pages/grievances/GrievancesPage.d.ts.map +1 -1
- package/dist/govcitizenhub/pages/grievances/GrievancesPage.js +176 -172
- package/dist/govcitizenhub/pages/grievances/GrievancesPage.js.map +1 -1
- package/dist/govcitizenhub/pages/intelligence/AdminLevelsPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/AdminLevelsPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/AdminLevelsPage.js +634 -0
- package/dist/govcitizenhub/pages/intelligence/AdminLevelsPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/AssetFormDialog.d.ts +20 -0
- package/dist/govcitizenhub/pages/intelligence/AssetFormDialog.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/AssetFormDialog.js +537 -0
- package/dist/govcitizenhub/pages/intelligence/AssetFormDialog.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/AssetImage.d.ts +11 -0
- package/dist/govcitizenhub/pages/intelligence/AssetImage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/AssetImage.js +25 -0
- package/dist/govcitizenhub/pages/intelligence/AssetImage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/AssetMapPanel.d.ts +15 -0
- package/dist/govcitizenhub/pages/intelligence/AssetMapPanel.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/AssetMapPanel.js +203 -0
- package/dist/govcitizenhub/pages/intelligence/AssetMapPanel.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/BenchmarkPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/BenchmarkPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/BenchmarkPage.js +497 -0
- package/dist/govcitizenhub/pages/intelligence/BenchmarkPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/BudgetPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/BudgetPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/BudgetPage.js +1084 -0
- package/dist/govcitizenhub/pages/intelligence/BudgetPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationFormDialog.d.ts +13 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationFormDialog.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationFormDialog.js +581 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationFormDialog.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationParticipateDialog.d.ts +11 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationParticipateDialog.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationParticipateDialog.js +429 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationParticipateDialog.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationResultsPanel.d.ts +8 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationResultsPanel.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationResultsPanel.js +235 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationResultsPanel.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationsPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationsPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationsPage.js +534 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationsPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/CorrectionsPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/CorrectionsPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/CorrectionsPage.js +723 -0
- package/dist/govcitizenhub/pages/intelligence/CorrectionsPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ElectionsPage.d.ts +5 -0
- package/dist/govcitizenhub/pages/intelligence/ElectionsPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ElectionsPage.js +1029 -0
- package/dist/govcitizenhub/pages/intelligence/ElectionsPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/GovernancePage.d.ts +5 -0
- package/dist/govcitizenhub/pages/intelligence/GovernancePage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/GovernancePage.js +1545 -0
- package/dist/govcitizenhub/pages/intelligence/GovernancePage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/IndicatorCatalogPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/IndicatorCatalogPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/IndicatorCatalogPage.js +960 -0
- package/dist/govcitizenhub/pages/intelligence/IndicatorCatalogPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/IndicatorsPage.d.ts +13 -0
- package/dist/govcitizenhub/pages/intelligence/IndicatorsPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/IndicatorsPage.js +927 -0
- package/dist/govcitizenhub/pages/intelligence/IndicatorsPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionDirectoryPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionDirectoryPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionDirectoryPage.js +620 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionDirectoryPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionLayout.d.ts +20 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionLayout.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionLayout.js +183 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionLayout.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionProfilePage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionProfilePage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionProfilePage.js +629 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionProfilePage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/OpenDataPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/OpenDataPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/OpenDataPage.js +1124 -0
- package/dist/govcitizenhub/pages/intelligence/OpenDataPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ProjectsPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/ProjectsPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ProjectsPage.js +1518 -0
- package/dist/govcitizenhub/pages/intelligence/ProjectsPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/PublicAssetsPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/PublicAssetsPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/PublicAssetsPage.js +577 -0
- package/dist/govcitizenhub/pages/intelligence/PublicAssetsPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ServicePerformancePage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/ServicePerformancePage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ServicePerformancePage.js +534 -0
- package/dist/govcitizenhub/pages/intelligence/ServicePerformancePage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/TimelinePage.d.ts +5 -0
- package/dist/govcitizenhub/pages/intelligence/TimelinePage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/TimelinePage.js +538 -0
- package/dist/govcitizenhub/pages/intelligence/TimelinePage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/consultationQuestions.d.ts +53 -0
- package/dist/govcitizenhub/pages/intelligence/consultationQuestions.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/consultationQuestions.js +138 -0
- package/dist/govcitizenhub/pages/intelligence/consultationQuestions.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/index.d.ts +27 -0
- package/dist/govcitizenhub/pages/intelligence/index.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/index.js +17 -0
- package/dist/govcitizenhub/pages/payments/PaymentsPage.d.ts.map +1 -1
- package/dist/govcitizenhub/pages/payments/PaymentsPage.js +53 -49
- package/dist/govcitizenhub/pages/payments/PaymentsPage.js.map +1 -1
- package/dist/govcitizenhub/pages/permits/IssuePermitDialog.d.ts.map +1 -1
- package/dist/govcitizenhub/pages/permits/IssuePermitDialog.js +82 -76
- package/dist/govcitizenhub/pages/permits/IssuePermitDialog.js.map +1 -1
- package/dist/govcitizenhub/pages/permits/PermitsPage.d.ts.map +1 -1
- package/dist/govcitizenhub/pages/permits/PermitsPage.js +174 -120
- package/dist/govcitizenhub/pages/permits/PermitsPage.js.map +1 -1
- package/dist/govcitizenhub/pages/services/ServiceDetailPage.js +8 -8
- package/dist/govcitizenhub/pages/services/ServiceFormDialog.js +98 -98
- package/dist/govcitizenhub/pages/services/ServiceFormDialog.js.map +1 -1
- package/dist/govcitizenhub/types/index.d.ts +1 -0
- package/dist/govcitizenhub/types/index.d.ts.map +1 -1
- package/dist/govcitizenhub/types/intelligence.d.ts +1559 -0
- package/dist/govcitizenhub/types/intelligence.d.ts.map +1 -0
- package/dist/govcitizenhub/types/intelligence.js +125 -0
- package/dist/govcitizenhub/types/intelligence.js.map +1 -0
- package/dist/index.js +19 -2
- package/dist/node_modules/recharts/es6/chart/BarChart.js +24 -0
- package/dist/node_modules/recharts/es6/chart/BarChart.js.map +1 -0
- package/dist/utils/pageContext.d.ts +1 -0
- package/dist/utils/pageContext.d.ts.map +1 -1
- package/dist/utils/pageContext.js +44 -17
- package/dist/utils/pageContext.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,1559 @@
|
|
|
1
|
+
import { GovConnection, GovJson, GovServiceCategory, GovTrendDirection } from './index';
|
|
2
|
+
|
|
3
|
+
/** Publication lifecycle of a jurisdiction profile. DRAFT is never citizen-visible. */
|
|
4
|
+
export type GovJurisdictionStatus = 'DRAFT' | 'PUBLISHED' | 'ARCHIVED';
|
|
5
|
+
/** Provenance grade of a published civic fact. */
|
|
6
|
+
export type GovVerificationStatus = 'UNVERIFIED' | 'OFFICIAL' | 'COMMUNITY_VERIFIED' | 'DISPUTED';
|
|
7
|
+
/** Nature of an office holder's appointment. */
|
|
8
|
+
export type GovOfficeType = 'ELECTED' | 'ADMINISTRATIVE' | 'JUDICIAL' | 'ADVISORY';
|
|
9
|
+
/** Delivery state of a public promise made by an office holder. */
|
|
10
|
+
export type GovCommitmentStatus = 'PROMISED' | 'IN_PROGRESS' | 'DELIVERED' | 'STALLED' | 'ABANDONED';
|
|
11
|
+
/** Approval lifecycle of a published budget. */
|
|
12
|
+
export type GovBudgetStatus = 'DRAFT' | 'PROPOSED' | 'APPROVED' | 'REVISED' | 'CLOSED';
|
|
13
|
+
/** Which side of the ledger a budget line sits on. */
|
|
14
|
+
export type GovBudgetLineKind = 'REVENUE' | 'EXPENSE';
|
|
15
|
+
/**
|
|
16
|
+
* Budget classification. `TAXES`..`OTHER_REVENUE` are revenue-side;
|
|
17
|
+
* `EDUCATION`..`OTHER_EXPENSE` are expense-side. The backend rejects a category
|
|
18
|
+
* that does not match its line's `kind` — see `GOV_REVENUE_CATEGORIES` /
|
|
19
|
+
* `GOV_EXPENSE_CATEGORIES` for the same split.
|
|
20
|
+
*/
|
|
21
|
+
export type GovBudgetCategory = 'TAXES' | 'FEES_AND_CHARGES' | 'GRANTS' | 'INTERGOVERNMENTAL_TRANSFERS' | 'LOANS' | 'INTERNATIONAL_AID' | 'PUBLIC_PRIVATE_PARTNERSHIP' | 'ASSET_SALES' | 'OTHER_REVENUE' | 'EDUCATION' | 'HEALTHCARE' | 'ROADS_AND_TRANSPORT' | 'WATER_AND_SANITATION' | 'ENERGY' | 'AGRICULTURE' | 'ENVIRONMENT' | 'PUBLIC_SAFETY' | 'SOCIAL_WELFARE' | 'HOUSING' | 'DIGITAL_INFRASTRUCTURE' | 'CULTURE_AND_RECREATION' | 'ADMINISTRATION' | 'DEBT_SERVICE' | 'CAPITAL_PROJECTS' | 'OTHER_EXPENSE';
|
|
22
|
+
/** Where a development project's money comes from. */
|
|
23
|
+
export type GovFundingSource = 'LOCAL_REVENUE' | 'STATE_GRANT' | 'NATIONAL_GRANT' | 'LOAN' | 'INTERNATIONAL_AID' | 'PUBLIC_PRIVATE_PARTNERSHIP' | 'CSR' | 'OTHER';
|
|
24
|
+
/** Delivery lifecycle of a development project. */
|
|
25
|
+
export type GovProjectStatus = 'PLANNED' | 'TENDERED' | 'AWARDED' | 'IN_PROGRESS' | 'SUSPENDED' | 'COMPLETED' | 'CANCELLED';
|
|
26
|
+
/** Delivery state of a project milestone. */
|
|
27
|
+
export type GovMilestoneStatus = 'PENDING' | 'IN_PROGRESS' | 'COMPLETED' | 'DELAYED' | 'CANCELLED';
|
|
28
|
+
/** Sector taxonomy shared by indicators, projects and datasets. */
|
|
29
|
+
export type GovIndicatorDomain = 'DEMOGRAPHICS' | 'ECONOMY' | 'EDUCATION' | 'HEALTHCARE' | 'INFRASTRUCTURE' | 'PUBLIC_SAFETY' | 'ENVIRONMENT' | 'SOCIAL_WELFARE' | 'UTILITIES' | 'TRANSPORT' | 'HOUSING' | 'GOVERNANCE' | 'DIGITAL' | 'TOURISM' | 'FINANCE';
|
|
30
|
+
/** How an indicator's value should be read and formatted. */
|
|
31
|
+
export type GovIndicatorValueType = 'NUMBER' | 'PERCENTAGE' | 'RATIO' | 'CURRENCY' | 'INDEX' | 'COUNT' | 'DURATION_DAYS';
|
|
32
|
+
/** Whether a rising value is good, bad or neutral. */
|
|
33
|
+
export type GovIndicatorDirection = 'HIGHER_IS_BETTER' | 'LOWER_IS_BETTER' | 'NEUTRAL';
|
|
34
|
+
/** How often an indicator or dataset is expected to be refreshed. */
|
|
35
|
+
export type GovIndicatorPeriodicity = 'ANNUAL' | 'QUARTERLY' | 'MONTHLY' | 'WEEKLY' | 'DAILY' | 'ADHOC';
|
|
36
|
+
/** Category of a mapped public asset, facility, organisation or landmark. */
|
|
37
|
+
export type GovAssetCategory = 'SCHOOL' | 'UNIVERSITY' | 'LIBRARY' | 'HOSPITAL' | 'CLINIC' | 'PHARMACY' | 'POLICE_STATION' | 'FIRE_STATION' | 'EMERGENCY_SHELTER' | 'WATER_FACILITY' | 'POWER_FACILITY' | 'WASTE_FACILITY' | 'TRANSIT_STOP' | 'TRANSIT_STATION' | 'AIRPORT' | 'PORT' | 'BRIDGE' | 'PARK' | 'SPORTS_FACILITY' | 'COMMUNITY_CENTER' | 'GOVERNMENT_OFFICE' | 'PUBLIC_TOILET' | 'PARKING' | 'EV_CHARGING' | 'MARKET' | 'NGO' | 'BUSINESS' | 'LANDMARK' | 'MUSEUM' | 'OTHER';
|
|
38
|
+
/** Who runs a public asset. */
|
|
39
|
+
export type GovAssetOperator = 'PUBLIC' | 'PRIVATE' | 'PUBLIC_PRIVATE' | 'NGO' | 'UNKNOWN';
|
|
40
|
+
/** Operational state of a public asset. */
|
|
41
|
+
export type GovAssetStatus = 'OPERATIONAL' | 'UNDER_CONSTRUCTION' | 'UNDER_MAINTENANCE' | 'CLOSED' | 'PLANNED';
|
|
42
|
+
/** Kind of electoral event. */
|
|
43
|
+
export type GovElectionType = 'GENERAL' | 'LOCAL' | 'BY_ELECTION' | 'REFERENDUM' | 'PRIMARY' | 'OTHER';
|
|
44
|
+
/** Lifecycle of an electoral event. */
|
|
45
|
+
export type GovElectionStatus = 'SCHEDULED' | 'IN_PROGRESS' | 'COUNTING' | 'DECLARED' | 'CANCELLED';
|
|
46
|
+
/** Kind of public participation exercise. */
|
|
47
|
+
export type GovConsultationType = 'SURVEY' | 'POLL' | 'PARTICIPATORY_BUDGET' | 'PUBLIC_HEARING' | 'FEEDBACK';
|
|
48
|
+
/** Lifecycle of a consultation. Responses are only accepted while OPEN. */
|
|
49
|
+
export type GovConsultationStatus = 'DRAFT' | 'OPEN' | 'CLOSED' | 'PUBLISHED' | 'CANCELLED';
|
|
50
|
+
/** Coarse sentiment recorded against a consultation response. */
|
|
51
|
+
export type GovSentiment = 'POSITIVE' | 'NEUTRAL' | 'NEGATIVE';
|
|
52
|
+
/** Distribution format of an open-data dataset. */
|
|
53
|
+
export type GovDatasetFormat = 'CSV' | 'JSON' | 'GEOJSON' | 'XLSX' | 'PDF' | 'XML' | 'API';
|
|
54
|
+
/** Open-data licence a dataset is released under. */
|
|
55
|
+
export type GovDataLicense = 'CC0' | 'CC_BY' | 'CC_BY_SA' | 'ODBL' | 'OGL' | 'PUBLIC_DOMAIN' | 'PROPRIETARY' | 'OTHER';
|
|
56
|
+
/** Publication lifecycle of a dataset. */
|
|
57
|
+
export type GovDatasetStatus = 'DRAFT' | 'PUBLISHED' | 'DEPRECATED' | 'ARCHIVED';
|
|
58
|
+
/** Category of a historical timeline entry. */
|
|
59
|
+
export type GovEventCategory = 'POLICY' | 'PROJECT' | 'ELECTION' | 'DISASTER' | 'INFRASTRUCTURE' | 'DEMOGRAPHIC' | 'BUDGET' | 'AWARD' | 'OTHER';
|
|
60
|
+
/** Whether a timeline entry was good, bad or neutral for the region. */
|
|
61
|
+
export type GovEventImpact = 'POSITIVE' | 'NEUTRAL' | 'NEGATIVE';
|
|
62
|
+
/** Which Community Intelligence record a data-change proposal targets. */
|
|
63
|
+
export type GovIntelEntityType = 'JURISDICTION' | 'OFFICIAL' | 'OFFICIAL_COMMITMENT' | 'BUDGET' | 'BUDGET_LINE' | 'PROJECT' | 'PROJECT_MILESTONE' | 'INDICATOR_VALUE' | 'PUBLIC_ASSET' | 'ELECTION' | 'ELECTION_RESULT' | 'DATASET' | 'EVENT';
|
|
64
|
+
/** Review lifecycle of a proposed data correction. */
|
|
65
|
+
export type GovProposalStatus = 'SUBMITTED' | 'UNDER_REVIEW' | 'ACCEPTED' | 'REJECTED' | 'WITHDRAWN';
|
|
66
|
+
/** Which peer set a jurisdiction is benchmarked against. */
|
|
67
|
+
export type GovBenchmarkScope = 'SIBLINGS' | 'CHILDREN' | 'PARENT_AVERAGE' | 'SAME_LEVEL_NATIONAL' | 'CUSTOM';
|
|
68
|
+
/** Kind of deterministically derived insight surfaced on a jurisdiction profile. */
|
|
69
|
+
export type GovInsightKind = 'STRENGTH' | 'WEAKNESS' | 'EMERGING_ISSUE' | 'ANOMALY' | 'IMPROVEMENT' | 'RISK' | 'COVERAGE_GAP';
|
|
70
|
+
/** How loudly an insight should be surfaced. */
|
|
71
|
+
export type GovInsightSeverity = 'INFO' | 'LOW' | 'MEDIUM' | 'HIGH';
|
|
72
|
+
/** One configurable tier of a country's administrative hierarchy (rank 0 = national). */
|
|
73
|
+
export interface GovAdminLevel {
|
|
74
|
+
id: string;
|
|
75
|
+
workspaceId: string;
|
|
76
|
+
/** ISO 3166-1 alpha-2 country code this tier belongs to. */
|
|
77
|
+
countryCode: string;
|
|
78
|
+
/** Depth of the tier: 0 is the national level, ascending downward. */
|
|
79
|
+
rank: number;
|
|
80
|
+
/** Stable machine code, unique per country (e.g. STATE, DISTRICT, WARD). */
|
|
81
|
+
code: string;
|
|
82
|
+
name: string;
|
|
83
|
+
pluralName: string;
|
|
84
|
+
description?: string | null;
|
|
85
|
+
/** True when the tier elects representatives. */
|
|
86
|
+
isElectoral: boolean;
|
|
87
|
+
createdAt: string;
|
|
88
|
+
updatedAt: string;
|
|
89
|
+
/** Published + draft jurisdictions currently sitting at this tier. */
|
|
90
|
+
jurisdictionCount: number;
|
|
91
|
+
}
|
|
92
|
+
/** The permanent digital profile of one administrative region. */
|
|
93
|
+
export interface GovJurisdiction {
|
|
94
|
+
id: string;
|
|
95
|
+
workspaceId: string;
|
|
96
|
+
parentId?: string | null;
|
|
97
|
+
adminLevelId: string;
|
|
98
|
+
countryCode: string;
|
|
99
|
+
name: string;
|
|
100
|
+
localName?: string | null;
|
|
101
|
+
officialCode?: string | null;
|
|
102
|
+
slug: string;
|
|
103
|
+
status: GovJurisdictionStatus;
|
|
104
|
+
/** Materialized ancestor path, `/<id>/<id>/`. */
|
|
105
|
+
path: string;
|
|
106
|
+
depth: number;
|
|
107
|
+
summary?: string | null;
|
|
108
|
+
establishedOn?: string | null;
|
|
109
|
+
headquarters?: string | null;
|
|
110
|
+
officialWebsite?: string | null;
|
|
111
|
+
contactEmail?: string | null;
|
|
112
|
+
contactPhone?: string | null;
|
|
113
|
+
/** Public emergency contacts: `[{ label, number }]`. */
|
|
114
|
+
emergencyNumbers?: GovJson;
|
|
115
|
+
timezone?: string | null;
|
|
116
|
+
languages: string[];
|
|
117
|
+
/** ISO 4217 currency code used by this region. */
|
|
118
|
+
currencyCode?: string | null;
|
|
119
|
+
climateSummary?: string | null;
|
|
120
|
+
areaSqKm?: number | null;
|
|
121
|
+
population?: number | null;
|
|
122
|
+
populationYear?: number | null;
|
|
123
|
+
households?: number | null;
|
|
124
|
+
centroidLat?: number | null;
|
|
125
|
+
centroidLng?: number | null;
|
|
126
|
+
/** Population per square kilometre, derived when both inputs are published. */
|
|
127
|
+
populationDensity?: number | null;
|
|
128
|
+
/** wspace-files-svc File id holding the boundary GeoJSON. */
|
|
129
|
+
boundaryFileId?: string | null;
|
|
130
|
+
bannerFileId?: string | null;
|
|
131
|
+
crestFileId?: string | null;
|
|
132
|
+
tags: string[];
|
|
133
|
+
sourceName?: string | null;
|
|
134
|
+
sourceUrl?: string | null;
|
|
135
|
+
verification: GovVerificationStatus;
|
|
136
|
+
publishedAt?: string | null;
|
|
137
|
+
createdAt: string;
|
|
138
|
+
updatedAt: string;
|
|
139
|
+
adminLevel?: GovAdminLevel | null;
|
|
140
|
+
parent?: GovJurisdiction | null;
|
|
141
|
+
children?: GovJurisdiction[];
|
|
142
|
+
/** Ancestors ordered from the root down to the immediate parent. */
|
|
143
|
+
ancestors?: GovJurisdiction[];
|
|
144
|
+
}
|
|
145
|
+
/** A node in the administrative hierarchy tree, with its children inlined. */
|
|
146
|
+
export interface GovJurisdictionTreeNode {
|
|
147
|
+
id: string;
|
|
148
|
+
name: string;
|
|
149
|
+
slug: string;
|
|
150
|
+
status: GovJurisdictionStatus;
|
|
151
|
+
depth: number;
|
|
152
|
+
adminLevelCode: string;
|
|
153
|
+
adminLevelName: string;
|
|
154
|
+
population?: number | null;
|
|
155
|
+
childCount: number;
|
|
156
|
+
children: GovJurisdictionTreeNode[];
|
|
157
|
+
}
|
|
158
|
+
/** Single page-load aggregate for the jurisdiction profile screen. */
|
|
159
|
+
export interface GovJurisdictionOverview {
|
|
160
|
+
jurisdiction: GovJurisdiction;
|
|
161
|
+
adminLevel?: GovAdminLevel | null;
|
|
162
|
+
parent?: GovJurisdiction | null;
|
|
163
|
+
childCount: number;
|
|
164
|
+
officialCount: number;
|
|
165
|
+
currentBudget?: GovBudget | null;
|
|
166
|
+
activeProjectCount: number;
|
|
167
|
+
completedProjectCount: number;
|
|
168
|
+
publishedDatasetCount: number;
|
|
169
|
+
openConsultationCount: number;
|
|
170
|
+
publicAssetCount: number;
|
|
171
|
+
followerCount: number;
|
|
172
|
+
/** Whether the calling actor follows this jurisdiction. */
|
|
173
|
+
isFollowedByMe: boolean;
|
|
174
|
+
scorecard?: GovJurisdictionScorecard | null;
|
|
175
|
+
insights: GovJurisdictionInsight[];
|
|
176
|
+
}
|
|
177
|
+
/** An elected representative or administrative office holder for a jurisdiction. */
|
|
178
|
+
export interface GovOfficial {
|
|
179
|
+
id: string;
|
|
180
|
+
workspaceId: string;
|
|
181
|
+
jurisdictionId: string;
|
|
182
|
+
fullName: string;
|
|
183
|
+
localName?: string | null;
|
|
184
|
+
officeTitle: string;
|
|
185
|
+
officeType: GovOfficeType;
|
|
186
|
+
department?: string | null;
|
|
187
|
+
party?: string | null;
|
|
188
|
+
isIndependent: boolean;
|
|
189
|
+
photoFileId?: string | null;
|
|
190
|
+
biography?: string | null;
|
|
191
|
+
contactEmail?: string | null;
|
|
192
|
+
contactPhone?: string | null;
|
|
193
|
+
officeAddress?: string | null;
|
|
194
|
+
officeHours?: string | null;
|
|
195
|
+
/** Public social profiles: `[{ platform, url }]`. */
|
|
196
|
+
socialProfiles?: GovJson;
|
|
197
|
+
termStart?: string | null;
|
|
198
|
+
termEnd?: string | null;
|
|
199
|
+
termDurationMonths?: number | null;
|
|
200
|
+
electedOn?: string | null;
|
|
201
|
+
nextElectionOn?: string | null;
|
|
202
|
+
/** Published sitting/house attendance, 0-100. */
|
|
203
|
+
attendancePercent?: number | null;
|
|
204
|
+
votingRecordUrl?: string | null;
|
|
205
|
+
committees: string[];
|
|
206
|
+
responsibilities?: string | null;
|
|
207
|
+
isCurrent: boolean;
|
|
208
|
+
displayOrder: number;
|
|
209
|
+
/** Opaque global-auth user id when the office holder also has a platform account. */
|
|
210
|
+
linkedUserId?: string | null;
|
|
211
|
+
sourceName?: string | null;
|
|
212
|
+
sourceUrl?: string | null;
|
|
213
|
+
verification: GovVerificationStatus;
|
|
214
|
+
createdAt: string;
|
|
215
|
+
updatedAt: string;
|
|
216
|
+
/** Delivered commitments as a share of all non-abandoned commitments, 0-100. */
|
|
217
|
+
commitmentDeliveryRate?: number | null;
|
|
218
|
+
jurisdiction?: GovJurisdiction | null;
|
|
219
|
+
commitments?: GovOfficialCommitment[];
|
|
220
|
+
}
|
|
221
|
+
/** A public promise or pledge, tracked from statement to delivery. */
|
|
222
|
+
export interface GovOfficialCommitment {
|
|
223
|
+
id: string;
|
|
224
|
+
workspaceId: string;
|
|
225
|
+
officialId: string;
|
|
226
|
+
jurisdictionId: string;
|
|
227
|
+
title: string;
|
|
228
|
+
description?: string | null;
|
|
229
|
+
domain?: GovIndicatorDomain | null;
|
|
230
|
+
promisedOn?: string | null;
|
|
231
|
+
targetDate?: string | null;
|
|
232
|
+
status: GovCommitmentStatus;
|
|
233
|
+
progressPercent: number;
|
|
234
|
+
/** Opaque GovProject id when a project delivers this commitment. */
|
|
235
|
+
linkedProjectId?: string | null;
|
|
236
|
+
evidenceUrl?: string | null;
|
|
237
|
+
evidenceFileIds: string[];
|
|
238
|
+
sourceName?: string | null;
|
|
239
|
+
sourceUrl?: string | null;
|
|
240
|
+
verification: GovVerificationStatus;
|
|
241
|
+
createdAt: string;
|
|
242
|
+
updatedAt: string;
|
|
243
|
+
/** True when the target date has passed and the commitment is not DELIVERED. */
|
|
244
|
+
isOverdue: boolean;
|
|
245
|
+
official?: GovOfficial | null;
|
|
246
|
+
}
|
|
247
|
+
/** A past or scheduled electoral event for a jurisdiction. */
|
|
248
|
+
export interface GovElection {
|
|
249
|
+
id: string;
|
|
250
|
+
workspaceId: string;
|
|
251
|
+
jurisdictionId: string;
|
|
252
|
+
name: string;
|
|
253
|
+
electionType: GovElectionType;
|
|
254
|
+
officeTitle?: string | null;
|
|
255
|
+
electionDate: string;
|
|
256
|
+
status: GovElectionStatus;
|
|
257
|
+
registeredVoters?: number | null;
|
|
258
|
+
votesCast?: number | null;
|
|
259
|
+
validVotes?: number | null;
|
|
260
|
+
invalidVotes?: number | null;
|
|
261
|
+
turnoutPercent?: number | null;
|
|
262
|
+
resultDeclaredOn?: string | null;
|
|
263
|
+
sourceName?: string | null;
|
|
264
|
+
sourceUrl?: string | null;
|
|
265
|
+
verification: GovVerificationStatus;
|
|
266
|
+
createdAt: string;
|
|
267
|
+
updatedAt: string;
|
|
268
|
+
/** Winning margin in votes between the top two declared results. */
|
|
269
|
+
winningMarginVotes?: number | null;
|
|
270
|
+
/** Winning margin as a percentage of valid votes. */
|
|
271
|
+
winningMarginPercent?: number | null;
|
|
272
|
+
jurisdiction?: GovJurisdiction | null;
|
|
273
|
+
results?: GovElectionResult[];
|
|
274
|
+
}
|
|
275
|
+
/** One candidate's declared result within an election. */
|
|
276
|
+
export interface GovElectionResult {
|
|
277
|
+
id: string;
|
|
278
|
+
workspaceId: string;
|
|
279
|
+
electionId: string;
|
|
280
|
+
candidateName: string;
|
|
281
|
+
party?: string | null;
|
|
282
|
+
isIndependent: boolean;
|
|
283
|
+
votes: number;
|
|
284
|
+
votePercent?: number | null;
|
|
285
|
+
position?: number | null;
|
|
286
|
+
isWinner: boolean;
|
|
287
|
+
photoFileId?: string | null;
|
|
288
|
+
/** Opaque GovOfficial id once the winner is seated. */
|
|
289
|
+
officialId?: string | null;
|
|
290
|
+
createdAt: string;
|
|
291
|
+
updatedAt: string;
|
|
292
|
+
}
|
|
293
|
+
/** A dated entry on the region's historical timeline. */
|
|
294
|
+
export interface GovJurisdictionEvent {
|
|
295
|
+
id: string;
|
|
296
|
+
workspaceId: string;
|
|
297
|
+
jurisdictionId: string;
|
|
298
|
+
title: string;
|
|
299
|
+
description?: string | null;
|
|
300
|
+
occurredOn: string;
|
|
301
|
+
category: GovEventCategory;
|
|
302
|
+
impact?: GovEventImpact | null;
|
|
303
|
+
linkedProjectId?: string | null;
|
|
304
|
+
linkedElectionId?: string | null;
|
|
305
|
+
linkedBudgetId?: string | null;
|
|
306
|
+
imageFileId?: string | null;
|
|
307
|
+
sourceName?: string | null;
|
|
308
|
+
sourceUrl?: string | null;
|
|
309
|
+
verification: GovVerificationStatus;
|
|
310
|
+
createdAt: string;
|
|
311
|
+
updatedAt: string;
|
|
312
|
+
}
|
|
313
|
+
/** One fiscal period's published budget. */
|
|
314
|
+
export interface GovBudget {
|
|
315
|
+
id: string;
|
|
316
|
+
workspaceId: string;
|
|
317
|
+
jurisdictionId: string;
|
|
318
|
+
fiscalYear: string;
|
|
319
|
+
periodStart: string;
|
|
320
|
+
periodEnd: string;
|
|
321
|
+
/** ISO 4217 currency this budget is denominated in. */
|
|
322
|
+
currencyCode: string;
|
|
323
|
+
status: GovBudgetStatus;
|
|
324
|
+
totalRevenuePlanned: number;
|
|
325
|
+
totalRevenueActual?: number | null;
|
|
326
|
+
totalExpensePlanned: number;
|
|
327
|
+
totalExpenseActual?: number | null;
|
|
328
|
+
populationAtPublication?: number | null;
|
|
329
|
+
summary?: string | null;
|
|
330
|
+
/** wspace-files-svc File id for the published budget document. */
|
|
331
|
+
documentFileId?: string | null;
|
|
332
|
+
approvedOn?: string | null;
|
|
333
|
+
publishedAt?: string | null;
|
|
334
|
+
sourceName?: string | null;
|
|
335
|
+
sourceUrl?: string | null;
|
|
336
|
+
verification: GovVerificationStatus;
|
|
337
|
+
createdAt: string;
|
|
338
|
+
updatedAt: string;
|
|
339
|
+
jurisdiction?: GovJurisdiction | null;
|
|
340
|
+
lines?: GovBudgetLine[];
|
|
341
|
+
}
|
|
342
|
+
/** One revenue source or expenditure head within a budget. */
|
|
343
|
+
export interface GovBudgetLine {
|
|
344
|
+
id: string;
|
|
345
|
+
workspaceId: string;
|
|
346
|
+
budgetId: string;
|
|
347
|
+
kind: GovBudgetLineKind;
|
|
348
|
+
category: GovBudgetCategory;
|
|
349
|
+
label: string;
|
|
350
|
+
department?: string | null;
|
|
351
|
+
/** Government functional classification code, where one is published. */
|
|
352
|
+
functionCode?: string | null;
|
|
353
|
+
plannedAmount: number;
|
|
354
|
+
actualAmount?: number | null;
|
|
355
|
+
previousYearAmount?: number | null;
|
|
356
|
+
notes?: string | null;
|
|
357
|
+
displayOrder: number;
|
|
358
|
+
createdAt: string;
|
|
359
|
+
updatedAt: string;
|
|
360
|
+
/** `actualAmount - plannedAmount`; null until an actual is recorded. */
|
|
361
|
+
variance?: number | null;
|
|
362
|
+
/** Variance as a percentage of the planned amount; null when planned is zero. */
|
|
363
|
+
variancePercent?: number | null;
|
|
364
|
+
}
|
|
365
|
+
/** One category's rolled-up planned/actual position within a budget. */
|
|
366
|
+
export interface GovBudgetCategoryRow {
|
|
367
|
+
kind: GovBudgetLineKind;
|
|
368
|
+
category: GovBudgetCategory;
|
|
369
|
+
planned: number;
|
|
370
|
+
actual?: number | null;
|
|
371
|
+
variance?: number | null;
|
|
372
|
+
variancePercent?: number | null;
|
|
373
|
+
/** This category's share of its side of the ledger, 0-100. */
|
|
374
|
+
sharePercent: number;
|
|
375
|
+
}
|
|
376
|
+
/** Planned vs actual execution of a budget, rolled up by category. */
|
|
377
|
+
export interface GovBudgetExecution {
|
|
378
|
+
budgetId: string;
|
|
379
|
+
fiscalYear: string;
|
|
380
|
+
currencyCode: string;
|
|
381
|
+
plannedRevenue: number;
|
|
382
|
+
actualRevenue?: number | null;
|
|
383
|
+
plannedExpense: number;
|
|
384
|
+
actualExpense?: number | null;
|
|
385
|
+
/** Actual expenditure as a percentage of planned; null when nothing is planned. */
|
|
386
|
+
executionPercent?: number | null;
|
|
387
|
+
/** Planned expenditure per head; null when no population is snapshotted. */
|
|
388
|
+
perCapitaExpense?: number | null;
|
|
389
|
+
/** Actual expenditure per head; null when either input is missing. */
|
|
390
|
+
perCapitaActualExpense?: number | null;
|
|
391
|
+
byCategory: GovBudgetCategoryRow[];
|
|
392
|
+
}
|
|
393
|
+
/** A public works / development project, from tender through to completion. */
|
|
394
|
+
export interface GovProject {
|
|
395
|
+
id: string;
|
|
396
|
+
workspaceId: string;
|
|
397
|
+
jurisdictionId: string;
|
|
398
|
+
/** Owning GovAgency, when the project is agency-run. */
|
|
399
|
+
agencyId?: string | null;
|
|
400
|
+
name: string;
|
|
401
|
+
code?: string | null;
|
|
402
|
+
description?: string | null;
|
|
403
|
+
domain: GovIndicatorDomain;
|
|
404
|
+
department?: string | null;
|
|
405
|
+
contractorName?: string | null;
|
|
406
|
+
contractorRegistrationId?: string | null;
|
|
407
|
+
fundingSource: GovFundingSource;
|
|
408
|
+
budgetAmount?: number | null;
|
|
409
|
+
actualCost?: number | null;
|
|
410
|
+
currencyCode?: string | null;
|
|
411
|
+
tenderReference?: string | null;
|
|
412
|
+
tenderUrl?: string | null;
|
|
413
|
+
awardedOn?: string | null;
|
|
414
|
+
startDate?: string | null;
|
|
415
|
+
plannedCompletionDate?: string | null;
|
|
416
|
+
actualCompletionDate?: string | null;
|
|
417
|
+
status: GovProjectStatus;
|
|
418
|
+
progressPercent: number;
|
|
419
|
+
delayReason?: string | null;
|
|
420
|
+
locationLabel?: string | null;
|
|
421
|
+
latitude?: number | null;
|
|
422
|
+
longitude?: number | null;
|
|
423
|
+
imageFileIds: string[];
|
|
424
|
+
documentFileIds: string[];
|
|
425
|
+
beneficiaryCount?: number | null;
|
|
426
|
+
tags: string[];
|
|
427
|
+
sourceName?: string | null;
|
|
428
|
+
sourceUrl?: string | null;
|
|
429
|
+
verification: GovVerificationStatus;
|
|
430
|
+
publishedAt?: string | null;
|
|
431
|
+
createdAt: string;
|
|
432
|
+
updatedAt: string;
|
|
433
|
+
/** Days late, derived at read time. Never negative; null with no planned date. */
|
|
434
|
+
delayDays?: number | null;
|
|
435
|
+
/** `actualCost - budgetAmount`; null until an actual cost is recorded. */
|
|
436
|
+
costVariance?: number | null;
|
|
437
|
+
jurisdiction?: GovJurisdiction | null;
|
|
438
|
+
milestones?: GovProjectMilestone[];
|
|
439
|
+
}
|
|
440
|
+
/** A dated checkpoint within a project's delivery timeline. */
|
|
441
|
+
export interface GovProjectMilestone {
|
|
442
|
+
id: string;
|
|
443
|
+
workspaceId: string;
|
|
444
|
+
projectId: string;
|
|
445
|
+
name: string;
|
|
446
|
+
description?: string | null;
|
|
447
|
+
dueDate?: string | null;
|
|
448
|
+
completedOn?: string | null;
|
|
449
|
+
status: GovMilestoneStatus;
|
|
450
|
+
progressPercent: number;
|
|
451
|
+
evidenceFileId?: string | null;
|
|
452
|
+
displayOrder: number;
|
|
453
|
+
createdAt: string;
|
|
454
|
+
updatedAt: string;
|
|
455
|
+
/** True when the due date has passed and the milestone is not COMPLETED. */
|
|
456
|
+
isOverdue: boolean;
|
|
457
|
+
}
|
|
458
|
+
/** The definition of a measurable civic KPI. */
|
|
459
|
+
export interface GovIndicator {
|
|
460
|
+
id: string;
|
|
461
|
+
workspaceId: string;
|
|
462
|
+
/** Stable dotted code, unique per workspace (e.g. EDU.LITERACY.RATE). */
|
|
463
|
+
code: string;
|
|
464
|
+
name: string;
|
|
465
|
+
description?: string | null;
|
|
466
|
+
domain: GovIndicatorDomain;
|
|
467
|
+
/** Display unit (%, per 1,000, days). */
|
|
468
|
+
unit: string;
|
|
469
|
+
valueType: GovIndicatorValueType;
|
|
470
|
+
direction: GovIndicatorDirection;
|
|
471
|
+
periodicity: GovIndicatorPeriodicity;
|
|
472
|
+
methodology?: string | null;
|
|
473
|
+
targetValue?: number | null;
|
|
474
|
+
/** Normalization floor used when scoring this indicator 0-100. */
|
|
475
|
+
minValue?: number | null;
|
|
476
|
+
/** Normalization ceiling used when scoring this indicator 0-100. */
|
|
477
|
+
maxValue?: number | null;
|
|
478
|
+
/** Only core indicators contribute to the composite scorecard. */
|
|
479
|
+
isCore: boolean;
|
|
480
|
+
weight: number;
|
|
481
|
+
isActive: boolean;
|
|
482
|
+
/** UN Sustainable Development Goal number, 1-17. */
|
|
483
|
+
sdgGoal?: number | null;
|
|
484
|
+
sourceName?: string | null;
|
|
485
|
+
sourceUrl?: string | null;
|
|
486
|
+
createdAt: string;
|
|
487
|
+
updatedAt: string;
|
|
488
|
+
}
|
|
489
|
+
/** One measured fact: an indicator, for a jurisdiction, over a period, with provenance. */
|
|
490
|
+
export interface GovIndicatorValue {
|
|
491
|
+
id: string;
|
|
492
|
+
workspaceId: string;
|
|
493
|
+
indicatorId: string;
|
|
494
|
+
jurisdictionId: string;
|
|
495
|
+
/** Human period label matching the indicator's periodicity (2026, 2026-Q1). */
|
|
496
|
+
periodLabel: string;
|
|
497
|
+
periodStart: string;
|
|
498
|
+
periodEnd: string;
|
|
499
|
+
value: number;
|
|
500
|
+
/** Optional raw components, so a rate can be audited back to its inputs. */
|
|
501
|
+
numerator?: number | null;
|
|
502
|
+
denominator?: number | null;
|
|
503
|
+
targetValue?: number | null;
|
|
504
|
+
sourceName?: string | null;
|
|
505
|
+
sourceUrl?: string | null;
|
|
506
|
+
sourceDate?: string | null;
|
|
507
|
+
/** Opaque GovDataset id this value was derived from, when applicable. */
|
|
508
|
+
datasetId?: string | null;
|
|
509
|
+
verification: GovVerificationStatus;
|
|
510
|
+
notes?: string | null;
|
|
511
|
+
publishedAt?: string | null;
|
|
512
|
+
createdAt: string;
|
|
513
|
+
updatedAt: string;
|
|
514
|
+
indicator?: GovIndicator | null;
|
|
515
|
+
jurisdiction?: GovJurisdiction | null;
|
|
516
|
+
}
|
|
517
|
+
/** One point on an indicator's time series for a jurisdiction. */
|
|
518
|
+
export interface GovIndicatorPoint {
|
|
519
|
+
periodLabel: string;
|
|
520
|
+
periodStart: string;
|
|
521
|
+
value: number;
|
|
522
|
+
targetValue?: number | null;
|
|
523
|
+
verification: GovVerificationStatus;
|
|
524
|
+
}
|
|
525
|
+
/** An indicator's full published history for one jurisdiction. */
|
|
526
|
+
export interface GovIndicatorSeries {
|
|
527
|
+
indicator: GovIndicator;
|
|
528
|
+
jurisdictionId: string;
|
|
529
|
+
points: GovIndicatorPoint[];
|
|
530
|
+
latestValue?: number | null;
|
|
531
|
+
latestPeriodLabel?: string | null;
|
|
532
|
+
/** Percentage change between the two most recent published points. */
|
|
533
|
+
changePercent?: number | null;
|
|
534
|
+
/** Direction of travel, already adjusted for whether higher is better. */
|
|
535
|
+
trend: GovTrendDirection;
|
|
536
|
+
}
|
|
537
|
+
/** A single domain's contribution to a jurisdiction's composite score. */
|
|
538
|
+
export interface GovDomainScore {
|
|
539
|
+
domain: GovIndicatorDomain;
|
|
540
|
+
/** Weighted 0-100 score; null when no core indicator in this domain is measured. */
|
|
541
|
+
score?: number | null;
|
|
542
|
+
/** Core indicators defined in this domain. */
|
|
543
|
+
indicatorCount: number;
|
|
544
|
+
/** Core indicators in this domain that actually have a published value. */
|
|
545
|
+
measuredCount: number;
|
|
546
|
+
trend: GovTrendDirection;
|
|
547
|
+
changePercent?: number | null;
|
|
548
|
+
}
|
|
549
|
+
/** A jurisdiction's composite performance scorecard. */
|
|
550
|
+
export interface GovJurisdictionScorecard {
|
|
551
|
+
jurisdictionId: string;
|
|
552
|
+
jurisdictionName: string;
|
|
553
|
+
periodLabel?: string | null;
|
|
554
|
+
/** Weighted composite 0-100; null when coverage is below the publishable threshold. */
|
|
555
|
+
overallScore?: number | null;
|
|
556
|
+
domains: GovDomainScore[];
|
|
557
|
+
/** Measured core indicators as a percentage of defined core indicators. */
|
|
558
|
+
coveragePercent: number;
|
|
559
|
+
indicatorCount: number;
|
|
560
|
+
measuredCount: number;
|
|
561
|
+
generatedAt: string;
|
|
562
|
+
}
|
|
563
|
+
/** One jurisdiction's standing within a benchmark peer set. */
|
|
564
|
+
export interface GovBenchmarkEntry {
|
|
565
|
+
jurisdictionId: string;
|
|
566
|
+
jurisdictionName: string;
|
|
567
|
+
value: number;
|
|
568
|
+
rank: number;
|
|
569
|
+
}
|
|
570
|
+
/** A jurisdiction benchmarked against a peer set for one indicator. */
|
|
571
|
+
export interface GovBenchmarkResult {
|
|
572
|
+
indicator: GovIndicator;
|
|
573
|
+
jurisdictionId: string;
|
|
574
|
+
periodLabel?: string | null;
|
|
575
|
+
scope: GovBenchmarkScope;
|
|
576
|
+
/** The subject's own entry; null when the subject has no value for the period. */
|
|
577
|
+
subject?: GovBenchmarkEntry | null;
|
|
578
|
+
peers: GovBenchmarkEntry[];
|
|
579
|
+
peerCount: number;
|
|
580
|
+
/** The subject's percentile within the peer set, 0-100. */
|
|
581
|
+
percentile?: number | null;
|
|
582
|
+
average?: number | null;
|
|
583
|
+
median?: number | null;
|
|
584
|
+
best?: GovBenchmarkEntry | null;
|
|
585
|
+
worst?: GovBenchmarkEntry | null;
|
|
586
|
+
/** False when the peer set was too small to publish a rank. */
|
|
587
|
+
isRankPublished: boolean;
|
|
588
|
+
}
|
|
589
|
+
/** A deterministically derived, evidence-carrying observation about a jurisdiction. */
|
|
590
|
+
export interface GovJurisdictionInsight {
|
|
591
|
+
kind: GovInsightKind;
|
|
592
|
+
severity: GovInsightSeverity;
|
|
593
|
+
title: string;
|
|
594
|
+
detail: string;
|
|
595
|
+
domain?: GovIndicatorDomain | null;
|
|
596
|
+
indicatorCode?: string | null;
|
|
597
|
+
evidence: string[];
|
|
598
|
+
generatedAt: string;
|
|
599
|
+
}
|
|
600
|
+
/** Per-service row of a jurisdiction's service-delivery performance rollup. */
|
|
601
|
+
export interface GovServicePerformanceRow {
|
|
602
|
+
serviceId: string;
|
|
603
|
+
serviceName: string;
|
|
604
|
+
applications: number;
|
|
605
|
+
approved: number;
|
|
606
|
+
rejected: number;
|
|
607
|
+
pending: number;
|
|
608
|
+
avgProcessingHours?: number | null;
|
|
609
|
+
slaDays: number;
|
|
610
|
+
slaCompliancePercent?: number | null;
|
|
611
|
+
}
|
|
612
|
+
/** Per-agency row of a jurisdiction's service-delivery performance rollup. */
|
|
613
|
+
export interface GovAgencyPerformanceRow {
|
|
614
|
+
agencyId: string;
|
|
615
|
+
agencyName: string;
|
|
616
|
+
applications: number;
|
|
617
|
+
approved: number;
|
|
618
|
+
rejected: number;
|
|
619
|
+
pending: number;
|
|
620
|
+
avgProcessingHours?: number | null;
|
|
621
|
+
slaCompliancePercent?: number | null;
|
|
622
|
+
}
|
|
623
|
+
/** Service-delivery performance for a jurisdiction, rolled up from live casework. */
|
|
624
|
+
export interface GovServicePerformance {
|
|
625
|
+
jurisdictionId: string;
|
|
626
|
+
totalApplications: number;
|
|
627
|
+
approvedCount: number;
|
|
628
|
+
rejectedCount: number;
|
|
629
|
+
pendingCount: number;
|
|
630
|
+
/** Approvals as a percentage of decided applications; null when nothing is decided. */
|
|
631
|
+
approvalRate?: number | null;
|
|
632
|
+
avgProcessingHours?: number | null;
|
|
633
|
+
slaBreachedCount: number;
|
|
634
|
+
slaCompliancePercent?: number | null;
|
|
635
|
+
byService: GovServicePerformanceRow[];
|
|
636
|
+
byAgency: GovAgencyPerformanceRow[];
|
|
637
|
+
}
|
|
638
|
+
/** Per-category row of a jurisdiction's grievance rollup. */
|
|
639
|
+
export interface GovGrievanceCategoryRow {
|
|
640
|
+
category: GovServiceCategory;
|
|
641
|
+
total: number;
|
|
642
|
+
resolved: number;
|
|
643
|
+
avgResolutionHours?: number | null;
|
|
644
|
+
}
|
|
645
|
+
/** A recurring-issue cluster; cells below the suppression threshold are omitted. */
|
|
646
|
+
export interface GovGrievanceHotspot {
|
|
647
|
+
locationLabel: string;
|
|
648
|
+
latitude?: number | null;
|
|
649
|
+
longitude?: number | null;
|
|
650
|
+
count: number;
|
|
651
|
+
topCategory: GovServiceCategory;
|
|
652
|
+
}
|
|
653
|
+
/** Citizen-issue insight for a jurisdiction, rolled up from live grievances. */
|
|
654
|
+
export interface GovGrievanceInsights {
|
|
655
|
+
jurisdictionId: string;
|
|
656
|
+
total: number;
|
|
657
|
+
open: number;
|
|
658
|
+
inProgress: number;
|
|
659
|
+
resolved: number;
|
|
660
|
+
avgResolutionHours?: number | null;
|
|
661
|
+
byCategory: GovGrievanceCategoryRow[];
|
|
662
|
+
hotspots: GovGrievanceHotspot[];
|
|
663
|
+
}
|
|
664
|
+
/** The mappable registry of everything physical or organisational in a jurisdiction. */
|
|
665
|
+
export interface GovPublicAsset {
|
|
666
|
+
id: string;
|
|
667
|
+
workspaceId: string;
|
|
668
|
+
jurisdictionId: string;
|
|
669
|
+
name: string;
|
|
670
|
+
category: GovAssetCategory;
|
|
671
|
+
subCategory?: string | null;
|
|
672
|
+
description?: string | null;
|
|
673
|
+
operator: GovAssetOperator;
|
|
674
|
+
status: GovAssetStatus;
|
|
675
|
+
address?: string | null;
|
|
676
|
+
latitude?: number | null;
|
|
677
|
+
longitude?: number | null;
|
|
678
|
+
capacity?: number | null;
|
|
679
|
+
/** Unit the capacity is counted in (beds, students, vehicles). */
|
|
680
|
+
capacityUnit?: string | null;
|
|
681
|
+
contactPhone?: string | null;
|
|
682
|
+
contactEmail?: string | null;
|
|
683
|
+
website?: string | null;
|
|
684
|
+
openingHours?: string | null;
|
|
685
|
+
/** Whether the facility is accessible to people with disabilities. */
|
|
686
|
+
isAccessible?: boolean | null;
|
|
687
|
+
establishedOn?: string | null;
|
|
688
|
+
imageFileId?: string | null;
|
|
689
|
+
/** Category-specific attributes, keyed per the documented convention. */
|
|
690
|
+
metadata?: GovJson;
|
|
691
|
+
tags: string[];
|
|
692
|
+
sourceName?: string | null;
|
|
693
|
+
sourceUrl?: string | null;
|
|
694
|
+
verification: GovVerificationStatus;
|
|
695
|
+
createdAt: string;
|
|
696
|
+
updatedAt: string;
|
|
697
|
+
}
|
|
698
|
+
/** A count of assets in one category, for map legends and registry summaries. */
|
|
699
|
+
export interface GovAssetCategoryCount {
|
|
700
|
+
category: GovAssetCategory;
|
|
701
|
+
count: number;
|
|
702
|
+
}
|
|
703
|
+
/** A survey, poll, public hearing or participatory-budgeting exercise. */
|
|
704
|
+
export interface GovConsultation {
|
|
705
|
+
id: string;
|
|
706
|
+
workspaceId: string;
|
|
707
|
+
jurisdictionId: string;
|
|
708
|
+
title: string;
|
|
709
|
+
description?: string | null;
|
|
710
|
+
consultationType: GovConsultationType;
|
|
711
|
+
status: GovConsultationStatus;
|
|
712
|
+
opensAt?: string | null;
|
|
713
|
+
closesAt?: string | null;
|
|
714
|
+
/** `[{ id, label, type, options?, required, min?, max? }]`. */
|
|
715
|
+
questions: GovJson;
|
|
716
|
+
allowAnonymous: boolean;
|
|
717
|
+
/** Pot to distribute, for participatory-budgeting consultations. */
|
|
718
|
+
budgetAmount?: number | null;
|
|
719
|
+
currencyCode?: string | null;
|
|
720
|
+
responseCount: number;
|
|
721
|
+
/** Aggregated, publishable results. Raw responses are never exposed. */
|
|
722
|
+
resultsSummary?: GovJson;
|
|
723
|
+
resultsPublishedAt?: string | null;
|
|
724
|
+
documentFileId?: string | null;
|
|
725
|
+
tags: string[];
|
|
726
|
+
createdAt: string;
|
|
727
|
+
updatedAt: string;
|
|
728
|
+
/** True when the consultation is OPEN and within its date window. */
|
|
729
|
+
isAcceptingResponses: boolean;
|
|
730
|
+
/** Whether the calling actor has already responded. */
|
|
731
|
+
hasRespondedByMe: boolean;
|
|
732
|
+
jurisdiction?: GovJurisdiction | null;
|
|
733
|
+
}
|
|
734
|
+
/** One participant's submission. Only ever readable by its own author. */
|
|
735
|
+
export interface GovConsultationResponse {
|
|
736
|
+
id: string;
|
|
737
|
+
workspaceId: string;
|
|
738
|
+
consultationId: string;
|
|
739
|
+
jurisdictionId: string;
|
|
740
|
+
respondentActorId?: string | null;
|
|
741
|
+
/** `[{ questionId, value }]`. */
|
|
742
|
+
answers: GovJson;
|
|
743
|
+
sentiment?: GovSentiment | null;
|
|
744
|
+
submittedAt: string;
|
|
745
|
+
}
|
|
746
|
+
/** Aggregated answers for one consultation question. */
|
|
747
|
+
export interface GovConsultationQuestionResult {
|
|
748
|
+
questionId: string;
|
|
749
|
+
label: string;
|
|
750
|
+
type: string;
|
|
751
|
+
responseCount: number;
|
|
752
|
+
/** Aggregate for the question. Free-text questions carry a count only. */
|
|
753
|
+
aggregate: GovJson;
|
|
754
|
+
}
|
|
755
|
+
/** Publishable results for a consultation. */
|
|
756
|
+
export interface GovConsultationResults {
|
|
757
|
+
consultationId: string;
|
|
758
|
+
status: GovConsultationStatus;
|
|
759
|
+
responseCount: number;
|
|
760
|
+
resultsPublishedAt?: string | null;
|
|
761
|
+
questions: GovConsultationQuestionResult[];
|
|
762
|
+
/** True when the result set is below the suppression threshold and withheld. */
|
|
763
|
+
isSuppressed: boolean;
|
|
764
|
+
}
|
|
765
|
+
/** An open-data catalogue entry. Metadata only — the bytes live elsewhere. */
|
|
766
|
+
export interface GovDataset {
|
|
767
|
+
id: string;
|
|
768
|
+
workspaceId: string;
|
|
769
|
+
jurisdictionId?: string | null;
|
|
770
|
+
name: string;
|
|
771
|
+
slug: string;
|
|
772
|
+
description?: string | null;
|
|
773
|
+
domain?: GovIndicatorDomain | null;
|
|
774
|
+
format: GovDatasetFormat;
|
|
775
|
+
license: GovDataLicense;
|
|
776
|
+
licenseUrl?: string | null;
|
|
777
|
+
version: string;
|
|
778
|
+
/** wspace-files-svc File id holding the dataset. */
|
|
779
|
+
fileId?: string | null;
|
|
780
|
+
/** Publisher-hosted location, when the data is not held on the platform. */
|
|
781
|
+
externalUrl?: string | null;
|
|
782
|
+
periodStart?: string | null;
|
|
783
|
+
periodEnd?: string | null;
|
|
784
|
+
updateFrequency?: GovIndicatorPeriodicity | null;
|
|
785
|
+
rowCount?: number | null;
|
|
786
|
+
sizeBytes?: number | null;
|
|
787
|
+
publisher?: string | null;
|
|
788
|
+
contactEmail?: string | null;
|
|
789
|
+
status: GovDatasetStatus;
|
|
790
|
+
publishedAt?: string | null;
|
|
791
|
+
downloadCount: number;
|
|
792
|
+
tags: string[];
|
|
793
|
+
createdAt: string;
|
|
794
|
+
updatedAt: string;
|
|
795
|
+
jurisdiction?: GovJurisdiction | null;
|
|
796
|
+
}
|
|
797
|
+
/** A citizen's subscription to a jurisdiction's updates. */
|
|
798
|
+
export interface GovJurisdictionFollow {
|
|
799
|
+
id: string;
|
|
800
|
+
workspaceId: string;
|
|
801
|
+
jurisdictionId: string;
|
|
802
|
+
actorId: string;
|
|
803
|
+
/** Delivery channels: IN_APP | EMAIL. */
|
|
804
|
+
channels: string[];
|
|
805
|
+
/** Topics: BUDGET | PROJECT | ELECTION | CONSULTATION | EMERGENCY | INDICATOR | DATASET. */
|
|
806
|
+
topics: string[];
|
|
807
|
+
createdAt: string;
|
|
808
|
+
jurisdiction?: GovJurisdiction | null;
|
|
809
|
+
}
|
|
810
|
+
/** A proposed correction to published civic data, with evidence, reviewed by an official. */
|
|
811
|
+
export interface GovDataChangeProposal {
|
|
812
|
+
id: string;
|
|
813
|
+
workspaceId: string;
|
|
814
|
+
jurisdictionId: string;
|
|
815
|
+
entityType: GovIntelEntityType;
|
|
816
|
+
entityId: string;
|
|
817
|
+
fieldPath: string;
|
|
818
|
+
currentValue?: string | null;
|
|
819
|
+
proposedValue: string;
|
|
820
|
+
rationale: string;
|
|
821
|
+
evidenceUrl?: string | null;
|
|
822
|
+
evidenceFileIds: string[];
|
|
823
|
+
status: GovProposalStatus;
|
|
824
|
+
submittedByActorId: string;
|
|
825
|
+
submittedAt: string;
|
|
826
|
+
reviewedByActorId?: string | null;
|
|
827
|
+
reviewedAt?: string | null;
|
|
828
|
+
reviewNote?: string | null;
|
|
829
|
+
appliedAt?: string | null;
|
|
830
|
+
createdAt: string;
|
|
831
|
+
updatedAt: string;
|
|
832
|
+
jurisdiction?: GovJurisdiction | null;
|
|
833
|
+
}
|
|
834
|
+
export type GovAdminLevelConnection = GovConnection<GovAdminLevel>;
|
|
835
|
+
export type GovJurisdictionConnection = GovConnection<GovJurisdiction>;
|
|
836
|
+
export type GovOfficialConnection = GovConnection<GovOfficial>;
|
|
837
|
+
export type GovOfficialCommitmentConnection = GovConnection<GovOfficialCommitment>;
|
|
838
|
+
export type GovElectionConnection = GovConnection<GovElection>;
|
|
839
|
+
export type GovJurisdictionEventConnection = GovConnection<GovJurisdictionEvent>;
|
|
840
|
+
export type GovBudgetConnection = GovConnection<GovBudget>;
|
|
841
|
+
export type GovProjectConnection = GovConnection<GovProject>;
|
|
842
|
+
export type GovIndicatorConnection = GovConnection<GovIndicator>;
|
|
843
|
+
export type GovIndicatorValueConnection = GovConnection<GovIndicatorValue>;
|
|
844
|
+
export type GovPublicAssetConnection = GovConnection<GovPublicAsset>;
|
|
845
|
+
export type GovConsultationConnection = GovConnection<GovConsultation>;
|
|
846
|
+
export type GovDatasetConnection = GovConnection<GovDataset>;
|
|
847
|
+
export type GovDataChangeProposalConnection = GovConnection<GovDataChangeProposal>;
|
|
848
|
+
export interface GovJurisdictionFilterInput {
|
|
849
|
+
parentId?: string | null;
|
|
850
|
+
adminLevelId?: string | null;
|
|
851
|
+
countryCode?: string | null;
|
|
852
|
+
status?: GovJurisdictionStatus | null;
|
|
853
|
+
/** Free-text match against name, local name and official code. */
|
|
854
|
+
search?: string | null;
|
|
855
|
+
/** Restrict to descendants of this jurisdiction (materialized-path subtree). */
|
|
856
|
+
ancestorId?: string | null;
|
|
857
|
+
tags?: string[] | null;
|
|
858
|
+
}
|
|
859
|
+
export interface GovOfficialFilterInput {
|
|
860
|
+
jurisdictionId?: string | null;
|
|
861
|
+
officeType?: GovOfficeType | null;
|
|
862
|
+
isCurrent?: boolean | null;
|
|
863
|
+
party?: string | null;
|
|
864
|
+
search?: string | null;
|
|
865
|
+
}
|
|
866
|
+
export interface GovOfficialCommitmentFilterInput {
|
|
867
|
+
officialId?: string | null;
|
|
868
|
+
jurisdictionId?: string | null;
|
|
869
|
+
status?: GovCommitmentStatus | null;
|
|
870
|
+
domain?: GovIndicatorDomain | null;
|
|
871
|
+
}
|
|
872
|
+
export interface GovElectionFilterInput {
|
|
873
|
+
jurisdictionId?: string | null;
|
|
874
|
+
electionType?: GovElectionType | null;
|
|
875
|
+
status?: GovElectionStatus | null;
|
|
876
|
+
fromDate?: string | null;
|
|
877
|
+
toDate?: string | null;
|
|
878
|
+
}
|
|
879
|
+
export interface GovBudgetFilterInput {
|
|
880
|
+
jurisdictionId?: string | null;
|
|
881
|
+
fiscalYear?: string | null;
|
|
882
|
+
status?: GovBudgetStatus | null;
|
|
883
|
+
}
|
|
884
|
+
export interface GovProjectFilterInput {
|
|
885
|
+
jurisdictionId?: string | null;
|
|
886
|
+
agencyId?: string | null;
|
|
887
|
+
status?: GovProjectStatus | null;
|
|
888
|
+
domain?: GovIndicatorDomain | null;
|
|
889
|
+
fundingSource?: GovFundingSource | null;
|
|
890
|
+
department?: string | null;
|
|
891
|
+
search?: string | null;
|
|
892
|
+
/** Only projects running late by at least one day. */
|
|
893
|
+
delayedOnly?: boolean | null;
|
|
894
|
+
}
|
|
895
|
+
export interface GovIndicatorFilterInput {
|
|
896
|
+
domain?: GovIndicatorDomain | null;
|
|
897
|
+
isCore?: boolean | null;
|
|
898
|
+
isActive?: boolean | null;
|
|
899
|
+
sdgGoal?: number | null;
|
|
900
|
+
search?: string | null;
|
|
901
|
+
}
|
|
902
|
+
export interface GovIndicatorValueFilterInput {
|
|
903
|
+
jurisdictionId?: string | null;
|
|
904
|
+
indicatorId?: string | null;
|
|
905
|
+
indicatorCode?: string | null;
|
|
906
|
+
domain?: GovIndicatorDomain | null;
|
|
907
|
+
periodLabel?: string | null;
|
|
908
|
+
fromPeriodStart?: string | null;
|
|
909
|
+
toPeriodStart?: string | null;
|
|
910
|
+
verification?: GovVerificationStatus | null;
|
|
911
|
+
}
|
|
912
|
+
export interface GovPublicAssetFilterInput {
|
|
913
|
+
jurisdictionId?: string | null;
|
|
914
|
+
category?: GovAssetCategory | null;
|
|
915
|
+
operator?: GovAssetOperator | null;
|
|
916
|
+
status?: GovAssetStatus | null;
|
|
917
|
+
isAccessible?: boolean | null;
|
|
918
|
+
search?: string | null;
|
|
919
|
+
/** Only assets that carry coordinates, for map layers. */
|
|
920
|
+
mappableOnly?: boolean | null;
|
|
921
|
+
}
|
|
922
|
+
export interface GovConsultationFilterInput {
|
|
923
|
+
jurisdictionId?: string | null;
|
|
924
|
+
consultationType?: GovConsultationType | null;
|
|
925
|
+
status?: GovConsultationStatus | null;
|
|
926
|
+
openOnly?: boolean | null;
|
|
927
|
+
}
|
|
928
|
+
export interface GovDatasetFilterInput {
|
|
929
|
+
jurisdictionId?: string | null;
|
|
930
|
+
domain?: GovIndicatorDomain | null;
|
|
931
|
+
format?: GovDatasetFormat | null;
|
|
932
|
+
license?: GovDataLicense | null;
|
|
933
|
+
status?: GovDatasetStatus | null;
|
|
934
|
+
search?: string | null;
|
|
935
|
+
}
|
|
936
|
+
export interface GovDataChangeProposalFilterInput {
|
|
937
|
+
jurisdictionId?: string | null;
|
|
938
|
+
entityType?: GovIntelEntityType | null;
|
|
939
|
+
entityId?: string | null;
|
|
940
|
+
status?: GovProposalStatus | null;
|
|
941
|
+
}
|
|
942
|
+
export interface GovCreateAdminLevelInput {
|
|
943
|
+
countryCode: string;
|
|
944
|
+
rank: number;
|
|
945
|
+
code: string;
|
|
946
|
+
name: string;
|
|
947
|
+
pluralName: string;
|
|
948
|
+
description?: string | null;
|
|
949
|
+
isElectoral?: boolean | null;
|
|
950
|
+
}
|
|
951
|
+
export interface GovUpdateAdminLevelInput {
|
|
952
|
+
rank?: number | null;
|
|
953
|
+
code?: string | null;
|
|
954
|
+
name?: string | null;
|
|
955
|
+
pluralName?: string | null;
|
|
956
|
+
description?: string | null;
|
|
957
|
+
isElectoral?: boolean | null;
|
|
958
|
+
}
|
|
959
|
+
export interface GovCreateJurisdictionInput {
|
|
960
|
+
parentId?: string | null;
|
|
961
|
+
adminLevelId: string;
|
|
962
|
+
countryCode: string;
|
|
963
|
+
name: string;
|
|
964
|
+
localName?: string | null;
|
|
965
|
+
officialCode?: string | null;
|
|
966
|
+
slug?: string | null;
|
|
967
|
+
summary?: string | null;
|
|
968
|
+
establishedOn?: string | null;
|
|
969
|
+
headquarters?: string | null;
|
|
970
|
+
officialWebsite?: string | null;
|
|
971
|
+
contactEmail?: string | null;
|
|
972
|
+
contactPhone?: string | null;
|
|
973
|
+
emergencyNumbers?: GovJson;
|
|
974
|
+
timezone?: string | null;
|
|
975
|
+
languages?: string[] | null;
|
|
976
|
+
currencyCode?: string | null;
|
|
977
|
+
climateSummary?: string | null;
|
|
978
|
+
areaSqKm?: number | null;
|
|
979
|
+
population?: number | null;
|
|
980
|
+
populationYear?: number | null;
|
|
981
|
+
households?: number | null;
|
|
982
|
+
centroidLat?: number | null;
|
|
983
|
+
centroidLng?: number | null;
|
|
984
|
+
boundaryFileId?: string | null;
|
|
985
|
+
bannerFileId?: string | null;
|
|
986
|
+
crestFileId?: string | null;
|
|
987
|
+
tags?: string[] | null;
|
|
988
|
+
sourceName?: string | null;
|
|
989
|
+
sourceUrl?: string | null;
|
|
990
|
+
verification?: GovVerificationStatus | null;
|
|
991
|
+
}
|
|
992
|
+
export interface GovUpdateJurisdictionInput {
|
|
993
|
+
parentId?: string | null;
|
|
994
|
+
adminLevelId?: string | null;
|
|
995
|
+
name?: string | null;
|
|
996
|
+
localName?: string | null;
|
|
997
|
+
officialCode?: string | null;
|
|
998
|
+
summary?: string | null;
|
|
999
|
+
establishedOn?: string | null;
|
|
1000
|
+
headquarters?: string | null;
|
|
1001
|
+
officialWebsite?: string | null;
|
|
1002
|
+
contactEmail?: string | null;
|
|
1003
|
+
contactPhone?: string | null;
|
|
1004
|
+
emergencyNumbers?: GovJson;
|
|
1005
|
+
timezone?: string | null;
|
|
1006
|
+
languages?: string[] | null;
|
|
1007
|
+
currencyCode?: string | null;
|
|
1008
|
+
climateSummary?: string | null;
|
|
1009
|
+
areaSqKm?: number | null;
|
|
1010
|
+
population?: number | null;
|
|
1011
|
+
populationYear?: number | null;
|
|
1012
|
+
households?: number | null;
|
|
1013
|
+
centroidLat?: number | null;
|
|
1014
|
+
centroidLng?: number | null;
|
|
1015
|
+
boundaryFileId?: string | null;
|
|
1016
|
+
bannerFileId?: string | null;
|
|
1017
|
+
crestFileId?: string | null;
|
|
1018
|
+
tags?: string[] | null;
|
|
1019
|
+
sourceName?: string | null;
|
|
1020
|
+
sourceUrl?: string | null;
|
|
1021
|
+
verification?: GovVerificationStatus | null;
|
|
1022
|
+
}
|
|
1023
|
+
export interface GovCreateOfficialInput {
|
|
1024
|
+
jurisdictionId: string;
|
|
1025
|
+
fullName: string;
|
|
1026
|
+
localName?: string | null;
|
|
1027
|
+
officeTitle: string;
|
|
1028
|
+
officeType?: GovOfficeType | null;
|
|
1029
|
+
department?: string | null;
|
|
1030
|
+
party?: string | null;
|
|
1031
|
+
isIndependent?: boolean | null;
|
|
1032
|
+
photoFileId?: string | null;
|
|
1033
|
+
biography?: string | null;
|
|
1034
|
+
contactEmail?: string | null;
|
|
1035
|
+
contactPhone?: string | null;
|
|
1036
|
+
officeAddress?: string | null;
|
|
1037
|
+
officeHours?: string | null;
|
|
1038
|
+
socialProfiles?: GovJson;
|
|
1039
|
+
termStart?: string | null;
|
|
1040
|
+
termEnd?: string | null;
|
|
1041
|
+
termDurationMonths?: number | null;
|
|
1042
|
+
electedOn?: string | null;
|
|
1043
|
+
nextElectionOn?: string | null;
|
|
1044
|
+
attendancePercent?: number | null;
|
|
1045
|
+
votingRecordUrl?: string | null;
|
|
1046
|
+
committees?: string[] | null;
|
|
1047
|
+
responsibilities?: string | null;
|
|
1048
|
+
isCurrent?: boolean | null;
|
|
1049
|
+
displayOrder?: number | null;
|
|
1050
|
+
linkedUserId?: string | null;
|
|
1051
|
+
sourceName?: string | null;
|
|
1052
|
+
sourceUrl?: string | null;
|
|
1053
|
+
verification?: GovVerificationStatus | null;
|
|
1054
|
+
}
|
|
1055
|
+
export interface GovUpdateOfficialInput {
|
|
1056
|
+
fullName?: string | null;
|
|
1057
|
+
localName?: string | null;
|
|
1058
|
+
officeTitle?: string | null;
|
|
1059
|
+
officeType?: GovOfficeType | null;
|
|
1060
|
+
department?: string | null;
|
|
1061
|
+
party?: string | null;
|
|
1062
|
+
isIndependent?: boolean | null;
|
|
1063
|
+
photoFileId?: string | null;
|
|
1064
|
+
biography?: string | null;
|
|
1065
|
+
contactEmail?: string | null;
|
|
1066
|
+
contactPhone?: string | null;
|
|
1067
|
+
officeAddress?: string | null;
|
|
1068
|
+
officeHours?: string | null;
|
|
1069
|
+
socialProfiles?: GovJson;
|
|
1070
|
+
termStart?: string | null;
|
|
1071
|
+
termEnd?: string | null;
|
|
1072
|
+
termDurationMonths?: number | null;
|
|
1073
|
+
electedOn?: string | null;
|
|
1074
|
+
nextElectionOn?: string | null;
|
|
1075
|
+
attendancePercent?: number | null;
|
|
1076
|
+
votingRecordUrl?: string | null;
|
|
1077
|
+
committees?: string[] | null;
|
|
1078
|
+
responsibilities?: string | null;
|
|
1079
|
+
isCurrent?: boolean | null;
|
|
1080
|
+
displayOrder?: number | null;
|
|
1081
|
+
linkedUserId?: string | null;
|
|
1082
|
+
sourceName?: string | null;
|
|
1083
|
+
sourceUrl?: string | null;
|
|
1084
|
+
verification?: GovVerificationStatus | null;
|
|
1085
|
+
}
|
|
1086
|
+
export interface GovCreateOfficialCommitmentInput {
|
|
1087
|
+
officialId: string;
|
|
1088
|
+
title: string;
|
|
1089
|
+
description?: string | null;
|
|
1090
|
+
domain?: GovIndicatorDomain | null;
|
|
1091
|
+
promisedOn?: string | null;
|
|
1092
|
+
targetDate?: string | null;
|
|
1093
|
+
status?: GovCommitmentStatus | null;
|
|
1094
|
+
progressPercent?: number | null;
|
|
1095
|
+
linkedProjectId?: string | null;
|
|
1096
|
+
evidenceUrl?: string | null;
|
|
1097
|
+
evidenceFileIds?: string[] | null;
|
|
1098
|
+
sourceName?: string | null;
|
|
1099
|
+
sourceUrl?: string | null;
|
|
1100
|
+
verification?: GovVerificationStatus | null;
|
|
1101
|
+
}
|
|
1102
|
+
export interface GovUpdateOfficialCommitmentInput {
|
|
1103
|
+
title?: string | null;
|
|
1104
|
+
description?: string | null;
|
|
1105
|
+
domain?: GovIndicatorDomain | null;
|
|
1106
|
+
promisedOn?: string | null;
|
|
1107
|
+
targetDate?: string | null;
|
|
1108
|
+
status?: GovCommitmentStatus | null;
|
|
1109
|
+
progressPercent?: number | null;
|
|
1110
|
+
linkedProjectId?: string | null;
|
|
1111
|
+
evidenceUrl?: string | null;
|
|
1112
|
+
evidenceFileIds?: string[] | null;
|
|
1113
|
+
sourceName?: string | null;
|
|
1114
|
+
sourceUrl?: string | null;
|
|
1115
|
+
verification?: GovVerificationStatus | null;
|
|
1116
|
+
}
|
|
1117
|
+
export interface GovCreateElectionInput {
|
|
1118
|
+
jurisdictionId: string;
|
|
1119
|
+
name: string;
|
|
1120
|
+
electionType?: GovElectionType | null;
|
|
1121
|
+
officeTitle?: string | null;
|
|
1122
|
+
electionDate: string;
|
|
1123
|
+
status?: GovElectionStatus | null;
|
|
1124
|
+
registeredVoters?: number | null;
|
|
1125
|
+
votesCast?: number | null;
|
|
1126
|
+
validVotes?: number | null;
|
|
1127
|
+
invalidVotes?: number | null;
|
|
1128
|
+
resultDeclaredOn?: string | null;
|
|
1129
|
+
sourceName?: string | null;
|
|
1130
|
+
sourceUrl?: string | null;
|
|
1131
|
+
verification?: GovVerificationStatus | null;
|
|
1132
|
+
}
|
|
1133
|
+
export interface GovUpdateElectionInput {
|
|
1134
|
+
name?: string | null;
|
|
1135
|
+
electionType?: GovElectionType | null;
|
|
1136
|
+
officeTitle?: string | null;
|
|
1137
|
+
electionDate?: string | null;
|
|
1138
|
+
status?: GovElectionStatus | null;
|
|
1139
|
+
registeredVoters?: number | null;
|
|
1140
|
+
votesCast?: number | null;
|
|
1141
|
+
validVotes?: number | null;
|
|
1142
|
+
invalidVotes?: number | null;
|
|
1143
|
+
resultDeclaredOn?: string | null;
|
|
1144
|
+
sourceName?: string | null;
|
|
1145
|
+
sourceUrl?: string | null;
|
|
1146
|
+
verification?: GovVerificationStatus | null;
|
|
1147
|
+
}
|
|
1148
|
+
export interface GovElectionResultInput {
|
|
1149
|
+
candidateName: string;
|
|
1150
|
+
party?: string | null;
|
|
1151
|
+
isIndependent?: boolean | null;
|
|
1152
|
+
votes: number;
|
|
1153
|
+
position?: number | null;
|
|
1154
|
+
isWinner?: boolean | null;
|
|
1155
|
+
photoFileId?: string | null;
|
|
1156
|
+
officialId?: string | null;
|
|
1157
|
+
}
|
|
1158
|
+
export interface GovCreateJurisdictionEventInput {
|
|
1159
|
+
jurisdictionId: string;
|
|
1160
|
+
title: string;
|
|
1161
|
+
description?: string | null;
|
|
1162
|
+
occurredOn: string;
|
|
1163
|
+
category?: GovEventCategory | null;
|
|
1164
|
+
impact?: GovEventImpact | null;
|
|
1165
|
+
linkedProjectId?: string | null;
|
|
1166
|
+
linkedElectionId?: string | null;
|
|
1167
|
+
linkedBudgetId?: string | null;
|
|
1168
|
+
imageFileId?: string | null;
|
|
1169
|
+
sourceName?: string | null;
|
|
1170
|
+
sourceUrl?: string | null;
|
|
1171
|
+
verification?: GovVerificationStatus | null;
|
|
1172
|
+
}
|
|
1173
|
+
export interface GovUpdateJurisdictionEventInput {
|
|
1174
|
+
title?: string | null;
|
|
1175
|
+
description?: string | null;
|
|
1176
|
+
occurredOn?: string | null;
|
|
1177
|
+
category?: GovEventCategory | null;
|
|
1178
|
+
impact?: GovEventImpact | null;
|
|
1179
|
+
linkedProjectId?: string | null;
|
|
1180
|
+
linkedElectionId?: string | null;
|
|
1181
|
+
linkedBudgetId?: string | null;
|
|
1182
|
+
imageFileId?: string | null;
|
|
1183
|
+
sourceName?: string | null;
|
|
1184
|
+
sourceUrl?: string | null;
|
|
1185
|
+
verification?: GovVerificationStatus | null;
|
|
1186
|
+
}
|
|
1187
|
+
export interface GovCreateBudgetInput {
|
|
1188
|
+
jurisdictionId: string;
|
|
1189
|
+
fiscalYear: string;
|
|
1190
|
+
periodStart: string;
|
|
1191
|
+
periodEnd: string;
|
|
1192
|
+
currencyCode: string;
|
|
1193
|
+
status?: GovBudgetStatus | null;
|
|
1194
|
+
totalRevenuePlanned?: number | null;
|
|
1195
|
+
totalRevenueActual?: number | null;
|
|
1196
|
+
totalExpensePlanned?: number | null;
|
|
1197
|
+
totalExpenseActual?: number | null;
|
|
1198
|
+
populationAtPublication?: number | null;
|
|
1199
|
+
summary?: string | null;
|
|
1200
|
+
documentFileId?: string | null;
|
|
1201
|
+
approvedOn?: string | null;
|
|
1202
|
+
sourceName?: string | null;
|
|
1203
|
+
sourceUrl?: string | null;
|
|
1204
|
+
verification?: GovVerificationStatus | null;
|
|
1205
|
+
}
|
|
1206
|
+
export interface GovUpdateBudgetInput {
|
|
1207
|
+
fiscalYear?: string | null;
|
|
1208
|
+
periodStart?: string | null;
|
|
1209
|
+
periodEnd?: string | null;
|
|
1210
|
+
currencyCode?: string | null;
|
|
1211
|
+
status?: GovBudgetStatus | null;
|
|
1212
|
+
totalRevenuePlanned?: number | null;
|
|
1213
|
+
totalRevenueActual?: number | null;
|
|
1214
|
+
totalExpensePlanned?: number | null;
|
|
1215
|
+
totalExpenseActual?: number | null;
|
|
1216
|
+
populationAtPublication?: number | null;
|
|
1217
|
+
summary?: string | null;
|
|
1218
|
+
documentFileId?: string | null;
|
|
1219
|
+
approvedOn?: string | null;
|
|
1220
|
+
sourceName?: string | null;
|
|
1221
|
+
sourceUrl?: string | null;
|
|
1222
|
+
verification?: GovVerificationStatus | null;
|
|
1223
|
+
}
|
|
1224
|
+
export interface GovBudgetLineInput {
|
|
1225
|
+
/** Omit to create a new line; supply to update an existing one. */
|
|
1226
|
+
id?: string | null;
|
|
1227
|
+
kind: GovBudgetLineKind;
|
|
1228
|
+
category: GovBudgetCategory;
|
|
1229
|
+
label: string;
|
|
1230
|
+
department?: string | null;
|
|
1231
|
+
functionCode?: string | null;
|
|
1232
|
+
plannedAmount?: number | null;
|
|
1233
|
+
actualAmount?: number | null;
|
|
1234
|
+
previousYearAmount?: number | null;
|
|
1235
|
+
notes?: string | null;
|
|
1236
|
+
displayOrder?: number | null;
|
|
1237
|
+
}
|
|
1238
|
+
export interface GovCreateProjectInput {
|
|
1239
|
+
jurisdictionId: string;
|
|
1240
|
+
agencyId?: string | null;
|
|
1241
|
+
name: string;
|
|
1242
|
+
code?: string | null;
|
|
1243
|
+
description?: string | null;
|
|
1244
|
+
domain?: GovIndicatorDomain | null;
|
|
1245
|
+
department?: string | null;
|
|
1246
|
+
contractorName?: string | null;
|
|
1247
|
+
contractorRegistrationId?: string | null;
|
|
1248
|
+
fundingSource?: GovFundingSource | null;
|
|
1249
|
+
budgetAmount?: number | null;
|
|
1250
|
+
actualCost?: number | null;
|
|
1251
|
+
currencyCode?: string | null;
|
|
1252
|
+
tenderReference?: string | null;
|
|
1253
|
+
tenderUrl?: string | null;
|
|
1254
|
+
awardedOn?: string | null;
|
|
1255
|
+
startDate?: string | null;
|
|
1256
|
+
plannedCompletionDate?: string | null;
|
|
1257
|
+
actualCompletionDate?: string | null;
|
|
1258
|
+
status?: GovProjectStatus | null;
|
|
1259
|
+
progressPercent?: number | null;
|
|
1260
|
+
delayReason?: string | null;
|
|
1261
|
+
locationLabel?: string | null;
|
|
1262
|
+
latitude?: number | null;
|
|
1263
|
+
longitude?: number | null;
|
|
1264
|
+
imageFileIds?: string[] | null;
|
|
1265
|
+
documentFileIds?: string[] | null;
|
|
1266
|
+
beneficiaryCount?: number | null;
|
|
1267
|
+
tags?: string[] | null;
|
|
1268
|
+
sourceName?: string | null;
|
|
1269
|
+
sourceUrl?: string | null;
|
|
1270
|
+
verification?: GovVerificationStatus | null;
|
|
1271
|
+
}
|
|
1272
|
+
export interface GovUpdateProjectInput {
|
|
1273
|
+
agencyId?: string | null;
|
|
1274
|
+
name?: string | null;
|
|
1275
|
+
code?: string | null;
|
|
1276
|
+
description?: string | null;
|
|
1277
|
+
domain?: GovIndicatorDomain | null;
|
|
1278
|
+
department?: string | null;
|
|
1279
|
+
contractorName?: string | null;
|
|
1280
|
+
contractorRegistrationId?: string | null;
|
|
1281
|
+
fundingSource?: GovFundingSource | null;
|
|
1282
|
+
budgetAmount?: number | null;
|
|
1283
|
+
actualCost?: number | null;
|
|
1284
|
+
currencyCode?: string | null;
|
|
1285
|
+
tenderReference?: string | null;
|
|
1286
|
+
tenderUrl?: string | null;
|
|
1287
|
+
awardedOn?: string | null;
|
|
1288
|
+
startDate?: string | null;
|
|
1289
|
+
plannedCompletionDate?: string | null;
|
|
1290
|
+
actualCompletionDate?: string | null;
|
|
1291
|
+
status?: GovProjectStatus | null;
|
|
1292
|
+
progressPercent?: number | null;
|
|
1293
|
+
delayReason?: string | null;
|
|
1294
|
+
locationLabel?: string | null;
|
|
1295
|
+
latitude?: number | null;
|
|
1296
|
+
longitude?: number | null;
|
|
1297
|
+
imageFileIds?: string[] | null;
|
|
1298
|
+
documentFileIds?: string[] | null;
|
|
1299
|
+
beneficiaryCount?: number | null;
|
|
1300
|
+
tags?: string[] | null;
|
|
1301
|
+
sourceName?: string | null;
|
|
1302
|
+
sourceUrl?: string | null;
|
|
1303
|
+
verification?: GovVerificationStatus | null;
|
|
1304
|
+
}
|
|
1305
|
+
export interface GovCreateProjectMilestoneInput {
|
|
1306
|
+
projectId: string;
|
|
1307
|
+
name: string;
|
|
1308
|
+
description?: string | null;
|
|
1309
|
+
dueDate?: string | null;
|
|
1310
|
+
completedOn?: string | null;
|
|
1311
|
+
status?: GovMilestoneStatus | null;
|
|
1312
|
+
progressPercent?: number | null;
|
|
1313
|
+
evidenceFileId?: string | null;
|
|
1314
|
+
displayOrder?: number | null;
|
|
1315
|
+
}
|
|
1316
|
+
export interface GovUpdateProjectMilestoneInput {
|
|
1317
|
+
name?: string | null;
|
|
1318
|
+
description?: string | null;
|
|
1319
|
+
dueDate?: string | null;
|
|
1320
|
+
completedOn?: string | null;
|
|
1321
|
+
status?: GovMilestoneStatus | null;
|
|
1322
|
+
progressPercent?: number | null;
|
|
1323
|
+
evidenceFileId?: string | null;
|
|
1324
|
+
displayOrder?: number | null;
|
|
1325
|
+
}
|
|
1326
|
+
export interface GovCreateIndicatorInput {
|
|
1327
|
+
code: string;
|
|
1328
|
+
name: string;
|
|
1329
|
+
description?: string | null;
|
|
1330
|
+
domain: GovIndicatorDomain;
|
|
1331
|
+
unit: string;
|
|
1332
|
+
valueType?: GovIndicatorValueType | null;
|
|
1333
|
+
direction?: GovIndicatorDirection | null;
|
|
1334
|
+
periodicity?: GovIndicatorPeriodicity | null;
|
|
1335
|
+
methodology?: string | null;
|
|
1336
|
+
targetValue?: number | null;
|
|
1337
|
+
minValue?: number | null;
|
|
1338
|
+
maxValue?: number | null;
|
|
1339
|
+
isCore?: boolean | null;
|
|
1340
|
+
weight?: number | null;
|
|
1341
|
+
isActive?: boolean | null;
|
|
1342
|
+
sdgGoal?: number | null;
|
|
1343
|
+
sourceName?: string | null;
|
|
1344
|
+
sourceUrl?: string | null;
|
|
1345
|
+
}
|
|
1346
|
+
export interface GovUpdateIndicatorInput {
|
|
1347
|
+
name?: string | null;
|
|
1348
|
+
description?: string | null;
|
|
1349
|
+
domain?: GovIndicatorDomain | null;
|
|
1350
|
+
unit?: string | null;
|
|
1351
|
+
valueType?: GovIndicatorValueType | null;
|
|
1352
|
+
direction?: GovIndicatorDirection | null;
|
|
1353
|
+
periodicity?: GovIndicatorPeriodicity | null;
|
|
1354
|
+
methodology?: string | null;
|
|
1355
|
+
targetValue?: number | null;
|
|
1356
|
+
minValue?: number | null;
|
|
1357
|
+
maxValue?: number | null;
|
|
1358
|
+
isCore?: boolean | null;
|
|
1359
|
+
weight?: number | null;
|
|
1360
|
+
isActive?: boolean | null;
|
|
1361
|
+
sdgGoal?: number | null;
|
|
1362
|
+
sourceName?: string | null;
|
|
1363
|
+
sourceUrl?: string | null;
|
|
1364
|
+
}
|
|
1365
|
+
export interface GovRecordIndicatorValueInput {
|
|
1366
|
+
/** Supply either the indicator id or its code. */
|
|
1367
|
+
indicatorId?: string | null;
|
|
1368
|
+
indicatorCode?: string | null;
|
|
1369
|
+
jurisdictionId: string;
|
|
1370
|
+
periodLabel: string;
|
|
1371
|
+
periodStart: string;
|
|
1372
|
+
periodEnd: string;
|
|
1373
|
+
value: number;
|
|
1374
|
+
numerator?: number | null;
|
|
1375
|
+
denominator?: number | null;
|
|
1376
|
+
targetValue?: number | null;
|
|
1377
|
+
sourceName?: string | null;
|
|
1378
|
+
sourceUrl?: string | null;
|
|
1379
|
+
sourceDate?: string | null;
|
|
1380
|
+
datasetId?: string | null;
|
|
1381
|
+
verification?: GovVerificationStatus | null;
|
|
1382
|
+
notes?: string | null;
|
|
1383
|
+
}
|
|
1384
|
+
export interface GovUpdateIndicatorValueInput {
|
|
1385
|
+
value?: number | null;
|
|
1386
|
+
numerator?: number | null;
|
|
1387
|
+
denominator?: number | null;
|
|
1388
|
+
targetValue?: number | null;
|
|
1389
|
+
periodLabel?: string | null;
|
|
1390
|
+
sourceName?: string | null;
|
|
1391
|
+
sourceUrl?: string | null;
|
|
1392
|
+
sourceDate?: string | null;
|
|
1393
|
+
datasetId?: string | null;
|
|
1394
|
+
verification?: GovVerificationStatus | null;
|
|
1395
|
+
notes?: string | null;
|
|
1396
|
+
}
|
|
1397
|
+
export interface GovCreatePublicAssetInput {
|
|
1398
|
+
jurisdictionId: string;
|
|
1399
|
+
name: string;
|
|
1400
|
+
category: GovAssetCategory;
|
|
1401
|
+
subCategory?: string | null;
|
|
1402
|
+
description?: string | null;
|
|
1403
|
+
operator?: GovAssetOperator | null;
|
|
1404
|
+
status?: GovAssetStatus | null;
|
|
1405
|
+
address?: string | null;
|
|
1406
|
+
latitude?: number | null;
|
|
1407
|
+
longitude?: number | null;
|
|
1408
|
+
capacity?: number | null;
|
|
1409
|
+
capacityUnit?: string | null;
|
|
1410
|
+
contactPhone?: string | null;
|
|
1411
|
+
contactEmail?: string | null;
|
|
1412
|
+
website?: string | null;
|
|
1413
|
+
openingHours?: string | null;
|
|
1414
|
+
isAccessible?: boolean | null;
|
|
1415
|
+
establishedOn?: string | null;
|
|
1416
|
+
imageFileId?: string | null;
|
|
1417
|
+
metadata?: GovJson;
|
|
1418
|
+
tags?: string[] | null;
|
|
1419
|
+
sourceName?: string | null;
|
|
1420
|
+
sourceUrl?: string | null;
|
|
1421
|
+
verification?: GovVerificationStatus | null;
|
|
1422
|
+
}
|
|
1423
|
+
export interface GovUpdatePublicAssetInput {
|
|
1424
|
+
name?: string | null;
|
|
1425
|
+
category?: GovAssetCategory | null;
|
|
1426
|
+
subCategory?: string | null;
|
|
1427
|
+
description?: string | null;
|
|
1428
|
+
operator?: GovAssetOperator | null;
|
|
1429
|
+
status?: GovAssetStatus | null;
|
|
1430
|
+
address?: string | null;
|
|
1431
|
+
latitude?: number | null;
|
|
1432
|
+
longitude?: number | null;
|
|
1433
|
+
capacity?: number | null;
|
|
1434
|
+
capacityUnit?: string | null;
|
|
1435
|
+
contactPhone?: string | null;
|
|
1436
|
+
contactEmail?: string | null;
|
|
1437
|
+
website?: string | null;
|
|
1438
|
+
openingHours?: string | null;
|
|
1439
|
+
isAccessible?: boolean | null;
|
|
1440
|
+
establishedOn?: string | null;
|
|
1441
|
+
imageFileId?: string | null;
|
|
1442
|
+
metadata?: GovJson;
|
|
1443
|
+
tags?: string[] | null;
|
|
1444
|
+
sourceName?: string | null;
|
|
1445
|
+
sourceUrl?: string | null;
|
|
1446
|
+
verification?: GovVerificationStatus | null;
|
|
1447
|
+
}
|
|
1448
|
+
export interface GovCreateConsultationInput {
|
|
1449
|
+
jurisdictionId: string;
|
|
1450
|
+
title: string;
|
|
1451
|
+
description?: string | null;
|
|
1452
|
+
consultationType?: GovConsultationType | null;
|
|
1453
|
+
opensAt?: string | null;
|
|
1454
|
+
closesAt?: string | null;
|
|
1455
|
+
questions: GovJson;
|
|
1456
|
+
allowAnonymous?: boolean | null;
|
|
1457
|
+
budgetAmount?: number | null;
|
|
1458
|
+
currencyCode?: string | null;
|
|
1459
|
+
documentFileId?: string | null;
|
|
1460
|
+
tags?: string[] | null;
|
|
1461
|
+
}
|
|
1462
|
+
export interface GovUpdateConsultationInput {
|
|
1463
|
+
title?: string | null;
|
|
1464
|
+
description?: string | null;
|
|
1465
|
+
consultationType?: GovConsultationType | null;
|
|
1466
|
+
opensAt?: string | null;
|
|
1467
|
+
closesAt?: string | null;
|
|
1468
|
+
questions?: GovJson;
|
|
1469
|
+
allowAnonymous?: boolean | null;
|
|
1470
|
+
budgetAmount?: number | null;
|
|
1471
|
+
currencyCode?: string | null;
|
|
1472
|
+
documentFileId?: string | null;
|
|
1473
|
+
tags?: string[] | null;
|
|
1474
|
+
}
|
|
1475
|
+
export interface GovSubmitConsultationResponseInput {
|
|
1476
|
+
consultationId: string;
|
|
1477
|
+
/** Answers: `[{ questionId, value }]`. */
|
|
1478
|
+
answers: GovJson;
|
|
1479
|
+
sentiment?: GovSentiment | null;
|
|
1480
|
+
/** Submit without recording the responding actor. Rejected when not allowed. */
|
|
1481
|
+
anonymous?: boolean | null;
|
|
1482
|
+
}
|
|
1483
|
+
export interface GovCreateDatasetInput {
|
|
1484
|
+
jurisdictionId?: string | null;
|
|
1485
|
+
name: string;
|
|
1486
|
+
slug?: string | null;
|
|
1487
|
+
description?: string | null;
|
|
1488
|
+
domain?: GovIndicatorDomain | null;
|
|
1489
|
+
format?: GovDatasetFormat | null;
|
|
1490
|
+
license?: GovDataLicense | null;
|
|
1491
|
+
licenseUrl?: string | null;
|
|
1492
|
+
version?: string | null;
|
|
1493
|
+
fileId?: string | null;
|
|
1494
|
+
externalUrl?: string | null;
|
|
1495
|
+
periodStart?: string | null;
|
|
1496
|
+
periodEnd?: string | null;
|
|
1497
|
+
updateFrequency?: GovIndicatorPeriodicity | null;
|
|
1498
|
+
rowCount?: number | null;
|
|
1499
|
+
sizeBytes?: number | null;
|
|
1500
|
+
publisher?: string | null;
|
|
1501
|
+
contactEmail?: string | null;
|
|
1502
|
+
tags?: string[] | null;
|
|
1503
|
+
}
|
|
1504
|
+
export interface GovUpdateDatasetInput {
|
|
1505
|
+
jurisdictionId?: string | null;
|
|
1506
|
+
name?: string | null;
|
|
1507
|
+
description?: string | null;
|
|
1508
|
+
domain?: GovIndicatorDomain | null;
|
|
1509
|
+
format?: GovDatasetFormat | null;
|
|
1510
|
+
license?: GovDataLicense | null;
|
|
1511
|
+
licenseUrl?: string | null;
|
|
1512
|
+
version?: string | null;
|
|
1513
|
+
fileId?: string | null;
|
|
1514
|
+
externalUrl?: string | null;
|
|
1515
|
+
periodStart?: string | null;
|
|
1516
|
+
periodEnd?: string | null;
|
|
1517
|
+
updateFrequency?: GovIndicatorPeriodicity | null;
|
|
1518
|
+
rowCount?: number | null;
|
|
1519
|
+
sizeBytes?: number | null;
|
|
1520
|
+
publisher?: string | null;
|
|
1521
|
+
contactEmail?: string | null;
|
|
1522
|
+
status?: GovDatasetStatus | null;
|
|
1523
|
+
tags?: string[] | null;
|
|
1524
|
+
}
|
|
1525
|
+
export interface GovSubmitDataChangeProposalInput {
|
|
1526
|
+
jurisdictionId: string;
|
|
1527
|
+
entityType: GovIntelEntityType;
|
|
1528
|
+
entityId: string;
|
|
1529
|
+
fieldPath: string;
|
|
1530
|
+
proposedValue: string;
|
|
1531
|
+
rationale: string;
|
|
1532
|
+
evidenceUrl?: string | null;
|
|
1533
|
+
evidenceFileIds?: string[] | null;
|
|
1534
|
+
}
|
|
1535
|
+
/** Human label per indicator/project/dataset domain. */
|
|
1536
|
+
export declare const GOV_INDICATOR_DOMAIN_LABELS: Record<GovIndicatorDomain, string>;
|
|
1537
|
+
/** Human label per public-asset category. */
|
|
1538
|
+
export declare const GOV_ASSET_CATEGORY_LABELS: Record<GovAssetCategory, string>;
|
|
1539
|
+
/** Human label per budget category (both sides of the ledger). */
|
|
1540
|
+
export declare const GOV_BUDGET_CATEGORY_LABELS: Record<GovBudgetCategory, string>;
|
|
1541
|
+
/**
|
|
1542
|
+
* Revenue-side budget categories — the exact split the backend enforces
|
|
1543
|
+
* (`TAXES`..`OTHER_REVENUE` in 010-enums.gql). A line whose category is not in
|
|
1544
|
+
* this list is rejected with VALIDATION_FAILED when `kind` is REVENUE.
|
|
1545
|
+
*/
|
|
1546
|
+
export declare const GOV_REVENUE_CATEGORIES: readonly GovBudgetCategory[];
|
|
1547
|
+
/**
|
|
1548
|
+
* Expense-side budget categories (`EDUCATION`..`OTHER_EXPENSE` in
|
|
1549
|
+
* 010-enums.gql). A line whose category is not in this list is rejected with
|
|
1550
|
+
* VALIDATION_FAILED when `kind` is EXPENSE.
|
|
1551
|
+
*/
|
|
1552
|
+
export declare const GOV_EXPENSE_CATEGORIES: readonly GovBudgetCategory[];
|
|
1553
|
+
/** Human label per project delivery status. */
|
|
1554
|
+
export declare const GOV_PROJECT_STATUS_LABELS: Record<GovProjectStatus, string>;
|
|
1555
|
+
/** Human label per commitment delivery status. */
|
|
1556
|
+
export declare const GOV_COMMITMENT_STATUS_LABELS: Record<GovCommitmentStatus, string>;
|
|
1557
|
+
/** Human label per provenance grade. */
|
|
1558
|
+
export declare const GOV_VERIFICATION_LABELS: Record<GovVerificationStatus, string>;
|
|
1559
|
+
//# sourceMappingURL=intelligence.d.ts.map
|