@opencrvs/toolkit 1.9.12-rc.c1f8f26 → 1.9.12-rc.cb8b567

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 (79) hide show
  1. package/build.sh +4 -0
  2. package/dist/application-config/index.js +2045 -41
  3. package/dist/cli.js +2362 -4
  4. package/dist/commons/api/router.d.ts +106 -75
  5. package/dist/commons/application-config/index.d.ts +13 -16
  6. package/dist/commons/conditionals/conditionals.d.ts +3 -3
  7. package/dist/commons/events/ActionDocument.d.ts +198 -198
  8. package/dist/commons/events/ActionInput.d.ts +113 -113
  9. package/dist/commons/events/ActionType.d.ts +3 -3
  10. package/dist/commons/events/AdvancedSearchConfig.d.ts +16 -10
  11. package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
  12. package/dist/commons/events/CountryConfigQueryInput.d.ts +443 -172
  13. package/dist/commons/events/Draft.d.ts +15 -15
  14. package/dist/commons/events/DynamicFieldValue.d.ts +37 -19
  15. package/dist/commons/events/EventConfig.d.ts +1 -1
  16. package/dist/commons/events/EventDocument.d.ts +81 -81
  17. package/dist/commons/events/EventIndex.d.ts +35 -27
  18. package/dist/commons/events/EventInput.d.ts +1 -1
  19. package/dist/commons/events/EventMetadata.d.ts +24 -24
  20. package/dist/commons/events/FieldConfig.d.ts +155 -44
  21. package/dist/commons/events/FieldType.d.ts +2 -1
  22. package/dist/commons/events/FieldTypeMapping.d.ts +98 -72
  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 +16 -16
  26. package/dist/commons/events/WorkqueueConfig.d.ts +438 -194
  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/state/index.d.ts +2 -2
  30. package/dist/commons/events/state/utils.d.ts +3 -3
  31. package/dist/commons/events/utils.d.ts +5 -177
  32. package/dist/conditionals/index.js +13 -5
  33. package/dist/events/index.js +142 -33
  34. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts +3 -0
  35. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +1 -0
  36. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +405 -0
  37. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts +2 -0
  38. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -0
  39. package/dist/migrations/v2.0/convert-config-files-to-ts.js +753 -0
  40. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts +3 -0
  41. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +1 -0
  42. package/dist/migrations/v2.0/convert-paragraph-to-heading.js +159 -0
  43. package/dist/migrations/v2.0/index.d.ts +7 -0
  44. package/dist/migrations/v2.0/index.d.ts.map +1 -0
  45. package/dist/migrations/v2.0/index.js +2361 -0
  46. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts +3 -0
  47. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +1 -0
  48. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +344 -0
  49. package/dist/migrations/v2.0/migrate-scopes.d.ts +3 -0
  50. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -0
  51. package/dist/migrations/v2.0/migrate-scopes.js +281 -0
  52. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts +3 -0
  53. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +1 -0
  54. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +268 -0
  55. package/dist/migrations/v2.0/remove-delete-actions.d.ts +3 -0
  56. package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +1 -0
  57. package/dist/migrations/v2.0/remove-delete-actions.js +157 -0
  58. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts +3 -0
  59. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +1 -0
  60. package/dist/migrations/v2.0/remove-deprecated-imports.js +97 -0
  61. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts +3 -0
  62. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +1 -0
  63. package/dist/migrations/v2.0/remove-pending-certification-flag.js +110 -0
  64. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts +3 -0
  65. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +1 -0
  66. package/dist/migrations/v2.0/remove-review-from-register-action.js +164 -0
  67. package/dist/migrations/v2.0/rename-api-paths.d.ts +3 -0
  68. package/dist/migrations/v2.0/rename-api-paths.d.ts.map +1 -0
  69. package/dist/migrations/v2.0/rename-api-paths.js +188 -0
  70. package/dist/migrations/v2.0/rename-location-parent-id.d.ts +3 -0
  71. package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +1 -0
  72. package/dist/migrations/v2.0/rename-location-parent-id.js +181 -0
  73. package/dist/notification/index.js +73 -23
  74. package/dist/scopes/index.d.ts +31 -10
  75. package/dist/scopes/index.js +17 -5
  76. package/opencrvs-toolkit-1.9.12-rc.cb8b567.tgz +0 -0
  77. package/package.json +8 -7
  78. package/tsconfig.tsbuildinfo +1 -1
  79. package/opencrvs-toolkit-1.9.12-rc.c1f8f26.tgz +0 -0
@@ -144,16 +144,16 @@ export declare const TextField: z.ZodObject<{
144
144
  defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
145
145
  $userField: z.ZodEnum<{
146
146
  id: "id";
147
- name: "name";
148
- role: "role";
149
- primaryOfficeId: "primaryOfficeId";
150
147
  firstname: "firstname";
151
148
  surname: "surname";
152
149
  middlename: "middlename";
150
+ name: "name";
151
+ role: "role";
153
152
  fullHonorificName: "fullHonorificName";
154
153
  device: "device";
155
154
  signature: "signature";
156
155
  avatar: "avatar";
156
+ primaryOfficeId: "primaryOfficeId";
157
157
  administrativeAreaId: "administrativeAreaId";
158
158
  }>;
159
159
  $location: z.ZodOptional<z.ZodString>;
@@ -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<{
@@ -1349,16 +1345,16 @@ declare const NameField: z.ZodObject<{
1349
1345
  firstname: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1350
1346
  $userField: z.ZodEnum<{
1351
1347
  id: "id";
1352
- name: "name";
1353
- role: "role";
1354
- primaryOfficeId: "primaryOfficeId";
1355
1348
  firstname: "firstname";
1356
1349
  surname: "surname";
1357
1350
  middlename: "middlename";
1351
+ name: "name";
1352
+ role: "role";
1358
1353
  fullHonorificName: "fullHonorificName";
1359
1354
  device: "device";
1360
1355
  signature: "signature";
1361
1356
  avatar: "avatar";
1357
+ primaryOfficeId: "primaryOfficeId";
1362
1358
  administrativeAreaId: "administrativeAreaId";
1363
1359
  }>;
1364
1360
  $location: z.ZodOptional<z.ZodString>;
@@ -1366,16 +1362,16 @@ declare const NameField: z.ZodObject<{
1366
1362
  middlename: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1367
1363
  $userField: z.ZodEnum<{
1368
1364
  id: "id";
1369
- name: "name";
1370
- role: "role";
1371
- primaryOfficeId: "primaryOfficeId";
1372
1365
  firstname: "firstname";
1373
1366
  surname: "surname";
1374
1367
  middlename: "middlename";
1368
+ name: "name";
1369
+ role: "role";
1375
1370
  fullHonorificName: "fullHonorificName";
1376
1371
  device: "device";
1377
1372
  signature: "signature";
1378
1373
  avatar: "avatar";
1374
+ primaryOfficeId: "primaryOfficeId";
1379
1375
  administrativeAreaId: "administrativeAreaId";
1380
1376
  }>;
1381
1377
  $location: z.ZodOptional<z.ZodString>;
@@ -1383,16 +1379,16 @@ declare const NameField: z.ZodObject<{
1383
1379
  surname: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1384
1380
  $userField: z.ZodEnum<{
1385
1381
  id: "id";
1386
- name: "name";
1387
- role: "role";
1388
- primaryOfficeId: "primaryOfficeId";
1389
1382
  firstname: "firstname";
1390
1383
  surname: "surname";
1391
1384
  middlename: "middlename";
1385
+ name: "name";
1386
+ role: "role";
1392
1387
  fullHonorificName: "fullHonorificName";
1393
1388
  device: "device";
1394
1389
  signature: "signature";
1395
1390
  avatar: "avatar";
1391
+ primaryOfficeId: "primaryOfficeId";
1396
1392
  administrativeAreaId: "administrativeAreaId";
1397
1393
  }>;
1398
1394
  $location: z.ZodOptional<z.ZodString>;
@@ -1663,16 +1659,16 @@ declare const AdministrativeAreaField: z.ZodObject<{
1663
1659
  defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1664
1660
  $userField: z.ZodEnum<{
1665
1661
  id: "id";
1666
- name: "name";
1667
- role: "role";
1668
- primaryOfficeId: "primaryOfficeId";
1669
1662
  firstname: "firstname";
1670
1663
  surname: "surname";
1671
1664
  middlename: "middlename";
1665
+ name: "name";
1666
+ role: "role";
1672
1667
  fullHonorificName: "fullHonorificName";
1673
1668
  device: "device";
1674
1669
  signature: "signature";
1675
1670
  avatar: "avatar";
1671
+ primaryOfficeId: "primaryOfficeId";
1676
1672
  administrativeAreaId: "administrativeAreaId";
1677
1673
  }>;
1678
1674
  $location: z.ZodOptional<z.ZodString>;
@@ -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";
@@ -1788,16 +1785,16 @@ declare const LocationInput: z.ZodObject<{
1788
1785
  defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1789
1786
  $userField: z.ZodEnum<{
1790
1787
  id: "id";
1791
- name: "name";
1792
- role: "role";
1793
- primaryOfficeId: "primaryOfficeId";
1794
1788
  firstname: "firstname";
1795
1789
  surname: "surname";
1796
1790
  middlename: "middlename";
1791
+ name: "name";
1792
+ role: "role";
1797
1793
  fullHonorificName: "fullHonorificName";
1798
1794
  device: "device";
1799
1795
  signature: "signature";
1800
1796
  avatar: "avatar";
1797
+ primaryOfficeId: "primaryOfficeId";
1801
1798
  administrativeAreaId: "administrativeAreaId";
1802
1799
  }>;
1803
1800
  $location: z.ZodOptional<z.ZodString>;
@@ -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,19 +2150,19 @@ 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
- name: "name";
2157
- role: "role";
2158
- primaryOfficeId: "primaryOfficeId";
2159
2156
  firstname: "firstname";
2160
2157
  surname: "surname";
2161
2158
  middlename: "middlename";
2159
+ name: "name";
2160
+ role: "role";
2162
2161
  fullHonorificName: "fullHonorificName";
2163
2162
  device: "device";
2164
2163
  signature: "signature";
2165
2164
  avatar: "avatar";
2165
+ primaryOfficeId: "primaryOfficeId";
2166
2166
  administrativeAreaId: "administrativeAreaId";
2167
2167
  }>;
2168
2168
  $location: z.ZodOptional<z.ZodString>;
@@ -2214,8 +2214,8 @@ declare const Address: z.ZodObject<{
2214
2214
  lineSeparator: z.ZodOptional<z.ZodString>;
2215
2215
  fields: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
2216
2216
  id: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
2217
- label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
2218
2217
  type: z.ZodNonOptional<z.ZodOptional<z.ZodLiteral<"COUNTRY">>>;
2218
+ label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
2219
2219
  required: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
2220
2220
  message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
2221
2221
  }, z.core.$strip>]>>>>;
@@ -2241,8 +2241,8 @@ declare const Address: z.ZodObject<{
2241
2241
  }, z.core.$strip>>>>;
2242
2242
  }, z.core.$strip>, z.ZodObject<{
2243
2243
  id: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
2244
- label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
2245
2244
  type: z.ZodNonOptional<z.ZodOptional<z.ZodLiteral<"ADMINISTRATIVE_AREA">>>;
2245
+ label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
2246
2246
  required: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
2247
2247
  message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
2248
2248
  }, z.core.$strip>]>>>>;
@@ -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,19 +2339,19 @@ 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
- name: "name";
2345
- role: "role";
2346
- primaryOfficeId: "primaryOfficeId";
2347
2345
  firstname: "firstname";
2348
2346
  surname: "surname";
2349
2347
  middlename: "middlename";
2348
+ name: "name";
2349
+ role: "role";
2350
2350
  fullHonorificName: "fullHonorificName";
2351
2351
  device: "device";
2352
2352
  signature: "signature";
2353
2353
  avatar: "avatar";
2354
+ primaryOfficeId: "primaryOfficeId";
2354
2355
  administrativeAreaId: "administrativeAreaId";
2355
2356
  }>;
2356
2357
  $location: z.ZodOptional<z.ZodString>;
@@ -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" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "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" | "COUNTRY" | "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" | "CUSTOM")[];
71
72
  export type FieldType = (typeof fieldTypes)[number];
72
73
  /**
73
74
  * Composite field types are field types that consist of multiple field values.