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