@burdenoff/sdk-libs 2026.627.3 → 2026.627.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,349 @@
1
+ import { J as Json, S as SdkModule } from '../../module-JDbvil5h.cjs';
2
+ import 'graphql-request';
3
+
4
+ type GovApplicationStatus = 'APPROVED' | 'DRAFT' | 'INFO_REQUESTED' | 'IN_REVIEW' | 'REJECTED' | 'SUBMITTED' | 'WITHDRAWN';
5
+ type GovCaseNoteType = 'CITIZEN_MESSAGE' | 'DECISION' | 'INFO_REQUEST' | 'INTERNAL';
6
+ type GovCasePriority = 'HIGH' | 'LOW' | 'NORMAL' | 'URGENT';
7
+ type GovDocumentStatus = 'ACCEPTED' | 'PENDING' | 'REJECTED';
8
+ type GovFeeType = 'FIXED' | 'FREE' | 'VARIABLE';
9
+ type GovGrievanceStatus = 'ACKNOWLEDGED' | 'CLOSED' | 'IN_PROGRESS' | 'OPEN' | 'REJECTED' | 'RESOLVED';
10
+ type GovPaymentStatus = 'FAILED' | 'PAID' | 'PENDING' | 'REFUNDED';
11
+ type GovPermitStatus = 'ACTIVE' | 'EXPIRED' | 'ISSUED' | 'REVOKED';
12
+ type GovServiceCategory = 'CERTIFICATES' | 'EDUCATION' | 'GRIEVANCES' | 'HEALTH' | 'LICENCES_AND_PERMITS' | 'OTHER' | 'SOCIAL_WELFARE' | 'TAXES_AND_PAYMENTS' | 'UTILITIES';
13
+ type GovServiceStatus = 'DRAFT' | 'PUBLISHED' | 'RETIRED' | 'SUSPENDED';
14
+ interface GovFileRef {
15
+ id: string;
16
+ }
17
+ interface GovAgency {
18
+ id: string;
19
+ name: string;
20
+ code?: string | null;
21
+ description?: string | null;
22
+ jurisdiction?: string | null;
23
+ contactEmail?: string | null;
24
+ contactPhone?: string | null;
25
+ isActive: boolean;
26
+ tags: string[];
27
+ workspaceId: string;
28
+ createdAt: string;
29
+ updatedAt: string;
30
+ services?: GovService[];
31
+ }
32
+ interface GovService {
33
+ id: string;
34
+ agencyId: string;
35
+ name: string;
36
+ slug: string;
37
+ category: GovServiceCategory;
38
+ status: GovServiceStatus;
39
+ summary?: string | null;
40
+ eligibility?: string | null;
41
+ feeType: GovFeeType;
42
+ feeAmount: number;
43
+ currency: string;
44
+ slaDays: number;
45
+ requiredDocuments: string[];
46
+ formSchema?: Json | null;
47
+ publishedAt?: string | null;
48
+ tags: string[];
49
+ workspaceId: string;
50
+ createdAt: string;
51
+ updatedAt: string;
52
+ agency?: GovAgency | null;
53
+ }
54
+ interface GovDocument {
55
+ id: string;
56
+ applicationId: string;
57
+ name: string;
58
+ requirement?: string | null;
59
+ status: GovDocumentStatus;
60
+ rejectionReason?: string | null;
61
+ file?: GovFileRef | null;
62
+ workspaceId: string;
63
+ createdAt: string;
64
+ updatedAt: string;
65
+ }
66
+ interface GovCaseNote {
67
+ id: string;
68
+ applicationId: string;
69
+ authorId: string;
70
+ type: GovCaseNoteType;
71
+ body: string;
72
+ workspaceId: string;
73
+ createdAt: string;
74
+ updatedAt: string;
75
+ }
76
+ interface GovPermit {
77
+ id: string;
78
+ title: string;
79
+ serviceId: string;
80
+ holderId: string;
81
+ applicationId?: string | null;
82
+ status: GovPermitStatus;
83
+ verificationCode: string;
84
+ issuedAt: string;
85
+ expiresAt?: string | null;
86
+ revokedAt?: string | null;
87
+ revokeReason?: string | null;
88
+ file?: GovFileRef | null;
89
+ workspaceId: string;
90
+ createdAt: string;
91
+ updatedAt: string;
92
+ }
93
+ interface GovApplication {
94
+ id: string;
95
+ reference: string;
96
+ serviceId: string;
97
+ citizenId: string;
98
+ assignedToId?: string | null;
99
+ status: GovApplicationStatus;
100
+ priority: GovCasePriority;
101
+ formData?: Json | null;
102
+ submittedAt?: string | null;
103
+ decidedAt?: string | null;
104
+ decisionReason?: string | null;
105
+ dueDate?: string | null;
106
+ tags: string[];
107
+ workspaceId: string;
108
+ createdAt: string;
109
+ updatedAt: string;
110
+ documents?: GovDocument[];
111
+ notes?: GovCaseNote[];
112
+ permits?: GovPermit[];
113
+ }
114
+ interface GovGrievance {
115
+ id: string;
116
+ title: string;
117
+ description: string;
118
+ category: GovServiceCategory;
119
+ status: GovGrievanceStatus;
120
+ priority: GovCasePriority;
121
+ reporterId: string;
122
+ assignedToId?: string | null;
123
+ agencyId?: string | null;
124
+ location?: string | null;
125
+ latitude?: number | null;
126
+ longitude?: number | null;
127
+ photoFileIds: string[];
128
+ resolution?: string | null;
129
+ resolvedAt?: string | null;
130
+ tags: string[];
131
+ workspaceId: string;
132
+ createdAt: string;
133
+ updatedAt: string;
134
+ }
135
+ interface GovPayment {
136
+ id: string;
137
+ applicationId?: string | null;
138
+ payerId: string;
139
+ amount: number;
140
+ currency: string;
141
+ status: GovPaymentStatus;
142
+ providerRef?: string | null;
143
+ receiptNumber?: string | null;
144
+ lineItems?: Json | null;
145
+ paidAt?: string | null;
146
+ refundedAt?: string | null;
147
+ workspaceId: string;
148
+ createdAt: string;
149
+ updatedAt: string;
150
+ }
151
+ interface GovPageInfo {
152
+ cursor?: string | null;
153
+ hasMore: boolean;
154
+ }
155
+ interface GovApplicationConnection {
156
+ items: GovApplication[];
157
+ pageInfo: GovPageInfo;
158
+ }
159
+ interface GovServiceConnection {
160
+ items: GovService[];
161
+ pageInfo: GovPageInfo;
162
+ }
163
+ interface GovGrievanceConnection {
164
+ items: GovGrievance[];
165
+ pageInfo: GovPageInfo;
166
+ }
167
+ interface GovPaymentConnection {
168
+ items: GovPayment[];
169
+ pageInfo: GovPageInfo;
170
+ }
171
+ interface GovPaginationInput {
172
+ cursor?: string;
173
+ limit?: number;
174
+ offset?: number;
175
+ }
176
+ interface GovCreateAgencyInput {
177
+ name: string;
178
+ code?: string;
179
+ description?: string;
180
+ jurisdiction?: string;
181
+ contactEmail?: string;
182
+ contactPhone?: string;
183
+ tags?: string[];
184
+ }
185
+ interface GovUpdateAgencyInput {
186
+ name?: string;
187
+ code?: string;
188
+ description?: string;
189
+ jurisdiction?: string;
190
+ contactEmail?: string;
191
+ contactPhone?: string;
192
+ isActive?: boolean;
193
+ tags?: string[];
194
+ }
195
+ interface GovCreateServiceInput {
196
+ agencyId: string;
197
+ name: string;
198
+ slug: string;
199
+ category?: GovServiceCategory;
200
+ summary?: string;
201
+ eligibility?: string;
202
+ feeType?: GovFeeType;
203
+ feeAmount?: number;
204
+ currency?: string;
205
+ slaDays?: number;
206
+ requiredDocuments?: string[];
207
+ formSchema?: Json;
208
+ tags?: string[];
209
+ }
210
+ interface GovUpdateServiceInput {
211
+ name?: string;
212
+ category?: GovServiceCategory;
213
+ summary?: string;
214
+ eligibility?: string;
215
+ feeType?: GovFeeType;
216
+ feeAmount?: number;
217
+ currency?: string;
218
+ slaDays?: number;
219
+ requiredDocuments?: string[];
220
+ formSchema?: Json;
221
+ tags?: string[];
222
+ }
223
+ interface GovCreateApplicationInput {
224
+ serviceId: string;
225
+ reference?: string;
226
+ priority?: GovCasePriority;
227
+ formData?: Json;
228
+ tags?: string[];
229
+ }
230
+ interface GovUpdateApplicationInput {
231
+ assignedToId?: string;
232
+ priority?: GovCasePriority;
233
+ formData?: Json;
234
+ tags?: string[];
235
+ }
236
+ interface GovAddDocumentInput {
237
+ applicationId: string;
238
+ name: string;
239
+ fileId?: string;
240
+ requirement?: string;
241
+ }
242
+ interface GovAddCaseNoteInput {
243
+ applicationId: string;
244
+ body: string;
245
+ type?: GovCaseNoteType;
246
+ }
247
+ interface GovReportGrievanceInput {
248
+ title: string;
249
+ description: string;
250
+ agencyId?: string;
251
+ category?: GovServiceCategory;
252
+ location?: string;
253
+ latitude?: number;
254
+ longitude?: number;
255
+ photoFileIds?: string[];
256
+ priority?: GovCasePriority;
257
+ tags?: string[];
258
+ }
259
+ interface GovUpdateGrievanceInput {
260
+ agencyId?: string;
261
+ assignedToId?: string;
262
+ location?: string;
263
+ priority?: GovCasePriority;
264
+ tags?: string[];
265
+ }
266
+ interface GovIssuePermitInput {
267
+ holderId: string;
268
+ serviceId: string;
269
+ title: string;
270
+ verificationCode: string;
271
+ applicationId?: string;
272
+ expiresAt?: string;
273
+ fileId?: string;
274
+ }
275
+ interface GovCreatePaymentInput {
276
+ amount: number;
277
+ applicationId?: string;
278
+ currency?: string;
279
+ lineItems?: Json;
280
+ providerRef?: string;
281
+ }
282
+
283
+ interface GovAgenciesApi {
284
+ get(id: string): Promise<GovAgency | null>;
285
+ list(isActive?: boolean, pagination?: GovPaginationInput): Promise<GovAgency[]>;
286
+ create(input: GovCreateAgencyInput): Promise<GovAgency>;
287
+ update(id: string, input: GovUpdateAgencyInput): Promise<GovAgency>;
288
+ archive(id: string): Promise<boolean>;
289
+ }
290
+ interface GovServicesApi {
291
+ get(id: string): Promise<GovService | null>;
292
+ list(agencyId?: string, category?: GovServiceCategory, pagination?: GovPaginationInput, status?: GovServiceStatus): Promise<GovServiceConnection>;
293
+ create(input: GovCreateServiceInput): Promise<GovService>;
294
+ update(id: string, input: GovUpdateServiceInput): Promise<GovService>;
295
+ transition(id: string, status: GovServiceStatus): Promise<GovService>;
296
+ }
297
+ interface GovApplicationsApi {
298
+ get(id: string): Promise<GovApplication | null>;
299
+ list(assignedToId?: string, citizenId?: string, pagination?: GovPaginationInput, serviceId?: string, status?: GovApplicationStatus): Promise<GovApplicationConnection>;
300
+ create(input: GovCreateApplicationInput): Promise<GovApplication>;
301
+ update(id: string, input: GovUpdateApplicationInput): Promise<GovApplication>;
302
+ submit(id: string): Promise<GovApplication>;
303
+ transition(id: string, status: GovApplicationStatus, reason?: string): Promise<GovApplication>;
304
+ }
305
+ interface GovDocumentsApi {
306
+ add(input: GovAddDocumentInput): Promise<GovDocument>;
307
+ review(id: string, status: GovDocumentStatus, rejectionReason?: string): Promise<GovDocument>;
308
+ }
309
+ interface GovCaseNotesApi {
310
+ add(input: GovAddCaseNoteInput): Promise<GovCaseNote>;
311
+ }
312
+ interface GovGrievancesApi {
313
+ get(id: string): Promise<GovGrievance | null>;
314
+ list(agencyId?: string, pagination?: GovPaginationInput, reporterId?: string, status?: GovGrievanceStatus): Promise<GovGrievanceConnection>;
315
+ report(input: GovReportGrievanceInput): Promise<GovGrievance>;
316
+ update(id: string, input: GovUpdateGrievanceInput): Promise<GovGrievance>;
317
+ transition(id: string, status: GovGrievanceStatus, resolution?: string): Promise<GovGrievance>;
318
+ }
319
+ interface GovPermitsApi {
320
+ list(holderId?: string, serviceId?: string, status?: GovPermitStatus): Promise<GovPermit[]>;
321
+ issue(input: GovIssuePermitInput): Promise<GovPermit>;
322
+ revoke(id: string, reason?: string): Promise<GovPermit>;
323
+ verify(verificationCode: string): Promise<GovPermit | null>;
324
+ }
325
+ interface GovPaymentsApi {
326
+ get(id: string): Promise<GovPayment | null>;
327
+ list(applicationId?: string, pagination?: GovPaginationInput, payerId?: string, status?: GovPaymentStatus): Promise<GovPaymentConnection>;
328
+ create(input: GovCreatePaymentInput): Promise<GovPayment>;
329
+ markPaid(id: string, providerRef?: string): Promise<GovPayment>;
330
+ refund(id: string): Promise<GovPayment>;
331
+ }
332
+ interface GovSystemApi {
333
+ health(): Promise<string>;
334
+ }
335
+ interface GovcitizenhubApi {
336
+ agencies: GovAgenciesApi;
337
+ services: GovServicesApi;
338
+ applications: GovApplicationsApi;
339
+ documents: GovDocumentsApi;
340
+ caseNotes: GovCaseNotesApi;
341
+ grievances: GovGrievancesApi;
342
+ permits: GovPermitsApi;
343
+ payments: GovPaymentsApi;
344
+ system: GovSystemApi;
345
+ }
346
+
347
+ declare const govcitizenhubModule: SdkModule<GovcitizenhubApi>;
348
+
349
+ export { type GovAddCaseNoteInput, type GovAddDocumentInput, type GovAgenciesApi, type GovAgency, type GovApplication, type GovApplicationConnection, type GovApplicationStatus, type GovApplicationsApi, type GovCaseNote, type GovCaseNoteType, type GovCaseNotesApi, type GovCasePriority, type GovCreateAgencyInput, type GovCreateApplicationInput, type GovCreatePaymentInput, type GovCreateServiceInput, type GovDocument, type GovDocumentStatus, type GovDocumentsApi, type GovFeeType, type GovFileRef, type GovGrievance, type GovGrievanceConnection, type GovGrievanceStatus, type GovGrievancesApi, type GovIssuePermitInput, type GovPageInfo, type GovPaginationInput, type GovPayment, type GovPaymentConnection, type GovPaymentStatus, type GovPaymentsApi, type GovPermit, type GovPermitStatus, type GovPermitsApi, type GovReportGrievanceInput, type GovService, type GovServiceCategory, type GovServiceConnection, type GovServiceStatus, type GovServicesApi, type GovSystemApi, type GovUpdateAgencyInput, type GovUpdateApplicationInput, type GovUpdateGrievanceInput, type GovUpdateServiceInput, type GovcitizenhubApi, govcitizenhubModule as default };
@@ -0,0 +1,349 @@
1
+ import { J as Json, S as SdkModule } from '../../module-JDbvil5h.js';
2
+ import 'graphql-request';
3
+
4
+ type GovApplicationStatus = 'APPROVED' | 'DRAFT' | 'INFO_REQUESTED' | 'IN_REVIEW' | 'REJECTED' | 'SUBMITTED' | 'WITHDRAWN';
5
+ type GovCaseNoteType = 'CITIZEN_MESSAGE' | 'DECISION' | 'INFO_REQUEST' | 'INTERNAL';
6
+ type GovCasePriority = 'HIGH' | 'LOW' | 'NORMAL' | 'URGENT';
7
+ type GovDocumentStatus = 'ACCEPTED' | 'PENDING' | 'REJECTED';
8
+ type GovFeeType = 'FIXED' | 'FREE' | 'VARIABLE';
9
+ type GovGrievanceStatus = 'ACKNOWLEDGED' | 'CLOSED' | 'IN_PROGRESS' | 'OPEN' | 'REJECTED' | 'RESOLVED';
10
+ type GovPaymentStatus = 'FAILED' | 'PAID' | 'PENDING' | 'REFUNDED';
11
+ type GovPermitStatus = 'ACTIVE' | 'EXPIRED' | 'ISSUED' | 'REVOKED';
12
+ type GovServiceCategory = 'CERTIFICATES' | 'EDUCATION' | 'GRIEVANCES' | 'HEALTH' | 'LICENCES_AND_PERMITS' | 'OTHER' | 'SOCIAL_WELFARE' | 'TAXES_AND_PAYMENTS' | 'UTILITIES';
13
+ type GovServiceStatus = 'DRAFT' | 'PUBLISHED' | 'RETIRED' | 'SUSPENDED';
14
+ interface GovFileRef {
15
+ id: string;
16
+ }
17
+ interface GovAgency {
18
+ id: string;
19
+ name: string;
20
+ code?: string | null;
21
+ description?: string | null;
22
+ jurisdiction?: string | null;
23
+ contactEmail?: string | null;
24
+ contactPhone?: string | null;
25
+ isActive: boolean;
26
+ tags: string[];
27
+ workspaceId: string;
28
+ createdAt: string;
29
+ updatedAt: string;
30
+ services?: GovService[];
31
+ }
32
+ interface GovService {
33
+ id: string;
34
+ agencyId: string;
35
+ name: string;
36
+ slug: string;
37
+ category: GovServiceCategory;
38
+ status: GovServiceStatus;
39
+ summary?: string | null;
40
+ eligibility?: string | null;
41
+ feeType: GovFeeType;
42
+ feeAmount: number;
43
+ currency: string;
44
+ slaDays: number;
45
+ requiredDocuments: string[];
46
+ formSchema?: Json | null;
47
+ publishedAt?: string | null;
48
+ tags: string[];
49
+ workspaceId: string;
50
+ createdAt: string;
51
+ updatedAt: string;
52
+ agency?: GovAgency | null;
53
+ }
54
+ interface GovDocument {
55
+ id: string;
56
+ applicationId: string;
57
+ name: string;
58
+ requirement?: string | null;
59
+ status: GovDocumentStatus;
60
+ rejectionReason?: string | null;
61
+ file?: GovFileRef | null;
62
+ workspaceId: string;
63
+ createdAt: string;
64
+ updatedAt: string;
65
+ }
66
+ interface GovCaseNote {
67
+ id: string;
68
+ applicationId: string;
69
+ authorId: string;
70
+ type: GovCaseNoteType;
71
+ body: string;
72
+ workspaceId: string;
73
+ createdAt: string;
74
+ updatedAt: string;
75
+ }
76
+ interface GovPermit {
77
+ id: string;
78
+ title: string;
79
+ serviceId: string;
80
+ holderId: string;
81
+ applicationId?: string | null;
82
+ status: GovPermitStatus;
83
+ verificationCode: string;
84
+ issuedAt: string;
85
+ expiresAt?: string | null;
86
+ revokedAt?: string | null;
87
+ revokeReason?: string | null;
88
+ file?: GovFileRef | null;
89
+ workspaceId: string;
90
+ createdAt: string;
91
+ updatedAt: string;
92
+ }
93
+ interface GovApplication {
94
+ id: string;
95
+ reference: string;
96
+ serviceId: string;
97
+ citizenId: string;
98
+ assignedToId?: string | null;
99
+ status: GovApplicationStatus;
100
+ priority: GovCasePriority;
101
+ formData?: Json | null;
102
+ submittedAt?: string | null;
103
+ decidedAt?: string | null;
104
+ decisionReason?: string | null;
105
+ dueDate?: string | null;
106
+ tags: string[];
107
+ workspaceId: string;
108
+ createdAt: string;
109
+ updatedAt: string;
110
+ documents?: GovDocument[];
111
+ notes?: GovCaseNote[];
112
+ permits?: GovPermit[];
113
+ }
114
+ interface GovGrievance {
115
+ id: string;
116
+ title: string;
117
+ description: string;
118
+ category: GovServiceCategory;
119
+ status: GovGrievanceStatus;
120
+ priority: GovCasePriority;
121
+ reporterId: string;
122
+ assignedToId?: string | null;
123
+ agencyId?: string | null;
124
+ location?: string | null;
125
+ latitude?: number | null;
126
+ longitude?: number | null;
127
+ photoFileIds: string[];
128
+ resolution?: string | null;
129
+ resolvedAt?: string | null;
130
+ tags: string[];
131
+ workspaceId: string;
132
+ createdAt: string;
133
+ updatedAt: string;
134
+ }
135
+ interface GovPayment {
136
+ id: string;
137
+ applicationId?: string | null;
138
+ payerId: string;
139
+ amount: number;
140
+ currency: string;
141
+ status: GovPaymentStatus;
142
+ providerRef?: string | null;
143
+ receiptNumber?: string | null;
144
+ lineItems?: Json | null;
145
+ paidAt?: string | null;
146
+ refundedAt?: string | null;
147
+ workspaceId: string;
148
+ createdAt: string;
149
+ updatedAt: string;
150
+ }
151
+ interface GovPageInfo {
152
+ cursor?: string | null;
153
+ hasMore: boolean;
154
+ }
155
+ interface GovApplicationConnection {
156
+ items: GovApplication[];
157
+ pageInfo: GovPageInfo;
158
+ }
159
+ interface GovServiceConnection {
160
+ items: GovService[];
161
+ pageInfo: GovPageInfo;
162
+ }
163
+ interface GovGrievanceConnection {
164
+ items: GovGrievance[];
165
+ pageInfo: GovPageInfo;
166
+ }
167
+ interface GovPaymentConnection {
168
+ items: GovPayment[];
169
+ pageInfo: GovPageInfo;
170
+ }
171
+ interface GovPaginationInput {
172
+ cursor?: string;
173
+ limit?: number;
174
+ offset?: number;
175
+ }
176
+ interface GovCreateAgencyInput {
177
+ name: string;
178
+ code?: string;
179
+ description?: string;
180
+ jurisdiction?: string;
181
+ contactEmail?: string;
182
+ contactPhone?: string;
183
+ tags?: string[];
184
+ }
185
+ interface GovUpdateAgencyInput {
186
+ name?: string;
187
+ code?: string;
188
+ description?: string;
189
+ jurisdiction?: string;
190
+ contactEmail?: string;
191
+ contactPhone?: string;
192
+ isActive?: boolean;
193
+ tags?: string[];
194
+ }
195
+ interface GovCreateServiceInput {
196
+ agencyId: string;
197
+ name: string;
198
+ slug: string;
199
+ category?: GovServiceCategory;
200
+ summary?: string;
201
+ eligibility?: string;
202
+ feeType?: GovFeeType;
203
+ feeAmount?: number;
204
+ currency?: string;
205
+ slaDays?: number;
206
+ requiredDocuments?: string[];
207
+ formSchema?: Json;
208
+ tags?: string[];
209
+ }
210
+ interface GovUpdateServiceInput {
211
+ name?: string;
212
+ category?: GovServiceCategory;
213
+ summary?: string;
214
+ eligibility?: string;
215
+ feeType?: GovFeeType;
216
+ feeAmount?: number;
217
+ currency?: string;
218
+ slaDays?: number;
219
+ requiredDocuments?: string[];
220
+ formSchema?: Json;
221
+ tags?: string[];
222
+ }
223
+ interface GovCreateApplicationInput {
224
+ serviceId: string;
225
+ reference?: string;
226
+ priority?: GovCasePriority;
227
+ formData?: Json;
228
+ tags?: string[];
229
+ }
230
+ interface GovUpdateApplicationInput {
231
+ assignedToId?: string;
232
+ priority?: GovCasePriority;
233
+ formData?: Json;
234
+ tags?: string[];
235
+ }
236
+ interface GovAddDocumentInput {
237
+ applicationId: string;
238
+ name: string;
239
+ fileId?: string;
240
+ requirement?: string;
241
+ }
242
+ interface GovAddCaseNoteInput {
243
+ applicationId: string;
244
+ body: string;
245
+ type?: GovCaseNoteType;
246
+ }
247
+ interface GovReportGrievanceInput {
248
+ title: string;
249
+ description: string;
250
+ agencyId?: string;
251
+ category?: GovServiceCategory;
252
+ location?: string;
253
+ latitude?: number;
254
+ longitude?: number;
255
+ photoFileIds?: string[];
256
+ priority?: GovCasePriority;
257
+ tags?: string[];
258
+ }
259
+ interface GovUpdateGrievanceInput {
260
+ agencyId?: string;
261
+ assignedToId?: string;
262
+ location?: string;
263
+ priority?: GovCasePriority;
264
+ tags?: string[];
265
+ }
266
+ interface GovIssuePermitInput {
267
+ holderId: string;
268
+ serviceId: string;
269
+ title: string;
270
+ verificationCode: string;
271
+ applicationId?: string;
272
+ expiresAt?: string;
273
+ fileId?: string;
274
+ }
275
+ interface GovCreatePaymentInput {
276
+ amount: number;
277
+ applicationId?: string;
278
+ currency?: string;
279
+ lineItems?: Json;
280
+ providerRef?: string;
281
+ }
282
+
283
+ interface GovAgenciesApi {
284
+ get(id: string): Promise<GovAgency | null>;
285
+ list(isActive?: boolean, pagination?: GovPaginationInput): Promise<GovAgency[]>;
286
+ create(input: GovCreateAgencyInput): Promise<GovAgency>;
287
+ update(id: string, input: GovUpdateAgencyInput): Promise<GovAgency>;
288
+ archive(id: string): Promise<boolean>;
289
+ }
290
+ interface GovServicesApi {
291
+ get(id: string): Promise<GovService | null>;
292
+ list(agencyId?: string, category?: GovServiceCategory, pagination?: GovPaginationInput, status?: GovServiceStatus): Promise<GovServiceConnection>;
293
+ create(input: GovCreateServiceInput): Promise<GovService>;
294
+ update(id: string, input: GovUpdateServiceInput): Promise<GovService>;
295
+ transition(id: string, status: GovServiceStatus): Promise<GovService>;
296
+ }
297
+ interface GovApplicationsApi {
298
+ get(id: string): Promise<GovApplication | null>;
299
+ list(assignedToId?: string, citizenId?: string, pagination?: GovPaginationInput, serviceId?: string, status?: GovApplicationStatus): Promise<GovApplicationConnection>;
300
+ create(input: GovCreateApplicationInput): Promise<GovApplication>;
301
+ update(id: string, input: GovUpdateApplicationInput): Promise<GovApplication>;
302
+ submit(id: string): Promise<GovApplication>;
303
+ transition(id: string, status: GovApplicationStatus, reason?: string): Promise<GovApplication>;
304
+ }
305
+ interface GovDocumentsApi {
306
+ add(input: GovAddDocumentInput): Promise<GovDocument>;
307
+ review(id: string, status: GovDocumentStatus, rejectionReason?: string): Promise<GovDocument>;
308
+ }
309
+ interface GovCaseNotesApi {
310
+ add(input: GovAddCaseNoteInput): Promise<GovCaseNote>;
311
+ }
312
+ interface GovGrievancesApi {
313
+ get(id: string): Promise<GovGrievance | null>;
314
+ list(agencyId?: string, pagination?: GovPaginationInput, reporterId?: string, status?: GovGrievanceStatus): Promise<GovGrievanceConnection>;
315
+ report(input: GovReportGrievanceInput): Promise<GovGrievance>;
316
+ update(id: string, input: GovUpdateGrievanceInput): Promise<GovGrievance>;
317
+ transition(id: string, status: GovGrievanceStatus, resolution?: string): Promise<GovGrievance>;
318
+ }
319
+ interface GovPermitsApi {
320
+ list(holderId?: string, serviceId?: string, status?: GovPermitStatus): Promise<GovPermit[]>;
321
+ issue(input: GovIssuePermitInput): Promise<GovPermit>;
322
+ revoke(id: string, reason?: string): Promise<GovPermit>;
323
+ verify(verificationCode: string): Promise<GovPermit | null>;
324
+ }
325
+ interface GovPaymentsApi {
326
+ get(id: string): Promise<GovPayment | null>;
327
+ list(applicationId?: string, pagination?: GovPaginationInput, payerId?: string, status?: GovPaymentStatus): Promise<GovPaymentConnection>;
328
+ create(input: GovCreatePaymentInput): Promise<GovPayment>;
329
+ markPaid(id: string, providerRef?: string): Promise<GovPayment>;
330
+ refund(id: string): Promise<GovPayment>;
331
+ }
332
+ interface GovSystemApi {
333
+ health(): Promise<string>;
334
+ }
335
+ interface GovcitizenhubApi {
336
+ agencies: GovAgenciesApi;
337
+ services: GovServicesApi;
338
+ applications: GovApplicationsApi;
339
+ documents: GovDocumentsApi;
340
+ caseNotes: GovCaseNotesApi;
341
+ grievances: GovGrievancesApi;
342
+ permits: GovPermitsApi;
343
+ payments: GovPaymentsApi;
344
+ system: GovSystemApi;
345
+ }
346
+
347
+ declare const govcitizenhubModule: SdkModule<GovcitizenhubApi>;
348
+
349
+ export { type GovAddCaseNoteInput, type GovAddDocumentInput, type GovAgenciesApi, type GovAgency, type GovApplication, type GovApplicationConnection, type GovApplicationStatus, type GovApplicationsApi, type GovCaseNote, type GovCaseNoteType, type GovCaseNotesApi, type GovCasePriority, type GovCreateAgencyInput, type GovCreateApplicationInput, type GovCreatePaymentInput, type GovCreateServiceInput, type GovDocument, type GovDocumentStatus, type GovDocumentsApi, type GovFeeType, type GovFileRef, type GovGrievance, type GovGrievanceConnection, type GovGrievanceStatus, type GovGrievancesApi, type GovIssuePermitInput, type GovPageInfo, type GovPaginationInput, type GovPayment, type GovPaymentConnection, type GovPaymentStatus, type GovPaymentsApi, type GovPermit, type GovPermitStatus, type GovPermitsApi, type GovReportGrievanceInput, type GovService, type GovServiceCategory, type GovServiceConnection, type GovServiceStatus, type GovServicesApi, type GovSystemApi, type GovUpdateAgencyInput, type GovUpdateApplicationInput, type GovUpdateGrievanceInput, type GovUpdateServiceInput, type GovcitizenhubApi, govcitizenhubModule as default };