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