@opencrvs/toolkit 1.9.4-rc.793f834 → 1.9.4-rc.f09603b
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 +28204 -2149
- package/dist/commons/conditionals/conditionals.d.ts +10 -1
- package/dist/commons/conditionals/validate.d.ts +11 -4
- package/dist/commons/events/ActionConfig.d.ts +23416 -1552
- package/dist/commons/events/ActionDocument.d.ts +803 -1856
- package/dist/commons/events/ActionInput.d.ts +277 -1073
- package/dist/commons/events/ActionType.d.ts +86 -9
- package/dist/commons/events/AdvancedSearchConfig.d.ts +228 -1238
- package/dist/commons/events/CompositeFieldValue.d.ts +27 -176
- package/dist/commons/events/Conditional.d.ts +26 -38
- package/dist/commons/events/Constants.d.ts +1 -1
- package/dist/commons/events/CountryConfigQueryInput.d.ts +931 -4169
- package/dist/commons/events/CreatedAtLocation.d.ts +1 -1
- package/dist/commons/events/DeduplicationConfig.d.ts +15 -150
- package/dist/commons/events/Draft.d.ts +70 -105
- package/dist/commons/events/DynamicFieldValue.d.ts +7 -91
- package/dist/commons/events/EventConfig.d.ts +18663 -2120
- package/dist/commons/events/EventConfigInput.d.ts +1 -1
- package/dist/commons/events/EventDocument.d.ts +320 -1332
- package/dist/commons/events/EventIndex.d.ts +197 -967
- package/dist/commons/events/EventInput.d.ts +2 -8
- package/dist/commons/events/EventMetadata.d.ts +106 -346
- package/dist/commons/events/FieldConfig.d.ts +4267 -11782
- package/dist/commons/events/FieldType.d.ts +20 -4
- package/dist/commons/events/FieldTypeMapping.d.ts +181 -813
- package/dist/commons/events/FieldValue.d.ts +83 -356
- package/dist/commons/events/Flag.d.ts +70 -0
- package/dist/commons/events/FormConfig.d.ts +13140 -721
- package/dist/commons/events/PageConfig.d.ts +8780 -319
- package/dist/commons/events/SummaryConfig.d.ts +14 -161
- package/dist/commons/events/TemplateConfig.d.ts +3 -3
- package/dist/commons/events/TranslationConfig.d.ts +2 -2
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +74 -37
- package/dist/commons/events/WorkqueueConfig.d.ts +1691 -7156
- package/dist/commons/events/deduplication.d.ts +3 -3
- package/dist/commons/events/defineConfig.d.ts +25626 -150
- package/dist/commons/events/event.d.ts +4 -4
- package/dist/commons/events/index.d.ts +1 -0
- package/dist/commons/events/locations.d.ts +15 -19
- package/dist/commons/events/scopes.d.ts +5 -4
- package/dist/commons/events/state/availableActions.d.ts +2 -1
- package/dist/commons/events/state/flags.d.ts +21 -3
- package/dist/commons/events/state/index.d.ts +23 -19
- package/dist/commons/events/state/utils.d.ts +130 -112
- package/dist/commons/events/test.utils.d.ts +17 -8
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +51339 -362
- package/dist/commons/notification/UserNotifications.d.ts +55 -636
- package/dist/conditionals/index.d.ts.map +1 -1
- package/dist/conditionals/index.js +38 -5
- package/dist/events/deduplication.d.ts +3 -3
- package/dist/events/index.js +1810 -1550
- package/dist/notification/index.d.ts.map +1 -1
- package/dist/notification/index.js +1430 -1412
- package/dist/scopes/index.d.ts +167 -132
- package/dist/scopes/index.d.ts.map +1 -1
- package/dist/scopes/index.js +133 -94
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
2
|
/**
|
|
3
3
|
* Actions recognized by the system
|
|
4
4
|
*/
|
|
@@ -7,8 +7,8 @@ export declare const ActionType: {
|
|
|
7
7
|
readonly CREATE: "CREATE";
|
|
8
8
|
readonly NOTIFY: "NOTIFY";
|
|
9
9
|
readonly DECLARE: "DECLARE";
|
|
10
|
-
readonly VALIDATE: "VALIDATE";
|
|
11
10
|
readonly REGISTER: "REGISTER";
|
|
11
|
+
readonly EDIT: "EDIT";
|
|
12
12
|
readonly DUPLICATE_DETECTED: "DUPLICATE_DETECTED";
|
|
13
13
|
readonly REJECT: "REJECT";
|
|
14
14
|
readonly MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
|
|
@@ -21,11 +21,32 @@ export declare const ActionType: {
|
|
|
21
21
|
readonly READ: "READ";
|
|
22
22
|
readonly ASSIGN: "ASSIGN";
|
|
23
23
|
readonly UNASSIGN: "UNASSIGN";
|
|
24
|
+
readonly CUSTOM: "CUSTOM";
|
|
24
25
|
};
|
|
25
26
|
export type ActionType = (typeof ActionType)[keyof typeof ActionType];
|
|
26
|
-
export declare const ConfirmableActions: readonly ["NOTIFY", "DECLARE", "
|
|
27
|
+
export declare const ConfirmableActions: readonly ["NOTIFY", "DECLARE", "EDIT", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "APPROVE_CORRECTION", "REJECT_CORRECTION", "CUSTOM"];
|
|
27
28
|
/** Testing building types from enums as an alternative */
|
|
28
|
-
export declare const ActionTypes: z.ZodEnum<
|
|
29
|
+
export declare const ActionTypes: z.ZodEnum<{
|
|
30
|
+
DELETE: "DELETE";
|
|
31
|
+
CREATE: "CREATE";
|
|
32
|
+
NOTIFY: "NOTIFY";
|
|
33
|
+
DECLARE: "DECLARE";
|
|
34
|
+
REGISTER: "REGISTER";
|
|
35
|
+
EDIT: "EDIT";
|
|
36
|
+
DUPLICATE_DETECTED: "DUPLICATE_DETECTED";
|
|
37
|
+
REJECT: "REJECT";
|
|
38
|
+
MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
|
|
39
|
+
MARK_AS_NOT_DUPLICATE: "MARK_AS_NOT_DUPLICATE";
|
|
40
|
+
ARCHIVE: "ARCHIVE";
|
|
41
|
+
PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
42
|
+
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
43
|
+
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
44
|
+
APPROVE_CORRECTION: "APPROVE_CORRECTION";
|
|
45
|
+
READ: "READ";
|
|
46
|
+
ASSIGN: "ASSIGN";
|
|
47
|
+
UNASSIGN: "UNASSIGN";
|
|
48
|
+
CUSTOM: "CUSTOM";
|
|
49
|
+
}>;
|
|
29
50
|
/**
|
|
30
51
|
* Non-persisted actions that are used in the client to control the UI.
|
|
31
52
|
*/
|
|
@@ -34,18 +55,74 @@ export declare const ClientSpecificAction: {
|
|
|
34
55
|
};
|
|
35
56
|
export type ClientSpecificAction = (typeof ClientSpecificAction)[keyof typeof ClientSpecificAction];
|
|
36
57
|
/** Actions which change event data (declaration) before registration / during declaration. */
|
|
37
|
-
export declare const DeclarationActions: z.ZodEnum<
|
|
58
|
+
export declare const DeclarationActions: z.ZodEnum<{
|
|
59
|
+
NOTIFY: "NOTIFY";
|
|
60
|
+
DECLARE: "DECLARE";
|
|
61
|
+
REGISTER: "REGISTER";
|
|
62
|
+
EDIT: "EDIT";
|
|
63
|
+
DUPLICATE_DETECTED: "DUPLICATE_DETECTED";
|
|
64
|
+
}>;
|
|
38
65
|
export type DeclarationActionType = z.infer<typeof DeclarationActions>;
|
|
39
66
|
/** Actions that can modify declaration data. Request can be corrected after declaring it. */
|
|
40
|
-
export declare const DeclarationUpdateActions: z.ZodEnum<
|
|
67
|
+
export declare const DeclarationUpdateActions: z.ZodEnum<{
|
|
68
|
+
NOTIFY: "NOTIFY";
|
|
69
|
+
DECLARE: "DECLARE";
|
|
70
|
+
REGISTER: "REGISTER";
|
|
71
|
+
EDIT: "EDIT";
|
|
72
|
+
DUPLICATE_DETECTED: "DUPLICATE_DETECTED";
|
|
73
|
+
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
74
|
+
}>;
|
|
41
75
|
export type DeclarationUpdateActionType = z.infer<typeof DeclarationUpdateActions>;
|
|
42
76
|
/** Actions which only update annotation or status of an event. */
|
|
43
|
-
export declare const annotationActions: z.ZodEnum<
|
|
77
|
+
export declare const annotationActions: z.ZodEnum<{
|
|
78
|
+
DELETE: "DELETE";
|
|
79
|
+
CREATE: "CREATE";
|
|
80
|
+
REJECT: "REJECT";
|
|
81
|
+
MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
|
|
82
|
+
MARK_AS_NOT_DUPLICATE: "MARK_AS_NOT_DUPLICATE";
|
|
83
|
+
ARCHIVE: "ARCHIVE";
|
|
84
|
+
PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
85
|
+
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
86
|
+
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
87
|
+
APPROVE_CORRECTION: "APPROVE_CORRECTION";
|
|
88
|
+
READ: "READ";
|
|
89
|
+
ASSIGN: "ASSIGN";
|
|
90
|
+
UNASSIGN: "UNASSIGN";
|
|
91
|
+
CUSTOM: "CUSTOM";
|
|
92
|
+
}>;
|
|
44
93
|
export type AnnotationActionType = z.infer<typeof annotationActions>;
|
|
45
94
|
/** Actions which requires the user to be assigned */
|
|
46
|
-
export declare const writeActions: z.ZodEnum<
|
|
95
|
+
export declare const writeActions: z.ZodEnum<{
|
|
96
|
+
DELETE: "DELETE";
|
|
97
|
+
NOTIFY: "NOTIFY";
|
|
98
|
+
DECLARE: "DECLARE";
|
|
99
|
+
REGISTER: "REGISTER";
|
|
100
|
+
EDIT: "EDIT";
|
|
101
|
+
DUPLICATE_DETECTED: "DUPLICATE_DETECTED";
|
|
102
|
+
REJECT: "REJECT";
|
|
103
|
+
MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
|
|
104
|
+
MARK_AS_NOT_DUPLICATE: "MARK_AS_NOT_DUPLICATE";
|
|
105
|
+
ARCHIVE: "ARCHIVE";
|
|
106
|
+
PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
107
|
+
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
108
|
+
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
109
|
+
APPROVE_CORRECTION: "APPROVE_CORRECTION";
|
|
110
|
+
CUSTOM: "CUSTOM";
|
|
111
|
+
}>;
|
|
47
112
|
/** Actions which are visible in action menu and workqueue */
|
|
48
|
-
export declare const workqueueActions: z.ZodEnum<
|
|
113
|
+
export declare const workqueueActions: z.ZodEnum<{
|
|
114
|
+
DELETE: "DELETE";
|
|
115
|
+
DECLARE: "DECLARE";
|
|
116
|
+
REGISTER: "REGISTER";
|
|
117
|
+
EDIT: "EDIT";
|
|
118
|
+
REJECT: "REJECT";
|
|
119
|
+
MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
|
|
120
|
+
ARCHIVE: "ARCHIVE";
|
|
121
|
+
PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
122
|
+
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
123
|
+
ASSIGN: "ASSIGN";
|
|
124
|
+
UNASSIGN: "UNASSIGN";
|
|
125
|
+
}>;
|
|
49
126
|
export type WorkqueueActionType = z.infer<typeof workqueueActions>;
|
|
50
127
|
export type DisplayableAction = ActionType | ClientSpecificAction;
|
|
51
128
|
export declare function isMetaAction(actionType: DisplayableAction): boolean;
|