@opencrvs/toolkit 1.9.13-rc.fc5374d → 2.0.0-rc.e0918cb

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 (130) hide show
  1. package/build.sh +13 -0
  2. package/dist/api/index.d.ts.map +1 -1
  3. package/dist/application-config/index.d.ts +2 -0
  4. package/dist/application-config/index.d.ts.map +1 -0
  5. package/dist/application-config/index.js +2128 -0
  6. package/dist/cli.d.ts +2 -0
  7. package/dist/cli.d.ts.map +1 -0
  8. package/dist/cli.js +3633 -0
  9. package/dist/commons/api/router.d.ts +3438 -2300
  10. package/dist/commons/application-config/index.d.ts +84 -0
  11. package/dist/commons/conditionals/conditionals.d.ts +27 -3
  12. package/dist/commons/conditionals/validate.d.ts +13 -3
  13. package/dist/commons/events/ActionConfig.d.ts +415 -1555
  14. package/dist/commons/events/ActionDocument.d.ts +888 -1941
  15. package/dist/commons/events/ActionInput.d.ts +277 -1073
  16. package/dist/commons/events/ActionType.d.ts +91 -11
  17. package/dist/commons/events/AdvancedSearchConfig.d.ts +294 -1496
  18. package/dist/commons/events/AuditLog.d.ts +405 -0
  19. package/dist/commons/events/CompositeFieldValue.d.ts +30 -190
  20. package/dist/commons/events/Conditional.d.ts +26 -38
  21. package/dist/commons/events/Constants.d.ts +1 -1
  22. package/dist/commons/events/CountryConfigQueryInput.d.ts +1592 -4471
  23. package/dist/commons/events/DeduplicationConfig.d.ts +15 -171
  24. package/dist/commons/events/Draft.d.ts +72 -107
  25. package/dist/commons/events/DynamicFieldValue.d.ts +12 -78
  26. package/dist/commons/events/EventConfig.d.ts +37 -2420
  27. package/dist/commons/events/EventConfigInput.d.ts +0 -3
  28. package/dist/commons/events/EventDocument.d.ts +354 -1366
  29. package/dist/commons/events/EventIndex.d.ts +212 -1010
  30. package/dist/commons/events/EventInput.d.ts +3 -8
  31. package/dist/commons/events/EventMetadata.d.ts +130 -357
  32. package/dist/commons/events/FieldConfig.d.ts +2892 -12892
  33. package/dist/commons/events/FieldType.d.ts +26 -4
  34. package/dist/commons/events/FieldTypeMapping.d.ts +314 -906
  35. package/dist/commons/events/FieldValue.d.ts +149 -527
  36. package/dist/commons/events/FileUtils.d.ts +2 -2
  37. package/dist/commons/events/Flag.d.ts +67 -0
  38. package/dist/commons/events/FormConfig.d.ts +54 -721
  39. package/dist/commons/events/PageConfig.d.ts +58 -320
  40. package/dist/commons/events/PlainDate.d.ts +1 -1
  41. package/dist/commons/events/SummaryConfig.d.ts +14 -161
  42. package/dist/commons/events/TemplateConfig.d.ts +2 -3
  43. package/dist/commons/events/TranslationConfig.d.ts +2 -2
  44. package/dist/commons/events/WorkqueueColumnConfig.d.ts +74 -37
  45. package/dist/commons/events/WorkqueueConfig.d.ts +2208 -7553
  46. package/dist/commons/events/deduplication.d.ts +3 -3
  47. package/dist/commons/events/defineConfig.d.ts +2 -247
  48. package/dist/commons/events/eventConfigValidation.d.ts +8 -0
  49. package/dist/commons/events/index.d.ts +3 -0
  50. package/dist/commons/events/locations.d.ts +57 -20
  51. package/dist/commons/events/scopes.d.ts +36 -35
  52. package/dist/commons/events/state/availableActions.d.ts +7 -2
  53. package/dist/commons/events/state/flags.d.ts +21 -3
  54. package/dist/commons/events/state/index.d.ts +30 -27
  55. package/dist/commons/events/state/utils.d.ts +190 -172
  56. package/dist/commons/events/test.utils.d.ts +52 -11
  57. package/dist/commons/events/transactions.d.ts +1 -1
  58. package/dist/commons/events/utils.d.ts +373 -273
  59. package/dist/commons/notification/UserNotifications.d.ts +61 -637
  60. package/dist/conditionals/index.d.ts.map +1 -1
  61. package/dist/conditionals/index.js +302 -14
  62. package/dist/events/deduplication.d.ts +3 -3
  63. package/dist/events/index.js +2860 -2115
  64. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts +3 -0
  65. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +1 -0
  66. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +405 -0
  67. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +3 -0
  68. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -0
  69. package/dist/migrations/v2.0/checkout-upstream-files.js +143 -0
  70. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts +2 -0
  71. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -0
  72. package/dist/migrations/v2.0/convert-config-files-to-ts.js +829 -0
  73. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts +3 -0
  74. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +1 -0
  75. package/dist/migrations/v2.0/convert-paragraph-to-heading.js +159 -0
  76. package/dist/migrations/v2.0/create-events-index.d.ts +3 -0
  77. package/dist/migrations/v2.0/create-events-index.d.ts.map +1 -0
  78. package/dist/migrations/v2.0/create-events-index.js +326 -0
  79. package/dist/migrations/v2.0/index.d.ts +7 -0
  80. package/dist/migrations/v2.0/index.d.ts.map +1 -0
  81. package/dist/migrations/v2.0/index.js +3572 -0
  82. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts +3 -0
  83. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +1 -0
  84. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +344 -0
  85. package/dist/migrations/v2.0/migrate-scopes.d.ts +3 -0
  86. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -0
  87. package/dist/migrations/v2.0/migrate-scopes.js +282 -0
  88. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts +3 -0
  89. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +1 -0
  90. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +268 -0
  91. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts +3 -0
  92. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +1 -0
  93. package/dist/migrations/v2.0/migrate-workqueue-configs.js +237 -0
  94. package/dist/migrations/v2.0/remove-delete-actions.d.ts +3 -0
  95. package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +1 -0
  96. package/dist/migrations/v2.0/remove-delete-actions.js +157 -0
  97. package/dist/migrations/v2.0/remove-demo-scope.d.ts +3 -0
  98. package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +1 -0
  99. package/dist/migrations/v2.0/remove-demo-scope.js +75 -0
  100. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts +3 -0
  101. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +1 -0
  102. package/dist/migrations/v2.0/remove-deprecated-imports.js +97 -0
  103. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts +3 -0
  104. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +1 -0
  105. package/dist/migrations/v2.0/remove-hearth-migrations.js +78 -0
  106. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts +3 -0
  107. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +1 -0
  108. package/dist/migrations/v2.0/remove-pending-certification-flag.js +110 -0
  109. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts +3 -0
  110. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +1 -0
  111. package/dist/migrations/v2.0/remove-review-from-register-action.js +164 -0
  112. package/dist/migrations/v2.0/rename-api-paths.d.ts +3 -0
  113. package/dist/migrations/v2.0/rename-api-paths.d.ts.map +1 -0
  114. package/dist/migrations/v2.0/rename-api-paths.js +188 -0
  115. package/dist/migrations/v2.0/rename-location-parent-id.d.ts +3 -0
  116. package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +1 -0
  117. package/dist/migrations/v2.0/rename-location-parent-id.js +181 -0
  118. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts +3 -0
  119. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +1 -0
  120. package/dist/migrations/v2.0/simplify-analytics-precalculations.js +196 -0
  121. package/dist/notification/index.d.ts.map +1 -1
  122. package/dist/notification/index.js +2076 -1767
  123. package/dist/scopes/index.d.ts +640 -353
  124. package/dist/scopes/index.d.ts.map +1 -1
  125. package/dist/scopes/index.js +340 -300
  126. package/opencrvs-toolkit-2.0.0-rc.e0918cb.tgz +0 -0
  127. package/package.json +18 -8
  128. package/tsconfig.json +12 -2
  129. package/tsconfig.tsbuildinfo +1 -1
  130. package/dist/commons/events/CreatedAtLocation.d.ts +0 -2
@@ -1,2427 +1,44 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod/v4';
2
+ import { ActionConfig } from './ActionConfig';
3
+ import { SummaryConfig } from './SummaryConfig';
2
4
  import { TranslationConfig } from './TranslationConfig';
5
+ import { AdvancedSearchConfig } from './AdvancedSearchConfig';
6
+ import { DeclarationFormConfig, DeclarationFormConfigInput } from './FormConfig';
7
+ import { FieldReference } from './FieldConfig';
8
+ import { FlagConfig } from './Flag';
3
9
  export declare const EventFieldReference: z.ZodObject<{
4
- $$event: z.ZodEnum<["createdAt", "updatedAt", "legalStatuses.DECLARED.createdAt", "legalStatuses.DECLARED.acceptedAt", "legalStatuses.REGISTERED.createdAt", "legalStatuses.REGISTERED.acceptedAt"]>;
5
- }, "strip", z.ZodTypeAny, {
6
- $$event: "createdAt" | "updatedAt" | "legalStatuses.DECLARED.createdAt" | "legalStatuses.DECLARED.acceptedAt" | "legalStatuses.REGISTERED.createdAt" | "legalStatuses.REGISTERED.acceptedAt";
7
- }, {
8
- $$event: "createdAt" | "updatedAt" | "legalStatuses.DECLARED.createdAt" | "legalStatuses.DECLARED.acceptedAt" | "legalStatuses.REGISTERED.createdAt" | "legalStatuses.REGISTERED.acceptedAt";
9
- }>;
10
- /**
11
- * Description of event features defined by the country. Includes configuration for process steps and forms involved.
12
- *
13
- * `Event.parse(config)` will throw an error if the configuration is invalid.
14
- */
15
- export declare const EventConfig: z.ZodEffects<z.ZodObject<{
16
- id: z.ZodString;
17
- dateOfEvent: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
18
- $$field: z.ZodEffects<z.ZodString, string, string>;
19
- $$subfield: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
20
- }, "strip", z.ZodTypeAny, {
21
- $$field: string;
22
- $$subfield: string[];
23
- }, {
24
- $$field: string;
25
- $$subfield?: string[] | undefined;
26
- }>, z.ZodObject<{
27
- $$event: z.ZodEnum<["createdAt", "updatedAt", "legalStatuses.DECLARED.createdAt", "legalStatuses.DECLARED.acceptedAt", "legalStatuses.REGISTERED.createdAt", "legalStatuses.REGISTERED.acceptedAt"]>;
28
- }, "strip", z.ZodTypeAny, {
29
- $$event: "createdAt" | "updatedAt" | "legalStatuses.DECLARED.createdAt" | "legalStatuses.DECLARED.acceptedAt" | "legalStatuses.REGISTERED.createdAt" | "legalStatuses.REGISTERED.acceptedAt";
30
- }, {
31
- $$event: "createdAt" | "updatedAt" | "legalStatuses.DECLARED.createdAt" | "legalStatuses.DECLARED.acceptedAt" | "legalStatuses.REGISTERED.createdAt" | "legalStatuses.REGISTERED.acceptedAt";
32
- }>]>>;
33
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
34
- id: string;
35
- description: string;
36
- defaultMessage: string;
10
+ $$event: z.ZodEnum<{
11
+ updatedAt: "updatedAt";
12
+ createdAt: "createdAt";
13
+ "legalStatuses.DECLARED.createdAt": "legalStatuses.DECLARED.createdAt";
14
+ "legalStatuses.DECLARED.acceptedAt": "legalStatuses.DECLARED.acceptedAt";
15
+ "legalStatuses.REGISTERED.createdAt": "legalStatuses.REGISTERED.createdAt";
16
+ "legalStatuses.REGISTERED.acceptedAt": "legalStatuses.REGISTERED.acceptedAt";
37
17
  }>;
38
- fallbackTitle: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
39
- id: string;
40
- description: string;
41
- defaultMessage: string;
42
- }>>;
43
- summary: z.ZodObject<{
44
- fields: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
45
- emptyValueMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
46
- id: string;
47
- description: string;
48
- defaultMessage: string;
49
- }>>;
50
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
51
- type: z.ZodLiteral<"SHOW">;
52
- conditional: z.ZodType<import("../conditionals/conditionals").JSONSchema, z.ZodTypeDef, import("../conditionals/conditionals").JSONSchema>;
53
- }, "strip", z.ZodTypeAny, {
54
- type: "SHOW";
55
- conditional: import("../conditionals/conditionals").JSONSchema;
56
- }, {
57
- type: "SHOW";
58
- conditional: import("../conditionals/conditionals").JSONSchema;
59
- }>, "many">>>;
60
- }, {
61
- id: z.ZodString;
62
- value: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
63
- id: string;
64
- description: string;
65
- defaultMessage: string;
66
- }>;
67
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
68
- id: string;
69
- description: string;
70
- defaultMessage: string;
71
- }>;
72
- }>, "strip", z.ZodTypeAny, {
73
- id: string;
74
- value: TranslationConfig;
75
- label: TranslationConfig;
76
- conditionals?: {
77
- type: "SHOW";
78
- conditional: import("../conditionals/conditionals").JSONSchema;
79
- }[] | undefined;
80
- emptyValueMessage?: TranslationConfig | undefined;
81
- }, {
82
- id: string;
83
- value: {
84
- id: string;
85
- description: string;
86
- defaultMessage: string;
87
- };
88
- label: {
89
- id: string;
90
- description: string;
91
- defaultMessage: string;
92
- };
93
- conditionals?: {
94
- type: "SHOW";
95
- conditional: import("../conditionals/conditionals").JSONSchema;
96
- }[] | undefined;
97
- emptyValueMessage?: {
98
- id: string;
99
- description: string;
100
- defaultMessage: string;
101
- } | undefined;
102
- }>, z.ZodObject<z.objectUtil.extendShape<{
103
- emptyValueMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
104
- id: string;
105
- description: string;
106
- defaultMessage: string;
107
- }>>;
108
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
109
- type: z.ZodLiteral<"SHOW">;
110
- conditional: z.ZodType<import("../conditionals/conditionals").JSONSchema, z.ZodTypeDef, import("../conditionals/conditionals").JSONSchema>;
111
- }, "strip", z.ZodTypeAny, {
112
- type: "SHOW";
113
- conditional: import("../conditionals/conditionals").JSONSchema;
114
- }, {
115
- type: "SHOW";
116
- conditional: import("../conditionals/conditionals").JSONSchema;
117
- }>, "many">>>;
118
- }, {
119
- fieldId: z.ZodString;
120
- label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
121
- id: string;
122
- description: string;
123
- defaultMessage: string;
124
- }>>;
125
- }>, "strip", z.ZodTypeAny, {
126
- fieldId: string;
127
- label?: TranslationConfig | undefined;
128
- conditionals?: {
129
- type: "SHOW";
130
- conditional: import("../conditionals/conditionals").JSONSchema;
131
- }[] | undefined;
132
- emptyValueMessage?: TranslationConfig | undefined;
133
- }, {
134
- fieldId: string;
135
- label?: {
136
- id: string;
137
- description: string;
138
- defaultMessage: string;
139
- } | undefined;
140
- conditionals?: {
141
- type: "SHOW";
142
- conditional: import("../conditionals/conditionals").JSONSchema;
143
- }[] | undefined;
144
- emptyValueMessage?: {
145
- id: string;
146
- description: string;
147
- defaultMessage: string;
148
- } | undefined;
149
- }>]>, "many">;
150
- }, "strip", z.ZodTypeAny, {
151
- fields: ({
152
- fieldId: string;
153
- label?: TranslationConfig | undefined;
154
- conditionals?: {
155
- type: "SHOW";
156
- conditional: import("../conditionals/conditionals").JSONSchema;
157
- }[] | undefined;
158
- emptyValueMessage?: TranslationConfig | undefined;
159
- } | {
160
- id: string;
161
- value: TranslationConfig;
162
- label: TranslationConfig;
163
- conditionals?: {
164
- type: "SHOW";
165
- conditional: import("../conditionals/conditionals").JSONSchema;
166
- }[] | undefined;
167
- emptyValueMessage?: TranslationConfig | undefined;
168
- })[];
169
- }, {
170
- fields: ({
171
- fieldId: string;
172
- label?: {
173
- id: string;
174
- description: string;
175
- defaultMessage: string;
176
- } | undefined;
177
- conditionals?: {
178
- type: "SHOW";
179
- conditional: import("../conditionals/conditionals").JSONSchema;
180
- }[] | undefined;
181
- emptyValueMessage?: {
182
- id: string;
183
- description: string;
184
- defaultMessage: string;
185
- } | undefined;
186
- } | {
187
- id: string;
188
- value: {
189
- id: string;
190
- description: string;
191
- defaultMessage: string;
192
- };
193
- label: {
194
- id: string;
195
- description: string;
196
- defaultMessage: string;
197
- };
198
- conditionals?: {
199
- type: "SHOW";
200
- conditional: import("../conditionals/conditionals").JSONSchema;
201
- }[] | undefined;
202
- emptyValueMessage?: {
203
- id: string;
204
- description: string;
205
- defaultMessage: string;
206
- } | undefined;
207
- })[];
208
- }>;
209
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
210
- id: string;
211
- description: string;
212
- defaultMessage: string;
213
- }>;
214
- actions: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./ActionConfig").AllActionConfigFields[]>, "many">;
215
- declaration: z.ZodObject<{
216
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
217
- id: string;
218
- description: string;
219
- defaultMessage: string;
220
- }>;
221
- pages: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
222
- id: z.ZodString;
223
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
224
- id: string;
225
- description: string;
226
- defaultMessage: string;
227
- }>;
228
- requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
229
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
230
- conditional: z.ZodOptional<z.ZodType<import("../conditionals/conditionals").JSONSchema, z.ZodTypeDef, import("../conditionals/conditionals").JSONSchema>>;
231
- }, {
232
- type: z.ZodDefault<z.ZodLiteral<"FORM">>;
233
- }>, "strip", z.ZodTypeAny, {
234
- type: "FORM";
235
- id: string;
236
- title: TranslationConfig;
237
- fields: import("./FieldConfig").FieldConfig[];
238
- requireCompletionToContinue: boolean;
239
- conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
240
- }, {
241
- id: string;
242
- title: {
243
- id: string;
244
- description: string;
245
- defaultMessage: string;
246
- };
247
- fields: import("./FieldConfig").FieldConfigInput[];
248
- type?: "FORM" | undefined;
249
- conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
250
- requireCompletionToContinue?: boolean | undefined;
251
- }>, "many">;
252
- }, "strip", z.ZodTypeAny, {
253
- label: TranslationConfig;
254
- pages: {
255
- type: "FORM";
256
- id: string;
257
- title: TranslationConfig;
258
- fields: import("./FieldConfig").FieldConfig[];
259
- requireCompletionToContinue: boolean;
260
- conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
261
- }[];
262
- }, {
263
- label: {
264
- id: string;
265
- description: string;
266
- defaultMessage: string;
267
- };
268
- pages: {
269
- id: string;
270
- title: {
271
- id: string;
272
- description: string;
273
- defaultMessage: string;
274
- };
275
- fields: import("./FieldConfig").FieldConfigInput[];
276
- type?: "FORM" | undefined;
277
- conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
278
- requireCompletionToContinue?: boolean | undefined;
279
- }[];
280
- }>;
281
- advancedSearch: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
282
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
283
- id: string;
284
- description: string;
285
- defaultMessage: string;
286
- }>;
287
- fields: z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
288
- config: z.ZodObject<{
289
- type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
290
- searchFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
291
- }, "strip", z.ZodTypeAny, {
292
- type: "exact" | "fuzzy" | "range" | "within";
293
- searchFields?: string[] | undefined;
294
- }, {
295
- type: "exact" | "fuzzy" | "range" | "within";
296
- searchFields?: string[] | undefined;
297
- }>;
298
- type: z.ZodOptional<z.ZodNativeEnum<{
299
- readonly NAME: "NAME";
300
- readonly PHONE: "PHONE";
301
- readonly ID: "ID";
302
- readonly ADDRESS: "ADDRESS";
303
- readonly TEXT: "TEXT";
304
- readonly NUMBER: "NUMBER";
305
- readonly NUMBER_WITH_UNIT: "NUMBER_WITH_UNIT";
306
- readonly TEXTAREA: "TEXTAREA";
307
- readonly EMAIL: "EMAIL";
308
- readonly DATE: "DATE";
309
- readonly AGE: "AGE";
310
- readonly DATE_RANGE: "DATE_RANGE";
311
- readonly SELECT_DATE_RANGE: "SELECT_DATE_RANGE";
312
- readonly TIME: "TIME";
313
- readonly PARAGRAPH: "PARAGRAPH";
314
- readonly PAGE_HEADER: "PAGE_HEADER";
315
- readonly RADIO_GROUP: "RADIO_GROUP";
316
- readonly FIELD_GROUP: "FIELD_GROUP";
317
- readonly FILE: "FILE";
318
- readonly FILE_WITH_OPTIONS: "FILE_WITH_OPTIONS";
319
- readonly BULLET_LIST: "BULLET_LIST";
320
- readonly CHECKBOX: "CHECKBOX";
321
- readonly SELECT: "SELECT";
322
- readonly COUNTRY: "COUNTRY";
323
- readonly LOCATION: "LOCATION";
324
- readonly DIVIDER: "DIVIDER";
325
- readonly ADMINISTRATIVE_AREA: "ADMINISTRATIVE_AREA";
326
- readonly FACILITY: "FACILITY";
327
- readonly OFFICE: "OFFICE";
328
- readonly SIGNATURE: "SIGNATURE";
329
- readonly DATA: "DATA";
330
- readonly BUTTON: "BUTTON";
331
- readonly SEARCH: "SEARCH";
332
- readonly ALPHA_PRINT_BUTTON: "ALPHA_PRINT_BUTTON";
333
- readonly HTTP: "HTTP";
334
- readonly LINK_BUTTON: "LINK_BUTTON";
335
- readonly VERIFICATION_STATUS: "VERIFICATION_STATUS";
336
- readonly QUERY_PARAM_READER: "QUERY_PARAM_READER";
337
- readonly QR_READER: "QR_READER";
338
- readonly ID_READER: "ID_READER";
339
- readonly LOADER: "LOADER";
340
- }>>;
341
- label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
342
- id: string;
343
- description: string;
344
- defaultMessage: string;
345
- }>>;
346
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
347
- value: z.ZodString;
348
- label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
349
- id: string;
350
- description: string;
351
- defaultMessage: string;
352
- }>]>;
353
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
354
- }, "strip", z.ZodTypeAny, {
355
- value: string;
356
- label: string | TranslationConfig;
357
- conditionals?: ({
358
- type: "SHOW";
359
- conditional: import("../conditionals/conditionals").JSONSchema;
360
- } | {
361
- type: "ENABLE";
362
- conditional: import("../conditionals/conditionals").JSONSchema;
363
- })[] | undefined;
364
- }, {
365
- value: string;
366
- label: string | {
367
- id: string;
368
- description: string;
369
- defaultMessage: string;
370
- };
371
- conditionals?: ({
372
- type: "SHOW";
373
- conditional: import("../conditionals/conditionals").JSONSchema;
374
- } | {
375
- type: "ENABLE";
376
- conditional: import("../conditionals/conditionals").JSONSchema;
377
- })[] | undefined;
378
- }>, "many">>;
379
- searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
380
- id: string;
381
- description: string;
382
- defaultMessage: string;
383
- }>>;
384
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
385
- validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
386
- validator: z.ZodType<import("../conditionals/conditionals").JSONSchema, z.ZodTypeDef, import("../conditionals/conditionals").JSONSchema>;
387
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
388
- id: string;
389
- description: string;
390
- defaultMessage: string;
391
- }>;
392
- }, "strip", z.ZodTypeAny, {
393
- message: TranslationConfig;
394
- validator: import("../conditionals/conditionals").JSONSchema;
395
- }, {
396
- message: {
397
- id: string;
398
- description: string;
399
- defaultMessage: string;
400
- };
401
- validator: import("../conditionals/conditionals").JSONSchema;
402
- }>, "many">>>;
403
- }, {
404
- fieldId: z.ZodString;
405
- fieldType: z.ZodLiteral<"field">;
406
- }>, "strip", z.ZodTypeAny, {
407
- config: {
408
- type: "exact" | "fuzzy" | "range" | "within";
409
- searchFields?: string[] | undefined;
410
- };
411
- fieldId: string;
412
- fieldType: "field";
413
- 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;
414
- options?: {
415
- value: string;
416
- label: string | TranslationConfig;
417
- conditionals?: ({
418
- type: "SHOW";
419
- conditional: import("../conditionals/conditionals").JSONSchema;
420
- } | {
421
- type: "ENABLE";
422
- conditional: import("../conditionals/conditionals").JSONSchema;
423
- })[] | undefined;
424
- }[] | undefined;
425
- label?: TranslationConfig | undefined;
426
- conditionals?: ({
427
- type: "SHOW";
428
- conditional: import("../conditionals/conditionals").JSONSchema;
429
- } | {
430
- type: "ENABLE";
431
- conditional: import("../conditionals/conditionals").JSONSchema;
432
- } | {
433
- type: "DISPLAY_ON_REVIEW";
434
- conditional: import("../conditionals/conditionals").JSONSchema;
435
- })[] | undefined;
436
- searchCriteriaLabelPrefix?: TranslationConfig | undefined;
437
- validations?: {
438
- message: TranslationConfig;
439
- validator: import("../conditionals/conditionals").JSONSchema;
440
- }[] | undefined;
441
- }, {
442
- config: {
443
- type: "exact" | "fuzzy" | "range" | "within";
444
- searchFields?: string[] | undefined;
445
- };
446
- fieldId: string;
447
- fieldType: "field";
448
- 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;
449
- options?: {
450
- value: string;
451
- label: string | {
452
- id: string;
453
- description: string;
454
- defaultMessage: string;
455
- };
456
- conditionals?: ({
457
- type: "SHOW";
458
- conditional: import("../conditionals/conditionals").JSONSchema;
459
- } | {
460
- type: "ENABLE";
461
- conditional: import("../conditionals/conditionals").JSONSchema;
462
- })[] | undefined;
463
- }[] | undefined;
464
- label?: {
465
- id: string;
466
- description: string;
467
- defaultMessage: string;
468
- } | undefined;
469
- conditionals?: ({
470
- type: "SHOW";
471
- conditional: import("../conditionals/conditionals").JSONSchema;
472
- } | {
473
- type: "ENABLE";
474
- conditional: import("../conditionals/conditionals").JSONSchema;
475
- } | {
476
- type: "DISPLAY_ON_REVIEW";
477
- conditional: import("../conditionals/conditionals").JSONSchema;
478
- })[] | undefined;
479
- searchCriteriaLabelPrefix?: {
480
- id: string;
481
- description: string;
482
- defaultMessage: string;
483
- } | undefined;
484
- validations?: {
485
- message: {
486
- id: string;
487
- description: string;
488
- defaultMessage: string;
489
- };
490
- validator: import("../conditionals/conditionals").JSONSchema;
491
- }[] | undefined;
492
- }>, z.ZodObject<z.objectUtil.extendShape<{
493
- config: z.ZodObject<{
494
- type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
495
- searchFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
496
- }, "strip", z.ZodTypeAny, {
497
- type: "exact" | "fuzzy" | "range" | "within";
498
- searchFields?: string[] | undefined;
499
- }, {
500
- type: "exact" | "fuzzy" | "range" | "within";
501
- searchFields?: string[] | undefined;
502
- }>;
503
- type: z.ZodOptional<z.ZodNativeEnum<{
504
- readonly NAME: "NAME";
505
- readonly PHONE: "PHONE";
506
- readonly ID: "ID";
507
- readonly ADDRESS: "ADDRESS";
508
- readonly TEXT: "TEXT";
509
- readonly NUMBER: "NUMBER";
510
- readonly NUMBER_WITH_UNIT: "NUMBER_WITH_UNIT";
511
- readonly TEXTAREA: "TEXTAREA";
512
- readonly EMAIL: "EMAIL";
513
- readonly DATE: "DATE";
514
- readonly AGE: "AGE";
515
- readonly DATE_RANGE: "DATE_RANGE";
516
- readonly SELECT_DATE_RANGE: "SELECT_DATE_RANGE";
517
- readonly TIME: "TIME";
518
- readonly PARAGRAPH: "PARAGRAPH";
519
- readonly PAGE_HEADER: "PAGE_HEADER";
520
- readonly RADIO_GROUP: "RADIO_GROUP";
521
- readonly FIELD_GROUP: "FIELD_GROUP";
522
- readonly FILE: "FILE";
523
- readonly FILE_WITH_OPTIONS: "FILE_WITH_OPTIONS";
524
- readonly BULLET_LIST: "BULLET_LIST";
525
- readonly CHECKBOX: "CHECKBOX";
526
- readonly SELECT: "SELECT";
527
- readonly COUNTRY: "COUNTRY";
528
- readonly LOCATION: "LOCATION";
529
- readonly DIVIDER: "DIVIDER";
530
- readonly ADMINISTRATIVE_AREA: "ADMINISTRATIVE_AREA";
531
- readonly FACILITY: "FACILITY";
532
- readonly OFFICE: "OFFICE";
533
- readonly SIGNATURE: "SIGNATURE";
534
- readonly DATA: "DATA";
535
- readonly BUTTON: "BUTTON";
536
- readonly SEARCH: "SEARCH";
537
- readonly ALPHA_PRINT_BUTTON: "ALPHA_PRINT_BUTTON";
538
- readonly HTTP: "HTTP";
539
- readonly LINK_BUTTON: "LINK_BUTTON";
540
- readonly VERIFICATION_STATUS: "VERIFICATION_STATUS";
541
- readonly QUERY_PARAM_READER: "QUERY_PARAM_READER";
542
- readonly QR_READER: "QR_READER";
543
- readonly ID_READER: "ID_READER";
544
- readonly LOADER: "LOADER";
545
- }>>;
546
- label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
547
- id: string;
548
- description: string;
549
- defaultMessage: string;
550
- }>>;
551
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
552
- value: z.ZodString;
553
- label: z.ZodUnion<[z.ZodString, z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
554
- id: string;
555
- description: string;
556
- defaultMessage: string;
557
- }>]>;
558
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").ActionConditionalType[]>, "many">>>;
559
- }, "strip", z.ZodTypeAny, {
560
- value: string;
561
- label: string | TranslationConfig;
562
- conditionals?: ({
563
- type: "SHOW";
564
- conditional: import("../conditionals/conditionals").JSONSchema;
565
- } | {
566
- type: "ENABLE";
567
- conditional: import("../conditionals/conditionals").JSONSchema;
568
- })[] | undefined;
569
- }, {
570
- value: string;
571
- label: string | {
572
- id: string;
573
- description: string;
574
- defaultMessage: string;
575
- };
576
- conditionals?: ({
577
- type: "SHOW";
578
- conditional: import("../conditionals/conditionals").JSONSchema;
579
- } | {
580
- type: "ENABLE";
581
- conditional: import("../conditionals/conditionals").JSONSchema;
582
- })[] | undefined;
583
- }>, "many">>;
584
- searchCriteriaLabelPrefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
585
- id: string;
586
- description: string;
587
- defaultMessage: string;
588
- }>>;
589
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
590
- validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
591
- validator: z.ZodType<import("../conditionals/conditionals").JSONSchema, z.ZodTypeDef, import("../conditionals/conditionals").JSONSchema>;
592
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
593
- id: string;
594
- description: string;
595
- defaultMessage: string;
596
- }>;
597
- }, "strip", z.ZodTypeAny, {
598
- message: TranslationConfig;
599
- validator: import("../conditionals/conditionals").JSONSchema;
600
- }, {
601
- message: {
602
- id: string;
603
- description: string;
604
- defaultMessage: string;
605
- };
606
- validator: import("../conditionals/conditionals").JSONSchema;
607
- }>, "many">>>;
608
- }, {
609
- fieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.legalStatuses.REGISTERED.registrationNumber", "event.updatedAt"]>;
610
- fieldType: z.ZodLiteral<"event">;
611
- }>, "strip", z.ZodTypeAny, {
612
- config: {
613
- type: "exact" | "fuzzy" | "range" | "within";
614
- searchFields?: string[] | undefined;
615
- };
616
- fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
617
- fieldType: "event";
618
- 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;
619
- options?: {
620
- value: string;
621
- label: string | TranslationConfig;
622
- conditionals?: ({
623
- type: "SHOW";
624
- conditional: import("../conditionals/conditionals").JSONSchema;
625
- } | {
626
- type: "ENABLE";
627
- conditional: import("../conditionals/conditionals").JSONSchema;
628
- })[] | undefined;
629
- }[] | undefined;
630
- label?: TranslationConfig | undefined;
631
- conditionals?: ({
632
- type: "SHOW";
633
- conditional: import("../conditionals/conditionals").JSONSchema;
634
- } | {
635
- type: "ENABLE";
636
- conditional: import("../conditionals/conditionals").JSONSchema;
637
- } | {
638
- type: "DISPLAY_ON_REVIEW";
639
- conditional: import("../conditionals/conditionals").JSONSchema;
640
- })[] | undefined;
641
- searchCriteriaLabelPrefix?: TranslationConfig | undefined;
642
- validations?: {
643
- message: TranslationConfig;
644
- validator: import("../conditionals/conditionals").JSONSchema;
645
- }[] | undefined;
646
- }, {
647
- config: {
648
- type: "exact" | "fuzzy" | "range" | "within";
649
- searchFields?: string[] | undefined;
650
- };
651
- fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
652
- fieldType: "event";
653
- 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;
654
- options?: {
655
- value: string;
656
- label: string | {
657
- id: string;
658
- description: string;
659
- defaultMessage: string;
660
- };
661
- conditionals?: ({
662
- type: "SHOW";
663
- conditional: import("../conditionals/conditionals").JSONSchema;
664
- } | {
665
- type: "ENABLE";
666
- conditional: import("../conditionals/conditionals").JSONSchema;
667
- })[] | undefined;
668
- }[] | undefined;
669
- label?: {
670
- id: string;
671
- description: string;
672
- defaultMessage: string;
673
- } | undefined;
674
- conditionals?: ({
675
- type: "SHOW";
676
- conditional: import("../conditionals/conditionals").JSONSchema;
677
- } | {
678
- type: "ENABLE";
679
- conditional: import("../conditionals/conditionals").JSONSchema;
680
- } | {
681
- type: "DISPLAY_ON_REVIEW";
682
- conditional: import("../conditionals/conditionals").JSONSchema;
683
- })[] | undefined;
684
- searchCriteriaLabelPrefix?: {
685
- id: string;
686
- description: string;
687
- defaultMessage: string;
688
- } | undefined;
689
- validations?: {
690
- message: {
691
- id: string;
692
- description: string;
693
- defaultMessage: string;
694
- };
695
- validator: import("../conditionals/conditionals").JSONSchema;
696
- }[] | undefined;
697
- }>]>, {
698
- config: {
699
- type: "exact" | "fuzzy" | "range" | "within";
700
- searchFields?: string[] | undefined;
701
- };
702
- fieldId: string;
703
- fieldType: "field";
704
- 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;
705
- options?: {
706
- value: string;
707
- label: string | TranslationConfig;
708
- conditionals?: ({
709
- type: "SHOW";
710
- conditional: import("../conditionals/conditionals").JSONSchema;
711
- } | {
712
- type: "ENABLE";
713
- conditional: import("../conditionals/conditionals").JSONSchema;
714
- })[] | undefined;
715
- }[] | undefined;
716
- label?: TranslationConfig | undefined;
717
- conditionals?: ({
718
- type: "SHOW";
719
- conditional: import("../conditionals/conditionals").JSONSchema;
720
- } | {
721
- type: "ENABLE";
722
- conditional: import("../conditionals/conditionals").JSONSchema;
723
- } | {
724
- type: "DISPLAY_ON_REVIEW";
725
- conditional: import("../conditionals/conditionals").JSONSchema;
726
- })[] | undefined;
727
- searchCriteriaLabelPrefix?: TranslationConfig | undefined;
728
- validations?: {
729
- message: TranslationConfig;
730
- validator: import("../conditionals/conditionals").JSONSchema;
731
- }[] | undefined;
732
- } | {
733
- config: {
734
- type: "exact" | "fuzzy" | "range" | "within";
735
- searchFields?: string[] | undefined;
736
- };
737
- fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
738
- fieldType: "event";
739
- 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;
740
- options?: {
741
- value: string;
742
- label: string | TranslationConfig;
743
- conditionals?: ({
744
- type: "SHOW";
745
- conditional: import("../conditionals/conditionals").JSONSchema;
746
- } | {
747
- type: "ENABLE";
748
- conditional: import("../conditionals/conditionals").JSONSchema;
749
- })[] | undefined;
750
- }[] | undefined;
751
- label?: TranslationConfig | undefined;
752
- conditionals?: ({
753
- type: "SHOW";
754
- conditional: import("../conditionals/conditionals").JSONSchema;
755
- } | {
756
- type: "ENABLE";
757
- conditional: import("../conditionals/conditionals").JSONSchema;
758
- } | {
759
- type: "DISPLAY_ON_REVIEW";
760
- conditional: import("../conditionals/conditionals").JSONSchema;
761
- })[] | undefined;
762
- searchCriteriaLabelPrefix?: TranslationConfig | undefined;
763
- validations?: {
764
- message: TranslationConfig;
765
- validator: import("../conditionals/conditionals").JSONSchema;
766
- }[] | undefined;
767
- }, {
768
- config: {
769
- type: "exact" | "fuzzy" | "range" | "within";
770
- searchFields?: string[] | undefined;
771
- };
772
- fieldId: string;
773
- fieldType: "field";
774
- 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;
775
- options?: {
776
- value: string;
777
- label: string | {
778
- id: string;
779
- description: string;
780
- defaultMessage: string;
781
- };
782
- conditionals?: ({
783
- type: "SHOW";
784
- conditional: import("../conditionals/conditionals").JSONSchema;
785
- } | {
786
- type: "ENABLE";
787
- conditional: import("../conditionals/conditionals").JSONSchema;
788
- })[] | undefined;
789
- }[] | undefined;
790
- label?: {
791
- id: string;
792
- description: string;
793
- defaultMessage: string;
794
- } | undefined;
795
- conditionals?: ({
796
- type: "SHOW";
797
- conditional: import("../conditionals/conditionals").JSONSchema;
798
- } | {
799
- type: "ENABLE";
800
- conditional: import("../conditionals/conditionals").JSONSchema;
801
- } | {
802
- type: "DISPLAY_ON_REVIEW";
803
- conditional: import("../conditionals/conditionals").JSONSchema;
804
- })[] | undefined;
805
- searchCriteriaLabelPrefix?: {
806
- id: string;
807
- description: string;
808
- defaultMessage: string;
809
- } | undefined;
810
- validations?: {
811
- message: {
812
- id: string;
813
- description: string;
814
- defaultMessage: string;
815
- };
816
- validator: import("../conditionals/conditionals").JSONSchema;
817
- }[] | undefined;
818
- } | {
819
- config: {
820
- type: "exact" | "fuzzy" | "range" | "within";
821
- searchFields?: string[] | undefined;
822
- };
823
- fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
824
- fieldType: "event";
825
- 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;
826
- options?: {
827
- value: string;
828
- label: string | {
829
- id: string;
830
- description: string;
831
- defaultMessage: string;
832
- };
833
- conditionals?: ({
834
- type: "SHOW";
835
- conditional: import("../conditionals/conditionals").JSONSchema;
836
- } | {
837
- type: "ENABLE";
838
- conditional: import("../conditionals/conditionals").JSONSchema;
839
- })[] | undefined;
840
- }[] | undefined;
841
- label?: {
842
- id: string;
843
- description: string;
844
- defaultMessage: string;
845
- } | undefined;
846
- conditionals?: ({
847
- type: "SHOW";
848
- conditional: import("../conditionals/conditionals").JSONSchema;
849
- } | {
850
- type: "ENABLE";
851
- conditional: import("../conditionals/conditionals").JSONSchema;
852
- } | {
853
- type: "DISPLAY_ON_REVIEW";
854
- conditional: import("../conditionals/conditionals").JSONSchema;
855
- })[] | undefined;
856
- searchCriteriaLabelPrefix?: {
857
- id: string;
858
- description: string;
859
- defaultMessage: string;
860
- } | undefined;
861
- validations?: {
862
- message: {
863
- id: string;
864
- description: string;
865
- defaultMessage: string;
866
- };
867
- validator: import("../conditionals/conditionals").JSONSchema;
868
- }[] | undefined;
869
- }>, "many">;
870
- }, "strip", z.ZodTypeAny, {
871
- title: TranslationConfig;
872
- fields: ({
873
- config: {
874
- type: "exact" | "fuzzy" | "range" | "within";
875
- searchFields?: string[] | undefined;
876
- };
877
- fieldId: string;
878
- fieldType: "field";
879
- 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;
880
- options?: {
881
- value: string;
882
- label: string | TranslationConfig;
883
- conditionals?: ({
884
- type: "SHOW";
885
- conditional: import("../conditionals/conditionals").JSONSchema;
886
- } | {
887
- type: "ENABLE";
888
- conditional: import("../conditionals/conditionals").JSONSchema;
889
- })[] | undefined;
890
- }[] | undefined;
891
- label?: TranslationConfig | undefined;
892
- conditionals?: ({
893
- type: "SHOW";
894
- conditional: import("../conditionals/conditionals").JSONSchema;
895
- } | {
896
- type: "ENABLE";
897
- conditional: import("../conditionals/conditionals").JSONSchema;
898
- } | {
899
- type: "DISPLAY_ON_REVIEW";
900
- conditional: import("../conditionals/conditionals").JSONSchema;
901
- })[] | undefined;
902
- searchCriteriaLabelPrefix?: TranslationConfig | undefined;
903
- validations?: {
904
- message: TranslationConfig;
905
- validator: import("../conditionals/conditionals").JSONSchema;
906
- }[] | undefined;
907
- } | {
908
- config: {
909
- type: "exact" | "fuzzy" | "range" | "within";
910
- searchFields?: string[] | undefined;
911
- };
912
- fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
913
- fieldType: "event";
914
- 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;
915
- options?: {
916
- value: string;
917
- label: string | TranslationConfig;
918
- conditionals?: ({
919
- type: "SHOW";
920
- conditional: import("../conditionals/conditionals").JSONSchema;
921
- } | {
922
- type: "ENABLE";
923
- conditional: import("../conditionals/conditionals").JSONSchema;
924
- })[] | undefined;
925
- }[] | undefined;
926
- label?: TranslationConfig | undefined;
927
- conditionals?: ({
928
- type: "SHOW";
929
- conditional: import("../conditionals/conditionals").JSONSchema;
930
- } | {
931
- type: "ENABLE";
932
- conditional: import("../conditionals/conditionals").JSONSchema;
933
- } | {
934
- type: "DISPLAY_ON_REVIEW";
935
- conditional: import("../conditionals/conditionals").JSONSchema;
936
- })[] | undefined;
937
- searchCriteriaLabelPrefix?: TranslationConfig | undefined;
938
- validations?: {
939
- message: TranslationConfig;
940
- validator: import("../conditionals/conditionals").JSONSchema;
941
- }[] | undefined;
942
- })[];
943
- }, {
944
- title: {
945
- id: string;
946
- description: string;
947
- defaultMessage: string;
948
- };
949
- fields: ({
950
- config: {
951
- type: "exact" | "fuzzy" | "range" | "within";
952
- searchFields?: string[] | undefined;
953
- };
954
- fieldId: string;
955
- fieldType: "field";
956
- 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;
957
- options?: {
958
- value: string;
959
- label: string | {
960
- id: string;
961
- description: string;
962
- defaultMessage: string;
963
- };
964
- conditionals?: ({
965
- type: "SHOW";
966
- conditional: import("../conditionals/conditionals").JSONSchema;
967
- } | {
968
- type: "ENABLE";
969
- conditional: import("../conditionals/conditionals").JSONSchema;
970
- })[] | undefined;
971
- }[] | undefined;
972
- label?: {
973
- id: string;
974
- description: string;
975
- defaultMessage: string;
976
- } | undefined;
977
- conditionals?: ({
978
- type: "SHOW";
979
- conditional: import("../conditionals/conditionals").JSONSchema;
980
- } | {
981
- type: "ENABLE";
982
- conditional: import("../conditionals/conditionals").JSONSchema;
983
- } | {
984
- type: "DISPLAY_ON_REVIEW";
985
- conditional: import("../conditionals/conditionals").JSONSchema;
986
- })[] | undefined;
987
- searchCriteriaLabelPrefix?: {
988
- id: string;
989
- description: string;
990
- defaultMessage: string;
991
- } | undefined;
992
- validations?: {
993
- message: {
994
- id: string;
995
- description: string;
996
- defaultMessage: string;
997
- };
998
- validator: import("../conditionals/conditionals").JSONSchema;
999
- }[] | undefined;
1000
- } | {
1001
- config: {
1002
- type: "exact" | "fuzzy" | "range" | "within";
1003
- searchFields?: string[] | undefined;
1004
- };
1005
- fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
1006
- fieldType: "event";
1007
- 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;
1008
- options?: {
1009
- value: string;
1010
- label: string | {
1011
- id: string;
1012
- description: string;
1013
- defaultMessage: string;
1014
- };
1015
- conditionals?: ({
1016
- type: "SHOW";
1017
- conditional: import("../conditionals/conditionals").JSONSchema;
1018
- } | {
1019
- type: "ENABLE";
1020
- conditional: import("../conditionals/conditionals").JSONSchema;
1021
- })[] | undefined;
1022
- }[] | undefined;
1023
- label?: {
1024
- id: string;
1025
- description: string;
1026
- defaultMessage: string;
1027
- } | undefined;
1028
- conditionals?: ({
1029
- type: "SHOW";
1030
- conditional: import("../conditionals/conditionals").JSONSchema;
1031
- } | {
1032
- type: "ENABLE";
1033
- conditional: import("../conditionals/conditionals").JSONSchema;
1034
- } | {
1035
- type: "DISPLAY_ON_REVIEW";
1036
- conditional: import("../conditionals/conditionals").JSONSchema;
1037
- })[] | undefined;
1038
- searchCriteriaLabelPrefix?: {
1039
- id: string;
1040
- description: string;
1041
- defaultMessage: string;
1042
- } | undefined;
1043
- validations?: {
1044
- message: {
1045
- id: string;
1046
- description: string;
1047
- defaultMessage: string;
1048
- };
1049
- validator: import("../conditionals/conditionals").JSONSchema;
1050
- }[] | undefined;
1051
- })[];
1052
- }>, "many">>>;
1053
- }, "strip", z.ZodTypeAny, {
1054
- id: string;
1055
- title: TranslationConfig;
1056
- declaration: {
1057
- label: TranslationConfig;
1058
- pages: {
1059
- type: "FORM";
1060
- id: string;
1061
- title: TranslationConfig;
1062
- fields: import("./FieldConfig").FieldConfig[];
1063
- requireCompletionToContinue: boolean;
1064
- conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
1065
- }[];
1066
- };
1067
- actions: ({
1068
- type: "READ";
1069
- label: TranslationConfig;
1070
- review: {
1071
- title: TranslationConfig;
1072
- fields: import("./FieldConfig").FieldConfig[];
1073
- };
1074
- } | {
1075
- type: "DECLARE";
1076
- label: TranslationConfig;
1077
- review: {
1078
- title: TranslationConfig;
1079
- fields: import("./FieldConfig").FieldConfig[];
1080
- };
1081
- deduplication?: {
1082
- id: string;
1083
- query: import("./DeduplicationConfig").ClauseOutput;
1084
- label: TranslationConfig;
1085
- } | undefined;
1086
- } | {
1087
- type: "VALIDATE";
1088
- label: TranslationConfig;
1089
- review: {
1090
- title: TranslationConfig;
1091
- fields: import("./FieldConfig").FieldConfig[];
1092
- };
1093
- deduplication?: {
1094
- id: string;
1095
- query: import("./DeduplicationConfig").ClauseOutput;
1096
- label: TranslationConfig;
1097
- } | undefined;
1098
- } | {
1099
- type: "REJECT";
1100
- label: TranslationConfig;
1101
- } | {
1102
- type: "ARCHIVE";
1103
- label: TranslationConfig;
1104
- } | {
1105
- type: "REGISTER";
1106
- label: TranslationConfig;
1107
- review: {
1108
- title: TranslationConfig;
1109
- fields: import("./FieldConfig").FieldConfig[];
1110
- };
1111
- deduplication?: {
1112
- id: string;
1113
- query: import("./DeduplicationConfig").ClauseOutput;
1114
- label: TranslationConfig;
1115
- } | undefined;
1116
- } | {
1117
- type: "DELETE";
1118
- label: TranslationConfig;
1119
- } | {
1120
- type: "PRINT_CERTIFICATE";
1121
- label: TranslationConfig;
1122
- printForm: {
1123
- label: TranslationConfig;
1124
- pages: ({
1125
- type: "FORM";
1126
- id: string;
1127
- title: TranslationConfig;
1128
- fields: import("./FieldConfig").FieldConfig[];
1129
- requireCompletionToContinue: boolean;
1130
- conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
1131
- } | {
1132
- type: "VERIFICATION";
1133
- id: string;
1134
- title: TranslationConfig;
1135
- actions: {
1136
- cancel: {
1137
- label: TranslationConfig;
1138
- confirmation: {
1139
- title: TranslationConfig;
1140
- body: TranslationConfig;
1141
- };
1142
- };
1143
- verify: {
1144
- label: TranslationConfig;
1145
- };
1146
- };
1147
- fields: import("./FieldConfig").FieldConfig[];
1148
- requireCompletionToContinue: boolean;
1149
- conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
1150
- })[];
1151
- };
1152
- } | {
1153
- type: "REQUEST_CORRECTION";
1154
- label: TranslationConfig;
1155
- correctionForm: {
1156
- label: TranslationConfig;
1157
- pages: ({
1158
- type: "FORM";
1159
- id: string;
1160
- title: TranslationConfig;
1161
- fields: import("./FieldConfig").FieldConfig[];
1162
- requireCompletionToContinue: boolean;
1163
- conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
1164
- } | {
1165
- type: "VERIFICATION";
1166
- id: string;
1167
- title: TranslationConfig;
1168
- actions: {
1169
- cancel: {
1170
- label: TranslationConfig;
1171
- confirmation: {
1172
- title: TranslationConfig;
1173
- body: TranslationConfig;
1174
- };
1175
- };
1176
- verify: {
1177
- label: TranslationConfig;
1178
- };
1179
- };
1180
- fields: import("./FieldConfig").FieldConfig[];
1181
- requireCompletionToContinue: boolean;
1182
- conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
1183
- })[];
1184
- };
1185
- } | {
1186
- type: "REJECT_CORRECTION";
1187
- label: TranslationConfig;
1188
- } | {
1189
- type: "APPROVE_CORRECTION";
1190
- label: TranslationConfig;
1191
- })[];
1192
- label: TranslationConfig;
1193
- summary: {
1194
- fields: ({
1195
- fieldId: string;
1196
- label?: TranslationConfig | undefined;
1197
- conditionals?: {
1198
- type: "SHOW";
1199
- conditional: import("../conditionals/conditionals").JSONSchema;
1200
- }[] | undefined;
1201
- emptyValueMessage?: TranslationConfig | undefined;
1202
- } | {
1203
- id: string;
1204
- value: TranslationConfig;
1205
- label: TranslationConfig;
1206
- conditionals?: {
1207
- type: "SHOW";
1208
- conditional: import("../conditionals/conditionals").JSONSchema;
1209
- }[] | undefined;
1210
- emptyValueMessage?: TranslationConfig | undefined;
1211
- })[];
1212
- };
1213
- advancedSearch: {
1214
- title: TranslationConfig;
1215
- fields: ({
1216
- config: {
1217
- type: "exact" | "fuzzy" | "range" | "within";
1218
- searchFields?: string[] | undefined;
1219
- };
1220
- fieldId: string;
1221
- fieldType: "field";
1222
- 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;
1223
- options?: {
1224
- value: string;
1225
- label: string | TranslationConfig;
1226
- conditionals?: ({
1227
- type: "SHOW";
1228
- conditional: import("../conditionals/conditionals").JSONSchema;
1229
- } | {
1230
- type: "ENABLE";
1231
- conditional: import("../conditionals/conditionals").JSONSchema;
1232
- })[] | undefined;
1233
- }[] | undefined;
1234
- label?: TranslationConfig | undefined;
1235
- conditionals?: ({
1236
- type: "SHOW";
1237
- conditional: import("../conditionals/conditionals").JSONSchema;
1238
- } | {
1239
- type: "ENABLE";
1240
- conditional: import("../conditionals/conditionals").JSONSchema;
1241
- } | {
1242
- type: "DISPLAY_ON_REVIEW";
1243
- conditional: import("../conditionals/conditionals").JSONSchema;
1244
- })[] | undefined;
1245
- searchCriteriaLabelPrefix?: TranslationConfig | undefined;
1246
- validations?: {
1247
- message: TranslationConfig;
1248
- validator: import("../conditionals/conditionals").JSONSchema;
1249
- }[] | undefined;
1250
- } | {
1251
- config: {
1252
- type: "exact" | "fuzzy" | "range" | "within";
1253
- searchFields?: string[] | undefined;
1254
- };
1255
- fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
1256
- fieldType: "event";
1257
- 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;
1258
- options?: {
1259
- value: string;
1260
- label: string | TranslationConfig;
1261
- conditionals?: ({
1262
- type: "SHOW";
1263
- conditional: import("../conditionals/conditionals").JSONSchema;
1264
- } | {
1265
- type: "ENABLE";
1266
- conditional: import("../conditionals/conditionals").JSONSchema;
1267
- })[] | undefined;
1268
- }[] | undefined;
1269
- label?: TranslationConfig | undefined;
1270
- conditionals?: ({
1271
- type: "SHOW";
1272
- conditional: import("../conditionals/conditionals").JSONSchema;
1273
- } | {
1274
- type: "ENABLE";
1275
- conditional: import("../conditionals/conditionals").JSONSchema;
1276
- } | {
1277
- type: "DISPLAY_ON_REVIEW";
1278
- conditional: import("../conditionals/conditionals").JSONSchema;
1279
- })[] | undefined;
1280
- searchCriteriaLabelPrefix?: TranslationConfig | undefined;
1281
- validations?: {
1282
- message: TranslationConfig;
1283
- validator: import("../conditionals/conditionals").JSONSchema;
1284
- }[] | undefined;
1285
- })[];
1286
- }[];
1287
- dateOfEvent?: {
1288
- $$field: string;
1289
- $$subfield: string[];
1290
- } | {
1291
- $$event: "createdAt" | "updatedAt" | "legalStatuses.DECLARED.createdAt" | "legalStatuses.DECLARED.acceptedAt" | "legalStatuses.REGISTERED.createdAt" | "legalStatuses.REGISTERED.acceptedAt";
1292
- } | undefined;
1293
- fallbackTitle?: TranslationConfig | undefined;
1294
- }, {
1295
- id: string;
1296
- title: {
1297
- id: string;
1298
- description: string;
1299
- defaultMessage: string;
1300
- };
1301
- declaration: {
1302
- label: {
1303
- id: string;
1304
- description: string;
1305
- defaultMessage: string;
1306
- };
1307
- pages: {
1308
- id: string;
1309
- title: {
1310
- id: string;
1311
- description: string;
1312
- defaultMessage: string;
1313
- };
1314
- fields: import("./FieldConfig").FieldConfigInput[];
1315
- type?: "FORM" | undefined;
1316
- conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
1317
- requireCompletionToContinue?: boolean | undefined;
1318
- }[];
1319
- };
1320
- actions: ({
1321
- type: "READ";
1322
- label: {
1323
- id: string;
1324
- description: string;
1325
- defaultMessage: string;
1326
- };
1327
- review: {
1328
- title: {
1329
- id: string;
1330
- description: string;
1331
- defaultMessage: string;
1332
- };
1333
- fields: import("./FieldConfig").FieldConfigInput[];
1334
- };
1335
- } | {
1336
- type: "DECLARE";
1337
- label: {
1338
- id: string;
1339
- description: string;
1340
- defaultMessage: string;
1341
- };
1342
- review: {
1343
- title: {
1344
- id: string;
1345
- description: string;
1346
- defaultMessage: string;
1347
- };
1348
- fields: import("./FieldConfig").FieldConfigInput[];
1349
- };
1350
- deduplication?: {
1351
- id: string;
1352
- query: import("./DeduplicationConfig").ClauseInput;
1353
- label: {
1354
- id: string;
1355
- description: string;
1356
- defaultMessage: string;
1357
- };
1358
- } | undefined;
1359
- } | {
1360
- type: "VALIDATE";
1361
- label: {
1362
- id: string;
1363
- description: string;
1364
- defaultMessage: string;
1365
- };
1366
- review: {
1367
- title: {
1368
- id: string;
1369
- description: string;
1370
- defaultMessage: string;
1371
- };
1372
- fields: import("./FieldConfig").FieldConfigInput[];
1373
- };
1374
- deduplication?: {
1375
- id: string;
1376
- query: import("./DeduplicationConfig").ClauseInput;
1377
- label: {
1378
- id: string;
1379
- description: string;
1380
- defaultMessage: string;
1381
- };
1382
- } | undefined;
1383
- } | {
1384
- type: "REJECT";
1385
- label: {
1386
- id: string;
1387
- description: string;
1388
- defaultMessage: string;
1389
- };
1390
- } | {
1391
- type: "ARCHIVE";
1392
- label: {
1393
- id: string;
1394
- description: string;
1395
- defaultMessage: string;
1396
- };
1397
- } | {
1398
- type: "REGISTER";
1399
- label: {
1400
- id: string;
1401
- description: string;
1402
- defaultMessage: string;
1403
- };
1404
- review: {
1405
- title: {
1406
- id: string;
1407
- description: string;
1408
- defaultMessage: string;
1409
- };
1410
- fields: import("./FieldConfig").FieldConfigInput[];
1411
- };
1412
- deduplication?: {
1413
- id: string;
1414
- query: import("./DeduplicationConfig").ClauseInput;
1415
- label: {
1416
- id: string;
1417
- description: string;
1418
- defaultMessage: string;
1419
- };
1420
- } | undefined;
1421
- } | {
1422
- type: "DELETE";
1423
- label: {
1424
- id: string;
1425
- description: string;
1426
- defaultMessage: string;
1427
- };
1428
- } | {
1429
- type: "PRINT_CERTIFICATE";
1430
- label: {
1431
- id: string;
1432
- description: string;
1433
- defaultMessage: string;
1434
- };
1435
- printForm: {
1436
- label: {
1437
- id: string;
1438
- description: string;
1439
- defaultMessage: string;
1440
- };
1441
- pages: ({
1442
- id: string;
1443
- title: {
1444
- id: string;
1445
- description: string;
1446
- defaultMessage: string;
1447
- };
1448
- fields: import("./FieldConfig").FieldConfigInput[];
1449
- type?: "FORM" | undefined;
1450
- conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
1451
- requireCompletionToContinue?: boolean | undefined;
1452
- } | {
1453
- type: "VERIFICATION";
1454
- id: string;
1455
- title: {
1456
- id: string;
1457
- description: string;
1458
- defaultMessage: string;
1459
- };
1460
- actions: {
1461
- cancel: {
1462
- label: {
1463
- id: string;
1464
- description: string;
1465
- defaultMessage: string;
1466
- };
1467
- confirmation: {
1468
- title: {
1469
- id: string;
1470
- description: string;
1471
- defaultMessage: string;
1472
- };
1473
- body: {
1474
- id: string;
1475
- description: string;
1476
- defaultMessage: string;
1477
- };
1478
- };
1479
- };
1480
- verify: {
1481
- label: {
1482
- id: string;
1483
- description: string;
1484
- defaultMessage: string;
1485
- };
1486
- };
1487
- };
1488
- fields: import("./FieldConfig").FieldConfigInput[];
1489
- conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
1490
- requireCompletionToContinue?: boolean | undefined;
1491
- })[];
1492
- };
1493
- } | {
1494
- type: "REQUEST_CORRECTION";
1495
- label: {
1496
- id: string;
1497
- description: string;
1498
- defaultMessage: string;
1499
- };
1500
- correctionForm: {
1501
- label: {
1502
- id: string;
1503
- description: string;
1504
- defaultMessage: string;
1505
- };
1506
- pages: ({
1507
- id: string;
1508
- title: {
1509
- id: string;
1510
- description: string;
1511
- defaultMessage: string;
1512
- };
1513
- fields: import("./FieldConfig").FieldConfigInput[];
1514
- type?: "FORM" | undefined;
1515
- conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
1516
- requireCompletionToContinue?: boolean | undefined;
1517
- } | {
1518
- type: "VERIFICATION";
1519
- id: string;
1520
- title: {
1521
- id: string;
1522
- description: string;
1523
- defaultMessage: string;
1524
- };
1525
- actions: {
1526
- cancel: {
1527
- label: {
1528
- id: string;
1529
- description: string;
1530
- defaultMessage: string;
1531
- };
1532
- confirmation: {
1533
- title: {
1534
- id: string;
1535
- description: string;
1536
- defaultMessage: string;
1537
- };
1538
- body: {
1539
- id: string;
1540
- description: string;
1541
- defaultMessage: string;
1542
- };
1543
- };
1544
- };
1545
- verify: {
1546
- label: {
1547
- id: string;
1548
- description: string;
1549
- defaultMessage: string;
1550
- };
1551
- };
1552
- };
1553
- fields: import("./FieldConfig").FieldConfigInput[];
1554
- conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
1555
- requireCompletionToContinue?: boolean | undefined;
1556
- })[];
1557
- };
1558
- } | {
1559
- type: "REJECT_CORRECTION";
1560
- label: {
1561
- id: string;
1562
- description: string;
1563
- defaultMessage: string;
1564
- };
1565
- } | {
1566
- type: "APPROVE_CORRECTION";
1567
- label: {
1568
- id: string;
1569
- description: string;
1570
- defaultMessage: string;
1571
- };
1572
- })[];
1573
- label: {
1574
- id: string;
1575
- description: string;
1576
- defaultMessage: string;
1577
- };
1578
- summary: {
1579
- fields: ({
1580
- fieldId: string;
1581
- label?: {
1582
- id: string;
1583
- description: string;
1584
- defaultMessage: string;
1585
- } | undefined;
1586
- conditionals?: {
1587
- type: "SHOW";
1588
- conditional: import("../conditionals/conditionals").JSONSchema;
1589
- }[] | undefined;
1590
- emptyValueMessage?: {
1591
- id: string;
1592
- description: string;
1593
- defaultMessage: string;
1594
- } | undefined;
1595
- } | {
1596
- id: string;
1597
- value: {
1598
- id: string;
1599
- description: string;
1600
- defaultMessage: string;
1601
- };
1602
- label: {
1603
- id: string;
1604
- description: string;
1605
- defaultMessage: string;
1606
- };
1607
- conditionals?: {
1608
- type: "SHOW";
1609
- conditional: import("../conditionals/conditionals").JSONSchema;
1610
- }[] | undefined;
1611
- emptyValueMessage?: {
1612
- id: string;
1613
- description: string;
1614
- defaultMessage: string;
1615
- } | undefined;
1616
- })[];
1617
- };
1618
- dateOfEvent?: {
1619
- $$field: string;
1620
- $$subfield?: string[] | undefined;
1621
- } | {
1622
- $$event: "createdAt" | "updatedAt" | "legalStatuses.DECLARED.createdAt" | "legalStatuses.DECLARED.acceptedAt" | "legalStatuses.REGISTERED.createdAt" | "legalStatuses.REGISTERED.acceptedAt";
1623
- } | undefined;
1624
- fallbackTitle?: {
1625
- id: string;
1626
- description: string;
1627
- defaultMessage: string;
1628
- } | undefined;
1629
- advancedSearch?: {
1630
- title: {
1631
- id: string;
1632
- description: string;
1633
- defaultMessage: string;
1634
- };
1635
- fields: ({
1636
- config: {
1637
- type: "exact" | "fuzzy" | "range" | "within";
1638
- searchFields?: string[] | undefined;
1639
- };
1640
- fieldId: string;
1641
- fieldType: "field";
1642
- 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;
1643
- options?: {
1644
- value: string;
1645
- label: string | {
1646
- id: string;
1647
- description: string;
1648
- defaultMessage: string;
1649
- };
1650
- conditionals?: ({
1651
- type: "SHOW";
1652
- conditional: import("../conditionals/conditionals").JSONSchema;
1653
- } | {
1654
- type: "ENABLE";
1655
- conditional: import("../conditionals/conditionals").JSONSchema;
1656
- })[] | undefined;
1657
- }[] | undefined;
1658
- label?: {
1659
- id: string;
1660
- description: string;
1661
- defaultMessage: string;
1662
- } | undefined;
1663
- conditionals?: ({
1664
- type: "SHOW";
1665
- conditional: import("../conditionals/conditionals").JSONSchema;
1666
- } | {
1667
- type: "ENABLE";
1668
- conditional: import("../conditionals/conditionals").JSONSchema;
1669
- } | {
1670
- type: "DISPLAY_ON_REVIEW";
1671
- conditional: import("../conditionals/conditionals").JSONSchema;
1672
- })[] | undefined;
1673
- searchCriteriaLabelPrefix?: {
1674
- id: string;
1675
- description: string;
1676
- defaultMessage: string;
1677
- } | undefined;
1678
- validations?: {
1679
- message: {
1680
- id: string;
1681
- description: string;
1682
- defaultMessage: string;
1683
- };
1684
- validator: import("../conditionals/conditionals").JSONSchema;
1685
- }[] | undefined;
1686
- } | {
1687
- config: {
1688
- type: "exact" | "fuzzy" | "range" | "within";
1689
- searchFields?: string[] | undefined;
1690
- };
1691
- fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
1692
- fieldType: "event";
1693
- 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;
1694
- options?: {
1695
- value: string;
1696
- label: string | {
1697
- id: string;
1698
- description: string;
1699
- defaultMessage: string;
1700
- };
1701
- conditionals?: ({
1702
- type: "SHOW";
1703
- conditional: import("../conditionals/conditionals").JSONSchema;
1704
- } | {
1705
- type: "ENABLE";
1706
- conditional: import("../conditionals/conditionals").JSONSchema;
1707
- })[] | undefined;
1708
- }[] | undefined;
1709
- label?: {
1710
- id: string;
1711
- description: string;
1712
- defaultMessage: string;
1713
- } | undefined;
1714
- conditionals?: ({
1715
- type: "SHOW";
1716
- conditional: import("../conditionals/conditionals").JSONSchema;
1717
- } | {
1718
- type: "ENABLE";
1719
- conditional: import("../conditionals/conditionals").JSONSchema;
1720
- } | {
1721
- type: "DISPLAY_ON_REVIEW";
1722
- conditional: import("../conditionals/conditionals").JSONSchema;
1723
- })[] | undefined;
1724
- searchCriteriaLabelPrefix?: {
1725
- id: string;
1726
- description: string;
1727
- defaultMessage: string;
1728
- } | undefined;
1729
- validations?: {
1730
- message: {
1731
- id: string;
1732
- description: string;
1733
- defaultMessage: string;
1734
- };
1735
- validator: import("../conditionals/conditionals").JSONSchema;
1736
- }[] | undefined;
1737
- })[];
1738
- }[] | undefined;
1739
- }>, {
18
+ }, z.core.$strip>;
19
+ export type EventConfig = {
1740
20
  id: string;
21
+ dateOfEvent?: FieldReference | z.infer<typeof EventFieldReference>;
22
+ placeOfEvent?: FieldReference;
1741
23
  title: TranslationConfig;
1742
- declaration: {
1743
- label: TranslationConfig;
1744
- pages: {
1745
- type: "FORM";
1746
- id: string;
1747
- title: TranslationConfig;
1748
- fields: import("./FieldConfig").FieldConfig[];
1749
- requireCompletionToContinue: boolean;
1750
- conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
1751
- }[];
1752
- };
1753
- actions: ({
1754
- type: "READ";
1755
- label: TranslationConfig;
1756
- review: {
1757
- title: TranslationConfig;
1758
- fields: import("./FieldConfig").FieldConfig[];
1759
- };
1760
- } | {
1761
- type: "DECLARE";
1762
- label: TranslationConfig;
1763
- review: {
1764
- title: TranslationConfig;
1765
- fields: import("./FieldConfig").FieldConfig[];
1766
- };
1767
- deduplication?: {
1768
- id: string;
1769
- query: import("./DeduplicationConfig").ClauseOutput;
1770
- label: TranslationConfig;
1771
- } | undefined;
1772
- } | {
1773
- type: "VALIDATE";
1774
- label: TranslationConfig;
1775
- review: {
1776
- title: TranslationConfig;
1777
- fields: import("./FieldConfig").FieldConfig[];
1778
- };
1779
- deduplication?: {
1780
- id: string;
1781
- query: import("./DeduplicationConfig").ClauseOutput;
1782
- label: TranslationConfig;
1783
- } | undefined;
1784
- } | {
1785
- type: "REJECT";
1786
- label: TranslationConfig;
1787
- } | {
1788
- type: "ARCHIVE";
1789
- label: TranslationConfig;
1790
- } | {
1791
- type: "REGISTER";
1792
- label: TranslationConfig;
1793
- review: {
1794
- title: TranslationConfig;
1795
- fields: import("./FieldConfig").FieldConfig[];
1796
- };
1797
- deduplication?: {
1798
- id: string;
1799
- query: import("./DeduplicationConfig").ClauseOutput;
1800
- label: TranslationConfig;
1801
- } | undefined;
1802
- } | {
1803
- type: "DELETE";
1804
- label: TranslationConfig;
1805
- } | {
1806
- type: "PRINT_CERTIFICATE";
1807
- label: TranslationConfig;
1808
- printForm: {
1809
- label: TranslationConfig;
1810
- pages: ({
1811
- type: "FORM";
1812
- id: string;
1813
- title: TranslationConfig;
1814
- fields: import("./FieldConfig").FieldConfig[];
1815
- requireCompletionToContinue: boolean;
1816
- conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
1817
- } | {
1818
- type: "VERIFICATION";
1819
- id: string;
1820
- title: TranslationConfig;
1821
- actions: {
1822
- cancel: {
1823
- label: TranslationConfig;
1824
- confirmation: {
1825
- title: TranslationConfig;
1826
- body: TranslationConfig;
1827
- };
1828
- };
1829
- verify: {
1830
- label: TranslationConfig;
1831
- };
1832
- };
1833
- fields: import("./FieldConfig").FieldConfig[];
1834
- requireCompletionToContinue: boolean;
1835
- conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
1836
- })[];
1837
- };
1838
- } | {
1839
- type: "REQUEST_CORRECTION";
1840
- label: TranslationConfig;
1841
- correctionForm: {
1842
- label: TranslationConfig;
1843
- pages: ({
1844
- type: "FORM";
1845
- id: string;
1846
- title: TranslationConfig;
1847
- fields: import("./FieldConfig").FieldConfig[];
1848
- requireCompletionToContinue: boolean;
1849
- conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
1850
- } | {
1851
- type: "VERIFICATION";
1852
- id: string;
1853
- title: TranslationConfig;
1854
- actions: {
1855
- cancel: {
1856
- label: TranslationConfig;
1857
- confirmation: {
1858
- title: TranslationConfig;
1859
- body: TranslationConfig;
1860
- };
1861
- };
1862
- verify: {
1863
- label: TranslationConfig;
1864
- };
1865
- };
1866
- fields: import("./FieldConfig").FieldConfig[];
1867
- requireCompletionToContinue: boolean;
1868
- conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
1869
- })[];
1870
- };
1871
- } | {
1872
- type: "REJECT_CORRECTION";
1873
- label: TranslationConfig;
1874
- } | {
1875
- type: "APPROVE_CORRECTION";
1876
- label: TranslationConfig;
1877
- })[];
24
+ fallbackTitle?: TranslationConfig;
25
+ summary: SummaryConfig;
1878
26
  label: TranslationConfig;
1879
- summary: {
1880
- fields: ({
1881
- fieldId: string;
1882
- label?: TranslationConfig | undefined;
1883
- conditionals?: {
1884
- type: "SHOW";
1885
- conditional: import("../conditionals/conditionals").JSONSchema;
1886
- }[] | undefined;
1887
- emptyValueMessage?: TranslationConfig | undefined;
1888
- } | {
1889
- id: string;
1890
- value: TranslationConfig;
1891
- label: TranslationConfig;
1892
- conditionals?: {
1893
- type: "SHOW";
1894
- conditional: import("../conditionals/conditionals").JSONSchema;
1895
- }[] | undefined;
1896
- emptyValueMessage?: TranslationConfig | undefined;
1897
- })[];
1898
- };
1899
- advancedSearch: {
1900
- title: TranslationConfig;
1901
- fields: ({
1902
- config: {
1903
- type: "exact" | "fuzzy" | "range" | "within";
1904
- searchFields?: string[] | undefined;
1905
- };
1906
- fieldId: string;
1907
- fieldType: "field";
1908
- 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;
1909
- options?: {
1910
- value: string;
1911
- label: string | TranslationConfig;
1912
- conditionals?: ({
1913
- type: "SHOW";
1914
- conditional: import("../conditionals/conditionals").JSONSchema;
1915
- } | {
1916
- type: "ENABLE";
1917
- conditional: import("../conditionals/conditionals").JSONSchema;
1918
- })[] | undefined;
1919
- }[] | undefined;
1920
- label?: TranslationConfig | undefined;
1921
- conditionals?: ({
1922
- type: "SHOW";
1923
- conditional: import("../conditionals/conditionals").JSONSchema;
1924
- } | {
1925
- type: "ENABLE";
1926
- conditional: import("../conditionals/conditionals").JSONSchema;
1927
- } | {
1928
- type: "DISPLAY_ON_REVIEW";
1929
- conditional: import("../conditionals/conditionals").JSONSchema;
1930
- })[] | undefined;
1931
- searchCriteriaLabelPrefix?: TranslationConfig | undefined;
1932
- validations?: {
1933
- message: TranslationConfig;
1934
- validator: import("../conditionals/conditionals").JSONSchema;
1935
- }[] | undefined;
1936
- } | {
1937
- config: {
1938
- type: "exact" | "fuzzy" | "range" | "within";
1939
- searchFields?: string[] | undefined;
1940
- };
1941
- fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
1942
- fieldType: "event";
1943
- 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;
1944
- options?: {
1945
- value: string;
1946
- label: string | TranslationConfig;
1947
- conditionals?: ({
1948
- type: "SHOW";
1949
- conditional: import("../conditionals/conditionals").JSONSchema;
1950
- } | {
1951
- type: "ENABLE";
1952
- conditional: import("../conditionals/conditionals").JSONSchema;
1953
- })[] | undefined;
1954
- }[] | undefined;
1955
- label?: TranslationConfig | undefined;
1956
- conditionals?: ({
1957
- type: "SHOW";
1958
- conditional: import("../conditionals/conditionals").JSONSchema;
1959
- } | {
1960
- type: "ENABLE";
1961
- conditional: import("../conditionals/conditionals").JSONSchema;
1962
- } | {
1963
- type: "DISPLAY_ON_REVIEW";
1964
- conditional: import("../conditionals/conditionals").JSONSchema;
1965
- })[] | undefined;
1966
- searchCriteriaLabelPrefix?: TranslationConfig | undefined;
1967
- validations?: {
1968
- message: TranslationConfig;
1969
- validator: import("../conditionals/conditionals").JSONSchema;
1970
- }[] | undefined;
1971
- })[];
1972
- }[];
1973
- dateOfEvent?: {
1974
- $$field: string;
1975
- $$subfield: string[];
1976
- } | {
1977
- $$event: "createdAt" | "updatedAt" | "legalStatuses.DECLARED.createdAt" | "legalStatuses.DECLARED.acceptedAt" | "legalStatuses.REGISTERED.createdAt" | "legalStatuses.REGISTERED.acceptedAt";
1978
- } | undefined;
1979
- fallbackTitle?: TranslationConfig | undefined;
1980
- }, {
1981
- id: string;
1982
- title: {
1983
- id: string;
1984
- description: string;
1985
- defaultMessage: string;
1986
- };
1987
- declaration: {
1988
- label: {
1989
- id: string;
1990
- description: string;
1991
- defaultMessage: string;
1992
- };
1993
- pages: {
1994
- id: string;
1995
- title: {
1996
- id: string;
1997
- description: string;
1998
- defaultMessage: string;
1999
- };
2000
- fields: import("./FieldConfig").FieldConfigInput[];
2001
- type?: "FORM" | undefined;
2002
- conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
2003
- requireCompletionToContinue?: boolean | undefined;
2004
- }[];
2005
- };
2006
- actions: ({
2007
- type: "READ";
2008
- label: {
2009
- id: string;
2010
- description: string;
2011
- defaultMessage: string;
2012
- };
2013
- review: {
2014
- title: {
2015
- id: string;
2016
- description: string;
2017
- defaultMessage: string;
2018
- };
2019
- fields: import("./FieldConfig").FieldConfigInput[];
2020
- };
2021
- } | {
2022
- type: "DECLARE";
2023
- label: {
2024
- id: string;
2025
- description: string;
2026
- defaultMessage: string;
2027
- };
2028
- review: {
2029
- title: {
2030
- id: string;
2031
- description: string;
2032
- defaultMessage: string;
2033
- };
2034
- fields: import("./FieldConfig").FieldConfigInput[];
2035
- };
2036
- deduplication?: {
2037
- id: string;
2038
- query: import("./DeduplicationConfig").ClauseInput;
2039
- label: {
2040
- id: string;
2041
- description: string;
2042
- defaultMessage: string;
2043
- };
2044
- } | undefined;
2045
- } | {
2046
- type: "VALIDATE";
2047
- label: {
2048
- id: string;
2049
- description: string;
2050
- defaultMessage: string;
2051
- };
2052
- review: {
2053
- title: {
2054
- id: string;
2055
- description: string;
2056
- defaultMessage: string;
2057
- };
2058
- fields: import("./FieldConfig").FieldConfigInput[];
2059
- };
2060
- deduplication?: {
2061
- id: string;
2062
- query: import("./DeduplicationConfig").ClauseInput;
2063
- label: {
2064
- id: string;
2065
- description: string;
2066
- defaultMessage: string;
2067
- };
2068
- } | undefined;
2069
- } | {
2070
- type: "REJECT";
2071
- label: {
2072
- id: string;
2073
- description: string;
2074
- defaultMessage: string;
2075
- };
2076
- } | {
2077
- type: "ARCHIVE";
2078
- label: {
2079
- id: string;
2080
- description: string;
2081
- defaultMessage: string;
2082
- };
2083
- } | {
2084
- type: "REGISTER";
2085
- label: {
2086
- id: string;
2087
- description: string;
2088
- defaultMessage: string;
2089
- };
2090
- review: {
2091
- title: {
2092
- id: string;
2093
- description: string;
2094
- defaultMessage: string;
2095
- };
2096
- fields: import("./FieldConfig").FieldConfigInput[];
2097
- };
2098
- deduplication?: {
2099
- id: string;
2100
- query: import("./DeduplicationConfig").ClauseInput;
2101
- label: {
2102
- id: string;
2103
- description: string;
2104
- defaultMessage: string;
2105
- };
2106
- } | undefined;
2107
- } | {
2108
- type: "DELETE";
2109
- label: {
2110
- id: string;
2111
- description: string;
2112
- defaultMessage: string;
2113
- };
2114
- } | {
2115
- type: "PRINT_CERTIFICATE";
2116
- label: {
2117
- id: string;
2118
- description: string;
2119
- defaultMessage: string;
2120
- };
2121
- printForm: {
2122
- label: {
2123
- id: string;
2124
- description: string;
2125
- defaultMessage: string;
2126
- };
2127
- pages: ({
2128
- id: string;
2129
- title: {
2130
- id: string;
2131
- description: string;
2132
- defaultMessage: string;
2133
- };
2134
- fields: import("./FieldConfig").FieldConfigInput[];
2135
- type?: "FORM" | undefined;
2136
- conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
2137
- requireCompletionToContinue?: boolean | undefined;
2138
- } | {
2139
- type: "VERIFICATION";
2140
- id: string;
2141
- title: {
2142
- id: string;
2143
- description: string;
2144
- defaultMessage: string;
2145
- };
2146
- actions: {
2147
- cancel: {
2148
- label: {
2149
- id: string;
2150
- description: string;
2151
- defaultMessage: string;
2152
- };
2153
- confirmation: {
2154
- title: {
2155
- id: string;
2156
- description: string;
2157
- defaultMessage: string;
2158
- };
2159
- body: {
2160
- id: string;
2161
- description: string;
2162
- defaultMessage: string;
2163
- };
2164
- };
2165
- };
2166
- verify: {
2167
- label: {
2168
- id: string;
2169
- description: string;
2170
- defaultMessage: string;
2171
- };
2172
- };
2173
- };
2174
- fields: import("./FieldConfig").FieldConfigInput[];
2175
- conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
2176
- requireCompletionToContinue?: boolean | undefined;
2177
- })[];
2178
- };
2179
- } | {
2180
- type: "REQUEST_CORRECTION";
2181
- label: {
2182
- id: string;
2183
- description: string;
2184
- defaultMessage: string;
2185
- };
2186
- correctionForm: {
2187
- label: {
2188
- id: string;
2189
- description: string;
2190
- defaultMessage: string;
2191
- };
2192
- pages: ({
2193
- id: string;
2194
- title: {
2195
- id: string;
2196
- description: string;
2197
- defaultMessage: string;
2198
- };
2199
- fields: import("./FieldConfig").FieldConfigInput[];
2200
- type?: "FORM" | undefined;
2201
- conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
2202
- requireCompletionToContinue?: boolean | undefined;
2203
- } | {
2204
- type: "VERIFICATION";
2205
- id: string;
2206
- title: {
2207
- id: string;
2208
- description: string;
2209
- defaultMessage: string;
2210
- };
2211
- actions: {
2212
- cancel: {
2213
- label: {
2214
- id: string;
2215
- description: string;
2216
- defaultMessage: string;
2217
- };
2218
- confirmation: {
2219
- title: {
2220
- id: string;
2221
- description: string;
2222
- defaultMessage: string;
2223
- };
2224
- body: {
2225
- id: string;
2226
- description: string;
2227
- defaultMessage: string;
2228
- };
2229
- };
2230
- };
2231
- verify: {
2232
- label: {
2233
- id: string;
2234
- description: string;
2235
- defaultMessage: string;
2236
- };
2237
- };
2238
- };
2239
- fields: import("./FieldConfig").FieldConfigInput[];
2240
- conditional?: import("../conditionals/conditionals").JSONSchema | undefined;
2241
- requireCompletionToContinue?: boolean | undefined;
2242
- })[];
2243
- };
2244
- } | {
2245
- type: "REJECT_CORRECTION";
2246
- label: {
2247
- id: string;
2248
- description: string;
2249
- defaultMessage: string;
2250
- };
2251
- } | {
2252
- type: "APPROVE_CORRECTION";
2253
- label: {
2254
- id: string;
2255
- description: string;
2256
- defaultMessage: string;
2257
- };
2258
- })[];
2259
- label: {
2260
- id: string;
2261
- description: string;
2262
- defaultMessage: string;
2263
- };
2264
- summary: {
2265
- fields: ({
2266
- fieldId: string;
2267
- label?: {
2268
- id: string;
2269
- description: string;
2270
- defaultMessage: string;
2271
- } | undefined;
2272
- conditionals?: {
2273
- type: "SHOW";
2274
- conditional: import("../conditionals/conditionals").JSONSchema;
2275
- }[] | undefined;
2276
- emptyValueMessage?: {
2277
- id: string;
2278
- description: string;
2279
- defaultMessage: string;
2280
- } | undefined;
2281
- } | {
2282
- id: string;
2283
- value: {
2284
- id: string;
2285
- description: string;
2286
- defaultMessage: string;
2287
- };
2288
- label: {
2289
- id: string;
2290
- description: string;
2291
- defaultMessage: string;
2292
- };
2293
- conditionals?: {
2294
- type: "SHOW";
2295
- conditional: import("../conditionals/conditionals").JSONSchema;
2296
- }[] | undefined;
2297
- emptyValueMessage?: {
2298
- id: string;
2299
- description: string;
2300
- defaultMessage: string;
2301
- } | undefined;
2302
- })[];
2303
- };
2304
- dateOfEvent?: {
2305
- $$field: string;
2306
- $$subfield?: string[] | undefined;
2307
- } | {
2308
- $$event: "createdAt" | "updatedAt" | "legalStatuses.DECLARED.createdAt" | "legalStatuses.DECLARED.acceptedAt" | "legalStatuses.REGISTERED.createdAt" | "legalStatuses.REGISTERED.acceptedAt";
2309
- } | undefined;
2310
- fallbackTitle?: {
2311
- id: string;
2312
- description: string;
2313
- defaultMessage: string;
2314
- } | undefined;
2315
- advancedSearch?: {
2316
- title: {
2317
- id: string;
2318
- description: string;
2319
- defaultMessage: string;
2320
- };
2321
- fields: ({
2322
- config: {
2323
- type: "exact" | "fuzzy" | "range" | "within";
2324
- searchFields?: string[] | undefined;
2325
- };
2326
- fieldId: string;
2327
- fieldType: "field";
2328
- 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;
2329
- options?: {
2330
- value: string;
2331
- label: string | {
2332
- id: string;
2333
- description: string;
2334
- defaultMessage: string;
2335
- };
2336
- conditionals?: ({
2337
- type: "SHOW";
2338
- conditional: import("../conditionals/conditionals").JSONSchema;
2339
- } | {
2340
- type: "ENABLE";
2341
- conditional: import("../conditionals/conditionals").JSONSchema;
2342
- })[] | undefined;
2343
- }[] | undefined;
2344
- label?: {
2345
- id: string;
2346
- description: string;
2347
- defaultMessage: string;
2348
- } | undefined;
2349
- conditionals?: ({
2350
- type: "SHOW";
2351
- conditional: import("../conditionals/conditionals").JSONSchema;
2352
- } | {
2353
- type: "ENABLE";
2354
- conditional: import("../conditionals/conditionals").JSONSchema;
2355
- } | {
2356
- type: "DISPLAY_ON_REVIEW";
2357
- conditional: import("../conditionals/conditionals").JSONSchema;
2358
- })[] | undefined;
2359
- searchCriteriaLabelPrefix?: {
2360
- id: string;
2361
- description: string;
2362
- defaultMessage: string;
2363
- } | undefined;
2364
- validations?: {
2365
- message: {
2366
- id: string;
2367
- description: string;
2368
- defaultMessage: string;
2369
- };
2370
- validator: import("../conditionals/conditionals").JSONSchema;
2371
- }[] | undefined;
2372
- } | {
2373
- config: {
2374
- type: "exact" | "fuzzy" | "range" | "within";
2375
- searchFields?: string[] | undefined;
2376
- };
2377
- fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
2378
- fieldType: "event";
2379
- 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;
2380
- options?: {
2381
- value: string;
2382
- label: string | {
2383
- id: string;
2384
- description: string;
2385
- defaultMessage: string;
2386
- };
2387
- conditionals?: ({
2388
- type: "SHOW";
2389
- conditional: import("../conditionals/conditionals").JSONSchema;
2390
- } | {
2391
- type: "ENABLE";
2392
- conditional: import("../conditionals/conditionals").JSONSchema;
2393
- })[] | undefined;
2394
- }[] | undefined;
2395
- label?: {
2396
- id: string;
2397
- description: string;
2398
- defaultMessage: string;
2399
- } | undefined;
2400
- conditionals?: ({
2401
- type: "SHOW";
2402
- conditional: import("../conditionals/conditionals").JSONSchema;
2403
- } | {
2404
- type: "ENABLE";
2405
- conditional: import("../conditionals/conditionals").JSONSchema;
2406
- } | {
2407
- type: "DISPLAY_ON_REVIEW";
2408
- conditional: import("../conditionals/conditionals").JSONSchema;
2409
- })[] | undefined;
2410
- searchCriteriaLabelPrefix?: {
2411
- id: string;
2412
- description: string;
2413
- defaultMessage: string;
2414
- } | undefined;
2415
- validations?: {
2416
- message: {
2417
- id: string;
2418
- description: string;
2419
- defaultMessage: string;
2420
- };
2421
- validator: import("../conditionals/conditionals").JSONSchema;
2422
- }[] | undefined;
2423
- })[];
2424
- }[] | undefined;
2425
- }>;
2426
- export type EventConfig = z.infer<typeof EventConfig>;
27
+ actions: ActionConfig[];
28
+ actionOrder?: string[];
29
+ declaration: DeclarationFormConfig;
30
+ advancedSearch: AdvancedSearchConfig[];
31
+ flags: FlagConfig[];
32
+ analytics: boolean;
33
+ };
34
+ export type EventConfigInput = Omit<EventConfig, 'advancedSearch' | 'flags' | 'declaration' | 'actions' | 'dateOfEvent' | 'placeOfEvent' | 'analytics'> & {
35
+ dateOfEvent?: z.input<typeof FieldReference> | z.infer<typeof EventFieldReference>;
36
+ placeOfEvent?: z.input<typeof FieldReference>;
37
+ advancedSearch?: AdvancedSearchConfig[];
38
+ flags?: FlagConfig[];
39
+ declaration: DeclarationFormConfigInput;
40
+ actions: z.input<typeof ActionConfig>[];
41
+ analytics?: boolean;
42
+ };
43
+ export declare const EventConfig: z.ZodType<EventConfig, EventConfigInput>;
2427
44
  //# sourceMappingURL=EventConfig.d.ts.map