@opencrvs/toolkit 1.8.0-rc.f8e4107 → 1.8.0-rc.f8f94b8
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 +5905 -5314
- package/dist/commons/conditionals/conditionals.d.ts +7 -76
- package/dist/commons/conditionals/validate.d.ts +15 -6
- package/dist/commons/events/ActionConfig.d.ts +115347 -1728
- package/dist/commons/events/ActionDocument.d.ts +4824 -1375
- package/dist/commons/events/ActionInput.d.ts +3205 -1025
- package/dist/commons/events/ActionType.d.ts +9 -4
- package/dist/commons/events/AdvancedSearchConfig.d.ts +1190 -23
- package/dist/commons/events/CompositeFieldValue.d.ts +40 -9
- package/dist/commons/events/Constants.d.ts +3 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +4132 -0
- package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
- package/dist/commons/events/Draft.d.ts +290 -104
- package/dist/commons/events/EventConfig.d.ts +52547 -1394
- package/dist/commons/events/EventDocument.d.ts +2720 -913
- package/dist/commons/events/EventIndex.d.ts +1696 -239
- package/dist/commons/events/EventMetadata.d.ts +340 -45
- package/dist/commons/events/FieldConfig.d.ts +6362 -1159
- package/dist/commons/events/FieldType.d.ts +7 -3
- package/dist/commons/events/FieldTypeMapping.d.ts +154 -73
- package/dist/commons/events/FieldValue.d.ts +90 -20
- package/dist/commons/events/FormConfig.d.ts +53892 -510
- package/dist/commons/events/PageConfig.d.ts +13367 -209
- package/dist/commons/events/SummaryConfig.d.ts +93 -42
- package/dist/commons/events/User.d.ts +34 -2
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +8116 -20
- package/dist/commons/events/defineConfig.d.ts +8255 -86
- package/dist/commons/events/event.d.ts +46 -0
- package/dist/commons/events/field.d.ts +94 -0
- package/dist/commons/events/index.d.ts +8 -0
- package/dist/commons/events/scopes.d.ts +46 -0
- package/dist/commons/events/serializer.d.ts +2 -0
- package/dist/commons/events/test.utils.d.ts +206 -90
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +14940 -85
- package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
- package/dist/conditionals/index.js +64 -102
- package/dist/events/index.js +4576 -1838
- package/dist/scopes/index.d.ts +247 -1
- package/dist/scopes/index.js +231 -1
- package/package.json +4 -3
@@ -1,39 +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
|
+
transactionId: z.ZodString;
|
10
|
+
createdByUserType: z.ZodEnum<["user", "system"]>;
|
9
11
|
createdAt: z.ZodString;
|
10
12
|
createdBy: z.ZodString;
|
11
|
-
|
12
|
-
|
13
|
+
createdByRole: z.ZodString;
|
14
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
15
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
|
16
|
+
declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.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>;
|
13
27
|
originalFilename: z.ZodString;
|
14
28
|
type: z.ZodString;
|
15
29
|
}, "strip", z.ZodTypeAny, {
|
16
30
|
type: string;
|
17
|
-
|
31
|
+
path: string;
|
18
32
|
originalFilename: string;
|
19
33
|
}, {
|
20
34
|
type: string;
|
21
|
-
|
35
|
+
path: string;
|
22
36
|
originalFilename: string;
|
23
37
|
}>, z.ZodArray<z.ZodObject<{
|
24
|
-
|
38
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
25
39
|
originalFilename: z.ZodString;
|
26
40
|
type: z.ZodString;
|
27
41
|
option: z.ZodString;
|
28
42
|
}, "strip", z.ZodTypeAny, {
|
29
43
|
type: string;
|
30
44
|
option: string;
|
31
|
-
|
45
|
+
path: string;
|
32
46
|
originalFilename: string;
|
33
47
|
}, {
|
34
48
|
type: string;
|
35
49
|
option: string;
|
36
|
-
|
50
|
+
path: string;
|
37
51
|
originalFilename: string;
|
38
52
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
39
53
|
country: z.ZodString;
|
@@ -121,33 +135,54 @@ export declare const Draft: z.ZodObject<{
|
|
121
135
|
addressLine2?: string | null | undefined;
|
122
136
|
addressLine3?: string | null | undefined;
|
123
137
|
postcodeOrZip?: string | null | undefined;
|
124
|
-
}
|
125
|
-
|
126
|
-
|
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>;
|
127
162
|
originalFilename: z.ZodString;
|
128
163
|
type: z.ZodString;
|
129
164
|
}, "strip", z.ZodTypeAny, {
|
130
165
|
type: string;
|
131
|
-
|
166
|
+
path: string;
|
132
167
|
originalFilename: string;
|
133
168
|
}, {
|
134
169
|
type: string;
|
135
|
-
|
170
|
+
path: string;
|
136
171
|
originalFilename: string;
|
137
172
|
}>, z.ZodArray<z.ZodObject<{
|
138
|
-
|
173
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
139
174
|
originalFilename: z.ZodString;
|
140
175
|
type: z.ZodString;
|
141
176
|
option: z.ZodString;
|
142
177
|
}, "strip", z.ZodTypeAny, {
|
143
178
|
type: string;
|
144
179
|
option: string;
|
145
|
-
|
180
|
+
path: string;
|
146
181
|
originalFilename: string;
|
147
182
|
}, {
|
148
183
|
type: string;
|
149
184
|
option: string;
|
150
|
-
|
185
|
+
path: string;
|
151
186
|
originalFilename: string;
|
152
187
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
153
188
|
country: z.ZodString;
|
@@ -235,21 +270,34 @@ export declare const Draft: z.ZodObject<{
|
|
235
270
|
addressLine2?: string | null | undefined;
|
236
271
|
addressLine3?: string | null | undefined;
|
237
272
|
postcodeOrZip?: string | null | undefined;
|
238
|
-
}
|
239
|
-
|
240
|
-
|
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]>]>>>>;
|
241
286
|
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
242
|
-
originalActionId: z.ZodOptional<z.ZodString
|
287
|
+
originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
|
243
288
|
}, {
|
244
|
-
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"]>;
|
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", "REVIEW_CORRECTION_REQUEST", "READ", "ASSIGN", "UNASSIGN"]>;
|
245
290
|
}>, "id">, "strip", z.ZodTypeAny, {
|
246
|
-
type: "
|
291
|
+
type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "REVIEW_CORRECTION_REQUEST" | "READ" | "ASSIGN" | "UNASSIGN";
|
247
292
|
status: "Rejected" | "Requested" | "Accepted";
|
293
|
+
transactionId: string;
|
294
|
+
createdByUserType: "system" | "user";
|
248
295
|
createdAt: string;
|
249
296
|
createdBy: string;
|
297
|
+
createdByRole: string;
|
250
298
|
declaration: Record<string, string | number | boolean | {
|
251
299
|
type: string;
|
252
|
-
|
300
|
+
path: string;
|
253
301
|
originalFilename: string;
|
254
302
|
} | {
|
255
303
|
country: string;
|
@@ -262,6 +310,10 @@ export declare const Draft: z.ZodObject<{
|
|
262
310
|
residentialArea?: string | null | undefined;
|
263
311
|
street?: string | null | undefined;
|
264
312
|
zipCode?: string | null | undefined;
|
313
|
+
} | {
|
314
|
+
firstname?: string | null | undefined;
|
315
|
+
surname?: string | null | undefined;
|
316
|
+
middlename?: string | null | undefined;
|
265
317
|
} | {
|
266
318
|
country: string;
|
267
319
|
district: string;
|
@@ -282,12 +334,17 @@ export declare const Draft: z.ZodObject<{
|
|
282
334
|
} | {
|
283
335
|
type: string;
|
284
336
|
option: string;
|
285
|
-
|
337
|
+
path: string;
|
286
338
|
originalFilename: string;
|
287
|
-
}[] |
|
339
|
+
}[] | {
|
340
|
+
start: string;
|
341
|
+
end: string;
|
342
|
+
} | null | undefined>;
|
343
|
+
createdBySignature?: string | null | undefined;
|
344
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
288
345
|
annotation?: Record<string, string | number | boolean | {
|
289
346
|
type: string;
|
290
|
-
|
347
|
+
path: string;
|
291
348
|
originalFilename: string;
|
292
349
|
} | {
|
293
350
|
country: string;
|
@@ -300,6 +357,10 @@ export declare const Draft: z.ZodObject<{
|
|
300
357
|
residentialArea?: string | null | undefined;
|
301
358
|
street?: string | null | undefined;
|
302
359
|
zipCode?: string | null | undefined;
|
360
|
+
} | {
|
361
|
+
firstname?: string | null | undefined;
|
362
|
+
surname?: string | null | undefined;
|
363
|
+
middlename?: string | null | undefined;
|
303
364
|
} | {
|
304
365
|
country: string;
|
305
366
|
district: string;
|
@@ -320,20 +381,24 @@ export declare const Draft: z.ZodObject<{
|
|
320
381
|
} | {
|
321
382
|
type: string;
|
322
383
|
option: string;
|
323
|
-
|
384
|
+
path: string;
|
324
385
|
originalFilename: string;
|
325
|
-
}[] |
|
326
|
-
|
327
|
-
|
328
|
-
|
386
|
+
}[] | {
|
387
|
+
start: string;
|
388
|
+
end: string;
|
389
|
+
} | null | undefined> | null | undefined;
|
390
|
+
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
329
391
|
}, {
|
330
|
-
type: "
|
392
|
+
type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "REVIEW_CORRECTION_REQUEST" | "READ" | "ASSIGN" | "UNASSIGN";
|
331
393
|
status: "Rejected" | "Requested" | "Accepted";
|
394
|
+
transactionId: string;
|
395
|
+
createdByUserType: "system" | "user";
|
332
396
|
createdAt: string;
|
333
397
|
createdBy: string;
|
398
|
+
createdByRole: string;
|
334
399
|
declaration: Record<string, string | number | boolean | {
|
335
400
|
type: string;
|
336
|
-
|
401
|
+
path: string;
|
337
402
|
originalFilename: string;
|
338
403
|
} | {
|
339
404
|
country: string;
|
@@ -346,6 +411,10 @@ export declare const Draft: z.ZodObject<{
|
|
346
411
|
residentialArea?: string | null | undefined;
|
347
412
|
street?: string | null | undefined;
|
348
413
|
zipCode?: string | null | undefined;
|
414
|
+
} | {
|
415
|
+
firstname?: string | null | undefined;
|
416
|
+
surname?: string | null | undefined;
|
417
|
+
middlename?: string | null | undefined;
|
349
418
|
} | {
|
350
419
|
country: string;
|
351
420
|
district: string;
|
@@ -366,12 +435,17 @@ export declare const Draft: z.ZodObject<{
|
|
366
435
|
} | {
|
367
436
|
type: string;
|
368
437
|
option: string;
|
369
|
-
|
438
|
+
path: string;
|
370
439
|
originalFilename: string;
|
371
|
-
}[] |
|
440
|
+
}[] | {
|
441
|
+
start: string;
|
442
|
+
end: string;
|
443
|
+
} | null | undefined>;
|
444
|
+
createdBySignature?: string | null | undefined;
|
445
|
+
createdAtLocation?: string | null | undefined;
|
372
446
|
annotation?: Record<string, string | number | boolean | {
|
373
447
|
type: string;
|
374
|
-
|
448
|
+
path: string;
|
375
449
|
originalFilename: string;
|
376
450
|
} | {
|
377
451
|
country: string;
|
@@ -384,6 +458,10 @@ export declare const Draft: z.ZodObject<{
|
|
384
458
|
residentialArea?: string | null | undefined;
|
385
459
|
street?: string | null | undefined;
|
386
460
|
zipCode?: string | null | undefined;
|
461
|
+
} | {
|
462
|
+
firstname?: string | null | undefined;
|
463
|
+
surname?: string | null | undefined;
|
464
|
+
middlename?: string | null | undefined;
|
387
465
|
} | {
|
388
466
|
country: string;
|
389
467
|
district: string;
|
@@ -404,26 +482,30 @@ export declare const Draft: z.ZodObject<{
|
|
404
482
|
} | {
|
405
483
|
type: string;
|
406
484
|
option: string;
|
407
|
-
|
485
|
+
path: string;
|
408
486
|
originalFilename: string;
|
409
|
-
}[] |
|
410
|
-
|
411
|
-
|
412
|
-
|
487
|
+
}[] | {
|
488
|
+
start: string;
|
489
|
+
end: string;
|
490
|
+
} | null | undefined> | null | undefined;
|
491
|
+
originalActionId?: string | null | undefined;
|
413
492
|
}>;
|
414
493
|
}, "strip", z.ZodTypeAny, {
|
415
|
-
id: string
|
416
|
-
createdAt: string;
|
417
|
-
eventId: string;
|
494
|
+
id: string & z.BRAND<"UUID">;
|
418
495
|
transactionId: string;
|
496
|
+
createdAt: string;
|
497
|
+
eventId: string & z.BRAND<"UUID">;
|
419
498
|
action: {
|
420
|
-
type: "
|
499
|
+
type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "REVIEW_CORRECTION_REQUEST" | "READ" | "ASSIGN" | "UNASSIGN";
|
421
500
|
status: "Rejected" | "Requested" | "Accepted";
|
501
|
+
transactionId: string;
|
502
|
+
createdByUserType: "system" | "user";
|
422
503
|
createdAt: string;
|
423
504
|
createdBy: string;
|
505
|
+
createdByRole: string;
|
424
506
|
declaration: Record<string, string | number | boolean | {
|
425
507
|
type: string;
|
426
|
-
|
508
|
+
path: string;
|
427
509
|
originalFilename: string;
|
428
510
|
} | {
|
429
511
|
country: string;
|
@@ -436,6 +518,10 @@ export declare const Draft: z.ZodObject<{
|
|
436
518
|
residentialArea?: string | null | undefined;
|
437
519
|
street?: string | null | undefined;
|
438
520
|
zipCode?: string | null | undefined;
|
521
|
+
} | {
|
522
|
+
firstname?: string | null | undefined;
|
523
|
+
surname?: string | null | undefined;
|
524
|
+
middlename?: string | null | undefined;
|
439
525
|
} | {
|
440
526
|
country: string;
|
441
527
|
district: string;
|
@@ -456,12 +542,17 @@ export declare const Draft: z.ZodObject<{
|
|
456
542
|
} | {
|
457
543
|
type: string;
|
458
544
|
option: string;
|
459
|
-
|
545
|
+
path: string;
|
460
546
|
originalFilename: string;
|
461
|
-
}[] |
|
547
|
+
}[] | {
|
548
|
+
start: string;
|
549
|
+
end: string;
|
550
|
+
} | null | undefined>;
|
551
|
+
createdBySignature?: string | null | undefined;
|
552
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
462
553
|
annotation?: Record<string, string | number | boolean | {
|
463
554
|
type: string;
|
464
|
-
|
555
|
+
path: string;
|
465
556
|
originalFilename: string;
|
466
557
|
} | {
|
467
558
|
country: string;
|
@@ -474,6 +565,10 @@ export declare const Draft: z.ZodObject<{
|
|
474
565
|
residentialArea?: string | null | undefined;
|
475
566
|
street?: string | null | undefined;
|
476
567
|
zipCode?: string | null | undefined;
|
568
|
+
} | {
|
569
|
+
firstname?: string | null | undefined;
|
570
|
+
surname?: string | null | undefined;
|
571
|
+
middlename?: string | null | undefined;
|
477
572
|
} | {
|
478
573
|
country: string;
|
479
574
|
district: string;
|
@@ -494,26 +589,30 @@ export declare const Draft: z.ZodObject<{
|
|
494
589
|
} | {
|
495
590
|
type: string;
|
496
591
|
option: string;
|
497
|
-
|
592
|
+
path: string;
|
498
593
|
originalFilename: string;
|
499
|
-
}[] |
|
500
|
-
|
501
|
-
|
502
|
-
|
594
|
+
}[] | {
|
595
|
+
start: string;
|
596
|
+
end: string;
|
597
|
+
} | null | undefined> | null | undefined;
|
598
|
+
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
503
599
|
};
|
504
600
|
}, {
|
505
601
|
id: string;
|
602
|
+
transactionId: string;
|
506
603
|
createdAt: string;
|
507
604
|
eventId: string;
|
508
|
-
transactionId: string;
|
509
605
|
action: {
|
510
|
-
type: "
|
606
|
+
type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "REVIEW_CORRECTION_REQUEST" | "READ" | "ASSIGN" | "UNASSIGN";
|
511
607
|
status: "Rejected" | "Requested" | "Accepted";
|
608
|
+
transactionId: string;
|
609
|
+
createdByUserType: "system" | "user";
|
512
610
|
createdAt: string;
|
513
611
|
createdBy: string;
|
612
|
+
createdByRole: string;
|
514
613
|
declaration: Record<string, string | number | boolean | {
|
515
614
|
type: string;
|
516
|
-
|
615
|
+
path: string;
|
517
616
|
originalFilename: string;
|
518
617
|
} | {
|
519
618
|
country: string;
|
@@ -526,6 +625,10 @@ export declare const Draft: z.ZodObject<{
|
|
526
625
|
residentialArea?: string | null | undefined;
|
527
626
|
street?: string | null | undefined;
|
528
627
|
zipCode?: string | null | undefined;
|
628
|
+
} | {
|
629
|
+
firstname?: string | null | undefined;
|
630
|
+
surname?: string | null | undefined;
|
631
|
+
middlename?: string | null | undefined;
|
529
632
|
} | {
|
530
633
|
country: string;
|
531
634
|
district: string;
|
@@ -546,12 +649,17 @@ export declare const Draft: z.ZodObject<{
|
|
546
649
|
} | {
|
547
650
|
type: string;
|
548
651
|
option: string;
|
549
|
-
|
652
|
+
path: string;
|
550
653
|
originalFilename: string;
|
551
|
-
}[] |
|
654
|
+
}[] | {
|
655
|
+
start: string;
|
656
|
+
end: string;
|
657
|
+
} | null | undefined>;
|
658
|
+
createdBySignature?: string | null | undefined;
|
659
|
+
createdAtLocation?: string | null | undefined;
|
552
660
|
annotation?: Record<string, string | number | boolean | {
|
553
661
|
type: string;
|
554
|
-
|
662
|
+
path: string;
|
555
663
|
originalFilename: string;
|
556
664
|
} | {
|
557
665
|
country: string;
|
@@ -564,6 +672,10 @@ export declare const Draft: z.ZodObject<{
|
|
564
672
|
residentialArea?: string | null | undefined;
|
565
673
|
street?: string | null | undefined;
|
566
674
|
zipCode?: string | null | undefined;
|
675
|
+
} | {
|
676
|
+
firstname?: string | null | undefined;
|
677
|
+
surname?: string | null | undefined;
|
678
|
+
middlename?: string | null | undefined;
|
567
679
|
} | {
|
568
680
|
country: string;
|
569
681
|
district: string;
|
@@ -584,43 +696,53 @@ export declare const Draft: z.ZodObject<{
|
|
584
696
|
} | {
|
585
697
|
type: string;
|
586
698
|
option: string;
|
587
|
-
|
699
|
+
path: string;
|
588
700
|
originalFilename: string;
|
589
|
-
}[] |
|
590
|
-
|
591
|
-
|
592
|
-
|
701
|
+
}[] | {
|
702
|
+
start: string;
|
703
|
+
end: string;
|
704
|
+
} | null | undefined> | null | undefined;
|
705
|
+
originalActionId?: string | null | undefined;
|
593
706
|
};
|
594
707
|
}>;
|
595
708
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
596
|
-
eventId: z.ZodString
|
709
|
+
eventId: z.ZodBranded<z.ZodString, "UUID">;
|
597
710
|
transactionId: z.ZodString;
|
598
|
-
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.
|
599
|
-
|
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>;
|
600
722
|
originalFilename: z.ZodString;
|
601
723
|
type: z.ZodString;
|
602
724
|
}, "strip", z.ZodTypeAny, {
|
603
725
|
type: string;
|
604
|
-
|
726
|
+
path: string;
|
605
727
|
originalFilename: string;
|
606
728
|
}, {
|
607
729
|
type: string;
|
608
|
-
|
730
|
+
path: string;
|
609
731
|
originalFilename: string;
|
610
732
|
}>, z.ZodArray<z.ZodObject<{
|
611
|
-
|
733
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
612
734
|
originalFilename: z.ZodString;
|
613
735
|
type: z.ZodString;
|
614
736
|
option: z.ZodString;
|
615
737
|
}, "strip", z.ZodTypeAny, {
|
616
738
|
type: string;
|
617
739
|
option: string;
|
618
|
-
|
740
|
+
path: string;
|
619
741
|
originalFilename: string;
|
620
742
|
}, {
|
621
743
|
type: string;
|
622
744
|
option: string;
|
623
|
-
|
745
|
+
path: string;
|
624
746
|
originalFilename: string;
|
625
747
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
626
748
|
country: z.ZodString;
|
@@ -708,33 +830,54 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
708
830
|
addressLine2?: string | null | undefined;
|
709
831
|
addressLine3?: string | null | undefined;
|
710
832
|
postcodeOrZip?: string | null | undefined;
|
711
|
-
}
|
712
|
-
|
713
|
-
|
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>;
|
714
857
|
originalFilename: z.ZodString;
|
715
858
|
type: z.ZodString;
|
716
859
|
}, "strip", z.ZodTypeAny, {
|
717
860
|
type: string;
|
718
|
-
|
861
|
+
path: string;
|
719
862
|
originalFilename: string;
|
720
863
|
}, {
|
721
864
|
type: string;
|
722
|
-
|
865
|
+
path: string;
|
723
866
|
originalFilename: string;
|
724
867
|
}>, z.ZodArray<z.ZodObject<{
|
725
|
-
|
868
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
726
869
|
originalFilename: z.ZodString;
|
727
870
|
type: z.ZodString;
|
728
871
|
option: z.ZodString;
|
729
872
|
}, "strip", z.ZodTypeAny, {
|
730
873
|
type: string;
|
731
874
|
option: string;
|
732
|
-
|
875
|
+
path: string;
|
733
876
|
originalFilename: string;
|
734
877
|
}, {
|
735
878
|
type: string;
|
736
879
|
option: string;
|
737
|
-
|
880
|
+
path: string;
|
738
881
|
originalFilename: string;
|
739
882
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
740
883
|
country: z.ZodString;
|
@@ -822,16 +965,31 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
822
965
|
addressLine2?: string | null | undefined;
|
823
966
|
addressLine3?: string | null | undefined;
|
824
967
|
postcodeOrZip?: string | null | undefined;
|
825
|
-
}
|
826
|
-
|
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]>]>>>;
|
981
|
+
originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
|
827
982
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
828
983
|
}, {
|
829
|
-
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"]>;
|
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", "REVIEW_CORRECTION_REQUEST", "READ", "ASSIGN", "UNASSIGN"]>;
|
985
|
+
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
830
986
|
}>, "strip", z.ZodTypeAny, {
|
831
|
-
type: "
|
987
|
+
type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "REVIEW_CORRECTION_REQUEST" | "READ" | "ASSIGN" | "UNASSIGN";
|
988
|
+
status: "Rejected" | "Requested" | "Accepted";
|
989
|
+
transactionId: string;
|
832
990
|
declaration: Record<string, string | number | boolean | {
|
833
991
|
type: string;
|
834
|
-
|
992
|
+
path: string;
|
835
993
|
originalFilename: string;
|
836
994
|
} | {
|
837
995
|
country: string;
|
@@ -844,6 +1002,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
844
1002
|
residentialArea?: string | null | undefined;
|
845
1003
|
street?: string | null | undefined;
|
846
1004
|
zipCode?: string | null | undefined;
|
1005
|
+
} | {
|
1006
|
+
firstname?: string | null | undefined;
|
1007
|
+
surname?: string | null | undefined;
|
1008
|
+
middlename?: string | null | undefined;
|
847
1009
|
} | {
|
848
1010
|
country: string;
|
849
1011
|
district: string;
|
@@ -864,14 +1026,16 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
864
1026
|
} | {
|
865
1027
|
type: string;
|
866
1028
|
option: string;
|
867
|
-
|
1029
|
+
path: string;
|
868
1030
|
originalFilename: string;
|
869
|
-
}[] |
|
870
|
-
|
871
|
-
|
1031
|
+
}[] | {
|
1032
|
+
start: string;
|
1033
|
+
end: string;
|
1034
|
+
} | null | undefined>;
|
1035
|
+
eventId: string & z.BRAND<"UUID">;
|
872
1036
|
annotation?: Record<string, string | number | boolean | {
|
873
1037
|
type: string;
|
874
|
-
|
1038
|
+
path: string;
|
875
1039
|
originalFilename: string;
|
876
1040
|
} | {
|
877
1041
|
country: string;
|
@@ -884,6 +1048,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
884
1048
|
residentialArea?: string | null | undefined;
|
885
1049
|
street?: string | null | undefined;
|
886
1050
|
zipCode?: string | null | undefined;
|
1051
|
+
} | {
|
1052
|
+
firstname?: string | null | undefined;
|
1053
|
+
surname?: string | null | undefined;
|
1054
|
+
middlename?: string | null | undefined;
|
887
1055
|
} | {
|
888
1056
|
country: string;
|
889
1057
|
district: string;
|
@@ -904,18 +1072,22 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
904
1072
|
} | {
|
905
1073
|
type: string;
|
906
1074
|
option: string;
|
907
|
-
|
1075
|
+
path: string;
|
908
1076
|
originalFilename: string;
|
909
|
-
}[] |
|
910
|
-
|
1077
|
+
}[] | {
|
1078
|
+
start: string;
|
1079
|
+
end: string;
|
1080
|
+
} | null | undefined> | undefined;
|
1081
|
+
originalActionId?: (string & z.BRAND<"UUID">) | undefined;
|
911
1082
|
keepAssignment?: boolean | undefined;
|
912
1083
|
}, {
|
913
|
-
type: "
|
914
|
-
|
1084
|
+
type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "REVIEW_CORRECTION_REQUEST" | "READ" | "ASSIGN" | "UNASSIGN";
|
1085
|
+
status: "Rejected" | "Requested" | "Accepted";
|
915
1086
|
transactionId: string;
|
1087
|
+
eventId: string;
|
916
1088
|
declaration?: Record<string, string | number | boolean | {
|
917
1089
|
type: string;
|
918
|
-
|
1090
|
+
path: string;
|
919
1091
|
originalFilename: string;
|
920
1092
|
} | {
|
921
1093
|
country: string;
|
@@ -928,6 +1100,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
928
1100
|
residentialArea?: string | null | undefined;
|
929
1101
|
street?: string | null | undefined;
|
930
1102
|
zipCode?: string | null | undefined;
|
1103
|
+
} | {
|
1104
|
+
firstname?: string | null | undefined;
|
1105
|
+
surname?: string | null | undefined;
|
1106
|
+
middlename?: string | null | undefined;
|
931
1107
|
} | {
|
932
1108
|
country: string;
|
933
1109
|
district: string;
|
@@ -948,12 +1124,15 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
948
1124
|
} | {
|
949
1125
|
type: string;
|
950
1126
|
option: string;
|
951
|
-
|
1127
|
+
path: string;
|
952
1128
|
originalFilename: string;
|
953
|
-
}[] |
|
1129
|
+
}[] | {
|
1130
|
+
start: string;
|
1131
|
+
end: string;
|
1132
|
+
} | null | undefined> | undefined;
|
954
1133
|
annotation?: Record<string, string | number | boolean | {
|
955
1134
|
type: string;
|
956
|
-
|
1135
|
+
path: string;
|
957
1136
|
originalFilename: string;
|
958
1137
|
} | {
|
959
1138
|
country: string;
|
@@ -966,6 +1145,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
966
1145
|
residentialArea?: string | null | undefined;
|
967
1146
|
street?: string | null | undefined;
|
968
1147
|
zipCode?: string | null | undefined;
|
1148
|
+
} | {
|
1149
|
+
firstname?: string | null | undefined;
|
1150
|
+
surname?: string | null | undefined;
|
1151
|
+
middlename?: string | null | undefined;
|
969
1152
|
} | {
|
970
1153
|
country: string;
|
971
1154
|
district: string;
|
@@ -986,9 +1169,12 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
986
1169
|
} | {
|
987
1170
|
type: string;
|
988
1171
|
option: string;
|
989
|
-
|
1172
|
+
path: string;
|
990
1173
|
originalFilename: string;
|
991
|
-
}[] |
|
1174
|
+
}[] | {
|
1175
|
+
start: string;
|
1176
|
+
end: string;
|
1177
|
+
} | null | undefined> | undefined;
|
992
1178
|
originalActionId?: string | undefined;
|
993
1179
|
keepAssignment?: boolean | undefined;
|
994
1180
|
}>;
|