@opencrvs/toolkit 1.8.0-rc.f872339 → 1.8.0-rc.f8a9481

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.
@@ -6,8 +6,10 @@ export declare const Draft: z.ZodObject<{
6
6
  createdAt: z.ZodString;
7
7
  action: z.ZodObject<Omit<z.objectUtil.extendShape<{
8
8
  id: z.ZodString;
9
+ transactionId: z.ZodString;
9
10
  createdAt: z.ZodString;
10
11
  createdBy: z.ZodString;
12
+ createdByRole: z.ZodString;
11
13
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12
14
  filename: z.ZodString;
13
15
  originalFilename: z.ZodString;
@@ -244,8 +246,10 @@ export declare const Draft: z.ZodObject<{
244
246
  }>, "id">, "strip", z.ZodTypeAny, {
245
247
  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";
246
248
  status: "Rejected" | "Requested" | "Accepted";
249
+ transactionId: string;
247
250
  createdAt: string;
248
251
  createdBy: string;
252
+ createdByRole: string;
249
253
  declaration: Record<string, string | number | boolean | {
250
254
  type: string;
251
255
  filename: string;
@@ -327,8 +331,10 @@ export declare const Draft: z.ZodObject<{
327
331
  }, {
328
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";
329
333
  status: "Rejected" | "Requested" | "Accepted";
334
+ transactionId: string;
330
335
  createdAt: string;
331
336
  createdBy: string;
337
+ createdByRole: string;
332
338
  declaration: Record<string, string | number | boolean | {
333
339
  type: string;
334
340
  filename: string;
@@ -410,14 +416,16 @@ export declare const Draft: z.ZodObject<{
410
416
  }>;
411
417
  }, "strip", z.ZodTypeAny, {
412
418
  id: string;
419
+ transactionId: string;
413
420
  createdAt: string;
414
421
  eventId: string;
415
- transactionId: string;
416
422
  action: {
417
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";
418
424
  status: "Rejected" | "Requested" | "Accepted";
425
+ transactionId: string;
419
426
  createdAt: string;
420
427
  createdBy: string;
428
+ createdByRole: string;
421
429
  declaration: Record<string, string | number | boolean | {
422
430
  type: string;
423
431
  filename: string;
@@ -499,14 +507,16 @@ export declare const Draft: z.ZodObject<{
499
507
  };
500
508
  }, {
501
509
  id: string;
510
+ transactionId: string;
502
511
  createdAt: string;
503
512
  eventId: string;
504
- transactionId: string;
505
513
  action: {
506
514
  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";
507
515
  status: "Rejected" | "Requested" | "Accepted";
516
+ transactionId: string;
508
517
  createdAt: string;
509
518
  createdBy: string;
519
+ createdByRole: string;
510
520
  declaration: Record<string, string | number | boolean | {
511
521
  type: string;
512
522
  filename: string;
@@ -824,6 +834,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
824
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"]>;
825
835
  }>, "strip", z.ZodTypeAny, {
826
836
  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";
837
+ transactionId: string;
827
838
  declaration: Record<string, string | number | boolean | {
828
839
  type: string;
829
840
  filename: string;
@@ -863,7 +874,6 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
863
874
  originalFilename: string;
864
875
  }[] | undefined>;
865
876
  eventId: string;
866
- transactionId: string;
867
877
  annotation?: Record<string, string | number | boolean | {
868
878
  type: string;
869
879
  filename: string;
@@ -906,8 +916,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
906
916
  keepAssignment?: boolean | undefined;
907
917
  }, {
908
918
  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";
909
- eventId: string;
910
919
  transactionId: string;
920
+ eventId: string;
911
921
  declaration?: Record<string, string | number | boolean | {
912
922
  type: string;
913
923
  filename: string;
@@ -275,35 +275,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
275
275
  conditional?: import(".").JSONSchema | undefined;
276
276
  }[];
277
277
  }>;
278
- workqueues: z.ZodArray<z.ZodObject<{
279
- id: z.ZodString;
280
- filters: z.ZodArray<z.ZodObject<{
281
- status: z.ZodArray<z.ZodNativeEnum<{
282
- readonly CREATED: "CREATED";
283
- readonly NOTIFIED: "NOTIFIED";
284
- readonly DECLARED: "DECLARED";
285
- readonly VALIDATED: "VALIDATED";
286
- readonly REGISTERED: "REGISTERED";
287
- readonly CERTIFIED: "CERTIFIED";
288
- readonly REJECTED: "REJECTED";
289
- readonly ARCHIVED: "ARCHIVED";
290
- }>, "many">;
291
- }, "strip", z.ZodTypeAny, {
292
- status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
293
- }, {
294
- status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
295
- }>, "many">;
296
- }, "strip", z.ZodTypeAny, {
297
- id: string;
298
- filters: {
299
- status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
300
- }[];
301
- }, {
302
- id: string;
303
- filters: {
304
- status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
305
- }[];
306
- }>, "many">;
307
278
  deduplication: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
308
279
  id: z.ZodString;
309
280
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
@@ -621,12 +592,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
621
592
  emptyValueMessage?: TranslationConfig | undefined;
622
593
  })[];
623
594
  };
624
- workqueues: {
625
- id: string;
626
- filters: {
627
- status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
628
- }[];
629
- }[];
630
595
  deduplication: {
631
596
  id: string;
632
597
  label: TranslationConfig;
@@ -1058,12 +1023,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1058
1023
  } | undefined;
1059
1024
  })[];
1060
1025
  };
1061
- workqueues: {
1062
- id: string;
1063
- filters: {
1064
- status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1065
- }[];
1066
- }[];
1067
1026
  deduplication?: {
1068
1027
  id: string;
1069
1028
  label: {
@@ -1335,12 +1294,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1335
1294
  emptyValueMessage?: TranslationConfig | undefined;
1336
1295
  })[];
1337
1296
  };
1338
- workqueues: {
1339
- id: string;
1340
- filters: {
1341
- status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1342
- }[];
1343
- }[];
1344
1297
  deduplication: {
1345
1298
  id: string;
1346
1299
  label: TranslationConfig;
@@ -1772,12 +1725,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1772
1725
  } | undefined;
1773
1726
  })[];
1774
1727
  };
1775
- workqueues: {
1776
- id: string;
1777
- filters: {
1778
- status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1779
- }[];
1780
- }[];
1781
1728
  deduplication?: {
1782
1729
  id: string;
1783
1730
  label: {