@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,755 +1,88 @@
1
- import { z } from 'zod';
2
- import { TranslationConfig } from './TranslationConfig';
1
+ import * as z from 'zod/v4';
3
2
  export declare const DeclarationFormConfig: z.ZodObject<{
4
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
5
- id: string;
6
- description: string;
7
- defaultMessage: string;
8
- }>;
9
- pages: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
3
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
4
+ pages: z.ZodArray<z.ZodObject<{
10
5
  id: z.ZodString;
11
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
12
- id: string;
13
- description: string;
14
- defaultMessage: string;
15
- }>;
6
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
16
7
  requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
17
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
18
- conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
19
- }, {
8
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
9
+ conditional: z.ZodOptional<z.ZodAny>;
20
10
  type: z.ZodDefault<z.ZodLiteral<"FORM">>;
21
- }>, "strip", z.ZodTypeAny, {
22
- type: "FORM";
23
- id: string;
24
- title: TranslationConfig;
25
- fields: import("./FieldConfig").FieldConfig[];
26
- requireCompletionToContinue: boolean;
27
- conditional?: import(".").JSONSchema | undefined;
28
- }, {
29
- id: string;
30
- title: {
31
- id: string;
32
- description: string;
33
- defaultMessage: string;
34
- };
35
- fields: import("./FieldConfig").FieldConfigInput[];
36
- type?: "FORM" | undefined;
37
- conditional?: import(".").JSONSchema | undefined;
38
- requireCompletionToContinue?: boolean | undefined;
39
- }>, "many">;
40
- }, "strip", z.ZodTypeAny, {
41
- label: TranslationConfig;
42
- pages: {
43
- type: "FORM";
44
- id: string;
45
- title: TranslationConfig;
46
- fields: import("./FieldConfig").FieldConfig[];
47
- requireCompletionToContinue: boolean;
48
- conditional?: import(".").JSONSchema | undefined;
49
- }[];
50
- }, {
51
- label: {
52
- id: string;
53
- description: string;
54
- defaultMessage: string;
55
- };
56
- pages: {
57
- id: string;
58
- title: {
59
- id: string;
60
- description: string;
61
- defaultMessage: string;
62
- };
63
- fields: import("./FieldConfig").FieldConfigInput[];
64
- type?: "FORM" | undefined;
65
- conditional?: import(".").JSONSchema | undefined;
66
- requireCompletionToContinue?: boolean | undefined;
67
- }[];
68
- }>;
11
+ }, z.core.$strip>>;
12
+ }, z.core.$strip>;
69
13
  export type DeclarationFormConfig = z.infer<typeof DeclarationFormConfig>;
70
14
  export type DeclarationFormConfigInput = z.input<typeof DeclarationFormConfig>;
71
15
  export declare const ActionFormConfig: z.ZodObject<{
72
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
73
- id: string;
74
- description: string;
75
- defaultMessage: string;
76
- }>;
77
- pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", (z.ZodObject<z.objectUtil.extendShape<{
16
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
17
+ pages: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
78
18
  id: z.ZodString;
79
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
80
- id: string;
81
- description: string;
82
- defaultMessage: string;
83
- }>;
19
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
84
20
  requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
85
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
86
- conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
87
- }, {
21
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
22
+ conditional: z.ZodOptional<z.ZodAny>;
88
23
  type: z.ZodDefault<z.ZodLiteral<"FORM">>;
89
- }>, "strip", z.ZodTypeAny, {
90
- type: "FORM";
91
- id: string;
92
- title: TranslationConfig;
93
- fields: import("./FieldConfig").FieldConfig[];
94
- requireCompletionToContinue: boolean;
95
- conditional?: import(".").JSONSchema | undefined;
96
- }, {
97
- id: string;
98
- title: {
99
- id: string;
100
- description: string;
101
- defaultMessage: string;
102
- };
103
- fields: import("./FieldConfig").FieldConfigInput[];
104
- type?: "FORM" | undefined;
105
- conditional?: import(".").JSONSchema | undefined;
106
- requireCompletionToContinue?: boolean | undefined;
107
- }> | z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
24
+ }, z.core.$strip>, z.ZodObject<{
108
25
  id: z.ZodString;
109
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
110
- id: string;
111
- description: string;
112
- defaultMessage: string;
113
- }>;
26
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
114
27
  requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
115
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
116
- conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
117
- }, {
118
- type: z.ZodDefault<z.ZodLiteral<"FORM">>;
119
- }>, {
28
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
29
+ conditional: z.ZodOptional<z.ZodAny>;
120
30
  type: z.ZodLiteral<"VERIFICATION">;
121
31
  actions: z.ZodObject<{
122
32
  verify: z.ZodObject<{
123
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
124
- id: string;
125
- description: string;
126
- defaultMessage: string;
127
- }>;
128
- }, "strip", z.ZodTypeAny, {
129
- label: TranslationConfig;
130
- }, {
131
- label: {
132
- id: string;
133
- description: string;
134
- defaultMessage: string;
135
- };
136
- }>;
33
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
34
+ }, z.core.$strip>;
137
35
  cancel: z.ZodObject<{
138
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
139
- id: string;
140
- description: string;
141
- defaultMessage: string;
142
- }>;
36
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
143
37
  confirmation: z.ZodObject<{
144
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
145
- id: string;
146
- description: string;
147
- defaultMessage: string;
148
- }>;
149
- body: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
150
- id: string;
151
- description: string;
152
- defaultMessage: string;
153
- }>;
154
- }, "strip", z.ZodTypeAny, {
155
- title: TranslationConfig;
156
- body: TranslationConfig;
157
- }, {
158
- title: {
159
- id: string;
160
- description: string;
161
- defaultMessage: string;
162
- };
163
- body: {
164
- id: string;
165
- description: string;
166
- defaultMessage: string;
167
- };
168
- }>;
169
- }, "strip", z.ZodTypeAny, {
170
- label: TranslationConfig;
171
- confirmation: {
172
- title: TranslationConfig;
173
- body: TranslationConfig;
174
- };
175
- }, {
176
- label: {
177
- id: string;
178
- description: string;
179
- defaultMessage: string;
180
- };
181
- confirmation: {
182
- title: {
183
- id: string;
184
- description: string;
185
- defaultMessage: string;
186
- };
187
- body: {
188
- id: string;
189
- description: string;
190
- defaultMessage: string;
191
- };
192
- };
193
- }>;
194
- }, "strip", z.ZodTypeAny, {
195
- cancel: {
196
- label: TranslationConfig;
197
- confirmation: {
198
- title: TranslationConfig;
199
- body: TranslationConfig;
200
- };
201
- };
202
- verify: {
203
- label: TranslationConfig;
204
- };
205
- }, {
206
- cancel: {
207
- label: {
208
- id: string;
209
- description: string;
210
- defaultMessage: string;
211
- };
212
- confirmation: {
213
- title: {
214
- id: string;
215
- description: string;
216
- defaultMessage: string;
217
- };
218
- body: {
219
- id: string;
220
- description: string;
221
- defaultMessage: string;
222
- };
223
- };
224
- };
225
- verify: {
226
- label: {
227
- id: string;
228
- description: string;
229
- defaultMessage: string;
230
- };
231
- };
232
- }>;
233
- }>, "strip", z.ZodTypeAny, {
234
- type: "VERIFICATION";
235
- id: string;
236
- title: TranslationConfig;
237
- actions: {
238
- cancel: {
239
- label: TranslationConfig;
240
- confirmation: {
241
- title: TranslationConfig;
242
- body: TranslationConfig;
243
- };
244
- };
245
- verify: {
246
- label: TranslationConfig;
247
- };
248
- };
249
- fields: import("./FieldConfig").FieldConfig[];
250
- requireCompletionToContinue: boolean;
251
- conditional?: import(".").JSONSchema | undefined;
252
- }, {
253
- type: "VERIFICATION";
254
- id: string;
255
- title: {
256
- id: string;
257
- description: string;
258
- defaultMessage: string;
259
- };
260
- actions: {
261
- cancel: {
262
- label: {
263
- id: string;
264
- description: string;
265
- defaultMessage: string;
266
- };
267
- confirmation: {
268
- title: {
269
- id: string;
270
- description: string;
271
- defaultMessage: string;
272
- };
273
- body: {
274
- id: string;
275
- description: string;
276
- defaultMessage: string;
277
- };
278
- };
279
- };
280
- verify: {
281
- label: {
282
- id: string;
283
- description: string;
284
- defaultMessage: string;
285
- };
286
- };
287
- };
288
- fields: import("./FieldConfig").FieldConfigInput[];
289
- conditional?: import(".").JSONSchema | undefined;
290
- requireCompletionToContinue?: boolean | undefined;
291
- }>)[]>, "many">;
292
- }, "strip", z.ZodTypeAny, {
293
- label: TranslationConfig;
294
- pages: ({
295
- type: "FORM";
296
- id: string;
297
- title: TranslationConfig;
298
- fields: import("./FieldConfig").FieldConfig[];
299
- requireCompletionToContinue: boolean;
300
- conditional?: import(".").JSONSchema | undefined;
301
- } | {
302
- type: "VERIFICATION";
303
- id: string;
304
- title: TranslationConfig;
305
- actions: {
306
- cancel: {
307
- label: TranslationConfig;
308
- confirmation: {
309
- title: TranslationConfig;
310
- body: TranslationConfig;
311
- };
312
- };
313
- verify: {
314
- label: TranslationConfig;
315
- };
316
- };
317
- fields: import("./FieldConfig").FieldConfig[];
318
- requireCompletionToContinue: boolean;
319
- conditional?: import(".").JSONSchema | undefined;
320
- })[];
321
- }, {
322
- label: {
323
- id: string;
324
- description: string;
325
- defaultMessage: string;
326
- };
327
- pages: ({
328
- id: string;
329
- title: {
330
- id: string;
331
- description: string;
332
- defaultMessage: string;
333
- };
334
- fields: import("./FieldConfig").FieldConfigInput[];
335
- type?: "FORM" | undefined;
336
- conditional?: import(".").JSONSchema | undefined;
337
- requireCompletionToContinue?: boolean | undefined;
338
- } | {
339
- type: "VERIFICATION";
340
- id: string;
341
- title: {
342
- id: string;
343
- description: string;
344
- defaultMessage: string;
345
- };
346
- actions: {
347
- cancel: {
348
- label: {
349
- id: string;
350
- description: string;
351
- defaultMessage: string;
352
- };
353
- confirmation: {
354
- title: {
355
- id: string;
356
- description: string;
357
- defaultMessage: string;
358
- };
359
- body: {
360
- id: string;
361
- description: string;
362
- defaultMessage: string;
363
- };
364
- };
365
- };
366
- verify: {
367
- label: {
368
- id: string;
369
- description: string;
370
- defaultMessage: string;
371
- };
372
- };
373
- };
374
- fields: import("./FieldConfig").FieldConfigInput[];
375
- conditional?: import(".").JSONSchema | undefined;
376
- requireCompletionToContinue?: boolean | undefined;
377
- })[];
378
- }>;
38
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
39
+ body: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
40
+ }, z.core.$strip>;
41
+ }, z.core.$strip>;
42
+ }, z.core.$strip>;
43
+ }, z.core.$strip>], "type">>;
44
+ }, z.core.$strip>;
379
45
  export type ActionFormConfig = z.infer<typeof ActionFormConfig>;
380
46
  export type ActionFormConfigInput = z.input<typeof ActionFormConfig>;
381
- export declare const FormConfig: z.ZodUnion<[z.ZodObject<{
382
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
383
- id: string;
384
- description: string;
385
- defaultMessage: string;
386
- }>;
387
- pages: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
47
+ export declare const FormConfig: z.ZodUnion<readonly [z.ZodObject<{
48
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
49
+ pages: z.ZodArray<z.ZodObject<{
388
50
  id: z.ZodString;
389
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
390
- id: string;
391
- description: string;
392
- defaultMessage: string;
393
- }>;
51
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
394
52
  requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
395
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
396
- conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
397
- }, {
53
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
54
+ conditional: z.ZodOptional<z.ZodAny>;
398
55
  type: z.ZodDefault<z.ZodLiteral<"FORM">>;
399
- }>, "strip", z.ZodTypeAny, {
400
- type: "FORM";
401
- id: string;
402
- title: TranslationConfig;
403
- fields: import("./FieldConfig").FieldConfig[];
404
- requireCompletionToContinue: boolean;
405
- conditional?: import(".").JSONSchema | undefined;
406
- }, {
407
- id: string;
408
- title: {
409
- id: string;
410
- description: string;
411
- defaultMessage: string;
412
- };
413
- fields: import("./FieldConfig").FieldConfigInput[];
414
- type?: "FORM" | undefined;
415
- conditional?: import(".").JSONSchema | undefined;
416
- requireCompletionToContinue?: boolean | undefined;
417
- }>, "many">;
418
- }, "strip", z.ZodTypeAny, {
419
- label: TranslationConfig;
420
- pages: {
421
- type: "FORM";
422
- id: string;
423
- title: TranslationConfig;
424
- fields: import("./FieldConfig").FieldConfig[];
425
- requireCompletionToContinue: boolean;
426
- conditional?: import(".").JSONSchema | undefined;
427
- }[];
428
- }, {
429
- label: {
430
- id: string;
431
- description: string;
432
- defaultMessage: string;
433
- };
434
- pages: {
435
- id: string;
436
- title: {
437
- id: string;
438
- description: string;
439
- defaultMessage: string;
440
- };
441
- fields: import("./FieldConfig").FieldConfigInput[];
442
- type?: "FORM" | undefined;
443
- conditional?: import(".").JSONSchema | undefined;
444
- requireCompletionToContinue?: boolean | undefined;
445
- }[];
446
- }>, z.ZodObject<{
447
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
448
- id: string;
449
- description: string;
450
- defaultMessage: string;
451
- }>;
452
- pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", (z.ZodObject<z.objectUtil.extendShape<{
56
+ }, z.core.$strip>>;
57
+ }, z.core.$strip>, z.ZodObject<{
58
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
59
+ pages: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
453
60
  id: z.ZodString;
454
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
455
- id: string;
456
- description: string;
457
- defaultMessage: string;
458
- }>;
61
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
459
62
  requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
460
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
461
- conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
462
- }, {
63
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
64
+ conditional: z.ZodOptional<z.ZodAny>;
463
65
  type: z.ZodDefault<z.ZodLiteral<"FORM">>;
464
- }>, "strip", z.ZodTypeAny, {
465
- type: "FORM";
466
- id: string;
467
- title: TranslationConfig;
468
- fields: import("./FieldConfig").FieldConfig[];
469
- requireCompletionToContinue: boolean;
470
- conditional?: import(".").JSONSchema | undefined;
471
- }, {
472
- id: string;
473
- title: {
474
- id: string;
475
- description: string;
476
- defaultMessage: string;
477
- };
478
- fields: import("./FieldConfig").FieldConfigInput[];
479
- type?: "FORM" | undefined;
480
- conditional?: import(".").JSONSchema | undefined;
481
- requireCompletionToContinue?: boolean | undefined;
482
- }> | z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
66
+ }, z.core.$strip>, z.ZodObject<{
483
67
  id: z.ZodString;
484
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
485
- id: string;
486
- description: string;
487
- defaultMessage: string;
488
- }>;
68
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
489
69
  requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
490
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
491
- conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
492
- }, {
493
- type: z.ZodDefault<z.ZodLiteral<"FORM">>;
494
- }>, {
70
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
71
+ conditional: z.ZodOptional<z.ZodAny>;
495
72
  type: z.ZodLiteral<"VERIFICATION">;
496
73
  actions: z.ZodObject<{
497
74
  verify: z.ZodObject<{
498
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
499
- id: string;
500
- description: string;
501
- defaultMessage: string;
502
- }>;
503
- }, "strip", z.ZodTypeAny, {
504
- label: TranslationConfig;
505
- }, {
506
- label: {
507
- id: string;
508
- description: string;
509
- defaultMessage: string;
510
- };
511
- }>;
75
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
76
+ }, z.core.$strip>;
512
77
  cancel: z.ZodObject<{
513
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
514
- id: string;
515
- description: string;
516
- defaultMessage: string;
517
- }>;
78
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
518
79
  confirmation: z.ZodObject<{
519
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
520
- id: string;
521
- description: string;
522
- defaultMessage: string;
523
- }>;
524
- body: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
525
- id: string;
526
- description: string;
527
- defaultMessage: string;
528
- }>;
529
- }, "strip", z.ZodTypeAny, {
530
- title: TranslationConfig;
531
- body: TranslationConfig;
532
- }, {
533
- title: {
534
- id: string;
535
- description: string;
536
- defaultMessage: string;
537
- };
538
- body: {
539
- id: string;
540
- description: string;
541
- defaultMessage: string;
542
- };
543
- }>;
544
- }, "strip", z.ZodTypeAny, {
545
- label: TranslationConfig;
546
- confirmation: {
547
- title: TranslationConfig;
548
- body: TranslationConfig;
549
- };
550
- }, {
551
- label: {
552
- id: string;
553
- description: string;
554
- defaultMessage: string;
555
- };
556
- confirmation: {
557
- title: {
558
- id: string;
559
- description: string;
560
- defaultMessage: string;
561
- };
562
- body: {
563
- id: string;
564
- description: string;
565
- defaultMessage: string;
566
- };
567
- };
568
- }>;
569
- }, "strip", z.ZodTypeAny, {
570
- cancel: {
571
- label: TranslationConfig;
572
- confirmation: {
573
- title: TranslationConfig;
574
- body: TranslationConfig;
575
- };
576
- };
577
- verify: {
578
- label: TranslationConfig;
579
- };
580
- }, {
581
- cancel: {
582
- label: {
583
- id: string;
584
- description: string;
585
- defaultMessage: string;
586
- };
587
- confirmation: {
588
- title: {
589
- id: string;
590
- description: string;
591
- defaultMessage: string;
592
- };
593
- body: {
594
- id: string;
595
- description: string;
596
- defaultMessage: string;
597
- };
598
- };
599
- };
600
- verify: {
601
- label: {
602
- id: string;
603
- description: string;
604
- defaultMessage: string;
605
- };
606
- };
607
- }>;
608
- }>, "strip", z.ZodTypeAny, {
609
- type: "VERIFICATION";
610
- id: string;
611
- title: TranslationConfig;
612
- actions: {
613
- cancel: {
614
- label: TranslationConfig;
615
- confirmation: {
616
- title: TranslationConfig;
617
- body: TranslationConfig;
618
- };
619
- };
620
- verify: {
621
- label: TranslationConfig;
622
- };
623
- };
624
- fields: import("./FieldConfig").FieldConfig[];
625
- requireCompletionToContinue: boolean;
626
- conditional?: import(".").JSONSchema | undefined;
627
- }, {
628
- type: "VERIFICATION";
629
- id: string;
630
- title: {
631
- id: string;
632
- description: string;
633
- defaultMessage: string;
634
- };
635
- actions: {
636
- cancel: {
637
- label: {
638
- id: string;
639
- description: string;
640
- defaultMessage: string;
641
- };
642
- confirmation: {
643
- title: {
644
- id: string;
645
- description: string;
646
- defaultMessage: string;
647
- };
648
- body: {
649
- id: string;
650
- description: string;
651
- defaultMessage: string;
652
- };
653
- };
654
- };
655
- verify: {
656
- label: {
657
- id: string;
658
- description: string;
659
- defaultMessage: string;
660
- };
661
- };
662
- };
663
- fields: import("./FieldConfig").FieldConfigInput[];
664
- conditional?: import(".").JSONSchema | undefined;
665
- requireCompletionToContinue?: boolean | undefined;
666
- }>)[]>, "many">;
667
- }, "strip", z.ZodTypeAny, {
668
- label: TranslationConfig;
669
- pages: ({
670
- type: "FORM";
671
- id: string;
672
- title: TranslationConfig;
673
- fields: import("./FieldConfig").FieldConfig[];
674
- requireCompletionToContinue: boolean;
675
- conditional?: import(".").JSONSchema | undefined;
676
- } | {
677
- type: "VERIFICATION";
678
- id: string;
679
- title: TranslationConfig;
680
- actions: {
681
- cancel: {
682
- label: TranslationConfig;
683
- confirmation: {
684
- title: TranslationConfig;
685
- body: TranslationConfig;
686
- };
687
- };
688
- verify: {
689
- label: TranslationConfig;
690
- };
691
- };
692
- fields: import("./FieldConfig").FieldConfig[];
693
- requireCompletionToContinue: boolean;
694
- conditional?: import(".").JSONSchema | undefined;
695
- })[];
696
- }, {
697
- label: {
698
- id: string;
699
- description: string;
700
- defaultMessage: string;
701
- };
702
- pages: ({
703
- id: string;
704
- title: {
705
- id: string;
706
- description: string;
707
- defaultMessage: string;
708
- };
709
- fields: import("./FieldConfig").FieldConfigInput[];
710
- type?: "FORM" | undefined;
711
- conditional?: import(".").JSONSchema | undefined;
712
- requireCompletionToContinue?: boolean | undefined;
713
- } | {
714
- type: "VERIFICATION";
715
- id: string;
716
- title: {
717
- id: string;
718
- description: string;
719
- defaultMessage: string;
720
- };
721
- actions: {
722
- cancel: {
723
- label: {
724
- id: string;
725
- description: string;
726
- defaultMessage: string;
727
- };
728
- confirmation: {
729
- title: {
730
- id: string;
731
- description: string;
732
- defaultMessage: string;
733
- };
734
- body: {
735
- id: string;
736
- description: string;
737
- defaultMessage: string;
738
- };
739
- };
740
- };
741
- verify: {
742
- label: {
743
- id: string;
744
- description: string;
745
- defaultMessage: string;
746
- };
747
- };
748
- };
749
- fields: import("./FieldConfig").FieldConfigInput[];
750
- conditional?: import(".").JSONSchema | undefined;
751
- requireCompletionToContinue?: boolean | undefined;
752
- })[];
753
- }>]>;
80
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
81
+ body: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
82
+ }, z.core.$strip>;
83
+ }, z.core.$strip>;
84
+ }, z.core.$strip>;
85
+ }, z.core.$strip>], "type">>;
86
+ }, z.core.$strip>]>;
754
87
  export type FormConfig = z.infer<typeof FormConfig>;
755
88
  //# sourceMappingURL=FormConfig.d.ts.map