@opencrvs/toolkit 1.9.12-rc.d22cc55 → 1.9.12-rc.d89c437

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