@opencrvs/toolkit 1.8.0-rc.ffbb9d7 → 1.8.0-rc.ffd355c
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 +7119 -1415
- package/dist/commons/conditionals/conditionals.d.ts +9 -13
- package/dist/commons/conditionals/validate.d.ts +11 -11
- package/dist/commons/events/ActionConfig.d.ts +125119 -1726
- package/dist/commons/events/ActionDocument.d.ts +4319 -1248
- package/dist/commons/events/ActionInput.d.ts +3295 -1025
- package/dist/commons/events/ActionType.d.ts +6 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +1260 -22
- 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 +291 -97
- package/dist/commons/events/EventConfig.d.ts +60211 -1356
- package/dist/commons/events/EventDocument.d.ts +2719 -827
- package/dist/commons/events/EventIndex.d.ts +2226 -27
- package/dist/commons/events/EventMetadata.d.ts +343 -45
- package/dist/commons/events/FieldConfig.d.ts +5993 -1044
- 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 +52392 -510
- package/dist/commons/events/PageConfig.d.ts +13003 -209
- package/dist/commons/events/SummaryConfig.d.ts +93 -42
- package/dist/commons/events/TemplateConfig.d.ts +4 -4
- 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 +9683 -58
- package/dist/commons/events/event.d.ts +46 -0
- package/dist/commons/events/field.d.ts +82 -0
- package/dist/commons/events/index.d.ts +8 -0
- package/dist/commons/events/scopes.d.ts +44 -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 +16164 -90
- package/dist/commons/events/utils.test.d.ts +2 -0
- package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
- package/dist/conditionals/index.js +65 -54
- package/dist/events/index.js +5043 -2204
- 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,20 +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
|
-
|
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]>]>>>>;
|
240
286
|
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
241
|
-
originalActionId: z.ZodOptional<z.ZodString
|
287
|
+
originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
|
242
288
|
}, {
|
243
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"]>;
|
244
290
|
}>, "id">, "strip", z.ZodTypeAny, {
|
245
|
-
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";
|
246
292
|
status: "Rejected" | "Requested" | "Accepted";
|
293
|
+
transactionId: string;
|
294
|
+
createdByUserType: "system" | "user";
|
247
295
|
createdAt: string;
|
248
296
|
createdBy: string;
|
297
|
+
createdByRole: string;
|
249
298
|
declaration: Record<string, string | number | boolean | {
|
250
299
|
type: string;
|
251
|
-
|
300
|
+
path: string;
|
252
301
|
originalFilename: string;
|
253
302
|
} | {
|
254
303
|
country: string;
|
@@ -261,6 +310,10 @@ export declare const Draft: z.ZodObject<{
|
|
261
310
|
residentialArea?: string | null | undefined;
|
262
311
|
street?: string | null | undefined;
|
263
312
|
zipCode?: string | null | undefined;
|
313
|
+
} | {
|
314
|
+
firstname?: string | null | undefined;
|
315
|
+
surname?: string | null | undefined;
|
316
|
+
middlename?: string | null | undefined;
|
264
317
|
} | {
|
265
318
|
country: string;
|
266
319
|
district: string;
|
@@ -281,13 +334,17 @@ export declare const Draft: z.ZodObject<{
|
|
281
334
|
} | {
|
282
335
|
type: string;
|
283
336
|
option: string;
|
284
|
-
|
337
|
+
path: string;
|
285
338
|
originalFilename: string;
|
286
|
-
}[] |
|
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,18 +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
|
-
|
386
|
+
}[] | {
|
387
|
+
start: string;
|
388
|
+
end: string;
|
389
|
+
} | null | undefined> | null | undefined;
|
390
|
+
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
327
391
|
}, {
|
328
|
-
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";
|
329
393
|
status: "Rejected" | "Requested" | "Accepted";
|
394
|
+
transactionId: string;
|
395
|
+
createdByUserType: "system" | "user";
|
330
396
|
createdAt: string;
|
331
397
|
createdBy: string;
|
398
|
+
createdByRole: string;
|
332
399
|
declaration: Record<string, string | number | boolean | {
|
333
400
|
type: string;
|
334
|
-
|
401
|
+
path: string;
|
335
402
|
originalFilename: string;
|
336
403
|
} | {
|
337
404
|
country: string;
|
@@ -344,6 +411,10 @@ export declare const Draft: z.ZodObject<{
|
|
344
411
|
residentialArea?: string | null | undefined;
|
345
412
|
street?: string | null | undefined;
|
346
413
|
zipCode?: string | null | undefined;
|
414
|
+
} | {
|
415
|
+
firstname?: string | null | undefined;
|
416
|
+
surname?: string | null | undefined;
|
417
|
+
middlename?: string | null | undefined;
|
347
418
|
} | {
|
348
419
|
country: string;
|
349
420
|
district: string;
|
@@ -364,13 +435,17 @@ export declare const Draft: z.ZodObject<{
|
|
364
435
|
} | {
|
365
436
|
type: string;
|
366
437
|
option: string;
|
367
|
-
|
438
|
+
path: string;
|
368
439
|
originalFilename: string;
|
369
|
-
}[] |
|
370
|
-
|
440
|
+
}[] | {
|
441
|
+
start: string;
|
442
|
+
end: string;
|
443
|
+
} | null | undefined>;
|
444
|
+
createdBySignature?: string | null | undefined;
|
445
|
+
createdAtLocation?: string | null | undefined;
|
371
446
|
annotation?: Record<string, string | number | boolean | {
|
372
447
|
type: string;
|
373
|
-
|
448
|
+
path: string;
|
374
449
|
originalFilename: string;
|
375
450
|
} | {
|
376
451
|
country: string;
|
@@ -383,6 +458,10 @@ export declare const Draft: z.ZodObject<{
|
|
383
458
|
residentialArea?: string | null | undefined;
|
384
459
|
street?: string | null | undefined;
|
385
460
|
zipCode?: string | null | undefined;
|
461
|
+
} | {
|
462
|
+
firstname?: string | null | undefined;
|
463
|
+
surname?: string | null | undefined;
|
464
|
+
middlename?: string | null | undefined;
|
386
465
|
} | {
|
387
466
|
country: string;
|
388
467
|
district: string;
|
@@ -403,24 +482,30 @@ export declare const Draft: z.ZodObject<{
|
|
403
482
|
} | {
|
404
483
|
type: string;
|
405
484
|
option: string;
|
406
|
-
|
485
|
+
path: string;
|
407
486
|
originalFilename: string;
|
408
|
-
}[] |
|
409
|
-
|
487
|
+
}[] | {
|
488
|
+
start: string;
|
489
|
+
end: string;
|
490
|
+
} | null | undefined> | null | undefined;
|
491
|
+
originalActionId?: string | null | undefined;
|
410
492
|
}>;
|
411
493
|
}, "strip", z.ZodTypeAny, {
|
412
|
-
id: string
|
413
|
-
createdAt: string;
|
414
|
-
eventId: string;
|
494
|
+
id: string & z.BRAND<"UUID">;
|
415
495
|
transactionId: string;
|
496
|
+
createdAt: string;
|
497
|
+
eventId: string & z.BRAND<"UUID">;
|
416
498
|
action: {
|
417
|
-
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";
|
418
500
|
status: "Rejected" | "Requested" | "Accepted";
|
501
|
+
transactionId: string;
|
502
|
+
createdByUserType: "system" | "user";
|
419
503
|
createdAt: string;
|
420
504
|
createdBy: string;
|
505
|
+
createdByRole: string;
|
421
506
|
declaration: Record<string, string | number | boolean | {
|
422
507
|
type: string;
|
423
|
-
|
508
|
+
path: string;
|
424
509
|
originalFilename: string;
|
425
510
|
} | {
|
426
511
|
country: string;
|
@@ -433,6 +518,10 @@ export declare const Draft: z.ZodObject<{
|
|
433
518
|
residentialArea?: string | null | undefined;
|
434
519
|
street?: string | null | undefined;
|
435
520
|
zipCode?: string | null | undefined;
|
521
|
+
} | {
|
522
|
+
firstname?: string | null | undefined;
|
523
|
+
surname?: string | null | undefined;
|
524
|
+
middlename?: string | null | undefined;
|
436
525
|
} | {
|
437
526
|
country: string;
|
438
527
|
district: string;
|
@@ -453,13 +542,17 @@ export declare const Draft: z.ZodObject<{
|
|
453
542
|
} | {
|
454
543
|
type: string;
|
455
544
|
option: string;
|
456
|
-
|
545
|
+
path: string;
|
457
546
|
originalFilename: string;
|
458
|
-
}[] |
|
459
|
-
|
547
|
+
}[] | {
|
548
|
+
start: string;
|
549
|
+
end: string;
|
550
|
+
} | null | undefined>;
|
551
|
+
createdBySignature?: string | null | undefined;
|
552
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
460
553
|
annotation?: Record<string, string | number | boolean | {
|
461
554
|
type: string;
|
462
|
-
|
555
|
+
path: string;
|
463
556
|
originalFilename: string;
|
464
557
|
} | {
|
465
558
|
country: string;
|
@@ -472,6 +565,10 @@ export declare const Draft: z.ZodObject<{
|
|
472
565
|
residentialArea?: string | null | undefined;
|
473
566
|
street?: string | null | undefined;
|
474
567
|
zipCode?: string | null | undefined;
|
568
|
+
} | {
|
569
|
+
firstname?: string | null | undefined;
|
570
|
+
surname?: string | null | undefined;
|
571
|
+
middlename?: string | null | undefined;
|
475
572
|
} | {
|
476
573
|
country: string;
|
477
574
|
district: string;
|
@@ -492,24 +589,30 @@ export declare const Draft: z.ZodObject<{
|
|
492
589
|
} | {
|
493
590
|
type: string;
|
494
591
|
option: string;
|
495
|
-
|
592
|
+
path: string;
|
496
593
|
originalFilename: string;
|
497
|
-
}[] |
|
498
|
-
|
594
|
+
}[] | {
|
595
|
+
start: string;
|
596
|
+
end: string;
|
597
|
+
} | null | undefined> | null | undefined;
|
598
|
+
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
499
599
|
};
|
500
600
|
}, {
|
501
601
|
id: string;
|
602
|
+
transactionId: string;
|
502
603
|
createdAt: string;
|
503
604
|
eventId: string;
|
504
|
-
transactionId: string;
|
505
605
|
action: {
|
506
|
-
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";
|
507
607
|
status: "Rejected" | "Requested" | "Accepted";
|
608
|
+
transactionId: string;
|
609
|
+
createdByUserType: "system" | "user";
|
508
610
|
createdAt: string;
|
509
611
|
createdBy: string;
|
612
|
+
createdByRole: string;
|
510
613
|
declaration: Record<string, string | number | boolean | {
|
511
614
|
type: string;
|
512
|
-
|
615
|
+
path: string;
|
513
616
|
originalFilename: string;
|
514
617
|
} | {
|
515
618
|
country: string;
|
@@ -522,6 +625,10 @@ export declare const Draft: z.ZodObject<{
|
|
522
625
|
residentialArea?: string | null | undefined;
|
523
626
|
street?: string | null | undefined;
|
524
627
|
zipCode?: string | null | undefined;
|
628
|
+
} | {
|
629
|
+
firstname?: string | null | undefined;
|
630
|
+
surname?: string | null | undefined;
|
631
|
+
middlename?: string | null | undefined;
|
525
632
|
} | {
|
526
633
|
country: string;
|
527
634
|
district: string;
|
@@ -542,13 +649,17 @@ export declare const Draft: z.ZodObject<{
|
|
542
649
|
} | {
|
543
650
|
type: string;
|
544
651
|
option: string;
|
545
|
-
|
652
|
+
path: string;
|
546
653
|
originalFilename: string;
|
547
|
-
}[] |
|
548
|
-
|
654
|
+
}[] | {
|
655
|
+
start: string;
|
656
|
+
end: string;
|
657
|
+
} | null | undefined>;
|
658
|
+
createdBySignature?: string | null | undefined;
|
659
|
+
createdAtLocation?: string | null | undefined;
|
549
660
|
annotation?: Record<string, string | number | boolean | {
|
550
661
|
type: string;
|
551
|
-
|
662
|
+
path: string;
|
552
663
|
originalFilename: string;
|
553
664
|
} | {
|
554
665
|
country: string;
|
@@ -561,6 +672,10 @@ export declare const Draft: z.ZodObject<{
|
|
561
672
|
residentialArea?: string | null | undefined;
|
562
673
|
street?: string | null | undefined;
|
563
674
|
zipCode?: string | null | undefined;
|
675
|
+
} | {
|
676
|
+
firstname?: string | null | undefined;
|
677
|
+
surname?: string | null | undefined;
|
678
|
+
middlename?: string | null | undefined;
|
564
679
|
} | {
|
565
680
|
country: string;
|
566
681
|
district: string;
|
@@ -581,41 +696,53 @@ export declare const Draft: z.ZodObject<{
|
|
581
696
|
} | {
|
582
697
|
type: string;
|
583
698
|
option: string;
|
584
|
-
|
699
|
+
path: string;
|
585
700
|
originalFilename: string;
|
586
|
-
}[] |
|
587
|
-
|
701
|
+
}[] | {
|
702
|
+
start: string;
|
703
|
+
end: string;
|
704
|
+
} | null | undefined> | null | undefined;
|
705
|
+
originalActionId?: string | null | undefined;
|
588
706
|
};
|
589
707
|
}>;
|
590
708
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
591
|
-
eventId: z.ZodString
|
709
|
+
eventId: z.ZodBranded<z.ZodString, "UUID">;
|
592
710
|
transactionId: z.ZodString;
|
593
|
-
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.
|
594
|
-
|
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>;
|
595
722
|
originalFilename: z.ZodString;
|
596
723
|
type: z.ZodString;
|
597
724
|
}, "strip", z.ZodTypeAny, {
|
598
725
|
type: string;
|
599
|
-
|
726
|
+
path: string;
|
600
727
|
originalFilename: string;
|
601
728
|
}, {
|
602
729
|
type: string;
|
603
|
-
|
730
|
+
path: string;
|
604
731
|
originalFilename: string;
|
605
732
|
}>, z.ZodArray<z.ZodObject<{
|
606
|
-
|
733
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
607
734
|
originalFilename: z.ZodString;
|
608
735
|
type: z.ZodString;
|
609
736
|
option: z.ZodString;
|
610
737
|
}, "strip", z.ZodTypeAny, {
|
611
738
|
type: string;
|
612
739
|
option: string;
|
613
|
-
|
740
|
+
path: string;
|
614
741
|
originalFilename: string;
|
615
742
|
}, {
|
616
743
|
type: string;
|
617
744
|
option: string;
|
618
|
-
|
745
|
+
path: string;
|
619
746
|
originalFilename: string;
|
620
747
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
621
748
|
country: z.ZodString;
|
@@ -703,33 +830,54 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
703
830
|
addressLine2?: string | null | undefined;
|
704
831
|
addressLine3?: string | null | undefined;
|
705
832
|
postcodeOrZip?: string | null | undefined;
|
706
|
-
}
|
707
|
-
|
708
|
-
|
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>;
|
709
857
|
originalFilename: z.ZodString;
|
710
858
|
type: z.ZodString;
|
711
859
|
}, "strip", z.ZodTypeAny, {
|
712
860
|
type: string;
|
713
|
-
|
861
|
+
path: string;
|
714
862
|
originalFilename: string;
|
715
863
|
}, {
|
716
864
|
type: string;
|
717
|
-
|
865
|
+
path: string;
|
718
866
|
originalFilename: string;
|
719
867
|
}>, z.ZodArray<z.ZodObject<{
|
720
|
-
|
868
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
721
869
|
originalFilename: z.ZodString;
|
722
870
|
type: z.ZodString;
|
723
871
|
option: z.ZodString;
|
724
872
|
}, "strip", z.ZodTypeAny, {
|
725
873
|
type: string;
|
726
874
|
option: string;
|
727
|
-
|
875
|
+
path: string;
|
728
876
|
originalFilename: string;
|
729
877
|
}, {
|
730
878
|
type: string;
|
731
879
|
option: string;
|
732
|
-
|
880
|
+
path: string;
|
733
881
|
originalFilename: string;
|
734
882
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
735
883
|
country: z.ZodString;
|
@@ -817,15 +965,31 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
817
965
|
addressLine2?: string | null | undefined;
|
818
966
|
addressLine3?: string | null | undefined;
|
819
967
|
postcodeOrZip?: string | null | undefined;
|
820
|
-
}
|
821
|
-
|
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">>;
|
982
|
+
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
822
983
|
}, {
|
823
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"]>;
|
985
|
+
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
824
986
|
}>, "strip", z.ZodTypeAny, {
|
825
|
-
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";
|
988
|
+
status: "Rejected" | "Requested" | "Accepted";
|
989
|
+
transactionId: string;
|
826
990
|
declaration: Record<string, string | number | boolean | {
|
827
991
|
type: string;
|
828
|
-
|
992
|
+
path: string;
|
829
993
|
originalFilename: string;
|
830
994
|
} | {
|
831
995
|
country: string;
|
@@ -838,6 +1002,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
838
1002
|
residentialArea?: string | null | undefined;
|
839
1003
|
street?: string | null | undefined;
|
840
1004
|
zipCode?: string | null | undefined;
|
1005
|
+
} | {
|
1006
|
+
firstname?: string | null | undefined;
|
1007
|
+
surname?: string | null | undefined;
|
1008
|
+
middlename?: string | null | undefined;
|
841
1009
|
} | {
|
842
1010
|
country: string;
|
843
1011
|
district: string;
|
@@ -858,14 +1026,16 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
858
1026
|
} | {
|
859
1027
|
type: string;
|
860
1028
|
option: string;
|
861
|
-
|
1029
|
+
path: string;
|
862
1030
|
originalFilename: string;
|
863
|
-
}[] |
|
864
|
-
|
865
|
-
|
1031
|
+
}[] | {
|
1032
|
+
start: string;
|
1033
|
+
end: string;
|
1034
|
+
} | null | undefined>;
|
1035
|
+
eventId: string & z.BRAND<"UUID">;
|
866
1036
|
annotation?: Record<string, string | number | boolean | {
|
867
1037
|
type: string;
|
868
|
-
|
1038
|
+
path: string;
|
869
1039
|
originalFilename: string;
|
870
1040
|
} | {
|
871
1041
|
country: string;
|
@@ -878,6 +1048,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
878
1048
|
residentialArea?: string | null | undefined;
|
879
1049
|
street?: string | null | undefined;
|
880
1050
|
zipCode?: string | null | undefined;
|
1051
|
+
} | {
|
1052
|
+
firstname?: string | null | undefined;
|
1053
|
+
surname?: string | null | undefined;
|
1054
|
+
middlename?: string | null | undefined;
|
881
1055
|
} | {
|
882
1056
|
country: string;
|
883
1057
|
district: string;
|
@@ -898,17 +1072,22 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
898
1072
|
} | {
|
899
1073
|
type: string;
|
900
1074
|
option: string;
|
901
|
-
|
1075
|
+
path: string;
|
902
1076
|
originalFilename: string;
|
903
|
-
}[] |
|
904
|
-
|
1077
|
+
}[] | {
|
1078
|
+
start: string;
|
1079
|
+
end: string;
|
1080
|
+
} | null | undefined> | undefined;
|
1081
|
+
originalActionId?: (string & z.BRAND<"UUID">) | undefined;
|
1082
|
+
keepAssignment?: boolean | undefined;
|
905
1083
|
}, {
|
906
|
-
type: "
|
907
|
-
|
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";
|
1085
|
+
status: "Rejected" | "Requested" | "Accepted";
|
908
1086
|
transactionId: string;
|
1087
|
+
eventId: string;
|
909
1088
|
declaration?: Record<string, string | number | boolean | {
|
910
1089
|
type: string;
|
911
|
-
|
1090
|
+
path: string;
|
912
1091
|
originalFilename: string;
|
913
1092
|
} | {
|
914
1093
|
country: string;
|
@@ -921,6 +1100,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
921
1100
|
residentialArea?: string | null | undefined;
|
922
1101
|
street?: string | null | undefined;
|
923
1102
|
zipCode?: string | null | undefined;
|
1103
|
+
} | {
|
1104
|
+
firstname?: string | null | undefined;
|
1105
|
+
surname?: string | null | undefined;
|
1106
|
+
middlename?: string | null | undefined;
|
924
1107
|
} | {
|
925
1108
|
country: string;
|
926
1109
|
district: string;
|
@@ -941,12 +1124,15 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
941
1124
|
} | {
|
942
1125
|
type: string;
|
943
1126
|
option: string;
|
944
|
-
|
1127
|
+
path: string;
|
945
1128
|
originalFilename: string;
|
946
|
-
}[] |
|
1129
|
+
}[] | {
|
1130
|
+
start: string;
|
1131
|
+
end: string;
|
1132
|
+
} | null | undefined> | undefined;
|
947
1133
|
annotation?: Record<string, string | number | boolean | {
|
948
1134
|
type: string;
|
949
|
-
|
1135
|
+
path: string;
|
950
1136
|
originalFilename: string;
|
951
1137
|
} | {
|
952
1138
|
country: string;
|
@@ -959,6 +1145,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
959
1145
|
residentialArea?: string | null | undefined;
|
960
1146
|
street?: string | null | undefined;
|
961
1147
|
zipCode?: string | null | undefined;
|
1148
|
+
} | {
|
1149
|
+
firstname?: string | null | undefined;
|
1150
|
+
surname?: string | null | undefined;
|
1151
|
+
middlename?: string | null | undefined;
|
962
1152
|
} | {
|
963
1153
|
country: string;
|
964
1154
|
district: string;
|
@@ -979,10 +1169,14 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
979
1169
|
} | {
|
980
1170
|
type: string;
|
981
1171
|
option: string;
|
982
|
-
|
1172
|
+
path: string;
|
983
1173
|
originalFilename: string;
|
984
|
-
}[] |
|
1174
|
+
}[] | {
|
1175
|
+
start: string;
|
1176
|
+
end: string;
|
1177
|
+
} | null | undefined> | undefined;
|
985
1178
|
originalActionId?: string | undefined;
|
1179
|
+
keepAssignment?: boolean | undefined;
|
986
1180
|
}>;
|
987
1181
|
export type Draft = z.infer<typeof Draft>;
|
988
1182
|
export type DraftInput = z.infer<typeof DraftInput>;
|