@opencrvs/toolkit 1.8.0-rc.feef45c → 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 +679 -332
- package/dist/commons/events/ActionConfig.d.ts +4879 -1232
- package/dist/commons/events/ActionDocument.d.ts +433 -413
- package/dist/commons/events/ActionInput.d.ts +180 -180
- package/dist/commons/events/AdvancedSearchConfig.d.ts +34 -36
- package/dist/commons/events/Draft.d.ts +24 -26
- package/dist/commons/events/EventConfig.d.ts +2711 -967
- package/dist/commons/events/EventDocument.d.ts +241 -312
- package/dist/commons/events/EventIndex.d.ts +817 -279
- package/dist/commons/events/EventMetadata.d.ts +263 -11
- package/dist/commons/events/FieldConfig.d.ts +267 -3
- package/dist/commons/events/FieldType.d.ts +3 -2
- package/dist/commons/events/FieldTypeMapping.d.ts +11 -4
- package/dist/commons/events/FieldValue.d.ts +6 -3
- package/dist/commons/events/FormConfig.d.ts +2279 -629
- package/dist/commons/events/PageConfig.d.ts +406 -0
- package/dist/commons/events/SummaryConfig.d.ts +17 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +1222 -8
- package/dist/commons/events/defineConfig.d.ts +283 -2
- package/dist/commons/events/event.d.ts +3 -1
- package/dist/commons/events/field.d.ts +3 -3
- package/dist/commons/events/test.utils.d.ts +7 -7
- package/dist/commons/events/utils.d.ts +193 -21
- package/dist/events/index.js +1141 -774
- package/dist/scopes/index.d.ts +70 -1
- package/dist/scopes/index.js +130 -0
- package/package.json +1 -1
@@ -1,14 +1,12 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
import { TranslationConfig } from './TranslationConfig';
|
3
|
-
export declare const MatchType: z.ZodEnum<["FUZZY", "EXACT", "RANGE", "ANY_OF"]>;
|
4
|
-
export type MatchType = z.infer<typeof MatchType>;
|
5
3
|
export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
6
4
|
config: z.ZodObject<{
|
7
|
-
type: z.ZodEnum<["
|
5
|
+
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
8
6
|
}, "strip", z.ZodTypeAny, {
|
9
|
-
type: "
|
7
|
+
type: "exact" | "fuzzy" | "range";
|
10
8
|
}, {
|
11
|
-
type: "
|
9
|
+
type: "exact" | "fuzzy" | "range";
|
12
10
|
}>;
|
13
11
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
14
12
|
value: z.ZodString;
|
@@ -33,7 +31,7 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
33
31
|
fieldType: z.ZodLiteral<"field">;
|
34
32
|
}>, "strip", z.ZodTypeAny, {
|
35
33
|
config: {
|
36
|
-
type: "
|
34
|
+
type: "exact" | "fuzzy" | "range";
|
37
35
|
};
|
38
36
|
fieldId: string;
|
39
37
|
fieldType: "field";
|
@@ -43,7 +41,7 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
43
41
|
}[] | undefined;
|
44
42
|
}, {
|
45
43
|
config: {
|
46
|
-
type: "
|
44
|
+
type: "exact" | "fuzzy" | "range";
|
47
45
|
};
|
48
46
|
fieldId: string;
|
49
47
|
fieldType: "field";
|
@@ -60,11 +58,11 @@ export declare const EventFieldId: z.ZodEnum<["trackingId", "status"]>;
|
|
60
58
|
export type EventFieldId = z.infer<typeof EventFieldId>;
|
61
59
|
export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
62
60
|
config: z.ZodObject<{
|
63
|
-
type: z.ZodEnum<["
|
61
|
+
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
64
62
|
}, "strip", z.ZodTypeAny, {
|
65
|
-
type: "
|
63
|
+
type: "exact" | "fuzzy" | "range";
|
66
64
|
}, {
|
67
|
-
type: "
|
65
|
+
type: "exact" | "fuzzy" | "range";
|
68
66
|
}>;
|
69
67
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
70
68
|
value: z.ZodString;
|
@@ -89,7 +87,7 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
|
|
89
87
|
fieldType: z.ZodLiteral<"event">;
|
90
88
|
}>, "strip", z.ZodTypeAny, {
|
91
89
|
config: {
|
92
|
-
type: "
|
90
|
+
type: "exact" | "fuzzy" | "range";
|
93
91
|
};
|
94
92
|
fieldId: "status" | "trackingId";
|
95
93
|
fieldType: "event";
|
@@ -99,7 +97,7 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
|
|
99
97
|
}[] | undefined;
|
100
98
|
}, {
|
101
99
|
config: {
|
102
|
-
type: "
|
100
|
+
type: "exact" | "fuzzy" | "range";
|
103
101
|
};
|
104
102
|
fieldId: "status" | "trackingId";
|
105
103
|
fieldType: "event";
|
@@ -114,11 +112,11 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
|
|
114
112
|
}>;
|
115
113
|
export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
|
116
114
|
config: z.ZodObject<{
|
117
|
-
type: z.ZodEnum<["
|
115
|
+
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
118
116
|
}, "strip", z.ZodTypeAny, {
|
119
|
-
type: "
|
117
|
+
type: "exact" | "fuzzy" | "range";
|
120
118
|
}, {
|
121
|
-
type: "
|
119
|
+
type: "exact" | "fuzzy" | "range";
|
122
120
|
}>;
|
123
121
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
124
122
|
value: z.ZodString;
|
@@ -143,7 +141,7 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
143
141
|
fieldType: z.ZodLiteral<"field">;
|
144
142
|
}>, "strip", z.ZodTypeAny, {
|
145
143
|
config: {
|
146
|
-
type: "
|
144
|
+
type: "exact" | "fuzzy" | "range";
|
147
145
|
};
|
148
146
|
fieldId: string;
|
149
147
|
fieldType: "field";
|
@@ -153,7 +151,7 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
153
151
|
}[] | undefined;
|
154
152
|
}, {
|
155
153
|
config: {
|
156
|
-
type: "
|
154
|
+
type: "exact" | "fuzzy" | "range";
|
157
155
|
};
|
158
156
|
fieldId: string;
|
159
157
|
fieldType: "field";
|
@@ -167,11 +165,11 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
167
165
|
}[] | undefined;
|
168
166
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
169
167
|
config: z.ZodObject<{
|
170
|
-
type: z.ZodEnum<["
|
168
|
+
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
171
169
|
}, "strip", z.ZodTypeAny, {
|
172
|
-
type: "
|
170
|
+
type: "exact" | "fuzzy" | "range";
|
173
171
|
}, {
|
174
|
-
type: "
|
172
|
+
type: "exact" | "fuzzy" | "range";
|
175
173
|
}>;
|
176
174
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
177
175
|
value: z.ZodString;
|
@@ -196,7 +194,7 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
196
194
|
fieldType: z.ZodLiteral<"event">;
|
197
195
|
}>, "strip", z.ZodTypeAny, {
|
198
196
|
config: {
|
199
|
-
type: "
|
197
|
+
type: "exact" | "fuzzy" | "range";
|
200
198
|
};
|
201
199
|
fieldId: "status" | "trackingId";
|
202
200
|
fieldType: "event";
|
@@ -206,7 +204,7 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
206
204
|
}[] | undefined;
|
207
205
|
}, {
|
208
206
|
config: {
|
209
|
-
type: "
|
207
|
+
type: "exact" | "fuzzy" | "range";
|
210
208
|
};
|
211
209
|
fieldId: "status" | "trackingId";
|
212
210
|
fieldType: "event";
|
@@ -228,11 +226,11 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
228
226
|
}>;
|
229
227
|
fields: z.ZodArray<z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
|
230
228
|
config: z.ZodObject<{
|
231
|
-
type: z.ZodEnum<["
|
229
|
+
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
232
230
|
}, "strip", z.ZodTypeAny, {
|
233
|
-
type: "
|
231
|
+
type: "exact" | "fuzzy" | "range";
|
234
232
|
}, {
|
235
|
-
type: "
|
233
|
+
type: "exact" | "fuzzy" | "range";
|
236
234
|
}>;
|
237
235
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
238
236
|
value: z.ZodString;
|
@@ -257,7 +255,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
257
255
|
fieldType: z.ZodLiteral<"field">;
|
258
256
|
}>, "strip", z.ZodTypeAny, {
|
259
257
|
config: {
|
260
|
-
type: "
|
258
|
+
type: "exact" | "fuzzy" | "range";
|
261
259
|
};
|
262
260
|
fieldId: string;
|
263
261
|
fieldType: "field";
|
@@ -267,7 +265,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
267
265
|
}[] | undefined;
|
268
266
|
}, {
|
269
267
|
config: {
|
270
|
-
type: "
|
268
|
+
type: "exact" | "fuzzy" | "range";
|
271
269
|
};
|
272
270
|
fieldId: string;
|
273
271
|
fieldType: "field";
|
@@ -281,11 +279,11 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
281
279
|
}[] | undefined;
|
282
280
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
283
281
|
config: z.ZodObject<{
|
284
|
-
type: z.ZodEnum<["
|
282
|
+
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
285
283
|
}, "strip", z.ZodTypeAny, {
|
286
|
-
type: "
|
284
|
+
type: "exact" | "fuzzy" | "range";
|
287
285
|
}, {
|
288
|
-
type: "
|
286
|
+
type: "exact" | "fuzzy" | "range";
|
289
287
|
}>;
|
290
288
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
291
289
|
value: z.ZodString;
|
@@ -310,7 +308,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
310
308
|
fieldType: z.ZodLiteral<"event">;
|
311
309
|
}>, "strip", z.ZodTypeAny, {
|
312
310
|
config: {
|
313
|
-
type: "
|
311
|
+
type: "exact" | "fuzzy" | "range";
|
314
312
|
};
|
315
313
|
fieldId: "status" | "trackingId";
|
316
314
|
fieldType: "event";
|
@@ -320,7 +318,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
320
318
|
}[] | undefined;
|
321
319
|
}, {
|
322
320
|
config: {
|
323
|
-
type: "
|
321
|
+
type: "exact" | "fuzzy" | "range";
|
324
322
|
};
|
325
323
|
fieldId: "status" | "trackingId";
|
326
324
|
fieldType: "event";
|
@@ -337,7 +335,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
337
335
|
title: TranslationConfig;
|
338
336
|
fields: ({
|
339
337
|
config: {
|
340
|
-
type: "
|
338
|
+
type: "exact" | "fuzzy" | "range";
|
341
339
|
};
|
342
340
|
fieldId: string;
|
343
341
|
fieldType: "field";
|
@@ -347,7 +345,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
347
345
|
}[] | undefined;
|
348
346
|
} | {
|
349
347
|
config: {
|
350
|
-
type: "
|
348
|
+
type: "exact" | "fuzzy" | "range";
|
351
349
|
};
|
352
350
|
fieldId: "status" | "trackingId";
|
353
351
|
fieldType: "event";
|
@@ -364,7 +362,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
364
362
|
};
|
365
363
|
fields: ({
|
366
364
|
config: {
|
367
|
-
type: "
|
365
|
+
type: "exact" | "fuzzy" | "range";
|
368
366
|
};
|
369
367
|
fieldId: string;
|
370
368
|
fieldType: "field";
|
@@ -378,7 +376,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
378
376
|
}[] | undefined;
|
379
377
|
} | {
|
380
378
|
config: {
|
381
|
-
type: "
|
379
|
+
type: "exact" | "fuzzy" | "range";
|
382
380
|
};
|
383
381
|
fieldId: "status" | "trackingId";
|
384
382
|
fieldType: "event";
|
@@ -10,7 +10,7 @@ export declare const Draft: z.ZodObject<{
|
|
10
10
|
createdAt: z.ZodString;
|
11
11
|
createdBy: z.ZodString;
|
12
12
|
createdByRole: z.ZodString;
|
13
|
-
declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
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<{
|
14
14
|
filename: z.ZodString;
|
15
15
|
originalFilename: z.ZodString;
|
16
16
|
type: z.ZodString;
|
@@ -124,7 +124,7 @@ export declare const Draft: z.ZodObject<{
|
|
124
124
|
addressLine3?: string | null | undefined;
|
125
125
|
postcodeOrZip?: string | null | undefined;
|
126
126
|
}>]>>;
|
127
|
-
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<{
|
128
128
|
filename: z.ZodString;
|
129
129
|
originalFilename: z.ZodString;
|
130
130
|
type: z.ZodString;
|
@@ -238,8 +238,7 @@ export declare const Draft: z.ZodObject<{
|
|
238
238
|
addressLine3?: string | null | undefined;
|
239
239
|
postcodeOrZip?: string | null | undefined;
|
240
240
|
}>]>>>;
|
241
|
-
createdAtLocation: z.
|
242
|
-
updatedAtLocation: z.ZodOptional<z.ZodString>;
|
241
|
+
createdAtLocation: z.ZodString;
|
243
242
|
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
244
243
|
originalActionId: z.ZodOptional<z.ZodString>;
|
245
244
|
}, {
|
@@ -288,7 +287,8 @@ export declare const Draft: z.ZodObject<{
|
|
288
287
|
option: string;
|
289
288
|
filename: string;
|
290
289
|
originalFilename: string;
|
291
|
-
}[] | undefined>;
|
290
|
+
}[] | [string, string] | undefined>;
|
291
|
+
createdAtLocation: string;
|
292
292
|
annotation?: Record<string, string | number | boolean | {
|
293
293
|
type: string;
|
294
294
|
filename: string;
|
@@ -326,9 +326,7 @@ export declare const Draft: z.ZodObject<{
|
|
326
326
|
option: string;
|
327
327
|
filename: string;
|
328
328
|
originalFilename: string;
|
329
|
-
}[] | undefined> | undefined;
|
330
|
-
createdAtLocation?: string | undefined;
|
331
|
-
updatedAtLocation?: string | undefined;
|
329
|
+
}[] | [string, string] | undefined> | undefined;
|
332
330
|
originalActionId?: string | undefined;
|
333
331
|
}, {
|
334
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";
|
@@ -374,7 +372,8 @@ export declare const Draft: z.ZodObject<{
|
|
374
372
|
option: string;
|
375
373
|
filename: string;
|
376
374
|
originalFilename: string;
|
377
|
-
}[] | undefined>;
|
375
|
+
}[] | [string, string] | undefined>;
|
376
|
+
createdAtLocation: string;
|
378
377
|
annotation?: Record<string, string | number | boolean | {
|
379
378
|
type: string;
|
380
379
|
filename: string;
|
@@ -412,9 +411,7 @@ export declare const Draft: z.ZodObject<{
|
|
412
411
|
option: string;
|
413
412
|
filename: string;
|
414
413
|
originalFilename: string;
|
415
|
-
}[] | undefined> | undefined;
|
416
|
-
createdAtLocation?: string | undefined;
|
417
|
-
updatedAtLocation?: string | undefined;
|
414
|
+
}[] | [string, string] | undefined> | undefined;
|
418
415
|
originalActionId?: string | undefined;
|
419
416
|
}>;
|
420
417
|
}, "strip", z.ZodTypeAny, {
|
@@ -466,7 +463,8 @@ export declare const Draft: z.ZodObject<{
|
|
466
463
|
option: string;
|
467
464
|
filename: string;
|
468
465
|
originalFilename: string;
|
469
|
-
}[] | undefined>;
|
466
|
+
}[] | [string, string] | undefined>;
|
467
|
+
createdAtLocation: string;
|
470
468
|
annotation?: Record<string, string | number | boolean | {
|
471
469
|
type: string;
|
472
470
|
filename: string;
|
@@ -504,9 +502,7 @@ export declare const Draft: z.ZodObject<{
|
|
504
502
|
option: string;
|
505
503
|
filename: string;
|
506
504
|
originalFilename: string;
|
507
|
-
}[] | undefined> | undefined;
|
508
|
-
createdAtLocation?: string | undefined;
|
509
|
-
updatedAtLocation?: string | undefined;
|
505
|
+
}[] | [string, string] | undefined> | undefined;
|
510
506
|
originalActionId?: string | undefined;
|
511
507
|
};
|
512
508
|
}, {
|
@@ -558,7 +554,8 @@ export declare const Draft: z.ZodObject<{
|
|
558
554
|
option: string;
|
559
555
|
filename: string;
|
560
556
|
originalFilename: string;
|
561
|
-
}[] | undefined>;
|
557
|
+
}[] | [string, string] | undefined>;
|
558
|
+
createdAtLocation: string;
|
562
559
|
annotation?: Record<string, string | number | boolean | {
|
563
560
|
type: string;
|
564
561
|
filename: string;
|
@@ -596,16 +593,14 @@ export declare const Draft: z.ZodObject<{
|
|
596
593
|
option: string;
|
597
594
|
filename: string;
|
598
595
|
originalFilename: string;
|
599
|
-
}[] | undefined> | undefined;
|
600
|
-
createdAtLocation?: string | undefined;
|
601
|
-
updatedAtLocation?: string | undefined;
|
596
|
+
}[] | [string, string] | undefined> | undefined;
|
602
597
|
originalActionId?: string | undefined;
|
603
598
|
};
|
604
599
|
}>;
|
605
600
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
606
601
|
eventId: z.ZodString;
|
607
602
|
transactionId: z.ZodString;
|
608
|
-
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<{
|
609
604
|
filename: z.ZodString;
|
610
605
|
originalFilename: z.ZodString;
|
611
606
|
type: z.ZodString;
|
@@ -719,7 +714,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
719
714
|
addressLine3?: string | null | undefined;
|
720
715
|
postcodeOrZip?: string | null | undefined;
|
721
716
|
}>]>>>;
|
722
|
-
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<{
|
723
718
|
filename: z.ZodString;
|
724
719
|
originalFilename: z.ZodString;
|
725
720
|
type: z.ZodString;
|
@@ -837,8 +832,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
837
832
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
838
833
|
}, {
|
839
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"]>;
|
840
836
|
}>, "strip", z.ZodTypeAny, {
|
841
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";
|
842
839
|
transactionId: string;
|
843
840
|
declaration: Record<string, string | number | boolean | {
|
844
841
|
type: string;
|
@@ -877,7 +874,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
877
874
|
option: string;
|
878
875
|
filename: string;
|
879
876
|
originalFilename: string;
|
880
|
-
}[] | undefined>;
|
877
|
+
}[] | [string, string] | undefined>;
|
881
878
|
eventId: string;
|
882
879
|
annotation?: Record<string, string | number | boolean | {
|
883
880
|
type: string;
|
@@ -916,11 +913,12 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
916
913
|
option: string;
|
917
914
|
filename: string;
|
918
915
|
originalFilename: string;
|
919
|
-
}[] | undefined> | undefined;
|
916
|
+
}[] | [string, string] | undefined> | undefined;
|
920
917
|
originalActionId?: string | undefined;
|
921
918
|
keepAssignment?: boolean | undefined;
|
922
919
|
}, {
|
923
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";
|
921
|
+
status: "Rejected" | "Requested" | "Accepted";
|
924
922
|
transactionId: string;
|
925
923
|
eventId: string;
|
926
924
|
declaration?: Record<string, string | number | boolean | {
|
@@ -960,7 +958,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
960
958
|
option: string;
|
961
959
|
filename: string;
|
962
960
|
originalFilename: string;
|
963
|
-
}[] | undefined> | undefined;
|
961
|
+
}[] | [string, string] | undefined> | undefined;
|
964
962
|
annotation?: Record<string, string | number | boolean | {
|
965
963
|
type: string;
|
966
964
|
filename: string;
|
@@ -998,7 +996,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
998
996
|
option: string;
|
999
997
|
filename: string;
|
1000
998
|
originalFilename: string;
|
1001
|
-
}[] | undefined> | undefined;
|
999
|
+
}[] | [string, string] | undefined> | undefined;
|
1002
1000
|
originalActionId?: string | undefined;
|
1003
1001
|
keepAssignment?: boolean | undefined;
|
1004
1002
|
}>;
|