@opencrvs/toolkit 1.8.0-rc.fb96ec1 → 1.8.0-rc.fbababd

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/dist/commons/api/router.d.ts +5865 -12088
  2. package/dist/commons/events/ActionConfig.d.ts +18584 -30632
  3. package/dist/commons/events/ActionDocument.d.ts +387 -486
  4. package/dist/commons/events/ActionInput.d.ts +126 -126
  5. package/dist/commons/events/ActionType.d.ts +0 -2
  6. package/dist/commons/events/AdvancedSearchConfig.d.ts +0 -204
  7. package/dist/commons/events/CountryConfigQueryInput.d.ts +412 -1160
  8. package/dist/commons/events/CreatedAtLocation.d.ts +2 -1
  9. package/dist/commons/events/Draft.d.ts +23 -28
  10. package/dist/commons/events/EventConfig.d.ts +17504 -26141
  11. package/dist/commons/events/EventDocument.d.ts +275 -350
  12. package/dist/commons/events/EventIndex.d.ts +214 -629
  13. package/dist/commons/events/EventMetadata.d.ts +31 -73
  14. package/dist/commons/events/FieldConfig.d.ts +37 -19
  15. package/dist/commons/events/FormConfig.d.ts +66 -0
  16. package/dist/commons/events/PageConfig.d.ts +18 -0
  17. package/dist/commons/events/WorkqueueColumnConfig.d.ts +11 -11
  18. package/dist/commons/events/WorkqueueConfig.d.ts +740 -3237
  19. package/dist/commons/events/defineConfig.d.ts +1589 -3224
  20. package/dist/commons/events/field.d.ts +0 -5
  21. package/dist/commons/events/index.d.ts +0 -1
  22. package/dist/commons/events/scopes.d.ts +3 -2
  23. package/dist/commons/events/test.utils.d.ts +5 -28
  24. package/dist/commons/events/transactions.d.ts +1 -1
  25. package/dist/commons/events/utils.d.ts +1600 -3232
  26. package/dist/conditionals/index.js +17 -20
  27. package/dist/events/index.js +1312 -1681
  28. package/dist/scopes/index.d.ts +1 -4
  29. package/dist/scopes/index.js +17 -67
  30. package/package.json +3 -3
@@ -1,2 +1,3 @@
1
- export declare const CreatedAtLocation: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBranded<import("zod").ZodString, "UUID">>>;
1
+ import { z } from 'zod';
2
+ export declare const CreatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2
3
  //# sourceMappingURL=CreatedAtLocation.d.ts.map
@@ -1,18 +1,17 @@
1
1
  import { z } from 'zod';
2
2
  export declare const Draft: z.ZodObject<{
3
- id: z.ZodBranded<z.ZodString, "UUID">;
4
- eventId: z.ZodBranded<z.ZodString, "UUID">;
3
+ id: z.ZodString;
4
+ eventId: z.ZodString;
5
5
  transactionId: z.ZodString;
6
6
  createdAt: z.ZodString;
7
7
  action: z.ZodObject<Omit<z.objectUtil.extendShape<{
8
- id: z.ZodBranded<z.ZodString, "UUID">;
8
+ id: z.ZodString;
9
9
  transactionId: z.ZodString;
10
- createdByUserType: z.ZodEnum<["user", "system"]>;
11
10
  createdAt: z.ZodString;
12
11
  createdBy: z.ZodString;
13
12
  createdByRole: z.ZodString;
14
13
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
14
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
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<{
17
16
  filename: z.ZodString;
18
17
  originalFilename: z.ZodString;
@@ -139,7 +138,7 @@ export declare const Draft: z.ZodObject<{
139
138
  surname: string;
140
139
  middlename?: string | null | undefined;
141
140
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
142
- 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<{
141
+ 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<{
143
142
  filename: z.ZodString;
144
143
  originalFilename: z.ZodString;
145
144
  type: z.ZodString;
@@ -264,16 +263,15 @@ export declare const Draft: z.ZodObject<{
264
263
  firstname: string;
265
264
  surname: string;
266
265
  middlename?: string | null | undefined;
267
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
266
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
268
267
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
269
- originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
268
+ originalActionId: z.ZodOptional<z.ZodString>;
270
269
  }, {
271
270
  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"]>;
272
271
  }>, "id">, "strip", z.ZodTypeAny, {
273
272
  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";
274
273
  status: "Rejected" | "Requested" | "Accepted";
275
274
  transactionId: string;
276
- createdByUserType: "system" | "user";
277
275
  createdAt: string;
278
276
  createdBy: string;
279
277
  createdByRole: string;
@@ -320,7 +318,7 @@ export declare const Draft: z.ZodObject<{
320
318
  originalFilename: string;
321
319
  }[] | [string, string] | null | undefined>;
322
320
  createdBySignature?: string | null | undefined;
323
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
321
+ createdAtLocation?: string | null | undefined;
324
322
  annotation?: Record<string, string | number | boolean | {
325
323
  type: string;
326
324
  filename: string;
@@ -362,13 +360,12 @@ export declare const Draft: z.ZodObject<{
362
360
  option: string;
363
361
  filename: string;
364
362
  originalFilename: string;
365
- }[] | [string, string] | null | undefined> | null | undefined;
366
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
363
+ }[] | [string, string] | null | undefined> | undefined;
364
+ originalActionId?: string | undefined;
367
365
  }, {
368
366
  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";
369
367
  status: "Rejected" | "Requested" | "Accepted";
370
368
  transactionId: string;
371
- createdByUserType: "system" | "user";
372
369
  createdAt: string;
373
370
  createdBy: string;
374
371
  createdByRole: string;
@@ -457,19 +454,18 @@ export declare const Draft: z.ZodObject<{
457
454
  option: string;
458
455
  filename: string;
459
456
  originalFilename: string;
460
- }[] | [string, string] | null | undefined> | null | undefined;
461
- originalActionId?: string | null | undefined;
457
+ }[] | [string, string] | null | undefined> | undefined;
458
+ originalActionId?: string | undefined;
462
459
  }>;
463
460
  }, "strip", z.ZodTypeAny, {
464
- id: string & z.BRAND<"UUID">;
461
+ id: string;
465
462
  transactionId: string;
466
463
  createdAt: string;
467
- eventId: string & z.BRAND<"UUID">;
464
+ eventId: string;
468
465
  action: {
469
466
  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";
470
467
  status: "Rejected" | "Requested" | "Accepted";
471
468
  transactionId: string;
472
- createdByUserType: "system" | "user";
473
469
  createdAt: string;
474
470
  createdBy: string;
475
471
  createdByRole: string;
@@ -516,7 +512,7 @@ export declare const Draft: z.ZodObject<{
516
512
  originalFilename: string;
517
513
  }[] | [string, string] | null | undefined>;
518
514
  createdBySignature?: string | null | undefined;
519
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
515
+ createdAtLocation?: string | null | undefined;
520
516
  annotation?: Record<string, string | number | boolean | {
521
517
  type: string;
522
518
  filename: string;
@@ -558,8 +554,8 @@ export declare const Draft: z.ZodObject<{
558
554
  option: string;
559
555
  filename: string;
560
556
  originalFilename: string;
561
- }[] | [string, string] | null | undefined> | null | undefined;
562
- originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
557
+ }[] | [string, string] | null | undefined> | undefined;
558
+ originalActionId?: string | undefined;
563
559
  };
564
560
  }, {
565
561
  id: string;
@@ -570,7 +566,6 @@ export declare const Draft: z.ZodObject<{
570
566
  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";
571
567
  status: "Rejected" | "Requested" | "Accepted";
572
568
  transactionId: string;
573
- createdByUserType: "system" | "user";
574
569
  createdAt: string;
575
570
  createdBy: string;
576
571
  createdByRole: string;
@@ -659,12 +654,12 @@ export declare const Draft: z.ZodObject<{
659
654
  option: string;
660
655
  filename: string;
661
656
  originalFilename: string;
662
- }[] | [string, string] | null | undefined> | null | undefined;
663
- originalActionId?: string | null | undefined;
657
+ }[] | [string, string] | null | undefined> | undefined;
658
+ originalActionId?: string | undefined;
664
659
  };
665
660
  }>;
666
661
  export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
667
- eventId: z.ZodBranded<z.ZodString, "UUID">;
662
+ eventId: z.ZodString;
668
663
  transactionId: z.ZodString;
669
664
  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<{
670
665
  filename: z.ZodString;
@@ -918,7 +913,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
918
913
  surname: string;
919
914
  middlename?: string | null | undefined;
920
915
  }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
921
- originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
916
+ originalActionId: z.ZodOptional<z.ZodString>;
922
917
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
923
918
  }, {
924
919
  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"]>;
@@ -969,7 +964,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
969
964
  filename: string;
970
965
  originalFilename: string;
971
966
  }[] | [string, string] | null | undefined>;
972
- eventId: string & z.BRAND<"UUID">;
967
+ eventId: string;
973
968
  annotation?: Record<string, string | number | boolean | {
974
969
  type: string;
975
970
  filename: string;
@@ -1012,7 +1007,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
1012
1007
  filename: string;
1013
1008
  originalFilename: string;
1014
1009
  }[] | [string, string] | null | undefined> | undefined;
1015
- originalActionId?: (string & z.BRAND<"UUID">) | undefined;
1010
+ originalActionId?: string | undefined;
1016
1011
  keepAssignment?: boolean | undefined;
1017
1012
  }, {
1018
1013
  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";