@burdenoff/microfe-govcitizenhub 2026.801.1 → 2026.827.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/govcitizenhub/components/StatusStepper.d.ts +7 -0
- package/dist/govcitizenhub/components/StatusStepper.d.ts.map +1 -1
- package/dist/govcitizenhub/components/StatusStepper.js +22 -21
- package/dist/govcitizenhub/components/StatusStepper.js.map +1 -1
- package/dist/govcitizenhub/hooks/useGovApi.d.ts +13 -0
- package/dist/govcitizenhub/hooks/useGovApi.d.ts.map +1 -1
- package/dist/govcitizenhub/hooks/useGovApi.js +44 -29
- package/dist/govcitizenhub/hooks/useGovApi.js.map +1 -1
- package/dist/govcitizenhub/hooks/useIntelligenceApi.d.ts +7 -0
- package/dist/govcitizenhub/hooks/useIntelligenceApi.d.ts.map +1 -1
- package/dist/govcitizenhub/hooks/useIntelligenceApi.js +1 -1
- package/dist/govcitizenhub/hooks/useIntelligenceApi.js.map +1 -1
- package/dist/govcitizenhub/pages/applications/ApplicationDetailPage.d.ts.map +1 -1
- package/dist/govcitizenhub/pages/applications/ApplicationDetailPage.js +434 -321
- package/dist/govcitizenhub/pages/applications/ApplicationDetailPage.js.map +1 -1
- package/dist/govcitizenhub/pages/applications/ApplicationsPage.d.ts.map +1 -1
- package/dist/govcitizenhub/pages/applications/ApplicationsPage.js +293 -204
- package/dist/govcitizenhub/pages/applications/ApplicationsPage.js.map +1 -1
- package/dist/govcitizenhub/pages/applications/NewApplicationPage.js +1 -1
- package/dist/govcitizenhub/pages/grievances/GrievanceDetailPage.js +15 -15
- package/dist/govcitizenhub/pages/grievances/GrievanceDetailPage.js.map +1 -1
- package/dist/govcitizenhub/pages/grievances/GrievancesPage.d.ts.map +1 -1
- package/dist/govcitizenhub/pages/grievances/GrievancesPage.js +269 -187
- package/dist/govcitizenhub/pages/grievances/GrievancesPage.js.map +1 -1
- package/dist/govcitizenhub/pages/intelligence/BenchmarkPage.d.ts.map +1 -1
- package/dist/govcitizenhub/pages/intelligence/BenchmarkPage.js +399 -185
- package/dist/govcitizenhub/pages/intelligence/BenchmarkPage.js.map +1 -1
- package/dist/govcitizenhub/pages/mobile/MobileRequestsPage.d.ts +18 -8
- package/dist/govcitizenhub/pages/mobile/MobileRequestsPage.d.ts.map +1 -1
- package/dist/govcitizenhub/pages/mobile/MobileRequestsPage.js +123 -55
- package/dist/govcitizenhub/pages/mobile/MobileRequestsPage.js.map +1 -1
- package/dist/govcitizenhub/utils/applicationLifecycle.d.ts +21 -0
- package/dist/govcitizenhub/utils/applicationLifecycle.d.ts.map +1 -0
- package/dist/govcitizenhub/utils/applicationLifecycle.js +61 -0
- package/dist/govcitizenhub/utils/applicationLifecycle.js.map +1 -0
- package/dist/services/createSandboxAssistantTransport.d.ts +8 -9
- package/dist/services/createSandboxAssistantTransport.d.ts.map +1 -1
- package/dist/services/createSandboxAssistantTransport.js +159 -7
- package/dist/services/createSandboxAssistantTransport.js.map +1 -1
- package/dist/types/assistant.d.ts +17 -0
- package/dist/types/assistant.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -14,6 +14,13 @@ export interface StatusStepperProps {
|
|
|
14
14
|
steps: StepperStep[];
|
|
15
15
|
/** Zero-based index of the active step. Earlier = completed, later = upcoming. */
|
|
16
16
|
current: number;
|
|
17
|
+
/**
|
|
18
|
+
* Card-sized rail: stays horizontal at every width with smaller nodes and
|
|
19
|
+
* wrapping labels. Used by the citizen request tracker, where one stepper sits
|
|
20
|
+
* inside each request card and the vertical mobile layout would be four rows
|
|
21
|
+
* tall per request.
|
|
22
|
+
*/
|
|
23
|
+
compact?: boolean;
|
|
17
24
|
className?: string;
|
|
18
25
|
}
|
|
19
26
|
/** Horizontal-on-desktop, vertical-on-mobile status timeline. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusStepper.d.ts","sourceRoot":"","sources":["../../../src/govcitizenhub/components/StatusStepper.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIhC,MAAM,WAAW,WAAW;IAC1B,kBAAkB;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,mEAAmE;IACnE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,wFAAwF;IACxF,KAAK,CAAC,EAAE,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;CACxD;AAID,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,kFAAkF;IAClF,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;
|
|
1
|
+
{"version":3,"file":"StatusStepper.d.ts","sourceRoot":"","sources":["../../../src/govcitizenhub/components/StatusStepper.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIhC,MAAM,WAAW,WAAW;IAC1B,kBAAkB;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,mEAAmE;IACnE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,wFAAwF;IACxF,KAAK,CAAC,EAAE,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;CACxD;AAID,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,kFAAkF;IAClF,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAyCD,iEAAiE;AACjE,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CA0EhD,CAAC"}
|
|
@@ -15,38 +15,39 @@ var a = {
|
|
|
15
15
|
current: "text-text-primary font-semibold",
|
|
16
16
|
alert: "text-status-warning-text font-semibold",
|
|
17
17
|
upcoming: "text-text-muted"
|
|
18
|
-
}, s = ({ state: r, index: i }) => /* @__PURE__ */ n("span", {
|
|
18
|
+
}, s = ({ state: r, index: i, compact: o }) => /* @__PURE__ */ n("span", {
|
|
19
19
|
"aria-hidden": "true",
|
|
20
|
-
className: e("relative z-10 inline-flex
|
|
21
|
-
children: r === "completed" ? /* @__PURE__ */ n(t, { className: "size-4" }) : i + 1
|
|
22
|
-
}), c = ({ steps: t, current: a,
|
|
23
|
-
className: e("flex flex-col sm:flex-row",
|
|
20
|
+
className: e("relative z-10 inline-flex shrink-0 items-center justify-center rounded-full border-2 font-semibold tabular-nums transition-colors", o ? "size-6 text-[0.6rem]" : "size-8 text-xs", a[r]),
|
|
21
|
+
children: r === "completed" ? /* @__PURE__ */ n(t, { className: o ? "size-3" : "size-4" }) : i + 1
|
|
22
|
+
}), c = ({ steps: t, current: a, compact: c = !1, className: l }) => t.length === 0 ? null : /* @__PURE__ */ n("ol", {
|
|
23
|
+
className: e(c ? "flex flex-row" : "flex flex-col sm:flex-row", l),
|
|
24
24
|
"aria-label": "Progress",
|
|
25
|
-
children: t.map((
|
|
26
|
-
let
|
|
25
|
+
children: t.map((l, u) => {
|
|
26
|
+
let d = i(l, u, a), f = u < a, p = u === t.length - 1;
|
|
27
27
|
return /* @__PURE__ */ r("li", {
|
|
28
|
-
className: "relative flex flex-1 gap-3 pb-6 last:pb-0 sm:flex-col sm:gap-2 sm:pb-0",
|
|
29
|
-
"aria-current":
|
|
28
|
+
className: e("relative flex flex-1", c ? "flex-col gap-1.5" : "gap-3 pb-6 last:pb-0 sm:flex-col sm:gap-2 sm:pb-0"),
|
|
29
|
+
"aria-current": d === "current" ? "step" : void 0,
|
|
30
30
|
children: [/* @__PURE__ */ r("div", {
|
|
31
|
-
className: "flex
|
|
31
|
+
className: e("flex items-center", c ? "w-full flex-row" : "flex-col sm:w-full sm:flex-row"),
|
|
32
32
|
children: [/* @__PURE__ */ n(s, {
|
|
33
|
-
state:
|
|
34
|
-
index:
|
|
35
|
-
|
|
33
|
+
state: d,
|
|
34
|
+
index: u,
|
|
35
|
+
compact: c
|
|
36
|
+
}), !p && /* @__PURE__ */ n("span", {
|
|
36
37
|
"aria-hidden": "true",
|
|
37
|
-
className: e("absolute left-4 top-8 h-[calc(100%-2rem)] w-0.5 -translate-x-1/2 sm:static sm:left-auto sm:top-auto sm:h-0.5 sm:w-full sm:flex-1 sm:translate-x-0"
|
|
38
|
+
className: e(f ? "bg-action-primary-bg" : "bg-border-seam", c ? "h-0.5 w-full flex-1" : "absolute left-4 top-8 h-[calc(100%-2rem)] w-0.5 -translate-x-1/2 sm:static sm:left-auto sm:top-auto sm:h-0.5 sm:w-full sm:flex-1 sm:translate-x-0")
|
|
38
39
|
})]
|
|
39
40
|
}), /* @__PURE__ */ r("div", {
|
|
40
|
-
className: "min-w-0 pt-0.5 sm:pt-2 sm:pr-4",
|
|
41
|
+
className: e("min-w-0", c ? "pr-2" : "pt-0.5 sm:pt-2 sm:pr-4"),
|
|
41
42
|
children: [/* @__PURE__ */ n("p", {
|
|
42
|
-
className: e("truncate text-sm", o[
|
|
43
|
-
children:
|
|
44
|
-
}),
|
|
45
|
-
className: "mt-0.5
|
|
46
|
-
children:
|
|
43
|
+
className: e(c ? "text-[0.7rem] leading-tight" : "truncate text-sm", o[d]),
|
|
44
|
+
children: l.label
|
|
45
|
+
}), l.caption && /* @__PURE__ */ n("p", {
|
|
46
|
+
className: e("mt-0.5 text-text-muted", c ? "text-[0.65rem] leading-tight" : "truncate text-xs"),
|
|
47
|
+
children: l.caption
|
|
47
48
|
})]
|
|
48
49
|
})]
|
|
49
|
-
},
|
|
50
|
+
}, l.key);
|
|
50
51
|
})
|
|
51
52
|
});
|
|
52
53
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusStepper.js","names":[],"sources":["../../../src/govcitizenhub/components/StatusStepper.tsx"],"sourcesContent":["/**\n * StatusStepper\n * @module govcitizenhub/components\n *\n * A horizontal (desktop) / vertical-collapse (mobile) status timeline for\n * citizen application tracking and service lifecycles. Steps before `current`\n * render completed (blue check), the `current` step is highlighted with a ring,\n * and later steps are muted. A step may also be forced into an `alert` state\n * (e.g. \"Action needed\") via its own `state` field.\n */\n\nimport type { FC } from 'react';\nimport { Check } from 'lucide-react';\nimport { cn } from '../utils/cn';\n\nexport interface StepperStep {\n /** Stable key. */\n key: string;\n /** Step title (e.g. \"Documents verified\"). */\n label: string;\n /** Optional caption under the label (e.g. a date or \"Pending\"). */\n caption?: string;\n /** Force a state instead of deriving from position (e.g. 'alert' for action needed). */\n state?: 'completed' | 'current' | 'upcoming' | 'alert';\n}\n\ntype StepState = NonNullable<StepperStep['state']>;\n\nexport interface StatusStepperProps {\n steps: StepperStep[];\n /** Zero-based index of the active step. Earlier = completed, later = upcoming. */\n current: number;\n className?: string;\n}\n\nfunction stateOf(step: StepperStep, index: number, current: number): StepState {\n if (step.state) return step.state;\n if (index < current) return 'completed';\n if (index === current) return 'current';\n return 'upcoming';\n}\n\nconst nodeClass: Record<StepState, string> = {\n completed: 'bg-action-primary-bg text-action-primary-text border-transparent',\n current:\n 'bg-bg-surface text-action-primary-text border-action-primary-bg ring-4 ring-[color-mix(in_oklab,var(--color-action-primary-bg)_22%,transparent)]',\n alert: 'bg-status-warning-bg-subtle text-status-warning-text border-status-warning-text',\n upcoming: 'bg-bg-surface text-text-muted border-border-seam',\n};\n\nconst labelClass: Record<StepState, string> = {\n completed: 'text-text-primary',\n current: 'text-text-primary font-semibold',\n alert: 'text-status-warning-text font-semibold',\n upcoming: 'text-text-muted',\n};\n\nconst StepNode: FC<{ state: StepState; index: number }> = ({
|
|
1
|
+
{"version":3,"file":"StatusStepper.js","names":[],"sources":["../../../src/govcitizenhub/components/StatusStepper.tsx"],"sourcesContent":["/**\n * StatusStepper\n * @module govcitizenhub/components\n *\n * A horizontal (desktop) / vertical-collapse (mobile) status timeline for\n * citizen application tracking and service lifecycles. Steps before `current`\n * render completed (blue check), the `current` step is highlighted with a ring,\n * and later steps are muted. A step may also be forced into an `alert` state\n * (e.g. \"Action needed\") via its own `state` field.\n */\n\nimport type { FC } from 'react';\nimport { Check } from 'lucide-react';\nimport { cn } from '../utils/cn';\n\nexport interface StepperStep {\n /** Stable key. */\n key: string;\n /** Step title (e.g. \"Documents verified\"). */\n label: string;\n /** Optional caption under the label (e.g. a date or \"Pending\"). */\n caption?: string;\n /** Force a state instead of deriving from position (e.g. 'alert' for action needed). */\n state?: 'completed' | 'current' | 'upcoming' | 'alert';\n}\n\ntype StepState = NonNullable<StepperStep['state']>;\n\nexport interface StatusStepperProps {\n steps: StepperStep[];\n /** Zero-based index of the active step. Earlier = completed, later = upcoming. */\n current: number;\n /**\n * Card-sized rail: stays horizontal at every width with smaller nodes and\n * wrapping labels. Used by the citizen request tracker, where one stepper sits\n * inside each request card and the vertical mobile layout would be four rows\n * tall per request.\n */\n compact?: boolean;\n className?: string;\n}\n\nfunction stateOf(step: StepperStep, index: number, current: number): StepState {\n if (step.state) return step.state;\n if (index < current) return 'completed';\n if (index === current) return 'current';\n return 'upcoming';\n}\n\nconst nodeClass: Record<StepState, string> = {\n completed: 'bg-action-primary-bg text-action-primary-text border-transparent',\n current:\n 'bg-bg-surface text-action-primary-text border-action-primary-bg ring-4 ring-[color-mix(in_oklab,var(--color-action-primary-bg)_22%,transparent)]',\n alert: 'bg-status-warning-bg-subtle text-status-warning-text border-status-warning-text',\n upcoming: 'bg-bg-surface text-text-muted border-border-seam',\n};\n\nconst labelClass: Record<StepState, string> = {\n completed: 'text-text-primary',\n current: 'text-text-primary font-semibold',\n alert: 'text-status-warning-text font-semibold',\n upcoming: 'text-text-muted',\n};\n\nconst StepNode: FC<{ state: StepState; index: number; compact: boolean }> = ({\n state,\n index,\n compact,\n}) => (\n <span\n aria-hidden=\"true\"\n className={cn(\n 'relative z-10 inline-flex shrink-0 items-center justify-center rounded-full border-2 font-semibold tabular-nums transition-colors',\n compact ? 'size-6 text-[0.6rem]' : 'size-8 text-xs',\n nodeClass[state]\n )}\n >\n {state === 'completed' ? <Check className={compact ? 'size-3' : 'size-4'} /> : index + 1}\n </span>\n);\n\n/** Horizontal-on-desktop, vertical-on-mobile status timeline. */\nexport const StatusStepper: FC<StatusStepperProps> = ({\n steps,\n current,\n compact = false,\n className,\n}) => {\n if (steps.length === 0) return null;\n\n return (\n <ol\n className={cn(compact ? 'flex flex-row' : 'flex flex-col sm:flex-row', className)}\n aria-label=\"Progress\"\n >\n {steps.map((step, index) => {\n const state = stateOf(step, index, current);\n const connectorDone = index < current;\n const isLast = index === steps.length - 1;\n return (\n <li\n key={step.key}\n className={cn(\n 'relative flex flex-1',\n compact ? 'flex-col gap-1.5' : 'gap-3 pb-6 last:pb-0 sm:flex-col sm:gap-2 sm:pb-0'\n )}\n aria-current={state === 'current' ? 'step' : undefined}\n >\n {/* Node + connector rail */}\n <div\n className={cn(\n 'flex items-center',\n compact ? 'w-full flex-row' : 'flex-col sm:w-full sm:flex-row'\n )}\n >\n <StepNode state={state} index={index} compact={compact} />\n {!isLast && (\n <span\n aria-hidden=\"true\"\n className={cn(\n connectorDone ? 'bg-action-primary-bg' : 'bg-border-seam',\n // Compact is always a horizontal rail; the default stepper\n // switches from a vertical rail (mobile) to a horizontal one.\n compact\n ? 'h-0.5 w-full flex-1'\n : 'absolute left-4 top-8 h-[calc(100%-2rem)] w-0.5 -translate-x-1/2 sm:static sm:left-auto sm:top-auto sm:h-0.5 sm:w-full sm:flex-1 sm:translate-x-0'\n )}\n />\n )}\n </div>\n {/* Text */}\n <div className={cn('min-w-0', compact ? 'pr-2' : 'pt-0.5 sm:pt-2 sm:pr-4')}>\n <p\n className={cn(\n compact ? 'text-[0.7rem] leading-tight' : 'truncate text-sm',\n labelClass[state]\n )}\n >\n {step.label}\n </p>\n {step.caption && (\n <p\n className={cn(\n 'mt-0.5 text-text-muted',\n compact ? 'text-[0.65rem] leading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AS,wBAAwB;cAAzE,CACE,kBAAC,KAAD;KACE,WAAW,EACT,IAAU,gCAAgC,oBAC1C,EAAW,EACb;eAEC,EAAK;IACL,CAAA,GACF,EAAK,WACJ,kBAAC,KAAD;KACE,WAAW,EACT,0BACA,IAAU,iCAAiC,kBAC7C;eAEC,EAAK;IACL,CAAA,CAEF;KACH;KAlDG,EAAK,GAkDR;CAER,CAAC;AACC,CAAA"}
|
|
@@ -51,6 +51,19 @@ export interface ApplicationFilters {
|
|
|
51
51
|
pagination?: PaginationInput;
|
|
52
52
|
}
|
|
53
53
|
export declare const useGovApplications: (filters?: ApplicationFilters) => import('@tanstack/react-query').UseQueryResult<GovConnection<GovApplication>, Error>;
|
|
54
|
+
/**
|
|
55
|
+
* Reads `govMyApplications` — the citizen's OWN applications.
|
|
56
|
+
*
|
|
57
|
+
* This is the Type-C self-scoped list (`@rbac(scopeType: "self")`): it takes no
|
|
58
|
+
* identity argument, and the resolver's `citizenId = authenticated actor` filter
|
|
59
|
+
* IS the access control, so any signed-in actor may call it. The subgraph's own
|
|
60
|
+
* SDL is explicit that citizen-facing "my requests" UIs must use this instead of
|
|
61
|
+
* `govListApplications(citizenId:)`, which is restricted to officer/agency roles
|
|
62
|
+
* and therefore denies an ordinary citizen at the gateway.
|
|
63
|
+
*/
|
|
64
|
+
export declare const useGovMyApplications: (pagination?: PaginationInput, options?: {
|
|
65
|
+
enabled?: boolean;
|
|
66
|
+
}) => import('@tanstack/react-query').UseQueryResult<GovConnection<GovApplication>, Error>;
|
|
54
67
|
export declare const useGovApplication: (id: string | undefined) => import('@tanstack/react-query').UseQueryResult<GovApplication | null, Error>;
|
|
55
68
|
export declare const useGovCreateApplication: () => import('@tanstack/react-query').UseMutationResult<GovApplication, Error, GovCreateApplicationInput, unknown>;
|
|
56
69
|
export declare const useGovUpdateApplication: () => import('@tanstack/react-query').UseMutationResult<GovApplication, Error, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGovApi.d.ts","sourceRoot":"","sources":["../../../src/govcitizenhub/hooks/useGovApi.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,OAAO,KAAK,EACV,aAAa,EACb,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,SAAS,EACT,eAAe,EACf,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,yBAAyB,EACzB,yBAAyB,EACzB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,mBAAmB,EACnB,wBAAwB,EACxB,0BAA0B,EAC1B,uBAAuB,EACvB,eAAe,EAChB,MAAM,UAAU,CAAC;AAQlB,eAAO,MAAM,QAAQ,GAAU,KAAK,EAClC,OAAO,MAAM,EACb,WAAW,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClC,UAAU,MAAM,KACf,OAAO,CAAC,KAAK,CAmCf,CAAC;
|
|
1
|
+
{"version":3,"file":"useGovApi.d.ts","sourceRoot":"","sources":["../../../src/govcitizenhub/hooks/useGovApi.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,OAAO,KAAK,EACV,aAAa,EACb,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,SAAS,EACT,eAAe,EACf,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,yBAAyB,EACzB,yBAAyB,EACzB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,uBAAuB,EACvB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HAgBjC,CAAC;AAEF,eAAO,MAAM,qBAAqB;QAIC,MAAM;WAAS,uBAAuB;WAexE,CAAC;AAEF,eAAO,MAAM,yBAAyB;QAK5B,MAAM;YACF,kBAAkB;iBACb,MAAM,GAAG,IAAI;WAgB/B,CAAC"}
|
|
@@ -36,6 +36,7 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
|
|
|
36
36
|
e
|
|
37
37
|
],
|
|
38
38
|
applications: ["govcitizenhub", "applications"],
|
|
39
|
+
myApplications: ["govcitizenhub", "my-applications"],
|
|
39
40
|
application: (e) => [
|
|
40
41
|
"govcitizenhub",
|
|
41
42
|
"application",
|
|
@@ -209,7 +210,19 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
|
|
|
209
210
|
pagination: u(t.pagination)
|
|
210
211
|
}, n)).govListApplications
|
|
211
212
|
});
|
|
212
|
-
}, P = (t) => {
|
|
213
|
+
}, P = (t, n = {}) => {
|
|
214
|
+
let { apiGatewayUrl: i } = e();
|
|
215
|
+
return r({
|
|
216
|
+
queryKey: [...c.myApplications, t ?? null],
|
|
217
|
+
enabled: n.enabled ?? !0,
|
|
218
|
+
queryFn: async () => (await s(`query GovMyApplications($pagination: PaginationInput) {
|
|
219
|
+
govMyApplications(pagination: $pagination) {
|
|
220
|
+
items { ${_} }
|
|
221
|
+
pageInfo { cursor hasMore }
|
|
222
|
+
}
|
|
223
|
+
}`, { pagination: u(t) }, i)).govMyApplications
|
|
224
|
+
});
|
|
225
|
+
}, ee = (t) => {
|
|
213
226
|
let { apiGatewayUrl: n } = e();
|
|
214
227
|
return r({
|
|
215
228
|
queryKey: c.application(t ?? ""),
|
|
@@ -224,55 +237,57 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
|
|
|
224
237
|
}
|
|
225
238
|
}`, { id: t }, n)).govApplication
|
|
226
239
|
});
|
|
227
|
-
},
|
|
240
|
+
}, F = () => {
|
|
228
241
|
let { apiGatewayUrl: t } = e(), r = i();
|
|
229
242
|
return n({
|
|
230
243
|
mutationFn: async (e) => (await s(`mutation GovCreateApplication($input: GovCreateApplicationInput!) {
|
|
231
244
|
govCreateApplication(input: $input) { ${_} }
|
|
232
245
|
}`, { input: e }, t)).govCreateApplication,
|
|
233
|
-
onSuccess: () =>
|
|
246
|
+
onSuccess: () => {
|
|
247
|
+
r.invalidateQueries({ queryKey: c.applications }), r.invalidateQueries({ queryKey: c.myApplications });
|
|
248
|
+
}
|
|
234
249
|
});
|
|
235
|
-
},
|
|
250
|
+
}, I = () => {
|
|
236
251
|
let { apiGatewayUrl: t } = e(), r = i();
|
|
237
252
|
return n({
|
|
238
253
|
mutationFn: async (e) => (await s(`mutation GovUpdateApplication($id: ID!, $input: GovUpdateApplicationInput!) {
|
|
239
254
|
govUpdateApplication(id: $id, input: $input) { ${_} }
|
|
240
255
|
}`, e, t)).govUpdateApplication,
|
|
241
256
|
onSuccess: (e) => {
|
|
242
|
-
r.invalidateQueries({ queryKey: c.applications }), r.invalidateQueries({ queryKey: c.application(e.id) });
|
|
257
|
+
r.invalidateQueries({ queryKey: c.applications }), r.invalidateQueries({ queryKey: c.myApplications }), r.invalidateQueries({ queryKey: c.application(e.id) });
|
|
243
258
|
}
|
|
244
259
|
});
|
|
245
|
-
},
|
|
260
|
+
}, L = () => {
|
|
246
261
|
let { apiGatewayUrl: t } = e(), r = i();
|
|
247
262
|
return n({
|
|
248
263
|
mutationFn: async (e) => (await s(`mutation GovSubmitApplication($id: ID!) {
|
|
249
264
|
govSubmitApplication(id: $id) { ${_} }
|
|
250
265
|
}`, { id: e }, t)).govSubmitApplication,
|
|
251
266
|
onSuccess: (e) => {
|
|
252
|
-
r.invalidateQueries({ queryKey: c.applications }), r.invalidateQueries({ queryKey: c.application(e.id) });
|
|
267
|
+
r.invalidateQueries({ queryKey: c.applications }), r.invalidateQueries({ queryKey: c.myApplications }), r.invalidateQueries({ queryKey: c.application(e.id) });
|
|
253
268
|
}
|
|
254
269
|
});
|
|
255
|
-
},
|
|
270
|
+
}, R = () => {
|
|
256
271
|
let { apiGatewayUrl: t } = e(), r = i();
|
|
257
272
|
return n({
|
|
258
273
|
mutationFn: async (e) => (await s(`mutation GovTransitionApplication($id: ID!, $status: GovApplicationStatus!, $reason: String) {
|
|
259
274
|
govTransitionApplication(id: $id, status: $status, reason: $reason) { ${_} }
|
|
260
275
|
}`, e, t)).govTransitionApplication,
|
|
261
276
|
onSuccess: (e) => {
|
|
262
|
-
r.invalidateQueries({ queryKey: c.applications }), r.invalidateQueries({ queryKey: c.application(e.id) });
|
|
277
|
+
r.invalidateQueries({ queryKey: c.applications }), r.invalidateQueries({ queryKey: c.myApplications }), r.invalidateQueries({ queryKey: c.application(e.id) });
|
|
263
278
|
}
|
|
264
279
|
});
|
|
265
|
-
},
|
|
280
|
+
}, z = () => {
|
|
266
281
|
let { apiGatewayUrl: t } = e(), r = i();
|
|
267
282
|
return n({
|
|
268
283
|
mutationFn: async (e) => (await s(`mutation GovAddDocument($input: GovAddDocumentInput!) {
|
|
269
284
|
govAddDocument(input: $input) { ${p} }
|
|
270
285
|
}`, { input: e }, t)).govAddDocument,
|
|
271
286
|
onSuccess: (e) => {
|
|
272
|
-
r.invalidateQueries({ queryKey: c.application(e.applicationId) }), r.invalidateQueries({ queryKey: c.applications });
|
|
287
|
+
r.invalidateQueries({ queryKey: c.application(e.applicationId) }), r.invalidateQueries({ queryKey: c.applications }), r.invalidateQueries({ queryKey: c.myApplications });
|
|
273
288
|
}
|
|
274
289
|
});
|
|
275
|
-
},
|
|
290
|
+
}, B = () => {
|
|
276
291
|
let { apiGatewayUrl: t } = e(), r = i();
|
|
277
292
|
return n({
|
|
278
293
|
mutationFn: async (e) => (await s(`mutation GovReviewDocument($id: ID!, $status: GovDocumentStatus!, $rejectionReason: String) {
|
|
@@ -286,7 +301,7 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
|
|
|
286
301
|
r.invalidateQueries({ queryKey: c.application(e.applicationId) });
|
|
287
302
|
}
|
|
288
303
|
});
|
|
289
|
-
},
|
|
304
|
+
}, V = () => {
|
|
290
305
|
let { apiGatewayUrl: t } = e(), r = i();
|
|
291
306
|
return n({
|
|
292
307
|
mutationFn: async (e) => (await s(`mutation GovAddCaseNote($input: GovAddCaseNoteInput!) {
|
|
@@ -296,7 +311,7 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
|
|
|
296
311
|
r.invalidateQueries({ queryKey: c.application(e.applicationId) });
|
|
297
312
|
}
|
|
298
313
|
});
|
|
299
|
-
},
|
|
314
|
+
}, H = (t = {}) => {
|
|
300
315
|
let { apiGatewayUrl: n } = e();
|
|
301
316
|
return r({
|
|
302
317
|
queryKey: [...c.payments, t],
|
|
@@ -312,7 +327,7 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
|
|
|
312
327
|
pagination: u(t.pagination)
|
|
313
328
|
}, n)).govListPayments
|
|
314
329
|
});
|
|
315
|
-
},
|
|
330
|
+
}, U = () => {
|
|
316
331
|
let { apiGatewayUrl: t } = e(), r = i();
|
|
317
332
|
return n({
|
|
318
333
|
mutationFn: async (e) => (await s(`mutation GovCreatePayment($input: GovCreatePaymentInput!) {
|
|
@@ -322,7 +337,7 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
|
|
|
322
337
|
r.invalidateQueries({ queryKey: c.payments }), e.applicationId && r.invalidateQueries({ queryKey: c.application(e.applicationId) });
|
|
323
338
|
}
|
|
324
339
|
});
|
|
325
|
-
},
|
|
340
|
+
}, W = () => {
|
|
326
341
|
let { apiGatewayUrl: t } = e(), r = i();
|
|
327
342
|
return n({
|
|
328
343
|
mutationFn: async (e) => (await s(`mutation GovMarkPaymentPaid($id: ID!, $providerRef: String) {
|
|
@@ -330,7 +345,7 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
|
|
|
330
345
|
}`, e, t)).govMarkPaymentPaid,
|
|
331
346
|
onSuccess: () => r.invalidateQueries({ queryKey: c.payments })
|
|
332
347
|
});
|
|
333
|
-
},
|
|
348
|
+
}, G = () => {
|
|
334
349
|
let { apiGatewayUrl: t } = e(), r = i();
|
|
335
350
|
return n({
|
|
336
351
|
mutationFn: async (e) => (await s(`mutation GovRefundPayment($id: ID!) {
|
|
@@ -338,7 +353,7 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
|
|
|
338
353
|
}`, { id: e }, t)).govRefundPayment,
|
|
339
354
|
onSuccess: () => r.invalidateQueries({ queryKey: c.payments })
|
|
340
355
|
});
|
|
341
|
-
},
|
|
356
|
+
}, K = (t = {}) => {
|
|
342
357
|
let { apiGatewayUrl: n } = e();
|
|
343
358
|
return r({
|
|
344
359
|
queryKey: [...c.permits, t],
|
|
@@ -354,7 +369,7 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
|
|
|
354
369
|
pagination: u(t.pagination)
|
|
355
370
|
}, n)).govListPermits.items
|
|
356
371
|
});
|
|
357
|
-
},
|
|
372
|
+
}, q = () => {
|
|
358
373
|
let { apiGatewayUrl: t } = e(), r = i();
|
|
359
374
|
return n({
|
|
360
375
|
mutationFn: async (e) => (await s(`mutation GovIssuePermit($input: GovIssuePermitInput!) {
|
|
@@ -364,7 +379,7 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
|
|
|
364
379
|
r.invalidateQueries({ queryKey: c.permits }), e.applicationId && r.invalidateQueries({ queryKey: c.application(e.applicationId) });
|
|
365
380
|
}
|
|
366
381
|
});
|
|
367
|
-
},
|
|
382
|
+
}, J = () => {
|
|
368
383
|
let { apiGatewayUrl: t } = e(), r = i();
|
|
369
384
|
return n({
|
|
370
385
|
mutationFn: async (e) => (await s(`mutation GovRevokePermit($id: ID!, $reason: String) {
|
|
@@ -372,10 +387,10 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
|
|
|
372
387
|
}`, e, t)).govRevokePermit,
|
|
373
388
|
onSuccess: () => r.invalidateQueries({ queryKey: c.permits })
|
|
374
389
|
});
|
|
375
|
-
},
|
|
390
|
+
}, Y = () => {
|
|
376
391
|
let { apiGatewayUrl: t } = e();
|
|
377
392
|
return n({ mutationFn: async (e) => (await s("query GovPermitPdf($id: ID!) {\n govPermitPdf(id: $id) { pdfBase64 filename generatedAt }\n }", { id: e }, t)).govPermitPdf });
|
|
378
|
-
},
|
|
393
|
+
}, X = () => {
|
|
379
394
|
let { apiGatewayUrl: t } = e(), r = i();
|
|
380
395
|
return n({
|
|
381
396
|
mutationFn: async (e) => (await s(`mutation GovAttachPermitFile($id: ID!, $fileId: ID!) {
|
|
@@ -383,7 +398,7 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
|
|
|
383
398
|
}`, e, t)).govAttachPermitFile,
|
|
384
399
|
onSuccess: () => r.invalidateQueries({ queryKey: c.permits })
|
|
385
400
|
});
|
|
386
|
-
},
|
|
401
|
+
}, Z = (t) => {
|
|
387
402
|
let { apiGatewayUrl: n } = e();
|
|
388
403
|
return r({
|
|
389
404
|
queryKey: [
|
|
@@ -397,7 +412,7 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
|
|
|
397
412
|
govVerifyPermit(verificationCode: $verificationCode) { ${h} }
|
|
398
413
|
}`, { verificationCode: t }, n)).govVerifyPermit
|
|
399
414
|
});
|
|
400
|
-
},
|
|
415
|
+
}, Q = (t = {}) => {
|
|
401
416
|
let { apiGatewayUrl: n } = e();
|
|
402
417
|
return r({
|
|
403
418
|
queryKey: [...c.grievances, t],
|
|
@@ -413,7 +428,7 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
|
|
|
413
428
|
pagination: u(t.pagination)
|
|
414
429
|
}, n)).govListGrievances
|
|
415
430
|
});
|
|
416
|
-
},
|
|
431
|
+
}, $ = (t) => {
|
|
417
432
|
let { apiGatewayUrl: n } = e();
|
|
418
433
|
return r({
|
|
419
434
|
queryKey: c.grievance(t ?? ""),
|
|
@@ -422,7 +437,7 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
|
|
|
422
437
|
govGrievance(id: $id) { ${v} }
|
|
423
438
|
}`, { id: t }, n)).govGrievance
|
|
424
439
|
});
|
|
425
|
-
},
|
|
440
|
+
}, te = () => {
|
|
426
441
|
let { apiGatewayUrl: t } = e(), r = i();
|
|
427
442
|
return n({
|
|
428
443
|
mutationFn: async (e) => (await s(`mutation GovReportGrievance($input: GovReportGrievanceInput!) {
|
|
@@ -430,7 +445,7 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
|
|
|
430
445
|
}`, { input: e }, t)).govReportGrievance,
|
|
431
446
|
onSuccess: () => r.invalidateQueries({ queryKey: c.grievances })
|
|
432
447
|
});
|
|
433
|
-
},
|
|
448
|
+
}, ne = () => {
|
|
434
449
|
let { apiGatewayUrl: t } = e(), r = i();
|
|
435
450
|
return n({
|
|
436
451
|
mutationFn: async (e) => (await s(`mutation GovUpdateGrievance($id: ID!, $input: GovUpdateGrievanceInput!) {
|
|
@@ -440,7 +455,7 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
|
|
|
440
455
|
r.invalidateQueries({ queryKey: c.grievances }), r.invalidateQueries({ queryKey: c.grievance(e.id) });
|
|
441
456
|
}
|
|
442
457
|
});
|
|
443
|
-
},
|
|
458
|
+
}, re = () => {
|
|
444
459
|
let { apiGatewayUrl: t } = e(), r = i();
|
|
445
460
|
return n({
|
|
446
461
|
mutationFn: async (e) => (await s(`mutation GovTransitionGrievance($id: ID!, $status: GovGrievanceStatus!, $resolution: String) {
|
|
@@ -452,6 +467,6 @@ var o = (e) => /^\s*mutation\b/.test(e), s = async (e, n, r) => {
|
|
|
452
467
|
});
|
|
453
468
|
};
|
|
454
469
|
//#endregion
|
|
455
|
-
export { s as govQuery, u as page,
|
|
470
|
+
export { s as govQuery, u as page, V as useGovAddCaseNote, z as useGovAddDocument, C as useGovAgencies, w as useGovAgency, ee as useGovApplication, x as useGovApplicationSlaSummary, N as useGovApplications, S as useGovApplicationsByService, D as useGovArchiveAgency, X as useGovAttachPermitFile, T as useGovCreateAgency, F as useGovCreateApplication, U as useGovCreatePayment, A as useGovCreateService, b as useGovDashboardSummary, $ as useGovGrievance, Q as useGovGrievances, q as useGovIssuePermit, W as useGovMarkPaymentPaid, P as useGovMyApplications, H as useGovPayments, Y as useGovPermitPdf, K as useGovPermits, G as useGovRefundPayment, te as useGovReportGrievance, B as useGovReviewDocument, J as useGovRevokePermit, k as useGovService, O as useGovServices, L as useGovSubmitApplication, R as useGovTransitionApplication, re as useGovTransitionGrievance, M as useGovTransitionService, E as useGovUpdateAgency, I as useGovUpdateApplication, ne as useGovUpdateGrievance, j as useGovUpdateService, Z as useGovVerifyPermit };
|
|
456
471
|
|
|
457
472
|
//# sourceMappingURL=useGovApi.js.map
|