@opencrvs/toolkit 1.8.0-rc.ff0a1b5 → 1.8.0-rc.ff1f8e0

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 (38) hide show
  1. package/dist/commons/api/router.d.ts +8086 -3911
  2. package/dist/commons/conditionals/conditionals.d.ts +7 -6
  3. package/dist/commons/events/ActionConfig.d.ts +22281 -7289
  4. package/dist/commons/events/ActionDocument.d.ts +533 -346
  5. package/dist/commons/events/ActionInput.d.ts +197 -125
  6. package/dist/commons/events/AdvancedSearchConfig.d.ts +603 -12
  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 +29 -24
  11. package/dist/commons/events/EventConfig.d.ts +17241 -9571
  12. package/dist/commons/events/EventDocument.d.ts +386 -267
  13. package/dist/commons/events/EventIndex.d.ts +343 -466
  14. package/dist/commons/events/EventInput.d.ts +0 -13
  15. package/dist/commons/events/EventMetadata.d.ts +72 -48
  16. package/dist/commons/events/FieldConfig.d.ts +991 -428
  17. package/dist/commons/events/FieldTypeMapping.d.ts +5 -2
  18. package/dist/commons/events/FieldValue.d.ts +2 -0
  19. package/dist/commons/events/FormConfig.d.ts +7190 -3722
  20. package/dist/commons/events/PageConfig.d.ts +1512 -660
  21. package/dist/commons/events/User.d.ts +31 -7
  22. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  23. package/dist/commons/events/WorkqueueConfig.d.ts +3506 -239
  24. package/dist/commons/events/defineConfig.d.ts +1632 -574
  25. package/dist/commons/events/event.d.ts +37 -10
  26. package/dist/commons/events/field.d.ts +25 -20
  27. package/dist/commons/events/index.d.ts +4 -0
  28. package/dist/commons/events/scopes.d.ts +20 -1
  29. package/dist/commons/events/serializer.d.ts +2 -0
  30. package/dist/commons/events/test.utils.d.ts +28 -7
  31. package/dist/commons/events/transactions.d.ts +1 -1
  32. package/dist/commons/events/utils.d.ts +443 -291
  33. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  34. package/dist/conditionals/index.js +28 -8
  35. package/dist/events/index.js +2153 -865
  36. package/dist/scopes/index.d.ts +94 -6
  37. package/dist/scopes/index.js +42 -21
  38. 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,6 +10,8 @@ export declare const Draft: z.ZodObject<{
10
10
  createdAt: z.ZodString;
11
11
  createdBy: z.ZodString;
12
12
  createdByRole: z.ZodString;
13
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
13
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;
@@ -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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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,10 +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.ZodString;
242
+ }>]>>>>;
242
243
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
243
- originalActionId: z.ZodOptional<z.ZodString>;
244
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
244
245
  }, {
245
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"]>;
246
247
  }>, "id">, "strip", z.ZodTypeAny, {
@@ -288,7 +289,8 @@ export declare const Draft: z.ZodObject<{
288
289
  filename: string;
289
290
  originalFilename: string;
290
291
  }[] | [string, string] | undefined>;
291
- createdAtLocation: string;
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,8 +328,8 @@ export declare const Draft: z.ZodObject<{
326
328
  option: string;
327
329
  filename: string;
328
330
  originalFilename: string;
329
- }[] | [string, string] | undefined> | undefined;
330
- originalActionId?: string | undefined;
331
+ }[] | [string, string] | undefined> | null | undefined;
332
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
331
333
  }, {
332
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";
333
335
  status: "Rejected" | "Requested" | "Accepted";
@@ -373,7 +375,8 @@ export declare const Draft: z.ZodObject<{
373
375
  filename: string;
374
376
  originalFilename: string;
375
377
  }[] | [string, string] | undefined>;
376
- createdAtLocation: string;
378
+ createdBySignature?: string | null | undefined;
379
+ createdAtLocation?: string | null | undefined;
377
380
  annotation?: Record<string, string | number | boolean | {
378
381
  type: string;
379
382
  filename: string;
@@ -411,14 +414,14 @@ export declare const Draft: z.ZodObject<{
411
414
  option: string;
412
415
  filename: string;
413
416
  originalFilename: string;
414
- }[] | [string, string] | undefined> | undefined;
415
- originalActionId?: string | undefined;
417
+ }[] | [string, string] | undefined> | null | undefined;
418
+ originalActionId?: string | null | undefined;
416
419
  }>;
417
420
  }, "strip", z.ZodTypeAny, {
418
- id: string;
421
+ id: string & z.BRAND<"UUID">;
419
422
  transactionId: string;
420
423
  createdAt: string;
421
- eventId: string;
424
+ eventId: string & z.BRAND<"UUID">;
422
425
  action: {
423
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";
424
427
  status: "Rejected" | "Requested" | "Accepted";
@@ -464,7 +467,8 @@ export declare const Draft: z.ZodObject<{
464
467
  filename: string;
465
468
  originalFilename: string;
466
469
  }[] | [string, string] | undefined>;
467
- createdAtLocation: string;
470
+ createdBySignature?: string | null | undefined;
471
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
468
472
  annotation?: Record<string, string | number | boolean | {
469
473
  type: string;
470
474
  filename: string;
@@ -502,8 +506,8 @@ export declare const Draft: z.ZodObject<{
502
506
  option: string;
503
507
  filename: string;
504
508
  originalFilename: string;
505
- }[] | [string, string] | undefined> | undefined;
506
- originalActionId?: string | undefined;
509
+ }[] | [string, string] | undefined> | null | undefined;
510
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
507
511
  };
508
512
  }, {
509
513
  id: string;
@@ -555,7 +559,8 @@ export declare const Draft: z.ZodObject<{
555
559
  filename: string;
556
560
  originalFilename: string;
557
561
  }[] | [string, string] | undefined>;
558
- createdAtLocation: string;
562
+ createdBySignature?: string | null | undefined;
563
+ createdAtLocation?: string | null | undefined;
559
564
  annotation?: Record<string, string | number | boolean | {
560
565
  type: string;
561
566
  filename: string;
@@ -593,12 +598,12 @@ export declare const Draft: z.ZodObject<{
593
598
  option: string;
594
599
  filename: string;
595
600
  originalFilename: string;
596
- }[] | [string, string] | undefined> | undefined;
597
- originalActionId?: string | undefined;
601
+ }[] | [string, string] | undefined> | null | undefined;
602
+ originalActionId?: string | null | undefined;
598
603
  };
599
604
  }>;
600
605
  export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
601
- eventId: z.ZodString;
606
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
602
607
  transactionId: z.ZodString;
603
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<{
604
609
  filename: z.ZodString;
@@ -828,7 +833,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
828
833
  addressLine3?: string | null | undefined;
829
834
  postcodeOrZip?: string | null | undefined;
830
835
  }>]>>>;
831
- originalActionId: z.ZodOptional<z.ZodString>;
836
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
832
837
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
833
838
  }, {
834
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"]>;
@@ -875,7 +880,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
875
880
  filename: string;
876
881
  originalFilename: string;
877
882
  }[] | [string, string] | undefined>;
878
- eventId: string;
883
+ eventId: string & z.BRAND<"UUID">;
879
884
  annotation?: Record<string, string | number | boolean | {
880
885
  type: string;
881
886
  filename: string;
@@ -914,7 +919,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
914
919
  filename: string;
915
920
  originalFilename: string;
916
921
  }[] | [string, string] | undefined> | undefined;
917
- originalActionId?: string | undefined;
922
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
918
923
  keepAssignment?: boolean | undefined;
919
924
  }, {
920
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";