@burdenoff/microfe-govcitizenhub 2026.730.2 → 2026.730.4
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/hooks/useIntelligenceApi.d.ts +9 -1
- package/dist/govcitizenhub/hooks/useIntelligenceApi.d.ts.map +1 -1
- package/dist/govcitizenhub/hooks/useIntelligenceApi.js +95 -86
- package/dist/govcitizenhub/hooks/useIntelligenceApi.js.map +1 -1
- package/dist/govcitizenhub/pages/intelligence/AdminLevelsPage.d.ts.map +1 -1
- package/dist/govcitizenhub/pages/intelligence/AdminLevelsPage.js +168 -160
- package/dist/govcitizenhub/pages/intelligence/AdminLevelsPage.js.map +1 -1
- package/dist/govcitizenhub/types/intelligence.d.ts +20 -0
- package/dist/govcitizenhub/types/intelligence.d.ts.map +1 -1
- package/dist/govcitizenhub/types/intelligence.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,6 +5,11 @@ import { useMutation as r, useQuery as i, useQueryClient as a } from "@tanstack/
|
|
|
5
5
|
//#region src/govcitizenhub/hooks/useIntelligenceApi.ts
|
|
6
6
|
var o = ["govcitizenhub", "intel"], s = {
|
|
7
7
|
intelAdminLevels: [...o, "admin-levels"],
|
|
8
|
+
intelAdminLevelPresets: [
|
|
9
|
+
"govcitizenhub",
|
|
10
|
+
"intel",
|
|
11
|
+
"admin-level-presets"
|
|
12
|
+
],
|
|
8
13
|
intelAdminLevel: (e) => [
|
|
9
14
|
...o,
|
|
10
15
|
"admin-level",
|
|
@@ -169,7 +174,11 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
169
174
|
pagination: n(a ?? { limit: 100 })
|
|
170
175
|
}, o)).govAdminLevels
|
|
171
176
|
});
|
|
172
|
-
}, U = () => {
|
|
177
|
+
}, U = (e) => i({
|
|
178
|
+
queryKey: [...s.intelAdminLevelPresets, e ?? ""],
|
|
179
|
+
enabled: !!e,
|
|
180
|
+
queryFn: () => t("query($countryCode: String!){ govAdminLevelPresets(countryCode: $countryCode){ key label description isCountrySpecific tiers { rank code name pluralName isElectoral } } }", { countryCode: e }).then((e) => e.govAdminLevelPresets)
|
|
181
|
+
}), W = () => {
|
|
173
182
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
174
183
|
return r({
|
|
175
184
|
mutationFn: async (e) => (await t(`mutation GovCreateAdminLevel($input: GovCreateAdminLevelInput!) {
|
|
@@ -177,7 +186,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
177
186
|
}`, { input: e }, n)).govCreateAdminLevel,
|
|
178
187
|
onSuccess: () => i.invalidateQueries({ queryKey: s.intelAdminLevels })
|
|
179
188
|
});
|
|
180
|
-
},
|
|
189
|
+
}, G = () => {
|
|
181
190
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
182
191
|
return r({
|
|
183
192
|
mutationFn: async (e) => (await t(`mutation GovUpdateAdminLevel($id: ID!, $input: GovUpdateAdminLevelInput!) {
|
|
@@ -187,13 +196,13 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
187
196
|
i.invalidateQueries({ queryKey: s.intelAdminLevels }), i.invalidateQueries({ queryKey: s.intelAdminLevel(e.id) }), i.invalidateQueries({ queryKey: s.intelJurisdictions });
|
|
188
197
|
}
|
|
189
198
|
});
|
|
190
|
-
},
|
|
199
|
+
}, K = () => {
|
|
191
200
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
192
201
|
return r({
|
|
193
202
|
mutationFn: async (e) => (await t("mutation GovDeleteAdminLevel($id: ID!) { govDeleteAdminLevel(id: $id) }", { id: e }, n)).govDeleteAdminLevel,
|
|
194
203
|
onSuccess: () => i.invalidateQueries({ queryKey: s.intelAdminLevels })
|
|
195
204
|
});
|
|
196
|
-
},
|
|
205
|
+
}, q = () => {
|
|
197
206
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
198
207
|
return r({
|
|
199
208
|
mutationFn: async (e) => (await t(`mutation GovSeedAdminLevels($countryCode: String!, $preset: String) {
|
|
@@ -201,7 +210,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
201
210
|
}`, e, n)).govSeedAdminLevels,
|
|
202
211
|
onSuccess: () => i.invalidateQueries({ queryKey: s.intelAdminLevels })
|
|
203
212
|
});
|
|
204
|
-
},
|
|
213
|
+
}, J = (r = {}, a) => {
|
|
205
214
|
let { apiGatewayUrl: o } = e();
|
|
206
215
|
return i({
|
|
207
216
|
queryKey: [
|
|
@@ -219,7 +228,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
219
228
|
pagination: n(a)
|
|
220
229
|
}, o)).govJurisdictions
|
|
221
230
|
});
|
|
222
|
-
},
|
|
231
|
+
}, Y = (n, r) => {
|
|
223
232
|
let { apiGatewayUrl: a } = e();
|
|
224
233
|
return i({
|
|
225
234
|
queryKey: [
|
|
@@ -234,7 +243,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
234
243
|
maxDepth: r
|
|
235
244
|
}, a)).govJurisdictionTree
|
|
236
245
|
});
|
|
237
|
-
},
|
|
246
|
+
}, X = (t) => {
|
|
238
247
|
let { apiGatewayUrl: n } = e();
|
|
239
248
|
return i({
|
|
240
249
|
queryKey: s.intelOverviewFor(t ?? ""),
|
|
@@ -243,7 +252,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
243
252
|
govJurisdictionOverview(jurisdictionId: $jurisdictionId) { ${V} }
|
|
244
253
|
}`, { jurisdictionId: t }, "govJurisdictionOverview", n)
|
|
245
254
|
});
|
|
246
|
-
},
|
|
255
|
+
}, Z = () => {
|
|
247
256
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
248
257
|
return r({
|
|
249
258
|
mutationFn: async (e) => (await t(`mutation GovCreateJurisdiction($input: GovCreateJurisdictionInput!) {
|
|
@@ -253,7 +262,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
253
262
|
i.invalidateQueries({ queryKey: s.intelJurisdictions }), i.invalidateQueries({ queryKey: s.intelJurisdictionTree }), i.invalidateQueries({ queryKey: s.intelAdminLevels });
|
|
254
263
|
}
|
|
255
264
|
});
|
|
256
|
-
},
|
|
265
|
+
}, Q = (r = {}, a) => {
|
|
257
266
|
let { apiGatewayUrl: o } = e();
|
|
258
267
|
return i({
|
|
259
268
|
queryKey: [
|
|
@@ -271,7 +280,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
271
280
|
pagination: n(a)
|
|
272
281
|
}, o)).govOfficials
|
|
273
282
|
});
|
|
274
|
-
},
|
|
283
|
+
}, ne = (t) => {
|
|
275
284
|
let { apiGatewayUrl: n } = e();
|
|
276
285
|
return i({
|
|
277
286
|
queryKey: s.intelOfficial(t ?? ""),
|
|
@@ -284,7 +293,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
284
293
|
}
|
|
285
294
|
}`, { id: t }, "govOfficial", n)
|
|
286
295
|
});
|
|
287
|
-
},
|
|
296
|
+
}, re = () => {
|
|
288
297
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
289
298
|
return r({
|
|
290
299
|
mutationFn: async (e) => (await t(`mutation GovCreateOfficial($input: GovCreateOfficialInput!) {
|
|
@@ -294,7 +303,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
294
303
|
i.invalidateQueries({ queryKey: s.intelOfficials }), i.invalidateQueries({ queryKey: s.intelOverview });
|
|
295
304
|
}
|
|
296
305
|
});
|
|
297
|
-
},
|
|
306
|
+
}, ie = () => {
|
|
298
307
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
299
308
|
return r({
|
|
300
309
|
mutationFn: async (e) => (await t(`mutation GovUpdateOfficial($id: ID!, $input: GovUpdateOfficialInput!) {
|
|
@@ -304,7 +313,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
304
313
|
i.invalidateQueries({ queryKey: s.intelOfficials }), i.invalidateQueries({ queryKey: s.intelOfficial(e.id) });
|
|
305
314
|
}
|
|
306
315
|
});
|
|
307
|
-
},
|
|
316
|
+
}, ae = () => {
|
|
308
317
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
309
318
|
return r({
|
|
310
319
|
mutationFn: async (e) => (await t("mutation GovDeleteOfficial($id: ID!) { govDeleteOfficial(id: $id) }", { id: e }, n)).govDeleteOfficial,
|
|
@@ -312,7 +321,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
312
321
|
i.invalidateQueries({ queryKey: s.intelOfficials }), i.invalidateQueries({ queryKey: s.intelCommitments }), i.invalidateQueries({ queryKey: s.intelOverview });
|
|
313
322
|
}
|
|
314
323
|
});
|
|
315
|
-
},
|
|
324
|
+
}, oe = () => {
|
|
316
325
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
317
326
|
return r({
|
|
318
327
|
mutationFn: async (e) => (await t(`mutation GovCreateOfficialCommitment($input: GovCreateOfficialCommitmentInput!) {
|
|
@@ -322,7 +331,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
322
331
|
i.invalidateQueries({ queryKey: s.intelCommitments }), i.invalidateQueries({ queryKey: s.intelOfficial(e.officialId) }), i.invalidateQueries({ queryKey: s.intelOfficials });
|
|
323
332
|
}
|
|
324
333
|
});
|
|
325
|
-
},
|
|
334
|
+
}, se = () => {
|
|
326
335
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
327
336
|
return r({
|
|
328
337
|
mutationFn: async (e) => (await t(`mutation GovUpdateOfficialCommitment($id: ID!, $input: GovUpdateOfficialCommitmentInput!) {
|
|
@@ -332,7 +341,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
332
341
|
i.invalidateQueries({ queryKey: s.intelCommitments }), i.invalidateQueries({ queryKey: s.intelOfficial(e.officialId) }), i.invalidateQueries({ queryKey: s.intelOfficials });
|
|
333
342
|
}
|
|
334
343
|
});
|
|
335
|
-
},
|
|
344
|
+
}, ce = () => {
|
|
336
345
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
337
346
|
return r({
|
|
338
347
|
mutationFn: async (e) => (await t("mutation GovDeleteOfficialCommitment($id: ID!) { govDeleteOfficialCommitment(id: $id) }", { id: e }, n)).govDeleteOfficialCommitment,
|
|
@@ -340,7 +349,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
340
349
|
i.invalidateQueries({ queryKey: s.intelCommitments }), i.invalidateQueries({ queryKey: s.intelOfficials });
|
|
341
350
|
}
|
|
342
351
|
});
|
|
343
|
-
},
|
|
352
|
+
}, le = (r = {}, a) => {
|
|
344
353
|
let { apiGatewayUrl: o } = e();
|
|
345
354
|
return i({
|
|
346
355
|
queryKey: [
|
|
@@ -358,7 +367,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
358
367
|
pagination: n(a)
|
|
359
368
|
}, o)).govElections
|
|
360
369
|
});
|
|
361
|
-
},
|
|
370
|
+
}, ue = (t) => {
|
|
362
371
|
let { apiGatewayUrl: n } = e();
|
|
363
372
|
return i({
|
|
364
373
|
queryKey: s.intelElection(t ?? ""),
|
|
@@ -371,7 +380,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
371
380
|
}
|
|
372
381
|
}`, { id: t }, "govElection", n)
|
|
373
382
|
});
|
|
374
|
-
},
|
|
383
|
+
}, de = () => {
|
|
375
384
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
376
385
|
return r({
|
|
377
386
|
mutationFn: async (e) => (await t(`mutation GovCreateElection($input: GovCreateElectionInput!) {
|
|
@@ -379,7 +388,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
379
388
|
}`, { input: e }, n)).govCreateElection,
|
|
380
389
|
onSuccess: () => i.invalidateQueries({ queryKey: s.intelElections })
|
|
381
390
|
});
|
|
382
|
-
},
|
|
391
|
+
}, fe = () => {
|
|
383
392
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
384
393
|
return r({
|
|
385
394
|
mutationFn: async (e) => (await t(`mutation GovUpdateElection($id: ID!, $input: GovUpdateElectionInput!) {
|
|
@@ -389,13 +398,13 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
389
398
|
i.invalidateQueries({ queryKey: s.intelElections }), i.invalidateQueries({ queryKey: s.intelElection(e.id) });
|
|
390
399
|
}
|
|
391
400
|
});
|
|
392
|
-
},
|
|
401
|
+
}, pe = () => {
|
|
393
402
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
394
403
|
return r({
|
|
395
404
|
mutationFn: async (e) => (await t("mutation GovDeleteElection($id: ID!) { govDeleteElection(id: $id) }", { id: e }, n)).govDeleteElection,
|
|
396
405
|
onSuccess: () => i.invalidateQueries({ queryKey: s.intelElections })
|
|
397
406
|
});
|
|
398
|
-
},
|
|
407
|
+
}, me = () => {
|
|
399
408
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
400
409
|
return r({
|
|
401
410
|
mutationFn: async (e) => (await t(`mutation GovRecordElectionResults($electionId: ID!, $results: [GovElectionResultInput!]!) {
|
|
@@ -408,7 +417,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
408
417
|
i.invalidateQueries({ queryKey: s.intelElections }), i.invalidateQueries({ queryKey: s.intelElection(e.id) });
|
|
409
418
|
}
|
|
410
419
|
});
|
|
411
|
-
},
|
|
420
|
+
}, he = (r, a) => {
|
|
412
421
|
let { apiGatewayUrl: o } = e();
|
|
413
422
|
return i({
|
|
414
423
|
queryKey: [...s.intelEventsFor(r ?? ""), a ?? null],
|
|
@@ -423,7 +432,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
423
432
|
pagination: n(a)
|
|
424
433
|
}, o)).govJurisdictionEvents
|
|
425
434
|
});
|
|
426
|
-
},
|
|
435
|
+
}, ge = () => {
|
|
427
436
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
428
437
|
return r({
|
|
429
438
|
mutationFn: async (e) => (await t(`mutation GovCreateJurisdictionEvent($input: GovCreateJurisdictionEventInput!) {
|
|
@@ -431,7 +440,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
431
440
|
}`, { input: e }, n)).govCreateJurisdictionEvent,
|
|
432
441
|
onSuccess: (e) => i.invalidateQueries({ queryKey: s.intelEventsFor(e.jurisdictionId) })
|
|
433
442
|
});
|
|
434
|
-
},
|
|
443
|
+
}, _e = () => {
|
|
435
444
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
436
445
|
return r({
|
|
437
446
|
mutationFn: async (e) => (await t(`mutation GovUpdateJurisdictionEvent($id: ID!, $input: GovUpdateJurisdictionEventInput!) {
|
|
@@ -439,13 +448,13 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
439
448
|
}`, e, n)).govUpdateJurisdictionEvent,
|
|
440
449
|
onSuccess: (e) => i.invalidateQueries({ queryKey: s.intelEventsFor(e.jurisdictionId) })
|
|
441
450
|
});
|
|
442
|
-
},
|
|
451
|
+
}, ve = () => {
|
|
443
452
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
444
453
|
return r({
|
|
445
454
|
mutationFn: async (e) => (await t("mutation GovDeleteJurisdictionEvent($id: ID!) { govDeleteJurisdictionEvent(id: $id) }", { id: e }, n)).govDeleteJurisdictionEvent,
|
|
446
455
|
onSuccess: () => i.invalidateQueries({ queryKey: s.intelEvents })
|
|
447
456
|
});
|
|
448
|
-
},
|
|
457
|
+
}, ye = (r = {}, a) => {
|
|
449
458
|
let { apiGatewayUrl: o } = e();
|
|
450
459
|
return i({
|
|
451
460
|
queryKey: [
|
|
@@ -463,7 +472,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
463
472
|
pagination: n(a)
|
|
464
473
|
}, o)).govBudgets
|
|
465
474
|
});
|
|
466
|
-
},
|
|
475
|
+
}, be = (t) => {
|
|
467
476
|
let { apiGatewayUrl: n } = e();
|
|
468
477
|
return i({
|
|
469
478
|
queryKey: s.intelBudget(t ?? ""),
|
|
@@ -476,7 +485,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
476
485
|
}
|
|
477
486
|
}`, { id: t }, "govBudget", n)
|
|
478
487
|
});
|
|
479
|
-
},
|
|
488
|
+
}, xe = (t) => {
|
|
480
489
|
let { apiGatewayUrl: n } = e();
|
|
481
490
|
return i({
|
|
482
491
|
queryKey: s.intelBudgetExecutionFor(t ?? ""),
|
|
@@ -485,7 +494,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
485
494
|
govBudgetExecution(budgetId: $budgetId) { ${C} }
|
|
486
495
|
}`, { budgetId: t }, "govBudgetExecution", n)
|
|
487
496
|
});
|
|
488
|
-
},
|
|
497
|
+
}, Se = () => {
|
|
489
498
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
490
499
|
return r({
|
|
491
500
|
mutationFn: async (e) => (await t(`mutation GovCreateBudget($input: GovCreateBudgetInput!) {
|
|
@@ -495,7 +504,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
495
504
|
i.invalidateQueries({ queryKey: s.intelBudgets }), i.invalidateQueries({ queryKey: s.intelOverview });
|
|
496
505
|
}
|
|
497
506
|
});
|
|
498
|
-
},
|
|
507
|
+
}, Ce = () => {
|
|
499
508
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
500
509
|
return r({
|
|
501
510
|
mutationFn: async (e) => (await t(`mutation GovUpdateBudget($id: ID!, $input: GovUpdateBudgetInput!) {
|
|
@@ -505,7 +514,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
505
514
|
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
515
|
}
|
|
507
516
|
});
|
|
508
|
-
},
|
|
517
|
+
}, we = () => {
|
|
509
518
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
510
519
|
return r({
|
|
511
520
|
mutationFn: async (e) => (await t(`mutation GovPublishBudget($id: ID!) {
|
|
@@ -515,7 +524,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
515
524
|
i.invalidateQueries({ queryKey: s.intelBudgets }), i.invalidateQueries({ queryKey: s.intelBudget(e.id) }), i.invalidateQueries({ queryKey: s.intelBudgetExecutionFor(e.id) }), l(i);
|
|
516
525
|
}
|
|
517
526
|
});
|
|
518
|
-
},
|
|
527
|
+
}, Te = () => {
|
|
519
528
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
520
529
|
return r({
|
|
521
530
|
mutationFn: async (e) => (await t(`mutation GovUpsertBudgetLines($budgetId: ID!, $lines: [GovBudgetLineInput!]!) {
|
|
@@ -528,7 +537,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
528
537
|
i.invalidateQueries({ queryKey: s.intelBudgets }), i.invalidateQueries({ queryKey: s.intelBudget(e.id) }), i.invalidateQueries({ queryKey: s.intelBudgetExecutionFor(e.id) });
|
|
529
538
|
}
|
|
530
539
|
});
|
|
531
|
-
},
|
|
540
|
+
}, Ee = () => {
|
|
532
541
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
533
542
|
return r({
|
|
534
543
|
mutationFn: async (e) => (await t("mutation GovDeleteBudgetLine($id: ID!) { govDeleteBudgetLine(id: $id) }", { id: e.id }, n)).govDeleteBudgetLine,
|
|
@@ -536,7 +545,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
536
545
|
i.invalidateQueries({ queryKey: s.intelBudgets }), i.invalidateQueries({ queryKey: s.intelBudgetExecution }), t.budgetId && i.invalidateQueries({ queryKey: s.intelBudget(t.budgetId) });
|
|
537
546
|
}
|
|
538
547
|
});
|
|
539
|
-
},
|
|
548
|
+
}, De = (r = {}, a) => {
|
|
540
549
|
let { apiGatewayUrl: o } = e();
|
|
541
550
|
return i({
|
|
542
551
|
queryKey: [
|
|
@@ -554,7 +563,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
554
563
|
pagination: n(a)
|
|
555
564
|
}, o)).govProjects
|
|
556
565
|
});
|
|
557
|
-
},
|
|
566
|
+
}, Oe = (t) => {
|
|
558
567
|
let { apiGatewayUrl: n } = e();
|
|
559
568
|
return i({
|
|
560
569
|
queryKey: s.intelProject(t ?? ""),
|
|
@@ -567,7 +576,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
567
576
|
}
|
|
568
577
|
}`, { id: t }, "govProject", n)
|
|
569
578
|
});
|
|
570
|
-
},
|
|
579
|
+
}, ke = () => {
|
|
571
580
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
572
581
|
return r({
|
|
573
582
|
mutationFn: async (e) => (await t(`mutation GovCreateProject($input: GovCreateProjectInput!) {
|
|
@@ -577,7 +586,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
577
586
|
i.invalidateQueries({ queryKey: s.intelProjects }), i.invalidateQueries({ queryKey: s.intelOverview });
|
|
578
587
|
}
|
|
579
588
|
});
|
|
580
|
-
},
|
|
589
|
+
}, Ae = () => {
|
|
581
590
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
582
591
|
return r({
|
|
583
592
|
mutationFn: async (e) => (await t(`mutation GovUpdateProject($id: ID!, $input: GovUpdateProjectInput!) {
|
|
@@ -587,7 +596,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
587
596
|
i.invalidateQueries({ queryKey: s.intelProjects }), i.invalidateQueries({ queryKey: s.intelProject(e.id) }), i.invalidateQueries({ queryKey: s.intelOverview });
|
|
588
597
|
}
|
|
589
598
|
});
|
|
590
|
-
},
|
|
599
|
+
}, je = () => {
|
|
591
600
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
592
601
|
return r({
|
|
593
602
|
mutationFn: async (e) => (await t(`mutation GovUpdateProjectStatus($id: ID!, $status: GovProjectStatus!, $progressPercent: Int, $delayReason: String) {
|
|
@@ -599,7 +608,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
599
608
|
i.invalidateQueries({ queryKey: s.intelProjects }), i.invalidateQueries({ queryKey: s.intelProject(e.id) }), i.invalidateQueries({ queryKey: s.intelOverview }), i.invalidateQueries({ queryKey: s.intelInsights });
|
|
600
609
|
}
|
|
601
610
|
});
|
|
602
|
-
},
|
|
611
|
+
}, Me = () => {
|
|
603
612
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
604
613
|
return r({
|
|
605
614
|
mutationFn: async (e) => (await t(`mutation GovCreateProjectMilestone($input: GovCreateProjectMilestoneInput!) {
|
|
@@ -607,7 +616,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
607
616
|
}`, { input: e }, n)).govCreateProjectMilestone,
|
|
608
617
|
onSuccess: (e) => i.invalidateQueries({ queryKey: s.intelProject(e.projectId) })
|
|
609
618
|
});
|
|
610
|
-
},
|
|
619
|
+
}, Ne = () => {
|
|
611
620
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
612
621
|
return r({
|
|
613
622
|
mutationFn: async (e) => (await t(`mutation GovUpdateProjectMilestone($id: ID!, $input: GovUpdateProjectMilestoneInput!) {
|
|
@@ -615,7 +624,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
615
624
|
}`, e, n)).govUpdateProjectMilestone,
|
|
616
625
|
onSuccess: (e) => i.invalidateQueries({ queryKey: s.intelProject(e.projectId) })
|
|
617
626
|
});
|
|
618
|
-
},
|
|
627
|
+
}, Pe = () => {
|
|
619
628
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
620
629
|
return r({
|
|
621
630
|
mutationFn: async (e) => (await t("mutation GovDeleteProjectMilestone($id: ID!) { govDeleteProjectMilestone(id: $id) }", { id: e.id }, n)).govDeleteProjectMilestone,
|
|
@@ -623,7 +632,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
623
632
|
t.projectId ? i.invalidateQueries({ queryKey: s.intelProject(t.projectId) }) : i.invalidateQueries({ queryKey: s.intelProjects });
|
|
624
633
|
}
|
|
625
634
|
});
|
|
626
|
-
},
|
|
635
|
+
}, Fe = (r = {}, a) => {
|
|
627
636
|
let { apiGatewayUrl: o } = e();
|
|
628
637
|
return i({
|
|
629
638
|
queryKey: [
|
|
@@ -641,7 +650,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
641
650
|
pagination: n(a)
|
|
642
651
|
}, o)).govIndicators
|
|
643
652
|
});
|
|
644
|
-
},
|
|
653
|
+
}, Ie = (r = {}, a) => {
|
|
645
654
|
let { apiGatewayUrl: o } = e();
|
|
646
655
|
return i({
|
|
647
656
|
queryKey: [
|
|
@@ -659,7 +668,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
659
668
|
pagination: n(a)
|
|
660
669
|
}, o)).govIndicatorValues
|
|
661
670
|
});
|
|
662
|
-
},
|
|
671
|
+
}, Le = (t, n, r = {}) => {
|
|
663
672
|
let { apiGatewayUrl: a } = e();
|
|
664
673
|
return i({
|
|
665
674
|
queryKey: [
|
|
@@ -680,7 +689,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
680
689
|
toPeriod: r.toPeriod
|
|
681
690
|
}, "govIndicatorSeries", a)
|
|
682
691
|
});
|
|
683
|
-
},
|
|
692
|
+
}, Re = () => {
|
|
684
693
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
685
694
|
return r({
|
|
686
695
|
mutationFn: async (e) => (await t(`mutation GovCreateIndicator($input: GovCreateIndicatorInput!) {
|
|
@@ -690,7 +699,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
690
699
|
i.invalidateQueries({ queryKey: s.intelIndicators }), l(i);
|
|
691
700
|
}
|
|
692
701
|
});
|
|
693
|
-
},
|
|
702
|
+
}, ze = () => {
|
|
694
703
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
695
704
|
return r({
|
|
696
705
|
mutationFn: async (e) => (await t(`mutation GovUpdateIndicator($id: ID!, $input: GovUpdateIndicatorInput!) {
|
|
@@ -700,7 +709,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
700
709
|
i.invalidateQueries({ queryKey: s.intelIndicators }), i.invalidateQueries({ queryKey: s.intelIndicator(e.id) }), i.invalidateQueries({ queryKey: s.intelIndicatorSeries }), l(i);
|
|
701
710
|
}
|
|
702
711
|
});
|
|
703
|
-
},
|
|
712
|
+
}, Be = () => {
|
|
704
713
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
705
714
|
return r({
|
|
706
715
|
mutationFn: async (e) => (await t("mutation GovDeleteIndicator($id: ID!) { govDeleteIndicator(id: $id) }", { id: e }, n)).govDeleteIndicator,
|
|
@@ -708,7 +717,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
708
717
|
i.invalidateQueries({ queryKey: s.intelIndicators }), i.invalidateQueries({ queryKey: s.intelIndicatorValues }), i.invalidateQueries({ queryKey: s.intelIndicatorSeries }), l(i);
|
|
709
718
|
}
|
|
710
719
|
});
|
|
711
|
-
},
|
|
720
|
+
}, Ve = () => {
|
|
712
721
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
713
722
|
return r({
|
|
714
723
|
mutationFn: async (e) => (await t(`mutation GovSeedIndicatorCatalog($domains: [GovIndicatorDomain!]) {
|
|
@@ -718,7 +727,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
718
727
|
i.invalidateQueries({ queryKey: s.intelIndicators }), l(i);
|
|
719
728
|
}
|
|
720
729
|
});
|
|
721
|
-
},
|
|
730
|
+
}, He = () => {
|
|
722
731
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
723
732
|
return r({
|
|
724
733
|
mutationFn: async (e) => (await t(`mutation GovRecordIndicatorValue($input: GovRecordIndicatorValueInput!) {
|
|
@@ -728,7 +737,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
728
737
|
i.invalidateQueries({ queryKey: s.intelIndicatorValues }), i.invalidateQueries({ queryKey: s.intelIndicatorSeries }), l(i);
|
|
729
738
|
}
|
|
730
739
|
});
|
|
731
|
-
},
|
|
740
|
+
}, Ue = () => {
|
|
732
741
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
733
742
|
return r({
|
|
734
743
|
mutationFn: async (e) => (await t(`mutation GovUpdateIndicatorValue($id: ID!, $input: GovUpdateIndicatorValueInput!) {
|
|
@@ -738,7 +747,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
738
747
|
i.invalidateQueries({ queryKey: s.intelIndicatorValues }), i.invalidateQueries({ queryKey: s.intelIndicatorSeries }), l(i);
|
|
739
748
|
}
|
|
740
749
|
});
|
|
741
|
-
},
|
|
750
|
+
}, We = () => {
|
|
742
751
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
743
752
|
return r({
|
|
744
753
|
mutationFn: async (e) => (await t("mutation GovDeleteIndicatorValue($id: ID!) { govDeleteIndicatorValue(id: $id) }", { id: e }, n)).govDeleteIndicatorValue,
|
|
@@ -746,7 +755,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
746
755
|
i.invalidateQueries({ queryKey: s.intelIndicatorValues }), i.invalidateQueries({ queryKey: s.intelIndicatorSeries }), l(i);
|
|
747
756
|
}
|
|
748
757
|
});
|
|
749
|
-
},
|
|
758
|
+
}, Ge = (t, n, r = {}) => {
|
|
750
759
|
let { apiGatewayUrl: a } = e();
|
|
751
760
|
return i({
|
|
752
761
|
queryKey: [
|
|
@@ -768,7 +777,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
768
777
|
peerIds: r.peerIds
|
|
769
778
|
}, "govJurisdictionBenchmark", a)
|
|
770
779
|
});
|
|
771
|
-
},
|
|
780
|
+
}, Ke = (n, r = {}) => {
|
|
772
781
|
let { apiGatewayUrl: a } = e();
|
|
773
782
|
return i({
|
|
774
783
|
queryKey: [
|
|
@@ -787,7 +796,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
787
796
|
to: r.to
|
|
788
797
|
}, a)).govJurisdictionServicePerformance
|
|
789
798
|
});
|
|
790
|
-
},
|
|
799
|
+
}, qe = (n, r = {}) => {
|
|
791
800
|
let { apiGatewayUrl: a } = e();
|
|
792
801
|
return i({
|
|
793
802
|
queryKey: [
|
|
@@ -806,7 +815,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
806
815
|
to: r.to
|
|
807
816
|
}, a)).govJurisdictionGrievanceInsights
|
|
808
817
|
});
|
|
809
|
-
},
|
|
818
|
+
}, Je = (r = {}, a) => {
|
|
810
819
|
let { apiGatewayUrl: o } = e();
|
|
811
820
|
return i({
|
|
812
821
|
queryKey: [
|
|
@@ -824,14 +833,14 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
824
833
|
pagination: n(a)
|
|
825
834
|
}, o)).govPublicAssets
|
|
826
835
|
});
|
|
827
|
-
},
|
|
836
|
+
}, Ye = (n) => {
|
|
828
837
|
let { apiGatewayUrl: r } = e();
|
|
829
838
|
return i({
|
|
830
839
|
queryKey: s.intelAssetSummaryFor(n ?? ""),
|
|
831
840
|
enabled: !!n,
|
|
832
841
|
queryFn: async () => (await t("query GovPublicAssetSummary($jurisdictionId: ID!) {\n govPublicAssetSummary(jurisdictionId: $jurisdictionId) { category count }\n }", { jurisdictionId: n }, r)).govPublicAssetSummary
|
|
833
842
|
});
|
|
834
|
-
},
|
|
843
|
+
}, Xe = () => {
|
|
835
844
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
836
845
|
return r({
|
|
837
846
|
mutationFn: async (e) => (await t(`mutation GovCreatePublicAsset($input: GovCreatePublicAssetInput!) {
|
|
@@ -841,7 +850,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
841
850
|
i.invalidateQueries({ queryKey: s.intelAssets }), i.invalidateQueries({ queryKey: s.intelAssetSummaryFor(e.jurisdictionId) }), i.invalidateQueries({ queryKey: s.intelOverview });
|
|
842
851
|
}
|
|
843
852
|
});
|
|
844
|
-
},
|
|
853
|
+
}, Ze = () => {
|
|
845
854
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
846
855
|
return r({
|
|
847
856
|
mutationFn: async (e) => (await t(`mutation GovUpdatePublicAsset($id: ID!, $input: GovUpdatePublicAssetInput!) {
|
|
@@ -851,7 +860,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
851
860
|
i.invalidateQueries({ queryKey: s.intelAssets }), i.invalidateQueries({ queryKey: s.intelAsset(e.id) }), i.invalidateQueries({ queryKey: s.intelAssetSummaryFor(e.jurisdictionId) });
|
|
852
861
|
}
|
|
853
862
|
});
|
|
854
|
-
},
|
|
863
|
+
}, Qe = () => {
|
|
855
864
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
856
865
|
return r({
|
|
857
866
|
mutationFn: async (e) => (await t("mutation GovDeletePublicAsset($id: ID!) { govDeletePublicAsset(id: $id) }", { id: e }, n)).govDeletePublicAsset,
|
|
@@ -859,7 +868,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
859
868
|
i.invalidateQueries({ queryKey: s.intelAssets }), i.invalidateQueries({ queryKey: s.intelAssetSummary }), i.invalidateQueries({ queryKey: s.intelOverview });
|
|
860
869
|
}
|
|
861
870
|
});
|
|
862
|
-
},
|
|
871
|
+
}, $e = (r = {}, a) => {
|
|
863
872
|
let { apiGatewayUrl: o } = e();
|
|
864
873
|
return i({
|
|
865
874
|
queryKey: [
|
|
@@ -877,7 +886,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
877
886
|
pagination: n(a)
|
|
878
887
|
}, o)).govConsultations
|
|
879
888
|
});
|
|
880
|
-
},
|
|
889
|
+
}, et = (t) => {
|
|
881
890
|
let { apiGatewayUrl: n } = e();
|
|
882
891
|
return i({
|
|
883
892
|
queryKey: s.intelConsultationResultsFor(t ?? ""),
|
|
@@ -886,7 +895,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
886
895
|
govConsultationResults(consultationId: $consultationId) { ${L} }
|
|
887
896
|
}`, { consultationId: t }, "govConsultationResults", n)
|
|
888
897
|
});
|
|
889
|
-
},
|
|
898
|
+
}, tt = (t) => {
|
|
890
899
|
let { apiGatewayUrl: n } = e();
|
|
891
900
|
return i({
|
|
892
901
|
queryKey: s.intelMyConsultationResponseFor(t ?? ""),
|
|
@@ -895,7 +904,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
895
904
|
govMyConsultationResponse(consultationId: $consultationId) { ${I} }
|
|
896
905
|
}`, { consultationId: t }, "govMyConsultationResponse", n)
|
|
897
906
|
});
|
|
898
|
-
},
|
|
907
|
+
}, nt = () => {
|
|
899
908
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
900
909
|
return r({
|
|
901
910
|
mutationFn: async (e) => (await t(`mutation GovCreateConsultation($input: GovCreateConsultationInput!) {
|
|
@@ -905,7 +914,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
905
914
|
i.invalidateQueries({ queryKey: s.intelConsultations }), i.invalidateQueries({ queryKey: s.intelOverview });
|
|
906
915
|
}
|
|
907
916
|
});
|
|
908
|
-
},
|
|
917
|
+
}, rt = () => {
|
|
909
918
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
910
919
|
return r({
|
|
911
920
|
mutationFn: async (e) => (await t(`mutation GovUpdateConsultation($id: ID!, $input: GovUpdateConsultationInput!) {
|
|
@@ -915,7 +924,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
915
924
|
i.invalidateQueries({ queryKey: s.intelConsultations }), i.invalidateQueries({ queryKey: s.intelConsultation(e.id) });
|
|
916
925
|
}
|
|
917
926
|
});
|
|
918
|
-
},
|
|
927
|
+
}, it = () => {
|
|
919
928
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
920
929
|
return r({
|
|
921
930
|
mutationFn: async (e) => (await t(`mutation GovOpenConsultation($id: ID!) {
|
|
@@ -925,7 +934,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
925
934
|
i.invalidateQueries({ queryKey: s.intelConsultations }), i.invalidateQueries({ queryKey: s.intelConsultation(e.id) }), i.invalidateQueries({ queryKey: s.intelOverview });
|
|
926
935
|
}
|
|
927
936
|
});
|
|
928
|
-
},
|
|
937
|
+
}, at = () => {
|
|
929
938
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
930
939
|
return r({
|
|
931
940
|
mutationFn: async (e) => (await t(`mutation GovCloseConsultation($id: ID!) {
|
|
@@ -935,7 +944,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
935
944
|
i.invalidateQueries({ queryKey: s.intelConsultations }), i.invalidateQueries({ queryKey: s.intelConsultation(e.id) }), i.invalidateQueries({ queryKey: s.intelOverview });
|
|
936
945
|
}
|
|
937
946
|
});
|
|
938
|
-
},
|
|
947
|
+
}, ot = () => {
|
|
939
948
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
940
949
|
return r({
|
|
941
950
|
mutationFn: async (e) => (await t(`mutation GovPublishConsultationResults($id: ID!) {
|
|
@@ -945,7 +954,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
945
954
|
i.invalidateQueries({ queryKey: s.intelConsultations }), i.invalidateQueries({ queryKey: s.intelConsultation(e.id) }), i.invalidateQueries({ queryKey: s.intelConsultationResultsFor(e.id) });
|
|
946
955
|
}
|
|
947
956
|
});
|
|
948
|
-
},
|
|
957
|
+
}, st = () => {
|
|
949
958
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
950
959
|
return r({
|
|
951
960
|
mutationFn: async (e) => (await t("mutation GovDeleteConsultation($id: ID!) { govDeleteConsultation(id: $id) }", { id: e }, n)).govDeleteConsultation,
|
|
@@ -953,7 +962,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
953
962
|
i.invalidateQueries({ queryKey: s.intelConsultations }), i.invalidateQueries({ queryKey: s.intelOverview });
|
|
954
963
|
}
|
|
955
964
|
});
|
|
956
|
-
},
|
|
965
|
+
}, ct = () => {
|
|
957
966
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
958
967
|
return r({
|
|
959
968
|
mutationFn: async (e) => (await t(`mutation GovSubmitConsultationResponse($input: GovSubmitConsultationResponseInput!) {
|
|
@@ -963,7 +972,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
963
972
|
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
973
|
}
|
|
965
974
|
});
|
|
966
|
-
},
|
|
975
|
+
}, lt = (r = {}, a) => {
|
|
967
976
|
let { apiGatewayUrl: o } = e();
|
|
968
977
|
return i({
|
|
969
978
|
queryKey: [
|
|
@@ -981,7 +990,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
981
990
|
pagination: n(a)
|
|
982
991
|
}, o)).govDatasets
|
|
983
992
|
});
|
|
984
|
-
},
|
|
993
|
+
}, ut = (t) => {
|
|
985
994
|
let { apiGatewayUrl: n } = e();
|
|
986
995
|
return i({
|
|
987
996
|
queryKey: s.intelDataset(t ?? ""),
|
|
@@ -993,7 +1002,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
993
1002
|
}
|
|
994
1003
|
}`, { id: t }, "govDataset", n)
|
|
995
1004
|
});
|
|
996
|
-
},
|
|
1005
|
+
}, dt = () => {
|
|
997
1006
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
998
1007
|
return r({
|
|
999
1008
|
mutationFn: async (e) => (await t(`mutation GovCreateDataset($input: GovCreateDatasetInput!) {
|
|
@@ -1003,7 +1012,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
1003
1012
|
i.invalidateQueries({ queryKey: s.intelDatasets }), i.invalidateQueries({ queryKey: s.intelOverview });
|
|
1004
1013
|
}
|
|
1005
1014
|
});
|
|
1006
|
-
},
|
|
1015
|
+
}, ft = () => {
|
|
1007
1016
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
1008
1017
|
return r({
|
|
1009
1018
|
mutationFn: async (e) => (await t(`mutation GovUpdateDataset($id: ID!, $input: GovUpdateDatasetInput!) {
|
|
@@ -1013,7 +1022,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
1013
1022
|
i.invalidateQueries({ queryKey: s.intelDatasets }), i.invalidateQueries({ queryKey: s.intelDataset(e.id) });
|
|
1014
1023
|
}
|
|
1015
1024
|
});
|
|
1016
|
-
},
|
|
1025
|
+
}, $ = () => {
|
|
1017
1026
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
1018
1027
|
return r({
|
|
1019
1028
|
mutationFn: async (e) => (await t(`mutation GovPublishDataset($id: ID!) {
|
|
@@ -1023,7 +1032,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
1023
1032
|
i.invalidateQueries({ queryKey: s.intelDatasets }), i.invalidateQueries({ queryKey: s.intelDataset(e.id) }), i.invalidateQueries({ queryKey: s.intelOverview });
|
|
1024
1033
|
}
|
|
1025
1034
|
});
|
|
1026
|
-
},
|
|
1035
|
+
}, pt = () => {
|
|
1027
1036
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
1028
1037
|
return r({
|
|
1029
1038
|
mutationFn: async (e) => (await t("mutation GovDeleteDataset($id: ID!) { govDeleteDataset(id: $id) }", { id: e }, n)).govDeleteDataset,
|
|
@@ -1031,7 +1040,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
1031
1040
|
i.invalidateQueries({ queryKey: s.intelDatasets }), i.invalidateQueries({ queryKey: s.intelOverview });
|
|
1032
1041
|
}
|
|
1033
1042
|
});
|
|
1034
|
-
},
|
|
1043
|
+
}, mt = () => {
|
|
1035
1044
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
1036
1045
|
return r({
|
|
1037
1046
|
mutationFn: async (e) => (await t(`mutation GovRecordDatasetDownload($id: ID!) {
|
|
@@ -1041,7 +1050,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
1041
1050
|
i.invalidateQueries({ queryKey: s.intelDatasets }), i.invalidateQueries({ queryKey: s.intelDataset(e.id) });
|
|
1042
1051
|
}
|
|
1043
1052
|
});
|
|
1044
|
-
},
|
|
1053
|
+
}, ht = (r) => {
|
|
1045
1054
|
let { apiGatewayUrl: a } = e();
|
|
1046
1055
|
return i({
|
|
1047
1056
|
queryKey: [...s.intelMyFollowed, r ?? null],
|
|
@@ -1052,7 +1061,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
1052
1061
|
}
|
|
1053
1062
|
}`, { pagination: n(r) }, a)).govMyFollowedJurisdictions
|
|
1054
1063
|
});
|
|
1055
|
-
},
|
|
1064
|
+
}, gt = () => {
|
|
1056
1065
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
1057
1066
|
return r({
|
|
1058
1067
|
mutationFn: async (e) => (await t(`mutation GovFollowJurisdiction($jurisdictionId: ID!, $topics: [String!], $channels: [String!]) {
|
|
@@ -1064,7 +1073,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
1064
1073
|
i.invalidateQueries({ queryKey: s.intelMyFollowed }), i.invalidateQueries({ queryKey: s.intelOverviewFor(e.jurisdictionId) });
|
|
1065
1074
|
}
|
|
1066
1075
|
});
|
|
1067
|
-
},
|
|
1076
|
+
}, _t = () => {
|
|
1068
1077
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
1069
1078
|
return r({
|
|
1070
1079
|
mutationFn: async (e) => (await t("mutation GovUnfollowJurisdiction($jurisdictionId: ID!) {\n govUnfollowJurisdiction(jurisdictionId: $jurisdictionId)\n }", { jurisdictionId: e }, n)).govUnfollowJurisdiction,
|
|
@@ -1072,7 +1081,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
1072
1081
|
i.invalidateQueries({ queryKey: s.intelMyFollowed }), i.invalidateQueries({ queryKey: s.intelOverviewFor(t) });
|
|
1073
1082
|
}
|
|
1074
1083
|
});
|
|
1075
|
-
},
|
|
1084
|
+
}, vt = (r = {}, a) => {
|
|
1076
1085
|
let { apiGatewayUrl: o } = e();
|
|
1077
1086
|
return i({
|
|
1078
1087
|
queryKey: [
|
|
@@ -1090,7 +1099,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
1090
1099
|
pagination: n(a)
|
|
1091
1100
|
}, o)).govDataChangeProposals
|
|
1092
1101
|
});
|
|
1093
|
-
},
|
|
1102
|
+
}, yt = (r) => {
|
|
1094
1103
|
let { apiGatewayUrl: a } = e();
|
|
1095
1104
|
return i({
|
|
1096
1105
|
queryKey: [...s.intelMyProposals, r ?? null],
|
|
@@ -1101,7 +1110,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
1101
1110
|
}
|
|
1102
1111
|
}`, { pagination: n(r) }, a)).govMyDataChangeProposals
|
|
1103
1112
|
});
|
|
1104
|
-
},
|
|
1113
|
+
}, bt = () => {
|
|
1105
1114
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
1106
1115
|
return r({
|
|
1107
1116
|
mutationFn: async (e) => (await t(`mutation GovSubmitDataChangeProposal($input: GovSubmitDataChangeProposalInput!) {
|
|
@@ -1111,7 +1120,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
1111
1120
|
i.invalidateQueries({ queryKey: s.intelProposals }), i.invalidateQueries({ queryKey: s.intelMyProposals });
|
|
1112
1121
|
}
|
|
1113
1122
|
});
|
|
1114
|
-
},
|
|
1123
|
+
}, xt = () => {
|
|
1115
1124
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
1116
1125
|
return r({
|
|
1117
1126
|
mutationFn: async (e) => (await t(`mutation GovWithdrawDataChangeProposal($id: ID!) {
|
|
@@ -1121,7 +1130,7 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
1121
1130
|
i.invalidateQueries({ queryKey: s.intelProposals }), i.invalidateQueries({ queryKey: s.intelMyProposals }), i.invalidateQueries({ queryKey: s.intelProposal(e.id) });
|
|
1122
1131
|
}
|
|
1123
1132
|
});
|
|
1124
|
-
},
|
|
1133
|
+
}, St = () => {
|
|
1125
1134
|
let { apiGatewayUrl: n } = e(), i = a();
|
|
1126
1135
|
return r({
|
|
1127
1136
|
mutationFn: async (e) => (await t(`mutation GovReviewDataChangeProposal($id: ID!, $decision: GovProposalStatus!, $reviewNote: String) {
|
|
@@ -1135,6 +1144,6 @@ var o = ["govcitizenhub", "intel"], s = {
|
|
|
1135
1144
|
});
|
|
1136
1145
|
};
|
|
1137
1146
|
//#endregion
|
|
1138
|
-
export { H as useGovAdminLevels,
|
|
1147
|
+
export { U as useGovAdminLevelPresets, H as useGovAdminLevels, be as useGovBudget, xe as useGovBudgetExecution, ye as useGovBudgets, at as useGovCloseConsultation, et as useGovConsultationResults, $e as useGovConsultations, W as useGovCreateAdminLevel, Se as useGovCreateBudget, nt as useGovCreateConsultation, dt as useGovCreateDataset, de as useGovCreateElection, Re as useGovCreateIndicator, Z as useGovCreateJurisdiction, ge as useGovCreateJurisdictionEvent, re as useGovCreateOfficial, oe as useGovCreateOfficialCommitment, ke as useGovCreateProject, Me as useGovCreateProjectMilestone, Xe as useGovCreatePublicAsset, vt as useGovDataChangeProposals, ut as useGovDataset, lt as useGovDatasets, K as useGovDeleteAdminLevel, Ee as useGovDeleteBudgetLine, st as useGovDeleteConsultation, pt as useGovDeleteDataset, pe as useGovDeleteElection, Be as useGovDeleteIndicator, We as useGovDeleteIndicatorValue, ve as useGovDeleteJurisdictionEvent, ae as useGovDeleteOfficial, ce as useGovDeleteOfficialCommitment, Pe as useGovDeleteProjectMilestone, Qe as useGovDeletePublicAsset, ue as useGovElection, le as useGovElections, gt as useGovFollowJurisdiction, Le as useGovIndicatorSeries, Ie as useGovIndicatorValues, Fe as useGovIndicators, Ge as useGovJurisdictionBenchmark, he as useGovJurisdictionEvents, qe as useGovJurisdictionGrievanceInsights, X as useGovJurisdictionOverview, Ke as useGovJurisdictionServicePerformance, Y as useGovJurisdictionTree, J as useGovJurisdictions, tt as useGovMyConsultationResponse, yt as useGovMyDataChangeProposals, ht as useGovMyFollowedJurisdictions, ne as useGovOfficial, Q as useGovOfficials, it as useGovOpenConsultation, Oe as useGovProject, De as useGovProjects, Ye as useGovPublicAssetSummary, Je as useGovPublicAssets, we as useGovPublishBudget, ot as useGovPublishConsultationResults, $ as useGovPublishDataset, mt as useGovRecordDatasetDownload, me as useGovRecordElectionResults, He as useGovRecordIndicatorValue, St as useGovReviewDataChangeProposal, q as useGovSeedAdminLevels, Ve as useGovSeedIndicatorCatalog, ct as useGovSubmitConsultationResponse, bt as useGovSubmitDataChangeProposal, _t as useGovUnfollowJurisdiction, G as useGovUpdateAdminLevel, Ce as useGovUpdateBudget, rt as useGovUpdateConsultation, ft as useGovUpdateDataset, fe as useGovUpdateElection, ze as useGovUpdateIndicator, Ue as useGovUpdateIndicatorValue, _e as useGovUpdateJurisdictionEvent, ie as useGovUpdateOfficial, se as useGovUpdateOfficialCommitment, Ae as useGovUpdateProject, Ne as useGovUpdateProjectMilestone, je as useGovUpdateProjectStatus, Ze as useGovUpdatePublicAsset, Te as useGovUpsertBudgetLines, xt as useGovWithdrawDataChangeProposal };
|
|
1139
1148
|
|
|
1140
1149
|
//# sourceMappingURL=useIntelligenceApi.js.map
|