@opencrvs/toolkit 1.9.4-rc.0e695b2 → 1.9.4-rc.469f912

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