@opencrvs/toolkit 1.8.0-rc.f9d33b7 → 1.8.0-rc.f9fb039

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.
@@ -10,7 +10,7 @@ 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
+ 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
14
  filename: z.ZodString;
15
15
  originalFilename: z.ZodString;
16
16
  type: z.ZodString;
@@ -124,7 +124,7 @@ export declare const Draft: z.ZodObject<{
124
124
  addressLine3?: string | null | undefined;
125
125
  postcodeOrZip?: string | null | undefined;
126
126
  }>]>>;
127
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
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<{
128
128
  filename: z.ZodString;
129
129
  originalFilename: z.ZodString;
130
130
  type: z.ZodString;
@@ -238,8 +238,7 @@ export declare const Draft: z.ZodObject<{
238
238
  addressLine3?: string | null | undefined;
239
239
  postcodeOrZip?: string | null | undefined;
240
240
  }>]>>>;
241
- createdAtLocation: z.ZodOptional<z.ZodString>;
242
- updatedAtLocation: z.ZodOptional<z.ZodString>;
241
+ createdAtLocation: z.ZodString;
243
242
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
244
243
  originalActionId: z.ZodOptional<z.ZodString>;
245
244
  }, {
@@ -288,7 +287,8 @@ export declare const Draft: z.ZodObject<{
288
287
  option: string;
289
288
  filename: string;
290
289
  originalFilename: string;
291
- }[] | undefined>;
290
+ }[] | [string, string] | undefined>;
291
+ createdAtLocation: string;
292
292
  annotation?: Record<string, string | number | boolean | {
293
293
  type: string;
294
294
  filename: string;
@@ -326,9 +326,7 @@ export declare const Draft: z.ZodObject<{
326
326
  option: string;
327
327
  filename: string;
328
328
  originalFilename: string;
329
- }[] | undefined> | undefined;
330
- createdAtLocation?: string | undefined;
331
- updatedAtLocation?: string | undefined;
329
+ }[] | [string, string] | undefined> | undefined;
332
330
  originalActionId?: string | undefined;
333
331
  }, {
334
332
  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 +372,8 @@ export declare const Draft: z.ZodObject<{
374
372
  option: string;
375
373
  filename: string;
376
374
  originalFilename: string;
377
- }[] | undefined>;
375
+ }[] | [string, string] | undefined>;
376
+ createdAtLocation: string;
378
377
  annotation?: Record<string, string | number | boolean | {
379
378
  type: string;
380
379
  filename: string;
@@ -412,9 +411,7 @@ export declare const Draft: z.ZodObject<{
412
411
  option: string;
413
412
  filename: string;
414
413
  originalFilename: string;
415
- }[] | undefined> | undefined;
416
- createdAtLocation?: string | undefined;
417
- updatedAtLocation?: string | undefined;
414
+ }[] | [string, string] | undefined> | undefined;
418
415
  originalActionId?: string | undefined;
419
416
  }>;
420
417
  }, "strip", z.ZodTypeAny, {
@@ -466,7 +463,8 @@ export declare const Draft: z.ZodObject<{
466
463
  option: string;
467
464
  filename: string;
468
465
  originalFilename: string;
469
- }[] | undefined>;
466
+ }[] | [string, string] | undefined>;
467
+ createdAtLocation: string;
470
468
  annotation?: Record<string, string | number | boolean | {
471
469
  type: string;
472
470
  filename: string;
@@ -504,9 +502,7 @@ export declare const Draft: z.ZodObject<{
504
502
  option: string;
505
503
  filename: string;
506
504
  originalFilename: string;
507
- }[] | undefined> | undefined;
508
- createdAtLocation?: string | undefined;
509
- updatedAtLocation?: string | undefined;
505
+ }[] | [string, string] | undefined> | undefined;
510
506
  originalActionId?: string | undefined;
511
507
  };
512
508
  }, {
@@ -558,7 +554,8 @@ export declare const Draft: z.ZodObject<{
558
554
  option: string;
559
555
  filename: string;
560
556
  originalFilename: string;
561
- }[] | undefined>;
557
+ }[] | [string, string] | undefined>;
558
+ createdAtLocation: string;
562
559
  annotation?: Record<string, string | number | boolean | {
563
560
  type: string;
564
561
  filename: string;
@@ -596,16 +593,14 @@ export declare const Draft: z.ZodObject<{
596
593
  option: string;
597
594
  filename: string;
598
595
  originalFilename: string;
599
- }[] | undefined> | undefined;
600
- createdAtLocation?: string | undefined;
601
- updatedAtLocation?: string | undefined;
596
+ }[] | [string, string] | undefined> | undefined;
602
597
  originalActionId?: string | undefined;
603
598
  };
604
599
  }>;
605
600
  export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
606
601
  eventId: z.ZodString;
607
602
  transactionId: z.ZodString;
608
- declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
603
+ 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
604
  filename: z.ZodString;
610
605
  originalFilename: z.ZodString;
611
606
  type: z.ZodString;
@@ -719,7 +714,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
719
714
  addressLine3?: string | null | undefined;
720
715
  postcodeOrZip?: string | null | undefined;
721
716
  }>]>>>;
722
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
717
+ 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
718
  filename: z.ZodString;
724
719
  originalFilename: z.ZodString;
725
720
  type: z.ZodString;
@@ -837,8 +832,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
837
832
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
838
833
  }, {
839
834
  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"]>;
835
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
840
836
  }>, "strip", z.ZodTypeAny, {
841
837
  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";
838
+ status: "Rejected" | "Requested" | "Accepted";
842
839
  transactionId: string;
843
840
  declaration: Record<string, string | number | boolean | {
844
841
  type: string;
@@ -877,7 +874,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
877
874
  option: string;
878
875
  filename: string;
879
876
  originalFilename: string;
880
- }[] | undefined>;
877
+ }[] | [string, string] | undefined>;
881
878
  eventId: string;
882
879
  annotation?: Record<string, string | number | boolean | {
883
880
  type: string;
@@ -916,11 +913,12 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
916
913
  option: string;
917
914
  filename: string;
918
915
  originalFilename: string;
919
- }[] | undefined> | undefined;
916
+ }[] | [string, string] | undefined> | undefined;
920
917
  originalActionId?: string | undefined;
921
918
  keepAssignment?: boolean | undefined;
922
919
  }, {
923
920
  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";
921
+ status: "Rejected" | "Requested" | "Accepted";
924
922
  transactionId: string;
925
923
  eventId: string;
926
924
  declaration?: Record<string, string | number | boolean | {
@@ -960,7 +958,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
960
958
  option: string;
961
959
  filename: string;
962
960
  originalFilename: string;
963
- }[] | undefined> | undefined;
961
+ }[] | [string, string] | undefined> | undefined;
964
962
  annotation?: Record<string, string | number | boolean | {
965
963
  type: string;
966
964
  filename: string;
@@ -998,7 +996,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
998
996
  option: string;
999
997
  filename: string;
1000
998
  originalFilename: string;
1001
- }[] | undefined> | undefined;
999
+ }[] | [string, string] | undefined> | undefined;
1002
1000
  originalActionId?: string | undefined;
1003
1001
  keepAssignment?: boolean | undefined;
1004
1002
  }>;