@burdenoff/microfe-govcitizenhub 2026.509.101
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/README.md +12 -0
- package/dist/dev/main.d.ts +2 -0
- package/dist/dev/main.d.ts.map +1 -0
- package/dist/generated/global-operations.d.ts +2 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-types.d.ts +18199 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/wspace-operations.d.ts +2 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-types.d.ts +43046 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/govcitizenhub/GovCitizenHubRoot.d.ts +5 -0
- package/dist/govcitizenhub/GovCitizenHubRoot.d.ts.map +1 -0
- package/dist/govcitizenhub/GovCitizenHubRoot.js +163 -0
- package/dist/govcitizenhub/GovCitizenHubRoot.js.map +1 -0
- package/dist/govcitizenhub/GovCitizenHubRoutes.d.ts +2 -0
- package/dist/govcitizenhub/GovCitizenHubRoutes.d.ts.map +1 -0
- package/dist/govcitizenhub/GovCitizenHubRoutes.js +60 -0
- package/dist/govcitizenhub/GovCitizenHubRoutes.js.map +1 -0
- package/dist/govcitizenhub/index.d.ts +5 -0
- package/dist/govcitizenhub/index.d.ts.map +1 -0
- package/dist/govcitizenhub/index.js +3 -0
- package/dist/govcitizenhub/pages/ApplicationDetailPage.d.ts +2 -0
- package/dist/govcitizenhub/pages/ApplicationDetailPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/ApplicationDetailPage.js +477 -0
- package/dist/govcitizenhub/pages/ApplicationDetailPage.js.map +1 -0
- package/dist/govcitizenhub/pages/ApplicationsPage.d.ts +2 -0
- package/dist/govcitizenhub/pages/ApplicationsPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/ApplicationsPage.js +239 -0
- package/dist/govcitizenhub/pages/ApplicationsPage.js.map +1 -0
- package/dist/govcitizenhub/pages/CookiesPage.d.ts +2 -0
- package/dist/govcitizenhub/pages/CookiesPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/CookiesPage.js +18 -0
- package/dist/govcitizenhub/pages/CookiesPage.js.map +1 -0
- package/dist/govcitizenhub/pages/DashboardPage.d.ts +2 -0
- package/dist/govcitizenhub/pages/DashboardPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/DashboardPage.js +254 -0
- package/dist/govcitizenhub/pages/DashboardPage.js.map +1 -0
- package/dist/govcitizenhub/pages/DocumentsPage.d.ts +2 -0
- package/dist/govcitizenhub/pages/DocumentsPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/DocumentsPage.js +257 -0
- package/dist/govcitizenhub/pages/DocumentsPage.js.map +1 -0
- package/dist/govcitizenhub/pages/NewApplicationPage.d.ts +2 -0
- package/dist/govcitizenhub/pages/NewApplicationPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/NewApplicationPage.js +185 -0
- package/dist/govcitizenhub/pages/NewApplicationPage.js.map +1 -0
- package/dist/govcitizenhub/pages/NotificationsPage.d.ts +2 -0
- package/dist/govcitizenhub/pages/NotificationsPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/NotificationsPage.js +18 -0
- package/dist/govcitizenhub/pages/NotificationsPage.js.map +1 -0
- package/dist/govcitizenhub/pages/PaymentsPage.d.ts +2 -0
- package/dist/govcitizenhub/pages/PaymentsPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/PaymentsPage.js +417 -0
- package/dist/govcitizenhub/pages/PaymentsPage.js.map +1 -0
- package/dist/govcitizenhub/pages/PrivacyPage.d.ts +2 -0
- package/dist/govcitizenhub/pages/PrivacyPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/PrivacyPage.js +18 -0
- package/dist/govcitizenhub/pages/PrivacyPage.js.map +1 -0
- package/dist/govcitizenhub/pages/ProfilePage.d.ts +2 -0
- package/dist/govcitizenhub/pages/ProfilePage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/ProfilePage.js +18 -0
- package/dist/govcitizenhub/pages/ProfilePage.js.map +1 -0
- package/dist/govcitizenhub/pages/ServicesPage.d.ts +2 -0
- package/dist/govcitizenhub/pages/ServicesPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/ServicesPage.js +299 -0
- package/dist/govcitizenhub/pages/ServicesPage.js.map +1 -0
- package/dist/govcitizenhub/pages/SettingsPage.d.ts +2 -0
- package/dist/govcitizenhub/pages/SettingsPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/SettingsPage.js +18 -0
- package/dist/govcitizenhub/pages/SettingsPage.js.map +1 -0
- package/dist/govcitizenhub/providers/GovCitizenHubProvider.d.ts +6 -0
- package/dist/govcitizenhub/providers/GovCitizenHubProvider.d.ts.map +1 -0
- package/dist/govcitizenhub/providers/GovCitizenHubProvider.js +27 -0
- package/dist/govcitizenhub/providers/GovCitizenHubProvider.js.map +1 -0
- package/dist/govcitizenhub/store/govcitizenhubStore.d.ts +35 -0
- package/dist/govcitizenhub/store/govcitizenhubStore.d.ts.map +1 -0
- package/dist/govcitizenhub/store/govcitizenhubStore.js +529 -0
- package/dist/govcitizenhub/store/govcitizenhubStore.js.map +1 -0
- package/dist/govcitizenhub/types/index.d.ts +113 -0
- package/dist/govcitizenhub/types/index.d.ts.map +1 -0
- package/dist/govcitizenhub/utils/cn.d.ts +4 -0
- package/dist/govcitizenhub/utils/cn.d.ts.map +1 -0
- package/dist/govcitizenhub/utils/navigation.d.ts +2 -0
- package/dist/govcitizenhub/utils/navigation.d.ts.map +1 -0
- package/dist/govcitizenhub/utils/navigation.js +8 -0
- package/dist/govcitizenhub/utils/navigation.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/package.json +107 -0
|
@@ -0,0 +1,529 @@
|
|
|
1
|
+
import { create as e } from "zustand";
|
|
2
|
+
//#region src/govcitizenhub/store/govcitizenhubStore.ts
|
|
3
|
+
var t = [
|
|
4
|
+
{
|
|
5
|
+
id: "APP-2024-001",
|
|
6
|
+
applicationNumber: "APP-2024-001",
|
|
7
|
+
serviceId: "svc-1",
|
|
8
|
+
serviceName: "Passport Renewal",
|
|
9
|
+
department: "Ministry of External Affairs",
|
|
10
|
+
status: "processing",
|
|
11
|
+
priority: "normal",
|
|
12
|
+
submittedAt: "2024-01-20T10:30:00Z",
|
|
13
|
+
updatedAt: "2024-01-22T14:00:00Z",
|
|
14
|
+
estimatedCompletion: "2024-02-20",
|
|
15
|
+
fee: 1500,
|
|
16
|
+
applicantName: "Rajesh Kumar",
|
|
17
|
+
substatus: "Biometric verification pending"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
id: "APP-2024-002",
|
|
21
|
+
applicationNumber: "APP-2024-002",
|
|
22
|
+
serviceId: "svc-2",
|
|
23
|
+
serviceName: "Birth Certificate",
|
|
24
|
+
department: "Municipal Corporation",
|
|
25
|
+
status: "completed",
|
|
26
|
+
priority: "low",
|
|
27
|
+
submittedAt: "2024-01-10T09:00:00Z",
|
|
28
|
+
updatedAt: "2024-01-18T16:00:00Z",
|
|
29
|
+
estimatedCompletion: "2024-01-20",
|
|
30
|
+
fee: 100,
|
|
31
|
+
applicantName: "Rajesh Kumar"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
id: "APP-2024-003",
|
|
35
|
+
applicationNumber: "APP-2024-003",
|
|
36
|
+
serviceId: "svc-3",
|
|
37
|
+
serviceName: "Driving License Renewal",
|
|
38
|
+
department: "Regional Transport Office",
|
|
39
|
+
status: "under_review",
|
|
40
|
+
priority: "high",
|
|
41
|
+
submittedAt: "2024-01-22T08:00:00Z",
|
|
42
|
+
updatedAt: "2024-01-23T10:00:00Z",
|
|
43
|
+
estimatedCompletion: "2024-02-10",
|
|
44
|
+
fee: 800,
|
|
45
|
+
applicantName: "Rajesh Kumar",
|
|
46
|
+
substatus: "Document verification in progress"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
id: "APP-2024-004",
|
|
50
|
+
applicationNumber: "APP-2024-004",
|
|
51
|
+
serviceId: "svc-4",
|
|
52
|
+
serviceName: "Income Certificate",
|
|
53
|
+
department: "Revenue Department",
|
|
54
|
+
status: "submitted",
|
|
55
|
+
priority: "normal",
|
|
56
|
+
submittedAt: "2024-01-23T12:00:00Z",
|
|
57
|
+
updatedAt: "2024-01-23T12:00:00Z",
|
|
58
|
+
estimatedCompletion: "2024-01-30",
|
|
59
|
+
fee: 50,
|
|
60
|
+
applicantName: "Rajesh Kumar"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
id: "APP-2024-005",
|
|
64
|
+
applicationNumber: "APP-2024-005",
|
|
65
|
+
serviceId: "svc-5",
|
|
66
|
+
serviceName: "Trade License",
|
|
67
|
+
department: "Commerce Department",
|
|
68
|
+
status: "rejected",
|
|
69
|
+
priority: "urgent",
|
|
70
|
+
submittedAt: "2024-01-05T10:00:00Z",
|
|
71
|
+
updatedAt: "2024-01-15T10:00:00Z",
|
|
72
|
+
estimatedCompletion: "2024-01-20",
|
|
73
|
+
fee: 3500,
|
|
74
|
+
applicantName: "Rajesh Kumar",
|
|
75
|
+
substatus: "Missing mandatory documents"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
id: "APP-2024-006",
|
|
79
|
+
applicationNumber: "APP-2024-006",
|
|
80
|
+
serviceId: "svc-6",
|
|
81
|
+
serviceName: "Property Registration",
|
|
82
|
+
department: "Sub-Registrar Office",
|
|
83
|
+
status: "draft",
|
|
84
|
+
priority: "normal",
|
|
85
|
+
submittedAt: "2024-01-24T09:00:00Z",
|
|
86
|
+
updatedAt: "2024-01-24T09:00:00Z",
|
|
87
|
+
estimatedCompletion: "2024-03-01",
|
|
88
|
+
fee: 5e3,
|
|
89
|
+
applicantName: "Rajesh Kumar"
|
|
90
|
+
}
|
|
91
|
+
], n = [
|
|
92
|
+
{
|
|
93
|
+
id: "svc-1",
|
|
94
|
+
name: "Aadhaar Services",
|
|
95
|
+
description: "Update, download, and manage your Aadhaar card",
|
|
96
|
+
category: "civil",
|
|
97
|
+
department: "UIDAI",
|
|
98
|
+
processingTime: "24 hours",
|
|
99
|
+
fee: "Free",
|
|
100
|
+
documentsRequired: 2,
|
|
101
|
+
isOnline: !0,
|
|
102
|
+
popular: !0
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
id: "svc-2",
|
|
106
|
+
name: "Passport Services",
|
|
107
|
+
description: "Apply for new passport or renew existing one",
|
|
108
|
+
category: "civil",
|
|
109
|
+
department: "Ministry of External Affairs",
|
|
110
|
+
processingTime: "30 days",
|
|
111
|
+
fee: "1,500",
|
|
112
|
+
documentsRequired: 5,
|
|
113
|
+
isOnline: !0,
|
|
114
|
+
popular: !0
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
id: "svc-3",
|
|
118
|
+
name: "Income Certificate",
|
|
119
|
+
description: "Apply for income certificate online",
|
|
120
|
+
category: "revenue",
|
|
121
|
+
department: "Revenue Department",
|
|
122
|
+
processingTime: "7 days",
|
|
123
|
+
fee: "50",
|
|
124
|
+
documentsRequired: 3,
|
|
125
|
+
isOnline: !0,
|
|
126
|
+
popular: !1
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
id: "svc-4",
|
|
130
|
+
name: "Vehicle Registration",
|
|
131
|
+
description: "Register your new vehicle or transfer ownership",
|
|
132
|
+
category: "transport",
|
|
133
|
+
department: "Regional Transport Office",
|
|
134
|
+
processingTime: "15 days",
|
|
135
|
+
fee: "2,000",
|
|
136
|
+
documentsRequired: 6,
|
|
137
|
+
isOnline: !0,
|
|
138
|
+
popular: !0
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
id: "svc-5",
|
|
142
|
+
name: "Property Tax Payment",
|
|
143
|
+
description: "Pay your property tax online",
|
|
144
|
+
category: "revenue",
|
|
145
|
+
department: "Municipal Corporation",
|
|
146
|
+
processingTime: "Instant",
|
|
147
|
+
fee: "As applicable",
|
|
148
|
+
documentsRequired: 1,
|
|
149
|
+
isOnline: !0,
|
|
150
|
+
popular: !1
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
id: "svc-6",
|
|
154
|
+
name: "Birth Certificate",
|
|
155
|
+
description: "Apply for birth certificate",
|
|
156
|
+
category: "civil",
|
|
157
|
+
department: "Municipal Corporation",
|
|
158
|
+
processingTime: "10 days",
|
|
159
|
+
fee: "100",
|
|
160
|
+
documentsRequired: 3,
|
|
161
|
+
isOnline: !0,
|
|
162
|
+
popular: !1
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
id: "svc-7",
|
|
166
|
+
name: "Driving License",
|
|
167
|
+
description: "Apply for new or renew driving license",
|
|
168
|
+
category: "transport",
|
|
169
|
+
department: "Regional Transport Office",
|
|
170
|
+
processingTime: "20 days",
|
|
171
|
+
fee: "800",
|
|
172
|
+
documentsRequired: 4,
|
|
173
|
+
isOnline: !0,
|
|
174
|
+
popular: !0
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
id: "svc-8",
|
|
178
|
+
name: "Trade License",
|
|
179
|
+
description: "Apply for or renew trade/business license",
|
|
180
|
+
category: "business",
|
|
181
|
+
department: "Commerce Department",
|
|
182
|
+
processingTime: "15 days",
|
|
183
|
+
fee: "3,500",
|
|
184
|
+
documentsRequired: 7,
|
|
185
|
+
isOnline: !0,
|
|
186
|
+
popular: !1
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
id: "svc-9",
|
|
190
|
+
name: "Health Card",
|
|
191
|
+
description: "Apply for Ayushman Bharat health card",
|
|
192
|
+
category: "healthcare",
|
|
193
|
+
department: "Health Ministry",
|
|
194
|
+
processingTime: "14 days",
|
|
195
|
+
fee: "Free",
|
|
196
|
+
documentsRequired: 3,
|
|
197
|
+
isOnline: !0,
|
|
198
|
+
popular: !0
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
id: "svc-10",
|
|
202
|
+
name: "Scholarship Application",
|
|
203
|
+
description: "Apply for government scholarships for students",
|
|
204
|
+
category: "education",
|
|
205
|
+
department: "Education Ministry",
|
|
206
|
+
processingTime: "30 days",
|
|
207
|
+
fee: "Free",
|
|
208
|
+
documentsRequired: 5,
|
|
209
|
+
isOnline: !0,
|
|
210
|
+
popular: !1
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
id: "svc-11",
|
|
214
|
+
name: "Senior Citizen Pension",
|
|
215
|
+
description: "Apply for old-age pension scheme",
|
|
216
|
+
category: "social_welfare",
|
|
217
|
+
department: "Social Welfare Dept",
|
|
218
|
+
processingTime: "21 days",
|
|
219
|
+
fee: "Free",
|
|
220
|
+
documentsRequired: 4,
|
|
221
|
+
isOnline: !0,
|
|
222
|
+
popular: !1
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
id: "svc-12",
|
|
226
|
+
name: "Caste Certificate",
|
|
227
|
+
description: "Apply for caste / community certificate",
|
|
228
|
+
category: "civil",
|
|
229
|
+
department: "Revenue Department",
|
|
230
|
+
processingTime: "10 days",
|
|
231
|
+
fee: "25",
|
|
232
|
+
documentsRequired: 3,
|
|
233
|
+
isOnline: !0,
|
|
234
|
+
popular: !1
|
|
235
|
+
}
|
|
236
|
+
], r = [
|
|
237
|
+
{
|
|
238
|
+
id: "doc-1",
|
|
239
|
+
name: "Aadhaar Card.pdf",
|
|
240
|
+
type: "Identity Proof",
|
|
241
|
+
category: "identity",
|
|
242
|
+
size: "245 KB",
|
|
243
|
+
uploadedAt: "2024-01-15",
|
|
244
|
+
status: "verified"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
id: "doc-2",
|
|
248
|
+
name: "PAN Card.pdf",
|
|
249
|
+
type: "Tax Document",
|
|
250
|
+
category: "tax",
|
|
251
|
+
size: "189 KB",
|
|
252
|
+
uploadedAt: "2024-01-10",
|
|
253
|
+
status: "verified"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
id: "doc-3",
|
|
257
|
+
name: "Passport Photo.jpg",
|
|
258
|
+
type: "Photograph",
|
|
259
|
+
category: "photos",
|
|
260
|
+
size: "456 KB",
|
|
261
|
+
uploadedAt: "2024-01-18",
|
|
262
|
+
status: "pending"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
id: "doc-4",
|
|
266
|
+
name: "Address Proof.pdf",
|
|
267
|
+
type: "Address Document",
|
|
268
|
+
category: "address",
|
|
269
|
+
size: "312 KB",
|
|
270
|
+
uploadedAt: "2024-01-12",
|
|
271
|
+
status: "verified"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
id: "doc-5",
|
|
275
|
+
name: "Income Certificate.pdf",
|
|
276
|
+
type: "Income Proof",
|
|
277
|
+
category: "income",
|
|
278
|
+
size: "198 KB",
|
|
279
|
+
uploadedAt: "2024-01-20",
|
|
280
|
+
status: "pending"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
id: "doc-6",
|
|
284
|
+
name: "Birth Certificate.pdf",
|
|
285
|
+
type: "Certificate",
|
|
286
|
+
category: "certificates",
|
|
287
|
+
size: "278 KB",
|
|
288
|
+
uploadedAt: "2024-01-08",
|
|
289
|
+
status: "verified"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
id: "doc-7",
|
|
293
|
+
name: "Voter ID.pdf",
|
|
294
|
+
type: "Identity Proof",
|
|
295
|
+
category: "identity",
|
|
296
|
+
size: "320 KB",
|
|
297
|
+
uploadedAt: "2024-01-05",
|
|
298
|
+
status: "verified"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
id: "doc-8",
|
|
302
|
+
name: "Electricity Bill.pdf",
|
|
303
|
+
type: "Address Proof",
|
|
304
|
+
category: "address",
|
|
305
|
+
size: "150 KB",
|
|
306
|
+
uploadedAt: "2024-01-22",
|
|
307
|
+
status: "verified"
|
|
308
|
+
}
|
|
309
|
+
], i = [
|
|
310
|
+
{
|
|
311
|
+
id: "PAY-2024-001",
|
|
312
|
+
service: "Passport Renewal Fee",
|
|
313
|
+
amount: 1500,
|
|
314
|
+
status: "completed",
|
|
315
|
+
date: "2024-01-20",
|
|
316
|
+
method: "UPI",
|
|
317
|
+
transactionId: "TXN20240120150045"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
id: "PAY-2024-002",
|
|
321
|
+
service: "Birth Certificate Fee",
|
|
322
|
+
amount: 100,
|
|
323
|
+
status: "completed",
|
|
324
|
+
date: "2024-01-18",
|
|
325
|
+
method: "Credit Card",
|
|
326
|
+
transactionId: "TXN20240118093022"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
id: "PAY-2024-003",
|
|
330
|
+
service: "Property Tax",
|
|
331
|
+
amount: 5e3,
|
|
332
|
+
status: "pending",
|
|
333
|
+
date: "2024-01-22",
|
|
334
|
+
method: "Net Banking",
|
|
335
|
+
transactionId: "TXN20240122110015"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
id: "PAY-2024-004",
|
|
339
|
+
service: "Driving License Renewal",
|
|
340
|
+
amount: 800,
|
|
341
|
+
status: "completed",
|
|
342
|
+
date: "2024-01-15",
|
|
343
|
+
method: "Debit Card",
|
|
344
|
+
transactionId: "TXN20240115140030"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
id: "PAY-2024-005",
|
|
348
|
+
service: "Vehicle Registration",
|
|
349
|
+
amount: 2e3,
|
|
350
|
+
status: "failed",
|
|
351
|
+
date: "2024-01-10",
|
|
352
|
+
method: "UPI",
|
|
353
|
+
transactionId: "TXN20240110080045"
|
|
354
|
+
}
|
|
355
|
+
], a = [{
|
|
356
|
+
id: "PEND-001",
|
|
357
|
+
service: "Income Certificate Application",
|
|
358
|
+
amount: 50,
|
|
359
|
+
dueDate: "2024-01-25",
|
|
360
|
+
description: "Application processing fee"
|
|
361
|
+
}, {
|
|
362
|
+
id: "PEND-002",
|
|
363
|
+
service: "Trade License Renewal",
|
|
364
|
+
amount: 3500,
|
|
365
|
+
dueDate: "2024-01-28",
|
|
366
|
+
description: "Annual renewal fee"
|
|
367
|
+
}], o = [
|
|
368
|
+
{
|
|
369
|
+
id: "NOT-001",
|
|
370
|
+
title: "Application Approved",
|
|
371
|
+
message: "Your Passport Renewal application (APP-2024-001) has been approved and is ready for collection.",
|
|
372
|
+
type: "success",
|
|
373
|
+
category: "application",
|
|
374
|
+
time: "2 hours ago",
|
|
375
|
+
read: !1,
|
|
376
|
+
actionLabel: "View Application"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
id: "NOT-002",
|
|
380
|
+
title: "Payment Received",
|
|
381
|
+
message: "Payment of Rs.1,500 for Passport Renewal Fee has been received successfully.",
|
|
382
|
+
type: "success",
|
|
383
|
+
category: "payment",
|
|
384
|
+
time: "5 hours ago",
|
|
385
|
+
read: !1,
|
|
386
|
+
actionLabel: "View Receipt"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
id: "NOT-003",
|
|
390
|
+
title: "Document Verification Required",
|
|
391
|
+
message: "Additional document needed for your Birth Certificate application. Please upload address proof.",
|
|
392
|
+
type: "warning",
|
|
393
|
+
category: "document",
|
|
394
|
+
time: "1 day ago",
|
|
395
|
+
read: !1,
|
|
396
|
+
actionLabel: "Upload Document"
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
id: "NOT-004",
|
|
400
|
+
title: "Application Status Update",
|
|
401
|
+
message: "Your Driving License Renewal application is now under review by the department.",
|
|
402
|
+
type: "info",
|
|
403
|
+
category: "application",
|
|
404
|
+
time: "2 days ago",
|
|
405
|
+
read: !0,
|
|
406
|
+
actionLabel: "Track Status"
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
id: "NOT-005",
|
|
410
|
+
title: "Payment Failed",
|
|
411
|
+
message: "Payment of Rs.5,000 for Property Tax failed. Please retry with a different payment method.",
|
|
412
|
+
type: "error",
|
|
413
|
+
category: "payment",
|
|
414
|
+
time: "3 days ago",
|
|
415
|
+
read: !0,
|
|
416
|
+
actionLabel: "Retry Payment"
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
id: "NOT-006",
|
|
420
|
+
title: "Document Verified",
|
|
421
|
+
message: "Your Aadhaar Card document has been verified successfully.",
|
|
422
|
+
type: "success",
|
|
423
|
+
category: "document",
|
|
424
|
+
time: "4 days ago",
|
|
425
|
+
read: !0
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
id: "NOT-007",
|
|
429
|
+
title: "New Service Available",
|
|
430
|
+
message: "Online Voter ID registration is now available on the platform.",
|
|
431
|
+
type: "info",
|
|
432
|
+
category: "system",
|
|
433
|
+
time: "5 days ago",
|
|
434
|
+
read: !0,
|
|
435
|
+
actionLabel: "Explore Services"
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
id: "NOT-008",
|
|
439
|
+
title: "Appointment Scheduled",
|
|
440
|
+
message: "Your biometric appointment for passport application is scheduled for Jan 25, 2024 at 10:00 AM.",
|
|
441
|
+
type: "info",
|
|
442
|
+
category: "application",
|
|
443
|
+
time: "1 week ago",
|
|
444
|
+
read: !0
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
id: "NOT-009",
|
|
448
|
+
title: "System Maintenance",
|
|
449
|
+
message: "Scheduled maintenance on Jan 30, 2024 from 2:00 AM to 4:00 AM. Services may be temporarily unavailable.",
|
|
450
|
+
type: "warning",
|
|
451
|
+
category: "system",
|
|
452
|
+
time: "1 week ago",
|
|
453
|
+
read: !0
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
id: "NOT-010",
|
|
457
|
+
title: "Document Expiring Soon",
|
|
458
|
+
message: "Your PAN Card on file will expire in 30 days. Please update with a new document.",
|
|
459
|
+
type: "warning",
|
|
460
|
+
category: "document",
|
|
461
|
+
time: "2 weeks ago",
|
|
462
|
+
read: !0,
|
|
463
|
+
actionLabel: "Update Document"
|
|
464
|
+
}
|
|
465
|
+
], s = e((e) => ({
|
|
466
|
+
dashboardMetrics: [
|
|
467
|
+
{
|
|
468
|
+
label: "Active Applications",
|
|
469
|
+
value: "4",
|
|
470
|
+
trend: "+2 this week",
|
|
471
|
+
icon: "file-text"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
label: "Services Used",
|
|
475
|
+
value: "12",
|
|
476
|
+
trend: "+3 this month",
|
|
477
|
+
icon: "briefcase"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
label: "Documents Verified",
|
|
481
|
+
value: "6",
|
|
482
|
+
trend: "2 pending",
|
|
483
|
+
icon: "check-circle"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
label: "Total Payments",
|
|
487
|
+
value: "Rs.9,400",
|
|
488
|
+
trend: "+Rs.1,500 today",
|
|
489
|
+
icon: "credit-card"
|
|
490
|
+
}
|
|
491
|
+
],
|
|
492
|
+
applications: t,
|
|
493
|
+
selectedApplicationId: null,
|
|
494
|
+
applicationFilter: "all",
|
|
495
|
+
applicationSearch: "",
|
|
496
|
+
setApplicationFilter: (t) => e({ applicationFilter: t }),
|
|
497
|
+
setSelectedApplicationId: (t) => e({ selectedApplicationId: t }),
|
|
498
|
+
setApplicationSearch: (t) => e({ applicationSearch: t }),
|
|
499
|
+
services: n,
|
|
500
|
+
serviceSearch: "",
|
|
501
|
+
serviceCategory: "all",
|
|
502
|
+
setServiceSearch: (t) => e({ serviceSearch: t }),
|
|
503
|
+
setServiceCategory: (t) => e({ serviceCategory: t }),
|
|
504
|
+
documents: r,
|
|
505
|
+
documentSearch: "",
|
|
506
|
+
documentCategory: "all",
|
|
507
|
+
setDocumentSearch: (t) => e({ documentSearch: t }),
|
|
508
|
+
setDocumentCategory: (t) => e({ documentCategory: t }),
|
|
509
|
+
payments: i,
|
|
510
|
+
pendingPayments: a,
|
|
511
|
+
paymentSearch: "",
|
|
512
|
+
setPaymentSearch: (t) => e({ paymentSearch: t }),
|
|
513
|
+
notifications: o,
|
|
514
|
+
markNotificationRead: (t) => e((e) => ({ notifications: e.notifications.map((e) => e.id === t ? {
|
|
515
|
+
...e,
|
|
516
|
+
read: !0
|
|
517
|
+
} : e) })),
|
|
518
|
+
markAllNotificationsRead: () => e((e) => ({ notifications: e.notifications.map((e) => ({
|
|
519
|
+
...e,
|
|
520
|
+
read: !0
|
|
521
|
+
})) })),
|
|
522
|
+
deleteNotification: (t) => e((e) => ({ notifications: e.notifications.filter((e) => e.id !== t) })),
|
|
523
|
+
selectedView: "overview",
|
|
524
|
+
setSelectedView: (t) => e({ selectedView: t })
|
|
525
|
+
}));
|
|
526
|
+
//#endregion
|
|
527
|
+
export { s as useGovCitizenHubStore };
|
|
528
|
+
|
|
529
|
+
//# sourceMappingURL=govcitizenhubStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"govcitizenhubStore.js","names":[],"sources":["../../../src/govcitizenhub/store/govcitizenhubStore.ts"],"sourcesContent":["import { create } from 'zustand';\nimport type {\n DashboardMetric,\n GovApplication,\n GovDocument,\n GovNotification,\n GovPayment,\n GovService,\n PendingPayment,\n} from '../types';\n\n// Re-export domain types for backward compatibility\nexport type {\n ApplicationStatus,\n DashboardMetric,\n DocumentStatus,\n GovApplication,\n GovDocument,\n GovNotification,\n GovPayment,\n GovService,\n NotificationCategory,\n NotificationType,\n PaymentStatus,\n PendingPayment,\n ServiceCategory,\n} from '../types';\n\n// ---------- Store State ----------\n\ninterface GovCitizenHubState {\n // Dashboard\n dashboardMetrics: DashboardMetric[];\n\n // Applications\n applications: GovApplication[];\n selectedApplicationId: string | null;\n applicationFilter: string;\n applicationSearch: string;\n setApplicationFilter: (filter: string) => void;\n setSelectedApplicationId: (id: string | null) => void;\n setApplicationSearch: (query: string) => void;\n\n // Services\n services: GovService[];\n serviceSearch: string;\n serviceCategory: string;\n setServiceSearch: (query: string) => void;\n setServiceCategory: (category: string) => void;\n\n // Documents\n documents: GovDocument[];\n documentSearch: string;\n documentCategory: string;\n setDocumentSearch: (query: string) => void;\n setDocumentCategory: (category: string) => void;\n\n // Payments\n payments: GovPayment[];\n pendingPayments: PendingPayment[];\n paymentSearch: string;\n setPaymentSearch: (query: string) => void;\n\n // Notifications\n notifications: GovNotification[];\n markNotificationRead: (id: string) => void;\n markAllNotificationsRead: () => void;\n deleteNotification: (id: string) => void;\n\n // General\n selectedView: string;\n setSelectedView: (view: string) => void;\n}\n\n// ---------- Mock Data ----------\n\nconst mockApplications: GovApplication[] = [\n {\n id: 'APP-2024-001',\n applicationNumber: 'APP-2024-001',\n serviceId: 'svc-1',\n serviceName: 'Passport Renewal',\n department: 'Ministry of External Affairs',\n status: 'processing',\n priority: 'normal',\n submittedAt: '2024-01-20T10:30:00Z',\n updatedAt: '2024-01-22T14:00:00Z',\n estimatedCompletion: '2024-02-20',\n fee: 1500,\n applicantName: 'Rajesh Kumar',\n substatus: 'Biometric verification pending',\n },\n {\n id: 'APP-2024-002',\n applicationNumber: 'APP-2024-002',\n serviceId: 'svc-2',\n serviceName: 'Birth Certificate',\n department: 'Municipal Corporation',\n status: 'completed',\n priority: 'low',\n submittedAt: '2024-01-10T09:00:00Z',\n updatedAt: '2024-01-18T16:00:00Z',\n estimatedCompletion: '2024-01-20',\n fee: 100,\n applicantName: 'Rajesh Kumar',\n },\n {\n id: 'APP-2024-003',\n applicationNumber: 'APP-2024-003',\n serviceId: 'svc-3',\n serviceName: 'Driving License Renewal',\n department: 'Regional Transport Office',\n status: 'under_review',\n priority: 'high',\n submittedAt: '2024-01-22T08:00:00Z',\n updatedAt: '2024-01-23T10:00:00Z',\n estimatedCompletion: '2024-02-10',\n fee: 800,\n applicantName: 'Rajesh Kumar',\n substatus: 'Document verification in progress',\n },\n {\n id: 'APP-2024-004',\n applicationNumber: 'APP-2024-004',\n serviceId: 'svc-4',\n serviceName: 'Income Certificate',\n department: 'Revenue Department',\n status: 'submitted',\n priority: 'normal',\n submittedAt: '2024-01-23T12:00:00Z',\n updatedAt: '2024-01-23T12:00:00Z',\n estimatedCompletion: '2024-01-30',\n fee: 50,\n applicantName: 'Rajesh Kumar',\n },\n {\n id: 'APP-2024-005',\n applicationNumber: 'APP-2024-005',\n serviceId: 'svc-5',\n serviceName: 'Trade License',\n department: 'Commerce Department',\n status: 'rejected',\n priority: 'urgent',\n submittedAt: '2024-01-05T10:00:00Z',\n updatedAt: '2024-01-15T10:00:00Z',\n estimatedCompletion: '2024-01-20',\n fee: 3500,\n applicantName: 'Rajesh Kumar',\n substatus: 'Missing mandatory documents',\n },\n {\n id: 'APP-2024-006',\n applicationNumber: 'APP-2024-006',\n serviceId: 'svc-6',\n serviceName: 'Property Registration',\n department: 'Sub-Registrar Office',\n status: 'draft',\n priority: 'normal',\n submittedAt: '2024-01-24T09:00:00Z',\n updatedAt: '2024-01-24T09:00:00Z',\n estimatedCompletion: '2024-03-01',\n fee: 5000,\n applicantName: 'Rajesh Kumar',\n },\n];\n\nconst mockServices: GovService[] = [\n {\n id: 'svc-1',\n name: 'Aadhaar Services',\n description: 'Update, download, and manage your Aadhaar card',\n category: 'civil',\n department: 'UIDAI',\n processingTime: '24 hours',\n fee: 'Free',\n documentsRequired: 2,\n isOnline: true,\n popular: true,\n },\n {\n id: 'svc-2',\n name: 'Passport Services',\n description: 'Apply for new passport or renew existing one',\n category: 'civil',\n department: 'Ministry of External Affairs',\n processingTime: '30 days',\n fee: '1,500',\n documentsRequired: 5,\n isOnline: true,\n popular: true,\n },\n {\n id: 'svc-3',\n name: 'Income Certificate',\n description: 'Apply for income certificate online',\n category: 'revenue',\n department: 'Revenue Department',\n processingTime: '7 days',\n fee: '50',\n documentsRequired: 3,\n isOnline: true,\n popular: false,\n },\n {\n id: 'svc-4',\n name: 'Vehicle Registration',\n description: 'Register your new vehicle or transfer ownership',\n category: 'transport',\n department: 'Regional Transport Office',\n processingTime: '15 days',\n fee: '2,000',\n documentsRequired: 6,\n isOnline: true,\n popular: true,\n },\n {\n id: 'svc-5',\n name: 'Property Tax Payment',\n description: 'Pay your property tax online',\n category: 'revenue',\n department: 'Municipal Corporation',\n processingTime: 'Instant',\n fee: 'As applicable',\n documentsRequired: 1,\n isOnline: true,\n popular: false,\n },\n {\n id: 'svc-6',\n name: 'Birth Certificate',\n description: 'Apply for birth certificate',\n category: 'civil',\n department: 'Municipal Corporation',\n processingTime: '10 days',\n fee: '100',\n documentsRequired: 3,\n isOnline: true,\n popular: false,\n },\n {\n id: 'svc-7',\n name: 'Driving License',\n description: 'Apply for new or renew driving license',\n category: 'transport',\n department: 'Regional Transport Office',\n processingTime: '20 days',\n fee: '800',\n documentsRequired: 4,\n isOnline: true,\n popular: true,\n },\n {\n id: 'svc-8',\n name: 'Trade License',\n description: 'Apply for or renew trade/business license',\n category: 'business',\n department: 'Commerce Department',\n processingTime: '15 days',\n fee: '3,500',\n documentsRequired: 7,\n isOnline: true,\n popular: false,\n },\n {\n id: 'svc-9',\n name: 'Health Card',\n description: 'Apply for Ayushman Bharat health card',\n category: 'healthcare',\n department: 'Health Ministry',\n processingTime: '14 days',\n fee: 'Free',\n documentsRequired: 3,\n isOnline: true,\n popular: true,\n },\n {\n id: 'svc-10',\n name: 'Scholarship Application',\n description: 'Apply for government scholarships for students',\n category: 'education',\n department: 'Education Ministry',\n processingTime: '30 days',\n fee: 'Free',\n documentsRequired: 5,\n isOnline: true,\n popular: false,\n },\n {\n id: 'svc-11',\n name: 'Senior Citizen Pension',\n description: 'Apply for old-age pension scheme',\n category: 'social_welfare',\n department: 'Social Welfare Dept',\n processingTime: '21 days',\n fee: 'Free',\n documentsRequired: 4,\n isOnline: true,\n popular: false,\n },\n {\n id: 'svc-12',\n name: 'Caste Certificate',\n description: 'Apply for caste / community certificate',\n category: 'civil',\n department: 'Revenue Department',\n processingTime: '10 days',\n fee: '25',\n documentsRequired: 3,\n isOnline: true,\n popular: false,\n },\n];\n\nconst mockDocuments: GovDocument[] = [\n {\n id: 'doc-1',\n name: 'Aadhaar Card.pdf',\n type: 'Identity Proof',\n category: 'identity',\n size: '245 KB',\n uploadedAt: '2024-01-15',\n status: 'verified',\n },\n {\n id: 'doc-2',\n name: 'PAN Card.pdf',\n type: 'Tax Document',\n category: 'tax',\n size: '189 KB',\n uploadedAt: '2024-01-10',\n status: 'verified',\n },\n {\n id: 'doc-3',\n name: 'Passport Photo.jpg',\n type: 'Photograph',\n category: 'photos',\n size: '456 KB',\n uploadedAt: '2024-01-18',\n status: 'pending',\n },\n {\n id: 'doc-4',\n name: 'Address Proof.pdf',\n type: 'Address Document',\n category: 'address',\n size: '312 KB',\n uploadedAt: '2024-01-12',\n status: 'verified',\n },\n {\n id: 'doc-5',\n name: 'Income Certificate.pdf',\n type: 'Income Proof',\n category: 'income',\n size: '198 KB',\n uploadedAt: '2024-01-20',\n status: 'pending',\n },\n {\n id: 'doc-6',\n name: 'Birth Certificate.pdf',\n type: 'Certificate',\n category: 'certificates',\n size: '278 KB',\n uploadedAt: '2024-01-08',\n status: 'verified',\n },\n {\n id: 'doc-7',\n name: 'Voter ID.pdf',\n type: 'Identity Proof',\n category: 'identity',\n size: '320 KB',\n uploadedAt: '2024-01-05',\n status: 'verified',\n },\n {\n id: 'doc-8',\n name: 'Electricity Bill.pdf',\n type: 'Address Proof',\n category: 'address',\n size: '150 KB',\n uploadedAt: '2024-01-22',\n status: 'verified',\n },\n];\n\nconst mockPayments: GovPayment[] = [\n {\n id: 'PAY-2024-001',\n service: 'Passport Renewal Fee',\n amount: 1500,\n status: 'completed',\n date: '2024-01-20',\n method: 'UPI',\n transactionId: 'TXN20240120150045',\n },\n {\n id: 'PAY-2024-002',\n service: 'Birth Certificate Fee',\n amount: 100,\n status: 'completed',\n date: '2024-01-18',\n method: 'Credit Card',\n transactionId: 'TXN20240118093022',\n },\n {\n id: 'PAY-2024-003',\n service: 'Property Tax',\n amount: 5000,\n status: 'pending',\n date: '2024-01-22',\n method: 'Net Banking',\n transactionId: 'TXN20240122110015',\n },\n {\n id: 'PAY-2024-004',\n service: 'Driving License Renewal',\n amount: 800,\n status: 'completed',\n date: '2024-01-15',\n method: 'Debit Card',\n transactionId: 'TXN20240115140030',\n },\n {\n id: 'PAY-2024-005',\n service: 'Vehicle Registration',\n amount: 2000,\n status: 'failed',\n date: '2024-01-10',\n method: 'UPI',\n transactionId: 'TXN20240110080045',\n },\n];\n\nconst mockPendingPayments: PendingPayment[] = [\n {\n id: 'PEND-001',\n service: 'Income Certificate Application',\n amount: 50,\n dueDate: '2024-01-25',\n description: 'Application processing fee',\n },\n {\n id: 'PEND-002',\n service: 'Trade License Renewal',\n amount: 3500,\n dueDate: '2024-01-28',\n description: 'Annual renewal fee',\n },\n];\n\nconst mockNotifications: GovNotification[] = [\n {\n id: 'NOT-001',\n title: 'Application Approved',\n message:\n 'Your Passport Renewal application (APP-2024-001) has been approved and is ready for collection.',\n type: 'success',\n category: 'application',\n time: '2 hours ago',\n read: false,\n actionLabel: 'View Application',\n },\n {\n id: 'NOT-002',\n title: 'Payment Received',\n message: 'Payment of Rs.1,500 for Passport Renewal Fee has been received successfully.',\n type: 'success',\n category: 'payment',\n time: '5 hours ago',\n read: false,\n actionLabel: 'View Receipt',\n },\n {\n id: 'NOT-003',\n title: 'Document Verification Required',\n message:\n 'Additional document needed for your Birth Certificate application. Please upload address proof.',\n type: 'warning',\n category: 'document',\n time: '1 day ago',\n read: false,\n actionLabel: 'Upload Document',\n },\n {\n id: 'NOT-004',\n title: 'Application Status Update',\n message: 'Your Driving License Renewal application is now under review by the department.',\n type: 'info',\n category: 'application',\n time: '2 days ago',\n read: true,\n actionLabel: 'Track Status',\n },\n {\n id: 'NOT-005',\n title: 'Payment Failed',\n message:\n 'Payment of Rs.5,000 for Property Tax failed. Please retry with a different payment method.',\n type: 'error',\n category: 'payment',\n time: '3 days ago',\n read: true,\n actionLabel: 'Retry Payment',\n },\n {\n id: 'NOT-006',\n title: 'Document Verified',\n message: 'Your Aadhaar Card document has been verified successfully.',\n type: 'success',\n category: 'document',\n time: '4 days ago',\n read: true,\n },\n {\n id: 'NOT-007',\n title: 'New Service Available',\n message: 'Online Voter ID registration is now available on the platform.',\n type: 'info',\n category: 'system',\n time: '5 days ago',\n read: true,\n actionLabel: 'Explore Services',\n },\n {\n id: 'NOT-008',\n title: 'Appointment Scheduled',\n message:\n 'Your biometric appointment for passport application is scheduled for Jan 25, 2024 at 10:00 AM.',\n type: 'info',\n category: 'application',\n time: '1 week ago',\n read: true,\n },\n {\n id: 'NOT-009',\n title: 'System Maintenance',\n message:\n 'Scheduled maintenance on Jan 30, 2024 from 2:00 AM to 4:00 AM. Services may be temporarily unavailable.',\n type: 'warning',\n category: 'system',\n time: '1 week ago',\n read: true,\n },\n {\n id: 'NOT-010',\n title: 'Document Expiring Soon',\n message: 'Your PAN Card on file will expire in 30 days. Please update with a new document.',\n type: 'warning',\n category: 'document',\n time: '2 weeks ago',\n read: true,\n actionLabel: 'Update Document',\n },\n];\n\n// ---------- Create Store ----------\n\nexport const useGovCitizenHubStore = create<GovCitizenHubState>((set) => ({\n // Dashboard\n dashboardMetrics: [\n { label: 'Active Applications', value: '4', trend: '+2 this week', icon: 'file-text' },\n { label: 'Services Used', value: '12', trend: '+3 this month', icon: 'briefcase' },\n { label: 'Documents Verified', value: '6', trend: '2 pending', icon: 'check-circle' },\n { label: 'Total Payments', value: 'Rs.9,400', trend: '+Rs.1,500 today', icon: 'credit-card' },\n ],\n\n // Applications\n applications: mockApplications,\n selectedApplicationId: null,\n applicationFilter: 'all',\n applicationSearch: '',\n setApplicationFilter: (filter) => set({ applicationFilter: filter }),\n setSelectedApplicationId: (id) => set({ selectedApplicationId: id }),\n setApplicationSearch: (query) => set({ applicationSearch: query }),\n\n // Services\n services: mockServices,\n serviceSearch: '',\n serviceCategory: 'all',\n setServiceSearch: (query) => set({ serviceSearch: query }),\n setServiceCategory: (category) => set({ serviceCategory: category }),\n\n // Documents\n documents: mockDocuments,\n documentSearch: '',\n documentCategory: 'all',\n setDocumentSearch: (query) => set({ documentSearch: query }),\n setDocumentCategory: (category) => set({ documentCategory: category }),\n\n // Payments\n payments: mockPayments,\n pendingPayments: mockPendingPayments,\n paymentSearch: '',\n setPaymentSearch: (query) => set({ paymentSearch: query }),\n\n // Notifications\n notifications: mockNotifications,\n markNotificationRead: (id) =>\n set((state) => ({\n notifications: state.notifications.map((n) => (n.id === id ? { ...n, read: true } : n)),\n })),\n markAllNotificationsRead: () =>\n set((state) => ({\n notifications: state.notifications.map((n) => ({ ...n, read: true })),\n })),\n deleteNotification: (id) =>\n set((state) => ({\n notifications: state.notifications.filter((n) => n.id !== id),\n })),\n\n // General\n selectedView: 'overview',\n setSelectedView: (view) => set({ selectedView: view }),\n}));\n"],"mappings":";;AA4EA,IAAM,IAAqC;CACzC;EACE,IAAI;EACJ,mBAAmB;EACnB,WAAW;EACX,aAAa;EACb,YAAY;EACZ,QAAQ;EACR,UAAU;EACV,aAAa;EACb,WAAW;EACX,qBAAqB;EACrB,KAAK;EACL,eAAe;EACf,WAAW;EACZ;CACD;EACE,IAAI;EACJ,mBAAmB;EACnB,WAAW;EACX,aAAa;EACb,YAAY;EACZ,QAAQ;EACR,UAAU;EACV,aAAa;EACb,WAAW;EACX,qBAAqB;EACrB,KAAK;EACL,eAAe;EAChB;CACD;EACE,IAAI;EACJ,mBAAmB;EACnB,WAAW;EACX,aAAa;EACb,YAAY;EACZ,QAAQ;EACR,UAAU;EACV,aAAa;EACb,WAAW;EACX,qBAAqB;EACrB,KAAK;EACL,eAAe;EACf,WAAW;EACZ;CACD;EACE,IAAI;EACJ,mBAAmB;EACnB,WAAW;EACX,aAAa;EACb,YAAY;EACZ,QAAQ;EACR,UAAU;EACV,aAAa;EACb,WAAW;EACX,qBAAqB;EACrB,KAAK;EACL,eAAe;EAChB;CACD;EACE,IAAI;EACJ,mBAAmB;EACnB,WAAW;EACX,aAAa;EACb,YAAY;EACZ,QAAQ;EACR,UAAU;EACV,aAAa;EACb,WAAW;EACX,qBAAqB;EACrB,KAAK;EACL,eAAe;EACf,WAAW;EACZ;CACD;EACE,IAAI;EACJ,mBAAmB;EACnB,WAAW;EACX,aAAa;EACb,YAAY;EACZ,QAAQ;EACR,UAAU;EACV,aAAa;EACb,WAAW;EACX,qBAAqB;EACrB,KAAK;EACL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ACL,gCACE,GAAK,OAAW,EACd,eAAe,EAAM,cAAc,KAAK,OAAO;EAAE,GAAG;EAAG,MAAM;EAAM,EAAE,EACtE,EAAE;CACL,qBAAqB,MACnB,GAAK,OAAW,EACd,eAAe,EAAM,cAAc,QAAQ,MAAM,EAAE,OAAO,EAAG,EAC9D,EAAE;CAGL,cAAc;CACd,kBAAkB,MAAS,EAAI,EAAE,cAAc,GAAM,CAAC;CACvD,EAAE"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface NavItem {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
path: string;
|
|
7
|
+
icon?: React.ReactNode;
|
|
8
|
+
order?: number;
|
|
9
|
+
group?: string;
|
|
10
|
+
children?: NavItem[];
|
|
11
|
+
}
|
|
12
|
+
export interface FooterItem {
|
|
13
|
+
id: string;
|
|
14
|
+
label: string;
|
|
15
|
+
type: 'status' | 'action';
|
|
16
|
+
order?: number;
|
|
17
|
+
section: 'left' | 'center' | 'right';
|
|
18
|
+
}
|
|
19
|
+
export interface GovCitizenHubRootProps {
|
|
20
|
+
basePath?: string;
|
|
21
|
+
workspaceId?: string;
|
|
22
|
+
tenantId?: string;
|
|
23
|
+
apiGatewayUrl?: string;
|
|
24
|
+
authToken?: string;
|
|
25
|
+
navigate?: (path: string) => void;
|
|
26
|
+
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
|
+
} | null;
|
|
36
|
+
registerNavItems?: (items: NavItem | NavItem[]) => () => void;
|
|
37
|
+
registerFooterItems?: (items: FooterItem | FooterItem[]) => () => void;
|
|
38
|
+
}
|
|
39
|
+
export type ApplicationStatus = 'draft' | 'submitted' | 'under_review' | 'processing' | 'completed' | 'rejected';
|
|
40
|
+
export type PaymentStatus = 'pending' | 'completed' | 'failed' | 'refunded';
|
|
41
|
+
export type DocumentStatus = 'pending' | 'verified' | 'rejected' | 'expired';
|
|
42
|
+
export type NotificationType = 'success' | 'warning' | 'info' | 'error';
|
|
43
|
+
export type NotificationCategory = 'application' | 'payment' | 'document' | 'system';
|
|
44
|
+
export type ServiceCategory = 'civil' | 'transport' | 'revenue' | 'social_welfare' | 'business' | 'healthcare' | 'education';
|
|
45
|
+
export interface GovApplication {
|
|
46
|
+
id: string;
|
|
47
|
+
applicationNumber: string;
|
|
48
|
+
serviceId: string;
|
|
49
|
+
serviceName: string;
|
|
50
|
+
department: string;
|
|
51
|
+
status: ApplicationStatus;
|
|
52
|
+
priority: 'low' | 'normal' | 'high' | 'urgent';
|
|
53
|
+
submittedAt: string;
|
|
54
|
+
updatedAt: string;
|
|
55
|
+
estimatedCompletion: string;
|
|
56
|
+
fee: number;
|
|
57
|
+
applicantName: string;
|
|
58
|
+
substatus?: string;
|
|
59
|
+
}
|
|
60
|
+
export interface GovService {
|
|
61
|
+
id: string;
|
|
62
|
+
name: string;
|
|
63
|
+
description: string;
|
|
64
|
+
category: ServiceCategory;
|
|
65
|
+
department: string;
|
|
66
|
+
processingTime: string;
|
|
67
|
+
fee: string;
|
|
68
|
+
documentsRequired: number;
|
|
69
|
+
isOnline: boolean;
|
|
70
|
+
popular: boolean;
|
|
71
|
+
}
|
|
72
|
+
export interface GovDocument {
|
|
73
|
+
id: string;
|
|
74
|
+
name: string;
|
|
75
|
+
type: string;
|
|
76
|
+
category: 'identity' | 'address' | 'certificates' | 'photos' | 'tax' | 'income';
|
|
77
|
+
size: string;
|
|
78
|
+
uploadedAt: string;
|
|
79
|
+
status: DocumentStatus;
|
|
80
|
+
}
|
|
81
|
+
export interface GovPayment {
|
|
82
|
+
id: string;
|
|
83
|
+
service: string;
|
|
84
|
+
amount: number;
|
|
85
|
+
status: PaymentStatus;
|
|
86
|
+
date: string;
|
|
87
|
+
method: string;
|
|
88
|
+
transactionId: string;
|
|
89
|
+
}
|
|
90
|
+
export interface PendingPayment {
|
|
91
|
+
id: string;
|
|
92
|
+
service: string;
|
|
93
|
+
amount: number;
|
|
94
|
+
dueDate: string;
|
|
95
|
+
description: string;
|
|
96
|
+
}
|
|
97
|
+
export interface GovNotification {
|
|
98
|
+
id: string;
|
|
99
|
+
title: string;
|
|
100
|
+
message: string;
|
|
101
|
+
type: NotificationType;
|
|
102
|
+
category: NotificationCategory;
|
|
103
|
+
time: string;
|
|
104
|
+
read: boolean;
|
|
105
|
+
actionLabel?: string;
|
|
106
|
+
}
|
|
107
|
+
export interface DashboardMetric {
|
|
108
|
+
label: string;
|
|
109
|
+
value: string;
|
|
110
|
+
trend: string;
|
|
111
|
+
icon: string;
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=index.d.ts.map
|