@opencrvs/toolkit 1.8.0-rc.feaeeb7 → 1.8.0-rc.ff62f9e

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.
@@ -18,7 +18,13 @@ export declare const ActionType: {
18
18
  readonly CUSTOM: "CUSTOM";
19
19
  readonly REJECT: "REJECT";
20
20
  readonly MARKED_AS_DUPLICATE: "MARKED_AS_DUPLICATE";
21
- readonly ARCHIVED: "ARCHIVED";
21
+ readonly ARCHIVE: "ARCHIVE";
22
+ readonly READ: "READ";
22
23
  };
24
+ /**
25
+ * Actions that can be attached to an event document
26
+ * even if they are not in event configuration
27
+ */
28
+ export declare const LatentActions: ("REJECT" | "ARCHIVE")[];
23
29
  export type ActionType = (typeof ActionType)[keyof typeof ActionType];
24
30
  //# sourceMappingURL=ActionType.d.ts.map
@@ -6,6 +6,10 @@ export declare const GeographicalArea: {
6
6
  readonly URBAN: "URBAN";
7
7
  readonly RURAL: "RURAL";
8
8
  };
9
+ export declare const AddressType: {
10
+ readonly DOMESTIC: "DOMESTIC";
11
+ readonly INTERNATIONAL: "INTERNATIONAL";
12
+ };
9
13
  export declare const FileFieldValue: z.ZodObject<{
10
14
  filename: z.ZodString;
11
15
  originalFilename: z.ZodString;
@@ -22,6 +26,7 @@ export declare const FileFieldValue: z.ZodObject<{
22
26
  export type FileFieldValue = z.infer<typeof FileFieldValue>;
23
27
  export declare const UrbanAddressValue: z.ZodObject<z.objectUtil.extendShape<{
24
28
  country: z.ZodString;
29
+ addressType: z.ZodLiteral<"DOMESTIC">;
25
30
  province: z.ZodString;
26
31
  district: z.ZodString;
27
32
  }, {
@@ -34,6 +39,7 @@ export declare const UrbanAddressValue: z.ZodObject<z.objectUtil.extendShape<{
34
39
  }>, "strip", z.ZodTypeAny, {
35
40
  country: string;
36
41
  district: string;
42
+ addressType: "DOMESTIC";
37
43
  province: string;
38
44
  urbanOrRural: "URBAN";
39
45
  number?: string | undefined;
@@ -44,6 +50,7 @@ export declare const UrbanAddressValue: z.ZodObject<z.objectUtil.extendShape<{
44
50
  }, {
45
51
  country: string;
46
52
  district: string;
53
+ addressType: "DOMESTIC";
47
54
  province: string;
48
55
  urbanOrRural: "URBAN";
49
56
  number?: string | undefined;
@@ -54,6 +61,7 @@ export declare const UrbanAddressValue: z.ZodObject<z.objectUtil.extendShape<{
54
61
  }>;
55
62
  export declare const RuralAddressValue: z.ZodObject<z.objectUtil.extendShape<{
56
63
  country: z.ZodString;
64
+ addressType: z.ZodLiteral<"DOMESTIC">;
57
65
  province: z.ZodString;
58
66
  district: z.ZodString;
59
67
  }, {
@@ -62,18 +70,21 @@ export declare const RuralAddressValue: z.ZodObject<z.objectUtil.extendShape<{
62
70
  }>, "strip", z.ZodTypeAny, {
63
71
  country: string;
64
72
  district: string;
73
+ addressType: "DOMESTIC";
65
74
  province: string;
66
75
  urbanOrRural: "RURAL";
67
76
  village?: string | undefined;
68
77
  }, {
69
78
  country: string;
70
79
  district: string;
80
+ addressType: "DOMESTIC";
71
81
  province: string;
72
82
  urbanOrRural: "RURAL";
73
83
  village?: string | undefined;
74
84
  }>;
75
85
  export declare const UrbanAddressUpdateValue: z.ZodObject<z.objectUtil.extendShape<{
76
86
  country: z.ZodString;
87
+ addressType: z.ZodLiteral<"DOMESTIC">;
77
88
  province: z.ZodString;
78
89
  district: z.ZodString;
79
90
  }, {
@@ -86,6 +97,7 @@ export declare const UrbanAddressUpdateValue: z.ZodObject<z.objectUtil.extendSha
86
97
  }>, "strip", z.ZodTypeAny, {
87
98
  country: string;
88
99
  district: string;
100
+ addressType: "DOMESTIC";
89
101
  province: string;
90
102
  urbanOrRural: "URBAN";
91
103
  number?: string | null | undefined;
@@ -96,6 +108,7 @@ export declare const UrbanAddressUpdateValue: z.ZodObject<z.objectUtil.extendSha
96
108
  }, {
97
109
  country: string;
98
110
  district: string;
111
+ addressType: "DOMESTIC";
99
112
  province: string;
100
113
  urbanOrRural: "URBAN";
101
114
  number?: string | null | undefined;
@@ -106,6 +119,7 @@ export declare const UrbanAddressUpdateValue: z.ZodObject<z.objectUtil.extendSha
106
119
  }>;
107
120
  export declare const RuralAddressUpdateValue: z.ZodObject<z.objectUtil.extendShape<{
108
121
  country: z.ZodString;
122
+ addressType: z.ZodLiteral<"DOMESTIC">;
109
123
  province: z.ZodString;
110
124
  district: z.ZodString;
111
125
  }, {
@@ -114,18 +128,52 @@ export declare const RuralAddressUpdateValue: z.ZodObject<z.objectUtil.extendSha
114
128
  }>, "strip", z.ZodTypeAny, {
115
129
  country: string;
116
130
  district: string;
131
+ addressType: "DOMESTIC";
117
132
  province: string;
118
133
  urbanOrRural: "RURAL";
119
134
  village?: string | null | undefined;
120
135
  }, {
121
136
  country: string;
122
137
  district: string;
138
+ addressType: "DOMESTIC";
123
139
  province: string;
124
140
  urbanOrRural: "RURAL";
125
141
  village?: string | null | undefined;
126
142
  }>;
127
- export declare const AddressFieldValue: z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
143
+ export declare const GenericAddressValue: z.ZodObject<{
144
+ country: z.ZodString;
145
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
146
+ state: z.ZodString;
147
+ district2: z.ZodString;
148
+ cityOrTown: z.ZodOptional<z.ZodString>;
149
+ addressLine1: z.ZodOptional<z.ZodString>;
150
+ addressLine2: z.ZodOptional<z.ZodString>;
151
+ addressLine3: z.ZodOptional<z.ZodString>;
152
+ postcodeOrZip: z.ZodOptional<z.ZodString>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ country: string;
155
+ state: string;
156
+ addressType: "INTERNATIONAL";
157
+ district2: string;
158
+ cityOrTown?: string | undefined;
159
+ addressLine1?: string | undefined;
160
+ addressLine2?: string | undefined;
161
+ addressLine3?: string | undefined;
162
+ postcodeOrZip?: string | undefined;
163
+ }, {
164
+ country: string;
165
+ state: string;
166
+ addressType: "INTERNATIONAL";
167
+ district2: string;
168
+ cityOrTown?: string | undefined;
169
+ addressLine1?: string | undefined;
170
+ addressLine2?: string | undefined;
171
+ addressLine3?: string | undefined;
172
+ postcodeOrZip?: string | undefined;
173
+ }>;
174
+ export declare const AddressFieldValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
128
175
  country: z.ZodString;
176
+ addressType: z.ZodLiteral<"DOMESTIC">;
129
177
  province: z.ZodString;
130
178
  district: z.ZodString;
131
179
  }, {
@@ -138,6 +186,7 @@ export declare const AddressFieldValue: z.ZodDiscriminatedUnion<"urbanOrRural",
138
186
  }>, "strip", z.ZodTypeAny, {
139
187
  country: string;
140
188
  district: string;
189
+ addressType: "DOMESTIC";
141
190
  province: string;
142
191
  urbanOrRural: "URBAN";
143
192
  number?: string | undefined;
@@ -148,6 +197,7 @@ export declare const AddressFieldValue: z.ZodDiscriminatedUnion<"urbanOrRural",
148
197
  }, {
149
198
  country: string;
150
199
  district: string;
200
+ addressType: "DOMESTIC";
151
201
  province: string;
152
202
  urbanOrRural: "URBAN";
153
203
  number?: string | undefined;
@@ -157,6 +207,7 @@ export declare const AddressFieldValue: z.ZodDiscriminatedUnion<"urbanOrRural",
157
207
  zipCode?: string | undefined;
158
208
  }>, z.ZodObject<z.objectUtil.extendShape<{
159
209
  country: z.ZodString;
210
+ addressType: z.ZodLiteral<"DOMESTIC">;
160
211
  province: z.ZodString;
161
212
  district: z.ZodString;
162
213
  }, {
@@ -165,18 +216,82 @@ export declare const AddressFieldValue: z.ZodDiscriminatedUnion<"urbanOrRural",
165
216
  }>, "strip", z.ZodTypeAny, {
166
217
  country: string;
167
218
  district: string;
219
+ addressType: "DOMESTIC";
168
220
  province: string;
169
221
  urbanOrRural: "RURAL";
170
222
  village?: string | undefined;
171
223
  }, {
172
224
  country: string;
173
225
  district: string;
226
+ addressType: "DOMESTIC";
174
227
  province: string;
175
228
  urbanOrRural: "RURAL";
176
229
  village?: string | undefined;
230
+ }>]>, z.ZodObject<{
231
+ country: z.ZodString;
232
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
233
+ state: z.ZodString;
234
+ district2: z.ZodString;
235
+ cityOrTown: z.ZodOptional<z.ZodString>;
236
+ addressLine1: z.ZodOptional<z.ZodString>;
237
+ addressLine2: z.ZodOptional<z.ZodString>;
238
+ addressLine3: z.ZodOptional<z.ZodString>;
239
+ postcodeOrZip: z.ZodOptional<z.ZodString>;
240
+ }, "strip", z.ZodTypeAny, {
241
+ country: string;
242
+ state: string;
243
+ addressType: "INTERNATIONAL";
244
+ district2: string;
245
+ cityOrTown?: string | undefined;
246
+ addressLine1?: string | undefined;
247
+ addressLine2?: string | undefined;
248
+ addressLine3?: string | undefined;
249
+ postcodeOrZip?: string | undefined;
250
+ }, {
251
+ country: string;
252
+ state: string;
253
+ addressType: "INTERNATIONAL";
254
+ district2: string;
255
+ cityOrTown?: string | undefined;
256
+ addressLine1?: string | undefined;
257
+ addressLine2?: string | undefined;
258
+ addressLine3?: string | undefined;
259
+ postcodeOrZip?: string | undefined;
177
260
  }>]>;
178
- export declare const AddressFieldUpdateValue: z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
261
+ export declare const GenericAddressUpdateValue: z.ZodObject<{
179
262
  country: z.ZodString;
263
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
264
+ state: z.ZodString;
265
+ district2: z.ZodString;
266
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
267
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
268
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
269
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
270
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ country: string;
273
+ state: string;
274
+ addressType: "INTERNATIONAL";
275
+ district2: string;
276
+ cityOrTown?: string | null | undefined;
277
+ addressLine1?: string | null | undefined;
278
+ addressLine2?: string | null | undefined;
279
+ addressLine3?: string | null | undefined;
280
+ postcodeOrZip?: string | null | undefined;
281
+ }, {
282
+ country: string;
283
+ state: string;
284
+ addressType: "INTERNATIONAL";
285
+ district2: string;
286
+ cityOrTown?: string | null | undefined;
287
+ addressLine1?: string | null | undefined;
288
+ addressLine2?: string | null | undefined;
289
+ addressLine3?: string | null | undefined;
290
+ postcodeOrZip?: string | null | undefined;
291
+ }>;
292
+ export declare const AddressFieldUpdateValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
293
+ country: z.ZodString;
294
+ addressType: z.ZodLiteral<"DOMESTIC">;
180
295
  province: z.ZodString;
181
296
  district: z.ZodString;
182
297
  }, {
@@ -189,6 +304,7 @@ export declare const AddressFieldUpdateValue: z.ZodDiscriminatedUnion<"urbanOrRu
189
304
  }>, "strip", z.ZodTypeAny, {
190
305
  country: string;
191
306
  district: string;
307
+ addressType: "DOMESTIC";
192
308
  province: string;
193
309
  urbanOrRural: "URBAN";
194
310
  number?: string | null | undefined;
@@ -199,6 +315,7 @@ export declare const AddressFieldUpdateValue: z.ZodDiscriminatedUnion<"urbanOrRu
199
315
  }, {
200
316
  country: string;
201
317
  district: string;
318
+ addressType: "DOMESTIC";
202
319
  province: string;
203
320
  urbanOrRural: "URBAN";
204
321
  number?: string | null | undefined;
@@ -208,6 +325,7 @@ export declare const AddressFieldUpdateValue: z.ZodDiscriminatedUnion<"urbanOrRu
208
325
  zipCode?: string | null | undefined;
209
326
  }>, z.ZodObject<z.objectUtil.extendShape<{
210
327
  country: z.ZodString;
328
+ addressType: z.ZodLiteral<"DOMESTIC">;
211
329
  province: z.ZodString;
212
330
  district: z.ZodString;
213
331
  }, {
@@ -216,15 +334,47 @@ export declare const AddressFieldUpdateValue: z.ZodDiscriminatedUnion<"urbanOrRu
216
334
  }>, "strip", z.ZodTypeAny, {
217
335
  country: string;
218
336
  district: string;
337
+ addressType: "DOMESTIC";
219
338
  province: string;
220
339
  urbanOrRural: "RURAL";
221
340
  village?: string | null | undefined;
222
341
  }, {
223
342
  country: string;
224
343
  district: string;
344
+ addressType: "DOMESTIC";
225
345
  province: string;
226
346
  urbanOrRural: "RURAL";
227
347
  village?: string | null | undefined;
348
+ }>]>, z.ZodObject<{
349
+ country: z.ZodString;
350
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
351
+ state: z.ZodString;
352
+ district2: z.ZodString;
353
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
354
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
355
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
356
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
357
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
358
+ }, "strip", z.ZodTypeAny, {
359
+ country: string;
360
+ state: string;
361
+ addressType: "INTERNATIONAL";
362
+ district2: string;
363
+ cityOrTown?: string | null | undefined;
364
+ addressLine1?: string | null | undefined;
365
+ addressLine2?: string | null | undefined;
366
+ addressLine3?: string | null | undefined;
367
+ postcodeOrZip?: string | null | undefined;
368
+ }, {
369
+ country: string;
370
+ state: string;
371
+ addressType: "INTERNATIONAL";
372
+ district2: string;
373
+ cityOrTown?: string | null | undefined;
374
+ addressLine1?: string | null | undefined;
375
+ addressLine2?: string | null | undefined;
376
+ addressLine3?: string | null | undefined;
377
+ postcodeOrZip?: string | null | undefined;
228
378
  }>]>;
229
379
  export type AddressFieldValue = z.infer<typeof AddressFieldValue>;
230
380
  export declare const FileFieldValueWithOption: z.ZodObject<{