@opencrvs/toolkit 2.1.0-rc.6d019e4 → 2.1.0-rc.7051d1e
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/application-config/index.js +1 -2
- package/dist/commons/api/router.d.ts +1590 -1573
- package/dist/commons/application-config/index.d.ts +6 -6
- package/dist/commons/conditionals/conditionals.d.ts +2102 -259
- package/dist/commons/events/ActionConfig.d.ts +105 -105
- package/dist/commons/events/ActionDocument.d.ts +119 -119
- package/dist/commons/events/ActionInput.d.ts +6 -0
- package/dist/commons/events/ActionType.d.ts +62 -62
- package/dist/commons/events/AdvancedSearchConfig.d.ts +507 -507
- package/dist/commons/events/AuditLog.d.ts +43 -43
- package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
- package/dist/commons/events/Conditional.d.ts +3 -3
- package/dist/commons/events/CountryConfigQueryInput.d.ts +590 -590
- package/dist/commons/events/Draft.d.ts +37 -37
- package/dist/commons/events/DynamicFieldValue.d.ts +9 -9
- package/dist/commons/events/EventConfig.d.ts +5 -5
- package/dist/commons/events/EventDocument.d.ts +48 -48
- package/dist/commons/events/EventIndex.d.ts +62 -62
- package/dist/commons/events/EventMetadata.d.ts +40 -40
- package/dist/commons/events/FieldConfig.d.ts +337 -337
- package/dist/commons/events/FieldType.d.ts +51 -51
- package/dist/commons/events/FieldTypeMapping.d.ts +100 -100
- package/dist/commons/events/FieldValue.d.ts +12 -12
- package/dist/commons/events/Flag.d.ts +15 -15
- package/dist/commons/events/TemplateConfig.d.ts +1 -1
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +40 -40
- package/dist/commons/events/WorkqueueConfig.d.ts +820 -820
- package/dist/commons/events/deduplication.d.ts +1 -1
- package/dist/commons/events/event.d.ts +2 -2
- package/dist/commons/events/field.d.ts +895 -78
- package/dist/commons/events/locations.d.ts +6 -96
- package/dist/commons/events/mocks.test.utils.d.ts +4 -18
- package/dist/commons/events/scopes.d.ts +4 -4
- package/dist/commons/events/state/index.d.ts +17 -17
- package/dist/commons/events/state/utils.d.ts +7 -7
- package/dist/commons/events/test.utils.d.ts +43 -40
- package/dist/commons/events/utils.d.ts +114 -114
- package/dist/commons/notification/UserNotifications.d.ts +10 -10
- package/dist/environment/derived-variables.d.ts +119 -119
- package/dist/environment/derived-variables.d.ts.map +1 -1
- package/dist/environment/logger.d.ts.map +1 -1
- package/dist/environment/questions.d.ts +74 -75
- package/dist/environment/questions.d.ts.map +1 -1
- package/dist/environment/setup-environment.js +14 -8
- package/dist/environment/utils.d.ts +1 -1
- package/dist/events/deduplication.d.ts +1 -1
- package/dist/events/index.js +58 -62
- package/dist/migrations/v2.0/migrate-application-config-url.js +3 -4
- package/dist/notification/index.js +57 -48
- package/dist/scopes/index.d.ts +146 -146
- package/opencrvs-toolkit-2.1.0-rc.7051d1e.tgz +0 -0
- package/package.json +5 -5
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-2.1.0-rc.6d019e4.tgz +0 -0
|
@@ -65,6 +65,9 @@ export declare const EditActionInput: z.ZodObject<{
|
|
|
65
65
|
waitFor: z.ZodDefault<z.ZodBoolean>;
|
|
66
66
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
67
67
|
type: z.ZodDefault<z.ZodLiteral<"EDIT">>;
|
|
68
|
+
content: z.ZodObject<{
|
|
69
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
70
|
+
}, z.core.$strip>;
|
|
68
71
|
}, z.core.$strip>;
|
|
69
72
|
export type EditActionInput = z.infer<typeof EditActionInput>;
|
|
70
73
|
export declare const PrintCertificateActionInput: z.ZodObject<{
|
|
@@ -561,6 +564,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
561
564
|
waitFor: z.ZodDefault<z.ZodBoolean>;
|
|
562
565
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
563
566
|
type: z.ZodDefault<z.ZodLiteral<"EDIT">>;
|
|
567
|
+
content: z.ZodObject<{
|
|
568
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
569
|
+
}, z.core.$strip>;
|
|
564
570
|
}, z.core.$strip>], "type">;
|
|
565
571
|
export type ActionInput = z.input<typeof ActionInput>;
|
|
566
572
|
export type ActionInputWithType = z.infer<typeof ActionInput>;
|
|
@@ -3,50 +3,50 @@ import * as z from 'zod/v4';
|
|
|
3
3
|
* Actions recognized by the system
|
|
4
4
|
*/
|
|
5
5
|
export declare const ActionType: {
|
|
6
|
-
readonly DELETE:
|
|
7
|
-
readonly CREATE:
|
|
8
|
-
readonly NOTIFY:
|
|
9
|
-
readonly DECLARE:
|
|
10
|
-
readonly REGISTER:
|
|
11
|
-
readonly EDIT:
|
|
12
|
-
readonly DUPLICATE_DETECTED:
|
|
13
|
-
readonly REJECT:
|
|
14
|
-
readonly MARK_AS_DUPLICATE:
|
|
15
|
-
readonly MARK_AS_NOT_DUPLICATE:
|
|
16
|
-
readonly ARCHIVE:
|
|
17
|
-
readonly UNARCHIVE:
|
|
18
|
-
readonly PRINT_CERTIFICATE:
|
|
19
|
-
readonly REQUEST_CORRECTION:
|
|
20
|
-
readonly REJECT_CORRECTION:
|
|
21
|
-
readonly APPROVE_CORRECTION:
|
|
22
|
-
readonly READ:
|
|
23
|
-
readonly ASSIGN:
|
|
24
|
-
readonly UNASSIGN:
|
|
25
|
-
readonly CUSTOM:
|
|
6
|
+
readonly DELETE: "DELETE";
|
|
7
|
+
readonly CREATE: "CREATE";
|
|
8
|
+
readonly NOTIFY: "NOTIFY";
|
|
9
|
+
readonly DECLARE: "DECLARE";
|
|
10
|
+
readonly REGISTER: "REGISTER";
|
|
11
|
+
readonly EDIT: "EDIT";
|
|
12
|
+
readonly DUPLICATE_DETECTED: "DUPLICATE_DETECTED";
|
|
13
|
+
readonly REJECT: "REJECT";
|
|
14
|
+
readonly MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
|
|
15
|
+
readonly MARK_AS_NOT_DUPLICATE: "MARK_AS_NOT_DUPLICATE";
|
|
16
|
+
readonly ARCHIVE: "ARCHIVE";
|
|
17
|
+
readonly UNARCHIVE: "UNARCHIVE";
|
|
18
|
+
readonly PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
19
|
+
readonly REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
20
|
+
readonly REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
21
|
+
readonly APPROVE_CORRECTION: "APPROVE_CORRECTION";
|
|
22
|
+
readonly READ: "READ";
|
|
23
|
+
readonly ASSIGN: "ASSIGN";
|
|
24
|
+
readonly UNASSIGN: "UNASSIGN";
|
|
25
|
+
readonly CUSTOM: "CUSTOM";
|
|
26
26
|
};
|
|
27
27
|
export type ActionType = (typeof ActionType)[keyof typeof ActionType];
|
|
28
28
|
export declare const ConfirmableActions: readonly ["NOTIFY", "DECLARE", "EDIT", "REGISTER", "REJECT", "ARCHIVE", "UNARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "APPROVE_CORRECTION", "REJECT_CORRECTION", "CUSTOM"];
|
|
29
29
|
/** Testing building types from enums as an alternative */
|
|
30
30
|
export declare const ActionTypes: z.ZodEnum<{
|
|
31
|
-
APPROVE_CORRECTION: "APPROVE_CORRECTION";
|
|
32
|
-
ARCHIVE: "ARCHIVE";
|
|
33
|
-
ASSIGN: "ASSIGN";
|
|
34
|
-
CREATE: "CREATE";
|
|
35
31
|
CUSTOM: "CUSTOM";
|
|
36
|
-
DECLARE: "DECLARE";
|
|
37
32
|
DELETE: "DELETE";
|
|
38
|
-
|
|
33
|
+
CREATE: "CREATE";
|
|
34
|
+
NOTIFY: "NOTIFY";
|
|
35
|
+
DECLARE: "DECLARE";
|
|
36
|
+
REGISTER: "REGISTER";
|
|
39
37
|
EDIT: "EDIT";
|
|
38
|
+
DUPLICATE_DETECTED: "DUPLICATE_DETECTED";
|
|
39
|
+
REJECT: "REJECT";
|
|
40
40
|
MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
|
|
41
41
|
MARK_AS_NOT_DUPLICATE: "MARK_AS_NOT_DUPLICATE";
|
|
42
|
-
|
|
42
|
+
ARCHIVE: "ARCHIVE";
|
|
43
|
+
UNARCHIVE: "UNARCHIVE";
|
|
43
44
|
PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
44
|
-
READ: "READ";
|
|
45
|
-
REGISTER: "REGISTER";
|
|
46
|
-
REJECT: "REJECT";
|
|
47
|
-
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
48
45
|
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
49
|
-
|
|
46
|
+
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
47
|
+
APPROVE_CORRECTION: "APPROVE_CORRECTION";
|
|
48
|
+
READ: "READ";
|
|
49
|
+
ASSIGN: "ASSIGN";
|
|
50
50
|
UNASSIGN: "UNASSIGN";
|
|
51
51
|
}>;
|
|
52
52
|
export type ActionTypes = z.infer<typeof ActionTypes>;
|
|
@@ -54,79 +54,79 @@ export type ActionTypes = z.infer<typeof ActionTypes>;
|
|
|
54
54
|
* Non-persisted actions that are used in the client to control the UI.
|
|
55
55
|
*/
|
|
56
56
|
export declare const ClientSpecificAction: {
|
|
57
|
-
readonly REVIEW_CORRECTION_REQUEST:
|
|
57
|
+
readonly REVIEW_CORRECTION_REQUEST: "REVIEW_CORRECTION_REQUEST";
|
|
58
58
|
};
|
|
59
59
|
export type ClientSpecificAction = (typeof ClientSpecificAction)[keyof typeof ClientSpecificAction];
|
|
60
60
|
/** Actions which change event data (declaration) before registration / during declaration. */
|
|
61
61
|
export declare const DeclarationActions: z.ZodEnum<{
|
|
62
|
-
DECLARE: "DECLARE";
|
|
63
|
-
DUPLICATE_DETECTED: "DUPLICATE_DETECTED";
|
|
64
|
-
EDIT: "EDIT";
|
|
65
62
|
NOTIFY: "NOTIFY";
|
|
63
|
+
DECLARE: "DECLARE";
|
|
66
64
|
REGISTER: "REGISTER";
|
|
65
|
+
EDIT: "EDIT";
|
|
66
|
+
DUPLICATE_DETECTED: "DUPLICATE_DETECTED";
|
|
67
67
|
}>;
|
|
68
68
|
export type DeclarationActionType = z.infer<typeof DeclarationActions>;
|
|
69
69
|
/** Actions that can modify declaration data. Request can be corrected after declaring it. */
|
|
70
70
|
export declare const DeclarationUpdateActions: z.ZodEnum<{
|
|
71
|
-
DECLARE: "DECLARE";
|
|
72
|
-
DUPLICATE_DETECTED: "DUPLICATE_DETECTED";
|
|
73
|
-
EDIT: "EDIT";
|
|
74
71
|
NOTIFY: "NOTIFY";
|
|
72
|
+
DECLARE: "DECLARE";
|
|
75
73
|
REGISTER: "REGISTER";
|
|
74
|
+
EDIT: "EDIT";
|
|
75
|
+
DUPLICATE_DETECTED: "DUPLICATE_DETECTED";
|
|
76
76
|
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
77
77
|
}>;
|
|
78
78
|
export type DeclarationUpdateActionType = z.infer<typeof DeclarationUpdateActions>;
|
|
79
79
|
/** Actions which only update annotation or status of an event. */
|
|
80
80
|
export declare const annotationActions: z.ZodEnum<{
|
|
81
|
-
APPROVE_CORRECTION: "APPROVE_CORRECTION";
|
|
82
|
-
ARCHIVE: "ARCHIVE";
|
|
83
|
-
ASSIGN: "ASSIGN";
|
|
84
|
-
CREATE: "CREATE";
|
|
85
81
|
CUSTOM: "CUSTOM";
|
|
86
82
|
DELETE: "DELETE";
|
|
83
|
+
CREATE: "CREATE";
|
|
84
|
+
REJECT: "REJECT";
|
|
87
85
|
MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
|
|
88
86
|
MARK_AS_NOT_DUPLICATE: "MARK_AS_NOT_DUPLICATE";
|
|
87
|
+
ARCHIVE: "ARCHIVE";
|
|
88
|
+
UNARCHIVE: "UNARCHIVE";
|
|
89
89
|
PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
90
|
-
READ: "READ";
|
|
91
|
-
REJECT: "REJECT";
|
|
92
|
-
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
93
90
|
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
94
|
-
|
|
91
|
+
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
92
|
+
APPROVE_CORRECTION: "APPROVE_CORRECTION";
|
|
93
|
+
READ: "READ";
|
|
94
|
+
ASSIGN: "ASSIGN";
|
|
95
95
|
UNASSIGN: "UNASSIGN";
|
|
96
96
|
}>;
|
|
97
97
|
export type AnnotationActionType = z.infer<typeof annotationActions>;
|
|
98
98
|
/** Actions which requires the user to be assigned */
|
|
99
99
|
export declare const writeActions: z.ZodEnum<{
|
|
100
|
-
APPROVE_CORRECTION: "APPROVE_CORRECTION";
|
|
101
|
-
ARCHIVE: "ARCHIVE";
|
|
102
100
|
CUSTOM: "CUSTOM";
|
|
103
|
-
DECLARE: "DECLARE";
|
|
104
101
|
DELETE: "DELETE";
|
|
105
|
-
|
|
102
|
+
NOTIFY: "NOTIFY";
|
|
103
|
+
DECLARE: "DECLARE";
|
|
104
|
+
REGISTER: "REGISTER";
|
|
106
105
|
EDIT: "EDIT";
|
|
106
|
+
DUPLICATE_DETECTED: "DUPLICATE_DETECTED";
|
|
107
|
+
REJECT: "REJECT";
|
|
107
108
|
MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
|
|
108
109
|
MARK_AS_NOT_DUPLICATE: "MARK_AS_NOT_DUPLICATE";
|
|
109
|
-
|
|
110
|
+
ARCHIVE: "ARCHIVE";
|
|
111
|
+
UNARCHIVE: "UNARCHIVE";
|
|
110
112
|
PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
111
|
-
REGISTER: "REGISTER";
|
|
112
|
-
REJECT: "REJECT";
|
|
113
|
-
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
114
113
|
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
115
|
-
|
|
114
|
+
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
115
|
+
APPROVE_CORRECTION: "APPROVE_CORRECTION";
|
|
116
116
|
}>;
|
|
117
117
|
/** Actions which are availabe for Workqueue CTA menu and workqueue */
|
|
118
118
|
export declare const WorkqueueActionType: z.ZodEnum<{
|
|
119
|
-
ARCHIVE: "ARCHIVE";
|
|
120
|
-
DECLARE: "DECLARE";
|
|
121
119
|
DELETE: "DELETE";
|
|
120
|
+
DECLARE: "DECLARE";
|
|
121
|
+
REGISTER: "REGISTER";
|
|
122
122
|
EDIT: "EDIT";
|
|
123
|
+
REJECT: "REJECT";
|
|
123
124
|
MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
|
|
125
|
+
ARCHIVE: "ARCHIVE";
|
|
126
|
+
UNARCHIVE: "UNARCHIVE";
|
|
124
127
|
PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
125
|
-
READ: "READ";
|
|
126
|
-
REGISTER: "REGISTER";
|
|
127
|
-
REJECT: "REJECT";
|
|
128
128
|
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
129
|
-
|
|
129
|
+
READ: "READ";
|
|
130
130
|
}>;
|
|
131
131
|
export type WorkqueueActionType = z.infer<typeof WorkqueueActionType>;
|
|
132
132
|
/**
|