@opencrvs/toolkit 1.8.0-rc.fca3e39 → 1.8.0-rc.fcd89ec
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 +12801 -14208
- package/dist/commons/conditionals/conditionals.d.ts +30 -5
- package/dist/commons/conditionals/validate.d.ts +12 -17
- package/dist/commons/events/ActionConfig.d.ts +96433 -2006
- package/dist/commons/events/ActionDocument.d.ts +7832 -401
- package/dist/commons/events/ActionInput.d.ts +2292 -547
- package/dist/commons/events/ActionType.d.ts +26 -16
- package/dist/commons/events/AdvancedSearchConfig.d.ts +957 -22
- package/dist/commons/events/CompositeFieldValue.d.ts +3 -0
- package/dist/commons/events/Conditional.d.ts +21 -5
- package/dist/commons/events/CreatedAtLocation.d.ts +3 -0
- package/dist/commons/events/Draft.d.ts +88 -60
- package/dist/commons/events/EventConfig.d.ts +46117 -1795
- package/dist/commons/events/EventConfigInput.d.ts +6 -3
- package/dist/commons/events/EventDocument.d.ts +1106 -529
- package/dist/commons/events/EventIndex.d.ts +1239 -13
- package/dist/commons/events/EventInput.d.ts +13 -0
- package/dist/commons/events/EventMetadata.d.ts +277 -11
- package/dist/commons/events/FieldConfig.d.ts +4704 -786
- package/dist/commons/events/FieldType.d.ts +4 -3
- package/dist/commons/events/FieldTypeMapping.d.ts +33 -5
- package/dist/commons/events/FieldValue.d.ts +12 -7
- package/dist/commons/events/FormConfig.d.ts +43810 -73
- package/dist/commons/events/PageConfig.d.ts +10991 -0
- package/dist/commons/events/SummaryConfig.d.ts +95 -39
- package/dist/commons/events/TemplateConfig.d.ts +5 -5
- package/dist/commons/events/User.d.ts +5 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +746 -20
- package/dist/commons/events/defineConfig.d.ts +7282 -224
- package/dist/commons/events/event.d.ts +54 -0
- package/dist/commons/events/field.d.ts +82 -0
- package/dist/commons/events/index.d.ts +5 -1
- package/dist/commons/events/scopes.d.ts +45 -0
- package/dist/commons/events/test.utils.d.ts +71 -325
- package/dist/commons/events/utils.d.ts +3700 -96
- package/dist/commons/events/utils.test.d.ts +2 -0
- package/dist/conditionals/index.js +191 -120
- package/dist/events/index.js +2905 -1344
- package/dist/scopes/index.d.ts +158 -1
- package/dist/scopes/index.js +152 -1
- package/package.json +3 -2
@@ -117,6 +117,7 @@ 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>;
|
120
121
|
export declare const RuralAddressUpdateValue: z.ZodObject<z.objectUtil.extendShape<{
|
121
122
|
country: z.ZodString;
|
122
123
|
addressType: z.ZodLiteral<"DOMESTIC">;
|
@@ -140,6 +141,7 @@ export declare const RuralAddressUpdateValue: z.ZodObject<z.objectUtil.extendSha
|
|
140
141
|
urbanOrRural: "RURAL";
|
141
142
|
village?: string | null | undefined;
|
142
143
|
}>;
|
144
|
+
export type RuralAddressUpdateValue = z.infer<typeof RuralAddressUpdateValue>;
|
143
145
|
export declare const GenericAddressValue: z.ZodObject<{
|
144
146
|
country: z.ZodString;
|
145
147
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
@@ -289,6 +291,7 @@ export declare const GenericAddressUpdateValue: z.ZodObject<{
|
|
289
291
|
addressLine3?: string | null | undefined;
|
290
292
|
postcodeOrZip?: string | null | undefined;
|
291
293
|
}>;
|
294
|
+
export type GenericAddressUpdateValue = z.infer<typeof GenericAddressUpdateValue>;
|
292
295
|
export declare const AddressFieldUpdateValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
|
293
296
|
country: z.ZodString;
|
294
297
|
addressType: z.ZodLiteral<"DOMESTIC">;
|
@@ -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;
|
@@ -7,9 +6,12 @@ export declare const Draft: z.ZodObject<{
|
|
7
6
|
createdAt: z.ZodString;
|
8
7
|
action: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
9
8
|
id: z.ZodString;
|
9
|
+
transactionId: z.ZodString;
|
10
10
|
createdAt: z.ZodString;
|
11
11
|
createdBy: z.ZodString;
|
12
|
-
|
12
|
+
createdByRole: z.ZodString;
|
13
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
14
|
+
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<{
|
13
15
|
filename: z.ZodString;
|
14
16
|
originalFilename: z.ZodString;
|
15
17
|
type: z.ZodString;
|
@@ -92,7 +94,7 @@ export declare const Draft: z.ZodObject<{
|
|
92
94
|
province: string;
|
93
95
|
urbanOrRural: "RURAL";
|
94
96
|
village?: string | null | undefined;
|
95
|
-
}>, z.ZodObject<{
|
97
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
96
98
|
country: z.ZodString;
|
97
99
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
98
100
|
state: z.ZodString;
|
@@ -123,7 +125,7 @@ export declare const Draft: z.ZodObject<{
|
|
123
125
|
addressLine3?: string | null | undefined;
|
124
126
|
postcodeOrZip?: string | null | undefined;
|
125
127
|
}>]>>;
|
126
|
-
|
128
|
+
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<{
|
127
129
|
filename: z.ZodString;
|
128
130
|
originalFilename: z.ZodString;
|
129
131
|
type: z.ZodString;
|
@@ -206,7 +208,7 @@ export declare const Draft: z.ZodObject<{
|
|
206
208
|
province: string;
|
207
209
|
urbanOrRural: "RURAL";
|
208
210
|
village?: string | null | undefined;
|
209
|
-
}>, z.ZodObject<{
|
211
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
210
212
|
country: z.ZodString;
|
211
213
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
212
214
|
state: z.ZodString;
|
@@ -237,12 +239,18 @@ export declare const Draft: z.ZodObject<{
|
|
237
239
|
addressLine3?: string | null | undefined;
|
238
240
|
postcodeOrZip?: string | null | undefined;
|
239
241
|
}>]>>>;
|
240
|
-
|
242
|
+
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
243
|
+
originalActionId: z.ZodOptional<z.ZodString>;
|
241
244
|
}, {
|
242
|
-
type: z.ZodEnum<[
|
245
|
+
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
246
|
}>, "id">, "strip", z.ZodTypeAny, {
|
244
|
-
type:
|
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";
|
248
|
+
status: "Rejected" | "Requested" | "Accepted";
|
249
|
+
transactionId: string;
|
250
|
+
createdAt: string;
|
251
|
+
createdBy: string;
|
252
|
+
createdByRole: string;
|
253
|
+
declaration: Record<string, string | number | boolean | {
|
246
254
|
type: string;
|
247
255
|
filename: string;
|
248
256
|
originalFilename: string;
|
@@ -279,11 +287,9 @@ export declare const Draft: z.ZodObject<{
|
|
279
287
|
option: string;
|
280
288
|
filename: string;
|
281
289
|
originalFilename: string;
|
282
|
-
}[]>;
|
283
|
-
|
284
|
-
|
285
|
-
createdAtLocation: string;
|
286
|
-
metadata?: Record<string, string | number | boolean | {
|
290
|
+
}[] | [string, string] | undefined>;
|
291
|
+
createdAtLocation?: string | null | undefined;
|
292
|
+
annotation?: Record<string, string | number | boolean | {
|
287
293
|
type: string;
|
288
294
|
filename: string;
|
289
295
|
originalFilename: string;
|
@@ -320,10 +326,16 @@ export declare const Draft: z.ZodObject<{
|
|
320
326
|
option: string;
|
321
327
|
filename: string;
|
322
328
|
originalFilename: string;
|
323
|
-
}[]> | undefined;
|
329
|
+
}[] | [string, string] | undefined> | undefined;
|
330
|
+
originalActionId?: string | undefined;
|
324
331
|
}, {
|
325
|
-
type:
|
326
|
-
|
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";
|
333
|
+
status: "Rejected" | "Requested" | "Accepted";
|
334
|
+
transactionId: string;
|
335
|
+
createdAt: string;
|
336
|
+
createdBy: string;
|
337
|
+
createdByRole: string;
|
338
|
+
declaration: Record<string, string | number | boolean | {
|
327
339
|
type: string;
|
328
340
|
filename: string;
|
329
341
|
originalFilename: string;
|
@@ -360,11 +372,9 @@ export declare const Draft: z.ZodObject<{
|
|
360
372
|
option: string;
|
361
373
|
filename: string;
|
362
374
|
originalFilename: string;
|
363
|
-
}[]>;
|
364
|
-
|
365
|
-
|
366
|
-
createdAtLocation: string;
|
367
|
-
metadata?: Record<string, string | number | boolean | {
|
375
|
+
}[] | [string, string] | undefined>;
|
376
|
+
createdAtLocation?: string | null | undefined;
|
377
|
+
annotation?: Record<string, string | number | boolean | {
|
368
378
|
type: string;
|
369
379
|
filename: string;
|
370
380
|
originalFilename: string;
|
@@ -401,16 +411,22 @@ export declare const Draft: z.ZodObject<{
|
|
401
411
|
option: string;
|
402
412
|
filename: string;
|
403
413
|
originalFilename: string;
|
404
|
-
}[]> | undefined;
|
414
|
+
}[] | [string, string] | undefined> | undefined;
|
415
|
+
originalActionId?: string | undefined;
|
405
416
|
}>;
|
406
417
|
}, "strip", z.ZodTypeAny, {
|
407
418
|
id: string;
|
419
|
+
transactionId: string;
|
408
420
|
createdAt: string;
|
409
421
|
eventId: string;
|
410
|
-
transactionId: string;
|
411
422
|
action: {
|
412
|
-
type:
|
413
|
-
|
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";
|
424
|
+
status: "Rejected" | "Requested" | "Accepted";
|
425
|
+
transactionId: string;
|
426
|
+
createdAt: string;
|
427
|
+
createdBy: string;
|
428
|
+
createdByRole: string;
|
429
|
+
declaration: Record<string, string | number | boolean | {
|
414
430
|
type: string;
|
415
431
|
filename: string;
|
416
432
|
originalFilename: string;
|
@@ -447,11 +463,9 @@ export declare const Draft: z.ZodObject<{
|
|
447
463
|
option: string;
|
448
464
|
filename: string;
|
449
465
|
originalFilename: string;
|
450
|
-
}[]>;
|
451
|
-
|
452
|
-
|
453
|
-
createdAtLocation: string;
|
454
|
-
metadata?: Record<string, string | number | boolean | {
|
466
|
+
}[] | [string, string] | undefined>;
|
467
|
+
createdAtLocation?: string | null | undefined;
|
468
|
+
annotation?: Record<string, string | number | boolean | {
|
455
469
|
type: string;
|
456
470
|
filename: string;
|
457
471
|
originalFilename: string;
|
@@ -488,16 +502,22 @@ export declare const Draft: z.ZodObject<{
|
|
488
502
|
option: string;
|
489
503
|
filename: string;
|
490
504
|
originalFilename: string;
|
491
|
-
}[]> | undefined;
|
505
|
+
}[] | [string, string] | undefined> | undefined;
|
506
|
+
originalActionId?: string | undefined;
|
492
507
|
};
|
493
508
|
}, {
|
494
509
|
id: string;
|
510
|
+
transactionId: string;
|
495
511
|
createdAt: string;
|
496
512
|
eventId: string;
|
497
|
-
transactionId: string;
|
498
513
|
action: {
|
499
|
-
type:
|
500
|
-
|
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";
|
515
|
+
status: "Rejected" | "Requested" | "Accepted";
|
516
|
+
transactionId: string;
|
517
|
+
createdAt: string;
|
518
|
+
createdBy: string;
|
519
|
+
createdByRole: string;
|
520
|
+
declaration: Record<string, string | number | boolean | {
|
501
521
|
type: string;
|
502
522
|
filename: string;
|
503
523
|
originalFilename: string;
|
@@ -534,11 +554,9 @@ export declare const Draft: z.ZodObject<{
|
|
534
554
|
option: string;
|
535
555
|
filename: string;
|
536
556
|
originalFilename: string;
|
537
|
-
}[]>;
|
538
|
-
|
539
|
-
|
540
|
-
createdAtLocation: string;
|
541
|
-
metadata?: Record<string, string | number | boolean | {
|
557
|
+
}[] | [string, string] | undefined>;
|
558
|
+
createdAtLocation?: string | null | undefined;
|
559
|
+
annotation?: Record<string, string | number | boolean | {
|
542
560
|
type: string;
|
543
561
|
filename: string;
|
544
562
|
originalFilename: string;
|
@@ -575,13 +593,14 @@ export declare const Draft: z.ZodObject<{
|
|
575
593
|
option: string;
|
576
594
|
filename: string;
|
577
595
|
originalFilename: string;
|
578
|
-
}[]> | undefined;
|
596
|
+
}[] | [string, string] | undefined> | undefined;
|
597
|
+
originalActionId?: string | undefined;
|
579
598
|
};
|
580
599
|
}>;
|
581
600
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
582
601
|
eventId: z.ZodString;
|
583
602
|
transactionId: z.ZodString;
|
584
|
-
|
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<{
|
585
604
|
filename: z.ZodString;
|
586
605
|
originalFilename: z.ZodString;
|
587
606
|
type: z.ZodString;
|
@@ -664,7 +683,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
664
683
|
province: string;
|
665
684
|
urbanOrRural: "RURAL";
|
666
685
|
village?: string | null | undefined;
|
667
|
-
}>, z.ZodObject<{
|
686
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
668
687
|
country: z.ZodString;
|
669
688
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
670
689
|
state: z.ZodString;
|
@@ -694,8 +713,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
694
713
|
addressLine2?: string | null | undefined;
|
695
714
|
addressLine3?: string | null | undefined;
|
696
715
|
postcodeOrZip?: string | null | undefined;
|
697
|
-
}>]
|
698
|
-
|
716
|
+
}>]>>>;
|
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<{
|
699
718
|
filename: z.ZodString;
|
700
719
|
originalFilename: z.ZodString;
|
701
720
|
type: z.ZodString;
|
@@ -778,7 +797,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
778
797
|
province: string;
|
779
798
|
urbanOrRural: "RURAL";
|
780
799
|
village?: string | null | undefined;
|
781
|
-
}>, z.ZodObject<{
|
800
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
782
801
|
country: z.ZodString;
|
783
802
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
784
803
|
state: z.ZodString;
|
@@ -809,11 +828,16 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
809
828
|
addressLine3?: string | null | undefined;
|
810
829
|
postcodeOrZip?: string | null | undefined;
|
811
830
|
}>]>>>;
|
831
|
+
originalActionId: z.ZodOptional<z.ZodString>;
|
832
|
+
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
812
833
|
}, {
|
813
|
-
type: z.ZodEnum<[
|
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"]>;
|
814
836
|
}>, "strip", z.ZodTypeAny, {
|
815
|
-
type:
|
816
|
-
|
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;
|
840
|
+
declaration: Record<string, string | number | boolean | {
|
817
841
|
type: string;
|
818
842
|
filename: string;
|
819
843
|
originalFilename: string;
|
@@ -850,10 +874,9 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
850
874
|
option: string;
|
851
875
|
filename: string;
|
852
876
|
originalFilename: string;
|
853
|
-
}[]>;
|
877
|
+
}[] | [string, string] | undefined>;
|
854
878
|
eventId: string;
|
855
|
-
|
856
|
-
metadata?: Record<string, string | number | boolean | {
|
879
|
+
annotation?: Record<string, string | number | boolean | {
|
857
880
|
type: string;
|
858
881
|
filename: string;
|
859
882
|
originalFilename: string;
|
@@ -890,10 +913,15 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
890
913
|
option: string;
|
891
914
|
filename: string;
|
892
915
|
originalFilename: string;
|
893
|
-
}[]> | undefined;
|
916
|
+
}[] | [string, string] | undefined> | undefined;
|
917
|
+
originalActionId?: string | undefined;
|
918
|
+
keepAssignment?: boolean | undefined;
|
894
919
|
}, {
|
895
|
-
type:
|
896
|
-
|
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";
|
922
|
+
transactionId: string;
|
923
|
+
eventId: string;
|
924
|
+
declaration?: Record<string, string | number | boolean | {
|
897
925
|
type: string;
|
898
926
|
filename: string;
|
899
927
|
originalFilename: string;
|
@@ -930,10 +958,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
930
958
|
option: string;
|
931
959
|
filename: string;
|
932
960
|
originalFilename: string;
|
933
|
-
}[]
|
934
|
-
|
935
|
-
transactionId: string;
|
936
|
-
metadata?: Record<string, string | number | boolean | {
|
961
|
+
}[] | [string, string] | undefined> | undefined;
|
962
|
+
annotation?: Record<string, string | number | boolean | {
|
937
963
|
type: string;
|
938
964
|
filename: string;
|
939
965
|
originalFilename: string;
|
@@ -970,7 +996,9 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
970
996
|
option: string;
|
971
997
|
filename: string;
|
972
998
|
originalFilename: string;
|
973
|
-
}[]> | undefined;
|
999
|
+
}[] | [string, string] | undefined> | undefined;
|
1000
|
+
originalActionId?: string | undefined;
|
1001
|
+
keepAssignment?: boolean | undefined;
|
974
1002
|
}>;
|
975
1003
|
export type Draft = z.infer<typeof Draft>;
|
976
1004
|
export type DraftInput = z.infer<typeof DraftInput>;
|