@opencrvs/toolkit 2.0.0-rc.087cdbb → 2.0.0-rc.0bd0043

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.
@@ -8,6 +8,7 @@ export declare const BaseActionInput: z.ZodObject<{
8
8
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
9
9
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
10
10
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
11
+ waitFor: z.ZodOptional<z.ZodBoolean>;
11
12
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
12
13
  }, z.core.$strip>;
13
14
  export declare const RegisterActionInput: z.ZodObject<{
@@ -19,6 +20,7 @@ export declare const RegisterActionInput: z.ZodObject<{
19
20
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
20
21
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
21
22
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
23
+ waitFor: z.ZodOptional<z.ZodBoolean>;
22
24
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
23
25
  type: z.ZodDefault<z.ZodLiteral<"REGISTER">>;
24
26
  registrationNumber: z.ZodOptional<z.ZodString>;
@@ -33,6 +35,7 @@ export declare const NotifyActionInput: z.ZodObject<{
33
35
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
34
36
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
35
37
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
38
+ waitFor: z.ZodOptional<z.ZodBoolean>;
36
39
  type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
37
40
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
38
41
  }, z.core.$strip>;
@@ -46,6 +49,7 @@ export declare const DeclareActionInput: z.ZodObject<{
46
49
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
47
50
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
48
51
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
52
+ waitFor: z.ZodOptional<z.ZodBoolean>;
49
53
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
50
54
  type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
51
55
  }, z.core.$strip>;
@@ -58,6 +62,7 @@ export declare const EditActionInput: z.ZodObject<{
58
62
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
59
63
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
60
64
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
65
+ waitFor: z.ZodOptional<z.ZodBoolean>;
61
66
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
62
67
  type: z.ZodDefault<z.ZodLiteral<"EDIT">>;
63
68
  content: z.ZodObject<{
@@ -74,6 +79,7 @@ export declare const PrintCertificateActionInput: z.ZodObject<{
74
79
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
75
80
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
76
81
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
82
+ waitFor: z.ZodOptional<z.ZodBoolean>;
77
83
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
78
84
  type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
79
85
  content: z.ZodOptional<z.ZodObject<{
@@ -90,6 +96,7 @@ export declare const RejectDeclarationActionInput: z.ZodObject<{
90
96
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
91
97
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
92
98
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
99
+ waitFor: z.ZodOptional<z.ZodBoolean>;
93
100
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
94
101
  type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
95
102
  content: z.ZodObject<{
@@ -106,6 +113,7 @@ export declare const DuplicateDetectedActionInput: z.ZodObject<{
106
113
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
107
114
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
108
115
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
116
+ waitFor: z.ZodOptional<z.ZodBoolean>;
109
117
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
110
118
  type: z.ZodDefault<z.ZodLiteral<"DUPLICATE_DETECTED">>;
111
119
  content: z.ZodObject<{
@@ -124,6 +132,7 @@ export declare const MarkAsDuplicateActionInput: z.ZodObject<{
124
132
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
125
133
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
126
134
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
135
+ waitFor: z.ZodOptional<z.ZodBoolean>;
127
136
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
128
137
  type: z.ZodDefault<z.ZodLiteral<"MARK_AS_DUPLICATE">>;
129
138
  content: z.ZodOptional<z.ZodObject<{
@@ -140,6 +149,7 @@ export declare const MarkNotDuplicateActionInput: z.ZodObject<{
140
149
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
141
150
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
142
151
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
152
+ waitFor: z.ZodOptional<z.ZodBoolean>;
143
153
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
144
154
  type: z.ZodDefault<z.ZodLiteral<"MARK_AS_NOT_DUPLICATE">>;
145
155
  }, z.core.$strip>;
@@ -153,6 +163,7 @@ export declare const ArchiveActionInput: z.ZodObject<{
153
163
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
154
164
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
155
165
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
166
+ waitFor: z.ZodOptional<z.ZodBoolean>;
156
167
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
157
168
  type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
158
169
  content: z.ZodObject<{
@@ -169,6 +180,7 @@ export declare const AssignActionInput: z.ZodObject<{
169
180
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
170
181
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
171
182
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
183
+ waitFor: z.ZodOptional<z.ZodBoolean>;
172
184
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
173
185
  type: z.ZodLiteral<"ASSIGN">;
174
186
  assignedTo: z.ZodString;
@@ -183,6 +195,7 @@ export declare const UnassignActionInput: z.ZodObject<{
183
195
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
184
196
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
185
197
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
198
+ waitFor: z.ZodOptional<z.ZodBoolean>;
186
199
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
187
200
  type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
188
201
  assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
@@ -197,6 +210,7 @@ export declare const RequestCorrectionActionInput: z.ZodObject<{
197
210
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
198
211
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
199
212
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
213
+ waitFor: z.ZodOptional<z.ZodBoolean>;
200
214
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
201
215
  type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
202
216
  }, z.core.$strip>;
@@ -210,6 +224,7 @@ export declare const RejectCorrectionActionInput: z.ZodObject<{
210
224
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
211
225
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
212
226
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
227
+ waitFor: z.ZodOptional<z.ZodBoolean>;
213
228
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
214
229
  requestId: z.ZodString;
215
230
  type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
@@ -227,6 +242,7 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<{
227
242
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
228
243
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
229
244
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
245
+ waitFor: z.ZodOptional<z.ZodBoolean>;
230
246
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
231
247
  requestId: z.ZodString;
232
248
  type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
@@ -241,6 +257,7 @@ export declare const ReadActionInput: z.ZodObject<{
241
257
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
242
258
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
243
259
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
260
+ waitFor: z.ZodOptional<z.ZodBoolean>;
244
261
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
245
262
  type: z.ZodDefault<z.ZodLiteral<"READ">>;
246
263
  }, z.core.$strip>;
@@ -258,6 +275,7 @@ export declare const CustomActionInput: z.ZodObject<{
258
275
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
259
276
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
260
277
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
278
+ waitFor: z.ZodOptional<z.ZodBoolean>;
261
279
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
262
280
  type: z.ZodDefault<z.ZodLiteral<"CUSTOM">>;
263
281
  customActionType: z.ZodString;
@@ -280,6 +298,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
280
298
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
281
299
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
282
300
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
301
+ waitFor: z.ZodOptional<z.ZodBoolean>;
283
302
  type: z.ZodDefault<z.ZodLiteral<"CREATE">>;
284
303
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
285
304
  }, z.core.$strip>, z.ZodObject<{
@@ -291,6 +310,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
291
310
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
292
311
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
293
312
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
313
+ waitFor: z.ZodOptional<z.ZodBoolean>;
294
314
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
295
315
  type: z.ZodDefault<z.ZodLiteral<"REGISTER">>;
296
316
  registrationNumber: z.ZodOptional<z.ZodString>;
@@ -303,6 +323,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
303
323
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
304
324
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
305
325
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
326
+ waitFor: z.ZodOptional<z.ZodBoolean>;
306
327
  type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
307
328
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
308
329
  }, z.core.$strip>, z.ZodObject<{
@@ -314,6 +335,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
314
335
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
315
336
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
316
337
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
338
+ waitFor: z.ZodOptional<z.ZodBoolean>;
317
339
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
318
340
  type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
319
341
  }, z.core.$strip>, z.ZodObject<{
@@ -325,6 +347,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
325
347
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
326
348
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
327
349
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
350
+ waitFor: z.ZodOptional<z.ZodBoolean>;
328
351
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
329
352
  type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
330
353
  content: z.ZodObject<{
@@ -339,6 +362,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
339
362
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
340
363
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
341
364
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
365
+ waitFor: z.ZodOptional<z.ZodBoolean>;
342
366
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
343
367
  type: z.ZodDefault<z.ZodLiteral<"DUPLICATE_DETECTED">>;
344
368
  content: z.ZodObject<{
@@ -356,6 +380,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
356
380
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
357
381
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
358
382
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
383
+ waitFor: z.ZodOptional<z.ZodBoolean>;
359
384
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
360
385
  type: z.ZodDefault<z.ZodLiteral<"MARK_AS_DUPLICATE">>;
361
386
  content: z.ZodOptional<z.ZodObject<{
@@ -370,6 +395,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
370
395
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
371
396
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
372
397
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
398
+ waitFor: z.ZodOptional<z.ZodBoolean>;
373
399
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
374
400
  type: z.ZodDefault<z.ZodLiteral<"MARK_AS_NOT_DUPLICATE">>;
375
401
  }, z.core.$strip>, z.ZodObject<{
@@ -381,6 +407,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
381
407
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
382
408
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
383
409
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
410
+ waitFor: z.ZodOptional<z.ZodBoolean>;
384
411
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
385
412
  type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
386
413
  content: z.ZodObject<{
@@ -395,6 +422,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
395
422
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
396
423
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
397
424
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
425
+ waitFor: z.ZodOptional<z.ZodBoolean>;
398
426
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
399
427
  type: z.ZodLiteral<"ASSIGN">;
400
428
  assignedTo: z.ZodString;
@@ -407,6 +435,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
407
435
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
408
436
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
409
437
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
438
+ waitFor: z.ZodOptional<z.ZodBoolean>;
410
439
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
411
440
  type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
412
441
  assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
@@ -419,6 +448,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
419
448
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
420
449
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
421
450
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
451
+ waitFor: z.ZodOptional<z.ZodBoolean>;
422
452
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
423
453
  type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
424
454
  content: z.ZodOptional<z.ZodObject<{
@@ -433,6 +463,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
433
463
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
434
464
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
435
465
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
466
+ waitFor: z.ZodOptional<z.ZodBoolean>;
436
467
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
437
468
  type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
438
469
  }, z.core.$strip>, z.ZodObject<{
@@ -444,6 +475,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
444
475
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
445
476
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
446
477
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
478
+ waitFor: z.ZodOptional<z.ZodBoolean>;
447
479
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
448
480
  requestId: z.ZodString;
449
481
  type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
@@ -459,6 +491,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
459
491
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
460
492
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
461
493
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
494
+ waitFor: z.ZodOptional<z.ZodBoolean>;
462
495
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
463
496
  requestId: z.ZodString;
464
497
  type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
@@ -471,6 +504,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
471
504
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
472
505
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
473
506
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
507
+ waitFor: z.ZodOptional<z.ZodBoolean>;
474
508
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
475
509
  type: z.ZodDefault<z.ZodLiteral<"READ">>;
476
510
  }, z.core.$strip>, z.ZodObject<{
@@ -482,6 +516,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
482
516
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
483
517
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
484
518
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
519
+ waitFor: z.ZodOptional<z.ZodBoolean>;
485
520
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
486
521
  type: z.ZodDefault<z.ZodLiteral<"CUSTOM">>;
487
522
  customActionType: z.ZodString;
@@ -494,6 +529,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
494
529
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
495
530
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
496
531
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
532
+ waitFor: z.ZodOptional<z.ZodBoolean>;
497
533
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
498
534
  type: z.ZodDefault<z.ZodLiteral<"EDIT">>;
499
535
  content: z.ZodObject<{
@@ -53,6 +53,7 @@ export declare const DraftInput: z.ZodObject<{
53
53
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
54
54
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
55
55
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
56
+ waitFor: z.ZodOptional<z.ZodBoolean>;
56
57
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
57
58
  type: z.ZodEnum<{
58
59
  CUSTOM: "CUSTOM";
@@ -20,7 +20,6 @@ export declare const EventIndex: z.ZodObject<{
20
20
  }>>>;
21
21
  acceptedAt: z.ZodISODateTime;
22
22
  createdByRole: z.ZodOptional<z.ZodString>;
23
- createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
23
  }, z.core.$strip>>>;
25
24
  REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
26
25
  createdAt: z.ZodISODateTime;
@@ -32,7 +31,6 @@ export declare const EventIndex: z.ZodObject<{
32
31
  }>>>;
33
32
  acceptedAt: z.ZodISODateTime;
34
33
  createdByRole: z.ZodOptional<z.ZodString>;
35
- createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
34
  registrationNumber: z.ZodString;
37
35
  }, z.core.$strip>>>;
38
36
  }, z.core.$strip>;
@@ -46,7 +44,6 @@ export declare const EventIndex: z.ZodObject<{
46
44
  }>>>;
47
45
  updatedByUserRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
46
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
49
- createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
50
47
  updatedAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
51
48
  updatedAt: z.ZodISODateTime;
52
49
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -23,7 +23,6 @@ export declare const ActionCreationMetadata: z.ZodObject<{
23
23
  }>>>;
24
24
  acceptedAt: z.ZodISODateTime;
25
25
  createdByRole: z.ZodOptional<z.ZodString>;
26
- createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
26
  }, z.core.$strip>;
28
27
  export type ActionCreationMetadata = z.infer<typeof ActionCreationMetadata>;
29
28
  export declare const RegistrationCreationMetadata: z.ZodObject<{
@@ -36,7 +35,6 @@ export declare const RegistrationCreationMetadata: z.ZodObject<{
36
35
  }>>>;
37
36
  acceptedAt: z.ZodISODateTime;
38
37
  createdByRole: z.ZodOptional<z.ZodString>;
39
- createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
38
  registrationNumber: z.ZodString;
41
39
  }, z.core.$strip>;
42
40
  export type RegistrationCreationMetadata = z.infer<typeof RegistrationCreationMetadata>;
@@ -51,7 +49,6 @@ export declare const LegalStatuses: z.ZodObject<{
51
49
  }>>>;
52
50
  acceptedAt: z.ZodISODateTime;
53
51
  createdByRole: z.ZodOptional<z.ZodString>;
54
- createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
52
  }, z.core.$strip>>>;
56
53
  REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
57
54
  createdAt: z.ZodISODateTime;
@@ -63,7 +60,6 @@ export declare const LegalStatuses: z.ZodObject<{
63
60
  }>>>;
64
61
  acceptedAt: z.ZodISODateTime;
65
62
  createdByRole: z.ZodOptional<z.ZodString>;
66
- createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
63
  registrationNumber: z.ZodString;
68
64
  }, z.core.$strip>>>;
69
65
  }, z.core.$strip>;
@@ -93,7 +89,6 @@ export declare const EventMetadata: z.ZodObject<{
93
89
  }>>>;
94
90
  acceptedAt: z.ZodISODateTime;
95
91
  createdByRole: z.ZodOptional<z.ZodString>;
96
- createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
92
  }, z.core.$strip>>>;
98
93
  REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
99
94
  createdAt: z.ZodISODateTime;
@@ -105,7 +100,6 @@ export declare const EventMetadata: z.ZodObject<{
105
100
  }>>>;
106
101
  acceptedAt: z.ZodISODateTime;
107
102
  createdByRole: z.ZodOptional<z.ZodString>;
108
- createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
103
  registrationNumber: z.ZodString;
110
104
  }, z.core.$strip>>>;
111
105
  }, z.core.$strip>;
@@ -119,7 +113,6 @@ export declare const EventMetadata: z.ZodObject<{
119
113
  }>>>;
120
114
  updatedByUserRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
115
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
122
- createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
123
116
  updatedAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
124
117
  updatedAt: z.ZodISODateTime;
125
118
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -9,7 +9,6 @@ import { UUID } from '../../uuid';
9
9
  import { DocumentPath } from '../../documents';
10
10
  export declare function getStatusFromActions(actions: Array<Action>): "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
11
11
  export declare function getAssignedUserFromActions(actions: Array<ActionDocument>): string | null;
12
- export declare function getAssignedUserSignatureFromActions(actions: Array<ActionDocument>): string | null;
13
12
  type NonNullableDeep<T> = T extends [unknown, ...unknown[]] ? {
14
13
  [K in keyof T]: NonNullableDeep<NonNullable<T[K]>>;
15
14
  } : T extends UUID ? T : T extends DocumentPath ? T : T extends string ? NonNullable<T> : T extends (infer U)[] ? NonNullableDeep<U>[] : T extends object ? {
@@ -73,7 +72,6 @@ export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Dr
73
72
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
74
73
  createdByUserType?: "user" | "system" | null | undefined;
75
74
  createdByRole?: string | undefined;
76
- createdBySignature?: string | null | undefined;
77
75
  } | null | undefined;
78
76
  REGISTERED?: {
79
77
  createdAt: string;
@@ -83,7 +81,6 @@ export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Dr
83
81
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
84
82
  createdByUserType?: "user" | "system" | null | undefined;
85
83
  createdByRole?: string | undefined;
86
- createdBySignature?: string | null | undefined;
87
84
  } | null | undefined;
88
85
  };
89
86
  createdAt: string;
@@ -101,7 +98,6 @@ export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Dr
101
98
  createdByUserType?: "user" | "system" | null | undefined;
102
99
  updatedByUserRole?: string | null | undefined;
103
100
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
104
- createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
105
101
  updatedAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
106
102
  assignedTo?: string | null | undefined;
107
103
  updatedBy?: string | null | undefined;
@@ -312,7 +312,6 @@ export declare function getLegalStatuses(actions: Action[]): {
312
312
  createdAtLocation: (string & import("zod").$brand<"UUID">) | null | undefined;
313
313
  acceptedAt: string;
314
314
  createdByRole: string | undefined;
315
- createdBySignature: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
316
315
  registrationNumber: string | null | undefined;
317
316
  } | null;
318
317
  REGISTERED: {
@@ -322,7 +321,6 @@ export declare function getLegalStatuses(actions: Action[]): {
322
321
  createdAtLocation: (string & import("zod").$brand<"UUID">) | null | undefined;
323
322
  acceptedAt: string;
324
323
  createdByRole: string | undefined;
325
- createdBySignature: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
326
324
  registrationNumber: string | null | undefined;
327
325
  } | null;
328
326
  };
@@ -365,7 +365,9 @@ var ScopeType2 = z6.enum([
365
365
  var EncodedScope2 = z6.string().brand("EncodedScope");
366
366
  var DEFAULT_SCOPE_OPTIONS = {
367
367
  placeOfEvent: JurisdictionFilter.enum.all,
368
- accessLevel: JurisdictionFilter.enum.all
368
+ accessLevel: JurisdictionFilter.enum.all,
369
+ registeredIn: JurisdictionFilter.enum.all,
370
+ declaredIn: JurisdictionFilter.enum.all
369
371
  };
370
372
 
371
373
  // ../commons/src/users/userReferences.ts
@@ -306,7 +306,6 @@ __export(events_exports, {
306
306
  getAllUniqueFields: () => getAllUniqueFields,
307
307
  getAnnotationFromDrafts: () => getAnnotationFromDrafts,
308
308
  getAssignedUserFromActions: () => getAssignedUserFromActions,
309
- getAssignedUserSignatureFromActions: () => getAssignedUserSignatureFromActions,
310
309
  getAssignmentStatus: () => getAssignmentStatus,
311
310
  getAvailableActionsForEvent: () => getAvailableActionsForEvent,
312
311
  getAvailableRolesForUserUpdatePayload: () => getAvailableRolesForUserUpdatePayload,
@@ -705,7 +704,9 @@ var decodeScope = (query) => {
705
704
  };
706
705
  var DEFAULT_SCOPE_OPTIONS = {
707
706
  placeOfEvent: JurisdictionFilter.enum.all,
708
- accessLevel: JurisdictionFilter.enum.all
707
+ accessLevel: JurisdictionFilter.enum.all,
708
+ registeredIn: JurisdictionFilter.enum.all,
709
+ declaredIn: JurisdictionFilter.enum.all
709
710
  };
710
711
  function getAcceptedScopesByType({
711
712
  acceptedScopes,
@@ -1078,7 +1079,10 @@ var ActionConditional = z7.discriminatedUnion("type", [
1078
1079
  ShowConditional,
1079
1080
  // Action can be shown to the user in the list but as disabled
1080
1081
  EnableConditional
1081
- ]);
1082
+ ]).meta({
1083
+ description: "Action conditional configuration",
1084
+ id: "ActionConditional"
1085
+ });
1082
1086
  var DisplayOnReviewConditional = z7.object({
1083
1087
  type: z7.literal(ConditionalType.DISPLAY_ON_REVIEW),
1084
1088
  conditional: Conditional
@@ -1414,28 +1418,20 @@ function schemaPriority(schema) {
1414
1418
  return idx === -1 ? 9999 : idx;
1415
1419
  }
1416
1420
  function safeUnion(schemas) {
1421
+ const sortedSchemas = [...schemas].sort(
1422
+ (a, b) => schemaPriority(a) - schemaPriority(b)
1423
+ );
1417
1424
  return z12.any().superRefine((val, ctx) => {
1418
- const successful = schemas.filter((s) => s.safeParse(val).success);
1419
- if (successful.length === 1) {
1420
- return;
1421
- }
1422
- if (successful.length === 0) {
1423
- ctx.addIssue({
1424
- code: "invalid_type",
1425
- expected: "custom",
1426
- message: "Value does not match any schema"
1427
- });
1428
- return;
1429
- }
1430
- successful.sort((a, b) => schemaPriority(a) - schemaPriority(b));
1431
- const best = successful[0];
1432
- if (!best.safeParse(val).success) {
1433
- ctx.addIssue({
1434
- expected: "custom",
1435
- code: "invalid_type",
1436
- message: "Value did not match the best schema"
1437
- });
1425
+ for (const schema of sortedSchemas) {
1426
+ if (schema.safeParse(val).success) {
1427
+ return;
1428
+ }
1438
1429
  }
1430
+ ctx.addIssue({
1431
+ code: "invalid_type",
1432
+ expected: "custom",
1433
+ message: "Value does not match any schema"
1434
+ });
1439
1435
  }).meta({
1440
1436
  description: "Value that matches exactly one of the possible schema types (TextValue, DateValue, DateRangeFieldValue). The best matching schema is chosen by priority."
1441
1437
  });
@@ -1745,6 +1741,9 @@ var FlagConfig = z15.object({
1745
1741
  "Indicates if this flag expects an action to be performed to be cleared."
1746
1742
  ),
1747
1743
  label: TranslationConfig.describe("Human readable label of the flag.")
1744
+ }).meta({
1745
+ description: "Flag configuration",
1746
+ id: "FlagConfig"
1748
1747
  });
1749
1748
  var ActionFlagConfig = z15.object({
1750
1749
  id: Flag,
@@ -1752,6 +1751,9 @@ var ActionFlagConfig = z15.object({
1752
1751
  conditional: Conditional.optional().describe(
1753
1752
  "When conditional is met, the operation is performed on the flag. If not provided, the operation is performed unconditionally."
1754
1753
  )
1754
+ }).meta({
1755
+ description: "Action flag configuration",
1756
+ id: "ActionFlagConfig"
1755
1757
  });
1756
1758
 
1757
1759
  // ../commons/src/events/EventMetadata.ts
@@ -1773,8 +1775,7 @@ var ActionCreationMetadata = z16.object({
1773
1775
  ),
1774
1776
  createdByUserType: z16.enum(["user", "system"]).nullish().describe("Whether the user is a normal user or a system."),
1775
1777
  acceptedAt: z16.iso.datetime().describe("Timestamp when the action request was accepted."),
1776
- createdByRole: z16.string().optional().describe("Role of the user at the time of action request creation."),
1777
- createdBySignature: z16.string().nullish().describe("Signature of the user who created the action request.")
1778
+ createdByRole: z16.string().optional().describe("Role of the user at the time of action request creation.")
1778
1779
  });
1779
1780
  var RegistrationCreationMetadata = ActionCreationMetadata.extend({
1780
1781
  registrationNumber: z16.string().describe(
@@ -1802,9 +1803,6 @@ var EventMetadata = z16.object({
1802
1803
  createdAtLocation: UUID.nullish().describe(
1803
1804
  "Location of the user who created the event."
1804
1805
  ),
1805
- createdBySignature: DocumentPath.nullish().describe(
1806
- "Signature of the user who created the event."
1807
- ),
1808
1806
  updatedAtLocation: UUID.nullish().describe(
1809
1807
  "Location of the user who last changed the status."
1810
1808
  ),
@@ -2892,10 +2890,10 @@ var VerificationPageConfig = FormPageConfig.extend({
2892
2890
  type: z21.literal(PageTypes.enum.VERIFICATION),
2893
2891
  actions: VerificationActionConfig
2894
2892
  });
2895
- var PageConfig = z21.discriminatedUnion("type", [
2896
- FormPageConfig,
2897
- VerificationPageConfig
2898
- ]);
2893
+ var PageConfig = z21.discriminatedUnion("type", [FormPageConfig, VerificationPageConfig]).meta({
2894
+ description: "Page configuration",
2895
+ id: "PageConfig"
2896
+ });
2899
2897
 
2900
2898
  // ../commons/src/events/FormConfig.ts
2901
2899
  var DeclarationFormConfig = z22.object({
@@ -5901,6 +5899,7 @@ var BaseActionInput = z38.object({
5901
5899
  keepAssignment: z38.boolean().optional(),
5902
5900
  keepAssignmentIfAccepted: z38.boolean().optional(),
5903
5901
  keepAssignmentIfRejected: z38.boolean().optional(),
5902
+ waitFor: z38.boolean().optional(),
5904
5903
  // For normal users, the createdAtLocation is resolved on the backend from the user's primaryOfficeId.
5905
5904
  // @TODO: createdAtLocation should be limited to actions that system users can perform. For normal users, it should not be part of the base action.
5906
5905
  createdAtLocation: UUID.nullish().describe(
@@ -6154,7 +6153,6 @@ function getDeclarationActionCreationMetadata(actionType, actions) {
6154
6153
  createdAtLocation: requestAction?.createdAtLocation ?? acceptAction.createdAtLocation,
6155
6154
  acceptedAt: acceptAction.createdAt,
6156
6155
  createdByRole: requestAction?.createdByRole ?? acceptAction.createdByRole,
6157
- createdBySignature: requestAction?.createdBySignature ?? acceptAction.createdBySignature,
6158
6156
  registrationNumber
6159
6157
  };
6160
6158
  }
@@ -6368,17 +6366,6 @@ function getAssignedUserFromActions(actions) {
6368
6366
  return user2;
6369
6367
  }, null);
6370
6368
  }
6371
- function getAssignedUserSignatureFromActions(actions) {
6372
- return actions.reduce((signature, action) => {
6373
- if (action.type === ActionType.ASSIGN) {
6374
- return action.createdBySignature || null;
6375
- }
6376
- if (action.type === ActionType.UNASSIGN) {
6377
- return null;
6378
- }
6379
- return signature;
6380
- }, null);
6381
- }
6382
6369
  function deepDropNulls(obj) {
6383
6370
  if (Array.isArray(obj)) {
6384
6371
  return obj.map(deepDropNulls);
@@ -6474,10 +6461,8 @@ function getCurrentEventState(event2, config) {
6474
6461
  createdBy: creationAction.createdBy,
6475
6462
  createdByUserType: creationAction.createdByUserType,
6476
6463
  createdAtLocation: creationAction.createdAtLocation,
6477
- createdBySignature: creationAction.createdBySignature,
6478
6464
  updatedAt: acceptedActionMetadata.createdAt,
6479
6465
  assignedTo: getAssignedUserFromActions(acceptedActions),
6480
- assignedToSignature: getAssignedUserSignatureFromActions(acceptedActions),
6481
6466
  updatedBy: requestActionMetadata.createdBy,
6482
6467
  updatedAtLocation: requestActionMetadata.createdAtLocation,
6483
6468
  declaration,
@@ -9736,7 +9721,6 @@ var eventQueryDataGenerator = (overrides = {}, seed = 1) => {
9736
9721
  createdBy: overrides.createdBy ?? generateUuid(rng),
9737
9722
  createdAtLocation: overrides.createdAtLocation ?? generateUuid(rng),
9738
9723
  updatedAtLocation: overrides.updatedAtLocation ?? generateUuid(rng),
9739
- createdBySignature: overrides.createdBySignature ?? generateRandomSignature(rng),
9740
9724
  updatedAt: overrides.updatedAt ?? (0, import_date_fns4.addDays)(new Date(createdAt), 1).toISOString(),
9741
9725
  assignedTo: overrides.assignedTo ?? null,
9742
9726
  updatedBy: overrides.updatedBy ?? generateUuid(rng),
@@ -0,0 +1,3 @@
1
+ declare function main(): Promise<void>;
2
+ export { main };
3
+ //# sourceMappingURL=fix-accept-requested-registration-function-type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fix-accept-requested-registration-function-type.d.ts","sourceRoot":"","sources":["../../../src/migrations/v2.0/fix-accept-requested-registration-function-type.ts"],"names":[],"mappings":"AAuFA,iBAAe,IAAI,kBA6ClB;AAED,OAAO,EAAE,IAAI,EAAE,CAAA"}