@opencrvs/toolkit 1.8.1-rc.06c1a33 → 1.8.1-rc.0c6d168

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 (30) hide show
  1. package/build.sh +5 -0
  2. package/dist/commons/api/router.d.ts +1 -1347
  3. package/dist/commons/events/ActionConfig.d.ts +3777 -13563
  4. package/dist/commons/events/ActionDocument.d.ts +1 -3036
  5. package/dist/commons/events/ActionInput.d.ts +0 -2460
  6. package/dist/commons/events/AdvancedSearchConfig.d.ts +3 -93
  7. package/dist/commons/events/CompositeFieldValue.d.ts +0 -60
  8. package/dist/commons/events/Draft.d.ts +0 -192
  9. package/dist/commons/events/EventConfig.d.ts +3864 -8123
  10. package/dist/commons/events/EventDocument.d.ts +0 -1704
  11. package/dist/commons/events/EventIndex.d.ts +1 -47
  12. package/dist/commons/events/FieldConfig.d.ts +990 -1752
  13. package/dist/commons/events/FieldType.d.ts +1 -3
  14. package/dist/commons/events/FieldTypeMapping.d.ts +3 -85
  15. package/dist/commons/events/FieldValue.d.ts +3 -62
  16. package/dist/commons/events/FormConfig.d.ts +1148 -5750
  17. package/dist/commons/events/PageConfig.d.ts +1206 -2352
  18. package/dist/commons/events/WorkqueueConfig.d.ts +8 -8
  19. package/dist/commons/events/defineConfig.d.ts +16 -727
  20. package/dist/commons/events/test.utils.d.ts +0 -42
  21. package/dist/commons/events/utils.d.ts +18 -1319
  22. package/dist/commons/notification/UserNotifications.d.ts +547 -0
  23. package/dist/commons/notification/index.d.ts +2 -0
  24. package/dist/events/index.js +19 -74
  25. package/dist/notification/index.d.ts +2 -0
  26. package/dist/notification/index.d.ts.map +1 -0
  27. package/dist/notification/index.js +5333 -0
  28. package/package.json +3 -2
  29. package/tsconfig.json +2 -1
  30. package/tsconfig.tsbuildinfo +1 -1
@@ -149,37 +149,7 @@ export declare const SearchQueryParams: z.ZodObject<{
149
149
  firstname: string;
150
150
  surname: string;
151
151
  middlename?: string | null | undefined;
152
- }>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
153
- loading: z.ZodBoolean;
154
- error: z.ZodNullable<z.ZodObject<{
155
- statusCode: z.ZodNullable<z.ZodNumber>;
156
- message: z.ZodString;
157
- }, "strip", z.ZodTypeAny, {
158
- message: string;
159
- statusCode: number | null;
160
- }, {
161
- message: string;
162
- statusCode: number | null;
163
- }>>;
164
- data: z.ZodAny;
165
- trackingValue: z.ZodOptional<z.ZodString>;
166
- }, "strip", z.ZodTypeAny, {
167
- error: {
168
- message: string;
169
- statusCode: number | null;
170
- } | null;
171
- loading: boolean;
172
- data?: any;
173
- trackingValue?: string | undefined;
174
- }, {
175
- error: {
176
- message: string;
177
- statusCode: number | null;
178
- } | null;
179
- loading: boolean;
180
- data?: any;
181
- trackingValue?: string | undefined;
182
- }>]>, z.objectOutputType<{
152
+ }>, z.ZodNull]>, z.ZodUndefined]>]>, z.objectOutputType<{
183
153
  eventType: z.ZodOptional<z.ZodString>;
184
154
  }, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
185
155
  start: z.ZodString;
@@ -327,37 +297,7 @@ export declare const SearchQueryParams: z.ZodObject<{
327
297
  firstname: string;
328
298
  surname: string;
329
299
  middlename?: string | null | undefined;
330
- }>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
331
- loading: z.ZodBoolean;
332
- error: z.ZodNullable<z.ZodObject<{
333
- statusCode: z.ZodNullable<z.ZodNumber>;
334
- message: z.ZodString;
335
- }, "strip", z.ZodTypeAny, {
336
- message: string;
337
- statusCode: number | null;
338
- }, {
339
- message: string;
340
- statusCode: number | null;
341
- }>>;
342
- data: z.ZodAny;
343
- trackingValue: z.ZodOptional<z.ZodString>;
344
- }, "strip", z.ZodTypeAny, {
345
- error: {
346
- message: string;
347
- statusCode: number | null;
348
- } | null;
349
- loading: boolean;
350
- data?: any;
351
- trackingValue?: string | undefined;
352
- }, {
353
- error: {
354
- message: string;
355
- statusCode: number | null;
356
- } | null;
357
- loading: boolean;
358
- data?: any;
359
- trackingValue?: string | undefined;
360
- }>]>, "strip">, z.objectInputType<{
300
+ }>, z.ZodNull]>, z.ZodUndefined]>]>, "strip">, z.objectInputType<{
361
301
  eventType: z.ZodOptional<z.ZodString>;
362
302
  }, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
363
303
  start: z.ZodString;
@@ -505,37 +445,7 @@ export declare const SearchQueryParams: z.ZodObject<{
505
445
  firstname: string;
506
446
  surname: string;
507
447
  middlename?: string | null | undefined;
508
- }>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{
509
- loading: z.ZodBoolean;
510
- error: z.ZodNullable<z.ZodObject<{
511
- statusCode: z.ZodNullable<z.ZodNumber>;
512
- message: z.ZodString;
513
- }, "strip", z.ZodTypeAny, {
514
- message: string;
515
- statusCode: number | null;
516
- }, {
517
- message: string;
518
- statusCode: number | null;
519
- }>>;
520
- data: z.ZodAny;
521
- trackingValue: z.ZodOptional<z.ZodString>;
522
- }, "strip", z.ZodTypeAny, {
523
- error: {
524
- message: string;
525
- statusCode: number | null;
526
- } | null;
527
- loading: boolean;
528
- data?: any;
529
- trackingValue?: string | undefined;
530
- }, {
531
- error: {
532
- message: string;
533
- statusCode: number | null;
534
- } | null;
535
- loading: boolean;
536
- data?: any;
537
- trackingValue?: string | undefined;
538
- }>]>, "strip">>;
448
+ }>, z.ZodNull]>, z.ZodUndefined]>]>, "strip">>;
539
449
  export type SearchQueryParams = z.infer<typeof SearchQueryParams>;
540
450
  export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
541
451
  config: z.ZodObject<{
@@ -442,64 +442,4 @@ export declare const FileFieldWithOptionValue: z.ZodArray<z.ZodObject<{
442
442
  originalFilename: string;
443
443
  }>, "many">;
444
444
  export type FileFieldWithOptionValue = z.infer<typeof FileFieldWithOptionValue>;
445
- export declare const HttpFieldValue: z.ZodObject<{
446
- loading: z.ZodBoolean;
447
- error: z.ZodNullable<z.ZodObject<{
448
- statusCode: z.ZodNullable<z.ZodNumber>;
449
- message: z.ZodString;
450
- }, "strip", z.ZodTypeAny, {
451
- message: string;
452
- statusCode: number | null;
453
- }, {
454
- message: string;
455
- statusCode: number | null;
456
- }>>;
457
- data: z.ZodAny;
458
- trackingValue: z.ZodOptional<z.ZodString>;
459
- }, "strip", z.ZodTypeAny, {
460
- error: {
461
- message: string;
462
- statusCode: number | null;
463
- } | null;
464
- loading: boolean;
465
- data?: any;
466
- trackingValue?: string | undefined;
467
- }, {
468
- error: {
469
- message: string;
470
- statusCode: number | null;
471
- } | null;
472
- loading: boolean;
473
- data?: any;
474
- trackingValue?: string | undefined;
475
- }>;
476
- export type HttpFieldValue = z.infer<typeof HttpFieldValue>;
477
- export declare const HttpFieldUpdateValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
478
- loading: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
479
- error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
480
- statusCode: z.ZodNullable<z.ZodNumber>;
481
- message: z.ZodString;
482
- }, "strip", z.ZodTypeAny, {
483
- message: string;
484
- statusCode: number | null;
485
- }, {
486
- message: string;
487
- statusCode: number | null;
488
- }>>>;
489
- data: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
490
- }, "strip", z.ZodTypeAny, {
491
- data?: any;
492
- error?: {
493
- message: string;
494
- statusCode: number | null;
495
- } | null | undefined;
496
- loading?: boolean | null | undefined;
497
- }, {
498
- data?: any;
499
- error?: {
500
- message: string;
501
- statusCode: number | null;
502
- } | null | undefined;
503
- loading?: boolean | null | undefined;
504
- }>, z.ZodNull]>, z.ZodUndefined]>;
505
445
  //# sourceMappingURL=CompositeFieldValue.d.ts.map
@@ -147,33 +147,6 @@ export declare const Draft: z.ZodObject<{
147
147
  firstname: string;
148
148
  surname: string;
149
149
  middlename?: string | null | undefined;
150
- }>, z.ZodNull]>, z.ZodUndefined]>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
151
- loading: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
152
- error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
153
- statusCode: z.ZodNullable<z.ZodNumber>;
154
- message: z.ZodString;
155
- }, "strip", z.ZodTypeAny, {
156
- message: string;
157
- statusCode: number | null;
158
- }, {
159
- message: string;
160
- statusCode: number | null;
161
- }>>>;
162
- data: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
163
- }, "strip", z.ZodTypeAny, {
164
- data?: any;
165
- error?: {
166
- message: string;
167
- statusCode: number | null;
168
- } | null | undefined;
169
- loading?: boolean | null | undefined;
170
- }, {
171
- data?: any;
172
- error?: {
173
- message: string;
174
- statusCode: number | null;
175
- } | null | undefined;
176
- loading?: boolean | null | undefined;
177
150
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
178
151
  annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
179
152
  start: z.ZodString;
@@ -309,33 +282,6 @@ export declare const Draft: z.ZodObject<{
309
282
  firstname: string;
310
283
  surname: string;
311
284
  middlename?: string | null | undefined;
312
- }>, z.ZodNull]>, z.ZodUndefined]>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
313
- loading: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
314
- error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
315
- statusCode: z.ZodNullable<z.ZodNumber>;
316
- message: z.ZodString;
317
- }, "strip", z.ZodTypeAny, {
318
- message: string;
319
- statusCode: number | null;
320
- }, {
321
- message: string;
322
- statusCode: number | null;
323
- }>>>;
324
- data: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
325
- }, "strip", z.ZodTypeAny, {
326
- data?: any;
327
- error?: {
328
- message: string;
329
- statusCode: number | null;
330
- } | null | undefined;
331
- loading?: boolean | null | undefined;
332
- }, {
333
- data?: any;
334
- error?: {
335
- message: string;
336
- statusCode: number | null;
337
- } | null | undefined;
338
- loading?: boolean | null | undefined;
339
285
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
340
286
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
341
287
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
@@ -391,13 +337,6 @@ export declare const Draft: z.ZodObject<{
391
337
  path: string;
392
338
  originalFilename: string;
393
339
  }[] | {
394
- data?: any;
395
- error?: {
396
- message: string;
397
- statusCode: number | null;
398
- } | null | undefined;
399
- loading?: boolean | null | undefined;
400
- } | {
401
340
  start: string;
402
341
  end: string;
403
342
  } | null | undefined>;
@@ -445,13 +384,6 @@ export declare const Draft: z.ZodObject<{
445
384
  path: string;
446
385
  originalFilename: string;
447
386
  }[] | {
448
- data?: any;
449
- error?: {
450
- message: string;
451
- statusCode: number | null;
452
- } | null | undefined;
453
- loading?: boolean | null | undefined;
454
- } | {
455
387
  start: string;
456
388
  end: string;
457
389
  } | null | undefined> | null | undefined;
@@ -506,13 +438,6 @@ export declare const Draft: z.ZodObject<{
506
438
  path: string;
507
439
  originalFilename: string;
508
440
  }[] | {
509
- data?: any;
510
- error?: {
511
- message: string;
512
- statusCode: number | null;
513
- } | null | undefined;
514
- loading?: boolean | null | undefined;
515
- } | {
516
441
  start: string;
517
442
  end: string;
518
443
  } | null | undefined>;
@@ -560,13 +485,6 @@ export declare const Draft: z.ZodObject<{
560
485
  path: string;
561
486
  originalFilename: string;
562
487
  }[] | {
563
- data?: any;
564
- error?: {
565
- message: string;
566
- statusCode: number | null;
567
- } | null | undefined;
568
- loading?: boolean | null | undefined;
569
- } | {
570
488
  start: string;
571
489
  end: string;
572
490
  } | null | undefined> | null | undefined;
@@ -627,13 +545,6 @@ export declare const Draft: z.ZodObject<{
627
545
  path: string;
628
546
  originalFilename: string;
629
547
  }[] | {
630
- data?: any;
631
- error?: {
632
- message: string;
633
- statusCode: number | null;
634
- } | null | undefined;
635
- loading?: boolean | null | undefined;
636
- } | {
637
548
  start: string;
638
549
  end: string;
639
550
  } | null | undefined>;
@@ -681,13 +592,6 @@ export declare const Draft: z.ZodObject<{
681
592
  path: string;
682
593
  originalFilename: string;
683
594
  }[] | {
684
- data?: any;
685
- error?: {
686
- message: string;
687
- statusCode: number | null;
688
- } | null | undefined;
689
- loading?: boolean | null | undefined;
690
- } | {
691
595
  start: string;
692
596
  end: string;
693
597
  } | null | undefined> | null | undefined;
@@ -748,13 +652,6 @@ export declare const Draft: z.ZodObject<{
748
652
  path: string;
749
653
  originalFilename: string;
750
654
  }[] | {
751
- data?: any;
752
- error?: {
753
- message: string;
754
- statusCode: number | null;
755
- } | null | undefined;
756
- loading?: boolean | null | undefined;
757
- } | {
758
655
  start: string;
759
656
  end: string;
760
657
  } | null | undefined>;
@@ -802,13 +699,6 @@ export declare const Draft: z.ZodObject<{
802
699
  path: string;
803
700
  originalFilename: string;
804
701
  }[] | {
805
- data?: any;
806
- error?: {
807
- message: string;
808
- statusCode: number | null;
809
- } | null | undefined;
810
- loading?: boolean | null | undefined;
811
- } | {
812
702
  start: string;
813
703
  end: string;
814
704
  } | null | undefined> | null | undefined;
@@ -952,33 +842,6 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
952
842
  firstname: string;
953
843
  surname: string;
954
844
  middlename?: string | null | undefined;
955
- }>, z.ZodNull]>, z.ZodUndefined]>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
956
- loading: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
957
- error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
958
- statusCode: z.ZodNullable<z.ZodNumber>;
959
- message: z.ZodString;
960
- }, "strip", z.ZodTypeAny, {
961
- message: string;
962
- statusCode: number | null;
963
- }, {
964
- message: string;
965
- statusCode: number | null;
966
- }>>>;
967
- data: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
968
- }, "strip", z.ZodTypeAny, {
969
- data?: any;
970
- error?: {
971
- message: string;
972
- statusCode: number | null;
973
- } | null | undefined;
974
- loading?: boolean | null | undefined;
975
- }, {
976
- data?: any;
977
- error?: {
978
- message: string;
979
- statusCode: number | null;
980
- } | null | undefined;
981
- loading?: boolean | null | undefined;
982
845
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
983
846
  annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
984
847
  start: z.ZodString;
@@ -1114,33 +977,6 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
1114
977
  firstname: string;
1115
978
  surname: string;
1116
979
  middlename?: string | null | undefined;
1117
- }>, z.ZodNull]>, z.ZodUndefined]>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
1118
- loading: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1119
- error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1120
- statusCode: z.ZodNullable<z.ZodNumber>;
1121
- message: z.ZodString;
1122
- }, "strip", z.ZodTypeAny, {
1123
- message: string;
1124
- statusCode: number | null;
1125
- }, {
1126
- message: string;
1127
- statusCode: number | null;
1128
- }>>>;
1129
- data: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
1130
- }, "strip", z.ZodTypeAny, {
1131
- data?: any;
1132
- error?: {
1133
- message: string;
1134
- statusCode: number | null;
1135
- } | null | undefined;
1136
- loading?: boolean | null | undefined;
1137
- }, {
1138
- data?: any;
1139
- error?: {
1140
- message: string;
1141
- statusCode: number | null;
1142
- } | null | undefined;
1143
- loading?: boolean | null | undefined;
1144
980
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
1145
981
  originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
1146
982
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
@@ -1193,13 +1029,6 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
1193
1029
  path: string;
1194
1030
  originalFilename: string;
1195
1031
  }[] | {
1196
- data?: any;
1197
- error?: {
1198
- message: string;
1199
- statusCode: number | null;
1200
- } | null | undefined;
1201
- loading?: boolean | null | undefined;
1202
- } | {
1203
1032
  start: string;
1204
1033
  end: string;
1205
1034
  } | null | undefined>;
@@ -1246,13 +1075,6 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
1246
1075
  path: string;
1247
1076
  originalFilename: string;
1248
1077
  }[] | {
1249
- data?: any;
1250
- error?: {
1251
- message: string;
1252
- statusCode: number | null;
1253
- } | null | undefined;
1254
- loading?: boolean | null | undefined;
1255
- } | {
1256
1078
  start: string;
1257
1079
  end: string;
1258
1080
  } | null | undefined> | undefined;
@@ -1305,13 +1127,6 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
1305
1127
  path: string;
1306
1128
  originalFilename: string;
1307
1129
  }[] | {
1308
- data?: any;
1309
- error?: {
1310
- message: string;
1311
- statusCode: number | null;
1312
- } | null | undefined;
1313
- loading?: boolean | null | undefined;
1314
- } | {
1315
1130
  start: string;
1316
1131
  end: string;
1317
1132
  } | null | undefined> | undefined;
@@ -1357,13 +1172,6 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
1357
1172
  path: string;
1358
1173
  originalFilename: string;
1359
1174
  }[] | {
1360
- data?: any;
1361
- error?: {
1362
- message: string;
1363
- statusCode: number | null;
1364
- } | null | undefined;
1365
- loading?: boolean | null | undefined;
1366
- } | {
1367
1175
  start: string;
1368
1176
  end: string;
1369
1177
  } | null | undefined> | undefined;