@opencrvs/toolkit 1.9.16-rc.a6b5748 → 1.9.16-rc.c7acc1a
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 +198 -193
- package/dist/commons/events/ActionConfig.d.ts +28 -0
- package/dist/commons/events/ActionDocument.d.ts +129 -129
- package/dist/commons/events/Draft.d.ts +5 -5
- package/dist/commons/events/EventConfig.d.ts +25 -0
- package/dist/commons/events/EventDocument.d.ts +90 -90
- package/dist/commons/events/EventIndex.d.ts +17 -17
- package/dist/commons/events/EventMetadata.d.ts +33 -33
- package/dist/commons/events/FormConfig.d.ts +30 -0
- package/dist/commons/events/PageConfig.d.ts +6 -0
- package/dist/commons/events/defineConfig.d.ts +5 -0
- package/dist/commons/events/state/index.d.ts +3 -3
- package/dist/commons/events/state/utils.d.ts +20 -20
- package/dist/commons/events/utils.d.ts +9 -0
- package/dist/events/index.js +9 -9
- package/dist/notification/index.js +9 -9
- package/dist/scopes/index.d.ts +2 -3
- package/dist/scopes/index.js +2 -6
- package/package.json +1 -1
|
@@ -14,6 +14,7 @@ export declare const DeclarationFormConfig: z.ZodObject<{
|
|
|
14
14
|
defaultMessage: string;
|
|
15
15
|
}>;
|
|
16
16
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
17
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
17
18
|
fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
|
|
18
19
|
conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
|
|
19
20
|
}, {
|
|
@@ -25,6 +26,7 @@ export declare const DeclarationFormConfig: z.ZodObject<{
|
|
|
25
26
|
fields: import("./FieldConfig").FieldConfig[];
|
|
26
27
|
requireCompletionToContinue: boolean;
|
|
27
28
|
conditional?: import(".").JSONSchema | undefined;
|
|
29
|
+
showClearButton?: boolean | undefined;
|
|
28
30
|
}, {
|
|
29
31
|
id: string;
|
|
30
32
|
title: {
|
|
@@ -36,6 +38,7 @@ export declare const DeclarationFormConfig: z.ZodObject<{
|
|
|
36
38
|
type?: "FORM" | undefined;
|
|
37
39
|
conditional?: import(".").JSONSchema | undefined;
|
|
38
40
|
requireCompletionToContinue?: boolean | undefined;
|
|
41
|
+
showClearButton?: boolean | undefined;
|
|
39
42
|
}>, "many">;
|
|
40
43
|
}, "strip", z.ZodTypeAny, {
|
|
41
44
|
label: TranslationConfig;
|
|
@@ -46,6 +49,7 @@ export declare const DeclarationFormConfig: z.ZodObject<{
|
|
|
46
49
|
fields: import("./FieldConfig").FieldConfig[];
|
|
47
50
|
requireCompletionToContinue: boolean;
|
|
48
51
|
conditional?: import(".").JSONSchema | undefined;
|
|
52
|
+
showClearButton?: boolean | undefined;
|
|
49
53
|
}[];
|
|
50
54
|
}, {
|
|
51
55
|
label: {
|
|
@@ -64,6 +68,7 @@ export declare const DeclarationFormConfig: z.ZodObject<{
|
|
|
64
68
|
type?: "FORM" | undefined;
|
|
65
69
|
conditional?: import(".").JSONSchema | undefined;
|
|
66
70
|
requireCompletionToContinue?: boolean | undefined;
|
|
71
|
+
showClearButton?: boolean | undefined;
|
|
67
72
|
}[];
|
|
68
73
|
}>;
|
|
69
74
|
export type DeclarationFormConfig = z.infer<typeof DeclarationFormConfig>;
|
|
@@ -82,6 +87,7 @@ export declare const ActionFormConfig: z.ZodObject<{
|
|
|
82
87
|
defaultMessage: string;
|
|
83
88
|
}>;
|
|
84
89
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
90
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
85
91
|
fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
|
|
86
92
|
conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
|
|
87
93
|
}, {
|
|
@@ -93,6 +99,7 @@ export declare const ActionFormConfig: z.ZodObject<{
|
|
|
93
99
|
fields: import("./FieldConfig").FieldConfig[];
|
|
94
100
|
requireCompletionToContinue: boolean;
|
|
95
101
|
conditional?: import(".").JSONSchema | undefined;
|
|
102
|
+
showClearButton?: boolean | undefined;
|
|
96
103
|
}, {
|
|
97
104
|
id: string;
|
|
98
105
|
title: {
|
|
@@ -104,6 +111,7 @@ export declare const ActionFormConfig: z.ZodObject<{
|
|
|
104
111
|
type?: "FORM" | undefined;
|
|
105
112
|
conditional?: import(".").JSONSchema | undefined;
|
|
106
113
|
requireCompletionToContinue?: boolean | undefined;
|
|
114
|
+
showClearButton?: boolean | undefined;
|
|
107
115
|
}> | z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
108
116
|
id: z.ZodString;
|
|
109
117
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
@@ -112,6 +120,7 @@ export declare const ActionFormConfig: z.ZodObject<{
|
|
|
112
120
|
defaultMessage: string;
|
|
113
121
|
}>;
|
|
114
122
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
123
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
115
124
|
fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
|
|
116
125
|
conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
|
|
117
126
|
}, {
|
|
@@ -249,6 +258,7 @@ export declare const ActionFormConfig: z.ZodObject<{
|
|
|
249
258
|
fields: import("./FieldConfig").FieldConfig[];
|
|
250
259
|
requireCompletionToContinue: boolean;
|
|
251
260
|
conditional?: import(".").JSONSchema | undefined;
|
|
261
|
+
showClearButton?: boolean | undefined;
|
|
252
262
|
}, {
|
|
253
263
|
type: "VERIFICATION";
|
|
254
264
|
id: string;
|
|
@@ -288,6 +298,7 @@ export declare const ActionFormConfig: z.ZodObject<{
|
|
|
288
298
|
fields: import("./FieldConfig").FieldConfigInput[];
|
|
289
299
|
conditional?: import(".").JSONSchema | undefined;
|
|
290
300
|
requireCompletionToContinue?: boolean | undefined;
|
|
301
|
+
showClearButton?: boolean | undefined;
|
|
291
302
|
}>)[]>, "many">;
|
|
292
303
|
}, "strip", z.ZodTypeAny, {
|
|
293
304
|
label: TranslationConfig;
|
|
@@ -298,6 +309,7 @@ export declare const ActionFormConfig: z.ZodObject<{
|
|
|
298
309
|
fields: import("./FieldConfig").FieldConfig[];
|
|
299
310
|
requireCompletionToContinue: boolean;
|
|
300
311
|
conditional?: import(".").JSONSchema | undefined;
|
|
312
|
+
showClearButton?: boolean | undefined;
|
|
301
313
|
} | {
|
|
302
314
|
type: "VERIFICATION";
|
|
303
315
|
id: string;
|
|
@@ -317,6 +329,7 @@ export declare const ActionFormConfig: z.ZodObject<{
|
|
|
317
329
|
fields: import("./FieldConfig").FieldConfig[];
|
|
318
330
|
requireCompletionToContinue: boolean;
|
|
319
331
|
conditional?: import(".").JSONSchema | undefined;
|
|
332
|
+
showClearButton?: boolean | undefined;
|
|
320
333
|
})[];
|
|
321
334
|
}, {
|
|
322
335
|
label: {
|
|
@@ -335,6 +348,7 @@ export declare const ActionFormConfig: z.ZodObject<{
|
|
|
335
348
|
type?: "FORM" | undefined;
|
|
336
349
|
conditional?: import(".").JSONSchema | undefined;
|
|
337
350
|
requireCompletionToContinue?: boolean | undefined;
|
|
351
|
+
showClearButton?: boolean | undefined;
|
|
338
352
|
} | {
|
|
339
353
|
type: "VERIFICATION";
|
|
340
354
|
id: string;
|
|
@@ -374,6 +388,7 @@ export declare const ActionFormConfig: z.ZodObject<{
|
|
|
374
388
|
fields: import("./FieldConfig").FieldConfigInput[];
|
|
375
389
|
conditional?: import(".").JSONSchema | undefined;
|
|
376
390
|
requireCompletionToContinue?: boolean | undefined;
|
|
391
|
+
showClearButton?: boolean | undefined;
|
|
377
392
|
})[];
|
|
378
393
|
}>;
|
|
379
394
|
export type ActionFormConfig = z.infer<typeof ActionFormConfig>;
|
|
@@ -392,6 +407,7 @@ export declare const FormConfig: z.ZodUnion<[z.ZodObject<{
|
|
|
392
407
|
defaultMessage: string;
|
|
393
408
|
}>;
|
|
394
409
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
410
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
395
411
|
fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
|
|
396
412
|
conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
|
|
397
413
|
}, {
|
|
@@ -403,6 +419,7 @@ export declare const FormConfig: z.ZodUnion<[z.ZodObject<{
|
|
|
403
419
|
fields: import("./FieldConfig").FieldConfig[];
|
|
404
420
|
requireCompletionToContinue: boolean;
|
|
405
421
|
conditional?: import(".").JSONSchema | undefined;
|
|
422
|
+
showClearButton?: boolean | undefined;
|
|
406
423
|
}, {
|
|
407
424
|
id: string;
|
|
408
425
|
title: {
|
|
@@ -414,6 +431,7 @@ export declare const FormConfig: z.ZodUnion<[z.ZodObject<{
|
|
|
414
431
|
type?: "FORM" | undefined;
|
|
415
432
|
conditional?: import(".").JSONSchema | undefined;
|
|
416
433
|
requireCompletionToContinue?: boolean | undefined;
|
|
434
|
+
showClearButton?: boolean | undefined;
|
|
417
435
|
}>, "many">;
|
|
418
436
|
}, "strip", z.ZodTypeAny, {
|
|
419
437
|
label: TranslationConfig;
|
|
@@ -424,6 +442,7 @@ export declare const FormConfig: z.ZodUnion<[z.ZodObject<{
|
|
|
424
442
|
fields: import("./FieldConfig").FieldConfig[];
|
|
425
443
|
requireCompletionToContinue: boolean;
|
|
426
444
|
conditional?: import(".").JSONSchema | undefined;
|
|
445
|
+
showClearButton?: boolean | undefined;
|
|
427
446
|
}[];
|
|
428
447
|
}, {
|
|
429
448
|
label: {
|
|
@@ -442,6 +461,7 @@ export declare const FormConfig: z.ZodUnion<[z.ZodObject<{
|
|
|
442
461
|
type?: "FORM" | undefined;
|
|
443
462
|
conditional?: import(".").JSONSchema | undefined;
|
|
444
463
|
requireCompletionToContinue?: boolean | undefined;
|
|
464
|
+
showClearButton?: boolean | undefined;
|
|
445
465
|
}[];
|
|
446
466
|
}>, z.ZodObject<{
|
|
447
467
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
@@ -457,6 +477,7 @@ export declare const FormConfig: z.ZodUnion<[z.ZodObject<{
|
|
|
457
477
|
defaultMessage: string;
|
|
458
478
|
}>;
|
|
459
479
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
480
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
460
481
|
fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
|
|
461
482
|
conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
|
|
462
483
|
}, {
|
|
@@ -468,6 +489,7 @@ export declare const FormConfig: z.ZodUnion<[z.ZodObject<{
|
|
|
468
489
|
fields: import("./FieldConfig").FieldConfig[];
|
|
469
490
|
requireCompletionToContinue: boolean;
|
|
470
491
|
conditional?: import(".").JSONSchema | undefined;
|
|
492
|
+
showClearButton?: boolean | undefined;
|
|
471
493
|
}, {
|
|
472
494
|
id: string;
|
|
473
495
|
title: {
|
|
@@ -479,6 +501,7 @@ export declare const FormConfig: z.ZodUnion<[z.ZodObject<{
|
|
|
479
501
|
type?: "FORM" | undefined;
|
|
480
502
|
conditional?: import(".").JSONSchema | undefined;
|
|
481
503
|
requireCompletionToContinue?: boolean | undefined;
|
|
504
|
+
showClearButton?: boolean | undefined;
|
|
482
505
|
}> | z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
483
506
|
id: z.ZodString;
|
|
484
507
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
@@ -487,6 +510,7 @@ export declare const FormConfig: z.ZodUnion<[z.ZodObject<{
|
|
|
487
510
|
defaultMessage: string;
|
|
488
511
|
}>;
|
|
489
512
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
513
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
490
514
|
fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
|
|
491
515
|
conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
|
|
492
516
|
}, {
|
|
@@ -624,6 +648,7 @@ export declare const FormConfig: z.ZodUnion<[z.ZodObject<{
|
|
|
624
648
|
fields: import("./FieldConfig").FieldConfig[];
|
|
625
649
|
requireCompletionToContinue: boolean;
|
|
626
650
|
conditional?: import(".").JSONSchema | undefined;
|
|
651
|
+
showClearButton?: boolean | undefined;
|
|
627
652
|
}, {
|
|
628
653
|
type: "VERIFICATION";
|
|
629
654
|
id: string;
|
|
@@ -663,6 +688,7 @@ export declare const FormConfig: z.ZodUnion<[z.ZodObject<{
|
|
|
663
688
|
fields: import("./FieldConfig").FieldConfigInput[];
|
|
664
689
|
conditional?: import(".").JSONSchema | undefined;
|
|
665
690
|
requireCompletionToContinue?: boolean | undefined;
|
|
691
|
+
showClearButton?: boolean | undefined;
|
|
666
692
|
}>)[]>, "many">;
|
|
667
693
|
}, "strip", z.ZodTypeAny, {
|
|
668
694
|
label: TranslationConfig;
|
|
@@ -673,6 +699,7 @@ export declare const FormConfig: z.ZodUnion<[z.ZodObject<{
|
|
|
673
699
|
fields: import("./FieldConfig").FieldConfig[];
|
|
674
700
|
requireCompletionToContinue: boolean;
|
|
675
701
|
conditional?: import(".").JSONSchema | undefined;
|
|
702
|
+
showClearButton?: boolean | undefined;
|
|
676
703
|
} | {
|
|
677
704
|
type: "VERIFICATION";
|
|
678
705
|
id: string;
|
|
@@ -692,6 +719,7 @@ export declare const FormConfig: z.ZodUnion<[z.ZodObject<{
|
|
|
692
719
|
fields: import("./FieldConfig").FieldConfig[];
|
|
693
720
|
requireCompletionToContinue: boolean;
|
|
694
721
|
conditional?: import(".").JSONSchema | undefined;
|
|
722
|
+
showClearButton?: boolean | undefined;
|
|
695
723
|
})[];
|
|
696
724
|
}, {
|
|
697
725
|
label: {
|
|
@@ -710,6 +738,7 @@ export declare const FormConfig: z.ZodUnion<[z.ZodObject<{
|
|
|
710
738
|
type?: "FORM" | undefined;
|
|
711
739
|
conditional?: import(".").JSONSchema | undefined;
|
|
712
740
|
requireCompletionToContinue?: boolean | undefined;
|
|
741
|
+
showClearButton?: boolean | undefined;
|
|
713
742
|
} | {
|
|
714
743
|
type: "VERIFICATION";
|
|
715
744
|
id: string;
|
|
@@ -749,6 +778,7 @@ export declare const FormConfig: z.ZodUnion<[z.ZodObject<{
|
|
|
749
778
|
fields: import("./FieldConfig").FieldConfigInput[];
|
|
750
779
|
conditional?: import(".").JSONSchema | undefined;
|
|
751
780
|
requireCompletionToContinue?: boolean | undefined;
|
|
781
|
+
showClearButton?: boolean | undefined;
|
|
752
782
|
})[];
|
|
753
783
|
}>]>;
|
|
754
784
|
export type FormConfig = z.infer<typeof FormConfig>;
|
|
@@ -11,6 +11,7 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
11
11
|
defaultMessage: string;
|
|
12
12
|
}>;
|
|
13
13
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
14
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
14
15
|
fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
|
|
15
16
|
conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
|
|
16
17
|
}, {
|
|
@@ -22,6 +23,7 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
22
23
|
fields: FieldConfig[];
|
|
23
24
|
requireCompletionToContinue: boolean;
|
|
24
25
|
conditional?: import(".").JSONSchema | undefined;
|
|
26
|
+
showClearButton?: boolean | undefined;
|
|
25
27
|
}, {
|
|
26
28
|
id: string;
|
|
27
29
|
title: {
|
|
@@ -33,6 +35,7 @@ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
33
35
|
type?: "FORM" | undefined;
|
|
34
36
|
conditional?: import(".").JSONSchema | undefined;
|
|
35
37
|
requireCompletionToContinue?: boolean | undefined;
|
|
38
|
+
showClearButton?: boolean | undefined;
|
|
36
39
|
}>;
|
|
37
40
|
export type FormPageConfig = z.infer<typeof FormPageConfig>;
|
|
38
41
|
export type FormPageConfigInput = z.input<typeof FormPageConfig>;
|
|
@@ -156,6 +159,7 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
|
|
|
156
159
|
defaultMessage: string;
|
|
157
160
|
}>;
|
|
158
161
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
162
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
159
163
|
fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
|
|
160
164
|
conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
|
|
161
165
|
}, {
|
|
@@ -293,6 +297,7 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
|
|
|
293
297
|
fields: FieldConfig[];
|
|
294
298
|
requireCompletionToContinue: boolean;
|
|
295
299
|
conditional?: import(".").JSONSchema | undefined;
|
|
300
|
+
showClearButton?: boolean | undefined;
|
|
296
301
|
}, {
|
|
297
302
|
type: "VERIFICATION";
|
|
298
303
|
id: string;
|
|
@@ -332,6 +337,7 @@ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShap
|
|
|
332
337
|
fields: import("./FieldConfig").FieldConfigInput[];
|
|
333
338
|
conditional?: import(".").JSONSchema | undefined;
|
|
334
339
|
requireCompletionToContinue?: boolean | undefined;
|
|
340
|
+
showClearButton?: boolean | undefined;
|
|
335
341
|
}>;
|
|
336
342
|
export type VerificationPageConfig = z.infer<typeof VerificationPageConfig>;
|
|
337
343
|
type AllPageConfig = typeof VerificationPageConfig | typeof FormPageConfig;
|
|
@@ -15,6 +15,7 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
|
15
15
|
fields: import("./FieldConfig").FieldConfig[];
|
|
16
16
|
requireCompletionToContinue: boolean;
|
|
17
17
|
conditional?: import(".").JSONSchema | undefined;
|
|
18
|
+
showClearButton?: boolean | undefined;
|
|
18
19
|
}[];
|
|
19
20
|
};
|
|
20
21
|
actions: ({
|
|
@@ -81,6 +82,7 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
|
81
82
|
fields: import("./FieldConfig").FieldConfig[];
|
|
82
83
|
requireCompletionToContinue: boolean;
|
|
83
84
|
conditional?: import(".").JSONSchema | undefined;
|
|
85
|
+
showClearButton?: boolean | undefined;
|
|
84
86
|
} | {
|
|
85
87
|
type: "VERIFICATION";
|
|
86
88
|
id: string;
|
|
@@ -100,6 +102,7 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
|
100
102
|
fields: import("./FieldConfig").FieldConfig[];
|
|
101
103
|
requireCompletionToContinue: boolean;
|
|
102
104
|
conditional?: import(".").JSONSchema | undefined;
|
|
105
|
+
showClearButton?: boolean | undefined;
|
|
103
106
|
})[];
|
|
104
107
|
};
|
|
105
108
|
} | {
|
|
@@ -114,6 +117,7 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
|
114
117
|
fields: import("./FieldConfig").FieldConfig[];
|
|
115
118
|
requireCompletionToContinue: boolean;
|
|
116
119
|
conditional?: import(".").JSONSchema | undefined;
|
|
120
|
+
showClearButton?: boolean | undefined;
|
|
117
121
|
} | {
|
|
118
122
|
type: "VERIFICATION";
|
|
119
123
|
id: string;
|
|
@@ -133,6 +137,7 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
|
133
137
|
fields: import("./FieldConfig").FieldConfig[];
|
|
134
138
|
requireCompletionToContinue: boolean;
|
|
135
139
|
conditional?: import(".").JSONSchema | undefined;
|
|
140
|
+
showClearButton?: boolean | undefined;
|
|
136
141
|
})[];
|
|
137
142
|
};
|
|
138
143
|
} | {
|
|
@@ -72,23 +72,24 @@ export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Dr
|
|
|
72
72
|
DECLARED?: {
|
|
73
73
|
createdAt: string;
|
|
74
74
|
createdBy: string;
|
|
75
|
+
createdByRole: string;
|
|
75
76
|
acceptedAt: string;
|
|
76
77
|
createdByUserType?: "system" | "user" | null | undefined;
|
|
77
|
-
createdByRole?: string | undefined;
|
|
78
78
|
createdBySignature?: string | null | undefined;
|
|
79
79
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
80
80
|
} | null | undefined;
|
|
81
81
|
REGISTERED?: {
|
|
82
82
|
createdAt: string;
|
|
83
83
|
createdBy: string;
|
|
84
|
+
createdByRole: string;
|
|
84
85
|
registrationNumber: string;
|
|
85
86
|
acceptedAt: string;
|
|
86
87
|
createdByUserType?: "system" | "user" | null | undefined;
|
|
87
|
-
createdByRole?: string | undefined;
|
|
88
88
|
createdBySignature?: string | null | undefined;
|
|
89
89
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
90
90
|
} | null | undefined;
|
|
91
91
|
};
|
|
92
|
+
updatedByUserRole: string;
|
|
92
93
|
potentialDuplicates: {
|
|
93
94
|
id: string & import("zod").BRAND<"UUID">;
|
|
94
95
|
trackingId: string;
|
|
@@ -99,7 +100,6 @@ export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Dr
|
|
|
99
100
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
100
101
|
assignedTo?: string | null | undefined;
|
|
101
102
|
dateOfEvent?: string | null | undefined;
|
|
102
|
-
updatedByUserRole?: string | undefined;
|
|
103
103
|
updatedAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
104
104
|
updatedBy?: string | null | undefined;
|
|
105
105
|
};
|
|
@@ -14,9 +14,9 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
14
14
|
createdByUserType: "system" | "user";
|
|
15
15
|
createdAt: string;
|
|
16
16
|
createdBy: string;
|
|
17
|
+
createdByRole: string;
|
|
17
18
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
18
19
|
assignedTo: string;
|
|
19
|
-
createdByRole?: string | undefined;
|
|
20
20
|
createdBySignature?: string | null | undefined;
|
|
21
21
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
22
22
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -29,8 +29,8 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
29
29
|
createdByUserType: "system" | "user";
|
|
30
30
|
createdAt: string;
|
|
31
31
|
createdBy: string;
|
|
32
|
+
createdByRole: string;
|
|
32
33
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
33
|
-
createdByRole?: string | undefined;
|
|
34
34
|
createdBySignature?: string | null | undefined;
|
|
35
35
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
36
36
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -43,8 +43,8 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
43
43
|
createdByUserType: "system" | "user";
|
|
44
44
|
createdAt: string;
|
|
45
45
|
createdBy: string;
|
|
46
|
+
createdByRole: string;
|
|
46
47
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
47
|
-
createdByRole?: string | undefined;
|
|
48
48
|
createdBySignature?: string | null | undefined;
|
|
49
49
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
50
50
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -58,8 +58,8 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
58
58
|
createdByUserType: "system" | "user";
|
|
59
59
|
createdAt: string;
|
|
60
60
|
createdBy: string;
|
|
61
|
+
createdByRole: string;
|
|
61
62
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
62
|
-
createdByRole?: string | undefined;
|
|
63
63
|
createdBySignature?: string | null | undefined;
|
|
64
64
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
65
65
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -72,8 +72,8 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
72
72
|
createdByUserType: "system" | "user";
|
|
73
73
|
createdAt: string;
|
|
74
74
|
createdBy: string;
|
|
75
|
+
createdByRole: string;
|
|
75
76
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
76
|
-
createdByRole?: string | undefined;
|
|
77
77
|
createdBySignature?: string | null | undefined;
|
|
78
78
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
79
79
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -89,8 +89,8 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
89
89
|
createdByUserType: "system" | "user";
|
|
90
90
|
createdAt: string;
|
|
91
91
|
createdBy: string;
|
|
92
|
+
createdByRole: string;
|
|
92
93
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
93
|
-
createdByRole?: string | undefined;
|
|
94
94
|
createdBySignature?: string | null | undefined;
|
|
95
95
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
96
96
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -109,8 +109,8 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
109
109
|
createdByUserType: "system" | "user";
|
|
110
110
|
createdAt: string;
|
|
111
111
|
createdBy: string;
|
|
112
|
+
createdByRole: string;
|
|
112
113
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
113
|
-
createdByRole?: string | undefined;
|
|
114
114
|
createdBySignature?: string | null | undefined;
|
|
115
115
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
116
116
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -123,8 +123,8 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
123
123
|
createdByUserType: "system" | "user";
|
|
124
124
|
createdAt: string;
|
|
125
125
|
createdBy: string;
|
|
126
|
+
createdByRole: string;
|
|
126
127
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
127
|
-
createdByRole?: string | undefined;
|
|
128
128
|
createdBySignature?: string | null | undefined;
|
|
129
129
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
130
130
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -137,11 +137,11 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
137
137
|
createdByUserType: "system" | "user";
|
|
138
138
|
createdAt: string;
|
|
139
139
|
createdBy: string;
|
|
140
|
+
createdByRole: string;
|
|
140
141
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
141
142
|
content?: {
|
|
142
143
|
duplicateOf: string & import("zod").BRAND<"UUID">;
|
|
143
144
|
} | undefined;
|
|
144
|
-
createdByRole?: string | undefined;
|
|
145
145
|
createdBySignature?: string | null | undefined;
|
|
146
146
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
147
147
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -157,8 +157,8 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
157
157
|
createdByUserType: "system" | "user";
|
|
158
158
|
createdAt: string;
|
|
159
159
|
createdBy: string;
|
|
160
|
+
createdByRole: string;
|
|
160
161
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
161
|
-
createdByRole?: string | undefined;
|
|
162
162
|
createdBySignature?: string | null | undefined;
|
|
163
163
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
164
164
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -171,8 +171,8 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
171
171
|
createdByUserType: "system" | "user";
|
|
172
172
|
createdAt: string;
|
|
173
173
|
createdBy: string;
|
|
174
|
+
createdByRole: string;
|
|
174
175
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
175
|
-
createdByRole?: string | undefined;
|
|
176
176
|
createdBySignature?: string | null | undefined;
|
|
177
177
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
178
178
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -185,8 +185,8 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
185
185
|
createdByUserType: "system" | "user";
|
|
186
186
|
createdAt: string;
|
|
187
187
|
createdBy: string;
|
|
188
|
+
createdByRole: string;
|
|
188
189
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
189
|
-
createdByRole?: string | undefined;
|
|
190
190
|
createdBySignature?: string | null | undefined;
|
|
191
191
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
192
192
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -199,11 +199,11 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
199
199
|
createdByUserType: "system" | "user";
|
|
200
200
|
createdAt: string;
|
|
201
201
|
createdBy: string;
|
|
202
|
+
createdByRole: string;
|
|
202
203
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
203
204
|
content?: {
|
|
204
205
|
templateId?: string | undefined;
|
|
205
206
|
} | null | undefined;
|
|
206
|
-
createdByRole?: string | undefined;
|
|
207
207
|
createdBySignature?: string | null | undefined;
|
|
208
208
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
209
209
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -216,8 +216,8 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
216
216
|
createdByUserType: "system" | "user";
|
|
217
217
|
createdAt: string;
|
|
218
218
|
createdBy: string;
|
|
219
|
+
createdByRole: string;
|
|
219
220
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
220
|
-
createdByRole?: string | undefined;
|
|
221
221
|
createdBySignature?: string | null | undefined;
|
|
222
222
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
223
223
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -230,9 +230,9 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
230
230
|
createdByUserType: "system" | "user";
|
|
231
231
|
createdAt: string;
|
|
232
232
|
createdBy: string;
|
|
233
|
+
createdByRole: string;
|
|
233
234
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
234
235
|
requestId: string;
|
|
235
|
-
createdByRole?: string | undefined;
|
|
236
236
|
createdBySignature?: string | null | undefined;
|
|
237
237
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
238
238
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -248,9 +248,9 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
248
248
|
createdByUserType: "system" | "user";
|
|
249
249
|
createdAt: string;
|
|
250
250
|
createdBy: string;
|
|
251
|
+
createdByRole: string;
|
|
251
252
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
252
253
|
requestId: string;
|
|
253
|
-
createdByRole?: string | undefined;
|
|
254
254
|
createdBySignature?: string | null | undefined;
|
|
255
255
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
256
256
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -263,8 +263,8 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
263
263
|
createdByUserType: "system" | "user";
|
|
264
264
|
createdAt: string;
|
|
265
265
|
createdBy: string;
|
|
266
|
+
createdByRole: string;
|
|
266
267
|
declaration: Record<string, import("..").FieldUpdateValue>;
|
|
267
|
-
createdByRole?: string | undefined;
|
|
268
268
|
createdBySignature?: string | null | undefined;
|
|
269
269
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
270
270
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
@@ -277,7 +277,7 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
|
|
|
277
277
|
createdByUserType: "system" | "user";
|
|
278
278
|
createdAt: string;
|
|
279
279
|
createdBy: string;
|
|
280
|
-
createdByRole
|
|
280
|
+
createdByRole: string;
|
|
281
281
|
createdBySignature?: string | null | undefined;
|
|
282
282
|
createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
283
283
|
originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
@@ -293,7 +293,7 @@ export declare function getLegalStatuses(actions: Action[]): {
|
|
|
293
293
|
createdByUserType: "system" | "user";
|
|
294
294
|
createdAtLocation: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
295
295
|
acceptedAt: string;
|
|
296
|
-
createdByRole: string
|
|
296
|
+
createdByRole: string;
|
|
297
297
|
createdBySignature: string | null | undefined;
|
|
298
298
|
registrationNumber: string | null | undefined;
|
|
299
299
|
} | null;
|
|
@@ -303,7 +303,7 @@ export declare function getLegalStatuses(actions: Action[]): {
|
|
|
303
303
|
createdByUserType: "system" | "user";
|
|
304
304
|
createdAtLocation: (string & import("zod").BRAND<"UUID">) | null | undefined;
|
|
305
305
|
acceptedAt: string;
|
|
306
|
-
createdByRole: string
|
|
306
|
+
createdByRole: string;
|
|
307
307
|
createdBySignature: string | null | undefined;
|
|
308
308
|
registrationNumber: string | null | undefined;
|
|
309
309
|
} | null;
|
|
@@ -19,6 +19,7 @@ export declare function getDeclarationPages(configuration: EventConfig): {
|
|
|
19
19
|
fields: FieldConfig[];
|
|
20
20
|
requireCompletionToContinue: boolean;
|
|
21
21
|
conditional?: import(".").JSONSchema | undefined;
|
|
22
|
+
showClearButton?: boolean | undefined;
|
|
22
23
|
}[];
|
|
23
24
|
export declare function getDeclaration(configuration: EventConfig): {
|
|
24
25
|
label: import("./TranslationConfig").TranslationConfig;
|
|
@@ -29,6 +30,7 @@ export declare function getDeclaration(configuration: EventConfig): {
|
|
|
29
30
|
fields: FieldConfig[];
|
|
30
31
|
requireCompletionToContinue: boolean;
|
|
31
32
|
conditional?: import(".").JSONSchema | undefined;
|
|
33
|
+
showClearButton?: boolean | undefined;
|
|
32
34
|
}[];
|
|
33
35
|
};
|
|
34
36
|
export declare function getPrintCertificatePages(configuration: EventConfig): ({
|
|
@@ -38,6 +40,7 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
|
|
|
38
40
|
fields: FieldConfig[];
|
|
39
41
|
requireCompletionToContinue: boolean;
|
|
40
42
|
conditional?: import(".").JSONSchema | undefined;
|
|
43
|
+
showClearButton?: boolean | undefined;
|
|
41
44
|
} | {
|
|
42
45
|
type: "VERIFICATION";
|
|
43
46
|
id: string;
|
|
@@ -57,6 +60,7 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
|
|
|
57
60
|
fields: FieldConfig[];
|
|
58
61
|
requireCompletionToContinue: boolean;
|
|
59
62
|
conditional?: import(".").JSONSchema | undefined;
|
|
63
|
+
showClearButton?: boolean | undefined;
|
|
60
64
|
})[];
|
|
61
65
|
export declare const getActionAnnotationFields: (actionConfig: ActionConfig) => FieldConfig[];
|
|
62
66
|
export declare function getAllUniqueFields(eventConfig: EventConfig): FieldConfig[];
|
|
@@ -224,6 +228,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
|
224
228
|
fields: FieldConfig[];
|
|
225
229
|
requireCompletionToContinue: boolean;
|
|
226
230
|
conditional?: import(".").JSONSchema | undefined;
|
|
231
|
+
showClearButton?: boolean | undefined;
|
|
227
232
|
}[];
|
|
228
233
|
};
|
|
229
234
|
actions: ({
|
|
@@ -290,6 +295,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
|
290
295
|
fields: FieldConfig[];
|
|
291
296
|
requireCompletionToContinue: boolean;
|
|
292
297
|
conditional?: import(".").JSONSchema | undefined;
|
|
298
|
+
showClearButton?: boolean | undefined;
|
|
293
299
|
} | {
|
|
294
300
|
type: "VERIFICATION";
|
|
295
301
|
id: string;
|
|
@@ -309,6 +315,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
|
309
315
|
fields: FieldConfig[];
|
|
310
316
|
requireCompletionToContinue: boolean;
|
|
311
317
|
conditional?: import(".").JSONSchema | undefined;
|
|
318
|
+
showClearButton?: boolean | undefined;
|
|
312
319
|
})[];
|
|
313
320
|
};
|
|
314
321
|
} | {
|
|
@@ -323,6 +330,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
|
323
330
|
fields: FieldConfig[];
|
|
324
331
|
requireCompletionToContinue: boolean;
|
|
325
332
|
conditional?: import(".").JSONSchema | undefined;
|
|
333
|
+
showClearButton?: boolean | undefined;
|
|
326
334
|
} | {
|
|
327
335
|
type: "VERIFICATION";
|
|
328
336
|
id: string;
|
|
@@ -342,6 +350,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
|
|
|
342
350
|
fields: FieldConfig[];
|
|
343
351
|
requireCompletionToContinue: boolean;
|
|
344
352
|
conditional?: import(".").JSONSchema | undefined;
|
|
353
|
+
showClearButton?: boolean | undefined;
|
|
345
354
|
})[];
|
|
346
355
|
};
|
|
347
356
|
} | {
|