@opencrvs/toolkit 2.1.0-rc.e2f2b3d → 2.1.0-rc.e58bb01
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 +201 -191
- package/dist/cli.js +48 -0
- package/dist/commons/api/router.d.ts +1644 -1627
- package/dist/commons/application-config/index.d.ts +6 -6
- package/dist/commons/conditionals/conditionals.d.ts +323 -32
- package/dist/commons/conditionals/validate.d.ts +2 -1
- package/dist/commons/events/ActionConfig.d.ts +126 -105
- package/dist/commons/events/ActionDocument.d.ts +117 -123
- package/dist/commons/events/ActionInput.d.ts +6 -0
- package/dist/commons/events/ActionStatus.d.ts +14 -0
- package/dist/commons/events/ActionType.d.ts +62 -62
- package/dist/commons/events/AdvancedSearchConfig.d.ts +513 -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 +608 -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 +52 -71
- package/dist/commons/events/EventMetadata.d.ts +41 -40
- package/dist/commons/events/FieldConfig.d.ts +342 -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 +63 -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 +835 -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 +198 -69
- 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/conditionals/index.js +303 -55
- package/dist/environment/derived-variables.d.ts +131 -119
- package/dist/environment/derived-variables.d.ts.map +1 -1
- package/dist/environment/derived-variables.js +14 -0
- package/dist/environment/logger.d.ts +12 -3
- package/dist/environment/logger.d.ts.map +1 -1
- package/dist/environment/manage-users.js +7 -17
- package/dist/environment/questions.d.ts +74 -75
- package/dist/environment/questions.d.ts.map +1 -1
- package/dist/environment/setup-environment.js +28 -8
- package/dist/environment/swarm-to-k8s.js +7 -17
- package/dist/environment/update-workflows.js +7 -17
- package/dist/environment/users.js +7 -17
- package/dist/environment/utils.d.ts +1 -1
- package/dist/environment/utils.js +7 -17
- package/dist/events/deduplication.d.ts +1 -1
- package/dist/events/index.js +3274 -3238
- package/dist/migrations/v2.0/convert-config-files-to-ts.js +7 -17
- package/dist/migrations/v2.0/migrate-application-config-url.js +3 -4
- package/dist/migrations/v2.0/remove-hearth-migrations.js +7 -17
- package/dist/notification/index.js +1482 -910
- package/dist/scopes/index.d.ts +396 -146
- package/dist/scopes/index.js +304 -55
- package/dist/templates/charts-values/dependencies/values.yaml +3 -0
- package/dist/templates/charts-values/opencrvs-services/values.yaml +4 -0
- package/opencrvs-toolkit-2.1.0-rc.e58bb01.tgz +0 -0
- package/package.json +5 -5
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-2.1.0-rc.e2f2b3d.tgz +0 -0
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
2
|
export declare const InherentFlags: {
|
|
3
|
-
readonly INCOMPLETE:
|
|
4
|
-
readonly REJECTED:
|
|
5
|
-
readonly CORRECTION_REQUESTED:
|
|
6
|
-
readonly POTENTIAL_DUPLICATE:
|
|
3
|
+
readonly INCOMPLETE: "incomplete";
|
|
4
|
+
readonly REJECTED: "rejected";
|
|
5
|
+
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
6
|
+
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
7
7
|
/**
|
|
8
8
|
* This flag is set by the Edit-action and removed after the declaration or registration.
|
|
9
9
|
* A record should never stay with the EDIT_IN_PROGRESS flag, since it should always be declared or registered right after.
|
|
10
10
|
*
|
|
11
11
|
* We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
|
|
12
12
|
*/
|
|
13
|
-
readonly EDIT_IN_PROGRESS:
|
|
13
|
+
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
14
|
+
readonly SEALED: "sealed";
|
|
14
15
|
};
|
|
15
16
|
export type InherentFlags = (typeof InherentFlags)[keyof typeof InherentFlags];
|
|
16
17
|
export declare const ActionFlag: z.ZodString;
|
|
@@ -19,19 +20,65 @@ export type ActionFlag = z.infer<typeof ActionFlag>;
|
|
|
19
20
|
export declare const CustomFlag: z.ZodString;
|
|
20
21
|
export type CustomFlag = z.infer<typeof CustomFlag>;
|
|
21
22
|
export declare const Flag: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
22
|
-
readonly INCOMPLETE:
|
|
23
|
-
readonly REJECTED:
|
|
24
|
-
readonly CORRECTION_REQUESTED:
|
|
25
|
-
readonly POTENTIAL_DUPLICATE:
|
|
23
|
+
readonly INCOMPLETE: "incomplete";
|
|
24
|
+
readonly REJECTED: "rejected";
|
|
25
|
+
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
26
|
+
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
26
27
|
/**
|
|
27
28
|
* This flag is set by the Edit-action and removed after the declaration or registration.
|
|
28
29
|
* A record should never stay with the EDIT_IN_PROGRESS flag, since it should always be declared or registered right after.
|
|
29
30
|
*
|
|
30
31
|
* We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
|
|
31
32
|
*/
|
|
32
|
-
readonly EDIT_IN_PROGRESS:
|
|
33
|
+
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
34
|
+
readonly SEALED: "sealed";
|
|
33
35
|
}>]>, z.ZodString]>;
|
|
34
36
|
export type Flag = z.infer<typeof Flag>;
|
|
37
|
+
export declare const ContainsFlags: z.ZodObject<{
|
|
38
|
+
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
39
|
+
readonly INCOMPLETE: "incomplete";
|
|
40
|
+
readonly REJECTED: "rejected";
|
|
41
|
+
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
42
|
+
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
43
|
+
/**
|
|
44
|
+
* This flag is set by the Edit-action and removed after the declaration or registration.
|
|
45
|
+
* A record should never stay with the EDIT_IN_PROGRESS flag, since it should always be declared or registered right after.
|
|
46
|
+
*
|
|
47
|
+
* We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
|
|
48
|
+
*/
|
|
49
|
+
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
50
|
+
readonly SEALED: "sealed";
|
|
51
|
+
}>]>, z.ZodString]>>>;
|
|
52
|
+
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
53
|
+
readonly INCOMPLETE: "incomplete";
|
|
54
|
+
readonly REJECTED: "rejected";
|
|
55
|
+
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
56
|
+
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
57
|
+
/**
|
|
58
|
+
* This flag is set by the Edit-action and removed after the declaration or registration.
|
|
59
|
+
* A record should never stay with the EDIT_IN_PROGRESS flag, since it should always be declared or registered right after.
|
|
60
|
+
*
|
|
61
|
+
* We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
|
|
62
|
+
*/
|
|
63
|
+
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
64
|
+
readonly SEALED: "sealed";
|
|
65
|
+
}>]>, z.ZodString]>>>;
|
|
66
|
+
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
67
|
+
readonly INCOMPLETE: "incomplete";
|
|
68
|
+
readonly REJECTED: "rejected";
|
|
69
|
+
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
70
|
+
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
71
|
+
/**
|
|
72
|
+
* This flag is set by the Edit-action and removed after the declaration or registration.
|
|
73
|
+
* A record should never stay with the EDIT_IN_PROGRESS flag, since it should always be declared or registered right after.
|
|
74
|
+
*
|
|
75
|
+
* We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
|
|
76
|
+
*/
|
|
77
|
+
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
78
|
+
readonly SEALED: "sealed";
|
|
79
|
+
}>]>, z.ZodString]>>>;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
export type ContainsFlags = z.infer<typeof ContainsFlags>;
|
|
35
82
|
/**
|
|
36
83
|
* Configuration of a custom flag that can be associated with a certain event type.
|
|
37
84
|
*/
|
|
@@ -46,17 +93,18 @@ export type FlagConfig = z.infer<typeof FlagConfig>;
|
|
|
46
93
|
*/
|
|
47
94
|
export declare const ActionFlagConfig: z.ZodObject<{
|
|
48
95
|
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
49
|
-
readonly INCOMPLETE:
|
|
50
|
-
readonly REJECTED:
|
|
51
|
-
readonly CORRECTION_REQUESTED:
|
|
52
|
-
readonly POTENTIAL_DUPLICATE:
|
|
96
|
+
readonly INCOMPLETE: "incomplete";
|
|
97
|
+
readonly REJECTED: "rejected";
|
|
98
|
+
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
99
|
+
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
53
100
|
/**
|
|
54
101
|
* This flag is set by the Edit-action and removed after the declaration or registration.
|
|
55
102
|
* A record should never stay with the EDIT_IN_PROGRESS flag, since it should always be declared or registered right after.
|
|
56
103
|
*
|
|
57
104
|
* We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
|
|
58
105
|
*/
|
|
59
|
-
readonly EDIT_IN_PROGRESS:
|
|
106
|
+
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
107
|
+
readonly SEALED: "sealed";
|
|
60
108
|
}>]>, z.ZodString]>;
|
|
61
109
|
operation: z.ZodEnum<{
|
|
62
110
|
add: "add";
|
|
@@ -36,7 +36,7 @@ export type SystemVariables = {
|
|
|
36
36
|
*/
|
|
37
37
|
export declare const window: () => {
|
|
38
38
|
location: {
|
|
39
|
-
get: (key:
|
|
39
|
+
get: (key: "href" | "pathname" | "hostname" | "originPathname") => string;
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
42
|
/**
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
2
|
export declare const WorkqueueColumnKeysArray: readonly ["id", "type", "status", "createdAt", "dateOfEvent", "placeOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title", "outbox"];
|
|
3
3
|
export declare const WorkqueueColumnKeys: z.ZodEnum<{
|
|
4
|
-
assignedTo: "assignedTo";
|
|
5
|
-
createdAt: "createdAt";
|
|
6
|
-
createdAtLocation: "createdAtLocation";
|
|
7
|
-
createdBy: "createdBy";
|
|
8
|
-
createdByUserType: "createdByUserType";
|
|
9
|
-
dateOfEvent: "dateOfEvent";
|
|
10
|
-
flags: "flags";
|
|
11
4
|
id: "id";
|
|
12
|
-
legalStatuses: "legalStatuses";
|
|
13
|
-
outbox: "outbox";
|
|
14
|
-
placeOfEvent: "placeOfEvent";
|
|
15
|
-
status: "status";
|
|
16
5
|
title: "title";
|
|
17
|
-
trackingId: "trackingId";
|
|
18
6
|
type: "type";
|
|
19
7
|
updatedAt: "updatedAt";
|
|
8
|
+
placeOfEvent: "placeOfEvent";
|
|
9
|
+
flags: "flags";
|
|
10
|
+
createdByUserType: "createdByUserType";
|
|
11
|
+
createdAt: "createdAt";
|
|
12
|
+
createdBy: "createdBy";
|
|
13
|
+
createdAtLocation: "createdAtLocation";
|
|
14
|
+
status: "status";
|
|
15
|
+
assignedTo: "assignedTo";
|
|
16
|
+
trackingId: "trackingId";
|
|
17
|
+
legalStatuses: "legalStatuses";
|
|
18
|
+
dateOfEvent: "dateOfEvent";
|
|
19
|
+
updatedByUserRole: "updatedByUserRole";
|
|
20
20
|
updatedAtLocation: "updatedAtLocation";
|
|
21
21
|
updatedBy: "updatedBy";
|
|
22
|
-
|
|
22
|
+
outbox: "outbox";
|
|
23
23
|
}>;
|
|
24
24
|
export type WorkqueueColumnKeys = z.infer<typeof WorkqueueColumnKeys>;
|
|
25
25
|
export declare const WorkqueueColumnValue: z.ZodObject<{
|
|
26
26
|
$event: z.ZodEnum<{
|
|
27
|
-
assignedTo: "assignedTo";
|
|
28
|
-
createdAt: "createdAt";
|
|
29
|
-
createdAtLocation: "createdAtLocation";
|
|
30
|
-
createdBy: "createdBy";
|
|
31
|
-
createdByUserType: "createdByUserType";
|
|
32
|
-
dateOfEvent: "dateOfEvent";
|
|
33
|
-
flags: "flags";
|
|
34
27
|
id: "id";
|
|
35
|
-
legalStatuses: "legalStatuses";
|
|
36
|
-
outbox: "outbox";
|
|
37
|
-
placeOfEvent: "placeOfEvent";
|
|
38
|
-
status: "status";
|
|
39
28
|
title: "title";
|
|
40
|
-
trackingId: "trackingId";
|
|
41
29
|
type: "type";
|
|
42
30
|
updatedAt: "updatedAt";
|
|
31
|
+
placeOfEvent: "placeOfEvent";
|
|
32
|
+
flags: "flags";
|
|
33
|
+
createdByUserType: "createdByUserType";
|
|
34
|
+
createdAt: "createdAt";
|
|
35
|
+
createdBy: "createdBy";
|
|
36
|
+
createdAtLocation: "createdAtLocation";
|
|
37
|
+
status: "status";
|
|
38
|
+
assignedTo: "assignedTo";
|
|
39
|
+
trackingId: "trackingId";
|
|
40
|
+
legalStatuses: "legalStatuses";
|
|
41
|
+
dateOfEvent: "dateOfEvent";
|
|
42
|
+
updatedByUserRole: "updatedByUserRole";
|
|
43
43
|
updatedAtLocation: "updatedAtLocation";
|
|
44
44
|
updatedBy: "updatedBy";
|
|
45
|
-
|
|
45
|
+
outbox: "outbox";
|
|
46
46
|
}>;
|
|
47
47
|
}, z.core.$strip>;
|
|
48
48
|
export type WorkqueueColumnValue = z.infer<typeof WorkqueueColumnValue>;
|
|
@@ -53,25 +53,25 @@ export declare const WorkqueueColumn: z.ZodObject<{
|
|
|
53
53
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
54
54
|
value: z.ZodObject<{
|
|
55
55
|
$event: z.ZodEnum<{
|
|
56
|
-
assignedTo: "assignedTo";
|
|
57
|
-
createdAt: "createdAt";
|
|
58
|
-
createdAtLocation: "createdAtLocation";
|
|
59
|
-
createdBy: "createdBy";
|
|
60
|
-
createdByUserType: "createdByUserType";
|
|
61
|
-
dateOfEvent: "dateOfEvent";
|
|
62
|
-
flags: "flags";
|
|
63
56
|
id: "id";
|
|
64
|
-
legalStatuses: "legalStatuses";
|
|
65
|
-
outbox: "outbox";
|
|
66
|
-
placeOfEvent: "placeOfEvent";
|
|
67
|
-
status: "status";
|
|
68
57
|
title: "title";
|
|
69
|
-
trackingId: "trackingId";
|
|
70
58
|
type: "type";
|
|
71
59
|
updatedAt: "updatedAt";
|
|
60
|
+
placeOfEvent: "placeOfEvent";
|
|
61
|
+
flags: "flags";
|
|
62
|
+
createdByUserType: "createdByUserType";
|
|
63
|
+
createdAt: "createdAt";
|
|
64
|
+
createdBy: "createdBy";
|
|
65
|
+
createdAtLocation: "createdAtLocation";
|
|
66
|
+
status: "status";
|
|
67
|
+
assignedTo: "assignedTo";
|
|
68
|
+
trackingId: "trackingId";
|
|
69
|
+
legalStatuses: "legalStatuses";
|
|
70
|
+
dateOfEvent: "dateOfEvent";
|
|
71
|
+
updatedByUserRole: "updatedByUserRole";
|
|
72
72
|
updatedAtLocation: "updatedAtLocation";
|
|
73
73
|
updatedBy: "updatedBy";
|
|
74
|
-
|
|
74
|
+
outbox: "outbox";
|
|
75
75
|
}>;
|
|
76
76
|
}, z.core.$strip>;
|
|
77
77
|
}, z.core.$strip>;
|
|
@@ -84,7 +84,7 @@ export declare function defineWorkqueuesColumns(workqueueColumns: WorkqueueColum
|
|
|
84
84
|
description: string;
|
|
85
85
|
};
|
|
86
86
|
value: {
|
|
87
|
-
$event: "
|
|
87
|
+
$event: "id" | "title" | "type" | "updatedAt" | "placeOfEvent" | "flags" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "status" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "outbox";
|
|
88
88
|
};
|
|
89
89
|
}[];
|
|
90
90
|
//# sourceMappingURL=WorkqueueColumnConfig.d.ts.map
|