@opencrvs/toolkit 1.9.12-rc.7c8c97f → 1.9.12-rc.8353a87

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.
Files changed (77) hide show
  1. package/build.sh +8 -0
  2. package/dist/application-config/index.js +47 -36
  3. package/dist/cli.d.ts +2 -0
  4. package/dist/cli.d.ts.map +1 -0
  5. package/dist/cli.js +2422 -0
  6. package/dist/commons/api/router.d.ts +24 -0
  7. package/dist/commons/application-config/index.d.ts +7 -12
  8. package/dist/commons/conditionals/conditionals.d.ts +3 -3
  9. package/dist/commons/events/ActionDocument.d.ts +194 -194
  10. package/dist/commons/events/ActionInput.d.ts +113 -113
  11. package/dist/commons/events/AdvancedSearchConfig.d.ts +6 -0
  12. package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
  13. package/dist/commons/events/CountryConfigQueryInput.d.ts +295 -24
  14. package/dist/commons/events/Draft.d.ts +7 -7
  15. package/dist/commons/events/DynamicFieldValue.d.ts +37 -19
  16. package/dist/commons/events/EventDocument.d.ts +79 -79
  17. package/dist/commons/events/EventIndex.d.ts +20 -12
  18. package/dist/commons/events/EventInput.d.ts +1 -1
  19. package/dist/commons/events/EventMetadata.d.ts +12 -12
  20. package/dist/commons/events/FieldConfig.d.ts +129 -18
  21. package/dist/commons/events/FieldType.d.ts +2 -1
  22. package/dist/commons/events/FieldTypeMapping.d.ts +94 -68
  23. package/dist/commons/events/FieldValue.d.ts +54 -26
  24. package/dist/commons/events/PlainDate.d.ts +1 -1
  25. package/dist/commons/events/WorkqueueColumnConfig.d.ts +4 -4
  26. package/dist/commons/events/WorkqueueConfig.d.ts +270 -26
  27. package/dist/commons/events/defineConfig.d.ts +0 -4
  28. package/dist/commons/events/locations.d.ts +4 -4
  29. package/dist/commons/events/utils.d.ts +2 -174
  30. package/dist/conditionals/index.js +13 -5
  31. package/dist/events/index.js +142 -33
  32. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts +3 -0
  33. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +1 -0
  34. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +405 -0
  35. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts +2 -0
  36. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -0
  37. package/dist/migrations/v2.0/convert-config-files-to-ts.js +753 -0
  38. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts +3 -0
  39. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +1 -0
  40. package/dist/migrations/v2.0/convert-paragraph-to-heading.js +159 -0
  41. package/dist/migrations/v2.0/index.d.ts +7 -0
  42. package/dist/migrations/v2.0/index.d.ts.map +1 -0
  43. package/dist/migrations/v2.0/index.js +2361 -0
  44. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts +3 -0
  45. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +1 -0
  46. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +344 -0
  47. package/dist/migrations/v2.0/migrate-scopes.d.ts +3 -0
  48. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -0
  49. package/dist/migrations/v2.0/migrate-scopes.js +281 -0
  50. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts +3 -0
  51. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +1 -0
  52. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +268 -0
  53. package/dist/migrations/v2.0/remove-delete-actions.d.ts +3 -0
  54. package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +1 -0
  55. package/dist/migrations/v2.0/remove-delete-actions.js +157 -0
  56. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts +3 -0
  57. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +1 -0
  58. package/dist/migrations/v2.0/remove-deprecated-imports.js +97 -0
  59. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts +3 -0
  60. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +1 -0
  61. package/dist/migrations/v2.0/remove-pending-certification-flag.js +110 -0
  62. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts +3 -0
  63. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +1 -0
  64. package/dist/migrations/v2.0/remove-review-from-register-action.js +164 -0
  65. package/dist/migrations/v2.0/rename-api-paths.d.ts +3 -0
  66. package/dist/migrations/v2.0/rename-api-paths.d.ts.map +1 -0
  67. package/dist/migrations/v2.0/rename-api-paths.js +188 -0
  68. package/dist/migrations/v2.0/rename-location-parent-id.d.ts +3 -0
  69. package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +1 -0
  70. package/dist/migrations/v2.0/rename-location-parent-id.js +181 -0
  71. package/dist/notification/index.js +73 -23
  72. package/dist/scopes/index.d.ts +31 -10
  73. package/dist/scopes/index.js +17 -5
  74. package/opencrvs-toolkit-1.9.12-rc.8353a87.tgz +0 -0
  75. package/package.json +11 -7
  76. package/tsconfig.tsbuildinfo +1 -1
  77. package/opencrvs-toolkit-1.9.12-rc.7c8c97f.tgz +0 -0
@@ -16,7 +16,7 @@ export declare const ZodDateTime: z.ZodString;
16
16
  export declare const ActionCreationMetadata: z.ZodObject<{
17
17
  createdAt: z.ZodISODateTime;
18
18
  createdBy: z.ZodString;
19
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
19
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
20
20
  createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
21
21
  user: "user";
22
22
  system: "system";
@@ -29,7 +29,7 @@ export type ActionCreationMetadata = z.infer<typeof ActionCreationMetadata>;
29
29
  export declare const RegistrationCreationMetadata: z.ZodObject<{
30
30
  createdAt: z.ZodISODateTime;
31
31
  createdBy: z.ZodString;
32
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
32
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
33
33
  createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
34
34
  user: "user";
35
35
  system: "system";
@@ -44,7 +44,7 @@ export declare const LegalStatuses: z.ZodObject<{
44
44
  DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
45
45
  createdAt: z.ZodISODateTime;
46
46
  createdBy: z.ZodString;
47
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
47
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
48
48
  createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
49
49
  user: "user";
50
50
  system: "system";
@@ -56,7 +56,7 @@ export declare const LegalStatuses: z.ZodObject<{
56
56
  REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
57
57
  createdAt: z.ZodISODateTime;
58
58
  createdBy: z.ZodString;
59
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
59
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
60
60
  createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
61
61
  user: "user";
62
62
  system: "system";
@@ -73,7 +73,7 @@ export declare const LegalStatuses: z.ZodObject<{
73
73
  * Accessed through `event.` in configuration.
74
74
  */
75
75
  export declare const EventMetadata: z.ZodObject<{
76
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
76
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
77
77
  type: z.ZodString;
78
78
  status: z.ZodEnum<{
79
79
  ARCHIVED: "ARCHIVED";
@@ -86,7 +86,7 @@ export declare const EventMetadata: z.ZodObject<{
86
86
  DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
87
87
  createdAt: z.ZodISODateTime;
88
88
  createdBy: z.ZodString;
89
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
89
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
90
90
  createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
91
91
  user: "user";
92
92
  system: "system";
@@ -98,7 +98,7 @@ export declare const EventMetadata: z.ZodObject<{
98
98
  REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
99
99
  createdAt: z.ZodISODateTime;
100
100
  createdBy: z.ZodString;
101
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
101
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
102
102
  createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
103
103
  user: "user";
104
104
  system: "system";
@@ -111,22 +111,22 @@ export declare const EventMetadata: z.ZodObject<{
111
111
  }, z.core.$strip>;
112
112
  createdAt: z.ZodISODateTime;
113
113
  dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
114
- placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
114
+ placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
115
115
  createdBy: z.ZodString;
116
116
  createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
117
117
  user: "user";
118
118
  system: "system";
119
119
  }>>>;
120
120
  updatedByUserRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
122
- createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath">>>;
123
- updatedAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID">>>;
121
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
122
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
123
+ updatedAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
124
124
  updatedAt: z.ZodISODateTime;
125
125
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
126
126
  updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
127
127
  trackingId: z.ZodString;
128
128
  potentialDuplicates: z.ZodArray<z.ZodObject<{
129
- id: z.core.$ZodBranded<z.ZodUUID, "UUID">;
129
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
130
130
  trackingId: z.ZodString;
131
131
  }, z.core.$strip>>;
132
132
  flags: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
@@ -440,7 +440,7 @@ declare const DateField: z.ZodObject<{
440
440
  type: z.ZodLiteral<"DATE">;
441
441
  defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
442
442
  $$now: z.ZodLiteral<true>;
443
- }, z.core.$strip>, z.core.$ZodBranded<z.ZodString, "PlainDate">]>>;
443
+ }, z.core.$strip>, z.core.$ZodBranded<z.ZodString, "PlainDate", "out">]>>;
444
444
  configuration: z.ZodOptional<z.ZodObject<{
445
445
  notice: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
446
446
  }, z.core.$strip>>;
@@ -590,9 +590,9 @@ declare const DateRangeField: z.ZodObject<{
590
590
  analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
591
591
  type: z.ZodLiteral<"DATE_RANGE">;
592
592
  defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
593
- start: z.core.$ZodBranded<z.ZodString, "PlainDate">;
594
- end: z.core.$ZodBranded<z.ZodString, "PlainDate">;
595
- }, z.core.$strip>, z.core.$ZodBranded<z.ZodString, "PlainDate">]>>;
593
+ start: z.core.$ZodBranded<z.ZodString, "PlainDate", "out">;
594
+ end: z.core.$ZodBranded<z.ZodString, "PlainDate", "out">;
595
+ }, z.core.$strip>, z.core.$ZodBranded<z.ZodString, "PlainDate", "out">]>>;
596
596
  configuration: z.ZodOptional<z.ZodObject<{
597
597
  notice: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
598
598
  }, z.core.$strip>>;
@@ -766,7 +766,6 @@ declare const Paragraph: z.ZodObject<{
766
766
  }, z.core.$strip>>]>>;
767
767
  analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
768
768
  type: z.ZodLiteral<"PARAGRAPH">;
769
- defaultValue: z.ZodOptional<z.ZodString>;
770
769
  configuration: z.ZodDefault<z.ZodObject<{
771
770
  styles: z.ZodOptional<z.ZodObject<{
772
771
  hint: z.ZodOptional<z.ZodBoolean>;
@@ -822,7 +821,6 @@ declare const Heading: z.ZodObject<{
822
821
  }, z.core.$strip>>]>>;
823
822
  analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
824
823
  type: z.ZodLiteral<"HEADING">;
825
- defaultValue: z.ZodOptional<z.ZodString>;
826
824
  configuration: z.ZodDefault<z.ZodObject<{
827
825
  styles: z.ZodOptional<z.ZodObject<{
828
826
  fontVariant: z.ZodOptional<z.ZodEnum<{
@@ -885,7 +883,6 @@ declare const PageHeader: z.ZodObject<{
885
883
  }, z.core.$strip>>]>>;
886
884
  analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
887
885
  type: z.ZodLiteral<"PAGE_HEADER">;
888
- defaultValue: z.ZodOptional<z.ZodString>;
889
886
  }, z.core.$strip>;
890
887
  export type PageHeader = z.infer<typeof PageHeader>;
891
888
  declare const File: z.ZodObject<{
@@ -930,7 +927,7 @@ declare const File: z.ZodObject<{
930
927
  analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
931
928
  type: z.ZodLiteral<"FILE">;
932
929
  defaultValue: z.ZodOptional<z.ZodObject<{
933
- path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
930
+ path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
934
931
  originalFilename: z.ZodString;
935
932
  type: z.ZodString;
936
933
  }, z.core.$strip>>;
@@ -1139,7 +1136,6 @@ declare const BulletList: z.ZodObject<{
1139
1136
  }, z.core.$strip>>]>>;
1140
1137
  analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1141
1138
  type: z.ZodLiteral<"BULLET_LIST">;
1142
- defaultValue: z.ZodOptional<z.ZodString>;
1143
1139
  items: z.ZodArray<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
1144
1140
  configuration: z.ZodDefault<z.ZodObject<{
1145
1141
  styles: z.ZodOptional<z.ZodObject<{
@@ -1728,6 +1724,7 @@ declare const AdministrativeAreaField: z.ZodObject<{
1728
1724
  "user.create": "user.create";
1729
1725
  "user.edit": "user.edit";
1730
1726
  workqueue: "workqueue";
1727
+ "dashboard.view": "dashboard.view";
1731
1728
  }>;
1732
1729
  $option: z.ZodEnum<{
1733
1730
  event: "event";
@@ -1845,6 +1842,7 @@ declare const LocationInput: z.ZodObject<{
1845
1842
  "user.create": "user.create";
1846
1843
  "user.edit": "user.edit";
1847
1844
  workqueue: "workqueue";
1845
+ "dashboard.view": "dashboard.view";
1848
1846
  }>;
1849
1847
  $option: z.ZodEnum<{
1850
1848
  event: "event";
@@ -1914,7 +1912,7 @@ declare const FileUploadWithOptions: z.ZodObject<{
1914
1912
  }, z.core.$strip>], "type">>>>;
1915
1913
  }, z.core.$strip>>;
1916
1914
  defaultValue: z.ZodOptional<z.ZodArray<z.ZodObject<{
1917
- path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
1915
+ path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
1918
1916
  originalFilename: z.ZodString;
1919
1917
  type: z.ZodString;
1920
1918
  option: z.ZodString;
@@ -2027,6 +2025,7 @@ declare const Facility: z.ZodObject<{
2027
2025
  "user.create": "user.create";
2028
2026
  "user.edit": "user.edit";
2029
2027
  workqueue: "workqueue";
2028
+ "dashboard.view": "dashboard.view";
2030
2029
  }>;
2031
2030
  $option: z.ZodEnum<{
2032
2031
  event: "event";
@@ -2130,6 +2129,7 @@ declare const Office: z.ZodObject<{
2130
2129
  "user.create": "user.create";
2131
2130
  "user.edit": "user.edit";
2132
2131
  workqueue: "workqueue";
2132
+ "dashboard.view": "dashboard.view";
2133
2133
  }>;
2134
2134
  $option: z.ZodEnum<{
2135
2135
  event: "event";
@@ -2150,7 +2150,7 @@ export declare const DefaultAddressFieldValue: z.ZodObject<{
2150
2150
  country: z.ZodString;
2151
2151
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2152
2152
  addressType: z.ZodLiteral<"DOMESTIC">;
2153
- administrativeArea: z.ZodOptional<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodUUID, "UUID">, z.ZodObject<{
2153
+ administrativeArea: z.ZodOptional<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodUUID, "UUID", "out">, z.ZodObject<{
2154
2154
  $userField: z.ZodEnum<{
2155
2155
  id: "id";
2156
2156
  name: "name";
@@ -2320,6 +2320,7 @@ declare const Address: z.ZodObject<{
2320
2320
  "user.create": "user.create";
2321
2321
  "user.edit": "user.edit";
2322
2322
  workqueue: "workqueue";
2323
+ "dashboard.view": "dashboard.view";
2323
2324
  }>;
2324
2325
  $option: z.ZodEnum<{
2325
2326
  event: "event";
@@ -2338,7 +2339,7 @@ declare const Address: z.ZodObject<{
2338
2339
  country: z.ZodString;
2339
2340
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2340
2341
  addressType: z.ZodLiteral<"DOMESTIC">;
2341
- administrativeArea: z.ZodOptional<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodUUID, "UUID">, z.ZodObject<{
2342
+ administrativeArea: z.ZodOptional<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodUUID, "UUID", "out">, z.ZodObject<{
2342
2343
  $userField: z.ZodEnum<{
2343
2344
  id: "id";
2344
2345
  name: "name";
@@ -2433,6 +2434,35 @@ declare const DataField: z.ZodObject<{
2433
2434
  }, z.core.$strip>;
2434
2435
  }, z.core.$strip>;
2435
2436
  export type DataField = z.infer<typeof DataField>;
2437
+ declare const ButtonConfiguration: z.ZodObject<{
2438
+ icon: z.ZodOptional<z.ZodString>;
2439
+ loading: z.ZodOptional<z.ZodBoolean>;
2440
+ buttonSize: z.ZodOptional<z.ZodEnum<{
2441
+ small: "small";
2442
+ medium: "medium";
2443
+ large: "large";
2444
+ }>>;
2445
+ buttonType: z.ZodOptional<z.ZodEnum<{
2446
+ primary: "primary";
2447
+ secondary: "secondary";
2448
+ tertiary: "tertiary";
2449
+ positive: "positive";
2450
+ negative: "negative";
2451
+ secondaryNegative: "secondaryNegative";
2452
+ icon: "icon";
2453
+ iconPrimary: "iconPrimary";
2454
+ }>>;
2455
+ textColor: z.ZodOptional<z.ZodEnum<{
2456
+ primary: "primary";
2457
+ copy: "copy";
2458
+ }>>;
2459
+ textVariant: z.ZodOptional<z.ZodEnum<{
2460
+ reg14: "reg14";
2461
+ bold14: "bold14";
2462
+ }>>;
2463
+ text: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
2464
+ }, z.core.$strip>;
2465
+ export type ButtonConfiguration = z.infer<typeof ButtonConfiguration>;
2436
2466
  declare const ButtonField: z.ZodObject<{
2437
2467
  id: z.ZodString;
2438
2468
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
@@ -2478,6 +2508,29 @@ declare const ButtonField: z.ZodObject<{
2478
2508
  configuration: z.ZodObject<{
2479
2509
  icon: z.ZodOptional<z.ZodString>;
2480
2510
  loading: z.ZodOptional<z.ZodBoolean>;
2511
+ buttonSize: z.ZodOptional<z.ZodEnum<{
2512
+ small: "small";
2513
+ medium: "medium";
2514
+ large: "large";
2515
+ }>>;
2516
+ buttonType: z.ZodOptional<z.ZodEnum<{
2517
+ primary: "primary";
2518
+ secondary: "secondary";
2519
+ tertiary: "tertiary";
2520
+ positive: "positive";
2521
+ negative: "negative";
2522
+ secondaryNegative: "secondaryNegative";
2523
+ icon: "icon";
2524
+ iconPrimary: "iconPrimary";
2525
+ }>>;
2526
+ textColor: z.ZodOptional<z.ZodEnum<{
2527
+ primary: "primary";
2528
+ copy: "copy";
2529
+ }>>;
2530
+ textVariant: z.ZodOptional<z.ZodEnum<{
2531
+ reg14: "reg14";
2532
+ bold14: "bold14";
2533
+ }>>;
2481
2534
  text: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
2482
2535
  }, z.core.$strip>;
2483
2536
  }, z.core.$strip>;
@@ -2609,6 +2662,60 @@ declare const HttpField: z.ZodObject<{
2609
2662
  }, z.core.$strip>;
2610
2663
  }, z.core.$strip>;
2611
2664
  export type HttpField = z.infer<typeof HttpField>;
2665
+ declare const AutocompleteField: z.ZodObject<{
2666
+ id: z.ZodString;
2667
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
2668
+ parent: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2669
+ $$field: z.ZodString;
2670
+ $$subfield: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
2671
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
2672
+ $$field: z.ZodString;
2673
+ $$subfield: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
2674
+ }, z.core.$strip>>]>>;
2675
+ required: z.ZodOptional<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
2676
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
2677
+ }, z.core.$strip>]>>>;
2678
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2679
+ type: z.ZodLiteral<"SHOW">;
2680
+ conditional: z.ZodAny;
2681
+ }, z.core.$strip>, z.ZodObject<{
2682
+ type: z.ZodLiteral<"ENABLE">;
2683
+ conditional: z.ZodAny;
2684
+ }, z.core.$strip>, z.ZodObject<{
2685
+ type: z.ZodLiteral<"DISPLAY_ON_REVIEW">;
2686
+ conditional: z.ZodAny;
2687
+ }, z.core.$strip>], "type">>>>;
2688
+ secured: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2689
+ placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
2690
+ validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
2691
+ validator: z.ZodAny;
2692
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
2693
+ }, z.core.$strip>>>>;
2694
+ helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
2695
+ hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2696
+ uncorrectable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2697
+ value: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2698
+ $$field: z.ZodString;
2699
+ $$subfield: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
2700
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
2701
+ $$field: z.ZodString;
2702
+ $$subfield: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
2703
+ }, z.core.$strip>>]>>;
2704
+ analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2705
+ type: z.ZodLiteral<"AUTOCOMPLETE">;
2706
+ configuration: z.ZodObject<{
2707
+ url: z.ZodOptional<z.ZodString>;
2708
+ method: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
2709
+ GET: "GET";
2710
+ POST: "POST";
2711
+ }>>>;
2712
+ defaultOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2713
+ label: z.ZodString;
2714
+ value: z.ZodString;
2715
+ }, z.core.$strip>>>;
2716
+ }, z.core.$strip>;
2717
+ }, z.core.$strip>;
2718
+ export type AutocompleteField = z.infer<typeof AutocompleteField>;
2612
2719
  declare const SearchField: z.ZodObject<{
2613
2720
  id: z.ZodString;
2614
2721
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
@@ -3061,7 +3168,7 @@ declare const CustomField: z.ZodObject<{
3061
3168
  }, z.core.$strip>>]>>;
3062
3169
  analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3063
3170
  type: z.ZodLiteral<"CUSTOM">;
3064
- defaultValue: z.ZodOptional<z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue">>;
3171
+ defaultValue: z.ZodOptional<z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue", "out">>;
3065
3172
  src: z.ZodString;
3066
3173
  configuration: z.ZodOptional<z.ZodUnknown>;
3067
3174
  }, z.core.$strip>;
@@ -3096,7 +3203,6 @@ declare const LoaderField: z.ZodObject<{
3096
3203
  message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
3097
3204
  }, z.core.$strip>>>>;
3098
3205
  helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
3099
- hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3100
3206
  uncorrectable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3101
3207
  value: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
3102
3208
  $$field: z.ZodString;
@@ -3107,6 +3213,11 @@ declare const LoaderField: z.ZodObject<{
3107
3213
  }, z.core.$strip>>]>>;
3108
3214
  analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3109
3215
  type: z.ZodLiteral<"LOADER">;
3216
+ variant: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
3217
+ default: "default";
3218
+ highlighted: "highlighted";
3219
+ }>>>;
3220
+ hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3110
3221
  configuration: z.ZodObject<{
3111
3222
  text: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
3112
3223
  }, z.core.$strip>;
@@ -3199,12 +3310,12 @@ declare const UserRoleField: z.ZodObject<{
3199
3310
  }, z.core.$strip>;
3200
3311
  export type UserRoleField = z.infer<typeof UserRoleField>;
3201
3312
  /** @knipignore */
3202
- export type FieldConfig = FieldGroup | z.infer<typeof Address> | z.infer<typeof TextField> | z.infer<typeof NumberField> | z.infer<typeof NumberWithUnitField> | z.infer<typeof TextAreaField> | z.infer<typeof DateField> | z.infer<typeof AgeField> | z.infer<typeof TimeField> | z.infer<typeof DateRangeField> | z.infer<typeof SelectDateRangeField> | z.infer<typeof ImageViewField> | z.infer<typeof Paragraph> | z.infer<typeof Heading> | z.infer<typeof RadioGroup> | z.infer<typeof BulletList> | z.infer<typeof PageHeader> | z.infer<typeof Select> | z.infer<typeof NameField> | z.infer<typeof PhoneField> | z.infer<typeof IdField> | z.infer<typeof Checkbox> | z.infer<typeof File> | z.infer<typeof FileUploadWithOptions> | z.infer<typeof Country> | z.infer<typeof AdministrativeAreaField> | z.infer<typeof Divider> | z.infer<typeof LocationInput> | z.infer<typeof Facility> | z.infer<typeof Office> | z.infer<typeof SignatureField> | z.infer<typeof EmailField> | z.infer<typeof DataField> | z.infer<typeof ButtonField> | z.infer<typeof AlphaPrintButton> | z.infer<typeof HttpField> | z.infer<typeof SearchField> | z.infer<typeof LinkButtonField> | z.infer<typeof VerificationStatus> | z.infer<typeof QueryParamReaderField> | z.infer<typeof QrReaderField> | z.infer<typeof IdReaderField> | z.infer<typeof LoaderField> | z.infer<typeof CustomField> | z.infer<typeof HiddenField> | z.infer<typeof UserRoleField>;
3313
+ export type FieldConfig = FieldGroup | z.infer<typeof Address> | z.infer<typeof TextField> | z.infer<typeof NumberField> | z.infer<typeof NumberWithUnitField> | z.infer<typeof TextAreaField> | z.infer<typeof DateField> | z.infer<typeof AgeField> | z.infer<typeof TimeField> | z.infer<typeof DateRangeField> | z.infer<typeof SelectDateRangeField> | z.infer<typeof ImageViewField> | z.infer<typeof Paragraph> | z.infer<typeof Heading> | z.infer<typeof RadioGroup> | z.infer<typeof BulletList> | z.infer<typeof PageHeader> | z.infer<typeof Select> | z.infer<typeof NameField> | z.infer<typeof PhoneField> | z.infer<typeof IdField> | z.infer<typeof Checkbox> | z.infer<typeof File> | z.infer<typeof FileUploadWithOptions> | z.infer<typeof Country> | z.infer<typeof AdministrativeAreaField> | z.infer<typeof Divider> | z.infer<typeof LocationInput> | z.infer<typeof Facility> | z.infer<typeof Office> | z.infer<typeof SignatureField> | z.infer<typeof EmailField> | z.infer<typeof DataField> | z.infer<typeof ButtonField> | z.infer<typeof AlphaPrintButton> | z.infer<typeof HttpField> | z.infer<typeof SearchField> | z.infer<typeof AutocompleteField> | z.infer<typeof LinkButtonField> | z.infer<typeof VerificationStatus> | z.infer<typeof QueryParamReaderField> | z.infer<typeof QrReaderField> | z.infer<typeof IdReaderField> | z.infer<typeof LoaderField> | z.infer<typeof CustomField> | z.infer<typeof HiddenField> | z.infer<typeof UserRoleField>;
3203
3314
  /** @knipignore */
3204
3315
  /**
3205
3316
  * This is the type that should be used for the input of the FieldConfig. Useful when config uses zod defaults.
3206
3317
  */
3207
- export type FieldConfigInput = FieldGroupInput | z.input<typeof Address> | z.input<typeof TextField> | z.input<typeof TimeField> | z.input<typeof SelectDateRangeField> | z.input<typeof ImageViewField> | z.input<typeof ButtonField> | z.input<typeof AlphaPrintButton> | z.input<typeof NumberField> | z.input<typeof NumberWithUnitField> | z.input<typeof TextAreaField> | z.input<typeof DateField> | z.input<typeof AgeField> | z.input<typeof DateRangeField> | z.input<typeof Paragraph> | z.input<typeof Heading> | z.input<typeof RadioGroup> | z.input<typeof BulletList> | z.input<typeof PageHeader> | z.input<typeof Select> | z.input<typeof NameField> | z.input<typeof PhoneField> | z.input<typeof IdField> | z.input<typeof Checkbox> | z.input<typeof File> | z.input<typeof FileUploadWithOptions> | z.input<typeof Country> | z.input<typeof AdministrativeAreaField> | z.input<typeof Divider> | z.input<typeof LocationInput> | z.input<typeof Facility> | z.input<typeof Office> | z.input<typeof SignatureField> | z.input<typeof EmailField> | z.input<typeof DataField> | z.input<typeof HttpField> | z.input<typeof SearchField> | z.input<typeof LinkButtonField> | z.input<typeof VerificationStatus> | z.input<typeof QueryParamReaderField> | z.input<typeof QrReaderField> | z.input<typeof IdReaderField> | z.input<typeof LoaderField> | z.input<typeof CustomField> | z.input<typeof HiddenField> | z.input<typeof UserRoleField>;
3318
+ export type FieldConfigInput = FieldGroupInput | z.input<typeof Address> | z.input<typeof TextField> | z.input<typeof TimeField> | z.input<typeof SelectDateRangeField> | z.input<typeof ImageViewField> | z.input<typeof ButtonField> | z.input<typeof AlphaPrintButton> | z.input<typeof NumberField> | z.input<typeof NumberWithUnitField> | z.input<typeof TextAreaField> | z.input<typeof DateField> | z.input<typeof AgeField> | z.input<typeof DateRangeField> | z.input<typeof Paragraph> | z.input<typeof Heading> | z.input<typeof RadioGroup> | z.input<typeof BulletList> | z.input<typeof PageHeader> | z.input<typeof Select> | z.input<typeof NameField> | z.input<typeof PhoneField> | z.input<typeof IdField> | z.input<typeof Checkbox> | z.input<typeof File> | z.input<typeof FileUploadWithOptions> | z.input<typeof Country> | z.input<typeof AdministrativeAreaField> | z.input<typeof Divider> | z.input<typeof LocationInput> | z.input<typeof Facility> | z.input<typeof Office> | z.input<typeof SignatureField> | z.input<typeof EmailField> | z.input<typeof DataField> | z.input<typeof HttpField> | z.input<typeof SearchField> | z.input<typeof AutocompleteField> | z.input<typeof LinkButtonField> | z.input<typeof VerificationStatus> | z.input<typeof QueryParamReaderField> | z.input<typeof QrReaderField> | z.input<typeof IdReaderField> | z.input<typeof LoaderField> | z.input<typeof CustomField> | z.input<typeof HiddenField> | z.input<typeof UserRoleField>;
3208
3319
  export declare const FieldConfig: z.ZodType<FieldConfig, FieldConfigInput>;
3209
3320
  export type SelectField = z.infer<typeof Select>;
3210
3321
  export type NameField = z.infer<typeof NameField>;
@@ -3323,7 +3434,7 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<[z.ZodObject<{
3323
3434
  analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3324
3435
  type: z.ZodLiteral<"FILE">;
3325
3436
  defaultValue: z.ZodOptional<z.ZodObject<{
3326
- path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
3437
+ path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
3327
3438
  originalFilename: z.ZodString;
3328
3439
  type: z.ZodString;
3329
3440
  }, z.core.$strip>>;
@@ -3406,7 +3517,7 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<[z.ZodObject<{
3406
3517
  }, z.core.$strip>], "type">>>>;
3407
3518
  }, z.core.$strip>>;
3408
3519
  defaultValue: z.ZodOptional<z.ZodArray<z.ZodObject<{
3409
- path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
3520
+ path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
3410
3521
  originalFilename: z.ZodString;
3411
3522
  type: z.ZodString;
3412
3523
  option: z.ZodString;
@@ -36,6 +36,7 @@ export declare const FieldType: {
36
36
  readonly SIGNATURE: "SIGNATURE";
37
37
  readonly DATA: "DATA";
38
38
  readonly BUTTON: "BUTTON";
39
+ readonly AUTOCOMPLETE: "AUTOCOMPLETE";
39
40
  readonly SEARCH: "SEARCH";
40
41
  readonly ALPHA_PRINT_BUTTON: "ALPHA_PRINT_BUTTON";
41
42
  readonly HTTP: "HTTP";
@@ -67,7 +68,7 @@ export declare const FileFieldType: z.ZodEnum<{
67
68
  FILE_WITH_OPTIONS: "FILE_WITH_OPTIONS";
68
69
  SIGNATURE: "SIGNATURE";
69
70
  }>;
70
- export declare const fieldTypes: ("NAME" | "EMAIL" | "COUNTRY" | "CUSTOM" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "IMAGE_VIEW" | "PARAGRAPH" | "HEADING" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | "ALPHA_HIDDEN" | "USER_ROLE")[];
71
+ export declare const fieldTypes: ("NAME" | "EMAIL" | "COUNTRY" | "CUSTOM" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "IMAGE_VIEW" | "PARAGRAPH" | "HEADING" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "AUTOCOMPLETE" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | "ALPHA_HIDDEN" | "USER_ROLE")[];
71
72
  export type FieldType = (typeof fieldTypes)[number];
72
73
  /**
73
74
  * Composite field types are field types that consist of multiple field values.