@opencrvs/toolkit 1.8.0-rc.ff2e7b6 → 1.8.0-rc.ffe8c17
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.
- package/dist/commons/api/router.d.ts +281 -35
- package/dist/commons/conditionals/validate.d.ts +27 -0
- package/dist/commons/conditionals/validate.test.d.ts +2 -0
- package/dist/commons/events/ActionConfig.d.ts +1699 -449
- package/dist/commons/events/ActionInput.d.ts +4 -4
- package/dist/commons/events/EventConfig.d.ts +1680 -136
- package/dist/commons/events/EventConfigInput.d.ts +2 -2
- package/dist/commons/events/FieldConfig.d.ts +175 -2
- package/dist/commons/events/FieldType.d.ts +2 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +258 -4
- package/dist/commons/events/FieldValue.d.ts +81 -2
- package/dist/commons/events/FormConfig.d.ts +360 -23
- package/dist/commons/events/defineConfig.d.ts +280 -34
- package/dist/commons/events/utils.d.ts +160 -8
- package/dist/events/index.js +229 -76
- package/package.json +1 -1
|
@@ -55,11 +55,29 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
|
55
55
|
label: import("../commons").TranslationConfig;
|
|
56
56
|
};
|
|
57
57
|
label: import("../commons").TranslationConfig;
|
|
58
|
-
pages: {
|
|
58
|
+
pages: ({
|
|
59
|
+
type: import("../commons").PageType.FORM;
|
|
59
60
|
id: string;
|
|
60
61
|
title: import("../commons").TranslationConfig;
|
|
61
62
|
fields: import("../commons").Inferred[];
|
|
62
|
-
}
|
|
63
|
+
} | {
|
|
64
|
+
type: import("../commons").PageType.VERIFICATION;
|
|
65
|
+
id: string;
|
|
66
|
+
title: import("../commons").TranslationConfig;
|
|
67
|
+
actions: {
|
|
68
|
+
verify: {
|
|
69
|
+
label: import("../commons").TranslationConfig;
|
|
70
|
+
};
|
|
71
|
+
cancel: {
|
|
72
|
+
label: import("../commons").TranslationConfig;
|
|
73
|
+
confirmation: {
|
|
74
|
+
title: import("../commons").TranslationConfig;
|
|
75
|
+
body: import("../commons").TranslationConfig;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
fields: import("../commons").Inferred[];
|
|
80
|
+
})[];
|
|
63
81
|
review: {
|
|
64
82
|
title: import("../commons").TranslationConfig;
|
|
65
83
|
fields: import("../commons").Inferred[];
|
|
@@ -83,11 +101,29 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
|
83
101
|
label: import("../commons").TranslationConfig;
|
|
84
102
|
};
|
|
85
103
|
label: import("../commons").TranslationConfig;
|
|
86
|
-
pages: {
|
|
104
|
+
pages: ({
|
|
105
|
+
type: import("../commons").PageType.FORM;
|
|
106
|
+
id: string;
|
|
107
|
+
title: import("../commons").TranslationConfig;
|
|
108
|
+
fields: import("../commons").Inferred[];
|
|
109
|
+
} | {
|
|
110
|
+
type: import("../commons").PageType.VERIFICATION;
|
|
87
111
|
id: string;
|
|
88
112
|
title: import("../commons").TranslationConfig;
|
|
113
|
+
actions: {
|
|
114
|
+
verify: {
|
|
115
|
+
label: import("../commons").TranslationConfig;
|
|
116
|
+
};
|
|
117
|
+
cancel: {
|
|
118
|
+
label: import("../commons").TranslationConfig;
|
|
119
|
+
confirmation: {
|
|
120
|
+
title: import("../commons").TranslationConfig;
|
|
121
|
+
body: import("../commons").TranslationConfig;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
};
|
|
89
125
|
fields: import("../commons").Inferred[];
|
|
90
|
-
}[];
|
|
126
|
+
})[];
|
|
91
127
|
review: {
|
|
92
128
|
title: import("../commons").TranslationConfig;
|
|
93
129
|
fields: import("../commons").Inferred[];
|
|
@@ -96,7 +132,6 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
|
96
132
|
draft?: boolean | undefined;
|
|
97
133
|
} | {
|
|
98
134
|
type: "REJECT";
|
|
99
|
-
comment: string;
|
|
100
135
|
conditionals: ({
|
|
101
136
|
type: "SHOW";
|
|
102
137
|
conditional: import("../commons").JSONSchema;
|
|
@@ -112,21 +147,37 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
|
112
147
|
label: import("../commons").TranslationConfig;
|
|
113
148
|
};
|
|
114
149
|
label: import("../commons").TranslationConfig;
|
|
115
|
-
pages: {
|
|
150
|
+
pages: ({
|
|
151
|
+
type: import("../commons").PageType.FORM;
|
|
116
152
|
id: string;
|
|
117
153
|
title: import("../commons").TranslationConfig;
|
|
118
154
|
fields: import("../commons").Inferred[];
|
|
119
|
-
}
|
|
155
|
+
} | {
|
|
156
|
+
type: import("../commons").PageType.VERIFICATION;
|
|
157
|
+
id: string;
|
|
158
|
+
title: import("../commons").TranslationConfig;
|
|
159
|
+
actions: {
|
|
160
|
+
verify: {
|
|
161
|
+
label: import("../commons").TranslationConfig;
|
|
162
|
+
};
|
|
163
|
+
cancel: {
|
|
164
|
+
label: import("../commons").TranslationConfig;
|
|
165
|
+
confirmation: {
|
|
166
|
+
title: import("../commons").TranslationConfig;
|
|
167
|
+
body: import("../commons").TranslationConfig;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
fields: import("../commons").Inferred[];
|
|
172
|
+
})[];
|
|
120
173
|
review: {
|
|
121
174
|
title: import("../commons").TranslationConfig;
|
|
122
175
|
fields: import("../commons").Inferred[];
|
|
123
176
|
};
|
|
124
177
|
}[];
|
|
125
|
-
isDuplicate: boolean;
|
|
126
178
|
draft?: boolean | undefined;
|
|
127
179
|
} | {
|
|
128
180
|
type: "MARKED_AS_DUPLICATE";
|
|
129
|
-
comment: string;
|
|
130
181
|
conditionals: ({
|
|
131
182
|
type: "SHOW";
|
|
132
183
|
conditional: import("../commons").JSONSchema;
|
|
@@ -142,21 +193,37 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
|
142
193
|
label: import("../commons").TranslationConfig;
|
|
143
194
|
};
|
|
144
195
|
label: import("../commons").TranslationConfig;
|
|
145
|
-
pages: {
|
|
196
|
+
pages: ({
|
|
197
|
+
type: import("../commons").PageType.FORM;
|
|
198
|
+
id: string;
|
|
199
|
+
title: import("../commons").TranslationConfig;
|
|
200
|
+
fields: import("../commons").Inferred[];
|
|
201
|
+
} | {
|
|
202
|
+
type: import("../commons").PageType.VERIFICATION;
|
|
146
203
|
id: string;
|
|
147
204
|
title: import("../commons").TranslationConfig;
|
|
205
|
+
actions: {
|
|
206
|
+
verify: {
|
|
207
|
+
label: import("../commons").TranslationConfig;
|
|
208
|
+
};
|
|
209
|
+
cancel: {
|
|
210
|
+
label: import("../commons").TranslationConfig;
|
|
211
|
+
confirmation: {
|
|
212
|
+
title: import("../commons").TranslationConfig;
|
|
213
|
+
body: import("../commons").TranslationConfig;
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
};
|
|
148
217
|
fields: import("../commons").Inferred[];
|
|
149
|
-
}[];
|
|
218
|
+
})[];
|
|
150
219
|
review: {
|
|
151
220
|
title: import("../commons").TranslationConfig;
|
|
152
221
|
fields: import("../commons").Inferred[];
|
|
153
222
|
};
|
|
154
223
|
}[];
|
|
155
|
-
duplicates: string[];
|
|
156
224
|
draft?: boolean | undefined;
|
|
157
225
|
} | {
|
|
158
226
|
type: "ARCHIVE";
|
|
159
|
-
comment: string;
|
|
160
227
|
conditionals: ({
|
|
161
228
|
type: "SHOW";
|
|
162
229
|
conditional: import("../commons").JSONSchema;
|
|
@@ -172,17 +239,34 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
|
172
239
|
label: import("../commons").TranslationConfig;
|
|
173
240
|
};
|
|
174
241
|
label: import("../commons").TranslationConfig;
|
|
175
|
-
pages: {
|
|
242
|
+
pages: ({
|
|
243
|
+
type: import("../commons").PageType.FORM;
|
|
176
244
|
id: string;
|
|
177
245
|
title: import("../commons").TranslationConfig;
|
|
178
246
|
fields: import("../commons").Inferred[];
|
|
179
|
-
}
|
|
247
|
+
} | {
|
|
248
|
+
type: import("../commons").PageType.VERIFICATION;
|
|
249
|
+
id: string;
|
|
250
|
+
title: import("../commons").TranslationConfig;
|
|
251
|
+
actions: {
|
|
252
|
+
verify: {
|
|
253
|
+
label: import("../commons").TranslationConfig;
|
|
254
|
+
};
|
|
255
|
+
cancel: {
|
|
256
|
+
label: import("../commons").TranslationConfig;
|
|
257
|
+
confirmation: {
|
|
258
|
+
title: import("../commons").TranslationConfig;
|
|
259
|
+
body: import("../commons").TranslationConfig;
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
fields: import("../commons").Inferred[];
|
|
264
|
+
})[];
|
|
180
265
|
review: {
|
|
181
266
|
title: import("../commons").TranslationConfig;
|
|
182
267
|
fields: import("../commons").Inferred[];
|
|
183
268
|
};
|
|
184
269
|
}[];
|
|
185
|
-
isDuplicate: boolean;
|
|
186
270
|
draft?: boolean | undefined;
|
|
187
271
|
} | {
|
|
188
272
|
type: "REGISTER";
|
|
@@ -201,11 +285,29 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
|
201
285
|
label: import("../commons").TranslationConfig;
|
|
202
286
|
};
|
|
203
287
|
label: import("../commons").TranslationConfig;
|
|
204
|
-
pages: {
|
|
288
|
+
pages: ({
|
|
289
|
+
type: import("../commons").PageType.FORM;
|
|
290
|
+
id: string;
|
|
291
|
+
title: import("../commons").TranslationConfig;
|
|
292
|
+
fields: import("../commons").Inferred[];
|
|
293
|
+
} | {
|
|
294
|
+
type: import("../commons").PageType.VERIFICATION;
|
|
205
295
|
id: string;
|
|
206
296
|
title: import("../commons").TranslationConfig;
|
|
297
|
+
actions: {
|
|
298
|
+
verify: {
|
|
299
|
+
label: import("../commons").TranslationConfig;
|
|
300
|
+
};
|
|
301
|
+
cancel: {
|
|
302
|
+
label: import("../commons").TranslationConfig;
|
|
303
|
+
confirmation: {
|
|
304
|
+
title: import("../commons").TranslationConfig;
|
|
305
|
+
body: import("../commons").TranslationConfig;
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
};
|
|
207
309
|
fields: import("../commons").Inferred[];
|
|
208
|
-
}[];
|
|
310
|
+
})[];
|
|
209
311
|
review: {
|
|
210
312
|
title: import("../commons").TranslationConfig;
|
|
211
313
|
fields: import("../commons").Inferred[];
|
|
@@ -229,11 +331,29 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
|
229
331
|
label: import("../commons").TranslationConfig;
|
|
230
332
|
};
|
|
231
333
|
label: import("../commons").TranslationConfig;
|
|
232
|
-
pages: {
|
|
334
|
+
pages: ({
|
|
335
|
+
type: import("../commons").PageType.FORM;
|
|
233
336
|
id: string;
|
|
234
337
|
title: import("../commons").TranslationConfig;
|
|
235
338
|
fields: import("../commons").Inferred[];
|
|
236
|
-
}
|
|
339
|
+
} | {
|
|
340
|
+
type: import("../commons").PageType.VERIFICATION;
|
|
341
|
+
id: string;
|
|
342
|
+
title: import("../commons").TranslationConfig;
|
|
343
|
+
actions: {
|
|
344
|
+
verify: {
|
|
345
|
+
label: import("../commons").TranslationConfig;
|
|
346
|
+
};
|
|
347
|
+
cancel: {
|
|
348
|
+
label: import("../commons").TranslationConfig;
|
|
349
|
+
confirmation: {
|
|
350
|
+
title: import("../commons").TranslationConfig;
|
|
351
|
+
body: import("../commons").TranslationConfig;
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
fields: import("../commons").Inferred[];
|
|
356
|
+
})[];
|
|
237
357
|
review: {
|
|
238
358
|
title: import("../commons").TranslationConfig;
|
|
239
359
|
fields: import("../commons").Inferred[];
|
|
@@ -257,11 +377,29 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
|
257
377
|
label: import("../commons").TranslationConfig;
|
|
258
378
|
};
|
|
259
379
|
label: import("../commons").TranslationConfig;
|
|
260
|
-
pages: {
|
|
380
|
+
pages: ({
|
|
381
|
+
type: import("../commons").PageType.FORM;
|
|
382
|
+
id: string;
|
|
383
|
+
title: import("../commons").TranslationConfig;
|
|
384
|
+
fields: import("../commons").Inferred[];
|
|
385
|
+
} | {
|
|
386
|
+
type: import("../commons").PageType.VERIFICATION;
|
|
261
387
|
id: string;
|
|
262
388
|
title: import("../commons").TranslationConfig;
|
|
389
|
+
actions: {
|
|
390
|
+
verify: {
|
|
391
|
+
label: import("../commons").TranslationConfig;
|
|
392
|
+
};
|
|
393
|
+
cancel: {
|
|
394
|
+
label: import("../commons").TranslationConfig;
|
|
395
|
+
confirmation: {
|
|
396
|
+
title: import("../commons").TranslationConfig;
|
|
397
|
+
body: import("../commons").TranslationConfig;
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
};
|
|
263
401
|
fields: import("../commons").Inferred[];
|
|
264
|
-
}[];
|
|
402
|
+
})[];
|
|
265
403
|
review: {
|
|
266
404
|
title: import("../commons").TranslationConfig;
|
|
267
405
|
fields: import("../commons").Inferred[];
|
|
@@ -285,26 +423,80 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
|
285
423
|
label: import("../commons").TranslationConfig;
|
|
286
424
|
};
|
|
287
425
|
label: import("../commons").TranslationConfig;
|
|
288
|
-
pages: {
|
|
426
|
+
pages: ({
|
|
427
|
+
type: import("../commons").PageType.FORM;
|
|
289
428
|
id: string;
|
|
290
429
|
title: import("../commons").TranslationConfig;
|
|
291
430
|
fields: import("../commons").Inferred[];
|
|
292
|
-
}
|
|
431
|
+
} | {
|
|
432
|
+
type: import("../commons").PageType.VERIFICATION;
|
|
433
|
+
id: string;
|
|
434
|
+
title: import("../commons").TranslationConfig;
|
|
435
|
+
actions: {
|
|
436
|
+
verify: {
|
|
437
|
+
label: import("../commons").TranslationConfig;
|
|
438
|
+
};
|
|
439
|
+
cancel: {
|
|
440
|
+
label: import("../commons").TranslationConfig;
|
|
441
|
+
confirmation: {
|
|
442
|
+
title: import("../commons").TranslationConfig;
|
|
443
|
+
body: import("../commons").TranslationConfig;
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
fields: import("../commons").Inferred[];
|
|
448
|
+
})[];
|
|
293
449
|
review: {
|
|
294
450
|
title: import("../commons").TranslationConfig;
|
|
295
451
|
fields: import("../commons").Inferred[];
|
|
296
452
|
};
|
|
297
453
|
}[];
|
|
298
|
-
onboardingForm: {
|
|
454
|
+
onboardingForm: ({
|
|
455
|
+
type: import("../commons").PageType.FORM;
|
|
299
456
|
id: string;
|
|
300
457
|
title: import("../commons").TranslationConfig;
|
|
301
458
|
fields: import("../commons").Inferred[];
|
|
302
|
-
}
|
|
303
|
-
|
|
459
|
+
} | {
|
|
460
|
+
type: import("../commons").PageType.VERIFICATION;
|
|
304
461
|
id: string;
|
|
305
462
|
title: import("../commons").TranslationConfig;
|
|
463
|
+
actions: {
|
|
464
|
+
verify: {
|
|
465
|
+
label: import("../commons").TranslationConfig;
|
|
466
|
+
};
|
|
467
|
+
cancel: {
|
|
468
|
+
label: import("../commons").TranslationConfig;
|
|
469
|
+
confirmation: {
|
|
470
|
+
title: import("../commons").TranslationConfig;
|
|
471
|
+
body: import("../commons").TranslationConfig;
|
|
472
|
+
};
|
|
473
|
+
};
|
|
474
|
+
};
|
|
306
475
|
fields: import("../commons").Inferred[];
|
|
307
|
-
}[];
|
|
476
|
+
})[];
|
|
477
|
+
additionalDetailsForm: ({
|
|
478
|
+
type: import("../commons").PageType.FORM;
|
|
479
|
+
id: string;
|
|
480
|
+
title: import("../commons").TranslationConfig;
|
|
481
|
+
fields: import("../commons").Inferred[];
|
|
482
|
+
} | {
|
|
483
|
+
type: import("../commons").PageType.VERIFICATION;
|
|
484
|
+
id: string;
|
|
485
|
+
title: import("../commons").TranslationConfig;
|
|
486
|
+
actions: {
|
|
487
|
+
verify: {
|
|
488
|
+
label: import("../commons").TranslationConfig;
|
|
489
|
+
};
|
|
490
|
+
cancel: {
|
|
491
|
+
label: import("../commons").TranslationConfig;
|
|
492
|
+
confirmation: {
|
|
493
|
+
title: import("../commons").TranslationConfig;
|
|
494
|
+
body: import("../commons").TranslationConfig;
|
|
495
|
+
};
|
|
496
|
+
};
|
|
497
|
+
};
|
|
498
|
+
fields: import("../commons").Inferred[];
|
|
499
|
+
})[];
|
|
308
500
|
draft?: boolean | undefined;
|
|
309
501
|
} | {
|
|
310
502
|
type: "REJECT_CORRECTION";
|
|
@@ -323,11 +515,29 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
|
323
515
|
label: import("../commons").TranslationConfig;
|
|
324
516
|
};
|
|
325
517
|
label: import("../commons").TranslationConfig;
|
|
326
|
-
pages: {
|
|
518
|
+
pages: ({
|
|
519
|
+
type: import("../commons").PageType.FORM;
|
|
520
|
+
id: string;
|
|
521
|
+
title: import("../commons").TranslationConfig;
|
|
522
|
+
fields: import("../commons").Inferred[];
|
|
523
|
+
} | {
|
|
524
|
+
type: import("../commons").PageType.VERIFICATION;
|
|
327
525
|
id: string;
|
|
328
526
|
title: import("../commons").TranslationConfig;
|
|
527
|
+
actions: {
|
|
528
|
+
verify: {
|
|
529
|
+
label: import("../commons").TranslationConfig;
|
|
530
|
+
};
|
|
531
|
+
cancel: {
|
|
532
|
+
label: import("../commons").TranslationConfig;
|
|
533
|
+
confirmation: {
|
|
534
|
+
title: import("../commons").TranslationConfig;
|
|
535
|
+
body: import("../commons").TranslationConfig;
|
|
536
|
+
};
|
|
537
|
+
};
|
|
538
|
+
};
|
|
329
539
|
fields: import("../commons").Inferred[];
|
|
330
|
-
}[];
|
|
540
|
+
})[];
|
|
331
541
|
review: {
|
|
332
542
|
title: import("../commons").TranslationConfig;
|
|
333
543
|
fields: import("../commons").Inferred[];
|
|
@@ -351,11 +561,29 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
|
351
561
|
label: import("../commons").TranslationConfig;
|
|
352
562
|
};
|
|
353
563
|
label: import("../commons").TranslationConfig;
|
|
354
|
-
pages: {
|
|
564
|
+
pages: ({
|
|
565
|
+
type: import("../commons").PageType.FORM;
|
|
566
|
+
id: string;
|
|
567
|
+
title: import("../commons").TranslationConfig;
|
|
568
|
+
fields: import("../commons").Inferred[];
|
|
569
|
+
} | {
|
|
570
|
+
type: import("../commons").PageType.VERIFICATION;
|
|
355
571
|
id: string;
|
|
356
572
|
title: import("../commons").TranslationConfig;
|
|
573
|
+
actions: {
|
|
574
|
+
verify: {
|
|
575
|
+
label: import("../commons").TranslationConfig;
|
|
576
|
+
};
|
|
577
|
+
cancel: {
|
|
578
|
+
label: import("../commons").TranslationConfig;
|
|
579
|
+
confirmation: {
|
|
580
|
+
title: import("../commons").TranslationConfig;
|
|
581
|
+
body: import("../commons").TranslationConfig;
|
|
582
|
+
};
|
|
583
|
+
};
|
|
584
|
+
};
|
|
357
585
|
fields: import("../commons").Inferred[];
|
|
358
|
-
}[];
|
|
586
|
+
})[];
|
|
359
587
|
review: {
|
|
360
588
|
title: import("../commons").TranslationConfig;
|
|
361
589
|
fields: import("../commons").Inferred[];
|
|
@@ -379,11 +607,29 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
|
379
607
|
label: import("../commons").TranslationConfig;
|
|
380
608
|
};
|
|
381
609
|
label: import("../commons").TranslationConfig;
|
|
382
|
-
pages: {
|
|
610
|
+
pages: ({
|
|
611
|
+
type: import("../commons").PageType.FORM;
|
|
612
|
+
id: string;
|
|
613
|
+
title: import("../commons").TranslationConfig;
|
|
614
|
+
fields: import("../commons").Inferred[];
|
|
615
|
+
} | {
|
|
616
|
+
type: import("../commons").PageType.VERIFICATION;
|
|
383
617
|
id: string;
|
|
384
618
|
title: import("../commons").TranslationConfig;
|
|
619
|
+
actions: {
|
|
620
|
+
verify: {
|
|
621
|
+
label: import("../commons").TranslationConfig;
|
|
622
|
+
};
|
|
623
|
+
cancel: {
|
|
624
|
+
label: import("../commons").TranslationConfig;
|
|
625
|
+
confirmation: {
|
|
626
|
+
title: import("../commons").TranslationConfig;
|
|
627
|
+
body: import("../commons").TranslationConfig;
|
|
628
|
+
};
|
|
629
|
+
};
|
|
630
|
+
};
|
|
385
631
|
fields: import("../commons").Inferred[];
|
|
386
|
-
}[];
|
|
632
|
+
})[];
|
|
387
633
|
review: {
|
|
388
634
|
title: import("../commons").TranslationConfig;
|
|
389
635
|
fields: import("../commons").Inferred[];
|
|
@@ -4346,9 +4592,9 @@ export declare const appRouter: import("@trpc/server/unstable-core-do-not-import
|
|
|
4346
4592
|
filename: string;
|
|
4347
4593
|
originalFilename: string;
|
|
4348
4594
|
}[]>;
|
|
4349
|
-
duplicates: string[];
|
|
4350
4595
|
eventId: string;
|
|
4351
4596
|
transactionId: string;
|
|
4597
|
+
duplicates: string[];
|
|
4352
4598
|
type?: "VALIDATE" | undefined;
|
|
4353
4599
|
metadata?: Record<string, string | number | boolean | {
|
|
4354
4600
|
type: string;
|
|
@@ -6,6 +6,33 @@ import { TranslationConfig } from '../events/TranslationConfig';
|
|
|
6
6
|
export declare function validate(schema: JSONSchema, data: ConditionalParameters): boolean;
|
|
7
7
|
export declare function isFieldVisible(field: FieldConfig, form: ActionUpdate | EventState): boolean;
|
|
8
8
|
export declare function isFieldEnabled(field: FieldConfig, form: ActionUpdate | EventState): boolean;
|
|
9
|
+
export declare const errorMessages: {
|
|
10
|
+
hiddenField: {
|
|
11
|
+
id: string;
|
|
12
|
+
defaultMessage: string;
|
|
13
|
+
description: string;
|
|
14
|
+
};
|
|
15
|
+
invalidDate: {
|
|
16
|
+
defaultMessage: string;
|
|
17
|
+
description: string;
|
|
18
|
+
id: string;
|
|
19
|
+
};
|
|
20
|
+
invalidEmail: {
|
|
21
|
+
defaultMessage: string;
|
|
22
|
+
description: string;
|
|
23
|
+
id: string;
|
|
24
|
+
};
|
|
25
|
+
requiredField: {
|
|
26
|
+
defaultMessage: string;
|
|
27
|
+
description: string;
|
|
28
|
+
id: string;
|
|
29
|
+
};
|
|
30
|
+
invalidInput: {
|
|
31
|
+
defaultMessage: string;
|
|
32
|
+
description: string;
|
|
33
|
+
id: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
9
36
|
/**
|
|
10
37
|
* Custom error map for Zod to override the default error messages in intl-formik format.
|
|
11
38
|
*/
|