@opencrvs/toolkit 1.8.0-rc.f82791e → 1.8.0-rc.f8296f8

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 (40) hide show
  1. package/dist/commons/api/router.d.ts +7485 -3044
  2. package/dist/commons/conditionals/conditionals.d.ts +2 -1
  3. package/dist/commons/events/ActionConfig.d.ts +20595 -2656
  4. package/dist/commons/events/ActionDocument.d.ts +760 -553
  5. package/dist/commons/events/ActionInput.d.ts +377 -305
  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 +2 -0
  10. package/dist/commons/events/Draft.d.ts +43 -40
  11. package/dist/commons/events/EventConfig.d.ts +16491 -7434
  12. package/dist/commons/events/EventDocument.d.ts +471 -423
  13. package/dist/commons/events/EventIndex.d.ts +694 -293
  14. package/dist/commons/events/EventInput.d.ts +0 -13
  15. package/dist/commons/events/EventMetadata.d.ts +262 -16
  16. package/dist/commons/events/FieldConfig.d.ts +850 -69
  17. package/dist/commons/events/FieldType.d.ts +3 -2
  18. package/dist/commons/events/FieldTypeMapping.d.ts +11 -4
  19. package/dist/commons/events/FieldValue.d.ts +6 -3
  20. package/dist/commons/events/FormConfig.d.ts +5749 -925
  21. package/dist/commons/events/PageConfig.d.ts +1191 -3
  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 +1269 -7
  27. package/dist/commons/events/event.d.ts +37 -8
  28. package/dist/commons/events/field.d.ts +24 -10
  29. package/dist/commons/events/index.d.ts +4 -0
  30. package/dist/commons/events/scopes.d.ts +20 -1
  31. package/dist/commons/events/serializer.d.ts +2 -0
  32. package/dist/commons/events/test.utils.d.ts +35 -14
  33. package/dist/commons/events/transactions.d.ts +1 -1
  34. package/dist/commons/events/utils.d.ts +313 -24
  35. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  36. package/dist/conditionals/index.js +19 -2
  37. package/dist/events/index.js +2859 -1192
  38. package/dist/scopes/index.d.ts +158 -1
  39. package/dist/scopes/index.js +152 -1
  40. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ export declare const CreatedAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
2
+ //# sourceMappingURL=CreatedAtLocation.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  export declare const Draft: z.ZodObject<{
3
- id: z.ZodString;
4
- eventId: z.ZodString;
3
+ id: z.ZodBranded<z.ZodString, "UUID">;
4
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
5
5
  transactionId: z.ZodString;
6
6
  createdAt: z.ZodString;
7
7
  action: z.ZodObject<Omit<z.objectUtil.extendShape<{
@@ -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.ZodBranded<z.ZodString, "UUID">>>;
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.ZodNullable<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;
@@ -237,11 +239,9 @@ export declare const Draft: z.ZodObject<{
237
239
  addressLine2?: string | null | undefined;
238
240
  addressLine3?: string | null | undefined;
239
241
  postcodeOrZip?: string | null | undefined;
240
- }>]>>>;
241
- createdAtLocation: z.ZodOptional<z.ZodString>;
242
- updatedAtLocation: z.ZodOptional<z.ZodString>;
242
+ }>]>>>>;
243
243
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
244
- originalActionId: z.ZodOptional<z.ZodString>;
244
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
245
245
  }, {
246
246
  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"]>;
247
247
  }>, "id">, "strip", z.ZodTypeAny, {
@@ -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 & z.BRAND<"UUID">) | null | undefined;
292
294
  annotation?: Record<string, string | number | boolean | {
293
295
  type: string;
294
296
  filename: string;
@@ -326,10 +328,8 @@ 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;
332
- originalActionId?: string | undefined;
331
+ }[] | [string, string] | undefined> | null | undefined;
332
+ originalActionId?: (string & z.BRAND<"UUID">) | null | 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";
335
335
  status: "Rejected" | "Requested" | "Accepted";
@@ -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,16 +414,14 @@ 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;
418
- originalActionId?: string | undefined;
417
+ }[] | [string, string] | undefined> | null | undefined;
418
+ originalActionId?: string | null | undefined;
419
419
  }>;
420
420
  }, "strip", z.ZodTypeAny, {
421
- id: string;
421
+ id: string & z.BRAND<"UUID">;
422
422
  transactionId: string;
423
423
  createdAt: string;
424
- eventId: string;
424
+ eventId: string & z.BRAND<"UUID">;
425
425
  action: {
426
426
  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";
427
427
  status: "Rejected" | "Requested" | "Accepted";
@@ -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 & z.BRAND<"UUID">) | null | undefined;
470
472
  annotation?: Record<string, string | number | boolean | {
471
473
  type: string;
472
474
  filename: string;
@@ -504,10 +506,8 @@ 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;
510
- originalActionId?: string | undefined;
509
+ }[] | [string, string] | undefined> | null | undefined;
510
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
511
511
  };
512
512
  }, {
513
513
  id: string;
@@ -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;
602
- originalActionId?: string | undefined;
601
+ }[] | [string, string] | undefined> | null | undefined;
602
+ originalActionId?: string | null | undefined;
603
603
  };
604
604
  }>;
605
605
  export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
606
- eventId: z.ZodString;
606
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
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;
@@ -833,12 +833,14 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
833
833
  addressLine3?: string | null | undefined;
834
834
  postcodeOrZip?: string | null | undefined;
835
835
  }>]>>>;
836
- originalActionId: z.ZodOptional<z.ZodString>;
836
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
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,8 +879,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
877
879
  option: string;
878
880
  filename: string;
879
881
  originalFilename: string;
880
- }[] | undefined>;
881
- eventId: string;
882
+ }[] | [string, string] | undefined>;
883
+ eventId: string & z.BRAND<"UUID">;
882
884
  annotation?: Record<string, string | number | boolean | {
883
885
  type: string;
884
886
  filename: 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;
920
- originalActionId?: string | undefined;
921
+ }[] | [string, string] | undefined> | undefined;
922
+ originalActionId?: (string & z.BRAND<"UUID">) | 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
  }>;