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

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.
@@ -117,7 +117,6 @@ export declare const UrbanAddressUpdateValue: z.ZodObject<z.objectUtil.extendSha
117
117
  street?: string | null | undefined;
118
118
  zipCode?: string | null | undefined;
119
119
  }>;
120
- export type UrbanAddressUpdateValue = z.infer<typeof UrbanAddressUpdateValue>;
121
120
  export declare const RuralAddressUpdateValue: z.ZodObject<z.objectUtil.extendShape<{
122
121
  country: z.ZodString;
123
122
  addressType: z.ZodLiteral<"DOMESTIC">;
@@ -141,7 +140,6 @@ export declare const RuralAddressUpdateValue: z.ZodObject<z.objectUtil.extendSha
141
140
  urbanOrRural: "RURAL";
142
141
  village?: string | null | undefined;
143
142
  }>;
144
- export type RuralAddressUpdateValue = z.infer<typeof RuralAddressUpdateValue>;
145
143
  export declare const GenericAddressValue: z.ZodObject<{
146
144
  country: z.ZodString;
147
145
  addressType: z.ZodLiteral<"INTERNATIONAL">;
@@ -291,7 +289,6 @@ export declare const GenericAddressUpdateValue: z.ZodObject<{
291
289
  addressLine3?: string | null | undefined;
292
290
  postcodeOrZip?: string | null | undefined;
293
291
  }>;
294
- export type GenericAddressUpdateValue = z.infer<typeof GenericAddressUpdateValue>;
295
292
  export declare const AddressFieldUpdateValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
296
293
  country: z.ZodString;
297
294
  addressType: z.ZodLiteral<"DOMESTIC">;
@@ -6,10 +6,8 @@ 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;
10
9
  createdAt: z.ZodString;
11
10
  createdBy: z.ZodString;
12
- createdByRole: z.ZodString;
13
11
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
14
12
  filename: z.ZodString;
15
13
  originalFilename: z.ZodString;
@@ -246,10 +244,8 @@ export declare const Draft: z.ZodObject<{
246
244
  }>, "id">, "strip", z.ZodTypeAny, {
247
245
  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";
248
246
  status: "Rejected" | "Requested" | "Accepted";
249
- transactionId: string;
250
247
  createdAt: string;
251
248
  createdBy: string;
252
- createdByRole: string;
253
249
  declaration: Record<string, string | number | boolean | {
254
250
  type: string;
255
251
  filename: string;
@@ -331,10 +327,8 @@ export declare const Draft: z.ZodObject<{
331
327
  }, {
332
328
  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
329
  status: "Rejected" | "Requested" | "Accepted";
334
- transactionId: string;
335
330
  createdAt: string;
336
331
  createdBy: string;
337
- createdByRole: string;
338
332
  declaration: Record<string, string | number | boolean | {
339
333
  type: string;
340
334
  filename: string;
@@ -416,16 +410,14 @@ export declare const Draft: z.ZodObject<{
416
410
  }>;
417
411
  }, "strip", z.ZodTypeAny, {
418
412
  id: string;
419
- transactionId: string;
420
413
  createdAt: string;
421
414
  eventId: string;
415
+ transactionId: string;
422
416
  action: {
423
417
  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
418
  status: "Rejected" | "Requested" | "Accepted";
425
- transactionId: string;
426
419
  createdAt: string;
427
420
  createdBy: string;
428
- createdByRole: string;
429
421
  declaration: Record<string, string | number | boolean | {
430
422
  type: string;
431
423
  filename: string;
@@ -507,16 +499,14 @@ export declare const Draft: z.ZodObject<{
507
499
  };
508
500
  }, {
509
501
  id: string;
510
- transactionId: string;
511
502
  createdAt: string;
512
503
  eventId: string;
504
+ transactionId: string;
513
505
  action: {
514
506
  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";
515
507
  status: "Rejected" | "Requested" | "Accepted";
516
- transactionId: string;
517
508
  createdAt: string;
518
509
  createdBy: string;
519
- createdByRole: string;
520
510
  declaration: Record<string, string | number | boolean | {
521
511
  type: string;
522
512
  filename: string;
@@ -834,7 +824,6 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
834
824
  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
825
  }>, "strip", z.ZodTypeAny, {
836
826
  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;
838
827
  declaration: Record<string, string | number | boolean | {
839
828
  type: string;
840
829
  filename: string;
@@ -874,6 +863,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
874
863
  originalFilename: string;
875
864
  }[] | undefined>;
876
865
  eventId: string;
866
+ transactionId: string;
877
867
  annotation?: Record<string, string | number | boolean | {
878
868
  type: string;
879
869
  filename: string;
@@ -916,8 +906,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
916
906
  keepAssignment?: boolean | undefined;
917
907
  }, {
918
908
  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";
919
- transactionId: string;
920
909
  eventId: string;
910
+ transactionId: string;
921
911
  declaration?: Record<string, string | number | boolean | {
922
912
  type: string;
923
913
  filename: string;
@@ -37,23 +37,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
37
37
  defaultMessage: string;
38
38
  } | undefined;
39
39
  }>;
40
- fields: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
41
- emptyValueMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
42
- id: string;
43
- description: string;
44
- defaultMessage: string;
45
- }>>;
46
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
47
- type: z.ZodLiteral<"SHOW">;
48
- conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
49
- }, "strip", z.ZodTypeAny, {
50
- type: "SHOW";
51
- conditional: import(".").JSONSchema;
52
- }, {
53
- type: "SHOW";
54
- conditional: import(".").JSONSchema;
55
- }>, "many">>>;
56
- }, {
40
+ fields: z.ZodArray<z.ZodObject<{
57
41
  id: z.ZodString;
58
42
  value: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
59
43
  id: string;
@@ -70,14 +54,10 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
70
54
  description: string;
71
55
  defaultMessage: string;
72
56
  }>>;
73
- }>, "strip", z.ZodTypeAny, {
57
+ }, "strip", z.ZodTypeAny, {
74
58
  id: string;
75
59
  value: TranslationConfig;
76
60
  label: TranslationConfig;
77
- conditionals?: {
78
- type: "SHOW";
79
- conditional: import(".").JSONSchema;
80
- }[] | undefined;
81
61
  emptyValueMessage?: TranslationConfig | undefined;
82
62
  }, {
83
63
  id: string;
@@ -91,75 +71,24 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
91
71
  description: string;
92
72
  defaultMessage: string;
93
73
  };
94
- conditionals?: {
95
- type: "SHOW";
96
- conditional: import(".").JSONSchema;
97
- }[] | undefined;
98
- emptyValueMessage?: {
99
- id: string;
100
- description: string;
101
- defaultMessage: string;
102
- } | undefined;
103
- }>, z.ZodObject<z.objectUtil.extendShape<{
104
- emptyValueMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
105
- id: string;
106
- description: string;
107
- defaultMessage: string;
108
- }>>;
109
- conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
110
- type: z.ZodLiteral<"SHOW">;
111
- conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
112
- }, "strip", z.ZodTypeAny, {
113
- type: "SHOW";
114
- conditional: import(".").JSONSchema;
115
- }, {
116
- type: "SHOW";
117
- conditional: import(".").JSONSchema;
118
- }>, "many">>>;
119
- }, {
120
- fieldId: z.ZodString;
121
- }>, "strip", z.ZodTypeAny, {
122
- fieldId: string;
123
- conditionals?: {
124
- type: "SHOW";
125
- conditional: import(".").JSONSchema;
126
- }[] | undefined;
127
- emptyValueMessage?: TranslationConfig | undefined;
128
- }, {
129
- fieldId: string;
130
- conditionals?: {
131
- type: "SHOW";
132
- conditional: import(".").JSONSchema;
133
- }[] | undefined;
134
74
  emptyValueMessage?: {
135
75
  id: string;
136
76
  description: string;
137
77
  defaultMessage: string;
138
78
  } | undefined;
139
- }>]>, "many">;
79
+ }>, "many">;
140
80
  }, "strip", z.ZodTypeAny, {
141
81
  title: {
142
82
  id: string;
143
83
  label: TranslationConfig;
144
84
  emptyValueMessage?: TranslationConfig | undefined;
145
85
  };
146
- fields: ({
147
- fieldId: string;
148
- conditionals?: {
149
- type: "SHOW";
150
- conditional: import(".").JSONSchema;
151
- }[] | undefined;
152
- emptyValueMessage?: TranslationConfig | undefined;
153
- } | {
86
+ fields: {
154
87
  id: string;
155
88
  value: TranslationConfig;
156
89
  label: TranslationConfig;
157
- conditionals?: {
158
- type: "SHOW";
159
- conditional: import(".").JSONSchema;
160
- }[] | undefined;
161
90
  emptyValueMessage?: TranslationConfig | undefined;
162
- })[];
91
+ }[];
163
92
  }, {
164
93
  title: {
165
94
  id: string;
@@ -174,18 +103,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
174
103
  defaultMessage: string;
175
104
  } | undefined;
176
105
  };
177
- fields: ({
178
- fieldId: string;
179
- conditionals?: {
180
- type: "SHOW";
181
- conditional: import(".").JSONSchema;
182
- }[] | undefined;
183
- emptyValueMessage?: {
184
- id: string;
185
- description: string;
186
- defaultMessage: string;
187
- } | undefined;
188
- } | {
106
+ fields: {
189
107
  id: string;
190
108
  value: {
191
109
  id: string;
@@ -197,16 +115,12 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
197
115
  description: string;
198
116
  defaultMessage: string;
199
117
  };
200
- conditionals?: {
201
- type: "SHOW";
202
- conditional: import(".").JSONSchema;
203
- }[] | undefined;
204
118
  emptyValueMessage?: {
205
119
  id: string;
206
120
  description: string;
207
121
  defaultMessage: string;
208
122
  } | undefined;
209
- })[];
123
+ }[];
210
124
  }>;
211
125
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
212
126
  id: string;
@@ -275,6 +189,35 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
275
189
  conditional?: import(".").JSONSchema | undefined;
276
190
  }[];
277
191
  }>;
192
+ workqueues: z.ZodArray<z.ZodObject<{
193
+ id: z.ZodString;
194
+ filters: z.ZodArray<z.ZodObject<{
195
+ status: z.ZodArray<z.ZodNativeEnum<{
196
+ readonly CREATED: "CREATED";
197
+ readonly NOTIFIED: "NOTIFIED";
198
+ readonly DECLARED: "DECLARED";
199
+ readonly VALIDATED: "VALIDATED";
200
+ readonly REGISTERED: "REGISTERED";
201
+ readonly CERTIFIED: "CERTIFIED";
202
+ readonly REJECTED: "REJECTED";
203
+ readonly ARCHIVED: "ARCHIVED";
204
+ }>, "many">;
205
+ }, "strip", z.ZodTypeAny, {
206
+ status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
207
+ }, {
208
+ status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
209
+ }>, "many">;
210
+ }, "strip", z.ZodTypeAny, {
211
+ id: string;
212
+ filters: {
213
+ status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
214
+ }[];
215
+ }, {
216
+ id: string;
217
+ filters: {
218
+ status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
219
+ }[];
220
+ }>, "many">;
278
221
  deduplication: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
279
222
  id: z.ZodString;
280
223
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
@@ -574,24 +517,19 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
574
517
  label: TranslationConfig;
575
518
  emptyValueMessage?: TranslationConfig | undefined;
576
519
  };
577
- fields: ({
578
- fieldId: string;
579
- conditionals?: {
580
- type: "SHOW";
581
- conditional: import(".").JSONSchema;
582
- }[] | undefined;
583
- emptyValueMessage?: TranslationConfig | undefined;
584
- } | {
520
+ fields: {
585
521
  id: string;
586
522
  value: TranslationConfig;
587
523
  label: TranslationConfig;
588
- conditionals?: {
589
- type: "SHOW";
590
- conditional: import(".").JSONSchema;
591
- }[] | undefined;
592
524
  emptyValueMessage?: TranslationConfig | undefined;
593
- })[];
525
+ }[];
594
526
  };
527
+ workqueues: {
528
+ id: string;
529
+ filters: {
530
+ status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
531
+ }[];
532
+ }[];
595
533
  deduplication: {
596
534
  id: string;
597
535
  label: TranslationConfig;
@@ -989,18 +927,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
989
927
  defaultMessage: string;
990
928
  } | undefined;
991
929
  };
992
- fields: ({
993
- fieldId: string;
994
- conditionals?: {
995
- type: "SHOW";
996
- conditional: import(".").JSONSchema;
997
- }[] | undefined;
998
- emptyValueMessage?: {
999
- id: string;
1000
- description: string;
1001
- defaultMessage: string;
1002
- } | undefined;
1003
- } | {
930
+ fields: {
1004
931
  id: string;
1005
932
  value: {
1006
933
  id: string;
@@ -1012,17 +939,19 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1012
939
  description: string;
1013
940
  defaultMessage: string;
1014
941
  };
1015
- conditionals?: {
1016
- type: "SHOW";
1017
- conditional: import(".").JSONSchema;
1018
- }[] | undefined;
1019
942
  emptyValueMessage?: {
1020
943
  id: string;
1021
944
  description: string;
1022
945
  defaultMessage: string;
1023
946
  } | undefined;
1024
- })[];
947
+ }[];
1025
948
  };
949
+ workqueues: {
950
+ id: string;
951
+ filters: {
952
+ status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
953
+ }[];
954
+ }[];
1026
955
  deduplication?: {
1027
956
  id: string;
1028
957
  label: {
@@ -1276,24 +1205,19 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1276
1205
  label: TranslationConfig;
1277
1206
  emptyValueMessage?: TranslationConfig | undefined;
1278
1207
  };
1279
- fields: ({
1280
- fieldId: string;
1281
- conditionals?: {
1282
- type: "SHOW";
1283
- conditional: import(".").JSONSchema;
1284
- }[] | undefined;
1285
- emptyValueMessage?: TranslationConfig | undefined;
1286
- } | {
1208
+ fields: {
1287
1209
  id: string;
1288
1210
  value: TranslationConfig;
1289
1211
  label: TranslationConfig;
1290
- conditionals?: {
1291
- type: "SHOW";
1292
- conditional: import(".").JSONSchema;
1293
- }[] | undefined;
1294
1212
  emptyValueMessage?: TranslationConfig | undefined;
1295
- })[];
1213
+ }[];
1296
1214
  };
1215
+ workqueues: {
1216
+ id: string;
1217
+ filters: {
1218
+ status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1219
+ }[];
1220
+ }[];
1297
1221
  deduplication: {
1298
1222
  id: string;
1299
1223
  label: TranslationConfig;
@@ -1691,18 +1615,7 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1691
1615
  defaultMessage: string;
1692
1616
  } | undefined;
1693
1617
  };
1694
- fields: ({
1695
- fieldId: string;
1696
- conditionals?: {
1697
- type: "SHOW";
1698
- conditional: import(".").JSONSchema;
1699
- }[] | undefined;
1700
- emptyValueMessage?: {
1701
- id: string;
1702
- description: string;
1703
- defaultMessage: string;
1704
- } | undefined;
1705
- } | {
1618
+ fields: {
1706
1619
  id: string;
1707
1620
  value: {
1708
1621
  id: string;
@@ -1714,17 +1627,19 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1714
1627
  description: string;
1715
1628
  defaultMessage: string;
1716
1629
  };
1717
- conditionals?: {
1718
- type: "SHOW";
1719
- conditional: import(".").JSONSchema;
1720
- }[] | undefined;
1721
1630
  emptyValueMessage?: {
1722
1631
  id: string;
1723
1632
  description: string;
1724
1633
  defaultMessage: string;
1725
1634
  } | undefined;
1726
- })[];
1635
+ }[];
1727
1636
  };
1637
+ workqueues: {
1638
+ id: string;
1639
+ filters: {
1640
+ status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
1641
+ }[];
1642
+ }[];
1728
1643
  deduplication?: {
1729
1644
  id: string;
1730
1645
  label: {