@opencrvs/toolkit 1.8.0-rc.fd8a78f → 1.8.0-rc.fde35f6
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 +3117 -11206
- package/dist/commons/conditionals/conditionals.d.ts +0 -12
- package/dist/commons/events/ActionConfig.d.ts +12032 -3972
- package/dist/commons/events/ActionDocument.d.ts +3029 -1886
- package/dist/commons/events/ActionInput.d.ts +2406 -1506
- package/dist/commons/events/AdvancedSearchConfig.d.ts +304 -51
- package/dist/commons/events/CompositeFieldValue.d.ts +15 -15
- package/dist/commons/events/CountryConfigQueryInput.d.ts +1891 -741
- package/dist/commons/events/CreatedAtLocation.d.ts +1 -2
- package/dist/commons/events/Draft.d.ts +213 -136
- package/dist/commons/events/EventConfig.d.ts +4770 -755
- package/dist/commons/events/EventDocument.d.ts +1942 -1219
- package/dist/commons/events/EventIndex.d.ts +897 -263
- package/dist/commons/events/EventMetadata.d.ts +73 -31
- package/dist/commons/events/FieldConfig.d.ts +607 -30
- package/dist/commons/events/FieldType.d.ts +2 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +73 -41
- package/dist/commons/events/FieldValue.d.ts +57 -28
- package/dist/commons/events/FormConfig.d.ts +4685 -1295
- package/dist/commons/events/PageConfig.d.ts +868 -38
- 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 +4490 -1177
- package/dist/commons/events/defineConfig.d.ts +759 -34
- package/dist/commons/events/event.d.ts +15 -10
- package/dist/commons/events/field.d.ts +17 -0
- package/dist/commons/events/scopes.d.ts +1 -2
- package/dist/commons/events/test.utils.d.ts +83 -36
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +2926 -88
- package/dist/conditionals/index.js +22 -51
- package/dist/events/index.js +1550 -1048
- package/dist/scopes/index.d.ts +96 -7
- package/dist/scopes/index.js +105 -26
- package/package.json +3 -3
@@ -1,43 +1,53 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
export declare const Draft: z.ZodObject<{
|
3
|
-
id: z.ZodString
|
4
|
-
eventId: z.ZodString
|
3
|
+
id: z.ZodBranded<z.ZodString, "UUID">;
|
4
|
+
eventId: z.ZodBranded<z.ZodString, "UUID">;
|
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
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString
|
15
|
-
declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.
|
16
|
-
|
15
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
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;
|
@@ -126,44 +136,53 @@ export declare const Draft: z.ZodObject<{
|
|
126
136
|
addressLine3?: string | null | undefined;
|
127
137
|
postcodeOrZip?: string | null | undefined;
|
128
138
|
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
129
|
-
firstname: z.ZodString
|
130
|
-
surname: z.ZodString
|
139
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
140
|
+
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
131
141
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
132
142
|
}, "strip", z.ZodTypeAny, {
|
133
|
-
firstname
|
134
|
-
surname
|
143
|
+
firstname?: string | null | undefined;
|
144
|
+
surname?: string | null | undefined;
|
135
145
|
middlename?: string | null | undefined;
|
136
146
|
}, {
|
137
|
-
firstname
|
138
|
-
surname
|
147
|
+
firstname?: string | null | undefined;
|
148
|
+
surname?: string | null | undefined;
|
139
149
|
middlename?: string | null | undefined;
|
140
150
|
}>, z.ZodNull]>, z.ZodUndefined]>]>>;
|
141
|
-
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.
|
142
|
-
|
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>;
|
143
162
|
originalFilename: z.ZodString;
|
144
163
|
type: z.ZodString;
|
145
164
|
}, "strip", z.ZodTypeAny, {
|
146
165
|
type: string;
|
147
|
-
|
166
|
+
path: string;
|
148
167
|
originalFilename: string;
|
149
168
|
}, {
|
150
169
|
type: string;
|
151
|
-
|
170
|
+
path: string;
|
152
171
|
originalFilename: string;
|
153
172
|
}>, z.ZodArray<z.ZodObject<{
|
154
|
-
|
173
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
155
174
|
originalFilename: z.ZodString;
|
156
175
|
type: z.ZodString;
|
157
176
|
option: z.ZodString;
|
158
177
|
}, "strip", z.ZodTypeAny, {
|
159
178
|
type: string;
|
160
179
|
option: string;
|
161
|
-
|
180
|
+
path: string;
|
162
181
|
originalFilename: string;
|
163
182
|
}, {
|
164
183
|
type: string;
|
165
184
|
option: string;
|
166
|
-
|
185
|
+
path: string;
|
167
186
|
originalFilename: string;
|
168
187
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
169
188
|
country: z.ZodString;
|
@@ -252,32 +271,33 @@ export declare const Draft: z.ZodObject<{
|
|
252
271
|
addressLine3?: string | null | undefined;
|
253
272
|
postcodeOrZip?: string | null | undefined;
|
254
273
|
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
255
|
-
firstname: z.ZodString
|
256
|
-
surname: z.ZodString
|
274
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
275
|
+
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
257
276
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
258
277
|
}, "strip", z.ZodTypeAny, {
|
259
|
-
firstname
|
260
|
-
surname
|
278
|
+
firstname?: string | null | undefined;
|
279
|
+
surname?: string | null | undefined;
|
261
280
|
middlename?: string | null | undefined;
|
262
281
|
}, {
|
263
|
-
firstname
|
264
|
-
surname
|
282
|
+
firstname?: string | null | undefined;
|
283
|
+
surname?: string | null | undefined;
|
265
284
|
middlename?: string | null | undefined;
|
266
|
-
}>, z.ZodNull]>, z.ZodUndefined]>]
|
285
|
+
}>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
|
267
286
|
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
268
|
-
originalActionId: z.ZodOptional<z.ZodString
|
287
|
+
originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
|
269
288
|
}, {
|
270
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"]>;
|
271
290
|
}>, "id">, "strip", z.ZodTypeAny, {
|
272
|
-
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";
|
273
292
|
status: "Rejected" | "Requested" | "Accepted";
|
274
293
|
transactionId: string;
|
294
|
+
createdByUserType: "system" | "user";
|
275
295
|
createdAt: string;
|
276
296
|
createdBy: string;
|
277
297
|
createdByRole: string;
|
278
298
|
declaration: Record<string, string | number | boolean | {
|
279
299
|
type: string;
|
280
|
-
|
300
|
+
path: string;
|
281
301
|
originalFilename: string;
|
282
302
|
} | {
|
283
303
|
country: string;
|
@@ -291,8 +311,8 @@ export declare const Draft: z.ZodObject<{
|
|
291
311
|
street?: string | null | undefined;
|
292
312
|
zipCode?: string | null | undefined;
|
293
313
|
} | {
|
294
|
-
firstname
|
295
|
-
surname
|
314
|
+
firstname?: string | null | undefined;
|
315
|
+
surname?: string | null | undefined;
|
296
316
|
middlename?: string | null | undefined;
|
297
317
|
} | {
|
298
318
|
country: string;
|
@@ -314,14 +334,17 @@ export declare const Draft: z.ZodObject<{
|
|
314
334
|
} | {
|
315
335
|
type: string;
|
316
336
|
option: string;
|
317
|
-
|
337
|
+
path: string;
|
318
338
|
originalFilename: string;
|
319
|
-
}[] |
|
339
|
+
}[] | {
|
340
|
+
start: string;
|
341
|
+
end: string;
|
342
|
+
} | null | undefined>;
|
320
343
|
createdBySignature?: string | null | undefined;
|
321
|
-
createdAtLocation?: string | null | undefined;
|
344
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
322
345
|
annotation?: Record<string, string | number | boolean | {
|
323
346
|
type: string;
|
324
|
-
|
347
|
+
path: string;
|
325
348
|
originalFilename: string;
|
326
349
|
} | {
|
327
350
|
country: string;
|
@@ -335,8 +358,8 @@ export declare const Draft: z.ZodObject<{
|
|
335
358
|
street?: string | null | undefined;
|
336
359
|
zipCode?: string | null | undefined;
|
337
360
|
} | {
|
338
|
-
firstname
|
339
|
-
surname
|
361
|
+
firstname?: string | null | undefined;
|
362
|
+
surname?: string | null | undefined;
|
340
363
|
middlename?: string | null | undefined;
|
341
364
|
} | {
|
342
365
|
country: string;
|
@@ -358,20 +381,24 @@ export declare const Draft: z.ZodObject<{
|
|
358
381
|
} | {
|
359
382
|
type: string;
|
360
383
|
option: string;
|
361
|
-
|
384
|
+
path: string;
|
362
385
|
originalFilename: string;
|
363
|
-
}[] |
|
364
|
-
|
386
|
+
}[] | {
|
387
|
+
start: string;
|
388
|
+
end: string;
|
389
|
+
} | null | undefined> | null | undefined;
|
390
|
+
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
365
391
|
}, {
|
366
|
-
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";
|
367
393
|
status: "Rejected" | "Requested" | "Accepted";
|
368
394
|
transactionId: string;
|
395
|
+
createdByUserType: "system" | "user";
|
369
396
|
createdAt: string;
|
370
397
|
createdBy: string;
|
371
398
|
createdByRole: string;
|
372
399
|
declaration: Record<string, string | number | boolean | {
|
373
400
|
type: string;
|
374
|
-
|
401
|
+
path: string;
|
375
402
|
originalFilename: string;
|
376
403
|
} | {
|
377
404
|
country: string;
|
@@ -385,8 +412,8 @@ export declare const Draft: z.ZodObject<{
|
|
385
412
|
street?: string | null | undefined;
|
386
413
|
zipCode?: string | null | undefined;
|
387
414
|
} | {
|
388
|
-
firstname
|
389
|
-
surname
|
415
|
+
firstname?: string | null | undefined;
|
416
|
+
surname?: string | null | undefined;
|
390
417
|
middlename?: string | null | undefined;
|
391
418
|
} | {
|
392
419
|
country: string;
|
@@ -408,14 +435,17 @@ export declare const Draft: z.ZodObject<{
|
|
408
435
|
} | {
|
409
436
|
type: string;
|
410
437
|
option: string;
|
411
|
-
|
438
|
+
path: string;
|
412
439
|
originalFilename: string;
|
413
|
-
}[] |
|
440
|
+
}[] | {
|
441
|
+
start: string;
|
442
|
+
end: string;
|
443
|
+
} | null | undefined>;
|
414
444
|
createdBySignature?: string | null | undefined;
|
415
445
|
createdAtLocation?: string | null | undefined;
|
416
446
|
annotation?: Record<string, string | number | boolean | {
|
417
447
|
type: string;
|
418
|
-
|
448
|
+
path: string;
|
419
449
|
originalFilename: string;
|
420
450
|
} | {
|
421
451
|
country: string;
|
@@ -429,8 +459,8 @@ export declare const Draft: z.ZodObject<{
|
|
429
459
|
street?: string | null | undefined;
|
430
460
|
zipCode?: string | null | undefined;
|
431
461
|
} | {
|
432
|
-
firstname
|
433
|
-
surname
|
462
|
+
firstname?: string | null | undefined;
|
463
|
+
surname?: string | null | undefined;
|
434
464
|
middlename?: string | null | undefined;
|
435
465
|
} | {
|
436
466
|
country: string;
|
@@ -452,26 +482,30 @@ export declare const Draft: z.ZodObject<{
|
|
452
482
|
} | {
|
453
483
|
type: string;
|
454
484
|
option: string;
|
455
|
-
|
485
|
+
path: string;
|
456
486
|
originalFilename: string;
|
457
|
-
}[] |
|
458
|
-
|
487
|
+
}[] | {
|
488
|
+
start: string;
|
489
|
+
end: string;
|
490
|
+
} | null | undefined> | null | undefined;
|
491
|
+
originalActionId?: string | null | undefined;
|
459
492
|
}>;
|
460
493
|
}, "strip", z.ZodTypeAny, {
|
461
|
-
id: string
|
494
|
+
id: string & z.BRAND<"UUID">;
|
462
495
|
transactionId: string;
|
463
496
|
createdAt: string;
|
464
|
-
eventId: string
|
497
|
+
eventId: string & z.BRAND<"UUID">;
|
465
498
|
action: {
|
466
|
-
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";
|
467
500
|
status: "Rejected" | "Requested" | "Accepted";
|
468
501
|
transactionId: string;
|
502
|
+
createdByUserType: "system" | "user";
|
469
503
|
createdAt: string;
|
470
504
|
createdBy: string;
|
471
505
|
createdByRole: string;
|
472
506
|
declaration: Record<string, string | number | boolean | {
|
473
507
|
type: string;
|
474
|
-
|
508
|
+
path: string;
|
475
509
|
originalFilename: string;
|
476
510
|
} | {
|
477
511
|
country: string;
|
@@ -485,8 +519,8 @@ export declare const Draft: z.ZodObject<{
|
|
485
519
|
street?: string | null | undefined;
|
486
520
|
zipCode?: string | null | undefined;
|
487
521
|
} | {
|
488
|
-
firstname
|
489
|
-
surname
|
522
|
+
firstname?: string | null | undefined;
|
523
|
+
surname?: string | null | undefined;
|
490
524
|
middlename?: string | null | undefined;
|
491
525
|
} | {
|
492
526
|
country: string;
|
@@ -508,14 +542,17 @@ export declare const Draft: z.ZodObject<{
|
|
508
542
|
} | {
|
509
543
|
type: string;
|
510
544
|
option: string;
|
511
|
-
|
545
|
+
path: string;
|
512
546
|
originalFilename: string;
|
513
|
-
}[] |
|
547
|
+
}[] | {
|
548
|
+
start: string;
|
549
|
+
end: string;
|
550
|
+
} | null | undefined>;
|
514
551
|
createdBySignature?: string | null | undefined;
|
515
|
-
createdAtLocation?: string | null | undefined;
|
552
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
516
553
|
annotation?: Record<string, string | number | boolean | {
|
517
554
|
type: string;
|
518
|
-
|
555
|
+
path: string;
|
519
556
|
originalFilename: string;
|
520
557
|
} | {
|
521
558
|
country: string;
|
@@ -529,8 +566,8 @@ export declare const Draft: z.ZodObject<{
|
|
529
566
|
street?: string | null | undefined;
|
530
567
|
zipCode?: string | null | undefined;
|
531
568
|
} | {
|
532
|
-
firstname
|
533
|
-
surname
|
569
|
+
firstname?: string | null | undefined;
|
570
|
+
surname?: string | null | undefined;
|
534
571
|
middlename?: string | null | undefined;
|
535
572
|
} | {
|
536
573
|
country: string;
|
@@ -552,10 +589,13 @@ export declare const Draft: z.ZodObject<{
|
|
552
589
|
} | {
|
553
590
|
type: string;
|
554
591
|
option: string;
|
555
|
-
|
592
|
+
path: string;
|
556
593
|
originalFilename: string;
|
557
|
-
}[] |
|
558
|
-
|
594
|
+
}[] | {
|
595
|
+
start: string;
|
596
|
+
end: string;
|
597
|
+
} | null | undefined> | null | undefined;
|
598
|
+
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
559
599
|
};
|
560
600
|
}, {
|
561
601
|
id: string;
|
@@ -563,15 +603,16 @@ export declare const Draft: z.ZodObject<{
|
|
563
603
|
createdAt: string;
|
564
604
|
eventId: string;
|
565
605
|
action: {
|
566
|
-
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";
|
567
607
|
status: "Rejected" | "Requested" | "Accepted";
|
568
608
|
transactionId: string;
|
609
|
+
createdByUserType: "system" | "user";
|
569
610
|
createdAt: string;
|
570
611
|
createdBy: string;
|
571
612
|
createdByRole: string;
|
572
613
|
declaration: Record<string, string | number | boolean | {
|
573
614
|
type: string;
|
574
|
-
|
615
|
+
path: string;
|
575
616
|
originalFilename: string;
|
576
617
|
} | {
|
577
618
|
country: string;
|
@@ -585,8 +626,8 @@ export declare const Draft: z.ZodObject<{
|
|
585
626
|
street?: string | null | undefined;
|
586
627
|
zipCode?: string | null | undefined;
|
587
628
|
} | {
|
588
|
-
firstname
|
589
|
-
surname
|
629
|
+
firstname?: string | null | undefined;
|
630
|
+
surname?: string | null | undefined;
|
590
631
|
middlename?: string | null | undefined;
|
591
632
|
} | {
|
592
633
|
country: string;
|
@@ -608,14 +649,17 @@ export declare const Draft: z.ZodObject<{
|
|
608
649
|
} | {
|
609
650
|
type: string;
|
610
651
|
option: string;
|
611
|
-
|
652
|
+
path: string;
|
612
653
|
originalFilename: string;
|
613
|
-
}[] |
|
654
|
+
}[] | {
|
655
|
+
start: string;
|
656
|
+
end: string;
|
657
|
+
} | null | undefined>;
|
614
658
|
createdBySignature?: string | null | undefined;
|
615
659
|
createdAtLocation?: string | null | undefined;
|
616
660
|
annotation?: Record<string, string | number | boolean | {
|
617
661
|
type: string;
|
618
|
-
|
662
|
+
path: string;
|
619
663
|
originalFilename: string;
|
620
664
|
} | {
|
621
665
|
country: string;
|
@@ -629,8 +673,8 @@ export declare const Draft: z.ZodObject<{
|
|
629
673
|
street?: string | null | undefined;
|
630
674
|
zipCode?: string | null | undefined;
|
631
675
|
} | {
|
632
|
-
firstname
|
633
|
-
surname
|
676
|
+
firstname?: string | null | undefined;
|
677
|
+
surname?: string | null | undefined;
|
634
678
|
middlename?: string | null | undefined;
|
635
679
|
} | {
|
636
680
|
country: string;
|
@@ -652,41 +696,53 @@ export declare const Draft: z.ZodObject<{
|
|
652
696
|
} | {
|
653
697
|
type: string;
|
654
698
|
option: string;
|
655
|
-
|
699
|
+
path: string;
|
656
700
|
originalFilename: string;
|
657
|
-
}[] |
|
658
|
-
|
701
|
+
}[] | {
|
702
|
+
start: string;
|
703
|
+
end: string;
|
704
|
+
} | null | undefined> | null | undefined;
|
705
|
+
originalActionId?: string | null | undefined;
|
659
706
|
};
|
660
707
|
}>;
|
661
708
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
662
|
-
eventId: z.ZodString
|
709
|
+
eventId: z.ZodBranded<z.ZodString, "UUID">;
|
663
710
|
transactionId: z.ZodString;
|
664
|
-
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.
|
665
|
-
|
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>;
|
666
722
|
originalFilename: z.ZodString;
|
667
723
|
type: z.ZodString;
|
668
724
|
}, "strip", z.ZodTypeAny, {
|
669
725
|
type: string;
|
670
|
-
|
726
|
+
path: string;
|
671
727
|
originalFilename: string;
|
672
728
|
}, {
|
673
729
|
type: string;
|
674
|
-
|
730
|
+
path: string;
|
675
731
|
originalFilename: string;
|
676
732
|
}>, z.ZodArray<z.ZodObject<{
|
677
|
-
|
733
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
678
734
|
originalFilename: z.ZodString;
|
679
735
|
type: z.ZodString;
|
680
736
|
option: z.ZodString;
|
681
737
|
}, "strip", z.ZodTypeAny, {
|
682
738
|
type: string;
|
683
739
|
option: string;
|
684
|
-
|
740
|
+
path: string;
|
685
741
|
originalFilename: string;
|
686
742
|
}, {
|
687
743
|
type: string;
|
688
744
|
option: string;
|
689
|
-
|
745
|
+
path: string;
|
690
746
|
originalFilename: string;
|
691
747
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
692
748
|
country: z.ZodString;
|
@@ -775,44 +831,53 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
775
831
|
addressLine3?: string | null | undefined;
|
776
832
|
postcodeOrZip?: string | null | undefined;
|
777
833
|
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
778
|
-
firstname: z.ZodString
|
779
|
-
surname: z.ZodString
|
834
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
835
|
+
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
780
836
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
781
837
|
}, "strip", z.ZodTypeAny, {
|
782
|
-
firstname
|
783
|
-
surname
|
838
|
+
firstname?: string | null | undefined;
|
839
|
+
surname?: string | null | undefined;
|
784
840
|
middlename?: string | null | undefined;
|
785
841
|
}, {
|
786
|
-
firstname
|
787
|
-
surname
|
842
|
+
firstname?: string | null | undefined;
|
843
|
+
surname?: string | null | undefined;
|
788
844
|
middlename?: string | null | undefined;
|
789
845
|
}>, z.ZodNull]>, z.ZodUndefined]>]>>>;
|
790
|
-
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.
|
791
|
-
|
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>;
|
792
857
|
originalFilename: z.ZodString;
|
793
858
|
type: z.ZodString;
|
794
859
|
}, "strip", z.ZodTypeAny, {
|
795
860
|
type: string;
|
796
|
-
|
861
|
+
path: string;
|
797
862
|
originalFilename: string;
|
798
863
|
}, {
|
799
864
|
type: string;
|
800
|
-
|
865
|
+
path: string;
|
801
866
|
originalFilename: string;
|
802
867
|
}>, z.ZodArray<z.ZodObject<{
|
803
|
-
|
868
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
804
869
|
originalFilename: z.ZodString;
|
805
870
|
type: z.ZodString;
|
806
871
|
option: z.ZodString;
|
807
872
|
}, "strip", z.ZodTypeAny, {
|
808
873
|
type: string;
|
809
874
|
option: string;
|
810
|
-
|
875
|
+
path: string;
|
811
876
|
originalFilename: string;
|
812
877
|
}, {
|
813
878
|
type: string;
|
814
879
|
option: string;
|
815
|
-
|
880
|
+
path: string;
|
816
881
|
originalFilename: string;
|
817
882
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
818
883
|
country: z.ZodString;
|
@@ -901,30 +966,30 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
901
966
|
addressLine3?: string | null | undefined;
|
902
967
|
postcodeOrZip?: string | null | undefined;
|
903
968
|
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
904
|
-
firstname: z.ZodString
|
905
|
-
surname: z.ZodString
|
969
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
970
|
+
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
906
971
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
907
972
|
}, "strip", z.ZodTypeAny, {
|
908
|
-
firstname
|
909
|
-
surname
|
973
|
+
firstname?: string | null | undefined;
|
974
|
+
surname?: string | null | undefined;
|
910
975
|
middlename?: string | null | undefined;
|
911
976
|
}, {
|
912
|
-
firstname
|
913
|
-
surname
|
977
|
+
firstname?: string | null | undefined;
|
978
|
+
surname?: string | null | undefined;
|
914
979
|
middlename?: string | null | undefined;
|
915
980
|
}>, z.ZodNull]>, z.ZodUndefined]>]>>>;
|
916
|
-
originalActionId: z.ZodOptional<z.ZodString
|
981
|
+
originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
|
917
982
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
918
983
|
}, {
|
919
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"]>;
|
920
985
|
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
921
986
|
}>, "strip", z.ZodTypeAny, {
|
922
|
-
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";
|
923
988
|
status: "Rejected" | "Requested" | "Accepted";
|
924
989
|
transactionId: string;
|
925
990
|
declaration: Record<string, string | number | boolean | {
|
926
991
|
type: string;
|
927
|
-
|
992
|
+
path: string;
|
928
993
|
originalFilename: string;
|
929
994
|
} | {
|
930
995
|
country: string;
|
@@ -938,8 +1003,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
938
1003
|
street?: string | null | undefined;
|
939
1004
|
zipCode?: string | null | undefined;
|
940
1005
|
} | {
|
941
|
-
firstname
|
942
|
-
surname
|
1006
|
+
firstname?: string | null | undefined;
|
1007
|
+
surname?: string | null | undefined;
|
943
1008
|
middlename?: string | null | undefined;
|
944
1009
|
} | {
|
945
1010
|
country: string;
|
@@ -961,13 +1026,16 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
961
1026
|
} | {
|
962
1027
|
type: string;
|
963
1028
|
option: string;
|
964
|
-
|
1029
|
+
path: string;
|
965
1030
|
originalFilename: string;
|
966
|
-
}[] |
|
967
|
-
|
1031
|
+
}[] | {
|
1032
|
+
start: string;
|
1033
|
+
end: string;
|
1034
|
+
} | null | undefined>;
|
1035
|
+
eventId: string & z.BRAND<"UUID">;
|
968
1036
|
annotation?: Record<string, string | number | boolean | {
|
969
1037
|
type: string;
|
970
|
-
|
1038
|
+
path: string;
|
971
1039
|
originalFilename: string;
|
972
1040
|
} | {
|
973
1041
|
country: string;
|
@@ -981,8 +1049,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
981
1049
|
street?: string | null | undefined;
|
982
1050
|
zipCode?: string | null | undefined;
|
983
1051
|
} | {
|
984
|
-
firstname
|
985
|
-
surname
|
1052
|
+
firstname?: string | null | undefined;
|
1053
|
+
surname?: string | null | undefined;
|
986
1054
|
middlename?: string | null | undefined;
|
987
1055
|
} | {
|
988
1056
|
country: string;
|
@@ -1004,19 +1072,22 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
1004
1072
|
} | {
|
1005
1073
|
type: string;
|
1006
1074
|
option: string;
|
1007
|
-
|
1075
|
+
path: string;
|
1008
1076
|
originalFilename: string;
|
1009
|
-
}[] |
|
1010
|
-
|
1077
|
+
}[] | {
|
1078
|
+
start: string;
|
1079
|
+
end: string;
|
1080
|
+
} | null | undefined> | undefined;
|
1081
|
+
originalActionId?: (string & z.BRAND<"UUID">) | undefined;
|
1011
1082
|
keepAssignment?: boolean | undefined;
|
1012
1083
|
}, {
|
1013
|
-
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";
|
1014
1085
|
status: "Rejected" | "Requested" | "Accepted";
|
1015
1086
|
transactionId: string;
|
1016
1087
|
eventId: string;
|
1017
1088
|
declaration?: Record<string, string | number | boolean | {
|
1018
1089
|
type: string;
|
1019
|
-
|
1090
|
+
path: string;
|
1020
1091
|
originalFilename: string;
|
1021
1092
|
} | {
|
1022
1093
|
country: string;
|
@@ -1030,8 +1101,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
1030
1101
|
street?: string | null | undefined;
|
1031
1102
|
zipCode?: string | null | undefined;
|
1032
1103
|
} | {
|
1033
|
-
firstname
|
1034
|
-
surname
|
1104
|
+
firstname?: string | null | undefined;
|
1105
|
+
surname?: string | null | undefined;
|
1035
1106
|
middlename?: string | null | undefined;
|
1036
1107
|
} | {
|
1037
1108
|
country: string;
|
@@ -1053,12 +1124,15 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
1053
1124
|
} | {
|
1054
1125
|
type: string;
|
1055
1126
|
option: string;
|
1056
|
-
|
1127
|
+
path: string;
|
1057
1128
|
originalFilename: string;
|
1058
|
-
}[] |
|
1129
|
+
}[] | {
|
1130
|
+
start: string;
|
1131
|
+
end: string;
|
1132
|
+
} | null | undefined> | undefined;
|
1059
1133
|
annotation?: Record<string, string | number | boolean | {
|
1060
1134
|
type: string;
|
1061
|
-
|
1135
|
+
path: string;
|
1062
1136
|
originalFilename: string;
|
1063
1137
|
} | {
|
1064
1138
|
country: string;
|
@@ -1072,8 +1146,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
1072
1146
|
street?: string | null | undefined;
|
1073
1147
|
zipCode?: string | null | undefined;
|
1074
1148
|
} | {
|
1075
|
-
firstname
|
1076
|
-
surname
|
1149
|
+
firstname?: string | null | undefined;
|
1150
|
+
surname?: string | null | undefined;
|
1077
1151
|
middlename?: string | null | undefined;
|
1078
1152
|
} | {
|
1079
1153
|
country: string;
|
@@ -1095,9 +1169,12 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
1095
1169
|
} | {
|
1096
1170
|
type: string;
|
1097
1171
|
option: string;
|
1098
|
-
|
1172
|
+
path: string;
|
1099
1173
|
originalFilename: string;
|
1100
|
-
}[] |
|
1174
|
+
}[] | {
|
1175
|
+
start: string;
|
1176
|
+
end: string;
|
1177
|
+
} | null | undefined> | undefined;
|
1101
1178
|
originalActionId?: string | undefined;
|
1102
1179
|
keepAssignment?: boolean | undefined;
|
1103
1180
|
}>;
|