@opencrvs/toolkit 2.0.0-rc.e25c39b → 2.0.0-rc.e290634
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/README.md +15 -0
- package/build.sh +3 -2
- package/dist/application-config/index.js +15 -5
- package/dist/cli.js +3252 -46
- package/dist/commons/api/router.d.ts +8 -0
- package/dist/commons/conditionals/conditionals.d.ts +3 -3
- package/dist/commons/events/AdvancedSearchConfig.d.ts +12 -0
- package/dist/commons/events/EventConfig.d.ts +2 -0
- package/dist/commons/events/EventIndex.d.ts +11 -0
- package/dist/commons/events/EventMetadata.d.ts +26 -0
- package/dist/commons/events/FieldConfig.d.ts +10 -0
- package/dist/commons/events/locations.d.ts +1 -0
- package/dist/commons/events/state/index.d.ts +8 -0
- package/dist/commons/events/state/utils.d.ts +9 -0
- package/dist/conditionals/index.js +10 -5
- package/dist/environment/custom-types.d.ts +33 -0
- package/dist/environment/custom-types.d.ts.map +1 -0
- package/dist/environment/custom-types.js +12 -0
- package/dist/environment/derived-variables.d.ts +134 -0
- package/dist/environment/derived-variables.d.ts.map +1 -0
- package/dist/environment/derived-variables.js +169 -0
- package/dist/environment/editor-questions.d.ts +4 -0
- package/dist/environment/editor-questions.d.ts.map +1 -0
- package/dist/environment/editor-questions.js +67 -0
- package/dist/environment/git.d.ts +5 -0
- package/dist/environment/git.d.ts.map +1 -0
- package/dist/environment/git.js +38 -0
- package/dist/environment/github.d.ts +26 -0
- package/dist/environment/github.d.ts.map +1 -0
- package/dist/environment/github.js +247 -0
- package/dist/environment/index.d.ts +5 -0
- package/dist/environment/index.d.ts.map +1 -0
- package/dist/environment/index.js +71 -0
- package/dist/environment/logger.d.ts +15 -0
- package/dist/environment/logger.d.ts.map +1 -0
- package/dist/environment/logger.js +25 -0
- package/dist/environment/manage-users.d.ts +11 -0
- package/dist/environment/manage-users.d.ts.map +1 -0
- package/dist/environment/manage-users.js +497 -0
- package/dist/environment/questions-helper.d.ts +15 -0
- package/dist/environment/questions-helper.d.ts.map +1 -0
- package/dist/environment/questions-helper.js +70 -0
- package/dist/environment/questions.d.ts +199 -0
- package/dist/environment/questions.d.ts.map +1 -0
- package/dist/environment/questions.js +412 -0
- package/dist/environment/setup-environment.d.ts +2 -0
- package/dist/environment/setup-environment.d.ts.map +1 -0
- package/dist/environment/setup-environment.js +794 -0
- package/dist/environment/ssh-keygen.d.ts +5 -0
- package/dist/environment/ssh-keygen.d.ts.map +1 -0
- package/dist/environment/ssh-keygen.js +21 -0
- package/dist/environment/swarm-to-k8s.d.ts +2 -0
- package/dist/environment/swarm-to-k8s.d.ts.map +1 -0
- package/dist/environment/swarm-to-k8s.js +173 -0
- package/dist/environment/templates.d.ts +27 -0
- package/dist/environment/templates.d.ts.map +1 -0
- package/dist/environment/templates.js +163 -0
- package/dist/environment/update-workflows.d.ts +2 -0
- package/dist/environment/update-workflows.d.ts.map +1 -0
- package/dist/environment/update-workflows.js +169 -0
- package/dist/environment/users.d.ts +2 -0
- package/dist/environment/users.d.ts.map +1 -0
- package/dist/environment/users.js +112 -0
- package/dist/environment/utils.d.ts +18 -0
- package/dist/environment/utils.d.ts.map +1 -0
- package/dist/environment/utils.js +100 -0
- package/dist/events/index.js +38 -5
- package/dist/migrations/v2.0/index.js +10 -5
- package/dist/notification/index.js +15 -5
- package/dist/scopes/index.d.ts +89 -1
- package/dist/scopes/index.js +10 -5
- package/dist/templates/charts-values/dependencies/values.override.yaml +4 -0
- package/dist/templates/charts-values/dependencies/values.yaml +83 -0
- package/dist/templates/charts-values/opencrvs-services/values.override.yaml +4 -0
- package/dist/templates/charts-values/opencrvs-services/values.yaml +81 -0
- package/dist/templates/charts-values/traefik/values.override.yaml +4 -0
- package/dist/templates/charts-values/traefik/values.yaml +115 -0
- package/dist/templates/inventory/inventory.template.yml +100 -0
- package/dist/templates/inventory/production.example.yml +77 -0
- package/dist/templates/inventory/qa.example.yml +48 -0
- package/opencrvs-toolkit-2.0.0-rc.e290634.tgz +0 -0
- package/package.json +15 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-2.0.0-rc.e25c39b.tgz +0 -0
|
@@ -6749,6 +6749,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6749
6749
|
type: string;
|
|
6750
6750
|
status: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
|
|
6751
6751
|
legalStatuses: {
|
|
6752
|
+
NOTIFIED?: {
|
|
6753
|
+
createdAt: string;
|
|
6754
|
+
createdBy: string;
|
|
6755
|
+
acceptedAt: string;
|
|
6756
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
6757
|
+
createdByUserType?: "system" | "user" | null | undefined;
|
|
6758
|
+
createdByRole?: string | undefined;
|
|
6759
|
+
} | null | undefined;
|
|
6752
6760
|
DECLARED?: {
|
|
6753
6761
|
createdAt: string;
|
|
6754
6762
|
createdBy: string;
|
|
@@ -94,16 +94,16 @@ export declare const user: typeof userSerializer & {
|
|
|
94
94
|
scope: (scope: import("../scopes").ScopeType) => {
|
|
95
95
|
attribute: (option: import("../scopes").ScopeOptionKey) => {
|
|
96
96
|
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
97
|
-
$option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
97
|
+
$option: "role" | "event" | "placeOfEvent" | "notifiedIn" | "notifiedBy" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
98
98
|
};
|
|
99
99
|
};
|
|
100
100
|
jurisdiction: (jurisdiction: import("../scopes").JurisdictionFilter | {
|
|
101
101
|
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
102
|
-
$option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
102
|
+
$option: "role" | "event" | "placeOfEvent" | "notifiedIn" | "notifiedBy" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
103
103
|
}) => {
|
|
104
104
|
$jurisdiction: "administrativeArea" | "location" | "all" | {
|
|
105
105
|
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
106
|
-
$option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
106
|
+
$option: "role" | "event" | "placeOfEvent" | "notifiedIn" | "notifiedBy" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
107
107
|
};
|
|
108
108
|
};
|
|
109
109
|
};
|
|
@@ -139,6 +139,8 @@ export declare const FieldConfigSchema: z.ZodObject<{
|
|
|
139
139
|
role: "role";
|
|
140
140
|
event: "event";
|
|
141
141
|
placeOfEvent: "placeOfEvent";
|
|
142
|
+
notifiedIn: "notifiedIn";
|
|
143
|
+
notifiedBy: "notifiedBy";
|
|
142
144
|
declaredIn: "declaredIn";
|
|
143
145
|
declaredBy: "declaredBy";
|
|
144
146
|
registeredIn: "registeredIn";
|
|
@@ -316,6 +318,8 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
|
|
|
316
318
|
role: "role";
|
|
317
319
|
event: "event";
|
|
318
320
|
placeOfEvent: "placeOfEvent";
|
|
321
|
+
notifiedIn: "notifiedIn";
|
|
322
|
+
notifiedBy: "notifiedBy";
|
|
319
323
|
declaredIn: "declaredIn";
|
|
320
324
|
declaredBy: "declaredBy";
|
|
321
325
|
registeredIn: "registeredIn";
|
|
@@ -469,6 +473,8 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
469
473
|
role: "role";
|
|
470
474
|
event: "event";
|
|
471
475
|
placeOfEvent: "placeOfEvent";
|
|
476
|
+
notifiedIn: "notifiedIn";
|
|
477
|
+
notifiedBy: "notifiedBy";
|
|
472
478
|
declaredIn: "declaredIn";
|
|
473
479
|
declaredBy: "declaredBy";
|
|
474
480
|
registeredIn: "registeredIn";
|
|
@@ -614,6 +620,8 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
614
620
|
role: "role";
|
|
615
621
|
event: "event";
|
|
616
622
|
placeOfEvent: "placeOfEvent";
|
|
623
|
+
notifiedIn: "notifiedIn";
|
|
624
|
+
notifiedBy: "notifiedBy";
|
|
617
625
|
declaredIn: "declaredIn";
|
|
618
626
|
declaredBy: "declaredBy";
|
|
619
627
|
registeredIn: "registeredIn";
|
|
@@ -770,6 +778,8 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
770
778
|
role: "role";
|
|
771
779
|
event: "event";
|
|
772
780
|
placeOfEvent: "placeOfEvent";
|
|
781
|
+
notifiedIn: "notifiedIn";
|
|
782
|
+
notifiedBy: "notifiedBy";
|
|
773
783
|
declaredIn: "declaredIn";
|
|
774
784
|
declaredBy: "declaredBy";
|
|
775
785
|
registeredIn: "registeredIn";
|
|
@@ -915,6 +925,8 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
915
925
|
role: "role";
|
|
916
926
|
event: "event";
|
|
917
927
|
placeOfEvent: "placeOfEvent";
|
|
928
|
+
notifiedIn: "notifiedIn";
|
|
929
|
+
notifiedBy: "notifiedBy";
|
|
918
930
|
declaredIn: "declaredIn";
|
|
919
931
|
declaredBy: "declaredBy";
|
|
920
932
|
registeredIn: "registeredIn";
|
|
@@ -10,6 +10,8 @@ export declare const EventFieldReference: z.ZodObject<{
|
|
|
10
10
|
$$event: z.ZodEnum<{
|
|
11
11
|
updatedAt: "updatedAt";
|
|
12
12
|
createdAt: "createdAt";
|
|
13
|
+
"legalStatuses.NOTIFIED.createdAt": "legalStatuses.NOTIFIED.createdAt";
|
|
14
|
+
"legalStatuses.NOTIFIED.acceptedAt": "legalStatuses.NOTIFIED.acceptedAt";
|
|
13
15
|
"legalStatuses.DECLARED.createdAt": "legalStatuses.DECLARED.createdAt";
|
|
14
16
|
"legalStatuses.DECLARED.acceptedAt": "legalStatuses.DECLARED.acceptedAt";
|
|
15
17
|
"legalStatuses.REGISTERED.createdAt": "legalStatuses.REGISTERED.createdAt";
|
|
@@ -10,6 +10,17 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
10
10
|
ARCHIVED: "ARCHIVED";
|
|
11
11
|
}>;
|
|
12
12
|
legalStatuses: z.ZodObject<{
|
|
13
|
+
NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
14
|
+
createdAt: z.ZodISODateTime;
|
|
15
|
+
createdBy: z.ZodString;
|
|
16
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
17
|
+
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
18
|
+
user: "user";
|
|
19
|
+
system: "system";
|
|
20
|
+
}>>>;
|
|
21
|
+
acceptedAt: z.ZodISODateTime;
|
|
22
|
+
createdByRole: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>>>;
|
|
13
24
|
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
14
25
|
createdAt: z.ZodISODateTime;
|
|
15
26
|
createdBy: z.ZodString;
|
|
@@ -39,6 +39,17 @@ export declare const RegistrationCreationMetadata: z.ZodObject<{
|
|
|
39
39
|
}, z.core.$strip>;
|
|
40
40
|
export type RegistrationCreationMetadata = z.infer<typeof RegistrationCreationMetadata>;
|
|
41
41
|
export declare const LegalStatuses: z.ZodObject<{
|
|
42
|
+
NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
43
|
+
createdAt: z.ZodISODateTime;
|
|
44
|
+
createdBy: z.ZodString;
|
|
45
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
46
|
+
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
47
|
+
user: "user";
|
|
48
|
+
system: "system";
|
|
49
|
+
}>>>;
|
|
50
|
+
acceptedAt: z.ZodISODateTime;
|
|
51
|
+
createdByRole: z.ZodOptional<z.ZodString>;
|
|
52
|
+
}, z.core.$strip>>>;
|
|
42
53
|
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
43
54
|
createdAt: z.ZodISODateTime;
|
|
44
55
|
createdBy: z.ZodString;
|
|
@@ -79,6 +90,17 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
79
90
|
ARCHIVED: "ARCHIVED";
|
|
80
91
|
}>;
|
|
81
92
|
legalStatuses: z.ZodObject<{
|
|
93
|
+
NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
94
|
+
createdAt: z.ZodISODateTime;
|
|
95
|
+
createdBy: z.ZodString;
|
|
96
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
97
|
+
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
98
|
+
user: "user";
|
|
99
|
+
system: "system";
|
|
100
|
+
}>>>;
|
|
101
|
+
acceptedAt: z.ZodISODateTime;
|
|
102
|
+
createdByRole: z.ZodOptional<z.ZodString>;
|
|
103
|
+
}, z.core.$strip>>>;
|
|
82
104
|
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
83
105
|
createdAt: z.ZodISODateTime;
|
|
84
106
|
createdBy: z.ZodString;
|
|
@@ -161,6 +183,8 @@ export declare const eventMetadataLabelMap: Record<Exclude<`event.${EventMetadat
|
|
|
161
183
|
export declare const EventMetadataDateFieldIdInput: z.ZodEnum<{
|
|
162
184
|
updatedAt: "updatedAt";
|
|
163
185
|
createdAt: "createdAt";
|
|
186
|
+
"legalStatuses.NOTIFIED.createdAt": "legalStatuses.NOTIFIED.createdAt";
|
|
187
|
+
"legalStatuses.NOTIFIED.acceptedAt": "legalStatuses.NOTIFIED.acceptedAt";
|
|
164
188
|
"legalStatuses.DECLARED.createdAt": "legalStatuses.DECLARED.createdAt";
|
|
165
189
|
"legalStatuses.DECLARED.acceptedAt": "legalStatuses.DECLARED.acceptedAt";
|
|
166
190
|
"legalStatuses.REGISTERED.createdAt": "legalStatuses.REGISTERED.createdAt";
|
|
@@ -170,6 +194,8 @@ export type EventMetadataDateFieldIdInput = z.infer<typeof EventMetadataDateFiel
|
|
|
170
194
|
export declare const EventMetadataDateFieldId: z.ZodEnum<{
|
|
171
195
|
"event.updatedAt": "event.updatedAt";
|
|
172
196
|
"event.createdAt": "event.createdAt";
|
|
197
|
+
"event.legalStatuses.NOTIFIED.createdAt": "event.legalStatuses.NOTIFIED.createdAt";
|
|
198
|
+
"event.legalStatuses.NOTIFIED.acceptedAt": "event.legalStatuses.NOTIFIED.acceptedAt";
|
|
173
199
|
"event.legalStatuses.DECLARED.createdAt": "event.legalStatuses.DECLARED.createdAt";
|
|
174
200
|
"event.legalStatuses.DECLARED.acceptedAt": "event.legalStatuses.DECLARED.acceptedAt";
|
|
175
201
|
"event.legalStatuses.REGISTERED.createdAt": "event.legalStatuses.REGISTERED.createdAt";
|
|
@@ -1919,6 +1919,8 @@ declare const AdministrativeAreaField: z.ZodObject<{
|
|
|
1919
1919
|
role: "role";
|
|
1920
1920
|
event: "event";
|
|
1921
1921
|
placeOfEvent: "placeOfEvent";
|
|
1922
|
+
notifiedIn: "notifiedIn";
|
|
1923
|
+
notifiedBy: "notifiedBy";
|
|
1922
1924
|
declaredIn: "declaredIn";
|
|
1923
1925
|
declaredBy: "declaredBy";
|
|
1924
1926
|
registeredIn: "registeredIn";
|
|
@@ -2045,6 +2047,8 @@ declare const LocationInput: z.ZodObject<{
|
|
|
2045
2047
|
role: "role";
|
|
2046
2048
|
event: "event";
|
|
2047
2049
|
placeOfEvent: "placeOfEvent";
|
|
2050
|
+
notifiedIn: "notifiedIn";
|
|
2051
|
+
notifiedBy: "notifiedBy";
|
|
2048
2052
|
declaredIn: "declaredIn";
|
|
2049
2053
|
declaredBy: "declaredBy";
|
|
2050
2054
|
registeredIn: "registeredIn";
|
|
@@ -2242,6 +2246,8 @@ declare const Facility: z.ZodObject<{
|
|
|
2242
2246
|
role: "role";
|
|
2243
2247
|
event: "event";
|
|
2244
2248
|
placeOfEvent: "placeOfEvent";
|
|
2249
|
+
notifiedIn: "notifiedIn";
|
|
2250
|
+
notifiedBy: "notifiedBy";
|
|
2245
2251
|
declaredIn: "declaredIn";
|
|
2246
2252
|
declaredBy: "declaredBy";
|
|
2247
2253
|
registeredIn: "registeredIn";
|
|
@@ -2354,6 +2360,8 @@ declare const Office: z.ZodObject<{
|
|
|
2354
2360
|
role: "role";
|
|
2355
2361
|
event: "event";
|
|
2356
2362
|
placeOfEvent: "placeOfEvent";
|
|
2363
|
+
notifiedIn: "notifiedIn";
|
|
2364
|
+
notifiedBy: "notifiedBy";
|
|
2357
2365
|
declaredIn: "declaredIn";
|
|
2358
2366
|
declaredBy: "declaredBy";
|
|
2359
2367
|
registeredIn: "registeredIn";
|
|
@@ -2552,6 +2560,8 @@ declare const Address: z.ZodObject<{
|
|
|
2552
2560
|
role: "role";
|
|
2553
2561
|
event: "event";
|
|
2554
2562
|
placeOfEvent: "placeOfEvent";
|
|
2563
|
+
notifiedIn: "notifiedIn";
|
|
2564
|
+
notifiedBy: "notifiedBy";
|
|
2555
2565
|
declaredIn: "declaredIn";
|
|
2556
2566
|
declaredBy: "declaredBy";
|
|
2557
2567
|
registeredIn: "registeredIn";
|
|
@@ -40,6 +40,7 @@ type ToArrayFields<T, K extends PropertyKey> = T extends unknown ? T extends obj
|
|
|
40
40
|
*/
|
|
41
41
|
export type EventIndexWithAdministrativeHierarchy = Omit<ToArrayFields<EventIndex, 'createdAtLocation' | 'updatedAtLocation' | 'placeOfEvent'>, 'legalStatuses'> & {
|
|
42
42
|
legalStatuses: {
|
|
43
|
+
NOTIFIED: ToArrayFields<ActionCreationMetadata, 'createdAtLocation'> | undefined;
|
|
43
44
|
DECLARED: ToArrayFields<ActionCreationMetadata, 'createdAtLocation'> | undefined;
|
|
44
45
|
REGISTERED: ToArrayFields<RegistrationCreationMetadata, 'createdAtLocation'> | undefined;
|
|
45
46
|
};
|
|
@@ -65,6 +65,14 @@ export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Dr
|
|
|
65
65
|
type: string;
|
|
66
66
|
status: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
|
|
67
67
|
legalStatuses: {
|
|
68
|
+
NOTIFIED?: {
|
|
69
|
+
createdAt: string;
|
|
70
|
+
createdBy: string;
|
|
71
|
+
acceptedAt: string;
|
|
72
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
73
|
+
createdByUserType?: "user" | "system" | null | undefined;
|
|
74
|
+
createdByRole?: string | undefined;
|
|
75
|
+
} | null | undefined;
|
|
68
76
|
DECLARED?: {
|
|
69
77
|
createdAt: string;
|
|
70
78
|
createdBy: string;
|
|
@@ -30,6 +30,15 @@ export declare function getActionUpdateMetadata(actions: Action[]): Pick<{
|
|
|
30
30
|
* @see EventIndex for the description of the returned object.
|
|
31
31
|
*/
|
|
32
32
|
export declare function getLegalStatuses(actions: Action[]): {
|
|
33
|
+
NOTIFIED: {
|
|
34
|
+
createdAt: string;
|
|
35
|
+
createdBy: string;
|
|
36
|
+
createdByUserType: "user" | "system";
|
|
37
|
+
createdAtLocation: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
38
|
+
acceptedAt: string;
|
|
39
|
+
createdByRole: string | undefined;
|
|
40
|
+
registrationNumber: string | null | undefined;
|
|
41
|
+
} | null;
|
|
33
42
|
DECLARED: {
|
|
34
43
|
createdAt: string;
|
|
35
44
|
createdBy: string;
|
|
@@ -191,11 +191,13 @@ var scopeOptionsPlaceEvent = z6.object({
|
|
|
191
191
|
event: scopeByEvent,
|
|
192
192
|
placeOfEvent: JurisdictionFilter.optional()
|
|
193
193
|
}).describe("Options applicable to all record scopes.");
|
|
194
|
-
var
|
|
194
|
+
var scopeOptionsDeclaredOrNotified = scopeOptionsPlaceEvent.extend({
|
|
195
|
+
notifiedIn: JurisdictionFilter.optional(),
|
|
196
|
+
notifiedBy: UserFilter.optional(),
|
|
195
197
|
declaredIn: JurisdictionFilter.optional(),
|
|
196
198
|
declaredBy: UserFilter.optional()
|
|
197
199
|
}).describe("Options applicable to actions that may take place after DECLARE");
|
|
198
|
-
var AllRecordScopeOptions =
|
|
200
|
+
var AllRecordScopeOptions = scopeOptionsDeclaredOrNotified.extend({
|
|
199
201
|
registeredIn: JurisdictionFilter.optional(),
|
|
200
202
|
registeredBy: UserFilter.optional()
|
|
201
203
|
}).describe(
|
|
@@ -233,6 +235,8 @@ var ResolvedScopeOptionsPlaceEvent = z6.object({
|
|
|
233
235
|
"Resolved options applicable to all record scopes, with location ID instead of jurisdiction filter."
|
|
234
236
|
);
|
|
235
237
|
var ResolvedScopeOptionsDeclared = ResolvedScopeOptionsPlaceEvent.extend({
|
|
238
|
+
notifiedIn: UUID.nullish(),
|
|
239
|
+
notifiedBy: z6.string().optional(),
|
|
236
240
|
declaredIn: UUID.nullish(),
|
|
237
241
|
declaredBy: z6.string().optional()
|
|
238
242
|
}).describe(
|
|
@@ -278,7 +282,7 @@ var RecordScopeV2 = z6.discriminatedUnion("type", [
|
|
|
278
282
|
}),
|
|
279
283
|
z6.object({
|
|
280
284
|
type: ScopesWithDeclaredOptions,
|
|
281
|
-
options:
|
|
285
|
+
options: scopeOptionsDeclaredOrNotified.optional()
|
|
282
286
|
}),
|
|
283
287
|
z6.object({
|
|
284
288
|
type: ScopesWithFullOptions,
|
|
@@ -367,8 +371,9 @@ var EncodedScope2 = z6.string().brand("EncodedScope");
|
|
|
367
371
|
var DEFAULT_SCOPE_OPTIONS = {
|
|
368
372
|
placeOfEvent: JurisdictionFilter.enum.all,
|
|
369
373
|
accessLevel: JurisdictionFilter.enum.all,
|
|
370
|
-
|
|
371
|
-
declaredIn: JurisdictionFilter.enum.all
|
|
374
|
+
notifiedIn: JurisdictionFilter.enum.all,
|
|
375
|
+
declaredIn: JurisdictionFilter.enum.all,
|
|
376
|
+
registeredIn: JurisdictionFilter.enum.all
|
|
372
377
|
};
|
|
373
378
|
|
|
374
379
|
// ../commons/src/users/userReferences.ts
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { PromptObject } from 'prompts';
|
|
2
|
+
import { Secret, Variable } from './github';
|
|
3
|
+
export type Question<T extends string> = PromptObject<T> & {
|
|
4
|
+
name: T;
|
|
5
|
+
valueType?: 'SECRET' | 'VARIABLE';
|
|
6
|
+
scope: 'ENVIRONMENT' | 'REPOSITORY';
|
|
7
|
+
valueLabel?: string;
|
|
8
|
+
};
|
|
9
|
+
export type QuestionDescriptor<T extends string> = Omit<Question<T>, 'type'> & {
|
|
10
|
+
type: 'disabled' | PromptObject<T>['type'];
|
|
11
|
+
};
|
|
12
|
+
export type SecretAnswer = {
|
|
13
|
+
type: 'SECRET';
|
|
14
|
+
scope: 'ENVIRONMENT' | 'REPOSITORY';
|
|
15
|
+
name: string;
|
|
16
|
+
value: string;
|
|
17
|
+
didExist: Secret | undefined;
|
|
18
|
+
};
|
|
19
|
+
export type VariableAnswer = {
|
|
20
|
+
type: 'VARIABLE';
|
|
21
|
+
name: string;
|
|
22
|
+
didExist: Variable | undefined;
|
|
23
|
+
value: string;
|
|
24
|
+
scope: 'ENVIRONMENT' | 'REPOSITORY';
|
|
25
|
+
};
|
|
26
|
+
export type Answer = SecretAnswer | VariableAnswer;
|
|
27
|
+
export type Answers = Answer[];
|
|
28
|
+
export type AnswerWithNullValue = (Omit<SecretAnswer, 'value'> & {
|
|
29
|
+
value: SecretAnswer['value'] | null;
|
|
30
|
+
}) | (Omit<VariableAnswer, 'value'> & {
|
|
31
|
+
value: VariableAnswer['value'] | null;
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=custom-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-types.d.ts","sourceRoot":"","sources":["../../src/environment/custom-types.ts"],"names":[],"mappings":"AAWA,OAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC/C,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAE3C,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,MAAM,IAAI,YAAY,CAAC,CAAC,CAAC,GAAG;IACzD,IAAI,EAAE,CAAC,CAAA;IACP,SAAS,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAA;IACjC,KAAK,EAAE,aAAa,GAAG,YAAY,CAAA;IACnC,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,MAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG;IAC7E,IAAI,EAAE,UAAU,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;CAC3C,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,QAAQ,CAAA;IACd,KAAK,EAAE,aAAa,GAAG,YAAY,CAAA;IACnC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,UAAU,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,aAAa,GAAG,YAAY,CAAA;CACpC,CAAA;AAED,MAAM,MAAM,MAAM,GAAG,YAAY,GAAG,cAAc,CAAA;AAClD,MAAM,MAAM,OAAO,GAAG,MAAM,EAAE,CAAA;AAC9B,MAAM,MAAM,mBAAmB,GAC3B,CAAC,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC,GAAG;IAC7B,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC,GAAG,IAAI,CAAA;CACpC,CAAC,GACF,CAAC,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,GAAG;IAC/B,KAAK,EAAE,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAA;CACtC,CAAC,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
6
|
+
*
|
|
7
|
+
* OpenCRVS is also distributed under the terms of the Civil Registration
|
|
8
|
+
* & Healthcare Disclaimer located at http://opencrvs.org/license.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (C) The OpenCRVS Authors located at https://github.com/opencrvs/opencrvs-core/blob/master/AUTHORS.
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
export declare const derivedVariables: readonly [{
|
|
2
|
+
readonly name: "ACTIVATE_USERS";
|
|
3
|
+
readonly valueLabel: "ACTIVATE_USERS";
|
|
4
|
+
readonly valueType: "VARIABLE";
|
|
5
|
+
readonly type: "disabled";
|
|
6
|
+
readonly scope: "ENVIRONMENT";
|
|
7
|
+
}, {
|
|
8
|
+
readonly name: "COUNTRY_CONFIG_HOST";
|
|
9
|
+
readonly valueLabel: "COUNTRY_CONFIG_HOST";
|
|
10
|
+
readonly valueType: "VARIABLE";
|
|
11
|
+
readonly type: "disabled";
|
|
12
|
+
readonly scope: "ENVIRONMENT";
|
|
13
|
+
}, {
|
|
14
|
+
readonly name: "GATEWAY_HOST";
|
|
15
|
+
readonly valueLabel: "GATEWAY_HOST";
|
|
16
|
+
readonly valueType: "VARIABLE";
|
|
17
|
+
readonly type: "disabled";
|
|
18
|
+
readonly scope: "ENVIRONMENT";
|
|
19
|
+
}, {
|
|
20
|
+
readonly name: "CONTENT_SECURITY_POLICY_WILDCARD";
|
|
21
|
+
readonly valueLabel: "CONTENT_SECURITY_POLICY_WILDCARD";
|
|
22
|
+
readonly valueType: "VARIABLE";
|
|
23
|
+
readonly type: "disabled";
|
|
24
|
+
readonly scope: "ENVIRONMENT";
|
|
25
|
+
}, {
|
|
26
|
+
readonly name: "CLIENT_APP_URL";
|
|
27
|
+
readonly valueLabel: "CLIENT_APP_URL";
|
|
28
|
+
readonly valueType: "VARIABLE";
|
|
29
|
+
readonly type: "disabled";
|
|
30
|
+
readonly scope: "ENVIRONMENT";
|
|
31
|
+
}, {
|
|
32
|
+
readonly name: "LOGIN_URL";
|
|
33
|
+
readonly valueLabel: "LOGIN_URL";
|
|
34
|
+
readonly valueType: "VARIABLE";
|
|
35
|
+
readonly type: "disabled";
|
|
36
|
+
readonly scope: "ENVIRONMENT";
|
|
37
|
+
}, {
|
|
38
|
+
readonly name: "ELASTICSEARCH_SUPERUSER_PASSWORD";
|
|
39
|
+
readonly valueLabel: "ELASTICSEARCH_SUPERUSER_PASSWORD";
|
|
40
|
+
readonly valueType: "SECRET";
|
|
41
|
+
readonly type: "disabled";
|
|
42
|
+
readonly scope: "ENVIRONMENT";
|
|
43
|
+
}, {
|
|
44
|
+
readonly name: "KIBANA_SYSTEM_PASSWORD";
|
|
45
|
+
readonly valueLabel: "KIBANA_SYSTEM_PASSWORD";
|
|
46
|
+
readonly valueType: "SECRET";
|
|
47
|
+
readonly type: "disabled";
|
|
48
|
+
readonly scope: "ENVIRONMENT";
|
|
49
|
+
}, {
|
|
50
|
+
readonly name: "MINIO_ROOT_USER";
|
|
51
|
+
readonly valueLabel: "MINIO_ROOT_USER";
|
|
52
|
+
readonly valueType: "SECRET";
|
|
53
|
+
readonly type: "disabled";
|
|
54
|
+
readonly scope: "ENVIRONMENT";
|
|
55
|
+
}, {
|
|
56
|
+
readonly name: "MINIO_ROOT_PASSWORD";
|
|
57
|
+
readonly valueLabel: "MINIO_ROOT_PASSWORD";
|
|
58
|
+
readonly valueType: "SECRET";
|
|
59
|
+
readonly type: "disabled";
|
|
60
|
+
readonly scope: "ENVIRONMENT";
|
|
61
|
+
}, {
|
|
62
|
+
readonly name: "MONGODB_ADMIN_USER";
|
|
63
|
+
readonly valueLabel: "MONGODB_ADMIN_USER";
|
|
64
|
+
readonly valueType: "SECRET";
|
|
65
|
+
readonly type: "disabled";
|
|
66
|
+
readonly scope: "ENVIRONMENT";
|
|
67
|
+
}, {
|
|
68
|
+
readonly name: "MONGODB_ADMIN_PASSWORD";
|
|
69
|
+
readonly valueLabel: "MONGODB_ADMIN_PASSWORD";
|
|
70
|
+
readonly valueType: "SECRET";
|
|
71
|
+
readonly type: "disabled";
|
|
72
|
+
readonly scope: "ENVIRONMENT";
|
|
73
|
+
}, {
|
|
74
|
+
readonly name: "POSTGRES_USER";
|
|
75
|
+
readonly valueLabel: "POSTGRES_USER";
|
|
76
|
+
readonly valueType: "SECRET";
|
|
77
|
+
readonly type: "disabled";
|
|
78
|
+
readonly scope: "ENVIRONMENT";
|
|
79
|
+
}, {
|
|
80
|
+
readonly name: "POSTGRES_PASSWORD";
|
|
81
|
+
readonly valueLabel: "POSTGRES_PASSWORD";
|
|
82
|
+
readonly valueType: "SECRET";
|
|
83
|
+
readonly type: "disabled";
|
|
84
|
+
readonly scope: "ENVIRONMENT";
|
|
85
|
+
}, {
|
|
86
|
+
readonly name: "SUPER_USER_PASSWORD";
|
|
87
|
+
readonly valueLabel: "SUPER_USER_PASSWORD";
|
|
88
|
+
readonly valueType: "SECRET";
|
|
89
|
+
readonly type: "disabled";
|
|
90
|
+
readonly scope: "ENVIRONMENT";
|
|
91
|
+
}, {
|
|
92
|
+
readonly name: "ENCRYPTION_KEY";
|
|
93
|
+
readonly valueLabel: "ENCRYPTION_KEY";
|
|
94
|
+
readonly valueType: "SECRET";
|
|
95
|
+
readonly type: "disabled";
|
|
96
|
+
readonly scope: "ENVIRONMENT";
|
|
97
|
+
}, {
|
|
98
|
+
readonly name: "GH_ENCRYPTION_PASSWORD";
|
|
99
|
+
readonly valueLabel: "GH_ENCRYPTION_PASSWORD";
|
|
100
|
+
readonly valueType: "SECRET";
|
|
101
|
+
readonly type: "disabled";
|
|
102
|
+
readonly scope: "REPOSITORY";
|
|
103
|
+
}, {
|
|
104
|
+
readonly name: "BACKUP_ENCRYPTION_PASSPHRASE";
|
|
105
|
+
readonly valueLabel: "BACKUP_ENCRYPTION_PASSPHRASE";
|
|
106
|
+
readonly valueType: "SECRET";
|
|
107
|
+
readonly type: "disabled";
|
|
108
|
+
readonly scope: "ENVIRONMENT";
|
|
109
|
+
}, {
|
|
110
|
+
readonly name: "BACKUP_HOST_PRIVATE_KEY";
|
|
111
|
+
readonly valueLabel: "BACKUP_HOST_PRIVATE_KEY";
|
|
112
|
+
readonly valueType: "SECRET";
|
|
113
|
+
readonly type: "disabled";
|
|
114
|
+
readonly scope: "ENVIRONMENT";
|
|
115
|
+
}, {
|
|
116
|
+
readonly name: "BACKUP_HOST_PUBLIC_KEY";
|
|
117
|
+
readonly valueLabel: "BACKUP_HOST_PUBLIC_KEY";
|
|
118
|
+
readonly valueType: "SECRET";
|
|
119
|
+
readonly type: "disabled";
|
|
120
|
+
readonly scope: "ENVIRONMENT";
|
|
121
|
+
}, {
|
|
122
|
+
readonly name: "RESTORE_ENVIRONMENT_NAME";
|
|
123
|
+
readonly valueLabel: "RESTORE_ENVIRONMENT_NAME";
|
|
124
|
+
readonly valueType: "VARIABLE";
|
|
125
|
+
readonly type: "disabled";
|
|
126
|
+
readonly scope: "ENVIRONMENT";
|
|
127
|
+
}, {
|
|
128
|
+
readonly name: "NOTIFICATION_TRANSPORT";
|
|
129
|
+
readonly valueLabel: "NOTIFICATION_TRANSPORT";
|
|
130
|
+
readonly valueType: "VARIABLE";
|
|
131
|
+
readonly type: "disabled";
|
|
132
|
+
readonly scope: "ENVIRONMENT";
|
|
133
|
+
}];
|
|
134
|
+
//# sourceMappingURL=derived-variables.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"derived-variables.d.ts","sourceRoot":"","sources":["../../src/environment/derived-variables.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2JnB,CAAA"}
|