@opencrvs/toolkit 1.9.15-rc.fc1c0fb → 2.0.0-rc.0096e47

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 (161) hide show
  1. package/build.sh +13 -0
  2. package/create-countryconfig/index.js +103 -0
  3. package/create-countryconfig/package.json +21 -0
  4. package/dist/api/index.d.ts.map +1 -1
  5. package/dist/application-config/index.d.ts +2 -0
  6. package/dist/application-config/index.d.ts.map +1 -0
  7. package/dist/application-config/index.js +2304 -0
  8. package/dist/cli.d.ts +2 -0
  9. package/dist/cli.d.ts.map +1 -0
  10. package/dist/cli.js +5244 -0
  11. package/dist/commons/api/router.d.ts +5630 -3673
  12. package/dist/commons/application-config/index.d.ts +97 -0
  13. package/dist/commons/conditionals/conditionals.d.ts +33 -3
  14. package/dist/commons/conditionals/validate.d.ts +20 -1
  15. package/dist/commons/events/ActionConfig.d.ts +415 -1555
  16. package/dist/commons/events/ActionDocument.d.ts +894 -1941
  17. package/dist/commons/events/ActionInput.d.ts +326 -1212
  18. package/dist/commons/events/ActionType.d.ts +91 -11
  19. package/dist/commons/events/AdvancedSearchConfig.d.ts +636 -1496
  20. package/dist/commons/events/AuditLog.d.ts +407 -0
  21. package/dist/commons/events/CompositeFieldValue.d.ts +30 -190
  22. package/dist/commons/events/Conditional.d.ts +26 -38
  23. package/dist/commons/events/Constants.d.ts +1 -1
  24. package/dist/commons/events/CountryConfigQueryInput.d.ts +1592 -4471
  25. package/dist/commons/events/DeduplicationConfig.d.ts +15 -171
  26. package/dist/commons/events/Draft.d.ts +72 -111
  27. package/dist/commons/events/DynamicFieldValue.d.ts +12 -78
  28. package/dist/commons/events/EventConfig.d.ts +37 -2427
  29. package/dist/commons/events/EventConfigInput.d.ts +0 -3
  30. package/dist/commons/events/EventDocument.d.ts +357 -1366
  31. package/dist/commons/events/EventIndex.d.ts +211 -1012
  32. package/dist/commons/events/EventInput.d.ts +3 -8
  33. package/dist/commons/events/EventMetadata.d.ts +129 -363
  34. package/dist/commons/events/FieldConfig.d.ts +3147 -14211
  35. package/dist/commons/events/FieldType.d.ts +26 -4
  36. package/dist/commons/events/FieldTypeMapping.d.ts +314 -906
  37. package/dist/commons/events/FieldValue.d.ts +154 -526
  38. package/dist/commons/events/FileUtils.d.ts +2 -2
  39. package/dist/commons/events/Flag.d.ts +67 -0
  40. package/dist/commons/events/FormConfig.d.ts +54 -721
  41. package/dist/commons/events/PageConfig.d.ts +58 -320
  42. package/dist/commons/events/PlainDate.d.ts +1 -1
  43. package/dist/commons/events/SummaryConfig.d.ts +14 -161
  44. package/dist/commons/events/TemplateConfig.d.ts +2 -3
  45. package/dist/commons/events/TranslationConfig.d.ts +2 -2
  46. package/dist/commons/events/WorkqueueColumnConfig.d.ts +74 -37
  47. package/dist/commons/events/WorkqueueConfig.d.ts +2232 -7577
  48. package/dist/commons/events/deduplication.d.ts +3 -3
  49. package/dist/commons/events/defineConfig.d.ts +2 -248
  50. package/dist/commons/events/eventConfigValidation.d.ts +8 -0
  51. package/dist/commons/events/field.d.ts +6 -0
  52. package/dist/commons/events/index.d.ts +5 -0
  53. package/dist/commons/events/locations.d.ts +93 -19
  54. package/dist/commons/events/mocks.test.utils.d.ts +19 -0
  55. package/dist/commons/events/scopes.d.ts +56 -32
  56. package/dist/commons/events/state/availableActions.d.ts +7 -2
  57. package/dist/commons/events/state/flags.d.ts +37 -3
  58. package/dist/commons/events/state/index.d.ts +29 -30
  59. package/dist/commons/events/state/utils.d.ts +25 -284
  60. package/dist/commons/events/test.utils.d.ts +52 -11
  61. package/dist/commons/events/transactions.d.ts +1 -1
  62. package/dist/commons/events/utils.d.ts +383 -273
  63. package/dist/commons/notification/UserNotifications.d.ts +76 -637
  64. package/dist/conditionals/index.d.ts.map +1 -1
  65. package/dist/conditionals/index.js +338 -14
  66. package/dist/events/deduplication.d.ts +3 -3
  67. package/dist/events/index.js +3699 -2235
  68. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts +3 -0
  69. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +1 -0
  70. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +429 -0
  71. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts +3 -0
  72. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts.map +1 -0
  73. package/dist/migrations/v2.0/add-resend-invite-notification.js +373 -0
  74. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +22 -0
  75. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -0
  76. package/dist/migrations/v2.0/checkout-upstream-files.js +146 -0
  77. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts +2 -0
  78. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -0
  79. package/dist/migrations/v2.0/convert-config-files-to-ts.js +828 -0
  80. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts +3 -0
  81. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +1 -0
  82. package/dist/migrations/v2.0/convert-paragraph-to-heading.js +158 -0
  83. package/dist/migrations/v2.0/create-events-index.d.ts +3 -0
  84. package/dist/migrations/v2.0/create-events-index.d.ts.map +1 -0
  85. package/dist/migrations/v2.0/create-events-index.js +325 -0
  86. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts +11 -0
  87. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts.map +1 -0
  88. package/dist/migrations/v2.0/delete-infrastructure-directory.js +123 -0
  89. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.d.ts +3 -0
  90. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.d.ts.map +1 -0
  91. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.js +110 -0
  92. package/dist/migrations/v2.0/index.d.ts +13 -0
  93. package/dist/migrations/v2.0/index.d.ts.map +1 -0
  94. package/dist/migrations/v2.0/index.js +5154 -0
  95. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts +3 -0
  96. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +1 -0
  97. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +432 -0
  98. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts +13 -0
  99. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts.map +1 -0
  100. package/dist/migrations/v2.0/merge-infrastructure-directory.js +222 -0
  101. package/dist/migrations/v2.0/migrate-application-config-url.d.ts +3 -0
  102. package/dist/migrations/v2.0/migrate-application-config-url.d.ts.map +1 -0
  103. package/dist/migrations/v2.0/migrate-application-config-url.js +342 -0
  104. package/dist/migrations/v2.0/migrate-scopes.d.ts +3 -0
  105. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -0
  106. package/dist/migrations/v2.0/migrate-scopes.js +305 -0
  107. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts +3 -0
  108. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +1 -0
  109. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +267 -0
  110. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts +3 -0
  111. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +1 -0
  112. package/dist/migrations/v2.0/migrate-workqueue-configs.js +317 -0
  113. package/dist/migrations/v2.0/remove-delete-actions.d.ts +3 -0
  114. package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +1 -0
  115. package/dist/migrations/v2.0/remove-delete-actions.js +156 -0
  116. package/dist/migrations/v2.0/remove-demo-scope.d.ts +3 -0
  117. package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +1 -0
  118. package/dist/migrations/v2.0/remove-demo-scope.js +74 -0
  119. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts +3 -0
  120. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +1 -0
  121. package/dist/migrations/v2.0/remove-deprecated-imports.js +96 -0
  122. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts +3 -0
  123. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts.map +1 -0
  124. package/dist/migrations/v2.0/remove-fhir-url-helpers.js +163 -0
  125. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts +3 -0
  126. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +1 -0
  127. package/dist/migrations/v2.0/remove-hearth-migrations.js +77 -0
  128. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts +3 -0
  129. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts.map +1 -0
  130. package/dist/migrations/v2.0/remove-old-statistics-service.js +356 -0
  131. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts +3 -0
  132. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +1 -0
  133. package/dist/migrations/v2.0/remove-pending-certification-flag.js +109 -0
  134. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts +3 -0
  135. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +1 -0
  136. package/dist/migrations/v2.0/remove-review-from-register-action.js +163 -0
  137. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts +3 -0
  138. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts.map +1 -0
  139. package/dist/migrations/v2.0/remove-unused-environment-variables.js +186 -0
  140. package/dist/migrations/v2.0/rename-api-paths.d.ts +3 -0
  141. package/dist/migrations/v2.0/rename-api-paths.d.ts.map +1 -0
  142. package/dist/migrations/v2.0/rename-api-paths.js +187 -0
  143. package/dist/migrations/v2.0/rename-location-parent-id.d.ts +3 -0
  144. package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +1 -0
  145. package/dist/migrations/v2.0/rename-location-parent-id.js +180 -0
  146. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts +3 -0
  147. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +1 -0
  148. package/dist/migrations/v2.0/simplify-analytics-precalculations.js +195 -0
  149. package/dist/migrations/v2.0/update-package-json.d.ts +3 -0
  150. package/dist/migrations/v2.0/update-package-json.d.ts.map +1 -0
  151. package/dist/migrations/v2.0/update-package-json.js +105 -0
  152. package/dist/notification/index.d.ts.map +1 -1
  153. package/dist/notification/index.js +2730 -1848
  154. package/dist/scopes/index.d.ts +714 -352
  155. package/dist/scopes/index.d.ts.map +1 -1
  156. package/dist/scopes/index.js +381 -298
  157. package/opencrvs-toolkit-2.0.0-rc.0096e47.tgz +0 -0
  158. package/package.json +14 -4
  159. package/tsconfig.json +12 -2
  160. package/tsconfig.tsbuildinfo +1 -1
  161. package/dist/commons/events/CreatedAtLocation.d.ts +0 -2
@@ -1,27 +1,21 @@
1
- import { z } from 'zod';
2
- import { TranslationConfig } from './TranslationConfig';
1
+ import * as z from 'zod/v4';
3
2
  import { FieldConfig } from './FieldConfig';
4
3
  import { FieldValue } from './FieldValue';
5
4
  export declare const SearchQueryParams: z.ZodObject<{
6
5
  eventType: z.ZodOptional<z.ZodString>;
7
- }, "strip", z.ZodType<FieldValue, z.ZodTypeDef, FieldValue>, {
8
- eventType?: string | undefined;
9
- }, {
10
- eventType?: string | undefined;
11
- }>;
6
+ }, z.core.$catchall<z.ZodType<FieldValue, unknown, z.core.$ZodTypeInternals<FieldValue, unknown>>>>;
12
7
  export type SearchQueryParams = z.infer<typeof SearchQueryParams>;
13
- export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
8
+ export declare const FieldConfigSchema: z.ZodObject<{
14
9
  config: z.ZodObject<{
15
- type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
16
- searchFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
17
- }, "strip", z.ZodTypeAny, {
18
- type: "exact" | "range" | "fuzzy" | "within";
19
- searchFields?: string[] | undefined;
20
- }, {
21
- type: "exact" | "range" | "fuzzy" | "within";
22
- searchFields?: string[] | undefined;
23
- }>;
24
- type: z.ZodOptional<z.ZodNativeEnum<{
10
+ type: z.ZodEnum<{
11
+ exact: "exact";
12
+ fuzzy: "fuzzy";
13
+ range: "range";
14
+ within: "within";
15
+ }>;
16
+ searchFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
17
+ }, z.core.$strip>;
18
+ type: z.ZodOptional<z.ZodEnum<{
25
19
  readonly NAME: "NAME";
26
20
  readonly PHONE: "PHONE";
27
21
  readonly ID: "ID";
@@ -36,7 +30,9 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
36
30
  readonly DATE_RANGE: "DATE_RANGE";
37
31
  readonly SELECT_DATE_RANGE: "SELECT_DATE_RANGE";
38
32
  readonly TIME: "TIME";
33
+ readonly IMAGE_VIEW: "IMAGE_VIEW";
39
34
  readonly PARAGRAPH: "PARAGRAPH";
35
+ readonly HEADING: "HEADING";
40
36
  readonly PAGE_HEADER: "PAGE_HEADER";
41
37
  readonly RADIO_GROUP: "RADIO_GROUP";
42
38
  readonly FIELD_GROUP: "FIELD_GROUP";
@@ -54,6 +50,7 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
54
50
  readonly SIGNATURE: "SIGNATURE";
55
51
  readonly DATA: "DATA";
56
52
  readonly BUTTON: "BUTTON";
53
+ readonly AUTOCOMPLETE: "AUTOCOMPLETE";
57
54
  readonly SEARCH: "SEARCH";
58
55
  readonly ALPHA_PRINT_BUTTON: "ALPHA_PRINT_BUTTON";
59
56
  readonly HTTP: "HTTP";
@@ -63,164 +60,109 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
63
60
  readonly QR_READER: "QR_READER";
64
61
  readonly ID_READER: "ID_READER";
65
62
  readonly LOADER: "LOADER";
63
+ readonly ALPHA_HIDDEN: "ALPHA_HIDDEN";
64
+ readonly USER_ROLE: "USER_ROLE";
65
+ readonly _EXPERIMENTAL_CUSTOM: "CUSTOM";
66
66
  }>>;
67
- label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
68
- id: string;
69
- description: string;
70
- defaultMessage: string;
71
- }>>;
67
+ label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
72
68
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
73
69
  value: z.ZodString;
74
- label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
75
- id: string;
76
- description: string;
77
- defaultMessage: string;
78
- }>]>;
79
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
80
- }, "strip", z.ZodTypeAny, {
81
- value: string;
82
- label: string | TranslationConfig;
83
- conditionals?: ({
84
- type: "SHOW";
85
- conditional: import(".").JSONSchema;
86
- } | {
87
- type: "ENABLE";
88
- conditional: import(".").JSONSchema;
89
- })[] | undefined;
90
- }, {
91
- value: string;
92
- label: string | {
93
- id: string;
94
- description: string;
95
- defaultMessage: string;
96
- };
97
- conditionals?: ({
98
- type: "SHOW";
99
- conditional: import(".").JSONSchema;
100
- } | {
101
- type: "ENABLE";
102
- conditional: import(".").JSONSchema;
103
- })[] | undefined;
104
- }>, "many">>;
105
- searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
106
- id: string;
107
- description: string;
108
- defaultMessage: string;
109
- }>>;
110
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
111
- validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
112
- validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
113
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
114
- id: string;
115
- description: string;
116
- defaultMessage: string;
117
- }>;
118
- }, "strip", z.ZodTypeAny, {
119
- message: TranslationConfig;
120
- validator: import(".").JSONSchema;
121
- }, {
122
- message: {
123
- id: string;
124
- description: string;
125
- defaultMessage: string;
126
- };
127
- validator: import(".").JSONSchema;
128
- }>, "many">>>;
129
- }, {
70
+ label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>]>;
71
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
72
+ type: z.ZodLiteral<"SHOW">;
73
+ conditional: z.ZodAny;
74
+ }, z.core.$strip>, z.ZodObject<{
75
+ type: z.ZodLiteral<"ENABLE">;
76
+ conditional: z.ZodAny;
77
+ }, z.core.$strip>], "type">>>>;
78
+ }, z.core.$strip>>>;
79
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
80
+ conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
81
+ type: z.ZodLiteral<"SHOW">;
82
+ conditional: z.ZodAny;
83
+ }, z.core.$strip>, z.ZodObject<{
84
+ type: z.ZodLiteral<"ENABLE">;
85
+ conditional: z.ZodAny;
86
+ }, z.core.$strip>, z.ZodObject<{
87
+ type: z.ZodLiteral<"DISPLAY_ON_REVIEW">;
88
+ conditional: z.ZodAny;
89
+ }, z.core.$strip>], "type">>>;
90
+ validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
91
+ validator: z.ZodAny;
92
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
93
+ }, z.core.$strip>>>;
94
+ allowedLocations: z.ZodOptional<z.ZodObject<{
95
+ $jurisdiction: z.ZodUnion<[z.ZodEnum<{
96
+ administrativeArea: "administrativeArea";
97
+ location: "location";
98
+ all: "all";
99
+ }>, z.ZodObject<{
100
+ $scope: z.ZodEnum<{
101
+ "record.search": "record.search";
102
+ "record.create": "record.create";
103
+ "record.read": "record.read";
104
+ "record.declare": "record.declare";
105
+ "record.notify": "record.notify";
106
+ "record.edit": "record.edit";
107
+ "record.reject": "record.reject";
108
+ "record.archive": "record.archive";
109
+ "record.review-duplicates": "record.review-duplicates";
110
+ "record.register": "record.register";
111
+ "record.print-certified-copies": "record.print-certified-copies";
112
+ "record.request-correction": "record.request-correction";
113
+ "record.correct": "record.correct";
114
+ "record.unassign-others": "record.unassign-others";
115
+ "record.custom-action": "record.custom-action";
116
+ bypassratelimit: "bypassratelimit";
117
+ "record.reindex": "record.reindex";
118
+ "user.data-seeding": "user.data-seeding";
119
+ "integration.create": "integration.create";
120
+ "record.import": "record.import";
121
+ "config.update-all": "config.update-all";
122
+ "attachment.upload": "attachment.upload";
123
+ "profile.electronic-signature": "profile.electronic-signature";
124
+ "user.read-only-my-audit": "user.read-only-my-audit";
125
+ "performance.read": "performance.read";
126
+ "performance.read-dashboards": "performance.read-dashboards";
127
+ "performance.vital-statistics-export": "performance.vital-statistics-export";
128
+ "record.confirm-registration": "record.confirm-registration";
129
+ "record.reject-registration": "record.reject-registration";
130
+ "organisation.read-locations": "organisation.read-locations";
131
+ "user.read": "user.read";
132
+ "user.create": "user.create";
133
+ "user.edit": "user.edit";
134
+ "user.search": "user.search";
135
+ workqueue: "workqueue";
136
+ "dashboard.view": "dashboard.view";
137
+ }>;
138
+ $option: z.ZodEnum<{
139
+ role: "role";
140
+ event: "event";
141
+ placeOfEvent: "placeOfEvent";
142
+ declaredIn: "declaredIn";
143
+ declaredBy: "declaredBy";
144
+ registeredIn: "registeredIn";
145
+ registeredBy: "registeredBy";
146
+ accessLevel: "accessLevel";
147
+ ids: "ids";
148
+ }>;
149
+ }, z.core.$strip>]>;
150
+ }, z.core.$strip>>;
130
151
  fieldId: z.ZodString;
131
152
  fieldType: z.ZodLiteral<"field">;
132
- }>, "strip", z.ZodTypeAny, {
133
- config: {
134
- type: "exact" | "range" | "fuzzy" | "within";
135
- searchFields?: string[] | undefined;
136
- };
137
- fieldId: string;
138
- fieldType: "field";
139
- type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "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" | undefined;
140
- options?: {
141
- value: string;
142
- label: string | TranslationConfig;
143
- conditionals?: ({
144
- type: "SHOW";
145
- conditional: import(".").JSONSchema;
146
- } | {
147
- type: "ENABLE";
148
- conditional: import(".").JSONSchema;
149
- })[] | undefined;
150
- }[] | undefined;
151
- label?: TranslationConfig | undefined;
152
- conditionals?: ({
153
- type: "SHOW";
154
- conditional: import(".").JSONSchema;
155
- } | {
156
- type: "ENABLE";
157
- conditional: import(".").JSONSchema;
158
- } | {
159
- type: "DISPLAY_ON_REVIEW";
160
- conditional: import(".").JSONSchema;
161
- })[] | undefined;
162
- searchCriteriaLabelPrefix?: TranslationConfig | undefined;
163
- validations?: {
164
- message: TranslationConfig;
165
- validator: import(".").JSONSchema;
166
- }[] | undefined;
167
- }, {
168
- config: {
169
- type: "exact" | "range" | "fuzzy" | "within";
170
- searchFields?: string[] | undefined;
171
- };
172
- fieldId: string;
173
- fieldType: "field";
174
- type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "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" | undefined;
175
- options?: {
176
- value: string;
177
- label: string | {
178
- id: string;
179
- description: string;
180
- defaultMessage: string;
181
- };
182
- conditionals?: ({
183
- type: "SHOW";
184
- conditional: import(".").JSONSchema;
185
- } | {
186
- type: "ENABLE";
187
- conditional: import(".").JSONSchema;
188
- })[] | undefined;
189
- }[] | undefined;
190
- label?: {
191
- id: string;
192
- description: string;
193
- defaultMessage: string;
194
- } | undefined;
195
- conditionals?: ({
196
- type: "SHOW";
197
- conditional: import(".").JSONSchema;
198
- } | {
199
- type: "ENABLE";
200
- conditional: import(".").JSONSchema;
201
- } | {
202
- type: "DISPLAY_ON_REVIEW";
203
- conditional: import(".").JSONSchema;
204
- })[] | undefined;
205
- searchCriteriaLabelPrefix?: {
206
- id: string;
207
- description: string;
208
- defaultMessage: string;
209
- } | undefined;
210
- validations?: {
211
- message: {
212
- id: string;
213
- description: string;
214
- defaultMessage: string;
215
- };
216
- validator: import(".").JSONSchema;
217
- }[] | undefined;
218
- }>;
153
+ }, z.core.$strip>;
219
154
  /**
220
155
  * The event fields that are available for advanced search, date of event, summary. These are the values
221
156
  * that can be passed to the `event` function to create a field config.
222
157
  */
223
- export declare const EventFieldIdInput: z.ZodEnum<["trackingId", "status", "legalStatuses.REGISTERED.acceptedAt", "legalStatuses.REGISTERED.createdAtLocation", "legalStatuses.REGISTERED.registrationNumber", "updatedAt"]>;
158
+ export declare const EventFieldIdInput: z.ZodEnum<{
159
+ updatedAt: "updatedAt";
160
+ status: "status";
161
+ trackingId: "trackingId";
162
+ "legalStatuses.REGISTERED.acceptedAt": "legalStatuses.REGISTERED.acceptedAt";
163
+ "legalStatuses.REGISTERED.createdAtLocation": "legalStatuses.REGISTERED.createdAtLocation";
164
+ "legalStatuses.REGISTERED.registrationNumber": "legalStatuses.REGISTERED.registrationNumber";
165
+ }>;
224
166
  /**
225
167
  * Represent the prefix used to differentiate event metadata fields from
226
168
  * the declaration ones in advanced search form.
@@ -230,21 +172,27 @@ export declare const METADATA_FIELD_PREFIX = "event.";
230
172
  * The field IDs that are actually used in the advanced search, date of event, summary. The `event`
231
173
  * function prefixes the `EventFieldIdInput` values with METADATA_FIELD_PREFIX.
232
174
  */
233
- export declare const EventFieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.legalStatuses.REGISTERED.registrationNumber", "event.updatedAt"]>;
175
+ export declare const EventFieldId: z.ZodEnum<{
176
+ "event.updatedAt": "event.updatedAt";
177
+ "event.status": "event.status";
178
+ "event.trackingId": "event.trackingId";
179
+ "event.legalStatuses.REGISTERED.acceptedAt": "event.legalStatuses.REGISTERED.acceptedAt";
180
+ "event.legalStatuses.REGISTERED.createdAtLocation": "event.legalStatuses.REGISTERED.createdAtLocation";
181
+ "event.legalStatuses.REGISTERED.registrationNumber": "event.legalStatuses.REGISTERED.registrationNumber";
182
+ }>;
234
183
  export type EventFieldIdInput = z.infer<typeof EventFieldIdInput>;
235
184
  export type EventFieldId = z.infer<typeof EventFieldId>;
236
- export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
185
+ export declare const EventFieldConfigSchema: z.ZodObject<{
237
186
  config: z.ZodObject<{
238
- type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
239
- searchFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
240
- }, "strip", z.ZodTypeAny, {
241
- type: "exact" | "range" | "fuzzy" | "within";
242
- searchFields?: string[] | undefined;
243
- }, {
244
- type: "exact" | "range" | "fuzzy" | "within";
245
- searchFields?: string[] | undefined;
246
- }>;
247
- type: z.ZodOptional<z.ZodNativeEnum<{
187
+ type: z.ZodEnum<{
188
+ exact: "exact";
189
+ fuzzy: "fuzzy";
190
+ range: "range";
191
+ within: "within";
192
+ }>;
193
+ searchFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
194
+ }, z.core.$strip>;
195
+ type: z.ZodOptional<z.ZodEnum<{
248
196
  readonly NAME: "NAME";
249
197
  readonly PHONE: "PHONE";
250
198
  readonly ID: "ID";
@@ -259,7 +207,9 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
259
207
  readonly DATE_RANGE: "DATE_RANGE";
260
208
  readonly SELECT_DATE_RANGE: "SELECT_DATE_RANGE";
261
209
  readonly TIME: "TIME";
210
+ readonly IMAGE_VIEW: "IMAGE_VIEW";
262
211
  readonly PARAGRAPH: "PARAGRAPH";
212
+ readonly HEADING: "HEADING";
263
213
  readonly PAGE_HEADER: "PAGE_HEADER";
264
214
  readonly RADIO_GROUP: "RADIO_GROUP";
265
215
  readonly FIELD_GROUP: "FIELD_GROUP";
@@ -277,6 +227,7 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
277
227
  readonly SIGNATURE: "SIGNATURE";
278
228
  readonly DATA: "DATA";
279
229
  readonly BUTTON: "BUTTON";
230
+ readonly AUTOCOMPLETE: "AUTOCOMPLETE";
280
231
  readonly SEARCH: "SEARCH";
281
232
  readonly ALPHA_PRINT_BUTTON: "ALPHA_PRINT_BUTTON";
282
233
  readonly HTTP: "HTTP";
@@ -286,171 +237,115 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
286
237
  readonly QR_READER: "QR_READER";
287
238
  readonly ID_READER: "ID_READER";
288
239
  readonly LOADER: "LOADER";
240
+ readonly ALPHA_HIDDEN: "ALPHA_HIDDEN";
241
+ readonly USER_ROLE: "USER_ROLE";
242
+ readonly _EXPERIMENTAL_CUSTOM: "CUSTOM";
289
243
  }>>;
290
- label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
291
- id: string;
292
- description: string;
293
- defaultMessage: string;
294
- }>>;
244
+ label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
295
245
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
296
246
  value: z.ZodString;
297
- label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
298
- id: string;
299
- description: string;
300
- defaultMessage: string;
301
- }>]>;
302
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
303
- }, "strip", z.ZodTypeAny, {
304
- value: string;
305
- label: string | TranslationConfig;
306
- conditionals?: ({
307
- type: "SHOW";
308
- conditional: import(".").JSONSchema;
309
- } | {
310
- type: "ENABLE";
311
- conditional: import(".").JSONSchema;
312
- })[] | undefined;
313
- }, {
314
- value: string;
315
- label: string | {
316
- id: string;
317
- description: string;
318
- defaultMessage: string;
319
- };
320
- conditionals?: ({
321
- type: "SHOW";
322
- conditional: import(".").JSONSchema;
323
- } | {
324
- type: "ENABLE";
325
- conditional: import(".").JSONSchema;
326
- })[] | undefined;
327
- }>, "many">>;
328
- searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
329
- id: string;
330
- description: string;
331
- defaultMessage: string;
332
- }>>;
333
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
334
- validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
335
- validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
336
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
337
- id: string;
338
- description: string;
339
- defaultMessage: string;
340
- }>;
341
- }, "strip", z.ZodTypeAny, {
342
- message: TranslationConfig;
343
- validator: import(".").JSONSchema;
344
- }, {
345
- message: {
346
- id: string;
347
- description: string;
348
- defaultMessage: string;
349
- };
350
- validator: import(".").JSONSchema;
351
- }>, "many">>>;
352
- }, {
353
- fieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.legalStatuses.REGISTERED.registrationNumber", "event.updatedAt"]>;
247
+ label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>]>;
248
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
249
+ type: z.ZodLiteral<"SHOW">;
250
+ conditional: z.ZodAny;
251
+ }, z.core.$strip>, z.ZodObject<{
252
+ type: z.ZodLiteral<"ENABLE">;
253
+ conditional: z.ZodAny;
254
+ }, z.core.$strip>], "type">>>>;
255
+ }, z.core.$strip>>>;
256
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
257
+ conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
258
+ type: z.ZodLiteral<"SHOW">;
259
+ conditional: z.ZodAny;
260
+ }, z.core.$strip>, z.ZodObject<{
261
+ type: z.ZodLiteral<"ENABLE">;
262
+ conditional: z.ZodAny;
263
+ }, z.core.$strip>, z.ZodObject<{
264
+ type: z.ZodLiteral<"DISPLAY_ON_REVIEW">;
265
+ conditional: z.ZodAny;
266
+ }, z.core.$strip>], "type">>>;
267
+ validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
268
+ validator: z.ZodAny;
269
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
270
+ }, z.core.$strip>>>;
271
+ allowedLocations: z.ZodOptional<z.ZodObject<{
272
+ $jurisdiction: z.ZodUnion<[z.ZodEnum<{
273
+ administrativeArea: "administrativeArea";
274
+ location: "location";
275
+ all: "all";
276
+ }>, z.ZodObject<{
277
+ $scope: z.ZodEnum<{
278
+ "record.search": "record.search";
279
+ "record.create": "record.create";
280
+ "record.read": "record.read";
281
+ "record.declare": "record.declare";
282
+ "record.notify": "record.notify";
283
+ "record.edit": "record.edit";
284
+ "record.reject": "record.reject";
285
+ "record.archive": "record.archive";
286
+ "record.review-duplicates": "record.review-duplicates";
287
+ "record.register": "record.register";
288
+ "record.print-certified-copies": "record.print-certified-copies";
289
+ "record.request-correction": "record.request-correction";
290
+ "record.correct": "record.correct";
291
+ "record.unassign-others": "record.unassign-others";
292
+ "record.custom-action": "record.custom-action";
293
+ bypassratelimit: "bypassratelimit";
294
+ "record.reindex": "record.reindex";
295
+ "user.data-seeding": "user.data-seeding";
296
+ "integration.create": "integration.create";
297
+ "record.import": "record.import";
298
+ "config.update-all": "config.update-all";
299
+ "attachment.upload": "attachment.upload";
300
+ "profile.electronic-signature": "profile.electronic-signature";
301
+ "user.read-only-my-audit": "user.read-only-my-audit";
302
+ "performance.read": "performance.read";
303
+ "performance.read-dashboards": "performance.read-dashboards";
304
+ "performance.vital-statistics-export": "performance.vital-statistics-export";
305
+ "record.confirm-registration": "record.confirm-registration";
306
+ "record.reject-registration": "record.reject-registration";
307
+ "organisation.read-locations": "organisation.read-locations";
308
+ "user.read": "user.read";
309
+ "user.create": "user.create";
310
+ "user.edit": "user.edit";
311
+ "user.search": "user.search";
312
+ workqueue: "workqueue";
313
+ "dashboard.view": "dashboard.view";
314
+ }>;
315
+ $option: z.ZodEnum<{
316
+ role: "role";
317
+ event: "event";
318
+ placeOfEvent: "placeOfEvent";
319
+ declaredIn: "declaredIn";
320
+ declaredBy: "declaredBy";
321
+ registeredIn: "registeredIn";
322
+ registeredBy: "registeredBy";
323
+ accessLevel: "accessLevel";
324
+ ids: "ids";
325
+ }>;
326
+ }, z.core.$strip>]>;
327
+ }, z.core.$strip>>;
328
+ fieldId: z.ZodEnum<{
329
+ "event.updatedAt": "event.updatedAt";
330
+ "event.status": "event.status";
331
+ "event.trackingId": "event.trackingId";
332
+ "event.legalStatuses.REGISTERED.acceptedAt": "event.legalStatuses.REGISTERED.acceptedAt";
333
+ "event.legalStatuses.REGISTERED.createdAtLocation": "event.legalStatuses.REGISTERED.createdAtLocation";
334
+ "event.legalStatuses.REGISTERED.registrationNumber": "event.legalStatuses.REGISTERED.registrationNumber";
335
+ }>;
354
336
  fieldType: z.ZodLiteral<"event">;
355
- }>, "strip", z.ZodTypeAny, {
356
- config: {
357
- type: "exact" | "range" | "fuzzy" | "within";
358
- searchFields?: string[] | undefined;
359
- };
360
- fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber" | "event.updatedAt";
361
- fieldType: "event";
362
- type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "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" | undefined;
363
- options?: {
364
- value: string;
365
- label: string | TranslationConfig;
366
- conditionals?: ({
367
- type: "SHOW";
368
- conditional: import(".").JSONSchema;
369
- } | {
370
- type: "ENABLE";
371
- conditional: import(".").JSONSchema;
372
- })[] | undefined;
373
- }[] | undefined;
374
- label?: TranslationConfig | undefined;
375
- conditionals?: ({
376
- type: "SHOW";
377
- conditional: import(".").JSONSchema;
378
- } | {
379
- type: "ENABLE";
380
- conditional: import(".").JSONSchema;
381
- } | {
382
- type: "DISPLAY_ON_REVIEW";
383
- conditional: import(".").JSONSchema;
384
- })[] | undefined;
385
- searchCriteriaLabelPrefix?: TranslationConfig | undefined;
386
- validations?: {
387
- message: TranslationConfig;
388
- validator: import(".").JSONSchema;
389
- }[] | undefined;
390
- }, {
391
- config: {
392
- type: "exact" | "range" | "fuzzy" | "within";
393
- searchFields?: string[] | undefined;
394
- };
395
- fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber" | "event.updatedAt";
396
- fieldType: "event";
397
- type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "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" | undefined;
398
- options?: {
399
- value: string;
400
- label: string | {
401
- id: string;
402
- description: string;
403
- defaultMessage: string;
404
- };
405
- conditionals?: ({
406
- type: "SHOW";
407
- conditional: import(".").JSONSchema;
408
- } | {
409
- type: "ENABLE";
410
- conditional: import(".").JSONSchema;
411
- })[] | undefined;
412
- }[] | undefined;
413
- label?: {
414
- id: string;
415
- description: string;
416
- defaultMessage: string;
417
- } | undefined;
418
- conditionals?: ({
419
- type: "SHOW";
420
- conditional: import(".").JSONSchema;
421
- } | {
422
- type: "ENABLE";
423
- conditional: import(".").JSONSchema;
424
- } | {
425
- type: "DISPLAY_ON_REVIEW";
426
- conditional: import(".").JSONSchema;
427
- })[] | undefined;
428
- searchCriteriaLabelPrefix?: {
429
- id: string;
430
- description: string;
431
- defaultMessage: string;
432
- } | undefined;
433
- validations?: {
434
- message: {
435
- id: string;
436
- description: string;
437
- defaultMessage: string;
438
- };
439
- validator: import(".").JSONSchema;
440
- }[] | undefined;
441
- }>;
442
- export declare const AdvancedSearchField: z.ZodEffects<z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
337
+ }, z.core.$strip>;
338
+ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
443
339
  config: z.ZodObject<{
444
- type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
445
- searchFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
446
- }, "strip", z.ZodTypeAny, {
447
- type: "exact" | "range" | "fuzzy" | "within";
448
- searchFields?: string[] | undefined;
449
- }, {
450
- type: "exact" | "range" | "fuzzy" | "within";
451
- searchFields?: string[] | undefined;
452
- }>;
453
- type: z.ZodOptional<z.ZodNativeEnum<{
340
+ type: z.ZodEnum<{
341
+ exact: "exact";
342
+ fuzzy: "fuzzy";
343
+ range: "range";
344
+ within: "within";
345
+ }>;
346
+ searchFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
347
+ }, z.core.$strip>;
348
+ type: z.ZodOptional<z.ZodEnum<{
454
349
  readonly NAME: "NAME";
455
350
  readonly PHONE: "PHONE";
456
351
  readonly ID: "ID";
@@ -465,7 +360,9 @@ export declare const AdvancedSearchField: z.ZodEffects<z.ZodDiscriminatedUnion<"
465
360
  readonly DATE_RANGE: "DATE_RANGE";
466
361
  readonly SELECT_DATE_RANGE: "SELECT_DATE_RANGE";
467
362
  readonly TIME: "TIME";
363
+ readonly IMAGE_VIEW: "IMAGE_VIEW";
468
364
  readonly PARAGRAPH: "PARAGRAPH";
365
+ readonly HEADING: "HEADING";
469
366
  readonly PAGE_HEADER: "PAGE_HEADER";
470
367
  readonly RADIO_GROUP: "RADIO_GROUP";
471
368
  readonly FIELD_GROUP: "FIELD_GROUP";
@@ -483,6 +380,7 @@ export declare const AdvancedSearchField: z.ZodEffects<z.ZodDiscriminatedUnion<"
483
380
  readonly SIGNATURE: "SIGNATURE";
484
381
  readonly DATA: "DATA";
485
382
  readonly BUTTON: "BUTTON";
383
+ readonly AUTOCOMPLETE: "AUTOCOMPLETE";
486
384
  readonly SEARCH: "SEARCH";
487
385
  readonly ALPHA_PRINT_BUTTON: "ALPHA_PRINT_BUTTON";
488
386
  readonly HTTP: "HTTP";
@@ -492,170 +390,107 @@ export declare const AdvancedSearchField: z.ZodEffects<z.ZodDiscriminatedUnion<"
492
390
  readonly QR_READER: "QR_READER";
493
391
  readonly ID_READER: "ID_READER";
494
392
  readonly LOADER: "LOADER";
393
+ readonly ALPHA_HIDDEN: "ALPHA_HIDDEN";
394
+ readonly USER_ROLE: "USER_ROLE";
395
+ readonly _EXPERIMENTAL_CUSTOM: "CUSTOM";
495
396
  }>>;
496
- label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
497
- id: string;
498
- description: string;
499
- defaultMessage: string;
500
- }>>;
397
+ label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
501
398
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
502
399
  value: z.ZodString;
503
- label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
504
- id: string;
505
- description: string;
506
- defaultMessage: string;
507
- }>]>;
508
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
509
- }, "strip", z.ZodTypeAny, {
510
- value: string;
511
- label: string | TranslationConfig;
512
- conditionals?: ({
513
- type: "SHOW";
514
- conditional: import(".").JSONSchema;
515
- } | {
516
- type: "ENABLE";
517
- conditional: import(".").JSONSchema;
518
- })[] | undefined;
519
- }, {
520
- value: string;
521
- label: string | {
522
- id: string;
523
- description: string;
524
- defaultMessage: string;
525
- };
526
- conditionals?: ({
527
- type: "SHOW";
528
- conditional: import(".").JSONSchema;
529
- } | {
530
- type: "ENABLE";
531
- conditional: import(".").JSONSchema;
532
- })[] | undefined;
533
- }>, "many">>;
534
- searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
535
- id: string;
536
- description: string;
537
- defaultMessage: string;
538
- }>>;
539
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
540
- validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
541
- validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
542
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
543
- id: string;
544
- description: string;
545
- defaultMessage: string;
546
- }>;
547
- }, "strip", z.ZodTypeAny, {
548
- message: TranslationConfig;
549
- validator: import(".").JSONSchema;
550
- }, {
551
- message: {
552
- id: string;
553
- description: string;
554
- defaultMessage: string;
555
- };
556
- validator: import(".").JSONSchema;
557
- }>, "many">>>;
558
- }, {
400
+ label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>]>;
401
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
402
+ type: z.ZodLiteral<"SHOW">;
403
+ conditional: z.ZodAny;
404
+ }, z.core.$strip>, z.ZodObject<{
405
+ type: z.ZodLiteral<"ENABLE">;
406
+ conditional: z.ZodAny;
407
+ }, z.core.$strip>], "type">>>>;
408
+ }, z.core.$strip>>>;
409
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
410
+ conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
411
+ type: z.ZodLiteral<"SHOW">;
412
+ conditional: z.ZodAny;
413
+ }, z.core.$strip>, z.ZodObject<{
414
+ type: z.ZodLiteral<"ENABLE">;
415
+ conditional: z.ZodAny;
416
+ }, z.core.$strip>, z.ZodObject<{
417
+ type: z.ZodLiteral<"DISPLAY_ON_REVIEW">;
418
+ conditional: z.ZodAny;
419
+ }, z.core.$strip>], "type">>>;
420
+ validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
421
+ validator: z.ZodAny;
422
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
423
+ }, z.core.$strip>>>;
424
+ allowedLocations: z.ZodOptional<z.ZodObject<{
425
+ $jurisdiction: z.ZodUnion<[z.ZodEnum<{
426
+ administrativeArea: "administrativeArea";
427
+ location: "location";
428
+ all: "all";
429
+ }>, z.ZodObject<{
430
+ $scope: z.ZodEnum<{
431
+ "record.search": "record.search";
432
+ "record.create": "record.create";
433
+ "record.read": "record.read";
434
+ "record.declare": "record.declare";
435
+ "record.notify": "record.notify";
436
+ "record.edit": "record.edit";
437
+ "record.reject": "record.reject";
438
+ "record.archive": "record.archive";
439
+ "record.review-duplicates": "record.review-duplicates";
440
+ "record.register": "record.register";
441
+ "record.print-certified-copies": "record.print-certified-copies";
442
+ "record.request-correction": "record.request-correction";
443
+ "record.correct": "record.correct";
444
+ "record.unassign-others": "record.unassign-others";
445
+ "record.custom-action": "record.custom-action";
446
+ bypassratelimit: "bypassratelimit";
447
+ "record.reindex": "record.reindex";
448
+ "user.data-seeding": "user.data-seeding";
449
+ "integration.create": "integration.create";
450
+ "record.import": "record.import";
451
+ "config.update-all": "config.update-all";
452
+ "attachment.upload": "attachment.upload";
453
+ "profile.electronic-signature": "profile.electronic-signature";
454
+ "user.read-only-my-audit": "user.read-only-my-audit";
455
+ "performance.read": "performance.read";
456
+ "performance.read-dashboards": "performance.read-dashboards";
457
+ "performance.vital-statistics-export": "performance.vital-statistics-export";
458
+ "record.confirm-registration": "record.confirm-registration";
459
+ "record.reject-registration": "record.reject-registration";
460
+ "organisation.read-locations": "organisation.read-locations";
461
+ "user.read": "user.read";
462
+ "user.create": "user.create";
463
+ "user.edit": "user.edit";
464
+ "user.search": "user.search";
465
+ workqueue: "workqueue";
466
+ "dashboard.view": "dashboard.view";
467
+ }>;
468
+ $option: z.ZodEnum<{
469
+ role: "role";
470
+ event: "event";
471
+ placeOfEvent: "placeOfEvent";
472
+ declaredIn: "declaredIn";
473
+ declaredBy: "declaredBy";
474
+ registeredIn: "registeredIn";
475
+ registeredBy: "registeredBy";
476
+ accessLevel: "accessLevel";
477
+ ids: "ids";
478
+ }>;
479
+ }, z.core.$strip>]>;
480
+ }, z.core.$strip>>;
559
481
  fieldId: z.ZodString;
560
482
  fieldType: z.ZodLiteral<"field">;
561
- }>, "strip", z.ZodTypeAny, {
562
- config: {
563
- type: "exact" | "range" | "fuzzy" | "within";
564
- searchFields?: string[] | undefined;
565
- };
566
- fieldId: string;
567
- fieldType: "field";
568
- type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "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" | undefined;
569
- options?: {
570
- value: string;
571
- label: string | TranslationConfig;
572
- conditionals?: ({
573
- type: "SHOW";
574
- conditional: import(".").JSONSchema;
575
- } | {
576
- type: "ENABLE";
577
- conditional: import(".").JSONSchema;
578
- })[] | undefined;
579
- }[] | undefined;
580
- label?: TranslationConfig | undefined;
581
- conditionals?: ({
582
- type: "SHOW";
583
- conditional: import(".").JSONSchema;
584
- } | {
585
- type: "ENABLE";
586
- conditional: import(".").JSONSchema;
587
- } | {
588
- type: "DISPLAY_ON_REVIEW";
589
- conditional: import(".").JSONSchema;
590
- })[] | undefined;
591
- searchCriteriaLabelPrefix?: TranslationConfig | undefined;
592
- validations?: {
593
- message: TranslationConfig;
594
- validator: import(".").JSONSchema;
595
- }[] | undefined;
596
- }, {
597
- config: {
598
- type: "exact" | "range" | "fuzzy" | "within";
599
- searchFields?: string[] | undefined;
600
- };
601
- fieldId: string;
602
- fieldType: "field";
603
- type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "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" | undefined;
604
- options?: {
605
- value: string;
606
- label: string | {
607
- id: string;
608
- description: string;
609
- defaultMessage: string;
610
- };
611
- conditionals?: ({
612
- type: "SHOW";
613
- conditional: import(".").JSONSchema;
614
- } | {
615
- type: "ENABLE";
616
- conditional: import(".").JSONSchema;
617
- })[] | undefined;
618
- }[] | undefined;
619
- label?: {
620
- id: string;
621
- description: string;
622
- defaultMessage: string;
623
- } | undefined;
624
- conditionals?: ({
625
- type: "SHOW";
626
- conditional: import(".").JSONSchema;
627
- } | {
628
- type: "ENABLE";
629
- conditional: import(".").JSONSchema;
630
- } | {
631
- type: "DISPLAY_ON_REVIEW";
632
- conditional: import(".").JSONSchema;
633
- })[] | undefined;
634
- searchCriteriaLabelPrefix?: {
635
- id: string;
636
- description: string;
637
- defaultMessage: string;
638
- } | undefined;
639
- validations?: {
640
- message: {
641
- id: string;
642
- description: string;
643
- defaultMessage: string;
644
- };
645
- validator: import(".").JSONSchema;
646
- }[] | undefined;
647
- }>, z.ZodObject<z.objectUtil.extendShape<{
483
+ }, z.core.$strip>, z.ZodObject<{
648
484
  config: z.ZodObject<{
649
- type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
650
- searchFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
651
- }, "strip", z.ZodTypeAny, {
652
- type: "exact" | "range" | "fuzzy" | "within";
653
- searchFields?: string[] | undefined;
654
- }, {
655
- type: "exact" | "range" | "fuzzy" | "within";
656
- searchFields?: string[] | undefined;
657
- }>;
658
- type: z.ZodOptional<z.ZodNativeEnum<{
485
+ type: z.ZodEnum<{
486
+ exact: "exact";
487
+ fuzzy: "fuzzy";
488
+ range: "range";
489
+ within: "within";
490
+ }>;
491
+ searchFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
492
+ }, z.core.$strip>;
493
+ type: z.ZodOptional<z.ZodEnum<{
659
494
  readonly NAME: "NAME";
660
495
  readonly PHONE: "PHONE";
661
496
  readonly ID: "ID";
@@ -670,7 +505,9 @@ export declare const AdvancedSearchField: z.ZodEffects<z.ZodDiscriminatedUnion<"
670
505
  readonly DATE_RANGE: "DATE_RANGE";
671
506
  readonly SELECT_DATE_RANGE: "SELECT_DATE_RANGE";
672
507
  readonly TIME: "TIME";
508
+ readonly IMAGE_VIEW: "IMAGE_VIEW";
673
509
  readonly PARAGRAPH: "PARAGRAPH";
510
+ readonly HEADING: "HEADING";
674
511
  readonly PAGE_HEADER: "PAGE_HEADER";
675
512
  readonly RADIO_GROUP: "RADIO_GROUP";
676
513
  readonly FIELD_GROUP: "FIELD_GROUP";
@@ -688,6 +525,7 @@ export declare const AdvancedSearchField: z.ZodEffects<z.ZodDiscriminatedUnion<"
688
525
  readonly SIGNATURE: "SIGNATURE";
689
526
  readonly DATA: "DATA";
690
527
  readonly BUTTON: "BUTTON";
528
+ readonly AUTOCOMPLETE: "AUTOCOMPLETE";
691
529
  readonly SEARCH: "SEARCH";
692
530
  readonly ALPHA_PRINT_BUTTON: "ALPHA_PRINT_BUTTON";
693
531
  readonly HTTP: "HTTP";
@@ -697,350 +535,118 @@ export declare const AdvancedSearchField: z.ZodEffects<z.ZodDiscriminatedUnion<"
697
535
  readonly QR_READER: "QR_READER";
698
536
  readonly ID_READER: "ID_READER";
699
537
  readonly LOADER: "LOADER";
538
+ readonly ALPHA_HIDDEN: "ALPHA_HIDDEN";
539
+ readonly USER_ROLE: "USER_ROLE";
540
+ readonly _EXPERIMENTAL_CUSTOM: "CUSTOM";
700
541
  }>>;
701
- label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
702
- id: string;
703
- description: string;
704
- defaultMessage: string;
705
- }>>;
542
+ label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
706
543
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
707
544
  value: z.ZodString;
708
- label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
709
- id: string;
710
- description: string;
711
- defaultMessage: string;
712
- }>]>;
713
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
714
- }, "strip", z.ZodTypeAny, {
715
- value: string;
716
- label: string | TranslationConfig;
717
- conditionals?: ({
718
- type: "SHOW";
719
- conditional: import(".").JSONSchema;
720
- } | {
721
- type: "ENABLE";
722
- conditional: import(".").JSONSchema;
723
- })[] | undefined;
724
- }, {
725
- value: string;
726
- label: string | {
727
- id: string;
728
- description: string;
729
- defaultMessage: string;
730
- };
731
- conditionals?: ({
732
- type: "SHOW";
733
- conditional: import(".").JSONSchema;
734
- } | {
735
- type: "ENABLE";
736
- conditional: import(".").JSONSchema;
737
- })[] | undefined;
738
- }>, "many">>;
739
- searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
740
- id: string;
741
- description: string;
742
- defaultMessage: string;
743
- }>>;
744
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
745
- validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
746
- validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
747
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
748
- id: string;
749
- description: string;
750
- defaultMessage: string;
751
- }>;
752
- }, "strip", z.ZodTypeAny, {
753
- message: TranslationConfig;
754
- validator: import(".").JSONSchema;
755
- }, {
756
- message: {
757
- id: string;
758
- description: string;
759
- defaultMessage: string;
760
- };
761
- validator: import(".").JSONSchema;
762
- }>, "many">>>;
763
- }, {
764
- fieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.legalStatuses.REGISTERED.registrationNumber", "event.updatedAt"]>;
545
+ label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>]>;
546
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
547
+ type: z.ZodLiteral<"SHOW">;
548
+ conditional: z.ZodAny;
549
+ }, z.core.$strip>, z.ZodObject<{
550
+ type: z.ZodLiteral<"ENABLE">;
551
+ conditional: z.ZodAny;
552
+ }, z.core.$strip>], "type">>>>;
553
+ }, z.core.$strip>>>;
554
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
555
+ conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
556
+ type: z.ZodLiteral<"SHOW">;
557
+ conditional: z.ZodAny;
558
+ }, z.core.$strip>, z.ZodObject<{
559
+ type: z.ZodLiteral<"ENABLE">;
560
+ conditional: z.ZodAny;
561
+ }, z.core.$strip>, z.ZodObject<{
562
+ type: z.ZodLiteral<"DISPLAY_ON_REVIEW">;
563
+ conditional: z.ZodAny;
564
+ }, z.core.$strip>], "type">>>;
565
+ validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
566
+ validator: z.ZodAny;
567
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
568
+ }, z.core.$strip>>>;
569
+ allowedLocations: z.ZodOptional<z.ZodObject<{
570
+ $jurisdiction: z.ZodUnion<[z.ZodEnum<{
571
+ administrativeArea: "administrativeArea";
572
+ location: "location";
573
+ all: "all";
574
+ }>, z.ZodObject<{
575
+ $scope: z.ZodEnum<{
576
+ "record.search": "record.search";
577
+ "record.create": "record.create";
578
+ "record.read": "record.read";
579
+ "record.declare": "record.declare";
580
+ "record.notify": "record.notify";
581
+ "record.edit": "record.edit";
582
+ "record.reject": "record.reject";
583
+ "record.archive": "record.archive";
584
+ "record.review-duplicates": "record.review-duplicates";
585
+ "record.register": "record.register";
586
+ "record.print-certified-copies": "record.print-certified-copies";
587
+ "record.request-correction": "record.request-correction";
588
+ "record.correct": "record.correct";
589
+ "record.unassign-others": "record.unassign-others";
590
+ "record.custom-action": "record.custom-action";
591
+ bypassratelimit: "bypassratelimit";
592
+ "record.reindex": "record.reindex";
593
+ "user.data-seeding": "user.data-seeding";
594
+ "integration.create": "integration.create";
595
+ "record.import": "record.import";
596
+ "config.update-all": "config.update-all";
597
+ "attachment.upload": "attachment.upload";
598
+ "profile.electronic-signature": "profile.electronic-signature";
599
+ "user.read-only-my-audit": "user.read-only-my-audit";
600
+ "performance.read": "performance.read";
601
+ "performance.read-dashboards": "performance.read-dashboards";
602
+ "performance.vital-statistics-export": "performance.vital-statistics-export";
603
+ "record.confirm-registration": "record.confirm-registration";
604
+ "record.reject-registration": "record.reject-registration";
605
+ "organisation.read-locations": "organisation.read-locations";
606
+ "user.read": "user.read";
607
+ "user.create": "user.create";
608
+ "user.edit": "user.edit";
609
+ "user.search": "user.search";
610
+ workqueue: "workqueue";
611
+ "dashboard.view": "dashboard.view";
612
+ }>;
613
+ $option: z.ZodEnum<{
614
+ role: "role";
615
+ event: "event";
616
+ placeOfEvent: "placeOfEvent";
617
+ declaredIn: "declaredIn";
618
+ declaredBy: "declaredBy";
619
+ registeredIn: "registeredIn";
620
+ registeredBy: "registeredBy";
621
+ accessLevel: "accessLevel";
622
+ ids: "ids";
623
+ }>;
624
+ }, z.core.$strip>]>;
625
+ }, z.core.$strip>>;
626
+ fieldId: z.ZodEnum<{
627
+ "event.updatedAt": "event.updatedAt";
628
+ "event.status": "event.status";
629
+ "event.trackingId": "event.trackingId";
630
+ "event.legalStatuses.REGISTERED.acceptedAt": "event.legalStatuses.REGISTERED.acceptedAt";
631
+ "event.legalStatuses.REGISTERED.createdAtLocation": "event.legalStatuses.REGISTERED.createdAtLocation";
632
+ "event.legalStatuses.REGISTERED.registrationNumber": "event.legalStatuses.REGISTERED.registrationNumber";
633
+ }>;
765
634
  fieldType: z.ZodLiteral<"event">;
766
- }>, "strip", z.ZodTypeAny, {
767
- config: {
768
- type: "exact" | "range" | "fuzzy" | "within";
769
- searchFields?: string[] | undefined;
770
- };
771
- fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber" | "event.updatedAt";
772
- fieldType: "event";
773
- type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "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" | undefined;
774
- options?: {
775
- value: string;
776
- label: string | TranslationConfig;
777
- conditionals?: ({
778
- type: "SHOW";
779
- conditional: import(".").JSONSchema;
780
- } | {
781
- type: "ENABLE";
782
- conditional: import(".").JSONSchema;
783
- })[] | undefined;
784
- }[] | undefined;
785
- label?: TranslationConfig | undefined;
786
- conditionals?: ({
787
- type: "SHOW";
788
- conditional: import(".").JSONSchema;
789
- } | {
790
- type: "ENABLE";
791
- conditional: import(".").JSONSchema;
792
- } | {
793
- type: "DISPLAY_ON_REVIEW";
794
- conditional: import(".").JSONSchema;
795
- })[] | undefined;
796
- searchCriteriaLabelPrefix?: TranslationConfig | undefined;
797
- validations?: {
798
- message: TranslationConfig;
799
- validator: import(".").JSONSchema;
800
- }[] | undefined;
801
- }, {
802
- config: {
803
- type: "exact" | "range" | "fuzzy" | "within";
804
- searchFields?: string[] | undefined;
805
- };
806
- fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber" | "event.updatedAt";
807
- fieldType: "event";
808
- type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "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" | undefined;
809
- options?: {
810
- value: string;
811
- label: string | {
812
- id: string;
813
- description: string;
814
- defaultMessage: string;
815
- };
816
- conditionals?: ({
817
- type: "SHOW";
818
- conditional: import(".").JSONSchema;
819
- } | {
820
- type: "ENABLE";
821
- conditional: import(".").JSONSchema;
822
- })[] | undefined;
823
- }[] | undefined;
824
- label?: {
825
- id: string;
826
- description: string;
827
- defaultMessage: string;
828
- } | undefined;
829
- conditionals?: ({
830
- type: "SHOW";
831
- conditional: import(".").JSONSchema;
832
- } | {
833
- type: "ENABLE";
834
- conditional: import(".").JSONSchema;
835
- } | {
836
- type: "DISPLAY_ON_REVIEW";
837
- conditional: import(".").JSONSchema;
838
- })[] | undefined;
839
- searchCriteriaLabelPrefix?: {
840
- id: string;
841
- description: string;
842
- defaultMessage: string;
843
- } | undefined;
844
- validations?: {
845
- message: {
846
- id: string;
847
- description: string;
848
- defaultMessage: string;
849
- };
850
- validator: import(".").JSONSchema;
851
- }[] | undefined;
852
- }>]>, {
853
- config: {
854
- type: "exact" | "range" | "fuzzy" | "within";
855
- searchFields?: string[] | undefined;
856
- };
857
- fieldId: string;
858
- fieldType: "field";
859
- type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "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" | undefined;
860
- options?: {
861
- value: string;
862
- label: string | TranslationConfig;
863
- conditionals?: ({
864
- type: "SHOW";
865
- conditional: import(".").JSONSchema;
866
- } | {
867
- type: "ENABLE";
868
- conditional: import(".").JSONSchema;
869
- })[] | undefined;
870
- }[] | undefined;
871
- label?: TranslationConfig | undefined;
872
- conditionals?: ({
873
- type: "SHOW";
874
- conditional: import(".").JSONSchema;
875
- } | {
876
- type: "ENABLE";
877
- conditional: import(".").JSONSchema;
878
- } | {
879
- type: "DISPLAY_ON_REVIEW";
880
- conditional: import(".").JSONSchema;
881
- })[] | undefined;
882
- searchCriteriaLabelPrefix?: TranslationConfig | undefined;
883
- validations?: {
884
- message: TranslationConfig;
885
- validator: import(".").JSONSchema;
886
- }[] | undefined;
887
- } | {
888
- config: {
889
- type: "exact" | "range" | "fuzzy" | "within";
890
- searchFields?: string[] | undefined;
891
- };
892
- fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber" | "event.updatedAt";
893
- fieldType: "event";
894
- type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "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" | undefined;
895
- options?: {
896
- value: string;
897
- label: string | TranslationConfig;
898
- conditionals?: ({
899
- type: "SHOW";
900
- conditional: import(".").JSONSchema;
901
- } | {
902
- type: "ENABLE";
903
- conditional: import(".").JSONSchema;
904
- })[] | undefined;
905
- }[] | undefined;
906
- label?: TranslationConfig | undefined;
907
- conditionals?: ({
908
- type: "SHOW";
909
- conditional: import(".").JSONSchema;
910
- } | {
911
- type: "ENABLE";
912
- conditional: import(".").JSONSchema;
913
- } | {
914
- type: "DISPLAY_ON_REVIEW";
915
- conditional: import(".").JSONSchema;
916
- })[] | undefined;
917
- searchCriteriaLabelPrefix?: TranslationConfig | undefined;
918
- validations?: {
919
- message: TranslationConfig;
920
- validator: import(".").JSONSchema;
921
- }[] | undefined;
922
- }, {
923
- config: {
924
- type: "exact" | "range" | "fuzzy" | "within";
925
- searchFields?: string[] | undefined;
926
- };
927
- fieldId: string;
928
- fieldType: "field";
929
- type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "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" | undefined;
930
- options?: {
931
- value: string;
932
- label: string | {
933
- id: string;
934
- description: string;
935
- defaultMessage: string;
936
- };
937
- conditionals?: ({
938
- type: "SHOW";
939
- conditional: import(".").JSONSchema;
940
- } | {
941
- type: "ENABLE";
942
- conditional: import(".").JSONSchema;
943
- })[] | undefined;
944
- }[] | undefined;
945
- label?: {
946
- id: string;
947
- description: string;
948
- defaultMessage: string;
949
- } | undefined;
950
- conditionals?: ({
951
- type: "SHOW";
952
- conditional: import(".").JSONSchema;
953
- } | {
954
- type: "ENABLE";
955
- conditional: import(".").JSONSchema;
956
- } | {
957
- type: "DISPLAY_ON_REVIEW";
958
- conditional: import(".").JSONSchema;
959
- })[] | undefined;
960
- searchCriteriaLabelPrefix?: {
961
- id: string;
962
- description: string;
963
- defaultMessage: string;
964
- } | undefined;
965
- validations?: {
966
- message: {
967
- id: string;
968
- description: string;
969
- defaultMessage: string;
970
- };
971
- validator: import(".").JSONSchema;
972
- }[] | undefined;
973
- } | {
974
- config: {
975
- type: "exact" | "range" | "fuzzy" | "within";
976
- searchFields?: string[] | undefined;
977
- };
978
- fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber" | "event.updatedAt";
979
- fieldType: "event";
980
- type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "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" | undefined;
981
- options?: {
982
- value: string;
983
- label: string | {
984
- id: string;
985
- description: string;
986
- defaultMessage: string;
987
- };
988
- conditionals?: ({
989
- type: "SHOW";
990
- conditional: import(".").JSONSchema;
991
- } | {
992
- type: "ENABLE";
993
- conditional: import(".").JSONSchema;
994
- })[] | undefined;
995
- }[] | undefined;
996
- label?: {
997
- id: string;
998
- description: string;
999
- defaultMessage: string;
1000
- } | undefined;
1001
- conditionals?: ({
1002
- type: "SHOW";
1003
- conditional: import(".").JSONSchema;
1004
- } | {
1005
- type: "ENABLE";
1006
- conditional: import(".").JSONSchema;
1007
- } | {
1008
- type: "DISPLAY_ON_REVIEW";
1009
- conditional: import(".").JSONSchema;
1010
- })[] | undefined;
1011
- searchCriteriaLabelPrefix?: {
1012
- id: string;
1013
- description: string;
1014
- defaultMessage: string;
1015
- } | undefined;
1016
- validations?: {
1017
- message: {
1018
- id: string;
1019
- description: string;
1020
- defaultMessage: string;
1021
- };
1022
- validator: import(".").JSONSchema;
1023
- }[] | undefined;
1024
- }>;
635
+ }, z.core.$strip>], "fieldType">;
1025
636
  export type AdvancedSearchField = z.infer<typeof AdvancedSearchField>;
1026
637
  export declare const AdvancedSearchConfig: z.ZodObject<{
1027
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1028
- id: string;
1029
- description: string;
1030
- defaultMessage: string;
1031
- }>;
1032
- fields: z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
638
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
639
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1033
640
  config: z.ZodObject<{
1034
- type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
1035
- searchFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1036
- }, "strip", z.ZodTypeAny, {
1037
- type: "exact" | "range" | "fuzzy" | "within";
1038
- searchFields?: string[] | undefined;
1039
- }, {
1040
- type: "exact" | "range" | "fuzzy" | "within";
1041
- searchFields?: string[] | undefined;
1042
- }>;
1043
- type: z.ZodOptional<z.ZodNativeEnum<{
641
+ type: z.ZodEnum<{
642
+ exact: "exact";
643
+ fuzzy: "fuzzy";
644
+ range: "range";
645
+ within: "within";
646
+ }>;
647
+ searchFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
648
+ }, z.core.$strip>;
649
+ type: z.ZodOptional<z.ZodEnum<{
1044
650
  readonly NAME: "NAME";
1045
651
  readonly PHONE: "PHONE";
1046
652
  readonly ID: "ID";
@@ -1055,7 +661,9 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1055
661
  readonly DATE_RANGE: "DATE_RANGE";
1056
662
  readonly SELECT_DATE_RANGE: "SELECT_DATE_RANGE";
1057
663
  readonly TIME: "TIME";
664
+ readonly IMAGE_VIEW: "IMAGE_VIEW";
1058
665
  readonly PARAGRAPH: "PARAGRAPH";
666
+ readonly HEADING: "HEADING";
1059
667
  readonly PAGE_HEADER: "PAGE_HEADER";
1060
668
  readonly RADIO_GROUP: "RADIO_GROUP";
1061
669
  readonly FIELD_GROUP: "FIELD_GROUP";
@@ -1073,6 +681,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1073
681
  readonly SIGNATURE: "SIGNATURE";
1074
682
  readonly DATA: "DATA";
1075
683
  readonly BUTTON: "BUTTON";
684
+ readonly AUTOCOMPLETE: "AUTOCOMPLETE";
1076
685
  readonly SEARCH: "SEARCH";
1077
686
  readonly ALPHA_PRINT_BUTTON: "ALPHA_PRINT_BUTTON";
1078
687
  readonly HTTP: "HTTP";
@@ -1082,170 +691,107 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1082
691
  readonly QR_READER: "QR_READER";
1083
692
  readonly ID_READER: "ID_READER";
1084
693
  readonly LOADER: "LOADER";
694
+ readonly ALPHA_HIDDEN: "ALPHA_HIDDEN";
695
+ readonly USER_ROLE: "USER_ROLE";
696
+ readonly _EXPERIMENTAL_CUSTOM: "CUSTOM";
1085
697
  }>>;
1086
- label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1087
- id: string;
1088
- description: string;
1089
- defaultMessage: string;
1090
- }>>;
698
+ label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
1091
699
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1092
700
  value: z.ZodString;
1093
- label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1094
- id: string;
1095
- description: string;
1096
- defaultMessage: string;
1097
- }>]>;
1098
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
1099
- }, "strip", z.ZodTypeAny, {
1100
- value: string;
1101
- label: string | TranslationConfig;
1102
- conditionals?: ({
1103
- type: "SHOW";
1104
- conditional: import(".").JSONSchema;
1105
- } | {
1106
- type: "ENABLE";
1107
- conditional: import(".").JSONSchema;
1108
- })[] | undefined;
1109
- }, {
1110
- value: string;
1111
- label: string | {
1112
- id: string;
1113
- description: string;
1114
- defaultMessage: string;
1115
- };
1116
- conditionals?: ({
1117
- type: "SHOW";
1118
- conditional: import(".").JSONSchema;
1119
- } | {
1120
- type: "ENABLE";
1121
- conditional: import(".").JSONSchema;
1122
- })[] | undefined;
1123
- }>, "many">>;
1124
- searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1125
- id: string;
1126
- description: string;
1127
- defaultMessage: string;
1128
- }>>;
1129
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
1130
- validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
1131
- validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
1132
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1133
- id: string;
1134
- description: string;
1135
- defaultMessage: string;
1136
- }>;
1137
- }, "strip", z.ZodTypeAny, {
1138
- message: TranslationConfig;
1139
- validator: import(".").JSONSchema;
1140
- }, {
1141
- message: {
1142
- id: string;
1143
- description: string;
1144
- defaultMessage: string;
1145
- };
1146
- validator: import(".").JSONSchema;
1147
- }>, "many">>>;
1148
- }, {
701
+ label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>]>;
702
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
703
+ type: z.ZodLiteral<"SHOW">;
704
+ conditional: z.ZodAny;
705
+ }, z.core.$strip>, z.ZodObject<{
706
+ type: z.ZodLiteral<"ENABLE">;
707
+ conditional: z.ZodAny;
708
+ }, z.core.$strip>], "type">>>>;
709
+ }, z.core.$strip>>>;
710
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
711
+ conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
712
+ type: z.ZodLiteral<"SHOW">;
713
+ conditional: z.ZodAny;
714
+ }, z.core.$strip>, z.ZodObject<{
715
+ type: z.ZodLiteral<"ENABLE">;
716
+ conditional: z.ZodAny;
717
+ }, z.core.$strip>, z.ZodObject<{
718
+ type: z.ZodLiteral<"DISPLAY_ON_REVIEW">;
719
+ conditional: z.ZodAny;
720
+ }, z.core.$strip>], "type">>>;
721
+ validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
722
+ validator: z.ZodAny;
723
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
724
+ }, z.core.$strip>>>;
725
+ allowedLocations: z.ZodOptional<z.ZodObject<{
726
+ $jurisdiction: z.ZodUnion<[z.ZodEnum<{
727
+ administrativeArea: "administrativeArea";
728
+ location: "location";
729
+ all: "all";
730
+ }>, z.ZodObject<{
731
+ $scope: z.ZodEnum<{
732
+ "record.search": "record.search";
733
+ "record.create": "record.create";
734
+ "record.read": "record.read";
735
+ "record.declare": "record.declare";
736
+ "record.notify": "record.notify";
737
+ "record.edit": "record.edit";
738
+ "record.reject": "record.reject";
739
+ "record.archive": "record.archive";
740
+ "record.review-duplicates": "record.review-duplicates";
741
+ "record.register": "record.register";
742
+ "record.print-certified-copies": "record.print-certified-copies";
743
+ "record.request-correction": "record.request-correction";
744
+ "record.correct": "record.correct";
745
+ "record.unassign-others": "record.unassign-others";
746
+ "record.custom-action": "record.custom-action";
747
+ bypassratelimit: "bypassratelimit";
748
+ "record.reindex": "record.reindex";
749
+ "user.data-seeding": "user.data-seeding";
750
+ "integration.create": "integration.create";
751
+ "record.import": "record.import";
752
+ "config.update-all": "config.update-all";
753
+ "attachment.upload": "attachment.upload";
754
+ "profile.electronic-signature": "profile.electronic-signature";
755
+ "user.read-only-my-audit": "user.read-only-my-audit";
756
+ "performance.read": "performance.read";
757
+ "performance.read-dashboards": "performance.read-dashboards";
758
+ "performance.vital-statistics-export": "performance.vital-statistics-export";
759
+ "record.confirm-registration": "record.confirm-registration";
760
+ "record.reject-registration": "record.reject-registration";
761
+ "organisation.read-locations": "organisation.read-locations";
762
+ "user.read": "user.read";
763
+ "user.create": "user.create";
764
+ "user.edit": "user.edit";
765
+ "user.search": "user.search";
766
+ workqueue: "workqueue";
767
+ "dashboard.view": "dashboard.view";
768
+ }>;
769
+ $option: z.ZodEnum<{
770
+ role: "role";
771
+ event: "event";
772
+ placeOfEvent: "placeOfEvent";
773
+ declaredIn: "declaredIn";
774
+ declaredBy: "declaredBy";
775
+ registeredIn: "registeredIn";
776
+ registeredBy: "registeredBy";
777
+ accessLevel: "accessLevel";
778
+ ids: "ids";
779
+ }>;
780
+ }, z.core.$strip>]>;
781
+ }, z.core.$strip>>;
1149
782
  fieldId: z.ZodString;
1150
783
  fieldType: z.ZodLiteral<"field">;
1151
- }>, "strip", z.ZodTypeAny, {
1152
- config: {
1153
- type: "exact" | "range" | "fuzzy" | "within";
1154
- searchFields?: string[] | undefined;
1155
- };
1156
- fieldId: string;
1157
- fieldType: "field";
1158
- type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "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" | undefined;
1159
- options?: {
1160
- value: string;
1161
- label: string | TranslationConfig;
1162
- conditionals?: ({
1163
- type: "SHOW";
1164
- conditional: import(".").JSONSchema;
1165
- } | {
1166
- type: "ENABLE";
1167
- conditional: import(".").JSONSchema;
1168
- })[] | undefined;
1169
- }[] | undefined;
1170
- label?: TranslationConfig | undefined;
1171
- conditionals?: ({
1172
- type: "SHOW";
1173
- conditional: import(".").JSONSchema;
1174
- } | {
1175
- type: "ENABLE";
1176
- conditional: import(".").JSONSchema;
1177
- } | {
1178
- type: "DISPLAY_ON_REVIEW";
1179
- conditional: import(".").JSONSchema;
1180
- })[] | undefined;
1181
- searchCriteriaLabelPrefix?: TranslationConfig | undefined;
1182
- validations?: {
1183
- message: TranslationConfig;
1184
- validator: import(".").JSONSchema;
1185
- }[] | undefined;
1186
- }, {
1187
- config: {
1188
- type: "exact" | "range" | "fuzzy" | "within";
1189
- searchFields?: string[] | undefined;
1190
- };
1191
- fieldId: string;
1192
- fieldType: "field";
1193
- type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "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" | undefined;
1194
- options?: {
1195
- value: string;
1196
- label: string | {
1197
- id: string;
1198
- description: string;
1199
- defaultMessage: string;
1200
- };
1201
- conditionals?: ({
1202
- type: "SHOW";
1203
- conditional: import(".").JSONSchema;
1204
- } | {
1205
- type: "ENABLE";
1206
- conditional: import(".").JSONSchema;
1207
- })[] | undefined;
1208
- }[] | undefined;
1209
- label?: {
1210
- id: string;
1211
- description: string;
1212
- defaultMessage: string;
1213
- } | undefined;
1214
- conditionals?: ({
1215
- type: "SHOW";
1216
- conditional: import(".").JSONSchema;
1217
- } | {
1218
- type: "ENABLE";
1219
- conditional: import(".").JSONSchema;
1220
- } | {
1221
- type: "DISPLAY_ON_REVIEW";
1222
- conditional: import(".").JSONSchema;
1223
- })[] | undefined;
1224
- searchCriteriaLabelPrefix?: {
1225
- id: string;
1226
- description: string;
1227
- defaultMessage: string;
1228
- } | undefined;
1229
- validations?: {
1230
- message: {
1231
- id: string;
1232
- description: string;
1233
- defaultMessage: string;
1234
- };
1235
- validator: import(".").JSONSchema;
1236
- }[] | undefined;
1237
- }>, z.ZodObject<z.objectUtil.extendShape<{
784
+ }, z.core.$strip>, z.ZodObject<{
1238
785
  config: z.ZodObject<{
1239
- type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
1240
- searchFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1241
- }, "strip", z.ZodTypeAny, {
1242
- type: "exact" | "range" | "fuzzy" | "within";
1243
- searchFields?: string[] | undefined;
1244
- }, {
1245
- type: "exact" | "range" | "fuzzy" | "within";
1246
- searchFields?: string[] | undefined;
1247
- }>;
1248
- type: z.ZodOptional<z.ZodNativeEnum<{
786
+ type: z.ZodEnum<{
787
+ exact: "exact";
788
+ fuzzy: "fuzzy";
789
+ range: "range";
790
+ within: "within";
791
+ }>;
792
+ searchFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
793
+ }, z.core.$strip>;
794
+ type: z.ZodOptional<z.ZodEnum<{
1249
795
  readonly NAME: "NAME";
1250
796
  readonly PHONE: "PHONE";
1251
797
  readonly ID: "ID";
@@ -1260,7 +806,9 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1260
806
  readonly DATE_RANGE: "DATE_RANGE";
1261
807
  readonly SELECT_DATE_RANGE: "SELECT_DATE_RANGE";
1262
808
  readonly TIME: "TIME";
809
+ readonly IMAGE_VIEW: "IMAGE_VIEW";
1263
810
  readonly PARAGRAPH: "PARAGRAPH";
811
+ readonly HEADING: "HEADING";
1264
812
  readonly PAGE_HEADER: "PAGE_HEADER";
1265
813
  readonly RADIO_GROUP: "RADIO_GROUP";
1266
814
  readonly FIELD_GROUP: "FIELD_GROUP";
@@ -1278,6 +826,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1278
826
  readonly SIGNATURE: "SIGNATURE";
1279
827
  readonly DATA: "DATA";
1280
828
  readonly BUTTON: "BUTTON";
829
+ readonly AUTOCOMPLETE: "AUTOCOMPLETE";
1281
830
  readonly SEARCH: "SEARCH";
1282
831
  readonly ALPHA_PRINT_BUTTON: "ALPHA_PRINT_BUTTON";
1283
832
  readonly HTTP: "HTTP";
@@ -1287,514 +836,105 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1287
836
  readonly QR_READER: "QR_READER";
1288
837
  readonly ID_READER: "ID_READER";
1289
838
  readonly LOADER: "LOADER";
839
+ readonly ALPHA_HIDDEN: "ALPHA_HIDDEN";
840
+ readonly USER_ROLE: "USER_ROLE";
841
+ readonly _EXPERIMENTAL_CUSTOM: "CUSTOM";
1290
842
  }>>;
1291
- label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1292
- id: string;
1293
- description: string;
1294
- defaultMessage: string;
1295
- }>>;
843
+ label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
1296
844
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1297
845
  value: z.ZodString;
1298
- label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1299
- id: string;
1300
- description: string;
1301
- defaultMessage: string;
1302
- }>]>;
1303
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
1304
- }, "strip", z.ZodTypeAny, {
1305
- value: string;
1306
- label: string | TranslationConfig;
1307
- conditionals?: ({
1308
- type: "SHOW";
1309
- conditional: import(".").JSONSchema;
1310
- } | {
1311
- type: "ENABLE";
1312
- conditional: import(".").JSONSchema;
1313
- })[] | undefined;
1314
- }, {
1315
- value: string;
1316
- label: string | {
1317
- id: string;
1318
- description: string;
1319
- defaultMessage: string;
1320
- };
1321
- conditionals?: ({
1322
- type: "SHOW";
1323
- conditional: import(".").JSONSchema;
1324
- } | {
1325
- type: "ENABLE";
1326
- conditional: import(".").JSONSchema;
1327
- })[] | undefined;
1328
- }>, "many">>;
1329
- searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1330
- id: string;
1331
- description: string;
1332
- defaultMessage: string;
1333
- }>>;
1334
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
1335
- validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
1336
- validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
1337
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1338
- id: string;
1339
- description: string;
1340
- defaultMessage: string;
1341
- }>;
1342
- }, "strip", z.ZodTypeAny, {
1343
- message: TranslationConfig;
1344
- validator: import(".").JSONSchema;
1345
- }, {
1346
- message: {
1347
- id: string;
1348
- description: string;
1349
- defaultMessage: string;
1350
- };
1351
- validator: import(".").JSONSchema;
1352
- }>, "many">>>;
1353
- }, {
1354
- fieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.legalStatuses.REGISTERED.registrationNumber", "event.updatedAt"]>;
846
+ label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>]>;
847
+ conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
848
+ type: z.ZodLiteral<"SHOW">;
849
+ conditional: z.ZodAny;
850
+ }, z.core.$strip>, z.ZodObject<{
851
+ type: z.ZodLiteral<"ENABLE">;
852
+ conditional: z.ZodAny;
853
+ }, z.core.$strip>], "type">>>>;
854
+ }, z.core.$strip>>>;
855
+ searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
856
+ conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
857
+ type: z.ZodLiteral<"SHOW">;
858
+ conditional: z.ZodAny;
859
+ }, z.core.$strip>, z.ZodObject<{
860
+ type: z.ZodLiteral<"ENABLE">;
861
+ conditional: z.ZodAny;
862
+ }, z.core.$strip>, z.ZodObject<{
863
+ type: z.ZodLiteral<"DISPLAY_ON_REVIEW">;
864
+ conditional: z.ZodAny;
865
+ }, z.core.$strip>], "type">>>;
866
+ validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
867
+ validator: z.ZodAny;
868
+ message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
869
+ }, z.core.$strip>>>;
870
+ allowedLocations: z.ZodOptional<z.ZodObject<{
871
+ $jurisdiction: z.ZodUnion<[z.ZodEnum<{
872
+ administrativeArea: "administrativeArea";
873
+ location: "location";
874
+ all: "all";
875
+ }>, z.ZodObject<{
876
+ $scope: z.ZodEnum<{
877
+ "record.search": "record.search";
878
+ "record.create": "record.create";
879
+ "record.read": "record.read";
880
+ "record.declare": "record.declare";
881
+ "record.notify": "record.notify";
882
+ "record.edit": "record.edit";
883
+ "record.reject": "record.reject";
884
+ "record.archive": "record.archive";
885
+ "record.review-duplicates": "record.review-duplicates";
886
+ "record.register": "record.register";
887
+ "record.print-certified-copies": "record.print-certified-copies";
888
+ "record.request-correction": "record.request-correction";
889
+ "record.correct": "record.correct";
890
+ "record.unassign-others": "record.unassign-others";
891
+ "record.custom-action": "record.custom-action";
892
+ bypassratelimit: "bypassratelimit";
893
+ "record.reindex": "record.reindex";
894
+ "user.data-seeding": "user.data-seeding";
895
+ "integration.create": "integration.create";
896
+ "record.import": "record.import";
897
+ "config.update-all": "config.update-all";
898
+ "attachment.upload": "attachment.upload";
899
+ "profile.electronic-signature": "profile.electronic-signature";
900
+ "user.read-only-my-audit": "user.read-only-my-audit";
901
+ "performance.read": "performance.read";
902
+ "performance.read-dashboards": "performance.read-dashboards";
903
+ "performance.vital-statistics-export": "performance.vital-statistics-export";
904
+ "record.confirm-registration": "record.confirm-registration";
905
+ "record.reject-registration": "record.reject-registration";
906
+ "organisation.read-locations": "organisation.read-locations";
907
+ "user.read": "user.read";
908
+ "user.create": "user.create";
909
+ "user.edit": "user.edit";
910
+ "user.search": "user.search";
911
+ workqueue: "workqueue";
912
+ "dashboard.view": "dashboard.view";
913
+ }>;
914
+ $option: z.ZodEnum<{
915
+ role: "role";
916
+ event: "event";
917
+ placeOfEvent: "placeOfEvent";
918
+ declaredIn: "declaredIn";
919
+ declaredBy: "declaredBy";
920
+ registeredIn: "registeredIn";
921
+ registeredBy: "registeredBy";
922
+ accessLevel: "accessLevel";
923
+ ids: "ids";
924
+ }>;
925
+ }, z.core.$strip>]>;
926
+ }, z.core.$strip>>;
927
+ fieldId: z.ZodEnum<{
928
+ "event.updatedAt": "event.updatedAt";
929
+ "event.status": "event.status";
930
+ "event.trackingId": "event.trackingId";
931
+ "event.legalStatuses.REGISTERED.acceptedAt": "event.legalStatuses.REGISTERED.acceptedAt";
932
+ "event.legalStatuses.REGISTERED.createdAtLocation": "event.legalStatuses.REGISTERED.createdAtLocation";
933
+ "event.legalStatuses.REGISTERED.registrationNumber": "event.legalStatuses.REGISTERED.registrationNumber";
934
+ }>;
1355
935
  fieldType: z.ZodLiteral<"event">;
1356
- }>, "strip", z.ZodTypeAny, {
1357
- config: {
1358
- type: "exact" | "range" | "fuzzy" | "within";
1359
- searchFields?: string[] | undefined;
1360
- };
1361
- fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber" | "event.updatedAt";
1362
- fieldType: "event";
1363
- type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "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" | undefined;
1364
- options?: {
1365
- value: string;
1366
- label: string | TranslationConfig;
1367
- conditionals?: ({
1368
- type: "SHOW";
1369
- conditional: import(".").JSONSchema;
1370
- } | {
1371
- type: "ENABLE";
1372
- conditional: import(".").JSONSchema;
1373
- })[] | undefined;
1374
- }[] | undefined;
1375
- label?: TranslationConfig | undefined;
1376
- conditionals?: ({
1377
- type: "SHOW";
1378
- conditional: import(".").JSONSchema;
1379
- } | {
1380
- type: "ENABLE";
1381
- conditional: import(".").JSONSchema;
1382
- } | {
1383
- type: "DISPLAY_ON_REVIEW";
1384
- conditional: import(".").JSONSchema;
1385
- })[] | undefined;
1386
- searchCriteriaLabelPrefix?: TranslationConfig | undefined;
1387
- validations?: {
1388
- message: TranslationConfig;
1389
- validator: import(".").JSONSchema;
1390
- }[] | undefined;
1391
- }, {
1392
- config: {
1393
- type: "exact" | "range" | "fuzzy" | "within";
1394
- searchFields?: string[] | undefined;
1395
- };
1396
- fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber" | "event.updatedAt";
1397
- fieldType: "event";
1398
- type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "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" | undefined;
1399
- options?: {
1400
- value: string;
1401
- label: string | {
1402
- id: string;
1403
- description: string;
1404
- defaultMessage: string;
1405
- };
1406
- conditionals?: ({
1407
- type: "SHOW";
1408
- conditional: import(".").JSONSchema;
1409
- } | {
1410
- type: "ENABLE";
1411
- conditional: import(".").JSONSchema;
1412
- })[] | undefined;
1413
- }[] | undefined;
1414
- label?: {
1415
- id: string;
1416
- description: string;
1417
- defaultMessage: string;
1418
- } | undefined;
1419
- conditionals?: ({
1420
- type: "SHOW";
1421
- conditional: import(".").JSONSchema;
1422
- } | {
1423
- type: "ENABLE";
1424
- conditional: import(".").JSONSchema;
1425
- } | {
1426
- type: "DISPLAY_ON_REVIEW";
1427
- conditional: import(".").JSONSchema;
1428
- })[] | undefined;
1429
- searchCriteriaLabelPrefix?: {
1430
- id: string;
1431
- description: string;
1432
- defaultMessage: string;
1433
- } | undefined;
1434
- validations?: {
1435
- message: {
1436
- id: string;
1437
- description: string;
1438
- defaultMessage: string;
1439
- };
1440
- validator: import(".").JSONSchema;
1441
- }[] | undefined;
1442
- }>]>, {
1443
- config: {
1444
- type: "exact" | "range" | "fuzzy" | "within";
1445
- searchFields?: string[] | undefined;
1446
- };
1447
- fieldId: string;
1448
- fieldType: "field";
1449
- type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "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" | undefined;
1450
- options?: {
1451
- value: string;
1452
- label: string | TranslationConfig;
1453
- conditionals?: ({
1454
- type: "SHOW";
1455
- conditional: import(".").JSONSchema;
1456
- } | {
1457
- type: "ENABLE";
1458
- conditional: import(".").JSONSchema;
1459
- })[] | undefined;
1460
- }[] | undefined;
1461
- label?: TranslationConfig | undefined;
1462
- conditionals?: ({
1463
- type: "SHOW";
1464
- conditional: import(".").JSONSchema;
1465
- } | {
1466
- type: "ENABLE";
1467
- conditional: import(".").JSONSchema;
1468
- } | {
1469
- type: "DISPLAY_ON_REVIEW";
1470
- conditional: import(".").JSONSchema;
1471
- })[] | undefined;
1472
- searchCriteriaLabelPrefix?: TranslationConfig | undefined;
1473
- validations?: {
1474
- message: TranslationConfig;
1475
- validator: import(".").JSONSchema;
1476
- }[] | undefined;
1477
- } | {
1478
- config: {
1479
- type: "exact" | "range" | "fuzzy" | "within";
1480
- searchFields?: string[] | undefined;
1481
- };
1482
- fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber" | "event.updatedAt";
1483
- fieldType: "event";
1484
- type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "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" | undefined;
1485
- options?: {
1486
- value: string;
1487
- label: string | TranslationConfig;
1488
- conditionals?: ({
1489
- type: "SHOW";
1490
- conditional: import(".").JSONSchema;
1491
- } | {
1492
- type: "ENABLE";
1493
- conditional: import(".").JSONSchema;
1494
- })[] | undefined;
1495
- }[] | undefined;
1496
- label?: TranslationConfig | undefined;
1497
- conditionals?: ({
1498
- type: "SHOW";
1499
- conditional: import(".").JSONSchema;
1500
- } | {
1501
- type: "ENABLE";
1502
- conditional: import(".").JSONSchema;
1503
- } | {
1504
- type: "DISPLAY_ON_REVIEW";
1505
- conditional: import(".").JSONSchema;
1506
- })[] | undefined;
1507
- searchCriteriaLabelPrefix?: TranslationConfig | undefined;
1508
- validations?: {
1509
- message: TranslationConfig;
1510
- validator: import(".").JSONSchema;
1511
- }[] | undefined;
1512
- }, {
1513
- config: {
1514
- type: "exact" | "range" | "fuzzy" | "within";
1515
- searchFields?: string[] | undefined;
1516
- };
1517
- fieldId: string;
1518
- fieldType: "field";
1519
- type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "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" | undefined;
1520
- options?: {
1521
- value: string;
1522
- label: string | {
1523
- id: string;
1524
- description: string;
1525
- defaultMessage: string;
1526
- };
1527
- conditionals?: ({
1528
- type: "SHOW";
1529
- conditional: import(".").JSONSchema;
1530
- } | {
1531
- type: "ENABLE";
1532
- conditional: import(".").JSONSchema;
1533
- })[] | undefined;
1534
- }[] | undefined;
1535
- label?: {
1536
- id: string;
1537
- description: string;
1538
- defaultMessage: string;
1539
- } | undefined;
1540
- conditionals?: ({
1541
- type: "SHOW";
1542
- conditional: import(".").JSONSchema;
1543
- } | {
1544
- type: "ENABLE";
1545
- conditional: import(".").JSONSchema;
1546
- } | {
1547
- type: "DISPLAY_ON_REVIEW";
1548
- conditional: import(".").JSONSchema;
1549
- })[] | undefined;
1550
- searchCriteriaLabelPrefix?: {
1551
- id: string;
1552
- description: string;
1553
- defaultMessage: string;
1554
- } | undefined;
1555
- validations?: {
1556
- message: {
1557
- id: string;
1558
- description: string;
1559
- defaultMessage: string;
1560
- };
1561
- validator: import(".").JSONSchema;
1562
- }[] | undefined;
1563
- } | {
1564
- config: {
1565
- type: "exact" | "range" | "fuzzy" | "within";
1566
- searchFields?: string[] | undefined;
1567
- };
1568
- fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber" | "event.updatedAt";
1569
- fieldType: "event";
1570
- type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "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" | undefined;
1571
- options?: {
1572
- value: string;
1573
- label: string | {
1574
- id: string;
1575
- description: string;
1576
- defaultMessage: string;
1577
- };
1578
- conditionals?: ({
1579
- type: "SHOW";
1580
- conditional: import(".").JSONSchema;
1581
- } | {
1582
- type: "ENABLE";
1583
- conditional: import(".").JSONSchema;
1584
- })[] | undefined;
1585
- }[] | undefined;
1586
- label?: {
1587
- id: string;
1588
- description: string;
1589
- defaultMessage: string;
1590
- } | undefined;
1591
- conditionals?: ({
1592
- type: "SHOW";
1593
- conditional: import(".").JSONSchema;
1594
- } | {
1595
- type: "ENABLE";
1596
- conditional: import(".").JSONSchema;
1597
- } | {
1598
- type: "DISPLAY_ON_REVIEW";
1599
- conditional: import(".").JSONSchema;
1600
- })[] | undefined;
1601
- searchCriteriaLabelPrefix?: {
1602
- id: string;
1603
- description: string;
1604
- defaultMessage: string;
1605
- } | undefined;
1606
- validations?: {
1607
- message: {
1608
- id: string;
1609
- description: string;
1610
- defaultMessage: string;
1611
- };
1612
- validator: import(".").JSONSchema;
1613
- }[] | undefined;
1614
- }>, "many">;
1615
- }, "strip", z.ZodTypeAny, {
1616
- title: TranslationConfig;
1617
- fields: ({
1618
- config: {
1619
- type: "exact" | "range" | "fuzzy" | "within";
1620
- searchFields?: string[] | undefined;
1621
- };
1622
- fieldId: string;
1623
- fieldType: "field";
1624
- type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "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" | undefined;
1625
- options?: {
1626
- value: string;
1627
- label: string | TranslationConfig;
1628
- conditionals?: ({
1629
- type: "SHOW";
1630
- conditional: import(".").JSONSchema;
1631
- } | {
1632
- type: "ENABLE";
1633
- conditional: import(".").JSONSchema;
1634
- })[] | undefined;
1635
- }[] | undefined;
1636
- label?: TranslationConfig | undefined;
1637
- conditionals?: ({
1638
- type: "SHOW";
1639
- conditional: import(".").JSONSchema;
1640
- } | {
1641
- type: "ENABLE";
1642
- conditional: import(".").JSONSchema;
1643
- } | {
1644
- type: "DISPLAY_ON_REVIEW";
1645
- conditional: import(".").JSONSchema;
1646
- })[] | undefined;
1647
- searchCriteriaLabelPrefix?: TranslationConfig | undefined;
1648
- validations?: {
1649
- message: TranslationConfig;
1650
- validator: import(".").JSONSchema;
1651
- }[] | undefined;
1652
- } | {
1653
- config: {
1654
- type: "exact" | "range" | "fuzzy" | "within";
1655
- searchFields?: string[] | undefined;
1656
- };
1657
- fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber" | "event.updatedAt";
1658
- fieldType: "event";
1659
- type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "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" | undefined;
1660
- options?: {
1661
- value: string;
1662
- label: string | TranslationConfig;
1663
- conditionals?: ({
1664
- type: "SHOW";
1665
- conditional: import(".").JSONSchema;
1666
- } | {
1667
- type: "ENABLE";
1668
- conditional: import(".").JSONSchema;
1669
- })[] | undefined;
1670
- }[] | undefined;
1671
- label?: TranslationConfig | undefined;
1672
- conditionals?: ({
1673
- type: "SHOW";
1674
- conditional: import(".").JSONSchema;
1675
- } | {
1676
- type: "ENABLE";
1677
- conditional: import(".").JSONSchema;
1678
- } | {
1679
- type: "DISPLAY_ON_REVIEW";
1680
- conditional: import(".").JSONSchema;
1681
- })[] | undefined;
1682
- searchCriteriaLabelPrefix?: TranslationConfig | undefined;
1683
- validations?: {
1684
- message: TranslationConfig;
1685
- validator: import(".").JSONSchema;
1686
- }[] | undefined;
1687
- })[];
1688
- }, {
1689
- title: {
1690
- id: string;
1691
- description: string;
1692
- defaultMessage: string;
1693
- };
1694
- fields: ({
1695
- config: {
1696
- type: "exact" | "range" | "fuzzy" | "within";
1697
- searchFields?: string[] | undefined;
1698
- };
1699
- fieldId: string;
1700
- fieldType: "field";
1701
- type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "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" | undefined;
1702
- options?: {
1703
- value: string;
1704
- label: string | {
1705
- id: string;
1706
- description: string;
1707
- defaultMessage: string;
1708
- };
1709
- conditionals?: ({
1710
- type: "SHOW";
1711
- conditional: import(".").JSONSchema;
1712
- } | {
1713
- type: "ENABLE";
1714
- conditional: import(".").JSONSchema;
1715
- })[] | undefined;
1716
- }[] | undefined;
1717
- label?: {
1718
- id: string;
1719
- description: string;
1720
- defaultMessage: string;
1721
- } | undefined;
1722
- conditionals?: ({
1723
- type: "SHOW";
1724
- conditional: import(".").JSONSchema;
1725
- } | {
1726
- type: "ENABLE";
1727
- conditional: import(".").JSONSchema;
1728
- } | {
1729
- type: "DISPLAY_ON_REVIEW";
1730
- conditional: import(".").JSONSchema;
1731
- })[] | undefined;
1732
- searchCriteriaLabelPrefix?: {
1733
- id: string;
1734
- description: string;
1735
- defaultMessage: string;
1736
- } | undefined;
1737
- validations?: {
1738
- message: {
1739
- id: string;
1740
- description: string;
1741
- defaultMessage: string;
1742
- };
1743
- validator: import(".").JSONSchema;
1744
- }[] | undefined;
1745
- } | {
1746
- config: {
1747
- type: "exact" | "range" | "fuzzy" | "within";
1748
- searchFields?: string[] | undefined;
1749
- };
1750
- fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber" | "event.updatedAt";
1751
- fieldType: "event";
1752
- type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "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" | undefined;
1753
- options?: {
1754
- value: string;
1755
- label: string | {
1756
- id: string;
1757
- description: string;
1758
- defaultMessage: string;
1759
- };
1760
- conditionals?: ({
1761
- type: "SHOW";
1762
- conditional: import(".").JSONSchema;
1763
- } | {
1764
- type: "ENABLE";
1765
- conditional: import(".").JSONSchema;
1766
- })[] | undefined;
1767
- }[] | undefined;
1768
- label?: {
1769
- id: string;
1770
- description: string;
1771
- defaultMessage: string;
1772
- } | undefined;
1773
- conditionals?: ({
1774
- type: "SHOW";
1775
- conditional: import(".").JSONSchema;
1776
- } | {
1777
- type: "ENABLE";
1778
- conditional: import(".").JSONSchema;
1779
- } | {
1780
- type: "DISPLAY_ON_REVIEW";
1781
- conditional: import(".").JSONSchema;
1782
- })[] | undefined;
1783
- searchCriteriaLabelPrefix?: {
1784
- id: string;
1785
- description: string;
1786
- defaultMessage: string;
1787
- } | undefined;
1788
- validations?: {
1789
- message: {
1790
- id: string;
1791
- description: string;
1792
- defaultMessage: string;
1793
- };
1794
- validator: import(".").JSONSchema;
1795
- }[] | undefined;
1796
- })[];
1797
- }>;
936
+ }, z.core.$strip>], "fieldType">>;
937
+ }, z.core.$strip>;
1798
938
  export type AdvancedSearchConfig = z.infer<typeof AdvancedSearchConfig>;
1799
939
  export type AdvancedSearchConfigWithFieldsResolved = Omit<AdvancedSearchConfig, 'fields'> & {
1800
940
  fields: FieldConfig[];