@burdenoff/microfe-govcitizenhub 2026.705.4 → 2026.709.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 (135) hide show
  1. package/dist/dev/main.d.ts +2 -0
  2. package/dist/dev/main.d.ts.map +1 -0
  3. package/dist/generated/global-operations.d.ts +2 -0
  4. package/dist/generated/global-operations.d.ts.map +1 -0
  5. package/dist/generated/global-types.d.ts +18199 -0
  6. package/dist/generated/global-types.d.ts.map +1 -0
  7. package/dist/generated/wspace-operations.d.ts +2 -0
  8. package/dist/generated/wspace-operations.d.ts.map +1 -0
  9. package/dist/generated/wspace-types.d.ts +43046 -0
  10. package/dist/generated/wspace-types.d.ts.map +1 -0
  11. package/dist/govcitizenhub/GovCitizenHubRoot.d.ts +5 -0
  12. package/dist/govcitizenhub/GovCitizenHubRoot.d.ts.map +1 -0
  13. package/dist/govcitizenhub/GovCitizenHubRoutes.d.ts +4 -0
  14. package/dist/govcitizenhub/GovCitizenHubRoutes.d.ts.map +1 -0
  15. package/dist/govcitizenhub/GovCitizenHubRoutes.js +89 -40
  16. package/dist/govcitizenhub/GovCitizenHubRoutes.js.map +1 -1
  17. package/dist/govcitizenhub/components/Avatar.d.ts +25 -0
  18. package/dist/govcitizenhub/components/Avatar.d.ts.map +1 -0
  19. package/dist/govcitizenhub/components/ConfirmDialog.d.ts +25 -0
  20. package/dist/govcitizenhub/components/ConfirmDialog.d.ts.map +1 -0
  21. package/dist/govcitizenhub/components/DocumentUploadField.d.ts +24 -0
  22. package/dist/govcitizenhub/components/DocumentUploadField.d.ts.map +1 -0
  23. package/dist/govcitizenhub/components/EmptyState.d.ts +14 -0
  24. package/dist/govcitizenhub/components/EmptyState.d.ts.map +1 -0
  25. package/dist/govcitizenhub/components/FilterTabs.d.ts +24 -0
  26. package/dist/govcitizenhub/components/FilterTabs.d.ts.map +1 -0
  27. package/dist/govcitizenhub/components/GovCharts.d.ts +51 -0
  28. package/dist/govcitizenhub/components/GovCharts.d.ts.map +1 -0
  29. package/dist/govcitizenhub/components/KeyValueList.d.ts +17 -0
  30. package/dist/govcitizenhub/components/KeyValueList.d.ts.map +1 -0
  31. package/dist/govcitizenhub/components/MetricsCard.d.ts +32 -0
  32. package/dist/govcitizenhub/components/MetricsCard.d.ts.map +1 -0
  33. package/dist/govcitizenhub/components/PageLayout.d.ts +28 -0
  34. package/dist/govcitizenhub/components/PageLayout.d.ts.map +1 -0
  35. package/dist/govcitizenhub/components/Pagination.d.ts +20 -0
  36. package/dist/govcitizenhub/components/Pagination.d.ts.map +1 -0
  37. package/dist/govcitizenhub/components/SectionCard.d.ts +24 -0
  38. package/dist/govcitizenhub/components/SectionCard.d.ts.map +1 -0
  39. package/dist/govcitizenhub/components/SlaBadge.d.ts +14 -0
  40. package/dist/govcitizenhub/components/SlaBadge.d.ts.map +1 -0
  41. package/dist/govcitizenhub/components/StateViews.d.ts +24 -0
  42. package/dist/govcitizenhub/components/StateViews.d.ts.map +1 -0
  43. package/dist/govcitizenhub/components/StatusBadge.d.ts +13 -0
  44. package/dist/govcitizenhub/components/StatusBadge.d.ts.map +1 -0
  45. package/dist/govcitizenhub/components/StatusStepper.d.ts +21 -0
  46. package/dist/govcitizenhub/components/StatusStepper.d.ts.map +1 -0
  47. package/dist/govcitizenhub/components/SummaryStrip.d.ts +20 -0
  48. package/dist/govcitizenhub/components/SummaryStrip.d.ts.map +1 -0
  49. package/dist/govcitizenhub/components/TagInput.d.ts +18 -0
  50. package/dist/govcitizenhub/components/TagInput.d.ts.map +1 -0
  51. package/dist/govcitizenhub/components/Timeline.d.ts +29 -0
  52. package/dist/govcitizenhub/components/Timeline.d.ts.map +1 -0
  53. package/dist/govcitizenhub/components/index.d.ts +23 -0
  54. package/dist/govcitizenhub/components/index.d.ts.map +1 -0
  55. package/dist/govcitizenhub/context/GovCitizenHubContext.d.ts +16 -0
  56. package/dist/govcitizenhub/context/GovCitizenHubContext.d.ts.map +1 -0
  57. package/dist/govcitizenhub/context/index.d.ts +6 -0
  58. package/dist/govcitizenhub/context/index.d.ts.map +1 -0
  59. package/dist/govcitizenhub/hooks/index.d.ts +8 -0
  60. package/dist/govcitizenhub/hooks/index.d.ts.map +1 -0
  61. package/dist/govcitizenhub/hooks/useCursorPager.d.ts +19 -0
  62. package/dist/govcitizenhub/hooks/useCursorPager.d.ts.map +1 -0
  63. package/dist/govcitizenhub/hooks/useFiles.d.ts +36 -0
  64. package/dist/govcitizenhub/hooks/useFiles.d.ts.map +1 -0
  65. package/dist/govcitizenhub/hooks/useGovApi.d.ts +122 -0
  66. package/dist/govcitizenhub/hooks/useGovApi.d.ts.map +1 -0
  67. package/dist/govcitizenhub/index.d.ts +9 -0
  68. package/dist/govcitizenhub/index.d.ts.map +1 -0
  69. package/dist/govcitizenhub/index.js +1 -0
  70. package/dist/govcitizenhub/lib/graphql-cache.d.ts +15 -0
  71. package/dist/govcitizenhub/lib/graphql-cache.d.ts.map +1 -0
  72. package/dist/govcitizenhub/lib/toast.d.ts +19 -0
  73. package/dist/govcitizenhub/lib/toast.d.ts.map +1 -0
  74. package/dist/govcitizenhub/pages/DashboardPage.d.ts +13 -0
  75. package/dist/govcitizenhub/pages/DashboardPage.d.ts.map +1 -0
  76. package/dist/govcitizenhub/pages/agencies/AgenciesPage.d.ts +11 -0
  77. package/dist/govcitizenhub/pages/agencies/AgenciesPage.d.ts.map +1 -0
  78. package/dist/govcitizenhub/pages/agencies/AgencyFormDialog.d.ts +12 -0
  79. package/dist/govcitizenhub/pages/agencies/AgencyFormDialog.d.ts.map +1 -0
  80. package/dist/govcitizenhub/pages/applications/ApplicationDetailPage.d.ts +20 -0
  81. package/dist/govcitizenhub/pages/applications/ApplicationDetailPage.d.ts.map +1 -0
  82. package/dist/govcitizenhub/pages/applications/ApplicationsPage.d.ts +15 -0
  83. package/dist/govcitizenhub/pages/applications/ApplicationsPage.d.ts.map +1 -0
  84. package/dist/govcitizenhub/pages/applications/NewApplicationPage.d.ts +18 -0
  85. package/dist/govcitizenhub/pages/applications/NewApplicationPage.d.ts.map +1 -0
  86. package/dist/govcitizenhub/pages/documents/DocumentsPage.d.ts +12 -0
  87. package/dist/govcitizenhub/pages/documents/DocumentsPage.d.ts.map +1 -0
  88. package/dist/govcitizenhub/pages/grievances/GrievanceDetailPage.d.ts +12 -0
  89. package/dist/govcitizenhub/pages/grievances/GrievanceDetailPage.d.ts.map +1 -0
  90. package/dist/govcitizenhub/pages/grievances/GrievancesPage.d.ts +7 -0
  91. package/dist/govcitizenhub/pages/grievances/GrievancesPage.d.ts.map +1 -0
  92. package/dist/govcitizenhub/pages/payments/PaymentsPage.d.ts +13 -0
  93. package/dist/govcitizenhub/pages/payments/PaymentsPage.d.ts.map +1 -0
  94. package/dist/govcitizenhub/pages/permits/IssuePermitDialog.d.ts +24 -0
  95. package/dist/govcitizenhub/pages/permits/IssuePermitDialog.d.ts.map +1 -0
  96. package/dist/govcitizenhub/pages/permits/PermitsPage.d.ts +11 -0
  97. package/dist/govcitizenhub/pages/permits/PermitsPage.d.ts.map +1 -0
  98. package/dist/govcitizenhub/pages/permits/VerifyPermitPage.d.ts +11 -0
  99. package/dist/govcitizenhub/pages/permits/VerifyPermitPage.d.ts.map +1 -0
  100. package/dist/govcitizenhub/pages/services/FormFieldBuilder.d.ts +44 -0
  101. package/dist/govcitizenhub/pages/services/FormFieldBuilder.d.ts.map +1 -0
  102. package/dist/govcitizenhub/pages/services/ServiceDetailPage.d.ts +10 -0
  103. package/dist/govcitizenhub/pages/services/ServiceDetailPage.d.ts.map +1 -0
  104. package/dist/govcitizenhub/pages/services/ServiceFormDialog.d.ts +13 -0
  105. package/dist/govcitizenhub/pages/services/ServiceFormDialog.d.ts.map +1 -0
  106. package/dist/govcitizenhub/pages/services/ServicesPage.d.ts +13 -0
  107. package/dist/govcitizenhub/pages/services/ServicesPage.d.ts.map +1 -0
  108. package/dist/govcitizenhub/types/index.d.ts +339 -0
  109. package/dist/govcitizenhub/types/index.d.ts.map +1 -0
  110. package/dist/govcitizenhub/utils/cn.d.ts +2 -0
  111. package/dist/govcitizenhub/utils/cn.d.ts.map +1 -0
  112. package/dist/govcitizenhub/utils/formatters.d.ts +19 -0
  113. package/dist/govcitizenhub/utils/formatters.d.ts.map +1 -0
  114. package/dist/govcitizenhub/utils/navigation.d.ts +9 -0
  115. package/dist/govcitizenhub/utils/navigation.d.ts.map +1 -0
  116. package/dist/index.d.ts +2 -0
  117. package/dist/index.d.ts.map +1 -0
  118. package/dist/index.js +2 -1
  119. package/dist/services/assistantApi.d.ts +23 -0
  120. package/dist/services/assistantApi.d.ts.map +1 -0
  121. package/dist/services/assistantApi.js +243 -0
  122. package/dist/services/assistantApi.js.map +1 -0
  123. package/dist/services/createSandboxAssistantTransport.d.ts +29 -0
  124. package/dist/services/createSandboxAssistantTransport.d.ts.map +1 -0
  125. package/dist/services/createSandboxAssistantTransport.js +120 -0
  126. package/dist/services/createSandboxAssistantTransport.js.map +1 -0
  127. package/dist/services/index.d.ts +3 -0
  128. package/dist/services/index.d.ts.map +1 -0
  129. package/dist/types/assistant.d.ts +67 -0
  130. package/dist/types/assistant.d.ts.map +1 -0
  131. package/dist/utils/pageContext.d.ts +12 -0
  132. package/dist/utils/pageContext.d.ts.map +1 -0
  133. package/dist/utils/pageContext.js +49 -0
  134. package/dist/utils/pageContext.js.map +1 -0
  135. package/package.json +5 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NewApplicationPage.d.ts","sourceRoot":"","sources":["../../../../src/govcitizenhub/pages/applications/NewApplicationPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAqIH,wBAAgB,kBAAkB,4CAuXjC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * DocumentsPage — review and attach documents across applications.
3
+ * @module govcitizenhub/pages/documents
4
+ *
5
+ * Documents are owned by an application, so this page pairs an application picker
6
+ * with that application's document set: a real drag-and-drop upload zone
7
+ * ({@link DocumentUploadField} → wspace-files-svc → govAddDocument) and an officer
8
+ * review table (govReviewDocument) with Accept / Reject-with-reason actions and
9
+ * inline rejection reasons. Nothing on this page is mocked.
10
+ */
11
+ export declare function DocumentsPage(): import("react/jsx-runtime").JSX.Element;
12
+ //# sourceMappingURL=DocumentsPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocumentsPage.d.ts","sourceRoot":"","sources":["../../../../src/govcitizenhub/pages/documents/DocumentsPage.tsx"],"names":[],"mappings":"AACA;;;;;;;;;GASG;AAwHH,wBAAgB,aAAa,4CA6Q5B"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * GrievanceDetailPage — the resolution workspace for a single grievance.
3
+ * @module govcitizenhub/pages/grievances
4
+ *
5
+ * Reads `govGrievance(id)`. Officers advance the resolution lifecycle
6
+ * (`govTransitionGrievance`: open → acknowledged → in progress → resolved/closed,
7
+ * or rejected), assign it to themselves and adjust its priority
8
+ * (`govUpdateGrievance`). The lifecycle stepper, photo-evidence gallery and
9
+ * resolution timeline are all sourced from real svc fields — no fabricated history.
10
+ */
11
+ export declare function GrievanceDetailPage(): import("react/jsx-runtime").JSX.Element;
12
+ //# sourceMappingURL=GrievanceDetailPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GrievanceDetailPage.d.ts","sourceRoot":"","sources":["../../../../src/govcitizenhub/pages/grievances/GrievanceDetailPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAoKH,wBAAgB,mBAAmB,4CAoYlC"}
@@ -0,0 +1,7 @@
1
+ import { LucideIcon } from 'lucide-react';
2
+ import { GovServiceCategory } from '../../types';
3
+
4
+ /** Category → lucide icon, shared with the detail page's header chip. */
5
+ export declare const CATEGORY_ICON: Record<GovServiceCategory, LucideIcon>;
6
+ export declare function GrievancesPage(): import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=GrievancesPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GrievancesPage.d.ts","sourceRoot":"","sources":["../../../../src/govcitizenhub/pages/grievances/GrievancesPage.tsx"],"names":[],"mappings":"AACA;;;;;;;;GAQG;AAGH,OAAO,EAgBL,KAAK,UAAU,EAChB,MAAM,cAAc,CAAC;AAsCtB,OAAO,KAAK,EAAsB,kBAAkB,EAAmB,MAAM,aAAa,CAAC;AA+B3F,yEAAyE;AACzE,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,kBAAkB,EAAE,UAAU,CAUhE,CAAC;AAEF,wBAAgB,cAAc,4CAuH7B"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * PaymentsPage — the fee-payment ledger.
3
+ * @module govcitizenhub/pages/payments
4
+ *
5
+ * Reads `govListPayments` filtered by status with cursor pagination and renders a
6
+ * polished ledger (receipt no · application · amount · status · date · actions).
7
+ * Officers can record a payment (`govCreatePayment`), mark a pending one paid
8
+ * (`govMarkPaymentPaid`) and refund a paid one (`govRefundPayment`). A summary
9
+ * strip surfaces collected (this view) and the authoritative pending total from
10
+ * `govDashboardSummary`. Nothing is mocked.
11
+ */
12
+ export declare function PaymentsPage(): import("react/jsx-runtime").JSX.Element;
13
+ //# sourceMappingURL=PaymentsPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaymentsPage.d.ts","sourceRoot":"","sources":["../../../../src/govcitizenhub/pages/payments/PaymentsPage.tsx"],"names":[],"mappings":"AACA;;;;;;;;;;GAUG;AA2DH,wBAAgB,YAAY,4CAyO3B"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * IssuePermitDialog — issue a permit/licence to a holder.
3
+ * @module govcitizenhub/pages/permits
4
+ *
5
+ * Writes `govIssuePermit`. Launchable standalone (Permits page) or pre-seeded
6
+ * from an application (holder = citizen, service + applicationId prefilled).
7
+ *
8
+ * The verification code is auto-generated and shown READ-ONLY in monospace — it
9
+ * is the printed code citizens/third parties later check via `govVerifyPermit`.
10
+ * Officers never hand-type it; they can only roll a fresh one. The MFE generates
11
+ * a strong code up-front because the svc `GovIssuePermitInput.verificationCode`
12
+ * is required; the server persists exactly the value shown here.
13
+ */
14
+ interface IssuePermitDialogProps {
15
+ open: boolean;
16
+ onOpenChange: (open: boolean) => void;
17
+ defaultServiceId?: string;
18
+ defaultHolderId?: string;
19
+ applicationId?: string;
20
+ onIssued?: () => void;
21
+ }
22
+ export declare function IssuePermitDialog({ open, onOpenChange, defaultServiceId, defaultHolderId, applicationId, onIssued, }: IssuePermitDialogProps): import("react/jsx-runtime").JSX.Element;
23
+ export {};
24
+ //# sourceMappingURL=IssuePermitDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IssuePermitDialog.d.ts","sourceRoot":"","sources":["../../../../src/govcitizenhub/pages/permits/IssuePermitDialog.tsx"],"names":[],"mappings":"AACA;;;;;;;;;;;;GAYG;AAsCH,UAAU,sBAAsB;IAC9B,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,QAAQ,GACT,EAAE,sBAAsB,2CAkPxB"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * PermitsPage — the register of issued permits and licences.
3
+ * @module govcitizenhub/pages/permits
4
+ *
5
+ * Reads `govListPermits` (an ARRAY, offset-paginated) filtered by status. Officers
6
+ * can issue new permits ({@link IssuePermitDialog}) and revoke active ones
7
+ * (`govRevokePermit`, with a reason). Each card carries a public, copyable
8
+ * verification code; a public verification view lives at `permits/verify`.
9
+ */
10
+ export declare function PermitsPage(): import("react/jsx-runtime").JSX.Element;
11
+ //# sourceMappingURL=PermitsPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PermitsPage.d.ts","sourceRoot":"","sources":["../../../../src/govcitizenhub/pages/permits/PermitsPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AA+LH,wBAAgB,WAAW,4CAsJ1B"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * VerifyPermitPage — public permit verification by printed code.
3
+ * @module govcitizenhub/pages/permits
4
+ *
5
+ * Uses `govVerifyPermit(verificationCode)` (a PUBLIC field) to let anyone confirm
6
+ * a permit is genuine and valid. A clean centered hero with a single code input,
7
+ * and unambiguous result states — genuine (green shield), revoked / expired (red),
8
+ * not-found (grey) — mirrors the public verification surface.
9
+ */
10
+ export declare function VerifyPermitPage(): import("react/jsx-runtime").JSX.Element;
11
+ //# sourceMappingURL=VerifyPermitPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerifyPermitPage.d.ts","sourceRoot":"","sources":["../../../../src/govcitizenhub/pages/permits/VerifyPermitPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAoNH,wBAAgB,gBAAgB,4CA2G/B"}
@@ -0,0 +1,44 @@
1
+ /**
2
+ * FormFieldBuilder — a no-code builder for a service's application form fields.
3
+ * @module govcitizenhub/pages/services
4
+ *
5
+ * Edits the ordered list of dynamic form fields that a citizen fills when applying
6
+ * for a service. The output is written to the service `formSchema` JSON as a plain
7
+ * ARRAY of field objects:
8
+ *
9
+ * [
10
+ * { "key": "business_name", "label": "Business Name", "type": "text", "required": true },
11
+ * { "key": "turnover", "label": "Annual Turnover", "type": "number", "required": false },
12
+ * { "key": "category", "label": "Category", "type": "select", "required": true,
13
+ * "options": ["Retail", "Wholesale"] }
14
+ * ]
15
+ *
16
+ * This is the EXACT shape `NewApplicationPage` normalises and renders, so a field
17
+ * added here shows up verbatim in the citizen application form. `type` is one of
18
+ * text | textarea | number | date | select | file; `options` applies to select.
19
+ */
20
+ /** The canonical field type set the citizen application renderer understands. */
21
+ export type BuilderFieldType = 'text' | 'textarea' | 'number' | 'date' | 'select' | 'file';
22
+ export interface BuilderField {
23
+ key: string;
24
+ label: string;
25
+ type: BuilderFieldType;
26
+ required: boolean;
27
+ options?: string[];
28
+ }
29
+ interface FormFieldBuilderProps {
30
+ value: BuilderField[];
31
+ onChange: (fields: BuilderField[]) => void;
32
+ disabled?: boolean;
33
+ }
34
+ /**
35
+ * Coerce an opaque `formSchema` JSON into the editable BuilderField[] shape. Kept
36
+ * tolerant so a service authored elsewhere (or as a json-schema `{ properties }`)
37
+ * still opens cleanly in the builder.
38
+ */
39
+ export declare function schemaToFields(schema: unknown): BuilderField[];
40
+ /** Serialise BuilderField[] to the array `formSchema` payload (or null when empty). */
41
+ export declare function fieldsToSchema(fields: BuilderField[]): BuilderField[] | null;
42
+ export declare function FormFieldBuilder({ value, onChange, disabled }: FormFieldBuilderProps): import("react/jsx-runtime").JSX.Element;
43
+ export {};
44
+ //# sourceMappingURL=FormFieldBuilder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormFieldBuilder.d.ts","sourceRoot":"","sources":["../../../../src/govcitizenhub/pages/services/FormFieldBuilder.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAkCH,iFAAiF;AACjF,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE3F,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,gBAAgB,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAqCD,UAAU,qBAAqB;IAC7B,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,QAAQ,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,KAAK,IAAI,CAAC;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,YAAY,EAAE,CAgD9D;AAED,uFAAuF;AACvF,wBAAgB,cAAc,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,YAAY,EAAE,GAAG,IAAI,CAS5E;AAYD,wBAAgB,gBAAgB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAgB,EAAE,EAAE,qBAAqB,2CAuP5F"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * ServiceDetailPage — full view of a public service with lifecycle controls.
3
+ * @module govcitizenhub/pages/services
4
+ *
5
+ * Reads `govService(id)`. Officers can edit the service, advance its publication
6
+ * lifecycle (`govTransitionService`: Draft → Published → Suspended → Retired) and
7
+ * citizens can start an application when the service is published.
8
+ */
9
+ export declare function ServiceDetailPage(): import("react/jsx-runtime").JSX.Element;
10
+ //# sourceMappingURL=ServiceDetailPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServiceDetailPage.d.ts","sourceRoot":"","sources":["../../../../src/govcitizenhub/pages/services/ServiceDetailPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAkDH,wBAAgB,iBAAiB,4CA+QhC"}
@@ -0,0 +1,13 @@
1
+ import { GovService } from '../../types';
2
+
3
+ interface ServiceFormDialogProps {
4
+ open: boolean;
5
+ onOpenChange: (open: boolean) => void;
6
+ service?: GovService | null;
7
+ /** Preselected agency for a create flow launched from an agency context. */
8
+ defaultAgencyId?: string;
9
+ onSaved?: (service: GovService) => void;
10
+ }
11
+ export declare function ServiceFormDialog({ open, onOpenChange, service, defaultAgencyId, onSaved, }: ServiceFormDialogProps): import("react/jsx-runtime").JSX.Element;
12
+ export {};
13
+ //# sourceMappingURL=ServiceFormDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServiceFormDialog.d.ts","sourceRoot":"","sources":["../../../../src/govcitizenhub/pages/services/ServiceFormDialog.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAiCH,OAAO,KAAK,EAAE,UAAU,EAAkC,MAAM,aAAa,CAAC;AAgB9E,UAAU,sBAAsB;IAC9B,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,OAAO,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAC5B,4EAA4E;IAC5E,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,UAAU,KAAK,IAAI,CAAC;CACzC;AAED,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,YAAY,EACZ,OAAO,EACP,eAAe,EACf,OAAO,GACR,EAAE,sBAAsB,2CA0UxB"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * ServicesPage — the public service catalog (officer + citizen surface).
3
+ * @module govcitizenhub/pages/services
4
+ *
5
+ * Reads `govListServices` filtered by status + category with cursor pagination.
6
+ * A category chip row + status tabs drive the server filters; a search box narrows
7
+ * the loaded page client-side (the svc has no text-search arg, so search is scoped
8
+ * to the current page and labelled as such). Officers can create a new service
9
+ * (draft) from the header; each card links to the service detail, and PUBLISHED
10
+ * services expose a direct "Apply" action.
11
+ */
12
+ export declare function ServicesPage(): import("react/jsx-runtime").JSX.Element;
13
+ //# sourceMappingURL=ServicesPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServicesPage.d.ts","sourceRoot":"","sources":["../../../../src/govcitizenhub/pages/services/ServicesPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AA8EH,wBAAgB,YAAY,4CA4K3B"}
@@ -0,0 +1,339 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ export interface NavItem {
4
+ id: string;
5
+ label: string;
6
+ path: string;
7
+ icon?: ReactNode;
8
+ badge?: number;
9
+ order?: number;
10
+ group?: string;
11
+ visible?: boolean;
12
+ external?: boolean;
13
+ children?: NavItem[];
14
+ }
15
+ export interface FooterItem {
16
+ id: string;
17
+ label: string;
18
+ icon?: string;
19
+ onClick?: () => void;
20
+ type?: 'status' | 'action' | 'info';
21
+ order?: number;
22
+ badge?: string;
23
+ section?: 'left' | 'center' | 'right';
24
+ visible?: boolean;
25
+ }
26
+ export interface CurrentUser {
27
+ id: string;
28
+ email: string;
29
+ firstName?: string;
30
+ lastName?: string;
31
+ avatar?: string;
32
+ username?: string;
33
+ name?: string;
34
+ role?: string;
35
+ }
36
+ /**
37
+ * Props for the GovCitizenHubRoot component. Host-contract preserving: the app
38
+ * shell spreads `workspaceBaseProps` (basePath, currentUser, workspaceId,
39
+ * tenantId, apiGatewayUrl, authToken, navigate, registerNavItems,
40
+ * registerFooterItems) onto this component.
41
+ */
42
+ export interface GovCitizenHubRootProps {
43
+ basePath?: string;
44
+ workspaceId?: string;
45
+ tenantId?: string;
46
+ apiGatewayUrl?: string;
47
+ authToken?: string;
48
+ navigate?: (path: string) => void;
49
+ currentUser?: CurrentUser | null;
50
+ registerNavItems?: (items: NavItem | NavItem[]) => () => void;
51
+ registerFooterItems?: (items: FooterItem | FooterItem[]) => () => void;
52
+ }
53
+ export interface PaginationInput {
54
+ limit?: number;
55
+ offset?: number;
56
+ cursor?: string | null;
57
+ }
58
+ export interface GovPageInfo {
59
+ cursor?: string | null;
60
+ hasMore: boolean;
61
+ }
62
+ export interface GovConnection<T> {
63
+ items: T[];
64
+ pageInfo: GovPageInfo;
65
+ }
66
+ export interface GovApplicationStatusCount {
67
+ status: GovApplicationStatus;
68
+ count: number;
69
+ }
70
+ export interface GovDashboardSummary {
71
+ applicationsTotal: number;
72
+ applicationsByStatus: GovApplicationStatusCount[];
73
+ pendingPayments: number;
74
+ pendingPaymentsAmount: number;
75
+ openGrievances: number;
76
+ activePermits: number;
77
+ publishedServices: number;
78
+ activeAgencies: number;
79
+ }
80
+ /** `File @key(fields: "id", resolvable: false)` — reference only, id here. */
81
+ export interface GovFileRef {
82
+ id: string;
83
+ }
84
+ export type GovApplicationStatus = 'DRAFT' | 'SUBMITTED' | 'IN_REVIEW' | 'INFO_REQUESTED' | 'APPROVED' | 'REJECTED' | 'WITHDRAWN';
85
+ export type GovCasePriority = 'LOW' | 'NORMAL' | 'HIGH' | 'URGENT';
86
+ export type GovServiceCategory = 'CERTIFICATES' | 'EDUCATION' | 'GRIEVANCES' | 'HEALTH' | 'LICENCES_AND_PERMITS' | 'OTHER' | 'SOCIAL_WELFARE' | 'TAXES_AND_PAYMENTS' | 'UTILITIES';
87
+ export type GovServiceStatus = 'DRAFT' | 'PUBLISHED' | 'SUSPENDED' | 'RETIRED';
88
+ export type GovFeeType = 'FREE' | 'FIXED' | 'VARIABLE';
89
+ export type GovDocumentStatus = 'PENDING' | 'ACCEPTED' | 'REJECTED';
90
+ export type GovPaymentStatus = 'PENDING' | 'PAID' | 'FAILED' | 'REFUNDED';
91
+ export type GovPermitStatus = 'ISSUED' | 'ACTIVE' | 'EXPIRED' | 'REVOKED';
92
+ export type GovGrievanceStatus = 'OPEN' | 'ACKNOWLEDGED' | 'IN_PROGRESS' | 'RESOLVED' | 'REJECTED' | 'CLOSED';
93
+ export type GovCaseNoteType = 'INTERNAL' | 'CITIZEN_MESSAGE' | 'INFO_REQUEST' | 'DECISION';
94
+ export type GovJson = Record<string, unknown> | unknown[] | null;
95
+ export interface GovAgency {
96
+ id: string;
97
+ workspaceId: string;
98
+ code?: string | null;
99
+ contactEmail?: string | null;
100
+ contactPhone?: string | null;
101
+ description?: string | null;
102
+ isActive: boolean;
103
+ jurisdiction?: string | null;
104
+ name: string;
105
+ tags: string[];
106
+ services?: GovService[];
107
+ createdAt: string;
108
+ updatedAt: string;
109
+ }
110
+ export interface GovService {
111
+ id: string;
112
+ workspaceId: string;
113
+ agencyId: string;
114
+ agency?: GovAgency | null;
115
+ category: GovServiceCategory;
116
+ currency: string;
117
+ eligibility?: string | null;
118
+ feeAmount: number;
119
+ feeType: GovFeeType;
120
+ formSchema?: GovJson;
121
+ name: string;
122
+ publishedAt?: string | null;
123
+ requiredDocuments: string[];
124
+ slaDays: number;
125
+ slug: string;
126
+ status: GovServiceStatus;
127
+ summary?: string | null;
128
+ tags: string[];
129
+ createdAt: string;
130
+ updatedAt: string;
131
+ }
132
+ export interface GovDocument {
133
+ id: string;
134
+ workspaceId: string;
135
+ applicationId: string;
136
+ name: string;
137
+ status: GovDocumentStatus;
138
+ requirement?: string | null;
139
+ rejectionReason?: string | null;
140
+ file?: GovFileRef | null;
141
+ createdAt: string;
142
+ updatedAt: string;
143
+ }
144
+ export interface GovCaseNote {
145
+ id: string;
146
+ workspaceId: string;
147
+ applicationId: string;
148
+ authorId: string;
149
+ body: string;
150
+ type: GovCaseNoteType;
151
+ createdAt: string;
152
+ updatedAt: string;
153
+ }
154
+ export interface GovPermit {
155
+ id: string;
156
+ workspaceId: string;
157
+ applicationId?: string | null;
158
+ serviceId: string;
159
+ holderId: string;
160
+ title: string;
161
+ verificationCode: string;
162
+ status: GovPermitStatus;
163
+ issuedAt: string;
164
+ expiresAt?: string | null;
165
+ revokedAt?: string | null;
166
+ revokeReason?: string | null;
167
+ file?: GovFileRef | null;
168
+ createdAt: string;
169
+ updatedAt: string;
170
+ }
171
+ export interface GovPayment {
172
+ id: string;
173
+ workspaceId: string;
174
+ applicationId?: string | null;
175
+ payerId: string;
176
+ amount: number;
177
+ currency: string;
178
+ status: GovPaymentStatus;
179
+ receiptNumber?: string | null;
180
+ providerRef?: string | null;
181
+ lineItems?: GovJson;
182
+ paidAt?: string | null;
183
+ refundedAt?: string | null;
184
+ createdAt: string;
185
+ updatedAt: string;
186
+ }
187
+ export interface GovApplication {
188
+ id: string;
189
+ workspaceId: string;
190
+ reference: string;
191
+ serviceId: string;
192
+ citizenId: string;
193
+ assignedToId?: string | null;
194
+ status: GovApplicationStatus;
195
+ priority: GovCasePriority;
196
+ dueDate?: string | null;
197
+ submittedAt?: string | null;
198
+ decidedAt?: string | null;
199
+ decisionReason?: string | null;
200
+ formData?: GovJson;
201
+ documents: GovDocument[];
202
+ notes: GovCaseNote[];
203
+ permits: GovPermit[];
204
+ tags: string[];
205
+ createdAt: string;
206
+ updatedAt: string;
207
+ }
208
+ export interface GovGrievance {
209
+ id: string;
210
+ workspaceId: string;
211
+ title: string;
212
+ description: string;
213
+ category: GovServiceCategory;
214
+ status: GovGrievanceStatus;
215
+ priority: GovCasePriority;
216
+ location?: string | null;
217
+ latitude?: number | null;
218
+ longitude?: number | null;
219
+ photoFileIds: string[];
220
+ reporterId: string;
221
+ agencyId?: string | null;
222
+ assignedToId?: string | null;
223
+ resolution?: string | null;
224
+ resolvedAt?: string | null;
225
+ tags: string[];
226
+ createdAt: string;
227
+ updatedAt: string;
228
+ }
229
+ export type GovServiceConnection = GovConnection<GovService>;
230
+ export type GovApplicationConnection = GovConnection<GovApplication>;
231
+ export type GovPaymentConnection = GovConnection<GovPayment>;
232
+ export type GovGrievanceConnection = GovConnection<GovGrievance>;
233
+ export interface GovCreateAgencyInput {
234
+ name: string;
235
+ code?: string | null;
236
+ contactEmail?: string | null;
237
+ contactPhone?: string | null;
238
+ description?: string | null;
239
+ jurisdiction?: string | null;
240
+ tags?: string[] | null;
241
+ }
242
+ export interface GovUpdateAgencyInput {
243
+ name?: string | null;
244
+ code?: string | null;
245
+ contactEmail?: string | null;
246
+ contactPhone?: string | null;
247
+ description?: string | null;
248
+ isActive?: boolean | null;
249
+ jurisdiction?: string | null;
250
+ tags?: string[] | null;
251
+ }
252
+ export interface GovCreateServiceInput {
253
+ agencyId: string;
254
+ name: string;
255
+ slug: string;
256
+ category?: GovServiceCategory;
257
+ currency?: string | null;
258
+ eligibility?: string | null;
259
+ feeAmount?: number | null;
260
+ feeType?: GovFeeType;
261
+ formSchema?: GovJson;
262
+ requiredDocuments?: string[] | null;
263
+ slaDays?: number | null;
264
+ summary?: string | null;
265
+ tags?: string[] | null;
266
+ }
267
+ export interface GovUpdateServiceInput {
268
+ name?: string | null;
269
+ category?: GovServiceCategory | null;
270
+ currency?: string | null;
271
+ eligibility?: string | null;
272
+ feeAmount?: number | null;
273
+ feeType?: GovFeeType | null;
274
+ formSchema?: GovJson;
275
+ requiredDocuments?: string[] | null;
276
+ slaDays?: number | null;
277
+ summary?: string | null;
278
+ tags?: string[] | null;
279
+ }
280
+ export interface GovCreateApplicationInput {
281
+ serviceId: string;
282
+ formData?: GovJson;
283
+ priority?: GovCasePriority;
284
+ reference?: string | null;
285
+ tags?: string[] | null;
286
+ }
287
+ export interface GovUpdateApplicationInput {
288
+ assignedToId?: string | null;
289
+ formData?: GovJson;
290
+ priority?: GovCasePriority | null;
291
+ tags?: string[] | null;
292
+ }
293
+ export interface GovAddDocumentInput {
294
+ applicationId: string;
295
+ fileId?: string | null;
296
+ name: string;
297
+ requirement?: string | null;
298
+ }
299
+ export interface GovAddCaseNoteInput {
300
+ applicationId: string;
301
+ body: string;
302
+ type?: GovCaseNoteType;
303
+ }
304
+ export interface GovCreatePaymentInput {
305
+ amount: number;
306
+ applicationId?: string | null;
307
+ currency?: string | null;
308
+ lineItems?: GovJson;
309
+ providerRef?: string | null;
310
+ }
311
+ export interface GovIssuePermitInput {
312
+ holderId: string;
313
+ serviceId: string;
314
+ title: string;
315
+ verificationCode: string;
316
+ applicationId?: string | null;
317
+ expiresAt?: string | null;
318
+ fileId?: string | null;
319
+ }
320
+ export interface GovReportGrievanceInput {
321
+ title: string;
322
+ description: string;
323
+ category?: GovServiceCategory;
324
+ agencyId?: string | null;
325
+ latitude?: number | null;
326
+ location?: string | null;
327
+ longitude?: number | null;
328
+ photoFileIds?: string[] | null;
329
+ priority?: GovCasePriority;
330
+ tags?: string[] | null;
331
+ }
332
+ export interface GovUpdateGrievanceInput {
333
+ agencyId?: string | null;
334
+ assignedToId?: string | null;
335
+ location?: string | null;
336
+ priority?: GovCasePriority | null;
337
+ tags?: string[] | null;
338
+ }
339
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/govcitizenhub/types/index.ts"],"names":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,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CACxB"}
@@ -0,0 +1,2 @@
1
+ export { cn } from '@burdenoff/fe-libs/utils';
2
+ //# sourceMappingURL=cn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../../../src/govcitizenhub/utils/cn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Formatting utilities for the GovCitizenHub microfrontend.
3
+ * @module govcitizenhub/utils/formatters
4
+ */
5
+ /** Format a date string or Date into a human-readable date. */
6
+ export declare function formatDate(date: string | Date | null | undefined, options?: Partial<Intl.DateTimeFormatOptions>): string;
7
+ /** Format a date-time into a date + time string. */
8
+ export declare function formatDateTime(date: string | Date | null | undefined, options?: Partial<Intl.DateTimeFormatOptions>): string;
9
+ /** Format a date into a relative time string (e.g. "2 hours ago", "in 3 days"). */
10
+ export declare function formatRelativeTime(date: string | Date | null | undefined): string;
11
+ /** Format a number with locale grouping. */
12
+ export declare function formatNumber(value: number | null | undefined, options?: Partial<Intl.NumberFormatOptions>): string;
13
+ /** Format a monetary amount with a currency code (defaults to INR). */
14
+ export declare function formatCurrency(amount: number | null | undefined, currency?: string | null | undefined): string;
15
+ /** Turn an ENUM_LIKE_TOKEN into a human "Enum Like Token" label. */
16
+ export declare function formatEnumLabel(value: string | null | undefined): string;
17
+ /** Slug helper for service creation (lowercase, dash-separated). */
18
+ export declare function slugify(value: string): string;
19
+ //# sourceMappingURL=formatters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../../src/govcitizenhub/utils/formatters.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,+DAA+D;AAC/D,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,EACtC,OAAO,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,GAC5C,MAAM,CAUR;AAED,oDAAoD;AACpD,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,EACtC,OAAO,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,GAC5C,MAAM,CAYR;AAED,mFAAmF;AACnF,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CA4BjF;AAED,4CAA4C;AAC5C,wBAAgB,YAAY,CAC1B,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,OAAO,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,mBAAmB,CAAC,GAC1C,MAAM,CAGR;AAED,uEAAuE;AACvE,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACjC,QAAQ,GAAE,MAAM,GAAG,IAAI,GAAG,SAAiB,GAC1C,MAAM,CAYR;AAED,oEAAoE;AACpE,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAMxE;AAED,oEAAoE;AACpE,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAO7C"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Path helpers for GovCitizenHub.
3
+ *
4
+ * `joinPath` combines the host-supplied basePath with a route-relative path,
5
+ * normalising slashes so a basePath of `/govcitizenhub` and a relative path of
6
+ * `services/123` resolve to `/govcitizenhub/services/123`.
7
+ */
8
+ export declare function joinPath(basePath: string, relativePath: string): string;
9
+ //# sourceMappingURL=navigation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../src/govcitizenhub/utils/navigation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAIvE"}
@@ -0,0 +1,2 @@
1
+ export * from './govcitizenhub';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}