@opencrvs/toolkit 1.9.16-rc.a94059f → 1.9.16-rc.b4bcd8b

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.
@@ -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,24 +72,23 @@ export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Dr
72
72
  DECLARED?: {
73
73
  createdAt: string;
74
74
  createdBy: string;
75
- createdByRole: string;
76
75
  acceptedAt: string;
77
76
  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;
85
84
  registrationNumber: string;
86
85
  acceptedAt: string;
87
86
  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;
93
92
  potentialDuplicates: {
94
93
  id: string & import("zod").BRAND<"UUID">;
95
94
  trackingId: string;
@@ -100,6 +99,7 @@ export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Dr
100
99
  createdAtLocation?: (string & import("zod").BRAND<"UUID">) | null | undefined;
101
100
  assignedTo?: string | null | undefined;
102
101
  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;
18
17
  declaration: Record<string, import("..").FieldUpdateValue>;
19
18
  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;
33
32
  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;
47
46
  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;
62
61
  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;
76
75
  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;
93
92
  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;
113
112
  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;
127
126
  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;
141
140
  declaration: Record<string, import("..").FieldUpdateValue>;
142
141
  content?: {
143
142
  duplicateOf: string & import("zod").BRAND<"UUID">;
144
143
  } | 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;
161
160
  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;
175
174
  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;
189
188
  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;
203
202
  declaration: Record<string, import("..").FieldUpdateValue>;
204
203
  content?: {
205
204
  templateId?: string | undefined;
206
205
  } | 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;
220
219
  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;
234
233
  declaration: Record<string, import("..").FieldUpdateValue>;
235
234
  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;
252
251
  declaration: Record<string, import("..").FieldUpdateValue>;
253
252
  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;
267
266
  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: string;
280
+ createdByRole?: string | undefined;
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 | undefined;
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 | undefined;
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
  } | {
@@ -1418,7 +1418,7 @@ var ActionBase = import_zod13.z.object({
1418
1418
  ),
1419
1419
  createdAt: import_zod13.z.string().datetime().describe("Timestamp indicating when the action was created."),
1420
1420
  createdBy: import_zod13.z.string().describe("Identifier of the user who created the action."),
1421
- createdByRole: import_zod13.z.string().describe("Role of the user who created the action."),
1421
+ createdByRole: import_zod13.z.string().optional().describe("Role of the user who created the action."),
1422
1422
  createdBySignature: import_zod13.z.string().nullish().describe("Reference to the signature of the user who created the action."),
1423
1423
  createdAtLocation: CreatedAtLocation.describe(
1424
1424
  "Reference to the location of the user who created the action."
@@ -1622,7 +1622,7 @@ var ActionCreationMetadata = import_zod14.z.object({
1622
1622
  ),
1623
1623
  createdByUserType: import_zod14.z.enum(["user", "system"]).nullish().describe("Whether the user is a normal user or a system."),
1624
1624
  acceptedAt: import_zod14.z.string().datetime().describe("Timestamp when the action request was accepted."),
1625
- createdByRole: import_zod14.z.string().describe("Role of the user at the time of action request creation."),
1625
+ createdByRole: import_zod14.z.string().optional().describe("Role of the user at the time of action request creation."),
1626
1626
  createdBySignature: import_zod14.z.string().nullish().describe("Signature of the user who created the action request.")
1627
1627
  });
1628
1628
  var RegistrationCreationMetadata = ActionCreationMetadata.extend({
@@ -1645,7 +1645,7 @@ var EventMetadata = import_zod14.z.object({
1645
1645
  dateOfEvent: ZodDate.nullish(),
1646
1646
  createdBy: import_zod14.z.string().describe("ID of the user who created the event."),
1647
1647
  createdByUserType: import_zod14.z.enum(["user", "system"]).nullish().describe("Whether the user is a normal user or a system."),
1648
- updatedByUserRole: import_zod14.z.string().describe("Role of the user who last changed the status."),
1648
+ updatedByUserRole: import_zod14.z.string().optional().describe("Role of the user who last changed the status."),
1649
1649
  createdAtLocation: CreatedAtLocation.describe(
1650
1650
  "Location of the user who created the event."
1651
1651
  ),
@@ -2594,6 +2594,9 @@ var PageConfigBase = import_zod18.z.object({
2594
2594
  requireCompletionToContinue: import_zod18.z.boolean().default(false).describe(
2595
2595
  "If true, all required fields must be filled before continuing to the next page"
2596
2596
  ),
2597
+ showClearButton: import_zod18.z.boolean().optional().describe(
2598
+ 'If true, a "Clear" button is shown at the top of the page allowing the user to reset all fields on the page to their default state'
2599
+ ),
2597
2600
  fields: import_zod18.z.array(FieldConfig).describe("Fields to be rendered on the page"),
2598
2601
  conditional: Conditional.optional().describe(
2599
2602
  "Page will be shown if condition is met. If conditional is not defined, the page will be always shown."
@@ -6751,6 +6754,7 @@ var TENNIS_CLUB_DECLARATION_FORM = defineDeclarationForm({
6751
6754
  defaultMessage: "Who is applying for the membership?",
6752
6755
  description: "This is the title of the section"
6753
6756
  },
6757
+ showClearButton: true,
6754
6758
  fields: [
6755
6759
  {
6756
6760
  id: "applicant.name",