@opencrvs/toolkit 1.9.12-rc.f82cfcf → 1.9.12-rc.fb59042
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 +2038 -45
- package/dist/cli.js +850 -35
- package/dist/commons/api/router.d.ts +86 -79
- package/dist/commons/application-config/index.d.ts +6 -4
- package/dist/commons/events/ActionDocument.d.ts +6 -6
- package/dist/commons/events/ActionType.d.ts +3 -3
- package/dist/commons/events/AdvancedSearchConfig.d.ts +10 -10
- package/dist/commons/events/CountryConfigQueryInput.d.ts +222 -222
- package/dist/commons/events/Draft.d.ts +8 -8
- package/dist/commons/events/EventConfig.d.ts +1 -1
- package/dist/commons/events/EventDocument.d.ts +3 -3
- package/dist/commons/events/EventIndex.d.ts +15 -15
- package/dist/commons/events/EventMetadata.d.ts +12 -12
- package/dist/commons/events/FieldConfig.d.ts +26 -30
- package/dist/commons/events/FieldType.d.ts +1 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +4 -4
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +13 -13
- package/dist/commons/events/WorkqueueConfig.d.ts +239 -239
- package/dist/commons/events/state/index.d.ts +2 -2
- package/dist/commons/events/state/utils.d.ts +3 -3
- package/dist/commons/events/utils.d.ts +3 -3
- package/dist/events/index.js +1 -5
- package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -1
- package/dist/migrations/v2.0/convert-config-files-to-ts.js +97 -21
- package/dist/migrations/v2.0/index.d.ts.map +1 -1
- package/dist/migrations/v2.0/index.js +848 -33
- package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -1
- package/dist/migrations/v2.0/migrate-scopes.js +6 -5
- package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts +3 -0
- package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +1 -0
- package/dist/migrations/v2.0/migrate-workqueue-configs.js +237 -0
- package/dist/migrations/v2.0/remove-demo-scope.d.ts +3 -0
- package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-demo-scope.js +75 -0
- package/dist/migrations/v2.0/remove-hearth-migrations.d.ts +3 -0
- package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-hearth-migrations.js +78 -0
- package/dist/notification/index.js +1 -5
- package/opencrvs-toolkit-1.9.12-rc.fb59042.tgz +0 -0
- package/package.json +1 -1
- package/tsconfig.json +3 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-1.9.12-rc.f82cfcf.tgz +0 -0
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
|
+
import { FieldConfig } from './events/FieldConfig';
|
|
2
3
|
export declare const SearchCriteria: z.ZodEnum<{
|
|
4
|
+
NAME: "NAME";
|
|
5
|
+
EMAIL: "EMAIL";
|
|
3
6
|
TRACKING_ID: "TRACKING_ID";
|
|
4
7
|
REGISTRATION_NUMBER: "REGISTRATION_NUMBER";
|
|
5
8
|
NATIONAL_ID: "NATIONAL_ID";
|
|
6
|
-
NAME: "NAME";
|
|
7
9
|
PHONE_NUMBER: "PHONE_NUMBER";
|
|
8
|
-
EMAIL: "EMAIL";
|
|
9
10
|
}>;
|
|
10
11
|
export declare const ApplicationConfig: z.ZodObject<{
|
|
11
12
|
APPLICATION_NAME: z.ZodString;
|
|
@@ -26,13 +27,14 @@ export declare const ApplicationConfig: z.ZodObject<{
|
|
|
26
27
|
USER_NOTIFICATION_DELIVERY_METHOD: z.ZodString;
|
|
27
28
|
INFORMANT_NOTIFICATION_DELIVERY_METHOD: z.ZodString;
|
|
28
29
|
SEARCH_DEFAULT_CRITERIA: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
30
|
+
NAME: "NAME";
|
|
31
|
+
EMAIL: "EMAIL";
|
|
29
32
|
TRACKING_ID: "TRACKING_ID";
|
|
30
33
|
REGISTRATION_NUMBER: "REGISTRATION_NUMBER";
|
|
31
34
|
NATIONAL_ID: "NATIONAL_ID";
|
|
32
|
-
NAME: "NAME";
|
|
33
35
|
PHONE_NUMBER: "PHONE_NUMBER";
|
|
34
|
-
EMAIL: "EMAIL";
|
|
35
36
|
}>>>;
|
|
37
|
+
ADDITIONAL_USER_FIELDS: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodType<FieldConfig, import("./events/FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./events/FieldConfig").FieldConfigInput>>>>>;
|
|
36
38
|
}, z.core.$strip>;
|
|
37
39
|
export type ApplicationConfig = z.infer<typeof ApplicationConfig>;
|
|
38
40
|
export declare const defineApplicationConfig: (config: z.input<typeof ApplicationConfig>) => ApplicationConfig;
|
|
@@ -658,18 +658,19 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
658
658
|
export type ActionDocument = z.infer<typeof ActionDocument>;
|
|
659
659
|
export declare const AsyncRejectActionDocument: z.ZodObject<{
|
|
660
660
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
661
|
-
createdAt: z.ZodString;
|
|
662
661
|
transactionId: z.ZodString;
|
|
663
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
664
662
|
createdByUserType: z.ZodEnum<{
|
|
665
663
|
user: "user";
|
|
666
664
|
system: "system";
|
|
667
665
|
}>;
|
|
666
|
+
createdAt: z.ZodString;
|
|
668
667
|
createdBy: z.ZodString;
|
|
669
668
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
670
669
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
670
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
671
671
|
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
672
672
|
type: z.ZodEnum<{
|
|
673
|
+
CUSTOM: "CUSTOM";
|
|
673
674
|
NOTIFY: "NOTIFY";
|
|
674
675
|
DECLARE: "DECLARE";
|
|
675
676
|
REGISTER: "REGISTER";
|
|
@@ -680,7 +681,6 @@ export declare const AsyncRejectActionDocument: z.ZodObject<{
|
|
|
680
681
|
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
681
682
|
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
682
683
|
APPROVE_CORRECTION: "APPROVE_CORRECTION";
|
|
683
|
-
CUSTOM: "CUSTOM";
|
|
684
684
|
}>;
|
|
685
685
|
status: z.ZodLiteral<"Rejected">;
|
|
686
686
|
}, z.core.$strip>;
|
|
@@ -1094,18 +1094,19 @@ export declare const Action: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1094
1094
|
customActionType: z.ZodString;
|
|
1095
1095
|
}, z.core.$strip>], "type">, z.ZodObject<{
|
|
1096
1096
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
1097
|
-
createdAt: z.ZodString;
|
|
1098
1097
|
transactionId: z.ZodString;
|
|
1099
|
-
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
1100
1098
|
createdByUserType: z.ZodEnum<{
|
|
1101
1099
|
user: "user";
|
|
1102
1100
|
system: "system";
|
|
1103
1101
|
}>;
|
|
1102
|
+
createdAt: z.ZodString;
|
|
1104
1103
|
createdBy: z.ZodString;
|
|
1105
1104
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
1106
1105
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
1106
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
1107
1107
|
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
1108
1108
|
type: z.ZodEnum<{
|
|
1109
|
+
CUSTOM: "CUSTOM";
|
|
1109
1110
|
NOTIFY: "NOTIFY";
|
|
1110
1111
|
DECLARE: "DECLARE";
|
|
1111
1112
|
REGISTER: "REGISTER";
|
|
@@ -1116,7 +1117,6 @@ export declare const Action: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1116
1117
|
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
1117
1118
|
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
1118
1119
|
APPROVE_CORRECTION: "APPROVE_CORRECTION";
|
|
1119
|
-
CUSTOM: "CUSTOM";
|
|
1120
1120
|
}>;
|
|
1121
1121
|
status: z.ZodLiteral<"Rejected">;
|
|
1122
1122
|
}, z.core.$strip>]>;
|
|
@@ -27,6 +27,7 @@ export type ActionType = (typeof ActionType)[keyof typeof ActionType];
|
|
|
27
27
|
export declare const ConfirmableActions: readonly ["NOTIFY", "DECLARE", "EDIT", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "APPROVE_CORRECTION", "REJECT_CORRECTION", "CUSTOM"];
|
|
28
28
|
/** Testing building types from enums as an alternative */
|
|
29
29
|
export declare const ActionTypes: z.ZodEnum<{
|
|
30
|
+
CUSTOM: "CUSTOM";
|
|
30
31
|
DELETE: "DELETE";
|
|
31
32
|
CREATE: "CREATE";
|
|
32
33
|
NOTIFY: "NOTIFY";
|
|
@@ -45,7 +46,6 @@ export declare const ActionTypes: z.ZodEnum<{
|
|
|
45
46
|
READ: "READ";
|
|
46
47
|
ASSIGN: "ASSIGN";
|
|
47
48
|
UNASSIGN: "UNASSIGN";
|
|
48
|
-
CUSTOM: "CUSTOM";
|
|
49
49
|
}>;
|
|
50
50
|
export type ActionTypes = z.infer<typeof ActionTypes>;
|
|
51
51
|
/**
|
|
@@ -76,6 +76,7 @@ export declare const DeclarationUpdateActions: z.ZodEnum<{
|
|
|
76
76
|
export type DeclarationUpdateActionType = z.infer<typeof DeclarationUpdateActions>;
|
|
77
77
|
/** Actions which only update annotation or status of an event. */
|
|
78
78
|
export declare const annotationActions: z.ZodEnum<{
|
|
79
|
+
CUSTOM: "CUSTOM";
|
|
79
80
|
DELETE: "DELETE";
|
|
80
81
|
CREATE: "CREATE";
|
|
81
82
|
REJECT: "REJECT";
|
|
@@ -89,11 +90,11 @@ export declare const annotationActions: z.ZodEnum<{
|
|
|
89
90
|
READ: "READ";
|
|
90
91
|
ASSIGN: "ASSIGN";
|
|
91
92
|
UNASSIGN: "UNASSIGN";
|
|
92
|
-
CUSTOM: "CUSTOM";
|
|
93
93
|
}>;
|
|
94
94
|
export type AnnotationActionType = z.infer<typeof annotationActions>;
|
|
95
95
|
/** Actions which requires the user to be assigned */
|
|
96
96
|
export declare const writeActions: z.ZodEnum<{
|
|
97
|
+
CUSTOM: "CUSTOM";
|
|
97
98
|
DELETE: "DELETE";
|
|
98
99
|
NOTIFY: "NOTIFY";
|
|
99
100
|
DECLARE: "DECLARE";
|
|
@@ -108,7 +109,6 @@ export declare const writeActions: z.ZodEnum<{
|
|
|
108
109
|
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
109
110
|
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
110
111
|
APPROVE_CORRECTION: "APPROVE_CORRECTION";
|
|
111
|
-
CUSTOM: "CUSTOM";
|
|
112
112
|
}>;
|
|
113
113
|
/** Actions which are availabe for Workqueue CTA menu and workqueue */
|
|
114
114
|
export declare const WorkqueueActionType: z.ZodEnum<{
|
|
@@ -99,9 +99,9 @@ export declare const FieldConfigSchema: z.ZodObject<{
|
|
|
99
99
|
* that can be passed to the `event` function to create a field config.
|
|
100
100
|
*/
|
|
101
101
|
export declare const EventFieldIdInput: z.ZodEnum<{
|
|
102
|
-
trackingId: "trackingId";
|
|
103
|
-
status: "status";
|
|
104
102
|
updatedAt: "updatedAt";
|
|
103
|
+
status: "status";
|
|
104
|
+
trackingId: "trackingId";
|
|
105
105
|
"legalStatuses.REGISTERED.acceptedAt": "legalStatuses.REGISTERED.acceptedAt";
|
|
106
106
|
"legalStatuses.REGISTERED.createdAtLocation": "legalStatuses.REGISTERED.createdAtLocation";
|
|
107
107
|
"legalStatuses.REGISTERED.registrationNumber": "legalStatuses.REGISTERED.registrationNumber";
|
|
@@ -116,9 +116,9 @@ export declare const METADATA_FIELD_PREFIX = "event.";
|
|
|
116
116
|
* function prefixes the `EventFieldIdInput` values with METADATA_FIELD_PREFIX.
|
|
117
117
|
*/
|
|
118
118
|
export declare const EventFieldId: z.ZodEnum<{
|
|
119
|
-
"event.trackingId": "event.trackingId";
|
|
120
|
-
"event.status": "event.status";
|
|
121
119
|
"event.updatedAt": "event.updatedAt";
|
|
120
|
+
"event.status": "event.status";
|
|
121
|
+
"event.trackingId": "event.trackingId";
|
|
122
122
|
"event.legalStatuses.REGISTERED.acceptedAt": "event.legalStatuses.REGISTERED.acceptedAt";
|
|
123
123
|
"event.legalStatuses.REGISTERED.createdAtLocation": "event.legalStatuses.REGISTERED.createdAtLocation";
|
|
124
124
|
"event.legalStatuses.REGISTERED.registrationNumber": "event.legalStatuses.REGISTERED.registrationNumber";
|
|
@@ -212,9 +212,9 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
|
|
|
212
212
|
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
213
213
|
}, z.core.$strip>>>;
|
|
214
214
|
fieldId: z.ZodEnum<{
|
|
215
|
-
"event.trackingId": "event.trackingId";
|
|
216
|
-
"event.status": "event.status";
|
|
217
215
|
"event.updatedAt": "event.updatedAt";
|
|
216
|
+
"event.status": "event.status";
|
|
217
|
+
"event.trackingId": "event.trackingId";
|
|
218
218
|
"event.legalStatuses.REGISTERED.acceptedAt": "event.legalStatuses.REGISTERED.acceptedAt";
|
|
219
219
|
"event.legalStatuses.REGISTERED.createdAtLocation": "event.legalStatuses.REGISTERED.createdAtLocation";
|
|
220
220
|
"event.legalStatuses.REGISTERED.registrationNumber": "event.legalStatuses.REGISTERED.registrationNumber";
|
|
@@ -396,9 +396,9 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
396
396
|
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
397
397
|
}, z.core.$strip>>>;
|
|
398
398
|
fieldId: z.ZodEnum<{
|
|
399
|
-
"event.trackingId": "event.trackingId";
|
|
400
|
-
"event.status": "event.status";
|
|
401
399
|
"event.updatedAt": "event.updatedAt";
|
|
400
|
+
"event.status": "event.status";
|
|
401
|
+
"event.trackingId": "event.trackingId";
|
|
402
402
|
"event.legalStatuses.REGISTERED.acceptedAt": "event.legalStatuses.REGISTERED.acceptedAt";
|
|
403
403
|
"event.legalStatuses.REGISTERED.createdAtLocation": "event.legalStatuses.REGISTERED.createdAtLocation";
|
|
404
404
|
"event.legalStatuses.REGISTERED.registrationNumber": "event.legalStatuses.REGISTERED.registrationNumber";
|
|
@@ -583,9 +583,9 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
583
583
|
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
584
584
|
}, z.core.$strip>>>;
|
|
585
585
|
fieldId: z.ZodEnum<{
|
|
586
|
-
"event.trackingId": "event.trackingId";
|
|
587
|
-
"event.status": "event.status";
|
|
588
586
|
"event.updatedAt": "event.updatedAt";
|
|
587
|
+
"event.status": "event.status";
|
|
588
|
+
"event.trackingId": "event.trackingId";
|
|
589
589
|
"event.legalStatuses.REGISTERED.acceptedAt": "event.legalStatuses.REGISTERED.acceptedAt";
|
|
590
590
|
"event.legalStatuses.REGISTERED.createdAtLocation": "event.legalStatuses.REGISTERED.createdAtLocation";
|
|
591
591
|
"event.legalStatuses.REGISTERED.registrationNumber": "event.legalStatuses.REGISTERED.registrationNumber";
|