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