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