@opencrvs/toolkit 1.8.0-rc.fa72fdf → 1.8.0-rc.faacbde

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.
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod';
2
- import { ActionType } from './ActionType';
3
2
  export declare const Draft: z.ZodObject<{
4
3
  id: z.ZodString;
5
4
  eventId: z.ZodString;
@@ -9,7 +8,7 @@ export declare const Draft: z.ZodObject<{
9
8
  id: z.ZodString;
10
9
  createdAt: z.ZodString;
11
10
  createdBy: z.ZodString;
12
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13
12
  filename: z.ZodString;
14
13
  originalFilename: z.ZodString;
15
14
  type: z.ZodString;
@@ -38,6 +37,7 @@ export declare const Draft: z.ZodObject<{
38
37
  originalFilename: string;
39
38
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
40
39
  country: z.ZodString;
40
+ addressType: z.ZodLiteral<"DOMESTIC">;
41
41
  province: z.ZodString;
42
42
  district: z.ZodString;
43
43
  }, {
@@ -50,6 +50,7 @@ export declare const Draft: z.ZodObject<{
50
50
  }>, "strip", z.ZodTypeAny, {
51
51
  country: string;
52
52
  district: string;
53
+ addressType: "DOMESTIC";
53
54
  province: string;
54
55
  urbanOrRural: "URBAN";
55
56
  number?: string | null | undefined;
@@ -60,6 +61,7 @@ export declare const Draft: z.ZodObject<{
60
61
  }, {
61
62
  country: string;
62
63
  district: string;
64
+ addressType: "DOMESTIC";
63
65
  province: string;
64
66
  urbanOrRural: "URBAN";
65
67
  number?: string | null | undefined;
@@ -69,6 +71,7 @@ export declare const Draft: z.ZodObject<{
69
71
  zipCode?: string | null | undefined;
70
72
  }>, z.ZodObject<z.objectUtil.extendShape<{
71
73
  country: z.ZodString;
74
+ addressType: z.ZodLiteral<"DOMESTIC">;
72
75
  province: z.ZodString;
73
76
  district: z.ZodString;
74
77
  }, {
@@ -77,17 +80,49 @@ export declare const Draft: z.ZodObject<{
77
80
  }>, "strip", z.ZodTypeAny, {
78
81
  country: string;
79
82
  district: string;
83
+ addressType: "DOMESTIC";
80
84
  province: string;
81
85
  urbanOrRural: "RURAL";
82
86
  village?: string | null | undefined;
83
87
  }, {
84
88
  country: string;
85
89
  district: string;
90
+ addressType: "DOMESTIC";
86
91
  province: string;
87
92
  urbanOrRural: "RURAL";
88
93
  village?: string | null | undefined;
94
+ }>, z.ZodUndefined, z.ZodObject<{
95
+ country: z.ZodString;
96
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
97
+ state: z.ZodString;
98
+ district2: z.ZodString;
99
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
+ }, "strip", z.ZodTypeAny, {
105
+ country: string;
106
+ state: string;
107
+ addressType: "INTERNATIONAL";
108
+ district2: string;
109
+ cityOrTown?: string | null | undefined;
110
+ addressLine1?: string | null | undefined;
111
+ addressLine2?: string | null | undefined;
112
+ addressLine3?: string | null | undefined;
113
+ postcodeOrZip?: string | null | undefined;
114
+ }, {
115
+ country: string;
116
+ state: string;
117
+ addressType: "INTERNATIONAL";
118
+ district2: string;
119
+ cityOrTown?: string | null | undefined;
120
+ addressLine1?: string | null | undefined;
121
+ addressLine2?: string | null | undefined;
122
+ addressLine3?: string | null | undefined;
123
+ postcodeOrZip?: string | null | undefined;
89
124
  }>]>>;
90
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
125
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
91
126
  filename: z.ZodString;
92
127
  originalFilename: z.ZodString;
93
128
  type: z.ZodString;
@@ -116,6 +151,7 @@ export declare const Draft: z.ZodObject<{
116
151
  originalFilename: string;
117
152
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
118
153
  country: z.ZodString;
154
+ addressType: z.ZodLiteral<"DOMESTIC">;
119
155
  province: z.ZodString;
120
156
  district: z.ZodString;
121
157
  }, {
@@ -128,6 +164,7 @@ export declare const Draft: z.ZodObject<{
128
164
  }>, "strip", z.ZodTypeAny, {
129
165
  country: string;
130
166
  district: string;
167
+ addressType: "DOMESTIC";
131
168
  province: string;
132
169
  urbanOrRural: "URBAN";
133
170
  number?: string | null | undefined;
@@ -138,6 +175,7 @@ export declare const Draft: z.ZodObject<{
138
175
  }, {
139
176
  country: string;
140
177
  district: string;
178
+ addressType: "DOMESTIC";
141
179
  province: string;
142
180
  urbanOrRural: "URBAN";
143
181
  number?: string | null | undefined;
@@ -147,6 +185,7 @@ export declare const Draft: z.ZodObject<{
147
185
  zipCode?: string | null | undefined;
148
186
  }>, z.ZodObject<z.objectUtil.extendShape<{
149
187
  country: z.ZodString;
188
+ addressType: z.ZodLiteral<"DOMESTIC">;
150
189
  province: z.ZodString;
151
190
  district: z.ZodString;
152
191
  }, {
@@ -155,28 +194,63 @@ export declare const Draft: z.ZodObject<{
155
194
  }>, "strip", z.ZodTypeAny, {
156
195
  country: string;
157
196
  district: string;
197
+ addressType: "DOMESTIC";
158
198
  province: string;
159
199
  urbanOrRural: "RURAL";
160
200
  village?: string | null | undefined;
161
201
  }, {
162
202
  country: string;
163
203
  district: string;
204
+ addressType: "DOMESTIC";
164
205
  province: string;
165
206
  urbanOrRural: "RURAL";
166
207
  village?: string | null | undefined;
208
+ }>, z.ZodUndefined, z.ZodObject<{
209
+ country: z.ZodString;
210
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
211
+ state: z.ZodString;
212
+ district2: z.ZodString;
213
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
214
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
215
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
216
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
217
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
218
+ }, "strip", z.ZodTypeAny, {
219
+ country: string;
220
+ state: string;
221
+ addressType: "INTERNATIONAL";
222
+ district2: string;
223
+ cityOrTown?: string | null | undefined;
224
+ addressLine1?: string | null | undefined;
225
+ addressLine2?: string | null | undefined;
226
+ addressLine3?: string | null | undefined;
227
+ postcodeOrZip?: string | null | undefined;
228
+ }, {
229
+ country: string;
230
+ state: string;
231
+ addressType: "INTERNATIONAL";
232
+ district2: string;
233
+ cityOrTown?: string | null | undefined;
234
+ addressLine1?: string | null | undefined;
235
+ addressLine2?: string | null | undefined;
236
+ addressLine3?: string | null | undefined;
237
+ postcodeOrZip?: string | null | undefined;
167
238
  }>]>>>;
168
239
  createdAtLocation: z.ZodString;
169
240
  }, {
170
- type: z.ZodEnum<[ActionType, ...ActionType[]]>;
241
+ type: z.ZodEnum<["DELETE", "CREATE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "DETECT_DUPLICATE", "REJECT", "MARKED_AS_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION", "READ", "ASSIGN", "UNASSIGN"]>;
171
242
  }>, "id">, "strip", z.ZodTypeAny, {
172
- type: ActionType;
173
- data: Record<string, string | number | boolean | {
243
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
244
+ createdAt: string;
245
+ createdBy: string;
246
+ declaration: Record<string, string | number | boolean | {
174
247
  type: string;
175
248
  filename: string;
176
249
  originalFilename: string;
177
250
  } | {
178
251
  country: string;
179
252
  district: string;
253
+ addressType: "DOMESTIC";
180
254
  province: string;
181
255
  urbanOrRural: "URBAN";
182
256
  number?: string | null | undefined;
@@ -187,25 +261,35 @@ export declare const Draft: z.ZodObject<{
187
261
  } | {
188
262
  country: string;
189
263
  district: string;
264
+ addressType: "DOMESTIC";
190
265
  province: string;
191
266
  urbanOrRural: "RURAL";
192
267
  village?: string | null | undefined;
268
+ } | {
269
+ country: string;
270
+ state: string;
271
+ addressType: "INTERNATIONAL";
272
+ district2: string;
273
+ cityOrTown?: string | null | undefined;
274
+ addressLine1?: string | null | undefined;
275
+ addressLine2?: string | null | undefined;
276
+ addressLine3?: string | null | undefined;
277
+ postcodeOrZip?: string | null | undefined;
193
278
  } | {
194
279
  type: string;
195
280
  option: string;
196
281
  filename: string;
197
282
  originalFilename: string;
198
- }[]>;
199
- createdAt: string;
200
- createdBy: string;
283
+ }[] | undefined>;
201
284
  createdAtLocation: string;
202
- metadata?: Record<string, string | number | boolean | {
285
+ annotation?: Record<string, string | number | boolean | {
203
286
  type: string;
204
287
  filename: string;
205
288
  originalFilename: string;
206
289
  } | {
207
290
  country: string;
208
291
  district: string;
292
+ addressType: "DOMESTIC";
209
293
  province: string;
210
294
  urbanOrRural: "URBAN";
211
295
  number?: string | null | undefined;
@@ -216,24 +300,38 @@ export declare const Draft: z.ZodObject<{
216
300
  } | {
217
301
  country: string;
218
302
  district: string;
303
+ addressType: "DOMESTIC";
219
304
  province: string;
220
305
  urbanOrRural: "RURAL";
221
306
  village?: string | null | undefined;
307
+ } | {
308
+ country: string;
309
+ state: string;
310
+ addressType: "INTERNATIONAL";
311
+ district2: string;
312
+ cityOrTown?: string | null | undefined;
313
+ addressLine1?: string | null | undefined;
314
+ addressLine2?: string | null | undefined;
315
+ addressLine3?: string | null | undefined;
316
+ postcodeOrZip?: string | null | undefined;
222
317
  } | {
223
318
  type: string;
224
319
  option: string;
225
320
  filename: string;
226
321
  originalFilename: string;
227
- }[]> | undefined;
322
+ }[] | undefined> | undefined;
228
323
  }, {
229
- type: ActionType;
230
- data: Record<string, string | number | boolean | {
324
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
325
+ createdAt: string;
326
+ createdBy: string;
327
+ declaration: Record<string, string | number | boolean | {
231
328
  type: string;
232
329
  filename: string;
233
330
  originalFilename: string;
234
331
  } | {
235
332
  country: string;
236
333
  district: string;
334
+ addressType: "DOMESTIC";
237
335
  province: string;
238
336
  urbanOrRural: "URBAN";
239
337
  number?: string | null | undefined;
@@ -244,25 +342,35 @@ export declare const Draft: z.ZodObject<{
244
342
  } | {
245
343
  country: string;
246
344
  district: string;
345
+ addressType: "DOMESTIC";
247
346
  province: string;
248
347
  urbanOrRural: "RURAL";
249
348
  village?: string | null | undefined;
349
+ } | {
350
+ country: string;
351
+ state: string;
352
+ addressType: "INTERNATIONAL";
353
+ district2: string;
354
+ cityOrTown?: string | null | undefined;
355
+ addressLine1?: string | null | undefined;
356
+ addressLine2?: string | null | undefined;
357
+ addressLine3?: string | null | undefined;
358
+ postcodeOrZip?: string | null | undefined;
250
359
  } | {
251
360
  type: string;
252
361
  option: string;
253
362
  filename: string;
254
363
  originalFilename: string;
255
- }[]>;
256
- createdAt: string;
257
- createdBy: string;
364
+ }[] | undefined>;
258
365
  createdAtLocation: string;
259
- metadata?: Record<string, string | number | boolean | {
366
+ annotation?: Record<string, string | number | boolean | {
260
367
  type: string;
261
368
  filename: string;
262
369
  originalFilename: string;
263
370
  } | {
264
371
  country: string;
265
372
  district: string;
373
+ addressType: "DOMESTIC";
266
374
  province: string;
267
375
  urbanOrRural: "URBAN";
268
376
  number?: string | null | undefined;
@@ -273,15 +381,26 @@ export declare const Draft: z.ZodObject<{
273
381
  } | {
274
382
  country: string;
275
383
  district: string;
384
+ addressType: "DOMESTIC";
276
385
  province: string;
277
386
  urbanOrRural: "RURAL";
278
387
  village?: string | null | undefined;
388
+ } | {
389
+ country: string;
390
+ state: string;
391
+ addressType: "INTERNATIONAL";
392
+ district2: string;
393
+ cityOrTown?: string | null | undefined;
394
+ addressLine1?: string | null | undefined;
395
+ addressLine2?: string | null | undefined;
396
+ addressLine3?: string | null | undefined;
397
+ postcodeOrZip?: string | null | undefined;
279
398
  } | {
280
399
  type: string;
281
400
  option: string;
282
401
  filename: string;
283
402
  originalFilename: string;
284
- }[]> | undefined;
403
+ }[] | undefined> | undefined;
285
404
  }>;
286
405
  }, "strip", z.ZodTypeAny, {
287
406
  id: string;
@@ -289,14 +408,17 @@ export declare const Draft: z.ZodObject<{
289
408
  eventId: string;
290
409
  transactionId: string;
291
410
  action: {
292
- type: ActionType;
293
- data: Record<string, string | number | boolean | {
411
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
412
+ createdAt: string;
413
+ createdBy: string;
414
+ declaration: Record<string, string | number | boolean | {
294
415
  type: string;
295
416
  filename: string;
296
417
  originalFilename: string;
297
418
  } | {
298
419
  country: string;
299
420
  district: string;
421
+ addressType: "DOMESTIC";
300
422
  province: string;
301
423
  urbanOrRural: "URBAN";
302
424
  number?: string | null | undefined;
@@ -307,25 +429,35 @@ export declare const Draft: z.ZodObject<{
307
429
  } | {
308
430
  country: string;
309
431
  district: string;
432
+ addressType: "DOMESTIC";
310
433
  province: string;
311
434
  urbanOrRural: "RURAL";
312
435
  village?: string | null | undefined;
436
+ } | {
437
+ country: string;
438
+ state: string;
439
+ addressType: "INTERNATIONAL";
440
+ district2: string;
441
+ cityOrTown?: string | null | undefined;
442
+ addressLine1?: string | null | undefined;
443
+ addressLine2?: string | null | undefined;
444
+ addressLine3?: string | null | undefined;
445
+ postcodeOrZip?: string | null | undefined;
313
446
  } | {
314
447
  type: string;
315
448
  option: string;
316
449
  filename: string;
317
450
  originalFilename: string;
318
- }[]>;
319
- createdAt: string;
320
- createdBy: string;
451
+ }[] | undefined>;
321
452
  createdAtLocation: string;
322
- metadata?: Record<string, string | number | boolean | {
453
+ annotation?: Record<string, string | number | boolean | {
323
454
  type: string;
324
455
  filename: string;
325
456
  originalFilename: string;
326
457
  } | {
327
458
  country: string;
328
459
  district: string;
460
+ addressType: "DOMESTIC";
329
461
  province: string;
330
462
  urbanOrRural: "URBAN";
331
463
  number?: string | null | undefined;
@@ -336,15 +468,26 @@ export declare const Draft: z.ZodObject<{
336
468
  } | {
337
469
  country: string;
338
470
  district: string;
471
+ addressType: "DOMESTIC";
339
472
  province: string;
340
473
  urbanOrRural: "RURAL";
341
474
  village?: string | null | undefined;
475
+ } | {
476
+ country: string;
477
+ state: string;
478
+ addressType: "INTERNATIONAL";
479
+ district2: string;
480
+ cityOrTown?: string | null | undefined;
481
+ addressLine1?: string | null | undefined;
482
+ addressLine2?: string | null | undefined;
483
+ addressLine3?: string | null | undefined;
484
+ postcodeOrZip?: string | null | undefined;
342
485
  } | {
343
486
  type: string;
344
487
  option: string;
345
488
  filename: string;
346
489
  originalFilename: string;
347
- }[]> | undefined;
490
+ }[] | undefined> | undefined;
348
491
  };
349
492
  }, {
350
493
  id: string;
@@ -352,14 +495,17 @@ export declare const Draft: z.ZodObject<{
352
495
  eventId: string;
353
496
  transactionId: string;
354
497
  action: {
355
- type: ActionType;
356
- data: Record<string, string | number | boolean | {
498
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
499
+ createdAt: string;
500
+ createdBy: string;
501
+ declaration: Record<string, string | number | boolean | {
357
502
  type: string;
358
503
  filename: string;
359
504
  originalFilename: string;
360
505
  } | {
361
506
  country: string;
362
507
  district: string;
508
+ addressType: "DOMESTIC";
363
509
  province: string;
364
510
  urbanOrRural: "URBAN";
365
511
  number?: string | null | undefined;
@@ -370,25 +516,35 @@ export declare const Draft: z.ZodObject<{
370
516
  } | {
371
517
  country: string;
372
518
  district: string;
519
+ addressType: "DOMESTIC";
373
520
  province: string;
374
521
  urbanOrRural: "RURAL";
375
522
  village?: string | null | undefined;
523
+ } | {
524
+ country: string;
525
+ state: string;
526
+ addressType: "INTERNATIONAL";
527
+ district2: string;
528
+ cityOrTown?: string | null | undefined;
529
+ addressLine1?: string | null | undefined;
530
+ addressLine2?: string | null | undefined;
531
+ addressLine3?: string | null | undefined;
532
+ postcodeOrZip?: string | null | undefined;
376
533
  } | {
377
534
  type: string;
378
535
  option: string;
379
536
  filename: string;
380
537
  originalFilename: string;
381
- }[]>;
382
- createdAt: string;
383
- createdBy: string;
538
+ }[] | undefined>;
384
539
  createdAtLocation: string;
385
- metadata?: Record<string, string | number | boolean | {
540
+ annotation?: Record<string, string | number | boolean | {
386
541
  type: string;
387
542
  filename: string;
388
543
  originalFilename: string;
389
544
  } | {
390
545
  country: string;
391
546
  district: string;
547
+ addressType: "DOMESTIC";
392
548
  province: string;
393
549
  urbanOrRural: "URBAN";
394
550
  number?: string | null | undefined;
@@ -399,21 +555,32 @@ export declare const Draft: z.ZodObject<{
399
555
  } | {
400
556
  country: string;
401
557
  district: string;
558
+ addressType: "DOMESTIC";
402
559
  province: string;
403
560
  urbanOrRural: "RURAL";
404
561
  village?: string | null | undefined;
562
+ } | {
563
+ country: string;
564
+ state: string;
565
+ addressType: "INTERNATIONAL";
566
+ district2: string;
567
+ cityOrTown?: string | null | undefined;
568
+ addressLine1?: string | null | undefined;
569
+ addressLine2?: string | null | undefined;
570
+ addressLine3?: string | null | undefined;
571
+ postcodeOrZip?: string | null | undefined;
405
572
  } | {
406
573
  type: string;
407
574
  option: string;
408
575
  filename: string;
409
576
  originalFilename: string;
410
- }[]> | undefined;
577
+ }[] | undefined> | undefined;
411
578
  };
412
579
  }>;
413
580
  export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
414
581
  eventId: z.ZodString;
415
582
  transactionId: z.ZodString;
416
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
583
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
417
584
  filename: z.ZodString;
418
585
  originalFilename: z.ZodString;
419
586
  type: z.ZodString;
@@ -442,6 +609,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
442
609
  originalFilename: string;
443
610
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
444
611
  country: z.ZodString;
612
+ addressType: z.ZodLiteral<"DOMESTIC">;
445
613
  province: z.ZodString;
446
614
  district: z.ZodString;
447
615
  }, {
@@ -454,6 +622,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
454
622
  }>, "strip", z.ZodTypeAny, {
455
623
  country: string;
456
624
  district: string;
625
+ addressType: "DOMESTIC";
457
626
  province: string;
458
627
  urbanOrRural: "URBAN";
459
628
  number?: string | null | undefined;
@@ -464,6 +633,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
464
633
  }, {
465
634
  country: string;
466
635
  district: string;
636
+ addressType: "DOMESTIC";
467
637
  province: string;
468
638
  urbanOrRural: "URBAN";
469
639
  number?: string | null | undefined;
@@ -473,6 +643,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
473
643
  zipCode?: string | null | undefined;
474
644
  }>, z.ZodObject<z.objectUtil.extendShape<{
475
645
  country: z.ZodString;
646
+ addressType: z.ZodLiteral<"DOMESTIC">;
476
647
  province: z.ZodString;
477
648
  district: z.ZodString;
478
649
  }, {
@@ -481,17 +652,49 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
481
652
  }>, "strip", z.ZodTypeAny, {
482
653
  country: string;
483
654
  district: string;
655
+ addressType: "DOMESTIC";
484
656
  province: string;
485
657
  urbanOrRural: "RURAL";
486
658
  village?: string | null | undefined;
487
659
  }, {
488
660
  country: string;
489
661
  district: string;
662
+ addressType: "DOMESTIC";
490
663
  province: string;
491
664
  urbanOrRural: "RURAL";
492
665
  village?: string | null | undefined;
666
+ }>, z.ZodUndefined, z.ZodObject<{
667
+ country: z.ZodString;
668
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
669
+ state: z.ZodString;
670
+ district2: z.ZodString;
671
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
672
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
673
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
674
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
675
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
676
+ }, "strip", z.ZodTypeAny, {
677
+ country: string;
678
+ state: string;
679
+ addressType: "INTERNATIONAL";
680
+ district2: string;
681
+ cityOrTown?: string | null | undefined;
682
+ addressLine1?: string | null | undefined;
683
+ addressLine2?: string | null | undefined;
684
+ addressLine3?: string | null | undefined;
685
+ postcodeOrZip?: string | null | undefined;
686
+ }, {
687
+ country: string;
688
+ state: string;
689
+ addressType: "INTERNATIONAL";
690
+ district2: string;
691
+ cityOrTown?: string | null | undefined;
692
+ addressLine1?: string | null | undefined;
693
+ addressLine2?: string | null | undefined;
694
+ addressLine3?: string | null | undefined;
695
+ postcodeOrZip?: string | null | undefined;
493
696
  }>]>>;
494
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
697
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
495
698
  filename: z.ZodString;
496
699
  originalFilename: z.ZodString;
497
700
  type: z.ZodString;
@@ -520,6 +723,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
520
723
  originalFilename: string;
521
724
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
522
725
  country: z.ZodString;
726
+ addressType: z.ZodLiteral<"DOMESTIC">;
523
727
  province: z.ZodString;
524
728
  district: z.ZodString;
525
729
  }, {
@@ -532,6 +736,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
532
736
  }>, "strip", z.ZodTypeAny, {
533
737
  country: string;
534
738
  district: string;
739
+ addressType: "DOMESTIC";
535
740
  province: string;
536
741
  urbanOrRural: "URBAN";
537
742
  number?: string | null | undefined;
@@ -542,6 +747,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
542
747
  }, {
543
748
  country: string;
544
749
  district: string;
750
+ addressType: "DOMESTIC";
545
751
  province: string;
546
752
  urbanOrRural: "URBAN";
547
753
  number?: string | null | undefined;
@@ -551,6 +757,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
551
757
  zipCode?: string | null | undefined;
552
758
  }>, z.ZodObject<z.objectUtil.extendShape<{
553
759
  country: z.ZodString;
760
+ addressType: z.ZodLiteral<"DOMESTIC">;
554
761
  province: z.ZodString;
555
762
  district: z.ZodString;
556
763
  }, {
@@ -559,27 +766,60 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
559
766
  }>, "strip", z.ZodTypeAny, {
560
767
  country: string;
561
768
  district: string;
769
+ addressType: "DOMESTIC";
562
770
  province: string;
563
771
  urbanOrRural: "RURAL";
564
772
  village?: string | null | undefined;
565
773
  }, {
566
774
  country: string;
567
775
  district: string;
776
+ addressType: "DOMESTIC";
568
777
  province: string;
569
778
  urbanOrRural: "RURAL";
570
779
  village?: string | null | undefined;
780
+ }>, z.ZodUndefined, z.ZodObject<{
781
+ country: z.ZodString;
782
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
783
+ state: z.ZodString;
784
+ district2: z.ZodString;
785
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
786
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
787
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
788
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
789
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
790
+ }, "strip", z.ZodTypeAny, {
791
+ country: string;
792
+ state: string;
793
+ addressType: "INTERNATIONAL";
794
+ district2: string;
795
+ cityOrTown?: string | null | undefined;
796
+ addressLine1?: string | null | undefined;
797
+ addressLine2?: string | null | undefined;
798
+ addressLine3?: string | null | undefined;
799
+ postcodeOrZip?: string | null | undefined;
800
+ }, {
801
+ country: string;
802
+ state: string;
803
+ addressType: "INTERNATIONAL";
804
+ district2: string;
805
+ cityOrTown?: string | null | undefined;
806
+ addressLine1?: string | null | undefined;
807
+ addressLine2?: string | null | undefined;
808
+ addressLine3?: string | null | undefined;
809
+ postcodeOrZip?: string | null | undefined;
571
810
  }>]>>>;
572
811
  }, {
573
- type: z.ZodEnum<[ActionType, ...ActionType[]]>;
812
+ type: z.ZodEnum<["DELETE", "CREATE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "DETECT_DUPLICATE", "REJECT", "MARKED_AS_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION", "READ", "ASSIGN", "UNASSIGN"]>;
574
813
  }>, "strip", z.ZodTypeAny, {
575
- type: ActionType;
576
- data: Record<string, string | number | boolean | {
814
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
815
+ declaration: Record<string, string | number | boolean | {
577
816
  type: string;
578
817
  filename: string;
579
818
  originalFilename: string;
580
819
  } | {
581
820
  country: string;
582
821
  district: string;
822
+ addressType: "DOMESTIC";
583
823
  province: string;
584
824
  urbanOrRural: "URBAN";
585
825
  number?: string | null | undefined;
@@ -590,24 +830,36 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
590
830
  } | {
591
831
  country: string;
592
832
  district: string;
833
+ addressType: "DOMESTIC";
593
834
  province: string;
594
835
  urbanOrRural: "RURAL";
595
836
  village?: string | null | undefined;
837
+ } | {
838
+ country: string;
839
+ state: string;
840
+ addressType: "INTERNATIONAL";
841
+ district2: string;
842
+ cityOrTown?: string | null | undefined;
843
+ addressLine1?: string | null | undefined;
844
+ addressLine2?: string | null | undefined;
845
+ addressLine3?: string | null | undefined;
846
+ postcodeOrZip?: string | null | undefined;
596
847
  } | {
597
848
  type: string;
598
849
  option: string;
599
850
  filename: string;
600
851
  originalFilename: string;
601
- }[]>;
852
+ }[] | undefined>;
602
853
  eventId: string;
603
854
  transactionId: string;
604
- metadata?: Record<string, string | number | boolean | {
855
+ annotation?: Record<string, string | number | boolean | {
605
856
  type: string;
606
857
  filename: string;
607
858
  originalFilename: string;
608
859
  } | {
609
860
  country: string;
610
861
  district: string;
862
+ addressType: "DOMESTIC";
611
863
  province: string;
612
864
  urbanOrRural: "URBAN";
613
865
  number?: string | null | undefined;
@@ -618,24 +870,36 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
618
870
  } | {
619
871
  country: string;
620
872
  district: string;
873
+ addressType: "DOMESTIC";
621
874
  province: string;
622
875
  urbanOrRural: "RURAL";
623
876
  village?: string | null | undefined;
877
+ } | {
878
+ country: string;
879
+ state: string;
880
+ addressType: "INTERNATIONAL";
881
+ district2: string;
882
+ cityOrTown?: string | null | undefined;
883
+ addressLine1?: string | null | undefined;
884
+ addressLine2?: string | null | undefined;
885
+ addressLine3?: string | null | undefined;
886
+ postcodeOrZip?: string | null | undefined;
624
887
  } | {
625
888
  type: string;
626
889
  option: string;
627
890
  filename: string;
628
891
  originalFilename: string;
629
- }[]> | undefined;
892
+ }[] | undefined> | undefined;
630
893
  }, {
631
- type: ActionType;
632
- data: Record<string, string | number | boolean | {
894
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
895
+ declaration: Record<string, string | number | boolean | {
633
896
  type: string;
634
897
  filename: string;
635
898
  originalFilename: string;
636
899
  } | {
637
900
  country: string;
638
901
  district: string;
902
+ addressType: "DOMESTIC";
639
903
  province: string;
640
904
  urbanOrRural: "URBAN";
641
905
  number?: string | null | undefined;
@@ -646,24 +910,36 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
646
910
  } | {
647
911
  country: string;
648
912
  district: string;
913
+ addressType: "DOMESTIC";
649
914
  province: string;
650
915
  urbanOrRural: "RURAL";
651
916
  village?: string | null | undefined;
917
+ } | {
918
+ country: string;
919
+ state: string;
920
+ addressType: "INTERNATIONAL";
921
+ district2: string;
922
+ cityOrTown?: string | null | undefined;
923
+ addressLine1?: string | null | undefined;
924
+ addressLine2?: string | null | undefined;
925
+ addressLine3?: string | null | undefined;
926
+ postcodeOrZip?: string | null | undefined;
652
927
  } | {
653
928
  type: string;
654
929
  option: string;
655
930
  filename: string;
656
931
  originalFilename: string;
657
- }[]>;
932
+ }[] | undefined>;
658
933
  eventId: string;
659
934
  transactionId: string;
660
- metadata?: Record<string, string | number | boolean | {
935
+ annotation?: Record<string, string | number | boolean | {
661
936
  type: string;
662
937
  filename: string;
663
938
  originalFilename: string;
664
939
  } | {
665
940
  country: string;
666
941
  district: string;
942
+ addressType: "DOMESTIC";
667
943
  province: string;
668
944
  urbanOrRural: "URBAN";
669
945
  number?: string | null | undefined;
@@ -674,15 +950,26 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
674
950
  } | {
675
951
  country: string;
676
952
  district: string;
953
+ addressType: "DOMESTIC";
677
954
  province: string;
678
955
  urbanOrRural: "RURAL";
679
956
  village?: string | null | undefined;
957
+ } | {
958
+ country: string;
959
+ state: string;
960
+ addressType: "INTERNATIONAL";
961
+ district2: string;
962
+ cityOrTown?: string | null | undefined;
963
+ addressLine1?: string | null | undefined;
964
+ addressLine2?: string | null | undefined;
965
+ addressLine3?: string | null | undefined;
966
+ postcodeOrZip?: string | null | undefined;
680
967
  } | {
681
968
  type: string;
682
969
  option: string;
683
970
  filename: string;
684
971
  originalFilename: string;
685
- }[]> | undefined;
972
+ }[] | undefined> | undefined;
686
973
  }>;
687
974
  export type Draft = z.infer<typeof Draft>;
688
975
  export type DraftInput = z.infer<typeof DraftInput>;