@opencrvs/toolkit 1.8.0-rc.fa8bcf6 → 1.8.0-rc.facf9d6

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 (39) hide show
  1. package/dist/commons/api/router.d.ts +7597 -4530
  2. package/dist/commons/conditionals/conditionals.d.ts +7 -6
  3. package/dist/commons/events/ActionConfig.d.ts +47498 -39631
  4. package/dist/commons/events/ActionDocument.d.ts +620 -413
  5. package/dist/commons/events/ActionInput.d.ts +255 -183
  6. package/dist/commons/events/AdvancedSearchConfig.d.ts +637 -48
  7. package/dist/commons/events/Constants.d.ts +2 -0
  8. package/dist/commons/events/CountryConfigQueryInput.d.ts +2982 -0
  9. package/dist/commons/events/CreatedAtLocation.d.ts +3 -0
  10. package/dist/commons/events/Draft.d.ts +29 -26
  11. package/dist/commons/events/EventConfig.d.ts +18414 -16593
  12. package/dist/commons/events/EventDocument.d.ts +373 -325
  13. package/dist/commons/events/EventIndex.d.ts +706 -291
  14. package/dist/commons/events/EventInput.d.ts +0 -13
  15. package/dist/commons/events/EventMetadata.d.ts +290 -14
  16. package/dist/commons/events/FieldConfig.d.ts +1305 -441
  17. package/dist/commons/events/FieldType.d.ts +3 -2
  18. package/dist/commons/events/FieldTypeMapping.d.ts +16 -6
  19. package/dist/commons/events/FieldValue.d.ts +8 -3
  20. package/dist/commons/events/FormConfig.d.ts +8993 -3809
  21. package/dist/commons/events/PageConfig.d.ts +1912 -636
  22. package/dist/commons/events/SummaryConfig.d.ts +17 -0
  23. package/dist/commons/events/User.d.ts +31 -7
  24. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  25. package/dist/commons/events/WorkqueueConfig.d.ts +4491 -10
  26. package/dist/commons/events/defineConfig.d.ts +3576 -3692
  27. package/dist/commons/events/event.d.ts +37 -8
  28. package/dist/commons/events/field.d.ts +28 -23
  29. package/dist/commons/events/index.d.ts +4 -0
  30. package/dist/commons/events/scopes.d.ts +21 -2
  31. package/dist/commons/events/serializer.d.ts +2 -0
  32. package/dist/commons/events/test.utils.d.ts +33 -13
  33. package/dist/commons/events/utils.d.ts +619 -291
  34. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  35. package/dist/conditionals/index.js +28 -8
  36. package/dist/events/index.js +3204 -1546
  37. package/dist/scopes/index.d.ts +158 -1
  38. package/dist/scopes/index.js +152 -1
  39. package/package.json +1 -1
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ export declare const CreatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3
+ //# sourceMappingURL=CreatedAtLocation.d.ts.map
@@ -10,7 +10,9 @@ export declare const Draft: z.ZodObject<{
10
10
  createdAt: z.ZodString;
11
11
  createdBy: z.ZodString;
12
12
  createdByRole: z.ZodString;
13
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
14
16
  filename: z.ZodString;
15
17
  originalFilename: z.ZodString;
16
18
  type: z.ZodString;
@@ -124,7 +126,7 @@ export declare const Draft: z.ZodObject<{
124
126
  addressLine3?: string | null | undefined;
125
127
  postcodeOrZip?: string | null | undefined;
126
128
  }>]>>;
127
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
129
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
128
130
  filename: z.ZodString;
129
131
  originalFilename: z.ZodString;
130
132
  type: z.ZodString;
@@ -238,8 +240,6 @@ export declare const Draft: z.ZodObject<{
238
240
  addressLine3?: string | null | undefined;
239
241
  postcodeOrZip?: string | null | undefined;
240
242
  }>]>>>;
241
- createdAtLocation: z.ZodOptional<z.ZodString>;
242
- updatedAtLocation: z.ZodOptional<z.ZodString>;
243
243
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
244
244
  originalActionId: z.ZodOptional<z.ZodString>;
245
245
  }, {
@@ -288,7 +288,9 @@ export declare const Draft: z.ZodObject<{
288
288
  option: string;
289
289
  filename: string;
290
290
  originalFilename: string;
291
- }[] | undefined>;
291
+ }[] | [string, string] | undefined>;
292
+ createdBySignature?: string | null | undefined;
293
+ createdAtLocation?: string | null | undefined;
292
294
  annotation?: Record<string, string | number | boolean | {
293
295
  type: string;
294
296
  filename: string;
@@ -326,9 +328,7 @@ export declare const Draft: z.ZodObject<{
326
328
  option: string;
327
329
  filename: string;
328
330
  originalFilename: string;
329
- }[] | undefined> | undefined;
330
- createdAtLocation?: string | undefined;
331
- updatedAtLocation?: string | undefined;
331
+ }[] | [string, string] | undefined> | undefined;
332
332
  originalActionId?: string | undefined;
333
333
  }, {
334
334
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
@@ -374,7 +374,9 @@ export declare const Draft: z.ZodObject<{
374
374
  option: string;
375
375
  filename: string;
376
376
  originalFilename: string;
377
- }[] | undefined>;
377
+ }[] | [string, string] | undefined>;
378
+ createdBySignature?: string | null | undefined;
379
+ createdAtLocation?: string | null | undefined;
378
380
  annotation?: Record<string, string | number | boolean | {
379
381
  type: string;
380
382
  filename: string;
@@ -412,9 +414,7 @@ export declare const Draft: z.ZodObject<{
412
414
  option: string;
413
415
  filename: string;
414
416
  originalFilename: string;
415
- }[] | undefined> | undefined;
416
- createdAtLocation?: string | undefined;
417
- updatedAtLocation?: string | undefined;
417
+ }[] | [string, string] | undefined> | undefined;
418
418
  originalActionId?: string | undefined;
419
419
  }>;
420
420
  }, "strip", z.ZodTypeAny, {
@@ -466,7 +466,9 @@ export declare const Draft: z.ZodObject<{
466
466
  option: string;
467
467
  filename: string;
468
468
  originalFilename: string;
469
- }[] | undefined>;
469
+ }[] | [string, string] | undefined>;
470
+ createdBySignature?: string | null | undefined;
471
+ createdAtLocation?: string | null | undefined;
470
472
  annotation?: Record<string, string | number | boolean | {
471
473
  type: string;
472
474
  filename: string;
@@ -504,9 +506,7 @@ export declare const Draft: z.ZodObject<{
504
506
  option: string;
505
507
  filename: string;
506
508
  originalFilename: string;
507
- }[] | undefined> | undefined;
508
- createdAtLocation?: string | undefined;
509
- updatedAtLocation?: string | undefined;
509
+ }[] | [string, string] | undefined> | undefined;
510
510
  originalActionId?: string | undefined;
511
511
  };
512
512
  }, {
@@ -558,7 +558,9 @@ export declare const Draft: z.ZodObject<{
558
558
  option: string;
559
559
  filename: string;
560
560
  originalFilename: string;
561
- }[] | undefined>;
561
+ }[] | [string, string] | undefined>;
562
+ createdBySignature?: string | null | undefined;
563
+ createdAtLocation?: string | null | undefined;
562
564
  annotation?: Record<string, string | number | boolean | {
563
565
  type: string;
564
566
  filename: string;
@@ -596,16 +598,14 @@ export declare const Draft: z.ZodObject<{
596
598
  option: string;
597
599
  filename: string;
598
600
  originalFilename: string;
599
- }[] | undefined> | undefined;
600
- createdAtLocation?: string | undefined;
601
- updatedAtLocation?: string | undefined;
601
+ }[] | [string, string] | undefined> | undefined;
602
602
  originalActionId?: string | undefined;
603
603
  };
604
604
  }>;
605
605
  export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
606
606
  eventId: z.ZodString;
607
607
  transactionId: z.ZodString;
608
- declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
608
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
609
609
  filename: z.ZodString;
610
610
  originalFilename: z.ZodString;
611
611
  type: z.ZodString;
@@ -719,7 +719,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
719
719
  addressLine3?: string | null | undefined;
720
720
  postcodeOrZip?: string | null | undefined;
721
721
  }>]>>>;
722
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
722
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
723
723
  filename: z.ZodString;
724
724
  originalFilename: z.ZodString;
725
725
  type: z.ZodString;
@@ -837,8 +837,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
837
837
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
838
838
  }, {
839
839
  type: z.ZodEnum<["DELETE", "CREATE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "DETECT_DUPLICATE", "REJECT", "MARKED_AS_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION", "READ", "ASSIGN", "UNASSIGN"]>;
840
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
840
841
  }>, "strip", z.ZodTypeAny, {
841
842
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
843
+ status: "Rejected" | "Requested" | "Accepted";
842
844
  transactionId: string;
843
845
  declaration: Record<string, string | number | boolean | {
844
846
  type: string;
@@ -877,7 +879,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
877
879
  option: string;
878
880
  filename: string;
879
881
  originalFilename: string;
880
- }[] | undefined>;
882
+ }[] | [string, string] | undefined>;
881
883
  eventId: string;
882
884
  annotation?: Record<string, string | number | boolean | {
883
885
  type: string;
@@ -916,11 +918,12 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
916
918
  option: string;
917
919
  filename: string;
918
920
  originalFilename: string;
919
- }[] | undefined> | undefined;
921
+ }[] | [string, string] | undefined> | undefined;
920
922
  originalActionId?: string | undefined;
921
923
  keepAssignment?: boolean | undefined;
922
924
  }, {
923
925
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
926
+ status: "Rejected" | "Requested" | "Accepted";
924
927
  transactionId: string;
925
928
  eventId: string;
926
929
  declaration?: Record<string, string | number | boolean | {
@@ -960,7 +963,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
960
963
  option: string;
961
964
  filename: string;
962
965
  originalFilename: string;
963
- }[] | undefined> | undefined;
966
+ }[] | [string, string] | undefined> | undefined;
964
967
  annotation?: Record<string, string | number | boolean | {
965
968
  type: string;
966
969
  filename: string;
@@ -998,7 +1001,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
998
1001
  option: string;
999
1002
  filename: string;
1000
1003
  originalFilename: string;
1001
- }[] | undefined> | undefined;
1004
+ }[] | [string, string] | undefined> | undefined;
1002
1005
  originalActionId?: string | undefined;
1003
1006
  keepAssignment?: boolean | undefined;
1004
1007
  }>;