@opencrvs/toolkit 1.8.0-rc.fb5b9fe → 1.8.0-rc.fb5f1af
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/dist/commons/api/router.d.ts +7226 -9201
- package/dist/commons/conditionals/conditionals.d.ts +4 -12
- package/dist/commons/conditionals/validate.d.ts +6 -0
- package/dist/commons/events/ActionConfig.d.ts +42985 -22929
- package/dist/commons/events/ActionDocument.d.ts +3599 -1052
- package/dist/commons/events/ActionInput.d.ts +2942 -842
- package/dist/commons/events/ActionType.d.ts +4 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +339 -36
- package/dist/commons/events/CompositeFieldValue.d.ts +37 -9
- package/dist/commons/events/Constants.d.ts +1 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +1891 -741
- package/dist/commons/events/Draft.d.ts +248 -75
- package/dist/commons/events/EventConfig.d.ts +17983 -8266
- package/dist/commons/events/EventDocument.d.ts +2260 -673
- package/dist/commons/events/EventIndex.d.ts +1069 -196
- package/dist/commons/events/EventMetadata.d.ts +52 -40
- package/dist/commons/events/FieldConfig.d.ts +2303 -926
- package/dist/commons/events/FieldType.d.ts +5 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +144 -73
- package/dist/commons/events/FieldValue.d.ts +85 -20
- package/dist/commons/events/FormConfig.d.ts +23361 -14925
- package/dist/commons/events/PageConfig.d.ts +3730 -1662
- package/dist/commons/events/SummaryConfig.d.ts +0 -5
- package/dist/commons/events/User.d.ts +6 -3
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +11 -11
- package/dist/commons/events/WorkqueueConfig.d.ts +5509 -1918
- package/dist/commons/events/defineConfig.d.ts +1762 -126
- package/dist/commons/events/event.d.ts +10 -18
- package/dist/commons/events/field.d.ts +9 -0
- package/dist/commons/events/index.d.ts +1 -0
- package/dist/commons/events/scopes.d.ts +1 -2
- package/dist/commons/events/test.utils.d.ts +181 -49
- package/dist/commons/events/utils.d.ts +13653 -1222
- package/dist/conditionals/index.js +40 -52
- package/dist/events/index.js +2274 -1491
- package/dist/scopes/index.d.ts +96 -7
- package/dist/scopes/index.js +105 -26
- package/package.json +3 -3
@@ -5,39 +5,49 @@ export declare const Draft: z.ZodObject<{
|
|
5
5
|
transactionId: z.ZodString;
|
6
6
|
createdAt: z.ZodString;
|
7
7
|
action: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
8
|
-
id: z.ZodString
|
8
|
+
id: z.ZodBranded<z.ZodString, "UUID">;
|
9
9
|
transactionId: z.ZodString;
|
10
|
+
createdByUserType: z.ZodEnum<["user", "system"]>;
|
10
11
|
createdAt: z.ZodString;
|
11
12
|
createdBy: z.ZodString;
|
12
13
|
createdByRole: z.ZodString;
|
13
14
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
14
15
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
15
|
-
declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.
|
16
|
-
|
16
|
+
declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
|
17
|
+
start: z.ZodString;
|
18
|
+
end: z.ZodString;
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
20
|
+
start: string;
|
21
|
+
end: string;
|
22
|
+
}, {
|
23
|
+
start: string;
|
24
|
+
end: string;
|
25
|
+
}>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
26
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
17
27
|
originalFilename: z.ZodString;
|
18
28
|
type: z.ZodString;
|
19
29
|
}, "strip", z.ZodTypeAny, {
|
20
30
|
type: string;
|
21
|
-
|
31
|
+
path: string;
|
22
32
|
originalFilename: string;
|
23
33
|
}, {
|
24
34
|
type: string;
|
25
|
-
|
35
|
+
path: string;
|
26
36
|
originalFilename: string;
|
27
37
|
}>, z.ZodArray<z.ZodObject<{
|
28
|
-
|
38
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
29
39
|
originalFilename: z.ZodString;
|
30
40
|
type: z.ZodString;
|
31
41
|
option: z.ZodString;
|
32
42
|
}, "strip", z.ZodTypeAny, {
|
33
43
|
type: string;
|
34
44
|
option: string;
|
35
|
-
|
45
|
+
path: string;
|
36
46
|
originalFilename: string;
|
37
47
|
}, {
|
38
48
|
type: string;
|
39
49
|
option: string;
|
40
|
-
|
50
|
+
path: string;
|
41
51
|
originalFilename: string;
|
42
52
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
43
53
|
country: z.ZodString;
|
@@ -125,33 +135,54 @@ export declare const Draft: z.ZodObject<{
|
|
125
135
|
addressLine2?: string | null | undefined;
|
126
136
|
addressLine3?: string | null | undefined;
|
127
137
|
postcodeOrZip?: string | null | undefined;
|
128
|
-
}
|
129
|
-
|
130
|
-
|
138
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
139
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
140
|
+
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
141
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
142
|
+
}, "strip", z.ZodTypeAny, {
|
143
|
+
firstname?: string | null | undefined;
|
144
|
+
surname?: string | null | undefined;
|
145
|
+
middlename?: string | null | undefined;
|
146
|
+
}, {
|
147
|
+
firstname?: string | null | undefined;
|
148
|
+
surname?: string | null | undefined;
|
149
|
+
middlename?: string | null | undefined;
|
150
|
+
}>, z.ZodNull]>, z.ZodUndefined]>]>>;
|
151
|
+
annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
|
152
|
+
start: z.ZodString;
|
153
|
+
end: z.ZodString;
|
154
|
+
}, "strip", z.ZodTypeAny, {
|
155
|
+
start: string;
|
156
|
+
end: string;
|
157
|
+
}, {
|
158
|
+
start: string;
|
159
|
+
end: string;
|
160
|
+
}>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
161
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
131
162
|
originalFilename: z.ZodString;
|
132
163
|
type: z.ZodString;
|
133
164
|
}, "strip", z.ZodTypeAny, {
|
134
165
|
type: string;
|
135
|
-
|
166
|
+
path: string;
|
136
167
|
originalFilename: string;
|
137
168
|
}, {
|
138
169
|
type: string;
|
139
|
-
|
170
|
+
path: string;
|
140
171
|
originalFilename: string;
|
141
172
|
}>, z.ZodArray<z.ZodObject<{
|
142
|
-
|
173
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
143
174
|
originalFilename: z.ZodString;
|
144
175
|
type: z.ZodString;
|
145
176
|
option: z.ZodString;
|
146
177
|
}, "strip", z.ZodTypeAny, {
|
147
178
|
type: string;
|
148
179
|
option: string;
|
149
|
-
|
180
|
+
path: string;
|
150
181
|
originalFilename: string;
|
151
182
|
}, {
|
152
183
|
type: string;
|
153
184
|
option: string;
|
154
|
-
|
185
|
+
path: string;
|
155
186
|
originalFilename: string;
|
156
187
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
157
188
|
country: z.ZodString;
|
@@ -239,21 +270,34 @@ export declare const Draft: z.ZodObject<{
|
|
239
270
|
addressLine2?: string | null | undefined;
|
240
271
|
addressLine3?: string | null | undefined;
|
241
272
|
postcodeOrZip?: string | null | undefined;
|
242
|
-
}
|
273
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
274
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
275
|
+
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
276
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
277
|
+
}, "strip", z.ZodTypeAny, {
|
278
|
+
firstname?: string | null | undefined;
|
279
|
+
surname?: string | null | undefined;
|
280
|
+
middlename?: string | null | undefined;
|
281
|
+
}, {
|
282
|
+
firstname?: string | null | undefined;
|
283
|
+
surname?: string | null | undefined;
|
284
|
+
middlename?: string | null | undefined;
|
285
|
+
}>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
|
243
286
|
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
244
287
|
originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
|
245
288
|
}, {
|
246
289
|
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"]>;
|
247
290
|
}>, "id">, "strip", z.ZodTypeAny, {
|
248
|
-
type: "
|
291
|
+
type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
249
292
|
status: "Rejected" | "Requested" | "Accepted";
|
250
293
|
transactionId: string;
|
294
|
+
createdByUserType: "system" | "user";
|
251
295
|
createdAt: string;
|
252
296
|
createdBy: string;
|
253
297
|
createdByRole: string;
|
254
298
|
declaration: Record<string, string | number | boolean | {
|
255
299
|
type: string;
|
256
|
-
|
300
|
+
path: string;
|
257
301
|
originalFilename: string;
|
258
302
|
} | {
|
259
303
|
country: string;
|
@@ -266,6 +310,10 @@ export declare const Draft: z.ZodObject<{
|
|
266
310
|
residentialArea?: string | null | undefined;
|
267
311
|
street?: string | null | undefined;
|
268
312
|
zipCode?: string | null | undefined;
|
313
|
+
} | {
|
314
|
+
firstname?: string | null | undefined;
|
315
|
+
surname?: string | null | undefined;
|
316
|
+
middlename?: string | null | undefined;
|
269
317
|
} | {
|
270
318
|
country: string;
|
271
319
|
district: string;
|
@@ -286,14 +334,17 @@ export declare const Draft: z.ZodObject<{
|
|
286
334
|
} | {
|
287
335
|
type: string;
|
288
336
|
option: string;
|
289
|
-
|
337
|
+
path: string;
|
290
338
|
originalFilename: string;
|
291
|
-
}[] |
|
339
|
+
}[] | {
|
340
|
+
start: string;
|
341
|
+
end: string;
|
342
|
+
} | null | undefined>;
|
292
343
|
createdBySignature?: string | null | undefined;
|
293
344
|
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
294
345
|
annotation?: Record<string, string | number | boolean | {
|
295
346
|
type: string;
|
296
|
-
|
347
|
+
path: string;
|
297
348
|
originalFilename: string;
|
298
349
|
} | {
|
299
350
|
country: string;
|
@@ -306,6 +357,10 @@ export declare const Draft: z.ZodObject<{
|
|
306
357
|
residentialArea?: string | null | undefined;
|
307
358
|
street?: string | null | undefined;
|
308
359
|
zipCode?: string | null | undefined;
|
360
|
+
} | {
|
361
|
+
firstname?: string | null | undefined;
|
362
|
+
surname?: string | null | undefined;
|
363
|
+
middlename?: string | null | undefined;
|
309
364
|
} | {
|
310
365
|
country: string;
|
311
366
|
district: string;
|
@@ -326,20 +381,24 @@ export declare const Draft: z.ZodObject<{
|
|
326
381
|
} | {
|
327
382
|
type: string;
|
328
383
|
option: string;
|
329
|
-
|
384
|
+
path: string;
|
330
385
|
originalFilename: string;
|
331
|
-
}[] |
|
386
|
+
}[] | {
|
387
|
+
start: string;
|
388
|
+
end: string;
|
389
|
+
} | null | undefined> | null | undefined;
|
332
390
|
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
333
391
|
}, {
|
334
|
-
type: "
|
392
|
+
type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
335
393
|
status: "Rejected" | "Requested" | "Accepted";
|
336
394
|
transactionId: string;
|
395
|
+
createdByUserType: "system" | "user";
|
337
396
|
createdAt: string;
|
338
397
|
createdBy: string;
|
339
398
|
createdByRole: string;
|
340
399
|
declaration: Record<string, string | number | boolean | {
|
341
400
|
type: string;
|
342
|
-
|
401
|
+
path: string;
|
343
402
|
originalFilename: string;
|
344
403
|
} | {
|
345
404
|
country: string;
|
@@ -352,6 +411,10 @@ export declare const Draft: z.ZodObject<{
|
|
352
411
|
residentialArea?: string | null | undefined;
|
353
412
|
street?: string | null | undefined;
|
354
413
|
zipCode?: string | null | undefined;
|
414
|
+
} | {
|
415
|
+
firstname?: string | null | undefined;
|
416
|
+
surname?: string | null | undefined;
|
417
|
+
middlename?: string | null | undefined;
|
355
418
|
} | {
|
356
419
|
country: string;
|
357
420
|
district: string;
|
@@ -372,14 +435,17 @@ export declare const Draft: z.ZodObject<{
|
|
372
435
|
} | {
|
373
436
|
type: string;
|
374
437
|
option: string;
|
375
|
-
|
438
|
+
path: string;
|
376
439
|
originalFilename: string;
|
377
|
-
}[] |
|
440
|
+
}[] | {
|
441
|
+
start: string;
|
442
|
+
end: string;
|
443
|
+
} | null | undefined>;
|
378
444
|
createdBySignature?: string | null | undefined;
|
379
445
|
createdAtLocation?: string | null | undefined;
|
380
446
|
annotation?: Record<string, string | number | boolean | {
|
381
447
|
type: string;
|
382
|
-
|
448
|
+
path: string;
|
383
449
|
originalFilename: string;
|
384
450
|
} | {
|
385
451
|
country: string;
|
@@ -392,6 +458,10 @@ export declare const Draft: z.ZodObject<{
|
|
392
458
|
residentialArea?: string | null | undefined;
|
393
459
|
street?: string | null | undefined;
|
394
460
|
zipCode?: string | null | undefined;
|
461
|
+
} | {
|
462
|
+
firstname?: string | null | undefined;
|
463
|
+
surname?: string | null | undefined;
|
464
|
+
middlename?: string | null | undefined;
|
395
465
|
} | {
|
396
466
|
country: string;
|
397
467
|
district: string;
|
@@ -412,9 +482,12 @@ export declare const Draft: z.ZodObject<{
|
|
412
482
|
} | {
|
413
483
|
type: string;
|
414
484
|
option: string;
|
415
|
-
|
485
|
+
path: string;
|
416
486
|
originalFilename: string;
|
417
|
-
}[] |
|
487
|
+
}[] | {
|
488
|
+
start: string;
|
489
|
+
end: string;
|
490
|
+
} | null | undefined> | null | undefined;
|
418
491
|
originalActionId?: string | null | undefined;
|
419
492
|
}>;
|
420
493
|
}, "strip", z.ZodTypeAny, {
|
@@ -423,15 +496,16 @@ export declare const Draft: z.ZodObject<{
|
|
423
496
|
createdAt: string;
|
424
497
|
eventId: string & z.BRAND<"UUID">;
|
425
498
|
action: {
|
426
|
-
type: "
|
499
|
+
type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
427
500
|
status: "Rejected" | "Requested" | "Accepted";
|
428
501
|
transactionId: string;
|
502
|
+
createdByUserType: "system" | "user";
|
429
503
|
createdAt: string;
|
430
504
|
createdBy: string;
|
431
505
|
createdByRole: string;
|
432
506
|
declaration: Record<string, string | number | boolean | {
|
433
507
|
type: string;
|
434
|
-
|
508
|
+
path: string;
|
435
509
|
originalFilename: string;
|
436
510
|
} | {
|
437
511
|
country: string;
|
@@ -444,6 +518,10 @@ export declare const Draft: z.ZodObject<{
|
|
444
518
|
residentialArea?: string | null | undefined;
|
445
519
|
street?: string | null | undefined;
|
446
520
|
zipCode?: string | null | undefined;
|
521
|
+
} | {
|
522
|
+
firstname?: string | null | undefined;
|
523
|
+
surname?: string | null | undefined;
|
524
|
+
middlename?: string | null | undefined;
|
447
525
|
} | {
|
448
526
|
country: string;
|
449
527
|
district: string;
|
@@ -464,14 +542,17 @@ export declare const Draft: z.ZodObject<{
|
|
464
542
|
} | {
|
465
543
|
type: string;
|
466
544
|
option: string;
|
467
|
-
|
545
|
+
path: string;
|
468
546
|
originalFilename: string;
|
469
|
-
}[] |
|
547
|
+
}[] | {
|
548
|
+
start: string;
|
549
|
+
end: string;
|
550
|
+
} | null | undefined>;
|
470
551
|
createdBySignature?: string | null | undefined;
|
471
552
|
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
472
553
|
annotation?: Record<string, string | number | boolean | {
|
473
554
|
type: string;
|
474
|
-
|
555
|
+
path: string;
|
475
556
|
originalFilename: string;
|
476
557
|
} | {
|
477
558
|
country: string;
|
@@ -484,6 +565,10 @@ export declare const Draft: z.ZodObject<{
|
|
484
565
|
residentialArea?: string | null | undefined;
|
485
566
|
street?: string | null | undefined;
|
486
567
|
zipCode?: string | null | undefined;
|
568
|
+
} | {
|
569
|
+
firstname?: string | null | undefined;
|
570
|
+
surname?: string | null | undefined;
|
571
|
+
middlename?: string | null | undefined;
|
487
572
|
} | {
|
488
573
|
country: string;
|
489
574
|
district: string;
|
@@ -504,9 +589,12 @@ export declare const Draft: z.ZodObject<{
|
|
504
589
|
} | {
|
505
590
|
type: string;
|
506
591
|
option: string;
|
507
|
-
|
592
|
+
path: string;
|
508
593
|
originalFilename: string;
|
509
|
-
}[] |
|
594
|
+
}[] | {
|
595
|
+
start: string;
|
596
|
+
end: string;
|
597
|
+
} | null | undefined> | null | undefined;
|
510
598
|
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
511
599
|
};
|
512
600
|
}, {
|
@@ -515,15 +603,16 @@ export declare const Draft: z.ZodObject<{
|
|
515
603
|
createdAt: string;
|
516
604
|
eventId: string;
|
517
605
|
action: {
|
518
|
-
type: "
|
606
|
+
type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
519
607
|
status: "Rejected" | "Requested" | "Accepted";
|
520
608
|
transactionId: string;
|
609
|
+
createdByUserType: "system" | "user";
|
521
610
|
createdAt: string;
|
522
611
|
createdBy: string;
|
523
612
|
createdByRole: string;
|
524
613
|
declaration: Record<string, string | number | boolean | {
|
525
614
|
type: string;
|
526
|
-
|
615
|
+
path: string;
|
527
616
|
originalFilename: string;
|
528
617
|
} | {
|
529
618
|
country: string;
|
@@ -536,6 +625,10 @@ export declare const Draft: z.ZodObject<{
|
|
536
625
|
residentialArea?: string | null | undefined;
|
537
626
|
street?: string | null | undefined;
|
538
627
|
zipCode?: string | null | undefined;
|
628
|
+
} | {
|
629
|
+
firstname?: string | null | undefined;
|
630
|
+
surname?: string | null | undefined;
|
631
|
+
middlename?: string | null | undefined;
|
539
632
|
} | {
|
540
633
|
country: string;
|
541
634
|
district: string;
|
@@ -556,14 +649,17 @@ export declare const Draft: z.ZodObject<{
|
|
556
649
|
} | {
|
557
650
|
type: string;
|
558
651
|
option: string;
|
559
|
-
|
652
|
+
path: string;
|
560
653
|
originalFilename: string;
|
561
|
-
}[] |
|
654
|
+
}[] | {
|
655
|
+
start: string;
|
656
|
+
end: string;
|
657
|
+
} | null | undefined>;
|
562
658
|
createdBySignature?: string | null | undefined;
|
563
659
|
createdAtLocation?: string | null | undefined;
|
564
660
|
annotation?: Record<string, string | number | boolean | {
|
565
661
|
type: string;
|
566
|
-
|
662
|
+
path: string;
|
567
663
|
originalFilename: string;
|
568
664
|
} | {
|
569
665
|
country: string;
|
@@ -576,6 +672,10 @@ export declare const Draft: z.ZodObject<{
|
|
576
672
|
residentialArea?: string | null | undefined;
|
577
673
|
street?: string | null | undefined;
|
578
674
|
zipCode?: string | null | undefined;
|
675
|
+
} | {
|
676
|
+
firstname?: string | null | undefined;
|
677
|
+
surname?: string | null | undefined;
|
678
|
+
middlename?: string | null | undefined;
|
579
679
|
} | {
|
580
680
|
country: string;
|
581
681
|
district: string;
|
@@ -596,41 +696,53 @@ export declare const Draft: z.ZodObject<{
|
|
596
696
|
} | {
|
597
697
|
type: string;
|
598
698
|
option: string;
|
599
|
-
|
699
|
+
path: string;
|
600
700
|
originalFilename: string;
|
601
|
-
}[] |
|
701
|
+
}[] | {
|
702
|
+
start: string;
|
703
|
+
end: string;
|
704
|
+
} | null | undefined> | null | undefined;
|
602
705
|
originalActionId?: string | null | undefined;
|
603
706
|
};
|
604
707
|
}>;
|
605
708
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
606
709
|
eventId: z.ZodBranded<z.ZodString, "UUID">;
|
607
710
|
transactionId: z.ZodString;
|
608
|
-
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.
|
609
|
-
|
711
|
+
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
|
712
|
+
start: z.ZodString;
|
713
|
+
end: z.ZodString;
|
714
|
+
}, "strip", z.ZodTypeAny, {
|
715
|
+
start: string;
|
716
|
+
end: string;
|
717
|
+
}, {
|
718
|
+
start: string;
|
719
|
+
end: string;
|
720
|
+
}>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
721
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
610
722
|
originalFilename: z.ZodString;
|
611
723
|
type: z.ZodString;
|
612
724
|
}, "strip", z.ZodTypeAny, {
|
613
725
|
type: string;
|
614
|
-
|
726
|
+
path: string;
|
615
727
|
originalFilename: string;
|
616
728
|
}, {
|
617
729
|
type: string;
|
618
|
-
|
730
|
+
path: string;
|
619
731
|
originalFilename: string;
|
620
732
|
}>, z.ZodArray<z.ZodObject<{
|
621
|
-
|
733
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
622
734
|
originalFilename: z.ZodString;
|
623
735
|
type: z.ZodString;
|
624
736
|
option: z.ZodString;
|
625
737
|
}, "strip", z.ZodTypeAny, {
|
626
738
|
type: string;
|
627
739
|
option: string;
|
628
|
-
|
740
|
+
path: string;
|
629
741
|
originalFilename: string;
|
630
742
|
}, {
|
631
743
|
type: string;
|
632
744
|
option: string;
|
633
|
-
|
745
|
+
path: string;
|
634
746
|
originalFilename: string;
|
635
747
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
636
748
|
country: z.ZodString;
|
@@ -718,33 +830,54 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
718
830
|
addressLine2?: string | null | undefined;
|
719
831
|
addressLine3?: string | null | undefined;
|
720
832
|
postcodeOrZip?: string | null | undefined;
|
721
|
-
}
|
722
|
-
|
723
|
-
|
833
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
834
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
835
|
+
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
836
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
837
|
+
}, "strip", z.ZodTypeAny, {
|
838
|
+
firstname?: string | null | undefined;
|
839
|
+
surname?: string | null | undefined;
|
840
|
+
middlename?: string | null | undefined;
|
841
|
+
}, {
|
842
|
+
firstname?: string | null | undefined;
|
843
|
+
surname?: string | null | undefined;
|
844
|
+
middlename?: string | null | undefined;
|
845
|
+
}>, z.ZodNull]>, z.ZodUndefined]>]>>>;
|
846
|
+
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
|
847
|
+
start: z.ZodString;
|
848
|
+
end: z.ZodString;
|
849
|
+
}, "strip", z.ZodTypeAny, {
|
850
|
+
start: string;
|
851
|
+
end: string;
|
852
|
+
}, {
|
853
|
+
start: string;
|
854
|
+
end: string;
|
855
|
+
}>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
856
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
724
857
|
originalFilename: z.ZodString;
|
725
858
|
type: z.ZodString;
|
726
859
|
}, "strip", z.ZodTypeAny, {
|
727
860
|
type: string;
|
728
|
-
|
861
|
+
path: string;
|
729
862
|
originalFilename: string;
|
730
863
|
}, {
|
731
864
|
type: string;
|
732
|
-
|
865
|
+
path: string;
|
733
866
|
originalFilename: string;
|
734
867
|
}>, z.ZodArray<z.ZodObject<{
|
735
|
-
|
868
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
736
869
|
originalFilename: z.ZodString;
|
737
870
|
type: z.ZodString;
|
738
871
|
option: z.ZodString;
|
739
872
|
}, "strip", z.ZodTypeAny, {
|
740
873
|
type: string;
|
741
874
|
option: string;
|
742
|
-
|
875
|
+
path: string;
|
743
876
|
originalFilename: string;
|
744
877
|
}, {
|
745
878
|
type: string;
|
746
879
|
option: string;
|
747
|
-
|
880
|
+
path: string;
|
748
881
|
originalFilename: string;
|
749
882
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
750
883
|
country: z.ZodString;
|
@@ -832,19 +965,31 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
832
965
|
addressLine2?: string | null | undefined;
|
833
966
|
addressLine3?: string | null | undefined;
|
834
967
|
postcodeOrZip?: string | null | undefined;
|
835
|
-
}
|
968
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
969
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
970
|
+
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
971
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
972
|
+
}, "strip", z.ZodTypeAny, {
|
973
|
+
firstname?: string | null | undefined;
|
974
|
+
surname?: string | null | undefined;
|
975
|
+
middlename?: string | null | undefined;
|
976
|
+
}, {
|
977
|
+
firstname?: string | null | undefined;
|
978
|
+
surname?: string | null | undefined;
|
979
|
+
middlename?: string | null | undefined;
|
980
|
+
}>, z.ZodNull]>, z.ZodUndefined]>]>>>;
|
836
981
|
originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
|
837
982
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
838
983
|
}, {
|
839
984
|
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"]>;
|
840
985
|
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
841
986
|
}>, "strip", z.ZodTypeAny, {
|
842
|
-
type: "
|
987
|
+
type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
843
988
|
status: "Rejected" | "Requested" | "Accepted";
|
844
989
|
transactionId: string;
|
845
990
|
declaration: Record<string, string | number | boolean | {
|
846
991
|
type: string;
|
847
|
-
|
992
|
+
path: string;
|
848
993
|
originalFilename: string;
|
849
994
|
} | {
|
850
995
|
country: string;
|
@@ -857,6 +1002,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
857
1002
|
residentialArea?: string | null | undefined;
|
858
1003
|
street?: string | null | undefined;
|
859
1004
|
zipCode?: string | null | undefined;
|
1005
|
+
} | {
|
1006
|
+
firstname?: string | null | undefined;
|
1007
|
+
surname?: string | null | undefined;
|
1008
|
+
middlename?: string | null | undefined;
|
860
1009
|
} | {
|
861
1010
|
country: string;
|
862
1011
|
district: string;
|
@@ -877,13 +1026,16 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
877
1026
|
} | {
|
878
1027
|
type: string;
|
879
1028
|
option: string;
|
880
|
-
|
1029
|
+
path: string;
|
881
1030
|
originalFilename: string;
|
882
|
-
}[] |
|
1031
|
+
}[] | {
|
1032
|
+
start: string;
|
1033
|
+
end: string;
|
1034
|
+
} | null | undefined>;
|
883
1035
|
eventId: string & z.BRAND<"UUID">;
|
884
1036
|
annotation?: Record<string, string | number | boolean | {
|
885
1037
|
type: string;
|
886
|
-
|
1038
|
+
path: string;
|
887
1039
|
originalFilename: string;
|
888
1040
|
} | {
|
889
1041
|
country: string;
|
@@ -896,6 +1048,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
896
1048
|
residentialArea?: string | null | undefined;
|
897
1049
|
street?: string | null | undefined;
|
898
1050
|
zipCode?: string | null | undefined;
|
1051
|
+
} | {
|
1052
|
+
firstname?: string | null | undefined;
|
1053
|
+
surname?: string | null | undefined;
|
1054
|
+
middlename?: string | null | undefined;
|
899
1055
|
} | {
|
900
1056
|
country: string;
|
901
1057
|
district: string;
|
@@ -916,19 +1072,22 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
916
1072
|
} | {
|
917
1073
|
type: string;
|
918
1074
|
option: string;
|
919
|
-
|
1075
|
+
path: string;
|
920
1076
|
originalFilename: string;
|
921
|
-
}[] |
|
1077
|
+
}[] | {
|
1078
|
+
start: string;
|
1079
|
+
end: string;
|
1080
|
+
} | null | undefined> | undefined;
|
922
1081
|
originalActionId?: (string & z.BRAND<"UUID">) | undefined;
|
923
1082
|
keepAssignment?: boolean | undefined;
|
924
1083
|
}, {
|
925
|
-
type: "
|
1084
|
+
type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
926
1085
|
status: "Rejected" | "Requested" | "Accepted";
|
927
1086
|
transactionId: string;
|
928
1087
|
eventId: string;
|
929
1088
|
declaration?: Record<string, string | number | boolean | {
|
930
1089
|
type: string;
|
931
|
-
|
1090
|
+
path: string;
|
932
1091
|
originalFilename: string;
|
933
1092
|
} | {
|
934
1093
|
country: string;
|
@@ -941,6 +1100,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
941
1100
|
residentialArea?: string | null | undefined;
|
942
1101
|
street?: string | null | undefined;
|
943
1102
|
zipCode?: string | null | undefined;
|
1103
|
+
} | {
|
1104
|
+
firstname?: string | null | undefined;
|
1105
|
+
surname?: string | null | undefined;
|
1106
|
+
middlename?: string | null | undefined;
|
944
1107
|
} | {
|
945
1108
|
country: string;
|
946
1109
|
district: string;
|
@@ -961,12 +1124,15 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
961
1124
|
} | {
|
962
1125
|
type: string;
|
963
1126
|
option: string;
|
964
|
-
|
1127
|
+
path: string;
|
965
1128
|
originalFilename: string;
|
966
|
-
}[] |
|
1129
|
+
}[] | {
|
1130
|
+
start: string;
|
1131
|
+
end: string;
|
1132
|
+
} | null | undefined> | undefined;
|
967
1133
|
annotation?: Record<string, string | number | boolean | {
|
968
1134
|
type: string;
|
969
|
-
|
1135
|
+
path: string;
|
970
1136
|
originalFilename: string;
|
971
1137
|
} | {
|
972
1138
|
country: string;
|
@@ -979,6 +1145,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
979
1145
|
residentialArea?: string | null | undefined;
|
980
1146
|
street?: string | null | undefined;
|
981
1147
|
zipCode?: string | null | undefined;
|
1148
|
+
} | {
|
1149
|
+
firstname?: string | null | undefined;
|
1150
|
+
surname?: string | null | undefined;
|
1151
|
+
middlename?: string | null | undefined;
|
982
1152
|
} | {
|
983
1153
|
country: string;
|
984
1154
|
district: string;
|
@@ -999,9 +1169,12 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
999
1169
|
} | {
|
1000
1170
|
type: string;
|
1001
1171
|
option: string;
|
1002
|
-
|
1172
|
+
path: string;
|
1003
1173
|
originalFilename: string;
|
1004
|
-
}[] |
|
1174
|
+
}[] | {
|
1175
|
+
start: string;
|
1176
|
+
end: string;
|
1177
|
+
} | null | undefined> | undefined;
|
1005
1178
|
originalActionId?: string | undefined;
|
1006
1179
|
keepAssignment?: boolean | undefined;
|
1007
1180
|
}>;
|