@opencrvs/toolkit 1.9.4-rc.793f834 → 1.9.4-rc.f09603b

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 +28204 -2149
  2. package/dist/commons/conditionals/conditionals.d.ts +10 -1
  3. package/dist/commons/conditionals/validate.d.ts +11 -4
  4. package/dist/commons/events/ActionConfig.d.ts +23416 -1552
  5. package/dist/commons/events/ActionDocument.d.ts +803 -1856
  6. package/dist/commons/events/ActionInput.d.ts +277 -1073
  7. package/dist/commons/events/ActionType.d.ts +86 -9
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +228 -1238
  9. package/dist/commons/events/CompositeFieldValue.d.ts +27 -176
  10. package/dist/commons/events/Conditional.d.ts +26 -38
  11. package/dist/commons/events/Constants.d.ts +1 -1
  12. package/dist/commons/events/CountryConfigQueryInput.d.ts +931 -4169
  13. package/dist/commons/events/CreatedAtLocation.d.ts +1 -1
  14. package/dist/commons/events/DeduplicationConfig.d.ts +15 -150
  15. package/dist/commons/events/Draft.d.ts +70 -105
  16. package/dist/commons/events/DynamicFieldValue.d.ts +7 -91
  17. package/dist/commons/events/EventConfig.d.ts +18663 -2120
  18. package/dist/commons/events/EventConfigInput.d.ts +1 -1
  19. package/dist/commons/events/EventDocument.d.ts +320 -1332
  20. package/dist/commons/events/EventIndex.d.ts +197 -967
  21. package/dist/commons/events/EventInput.d.ts +2 -8
  22. package/dist/commons/events/EventMetadata.d.ts +106 -346
  23. package/dist/commons/events/FieldConfig.d.ts +4267 -11782
  24. package/dist/commons/events/FieldType.d.ts +20 -4
  25. package/dist/commons/events/FieldTypeMapping.d.ts +181 -813
  26. package/dist/commons/events/FieldValue.d.ts +83 -356
  27. package/dist/commons/events/Flag.d.ts +70 -0
  28. package/dist/commons/events/FormConfig.d.ts +13140 -721
  29. package/dist/commons/events/PageConfig.d.ts +8780 -319
  30. package/dist/commons/events/SummaryConfig.d.ts +14 -161
  31. package/dist/commons/events/TemplateConfig.d.ts +3 -3
  32. package/dist/commons/events/TranslationConfig.d.ts +2 -2
  33. package/dist/commons/events/WorkqueueColumnConfig.d.ts +74 -37
  34. package/dist/commons/events/WorkqueueConfig.d.ts +1691 -7156
  35. package/dist/commons/events/deduplication.d.ts +3 -3
  36. package/dist/commons/events/defineConfig.d.ts +25626 -150
  37. package/dist/commons/events/event.d.ts +4 -4
  38. package/dist/commons/events/index.d.ts +1 -0
  39. package/dist/commons/events/locations.d.ts +15 -19
  40. package/dist/commons/events/scopes.d.ts +5 -4
  41. package/dist/commons/events/state/availableActions.d.ts +2 -1
  42. package/dist/commons/events/state/flags.d.ts +21 -3
  43. package/dist/commons/events/state/index.d.ts +23 -19
  44. package/dist/commons/events/state/utils.d.ts +130 -112
  45. package/dist/commons/events/test.utils.d.ts +17 -8
  46. package/dist/commons/events/transactions.d.ts +1 -1
  47. package/dist/commons/events/utils.d.ts +51339 -362
  48. package/dist/commons/notification/UserNotifications.d.ts +55 -636
  49. package/dist/conditionals/index.d.ts.map +1 -1
  50. package/dist/conditionals/index.js +38 -5
  51. package/dist/events/deduplication.d.ts +3 -3
  52. package/dist/events/index.js +1810 -1550
  53. package/dist/notification/index.d.ts.map +1 -1
  54. package/dist/notification/index.js +1430 -1412
  55. package/dist/scopes/index.d.ts +167 -132
  56. package/dist/scopes/index.d.ts.map +1 -1
  57. package/dist/scopes/index.js +133 -94
  58. package/package.json +5 -5
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod/v4';
2
2
  export declare const TriggerEvent: {
3
3
  readonly USER_CREATED: "user-created";
4
4
  readonly USER_UPDATED: "user-updated";
@@ -16,37 +16,11 @@ export declare const Recipient: z.ZodObject<{
16
16
  firstname: z.ZodString;
17
17
  surname: z.ZodString;
18
18
  middlename: z.ZodOptional<z.ZodString>;
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
- }>>;
19
+ }, z.core.$strip>>;
28
20
  mobile: z.ZodOptional<z.ZodString>;
29
21
  email: z.ZodOptional<z.ZodString>;
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
- }>;
22
+ bcc: z.ZodOptional<z.ZodArray<z.ZodString>>;
23
+ }, z.core.$strip>;
50
24
  export type Recipient = z.infer<typeof Recipient>;
51
25
  export declare const BasePayload: z.ZodObject<{
52
26
  recipient: z.ZodObject<{
@@ -54,362 +28,79 @@ export declare const BasePayload: z.ZodObject<{
54
28
  firstname: z.ZodString;
55
29
  surname: z.ZodString;
56
30
  middlename: z.ZodOptional<z.ZodString>;
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
- }>>;
31
+ }, z.core.$strip>>;
66
32
  mobile: z.ZodOptional<z.ZodString>;
67
33
  email: z.ZodOptional<z.ZodString>;
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
- }>;
34
+ bcc: z.ZodOptional<z.ZodArray<z.ZodString>>;
35
+ }, z.core.$strip>;
36
+ }, z.core.$strip>;
111
37
  export type BasePayload = z.infer<typeof BasePayload>;
112
38
  export declare const TriggerPayload: {
113
- readonly "user-created": z.ZodObject<z.objectUtil.extendShape<{
39
+ readonly "user-created": z.ZodObject<{
114
40
  recipient: z.ZodObject<{
115
41
  name: z.ZodOptional<z.ZodObject<{
116
42
  firstname: z.ZodString;
117
43
  surname: z.ZodString;
118
44
  middlename: z.ZodOptional<z.ZodString>;
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
- }>>;
45
+ }, z.core.$strip>>;
128
46
  mobile: z.ZodOptional<z.ZodString>;
129
47
  email: z.ZodOptional<z.ZodString>;
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
- }, {
48
+ bcc: z.ZodOptional<z.ZodArray<z.ZodString>>;
49
+ }, z.core.$strip>;
151
50
  username: z.ZodString;
152
51
  temporaryPassword: z.ZodString;
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<{
52
+ }, z.core.$strip>;
53
+ readonly "user-updated": z.ZodObject<{
181
54
  recipient: z.ZodObject<{
182
55
  name: z.ZodOptional<z.ZodObject<{
183
56
  firstname: z.ZodString;
184
57
  surname: z.ZodString;
185
58
  middlename: z.ZodOptional<z.ZodString>;
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
- }>>;
59
+ }, z.core.$strip>>;
195
60
  mobile: z.ZodOptional<z.ZodString>;
196
61
  email: z.ZodOptional<z.ZodString>;
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
- }, {
62
+ bcc: z.ZodOptional<z.ZodArray<z.ZodString>>;
63
+ }, z.core.$strip>;
218
64
  oldUsername: z.ZodString;
219
65
  newUsername: z.ZodString;
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<{
66
+ }, z.core.$strip>;
67
+ readonly "username-reminder": z.ZodObject<{
248
68
  recipient: z.ZodObject<{
249
69
  name: z.ZodOptional<z.ZodObject<{
250
70
  firstname: z.ZodString;
251
71
  surname: z.ZodString;
252
72
  middlename: z.ZodOptional<z.ZodString>;
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
- }>>;
73
+ }, z.core.$strip>>;
262
74
  mobile: z.ZodOptional<z.ZodString>;
263
75
  email: z.ZodOptional<z.ZodString>;
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
- }, {
76
+ bcc: z.ZodOptional<z.ZodArray<z.ZodString>>;
77
+ }, z.core.$strip>;
285
78
  username: z.ZodString;
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<{
79
+ }, z.core.$strip>;
80
+ readonly "reset-password": z.ZodObject<{
312
81
  recipient: z.ZodObject<{
313
82
  name: z.ZodOptional<z.ZodObject<{
314
83
  firstname: z.ZodString;
315
84
  surname: z.ZodString;
316
85
  middlename: z.ZodOptional<z.ZodString>;
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
- }>>;
86
+ }, z.core.$strip>>;
326
87
  mobile: z.ZodOptional<z.ZodString>;
327
88
  email: z.ZodOptional<z.ZodString>;
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
- }, {
89
+ bcc: z.ZodOptional<z.ZodArray<z.ZodString>>;
90
+ }, z.core.$strip>;
349
91
  code: z.ZodString;
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<{
92
+ }, z.core.$strip>;
93
+ readonly "reset-password-by-admin": z.ZodObject<{
376
94
  recipient: z.ZodObject<{
377
95
  name: z.ZodOptional<z.ZodObject<{
378
96
  firstname: z.ZodString;
379
97
  surname: z.ZodString;
380
98
  middlename: z.ZodOptional<z.ZodString>;
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
- }>>;
99
+ }, z.core.$strip>>;
390
100
  mobile: z.ZodOptional<z.ZodString>;
391
101
  email: z.ZodOptional<z.ZodString>;
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
- }, {
102
+ bcc: z.ZodOptional<z.ZodArray<z.ZodString>>;
103
+ }, z.core.$strip>;
413
104
  temporaryPassword: z.ZodString;
414
105
  admin: z.ZodObject<{
415
106
  id: z.ZodString;
@@ -417,335 +108,63 @@ export declare const TriggerPayload: {
417
108
  firstname: z.ZodString;
418
109
  surname: z.ZodString;
419
110
  middlename: z.ZodOptional<z.ZodString>;
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
- }>;
111
+ }, z.core.$strip>;
429
112
  role: z.ZodString;
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<{
113
+ }, z.core.$strip>;
114
+ }, z.core.$strip>;
115
+ readonly "2fa": z.ZodObject<{
491
116
  recipient: z.ZodObject<{
492
117
  name: z.ZodOptional<z.ZodObject<{
493
118
  firstname: z.ZodString;
494
119
  surname: z.ZodString;
495
120
  middlename: z.ZodOptional<z.ZodString>;
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
- }>>;
121
+ }, z.core.$strip>>;
505
122
  mobile: z.ZodOptional<z.ZodString>;
506
123
  email: z.ZodOptional<z.ZodString>;
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
- }, {
124
+ bcc: z.ZodOptional<z.ZodArray<z.ZodString>>;
125
+ }, z.core.$strip>;
528
126
  code: z.ZodString;
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<{
127
+ }, z.core.$strip>;
128
+ readonly "all-user-notification": z.ZodObject<{
555
129
  recipient: z.ZodObject<{
556
130
  name: z.ZodOptional<z.ZodObject<{
557
131
  firstname: z.ZodString;
558
132
  surname: z.ZodString;
559
133
  middlename: z.ZodOptional<z.ZodString>;
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
- }>>;
134
+ }, z.core.$strip>>;
569
135
  mobile: z.ZodOptional<z.ZodString>;
570
136
  email: z.ZodOptional<z.ZodString>;
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
- }, {
137
+ bcc: z.ZodOptional<z.ZodArray<z.ZodString>>;
138
+ }, z.core.$strip>;
592
139
  subject: z.ZodString;
593
140
  body: z.ZodString;
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<{
141
+ }, z.core.$strip>;
142
+ readonly "change-phone-number": z.ZodObject<{
622
143
  recipient: z.ZodObject<{
623
144
  name: z.ZodOptional<z.ZodObject<{
624
145
  firstname: z.ZodString;
625
146
  surname: z.ZodString;
626
147
  middlename: z.ZodOptional<z.ZodString>;
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
- }>>;
148
+ }, z.core.$strip>>;
636
149
  mobile: z.ZodOptional<z.ZodString>;
637
150
  email: z.ZodOptional<z.ZodString>;
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
- }, {
151
+ bcc: z.ZodOptional<z.ZodArray<z.ZodString>>;
152
+ }, z.core.$strip>;
659
153
  code: z.ZodString;
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<{
154
+ }, z.core.$strip>;
155
+ readonly "change-email-address": z.ZodObject<{
686
156
  recipient: z.ZodObject<{
687
157
  name: z.ZodOptional<z.ZodObject<{
688
158
  firstname: z.ZodString;
689
159
  surname: z.ZodString;
690
160
  middlename: z.ZodOptional<z.ZodString>;
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
- }>>;
161
+ }, z.core.$strip>>;
700
162
  mobile: z.ZodOptional<z.ZodString>;
701
163
  email: z.ZodOptional<z.ZodString>;
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
- }, {
164
+ bcc: z.ZodOptional<z.ZodArray<z.ZodString>>;
165
+ }, z.core.$strip>;
723
166
  code: z.ZodString;
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
- }>;
167
+ }, z.core.$strip>;
749
168
  };
750
169
  export type TriggerPayload = {
751
170
  [K in TriggerEvent]: z.infer<(typeof TriggerPayload)[K]>;