@ecrvs/opencrvs-toolkit 1.8.1-rc.a7ee8fb

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 (76) hide show
  1. package/README.md +70 -0
  2. package/build.sh +56 -0
  3. package/dist/api/index.d.ts +11 -0
  4. package/dist/api/index.d.ts.map +1 -0
  5. package/dist/api/index.js +52 -0
  6. package/dist/commons/api/router.d.ts +14568 -0
  7. package/dist/commons/conditionals/conditionals.d.ts +194 -0
  8. package/dist/commons/conditionals/index.d.ts +2 -0
  9. package/dist/commons/conditionals/validate.d.ts +129 -0
  10. package/dist/commons/events/ActionConfig.d.ts +2034 -0
  11. package/dist/commons/events/ActionDocument.d.ts +14400 -0
  12. package/dist/commons/events/ActionInput.d.ts +11157 -0
  13. package/dist/commons/events/ActionType.d.ts +52 -0
  14. package/dist/commons/events/AdvancedSearchConfig.d.ts +1175 -0
  15. package/dist/commons/events/CompositeFieldValue.d.ts +181 -0
  16. package/dist/commons/events/Conditional.d.ts +55 -0
  17. package/dist/commons/events/Constants.d.ts +3 -0
  18. package/dist/commons/events/CountryConfigQueryInput.d.ts +4494 -0
  19. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  20. package/dist/commons/events/DeduplicationConfig.d.ts +209 -0
  21. package/dist/commons/events/Draft.d.ts +814 -0
  22. package/dist/commons/events/EventConfig.d.ts +2237 -0
  23. package/dist/commons/events/EventConfigInput.d.ts +10 -0
  24. package/dist/commons/events/EventDocument.d.ts +8505 -0
  25. package/dist/commons/events/EventIndex.d.ts +3858 -0
  26. package/dist/commons/events/EventInput.d.ts +13 -0
  27. package/dist/commons/events/EventMetadata.d.ts +408 -0
  28. package/dist/commons/events/FieldConfig.d.ts +7125 -0
  29. package/dist/commons/events/FieldType.d.ts +46 -0
  30. package/dist/commons/events/FieldTypeMapping.d.ts +537 -0
  31. package/dist/commons/events/FieldValue.d.ts +250 -0
  32. package/dist/commons/events/FileUtils.d.ts +4 -0
  33. package/dist/commons/events/FormConfig.d.ts +725 -0
  34. package/dist/commons/events/PageConfig.d.ts +336 -0
  35. package/dist/commons/events/SummaryConfig.d.ts +170 -0
  36. package/dist/commons/events/TemplateConfig.d.ts +38 -0
  37. package/dist/commons/events/TranslationConfig.d.ts +15 -0
  38. package/dist/commons/events/User.d.ts +45 -0
  39. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  40. package/dist/commons/events/WorkqueueConfig.d.ts +8997 -0
  41. package/dist/commons/events/deduplication.d.ts +32 -0
  42. package/dist/commons/events/defineConfig.d.ts +309 -0
  43. package/dist/commons/events/event.d.ts +109 -0
  44. package/dist/commons/events/field.d.ts +151 -0
  45. package/dist/commons/events/index.d.ts +46 -0
  46. package/dist/commons/events/locations.d.ts +24 -0
  47. package/dist/commons/events/scopes.d.ts +55 -0
  48. package/dist/commons/events/serializer.d.ts +2 -0
  49. package/dist/commons/events/state/availableActions.d.ts +6 -0
  50. package/dist/commons/events/state/flags.d.ts +4 -0
  51. package/dist/commons/events/state/index.d.ts +146 -0
  52. package/dist/commons/events/state/utils.d.ts +1263 -0
  53. package/dist/commons/events/test.utils.d.ts +473 -0
  54. package/dist/commons/events/transactions.d.ts +2 -0
  55. package/dist/commons/events/utils.d.ts +501 -0
  56. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  57. package/dist/commons/notification/UserNotifications.d.ts +632 -0
  58. package/dist/commons/notification/index.d.ts +2 -0
  59. package/dist/conditionals/index.d.ts +2 -0
  60. package/dist/conditionals/index.d.ts.map +1 -0
  61. package/dist/conditionals/index.js +491 -0
  62. package/dist/events/deduplication.d.ts +32 -0
  63. package/dist/events/deduplication.d.ts.map +1 -0
  64. package/dist/events/deduplication.js +67 -0
  65. package/dist/events/index.d.ts +2 -0
  66. package/dist/events/index.d.ts.map +1 -0
  67. package/dist/events/index.js +8383 -0
  68. package/dist/notification/index.d.ts +2 -0
  69. package/dist/notification/index.d.ts.map +1 -0
  70. package/dist/notification/index.js +5928 -0
  71. package/dist/scopes/index.d.ts +335 -0
  72. package/dist/scopes/index.d.ts.map +1 -0
  73. package/dist/scopes/index.js +379 -0
  74. package/package.json +40 -0
  75. package/tsconfig.json +27 -0
  76. package/tsconfig.tsbuildinfo +1 -0
@@ -0,0 +1,814 @@
1
+ import { z } from 'zod';
2
+ export declare const Draft: z.ZodObject<{
3
+ id: z.ZodBranded<z.ZodString, "UUID">;
4
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
5
+ transactionId: z.ZodString;
6
+ createdAt: z.ZodString;
7
+ action: z.ZodObject<Omit<z.objectUtil.extendShape<{
8
+ id: z.ZodBranded<z.ZodString, "UUID">;
9
+ transactionId: z.ZodString;
10
+ createdByUserType: z.ZodEnum<["user", "system"]>;
11
+ createdAt: z.ZodString;
12
+ createdBy: z.ZodString;
13
+ createdByRole: z.ZodString;
14
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
16
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>, z.ZodString, z.ZodString, z.ZodString, z.ZodObject<{
17
+ country: z.ZodString;
18
+ addressType: z.ZodEnum<["DOMESTIC", "INTERNATIONAL"]>;
19
+ administrativeArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ streetLevelDetails: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ country: string;
23
+ addressType: "DOMESTIC" | "INTERNATIONAL";
24
+ administrativeArea?: string | null | undefined;
25
+ streetLevelDetails?: Record<string, string> | null | undefined;
26
+ }, {
27
+ country: string;
28
+ addressType: "DOMESTIC" | "INTERNATIONAL";
29
+ administrativeArea?: string | null | undefined;
30
+ streetLevelDetails?: Record<string, string> | null | undefined;
31
+ }>, z.ZodUnion<[z.ZodObject<{
32
+ start: z.ZodString;
33
+ end: z.ZodString;
34
+ }, "strip", z.ZodTypeAny, {
35
+ start: string;
36
+ end: string;
37
+ }, {
38
+ start: string;
39
+ end: string;
40
+ }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
41
+ path: z.ZodEffects<z.ZodString, string, string>;
42
+ originalFilename: z.ZodString;
43
+ type: z.ZodString;
44
+ }, "strip", z.ZodTypeAny, {
45
+ type: string;
46
+ path: string;
47
+ originalFilename: string;
48
+ }, {
49
+ type: string;
50
+ path: string;
51
+ originalFilename: string;
52
+ }>, z.ZodArray<z.ZodObject<{
53
+ path: z.ZodEffects<z.ZodString, string, string>;
54
+ originalFilename: z.ZodString;
55
+ type: z.ZodString;
56
+ option: z.ZodString;
57
+ }, "strip", z.ZodTypeAny, {
58
+ type: string;
59
+ option: string;
60
+ path: string;
61
+ originalFilename: string;
62
+ }, {
63
+ type: string;
64
+ option: string;
65
+ path: string;
66
+ originalFilename: string;
67
+ }>, "many">, z.ZodUndefined, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
68
+ firstname: z.ZodString;
69
+ surname: z.ZodString;
70
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
+ }, "strip", z.ZodTypeAny, {
72
+ firstname: string;
73
+ surname: string;
74
+ middlename?: string | null | undefined;
75
+ }, {
76
+ firstname: string;
77
+ surname: string;
78
+ middlename?: string | null | undefined;
79
+ }>, z.ZodNull]>, z.ZodUndefined]>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
80
+ loading: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
81
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
82
+ statusCode: z.ZodNumber;
83
+ message: z.ZodString;
84
+ }, "strip", z.ZodTypeAny, {
85
+ message: string;
86
+ statusCode: number;
87
+ }, {
88
+ message: string;
89
+ statusCode: number;
90
+ }>>>;
91
+ data: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ data?: any;
94
+ error?: {
95
+ message: string;
96
+ statusCode: number;
97
+ } | null | undefined;
98
+ loading?: boolean | null | undefined;
99
+ }, {
100
+ data?: any;
101
+ error?: {
102
+ message: string;
103
+ statusCode: number;
104
+ } | null | undefined;
105
+ loading?: boolean | null | undefined;
106
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
107
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>, z.ZodString, z.ZodString, z.ZodString, z.ZodObject<{
108
+ country: z.ZodString;
109
+ addressType: z.ZodEnum<["DOMESTIC", "INTERNATIONAL"]>;
110
+ administrativeArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
111
+ streetLevelDetails: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
112
+ }, "strip", z.ZodTypeAny, {
113
+ country: string;
114
+ addressType: "DOMESTIC" | "INTERNATIONAL";
115
+ administrativeArea?: string | null | undefined;
116
+ streetLevelDetails?: Record<string, string> | null | undefined;
117
+ }, {
118
+ country: string;
119
+ addressType: "DOMESTIC" | "INTERNATIONAL";
120
+ administrativeArea?: string | null | undefined;
121
+ streetLevelDetails?: Record<string, string> | null | undefined;
122
+ }>, z.ZodUnion<[z.ZodObject<{
123
+ start: z.ZodString;
124
+ end: z.ZodString;
125
+ }, "strip", z.ZodTypeAny, {
126
+ start: string;
127
+ end: string;
128
+ }, {
129
+ start: string;
130
+ end: string;
131
+ }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
132
+ path: z.ZodEffects<z.ZodString, string, string>;
133
+ originalFilename: z.ZodString;
134
+ type: z.ZodString;
135
+ }, "strip", z.ZodTypeAny, {
136
+ type: string;
137
+ path: string;
138
+ originalFilename: string;
139
+ }, {
140
+ type: string;
141
+ path: string;
142
+ originalFilename: string;
143
+ }>, z.ZodArray<z.ZodObject<{
144
+ path: z.ZodEffects<z.ZodString, string, string>;
145
+ originalFilename: z.ZodString;
146
+ type: z.ZodString;
147
+ option: z.ZodString;
148
+ }, "strip", z.ZodTypeAny, {
149
+ type: string;
150
+ option: string;
151
+ path: string;
152
+ originalFilename: string;
153
+ }, {
154
+ type: string;
155
+ option: string;
156
+ path: string;
157
+ originalFilename: string;
158
+ }>, "many">, z.ZodUndefined, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
159
+ firstname: z.ZodString;
160
+ surname: z.ZodString;
161
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
162
+ }, "strip", z.ZodTypeAny, {
163
+ firstname: string;
164
+ surname: string;
165
+ middlename?: string | null | undefined;
166
+ }, {
167
+ firstname: string;
168
+ surname: string;
169
+ middlename?: string | null | undefined;
170
+ }>, z.ZodNull]>, z.ZodUndefined]>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
171
+ loading: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
172
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
173
+ statusCode: z.ZodNumber;
174
+ message: z.ZodString;
175
+ }, "strip", z.ZodTypeAny, {
176
+ message: string;
177
+ statusCode: number;
178
+ }, {
179
+ message: string;
180
+ statusCode: number;
181
+ }>>>;
182
+ data: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
183
+ }, "strip", z.ZodTypeAny, {
184
+ data?: any;
185
+ error?: {
186
+ message: string;
187
+ statusCode: number;
188
+ } | null | undefined;
189
+ loading?: boolean | null | undefined;
190
+ }, {
191
+ data?: any;
192
+ error?: {
193
+ message: string;
194
+ statusCode: number;
195
+ } | null | undefined;
196
+ loading?: boolean | null | undefined;
197
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
198
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
199
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
200
+ }, {
201
+ type: z.ZodEnum<["CREATE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "DUPLICATE_DETECTED", "REJECT", "MARK_AS_DUPLICATE", "MARK_AS_NOT_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION", "READ", "ASSIGN", "UNASSIGN"]>;
202
+ }>, "id" | "createdAtLocation">, "strip", z.ZodTypeAny, {
203
+ type: "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
204
+ status: "Rejected" | "Requested" | "Accepted";
205
+ transactionId: string;
206
+ createdByUserType: "system" | "user";
207
+ createdAt: string;
208
+ createdBy: string;
209
+ createdByRole: string;
210
+ declaration: Record<string, string | number | boolean | {
211
+ type: string;
212
+ path: string;
213
+ originalFilename: string;
214
+ } | {
215
+ firstname: string;
216
+ surname: string;
217
+ middlename?: string | null | undefined;
218
+ } | Record<string, string> | {
219
+ country: string;
220
+ addressType: "DOMESTIC" | "INTERNATIONAL";
221
+ administrativeArea?: string | null | undefined;
222
+ streetLevelDetails?: Record<string, string> | null | undefined;
223
+ } | {
224
+ type: string;
225
+ option: string;
226
+ path: string;
227
+ originalFilename: string;
228
+ }[] | {
229
+ data?: any;
230
+ error?: {
231
+ message: string;
232
+ statusCode: number;
233
+ } | null | undefined;
234
+ loading?: boolean | null | undefined;
235
+ } | {
236
+ start: string;
237
+ end: string;
238
+ } | null | undefined>;
239
+ createdBySignature?: string | null | undefined;
240
+ annotation?: Record<string, string | number | boolean | {
241
+ type: string;
242
+ path: string;
243
+ originalFilename: string;
244
+ } | {
245
+ firstname: string;
246
+ surname: string;
247
+ middlename?: string | null | undefined;
248
+ } | Record<string, string> | {
249
+ country: string;
250
+ addressType: "DOMESTIC" | "INTERNATIONAL";
251
+ administrativeArea?: string | null | undefined;
252
+ streetLevelDetails?: Record<string, string> | null | undefined;
253
+ } | {
254
+ type: string;
255
+ option: string;
256
+ path: string;
257
+ originalFilename: string;
258
+ }[] | {
259
+ data?: any;
260
+ error?: {
261
+ message: string;
262
+ statusCode: number;
263
+ } | null | undefined;
264
+ loading?: boolean | null | undefined;
265
+ } | {
266
+ start: string;
267
+ end: string;
268
+ } | null | undefined> | null | undefined;
269
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
270
+ }, {
271
+ type: "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
272
+ status: "Rejected" | "Requested" | "Accepted";
273
+ transactionId: string;
274
+ createdByUserType: "system" | "user";
275
+ createdAt: string;
276
+ createdBy: string;
277
+ createdByRole: string;
278
+ declaration: Record<string, string | number | boolean | {
279
+ type: string;
280
+ path: string;
281
+ originalFilename: string;
282
+ } | {
283
+ firstname: string;
284
+ surname: string;
285
+ middlename?: string | null | undefined;
286
+ } | Record<string, string> | {
287
+ country: string;
288
+ addressType: "DOMESTIC" | "INTERNATIONAL";
289
+ administrativeArea?: string | null | undefined;
290
+ streetLevelDetails?: Record<string, string> | null | undefined;
291
+ } | {
292
+ type: string;
293
+ option: string;
294
+ path: string;
295
+ originalFilename: string;
296
+ }[] | {
297
+ data?: any;
298
+ error?: {
299
+ message: string;
300
+ statusCode: number;
301
+ } | null | undefined;
302
+ loading?: boolean | null | undefined;
303
+ } | {
304
+ start: string;
305
+ end: string;
306
+ } | null | undefined>;
307
+ createdBySignature?: string | null | undefined;
308
+ annotation?: Record<string, string | number | boolean | {
309
+ type: string;
310
+ path: string;
311
+ originalFilename: string;
312
+ } | {
313
+ firstname: string;
314
+ surname: string;
315
+ middlename?: string | null | undefined;
316
+ } | Record<string, string> | {
317
+ country: string;
318
+ addressType: "DOMESTIC" | "INTERNATIONAL";
319
+ administrativeArea?: string | null | undefined;
320
+ streetLevelDetails?: Record<string, string> | null | undefined;
321
+ } | {
322
+ type: string;
323
+ option: string;
324
+ path: string;
325
+ originalFilename: string;
326
+ }[] | {
327
+ data?: any;
328
+ error?: {
329
+ message: string;
330
+ statusCode: number;
331
+ } | null | undefined;
332
+ loading?: boolean | null | undefined;
333
+ } | {
334
+ start: string;
335
+ end: string;
336
+ } | null | undefined> | null | undefined;
337
+ originalActionId?: string | null | undefined;
338
+ }>;
339
+ }, "strip", z.ZodTypeAny, {
340
+ id: string & z.BRAND<"UUID">;
341
+ transactionId: string;
342
+ createdAt: string;
343
+ eventId: string & z.BRAND<"UUID">;
344
+ action: {
345
+ type: "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
346
+ status: "Rejected" | "Requested" | "Accepted";
347
+ transactionId: string;
348
+ createdByUserType: "system" | "user";
349
+ createdAt: string;
350
+ createdBy: string;
351
+ createdByRole: string;
352
+ declaration: Record<string, string | number | boolean | {
353
+ type: string;
354
+ path: string;
355
+ originalFilename: string;
356
+ } | {
357
+ firstname: string;
358
+ surname: string;
359
+ middlename?: string | null | undefined;
360
+ } | Record<string, string> | {
361
+ country: string;
362
+ addressType: "DOMESTIC" | "INTERNATIONAL";
363
+ administrativeArea?: string | null | undefined;
364
+ streetLevelDetails?: Record<string, string> | null | undefined;
365
+ } | {
366
+ type: string;
367
+ option: string;
368
+ path: string;
369
+ originalFilename: string;
370
+ }[] | {
371
+ data?: any;
372
+ error?: {
373
+ message: string;
374
+ statusCode: number;
375
+ } | null | undefined;
376
+ loading?: boolean | null | undefined;
377
+ } | {
378
+ start: string;
379
+ end: string;
380
+ } | null | undefined>;
381
+ createdBySignature?: string | null | undefined;
382
+ annotation?: Record<string, string | number | boolean | {
383
+ type: string;
384
+ path: string;
385
+ originalFilename: string;
386
+ } | {
387
+ firstname: string;
388
+ surname: string;
389
+ middlename?: string | null | undefined;
390
+ } | Record<string, string> | {
391
+ country: string;
392
+ addressType: "DOMESTIC" | "INTERNATIONAL";
393
+ administrativeArea?: string | null | undefined;
394
+ streetLevelDetails?: Record<string, string> | null | undefined;
395
+ } | {
396
+ type: string;
397
+ option: string;
398
+ path: string;
399
+ originalFilename: string;
400
+ }[] | {
401
+ data?: any;
402
+ error?: {
403
+ message: string;
404
+ statusCode: number;
405
+ } | null | undefined;
406
+ loading?: boolean | null | undefined;
407
+ } | {
408
+ start: string;
409
+ end: string;
410
+ } | null | undefined> | null | undefined;
411
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
412
+ };
413
+ }, {
414
+ id: string;
415
+ transactionId: string;
416
+ createdAt: string;
417
+ eventId: string;
418
+ action: {
419
+ type: "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
420
+ status: "Rejected" | "Requested" | "Accepted";
421
+ transactionId: string;
422
+ createdByUserType: "system" | "user";
423
+ createdAt: string;
424
+ createdBy: string;
425
+ createdByRole: string;
426
+ declaration: Record<string, string | number | boolean | {
427
+ type: string;
428
+ path: string;
429
+ originalFilename: string;
430
+ } | {
431
+ firstname: string;
432
+ surname: string;
433
+ middlename?: string | null | undefined;
434
+ } | Record<string, string> | {
435
+ country: string;
436
+ addressType: "DOMESTIC" | "INTERNATIONAL";
437
+ administrativeArea?: string | null | undefined;
438
+ streetLevelDetails?: Record<string, string> | null | undefined;
439
+ } | {
440
+ type: string;
441
+ option: string;
442
+ path: string;
443
+ originalFilename: string;
444
+ }[] | {
445
+ data?: any;
446
+ error?: {
447
+ message: string;
448
+ statusCode: number;
449
+ } | null | undefined;
450
+ loading?: boolean | null | undefined;
451
+ } | {
452
+ start: string;
453
+ end: string;
454
+ } | null | undefined>;
455
+ createdBySignature?: string | null | undefined;
456
+ annotation?: Record<string, string | number | boolean | {
457
+ type: string;
458
+ path: string;
459
+ originalFilename: string;
460
+ } | {
461
+ firstname: string;
462
+ surname: string;
463
+ middlename?: string | null | undefined;
464
+ } | Record<string, string> | {
465
+ country: string;
466
+ addressType: "DOMESTIC" | "INTERNATIONAL";
467
+ administrativeArea?: string | null | undefined;
468
+ streetLevelDetails?: Record<string, string> | null | undefined;
469
+ } | {
470
+ type: string;
471
+ option: string;
472
+ path: string;
473
+ originalFilename: string;
474
+ }[] | {
475
+ data?: any;
476
+ error?: {
477
+ message: string;
478
+ statusCode: number;
479
+ } | null | undefined;
480
+ loading?: boolean | null | undefined;
481
+ } | {
482
+ start: string;
483
+ end: string;
484
+ } | null | undefined> | null | undefined;
485
+ originalActionId?: string | null | undefined;
486
+ };
487
+ }>;
488
+ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
489
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
490
+ transactionId: z.ZodString;
491
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>, z.ZodString, z.ZodString, z.ZodString, z.ZodObject<{
492
+ country: z.ZodString;
493
+ addressType: z.ZodEnum<["DOMESTIC", "INTERNATIONAL"]>;
494
+ administrativeArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
495
+ streetLevelDetails: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
496
+ }, "strip", z.ZodTypeAny, {
497
+ country: string;
498
+ addressType: "DOMESTIC" | "INTERNATIONAL";
499
+ administrativeArea?: string | null | undefined;
500
+ streetLevelDetails?: Record<string, string> | null | undefined;
501
+ }, {
502
+ country: string;
503
+ addressType: "DOMESTIC" | "INTERNATIONAL";
504
+ administrativeArea?: string | null | undefined;
505
+ streetLevelDetails?: Record<string, string> | null | undefined;
506
+ }>, z.ZodUnion<[z.ZodObject<{
507
+ start: z.ZodString;
508
+ end: z.ZodString;
509
+ }, "strip", z.ZodTypeAny, {
510
+ start: string;
511
+ end: string;
512
+ }, {
513
+ start: string;
514
+ end: string;
515
+ }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
516
+ path: z.ZodEffects<z.ZodString, string, string>;
517
+ originalFilename: z.ZodString;
518
+ type: z.ZodString;
519
+ }, "strip", z.ZodTypeAny, {
520
+ type: string;
521
+ path: string;
522
+ originalFilename: string;
523
+ }, {
524
+ type: string;
525
+ path: string;
526
+ originalFilename: string;
527
+ }>, z.ZodArray<z.ZodObject<{
528
+ path: z.ZodEffects<z.ZodString, string, string>;
529
+ originalFilename: z.ZodString;
530
+ type: z.ZodString;
531
+ option: z.ZodString;
532
+ }, "strip", z.ZodTypeAny, {
533
+ type: string;
534
+ option: string;
535
+ path: string;
536
+ originalFilename: string;
537
+ }, {
538
+ type: string;
539
+ option: string;
540
+ path: string;
541
+ originalFilename: string;
542
+ }>, "many">, z.ZodUndefined, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
543
+ firstname: z.ZodString;
544
+ surname: z.ZodString;
545
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
546
+ }, "strip", z.ZodTypeAny, {
547
+ firstname: string;
548
+ surname: string;
549
+ middlename?: string | null | undefined;
550
+ }, {
551
+ firstname: string;
552
+ surname: string;
553
+ middlename?: string | null | undefined;
554
+ }>, z.ZodNull]>, z.ZodUndefined]>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
555
+ loading: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
556
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
557
+ statusCode: z.ZodNumber;
558
+ message: z.ZodString;
559
+ }, "strip", z.ZodTypeAny, {
560
+ message: string;
561
+ statusCode: number;
562
+ }, {
563
+ message: string;
564
+ statusCode: number;
565
+ }>>>;
566
+ data: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
567
+ }, "strip", z.ZodTypeAny, {
568
+ data?: any;
569
+ error?: {
570
+ message: string;
571
+ statusCode: number;
572
+ } | null | undefined;
573
+ loading?: boolean | null | undefined;
574
+ }, {
575
+ data?: any;
576
+ error?: {
577
+ message: string;
578
+ statusCode: number;
579
+ } | null | undefined;
580
+ loading?: boolean | null | undefined;
581
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
582
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>, z.ZodString, z.ZodString, z.ZodString, z.ZodObject<{
583
+ country: z.ZodString;
584
+ addressType: z.ZodEnum<["DOMESTIC", "INTERNATIONAL"]>;
585
+ administrativeArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
586
+ streetLevelDetails: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
587
+ }, "strip", z.ZodTypeAny, {
588
+ country: string;
589
+ addressType: "DOMESTIC" | "INTERNATIONAL";
590
+ administrativeArea?: string | null | undefined;
591
+ streetLevelDetails?: Record<string, string> | null | undefined;
592
+ }, {
593
+ country: string;
594
+ addressType: "DOMESTIC" | "INTERNATIONAL";
595
+ administrativeArea?: string | null | undefined;
596
+ streetLevelDetails?: Record<string, string> | null | undefined;
597
+ }>, z.ZodUnion<[z.ZodObject<{
598
+ start: z.ZodString;
599
+ end: z.ZodString;
600
+ }, "strip", z.ZodTypeAny, {
601
+ start: string;
602
+ end: string;
603
+ }, {
604
+ start: string;
605
+ end: string;
606
+ }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
607
+ path: z.ZodEffects<z.ZodString, string, string>;
608
+ originalFilename: z.ZodString;
609
+ type: z.ZodString;
610
+ }, "strip", z.ZodTypeAny, {
611
+ type: string;
612
+ path: string;
613
+ originalFilename: string;
614
+ }, {
615
+ type: string;
616
+ path: string;
617
+ originalFilename: string;
618
+ }>, z.ZodArray<z.ZodObject<{
619
+ path: z.ZodEffects<z.ZodString, string, string>;
620
+ originalFilename: z.ZodString;
621
+ type: z.ZodString;
622
+ option: z.ZodString;
623
+ }, "strip", z.ZodTypeAny, {
624
+ type: string;
625
+ option: string;
626
+ path: string;
627
+ originalFilename: string;
628
+ }, {
629
+ type: string;
630
+ option: string;
631
+ path: string;
632
+ originalFilename: string;
633
+ }>, "many">, z.ZodUndefined, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
634
+ firstname: z.ZodString;
635
+ surname: z.ZodString;
636
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
637
+ }, "strip", z.ZodTypeAny, {
638
+ firstname: string;
639
+ surname: string;
640
+ middlename?: string | null | undefined;
641
+ }, {
642
+ firstname: string;
643
+ surname: string;
644
+ middlename?: string | null | undefined;
645
+ }>, z.ZodNull]>, z.ZodUndefined]>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
646
+ loading: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
647
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
648
+ statusCode: z.ZodNumber;
649
+ message: z.ZodString;
650
+ }, "strip", z.ZodTypeAny, {
651
+ message: string;
652
+ statusCode: number;
653
+ }, {
654
+ message: string;
655
+ statusCode: number;
656
+ }>>>;
657
+ data: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
658
+ }, "strip", z.ZodTypeAny, {
659
+ data?: any;
660
+ error?: {
661
+ message: string;
662
+ statusCode: number;
663
+ } | null | undefined;
664
+ loading?: boolean | null | undefined;
665
+ }, {
666
+ data?: any;
667
+ error?: {
668
+ message: string;
669
+ statusCode: number;
670
+ } | null | undefined;
671
+ loading?: boolean | null | undefined;
672
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
673
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
674
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
675
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
676
+ }, {
677
+ type: z.ZodEnum<["CREATE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "DUPLICATE_DETECTED", "REJECT", "MARK_AS_DUPLICATE", "MARK_AS_NOT_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION", "READ", "ASSIGN", "UNASSIGN"]>;
678
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
679
+ }>, "strip", z.ZodTypeAny, {
680
+ type: "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
681
+ status: "Rejected" | "Requested" | "Accepted";
682
+ transactionId: string;
683
+ declaration: Record<string, string | number | boolean | {
684
+ type: string;
685
+ path: string;
686
+ originalFilename: string;
687
+ } | {
688
+ firstname: string;
689
+ surname: string;
690
+ middlename?: string | null | undefined;
691
+ } | Record<string, string> | {
692
+ country: string;
693
+ addressType: "DOMESTIC" | "INTERNATIONAL";
694
+ administrativeArea?: string | null | undefined;
695
+ streetLevelDetails?: Record<string, string> | null | undefined;
696
+ } | {
697
+ type: string;
698
+ option: string;
699
+ path: string;
700
+ originalFilename: string;
701
+ }[] | {
702
+ data?: any;
703
+ error?: {
704
+ message: string;
705
+ statusCode: number;
706
+ } | null | undefined;
707
+ loading?: boolean | null | undefined;
708
+ } | {
709
+ start: string;
710
+ end: string;
711
+ } | null | undefined>;
712
+ eventId: string & z.BRAND<"UUID">;
713
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
714
+ annotation?: Record<string, string | number | boolean | {
715
+ type: string;
716
+ path: string;
717
+ originalFilename: string;
718
+ } | {
719
+ firstname: string;
720
+ surname: string;
721
+ middlename?: string | null | undefined;
722
+ } | Record<string, string> | {
723
+ country: string;
724
+ addressType: "DOMESTIC" | "INTERNATIONAL";
725
+ administrativeArea?: string | null | undefined;
726
+ streetLevelDetails?: Record<string, string> | null | undefined;
727
+ } | {
728
+ type: string;
729
+ option: string;
730
+ path: string;
731
+ originalFilename: string;
732
+ }[] | {
733
+ data?: any;
734
+ error?: {
735
+ message: string;
736
+ statusCode: number;
737
+ } | null | undefined;
738
+ loading?: boolean | null | undefined;
739
+ } | {
740
+ start: string;
741
+ end: string;
742
+ } | null | undefined> | undefined;
743
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
744
+ keepAssignment?: boolean | undefined;
745
+ }, {
746
+ type: "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
747
+ status: "Rejected" | "Requested" | "Accepted";
748
+ transactionId: string;
749
+ eventId: string;
750
+ createdAtLocation?: string | null | undefined;
751
+ declaration?: Record<string, string | number | boolean | {
752
+ type: string;
753
+ path: string;
754
+ originalFilename: string;
755
+ } | {
756
+ firstname: string;
757
+ surname: string;
758
+ middlename?: string | null | undefined;
759
+ } | Record<string, string> | {
760
+ country: string;
761
+ addressType: "DOMESTIC" | "INTERNATIONAL";
762
+ administrativeArea?: string | null | undefined;
763
+ streetLevelDetails?: Record<string, string> | null | undefined;
764
+ } | {
765
+ type: string;
766
+ option: string;
767
+ path: string;
768
+ originalFilename: string;
769
+ }[] | {
770
+ data?: any;
771
+ error?: {
772
+ message: string;
773
+ statusCode: number;
774
+ } | null | undefined;
775
+ loading?: boolean | null | undefined;
776
+ } | {
777
+ start: string;
778
+ end: string;
779
+ } | null | undefined> | undefined;
780
+ annotation?: Record<string, string | number | boolean | {
781
+ type: string;
782
+ path: string;
783
+ originalFilename: string;
784
+ } | {
785
+ firstname: string;
786
+ surname: string;
787
+ middlename?: string | null | undefined;
788
+ } | Record<string, string> | {
789
+ country: string;
790
+ addressType: "DOMESTIC" | "INTERNATIONAL";
791
+ administrativeArea?: string | null | undefined;
792
+ streetLevelDetails?: Record<string, string> | null | undefined;
793
+ } | {
794
+ type: string;
795
+ option: string;
796
+ path: string;
797
+ originalFilename: string;
798
+ }[] | {
799
+ data?: any;
800
+ error?: {
801
+ message: string;
802
+ statusCode: number;
803
+ } | null | undefined;
804
+ loading?: boolean | null | undefined;
805
+ } | {
806
+ start: string;
807
+ end: string;
808
+ } | null | undefined> | undefined;
809
+ originalActionId?: string | undefined;
810
+ keepAssignment?: boolean | undefined;
811
+ }>;
812
+ export type Draft = z.infer<typeof Draft>;
813
+ export type DraftInput = z.infer<typeof DraftInput>;
814
+ //# sourceMappingURL=Draft.d.ts.map