@opencrvs/toolkit 1.8.0-rc.fca3e39 → 1.8.0-rc.fd31705
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 +6677 -14353
- package/dist/commons/conditionals/conditionals.d.ts +25 -3
- package/dist/commons/conditionals/validate.d.ts +12 -11
- package/dist/commons/events/ActionConfig.d.ts +1123 -2056
- package/dist/commons/events/ActionDocument.d.ts +7441 -347
- package/dist/commons/events/ActionInput.d.ts +2085 -438
- package/dist/commons/events/ActionType.d.ts +24 -16
- package/dist/commons/events/Conditional.d.ts +21 -5
- package/dist/commons/events/Draft.d.ts +61 -49
- package/dist/commons/events/EventConfig.d.ts +551 -1206
- package/dist/commons/events/EventConfigInput.d.ts +6 -3
- package/dist/commons/events/EventDocument.d.ts +845 -454
- package/dist/commons/events/EventIndex.d.ts +6 -3
- package/dist/commons/events/EventMetadata.d.ts +3 -0
- package/dist/commons/events/FieldConfig.d.ts +465 -73
- package/dist/commons/events/FieldType.d.ts +2 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +23 -2
- package/dist/commons/events/FieldValue.d.ts +6 -4
- package/dist/commons/events/FormConfig.d.ts +633 -48
- package/dist/commons/events/PageConfig.d.ts +335 -0
- package/dist/commons/events/TemplateConfig.d.ts +2 -2
- package/dist/commons/events/defineConfig.d.ts +91 -216
- package/dist/commons/events/index.d.ts +2 -1
- package/dist/commons/events/test.utils.d.ts +69 -286
- package/dist/commons/events/utils.d.ts +81 -83
- package/dist/conditionals/index.js +161 -93
- package/dist/events/index.js +1169 -756
- package/package.json +1 -1
@@ -1,29 +1,37 @@
|
|
1
|
+
import { z } from 'zod';
|
1
2
|
/**
|
2
3
|
* Actions recognized by the system
|
3
4
|
*/
|
4
5
|
export declare const ActionType: {
|
6
|
+
readonly DELETE: "DELETE";
|
5
7
|
readonly CREATE: "CREATE";
|
6
|
-
readonly ASSIGN: "ASSIGN";
|
7
|
-
readonly UNASSIGN: "UNASSIGN";
|
8
|
-
readonly REGISTER: "REGISTER";
|
9
|
-
readonly VALIDATE: "VALIDATE";
|
10
|
-
readonly REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
11
|
-
readonly REJECT_CORRECTION: "REJECT_CORRECTION";
|
12
|
-
readonly APPROVE_CORRECTION: "APPROVE_CORRECTION";
|
13
|
-
readonly DETECT_DUPLICATE: "DETECT_DUPLICATE";
|
14
8
|
readonly NOTIFY: "NOTIFY";
|
15
9
|
readonly DECLARE: "DECLARE";
|
16
|
-
readonly
|
17
|
-
readonly
|
18
|
-
readonly
|
10
|
+
readonly VALIDATE: "VALIDATE";
|
11
|
+
readonly REGISTER: "REGISTER";
|
12
|
+
readonly DETECT_DUPLICATE: "DETECT_DUPLICATE";
|
19
13
|
readonly REJECT: "REJECT";
|
20
14
|
readonly MARKED_AS_DUPLICATE: "MARKED_AS_DUPLICATE";
|
21
15
|
readonly ARCHIVE: "ARCHIVE";
|
16
|
+
readonly PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
17
|
+
readonly REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
18
|
+
readonly REJECT_CORRECTION: "REJECT_CORRECTION";
|
19
|
+
readonly APPROVE_CORRECTION: "APPROVE_CORRECTION";
|
20
|
+
readonly READ: "READ";
|
21
|
+
readonly ASSIGN: "ASSIGN";
|
22
|
+
readonly UNASSIGN: "UNASSIGN";
|
22
23
|
};
|
23
|
-
/**
|
24
|
-
* Actions that can be attached to an event document
|
25
|
-
* even if they are not in event configuration
|
26
|
-
*/
|
27
|
-
export declare const LatentActions: ("REJECT" | "ARCHIVE")[];
|
28
24
|
export type ActionType = (typeof ActionType)[keyof typeof ActionType];
|
25
|
+
export declare const ConfirmableActions: readonly ["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"];
|
26
|
+
/** Testing building types from enums as an alternative */
|
27
|
+
export declare const ActionTypes: 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"]>;
|
28
|
+
/** Actions which change event data (declaration) before registration / during declaration. */
|
29
|
+
export declare const DeclarationActions: z.ZodEnum<["DECLARE", "VALIDATE", "REGISTER"]>;
|
30
|
+
export type DeclarationActionType = z.infer<typeof DeclarationActions>;
|
31
|
+
/** Actions that can modify declaration data. Request can be corrected after declaring it. */
|
32
|
+
export declare const DeclarationUpdateActions: z.ZodEnum<["DECLARE", "VALIDATE", "REGISTER", "REQUEST_CORRECTION"]>;
|
33
|
+
export type DeclarationUpdateActionType = z.infer<typeof DeclarationUpdateActions>;
|
34
|
+
/** Actions which update annotation or status of an event. */
|
35
|
+
export declare const annotationActions: z.ZodEnum<["DELETE", "CREATE", "NOTIFY", "DETECT_DUPLICATE", "REJECT", "MARKED_AS_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION", "READ", "ASSIGN", "UNASSIGN"]>;
|
36
|
+
export type AnnotationActionType = z.infer<typeof annotationActions>;
|
29
37
|
//# sourceMappingURL=ActionType.d.ts.map
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import { JSONSchema } from '../conditionals/conditionals';
|
2
2
|
import { z } from 'zod';
|
3
|
-
export declare
|
3
|
+
export declare const Conditional: z.ZodType<JSONSchema, z.ZodTypeDef, JSONSchema>;
|
4
4
|
/**
|
5
5
|
* By default, when conditionals are undefined, action is visible and enabled to everyone.
|
6
6
|
*/
|
7
7
|
export declare const ConditionalType: {
|
8
|
-
/** When 'SHOW' conditional is defined, the action is shown to the user only if the condition is met */
|
9
8
|
readonly SHOW: "SHOW";
|
10
|
-
/** If 'ENABLE' conditional is defined, the action is enabled only if the condition is met */
|
11
9
|
readonly ENABLE: "ENABLE";
|
10
|
+
readonly DISPLAY_ON_REVIEW: "DISPLAY_ON_REVIEW";
|
12
11
|
};
|
12
|
+
export type ConditionalType = (typeof ConditionalType)[keyof typeof ConditionalType];
|
13
13
|
export declare const ShowConditional: z.ZodObject<{
|
14
14
|
type: z.ZodLiteral<"SHOW">;
|
15
15
|
conditional: z.ZodType<JSONSchema, z.ZodTypeDef, JSONSchema>;
|
@@ -31,9 +31,25 @@ export declare const EnableConditional: z.ZodObject<{
|
|
31
31
|
conditional: JSONSchema;
|
32
32
|
}>;
|
33
33
|
/** @knipignore */
|
34
|
-
export type
|
34
|
+
export type ActionConditionalType = typeof ShowConditional | typeof EnableConditional;
|
35
35
|
/** @knipignore */
|
36
36
|
export type InferredActionConditional = z.infer<typeof ShowConditional> | z.infer<typeof EnableConditional>;
|
37
|
-
export declare const ActionConditional: z.ZodDiscriminatedUnion<"type",
|
37
|
+
export declare const ActionConditional: z.ZodDiscriminatedUnion<"type", ActionConditionalType[]>;
|
38
38
|
export type ActionConditional = InferredActionConditional;
|
39
|
+
export declare const DisplayOnReviewConditional: z.ZodObject<{
|
40
|
+
type: z.ZodLiteral<"DISPLAY_ON_REVIEW">;
|
41
|
+
conditional: z.ZodType<JSONSchema, z.ZodTypeDef, JSONSchema>;
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
43
|
+
type: "DISPLAY_ON_REVIEW";
|
44
|
+
conditional: JSONSchema;
|
45
|
+
}, {
|
46
|
+
type: "DISPLAY_ON_REVIEW";
|
47
|
+
conditional: JSONSchema;
|
48
|
+
}>;
|
49
|
+
/** @knipignore */
|
50
|
+
export type FieldConditionalType = typeof ShowConditional | typeof EnableConditional | typeof DisplayOnReviewConditional;
|
51
|
+
/** @knipignore */
|
52
|
+
export type InferredFieldConditional = z.infer<typeof ShowConditional> | z.infer<typeof EnableConditional> | z.infer<typeof DisplayOnReviewConditional>;
|
53
|
+
export declare const FieldConditional: z.ZodDiscriminatedUnion<"type", FieldConditionalType[]>;
|
54
|
+
export type FieldConditional = z.infer<typeof FieldConditional>;
|
39
55
|
//# sourceMappingURL=Conditional.d.ts.map
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
import { ActionType } from './ActionType';
|
3
2
|
export declare const Draft: z.ZodObject<{
|
4
3
|
id: z.ZodString;
|
5
4
|
eventId: z.ZodString;
|
@@ -9,7 +8,7 @@ export declare const Draft: z.ZodObject<{
|
|
9
8
|
id: z.ZodString;
|
10
9
|
createdAt: z.ZodString;
|
11
10
|
createdBy: z.ZodString;
|
12
|
-
|
11
|
+
declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
13
12
|
filename: z.ZodString;
|
14
13
|
originalFilename: z.ZodString;
|
15
14
|
type: z.ZodString;
|
@@ -92,7 +91,7 @@ export declare const Draft: z.ZodObject<{
|
|
92
91
|
province: string;
|
93
92
|
urbanOrRural: "RURAL";
|
94
93
|
village?: string | null | undefined;
|
95
|
-
}>, z.ZodObject<{
|
94
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
96
95
|
country: z.ZodString;
|
97
96
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
98
97
|
state: z.ZodString;
|
@@ -123,7 +122,7 @@ export declare const Draft: z.ZodObject<{
|
|
123
122
|
addressLine3?: string | null | undefined;
|
124
123
|
postcodeOrZip?: string | null | undefined;
|
125
124
|
}>]>>;
|
126
|
-
|
125
|
+
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
127
126
|
filename: z.ZodString;
|
128
127
|
originalFilename: z.ZodString;
|
129
128
|
type: z.ZodString;
|
@@ -206,7 +205,7 @@ export declare const Draft: z.ZodObject<{
|
|
206
205
|
province: string;
|
207
206
|
urbanOrRural: "RURAL";
|
208
207
|
village?: string | null | undefined;
|
209
|
-
}>, z.ZodObject<{
|
208
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
210
209
|
country: z.ZodString;
|
211
210
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
212
211
|
state: z.ZodString;
|
@@ -238,11 +237,16 @@ export declare const Draft: z.ZodObject<{
|
|
238
237
|
postcodeOrZip?: string | null | undefined;
|
239
238
|
}>]>>>;
|
240
239
|
createdAtLocation: z.ZodString;
|
240
|
+
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
241
|
+
originalActionId: z.ZodOptional<z.ZodString>;
|
241
242
|
}, {
|
242
|
-
type: z.ZodEnum<[
|
243
|
+
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"]>;
|
243
244
|
}>, "id">, "strip", z.ZodTypeAny, {
|
244
|
-
type:
|
245
|
-
|
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";
|
246
|
+
status: "Rejected" | "Requested" | "Accepted";
|
247
|
+
createdAt: string;
|
248
|
+
createdBy: string;
|
249
|
+
declaration: Record<string, string | number | boolean | {
|
246
250
|
type: string;
|
247
251
|
filename: string;
|
248
252
|
originalFilename: string;
|
@@ -279,11 +283,9 @@ export declare const Draft: z.ZodObject<{
|
|
279
283
|
option: string;
|
280
284
|
filename: string;
|
281
285
|
originalFilename: string;
|
282
|
-
}[]>;
|
283
|
-
createdAt: string;
|
284
|
-
createdBy: string;
|
286
|
+
}[] | undefined>;
|
285
287
|
createdAtLocation: string;
|
286
|
-
|
288
|
+
annotation?: Record<string, string | number | boolean | {
|
287
289
|
type: string;
|
288
290
|
filename: string;
|
289
291
|
originalFilename: string;
|
@@ -320,10 +322,14 @@ export declare const Draft: z.ZodObject<{
|
|
320
322
|
option: string;
|
321
323
|
filename: string;
|
322
324
|
originalFilename: string;
|
323
|
-
}[]> | undefined;
|
325
|
+
}[] | undefined> | undefined;
|
326
|
+
originalActionId?: string | undefined;
|
324
327
|
}, {
|
325
|
-
type:
|
326
|
-
|
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";
|
329
|
+
status: "Rejected" | "Requested" | "Accepted";
|
330
|
+
createdAt: string;
|
331
|
+
createdBy: string;
|
332
|
+
declaration: Record<string, string | number | boolean | {
|
327
333
|
type: string;
|
328
334
|
filename: string;
|
329
335
|
originalFilename: string;
|
@@ -360,11 +366,9 @@ export declare const Draft: z.ZodObject<{
|
|
360
366
|
option: string;
|
361
367
|
filename: string;
|
362
368
|
originalFilename: string;
|
363
|
-
}[]>;
|
364
|
-
createdAt: string;
|
365
|
-
createdBy: string;
|
369
|
+
}[] | undefined>;
|
366
370
|
createdAtLocation: string;
|
367
|
-
|
371
|
+
annotation?: Record<string, string | number | boolean | {
|
368
372
|
type: string;
|
369
373
|
filename: string;
|
370
374
|
originalFilename: string;
|
@@ -401,7 +405,8 @@ export declare const Draft: z.ZodObject<{
|
|
401
405
|
option: string;
|
402
406
|
filename: string;
|
403
407
|
originalFilename: string;
|
404
|
-
}[]> | undefined;
|
408
|
+
}[] | undefined> | undefined;
|
409
|
+
originalActionId?: string | undefined;
|
405
410
|
}>;
|
406
411
|
}, "strip", z.ZodTypeAny, {
|
407
412
|
id: string;
|
@@ -409,8 +414,11 @@ export declare const Draft: z.ZodObject<{
|
|
409
414
|
eventId: string;
|
410
415
|
transactionId: string;
|
411
416
|
action: {
|
412
|
-
type:
|
413
|
-
|
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";
|
418
|
+
status: "Rejected" | "Requested" | "Accepted";
|
419
|
+
createdAt: string;
|
420
|
+
createdBy: string;
|
421
|
+
declaration: Record<string, string | number | boolean | {
|
414
422
|
type: string;
|
415
423
|
filename: string;
|
416
424
|
originalFilename: string;
|
@@ -447,11 +455,9 @@ export declare const Draft: z.ZodObject<{
|
|
447
455
|
option: string;
|
448
456
|
filename: string;
|
449
457
|
originalFilename: string;
|
450
|
-
}[]>;
|
451
|
-
createdAt: string;
|
452
|
-
createdBy: string;
|
458
|
+
}[] | undefined>;
|
453
459
|
createdAtLocation: string;
|
454
|
-
|
460
|
+
annotation?: Record<string, string | number | boolean | {
|
455
461
|
type: string;
|
456
462
|
filename: string;
|
457
463
|
originalFilename: string;
|
@@ -488,7 +494,8 @@ export declare const Draft: z.ZodObject<{
|
|
488
494
|
option: string;
|
489
495
|
filename: string;
|
490
496
|
originalFilename: string;
|
491
|
-
}[]> | undefined;
|
497
|
+
}[] | undefined> | undefined;
|
498
|
+
originalActionId?: string | undefined;
|
492
499
|
};
|
493
500
|
}, {
|
494
501
|
id: string;
|
@@ -496,8 +503,11 @@ export declare const Draft: z.ZodObject<{
|
|
496
503
|
eventId: string;
|
497
504
|
transactionId: string;
|
498
505
|
action: {
|
499
|
-
type:
|
500
|
-
|
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";
|
507
|
+
status: "Rejected" | "Requested" | "Accepted";
|
508
|
+
createdAt: string;
|
509
|
+
createdBy: string;
|
510
|
+
declaration: Record<string, string | number | boolean | {
|
501
511
|
type: string;
|
502
512
|
filename: string;
|
503
513
|
originalFilename: string;
|
@@ -534,11 +544,9 @@ export declare const Draft: z.ZodObject<{
|
|
534
544
|
option: string;
|
535
545
|
filename: string;
|
536
546
|
originalFilename: string;
|
537
|
-
}[]>;
|
538
|
-
createdAt: string;
|
539
|
-
createdBy: string;
|
547
|
+
}[] | undefined>;
|
540
548
|
createdAtLocation: string;
|
541
|
-
|
549
|
+
annotation?: Record<string, string | number | boolean | {
|
542
550
|
type: string;
|
543
551
|
filename: string;
|
544
552
|
originalFilename: string;
|
@@ -575,13 +583,14 @@ export declare const Draft: z.ZodObject<{
|
|
575
583
|
option: string;
|
576
584
|
filename: string;
|
577
585
|
originalFilename: string;
|
578
|
-
}[]> | undefined;
|
586
|
+
}[] | undefined> | undefined;
|
587
|
+
originalActionId?: string | undefined;
|
579
588
|
};
|
580
589
|
}>;
|
581
590
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
582
591
|
eventId: z.ZodString;
|
583
592
|
transactionId: z.ZodString;
|
584
|
-
|
593
|
+
declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
585
594
|
filename: z.ZodString;
|
586
595
|
originalFilename: z.ZodString;
|
587
596
|
type: z.ZodString;
|
@@ -664,7 +673,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
664
673
|
province: string;
|
665
674
|
urbanOrRural: "RURAL";
|
666
675
|
village?: string | null | undefined;
|
667
|
-
}>, z.ZodObject<{
|
676
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
668
677
|
country: z.ZodString;
|
669
678
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
670
679
|
state: z.ZodString;
|
@@ -695,7 +704,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
695
704
|
addressLine3?: string | null | undefined;
|
696
705
|
postcodeOrZip?: string | null | undefined;
|
697
706
|
}>]>>;
|
698
|
-
|
707
|
+
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
699
708
|
filename: z.ZodString;
|
700
709
|
originalFilename: z.ZodString;
|
701
710
|
type: z.ZodString;
|
@@ -778,7 +787,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
778
787
|
province: string;
|
779
788
|
urbanOrRural: "RURAL";
|
780
789
|
village?: string | null | undefined;
|
781
|
-
}>, z.ZodObject<{
|
790
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
782
791
|
country: z.ZodString;
|
783
792
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
784
793
|
state: z.ZodString;
|
@@ -809,11 +818,12 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
809
818
|
addressLine3?: string | null | undefined;
|
810
819
|
postcodeOrZip?: string | null | undefined;
|
811
820
|
}>]>>>;
|
821
|
+
originalActionId: z.ZodOptional<z.ZodString>;
|
812
822
|
}, {
|
813
|
-
type: z.ZodEnum<[
|
823
|
+
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"]>;
|
814
824
|
}>, "strip", z.ZodTypeAny, {
|
815
|
-
type:
|
816
|
-
|
825
|
+
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";
|
826
|
+
declaration: Record<string, string | number | boolean | {
|
817
827
|
type: string;
|
818
828
|
filename: string;
|
819
829
|
originalFilename: string;
|
@@ -850,10 +860,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
850
860
|
option: string;
|
851
861
|
filename: string;
|
852
862
|
originalFilename: string;
|
853
|
-
}[]>;
|
863
|
+
}[] | undefined>;
|
854
864
|
eventId: string;
|
855
865
|
transactionId: string;
|
856
|
-
|
866
|
+
annotation?: Record<string, string | number | boolean | {
|
857
867
|
type: string;
|
858
868
|
filename: string;
|
859
869
|
originalFilename: string;
|
@@ -890,10 +900,11 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
890
900
|
option: string;
|
891
901
|
filename: string;
|
892
902
|
originalFilename: string;
|
893
|
-
}[]> | undefined;
|
903
|
+
}[] | undefined> | undefined;
|
904
|
+
originalActionId?: string | undefined;
|
894
905
|
}, {
|
895
|
-
type:
|
896
|
-
|
906
|
+
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";
|
907
|
+
declaration: Record<string, string | number | boolean | {
|
897
908
|
type: string;
|
898
909
|
filename: string;
|
899
910
|
originalFilename: string;
|
@@ -930,10 +941,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
930
941
|
option: string;
|
931
942
|
filename: string;
|
932
943
|
originalFilename: string;
|
933
|
-
}[]>;
|
944
|
+
}[] | undefined>;
|
934
945
|
eventId: string;
|
935
946
|
transactionId: string;
|
936
|
-
|
947
|
+
annotation?: Record<string, string | number | boolean | {
|
937
948
|
type: string;
|
938
949
|
filename: string;
|
939
950
|
originalFilename: string;
|
@@ -970,7 +981,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
970
981
|
option: string;
|
971
982
|
filename: string;
|
972
983
|
originalFilename: string;
|
973
|
-
}[]> | undefined;
|
984
|
+
}[] | undefined> | undefined;
|
985
|
+
originalActionId?: string | undefined;
|
974
986
|
}>;
|
975
987
|
export type Draft = z.infer<typeof Draft>;
|
976
988
|
export type DraftInput = z.infer<typeof DraftInput>;
|