@opencrvs/toolkit 1.8.0-rc.fc43738 → 1.8.0-rc.fcf46fc
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/README.md +1 -1
- package/dist/commons/api/router.d.ts +6956 -9633
- package/dist/commons/conditionals/conditionals.d.ts +28 -5
- package/dist/commons/conditionals/validate-address.test.d.ts +2 -0
- package/dist/commons/conditionals/validate.d.ts +46 -22
- package/dist/commons/conditionals/validate.test.d.ts +2 -0
- package/dist/commons/events/ActionConfig.d.ts +1116 -2067
- package/dist/commons/events/ActionDocument.d.ts +10571 -1388
- package/dist/commons/events/ActionInput.d.ts +6943 -2170
- package/dist/commons/events/ActionType.d.ts +27 -12
- package/dist/commons/events/CompositeFieldValue.d.ts +414 -0
- package/dist/commons/events/Conditional.d.ts +21 -5
- package/dist/commons/events/Draft.d.ts +499 -199
- package/dist/commons/events/EventConfig.d.ts +559 -1238
- package/dist/commons/events/EventConfigInput.d.ts +6 -3
- package/dist/commons/events/EventDocument.d.ts +4635 -1719
- package/dist/commons/events/EventIndex.d.ts +9 -6
- package/dist/commons/events/EventMetadata.d.ts +6 -3
- package/dist/commons/events/FieldConfig.d.ts +529 -74
- package/dist/commons/events/FieldType.d.ts +6 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +274 -39
- package/dist/commons/events/FieldValue.d.ts +136 -65
- package/dist/commons/events/FormConfig.d.ts +633 -48
- package/dist/commons/events/PageConfig.d.ts +335 -0
- package/dist/commons/events/TemplateConfig.d.ts +38 -0
- package/dist/commons/events/defineConfig.d.ts +91 -222
- package/dist/commons/events/index.d.ts +4 -1
- package/dist/commons/events/test.utils.d.ts +176 -243
- package/dist/commons/events/utils.d.ts +196 -70
- package/dist/commons/events/utils.test.d.ts +2 -0
- package/dist/conditionals/index.js +166 -81
- package/dist/events/index.js +1679 -903
- package/package.json +1 -1
@@ -1,5 +1,4 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
import { ActionType } from './ActionType';
|
3
2
|
export declare const Draft: z.ZodObject<{
|
4
3
|
id: z.ZodString;
|
5
4
|
eventId: z.ZodString;
|
@@ -9,7 +8,7 @@ export declare const Draft: z.ZodObject<{
|
|
9
8
|
id: z.ZodString;
|
10
9
|
createdAt: z.ZodString;
|
11
10
|
createdBy: z.ZodString;
|
12
|
-
|
11
|
+
declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
13
12
|
filename: z.ZodString;
|
14
13
|
originalFilename: z.ZodString;
|
15
14
|
type: z.ZodString;
|
@@ -36,58 +35,94 @@ export declare const Draft: z.ZodObject<{
|
|
36
35
|
option: string;
|
37
36
|
filename: string;
|
38
37
|
originalFilename: string;
|
39
|
-
}>, "many">, z.
|
38
|
+
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
40
39
|
country: z.ZodString;
|
40
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
41
41
|
province: z.ZodString;
|
42
42
|
district: z.ZodString;
|
43
43
|
}, {
|
44
44
|
urbanOrRural: z.ZodLiteral<"URBAN">;
|
45
|
-
town: z.ZodOptional<z.ZodString
|
46
|
-
residentialArea: z.ZodOptional<z.ZodString
|
47
|
-
street: z.ZodOptional<z.ZodString
|
48
|
-
number: z.ZodOptional<z.ZodString
|
49
|
-
zipCode: z.ZodOptional<z.ZodString
|
45
|
+
town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
46
|
+
residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
47
|
+
street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
48
|
+
number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
49
|
+
zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
50
50
|
}>, "strip", z.ZodTypeAny, {
|
51
51
|
country: string;
|
52
52
|
district: string;
|
53
|
+
addressType: "DOMESTIC";
|
53
54
|
province: string;
|
54
55
|
urbanOrRural: "URBAN";
|
55
|
-
number?: string | undefined;
|
56
|
-
town?: string | undefined;
|
57
|
-
residentialArea?: string | undefined;
|
58
|
-
street?: string | undefined;
|
59
|
-
zipCode?: string | undefined;
|
56
|
+
number?: string | null | undefined;
|
57
|
+
town?: string | null | undefined;
|
58
|
+
residentialArea?: string | null | undefined;
|
59
|
+
street?: string | null | undefined;
|
60
|
+
zipCode?: string | null | undefined;
|
60
61
|
}, {
|
61
62
|
country: string;
|
62
63
|
district: string;
|
64
|
+
addressType: "DOMESTIC";
|
63
65
|
province: string;
|
64
66
|
urbanOrRural: "URBAN";
|
65
|
-
number?: string | undefined;
|
66
|
-
town?: string | undefined;
|
67
|
-
residentialArea?: string | undefined;
|
68
|
-
street?: string | undefined;
|
69
|
-
zipCode?: string | undefined;
|
67
|
+
number?: string | null | undefined;
|
68
|
+
town?: string | null | undefined;
|
69
|
+
residentialArea?: string | null | undefined;
|
70
|
+
street?: string | null | undefined;
|
71
|
+
zipCode?: string | null | undefined;
|
70
72
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
71
73
|
country: z.ZodString;
|
74
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
72
75
|
province: z.ZodString;
|
73
76
|
district: z.ZodString;
|
74
77
|
}, {
|
75
78
|
urbanOrRural: z.ZodLiteral<"RURAL">;
|
76
|
-
village: z.ZodOptional<z.ZodString
|
79
|
+
village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
77
80
|
}>, "strip", z.ZodTypeAny, {
|
78
81
|
country: string;
|
79
82
|
district: string;
|
83
|
+
addressType: "DOMESTIC";
|
80
84
|
province: string;
|
81
85
|
urbanOrRural: "RURAL";
|
82
|
-
village?: string | undefined;
|
86
|
+
village?: string | null | undefined;
|
83
87
|
}, {
|
84
88
|
country: string;
|
85
89
|
district: string;
|
90
|
+
addressType: "DOMESTIC";
|
86
91
|
province: string;
|
87
92
|
urbanOrRural: "RURAL";
|
88
|
-
village?: string | undefined;
|
93
|
+
village?: string | null | undefined;
|
94
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
95
|
+
country: z.ZodString;
|
96
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
97
|
+
state: z.ZodString;
|
98
|
+
district2: z.ZodString;
|
99
|
+
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
100
|
+
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
101
|
+
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
102
|
+
addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
103
|
+
postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
104
|
+
}, "strip", z.ZodTypeAny, {
|
105
|
+
country: string;
|
106
|
+
state: string;
|
107
|
+
addressType: "INTERNATIONAL";
|
108
|
+
district2: string;
|
109
|
+
cityOrTown?: string | null | undefined;
|
110
|
+
addressLine1?: string | null | undefined;
|
111
|
+
addressLine2?: string | null | undefined;
|
112
|
+
addressLine3?: string | null | undefined;
|
113
|
+
postcodeOrZip?: string | null | undefined;
|
114
|
+
}, {
|
115
|
+
country: string;
|
116
|
+
state: string;
|
117
|
+
addressType: "INTERNATIONAL";
|
118
|
+
district2: string;
|
119
|
+
cityOrTown?: string | null | undefined;
|
120
|
+
addressLine1?: string | null | undefined;
|
121
|
+
addressLine2?: string | null | undefined;
|
122
|
+
addressLine3?: string | null | undefined;
|
123
|
+
postcodeOrZip?: string | null | undefined;
|
89
124
|
}>]>>;
|
90
|
-
|
125
|
+
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
91
126
|
filename: z.ZodString;
|
92
127
|
originalFilename: z.ZodString;
|
93
128
|
type: z.ZodString;
|
@@ -114,174 +149,264 @@ export declare const Draft: z.ZodObject<{
|
|
114
149
|
option: string;
|
115
150
|
filename: string;
|
116
151
|
originalFilename: string;
|
117
|
-
}>, "many">, z.
|
152
|
+
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
118
153
|
country: z.ZodString;
|
154
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
119
155
|
province: z.ZodString;
|
120
156
|
district: z.ZodString;
|
121
157
|
}, {
|
122
158
|
urbanOrRural: z.ZodLiteral<"URBAN">;
|
123
|
-
town: z.ZodOptional<z.ZodString
|
124
|
-
residentialArea: z.ZodOptional<z.ZodString
|
125
|
-
street: z.ZodOptional<z.ZodString
|
126
|
-
number: z.ZodOptional<z.ZodString
|
127
|
-
zipCode: z.ZodOptional<z.ZodString
|
159
|
+
town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
160
|
+
residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
161
|
+
street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
162
|
+
number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
163
|
+
zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
128
164
|
}>, "strip", z.ZodTypeAny, {
|
129
165
|
country: string;
|
130
166
|
district: string;
|
167
|
+
addressType: "DOMESTIC";
|
131
168
|
province: string;
|
132
169
|
urbanOrRural: "URBAN";
|
133
|
-
number?: string | undefined;
|
134
|
-
town?: string | undefined;
|
135
|
-
residentialArea?: string | undefined;
|
136
|
-
street?: string | undefined;
|
137
|
-
zipCode?: string | undefined;
|
170
|
+
number?: string | null | undefined;
|
171
|
+
town?: string | null | undefined;
|
172
|
+
residentialArea?: string | null | undefined;
|
173
|
+
street?: string | null | undefined;
|
174
|
+
zipCode?: string | null | undefined;
|
138
175
|
}, {
|
139
176
|
country: string;
|
140
177
|
district: string;
|
178
|
+
addressType: "DOMESTIC";
|
141
179
|
province: string;
|
142
180
|
urbanOrRural: "URBAN";
|
143
|
-
number?: string | undefined;
|
144
|
-
town?: string | undefined;
|
145
|
-
residentialArea?: string | undefined;
|
146
|
-
street?: string | undefined;
|
147
|
-
zipCode?: string | undefined;
|
181
|
+
number?: string | null | undefined;
|
182
|
+
town?: string | null | undefined;
|
183
|
+
residentialArea?: string | null | undefined;
|
184
|
+
street?: string | null | undefined;
|
185
|
+
zipCode?: string | null | undefined;
|
148
186
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
149
187
|
country: z.ZodString;
|
188
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
150
189
|
province: z.ZodString;
|
151
190
|
district: z.ZodString;
|
152
191
|
}, {
|
153
192
|
urbanOrRural: z.ZodLiteral<"RURAL">;
|
154
|
-
village: z.ZodOptional<z.ZodString
|
193
|
+
village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
155
194
|
}>, "strip", z.ZodTypeAny, {
|
156
195
|
country: string;
|
157
196
|
district: string;
|
197
|
+
addressType: "DOMESTIC";
|
158
198
|
province: string;
|
159
199
|
urbanOrRural: "RURAL";
|
160
|
-
village?: string | undefined;
|
200
|
+
village?: string | null | undefined;
|
161
201
|
}, {
|
162
202
|
country: string;
|
163
203
|
district: string;
|
204
|
+
addressType: "DOMESTIC";
|
164
205
|
province: string;
|
165
206
|
urbanOrRural: "RURAL";
|
166
|
-
village?: string | undefined;
|
207
|
+
village?: string | null | undefined;
|
208
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
209
|
+
country: z.ZodString;
|
210
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
211
|
+
state: z.ZodString;
|
212
|
+
district2: z.ZodString;
|
213
|
+
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
214
|
+
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
215
|
+
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
216
|
+
addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
217
|
+
postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
218
|
+
}, "strip", z.ZodTypeAny, {
|
219
|
+
country: string;
|
220
|
+
state: string;
|
221
|
+
addressType: "INTERNATIONAL";
|
222
|
+
district2: string;
|
223
|
+
cityOrTown?: string | null | undefined;
|
224
|
+
addressLine1?: string | null | undefined;
|
225
|
+
addressLine2?: string | null | undefined;
|
226
|
+
addressLine3?: string | null | undefined;
|
227
|
+
postcodeOrZip?: string | null | undefined;
|
228
|
+
}, {
|
229
|
+
country: string;
|
230
|
+
state: string;
|
231
|
+
addressType: "INTERNATIONAL";
|
232
|
+
district2: string;
|
233
|
+
cityOrTown?: string | null | undefined;
|
234
|
+
addressLine1?: string | null | undefined;
|
235
|
+
addressLine2?: string | null | undefined;
|
236
|
+
addressLine3?: string | null | undefined;
|
237
|
+
postcodeOrZip?: string | null | undefined;
|
167
238
|
}>]>>>;
|
168
239
|
createdAtLocation: z.ZodString;
|
240
|
+
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
241
|
+
originalActionId: z.ZodOptional<z.ZodString>;
|
169
242
|
}, {
|
170
|
-
type: z.ZodEnum<[
|
243
|
+
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"]>;
|
171
244
|
}>, "id">, "strip", z.ZodTypeAny, {
|
172
|
-
type:
|
173
|
-
|
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";
|
246
|
+
status: "Rejected" | "Requested" | "Accepted";
|
247
|
+
createdAt: string;
|
248
|
+
createdBy: string;
|
249
|
+
declaration: Record<string, string | number | boolean | {
|
174
250
|
type: string;
|
175
251
|
filename: string;
|
176
252
|
originalFilename: string;
|
177
253
|
} | {
|
178
254
|
country: string;
|
179
255
|
district: string;
|
256
|
+
addressType: "DOMESTIC";
|
180
257
|
province: string;
|
181
258
|
urbanOrRural: "URBAN";
|
182
|
-
number?: string | undefined;
|
183
|
-
town?: string | undefined;
|
184
|
-
residentialArea?: string | undefined;
|
185
|
-
street?: string | undefined;
|
186
|
-
zipCode?: string | undefined;
|
259
|
+
number?: string | null | undefined;
|
260
|
+
town?: string | null | undefined;
|
261
|
+
residentialArea?: string | null | undefined;
|
262
|
+
street?: string | null | undefined;
|
263
|
+
zipCode?: string | null | undefined;
|
187
264
|
} | {
|
188
265
|
country: string;
|
189
266
|
district: string;
|
267
|
+
addressType: "DOMESTIC";
|
190
268
|
province: string;
|
191
269
|
urbanOrRural: "RURAL";
|
192
|
-
village?: string | undefined;
|
270
|
+
village?: string | null | undefined;
|
271
|
+
} | {
|
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;
|
193
281
|
} | {
|
194
282
|
type: string;
|
195
283
|
option: string;
|
196
284
|
filename: string;
|
197
285
|
originalFilename: string;
|
198
|
-
}[]>;
|
199
|
-
createdAt: string;
|
200
|
-
createdBy: string;
|
286
|
+
}[] | undefined>;
|
201
287
|
createdAtLocation: string;
|
202
|
-
|
288
|
+
annotation?: Record<string, string | number | boolean | {
|
203
289
|
type: string;
|
204
290
|
filename: string;
|
205
291
|
originalFilename: string;
|
206
292
|
} | {
|
207
293
|
country: string;
|
208
294
|
district: string;
|
295
|
+
addressType: "DOMESTIC";
|
209
296
|
province: string;
|
210
297
|
urbanOrRural: "URBAN";
|
211
|
-
number?: string | undefined;
|
212
|
-
town?: string | undefined;
|
213
|
-
residentialArea?: string | undefined;
|
214
|
-
street?: string | undefined;
|
215
|
-
zipCode?: string | undefined;
|
298
|
+
number?: string | null | undefined;
|
299
|
+
town?: string | null | undefined;
|
300
|
+
residentialArea?: string | null | undefined;
|
301
|
+
street?: string | null | undefined;
|
302
|
+
zipCode?: string | null | undefined;
|
216
303
|
} | {
|
217
304
|
country: string;
|
218
305
|
district: string;
|
306
|
+
addressType: "DOMESTIC";
|
219
307
|
province: string;
|
220
308
|
urbanOrRural: "RURAL";
|
221
|
-
village?: string | undefined;
|
309
|
+
village?: string | null | undefined;
|
310
|
+
} | {
|
311
|
+
country: string;
|
312
|
+
state: string;
|
313
|
+
addressType: "INTERNATIONAL";
|
314
|
+
district2: string;
|
315
|
+
cityOrTown?: string | null | undefined;
|
316
|
+
addressLine1?: string | null | undefined;
|
317
|
+
addressLine2?: string | null | undefined;
|
318
|
+
addressLine3?: string | null | undefined;
|
319
|
+
postcodeOrZip?: string | null | undefined;
|
222
320
|
} | {
|
223
321
|
type: string;
|
224
322
|
option: string;
|
225
323
|
filename: string;
|
226
324
|
originalFilename: string;
|
227
|
-
}[]> | undefined;
|
325
|
+
}[] | undefined> | undefined;
|
326
|
+
originalActionId?: string | undefined;
|
228
327
|
}, {
|
229
|
-
type:
|
230
|
-
|
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";
|
329
|
+
status: "Rejected" | "Requested" | "Accepted";
|
330
|
+
createdAt: string;
|
331
|
+
createdBy: string;
|
332
|
+
declaration: Record<string, string | number | boolean | {
|
231
333
|
type: string;
|
232
334
|
filename: string;
|
233
335
|
originalFilename: string;
|
234
336
|
} | {
|
235
337
|
country: string;
|
236
338
|
district: string;
|
339
|
+
addressType: "DOMESTIC";
|
237
340
|
province: string;
|
238
341
|
urbanOrRural: "URBAN";
|
239
|
-
number?: string | undefined;
|
240
|
-
town?: string | undefined;
|
241
|
-
residentialArea?: string | undefined;
|
242
|
-
street?: string | undefined;
|
243
|
-
zipCode?: string | undefined;
|
342
|
+
number?: string | null | undefined;
|
343
|
+
town?: string | null | undefined;
|
344
|
+
residentialArea?: string | null | undefined;
|
345
|
+
street?: string | null | undefined;
|
346
|
+
zipCode?: string | null | undefined;
|
244
347
|
} | {
|
245
348
|
country: string;
|
246
349
|
district: string;
|
350
|
+
addressType: "DOMESTIC";
|
247
351
|
province: string;
|
248
352
|
urbanOrRural: "RURAL";
|
249
|
-
village?: string | undefined;
|
353
|
+
village?: string | null | undefined;
|
354
|
+
} | {
|
355
|
+
country: string;
|
356
|
+
state: string;
|
357
|
+
addressType: "INTERNATIONAL";
|
358
|
+
district2: string;
|
359
|
+
cityOrTown?: string | null | undefined;
|
360
|
+
addressLine1?: string | null | undefined;
|
361
|
+
addressLine2?: string | null | undefined;
|
362
|
+
addressLine3?: string | null | undefined;
|
363
|
+
postcodeOrZip?: string | null | undefined;
|
250
364
|
} | {
|
251
365
|
type: string;
|
252
366
|
option: string;
|
253
367
|
filename: string;
|
254
368
|
originalFilename: string;
|
255
|
-
}[]>;
|
256
|
-
createdAt: string;
|
257
|
-
createdBy: string;
|
369
|
+
}[] | undefined>;
|
258
370
|
createdAtLocation: string;
|
259
|
-
|
371
|
+
annotation?: Record<string, string | number | boolean | {
|
260
372
|
type: string;
|
261
373
|
filename: string;
|
262
374
|
originalFilename: string;
|
263
375
|
} | {
|
264
376
|
country: string;
|
265
377
|
district: string;
|
378
|
+
addressType: "DOMESTIC";
|
266
379
|
province: string;
|
267
380
|
urbanOrRural: "URBAN";
|
268
|
-
number?: string | undefined;
|
269
|
-
town?: string | undefined;
|
270
|
-
residentialArea?: string | undefined;
|
271
|
-
street?: string | undefined;
|
272
|
-
zipCode?: string | undefined;
|
381
|
+
number?: string | null | undefined;
|
382
|
+
town?: string | null | undefined;
|
383
|
+
residentialArea?: string | null | undefined;
|
384
|
+
street?: string | null | undefined;
|
385
|
+
zipCode?: string | null | undefined;
|
273
386
|
} | {
|
274
387
|
country: string;
|
275
388
|
district: string;
|
389
|
+
addressType: "DOMESTIC";
|
276
390
|
province: string;
|
277
391
|
urbanOrRural: "RURAL";
|
278
|
-
village?: string | undefined;
|
392
|
+
village?: string | null | undefined;
|
393
|
+
} | {
|
394
|
+
country: string;
|
395
|
+
state: string;
|
396
|
+
addressType: "INTERNATIONAL";
|
397
|
+
district2: string;
|
398
|
+
cityOrTown?: string | null | undefined;
|
399
|
+
addressLine1?: string | null | undefined;
|
400
|
+
addressLine2?: string | null | undefined;
|
401
|
+
addressLine3?: string | null | undefined;
|
402
|
+
postcodeOrZip?: string | null | undefined;
|
279
403
|
} | {
|
280
404
|
type: string;
|
281
405
|
option: string;
|
282
406
|
filename: string;
|
283
407
|
originalFilename: string;
|
284
|
-
}[]> | undefined;
|
408
|
+
}[] | undefined> | undefined;
|
409
|
+
originalActionId?: string | undefined;
|
285
410
|
}>;
|
286
411
|
}, "strip", z.ZodTypeAny, {
|
287
412
|
id: string;
|
@@ -289,62 +414,88 @@ export declare const Draft: z.ZodObject<{
|
|
289
414
|
eventId: string;
|
290
415
|
transactionId: string;
|
291
416
|
action: {
|
292
|
-
type:
|
293
|
-
|
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";
|
418
|
+
status: "Rejected" | "Requested" | "Accepted";
|
419
|
+
createdAt: string;
|
420
|
+
createdBy: string;
|
421
|
+
declaration: Record<string, string | number | boolean | {
|
294
422
|
type: string;
|
295
423
|
filename: string;
|
296
424
|
originalFilename: string;
|
297
425
|
} | {
|
298
426
|
country: string;
|
299
427
|
district: string;
|
428
|
+
addressType: "DOMESTIC";
|
300
429
|
province: string;
|
301
430
|
urbanOrRural: "URBAN";
|
302
|
-
number?: string | undefined;
|
303
|
-
town?: string | undefined;
|
304
|
-
residentialArea?: string | undefined;
|
305
|
-
street?: string | undefined;
|
306
|
-
zipCode?: string | undefined;
|
431
|
+
number?: string | null | undefined;
|
432
|
+
town?: string | null | undefined;
|
433
|
+
residentialArea?: string | null | undefined;
|
434
|
+
street?: string | null | undefined;
|
435
|
+
zipCode?: string | null | undefined;
|
307
436
|
} | {
|
308
437
|
country: string;
|
309
438
|
district: string;
|
439
|
+
addressType: "DOMESTIC";
|
310
440
|
province: string;
|
311
441
|
urbanOrRural: "RURAL";
|
312
|
-
village?: string | undefined;
|
442
|
+
village?: string | null | undefined;
|
443
|
+
} | {
|
444
|
+
country: string;
|
445
|
+
state: string;
|
446
|
+
addressType: "INTERNATIONAL";
|
447
|
+
district2: string;
|
448
|
+
cityOrTown?: string | null | undefined;
|
449
|
+
addressLine1?: string | null | undefined;
|
450
|
+
addressLine2?: string | null | undefined;
|
451
|
+
addressLine3?: string | null | undefined;
|
452
|
+
postcodeOrZip?: string | null | undefined;
|
313
453
|
} | {
|
314
454
|
type: string;
|
315
455
|
option: string;
|
316
456
|
filename: string;
|
317
457
|
originalFilename: string;
|
318
|
-
}[]>;
|
319
|
-
createdAt: string;
|
320
|
-
createdBy: string;
|
458
|
+
}[] | undefined>;
|
321
459
|
createdAtLocation: string;
|
322
|
-
|
460
|
+
annotation?: Record<string, string | number | boolean | {
|
323
461
|
type: string;
|
324
462
|
filename: string;
|
325
463
|
originalFilename: string;
|
326
464
|
} | {
|
327
465
|
country: string;
|
328
466
|
district: string;
|
467
|
+
addressType: "DOMESTIC";
|
329
468
|
province: string;
|
330
469
|
urbanOrRural: "URBAN";
|
331
|
-
number?: string | undefined;
|
332
|
-
town?: string | undefined;
|
333
|
-
residentialArea?: string | undefined;
|
334
|
-
street?: string | undefined;
|
335
|
-
zipCode?: string | undefined;
|
470
|
+
number?: string | null | undefined;
|
471
|
+
town?: string | null | undefined;
|
472
|
+
residentialArea?: string | null | undefined;
|
473
|
+
street?: string | null | undefined;
|
474
|
+
zipCode?: string | null | undefined;
|
336
475
|
} | {
|
337
476
|
country: string;
|
338
477
|
district: string;
|
478
|
+
addressType: "DOMESTIC";
|
339
479
|
province: string;
|
340
480
|
urbanOrRural: "RURAL";
|
341
|
-
village?: string | undefined;
|
481
|
+
village?: string | null | undefined;
|
482
|
+
} | {
|
483
|
+
country: string;
|
484
|
+
state: string;
|
485
|
+
addressType: "INTERNATIONAL";
|
486
|
+
district2: string;
|
487
|
+
cityOrTown?: string | null | undefined;
|
488
|
+
addressLine1?: string | null | undefined;
|
489
|
+
addressLine2?: string | null | undefined;
|
490
|
+
addressLine3?: string | null | undefined;
|
491
|
+
postcodeOrZip?: string | null | undefined;
|
342
492
|
} | {
|
343
493
|
type: string;
|
344
494
|
option: string;
|
345
495
|
filename: string;
|
346
496
|
originalFilename: string;
|
347
|
-
}[]> | undefined;
|
497
|
+
}[] | undefined> | undefined;
|
498
|
+
originalActionId?: string | undefined;
|
348
499
|
};
|
349
500
|
}, {
|
350
501
|
id: string;
|
@@ -352,69 +503,94 @@ export declare const Draft: z.ZodObject<{
|
|
352
503
|
eventId: string;
|
353
504
|
transactionId: string;
|
354
505
|
action: {
|
355
|
-
type:
|
356
|
-
|
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";
|
507
|
+
status: "Rejected" | "Requested" | "Accepted";
|
508
|
+
createdAt: string;
|
509
|
+
createdBy: string;
|
510
|
+
declaration: Record<string, string | number | boolean | {
|
357
511
|
type: string;
|
358
512
|
filename: string;
|
359
513
|
originalFilename: string;
|
360
514
|
} | {
|
361
515
|
country: string;
|
362
516
|
district: string;
|
517
|
+
addressType: "DOMESTIC";
|
363
518
|
province: string;
|
364
519
|
urbanOrRural: "URBAN";
|
365
|
-
number?: string | undefined;
|
366
|
-
town?: string | undefined;
|
367
|
-
residentialArea?: string | undefined;
|
368
|
-
street?: string | undefined;
|
369
|
-
zipCode?: string | undefined;
|
520
|
+
number?: string | null | undefined;
|
521
|
+
town?: string | null | undefined;
|
522
|
+
residentialArea?: string | null | undefined;
|
523
|
+
street?: string | null | undefined;
|
524
|
+
zipCode?: string | null | undefined;
|
370
525
|
} | {
|
371
526
|
country: string;
|
372
527
|
district: string;
|
528
|
+
addressType: "DOMESTIC";
|
373
529
|
province: string;
|
374
530
|
urbanOrRural: "RURAL";
|
375
|
-
village?: string | undefined;
|
531
|
+
village?: string | null | undefined;
|
532
|
+
} | {
|
533
|
+
country: string;
|
534
|
+
state: string;
|
535
|
+
addressType: "INTERNATIONAL";
|
536
|
+
district2: string;
|
537
|
+
cityOrTown?: string | null | undefined;
|
538
|
+
addressLine1?: string | null | undefined;
|
539
|
+
addressLine2?: string | null | undefined;
|
540
|
+
addressLine3?: string | null | undefined;
|
541
|
+
postcodeOrZip?: string | null | undefined;
|
376
542
|
} | {
|
377
543
|
type: string;
|
378
544
|
option: string;
|
379
545
|
filename: string;
|
380
546
|
originalFilename: string;
|
381
|
-
}[]>;
|
382
|
-
createdAt: string;
|
383
|
-
createdBy: string;
|
547
|
+
}[] | undefined>;
|
384
548
|
createdAtLocation: string;
|
385
|
-
|
549
|
+
annotation?: Record<string, string | number | boolean | {
|
386
550
|
type: string;
|
387
551
|
filename: string;
|
388
552
|
originalFilename: string;
|
389
553
|
} | {
|
390
554
|
country: string;
|
391
555
|
district: string;
|
556
|
+
addressType: "DOMESTIC";
|
392
557
|
province: string;
|
393
558
|
urbanOrRural: "URBAN";
|
394
|
-
number?: string | undefined;
|
395
|
-
town?: string | undefined;
|
396
|
-
residentialArea?: string | undefined;
|
397
|
-
street?: string | undefined;
|
398
|
-
zipCode?: string | undefined;
|
559
|
+
number?: string | null | undefined;
|
560
|
+
town?: string | null | undefined;
|
561
|
+
residentialArea?: string | null | undefined;
|
562
|
+
street?: string | null | undefined;
|
563
|
+
zipCode?: string | null | undefined;
|
399
564
|
} | {
|
400
565
|
country: string;
|
401
566
|
district: string;
|
567
|
+
addressType: "DOMESTIC";
|
402
568
|
province: string;
|
403
569
|
urbanOrRural: "RURAL";
|
404
|
-
village?: string | undefined;
|
570
|
+
village?: string | null | undefined;
|
571
|
+
} | {
|
572
|
+
country: string;
|
573
|
+
state: string;
|
574
|
+
addressType: "INTERNATIONAL";
|
575
|
+
district2: string;
|
576
|
+
cityOrTown?: string | null | undefined;
|
577
|
+
addressLine1?: string | null | undefined;
|
578
|
+
addressLine2?: string | null | undefined;
|
579
|
+
addressLine3?: string | null | undefined;
|
580
|
+
postcodeOrZip?: string | null | undefined;
|
405
581
|
} | {
|
406
582
|
type: string;
|
407
583
|
option: string;
|
408
584
|
filename: string;
|
409
585
|
originalFilename: string;
|
410
|
-
}[]> | undefined;
|
586
|
+
}[] | undefined> | undefined;
|
587
|
+
originalActionId?: string | undefined;
|
411
588
|
};
|
412
589
|
}>;
|
413
590
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
414
591
|
eventId: z.ZodString;
|
415
592
|
transactionId: z.ZodString;
|
416
|
-
|
417
|
-
data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodObject<{
|
593
|
+
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
418
594
|
filename: z.ZodString;
|
419
595
|
originalFilename: z.ZodString;
|
420
596
|
type: z.ZodString;
|
@@ -441,58 +617,94 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
441
617
|
option: string;
|
442
618
|
filename: string;
|
443
619
|
originalFilename: string;
|
444
|
-
}>, "many">, z.
|
620
|
+
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
445
621
|
country: z.ZodString;
|
622
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
446
623
|
province: z.ZodString;
|
447
624
|
district: z.ZodString;
|
448
625
|
}, {
|
449
626
|
urbanOrRural: z.ZodLiteral<"URBAN">;
|
450
|
-
town: z.ZodOptional<z.ZodString
|
451
|
-
residentialArea: z.ZodOptional<z.ZodString
|
452
|
-
street: z.ZodOptional<z.ZodString
|
453
|
-
number: z.ZodOptional<z.ZodString
|
454
|
-
zipCode: z.ZodOptional<z.ZodString
|
627
|
+
town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
628
|
+
residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
629
|
+
street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
630
|
+
number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
631
|
+
zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
455
632
|
}>, "strip", z.ZodTypeAny, {
|
456
633
|
country: string;
|
457
634
|
district: string;
|
635
|
+
addressType: "DOMESTIC";
|
458
636
|
province: string;
|
459
637
|
urbanOrRural: "URBAN";
|
460
|
-
number?: string | undefined;
|
461
|
-
town?: string | undefined;
|
462
|
-
residentialArea?: string | undefined;
|
463
|
-
street?: string | undefined;
|
464
|
-
zipCode?: string | undefined;
|
638
|
+
number?: string | null | undefined;
|
639
|
+
town?: string | null | undefined;
|
640
|
+
residentialArea?: string | null | undefined;
|
641
|
+
street?: string | null | undefined;
|
642
|
+
zipCode?: string | null | undefined;
|
465
643
|
}, {
|
466
644
|
country: string;
|
467
645
|
district: string;
|
646
|
+
addressType: "DOMESTIC";
|
468
647
|
province: string;
|
469
648
|
urbanOrRural: "URBAN";
|
470
|
-
number?: string | undefined;
|
471
|
-
town?: string | undefined;
|
472
|
-
residentialArea?: string | undefined;
|
473
|
-
street?: string | undefined;
|
474
|
-
zipCode?: string | undefined;
|
649
|
+
number?: string | null | undefined;
|
650
|
+
town?: string | null | undefined;
|
651
|
+
residentialArea?: string | null | undefined;
|
652
|
+
street?: string | null | undefined;
|
653
|
+
zipCode?: string | null | undefined;
|
475
654
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
476
655
|
country: z.ZodString;
|
656
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
477
657
|
province: z.ZodString;
|
478
658
|
district: z.ZodString;
|
479
659
|
}, {
|
480
660
|
urbanOrRural: z.ZodLiteral<"RURAL">;
|
481
|
-
village: z.ZodOptional<z.ZodString
|
661
|
+
village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
482
662
|
}>, "strip", z.ZodTypeAny, {
|
483
663
|
country: string;
|
484
664
|
district: string;
|
665
|
+
addressType: "DOMESTIC";
|
485
666
|
province: string;
|
486
667
|
urbanOrRural: "RURAL";
|
487
|
-
village?: string | undefined;
|
668
|
+
village?: string | null | undefined;
|
488
669
|
}, {
|
489
670
|
country: string;
|
490
671
|
district: string;
|
672
|
+
addressType: "DOMESTIC";
|
491
673
|
province: string;
|
492
674
|
urbanOrRural: "RURAL";
|
493
|
-
village?: string | undefined;
|
494
|
-
}
|
495
|
-
|
675
|
+
village?: string | null | undefined;
|
676
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
677
|
+
country: z.ZodString;
|
678
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
679
|
+
state: z.ZodString;
|
680
|
+
district2: z.ZodString;
|
681
|
+
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
682
|
+
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
683
|
+
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
684
|
+
addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
685
|
+
postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
686
|
+
}, "strip", z.ZodTypeAny, {
|
687
|
+
country: string;
|
688
|
+
state: string;
|
689
|
+
addressType: "INTERNATIONAL";
|
690
|
+
district2: string;
|
691
|
+
cityOrTown?: string | null | undefined;
|
692
|
+
addressLine1?: string | null | undefined;
|
693
|
+
addressLine2?: string | null | undefined;
|
694
|
+
addressLine3?: string | null | undefined;
|
695
|
+
postcodeOrZip?: string | null | undefined;
|
696
|
+
}, {
|
697
|
+
country: string;
|
698
|
+
state: string;
|
699
|
+
addressType: "INTERNATIONAL";
|
700
|
+
district2: string;
|
701
|
+
cityOrTown?: string | null | undefined;
|
702
|
+
addressLine1?: string | null | undefined;
|
703
|
+
addressLine2?: string | null | undefined;
|
704
|
+
addressLine3?: string | null | undefined;
|
705
|
+
postcodeOrZip?: string | null | undefined;
|
706
|
+
}>]>>>;
|
707
|
+
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
496
708
|
filename: z.ZodString;
|
497
709
|
originalFilename: z.ZodString;
|
498
710
|
type: z.ZodString;
|
@@ -519,173 +731,261 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
519
731
|
option: string;
|
520
732
|
filename: string;
|
521
733
|
originalFilename: string;
|
522
|
-
}>, "many">, z.
|
734
|
+
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
523
735
|
country: z.ZodString;
|
736
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
524
737
|
province: z.ZodString;
|
525
738
|
district: z.ZodString;
|
526
739
|
}, {
|
527
740
|
urbanOrRural: z.ZodLiteral<"URBAN">;
|
528
|
-
town: z.ZodOptional<z.ZodString
|
529
|
-
residentialArea: z.ZodOptional<z.ZodString
|
530
|
-
street: z.ZodOptional<z.ZodString
|
531
|
-
number: z.ZodOptional<z.ZodString
|
532
|
-
zipCode: z.ZodOptional<z.ZodString
|
741
|
+
town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
742
|
+
residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
743
|
+
street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
744
|
+
number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
745
|
+
zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
533
746
|
}>, "strip", z.ZodTypeAny, {
|
534
747
|
country: string;
|
535
748
|
district: string;
|
749
|
+
addressType: "DOMESTIC";
|
536
750
|
province: string;
|
537
751
|
urbanOrRural: "URBAN";
|
538
|
-
number?: string | undefined;
|
539
|
-
town?: string | undefined;
|
540
|
-
residentialArea?: string | undefined;
|
541
|
-
street?: string | undefined;
|
542
|
-
zipCode?: string | undefined;
|
752
|
+
number?: string | null | undefined;
|
753
|
+
town?: string | null | undefined;
|
754
|
+
residentialArea?: string | null | undefined;
|
755
|
+
street?: string | null | undefined;
|
756
|
+
zipCode?: string | null | undefined;
|
543
757
|
}, {
|
544
758
|
country: string;
|
545
759
|
district: string;
|
760
|
+
addressType: "DOMESTIC";
|
546
761
|
province: string;
|
547
762
|
urbanOrRural: "URBAN";
|
548
|
-
number?: string | undefined;
|
549
|
-
town?: string | undefined;
|
550
|
-
residentialArea?: string | undefined;
|
551
|
-
street?: string | undefined;
|
552
|
-
zipCode?: string | undefined;
|
763
|
+
number?: string | null | undefined;
|
764
|
+
town?: string | null | undefined;
|
765
|
+
residentialArea?: string | null | undefined;
|
766
|
+
street?: string | null | undefined;
|
767
|
+
zipCode?: string | null | undefined;
|
553
768
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
554
769
|
country: z.ZodString;
|
770
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
555
771
|
province: z.ZodString;
|
556
772
|
district: z.ZodString;
|
557
773
|
}, {
|
558
774
|
urbanOrRural: z.ZodLiteral<"RURAL">;
|
559
|
-
village: z.ZodOptional<z.ZodString
|
775
|
+
village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
560
776
|
}>, "strip", z.ZodTypeAny, {
|
561
777
|
country: string;
|
562
778
|
district: string;
|
779
|
+
addressType: "DOMESTIC";
|
563
780
|
province: string;
|
564
781
|
urbanOrRural: "RURAL";
|
565
|
-
village?: string | undefined;
|
782
|
+
village?: string | null | undefined;
|
566
783
|
}, {
|
567
784
|
country: string;
|
568
785
|
district: string;
|
786
|
+
addressType: "DOMESTIC";
|
569
787
|
province: string;
|
570
788
|
urbanOrRural: "RURAL";
|
571
|
-
village?: string | undefined;
|
789
|
+
village?: string | null | undefined;
|
790
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
791
|
+
country: z.ZodString;
|
792
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
793
|
+
state: z.ZodString;
|
794
|
+
district2: z.ZodString;
|
795
|
+
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
796
|
+
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
797
|
+
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
798
|
+
addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
799
|
+
postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
800
|
+
}, "strip", z.ZodTypeAny, {
|
801
|
+
country: string;
|
802
|
+
state: string;
|
803
|
+
addressType: "INTERNATIONAL";
|
804
|
+
district2: string;
|
805
|
+
cityOrTown?: string | null | undefined;
|
806
|
+
addressLine1?: string | null | undefined;
|
807
|
+
addressLine2?: string | null | undefined;
|
808
|
+
addressLine3?: string | null | undefined;
|
809
|
+
postcodeOrZip?: string | null | undefined;
|
810
|
+
}, {
|
811
|
+
country: string;
|
812
|
+
state: string;
|
813
|
+
addressType: "INTERNATIONAL";
|
814
|
+
district2: string;
|
815
|
+
cityOrTown?: string | null | undefined;
|
816
|
+
addressLine1?: string | null | undefined;
|
817
|
+
addressLine2?: string | null | undefined;
|
818
|
+
addressLine3?: string | null | undefined;
|
819
|
+
postcodeOrZip?: string | null | undefined;
|
572
820
|
}>]>>>;
|
821
|
+
originalActionId: z.ZodOptional<z.ZodString>;
|
822
|
+
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
573
823
|
}, {
|
574
|
-
type: z.ZodEnum<[
|
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"]>;
|
575
825
|
}>, "strip", z.ZodTypeAny, {
|
576
|
-
type:
|
577
|
-
|
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";
|
827
|
+
declaration: Record<string, string | number | boolean | {
|
578
828
|
type: string;
|
579
829
|
filename: string;
|
580
830
|
originalFilename: string;
|
581
831
|
} | {
|
582
832
|
country: string;
|
583
833
|
district: string;
|
834
|
+
addressType: "DOMESTIC";
|
584
835
|
province: string;
|
585
836
|
urbanOrRural: "URBAN";
|
586
|
-
number?: string | undefined;
|
587
|
-
town?: string | undefined;
|
588
|
-
residentialArea?: string | undefined;
|
589
|
-
street?: string | undefined;
|
590
|
-
zipCode?: string | undefined;
|
837
|
+
number?: string | null | undefined;
|
838
|
+
town?: string | null | undefined;
|
839
|
+
residentialArea?: string | null | undefined;
|
840
|
+
street?: string | null | undefined;
|
841
|
+
zipCode?: string | null | undefined;
|
591
842
|
} | {
|
592
843
|
country: string;
|
593
844
|
district: string;
|
845
|
+
addressType: "DOMESTIC";
|
594
846
|
province: string;
|
595
847
|
urbanOrRural: "RURAL";
|
596
|
-
village?: string | undefined;
|
848
|
+
village?: string | null | undefined;
|
849
|
+
} | {
|
850
|
+
country: string;
|
851
|
+
state: string;
|
852
|
+
addressType: "INTERNATIONAL";
|
853
|
+
district2: string;
|
854
|
+
cityOrTown?: string | null | undefined;
|
855
|
+
addressLine1?: string | null | undefined;
|
856
|
+
addressLine2?: string | null | undefined;
|
857
|
+
addressLine3?: string | null | undefined;
|
858
|
+
postcodeOrZip?: string | null | undefined;
|
597
859
|
} | {
|
598
860
|
type: string;
|
599
861
|
option: string;
|
600
862
|
filename: string;
|
601
863
|
originalFilename: string;
|
602
|
-
}[]>;
|
864
|
+
}[] | undefined>;
|
603
865
|
eventId: string;
|
604
866
|
transactionId: string;
|
605
|
-
|
606
|
-
metadata?: Record<string, string | number | boolean | {
|
867
|
+
annotation?: Record<string, string | number | boolean | {
|
607
868
|
type: string;
|
608
869
|
filename: string;
|
609
870
|
originalFilename: string;
|
610
871
|
} | {
|
611
872
|
country: string;
|
612
873
|
district: string;
|
874
|
+
addressType: "DOMESTIC";
|
613
875
|
province: string;
|
614
876
|
urbanOrRural: "URBAN";
|
615
|
-
number?: string | undefined;
|
616
|
-
town?: string | undefined;
|
617
|
-
residentialArea?: string | undefined;
|
618
|
-
street?: string | undefined;
|
619
|
-
zipCode?: string | undefined;
|
877
|
+
number?: string | null | undefined;
|
878
|
+
town?: string | null | undefined;
|
879
|
+
residentialArea?: string | null | undefined;
|
880
|
+
street?: string | null | undefined;
|
881
|
+
zipCode?: string | null | undefined;
|
620
882
|
} | {
|
621
883
|
country: string;
|
622
884
|
district: string;
|
885
|
+
addressType: "DOMESTIC";
|
623
886
|
province: string;
|
624
887
|
urbanOrRural: "RURAL";
|
625
|
-
village?: string | undefined;
|
888
|
+
village?: string | null | undefined;
|
889
|
+
} | {
|
890
|
+
country: string;
|
891
|
+
state: string;
|
892
|
+
addressType: "INTERNATIONAL";
|
893
|
+
district2: string;
|
894
|
+
cityOrTown?: string | null | undefined;
|
895
|
+
addressLine1?: string | null | undefined;
|
896
|
+
addressLine2?: string | null | undefined;
|
897
|
+
addressLine3?: string | null | undefined;
|
898
|
+
postcodeOrZip?: string | null | undefined;
|
626
899
|
} | {
|
627
900
|
type: string;
|
628
901
|
option: string;
|
629
902
|
filename: string;
|
630
903
|
originalFilename: string;
|
631
|
-
}[]> | undefined;
|
904
|
+
}[] | undefined> | undefined;
|
905
|
+
originalActionId?: string | undefined;
|
906
|
+
keepAssignment?: boolean | undefined;
|
632
907
|
}, {
|
633
|
-
type:
|
634
|
-
|
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";
|
909
|
+
eventId: string;
|
910
|
+
transactionId: string;
|
911
|
+
declaration?: Record<string, string | number | boolean | {
|
635
912
|
type: string;
|
636
913
|
filename: string;
|
637
914
|
originalFilename: string;
|
638
915
|
} | {
|
639
916
|
country: string;
|
640
917
|
district: string;
|
918
|
+
addressType: "DOMESTIC";
|
641
919
|
province: string;
|
642
920
|
urbanOrRural: "URBAN";
|
643
|
-
number?: string | undefined;
|
644
|
-
town?: string | undefined;
|
645
|
-
residentialArea?: string | undefined;
|
646
|
-
street?: string | undefined;
|
647
|
-
zipCode?: string | undefined;
|
921
|
+
number?: string | null | undefined;
|
922
|
+
town?: string | null | undefined;
|
923
|
+
residentialArea?: string | null | undefined;
|
924
|
+
street?: string | null | undefined;
|
925
|
+
zipCode?: string | null | undefined;
|
648
926
|
} | {
|
649
927
|
country: string;
|
650
928
|
district: string;
|
929
|
+
addressType: "DOMESTIC";
|
651
930
|
province: string;
|
652
931
|
urbanOrRural: "RURAL";
|
653
|
-
village?: string | undefined;
|
932
|
+
village?: string | null | undefined;
|
933
|
+
} | {
|
934
|
+
country: string;
|
935
|
+
state: string;
|
936
|
+
addressType: "INTERNATIONAL";
|
937
|
+
district2: string;
|
938
|
+
cityOrTown?: string | null | undefined;
|
939
|
+
addressLine1?: string | null | undefined;
|
940
|
+
addressLine2?: string | null | undefined;
|
941
|
+
addressLine3?: string | null | undefined;
|
942
|
+
postcodeOrZip?: string | null | undefined;
|
654
943
|
} | {
|
655
944
|
type: string;
|
656
945
|
option: string;
|
657
946
|
filename: string;
|
658
947
|
originalFilename: string;
|
659
|
-
}[]
|
660
|
-
|
661
|
-
transactionId: string;
|
662
|
-
metadata?: Record<string, string | number | boolean | {
|
948
|
+
}[] | undefined> | undefined;
|
949
|
+
annotation?: Record<string, string | number | boolean | {
|
663
950
|
type: string;
|
664
951
|
filename: string;
|
665
952
|
originalFilename: string;
|
666
953
|
} | {
|
667
954
|
country: string;
|
668
955
|
district: string;
|
956
|
+
addressType: "DOMESTIC";
|
669
957
|
province: string;
|
670
958
|
urbanOrRural: "URBAN";
|
671
|
-
number?: string | undefined;
|
672
|
-
town?: string | undefined;
|
673
|
-
residentialArea?: string | undefined;
|
674
|
-
street?: string | undefined;
|
675
|
-
zipCode?: string | undefined;
|
959
|
+
number?: string | null | undefined;
|
960
|
+
town?: string | null | undefined;
|
961
|
+
residentialArea?: string | null | undefined;
|
962
|
+
street?: string | null | undefined;
|
963
|
+
zipCode?: string | null | undefined;
|
676
964
|
} | {
|
677
965
|
country: string;
|
678
966
|
district: string;
|
967
|
+
addressType: "DOMESTIC";
|
679
968
|
province: string;
|
680
969
|
urbanOrRural: "RURAL";
|
681
|
-
village?: string | undefined;
|
970
|
+
village?: string | null | undefined;
|
971
|
+
} | {
|
972
|
+
country: string;
|
973
|
+
state: string;
|
974
|
+
addressType: "INTERNATIONAL";
|
975
|
+
district2: string;
|
976
|
+
cityOrTown?: string | null | undefined;
|
977
|
+
addressLine1?: string | null | undefined;
|
978
|
+
addressLine2?: string | null | undefined;
|
979
|
+
addressLine3?: string | null | undefined;
|
980
|
+
postcodeOrZip?: string | null | undefined;
|
682
981
|
} | {
|
683
982
|
type: string;
|
684
983
|
option: string;
|
685
984
|
filename: string;
|
686
985
|
originalFilename: string;
|
687
|
-
}[]> | undefined;
|
688
|
-
|
986
|
+
}[] | undefined> | undefined;
|
987
|
+
originalActionId?: string | undefined;
|
988
|
+
keepAssignment?: boolean | undefined;
|
689
989
|
}>;
|
690
990
|
export type Draft = z.infer<typeof Draft>;
|
691
991
|
export type DraftInput = z.infer<typeof DraftInput>;
|