@opencrvs/toolkit 1.8.0-rc.fd754eb → 1.8.0-rc.fd936ab
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/dist/commons/api/router.d.ts +4205 -7695
- package/dist/commons/conditionals/conditionals.d.ts +6 -9
- package/dist/commons/conditionals/validate.d.ts +6 -4
- package/dist/commons/events/ActionConfig.d.ts +1680 -90025
- package/dist/commons/events/ActionDocument.d.ts +211 -542
- package/dist/commons/events/ActionInput.d.ts +240 -248
- package/dist/commons/events/AdvancedSearchConfig.d.ts +25 -369
- package/dist/commons/events/CompositeFieldValue.d.ts +0 -3
- package/dist/commons/events/Draft.d.ts +20 -33
- package/dist/commons/events/EventConfig.d.ts +1344 -42812
- package/dist/commons/events/EventDocument.d.ts +156 -337
- package/dist/commons/events/EventIndex.d.ts +13 -1346
- package/dist/commons/events/EventInput.d.ts +0 -13
- package/dist/commons/events/EventMetadata.d.ts +11 -273
- package/dist/commons/events/FieldConfig.d.ts +724 -3733
- package/dist/commons/events/FieldType.d.ts +3 -3
- package/dist/commons/events/FieldTypeMapping.d.ts +4 -11
- package/dist/commons/events/FieldValue.d.ts +4 -7
- package/dist/commons/events/FormConfig.d.ts +441 -40419
- package/dist/commons/events/PageConfig.d.ts +194 -10068
- package/dist/commons/events/SummaryConfig.d.ts +39 -95
- package/dist/commons/events/User.d.ts +0 -5
- package/dist/commons/events/WorkqueueConfig.d.ts +19 -1135
- package/dist/commons/events/defineConfig.d.ts +35 -6966
- package/dist/commons/events/index.d.ts +0 -3
- package/dist/commons/events/test.utils.d.ts +44 -7
- package/dist/commons/events/utils.d.ts +67 -3550
- package/dist/conditionals/index.js +33 -36
- package/dist/events/index.js +977 -1672
- package/package.json +2 -3
- package/dist/commons/events/event.d.ts +0 -27
- package/dist/commons/events/field.d.ts +0 -68
- package/dist/commons/events/scopes.d.ts +0 -26
@@ -1,395 +1,51 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
import { TranslationConfig } from './TranslationConfig';
|
3
|
-
export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
4
|
-
config: z.ZodObject<{
|
5
|
-
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
7
|
-
type: "exact" | "fuzzy" | "range";
|
8
|
-
}, {
|
9
|
-
type: "exact" | "fuzzy" | "range";
|
10
|
-
}>;
|
11
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
12
|
-
value: z.ZodString;
|
13
|
-
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
14
|
-
id: string;
|
15
|
-
description: string;
|
16
|
-
defaultMessage: string;
|
17
|
-
}>;
|
18
|
-
}, "strip", z.ZodTypeAny, {
|
19
|
-
value: string;
|
20
|
-
label: TranslationConfig;
|
21
|
-
}, {
|
22
|
-
value: string;
|
23
|
-
label: {
|
24
|
-
id: string;
|
25
|
-
description: string;
|
26
|
-
defaultMessage: string;
|
27
|
-
};
|
28
|
-
}>, "many">>;
|
29
|
-
}, {
|
30
|
-
fieldId: z.ZodString;
|
31
|
-
fieldType: z.ZodLiteral<"field">;
|
32
|
-
}>, "strip", z.ZodTypeAny, {
|
33
|
-
config: {
|
34
|
-
type: "exact" | "fuzzy" | "range";
|
35
|
-
};
|
36
|
-
fieldId: string;
|
37
|
-
fieldType: "field";
|
38
|
-
options?: {
|
39
|
-
value: string;
|
40
|
-
label: TranslationConfig;
|
41
|
-
}[] | undefined;
|
42
|
-
}, {
|
43
|
-
config: {
|
44
|
-
type: "exact" | "fuzzy" | "range";
|
45
|
-
};
|
46
|
-
fieldId: string;
|
47
|
-
fieldType: "field";
|
48
|
-
options?: {
|
49
|
-
value: string;
|
50
|
-
label: {
|
51
|
-
id: string;
|
52
|
-
description: string;
|
53
|
-
defaultMessage: string;
|
54
|
-
};
|
55
|
-
}[] | undefined;
|
56
|
-
}>;
|
57
|
-
export declare const EventFieldId: z.ZodEnum<["trackingId", "status"]>;
|
58
|
-
export type EventFieldId = z.infer<typeof EventFieldId>;
|
59
|
-
export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
60
|
-
config: z.ZodObject<{
|
61
|
-
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
62
|
-
}, "strip", z.ZodTypeAny, {
|
63
|
-
type: "exact" | "fuzzy" | "range";
|
64
|
-
}, {
|
65
|
-
type: "exact" | "fuzzy" | "range";
|
66
|
-
}>;
|
67
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
68
|
-
value: z.ZodString;
|
69
|
-
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
70
|
-
id: string;
|
71
|
-
description: string;
|
72
|
-
defaultMessage: string;
|
73
|
-
}>;
|
74
|
-
}, "strip", z.ZodTypeAny, {
|
75
|
-
value: string;
|
76
|
-
label: TranslationConfig;
|
77
|
-
}, {
|
78
|
-
value: string;
|
79
|
-
label: {
|
80
|
-
id: string;
|
81
|
-
description: string;
|
82
|
-
defaultMessage: string;
|
83
|
-
};
|
84
|
-
}>, "many">>;
|
85
|
-
}, {
|
86
|
-
fieldId: z.ZodEnum<["trackingId", "status"]>;
|
87
|
-
fieldType: z.ZodLiteral<"event">;
|
88
|
-
}>, "strip", z.ZodTypeAny, {
|
89
|
-
config: {
|
90
|
-
type: "exact" | "fuzzy" | "range";
|
91
|
-
};
|
92
|
-
fieldId: "status" | "trackingId";
|
93
|
-
fieldType: "event";
|
94
|
-
options?: {
|
95
|
-
value: string;
|
96
|
-
label: TranslationConfig;
|
97
|
-
}[] | undefined;
|
98
|
-
}, {
|
99
|
-
config: {
|
100
|
-
type: "exact" | "fuzzy" | "range";
|
101
|
-
};
|
102
|
-
fieldId: "status" | "trackingId";
|
103
|
-
fieldType: "event";
|
104
|
-
options?: {
|
105
|
-
value: string;
|
106
|
-
label: {
|
107
|
-
id: string;
|
108
|
-
description: string;
|
109
|
-
defaultMessage: string;
|
110
|
-
};
|
111
|
-
}[] | undefined;
|
112
|
-
}>;
|
113
|
-
export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
|
114
|
-
config: z.ZodObject<{
|
115
|
-
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
116
|
-
}, "strip", z.ZodTypeAny, {
|
117
|
-
type: "exact" | "fuzzy" | "range";
|
118
|
-
}, {
|
119
|
-
type: "exact" | "fuzzy" | "range";
|
120
|
-
}>;
|
121
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
122
|
-
value: z.ZodString;
|
123
|
-
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
124
|
-
id: string;
|
125
|
-
description: string;
|
126
|
-
defaultMessage: string;
|
127
|
-
}>;
|
128
|
-
}, "strip", z.ZodTypeAny, {
|
129
|
-
value: string;
|
130
|
-
label: TranslationConfig;
|
131
|
-
}, {
|
132
|
-
value: string;
|
133
|
-
label: {
|
134
|
-
id: string;
|
135
|
-
description: string;
|
136
|
-
defaultMessage: string;
|
137
|
-
};
|
138
|
-
}>, "many">>;
|
139
|
-
}, {
|
140
|
-
fieldId: z.ZodString;
|
141
|
-
fieldType: z.ZodLiteral<"field">;
|
142
|
-
}>, "strip", z.ZodTypeAny, {
|
143
|
-
config: {
|
144
|
-
type: "exact" | "fuzzy" | "range";
|
145
|
-
};
|
146
|
-
fieldId: string;
|
147
|
-
fieldType: "field";
|
148
|
-
options?: {
|
149
|
-
value: string;
|
150
|
-
label: TranslationConfig;
|
151
|
-
}[] | undefined;
|
152
|
-
}, {
|
153
|
-
config: {
|
154
|
-
type: "exact" | "fuzzy" | "range";
|
155
|
-
};
|
156
|
-
fieldId: string;
|
157
|
-
fieldType: "field";
|
158
|
-
options?: {
|
159
|
-
value: string;
|
160
|
-
label: {
|
161
|
-
id: string;
|
162
|
-
description: string;
|
163
|
-
defaultMessage: string;
|
164
|
-
};
|
165
|
-
}[] | undefined;
|
166
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
167
|
-
config: z.ZodObject<{
|
168
|
-
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
169
|
-
}, "strip", z.ZodTypeAny, {
|
170
|
-
type: "exact" | "fuzzy" | "range";
|
171
|
-
}, {
|
172
|
-
type: "exact" | "fuzzy" | "range";
|
173
|
-
}>;
|
174
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
175
|
-
value: z.ZodString;
|
176
|
-
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
177
|
-
id: string;
|
178
|
-
description: string;
|
179
|
-
defaultMessage: string;
|
180
|
-
}>;
|
181
|
-
}, "strip", z.ZodTypeAny, {
|
182
|
-
value: string;
|
183
|
-
label: TranslationConfig;
|
184
|
-
}, {
|
185
|
-
value: string;
|
186
|
-
label: {
|
187
|
-
id: string;
|
188
|
-
description: string;
|
189
|
-
defaultMessage: string;
|
190
|
-
};
|
191
|
-
}>, "many">>;
|
192
|
-
}, {
|
193
|
-
fieldId: z.ZodEnum<["trackingId", "status"]>;
|
194
|
-
fieldType: z.ZodLiteral<"event">;
|
195
|
-
}>, "strip", z.ZodTypeAny, {
|
196
|
-
config: {
|
197
|
-
type: "exact" | "fuzzy" | "range";
|
198
|
-
};
|
199
|
-
fieldId: "status" | "trackingId";
|
200
|
-
fieldType: "event";
|
201
|
-
options?: {
|
202
|
-
value: string;
|
203
|
-
label: TranslationConfig;
|
204
|
-
}[] | undefined;
|
205
|
-
}, {
|
206
|
-
config: {
|
207
|
-
type: "exact" | "fuzzy" | "range";
|
208
|
-
};
|
209
|
-
fieldId: "status" | "trackingId";
|
210
|
-
fieldType: "event";
|
211
|
-
options?: {
|
212
|
-
value: string;
|
213
|
-
label: {
|
214
|
-
id: string;
|
215
|
-
description: string;
|
216
|
-
defaultMessage: string;
|
217
|
-
};
|
218
|
-
}[] | undefined;
|
219
|
-
}>]>;
|
220
|
-
export type SearchField = z.infer<typeof SearchField>;
|
221
3
|
export declare const AdvancedSearchConfig: z.ZodObject<{
|
222
4
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
223
5
|
id: string;
|
224
6
|
description: string;
|
225
7
|
defaultMessage: string;
|
226
8
|
}>;
|
227
|
-
fields: z.
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
type: "exact" | "fuzzy" | "range";
|
232
|
-
}, {
|
233
|
-
type: "exact" | "fuzzy" | "range";
|
234
|
-
}>;
|
235
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
236
|
-
value: z.ZodString;
|
237
|
-
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
238
|
-
id: string;
|
239
|
-
description: string;
|
240
|
-
defaultMessage: string;
|
241
|
-
}>;
|
9
|
+
fields: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
10
|
+
fieldId: z.ZodString;
|
11
|
+
config: z.ZodOptional<z.ZodObject<{
|
12
|
+
type: z.ZodEnum<["FUZZY", "EXACT", "RANGE"]>;
|
242
13
|
}, "strip", z.ZodTypeAny, {
|
243
|
-
|
244
|
-
label: TranslationConfig;
|
14
|
+
type: "FUZZY" | "EXACT" | "RANGE";
|
245
15
|
}, {
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
description: string;
|
250
|
-
defaultMessage: string;
|
251
|
-
};
|
252
|
-
}>, "many">>;
|
253
|
-
}, {
|
254
|
-
fieldId: z.ZodString;
|
255
|
-
fieldType: z.ZodLiteral<"field">;
|
256
|
-
}>, "strip", z.ZodTypeAny, {
|
257
|
-
config: {
|
258
|
-
type: "exact" | "fuzzy" | "range";
|
259
|
-
};
|
16
|
+
type: "FUZZY" | "EXACT" | "RANGE";
|
17
|
+
}>>;
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
260
19
|
fieldId: string;
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
label: TranslationConfig;
|
265
|
-
}[] | undefined;
|
20
|
+
config?: {
|
21
|
+
type: "FUZZY" | "EXACT" | "RANGE";
|
22
|
+
} | undefined;
|
266
23
|
}, {
|
267
|
-
config: {
|
268
|
-
type: "exact" | "fuzzy" | "range";
|
269
|
-
};
|
270
24
|
fieldId: string;
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
id: string;
|
276
|
-
description: string;
|
277
|
-
defaultMessage: string;
|
278
|
-
};
|
279
|
-
}[] | undefined;
|
280
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
281
|
-
config: z.ZodObject<{
|
282
|
-
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
283
|
-
}, "strip", z.ZodTypeAny, {
|
284
|
-
type: "exact" | "fuzzy" | "range";
|
285
|
-
}, {
|
286
|
-
type: "exact" | "fuzzy" | "range";
|
287
|
-
}>;
|
288
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
289
|
-
value: z.ZodString;
|
290
|
-
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
291
|
-
id: string;
|
292
|
-
description: string;
|
293
|
-
defaultMessage: string;
|
294
|
-
}>;
|
295
|
-
}, "strip", z.ZodTypeAny, {
|
296
|
-
value: string;
|
297
|
-
label: TranslationConfig;
|
298
|
-
}, {
|
299
|
-
value: string;
|
300
|
-
label: {
|
301
|
-
id: string;
|
302
|
-
description: string;
|
303
|
-
defaultMessage: string;
|
304
|
-
};
|
305
|
-
}>, "many">>;
|
306
|
-
}, {
|
307
|
-
fieldId: z.ZodEnum<["trackingId", "status"]>;
|
308
|
-
fieldType: z.ZodLiteral<"event">;
|
309
|
-
}>, "strip", z.ZodTypeAny, {
|
310
|
-
config: {
|
311
|
-
type: "exact" | "fuzzy" | "range";
|
312
|
-
};
|
313
|
-
fieldId: "status" | "trackingId";
|
314
|
-
fieldType: "event";
|
315
|
-
options?: {
|
316
|
-
value: string;
|
317
|
-
label: TranslationConfig;
|
318
|
-
}[] | undefined;
|
319
|
-
}, {
|
320
|
-
config: {
|
321
|
-
type: "exact" | "fuzzy" | "range";
|
322
|
-
};
|
323
|
-
fieldId: "status" | "trackingId";
|
324
|
-
fieldType: "event";
|
325
|
-
options?: {
|
326
|
-
value: string;
|
327
|
-
label: {
|
328
|
-
id: string;
|
329
|
-
description: string;
|
330
|
-
defaultMessage: string;
|
331
|
-
};
|
332
|
-
}[] | undefined;
|
333
|
-
}>]>, "many">;
|
25
|
+
config?: {
|
26
|
+
type: "FUZZY" | "EXACT" | "RANGE";
|
27
|
+
} | undefined;
|
28
|
+
}>, "many">>>;
|
334
29
|
}, "strip", z.ZodTypeAny, {
|
335
30
|
title: TranslationConfig;
|
336
|
-
fields:
|
337
|
-
config: {
|
338
|
-
type: "exact" | "fuzzy" | "range";
|
339
|
-
};
|
31
|
+
fields: {
|
340
32
|
fieldId: string;
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
}[] | undefined;
|
346
|
-
} | {
|
347
|
-
config: {
|
348
|
-
type: "exact" | "fuzzy" | "range";
|
349
|
-
};
|
350
|
-
fieldId: "status" | "trackingId";
|
351
|
-
fieldType: "event";
|
352
|
-
options?: {
|
353
|
-
value: string;
|
354
|
-
label: TranslationConfig;
|
355
|
-
}[] | undefined;
|
356
|
-
})[];
|
33
|
+
config?: {
|
34
|
+
type: "FUZZY" | "EXACT" | "RANGE";
|
35
|
+
} | undefined;
|
36
|
+
}[];
|
357
37
|
}, {
|
358
38
|
title: {
|
359
39
|
id: string;
|
360
40
|
description: string;
|
361
41
|
defaultMessage: string;
|
362
42
|
};
|
363
|
-
fields
|
364
|
-
config: {
|
365
|
-
type: "exact" | "fuzzy" | "range";
|
366
|
-
};
|
43
|
+
fields?: {
|
367
44
|
fieldId: string;
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
id: string;
|
373
|
-
description: string;
|
374
|
-
defaultMessage: string;
|
375
|
-
};
|
376
|
-
}[] | undefined;
|
377
|
-
} | {
|
378
|
-
config: {
|
379
|
-
type: "exact" | "fuzzy" | "range";
|
380
|
-
};
|
381
|
-
fieldId: "status" | "trackingId";
|
382
|
-
fieldType: "event";
|
383
|
-
options?: {
|
384
|
-
value: string;
|
385
|
-
label: {
|
386
|
-
id: string;
|
387
|
-
description: string;
|
388
|
-
defaultMessage: string;
|
389
|
-
};
|
390
|
-
}[] | undefined;
|
391
|
-
})[];
|
45
|
+
config?: {
|
46
|
+
type: "FUZZY" | "EXACT" | "RANGE";
|
47
|
+
} | undefined;
|
48
|
+
}[] | undefined;
|
392
49
|
}>;
|
393
|
-
export type AdvancedSearchConfigInput = z.infer<typeof AdvancedSearchConfig>;
|
394
50
|
export type AdvancedSearchConfig = z.infer<typeof AdvancedSearchConfig>;
|
395
51
|
//# sourceMappingURL=AdvancedSearchConfig.d.ts.map
|
@@ -117,7 +117,6 @@ export declare const UrbanAddressUpdateValue: z.ZodObject<z.objectUtil.extendSha
|
|
117
117
|
street?: string | null | undefined;
|
118
118
|
zipCode?: string | null | undefined;
|
119
119
|
}>;
|
120
|
-
export type UrbanAddressUpdateValue = z.infer<typeof UrbanAddressUpdateValue>;
|
121
120
|
export declare const RuralAddressUpdateValue: z.ZodObject<z.objectUtil.extendShape<{
|
122
121
|
country: z.ZodString;
|
123
122
|
addressType: z.ZodLiteral<"DOMESTIC">;
|
@@ -141,7 +140,6 @@ export declare const RuralAddressUpdateValue: z.ZodObject<z.objectUtil.extendSha
|
|
141
140
|
urbanOrRural: "RURAL";
|
142
141
|
village?: string | null | undefined;
|
143
142
|
}>;
|
144
|
-
export type RuralAddressUpdateValue = z.infer<typeof RuralAddressUpdateValue>;
|
145
143
|
export declare const GenericAddressValue: z.ZodObject<{
|
146
144
|
country: z.ZodString;
|
147
145
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
@@ -291,7 +289,6 @@ export declare const GenericAddressUpdateValue: z.ZodObject<{
|
|
291
289
|
addressLine3?: string | null | undefined;
|
292
290
|
postcodeOrZip?: string | null | undefined;
|
293
291
|
}>;
|
294
|
-
export type GenericAddressUpdateValue = z.infer<typeof GenericAddressUpdateValue>;
|
295
292
|
export declare const AddressFieldUpdateValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
|
296
293
|
country: z.ZodString;
|
297
294
|
addressType: z.ZodLiteral<"DOMESTIC">;
|
@@ -6,11 +6,9 @@ export declare const Draft: z.ZodObject<{
|
|
6
6
|
createdAt: z.ZodString;
|
7
7
|
action: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
8
8
|
id: z.ZodString;
|
9
|
-
transactionId: z.ZodString;
|
10
9
|
createdAt: z.ZodString;
|
11
10
|
createdBy: z.ZodString;
|
12
|
-
|
13
|
-
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<{
|
11
|
+
declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
14
12
|
filename: z.ZodString;
|
15
13
|
originalFilename: z.ZodString;
|
16
14
|
type: z.ZodString;
|
@@ -124,7 +122,7 @@ export declare const Draft: z.ZodObject<{
|
|
124
122
|
addressLine3?: string | null | undefined;
|
125
123
|
postcodeOrZip?: string | null | undefined;
|
126
124
|
}>]>>;
|
127
|
-
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.
|
125
|
+
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
128
126
|
filename: z.ZodString;
|
129
127
|
originalFilename: z.ZodString;
|
130
128
|
type: z.ZodString;
|
@@ -246,10 +244,8 @@ export declare const Draft: z.ZodObject<{
|
|
246
244
|
}>, "id">, "strip", z.ZodTypeAny, {
|
247
245
|
type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
248
246
|
status: "Rejected" | "Requested" | "Accepted";
|
249
|
-
transactionId: string;
|
250
247
|
createdAt: string;
|
251
248
|
createdBy: string;
|
252
|
-
createdByRole: string;
|
253
249
|
declaration: Record<string, string | number | boolean | {
|
254
250
|
type: string;
|
255
251
|
filename: string;
|
@@ -287,7 +283,7 @@ export declare const Draft: z.ZodObject<{
|
|
287
283
|
option: string;
|
288
284
|
filename: string;
|
289
285
|
originalFilename: string;
|
290
|
-
}[] |
|
286
|
+
}[] | undefined>;
|
291
287
|
createdAtLocation: string;
|
292
288
|
annotation?: Record<string, string | number | boolean | {
|
293
289
|
type: string;
|
@@ -326,15 +322,13 @@ export declare const Draft: z.ZodObject<{
|
|
326
322
|
option: string;
|
327
323
|
filename: string;
|
328
324
|
originalFilename: string;
|
329
|
-
}[] |
|
325
|
+
}[] | undefined> | undefined;
|
330
326
|
originalActionId?: string | undefined;
|
331
327
|
}, {
|
332
328
|
type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
333
329
|
status: "Rejected" | "Requested" | "Accepted";
|
334
|
-
transactionId: string;
|
335
330
|
createdAt: string;
|
336
331
|
createdBy: string;
|
337
|
-
createdByRole: string;
|
338
332
|
declaration: Record<string, string | number | boolean | {
|
339
333
|
type: string;
|
340
334
|
filename: string;
|
@@ -372,7 +366,7 @@ export declare const Draft: z.ZodObject<{
|
|
372
366
|
option: string;
|
373
367
|
filename: string;
|
374
368
|
originalFilename: string;
|
375
|
-
}[] |
|
369
|
+
}[] | undefined>;
|
376
370
|
createdAtLocation: string;
|
377
371
|
annotation?: Record<string, string | number | boolean | {
|
378
372
|
type: string;
|
@@ -411,21 +405,19 @@ export declare const Draft: z.ZodObject<{
|
|
411
405
|
option: string;
|
412
406
|
filename: string;
|
413
407
|
originalFilename: string;
|
414
|
-
}[] |
|
408
|
+
}[] | undefined> | undefined;
|
415
409
|
originalActionId?: string | undefined;
|
416
410
|
}>;
|
417
411
|
}, "strip", z.ZodTypeAny, {
|
418
412
|
id: string;
|
419
|
-
transactionId: string;
|
420
413
|
createdAt: string;
|
421
414
|
eventId: string;
|
415
|
+
transactionId: string;
|
422
416
|
action: {
|
423
417
|
type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
424
418
|
status: "Rejected" | "Requested" | "Accepted";
|
425
|
-
transactionId: string;
|
426
419
|
createdAt: string;
|
427
420
|
createdBy: string;
|
428
|
-
createdByRole: string;
|
429
421
|
declaration: Record<string, string | number | boolean | {
|
430
422
|
type: string;
|
431
423
|
filename: string;
|
@@ -463,7 +455,7 @@ export declare const Draft: z.ZodObject<{
|
|
463
455
|
option: string;
|
464
456
|
filename: string;
|
465
457
|
originalFilename: string;
|
466
|
-
}[] |
|
458
|
+
}[] | undefined>;
|
467
459
|
createdAtLocation: string;
|
468
460
|
annotation?: Record<string, string | number | boolean | {
|
469
461
|
type: string;
|
@@ -502,21 +494,19 @@ export declare const Draft: z.ZodObject<{
|
|
502
494
|
option: string;
|
503
495
|
filename: string;
|
504
496
|
originalFilename: string;
|
505
|
-
}[] |
|
497
|
+
}[] | undefined> | undefined;
|
506
498
|
originalActionId?: string | undefined;
|
507
499
|
};
|
508
500
|
}, {
|
509
501
|
id: string;
|
510
|
-
transactionId: string;
|
511
502
|
createdAt: string;
|
512
503
|
eventId: string;
|
504
|
+
transactionId: string;
|
513
505
|
action: {
|
514
506
|
type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
515
507
|
status: "Rejected" | "Requested" | "Accepted";
|
516
|
-
transactionId: string;
|
517
508
|
createdAt: string;
|
518
509
|
createdBy: string;
|
519
|
-
createdByRole: string;
|
520
510
|
declaration: Record<string, string | number | boolean | {
|
521
511
|
type: string;
|
522
512
|
filename: string;
|
@@ -554,7 +544,7 @@ export declare const Draft: z.ZodObject<{
|
|
554
544
|
option: string;
|
555
545
|
filename: string;
|
556
546
|
originalFilename: string;
|
557
|
-
}[] |
|
547
|
+
}[] | undefined>;
|
558
548
|
createdAtLocation: string;
|
559
549
|
annotation?: Record<string, string | number | boolean | {
|
560
550
|
type: string;
|
@@ -593,14 +583,14 @@ export declare const Draft: z.ZodObject<{
|
|
593
583
|
option: string;
|
594
584
|
filename: string;
|
595
585
|
originalFilename: string;
|
596
|
-
}[] |
|
586
|
+
}[] | undefined> | undefined;
|
597
587
|
originalActionId?: string | undefined;
|
598
588
|
};
|
599
589
|
}>;
|
600
590
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
601
591
|
eventId: z.ZodString;
|
602
592
|
transactionId: z.ZodString;
|
603
|
-
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.
|
593
|
+
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
604
594
|
filename: z.ZodString;
|
605
595
|
originalFilename: z.ZodString;
|
606
596
|
type: z.ZodString;
|
@@ -714,7 +704,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
714
704
|
addressLine3?: string | null | undefined;
|
715
705
|
postcodeOrZip?: string | null | undefined;
|
716
706
|
}>]>>>;
|
717
|
-
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.
|
707
|
+
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
718
708
|
filename: z.ZodString;
|
719
709
|
originalFilename: z.ZodString;
|
720
710
|
type: z.ZodString;
|
@@ -832,11 +822,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
832
822
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
833
823
|
}, {
|
834
824
|
type: z.ZodEnum<["DELETE", "CREATE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "DETECT_DUPLICATE", "REJECT", "MARKED_AS_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION", "READ", "ASSIGN", "UNASSIGN"]>;
|
835
|
-
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
836
825
|
}>, "strip", z.ZodTypeAny, {
|
837
826
|
type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
838
|
-
status: "Rejected" | "Requested" | "Accepted";
|
839
|
-
transactionId: string;
|
840
827
|
declaration: Record<string, string | number | boolean | {
|
841
828
|
type: string;
|
842
829
|
filename: string;
|
@@ -874,8 +861,9 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
874
861
|
option: string;
|
875
862
|
filename: string;
|
876
863
|
originalFilename: string;
|
877
|
-
}[] |
|
864
|
+
}[] | undefined>;
|
878
865
|
eventId: string;
|
866
|
+
transactionId: string;
|
879
867
|
annotation?: Record<string, string | number | boolean | {
|
880
868
|
type: string;
|
881
869
|
filename: string;
|
@@ -913,14 +901,13 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
913
901
|
option: string;
|
914
902
|
filename: string;
|
915
903
|
originalFilename: string;
|
916
|
-
}[] |
|
904
|
+
}[] | undefined> | undefined;
|
917
905
|
originalActionId?: string | undefined;
|
918
906
|
keepAssignment?: boolean | undefined;
|
919
907
|
}, {
|
920
908
|
type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
921
|
-
status: "Rejected" | "Requested" | "Accepted";
|
922
|
-
transactionId: string;
|
923
909
|
eventId: string;
|
910
|
+
transactionId: string;
|
924
911
|
declaration?: Record<string, string | number | boolean | {
|
925
912
|
type: string;
|
926
913
|
filename: string;
|
@@ -958,7 +945,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
958
945
|
option: string;
|
959
946
|
filename: string;
|
960
947
|
originalFilename: string;
|
961
|
-
}[] |
|
948
|
+
}[] | undefined> | undefined;
|
962
949
|
annotation?: Record<string, string | number | boolean | {
|
963
950
|
type: string;
|
964
951
|
filename: string;
|
@@ -996,7 +983,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
996
983
|
option: string;
|
997
984
|
filename: string;
|
998
985
|
originalFilename: string;
|
999
|
-
}[] |
|
986
|
+
}[] | undefined> | undefined;
|
1000
987
|
originalActionId?: string | undefined;
|
1001
988
|
keepAssignment?: boolean | undefined;
|
1002
989
|
}>;
|