@opencrvs/toolkit 1.8.0-rc.fef85f2 → 1.8.0-rc.ff0a1b5
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 +7684 -4215
- package/dist/commons/conditionals/conditionals.d.ts +9 -6
- package/dist/commons/events/ActionConfig.d.ts +90025 -1680
- package/dist/commons/events/ActionDocument.d.ts +542 -211
- package/dist/commons/events/ActionInput.d.ts +248 -240
- package/dist/commons/events/AdvancedSearchConfig.d.ts +369 -25
- package/dist/commons/events/Draft.d.ts +33 -20
- package/dist/commons/events/EventConfig.d.ts +42730 -1400
- package/dist/commons/events/EventDocument.d.ts +337 -159
- package/dist/commons/events/EventIndex.d.ts +1462 -16
- package/dist/commons/events/EventInput.d.ts +13 -0
- package/dist/commons/events/EventMetadata.d.ts +273 -14
- package/dist/commons/events/FieldConfig.d.ts +3682 -714
- package/dist/commons/events/FieldType.d.ts +3 -3
- package/dist/commons/events/FieldTypeMapping.d.ts +11 -4
- package/dist/commons/events/FieldValue.d.ts +7 -4
- package/dist/commons/events/FormConfig.d.ts +40417 -439
- package/dist/commons/events/PageConfig.d.ts +10077 -203
- package/dist/commons/events/SummaryConfig.d.ts +17 -47
- package/dist/commons/events/WorkqueueConfig.d.ts +1257 -19
- package/dist/commons/events/defineConfig.d.ts +6952 -32
- package/dist/commons/events/event.d.ts +27 -0
- package/dist/commons/events/field.d.ts +68 -0
- package/dist/commons/events/index.d.ts +2 -0
- package/dist/commons/events/scopes.d.ts +1 -0
- package/dist/commons/events/test.utils.d.ts +7 -44
- package/dist/commons/events/utils.d.ts +3550 -67
- package/dist/conditionals/index.js +36 -33
- package/dist/events/index.js +1446 -949
- package/dist/scopes/index.d.ts +70 -1
- package/dist/scopes/index.js +130 -0
- package/package.json +3 -2
@@ -1,51 +1,395 @@
|
|
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>;
|
3
221
|
export declare const AdvancedSearchConfig: z.ZodObject<{
|
4
222
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
5
223
|
id: string;
|
6
224
|
description: string;
|
7
225
|
defaultMessage: string;
|
8
226
|
}>;
|
9
|
-
fields: z.
|
10
|
-
|
11
|
-
|
12
|
-
type: z.ZodEnum<["FUZZY", "EXACT", "RANGE"]>;
|
227
|
+
fields: z.ZodArray<z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
|
228
|
+
config: z.ZodObject<{
|
229
|
+
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
13
230
|
}, "strip", z.ZodTypeAny, {
|
14
|
-
type: "
|
231
|
+
type: "exact" | "fuzzy" | "range";
|
15
232
|
}, {
|
16
|
-
type: "
|
17
|
-
}
|
18
|
-
|
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
|
+
}>;
|
242
|
+
}, "strip", z.ZodTypeAny, {
|
243
|
+
value: string;
|
244
|
+
label: TranslationConfig;
|
245
|
+
}, {
|
246
|
+
value: string;
|
247
|
+
label: {
|
248
|
+
id: string;
|
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
|
+
};
|
19
260
|
fieldId: string;
|
20
|
-
|
21
|
-
|
22
|
-
|
261
|
+
fieldType: "field";
|
262
|
+
options?: {
|
263
|
+
value: string;
|
264
|
+
label: TranslationConfig;
|
265
|
+
}[] | undefined;
|
23
266
|
}, {
|
267
|
+
config: {
|
268
|
+
type: "exact" | "fuzzy" | "range";
|
269
|
+
};
|
24
270
|
fieldId: string;
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
271
|
+
fieldType: "field";
|
272
|
+
options?: {
|
273
|
+
value: string;
|
274
|
+
label: {
|
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">;
|
29
334
|
}, "strip", z.ZodTypeAny, {
|
30
335
|
title: TranslationConfig;
|
31
|
-
fields: {
|
336
|
+
fields: ({
|
337
|
+
config: {
|
338
|
+
type: "exact" | "fuzzy" | "range";
|
339
|
+
};
|
32
340
|
fieldId: string;
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
341
|
+
fieldType: "field";
|
342
|
+
options?: {
|
343
|
+
value: string;
|
344
|
+
label: TranslationConfig;
|
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
|
+
})[];
|
37
357
|
}, {
|
38
358
|
title: {
|
39
359
|
id: string;
|
40
360
|
description: string;
|
41
361
|
defaultMessage: string;
|
42
362
|
};
|
43
|
-
fields
|
363
|
+
fields: ({
|
364
|
+
config: {
|
365
|
+
type: "exact" | "fuzzy" | "range";
|
366
|
+
};
|
44
367
|
fieldId: string;
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
368
|
+
fieldType: "field";
|
369
|
+
options?: {
|
370
|
+
value: string;
|
371
|
+
label: {
|
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
|
+
})[];
|
49
392
|
}>;
|
393
|
+
export type AdvancedSearchConfigInput = z.infer<typeof AdvancedSearchConfig>;
|
50
394
|
export type AdvancedSearchConfig = z.infer<typeof AdvancedSearchConfig>;
|
51
395
|
//# sourceMappingURL=AdvancedSearchConfig.d.ts.map
|
@@ -6,9 +6,11 @@ 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;
|
9
10
|
createdAt: z.ZodString;
|
10
11
|
createdBy: z.ZodString;
|
11
|
-
|
12
|
+
createdByRole: z.ZodString;
|
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<{
|
12
14
|
filename: z.ZodString;
|
13
15
|
originalFilename: z.ZodString;
|
14
16
|
type: z.ZodString;
|
@@ -122,7 +124,7 @@ export declare const Draft: z.ZodObject<{
|
|
122
124
|
addressLine3?: string | null | undefined;
|
123
125
|
postcodeOrZip?: string | null | undefined;
|
124
126
|
}>]>>;
|
125
|
-
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
127
|
+
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<{
|
126
128
|
filename: z.ZodString;
|
127
129
|
originalFilename: z.ZodString;
|
128
130
|
type: z.ZodString;
|
@@ -244,8 +246,10 @@ export declare const Draft: z.ZodObject<{
|
|
244
246
|
}>, "id">, "strip", z.ZodTypeAny, {
|
245
247
|
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";
|
246
248
|
status: "Rejected" | "Requested" | "Accepted";
|
249
|
+
transactionId: string;
|
247
250
|
createdAt: string;
|
248
251
|
createdBy: string;
|
252
|
+
createdByRole: string;
|
249
253
|
declaration: Record<string, string | number | boolean | {
|
250
254
|
type: string;
|
251
255
|
filename: string;
|
@@ -283,7 +287,7 @@ export declare const Draft: z.ZodObject<{
|
|
283
287
|
option: string;
|
284
288
|
filename: string;
|
285
289
|
originalFilename: string;
|
286
|
-
}[] | undefined>;
|
290
|
+
}[] | [string, string] | undefined>;
|
287
291
|
createdAtLocation: string;
|
288
292
|
annotation?: Record<string, string | number | boolean | {
|
289
293
|
type: string;
|
@@ -322,13 +326,15 @@ export declare const Draft: z.ZodObject<{
|
|
322
326
|
option: string;
|
323
327
|
filename: string;
|
324
328
|
originalFilename: string;
|
325
|
-
}[] | undefined> | undefined;
|
329
|
+
}[] | [string, string] | undefined> | undefined;
|
326
330
|
originalActionId?: string | undefined;
|
327
331
|
}, {
|
328
332
|
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";
|
329
333
|
status: "Rejected" | "Requested" | "Accepted";
|
334
|
+
transactionId: string;
|
330
335
|
createdAt: string;
|
331
336
|
createdBy: string;
|
337
|
+
createdByRole: string;
|
332
338
|
declaration: Record<string, string | number | boolean | {
|
333
339
|
type: string;
|
334
340
|
filename: string;
|
@@ -366,7 +372,7 @@ export declare const Draft: z.ZodObject<{
|
|
366
372
|
option: string;
|
367
373
|
filename: string;
|
368
374
|
originalFilename: string;
|
369
|
-
}[] | undefined>;
|
375
|
+
}[] | [string, string] | undefined>;
|
370
376
|
createdAtLocation: string;
|
371
377
|
annotation?: Record<string, string | number | boolean | {
|
372
378
|
type: string;
|
@@ -405,19 +411,21 @@ export declare const Draft: z.ZodObject<{
|
|
405
411
|
option: string;
|
406
412
|
filename: string;
|
407
413
|
originalFilename: string;
|
408
|
-
}[] | undefined> | undefined;
|
414
|
+
}[] | [string, string] | undefined> | undefined;
|
409
415
|
originalActionId?: string | undefined;
|
410
416
|
}>;
|
411
417
|
}, "strip", z.ZodTypeAny, {
|
412
418
|
id: string;
|
419
|
+
transactionId: string;
|
413
420
|
createdAt: string;
|
414
421
|
eventId: string;
|
415
|
-
transactionId: string;
|
416
422
|
action: {
|
417
423
|
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";
|
418
424
|
status: "Rejected" | "Requested" | "Accepted";
|
425
|
+
transactionId: string;
|
419
426
|
createdAt: string;
|
420
427
|
createdBy: string;
|
428
|
+
createdByRole: string;
|
421
429
|
declaration: Record<string, string | number | boolean | {
|
422
430
|
type: string;
|
423
431
|
filename: string;
|
@@ -455,7 +463,7 @@ export declare const Draft: z.ZodObject<{
|
|
455
463
|
option: string;
|
456
464
|
filename: string;
|
457
465
|
originalFilename: string;
|
458
|
-
}[] | undefined>;
|
466
|
+
}[] | [string, string] | undefined>;
|
459
467
|
createdAtLocation: string;
|
460
468
|
annotation?: Record<string, string | number | boolean | {
|
461
469
|
type: string;
|
@@ -494,19 +502,21 @@ export declare const Draft: z.ZodObject<{
|
|
494
502
|
option: string;
|
495
503
|
filename: string;
|
496
504
|
originalFilename: string;
|
497
|
-
}[] | undefined> | undefined;
|
505
|
+
}[] | [string, string] | undefined> | undefined;
|
498
506
|
originalActionId?: string | undefined;
|
499
507
|
};
|
500
508
|
}, {
|
501
509
|
id: string;
|
510
|
+
transactionId: string;
|
502
511
|
createdAt: string;
|
503
512
|
eventId: string;
|
504
|
-
transactionId: string;
|
505
513
|
action: {
|
506
514
|
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";
|
507
515
|
status: "Rejected" | "Requested" | "Accepted";
|
516
|
+
transactionId: string;
|
508
517
|
createdAt: string;
|
509
518
|
createdBy: string;
|
519
|
+
createdByRole: string;
|
510
520
|
declaration: Record<string, string | number | boolean | {
|
511
521
|
type: string;
|
512
522
|
filename: string;
|
@@ -544,7 +554,7 @@ export declare const Draft: z.ZodObject<{
|
|
544
554
|
option: string;
|
545
555
|
filename: string;
|
546
556
|
originalFilename: string;
|
547
|
-
}[] | undefined>;
|
557
|
+
}[] | [string, string] | undefined>;
|
548
558
|
createdAtLocation: string;
|
549
559
|
annotation?: Record<string, string | number | boolean | {
|
550
560
|
type: string;
|
@@ -583,14 +593,14 @@ export declare const Draft: z.ZodObject<{
|
|
583
593
|
option: string;
|
584
594
|
filename: string;
|
585
595
|
originalFilename: string;
|
586
|
-
}[] | undefined> | undefined;
|
596
|
+
}[] | [string, string] | undefined> | undefined;
|
587
597
|
originalActionId?: string | undefined;
|
588
598
|
};
|
589
599
|
}>;
|
590
600
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
591
601
|
eventId: z.ZodString;
|
592
602
|
transactionId: z.ZodString;
|
593
|
-
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
603
|
+
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<{
|
594
604
|
filename: z.ZodString;
|
595
605
|
originalFilename: z.ZodString;
|
596
606
|
type: z.ZodString;
|
@@ -704,7 +714,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
704
714
|
addressLine3?: string | null | undefined;
|
705
715
|
postcodeOrZip?: string | null | undefined;
|
706
716
|
}>]>>>;
|
707
|
-
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
717
|
+
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<{
|
708
718
|
filename: z.ZodString;
|
709
719
|
originalFilename: z.ZodString;
|
710
720
|
type: z.ZodString;
|
@@ -822,8 +832,11 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
822
832
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
823
833
|
}, {
|
824
834
|
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"]>;
|
825
836
|
}>, "strip", z.ZodTypeAny, {
|
826
837
|
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;
|
827
840
|
declaration: Record<string, string | number | boolean | {
|
828
841
|
type: string;
|
829
842
|
filename: string;
|
@@ -861,9 +874,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
861
874
|
option: string;
|
862
875
|
filename: string;
|
863
876
|
originalFilename: string;
|
864
|
-
}[] | undefined>;
|
877
|
+
}[] | [string, string] | undefined>;
|
865
878
|
eventId: string;
|
866
|
-
transactionId: string;
|
867
879
|
annotation?: Record<string, string | number | boolean | {
|
868
880
|
type: string;
|
869
881
|
filename: string;
|
@@ -901,13 +913,14 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
901
913
|
option: string;
|
902
914
|
filename: string;
|
903
915
|
originalFilename: string;
|
904
|
-
}[] | undefined> | undefined;
|
916
|
+
}[] | [string, string] | undefined> | undefined;
|
905
917
|
originalActionId?: string | undefined;
|
906
918
|
keepAssignment?: boolean | undefined;
|
907
919
|
}, {
|
908
920
|
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";
|
909
|
-
|
921
|
+
status: "Rejected" | "Requested" | "Accepted";
|
910
922
|
transactionId: string;
|
923
|
+
eventId: string;
|
911
924
|
declaration?: Record<string, string | number | boolean | {
|
912
925
|
type: string;
|
913
926
|
filename: string;
|
@@ -945,7 +958,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
945
958
|
option: string;
|
946
959
|
filename: string;
|
947
960
|
originalFilename: string;
|
948
|
-
}[] | undefined> | undefined;
|
961
|
+
}[] | [string, string] | undefined> | undefined;
|
949
962
|
annotation?: Record<string, string | number | boolean | {
|
950
963
|
type: string;
|
951
964
|
filename: string;
|
@@ -983,7 +996,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
983
996
|
option: string;
|
984
997
|
filename: string;
|
985
998
|
originalFilename: string;
|
986
|
-
}[] | undefined> | undefined;
|
999
|
+
}[] | [string, string] | undefined> | undefined;
|
987
1000
|
originalActionId?: string | undefined;
|
988
1001
|
keepAssignment?: boolean | undefined;
|
989
1002
|
}>;
|