@opencrvs/toolkit 1.8.1-rc.a372970 → 1.8.1-rc.bbbfede
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 +6318 -5078
- package/dist/commons/conditionals/conditionals.d.ts +9 -13
- package/dist/commons/conditionals/validate.d.ts +17 -7
- package/dist/commons/events/ActionConfig.d.ts +119326 -1729
- package/dist/commons/events/ActionDocument.d.ts +5481 -1268
- package/dist/commons/events/ActionInput.d.ts +3745 -1025
- package/dist/commons/events/ActionType.d.ts +10 -1
- package/dist/commons/events/AdvancedSearchConfig.d.ts +1282 -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 +332 -97
- package/dist/commons/events/EventConfig.d.ts +54363 -1357
- package/dist/commons/events/EventDocument.d.ts +3136 -833
- package/dist/commons/events/EventIndex.d.ts +2234 -29
- package/dist/commons/events/EventMetadata.d.ts +353 -47
- package/dist/commons/events/FieldConfig.d.ts +6756 -1260
- package/dist/commons/events/FieldType.d.ts +8 -3
- package/dist/commons/events/FieldTypeMapping.d.ts +161 -73
- package/dist/commons/events/FieldValue.d.ts +91 -20
- package/dist/commons/events/FormConfig.d.ts +55770 -522
- package/dist/commons/events/PageConfig.d.ts +13825 -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 +8529 -77
- package/dist/commons/events/event.d.ts +100 -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 +45 -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 +15440 -88
- package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
- package/dist/conditionals/index.js +66 -56
- package/dist/events/index.js +4755 -1788
- package/dist/scopes/index.d.ts +184 -7
- package/dist/scopes/index.js +140 -40
- 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.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.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,44 @@ 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]>]>>>>;
|
286
|
+
actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
287
|
+
templateId: z.ZodOptional<z.ZodString>;
|
288
|
+
isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
|
289
|
+
}, "strip", z.ZodTypeAny, {
|
290
|
+
templateId?: string | undefined;
|
291
|
+
isImmediateCorrection?: boolean | undefined;
|
292
|
+
}, {
|
293
|
+
templateId?: string | undefined;
|
294
|
+
isImmediateCorrection?: boolean | undefined;
|
295
|
+
}>>>;
|
240
296
|
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
241
|
-
originalActionId: z.ZodOptional<z.ZodString
|
297
|
+
originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
|
242
298
|
}, {
|
243
299
|
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
300
|
}>, "id">, "strip", z.ZodTypeAny, {
|
245
|
-
type: "
|
301
|
+
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
302
|
status: "Rejected" | "Requested" | "Accepted";
|
303
|
+
transactionId: string;
|
304
|
+
createdByUserType: "system" | "user";
|
247
305
|
createdAt: string;
|
248
306
|
createdBy: string;
|
307
|
+
createdByRole: string;
|
249
308
|
declaration: Record<string, string | number | boolean | {
|
250
309
|
type: string;
|
251
|
-
|
310
|
+
path: string;
|
252
311
|
originalFilename: string;
|
253
312
|
} | {
|
254
313
|
country: string;
|
@@ -261,6 +320,10 @@ export declare const Draft: z.ZodObject<{
|
|
261
320
|
residentialArea?: string | null | undefined;
|
262
321
|
street?: string | null | undefined;
|
263
322
|
zipCode?: string | null | undefined;
|
323
|
+
} | {
|
324
|
+
firstname?: string | null | undefined;
|
325
|
+
surname?: string | null | undefined;
|
326
|
+
middlename?: string | null | undefined;
|
264
327
|
} | {
|
265
328
|
country: string;
|
266
329
|
district: string;
|
@@ -281,13 +344,17 @@ export declare const Draft: z.ZodObject<{
|
|
281
344
|
} | {
|
282
345
|
type: string;
|
283
346
|
option: string;
|
284
|
-
|
347
|
+
path: string;
|
285
348
|
originalFilename: string;
|
286
|
-
}[] |
|
287
|
-
|
349
|
+
}[] | {
|
350
|
+
start: string;
|
351
|
+
end: string;
|
352
|
+
} | null | undefined>;
|
353
|
+
createdBySignature?: string | null | undefined;
|
354
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
288
355
|
annotation?: Record<string, string | number | boolean | {
|
289
356
|
type: string;
|
290
|
-
|
357
|
+
path: string;
|
291
358
|
originalFilename: string;
|
292
359
|
} | {
|
293
360
|
country: string;
|
@@ -300,6 +367,10 @@ export declare const Draft: z.ZodObject<{
|
|
300
367
|
residentialArea?: string | null | undefined;
|
301
368
|
street?: string | null | undefined;
|
302
369
|
zipCode?: string | null | undefined;
|
370
|
+
} | {
|
371
|
+
firstname?: string | null | undefined;
|
372
|
+
surname?: string | null | undefined;
|
373
|
+
middlename?: string | null | undefined;
|
303
374
|
} | {
|
304
375
|
country: string;
|
305
376
|
district: string;
|
@@ -320,18 +391,28 @@ export declare const Draft: z.ZodObject<{
|
|
320
391
|
} | {
|
321
392
|
type: string;
|
322
393
|
option: string;
|
323
|
-
|
394
|
+
path: string;
|
324
395
|
originalFilename: string;
|
325
|
-
}[] |
|
326
|
-
|
396
|
+
}[] | {
|
397
|
+
start: string;
|
398
|
+
end: string;
|
399
|
+
} | null | undefined> | null | undefined;
|
400
|
+
actionDetails?: {
|
401
|
+
templateId?: string | undefined;
|
402
|
+
isImmediateCorrection?: boolean | undefined;
|
403
|
+
} | null | undefined;
|
404
|
+
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
327
405
|
}, {
|
328
|
-
type: "
|
406
|
+
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
407
|
status: "Rejected" | "Requested" | "Accepted";
|
408
|
+
transactionId: string;
|
409
|
+
createdByUserType: "system" | "user";
|
330
410
|
createdAt: string;
|
331
411
|
createdBy: string;
|
412
|
+
createdByRole: string;
|
332
413
|
declaration: Record<string, string | number | boolean | {
|
333
414
|
type: string;
|
334
|
-
|
415
|
+
path: string;
|
335
416
|
originalFilename: string;
|
336
417
|
} | {
|
337
418
|
country: string;
|
@@ -344,6 +425,10 @@ export declare const Draft: z.ZodObject<{
|
|
344
425
|
residentialArea?: string | null | undefined;
|
345
426
|
street?: string | null | undefined;
|
346
427
|
zipCode?: string | null | undefined;
|
428
|
+
} | {
|
429
|
+
firstname?: string | null | undefined;
|
430
|
+
surname?: string | null | undefined;
|
431
|
+
middlename?: string | null | undefined;
|
347
432
|
} | {
|
348
433
|
country: string;
|
349
434
|
district: string;
|
@@ -364,13 +449,17 @@ export declare const Draft: z.ZodObject<{
|
|
364
449
|
} | {
|
365
450
|
type: string;
|
366
451
|
option: string;
|
367
|
-
|
452
|
+
path: string;
|
368
453
|
originalFilename: string;
|
369
|
-
}[] |
|
370
|
-
|
454
|
+
}[] | {
|
455
|
+
start: string;
|
456
|
+
end: string;
|
457
|
+
} | null | undefined>;
|
458
|
+
createdBySignature?: string | null | undefined;
|
459
|
+
createdAtLocation?: string | null | undefined;
|
371
460
|
annotation?: Record<string, string | number | boolean | {
|
372
461
|
type: string;
|
373
|
-
|
462
|
+
path: string;
|
374
463
|
originalFilename: string;
|
375
464
|
} | {
|
376
465
|
country: string;
|
@@ -383,6 +472,10 @@ export declare const Draft: z.ZodObject<{
|
|
383
472
|
residentialArea?: string | null | undefined;
|
384
473
|
street?: string | null | undefined;
|
385
474
|
zipCode?: string | null | undefined;
|
475
|
+
} | {
|
476
|
+
firstname?: string | null | undefined;
|
477
|
+
surname?: string | null | undefined;
|
478
|
+
middlename?: string | null | undefined;
|
386
479
|
} | {
|
387
480
|
country: string;
|
388
481
|
district: string;
|
@@ -403,24 +496,34 @@ export declare const Draft: z.ZodObject<{
|
|
403
496
|
} | {
|
404
497
|
type: string;
|
405
498
|
option: string;
|
406
|
-
|
499
|
+
path: string;
|
407
500
|
originalFilename: string;
|
408
|
-
}[] |
|
409
|
-
|
501
|
+
}[] | {
|
502
|
+
start: string;
|
503
|
+
end: string;
|
504
|
+
} | null | undefined> | null | undefined;
|
505
|
+
actionDetails?: {
|
506
|
+
templateId?: string | undefined;
|
507
|
+
isImmediateCorrection?: boolean | undefined;
|
508
|
+
} | null | undefined;
|
509
|
+
originalActionId?: string | null | undefined;
|
410
510
|
}>;
|
411
511
|
}, "strip", z.ZodTypeAny, {
|
412
|
-
id: string
|
413
|
-
createdAt: string;
|
414
|
-
eventId: string;
|
512
|
+
id: string & z.BRAND<"UUID">;
|
415
513
|
transactionId: string;
|
514
|
+
createdAt: string;
|
515
|
+
eventId: string & z.BRAND<"UUID">;
|
416
516
|
action: {
|
417
|
-
type: "
|
517
|
+
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
518
|
status: "Rejected" | "Requested" | "Accepted";
|
519
|
+
transactionId: string;
|
520
|
+
createdByUserType: "system" | "user";
|
419
521
|
createdAt: string;
|
420
522
|
createdBy: string;
|
523
|
+
createdByRole: string;
|
421
524
|
declaration: Record<string, string | number | boolean | {
|
422
525
|
type: string;
|
423
|
-
|
526
|
+
path: string;
|
424
527
|
originalFilename: string;
|
425
528
|
} | {
|
426
529
|
country: string;
|
@@ -433,6 +536,10 @@ export declare const Draft: z.ZodObject<{
|
|
433
536
|
residentialArea?: string | null | undefined;
|
434
537
|
street?: string | null | undefined;
|
435
538
|
zipCode?: string | null | undefined;
|
539
|
+
} | {
|
540
|
+
firstname?: string | null | undefined;
|
541
|
+
surname?: string | null | undefined;
|
542
|
+
middlename?: string | null | undefined;
|
436
543
|
} | {
|
437
544
|
country: string;
|
438
545
|
district: string;
|
@@ -453,13 +560,17 @@ export declare const Draft: z.ZodObject<{
|
|
453
560
|
} | {
|
454
561
|
type: string;
|
455
562
|
option: string;
|
456
|
-
|
563
|
+
path: string;
|
457
564
|
originalFilename: string;
|
458
|
-
}[] |
|
459
|
-
|
565
|
+
}[] | {
|
566
|
+
start: string;
|
567
|
+
end: string;
|
568
|
+
} | null | undefined>;
|
569
|
+
createdBySignature?: string | null | undefined;
|
570
|
+
createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
|
460
571
|
annotation?: Record<string, string | number | boolean | {
|
461
572
|
type: string;
|
462
|
-
|
573
|
+
path: string;
|
463
574
|
originalFilename: string;
|
464
575
|
} | {
|
465
576
|
country: string;
|
@@ -472,6 +583,10 @@ export declare const Draft: z.ZodObject<{
|
|
472
583
|
residentialArea?: string | null | undefined;
|
473
584
|
street?: string | null | undefined;
|
474
585
|
zipCode?: string | null | undefined;
|
586
|
+
} | {
|
587
|
+
firstname?: string | null | undefined;
|
588
|
+
surname?: string | null | undefined;
|
589
|
+
middlename?: string | null | undefined;
|
475
590
|
} | {
|
476
591
|
country: string;
|
477
592
|
district: string;
|
@@ -492,24 +607,34 @@ export declare const Draft: z.ZodObject<{
|
|
492
607
|
} | {
|
493
608
|
type: string;
|
494
609
|
option: string;
|
495
|
-
|
610
|
+
path: string;
|
496
611
|
originalFilename: string;
|
497
|
-
}[] |
|
498
|
-
|
612
|
+
}[] | {
|
613
|
+
start: string;
|
614
|
+
end: string;
|
615
|
+
} | null | undefined> | null | undefined;
|
616
|
+
actionDetails?: {
|
617
|
+
templateId?: string | undefined;
|
618
|
+
isImmediateCorrection?: boolean | undefined;
|
619
|
+
} | null | undefined;
|
620
|
+
originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
|
499
621
|
};
|
500
622
|
}, {
|
501
623
|
id: string;
|
624
|
+
transactionId: string;
|
502
625
|
createdAt: string;
|
503
626
|
eventId: string;
|
504
|
-
transactionId: string;
|
505
627
|
action: {
|
506
|
-
type: "
|
628
|
+
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
629
|
status: "Rejected" | "Requested" | "Accepted";
|
630
|
+
transactionId: string;
|
631
|
+
createdByUserType: "system" | "user";
|
508
632
|
createdAt: string;
|
509
633
|
createdBy: string;
|
634
|
+
createdByRole: string;
|
510
635
|
declaration: Record<string, string | number | boolean | {
|
511
636
|
type: string;
|
512
|
-
|
637
|
+
path: string;
|
513
638
|
originalFilename: string;
|
514
639
|
} | {
|
515
640
|
country: string;
|
@@ -522,6 +647,10 @@ export declare const Draft: z.ZodObject<{
|
|
522
647
|
residentialArea?: string | null | undefined;
|
523
648
|
street?: string | null | undefined;
|
524
649
|
zipCode?: string | null | undefined;
|
650
|
+
} | {
|
651
|
+
firstname?: string | null | undefined;
|
652
|
+
surname?: string | null | undefined;
|
653
|
+
middlename?: string | null | undefined;
|
525
654
|
} | {
|
526
655
|
country: string;
|
527
656
|
district: string;
|
@@ -542,13 +671,17 @@ export declare const Draft: z.ZodObject<{
|
|
542
671
|
} | {
|
543
672
|
type: string;
|
544
673
|
option: string;
|
545
|
-
|
674
|
+
path: string;
|
546
675
|
originalFilename: string;
|
547
|
-
}[] |
|
548
|
-
|
676
|
+
}[] | {
|
677
|
+
start: string;
|
678
|
+
end: string;
|
679
|
+
} | null | undefined>;
|
680
|
+
createdBySignature?: string | null | undefined;
|
681
|
+
createdAtLocation?: string | null | undefined;
|
549
682
|
annotation?: Record<string, string | number | boolean | {
|
550
683
|
type: string;
|
551
|
-
|
684
|
+
path: string;
|
552
685
|
originalFilename: string;
|
553
686
|
} | {
|
554
687
|
country: string;
|
@@ -561,6 +694,10 @@ export declare const Draft: z.ZodObject<{
|
|
561
694
|
residentialArea?: string | null | undefined;
|
562
695
|
street?: string | null | undefined;
|
563
696
|
zipCode?: string | null | undefined;
|
697
|
+
} | {
|
698
|
+
firstname?: string | null | undefined;
|
699
|
+
surname?: string | null | undefined;
|
700
|
+
middlename?: string | null | undefined;
|
564
701
|
} | {
|
565
702
|
country: string;
|
566
703
|
district: string;
|
@@ -581,41 +718,57 @@ export declare const Draft: z.ZodObject<{
|
|
581
718
|
} | {
|
582
719
|
type: string;
|
583
720
|
option: string;
|
584
|
-
|
721
|
+
path: string;
|
585
722
|
originalFilename: string;
|
586
|
-
}[] |
|
587
|
-
|
723
|
+
}[] | {
|
724
|
+
start: string;
|
725
|
+
end: string;
|
726
|
+
} | null | undefined> | null | undefined;
|
727
|
+
actionDetails?: {
|
728
|
+
templateId?: string | undefined;
|
729
|
+
isImmediateCorrection?: boolean | undefined;
|
730
|
+
} | null | undefined;
|
731
|
+
originalActionId?: string | null | undefined;
|
588
732
|
};
|
589
733
|
}>;
|
590
734
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
591
|
-
eventId: z.ZodString
|
735
|
+
eventId: z.ZodBranded<z.ZodString, "UUID">;
|
592
736
|
transactionId: z.ZodString;
|
593
|
-
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.
|
594
|
-
|
737
|
+
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
|
738
|
+
start: z.ZodString;
|
739
|
+
end: z.ZodString;
|
740
|
+
}, "strip", z.ZodTypeAny, {
|
741
|
+
start: string;
|
742
|
+
end: string;
|
743
|
+
}, {
|
744
|
+
start: string;
|
745
|
+
end: string;
|
746
|
+
}>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
747
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
595
748
|
originalFilename: z.ZodString;
|
596
749
|
type: z.ZodString;
|
597
750
|
}, "strip", z.ZodTypeAny, {
|
598
751
|
type: string;
|
599
|
-
|
752
|
+
path: string;
|
600
753
|
originalFilename: string;
|
601
754
|
}, {
|
602
755
|
type: string;
|
603
|
-
|
756
|
+
path: string;
|
604
757
|
originalFilename: string;
|
605
758
|
}>, z.ZodArray<z.ZodObject<{
|
606
|
-
|
759
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
607
760
|
originalFilename: z.ZodString;
|
608
761
|
type: z.ZodString;
|
609
762
|
option: z.ZodString;
|
610
763
|
}, "strip", z.ZodTypeAny, {
|
611
764
|
type: string;
|
612
765
|
option: string;
|
613
|
-
|
766
|
+
path: string;
|
614
767
|
originalFilename: string;
|
615
768
|
}, {
|
616
769
|
type: string;
|
617
770
|
option: string;
|
618
|
-
|
771
|
+
path: string;
|
619
772
|
originalFilename: string;
|
620
773
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
621
774
|
country: z.ZodString;
|
@@ -703,33 +856,54 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
703
856
|
addressLine2?: string | null | undefined;
|
704
857
|
addressLine3?: string | null | undefined;
|
705
858
|
postcodeOrZip?: string | null | undefined;
|
706
|
-
}
|
707
|
-
|
708
|
-
|
859
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
860
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
861
|
+
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
862
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
863
|
+
}, "strip", z.ZodTypeAny, {
|
864
|
+
firstname?: string | null | undefined;
|
865
|
+
surname?: string | null | undefined;
|
866
|
+
middlename?: string | null | undefined;
|
867
|
+
}, {
|
868
|
+
firstname?: string | null | undefined;
|
869
|
+
surname?: string | null | undefined;
|
870
|
+
middlename?: string | null | undefined;
|
871
|
+
}>, z.ZodNull]>, z.ZodUndefined]>]>>>;
|
872
|
+
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
|
873
|
+
start: z.ZodString;
|
874
|
+
end: z.ZodString;
|
875
|
+
}, "strip", z.ZodTypeAny, {
|
876
|
+
start: string;
|
877
|
+
end: string;
|
878
|
+
}, {
|
879
|
+
start: string;
|
880
|
+
end: string;
|
881
|
+
}>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
882
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
709
883
|
originalFilename: z.ZodString;
|
710
884
|
type: z.ZodString;
|
711
885
|
}, "strip", z.ZodTypeAny, {
|
712
886
|
type: string;
|
713
|
-
|
887
|
+
path: string;
|
714
888
|
originalFilename: string;
|
715
889
|
}, {
|
716
890
|
type: string;
|
717
|
-
|
891
|
+
path: string;
|
718
892
|
originalFilename: string;
|
719
893
|
}>, z.ZodArray<z.ZodObject<{
|
720
|
-
|
894
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
721
895
|
originalFilename: z.ZodString;
|
722
896
|
type: z.ZodString;
|
723
897
|
option: z.ZodString;
|
724
898
|
}, "strip", z.ZodTypeAny, {
|
725
899
|
type: string;
|
726
900
|
option: string;
|
727
|
-
|
901
|
+
path: string;
|
728
902
|
originalFilename: string;
|
729
903
|
}, {
|
730
904
|
type: string;
|
731
905
|
option: string;
|
732
|
-
|
906
|
+
path: string;
|
733
907
|
originalFilename: string;
|
734
908
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
735
909
|
country: z.ZodString;
|
@@ -817,16 +991,41 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
817
991
|
addressLine2?: string | null | undefined;
|
818
992
|
addressLine3?: string | null | undefined;
|
819
993
|
postcodeOrZip?: string | null | undefined;
|
820
|
-
}
|
821
|
-
|
994
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
995
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
996
|
+
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
997
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
998
|
+
}, "strip", z.ZodTypeAny, {
|
999
|
+
firstname?: string | null | undefined;
|
1000
|
+
surname?: string | null | undefined;
|
1001
|
+
middlename?: string | null | undefined;
|
1002
|
+
}, {
|
1003
|
+
firstname?: string | null | undefined;
|
1004
|
+
surname?: string | null | undefined;
|
1005
|
+
middlename?: string | null | undefined;
|
1006
|
+
}>, z.ZodNull]>, z.ZodUndefined]>]>>>;
|
1007
|
+
actionDetails: z.ZodOptional<z.ZodObject<{
|
1008
|
+
templateId: z.ZodOptional<z.ZodString>;
|
1009
|
+
isImmediateCorrection: z.ZodOptional<z.ZodBoolean>;
|
1010
|
+
}, "strip", z.ZodTypeAny, {
|
1011
|
+
templateId?: string | undefined;
|
1012
|
+
isImmediateCorrection?: boolean | undefined;
|
1013
|
+
}, {
|
1014
|
+
templateId?: string | undefined;
|
1015
|
+
isImmediateCorrection?: boolean | undefined;
|
1016
|
+
}>>;
|
1017
|
+
originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
|
822
1018
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
823
1019
|
}, {
|
824
1020
|
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"]>;
|
1021
|
+
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
825
1022
|
}>, "strip", z.ZodTypeAny, {
|
826
|
-
type: "
|
1023
|
+
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";
|
1024
|
+
status: "Rejected" | "Requested" | "Accepted";
|
1025
|
+
transactionId: string;
|
827
1026
|
declaration: Record<string, string | number | boolean | {
|
828
1027
|
type: string;
|
829
|
-
|
1028
|
+
path: string;
|
830
1029
|
originalFilename: string;
|
831
1030
|
} | {
|
832
1031
|
country: string;
|
@@ -839,6 +1038,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
839
1038
|
residentialArea?: string | null | undefined;
|
840
1039
|
street?: string | null | undefined;
|
841
1040
|
zipCode?: string | null | undefined;
|
1041
|
+
} | {
|
1042
|
+
firstname?: string | null | undefined;
|
1043
|
+
surname?: string | null | undefined;
|
1044
|
+
middlename?: string | null | undefined;
|
842
1045
|
} | {
|
843
1046
|
country: string;
|
844
1047
|
district: string;
|
@@ -859,14 +1062,16 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
859
1062
|
} | {
|
860
1063
|
type: string;
|
861
1064
|
option: string;
|
862
|
-
|
1065
|
+
path: string;
|
863
1066
|
originalFilename: string;
|
864
|
-
}[] |
|
865
|
-
|
866
|
-
|
1067
|
+
}[] | {
|
1068
|
+
start: string;
|
1069
|
+
end: string;
|
1070
|
+
} | null | undefined>;
|
1071
|
+
eventId: string & z.BRAND<"UUID">;
|
867
1072
|
annotation?: Record<string, string | number | boolean | {
|
868
1073
|
type: string;
|
869
|
-
|
1074
|
+
path: string;
|
870
1075
|
originalFilename: string;
|
871
1076
|
} | {
|
872
1077
|
country: string;
|
@@ -879,6 +1084,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
879
1084
|
residentialArea?: string | null | undefined;
|
880
1085
|
street?: string | null | undefined;
|
881
1086
|
zipCode?: string | null | undefined;
|
1087
|
+
} | {
|
1088
|
+
firstname?: string | null | undefined;
|
1089
|
+
surname?: string | null | undefined;
|
1090
|
+
middlename?: string | null | undefined;
|
882
1091
|
} | {
|
883
1092
|
country: string;
|
884
1093
|
district: string;
|
@@ -899,18 +1108,26 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
899
1108
|
} | {
|
900
1109
|
type: string;
|
901
1110
|
option: string;
|
902
|
-
|
1111
|
+
path: string;
|
903
1112
|
originalFilename: string;
|
904
|
-
}[] |
|
905
|
-
|
1113
|
+
}[] | {
|
1114
|
+
start: string;
|
1115
|
+
end: string;
|
1116
|
+
} | null | undefined> | undefined;
|
1117
|
+
actionDetails?: {
|
1118
|
+
templateId?: string | undefined;
|
1119
|
+
isImmediateCorrection?: boolean | undefined;
|
1120
|
+
} | undefined;
|
1121
|
+
originalActionId?: (string & z.BRAND<"UUID">) | undefined;
|
906
1122
|
keepAssignment?: boolean | undefined;
|
907
1123
|
}, {
|
908
|
-
type: "
|
909
|
-
|
1124
|
+
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";
|
1125
|
+
status: "Rejected" | "Requested" | "Accepted";
|
910
1126
|
transactionId: string;
|
1127
|
+
eventId: string;
|
911
1128
|
declaration?: Record<string, string | number | boolean | {
|
912
1129
|
type: string;
|
913
|
-
|
1130
|
+
path: string;
|
914
1131
|
originalFilename: string;
|
915
1132
|
} | {
|
916
1133
|
country: string;
|
@@ -923,6 +1140,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
923
1140
|
residentialArea?: string | null | undefined;
|
924
1141
|
street?: string | null | undefined;
|
925
1142
|
zipCode?: string | null | undefined;
|
1143
|
+
} | {
|
1144
|
+
firstname?: string | null | undefined;
|
1145
|
+
surname?: string | null | undefined;
|
1146
|
+
middlename?: string | null | undefined;
|
926
1147
|
} | {
|
927
1148
|
country: string;
|
928
1149
|
district: string;
|
@@ -943,12 +1164,15 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
943
1164
|
} | {
|
944
1165
|
type: string;
|
945
1166
|
option: string;
|
946
|
-
|
1167
|
+
path: string;
|
947
1168
|
originalFilename: string;
|
948
|
-
}[] |
|
1169
|
+
}[] | {
|
1170
|
+
start: string;
|
1171
|
+
end: string;
|
1172
|
+
} | null | undefined> | undefined;
|
949
1173
|
annotation?: Record<string, string | number | boolean | {
|
950
1174
|
type: string;
|
951
|
-
|
1175
|
+
path: string;
|
952
1176
|
originalFilename: string;
|
953
1177
|
} | {
|
954
1178
|
country: string;
|
@@ -961,6 +1185,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
961
1185
|
residentialArea?: string | null | undefined;
|
962
1186
|
street?: string | null | undefined;
|
963
1187
|
zipCode?: string | null | undefined;
|
1188
|
+
} | {
|
1189
|
+
firstname?: string | null | undefined;
|
1190
|
+
surname?: string | null | undefined;
|
1191
|
+
middlename?: string | null | undefined;
|
964
1192
|
} | {
|
965
1193
|
country: string;
|
966
1194
|
district: string;
|
@@ -981,9 +1209,16 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
981
1209
|
} | {
|
982
1210
|
type: string;
|
983
1211
|
option: string;
|
984
|
-
|
1212
|
+
path: string;
|
985
1213
|
originalFilename: string;
|
986
|
-
}[] |
|
1214
|
+
}[] | {
|
1215
|
+
start: string;
|
1216
|
+
end: string;
|
1217
|
+
} | null | undefined> | undefined;
|
1218
|
+
actionDetails?: {
|
1219
|
+
templateId?: string | undefined;
|
1220
|
+
isImmediateCorrection?: boolean | undefined;
|
1221
|
+
} | undefined;
|
987
1222
|
originalActionId?: string | undefined;
|
988
1223
|
keepAssignment?: boolean | undefined;
|
989
1224
|
}>;
|