@opencrvs/toolkit 1.8.0-rc.f466707 → 1.8.0-rc.fc43738
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.
- package/dist/commons/api/router.d.ts +2498 -2498
- package/dist/commons/conditionals/conditionals.d.ts +2 -2
- package/dist/commons/conditionals/validate.d.ts +6 -6
- package/dist/commons/events/ActionDocument.d.ts +1110 -1117
- package/dist/commons/events/ActionInput.d.ts +1664 -1664
- package/dist/commons/events/Draft.d.ts +152 -152
- package/dist/commons/events/EventDocument.d.ts +1320 -1320
- package/dist/commons/events/EventIndex.d.ts +3 -3
- package/dist/commons/events/EventMetadata.d.ts +3 -3
- package/dist/commons/events/FieldTypeMapping.d.ts +38 -122
- package/dist/commons/events/FieldValue.d.ts +65 -62
- package/dist/commons/events/index.d.ts +0 -1
- package/dist/commons/events/test.utils.d.ts +66 -72
- package/dist/commons/events/utils.d.ts +3 -3
- package/dist/events/index.js +409 -482
- package/package.json +1 -1
- package/dist/commons/events/CompositeFieldValue.d.ts +0 -264
package/package.json
CHANGED
@@ -1,264 +0,0 @@
|
|
1
|
-
import { z } from 'zod';
|
2
|
-
/**
|
3
|
-
* Composite field value consists of multiple field values.
|
4
|
-
*/
|
5
|
-
export declare const GeographicalArea: {
|
6
|
-
readonly URBAN: "URBAN";
|
7
|
-
readonly RURAL: "RURAL";
|
8
|
-
};
|
9
|
-
export declare const FileFieldValue: z.ZodObject<{
|
10
|
-
filename: z.ZodString;
|
11
|
-
originalFilename: z.ZodString;
|
12
|
-
type: z.ZodString;
|
13
|
-
}, "strip", z.ZodTypeAny, {
|
14
|
-
type: string;
|
15
|
-
filename: string;
|
16
|
-
originalFilename: string;
|
17
|
-
}, {
|
18
|
-
type: string;
|
19
|
-
filename: string;
|
20
|
-
originalFilename: string;
|
21
|
-
}>;
|
22
|
-
export type FileFieldValue = z.infer<typeof FileFieldValue>;
|
23
|
-
export declare const UrbanAddressValue: z.ZodObject<z.objectUtil.extendShape<{
|
24
|
-
country: z.ZodString;
|
25
|
-
province: z.ZodString;
|
26
|
-
district: z.ZodString;
|
27
|
-
}, {
|
28
|
-
urbanOrRural: z.ZodLiteral<"URBAN">;
|
29
|
-
town: z.ZodOptional<z.ZodString>;
|
30
|
-
residentialArea: z.ZodOptional<z.ZodString>;
|
31
|
-
street: z.ZodOptional<z.ZodString>;
|
32
|
-
number: z.ZodOptional<z.ZodString>;
|
33
|
-
zipCode: z.ZodOptional<z.ZodString>;
|
34
|
-
}>, "strip", z.ZodTypeAny, {
|
35
|
-
country: string;
|
36
|
-
district: string;
|
37
|
-
province: string;
|
38
|
-
urbanOrRural: "URBAN";
|
39
|
-
number?: string | undefined;
|
40
|
-
town?: string | undefined;
|
41
|
-
residentialArea?: string | undefined;
|
42
|
-
street?: string | undefined;
|
43
|
-
zipCode?: string | undefined;
|
44
|
-
}, {
|
45
|
-
country: string;
|
46
|
-
district: string;
|
47
|
-
province: string;
|
48
|
-
urbanOrRural: "URBAN";
|
49
|
-
number?: string | undefined;
|
50
|
-
town?: string | undefined;
|
51
|
-
residentialArea?: string | undefined;
|
52
|
-
street?: string | undefined;
|
53
|
-
zipCode?: string | undefined;
|
54
|
-
}>;
|
55
|
-
export declare const RuralAddressValue: z.ZodObject<z.objectUtil.extendShape<{
|
56
|
-
country: z.ZodString;
|
57
|
-
province: z.ZodString;
|
58
|
-
district: z.ZodString;
|
59
|
-
}, {
|
60
|
-
urbanOrRural: z.ZodLiteral<"RURAL">;
|
61
|
-
village: z.ZodOptional<z.ZodString>;
|
62
|
-
}>, "strip", z.ZodTypeAny, {
|
63
|
-
country: string;
|
64
|
-
district: string;
|
65
|
-
province: string;
|
66
|
-
urbanOrRural: "RURAL";
|
67
|
-
village?: string | undefined;
|
68
|
-
}, {
|
69
|
-
country: string;
|
70
|
-
district: string;
|
71
|
-
province: string;
|
72
|
-
urbanOrRural: "RURAL";
|
73
|
-
village?: string | undefined;
|
74
|
-
}>;
|
75
|
-
export declare const UrbanAddressUpdateValue: z.ZodObject<z.objectUtil.extendShape<{
|
76
|
-
country: z.ZodString;
|
77
|
-
province: z.ZodString;
|
78
|
-
district: z.ZodString;
|
79
|
-
}, {
|
80
|
-
urbanOrRural: z.ZodLiteral<"URBAN">;
|
81
|
-
town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
82
|
-
residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
83
|
-
street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
84
|
-
number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
85
|
-
zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
86
|
-
}>, "strip", z.ZodTypeAny, {
|
87
|
-
country: string;
|
88
|
-
district: string;
|
89
|
-
province: string;
|
90
|
-
urbanOrRural: "URBAN";
|
91
|
-
number?: string | null | undefined;
|
92
|
-
town?: string | null | undefined;
|
93
|
-
residentialArea?: string | null | undefined;
|
94
|
-
street?: string | null | undefined;
|
95
|
-
zipCode?: string | null | undefined;
|
96
|
-
}, {
|
97
|
-
country: string;
|
98
|
-
district: string;
|
99
|
-
province: string;
|
100
|
-
urbanOrRural: "URBAN";
|
101
|
-
number?: string | null | undefined;
|
102
|
-
town?: string | null | undefined;
|
103
|
-
residentialArea?: string | null | undefined;
|
104
|
-
street?: string | null | undefined;
|
105
|
-
zipCode?: string | null | undefined;
|
106
|
-
}>;
|
107
|
-
export declare const RuralAddressUpdateValue: z.ZodObject<z.objectUtil.extendShape<{
|
108
|
-
country: z.ZodString;
|
109
|
-
province: z.ZodString;
|
110
|
-
district: z.ZodString;
|
111
|
-
}, {
|
112
|
-
urbanOrRural: z.ZodLiteral<"RURAL">;
|
113
|
-
village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
114
|
-
}>, "strip", z.ZodTypeAny, {
|
115
|
-
country: string;
|
116
|
-
district: string;
|
117
|
-
province: string;
|
118
|
-
urbanOrRural: "RURAL";
|
119
|
-
village?: string | null | undefined;
|
120
|
-
}, {
|
121
|
-
country: string;
|
122
|
-
district: string;
|
123
|
-
province: string;
|
124
|
-
urbanOrRural: "RURAL";
|
125
|
-
village?: string | null | undefined;
|
126
|
-
}>;
|
127
|
-
export declare const AddressFieldValue: z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
|
128
|
-
country: z.ZodString;
|
129
|
-
province: z.ZodString;
|
130
|
-
district: z.ZodString;
|
131
|
-
}, {
|
132
|
-
urbanOrRural: z.ZodLiteral<"URBAN">;
|
133
|
-
town: z.ZodOptional<z.ZodString>;
|
134
|
-
residentialArea: z.ZodOptional<z.ZodString>;
|
135
|
-
street: z.ZodOptional<z.ZodString>;
|
136
|
-
number: z.ZodOptional<z.ZodString>;
|
137
|
-
zipCode: z.ZodOptional<z.ZodString>;
|
138
|
-
}>, "strip", z.ZodTypeAny, {
|
139
|
-
country: string;
|
140
|
-
district: string;
|
141
|
-
province: string;
|
142
|
-
urbanOrRural: "URBAN";
|
143
|
-
number?: string | undefined;
|
144
|
-
town?: string | undefined;
|
145
|
-
residentialArea?: string | undefined;
|
146
|
-
street?: string | undefined;
|
147
|
-
zipCode?: string | undefined;
|
148
|
-
}, {
|
149
|
-
country: string;
|
150
|
-
district: string;
|
151
|
-
province: string;
|
152
|
-
urbanOrRural: "URBAN";
|
153
|
-
number?: string | undefined;
|
154
|
-
town?: string | undefined;
|
155
|
-
residentialArea?: string | undefined;
|
156
|
-
street?: string | undefined;
|
157
|
-
zipCode?: string | undefined;
|
158
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
159
|
-
country: z.ZodString;
|
160
|
-
province: z.ZodString;
|
161
|
-
district: z.ZodString;
|
162
|
-
}, {
|
163
|
-
urbanOrRural: z.ZodLiteral<"RURAL">;
|
164
|
-
village: z.ZodOptional<z.ZodString>;
|
165
|
-
}>, "strip", z.ZodTypeAny, {
|
166
|
-
country: string;
|
167
|
-
district: string;
|
168
|
-
province: string;
|
169
|
-
urbanOrRural: "RURAL";
|
170
|
-
village?: string | undefined;
|
171
|
-
}, {
|
172
|
-
country: string;
|
173
|
-
district: string;
|
174
|
-
province: string;
|
175
|
-
urbanOrRural: "RURAL";
|
176
|
-
village?: string | undefined;
|
177
|
-
}>]>;
|
178
|
-
export declare const AddressFieldUpdateValue: z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
|
179
|
-
country: z.ZodString;
|
180
|
-
province: z.ZodString;
|
181
|
-
district: z.ZodString;
|
182
|
-
}, {
|
183
|
-
urbanOrRural: z.ZodLiteral<"URBAN">;
|
184
|
-
town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
185
|
-
residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
186
|
-
street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
187
|
-
number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
188
|
-
zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
189
|
-
}>, "strip", z.ZodTypeAny, {
|
190
|
-
country: string;
|
191
|
-
district: string;
|
192
|
-
province: string;
|
193
|
-
urbanOrRural: "URBAN";
|
194
|
-
number?: string | null | undefined;
|
195
|
-
town?: string | null | undefined;
|
196
|
-
residentialArea?: string | null | undefined;
|
197
|
-
street?: string | null | undefined;
|
198
|
-
zipCode?: string | null | undefined;
|
199
|
-
}, {
|
200
|
-
country: string;
|
201
|
-
district: string;
|
202
|
-
province: string;
|
203
|
-
urbanOrRural: "URBAN";
|
204
|
-
number?: string | null | undefined;
|
205
|
-
town?: string | null | undefined;
|
206
|
-
residentialArea?: string | null | undefined;
|
207
|
-
street?: string | null | undefined;
|
208
|
-
zipCode?: string | null | undefined;
|
209
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
210
|
-
country: z.ZodString;
|
211
|
-
province: z.ZodString;
|
212
|
-
district: z.ZodString;
|
213
|
-
}, {
|
214
|
-
urbanOrRural: z.ZodLiteral<"RURAL">;
|
215
|
-
village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
216
|
-
}>, "strip", z.ZodTypeAny, {
|
217
|
-
country: string;
|
218
|
-
district: string;
|
219
|
-
province: string;
|
220
|
-
urbanOrRural: "RURAL";
|
221
|
-
village?: string | null | undefined;
|
222
|
-
}, {
|
223
|
-
country: string;
|
224
|
-
district: string;
|
225
|
-
province: string;
|
226
|
-
urbanOrRural: "RURAL";
|
227
|
-
village?: string | null | undefined;
|
228
|
-
}>]>;
|
229
|
-
export type AddressFieldValue = z.infer<typeof AddressFieldValue>;
|
230
|
-
export declare const FileFieldValueWithOption: z.ZodObject<{
|
231
|
-
filename: z.ZodString;
|
232
|
-
originalFilename: z.ZodString;
|
233
|
-
type: z.ZodString;
|
234
|
-
option: z.ZodString;
|
235
|
-
}, "strip", z.ZodTypeAny, {
|
236
|
-
type: string;
|
237
|
-
option: string;
|
238
|
-
filename: string;
|
239
|
-
originalFilename: string;
|
240
|
-
}, {
|
241
|
-
type: string;
|
242
|
-
option: string;
|
243
|
-
filename: string;
|
244
|
-
originalFilename: string;
|
245
|
-
}>;
|
246
|
-
export type FileFieldValueWithOption = z.infer<typeof FileFieldValueWithOption>;
|
247
|
-
export declare const FileFieldWithOptionValue: z.ZodArray<z.ZodObject<{
|
248
|
-
filename: z.ZodString;
|
249
|
-
originalFilename: z.ZodString;
|
250
|
-
type: z.ZodString;
|
251
|
-
option: z.ZodString;
|
252
|
-
}, "strip", z.ZodTypeAny, {
|
253
|
-
type: string;
|
254
|
-
option: string;
|
255
|
-
filename: string;
|
256
|
-
originalFilename: string;
|
257
|
-
}, {
|
258
|
-
type: string;
|
259
|
-
option: string;
|
260
|
-
filename: string;
|
261
|
-
originalFilename: string;
|
262
|
-
}>, "many">;
|
263
|
-
export type FileFieldWithOptionValue = z.infer<typeof FileFieldWithOptionValue>;
|
264
|
-
//# sourceMappingURL=CompositeFieldValue.d.ts.map
|