@burdenoff/microfe-govcitizenhub 2026.720.7 → 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.
Files changed (155) hide show
  1. package/dist/govcitizenhub/GovCitizenHubRoot.d.ts.map +1 -1
  2. package/dist/govcitizenhub/GovCitizenHubRoot.js +44 -36
  3. package/dist/govcitizenhub/GovCitizenHubRoot.js.map +1 -1
  4. package/dist/govcitizenhub/GovCitizenHubRoutes.d.ts.map +1 -1
  5. package/dist/govcitizenhub/GovCitizenHubRoutes.js +134 -6
  6. package/dist/govcitizenhub/GovCitizenHubRoutes.js.map +1 -1
  7. package/dist/govcitizenhub/components/DocumentUploadField.d.ts +17 -11
  8. package/dist/govcitizenhub/components/DocumentUploadField.d.ts.map +1 -1
  9. package/dist/govcitizenhub/components/DocumentUploadField.js +45 -42
  10. package/dist/govcitizenhub/components/DocumentUploadField.js.map +1 -1
  11. package/dist/govcitizenhub/components/GovCharts.js +127 -51
  12. package/dist/govcitizenhub/components/GovCharts.js.map +1 -1
  13. package/dist/govcitizenhub/hooks/index.d.ts +1 -0
  14. package/dist/govcitizenhub/hooks/index.d.ts.map +1 -1
  15. package/dist/govcitizenhub/hooks/index.js +1 -0
  16. package/dist/govcitizenhub/hooks/useGovApi.d.ts +3 -0
  17. package/dist/govcitizenhub/hooks/useGovApi.d.ts.map +1 -1
  18. package/dist/govcitizenhub/hooks/useGovApi.js +1 -1
  19. package/dist/govcitizenhub/hooks/useGovApi.js.map +1 -1
  20. package/dist/govcitizenhub/hooks/useIntelligenceApi.d.ts +214 -0
  21. package/dist/govcitizenhub/hooks/useIntelligenceApi.d.ts.map +1 -0
  22. package/dist/govcitizenhub/hooks/useIntelligenceApi.js +1140 -0
  23. package/dist/govcitizenhub/hooks/useIntelligenceApi.js.map +1 -0
  24. package/dist/govcitizenhub/index.d.ts +1 -0
  25. package/dist/govcitizenhub/index.d.ts.map +1 -1
  26. package/dist/govcitizenhub/index.js +18 -0
  27. package/dist/govcitizenhub/pages/agencies/AgenciesPage.js +7 -7
  28. package/dist/govcitizenhub/pages/agencies/AgencyFormDialog.js +6 -6
  29. package/dist/govcitizenhub/pages/applications/ApplicationDetailPage.js +16 -16
  30. package/dist/govcitizenhub/pages/applications/ApplicationsPage.js +35 -35
  31. package/dist/govcitizenhub/pages/applications/ApplicationsPage.js.map +1 -1
  32. package/dist/govcitizenhub/pages/applications/NewApplicationPage.js +1 -1
  33. package/dist/govcitizenhub/pages/documents/DocumentsPage.js +5 -5
  34. package/dist/govcitizenhub/pages/grievances/GrievanceDetailPage.js +30 -30
  35. package/dist/govcitizenhub/pages/grievances/GrievanceDetailPage.js.map +1 -1
  36. package/dist/govcitizenhub/pages/grievances/GrievancesPage.js +15 -15
  37. package/dist/govcitizenhub/pages/intelligence/AdminLevelsPage.d.ts +4 -0
  38. package/dist/govcitizenhub/pages/intelligence/AdminLevelsPage.d.ts.map +1 -0
  39. package/dist/govcitizenhub/pages/intelligence/AdminLevelsPage.js +634 -0
  40. package/dist/govcitizenhub/pages/intelligence/AdminLevelsPage.js.map +1 -0
  41. package/dist/govcitizenhub/pages/intelligence/AssetFormDialog.d.ts +20 -0
  42. package/dist/govcitizenhub/pages/intelligence/AssetFormDialog.d.ts.map +1 -0
  43. package/dist/govcitizenhub/pages/intelligence/AssetFormDialog.js +537 -0
  44. package/dist/govcitizenhub/pages/intelligence/AssetFormDialog.js.map +1 -0
  45. package/dist/govcitizenhub/pages/intelligence/AssetImage.d.ts +11 -0
  46. package/dist/govcitizenhub/pages/intelligence/AssetImage.d.ts.map +1 -0
  47. package/dist/govcitizenhub/pages/intelligence/AssetImage.js +25 -0
  48. package/dist/govcitizenhub/pages/intelligence/AssetImage.js.map +1 -0
  49. package/dist/govcitizenhub/pages/intelligence/AssetMapPanel.d.ts +15 -0
  50. package/dist/govcitizenhub/pages/intelligence/AssetMapPanel.d.ts.map +1 -0
  51. package/dist/govcitizenhub/pages/intelligence/AssetMapPanel.js +203 -0
  52. package/dist/govcitizenhub/pages/intelligence/AssetMapPanel.js.map +1 -0
  53. package/dist/govcitizenhub/pages/intelligence/BenchmarkPage.d.ts +4 -0
  54. package/dist/govcitizenhub/pages/intelligence/BenchmarkPage.d.ts.map +1 -0
  55. package/dist/govcitizenhub/pages/intelligence/BenchmarkPage.js +497 -0
  56. package/dist/govcitizenhub/pages/intelligence/BenchmarkPage.js.map +1 -0
  57. package/dist/govcitizenhub/pages/intelligence/BudgetPage.d.ts +4 -0
  58. package/dist/govcitizenhub/pages/intelligence/BudgetPage.d.ts.map +1 -0
  59. package/dist/govcitizenhub/pages/intelligence/BudgetPage.js +1084 -0
  60. package/dist/govcitizenhub/pages/intelligence/BudgetPage.js.map +1 -0
  61. package/dist/govcitizenhub/pages/intelligence/ConsultationFormDialog.d.ts +13 -0
  62. package/dist/govcitizenhub/pages/intelligence/ConsultationFormDialog.d.ts.map +1 -0
  63. package/dist/govcitizenhub/pages/intelligence/ConsultationFormDialog.js +581 -0
  64. package/dist/govcitizenhub/pages/intelligence/ConsultationFormDialog.js.map +1 -0
  65. package/dist/govcitizenhub/pages/intelligence/ConsultationParticipateDialog.d.ts +11 -0
  66. package/dist/govcitizenhub/pages/intelligence/ConsultationParticipateDialog.d.ts.map +1 -0
  67. package/dist/govcitizenhub/pages/intelligence/ConsultationParticipateDialog.js +429 -0
  68. package/dist/govcitizenhub/pages/intelligence/ConsultationParticipateDialog.js.map +1 -0
  69. package/dist/govcitizenhub/pages/intelligence/ConsultationResultsPanel.d.ts +8 -0
  70. package/dist/govcitizenhub/pages/intelligence/ConsultationResultsPanel.d.ts.map +1 -0
  71. package/dist/govcitizenhub/pages/intelligence/ConsultationResultsPanel.js +235 -0
  72. package/dist/govcitizenhub/pages/intelligence/ConsultationResultsPanel.js.map +1 -0
  73. package/dist/govcitizenhub/pages/intelligence/ConsultationsPage.d.ts +4 -0
  74. package/dist/govcitizenhub/pages/intelligence/ConsultationsPage.d.ts.map +1 -0
  75. package/dist/govcitizenhub/pages/intelligence/ConsultationsPage.js +534 -0
  76. package/dist/govcitizenhub/pages/intelligence/ConsultationsPage.js.map +1 -0
  77. package/dist/govcitizenhub/pages/intelligence/CorrectionsPage.d.ts +4 -0
  78. package/dist/govcitizenhub/pages/intelligence/CorrectionsPage.d.ts.map +1 -0
  79. package/dist/govcitizenhub/pages/intelligence/CorrectionsPage.js +723 -0
  80. package/dist/govcitizenhub/pages/intelligence/CorrectionsPage.js.map +1 -0
  81. package/dist/govcitizenhub/pages/intelligence/ElectionsPage.d.ts +5 -0
  82. package/dist/govcitizenhub/pages/intelligence/ElectionsPage.d.ts.map +1 -0
  83. package/dist/govcitizenhub/pages/intelligence/ElectionsPage.js +1029 -0
  84. package/dist/govcitizenhub/pages/intelligence/ElectionsPage.js.map +1 -0
  85. package/dist/govcitizenhub/pages/intelligence/GovernancePage.d.ts +5 -0
  86. package/dist/govcitizenhub/pages/intelligence/GovernancePage.d.ts.map +1 -0
  87. package/dist/govcitizenhub/pages/intelligence/GovernancePage.js +1545 -0
  88. package/dist/govcitizenhub/pages/intelligence/GovernancePage.js.map +1 -0
  89. package/dist/govcitizenhub/pages/intelligence/IndicatorCatalogPage.d.ts +4 -0
  90. package/dist/govcitizenhub/pages/intelligence/IndicatorCatalogPage.d.ts.map +1 -0
  91. package/dist/govcitizenhub/pages/intelligence/IndicatorCatalogPage.js +960 -0
  92. package/dist/govcitizenhub/pages/intelligence/IndicatorCatalogPage.js.map +1 -0
  93. package/dist/govcitizenhub/pages/intelligence/IndicatorsPage.d.ts +13 -0
  94. package/dist/govcitizenhub/pages/intelligence/IndicatorsPage.d.ts.map +1 -0
  95. package/dist/govcitizenhub/pages/intelligence/IndicatorsPage.js +927 -0
  96. package/dist/govcitizenhub/pages/intelligence/IndicatorsPage.js.map +1 -0
  97. package/dist/govcitizenhub/pages/intelligence/JurisdictionDirectoryPage.d.ts +4 -0
  98. package/dist/govcitizenhub/pages/intelligence/JurisdictionDirectoryPage.d.ts.map +1 -0
  99. package/dist/govcitizenhub/pages/intelligence/JurisdictionDirectoryPage.js +620 -0
  100. package/dist/govcitizenhub/pages/intelligence/JurisdictionDirectoryPage.js.map +1 -0
  101. package/dist/govcitizenhub/pages/intelligence/JurisdictionLayout.d.ts +20 -0
  102. package/dist/govcitizenhub/pages/intelligence/JurisdictionLayout.d.ts.map +1 -0
  103. package/dist/govcitizenhub/pages/intelligence/JurisdictionLayout.js +183 -0
  104. package/dist/govcitizenhub/pages/intelligence/JurisdictionLayout.js.map +1 -0
  105. package/dist/govcitizenhub/pages/intelligence/JurisdictionProfilePage.d.ts +4 -0
  106. package/dist/govcitizenhub/pages/intelligence/JurisdictionProfilePage.d.ts.map +1 -0
  107. package/dist/govcitizenhub/pages/intelligence/JurisdictionProfilePage.js +629 -0
  108. package/dist/govcitizenhub/pages/intelligence/JurisdictionProfilePage.js.map +1 -0
  109. package/dist/govcitizenhub/pages/intelligence/OpenDataPage.d.ts +4 -0
  110. package/dist/govcitizenhub/pages/intelligence/OpenDataPage.d.ts.map +1 -0
  111. package/dist/govcitizenhub/pages/intelligence/OpenDataPage.js +1124 -0
  112. package/dist/govcitizenhub/pages/intelligence/OpenDataPage.js.map +1 -0
  113. package/dist/govcitizenhub/pages/intelligence/ProjectsPage.d.ts +4 -0
  114. package/dist/govcitizenhub/pages/intelligence/ProjectsPage.d.ts.map +1 -0
  115. package/dist/govcitizenhub/pages/intelligence/ProjectsPage.js +1518 -0
  116. package/dist/govcitizenhub/pages/intelligence/ProjectsPage.js.map +1 -0
  117. package/dist/govcitizenhub/pages/intelligence/PublicAssetsPage.d.ts +4 -0
  118. package/dist/govcitizenhub/pages/intelligence/PublicAssetsPage.d.ts.map +1 -0
  119. package/dist/govcitizenhub/pages/intelligence/PublicAssetsPage.js +577 -0
  120. package/dist/govcitizenhub/pages/intelligence/PublicAssetsPage.js.map +1 -0
  121. package/dist/govcitizenhub/pages/intelligence/ServicePerformancePage.d.ts +4 -0
  122. package/dist/govcitizenhub/pages/intelligence/ServicePerformancePage.d.ts.map +1 -0
  123. package/dist/govcitizenhub/pages/intelligence/ServicePerformancePage.js +534 -0
  124. package/dist/govcitizenhub/pages/intelligence/ServicePerformancePage.js.map +1 -0
  125. package/dist/govcitizenhub/pages/intelligence/TimelinePage.d.ts +5 -0
  126. package/dist/govcitizenhub/pages/intelligence/TimelinePage.d.ts.map +1 -0
  127. package/dist/govcitizenhub/pages/intelligence/TimelinePage.js +538 -0
  128. package/dist/govcitizenhub/pages/intelligence/TimelinePage.js.map +1 -0
  129. package/dist/govcitizenhub/pages/intelligence/consultationQuestions.d.ts +53 -0
  130. package/dist/govcitizenhub/pages/intelligence/consultationQuestions.d.ts.map +1 -0
  131. package/dist/govcitizenhub/pages/intelligence/consultationQuestions.js +138 -0
  132. package/dist/govcitizenhub/pages/intelligence/consultationQuestions.js.map +1 -0
  133. package/dist/govcitizenhub/pages/intelligence/index.d.ts +27 -0
  134. package/dist/govcitizenhub/pages/intelligence/index.d.ts.map +1 -0
  135. package/dist/govcitizenhub/pages/intelligence/index.js +17 -0
  136. package/dist/govcitizenhub/pages/payments/PaymentsPage.js +11 -11
  137. package/dist/govcitizenhub/pages/payments/PaymentsPage.js.map +1 -1
  138. package/dist/govcitizenhub/pages/permits/PermitsPage.js +6 -6
  139. package/dist/govcitizenhub/pages/services/ServiceDetailPage.js +8 -8
  140. package/dist/govcitizenhub/pages/services/ServiceFormDialog.js +98 -98
  141. package/dist/govcitizenhub/pages/services/ServiceFormDialog.js.map +1 -1
  142. package/dist/govcitizenhub/types/index.d.ts +1 -0
  143. package/dist/govcitizenhub/types/index.d.ts.map +1 -1
  144. package/dist/govcitizenhub/types/intelligence.d.ts +1559 -0
  145. package/dist/govcitizenhub/types/intelligence.d.ts.map +1 -0
  146. package/dist/govcitizenhub/types/intelligence.js +125 -0
  147. package/dist/govcitizenhub/types/intelligence.js.map +1 -0
  148. package/dist/index.js +19 -2
  149. package/dist/node_modules/recharts/es6/chart/BarChart.js +24 -0
  150. package/dist/node_modules/recharts/es6/chart/BarChart.js.map +1 -0
  151. package/dist/utils/pageContext.d.ts +1 -0
  152. package/dist/utils/pageContext.d.ts.map +1 -1
  153. package/dist/utils/pageContext.js +44 -17
  154. package/dist/utils/pageContext.js.map +1 -1
  155. package/package.json +1 -1
@@ -0,0 +1,1140 @@
1
+ import { useGovCitizenHub as e } from "../context/GovCitizenHubContext.js";
2
+ import "../context/index.js";
3
+ import { govQuery as t, page as n } from "./useGovApi.js";
4
+ import { useMutation as r, useQuery as i, useQueryClient as a } from "@tanstack/react-query";
5
+ //#region src/govcitizenhub/hooks/useIntelligenceApi.ts
6
+ var o = ["govcitizenhub", "intel"], s = {
7
+ intelAdminLevels: [...o, "admin-levels"],
8
+ intelAdminLevel: (e) => [
9
+ ...o,
10
+ "admin-level",
11
+ e
12
+ ],
13
+ intelJurisdictions: [...o, "jurisdictions"],
14
+ intelJurisdiction: (e) => [
15
+ ...o,
16
+ "jurisdiction",
17
+ e
18
+ ],
19
+ intelJurisdictionBySlug: (e) => [
20
+ ...o,
21
+ "jurisdiction-by-slug",
22
+ e
23
+ ],
24
+ intelJurisdictionTree: [...o, "jurisdiction-tree"],
25
+ intelOverview: [...o, "jurisdiction-overview"],
26
+ intelOverviewFor: (e) => [
27
+ ...o,
28
+ "jurisdiction-overview",
29
+ e
30
+ ],
31
+ intelOfficials: [...o, "officials"],
32
+ intelOfficial: (e) => [
33
+ ...o,
34
+ "official",
35
+ e
36
+ ],
37
+ intelCommitments: [...o, "official-commitments"],
38
+ intelElections: [...o, "elections"],
39
+ intelElection: (e) => [
40
+ ...o,
41
+ "election",
42
+ e
43
+ ],
44
+ intelEvents: [...o, "jurisdiction-events"],
45
+ intelEventsFor: (e) => [
46
+ ...o,
47
+ "jurisdiction-events",
48
+ e
49
+ ],
50
+ intelBudgets: [...o, "budgets"],
51
+ intelBudget: (e) => [
52
+ ...o,
53
+ "budget",
54
+ e
55
+ ],
56
+ intelBudgetExecution: [...o, "budget-execution"],
57
+ intelBudgetExecutionFor: (e) => [
58
+ ...o,
59
+ "budget-execution",
60
+ e
61
+ ],
62
+ intelProjects: [...o, "projects"],
63
+ intelProject: (e) => [
64
+ ...o,
65
+ "project",
66
+ e
67
+ ],
68
+ intelIndicators: [...o, "indicators"],
69
+ intelIndicator: (e) => [
70
+ ...o,
71
+ "indicator",
72
+ e
73
+ ],
74
+ intelIndicatorValues: [...o, "indicator-values"],
75
+ intelIndicatorSeries: [...o, "indicator-series"],
76
+ intelScorecard: [...o, "scorecard"],
77
+ intelBenchmark: [...o, "benchmark"],
78
+ intelInsights: [...o, "insights"],
79
+ intelServicePerformance: [...o, "service-performance"],
80
+ intelGrievanceInsights: [...o, "grievance-insights"],
81
+ intelAssets: [...o, "public-assets"],
82
+ intelAsset: (e) => [
83
+ ...o,
84
+ "public-asset",
85
+ e
86
+ ],
87
+ intelAssetSummary: [...o, "public-asset-summary"],
88
+ intelAssetSummaryFor: (e) => [
89
+ ...o,
90
+ "public-asset-summary",
91
+ e
92
+ ],
93
+ intelConsultations: [...o, "consultations"],
94
+ intelConsultation: (e) => [
95
+ ...o,
96
+ "consultation",
97
+ e
98
+ ],
99
+ intelConsultationResults: [...o, "consultation-results"],
100
+ intelConsultationResultsFor: (e) => [
101
+ ...o,
102
+ "consultation-results",
103
+ e
104
+ ],
105
+ intelMyConsultationResponse: [...o, "my-consultation-response"],
106
+ intelMyConsultationResponseFor: (e) => [
107
+ ...o,
108
+ "my-consultation-response",
109
+ e
110
+ ],
111
+ intelDatasets: [...o, "datasets"],
112
+ intelDataset: (e) => [
113
+ ...o,
114
+ "dataset",
115
+ e
116
+ ],
117
+ intelMyFollowed: [...o, "my-followed-jurisdictions"],
118
+ intelProposals: [...o, "data-change-proposals"],
119
+ intelProposal: (e) => [
120
+ ...o,
121
+ "data-change-proposal",
122
+ e
123
+ ],
124
+ intelMyProposals: [...o, "my-data-change-proposals"]
125
+ }, ee = "GraphQL response did not include data", c = async (e, n, r, i) => {
126
+ try {
127
+ return (await t(e, n, i))[r] ?? null;
128
+ } catch (e) {
129
+ if (e instanceof Error && e.message === ee) return null;
130
+ throw e;
131
+ }
132
+ }, l = (e) => {
133
+ e.invalidateQueries({ queryKey: s.intelOverview }), e.invalidateQueries({ queryKey: s.intelScorecard }), e.invalidateQueries({ queryKey: s.intelInsights }), e.invalidateQueries({ queryKey: s.intelBenchmark });
134
+ }, u = "\n id workspaceId countryCode rank code name pluralName description isElectoral\n jurisdictionCount createdAt updatedAt\n", d = "\n id workspaceId parentId adminLevelId countryCode name localName officialCode slug status\n path depth summary establishedOn headquarters officialWebsite contactEmail contactPhone\n emergencyNumbers timezone languages currencyCode climateSummary areaSqKm population\n populationYear households centroidLat centroidLng populationDensity boundaryFileId\n bannerFileId crestFileId tags sourceName sourceUrl verification publishedAt\n createdAt updatedAt\n", f = "\n id workspaceId parentId adminLevelId countryCode name localName officialCode slug status\n path depth areaSqKm population populationYear populationDensity crestFileId bannerFileId\n languages tags verification publishedAt createdAt updatedAt\n", p = "\n id name slug status depth adminLevelCode adminLevelName population childCount\n", m = (e) => e <= 0 ? p : `${p} children { ${m(e - 1)} }`, h = m(7), g = "\n id workspaceId jurisdictionId fullName localName officeTitle officeType department party\n isIndependent photoFileId biography contactEmail contactPhone officeAddress officeHours\n socialProfiles termStart termEnd termDurationMonths electedOn nextElectionOn\n attendancePercent votingRecordUrl committees responsibilities isCurrent displayOrder\n linkedUserId sourceName sourceUrl verification commitmentDeliveryRate createdAt updatedAt\n", _ = "\n id workspaceId officialId jurisdictionId title description domain promisedOn targetDate\n status progressPercent linkedProjectId evidenceUrl evidenceFileIds sourceName sourceUrl\n verification isOverdue createdAt updatedAt\n", v = "\n id workspaceId jurisdictionId name electionType officeTitle electionDate status\n registeredVoters votesCast validVotes invalidVotes turnoutPercent resultDeclaredOn\n sourceName sourceUrl verification winningMarginVotes winningMarginPercent\n createdAt updatedAt\n", y = "\n id workspaceId electionId candidateName party isIndependent votes votePercent position\n isWinner photoFileId officialId createdAt updatedAt\n", b = "\n id workspaceId jurisdictionId title description occurredOn category impact\n linkedProjectId linkedElectionId linkedBudgetId imageFileId sourceName sourceUrl\n verification createdAt updatedAt\n", x = "\n id workspaceId jurisdictionId fiscalYear periodStart periodEnd currencyCode status\n totalRevenuePlanned totalRevenueActual totalExpensePlanned totalExpenseActual\n populationAtPublication summary documentFileId approvedOn publishedAt sourceName\n sourceUrl verification createdAt updatedAt\n", S = "\n id workspaceId budgetId kind category label department functionCode plannedAmount\n actualAmount previousYearAmount notes displayOrder variance variancePercent\n createdAt updatedAt\n", C = "\n budgetId fiscalYear currencyCode plannedRevenue actualRevenue plannedExpense\n actualExpense executionPercent perCapitaExpense perCapitaActualExpense\n byCategory { kind category planned actual variance variancePercent sharePercent }\n", w = "\n id workspaceId jurisdictionId agencyId name code description domain department\n contractorName contractorRegistrationId fundingSource budgetAmount actualCost\n currencyCode tenderReference tenderUrl awardedOn startDate plannedCompletionDate\n actualCompletionDate status progressPercent delayReason locationLabel latitude longitude\n imageFileIds documentFileIds beneficiaryCount tags sourceName sourceUrl verification\n publishedAt delayDays costVariance createdAt updatedAt\n", T = "\n id workspaceId projectId name description dueDate completedOn status progressPercent\n evidenceFileId displayOrder isOverdue createdAt updatedAt\n", E = "\n id workspaceId code name description domain unit valueType direction periodicity\n methodology targetValue minValue maxValue isCore weight isActive sdgGoal sourceName\n sourceUrl createdAt updatedAt\n", D = "\n id workspaceId indicatorId jurisdictionId periodLabel periodStart periodEnd value\n numerator denominator targetValue sourceName sourceUrl sourceDate datasetId verification\n notes publishedAt createdAt updatedAt\n", O = `
135
+ jurisdictionId latestValue latestPeriodLabel changePercent trend
136
+ indicator { ${E} }
137
+ points { periodLabel periodStart value targetValue verification }
138
+ `, k = "\n jurisdictionId jurisdictionName periodLabel overallScore coveragePercent indicatorCount\n measuredCount generatedAt\n domains { domain score indicatorCount measuredCount trend changePercent }\n", A = "\n kind severity title detail domain indicatorCode evidence generatedAt\n", j = "jurisdictionId jurisdictionName value rank", te = `
139
+ jurisdictionId periodLabel scope peerCount percentile average median isRankPublished
140
+ indicator { ${E} }
141
+ subject { ${j} }
142
+ peers { ${j} }
143
+ best { ${j} }
144
+ worst { ${j} }
145
+ `, M = "\n jurisdictionId totalApplications approvedCount rejectedCount pendingCount approvalRate\n avgProcessingHours slaBreachedCount slaCompliancePercent\n byService {\n serviceId serviceName applications approved rejected pending avgProcessingHours\n slaDays slaCompliancePercent\n }\n byAgency {\n agencyId agencyName applications approved rejected pending avgProcessingHours\n slaCompliancePercent\n }\n", N = "\n jurisdictionId total open inProgress resolved avgResolutionHours\n byCategory { category total resolved avgResolutionHours }\n hotspots { locationLabel latitude longitude count topCategory }\n", P = "\n id workspaceId jurisdictionId name category subCategory description operator status\n address latitude longitude capacity capacityUnit contactPhone contactEmail website\n openingHours isAccessible establishedOn imageFileId metadata tags sourceName sourceUrl\n verification createdAt updatedAt\n", F = "\n id workspaceId jurisdictionId title description consultationType status opensAt closesAt\n questions allowAnonymous budgetAmount currencyCode responseCount resultsSummary\n resultsPublishedAt documentFileId tags isAcceptingResponses hasRespondedByMe\n createdAt updatedAt\n", I = "\n id workspaceId consultationId jurisdictionId respondentActorId answers sentiment submittedAt\n", L = "\n consultationId status responseCount resultsPublishedAt isSuppressed\n questions { questionId label type responseCount aggregate }\n", R = "\n id workspaceId jurisdictionId name slug description domain format license licenseUrl\n version fileId externalUrl periodStart periodEnd updateFrequency rowCount sizeBytes\n publisher contactEmail status publishedAt downloadCount tags createdAt updatedAt\n", z = "\n id workspaceId jurisdictionId actorId channels topics createdAt\n", B = "\n id workspaceId jurisdictionId entityType entityId fieldPath currentValue proposedValue\n rationale evidenceUrl evidenceFileIds status submittedByActorId submittedAt\n reviewedByActorId reviewedAt reviewNote appliedAt createdAt updatedAt\n", V = `
146
+ childCount officialCount activeProjectCount completedProjectCount publishedDatasetCount
147
+ openConsultationCount publicAssetCount followerCount isFollowedByMe
148
+ jurisdiction { ${d} }
149
+ adminLevel { ${u} }
150
+ parent { ${f} }
151
+ currentBudget { ${x} }
152
+ scorecard { ${k} }
153
+ insights { ${A} }
154
+ `, H = (r, a) => {
155
+ let { apiGatewayUrl: o } = e();
156
+ return i({
157
+ queryKey: [
158
+ ...s.intelAdminLevels,
159
+ r ?? null,
160
+ a ?? null
161
+ ],
162
+ queryFn: async () => (await t(`query GovAdminLevels($countryCode: String, $pagination: PaginationInput) {
163
+ govAdminLevels(countryCode: $countryCode, pagination: $pagination) {
164
+ items { ${u} }
165
+ pageInfo { cursor hasMore }
166
+ }
167
+ }`, {
168
+ countryCode: r,
169
+ pagination: n(a ?? { limit: 100 })
170
+ }, o)).govAdminLevels
171
+ });
172
+ }, U = () => {
173
+ let { apiGatewayUrl: n } = e(), i = a();
174
+ return r({
175
+ mutationFn: async (e) => (await t(`mutation GovCreateAdminLevel($input: GovCreateAdminLevelInput!) {
176
+ govCreateAdminLevel(input: $input) { ${u} }
177
+ }`, { input: e }, n)).govCreateAdminLevel,
178
+ onSuccess: () => i.invalidateQueries({ queryKey: s.intelAdminLevels })
179
+ });
180
+ }, W = () => {
181
+ let { apiGatewayUrl: n } = e(), i = a();
182
+ return r({
183
+ mutationFn: async (e) => (await t(`mutation GovUpdateAdminLevel($id: ID!, $input: GovUpdateAdminLevelInput!) {
184
+ govUpdateAdminLevel(id: $id, input: $input) { ${u} }
185
+ }`, e, n)).govUpdateAdminLevel,
186
+ onSuccess: (e) => {
187
+ i.invalidateQueries({ queryKey: s.intelAdminLevels }), i.invalidateQueries({ queryKey: s.intelAdminLevel(e.id) }), i.invalidateQueries({ queryKey: s.intelJurisdictions });
188
+ }
189
+ });
190
+ }, G = () => {
191
+ let { apiGatewayUrl: n } = e(), i = a();
192
+ return r({
193
+ mutationFn: async (e) => (await t("mutation GovDeleteAdminLevel($id: ID!) { govDeleteAdminLevel(id: $id) }", { id: e }, n)).govDeleteAdminLevel,
194
+ onSuccess: () => i.invalidateQueries({ queryKey: s.intelAdminLevels })
195
+ });
196
+ }, K = () => {
197
+ let { apiGatewayUrl: n } = e(), i = a();
198
+ return r({
199
+ mutationFn: async (e) => (await t(`mutation GovSeedAdminLevels($countryCode: String!, $preset: String) {
200
+ govSeedAdminLevels(countryCode: $countryCode, preset: $preset) { ${u} }
201
+ }`, e, n)).govSeedAdminLevels,
202
+ onSuccess: () => i.invalidateQueries({ queryKey: s.intelAdminLevels })
203
+ });
204
+ }, q = (r = {}, a) => {
205
+ let { apiGatewayUrl: o } = e();
206
+ return i({
207
+ queryKey: [
208
+ ...s.intelJurisdictions,
209
+ r,
210
+ a ?? null
211
+ ],
212
+ queryFn: async () => (await t(`query GovJurisdictions($filter: GovJurisdictionFilterInput, $pagination: PaginationInput) {
213
+ govJurisdictions(filter: $filter, pagination: $pagination) {
214
+ items { ${d} adminLevel { ${u} } }
215
+ pageInfo { cursor hasMore }
216
+ }
217
+ }`, {
218
+ filter: r,
219
+ pagination: n(a)
220
+ }, o)).govJurisdictions
221
+ });
222
+ }, J = (n, r) => {
223
+ let { apiGatewayUrl: a } = e();
224
+ return i({
225
+ queryKey: [
226
+ ...s.intelJurisdictionTree,
227
+ n ?? null,
228
+ r ?? null
229
+ ],
230
+ queryFn: async () => (await t(`query GovJurisdictionTree($rootId: ID, $maxDepth: Int) {
231
+ govJurisdictionTree(rootId: $rootId, maxDepth: $maxDepth) { ${h} }
232
+ }`, {
233
+ rootId: n ?? void 0,
234
+ maxDepth: r
235
+ }, a)).govJurisdictionTree
236
+ });
237
+ }, Y = (t) => {
238
+ let { apiGatewayUrl: n } = e();
239
+ return i({
240
+ queryKey: s.intelOverviewFor(t ?? ""),
241
+ enabled: !!t,
242
+ queryFn: async () => c(`query GovJurisdictionOverview($jurisdictionId: ID!) {
243
+ govJurisdictionOverview(jurisdictionId: $jurisdictionId) { ${V} }
244
+ }`, { jurisdictionId: t }, "govJurisdictionOverview", n)
245
+ });
246
+ }, X = () => {
247
+ let { apiGatewayUrl: n } = e(), i = a();
248
+ return r({
249
+ mutationFn: async (e) => (await t(`mutation GovCreateJurisdiction($input: GovCreateJurisdictionInput!) {
250
+ govCreateJurisdiction(input: $input) { ${d} }
251
+ }`, { input: e }, n)).govCreateJurisdiction,
252
+ onSuccess: () => {
253
+ i.invalidateQueries({ queryKey: s.intelJurisdictions }), i.invalidateQueries({ queryKey: s.intelJurisdictionTree }), i.invalidateQueries({ queryKey: s.intelAdminLevels });
254
+ }
255
+ });
256
+ }, Z = (r = {}, a) => {
257
+ let { apiGatewayUrl: o } = e();
258
+ return i({
259
+ queryKey: [
260
+ ...s.intelOfficials,
261
+ r,
262
+ a ?? null
263
+ ],
264
+ queryFn: async () => (await t(`query GovOfficials($filter: GovOfficialFilterInput, $pagination: PaginationInput) {
265
+ govOfficials(filter: $filter, pagination: $pagination) {
266
+ items { ${g} }
267
+ pageInfo { cursor hasMore }
268
+ }
269
+ }`, {
270
+ filter: r,
271
+ pagination: n(a)
272
+ }, o)).govOfficials
273
+ });
274
+ }, Q = (t) => {
275
+ let { apiGatewayUrl: n } = e();
276
+ return i({
277
+ queryKey: s.intelOfficial(t ?? ""),
278
+ enabled: !!t,
279
+ queryFn: async () => c(`query GovOfficial($id: ID!) {
280
+ govOfficial(id: $id) {
281
+ ${g}
282
+ jurisdiction { ${f} }
283
+ commitments { ${_} }
284
+ }
285
+ }`, { id: t }, "govOfficial", n)
286
+ });
287
+ }, ne = () => {
288
+ let { apiGatewayUrl: n } = e(), i = a();
289
+ return r({
290
+ mutationFn: async (e) => (await t(`mutation GovCreateOfficial($input: GovCreateOfficialInput!) {
291
+ govCreateOfficial(input: $input) { ${g} }
292
+ }`, { input: e }, n)).govCreateOfficial,
293
+ onSuccess: () => {
294
+ i.invalidateQueries({ queryKey: s.intelOfficials }), i.invalidateQueries({ queryKey: s.intelOverview });
295
+ }
296
+ });
297
+ }, re = () => {
298
+ let { apiGatewayUrl: n } = e(), i = a();
299
+ return r({
300
+ mutationFn: async (e) => (await t(`mutation GovUpdateOfficial($id: ID!, $input: GovUpdateOfficialInput!) {
301
+ govUpdateOfficial(id: $id, input: $input) { ${g} }
302
+ }`, e, n)).govUpdateOfficial,
303
+ onSuccess: (e) => {
304
+ i.invalidateQueries({ queryKey: s.intelOfficials }), i.invalidateQueries({ queryKey: s.intelOfficial(e.id) });
305
+ }
306
+ });
307
+ }, ie = () => {
308
+ let { apiGatewayUrl: n } = e(), i = a();
309
+ return r({
310
+ mutationFn: async (e) => (await t("mutation GovDeleteOfficial($id: ID!) { govDeleteOfficial(id: $id) }", { id: e }, n)).govDeleteOfficial,
311
+ onSuccess: () => {
312
+ i.invalidateQueries({ queryKey: s.intelOfficials }), i.invalidateQueries({ queryKey: s.intelCommitments }), i.invalidateQueries({ queryKey: s.intelOverview });
313
+ }
314
+ });
315
+ }, ae = () => {
316
+ let { apiGatewayUrl: n } = e(), i = a();
317
+ return r({
318
+ mutationFn: async (e) => (await t(`mutation GovCreateOfficialCommitment($input: GovCreateOfficialCommitmentInput!) {
319
+ govCreateOfficialCommitment(input: $input) { ${_} }
320
+ }`, { input: e }, n)).govCreateOfficialCommitment,
321
+ onSuccess: (e) => {
322
+ i.invalidateQueries({ queryKey: s.intelCommitments }), i.invalidateQueries({ queryKey: s.intelOfficial(e.officialId) }), i.invalidateQueries({ queryKey: s.intelOfficials });
323
+ }
324
+ });
325
+ }, oe = () => {
326
+ let { apiGatewayUrl: n } = e(), i = a();
327
+ return r({
328
+ mutationFn: async (e) => (await t(`mutation GovUpdateOfficialCommitment($id: ID!, $input: GovUpdateOfficialCommitmentInput!) {
329
+ govUpdateOfficialCommitment(id: $id, input: $input) { ${_} }
330
+ }`, e, n)).govUpdateOfficialCommitment,
331
+ onSuccess: (e) => {
332
+ i.invalidateQueries({ queryKey: s.intelCommitments }), i.invalidateQueries({ queryKey: s.intelOfficial(e.officialId) }), i.invalidateQueries({ queryKey: s.intelOfficials });
333
+ }
334
+ });
335
+ }, se = () => {
336
+ let { apiGatewayUrl: n } = e(), i = a();
337
+ return r({
338
+ mutationFn: async (e) => (await t("mutation GovDeleteOfficialCommitment($id: ID!) { govDeleteOfficialCommitment(id: $id) }", { id: e }, n)).govDeleteOfficialCommitment,
339
+ onSuccess: () => {
340
+ i.invalidateQueries({ queryKey: s.intelCommitments }), i.invalidateQueries({ queryKey: s.intelOfficials });
341
+ }
342
+ });
343
+ }, ce = (r = {}, a) => {
344
+ let { apiGatewayUrl: o } = e();
345
+ return i({
346
+ queryKey: [
347
+ ...s.intelElections,
348
+ r,
349
+ a ?? null
350
+ ],
351
+ queryFn: async () => (await t(`query GovElections($filter: GovElectionFilterInput, $pagination: PaginationInput) {
352
+ govElections(filter: $filter, pagination: $pagination) {
353
+ items { ${v} }
354
+ pageInfo { cursor hasMore }
355
+ }
356
+ }`, {
357
+ filter: r,
358
+ pagination: n(a)
359
+ }, o)).govElections
360
+ });
361
+ }, le = (t) => {
362
+ let { apiGatewayUrl: n } = e();
363
+ return i({
364
+ queryKey: s.intelElection(t ?? ""),
365
+ enabled: !!t,
366
+ queryFn: async () => c(`query GovElection($id: ID!) {
367
+ govElection(id: $id) {
368
+ ${v}
369
+ jurisdiction { ${f} }
370
+ results { ${y} }
371
+ }
372
+ }`, { id: t }, "govElection", n)
373
+ });
374
+ }, ue = () => {
375
+ let { apiGatewayUrl: n } = e(), i = a();
376
+ return r({
377
+ mutationFn: async (e) => (await t(`mutation GovCreateElection($input: GovCreateElectionInput!) {
378
+ govCreateElection(input: $input) { ${v} }
379
+ }`, { input: e }, n)).govCreateElection,
380
+ onSuccess: () => i.invalidateQueries({ queryKey: s.intelElections })
381
+ });
382
+ }, de = () => {
383
+ let { apiGatewayUrl: n } = e(), i = a();
384
+ return r({
385
+ mutationFn: async (e) => (await t(`mutation GovUpdateElection($id: ID!, $input: GovUpdateElectionInput!) {
386
+ govUpdateElection(id: $id, input: $input) { ${v} }
387
+ }`, e, n)).govUpdateElection,
388
+ onSuccess: (e) => {
389
+ i.invalidateQueries({ queryKey: s.intelElections }), i.invalidateQueries({ queryKey: s.intelElection(e.id) });
390
+ }
391
+ });
392
+ }, fe = () => {
393
+ let { apiGatewayUrl: n } = e(), i = a();
394
+ return r({
395
+ mutationFn: async (e) => (await t("mutation GovDeleteElection($id: ID!) { govDeleteElection(id: $id) }", { id: e }, n)).govDeleteElection,
396
+ onSuccess: () => i.invalidateQueries({ queryKey: s.intelElections })
397
+ });
398
+ }, pe = () => {
399
+ let { apiGatewayUrl: n } = e(), i = a();
400
+ return r({
401
+ mutationFn: async (e) => (await t(`mutation GovRecordElectionResults($electionId: ID!, $results: [GovElectionResultInput!]!) {
402
+ govRecordElectionResults(electionId: $electionId, results: $results) {
403
+ ${v}
404
+ results { ${y} }
405
+ }
406
+ }`, e, n)).govRecordElectionResults,
407
+ onSuccess: (e) => {
408
+ i.invalidateQueries({ queryKey: s.intelElections }), i.invalidateQueries({ queryKey: s.intelElection(e.id) });
409
+ }
410
+ });
411
+ }, me = (r, a) => {
412
+ let { apiGatewayUrl: o } = e();
413
+ return i({
414
+ queryKey: [...s.intelEventsFor(r ?? ""), a ?? null],
415
+ enabled: !!r,
416
+ queryFn: async () => (await t(`query GovJurisdictionEvents($jurisdictionId: ID!, $pagination: PaginationInput) {
417
+ govJurisdictionEvents(jurisdictionId: $jurisdictionId, pagination: $pagination) {
418
+ items { ${b} }
419
+ pageInfo { cursor hasMore }
420
+ }
421
+ }`, {
422
+ jurisdictionId: r,
423
+ pagination: n(a)
424
+ }, o)).govJurisdictionEvents
425
+ });
426
+ }, he = () => {
427
+ let { apiGatewayUrl: n } = e(), i = a();
428
+ return r({
429
+ mutationFn: async (e) => (await t(`mutation GovCreateJurisdictionEvent($input: GovCreateJurisdictionEventInput!) {
430
+ govCreateJurisdictionEvent(input: $input) { ${b} }
431
+ }`, { input: e }, n)).govCreateJurisdictionEvent,
432
+ onSuccess: (e) => i.invalidateQueries({ queryKey: s.intelEventsFor(e.jurisdictionId) })
433
+ });
434
+ }, ge = () => {
435
+ let { apiGatewayUrl: n } = e(), i = a();
436
+ return r({
437
+ mutationFn: async (e) => (await t(`mutation GovUpdateJurisdictionEvent($id: ID!, $input: GovUpdateJurisdictionEventInput!) {
438
+ govUpdateJurisdictionEvent(id: $id, input: $input) { ${b} }
439
+ }`, e, n)).govUpdateJurisdictionEvent,
440
+ onSuccess: (e) => i.invalidateQueries({ queryKey: s.intelEventsFor(e.jurisdictionId) })
441
+ });
442
+ }, _e = () => {
443
+ let { apiGatewayUrl: n } = e(), i = a();
444
+ return r({
445
+ mutationFn: async (e) => (await t("mutation GovDeleteJurisdictionEvent($id: ID!) { govDeleteJurisdictionEvent(id: $id) }", { id: e }, n)).govDeleteJurisdictionEvent,
446
+ onSuccess: () => i.invalidateQueries({ queryKey: s.intelEvents })
447
+ });
448
+ }, ve = (r = {}, a) => {
449
+ let { apiGatewayUrl: o } = e();
450
+ return i({
451
+ queryKey: [
452
+ ...s.intelBudgets,
453
+ r,
454
+ a ?? null
455
+ ],
456
+ queryFn: async () => (await t(`query GovBudgets($filter: GovBudgetFilterInput, $pagination: PaginationInput) {
457
+ govBudgets(filter: $filter, pagination: $pagination) {
458
+ items { ${x} }
459
+ pageInfo { cursor hasMore }
460
+ }
461
+ }`, {
462
+ filter: r,
463
+ pagination: n(a)
464
+ }, o)).govBudgets
465
+ });
466
+ }, ye = (t) => {
467
+ let { apiGatewayUrl: n } = e();
468
+ return i({
469
+ queryKey: s.intelBudget(t ?? ""),
470
+ enabled: !!t,
471
+ queryFn: async () => c(`query GovBudget($id: ID!) {
472
+ govBudget(id: $id) {
473
+ ${x}
474
+ jurisdiction { ${f} }
475
+ lines { ${S} }
476
+ }
477
+ }`, { id: t }, "govBudget", n)
478
+ });
479
+ }, be = (t) => {
480
+ let { apiGatewayUrl: n } = e();
481
+ return i({
482
+ queryKey: s.intelBudgetExecutionFor(t ?? ""),
483
+ enabled: !!t,
484
+ queryFn: async () => c(`query GovBudgetExecution($budgetId: ID!) {
485
+ govBudgetExecution(budgetId: $budgetId) { ${C} }
486
+ }`, { budgetId: t }, "govBudgetExecution", n)
487
+ });
488
+ }, xe = () => {
489
+ let { apiGatewayUrl: n } = e(), i = a();
490
+ return r({
491
+ mutationFn: async (e) => (await t(`mutation GovCreateBudget($input: GovCreateBudgetInput!) {
492
+ govCreateBudget(input: $input) { ${x} }
493
+ }`, { input: e }, n)).govCreateBudget,
494
+ onSuccess: () => {
495
+ i.invalidateQueries({ queryKey: s.intelBudgets }), i.invalidateQueries({ queryKey: s.intelOverview });
496
+ }
497
+ });
498
+ }, Se = () => {
499
+ let { apiGatewayUrl: n } = e(), i = a();
500
+ return r({
501
+ mutationFn: async (e) => (await t(`mutation GovUpdateBudget($id: ID!, $input: GovUpdateBudgetInput!) {
502
+ govUpdateBudget(id: $id, input: $input) { ${x} }
503
+ }`, e, n)).govUpdateBudget,
504
+ onSuccess: (e) => {
505
+ i.invalidateQueries({ queryKey: s.intelBudgets }), i.invalidateQueries({ queryKey: s.intelBudget(e.id) }), i.invalidateQueries({ queryKey: s.intelBudgetExecutionFor(e.id) }), i.invalidateQueries({ queryKey: s.intelOverview });
506
+ }
507
+ });
508
+ }, Ce = () => {
509
+ let { apiGatewayUrl: n } = e(), i = a();
510
+ return r({
511
+ mutationFn: async (e) => (await t(`mutation GovPublishBudget($id: ID!) {
512
+ govPublishBudget(id: $id) { ${x} }
513
+ }`, { id: e }, n)).govPublishBudget,
514
+ onSuccess: (e) => {
515
+ i.invalidateQueries({ queryKey: s.intelBudgets }), i.invalidateQueries({ queryKey: s.intelBudget(e.id) }), i.invalidateQueries({ queryKey: s.intelBudgetExecutionFor(e.id) }), l(i);
516
+ }
517
+ });
518
+ }, we = () => {
519
+ let { apiGatewayUrl: n } = e(), i = a();
520
+ return r({
521
+ mutationFn: async (e) => (await t(`mutation GovUpsertBudgetLines($budgetId: ID!, $lines: [GovBudgetLineInput!]!) {
522
+ govUpsertBudgetLines(budgetId: $budgetId, lines: $lines) {
523
+ ${x}
524
+ lines { ${S} }
525
+ }
526
+ }`, e, n)).govUpsertBudgetLines,
527
+ onSuccess: (e) => {
528
+ i.invalidateQueries({ queryKey: s.intelBudgets }), i.invalidateQueries({ queryKey: s.intelBudget(e.id) }), i.invalidateQueries({ queryKey: s.intelBudgetExecutionFor(e.id) });
529
+ }
530
+ });
531
+ }, Te = () => {
532
+ let { apiGatewayUrl: n } = e(), i = a();
533
+ return r({
534
+ mutationFn: async (e) => (await t("mutation GovDeleteBudgetLine($id: ID!) { govDeleteBudgetLine(id: $id) }", { id: e.id }, n)).govDeleteBudgetLine,
535
+ onSuccess: (e, t) => {
536
+ i.invalidateQueries({ queryKey: s.intelBudgets }), i.invalidateQueries({ queryKey: s.intelBudgetExecution }), t.budgetId && i.invalidateQueries({ queryKey: s.intelBudget(t.budgetId) });
537
+ }
538
+ });
539
+ }, Ee = (r = {}, a) => {
540
+ let { apiGatewayUrl: o } = e();
541
+ return i({
542
+ queryKey: [
543
+ ...s.intelProjects,
544
+ r,
545
+ a ?? null
546
+ ],
547
+ queryFn: async () => (await t(`query GovProjects($filter: GovProjectFilterInput, $pagination: PaginationInput) {
548
+ govProjects(filter: $filter, pagination: $pagination) {
549
+ items { ${w} }
550
+ pageInfo { cursor hasMore }
551
+ }
552
+ }`, {
553
+ filter: r,
554
+ pagination: n(a)
555
+ }, o)).govProjects
556
+ });
557
+ }, De = (t) => {
558
+ let { apiGatewayUrl: n } = e();
559
+ return i({
560
+ queryKey: s.intelProject(t ?? ""),
561
+ enabled: !!t,
562
+ queryFn: async () => c(`query GovProject($id: ID!) {
563
+ govProject(id: $id) {
564
+ ${w}
565
+ jurisdiction { ${f} }
566
+ milestones { ${T} }
567
+ }
568
+ }`, { id: t }, "govProject", n)
569
+ });
570
+ }, Oe = () => {
571
+ let { apiGatewayUrl: n } = e(), i = a();
572
+ return r({
573
+ mutationFn: async (e) => (await t(`mutation GovCreateProject($input: GovCreateProjectInput!) {
574
+ govCreateProject(input: $input) { ${w} }
575
+ }`, { input: e }, n)).govCreateProject,
576
+ onSuccess: () => {
577
+ i.invalidateQueries({ queryKey: s.intelProjects }), i.invalidateQueries({ queryKey: s.intelOverview });
578
+ }
579
+ });
580
+ }, ke = () => {
581
+ let { apiGatewayUrl: n } = e(), i = a();
582
+ return r({
583
+ mutationFn: async (e) => (await t(`mutation GovUpdateProject($id: ID!, $input: GovUpdateProjectInput!) {
584
+ govUpdateProject(id: $id, input: $input) { ${w} }
585
+ }`, e, n)).govUpdateProject,
586
+ onSuccess: (e) => {
587
+ i.invalidateQueries({ queryKey: s.intelProjects }), i.invalidateQueries({ queryKey: s.intelProject(e.id) }), i.invalidateQueries({ queryKey: s.intelOverview });
588
+ }
589
+ });
590
+ }, Ae = () => {
591
+ let { apiGatewayUrl: n } = e(), i = a();
592
+ return r({
593
+ mutationFn: async (e) => (await t(`mutation GovUpdateProjectStatus($id: ID!, $status: GovProjectStatus!, $progressPercent: Int, $delayReason: String) {
594
+ govUpdateProjectStatus(id: $id, status: $status, progressPercent: $progressPercent, delayReason: $delayReason) {
595
+ ${w}
596
+ }
597
+ }`, e, n)).govUpdateProjectStatus,
598
+ onSuccess: (e) => {
599
+ i.invalidateQueries({ queryKey: s.intelProjects }), i.invalidateQueries({ queryKey: s.intelProject(e.id) }), i.invalidateQueries({ queryKey: s.intelOverview }), i.invalidateQueries({ queryKey: s.intelInsights });
600
+ }
601
+ });
602
+ }, je = () => {
603
+ let { apiGatewayUrl: n } = e(), i = a();
604
+ return r({
605
+ mutationFn: async (e) => (await t(`mutation GovCreateProjectMilestone($input: GovCreateProjectMilestoneInput!) {
606
+ govCreateProjectMilestone(input: $input) { ${T} }
607
+ }`, { input: e }, n)).govCreateProjectMilestone,
608
+ onSuccess: (e) => i.invalidateQueries({ queryKey: s.intelProject(e.projectId) })
609
+ });
610
+ }, Me = () => {
611
+ let { apiGatewayUrl: n } = e(), i = a();
612
+ return r({
613
+ mutationFn: async (e) => (await t(`mutation GovUpdateProjectMilestone($id: ID!, $input: GovUpdateProjectMilestoneInput!) {
614
+ govUpdateProjectMilestone(id: $id, input: $input) { ${T} }
615
+ }`, e, n)).govUpdateProjectMilestone,
616
+ onSuccess: (e) => i.invalidateQueries({ queryKey: s.intelProject(e.projectId) })
617
+ });
618
+ }, Ne = () => {
619
+ let { apiGatewayUrl: n } = e(), i = a();
620
+ return r({
621
+ mutationFn: async (e) => (await t("mutation GovDeleteProjectMilestone($id: ID!) { govDeleteProjectMilestone(id: $id) }", { id: e.id }, n)).govDeleteProjectMilestone,
622
+ onSuccess: (e, t) => {
623
+ t.projectId ? i.invalidateQueries({ queryKey: s.intelProject(t.projectId) }) : i.invalidateQueries({ queryKey: s.intelProjects });
624
+ }
625
+ });
626
+ }, Pe = (r = {}, a) => {
627
+ let { apiGatewayUrl: o } = e();
628
+ return i({
629
+ queryKey: [
630
+ ...s.intelIndicators,
631
+ r,
632
+ a ?? null
633
+ ],
634
+ queryFn: async () => (await t(`query GovIndicators($filter: GovIndicatorFilterInput, $pagination: PaginationInput) {
635
+ govIndicators(filter: $filter, pagination: $pagination) {
636
+ items { ${E} }
637
+ pageInfo { cursor hasMore }
638
+ }
639
+ }`, {
640
+ filter: r,
641
+ pagination: n(a)
642
+ }, o)).govIndicators
643
+ });
644
+ }, Fe = (r = {}, a) => {
645
+ let { apiGatewayUrl: o } = e();
646
+ return i({
647
+ queryKey: [
648
+ ...s.intelIndicatorValues,
649
+ r,
650
+ a ?? null
651
+ ],
652
+ queryFn: async () => (await t(`query GovIndicatorValues($filter: GovIndicatorValueFilterInput, $pagination: PaginationInput) {
653
+ govIndicatorValues(filter: $filter, pagination: $pagination) {
654
+ items { ${D} indicator { ${E} } }
655
+ pageInfo { cursor hasMore }
656
+ }
657
+ }`, {
658
+ filter: r,
659
+ pagination: n(a)
660
+ }, o)).govIndicatorValues
661
+ });
662
+ }, Ie = (t, n, r = {}) => {
663
+ let { apiGatewayUrl: a } = e();
664
+ return i({
665
+ queryKey: [
666
+ ...s.intelIndicatorSeries,
667
+ t ?? "",
668
+ n ?? "",
669
+ r
670
+ ],
671
+ enabled: !!t && !!n,
672
+ queryFn: async () => c(`query GovIndicatorSeries($jurisdictionId: ID!, $indicatorCode: String!, $fromPeriod: String, $toPeriod: String) {
673
+ govIndicatorSeries(jurisdictionId: $jurisdictionId, indicatorCode: $indicatorCode, fromPeriod: $fromPeriod, toPeriod: $toPeriod) {
674
+ ${O}
675
+ }
676
+ }`, {
677
+ jurisdictionId: t,
678
+ indicatorCode: n,
679
+ fromPeriod: r.fromPeriod,
680
+ toPeriod: r.toPeriod
681
+ }, "govIndicatorSeries", a)
682
+ });
683
+ }, Le = () => {
684
+ let { apiGatewayUrl: n } = e(), i = a();
685
+ return r({
686
+ mutationFn: async (e) => (await t(`mutation GovCreateIndicator($input: GovCreateIndicatorInput!) {
687
+ govCreateIndicator(input: $input) { ${E} }
688
+ }`, { input: e }, n)).govCreateIndicator,
689
+ onSuccess: () => {
690
+ i.invalidateQueries({ queryKey: s.intelIndicators }), l(i);
691
+ }
692
+ });
693
+ }, Re = () => {
694
+ let { apiGatewayUrl: n } = e(), i = a();
695
+ return r({
696
+ mutationFn: async (e) => (await t(`mutation GovUpdateIndicator($id: ID!, $input: GovUpdateIndicatorInput!) {
697
+ govUpdateIndicator(id: $id, input: $input) { ${E} }
698
+ }`, e, n)).govUpdateIndicator,
699
+ onSuccess: (e) => {
700
+ i.invalidateQueries({ queryKey: s.intelIndicators }), i.invalidateQueries({ queryKey: s.intelIndicator(e.id) }), i.invalidateQueries({ queryKey: s.intelIndicatorSeries }), l(i);
701
+ }
702
+ });
703
+ }, ze = () => {
704
+ let { apiGatewayUrl: n } = e(), i = a();
705
+ return r({
706
+ mutationFn: async (e) => (await t("mutation GovDeleteIndicator($id: ID!) { govDeleteIndicator(id: $id) }", { id: e }, n)).govDeleteIndicator,
707
+ onSuccess: () => {
708
+ i.invalidateQueries({ queryKey: s.intelIndicators }), i.invalidateQueries({ queryKey: s.intelIndicatorValues }), i.invalidateQueries({ queryKey: s.intelIndicatorSeries }), l(i);
709
+ }
710
+ });
711
+ }, Be = () => {
712
+ let { apiGatewayUrl: n } = e(), i = a();
713
+ return r({
714
+ mutationFn: async (e) => (await t(`mutation GovSeedIndicatorCatalog($domains: [GovIndicatorDomain!]) {
715
+ govSeedIndicatorCatalog(domains: $domains) { ${E} }
716
+ }`, { domains: e }, n)).govSeedIndicatorCatalog,
717
+ onSuccess: () => {
718
+ i.invalidateQueries({ queryKey: s.intelIndicators }), l(i);
719
+ }
720
+ });
721
+ }, Ve = () => {
722
+ let { apiGatewayUrl: n } = e(), i = a();
723
+ return r({
724
+ mutationFn: async (e) => (await t(`mutation GovRecordIndicatorValue($input: GovRecordIndicatorValueInput!) {
725
+ govRecordIndicatorValue(input: $input) { ${D} }
726
+ }`, { input: e }, n)).govRecordIndicatorValue,
727
+ onSuccess: () => {
728
+ i.invalidateQueries({ queryKey: s.intelIndicatorValues }), i.invalidateQueries({ queryKey: s.intelIndicatorSeries }), l(i);
729
+ }
730
+ });
731
+ }, He = () => {
732
+ let { apiGatewayUrl: n } = e(), i = a();
733
+ return r({
734
+ mutationFn: async (e) => (await t(`mutation GovUpdateIndicatorValue($id: ID!, $input: GovUpdateIndicatorValueInput!) {
735
+ govUpdateIndicatorValue(id: $id, input: $input) { ${D} }
736
+ }`, e, n)).govUpdateIndicatorValue,
737
+ onSuccess: () => {
738
+ i.invalidateQueries({ queryKey: s.intelIndicatorValues }), i.invalidateQueries({ queryKey: s.intelIndicatorSeries }), l(i);
739
+ }
740
+ });
741
+ }, Ue = () => {
742
+ let { apiGatewayUrl: n } = e(), i = a();
743
+ return r({
744
+ mutationFn: async (e) => (await t("mutation GovDeleteIndicatorValue($id: ID!) { govDeleteIndicatorValue(id: $id) }", { id: e }, n)).govDeleteIndicatorValue,
745
+ onSuccess: () => {
746
+ i.invalidateQueries({ queryKey: s.intelIndicatorValues }), i.invalidateQueries({ queryKey: s.intelIndicatorSeries }), l(i);
747
+ }
748
+ });
749
+ }, We = (t, n, r = {}) => {
750
+ let { apiGatewayUrl: a } = e();
751
+ return i({
752
+ queryKey: [
753
+ ...s.intelBenchmark,
754
+ t ?? "",
755
+ n ?? "",
756
+ r
757
+ ],
758
+ enabled: !!t && !!n,
759
+ queryFn: async () => c(`query GovJurisdictionBenchmark($jurisdictionId: ID!, $indicatorCode: String!, $scope: GovBenchmarkScope!, $periodLabel: String, $peerIds: [ID!]) {
760
+ govJurisdictionBenchmark(jurisdictionId: $jurisdictionId, indicatorCode: $indicatorCode, scope: $scope, periodLabel: $periodLabel, peerIds: $peerIds) {
761
+ ${te}
762
+ }
763
+ }`, {
764
+ jurisdictionId: t,
765
+ indicatorCode: n,
766
+ scope: r.scope ?? "SIBLINGS",
767
+ periodLabel: r.periodLabel,
768
+ peerIds: r.peerIds
769
+ }, "govJurisdictionBenchmark", a)
770
+ });
771
+ }, Ge = (n, r = {}) => {
772
+ let { apiGatewayUrl: a } = e();
773
+ return i({
774
+ queryKey: [
775
+ ...s.intelServicePerformance,
776
+ n ?? "",
777
+ r
778
+ ],
779
+ enabled: !!n,
780
+ queryFn: async () => (await t(`query GovJurisdictionServicePerformance($jurisdictionId: ID!, $from: DateTime, $to: DateTime) {
781
+ govJurisdictionServicePerformance(jurisdictionId: $jurisdictionId, from: $from, to: $to) {
782
+ ${M}
783
+ }
784
+ }`, {
785
+ jurisdictionId: n,
786
+ from: r.from,
787
+ to: r.to
788
+ }, a)).govJurisdictionServicePerformance
789
+ });
790
+ }, Ke = (n, r = {}) => {
791
+ let { apiGatewayUrl: a } = e();
792
+ return i({
793
+ queryKey: [
794
+ ...s.intelGrievanceInsights,
795
+ n ?? "",
796
+ r
797
+ ],
798
+ enabled: !!n,
799
+ queryFn: async () => (await t(`query GovJurisdictionGrievanceInsights($jurisdictionId: ID!, $from: DateTime, $to: DateTime) {
800
+ govJurisdictionGrievanceInsights(jurisdictionId: $jurisdictionId, from: $from, to: $to) {
801
+ ${N}
802
+ }
803
+ }`, {
804
+ jurisdictionId: n,
805
+ from: r.from,
806
+ to: r.to
807
+ }, a)).govJurisdictionGrievanceInsights
808
+ });
809
+ }, qe = (r = {}, a) => {
810
+ let { apiGatewayUrl: o } = e();
811
+ return i({
812
+ queryKey: [
813
+ ...s.intelAssets,
814
+ r,
815
+ a ?? null
816
+ ],
817
+ queryFn: async () => (await t(`query GovPublicAssets($filter: GovPublicAssetFilterInput, $pagination: PaginationInput) {
818
+ govPublicAssets(filter: $filter, pagination: $pagination) {
819
+ items { ${P} }
820
+ pageInfo { cursor hasMore }
821
+ }
822
+ }`, {
823
+ filter: r,
824
+ pagination: n(a)
825
+ }, o)).govPublicAssets
826
+ });
827
+ }, Je = (n) => {
828
+ let { apiGatewayUrl: r } = e();
829
+ return i({
830
+ queryKey: s.intelAssetSummaryFor(n ?? ""),
831
+ enabled: !!n,
832
+ queryFn: async () => (await t("query GovPublicAssetSummary($jurisdictionId: ID!) {\n govPublicAssetSummary(jurisdictionId: $jurisdictionId) { category count }\n }", { jurisdictionId: n }, r)).govPublicAssetSummary
833
+ });
834
+ }, Ye = () => {
835
+ let { apiGatewayUrl: n } = e(), i = a();
836
+ return r({
837
+ mutationFn: async (e) => (await t(`mutation GovCreatePublicAsset($input: GovCreatePublicAssetInput!) {
838
+ govCreatePublicAsset(input: $input) { ${P} }
839
+ }`, { input: e }, n)).govCreatePublicAsset,
840
+ onSuccess: (e) => {
841
+ i.invalidateQueries({ queryKey: s.intelAssets }), i.invalidateQueries({ queryKey: s.intelAssetSummaryFor(e.jurisdictionId) }), i.invalidateQueries({ queryKey: s.intelOverview });
842
+ }
843
+ });
844
+ }, Xe = () => {
845
+ let { apiGatewayUrl: n } = e(), i = a();
846
+ return r({
847
+ mutationFn: async (e) => (await t(`mutation GovUpdatePublicAsset($id: ID!, $input: GovUpdatePublicAssetInput!) {
848
+ govUpdatePublicAsset(id: $id, input: $input) { ${P} }
849
+ }`, e, n)).govUpdatePublicAsset,
850
+ onSuccess: (e) => {
851
+ i.invalidateQueries({ queryKey: s.intelAssets }), i.invalidateQueries({ queryKey: s.intelAsset(e.id) }), i.invalidateQueries({ queryKey: s.intelAssetSummaryFor(e.jurisdictionId) });
852
+ }
853
+ });
854
+ }, Ze = () => {
855
+ let { apiGatewayUrl: n } = e(), i = a();
856
+ return r({
857
+ mutationFn: async (e) => (await t("mutation GovDeletePublicAsset($id: ID!) { govDeletePublicAsset(id: $id) }", { id: e }, n)).govDeletePublicAsset,
858
+ onSuccess: () => {
859
+ i.invalidateQueries({ queryKey: s.intelAssets }), i.invalidateQueries({ queryKey: s.intelAssetSummary }), i.invalidateQueries({ queryKey: s.intelOverview });
860
+ }
861
+ });
862
+ }, Qe = (r = {}, a) => {
863
+ let { apiGatewayUrl: o } = e();
864
+ return i({
865
+ queryKey: [
866
+ ...s.intelConsultations,
867
+ r,
868
+ a ?? null
869
+ ],
870
+ queryFn: async () => (await t(`query GovConsultations($filter: GovConsultationFilterInput, $pagination: PaginationInput) {
871
+ govConsultations(filter: $filter, pagination: $pagination) {
872
+ items { ${F} }
873
+ pageInfo { cursor hasMore }
874
+ }
875
+ }`, {
876
+ filter: r,
877
+ pagination: n(a)
878
+ }, o)).govConsultations
879
+ });
880
+ }, $e = (t) => {
881
+ let { apiGatewayUrl: n } = e();
882
+ return i({
883
+ queryKey: s.intelConsultationResultsFor(t ?? ""),
884
+ enabled: !!t,
885
+ queryFn: async () => c(`query GovConsultationResults($consultationId: ID!) {
886
+ govConsultationResults(consultationId: $consultationId) { ${L} }
887
+ }`, { consultationId: t }, "govConsultationResults", n)
888
+ });
889
+ }, et = (t) => {
890
+ let { apiGatewayUrl: n } = e();
891
+ return i({
892
+ queryKey: s.intelMyConsultationResponseFor(t ?? ""),
893
+ enabled: !!t,
894
+ queryFn: async () => c(`query GovMyConsultationResponse($consultationId: ID!) {
895
+ govMyConsultationResponse(consultationId: $consultationId) { ${I} }
896
+ }`, { consultationId: t }, "govMyConsultationResponse", n)
897
+ });
898
+ }, tt = () => {
899
+ let { apiGatewayUrl: n } = e(), i = a();
900
+ return r({
901
+ mutationFn: async (e) => (await t(`mutation GovCreateConsultation($input: GovCreateConsultationInput!) {
902
+ govCreateConsultation(input: $input) { ${F} }
903
+ }`, { input: e }, n)).govCreateConsultation,
904
+ onSuccess: () => {
905
+ i.invalidateQueries({ queryKey: s.intelConsultations }), i.invalidateQueries({ queryKey: s.intelOverview });
906
+ }
907
+ });
908
+ }, nt = () => {
909
+ let { apiGatewayUrl: n } = e(), i = a();
910
+ return r({
911
+ mutationFn: async (e) => (await t(`mutation GovUpdateConsultation($id: ID!, $input: GovUpdateConsultationInput!) {
912
+ govUpdateConsultation(id: $id, input: $input) { ${F} }
913
+ }`, e, n)).govUpdateConsultation,
914
+ onSuccess: (e) => {
915
+ i.invalidateQueries({ queryKey: s.intelConsultations }), i.invalidateQueries({ queryKey: s.intelConsultation(e.id) });
916
+ }
917
+ });
918
+ }, rt = () => {
919
+ let { apiGatewayUrl: n } = e(), i = a();
920
+ return r({
921
+ mutationFn: async (e) => (await t(`mutation GovOpenConsultation($id: ID!) {
922
+ govOpenConsultation(id: $id) { ${F} }
923
+ }`, { id: e }, n)).govOpenConsultation,
924
+ onSuccess: (e) => {
925
+ i.invalidateQueries({ queryKey: s.intelConsultations }), i.invalidateQueries({ queryKey: s.intelConsultation(e.id) }), i.invalidateQueries({ queryKey: s.intelOverview });
926
+ }
927
+ });
928
+ }, it = () => {
929
+ let { apiGatewayUrl: n } = e(), i = a();
930
+ return r({
931
+ mutationFn: async (e) => (await t(`mutation GovCloseConsultation($id: ID!) {
932
+ govCloseConsultation(id: $id) { ${F} }
933
+ }`, { id: e }, n)).govCloseConsultation,
934
+ onSuccess: (e) => {
935
+ i.invalidateQueries({ queryKey: s.intelConsultations }), i.invalidateQueries({ queryKey: s.intelConsultation(e.id) }), i.invalidateQueries({ queryKey: s.intelOverview });
936
+ }
937
+ });
938
+ }, at = () => {
939
+ let { apiGatewayUrl: n } = e(), i = a();
940
+ return r({
941
+ mutationFn: async (e) => (await t(`mutation GovPublishConsultationResults($id: ID!) {
942
+ govPublishConsultationResults(id: $id) { ${F} }
943
+ }`, { id: e }, n)).govPublishConsultationResults,
944
+ onSuccess: (e) => {
945
+ i.invalidateQueries({ queryKey: s.intelConsultations }), i.invalidateQueries({ queryKey: s.intelConsultation(e.id) }), i.invalidateQueries({ queryKey: s.intelConsultationResultsFor(e.id) });
946
+ }
947
+ });
948
+ }, ot = () => {
949
+ let { apiGatewayUrl: n } = e(), i = a();
950
+ return r({
951
+ mutationFn: async (e) => (await t("mutation GovDeleteConsultation($id: ID!) { govDeleteConsultation(id: $id) }", { id: e }, n)).govDeleteConsultation,
952
+ onSuccess: () => {
953
+ i.invalidateQueries({ queryKey: s.intelConsultations }), i.invalidateQueries({ queryKey: s.intelOverview });
954
+ }
955
+ });
956
+ }, st = () => {
957
+ let { apiGatewayUrl: n } = e(), i = a();
958
+ return r({
959
+ mutationFn: async (e) => (await t(`mutation GovSubmitConsultationResponse($input: GovSubmitConsultationResponseInput!) {
960
+ govSubmitConsultationResponse(input: $input) { ${I} }
961
+ }`, { input: e }, n)).govSubmitConsultationResponse,
962
+ onSuccess: (e) => {
963
+ i.invalidateQueries({ queryKey: s.intelConsultations }), i.invalidateQueries({ queryKey: s.intelConsultation(e.consultationId) }), i.invalidateQueries({ queryKey: s.intelMyConsultationResponseFor(e.consultationId) }), i.invalidateQueries({ queryKey: s.intelConsultationResultsFor(e.consultationId) });
964
+ }
965
+ });
966
+ }, ct = (r = {}, a) => {
967
+ let { apiGatewayUrl: o } = e();
968
+ return i({
969
+ queryKey: [
970
+ ...s.intelDatasets,
971
+ r,
972
+ a ?? null
973
+ ],
974
+ queryFn: async () => (await t(`query GovDatasets($filter: GovDatasetFilterInput, $pagination: PaginationInput) {
975
+ govDatasets(filter: $filter, pagination: $pagination) {
976
+ items { ${R} }
977
+ pageInfo { cursor hasMore }
978
+ }
979
+ }`, {
980
+ filter: r,
981
+ pagination: n(a)
982
+ }, o)).govDatasets
983
+ });
984
+ }, lt = (t) => {
985
+ let { apiGatewayUrl: n } = e();
986
+ return i({
987
+ queryKey: s.intelDataset(t ?? ""),
988
+ enabled: !!t,
989
+ queryFn: async () => c(`query GovDataset($id: ID!) {
990
+ govDataset(id: $id) {
991
+ ${R}
992
+ jurisdiction { ${f} }
993
+ }
994
+ }`, { id: t }, "govDataset", n)
995
+ });
996
+ }, ut = () => {
997
+ let { apiGatewayUrl: n } = e(), i = a();
998
+ return r({
999
+ mutationFn: async (e) => (await t(`mutation GovCreateDataset($input: GovCreateDatasetInput!) {
1000
+ govCreateDataset(input: $input) { ${R} }
1001
+ }`, { input: e }, n)).govCreateDataset,
1002
+ onSuccess: () => {
1003
+ i.invalidateQueries({ queryKey: s.intelDatasets }), i.invalidateQueries({ queryKey: s.intelOverview });
1004
+ }
1005
+ });
1006
+ }, dt = () => {
1007
+ let { apiGatewayUrl: n } = e(), i = a();
1008
+ return r({
1009
+ mutationFn: async (e) => (await t(`mutation GovUpdateDataset($id: ID!, $input: GovUpdateDatasetInput!) {
1010
+ govUpdateDataset(id: $id, input: $input) { ${R} }
1011
+ }`, e, n)).govUpdateDataset,
1012
+ onSuccess: (e) => {
1013
+ i.invalidateQueries({ queryKey: s.intelDatasets }), i.invalidateQueries({ queryKey: s.intelDataset(e.id) });
1014
+ }
1015
+ });
1016
+ }, ft = () => {
1017
+ let { apiGatewayUrl: n } = e(), i = a();
1018
+ return r({
1019
+ mutationFn: async (e) => (await t(`mutation GovPublishDataset($id: ID!) {
1020
+ govPublishDataset(id: $id) { ${R} }
1021
+ }`, { id: e }, n)).govPublishDataset,
1022
+ onSuccess: (e) => {
1023
+ i.invalidateQueries({ queryKey: s.intelDatasets }), i.invalidateQueries({ queryKey: s.intelDataset(e.id) }), i.invalidateQueries({ queryKey: s.intelOverview });
1024
+ }
1025
+ });
1026
+ }, $ = () => {
1027
+ let { apiGatewayUrl: n } = e(), i = a();
1028
+ return r({
1029
+ mutationFn: async (e) => (await t("mutation GovDeleteDataset($id: ID!) { govDeleteDataset(id: $id) }", { id: e }, n)).govDeleteDataset,
1030
+ onSuccess: () => {
1031
+ i.invalidateQueries({ queryKey: s.intelDatasets }), i.invalidateQueries({ queryKey: s.intelOverview });
1032
+ }
1033
+ });
1034
+ }, pt = () => {
1035
+ let { apiGatewayUrl: n } = e(), i = a();
1036
+ return r({
1037
+ mutationFn: async (e) => (await t(`mutation GovRecordDatasetDownload($id: ID!) {
1038
+ govRecordDatasetDownload(id: $id) { ${R} }
1039
+ }`, { id: e }, n)).govRecordDatasetDownload,
1040
+ onSuccess: (e) => {
1041
+ i.invalidateQueries({ queryKey: s.intelDatasets }), i.invalidateQueries({ queryKey: s.intelDataset(e.id) });
1042
+ }
1043
+ });
1044
+ }, mt = (r) => {
1045
+ let { apiGatewayUrl: a } = e();
1046
+ return i({
1047
+ queryKey: [...s.intelMyFollowed, r ?? null],
1048
+ queryFn: async () => (await t(`query GovMyFollowedJurisdictions($pagination: PaginationInput) {
1049
+ govMyFollowedJurisdictions(pagination: $pagination) {
1050
+ items { ${d} adminLevel { ${u} } }
1051
+ pageInfo { cursor hasMore }
1052
+ }
1053
+ }`, { pagination: n(r) }, a)).govMyFollowedJurisdictions
1054
+ });
1055
+ }, ht = () => {
1056
+ let { apiGatewayUrl: n } = e(), i = a();
1057
+ return r({
1058
+ mutationFn: async (e) => (await t(`mutation GovFollowJurisdiction($jurisdictionId: ID!, $topics: [String!], $channels: [String!]) {
1059
+ govFollowJurisdiction(jurisdictionId: $jurisdictionId, topics: $topics, channels: $channels) {
1060
+ ${z}
1061
+ }
1062
+ }`, e, n)).govFollowJurisdiction,
1063
+ onSuccess: (e) => {
1064
+ i.invalidateQueries({ queryKey: s.intelMyFollowed }), i.invalidateQueries({ queryKey: s.intelOverviewFor(e.jurisdictionId) });
1065
+ }
1066
+ });
1067
+ }, gt = () => {
1068
+ let { apiGatewayUrl: n } = e(), i = a();
1069
+ return r({
1070
+ mutationFn: async (e) => (await t("mutation GovUnfollowJurisdiction($jurisdictionId: ID!) {\n govUnfollowJurisdiction(jurisdictionId: $jurisdictionId)\n }", { jurisdictionId: e }, n)).govUnfollowJurisdiction,
1071
+ onSuccess: (e, t) => {
1072
+ i.invalidateQueries({ queryKey: s.intelMyFollowed }), i.invalidateQueries({ queryKey: s.intelOverviewFor(t) });
1073
+ }
1074
+ });
1075
+ }, _t = (r = {}, a) => {
1076
+ let { apiGatewayUrl: o } = e();
1077
+ return i({
1078
+ queryKey: [
1079
+ ...s.intelProposals,
1080
+ r,
1081
+ a ?? null
1082
+ ],
1083
+ queryFn: async () => (await t(`query GovDataChangeProposals($filter: GovDataChangeProposalFilterInput, $pagination: PaginationInput) {
1084
+ govDataChangeProposals(filter: $filter, pagination: $pagination) {
1085
+ items { ${B} }
1086
+ pageInfo { cursor hasMore }
1087
+ }
1088
+ }`, {
1089
+ filter: r,
1090
+ pagination: n(a)
1091
+ }, o)).govDataChangeProposals
1092
+ });
1093
+ }, vt = (r) => {
1094
+ let { apiGatewayUrl: a } = e();
1095
+ return i({
1096
+ queryKey: [...s.intelMyProposals, r ?? null],
1097
+ queryFn: async () => (await t(`query GovMyDataChangeProposals($pagination: PaginationInput) {
1098
+ govMyDataChangeProposals(pagination: $pagination) {
1099
+ items { ${B} }
1100
+ pageInfo { cursor hasMore }
1101
+ }
1102
+ }`, { pagination: n(r) }, a)).govMyDataChangeProposals
1103
+ });
1104
+ }, yt = () => {
1105
+ let { apiGatewayUrl: n } = e(), i = a();
1106
+ return r({
1107
+ mutationFn: async (e) => (await t(`mutation GovSubmitDataChangeProposal($input: GovSubmitDataChangeProposalInput!) {
1108
+ govSubmitDataChangeProposal(input: $input) { ${B} }
1109
+ }`, { input: e }, n)).govSubmitDataChangeProposal,
1110
+ onSuccess: () => {
1111
+ i.invalidateQueries({ queryKey: s.intelProposals }), i.invalidateQueries({ queryKey: s.intelMyProposals });
1112
+ }
1113
+ });
1114
+ }, bt = () => {
1115
+ let { apiGatewayUrl: n } = e(), i = a();
1116
+ return r({
1117
+ mutationFn: async (e) => (await t(`mutation GovWithdrawDataChangeProposal($id: ID!) {
1118
+ govWithdrawDataChangeProposal(id: $id) { ${B} }
1119
+ }`, { id: e }, n)).govWithdrawDataChangeProposal,
1120
+ onSuccess: (e) => {
1121
+ i.invalidateQueries({ queryKey: s.intelProposals }), i.invalidateQueries({ queryKey: s.intelMyProposals }), i.invalidateQueries({ queryKey: s.intelProposal(e.id) });
1122
+ }
1123
+ });
1124
+ }, xt = () => {
1125
+ let { apiGatewayUrl: n } = e(), i = a();
1126
+ return r({
1127
+ mutationFn: async (e) => (await t(`mutation GovReviewDataChangeProposal($id: ID!, $decision: GovProposalStatus!, $reviewNote: String) {
1128
+ govReviewDataChangeProposal(id: $id, decision: $decision, reviewNote: $reviewNote) {
1129
+ ${B}
1130
+ }
1131
+ }`, e, n)).govReviewDataChangeProposal,
1132
+ onSuccess: (e) => {
1133
+ i.invalidateQueries({ queryKey: s.intelProposals }), i.invalidateQueries({ queryKey: s.intelMyProposals }), i.invalidateQueries({ queryKey: s.intelProposal(e.id) });
1134
+ }
1135
+ });
1136
+ };
1137
+ //#endregion
1138
+ export { H as useGovAdminLevels, ye as useGovBudget, be as useGovBudgetExecution, ve as useGovBudgets, it as useGovCloseConsultation, $e as useGovConsultationResults, Qe as useGovConsultations, U as useGovCreateAdminLevel, xe as useGovCreateBudget, tt as useGovCreateConsultation, ut as useGovCreateDataset, ue as useGovCreateElection, Le as useGovCreateIndicator, X as useGovCreateJurisdiction, he as useGovCreateJurisdictionEvent, ne as useGovCreateOfficial, ae as useGovCreateOfficialCommitment, Oe as useGovCreateProject, je as useGovCreateProjectMilestone, Ye as useGovCreatePublicAsset, _t as useGovDataChangeProposals, lt as useGovDataset, ct as useGovDatasets, G as useGovDeleteAdminLevel, Te as useGovDeleteBudgetLine, ot as useGovDeleteConsultation, $ as useGovDeleteDataset, fe as useGovDeleteElection, ze as useGovDeleteIndicator, Ue as useGovDeleteIndicatorValue, _e as useGovDeleteJurisdictionEvent, ie as useGovDeleteOfficial, se as useGovDeleteOfficialCommitment, Ne as useGovDeleteProjectMilestone, Ze as useGovDeletePublicAsset, le as useGovElection, ce as useGovElections, ht as useGovFollowJurisdiction, Ie as useGovIndicatorSeries, Fe as useGovIndicatorValues, Pe as useGovIndicators, We as useGovJurisdictionBenchmark, me as useGovJurisdictionEvents, Ke as useGovJurisdictionGrievanceInsights, Y as useGovJurisdictionOverview, Ge as useGovJurisdictionServicePerformance, J as useGovJurisdictionTree, q as useGovJurisdictions, et as useGovMyConsultationResponse, vt as useGovMyDataChangeProposals, mt as useGovMyFollowedJurisdictions, Q as useGovOfficial, Z as useGovOfficials, rt as useGovOpenConsultation, De as useGovProject, Ee as useGovProjects, Je as useGovPublicAssetSummary, qe as useGovPublicAssets, Ce as useGovPublishBudget, at as useGovPublishConsultationResults, ft as useGovPublishDataset, pt as useGovRecordDatasetDownload, pe as useGovRecordElectionResults, Ve as useGovRecordIndicatorValue, xt as useGovReviewDataChangeProposal, K as useGovSeedAdminLevels, Be as useGovSeedIndicatorCatalog, st as useGovSubmitConsultationResponse, yt as useGovSubmitDataChangeProposal, gt as useGovUnfollowJurisdiction, W as useGovUpdateAdminLevel, Se as useGovUpdateBudget, nt as useGovUpdateConsultation, dt as useGovUpdateDataset, de as useGovUpdateElection, Re as useGovUpdateIndicator, He as useGovUpdateIndicatorValue, ge as useGovUpdateJurisdictionEvent, re as useGovUpdateOfficial, oe as useGovUpdateOfficialCommitment, ke as useGovUpdateProject, Me as useGovUpdateProjectMilestone, Ae as useGovUpdateProjectStatus, Xe as useGovUpdatePublicAsset, we as useGovUpsertBudgetLines, bt as useGovWithdrawDataChangeProposal };
1139
+
1140
+ //# sourceMappingURL=useIntelligenceApi.js.map