@opencrvs/toolkit 1.8.0-rc.fa72fdf → 1.8.0-rc.fa82472
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 +21601 -10324
- package/dist/commons/conditionals/conditionals.d.ts +37 -6
- package/dist/commons/conditionals/validate-address.test.d.ts +2 -0
- package/dist/commons/conditionals/validate.d.ts +18 -17
- package/dist/commons/events/ActionConfig.d.ts +116825 -2069
- package/dist/commons/events/ActionDocument.d.ts +11604 -401
- package/dist/commons/events/ActionInput.d.ts +6659 -522
- package/dist/commons/events/ActionType.d.ts +32 -11
- package/dist/commons/events/AdvancedSearchConfig.d.ts +1029 -22
- package/dist/commons/events/CompositeFieldValue.d.ts +183 -2
- package/dist/commons/events/Conditional.d.ts +21 -5
- package/dist/commons/events/Constants.d.ts +3 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +3068 -0
- package/dist/commons/events/CreatedAtLocation.d.ts +3 -0
- package/dist/commons/events/Draft.d.ts +481 -59
- package/dist/commons/events/EventConfig.d.ts +56158 -1798
- package/dist/commons/events/EventConfigInput.d.ts +6 -3
- package/dist/commons/events/EventDocument.d.ts +4728 -568
- package/dist/commons/events/EventIndex.d.ts +2026 -22
- package/dist/commons/events/EventMetadata.d.ts +332 -40
- package/dist/commons/events/FieldConfig.d.ts +5823 -973
- package/dist/commons/events/FieldType.d.ts +7 -3
- package/dist/commons/events/FieldTypeMapping.d.ts +208 -38
- package/dist/commons/events/FieldValue.d.ts +123 -8
- package/dist/commons/events/FormConfig.d.ts +49317 -90
- package/dist/commons/events/PageConfig.d.ts +12337 -0
- package/dist/commons/events/SummaryConfig.d.ts +93 -42
- package/dist/commons/events/TemplateConfig.d.ts +5 -5
- package/dist/commons/events/User.d.ts +31 -2
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +6290 -20
- package/dist/commons/events/defineConfig.d.ts +9111 -301
- package/dist/commons/events/event.d.ts +54 -0
- package/dist/commons/events/field.d.ts +77 -0
- package/dist/commons/events/index.d.ts +9 -1
- package/dist/commons/events/scopes.d.ts +51 -0
- package/dist/commons/events/serializer.d.ts +2 -0
- package/dist/commons/events/test.utils.d.ts +233 -224
- package/dist/commons/events/utils.d.ts +13421 -94
- package/dist/commons/events/utils.test.d.ts +2 -0
- package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
- package/dist/conditionals/index.js +233 -108
- package/dist/events/index.js +4969 -1854
- package/dist/scopes/index.d.ts +161 -1
- package/dist/scopes/index.js +202 -1
- package/package.json +3 -2
@@ -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;
|
@@ -7,9 +6,14 @@ export declare const Draft: z.ZodObject<{
|
|
7
6
|
createdAt: z.ZodString;
|
8
7
|
action: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
9
8
|
id: z.ZodString;
|
9
|
+
transactionId: z.ZodString;
|
10
|
+
createdByUserType: z.ZodEnum<["user", "system"]>;
|
10
11
|
createdAt: z.ZodString;
|
11
12
|
createdBy: z.ZodString;
|
12
|
-
|
13
|
+
createdByRole: z.ZodString;
|
14
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
15
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
16
|
+
declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
13
17
|
filename: z.ZodString;
|
14
18
|
originalFilename: z.ZodString;
|
15
19
|
type: z.ZodString;
|
@@ -38,6 +42,7 @@ export declare const Draft: z.ZodObject<{
|
|
38
42
|
originalFilename: string;
|
39
43
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
40
44
|
country: z.ZodString;
|
45
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
41
46
|
province: z.ZodString;
|
42
47
|
district: z.ZodString;
|
43
48
|
}, {
|
@@ -50,6 +55,7 @@ export declare const Draft: z.ZodObject<{
|
|
50
55
|
}>, "strip", z.ZodTypeAny, {
|
51
56
|
country: string;
|
52
57
|
district: string;
|
58
|
+
addressType: "DOMESTIC";
|
53
59
|
province: string;
|
54
60
|
urbanOrRural: "URBAN";
|
55
61
|
number?: string | null | undefined;
|
@@ -60,6 +66,7 @@ export declare const Draft: z.ZodObject<{
|
|
60
66
|
}, {
|
61
67
|
country: string;
|
62
68
|
district: string;
|
69
|
+
addressType: "DOMESTIC";
|
63
70
|
province: string;
|
64
71
|
urbanOrRural: "URBAN";
|
65
72
|
number?: string | null | undefined;
|
@@ -69,6 +76,7 @@ export declare const Draft: z.ZodObject<{
|
|
69
76
|
zipCode?: string | null | undefined;
|
70
77
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
71
78
|
country: z.ZodString;
|
79
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
72
80
|
province: z.ZodString;
|
73
81
|
district: z.ZodString;
|
74
82
|
}, {
|
@@ -77,17 +85,61 @@ export declare const Draft: z.ZodObject<{
|
|
77
85
|
}>, "strip", z.ZodTypeAny, {
|
78
86
|
country: string;
|
79
87
|
district: string;
|
88
|
+
addressType: "DOMESTIC";
|
80
89
|
province: string;
|
81
90
|
urbanOrRural: "RURAL";
|
82
91
|
village?: string | null | undefined;
|
83
92
|
}, {
|
84
93
|
country: string;
|
85
94
|
district: string;
|
95
|
+
addressType: "DOMESTIC";
|
86
96
|
province: string;
|
87
97
|
urbanOrRural: "RURAL";
|
88
98
|
village?: string | null | undefined;
|
89
|
-
}
|
90
|
-
|
99
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
100
|
+
country: z.ZodString;
|
101
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
102
|
+
state: z.ZodString;
|
103
|
+
district2: z.ZodString;
|
104
|
+
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
105
|
+
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
106
|
+
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
107
|
+
addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
108
|
+
postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
110
|
+
country: string;
|
111
|
+
state: string;
|
112
|
+
addressType: "INTERNATIONAL";
|
113
|
+
district2: string;
|
114
|
+
cityOrTown?: string | null | undefined;
|
115
|
+
addressLine1?: string | null | undefined;
|
116
|
+
addressLine2?: string | null | undefined;
|
117
|
+
addressLine3?: string | null | undefined;
|
118
|
+
postcodeOrZip?: string | null | undefined;
|
119
|
+
}, {
|
120
|
+
country: string;
|
121
|
+
state: string;
|
122
|
+
addressType: "INTERNATIONAL";
|
123
|
+
district2: string;
|
124
|
+
cityOrTown?: string | null | undefined;
|
125
|
+
addressLine1?: string | null | undefined;
|
126
|
+
addressLine2?: string | null | undefined;
|
127
|
+
addressLine3?: string | null | undefined;
|
128
|
+
postcodeOrZip?: string | null | undefined;
|
129
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
130
|
+
firstname: z.ZodString;
|
131
|
+
surname: z.ZodString;
|
132
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
133
|
+
}, "strip", z.ZodTypeAny, {
|
134
|
+
firstname: string;
|
135
|
+
surname: string;
|
136
|
+
middlename?: string | null | undefined;
|
137
|
+
}, {
|
138
|
+
firstname: string;
|
139
|
+
surname: string;
|
140
|
+
middlename?: string | null | undefined;
|
141
|
+
}>, z.ZodNull]>, z.ZodUndefined]>]>>;
|
142
|
+
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
91
143
|
filename: z.ZodString;
|
92
144
|
originalFilename: z.ZodString;
|
93
145
|
type: z.ZodString;
|
@@ -116,6 +168,7 @@ export declare const Draft: z.ZodObject<{
|
|
116
168
|
originalFilename: string;
|
117
169
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
118
170
|
country: z.ZodString;
|
171
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
119
172
|
province: z.ZodString;
|
120
173
|
district: z.ZodString;
|
121
174
|
}, {
|
@@ -128,6 +181,7 @@ export declare const Draft: z.ZodObject<{
|
|
128
181
|
}>, "strip", z.ZodTypeAny, {
|
129
182
|
country: string;
|
130
183
|
district: string;
|
184
|
+
addressType: "DOMESTIC";
|
131
185
|
province: string;
|
132
186
|
urbanOrRural: "URBAN";
|
133
187
|
number?: string | null | undefined;
|
@@ -138,6 +192,7 @@ export declare const Draft: z.ZodObject<{
|
|
138
192
|
}, {
|
139
193
|
country: string;
|
140
194
|
district: string;
|
195
|
+
addressType: "DOMESTIC";
|
141
196
|
province: string;
|
142
197
|
urbanOrRural: "URBAN";
|
143
198
|
number?: string | null | undefined;
|
@@ -147,6 +202,7 @@ export declare const Draft: z.ZodObject<{
|
|
147
202
|
zipCode?: string | null | undefined;
|
148
203
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
149
204
|
country: z.ZodString;
|
205
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
150
206
|
province: z.ZodString;
|
151
207
|
district: z.ZodString;
|
152
208
|
}, {
|
@@ -155,28 +211,80 @@ export declare const Draft: z.ZodObject<{
|
|
155
211
|
}>, "strip", z.ZodTypeAny, {
|
156
212
|
country: string;
|
157
213
|
district: string;
|
214
|
+
addressType: "DOMESTIC";
|
158
215
|
province: string;
|
159
216
|
urbanOrRural: "RURAL";
|
160
217
|
village?: string | null | undefined;
|
161
218
|
}, {
|
162
219
|
country: string;
|
163
220
|
district: string;
|
221
|
+
addressType: "DOMESTIC";
|
164
222
|
province: string;
|
165
223
|
urbanOrRural: "RURAL";
|
166
224
|
village?: string | null | undefined;
|
167
|
-
}
|
168
|
-
|
225
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
226
|
+
country: z.ZodString;
|
227
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
228
|
+
state: z.ZodString;
|
229
|
+
district2: z.ZodString;
|
230
|
+
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
231
|
+
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
232
|
+
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
233
|
+
addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
234
|
+
postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
235
|
+
}, "strip", z.ZodTypeAny, {
|
236
|
+
country: string;
|
237
|
+
state: string;
|
238
|
+
addressType: "INTERNATIONAL";
|
239
|
+
district2: string;
|
240
|
+
cityOrTown?: string | null | undefined;
|
241
|
+
addressLine1?: string | null | undefined;
|
242
|
+
addressLine2?: string | null | undefined;
|
243
|
+
addressLine3?: string | null | undefined;
|
244
|
+
postcodeOrZip?: string | null | undefined;
|
245
|
+
}, {
|
246
|
+
country: string;
|
247
|
+
state: string;
|
248
|
+
addressType: "INTERNATIONAL";
|
249
|
+
district2: string;
|
250
|
+
cityOrTown?: string | null | undefined;
|
251
|
+
addressLine1?: string | null | undefined;
|
252
|
+
addressLine2?: string | null | undefined;
|
253
|
+
addressLine3?: string | null | undefined;
|
254
|
+
postcodeOrZip?: string | null | undefined;
|
255
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
256
|
+
firstname: z.ZodString;
|
257
|
+
surname: z.ZodString;
|
258
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
259
|
+
}, "strip", z.ZodTypeAny, {
|
260
|
+
firstname: string;
|
261
|
+
surname: string;
|
262
|
+
middlename?: string | null | undefined;
|
263
|
+
}, {
|
264
|
+
firstname: string;
|
265
|
+
surname: string;
|
266
|
+
middlename?: string | null | undefined;
|
267
|
+
}>, z.ZodNull]>, z.ZodUndefined]>]>>>;
|
268
|
+
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
269
|
+
originalActionId: z.ZodOptional<z.ZodString>;
|
169
270
|
}, {
|
170
|
-
type: z.ZodEnum<[
|
271
|
+
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
272
|
}>, "id">, "strip", z.ZodTypeAny, {
|
172
|
-
type:
|
173
|
-
|
273
|
+
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";
|
274
|
+
status: "Rejected" | "Requested" | "Accepted";
|
275
|
+
transactionId: string;
|
276
|
+
createdByUserType: "system" | "user";
|
277
|
+
createdAt: string;
|
278
|
+
createdBy: string;
|
279
|
+
createdByRole: string;
|
280
|
+
declaration: Record<string, string | number | boolean | {
|
174
281
|
type: string;
|
175
282
|
filename: string;
|
176
283
|
originalFilename: string;
|
177
284
|
} | {
|
178
285
|
country: string;
|
179
286
|
district: string;
|
287
|
+
addressType: "DOMESTIC";
|
180
288
|
province: string;
|
181
289
|
urbanOrRural: "URBAN";
|
182
290
|
number?: string | null | undefined;
|
@@ -184,28 +292,43 @@ export declare const Draft: z.ZodObject<{
|
|
184
292
|
residentialArea?: string | null | undefined;
|
185
293
|
street?: string | null | undefined;
|
186
294
|
zipCode?: string | null | undefined;
|
295
|
+
} | {
|
296
|
+
firstname: string;
|
297
|
+
surname: string;
|
298
|
+
middlename?: string | null | undefined;
|
187
299
|
} | {
|
188
300
|
country: string;
|
189
301
|
district: string;
|
302
|
+
addressType: "DOMESTIC";
|
190
303
|
province: string;
|
191
304
|
urbanOrRural: "RURAL";
|
192
305
|
village?: string | null | undefined;
|
306
|
+
} | {
|
307
|
+
country: string;
|
308
|
+
state: string;
|
309
|
+
addressType: "INTERNATIONAL";
|
310
|
+
district2: string;
|
311
|
+
cityOrTown?: string | null | undefined;
|
312
|
+
addressLine1?: string | null | undefined;
|
313
|
+
addressLine2?: string | null | undefined;
|
314
|
+
addressLine3?: string | null | undefined;
|
315
|
+
postcodeOrZip?: string | null | undefined;
|
193
316
|
} | {
|
194
317
|
type: string;
|
195
318
|
option: string;
|
196
319
|
filename: string;
|
197
320
|
originalFilename: string;
|
198
|
-
}[]>;
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
metadata?: Record<string, string | number | boolean | {
|
321
|
+
}[] | [string, string] | null | undefined>;
|
322
|
+
createdBySignature?: string | null | undefined;
|
323
|
+
createdAtLocation?: string | null | undefined;
|
324
|
+
annotation?: Record<string, string | number | boolean | {
|
203
325
|
type: string;
|
204
326
|
filename: string;
|
205
327
|
originalFilename: string;
|
206
328
|
} | {
|
207
329
|
country: string;
|
208
330
|
district: string;
|
331
|
+
addressType: "DOMESTIC";
|
209
332
|
province: string;
|
210
333
|
urbanOrRural: "URBAN";
|
211
334
|
number?: string | null | undefined;
|
@@ -213,27 +336,50 @@ export declare const Draft: z.ZodObject<{
|
|
213
336
|
residentialArea?: string | null | undefined;
|
214
337
|
street?: string | null | undefined;
|
215
338
|
zipCode?: string | null | undefined;
|
339
|
+
} | {
|
340
|
+
firstname: string;
|
341
|
+
surname: string;
|
342
|
+
middlename?: string | null | undefined;
|
216
343
|
} | {
|
217
344
|
country: string;
|
218
345
|
district: string;
|
346
|
+
addressType: "DOMESTIC";
|
219
347
|
province: string;
|
220
348
|
urbanOrRural: "RURAL";
|
221
349
|
village?: string | null | undefined;
|
350
|
+
} | {
|
351
|
+
country: string;
|
352
|
+
state: string;
|
353
|
+
addressType: "INTERNATIONAL";
|
354
|
+
district2: string;
|
355
|
+
cityOrTown?: string | null | undefined;
|
356
|
+
addressLine1?: string | null | undefined;
|
357
|
+
addressLine2?: string | null | undefined;
|
358
|
+
addressLine3?: string | null | undefined;
|
359
|
+
postcodeOrZip?: string | null | undefined;
|
222
360
|
} | {
|
223
361
|
type: string;
|
224
362
|
option: string;
|
225
363
|
filename: string;
|
226
364
|
originalFilename: string;
|
227
|
-
}[]> | undefined;
|
365
|
+
}[] | [string, string] | null | undefined> | undefined;
|
366
|
+
originalActionId?: string | undefined;
|
228
367
|
}, {
|
229
|
-
type:
|
230
|
-
|
368
|
+
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";
|
369
|
+
status: "Rejected" | "Requested" | "Accepted";
|
370
|
+
transactionId: string;
|
371
|
+
createdByUserType: "system" | "user";
|
372
|
+
createdAt: string;
|
373
|
+
createdBy: string;
|
374
|
+
createdByRole: string;
|
375
|
+
declaration: Record<string, string | number | boolean | {
|
231
376
|
type: string;
|
232
377
|
filename: string;
|
233
378
|
originalFilename: string;
|
234
379
|
} | {
|
235
380
|
country: string;
|
236
381
|
district: string;
|
382
|
+
addressType: "DOMESTIC";
|
237
383
|
province: string;
|
238
384
|
urbanOrRural: "URBAN";
|
239
385
|
number?: string | null | undefined;
|
@@ -241,28 +387,43 @@ export declare const Draft: z.ZodObject<{
|
|
241
387
|
residentialArea?: string | null | undefined;
|
242
388
|
street?: string | null | undefined;
|
243
389
|
zipCode?: string | null | undefined;
|
390
|
+
} | {
|
391
|
+
firstname: string;
|
392
|
+
surname: string;
|
393
|
+
middlename?: string | null | undefined;
|
244
394
|
} | {
|
245
395
|
country: string;
|
246
396
|
district: string;
|
397
|
+
addressType: "DOMESTIC";
|
247
398
|
province: string;
|
248
399
|
urbanOrRural: "RURAL";
|
249
400
|
village?: string | null | undefined;
|
401
|
+
} | {
|
402
|
+
country: string;
|
403
|
+
state: string;
|
404
|
+
addressType: "INTERNATIONAL";
|
405
|
+
district2: string;
|
406
|
+
cityOrTown?: string | null | undefined;
|
407
|
+
addressLine1?: string | null | undefined;
|
408
|
+
addressLine2?: string | null | undefined;
|
409
|
+
addressLine3?: string | null | undefined;
|
410
|
+
postcodeOrZip?: string | null | undefined;
|
250
411
|
} | {
|
251
412
|
type: string;
|
252
413
|
option: string;
|
253
414
|
filename: string;
|
254
415
|
originalFilename: string;
|
255
|
-
}[]>;
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
metadata?: Record<string, string | number | boolean | {
|
416
|
+
}[] | [string, string] | null | undefined>;
|
417
|
+
createdBySignature?: string | null | undefined;
|
418
|
+
createdAtLocation?: string | null | undefined;
|
419
|
+
annotation?: Record<string, string | number | boolean | {
|
260
420
|
type: string;
|
261
421
|
filename: string;
|
262
422
|
originalFilename: string;
|
263
423
|
} | {
|
264
424
|
country: string;
|
265
425
|
district: string;
|
426
|
+
addressType: "DOMESTIC";
|
266
427
|
province: string;
|
267
428
|
urbanOrRural: "URBAN";
|
268
429
|
number?: string | null | undefined;
|
@@ -270,33 +431,56 @@ export declare const Draft: z.ZodObject<{
|
|
270
431
|
residentialArea?: string | null | undefined;
|
271
432
|
street?: string | null | undefined;
|
272
433
|
zipCode?: string | null | undefined;
|
434
|
+
} | {
|
435
|
+
firstname: string;
|
436
|
+
surname: string;
|
437
|
+
middlename?: string | null | undefined;
|
273
438
|
} | {
|
274
439
|
country: string;
|
275
440
|
district: string;
|
441
|
+
addressType: "DOMESTIC";
|
276
442
|
province: string;
|
277
443
|
urbanOrRural: "RURAL";
|
278
444
|
village?: string | null | undefined;
|
445
|
+
} | {
|
446
|
+
country: string;
|
447
|
+
state: string;
|
448
|
+
addressType: "INTERNATIONAL";
|
449
|
+
district2: string;
|
450
|
+
cityOrTown?: string | null | undefined;
|
451
|
+
addressLine1?: string | null | undefined;
|
452
|
+
addressLine2?: string | null | undefined;
|
453
|
+
addressLine3?: string | null | undefined;
|
454
|
+
postcodeOrZip?: string | null | undefined;
|
279
455
|
} | {
|
280
456
|
type: string;
|
281
457
|
option: string;
|
282
458
|
filename: string;
|
283
459
|
originalFilename: string;
|
284
|
-
}[]> | undefined;
|
460
|
+
}[] | [string, string] | null | undefined> | undefined;
|
461
|
+
originalActionId?: string | undefined;
|
285
462
|
}>;
|
286
463
|
}, "strip", z.ZodTypeAny, {
|
287
464
|
id: string;
|
465
|
+
transactionId: string;
|
288
466
|
createdAt: string;
|
289
467
|
eventId: string;
|
290
|
-
transactionId: string;
|
291
468
|
action: {
|
292
|
-
type:
|
293
|
-
|
469
|
+
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";
|
470
|
+
status: "Rejected" | "Requested" | "Accepted";
|
471
|
+
transactionId: string;
|
472
|
+
createdByUserType: "system" | "user";
|
473
|
+
createdAt: string;
|
474
|
+
createdBy: string;
|
475
|
+
createdByRole: string;
|
476
|
+
declaration: Record<string, string | number | boolean | {
|
294
477
|
type: string;
|
295
478
|
filename: string;
|
296
479
|
originalFilename: string;
|
297
480
|
} | {
|
298
481
|
country: string;
|
299
482
|
district: string;
|
483
|
+
addressType: "DOMESTIC";
|
300
484
|
province: string;
|
301
485
|
urbanOrRural: "URBAN";
|
302
486
|
number?: string | null | undefined;
|
@@ -304,28 +488,43 @@ export declare const Draft: z.ZodObject<{
|
|
304
488
|
residentialArea?: string | null | undefined;
|
305
489
|
street?: string | null | undefined;
|
306
490
|
zipCode?: string | null | undefined;
|
491
|
+
} | {
|
492
|
+
firstname: string;
|
493
|
+
surname: string;
|
494
|
+
middlename?: string | null | undefined;
|
307
495
|
} | {
|
308
496
|
country: string;
|
309
497
|
district: string;
|
498
|
+
addressType: "DOMESTIC";
|
310
499
|
province: string;
|
311
500
|
urbanOrRural: "RURAL";
|
312
501
|
village?: string | null | undefined;
|
502
|
+
} | {
|
503
|
+
country: string;
|
504
|
+
state: string;
|
505
|
+
addressType: "INTERNATIONAL";
|
506
|
+
district2: string;
|
507
|
+
cityOrTown?: string | null | undefined;
|
508
|
+
addressLine1?: string | null | undefined;
|
509
|
+
addressLine2?: string | null | undefined;
|
510
|
+
addressLine3?: string | null | undefined;
|
511
|
+
postcodeOrZip?: string | null | undefined;
|
313
512
|
} | {
|
314
513
|
type: string;
|
315
514
|
option: string;
|
316
515
|
filename: string;
|
317
516
|
originalFilename: string;
|
318
|
-
}[]>;
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
metadata?: Record<string, string | number | boolean | {
|
517
|
+
}[] | [string, string] | null | undefined>;
|
518
|
+
createdBySignature?: string | null | undefined;
|
519
|
+
createdAtLocation?: string | null | undefined;
|
520
|
+
annotation?: Record<string, string | number | boolean | {
|
323
521
|
type: string;
|
324
522
|
filename: string;
|
325
523
|
originalFilename: string;
|
326
524
|
} | {
|
327
525
|
country: string;
|
328
526
|
district: string;
|
527
|
+
addressType: "DOMESTIC";
|
329
528
|
province: string;
|
330
529
|
urbanOrRural: "URBAN";
|
331
530
|
number?: string | null | undefined;
|
@@ -333,33 +532,56 @@ export declare const Draft: z.ZodObject<{
|
|
333
532
|
residentialArea?: string | null | undefined;
|
334
533
|
street?: string | null | undefined;
|
335
534
|
zipCode?: string | null | undefined;
|
535
|
+
} | {
|
536
|
+
firstname: string;
|
537
|
+
surname: string;
|
538
|
+
middlename?: string | null | undefined;
|
336
539
|
} | {
|
337
540
|
country: string;
|
338
541
|
district: string;
|
542
|
+
addressType: "DOMESTIC";
|
339
543
|
province: string;
|
340
544
|
urbanOrRural: "RURAL";
|
341
545
|
village?: string | null | undefined;
|
546
|
+
} | {
|
547
|
+
country: string;
|
548
|
+
state: string;
|
549
|
+
addressType: "INTERNATIONAL";
|
550
|
+
district2: string;
|
551
|
+
cityOrTown?: string | null | undefined;
|
552
|
+
addressLine1?: string | null | undefined;
|
553
|
+
addressLine2?: string | null | undefined;
|
554
|
+
addressLine3?: string | null | undefined;
|
555
|
+
postcodeOrZip?: string | null | undefined;
|
342
556
|
} | {
|
343
557
|
type: string;
|
344
558
|
option: string;
|
345
559
|
filename: string;
|
346
560
|
originalFilename: string;
|
347
|
-
}[]> | undefined;
|
561
|
+
}[] | [string, string] | null | undefined> | undefined;
|
562
|
+
originalActionId?: string | undefined;
|
348
563
|
};
|
349
564
|
}, {
|
350
565
|
id: string;
|
566
|
+
transactionId: string;
|
351
567
|
createdAt: string;
|
352
568
|
eventId: string;
|
353
|
-
transactionId: string;
|
354
569
|
action: {
|
355
|
-
type:
|
356
|
-
|
570
|
+
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";
|
571
|
+
status: "Rejected" | "Requested" | "Accepted";
|
572
|
+
transactionId: string;
|
573
|
+
createdByUserType: "system" | "user";
|
574
|
+
createdAt: string;
|
575
|
+
createdBy: string;
|
576
|
+
createdByRole: string;
|
577
|
+
declaration: Record<string, string | number | boolean | {
|
357
578
|
type: string;
|
358
579
|
filename: string;
|
359
580
|
originalFilename: string;
|
360
581
|
} | {
|
361
582
|
country: string;
|
362
583
|
district: string;
|
584
|
+
addressType: "DOMESTIC";
|
363
585
|
province: string;
|
364
586
|
urbanOrRural: "URBAN";
|
365
587
|
number?: string | null | undefined;
|
@@ -367,28 +589,43 @@ export declare const Draft: z.ZodObject<{
|
|
367
589
|
residentialArea?: string | null | undefined;
|
368
590
|
street?: string | null | undefined;
|
369
591
|
zipCode?: string | null | undefined;
|
592
|
+
} | {
|
593
|
+
firstname: string;
|
594
|
+
surname: string;
|
595
|
+
middlename?: string | null | undefined;
|
370
596
|
} | {
|
371
597
|
country: string;
|
372
598
|
district: string;
|
599
|
+
addressType: "DOMESTIC";
|
373
600
|
province: string;
|
374
601
|
urbanOrRural: "RURAL";
|
375
602
|
village?: string | null | undefined;
|
603
|
+
} | {
|
604
|
+
country: string;
|
605
|
+
state: string;
|
606
|
+
addressType: "INTERNATIONAL";
|
607
|
+
district2: string;
|
608
|
+
cityOrTown?: string | null | undefined;
|
609
|
+
addressLine1?: string | null | undefined;
|
610
|
+
addressLine2?: string | null | undefined;
|
611
|
+
addressLine3?: string | null | undefined;
|
612
|
+
postcodeOrZip?: string | null | undefined;
|
376
613
|
} | {
|
377
614
|
type: string;
|
378
615
|
option: string;
|
379
616
|
filename: string;
|
380
617
|
originalFilename: string;
|
381
|
-
}[]>;
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
metadata?: Record<string, string | number | boolean | {
|
618
|
+
}[] | [string, string] | null | undefined>;
|
619
|
+
createdBySignature?: string | null | undefined;
|
620
|
+
createdAtLocation?: string | null | undefined;
|
621
|
+
annotation?: Record<string, string | number | boolean | {
|
386
622
|
type: string;
|
387
623
|
filename: string;
|
388
624
|
originalFilename: string;
|
389
625
|
} | {
|
390
626
|
country: string;
|
391
627
|
district: string;
|
628
|
+
addressType: "DOMESTIC";
|
392
629
|
province: string;
|
393
630
|
urbanOrRural: "URBAN";
|
394
631
|
number?: string | null | undefined;
|
@@ -396,24 +633,40 @@ export declare const Draft: z.ZodObject<{
|
|
396
633
|
residentialArea?: string | null | undefined;
|
397
634
|
street?: string | null | undefined;
|
398
635
|
zipCode?: string | null | undefined;
|
636
|
+
} | {
|
637
|
+
firstname: string;
|
638
|
+
surname: string;
|
639
|
+
middlename?: string | null | undefined;
|
399
640
|
} | {
|
400
641
|
country: string;
|
401
642
|
district: string;
|
643
|
+
addressType: "DOMESTIC";
|
402
644
|
province: string;
|
403
645
|
urbanOrRural: "RURAL";
|
404
646
|
village?: string | null | undefined;
|
647
|
+
} | {
|
648
|
+
country: string;
|
649
|
+
state: string;
|
650
|
+
addressType: "INTERNATIONAL";
|
651
|
+
district2: string;
|
652
|
+
cityOrTown?: string | null | undefined;
|
653
|
+
addressLine1?: string | null | undefined;
|
654
|
+
addressLine2?: string | null | undefined;
|
655
|
+
addressLine3?: string | null | undefined;
|
656
|
+
postcodeOrZip?: string | null | undefined;
|
405
657
|
} | {
|
406
658
|
type: string;
|
407
659
|
option: string;
|
408
660
|
filename: string;
|
409
661
|
originalFilename: string;
|
410
|
-
}[]> | undefined;
|
662
|
+
}[] | [string, string] | null | undefined> | undefined;
|
663
|
+
originalActionId?: string | undefined;
|
411
664
|
};
|
412
665
|
}>;
|
413
666
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
414
667
|
eventId: z.ZodString;
|
415
668
|
transactionId: z.ZodString;
|
416
|
-
|
669
|
+
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
417
670
|
filename: z.ZodString;
|
418
671
|
originalFilename: z.ZodString;
|
419
672
|
type: z.ZodString;
|
@@ -442,6 +695,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
442
695
|
originalFilename: string;
|
443
696
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
444
697
|
country: z.ZodString;
|
698
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
445
699
|
province: z.ZodString;
|
446
700
|
district: z.ZodString;
|
447
701
|
}, {
|
@@ -454,6 +708,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
454
708
|
}>, "strip", z.ZodTypeAny, {
|
455
709
|
country: string;
|
456
710
|
district: string;
|
711
|
+
addressType: "DOMESTIC";
|
457
712
|
province: string;
|
458
713
|
urbanOrRural: "URBAN";
|
459
714
|
number?: string | null | undefined;
|
@@ -464,6 +719,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
464
719
|
}, {
|
465
720
|
country: string;
|
466
721
|
district: string;
|
722
|
+
addressType: "DOMESTIC";
|
467
723
|
province: string;
|
468
724
|
urbanOrRural: "URBAN";
|
469
725
|
number?: string | null | undefined;
|
@@ -473,6 +729,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
473
729
|
zipCode?: string | null | undefined;
|
474
730
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
475
731
|
country: z.ZodString;
|
732
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
476
733
|
province: z.ZodString;
|
477
734
|
district: z.ZodString;
|
478
735
|
}, {
|
@@ -481,17 +738,61 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
481
738
|
}>, "strip", z.ZodTypeAny, {
|
482
739
|
country: string;
|
483
740
|
district: string;
|
741
|
+
addressType: "DOMESTIC";
|
484
742
|
province: string;
|
485
743
|
urbanOrRural: "RURAL";
|
486
744
|
village?: string | null | undefined;
|
487
745
|
}, {
|
488
746
|
country: string;
|
489
747
|
district: string;
|
748
|
+
addressType: "DOMESTIC";
|
490
749
|
province: string;
|
491
750
|
urbanOrRural: "RURAL";
|
492
751
|
village?: string | null | undefined;
|
493
|
-
}
|
494
|
-
|
752
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
753
|
+
country: z.ZodString;
|
754
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
755
|
+
state: z.ZodString;
|
756
|
+
district2: z.ZodString;
|
757
|
+
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
758
|
+
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
759
|
+
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
760
|
+
addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
761
|
+
postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
762
|
+
}, "strip", z.ZodTypeAny, {
|
763
|
+
country: string;
|
764
|
+
state: string;
|
765
|
+
addressType: "INTERNATIONAL";
|
766
|
+
district2: string;
|
767
|
+
cityOrTown?: string | null | undefined;
|
768
|
+
addressLine1?: string | null | undefined;
|
769
|
+
addressLine2?: string | null | undefined;
|
770
|
+
addressLine3?: string | null | undefined;
|
771
|
+
postcodeOrZip?: string | null | undefined;
|
772
|
+
}, {
|
773
|
+
country: string;
|
774
|
+
state: string;
|
775
|
+
addressType: "INTERNATIONAL";
|
776
|
+
district2: string;
|
777
|
+
cityOrTown?: string | null | undefined;
|
778
|
+
addressLine1?: string | null | undefined;
|
779
|
+
addressLine2?: string | null | undefined;
|
780
|
+
addressLine3?: string | null | undefined;
|
781
|
+
postcodeOrZip?: string | null | undefined;
|
782
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
783
|
+
firstname: z.ZodString;
|
784
|
+
surname: z.ZodString;
|
785
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
786
|
+
}, "strip", z.ZodTypeAny, {
|
787
|
+
firstname: string;
|
788
|
+
surname: string;
|
789
|
+
middlename?: string | null | undefined;
|
790
|
+
}, {
|
791
|
+
firstname: string;
|
792
|
+
surname: string;
|
793
|
+
middlename?: string | null | undefined;
|
794
|
+
}>, z.ZodNull]>, z.ZodUndefined]>]>>>;
|
795
|
+
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
495
796
|
filename: z.ZodString;
|
496
797
|
originalFilename: z.ZodString;
|
497
798
|
type: z.ZodString;
|
@@ -520,6 +821,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
520
821
|
originalFilename: string;
|
521
822
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
522
823
|
country: z.ZodString;
|
824
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
523
825
|
province: z.ZodString;
|
524
826
|
district: z.ZodString;
|
525
827
|
}, {
|
@@ -532,6 +834,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
532
834
|
}>, "strip", z.ZodTypeAny, {
|
533
835
|
country: string;
|
534
836
|
district: string;
|
837
|
+
addressType: "DOMESTIC";
|
535
838
|
province: string;
|
536
839
|
urbanOrRural: "URBAN";
|
537
840
|
number?: string | null | undefined;
|
@@ -542,6 +845,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
542
845
|
}, {
|
543
846
|
country: string;
|
544
847
|
district: string;
|
848
|
+
addressType: "DOMESTIC";
|
545
849
|
province: string;
|
546
850
|
urbanOrRural: "URBAN";
|
547
851
|
number?: string | null | undefined;
|
@@ -551,6 +855,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
551
855
|
zipCode?: string | null | undefined;
|
552
856
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
553
857
|
country: z.ZodString;
|
858
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
554
859
|
province: z.ZodString;
|
555
860
|
district: z.ZodString;
|
556
861
|
}, {
|
@@ -559,27 +864,77 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
559
864
|
}>, "strip", z.ZodTypeAny, {
|
560
865
|
country: string;
|
561
866
|
district: string;
|
867
|
+
addressType: "DOMESTIC";
|
562
868
|
province: string;
|
563
869
|
urbanOrRural: "RURAL";
|
564
870
|
village?: string | null | undefined;
|
565
871
|
}, {
|
566
872
|
country: string;
|
567
873
|
district: string;
|
874
|
+
addressType: "DOMESTIC";
|
568
875
|
province: string;
|
569
876
|
urbanOrRural: "RURAL";
|
570
877
|
village?: string | null | undefined;
|
571
|
-
}
|
878
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
879
|
+
country: z.ZodString;
|
880
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
881
|
+
state: z.ZodString;
|
882
|
+
district2: z.ZodString;
|
883
|
+
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
884
|
+
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
885
|
+
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
886
|
+
addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
887
|
+
postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
888
|
+
}, "strip", z.ZodTypeAny, {
|
889
|
+
country: string;
|
890
|
+
state: string;
|
891
|
+
addressType: "INTERNATIONAL";
|
892
|
+
district2: string;
|
893
|
+
cityOrTown?: string | null | undefined;
|
894
|
+
addressLine1?: string | null | undefined;
|
895
|
+
addressLine2?: string | null | undefined;
|
896
|
+
addressLine3?: string | null | undefined;
|
897
|
+
postcodeOrZip?: string | null | undefined;
|
898
|
+
}, {
|
899
|
+
country: string;
|
900
|
+
state: string;
|
901
|
+
addressType: "INTERNATIONAL";
|
902
|
+
district2: string;
|
903
|
+
cityOrTown?: string | null | undefined;
|
904
|
+
addressLine1?: string | null | undefined;
|
905
|
+
addressLine2?: string | null | undefined;
|
906
|
+
addressLine3?: string | null | undefined;
|
907
|
+
postcodeOrZip?: string | null | undefined;
|
908
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
909
|
+
firstname: z.ZodString;
|
910
|
+
surname: z.ZodString;
|
911
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
912
|
+
}, "strip", z.ZodTypeAny, {
|
913
|
+
firstname: string;
|
914
|
+
surname: string;
|
915
|
+
middlename?: string | null | undefined;
|
916
|
+
}, {
|
917
|
+
firstname: string;
|
918
|
+
surname: string;
|
919
|
+
middlename?: string | null | undefined;
|
920
|
+
}>, z.ZodNull]>, z.ZodUndefined]>]>>>;
|
921
|
+
originalActionId: z.ZodOptional<z.ZodString>;
|
922
|
+
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
572
923
|
}, {
|
573
|
-
type: z.ZodEnum<[
|
924
|
+
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"]>;
|
925
|
+
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
574
926
|
}>, "strip", z.ZodTypeAny, {
|
575
|
-
type:
|
576
|
-
|
927
|
+
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";
|
928
|
+
status: "Rejected" | "Requested" | "Accepted";
|
929
|
+
transactionId: string;
|
930
|
+
declaration: Record<string, string | number | boolean | {
|
577
931
|
type: string;
|
578
932
|
filename: string;
|
579
933
|
originalFilename: string;
|
580
934
|
} | {
|
581
935
|
country: string;
|
582
936
|
district: string;
|
937
|
+
addressType: "DOMESTIC";
|
583
938
|
province: string;
|
584
939
|
urbanOrRural: "URBAN";
|
585
940
|
number?: string | null | undefined;
|
@@ -587,27 +942,42 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
587
942
|
residentialArea?: string | null | undefined;
|
588
943
|
street?: string | null | undefined;
|
589
944
|
zipCode?: string | null | undefined;
|
945
|
+
} | {
|
946
|
+
firstname: string;
|
947
|
+
surname: string;
|
948
|
+
middlename?: string | null | undefined;
|
590
949
|
} | {
|
591
950
|
country: string;
|
592
951
|
district: string;
|
952
|
+
addressType: "DOMESTIC";
|
593
953
|
province: string;
|
594
954
|
urbanOrRural: "RURAL";
|
595
955
|
village?: string | null | undefined;
|
956
|
+
} | {
|
957
|
+
country: string;
|
958
|
+
state: string;
|
959
|
+
addressType: "INTERNATIONAL";
|
960
|
+
district2: string;
|
961
|
+
cityOrTown?: string | null | undefined;
|
962
|
+
addressLine1?: string | null | undefined;
|
963
|
+
addressLine2?: string | null | undefined;
|
964
|
+
addressLine3?: string | null | undefined;
|
965
|
+
postcodeOrZip?: string | null | undefined;
|
596
966
|
} | {
|
597
967
|
type: string;
|
598
968
|
option: string;
|
599
969
|
filename: string;
|
600
970
|
originalFilename: string;
|
601
|
-
}[]>;
|
971
|
+
}[] | [string, string] | null | undefined>;
|
602
972
|
eventId: string;
|
603
|
-
|
604
|
-
metadata?: Record<string, string | number | boolean | {
|
973
|
+
annotation?: Record<string, string | number | boolean | {
|
605
974
|
type: string;
|
606
975
|
filename: string;
|
607
976
|
originalFilename: string;
|
608
977
|
} | {
|
609
978
|
country: string;
|
610
979
|
district: string;
|
980
|
+
addressType: "DOMESTIC";
|
611
981
|
province: string;
|
612
982
|
urbanOrRural: "URBAN";
|
613
983
|
number?: string | null | undefined;
|
@@ -615,27 +985,48 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
615
985
|
residentialArea?: string | null | undefined;
|
616
986
|
street?: string | null | undefined;
|
617
987
|
zipCode?: string | null | undefined;
|
988
|
+
} | {
|
989
|
+
firstname: string;
|
990
|
+
surname: string;
|
991
|
+
middlename?: string | null | undefined;
|
618
992
|
} | {
|
619
993
|
country: string;
|
620
994
|
district: string;
|
995
|
+
addressType: "DOMESTIC";
|
621
996
|
province: string;
|
622
997
|
urbanOrRural: "RURAL";
|
623
998
|
village?: string | null | undefined;
|
999
|
+
} | {
|
1000
|
+
country: string;
|
1001
|
+
state: string;
|
1002
|
+
addressType: "INTERNATIONAL";
|
1003
|
+
district2: string;
|
1004
|
+
cityOrTown?: string | null | undefined;
|
1005
|
+
addressLine1?: string | null | undefined;
|
1006
|
+
addressLine2?: string | null | undefined;
|
1007
|
+
addressLine3?: string | null | undefined;
|
1008
|
+
postcodeOrZip?: string | null | undefined;
|
624
1009
|
} | {
|
625
1010
|
type: string;
|
626
1011
|
option: string;
|
627
1012
|
filename: string;
|
628
1013
|
originalFilename: string;
|
629
|
-
}[]> | undefined;
|
1014
|
+
}[] | [string, string] | null | undefined> | undefined;
|
1015
|
+
originalActionId?: string | undefined;
|
1016
|
+
keepAssignment?: boolean | undefined;
|
630
1017
|
}, {
|
631
|
-
type:
|
632
|
-
|
1018
|
+
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";
|
1019
|
+
status: "Rejected" | "Requested" | "Accepted";
|
1020
|
+
transactionId: string;
|
1021
|
+
eventId: string;
|
1022
|
+
declaration?: Record<string, string | number | boolean | {
|
633
1023
|
type: string;
|
634
1024
|
filename: string;
|
635
1025
|
originalFilename: string;
|
636
1026
|
} | {
|
637
1027
|
country: string;
|
638
1028
|
district: string;
|
1029
|
+
addressType: "DOMESTIC";
|
639
1030
|
province: string;
|
640
1031
|
urbanOrRural: "URBAN";
|
641
1032
|
number?: string | null | undefined;
|
@@ -643,27 +1034,41 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
643
1034
|
residentialArea?: string | null | undefined;
|
644
1035
|
street?: string | null | undefined;
|
645
1036
|
zipCode?: string | null | undefined;
|
1037
|
+
} | {
|
1038
|
+
firstname: string;
|
1039
|
+
surname: string;
|
1040
|
+
middlename?: string | null | undefined;
|
646
1041
|
} | {
|
647
1042
|
country: string;
|
648
1043
|
district: string;
|
1044
|
+
addressType: "DOMESTIC";
|
649
1045
|
province: string;
|
650
1046
|
urbanOrRural: "RURAL";
|
651
1047
|
village?: string | null | undefined;
|
1048
|
+
} | {
|
1049
|
+
country: string;
|
1050
|
+
state: string;
|
1051
|
+
addressType: "INTERNATIONAL";
|
1052
|
+
district2: string;
|
1053
|
+
cityOrTown?: string | null | undefined;
|
1054
|
+
addressLine1?: string | null | undefined;
|
1055
|
+
addressLine2?: string | null | undefined;
|
1056
|
+
addressLine3?: string | null | undefined;
|
1057
|
+
postcodeOrZip?: string | null | undefined;
|
652
1058
|
} | {
|
653
1059
|
type: string;
|
654
1060
|
option: string;
|
655
1061
|
filename: string;
|
656
1062
|
originalFilename: string;
|
657
|
-
}[]
|
658
|
-
|
659
|
-
transactionId: string;
|
660
|
-
metadata?: Record<string, string | number | boolean | {
|
1063
|
+
}[] | [string, string] | null | undefined> | undefined;
|
1064
|
+
annotation?: Record<string, string | number | boolean | {
|
661
1065
|
type: string;
|
662
1066
|
filename: string;
|
663
1067
|
originalFilename: string;
|
664
1068
|
} | {
|
665
1069
|
country: string;
|
666
1070
|
district: string;
|
1071
|
+
addressType: "DOMESTIC";
|
667
1072
|
province: string;
|
668
1073
|
urbanOrRural: "URBAN";
|
669
1074
|
number?: string | null | undefined;
|
@@ -671,18 +1076,35 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
671
1076
|
residentialArea?: string | null | undefined;
|
672
1077
|
street?: string | null | undefined;
|
673
1078
|
zipCode?: string | null | undefined;
|
1079
|
+
} | {
|
1080
|
+
firstname: string;
|
1081
|
+
surname: string;
|
1082
|
+
middlename?: string | null | undefined;
|
674
1083
|
} | {
|
675
1084
|
country: string;
|
676
1085
|
district: string;
|
1086
|
+
addressType: "DOMESTIC";
|
677
1087
|
province: string;
|
678
1088
|
urbanOrRural: "RURAL";
|
679
1089
|
village?: string | null | undefined;
|
1090
|
+
} | {
|
1091
|
+
country: string;
|
1092
|
+
state: string;
|
1093
|
+
addressType: "INTERNATIONAL";
|
1094
|
+
district2: string;
|
1095
|
+
cityOrTown?: string | null | undefined;
|
1096
|
+
addressLine1?: string | null | undefined;
|
1097
|
+
addressLine2?: string | null | undefined;
|
1098
|
+
addressLine3?: string | null | undefined;
|
1099
|
+
postcodeOrZip?: string | null | undefined;
|
680
1100
|
} | {
|
681
1101
|
type: string;
|
682
1102
|
option: string;
|
683
1103
|
filename: string;
|
684
1104
|
originalFilename: string;
|
685
|
-
}[]> | undefined;
|
1105
|
+
}[] | [string, string] | null | undefined> | undefined;
|
1106
|
+
originalActionId?: string | undefined;
|
1107
|
+
keepAssignment?: boolean | undefined;
|
686
1108
|
}>;
|
687
1109
|
export type Draft = z.infer<typeof Draft>;
|
688
1110
|
export type DraftInput = z.infer<typeof DraftInput>;
|