@opencrvs/toolkit 1.8.0-rc.fb4793a → 1.8.0-rc.fbb40d1

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.
@@ -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,7 @@ export declare const Draft: z.ZodObject<{
10
10
  createdAt: z.ZodString;
11
11
  createdBy: z.ZodString;
12
12
  createdByRole: z.ZodString;
13
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
13
14
  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
15
  filename: z.ZodString;
15
16
  originalFilename: z.ZodString;
@@ -124,7 +125,7 @@ export declare const Draft: z.ZodObject<{
124
125
  addressLine3?: string | null | undefined;
125
126
  postcodeOrZip?: string | null | undefined;
126
127
  }>]>>;
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
+ 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
129
  filename: z.ZodString;
129
130
  originalFilename: z.ZodString;
130
131
  type: z.ZodString;
@@ -237,10 +238,9 @@ export declare const Draft: z.ZodObject<{
237
238
  addressLine2?: string | null | undefined;
238
239
  addressLine3?: string | null | undefined;
239
240
  postcodeOrZip?: string | null | undefined;
240
- }>]>>>;
241
- createdAtLocation: z.ZodString;
241
+ }>]>>>>;
242
242
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
243
- originalActionId: z.ZodOptional<z.ZodString>;
243
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
244
244
  }, {
245
245
  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
246
  }>, "id">, "strip", z.ZodTypeAny, {
@@ -288,7 +288,7 @@ export declare const Draft: z.ZodObject<{
288
288
  filename: string;
289
289
  originalFilename: string;
290
290
  }[] | [string, string] | undefined>;
291
- createdAtLocation: string;
291
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
292
292
  annotation?: Record<string, string | number | boolean | {
293
293
  type: string;
294
294
  filename: string;
@@ -326,8 +326,8 @@ export declare const Draft: z.ZodObject<{
326
326
  option: string;
327
327
  filename: string;
328
328
  originalFilename: string;
329
- }[] | [string, string] | undefined> | undefined;
330
- originalActionId?: string | undefined;
329
+ }[] | [string, string] | undefined> | null | undefined;
330
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
331
331
  }, {
332
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";
333
333
  status: "Rejected" | "Requested" | "Accepted";
@@ -373,7 +373,7 @@ export declare const Draft: z.ZodObject<{
373
373
  filename: string;
374
374
  originalFilename: string;
375
375
  }[] | [string, string] | undefined>;
376
- createdAtLocation: string;
376
+ createdAtLocation?: string | null | undefined;
377
377
  annotation?: Record<string, string | number | boolean | {
378
378
  type: string;
379
379
  filename: string;
@@ -411,14 +411,14 @@ export declare const Draft: z.ZodObject<{
411
411
  option: string;
412
412
  filename: string;
413
413
  originalFilename: string;
414
- }[] | [string, string] | undefined> | undefined;
415
- originalActionId?: string | undefined;
414
+ }[] | [string, string] | undefined> | null | undefined;
415
+ originalActionId?: string | null | undefined;
416
416
  }>;
417
417
  }, "strip", z.ZodTypeAny, {
418
- id: string;
418
+ id: string & z.BRAND<"UUID">;
419
419
  transactionId: string;
420
420
  createdAt: string;
421
- eventId: string;
421
+ eventId: string & z.BRAND<"UUID">;
422
422
  action: {
423
423
  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
424
  status: "Rejected" | "Requested" | "Accepted";
@@ -464,7 +464,7 @@ export declare const Draft: z.ZodObject<{
464
464
  filename: string;
465
465
  originalFilename: string;
466
466
  }[] | [string, string] | undefined>;
467
- createdAtLocation: string;
467
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
468
468
  annotation?: Record<string, string | number | boolean | {
469
469
  type: string;
470
470
  filename: string;
@@ -502,8 +502,8 @@ export declare const Draft: z.ZodObject<{
502
502
  option: string;
503
503
  filename: string;
504
504
  originalFilename: string;
505
- }[] | [string, string] | undefined> | undefined;
506
- originalActionId?: string | undefined;
505
+ }[] | [string, string] | undefined> | null | undefined;
506
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
507
507
  };
508
508
  }, {
509
509
  id: string;
@@ -555,7 +555,7 @@ export declare const Draft: z.ZodObject<{
555
555
  filename: string;
556
556
  originalFilename: string;
557
557
  }[] | [string, string] | undefined>;
558
- createdAtLocation: string;
558
+ createdAtLocation?: string | null | undefined;
559
559
  annotation?: Record<string, string | number | boolean | {
560
560
  type: string;
561
561
  filename: string;
@@ -593,12 +593,12 @@ export declare const Draft: z.ZodObject<{
593
593
  option: string;
594
594
  filename: string;
595
595
  originalFilename: string;
596
- }[] | [string, string] | undefined> | undefined;
597
- originalActionId?: string | undefined;
596
+ }[] | [string, string] | undefined> | null | undefined;
597
+ originalActionId?: string | null | undefined;
598
598
  };
599
599
  }>;
600
600
  export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
601
- eventId: z.ZodString;
601
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
602
602
  transactionId: z.ZodString;
603
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<{
604
604
  filename: z.ZodString;
@@ -828,7 +828,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
828
828
  addressLine3?: string | null | undefined;
829
829
  postcodeOrZip?: string | null | undefined;
830
830
  }>]>>>;
831
- originalActionId: z.ZodOptional<z.ZodString>;
831
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
832
832
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
833
833
  }, {
834
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"]>;
@@ -875,7 +875,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
875
875
  filename: string;
876
876
  originalFilename: string;
877
877
  }[] | [string, string] | undefined>;
878
- eventId: string;
878
+ eventId: string & z.BRAND<"UUID">;
879
879
  annotation?: Record<string, string | number | boolean | {
880
880
  type: string;
881
881
  filename: string;
@@ -914,7 +914,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
914
914
  filename: string;
915
915
  originalFilename: string;
916
916
  }[] | [string, string] | undefined> | undefined;
917
- originalActionId?: string | undefined;
917
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
918
918
  keepAssignment?: boolean | undefined;
919
919
  }, {
920
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";