@opencrvs/toolkit 1.8.0-rc.f8a9481 → 1.8.0-rc.f8b1f33
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 +4013 -322
- package/dist/commons/conditionals/validate.d.ts +6 -4
- package/dist/commons/events/ActionDocument.d.ts +6 -212
- package/dist/commons/events/ActionInput.d.ts +60 -68
- package/dist/commons/events/CompositeFieldValue.d.ts +0 -3
- package/dist/commons/events/Draft.d.ts +4 -14
- package/dist/commons/events/EventConfig.d.ts +68 -153
- package/dist/commons/events/EventDocument.d.ts +4 -163
- package/dist/commons/events/EventIndex.d.ts +0 -6
- package/dist/commons/events/EventMetadata.d.ts +0 -6
- package/dist/commons/events/FieldConfig.d.ts +10 -51
- package/dist/commons/events/SummaryConfig.d.ts +7 -93
- package/dist/commons/events/User.d.ts +0 -5
- package/dist/commons/events/WorkqueueConfig.d.ts +20 -44
- package/dist/commons/events/defineConfig.d.ts +8 -13
- package/dist/commons/events/index.d.ts +0 -1
- package/dist/commons/events/utils.d.ts +3 -3
- package/dist/events/index.js +514 -652
- package/dist/scopes/index.d.ts +70 -1
- package/dist/scopes/index.js +130 -0
- package/package.json +1 -1
- package/dist/commons/events/scopes.d.ts +0 -25
@@ -14,9 +14,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
14
14
|
}>;
|
15
15
|
createdAt: z.ZodString;
|
16
16
|
createdBy: z.ZodString;
|
17
|
-
updatedByUserRole: z.ZodString;
|
18
17
|
createdAtLocation: z.ZodString;
|
19
|
-
updatedAtLocation: z.ZodString;
|
20
18
|
modifiedAt: z.ZodString;
|
21
19
|
assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
22
20
|
updatedBy: z.ZodString;
|
@@ -32,9 +30,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
32
30
|
createdBy: string;
|
33
31
|
declaration: Record<string, any>;
|
34
32
|
createdAtLocation: string;
|
35
|
-
updatedAtLocation: string;
|
36
33
|
trackingId: string;
|
37
|
-
updatedByUserRole: string;
|
38
34
|
modifiedAt: string;
|
39
35
|
updatedBy: string;
|
40
36
|
assignedTo?: string | null | undefined;
|
@@ -47,9 +43,7 @@ export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
|
|
47
43
|
createdBy: string;
|
48
44
|
declaration: Record<string, any>;
|
49
45
|
createdAtLocation: string;
|
50
|
-
updatedAtLocation: string;
|
51
46
|
trackingId: string;
|
52
|
-
updatedByUserRole: string;
|
53
47
|
modifiedAt: string;
|
54
48
|
updatedBy: string;
|
55
49
|
assignedTo?: string | null | undefined;
|
@@ -45,9 +45,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
45
45
|
}>;
|
46
46
|
createdAt: z.ZodString;
|
47
47
|
createdBy: z.ZodString;
|
48
|
-
updatedByUserRole: z.ZodString;
|
49
48
|
createdAtLocation: z.ZodString;
|
50
|
-
updatedAtLocation: z.ZodString;
|
51
49
|
modifiedAt: z.ZodString;
|
52
50
|
assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
53
51
|
updatedBy: z.ZodString;
|
@@ -60,9 +58,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
60
58
|
createdAt: string;
|
61
59
|
createdBy: string;
|
62
60
|
createdAtLocation: string;
|
63
|
-
updatedAtLocation: string;
|
64
61
|
trackingId: string;
|
65
|
-
updatedByUserRole: string;
|
66
62
|
modifiedAt: string;
|
67
63
|
updatedBy: string;
|
68
64
|
assignedTo?: string | null | undefined;
|
@@ -74,9 +70,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
74
70
|
createdAt: string;
|
75
71
|
createdBy: string;
|
76
72
|
createdAtLocation: string;
|
77
|
-
updatedAtLocation: string;
|
78
73
|
trackingId: string;
|
79
|
-
updatedByUserRole: string;
|
80
74
|
modifiedAt: string;
|
81
75
|
updatedBy: string;
|
82
76
|
assignedTo?: string | null | undefined;
|
@@ -1564,29 +1564,18 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
1564
1564
|
}, {
|
1565
1565
|
width?: "full" | "auto" | undefined;
|
1566
1566
|
}>>;
|
1567
|
-
fileName: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
1568
|
-
id: string;
|
1569
|
-
description: string;
|
1570
|
-
defaultMessage: string;
|
1571
|
-
}>>;
|
1572
1567
|
}, "strip", z.ZodTypeAny, {
|
1573
1568
|
maxFileSize: number;
|
1574
1569
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
1575
1570
|
style?: {
|
1576
1571
|
width?: "full" | "auto" | undefined;
|
1577
1572
|
} | undefined;
|
1578
|
-
fileName?: TranslationConfig | undefined;
|
1579
1573
|
}, {
|
1580
1574
|
maxFileSize?: number | undefined;
|
1581
1575
|
acceptedFileTypes?: ("image/png" | "image/jpg" | "image/jpeg" | "image/svg+xml")[] | undefined;
|
1582
1576
|
style?: {
|
1583
1577
|
width?: "full" | "auto" | undefined;
|
1584
1578
|
} | undefined;
|
1585
|
-
fileName?: {
|
1586
|
-
id: string;
|
1587
|
-
description: string;
|
1588
|
-
defaultMessage: string;
|
1589
|
-
} | undefined;
|
1590
1579
|
}>>;
|
1591
1580
|
}>, "strip", z.ZodTypeAny, {
|
1592
1581
|
type: "FILE";
|
@@ -1598,7 +1587,6 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
1598
1587
|
style?: {
|
1599
1588
|
width?: "full" | "auto" | undefined;
|
1600
1589
|
} | undefined;
|
1601
|
-
fileName?: TranslationConfig | undefined;
|
1602
1590
|
};
|
1603
1591
|
validation?: {
|
1604
1592
|
message: TranslationConfig;
|
@@ -1670,11 +1658,6 @@ declare const File: z.ZodObject<z.objectUtil.extendShape<{
|
|
1670
1658
|
style?: {
|
1671
1659
|
width?: "full" | "auto" | undefined;
|
1672
1660
|
} | undefined;
|
1673
|
-
fileName?: {
|
1674
|
-
id: string;
|
1675
|
-
description: string;
|
1676
|
-
defaultMessage: string;
|
1677
|
-
} | undefined;
|
1678
1661
|
} | undefined;
|
1679
1662
|
}>;
|
1680
1663
|
export type File = z.infer<typeof File>;
|
@@ -3436,20 +3419,12 @@ export declare const DataEntry: z.ZodUnion<[z.ZodObject<{
|
|
3436
3419
|
description: string;
|
3437
3420
|
defaultMessage: string;
|
3438
3421
|
}>;
|
3439
|
-
value: z.
|
3440
|
-
id: string;
|
3441
|
-
description: string;
|
3442
|
-
defaultMessage: string;
|
3443
|
-
}>, z.ZodString]>;
|
3422
|
+
value: z.ZodString;
|
3444
3423
|
}, "strip", z.ZodTypeAny, {
|
3445
|
-
value: string
|
3424
|
+
value: string;
|
3446
3425
|
label: TranslationConfig;
|
3447
3426
|
}, {
|
3448
|
-
value: string
|
3449
|
-
id: string;
|
3450
|
-
description: string;
|
3451
|
-
defaultMessage: string;
|
3452
|
-
};
|
3427
|
+
value: string;
|
3453
3428
|
label: {
|
3454
3429
|
id: string;
|
3455
3430
|
description: string;
|
@@ -3523,20 +3498,12 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
|
|
3523
3498
|
description: string;
|
3524
3499
|
defaultMessage: string;
|
3525
3500
|
}>;
|
3526
|
-
value: z.
|
3527
|
-
id: string;
|
3528
|
-
description: string;
|
3529
|
-
defaultMessage: string;
|
3530
|
-
}>, z.ZodString]>;
|
3501
|
+
value: z.ZodString;
|
3531
3502
|
}, "strip", z.ZodTypeAny, {
|
3532
|
-
value: string
|
3503
|
+
value: string;
|
3533
3504
|
label: TranslationConfig;
|
3534
3505
|
}, {
|
3535
|
-
value: string
|
3536
|
-
id: string;
|
3537
|
-
description: string;
|
3538
|
-
defaultMessage: string;
|
3539
|
-
};
|
3506
|
+
value: string;
|
3540
3507
|
label: {
|
3541
3508
|
id: string;
|
3542
3509
|
description: string;
|
@@ -3551,7 +3518,7 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
|
|
3551
3518
|
}>]>, "many">;
|
3552
3519
|
}, "strip", z.ZodTypeAny, {
|
3553
3520
|
data: ({
|
3554
|
-
value: string
|
3521
|
+
value: string;
|
3555
3522
|
label: TranslationConfig;
|
3556
3523
|
} | {
|
3557
3524
|
fieldId: string;
|
@@ -3559,11 +3526,7 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
|
|
3559
3526
|
subtitle?: TranslationConfig | undefined;
|
3560
3527
|
}, {
|
3561
3528
|
data: ({
|
3562
|
-
value: string
|
3563
|
-
id: string;
|
3564
|
-
description: string;
|
3565
|
-
defaultMessage: string;
|
3566
|
-
};
|
3529
|
+
value: string;
|
3567
3530
|
label: {
|
3568
3531
|
id: string;
|
3569
3532
|
description: string;
|
@@ -3584,7 +3547,7 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
|
|
3584
3547
|
label: TranslationConfig;
|
3585
3548
|
configuration: {
|
3586
3549
|
data: ({
|
3587
|
-
value: string
|
3550
|
+
value: string;
|
3588
3551
|
label: TranslationConfig;
|
3589
3552
|
} | {
|
3590
3553
|
fieldId: string;
|
@@ -3625,11 +3588,7 @@ declare const DataField: z.ZodObject<z.objectUtil.extendShape<{
|
|
3625
3588
|
};
|
3626
3589
|
configuration: {
|
3627
3590
|
data: ({
|
3628
|
-
value: string
|
3629
|
-
id: string;
|
3630
|
-
description: string;
|
3631
|
-
defaultMessage: string;
|
3632
|
-
};
|
3591
|
+
value: string;
|
3633
3592
|
label: {
|
3634
3593
|
id: string;
|
3635
3594
|
description: string;
|
@@ -30,23 +30,7 @@ export declare const SummaryConfig: z.ZodObject<{
|
|
30
30
|
defaultMessage: string;
|
31
31
|
} | undefined;
|
32
32
|
}>;
|
33
|
-
fields: z.ZodArray<z.
|
34
|
-
emptyValueMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
35
|
-
id: string;
|
36
|
-
description: string;
|
37
|
-
defaultMessage: string;
|
38
|
-
}>>;
|
39
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
40
|
-
type: z.ZodLiteral<"SHOW">;
|
41
|
-
conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
42
|
-
}, "strip", z.ZodTypeAny, {
|
43
|
-
type: "SHOW";
|
44
|
-
conditional: import(".").JSONSchema;
|
45
|
-
}, {
|
46
|
-
type: "SHOW";
|
47
|
-
conditional: import(".").JSONSchema;
|
48
|
-
}>, "many">>>;
|
49
|
-
}, {
|
33
|
+
fields: z.ZodArray<z.ZodObject<{
|
50
34
|
id: z.ZodString;
|
51
35
|
value: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
52
36
|
id: string;
|
@@ -63,14 +47,10 @@ export declare const SummaryConfig: z.ZodObject<{
|
|
63
47
|
description: string;
|
64
48
|
defaultMessage: string;
|
65
49
|
}>>;
|
66
|
-
}
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
67
51
|
id: string;
|
68
52
|
value: TranslationConfig;
|
69
53
|
label: TranslationConfig;
|
70
|
-
conditionals?: {
|
71
|
-
type: "SHOW";
|
72
|
-
conditional: import(".").JSONSchema;
|
73
|
-
}[] | undefined;
|
74
54
|
emptyValueMessage?: TranslationConfig | undefined;
|
75
55
|
}, {
|
76
56
|
id: string;
|
@@ -84,75 +64,24 @@ export declare const SummaryConfig: z.ZodObject<{
|
|
84
64
|
description: string;
|
85
65
|
defaultMessage: string;
|
86
66
|
};
|
87
|
-
conditionals?: {
|
88
|
-
type: "SHOW";
|
89
|
-
conditional: import(".").JSONSchema;
|
90
|
-
}[] | undefined;
|
91
|
-
emptyValueMessage?: {
|
92
|
-
id: string;
|
93
|
-
description: string;
|
94
|
-
defaultMessage: string;
|
95
|
-
} | undefined;
|
96
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
97
|
-
emptyValueMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
98
|
-
id: string;
|
99
|
-
description: string;
|
100
|
-
defaultMessage: string;
|
101
|
-
}>>;
|
102
|
-
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
103
|
-
type: z.ZodLiteral<"SHOW">;
|
104
|
-
conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
105
|
-
}, "strip", z.ZodTypeAny, {
|
106
|
-
type: "SHOW";
|
107
|
-
conditional: import(".").JSONSchema;
|
108
|
-
}, {
|
109
|
-
type: "SHOW";
|
110
|
-
conditional: import(".").JSONSchema;
|
111
|
-
}>, "many">>>;
|
112
|
-
}, {
|
113
|
-
fieldId: z.ZodString;
|
114
|
-
}>, "strip", z.ZodTypeAny, {
|
115
|
-
fieldId: string;
|
116
|
-
conditionals?: {
|
117
|
-
type: "SHOW";
|
118
|
-
conditional: import(".").JSONSchema;
|
119
|
-
}[] | undefined;
|
120
|
-
emptyValueMessage?: TranslationConfig | undefined;
|
121
|
-
}, {
|
122
|
-
fieldId: string;
|
123
|
-
conditionals?: {
|
124
|
-
type: "SHOW";
|
125
|
-
conditional: import(".").JSONSchema;
|
126
|
-
}[] | undefined;
|
127
67
|
emptyValueMessage?: {
|
128
68
|
id: string;
|
129
69
|
description: string;
|
130
70
|
defaultMessage: string;
|
131
71
|
} | undefined;
|
132
|
-
}
|
72
|
+
}>, "many">;
|
133
73
|
}, "strip", z.ZodTypeAny, {
|
134
74
|
title: {
|
135
75
|
id: string;
|
136
76
|
label: TranslationConfig;
|
137
77
|
emptyValueMessage?: TranslationConfig | undefined;
|
138
78
|
};
|
139
|
-
fields:
|
140
|
-
fieldId: string;
|
141
|
-
conditionals?: {
|
142
|
-
type: "SHOW";
|
143
|
-
conditional: import(".").JSONSchema;
|
144
|
-
}[] | undefined;
|
145
|
-
emptyValueMessage?: TranslationConfig | undefined;
|
146
|
-
} | {
|
79
|
+
fields: {
|
147
80
|
id: string;
|
148
81
|
value: TranslationConfig;
|
149
82
|
label: TranslationConfig;
|
150
|
-
conditionals?: {
|
151
|
-
type: "SHOW";
|
152
|
-
conditional: import(".").JSONSchema;
|
153
|
-
}[] | undefined;
|
154
83
|
emptyValueMessage?: TranslationConfig | undefined;
|
155
|
-
}
|
84
|
+
}[];
|
156
85
|
}, {
|
157
86
|
title: {
|
158
87
|
id: string;
|
@@ -167,18 +96,7 @@ export declare const SummaryConfig: z.ZodObject<{
|
|
167
96
|
defaultMessage: string;
|
168
97
|
} | undefined;
|
169
98
|
};
|
170
|
-
fields:
|
171
|
-
fieldId: string;
|
172
|
-
conditionals?: {
|
173
|
-
type: "SHOW";
|
174
|
-
conditional: import(".").JSONSchema;
|
175
|
-
}[] | undefined;
|
176
|
-
emptyValueMessage?: {
|
177
|
-
id: string;
|
178
|
-
description: string;
|
179
|
-
defaultMessage: string;
|
180
|
-
} | undefined;
|
181
|
-
} | {
|
99
|
+
fields: {
|
182
100
|
id: string;
|
183
101
|
value: {
|
184
102
|
id: string;
|
@@ -190,16 +108,12 @@ export declare const SummaryConfig: z.ZodObject<{
|
|
190
108
|
description: string;
|
191
109
|
defaultMessage: string;
|
192
110
|
};
|
193
|
-
conditionals?: {
|
194
|
-
type: "SHOW";
|
195
|
-
conditional: import(".").JSONSchema;
|
196
|
-
}[] | undefined;
|
197
111
|
emptyValueMessage?: {
|
198
112
|
id: string;
|
199
113
|
description: string;
|
200
114
|
defaultMessage: string;
|
201
115
|
} | undefined;
|
202
|
-
}
|
116
|
+
}[];
|
203
117
|
}>;
|
204
118
|
export type SummaryConfig = z.infer<typeof SummaryConfig>;
|
205
119
|
//# sourceMappingURL=SummaryConfig.d.ts.map
|
@@ -6,10 +6,5 @@ export type User = {
|
|
6
6
|
family: string;
|
7
7
|
}[];
|
8
8
|
role: string;
|
9
|
-
/**
|
10
|
-
* The filename of the user's signature stored in MinIO, ex: 'a552f64a-31c4-4e78-b44f-292c3179e2ef.png'.
|
11
|
-
* This is used to retrieve the signature file from storage.
|
12
|
-
*/
|
13
|
-
signatureFilename?: string;
|
14
9
|
};
|
15
10
|
//# sourceMappingURL=User.d.ts.map
|
@@ -1,60 +1,36 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
import { TranslationConfig } from './TranslationConfig';
|
3
2
|
/**
|
4
3
|
* Configuration for workqueue. Workqueues are used to display a list of events.
|
5
4
|
*/
|
6
5
|
export declare const WorkqueueConfig: z.ZodObject<{
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
type: z.ZodString;
|
20
|
-
conditionals: z.ZodOptional<z.ZodArray<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>, "many">>;
|
6
|
+
id: z.ZodString;
|
7
|
+
filters: z.ZodArray<z.ZodObject<{
|
8
|
+
status: z.ZodArray<z.ZodNativeEnum<{
|
9
|
+
readonly CREATED: "CREATED";
|
10
|
+
readonly NOTIFIED: "NOTIFIED";
|
11
|
+
readonly DECLARED: "DECLARED";
|
12
|
+
readonly VALIDATED: "VALIDATED";
|
13
|
+
readonly REGISTERED: "REGISTERED";
|
14
|
+
readonly CERTIFIED: "CERTIFIED";
|
15
|
+
readonly REJECTED: "REJECTED";
|
16
|
+
readonly ARCHIVED: "ARCHIVED";
|
17
|
+
}>, "many">;
|
21
18
|
}, "strip", z.ZodTypeAny, {
|
22
|
-
|
23
|
-
conditionals?: import(".").JSONSchema[] | undefined;
|
19
|
+
status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
24
20
|
}, {
|
25
|
-
|
26
|
-
conditionals?: import(".").JSONSchema[] | undefined;
|
21
|
+
status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
27
22
|
}>, "many">;
|
28
23
|
}, "strip", z.ZodTypeAny, {
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
conditionals?: import(".").JSONSchema[] | undefined;
|
24
|
+
id: string;
|
25
|
+
filters: {
|
26
|
+
status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
33
27
|
}[];
|
34
|
-
query: string;
|
35
|
-
slug: string;
|
36
28
|
}, {
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
defaultMessage: string;
|
41
|
-
};
|
42
|
-
actions: {
|
43
|
-
type: string;
|
44
|
-
conditionals?: import(".").JSONSchema[] | undefined;
|
29
|
+
id: string;
|
30
|
+
filters: {
|
31
|
+
status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
45
32
|
}[];
|
46
|
-
query: string;
|
47
|
-
slug: string;
|
48
33
|
}>;
|
49
34
|
export type WorkqueueConfig = z.infer<typeof WorkqueueConfig>;
|
50
35
|
export type WorkqueueConfigInput = z.input<typeof WorkqueueConfig>;
|
51
|
-
export declare function defineWorkqueue(workqueues: WorkqueueConfigInput[]): {
|
52
|
-
name: TranslationConfig;
|
53
|
-
actions: {
|
54
|
-
type: string;
|
55
|
-
conditionals?: import(".").JSONSchema[] | undefined;
|
56
|
-
}[];
|
57
|
-
query: string;
|
58
|
-
slug: string;
|
59
|
-
}[];
|
60
36
|
//# sourceMappingURL=WorkqueueConfig.d.ts.map
|
@@ -234,24 +234,19 @@ export declare const defineConfig: (config: EventConfigInput) => {
|
|
234
234
|
label: import("./TranslationConfig").TranslationConfig;
|
235
235
|
emptyValueMessage?: import("./TranslationConfig").TranslationConfig | undefined;
|
236
236
|
};
|
237
|
-
fields:
|
238
|
-
fieldId: string;
|
239
|
-
conditionals?: {
|
240
|
-
type: "SHOW";
|
241
|
-
conditional: import(".").JSONSchema;
|
242
|
-
}[] | undefined;
|
243
|
-
emptyValueMessage?: import("./TranslationConfig").TranslationConfig | undefined;
|
244
|
-
} | {
|
237
|
+
fields: {
|
245
238
|
id: string;
|
246
239
|
value: import("./TranslationConfig").TranslationConfig;
|
247
240
|
label: import("./TranslationConfig").TranslationConfig;
|
248
|
-
conditionals?: {
|
249
|
-
type: "SHOW";
|
250
|
-
conditional: import(".").JSONSchema;
|
251
|
-
}[] | undefined;
|
252
241
|
emptyValueMessage?: import("./TranslationConfig").TranslationConfig | undefined;
|
253
|
-
}
|
242
|
+
}[];
|
254
243
|
};
|
244
|
+
workqueues: {
|
245
|
+
id: string;
|
246
|
+
filters: {
|
247
|
+
status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
248
|
+
}[];
|
249
|
+
}[];
|
255
250
|
deduplication: {
|
256
251
|
id: string;
|
257
252
|
label: import("./TranslationConfig").TranslationConfig;
|
@@ -30,7 +30,6 @@ export * from './Conditional';
|
|
30
30
|
export * from './AdvancedSearchConfig';
|
31
31
|
export * from './test.utils';
|
32
32
|
export * from './TemplateConfig';
|
33
|
-
export * from './scopes';
|
34
33
|
export * from '../conditionals/conditionals';
|
35
34
|
export * from '../conditionals/validate';
|
36
35
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { ActionType, DeclarationActionType } from './ActionType';
|
2
2
|
import { EventConfig } from './EventConfig';
|
3
3
|
import { FieldConfig } from './FieldConfig';
|
4
|
+
import { WorkqueueConfig } from './WorkqueueConfig';
|
4
5
|
import { Action, ActionUpdate, EventState } from './ActionDocument';
|
5
6
|
import { PageConfig, VerificationPageConfig } from './PageConfig';
|
6
7
|
import { Draft } from './Draft';
|
@@ -40,6 +41,7 @@ export declare function getActionReview(configuration: EventConfig, actionType:
|
|
40
41
|
fields: import("./FieldConfig").Inferred[];
|
41
42
|
};
|
42
43
|
export declare function getActionReviewFields(configuration: EventConfig, actionType: DeclarationActionType): import("./FieldConfig").Inferred[];
|
44
|
+
export declare function validateWorkqueueConfig(workqueueConfigs: WorkqueueConfig[]): void;
|
43
45
|
export declare function isPageVisible(page: PageConfig, formValues: ActionUpdate): boolean;
|
44
46
|
export declare function omitHiddenFields(fields: FieldConfig[], values: EventState): import("lodash").Dictionary<string | number | boolean | {
|
45
47
|
type: string;
|
@@ -119,16 +121,14 @@ export declare function omitHiddenPaginatedFields(formConfig: FormConfig, declar
|
|
119
121
|
}[] | undefined>;
|
120
122
|
export declare function findActiveDrafts(event: EventDocument, drafts: Draft[]): {
|
121
123
|
id: string;
|
122
|
-
transactionId: string;
|
123
124
|
createdAt: string;
|
124
125
|
eventId: string;
|
126
|
+
transactionId: string;
|
125
127
|
action: {
|
126
128
|
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";
|
127
129
|
status: "Rejected" | "Requested" | "Accepted";
|
128
|
-
transactionId: string;
|
129
130
|
createdAt: string;
|
130
131
|
createdBy: string;
|
131
|
-
createdByRole: string;
|
132
132
|
declaration: Record<string, string | number | boolean | {
|
133
133
|
type: string;
|
134
134
|
filename: string;
|