@opencrvs/toolkit 2.1.0-rc.08b7255 → 2.1.0-rc.08dfbd7
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 +1 -0
- package/dist/application-config/index.js +1 -0
- package/dist/cli.js +174 -58
- package/dist/commons/api/router.d.ts +111 -7
- package/dist/commons/conditionals/conditionals.d.ts +3 -3
- package/dist/commons/events/AdvancedSearchConfig.d.ts +6 -0
- package/dist/commons/events/AuditLog.d.ts +37 -0
- package/dist/commons/events/FieldConfig.d.ts +5 -0
- package/dist/commons/events/index.d.ts +1 -0
- package/dist/commons/events/locationPayloads.d.ts +95 -0
- package/dist/commons/events/locations.d.ts +100 -3
- package/dist/commons/events/mocks.test.utils.d.ts +16 -2
- package/dist/commons/events/test.utils.d.ts +5 -5
- package/dist/conditionals/index.js +1 -0
- package/dist/environment/index.d.ts +1 -0
- package/dist/environment/index.d.ts.map +1 -1
- package/dist/environment/index.js +10 -0
- package/dist/environment/paths.d.ts +7 -0
- package/dist/environment/paths.d.ts.map +1 -0
- package/dist/environment/paths.js +72 -0
- package/dist/environment/setup-environment.js +2 -1
- package/dist/environment/templates.d.ts.map +1 -1
- package/dist/environment/templates.js +2 -1
- package/dist/environment/update-workflows.d.ts.map +1 -1
- package/dist/environment/update-workflows.js +17 -5
- package/dist/environment/upgrade.d.ts +2 -0
- package/dist/environment/upgrade.d.ts.map +1 -0
- package/dist/environment/upgrade.js +82 -0
- package/dist/environment/users.js +11 -13
- package/dist/events/index.js +147 -52
- package/dist/notification/index.js +144 -77
- package/dist/scopes/index.d.ts +3 -1
- package/dist/scopes/index.js +1 -0
- package/opencrvs-toolkit-2.1.0-rc.08dfbd7.tgz +0 -0
- package/package.json +3 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-2.1.0-rc.08b7255.tgz +0 -0
|
@@ -85,16 +85,16 @@ export declare const now: typeof todayDateTimeValueSerializer;
|
|
|
85
85
|
export declare const user: typeof userSerializer & {
|
|
86
86
|
scope: (scope: import("../scopes").ScopeType) => {
|
|
87
87
|
attribute: (option: import("../scopes").ScopeOptionKey) => {
|
|
88
|
-
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.create" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.archive" | "record.confirm-registration" | "record.correct" | "record.create" | "record.custom-action" | "record.declare" | "record.edit" | "record.import" | "record.notify" | "record.print-certified-copies" | "record.read" | "record.register" | "record.reindex" | "record.reject" | "record.reject-registration" | "record.request-correction" | "record.review-duplicates" | "record.search" | "record.unarchive" | "record.unassign-others" | "user.create" | "user.data-seeding" | "user.edit" | "user.read" | "user.read-only-my-audit" | "user.search" | "workqueue";
|
|
88
|
+
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.create" | "location.edit" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.archive" | "record.confirm-registration" | "record.correct" | "record.create" | "record.custom-action" | "record.declare" | "record.edit" | "record.import" | "record.notify" | "record.print-certified-copies" | "record.read" | "record.register" | "record.reindex" | "record.reject" | "record.reject-registration" | "record.request-correction" | "record.review-duplicates" | "record.search" | "record.unarchive" | "record.unassign-others" | "user.create" | "user.data-seeding" | "user.edit" | "user.read" | "user.read-only-my-audit" | "user.search" | "workqueue";
|
|
89
89
|
$option: "accessLevel" | "declaredBy" | "declaredIn" | "event" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role";
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
92
|
jurisdiction: (jurisdiction: import("../scopes").JurisdictionFilter | {
|
|
93
|
-
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.create" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.archive" | "record.confirm-registration" | "record.correct" | "record.create" | "record.custom-action" | "record.declare" | "record.edit" | "record.import" | "record.notify" | "record.print-certified-copies" | "record.read" | "record.register" | "record.reindex" | "record.reject" | "record.reject-registration" | "record.request-correction" | "record.review-duplicates" | "record.search" | "record.unarchive" | "record.unassign-others" | "user.create" | "user.data-seeding" | "user.edit" | "user.read" | "user.read-only-my-audit" | "user.search" | "workqueue";
|
|
93
|
+
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.create" | "location.edit" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.archive" | "record.confirm-registration" | "record.correct" | "record.create" | "record.custom-action" | "record.declare" | "record.edit" | "record.import" | "record.notify" | "record.print-certified-copies" | "record.read" | "record.register" | "record.reindex" | "record.reject" | "record.reject-registration" | "record.request-correction" | "record.review-duplicates" | "record.search" | "record.unarchive" | "record.unassign-others" | "user.create" | "user.data-seeding" | "user.edit" | "user.read" | "user.read-only-my-audit" | "user.search" | "workqueue";
|
|
94
94
|
$option: "accessLevel" | "declaredBy" | "declaredIn" | "event" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role";
|
|
95
95
|
}) => {
|
|
96
96
|
$jurisdiction: "administrativeArea" | "all" | "location" | {
|
|
97
|
-
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.create" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.archive" | "record.confirm-registration" | "record.correct" | "record.create" | "record.custom-action" | "record.declare" | "record.edit" | "record.import" | "record.notify" | "record.print-certified-copies" | "record.read" | "record.register" | "record.reindex" | "record.reject" | "record.reject-registration" | "record.request-correction" | "record.review-duplicates" | "record.search" | "record.unarchive" | "record.unassign-others" | "user.create" | "user.data-seeding" | "user.edit" | "user.read" | "user.read-only-my-audit" | "user.search" | "workqueue";
|
|
97
|
+
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.create" | "location.edit" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.archive" | "record.confirm-registration" | "record.correct" | "record.create" | "record.custom-action" | "record.declare" | "record.edit" | "record.import" | "record.notify" | "record.print-certified-copies" | "record.read" | "record.register" | "record.reindex" | "record.reject" | "record.reject-registration" | "record.request-correction" | "record.review-duplicates" | "record.search" | "record.unarchive" | "record.unassign-others" | "user.create" | "user.data-seeding" | "user.edit" | "user.read" | "user.read-only-my-audit" | "user.search" | "workqueue";
|
|
98
98
|
$option: "accessLevel" | "declaredBy" | "declaredIn" | "event" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role";
|
|
99
99
|
};
|
|
100
100
|
};
|
|
@@ -103,6 +103,7 @@ export declare const FieldConfigSchema: z.ZodObject<{
|
|
|
103
103
|
"config.update-all": "config.update-all";
|
|
104
104
|
"dashboard.view": "dashboard.view";
|
|
105
105
|
"integration.create": "integration.create";
|
|
106
|
+
"location.edit": "location.edit";
|
|
106
107
|
"organisation.read-locations": "organisation.read-locations";
|
|
107
108
|
"performance.read": "performance.read";
|
|
108
109
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -283,6 +284,7 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
|
|
|
283
284
|
"config.update-all": "config.update-all";
|
|
284
285
|
"dashboard.view": "dashboard.view";
|
|
285
286
|
"integration.create": "integration.create";
|
|
287
|
+
"location.edit": "location.edit";
|
|
286
288
|
"organisation.read-locations": "organisation.read-locations";
|
|
287
289
|
"performance.read": "performance.read";
|
|
288
290
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -439,6 +441,7 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
439
441
|
"config.update-all": "config.update-all";
|
|
440
442
|
"dashboard.view": "dashboard.view";
|
|
441
443
|
"integration.create": "integration.create";
|
|
444
|
+
"location.edit": "location.edit";
|
|
442
445
|
"organisation.read-locations": "organisation.read-locations";
|
|
443
446
|
"performance.read": "performance.read";
|
|
444
447
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -587,6 +590,7 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
587
590
|
"config.update-all": "config.update-all";
|
|
588
591
|
"dashboard.view": "dashboard.view";
|
|
589
592
|
"integration.create": "integration.create";
|
|
593
|
+
"location.edit": "location.edit";
|
|
590
594
|
"organisation.read-locations": "organisation.read-locations";
|
|
591
595
|
"performance.read": "performance.read";
|
|
592
596
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -746,6 +750,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
746
750
|
"config.update-all": "config.update-all";
|
|
747
751
|
"dashboard.view": "dashboard.view";
|
|
748
752
|
"integration.create": "integration.create";
|
|
753
|
+
"location.edit": "location.edit";
|
|
749
754
|
"organisation.read-locations": "organisation.read-locations";
|
|
750
755
|
"performance.read": "performance.read";
|
|
751
756
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -894,6 +899,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
894
899
|
"config.update-all": "config.update-all";
|
|
895
900
|
"dashboard.view": "dashboard.view";
|
|
896
901
|
"integration.create": "integration.create";
|
|
902
|
+
"location.edit": "location.edit";
|
|
897
903
|
"organisation.read-locations": "organisation.read-locations";
|
|
898
904
|
"performance.read": "performance.read";
|
|
899
905
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -281,6 +281,43 @@ export declare const AuditLogEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
281
281
|
responseSummary: z.ZodObject<{
|
|
282
282
|
clientId: z.ZodString;
|
|
283
283
|
}, z.core.$strip>;
|
|
284
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
285
|
+
id: z.ZodString;
|
|
286
|
+
clientId: z.ZodString;
|
|
287
|
+
clientType: z.ZodEnum<{
|
|
288
|
+
system: "system";
|
|
289
|
+
user: "user";
|
|
290
|
+
}>;
|
|
291
|
+
createdAt: z.ZodString;
|
|
292
|
+
operation: z.ZodLiteral<"locations.create">;
|
|
293
|
+
requestData: z.ZodObject<{
|
|
294
|
+
id: z.ZodString;
|
|
295
|
+
versionId: z.ZodString;
|
|
296
|
+
name: z.ZodString;
|
|
297
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
298
|
+
effectiveFrom: z.ZodString;
|
|
299
|
+
status: z.ZodString;
|
|
300
|
+
administrativeAreaId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
301
|
+
locationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
302
|
+
}, z.core.$strip>;
|
|
303
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
304
|
+
id: z.ZodString;
|
|
305
|
+
clientId: z.ZodString;
|
|
306
|
+
clientType: z.ZodEnum<{
|
|
307
|
+
system: "system";
|
|
308
|
+
user: "user";
|
|
309
|
+
}>;
|
|
310
|
+
createdAt: z.ZodString;
|
|
311
|
+
operation: z.ZodLiteral<"administrativeAreas.create">;
|
|
312
|
+
requestData: z.ZodObject<{
|
|
313
|
+
id: z.ZodString;
|
|
314
|
+
versionId: z.ZodString;
|
|
315
|
+
name: z.ZodString;
|
|
316
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
317
|
+
effectiveFrom: z.ZodString;
|
|
318
|
+
status: z.ZodString;
|
|
319
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
320
|
+
}, z.core.$strip>;
|
|
284
321
|
}, z.core.$strip>, z.ZodObject<{
|
|
285
322
|
id: z.ZodString;
|
|
286
323
|
clientId: z.ZodString;
|
|
@@ -1883,6 +1883,7 @@ declare const AdministrativeAreaField: z.ZodObject<{
|
|
|
1883
1883
|
"config.update-all": "config.update-all";
|
|
1884
1884
|
"dashboard.view": "dashboard.view";
|
|
1885
1885
|
"integration.create": "integration.create";
|
|
1886
|
+
"location.edit": "location.edit";
|
|
1886
1887
|
"organisation.read-locations": "organisation.read-locations";
|
|
1887
1888
|
"performance.read": "performance.read";
|
|
1888
1889
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -2012,6 +2013,7 @@ declare const LocationInput: z.ZodObject<{
|
|
|
2012
2013
|
"config.update-all": "config.update-all";
|
|
2013
2014
|
"dashboard.view": "dashboard.view";
|
|
2014
2015
|
"integration.create": "integration.create";
|
|
2016
|
+
"location.edit": "location.edit";
|
|
2015
2017
|
"organisation.read-locations": "organisation.read-locations";
|
|
2016
2018
|
"performance.read": "performance.read";
|
|
2017
2019
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -2212,6 +2214,7 @@ declare const Facility: z.ZodObject<{
|
|
|
2212
2214
|
"config.update-all": "config.update-all";
|
|
2213
2215
|
"dashboard.view": "dashboard.view";
|
|
2214
2216
|
"integration.create": "integration.create";
|
|
2217
|
+
"location.edit": "location.edit";
|
|
2215
2218
|
"organisation.read-locations": "organisation.read-locations";
|
|
2216
2219
|
"performance.read": "performance.read";
|
|
2217
2220
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -2327,6 +2330,7 @@ declare const Office: z.ZodObject<{
|
|
|
2327
2330
|
"config.update-all": "config.update-all";
|
|
2328
2331
|
"dashboard.view": "dashboard.view";
|
|
2329
2332
|
"integration.create": "integration.create";
|
|
2333
|
+
"location.edit": "location.edit";
|
|
2330
2334
|
"organisation.read-locations": "organisation.read-locations";
|
|
2331
2335
|
"performance.read": "performance.read";
|
|
2332
2336
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -2528,6 +2532,7 @@ declare const Address: z.ZodObject<{
|
|
|
2528
2532
|
"config.update-all": "config.update-all";
|
|
2529
2533
|
"dashboard.view": "dashboard.view";
|
|
2530
2534
|
"integration.create": "integration.create";
|
|
2535
|
+
"location.edit": "location.edit";
|
|
2531
2536
|
"organisation.read-locations": "organisation.read-locations";
|
|
2532
2537
|
"performance.read": "performance.read";
|
|
2533
2538
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -45,6 +45,7 @@ export * from './field';
|
|
|
45
45
|
export * from './Flag';
|
|
46
46
|
export * from './event';
|
|
47
47
|
export * from './locations';
|
|
48
|
+
export * from './locationPayloads';
|
|
48
49
|
export { UUID } from '../uuid';
|
|
49
50
|
export { DocumentPath } from '../documents';
|
|
50
51
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
/**
|
|
3
|
+
* Input payload for creating a location: the identity fields (parent and
|
|
4
|
+
* locationType are set once, immutable thereafter) plus the first version.
|
|
5
|
+
* `id` and `versionId` may be supplied by the caller for idempotent retries.
|
|
6
|
+
* `effectiveFrom` defaults to the beginning-of-time sentinel on the server.
|
|
7
|
+
*/
|
|
8
|
+
export declare const CreateLocationPayload: z.ZodObject<{
|
|
9
|
+
id: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
10
|
+
versionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
administrativeAreaId: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
14
|
+
locationType: z.ZodNullable<z.ZodString>;
|
|
15
|
+
effectiveFrom: z.ZodOptional<z.ZodISODate>;
|
|
16
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
17
|
+
active: "active";
|
|
18
|
+
inactive: "inactive";
|
|
19
|
+
}>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export type CreateLocationPayload = z.infer<typeof CreateLocationPayload>;
|
|
22
|
+
/**
|
|
23
|
+
* Input payload for appending a new version to a location. A full snapshot of
|
|
24
|
+
* every versioned field is required — omitted does not mean unchanged. The
|
|
25
|
+
* schema is strict: identity fields (`administrativeAreaId`, `locationType`)
|
|
26
|
+
* are rejected rather than ignored, as they cannot change. `lastVersionId`
|
|
27
|
+
* is the optimistic-concurrency check: it must be the id of the last element
|
|
28
|
+
* the caller observed. `effectiveFrom` defaults to today on the server;
|
|
29
|
+
* supply it explicitly for idempotent retries.
|
|
30
|
+
*/
|
|
31
|
+
export declare const UpdateLocationPayload: z.ZodObject<{
|
|
32
|
+
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
33
|
+
versionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
34
|
+
name: z.ZodString;
|
|
35
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
status: z.ZodEnum<{
|
|
37
|
+
active: "active";
|
|
38
|
+
inactive: "inactive";
|
|
39
|
+
}>;
|
|
40
|
+
effectiveFrom: z.ZodOptional<z.ZodISODate>;
|
|
41
|
+
lastVersionId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
42
|
+
}, z.core.$strict>;
|
|
43
|
+
export type UpdateLocationPayload = z.infer<typeof UpdateLocationPayload>;
|
|
44
|
+
/**
|
|
45
|
+
* Input payload for withdrawing a pending (future-dated) version element.
|
|
46
|
+
* Only elements whose `effectiveFrom` has not yet passed can be withdrawn.
|
|
47
|
+
*/
|
|
48
|
+
export declare const WithdrawLocationVersionPayload: z.ZodObject<{
|
|
49
|
+
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
50
|
+
versionId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
export type WithdrawLocationVersionPayload = z.infer<typeof WithdrawLocationVersionPayload>;
|
|
53
|
+
/**
|
|
54
|
+
* Administrative-area twin of {@link CreateLocationPayload}: `parentId`
|
|
55
|
+
* instead of `administrativeAreaId`, no `locationType`.
|
|
56
|
+
*/
|
|
57
|
+
export declare const CreateAdministrativeAreaPayload: z.ZodObject<{
|
|
58
|
+
id: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
59
|
+
versionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
60
|
+
name: z.ZodString;
|
|
61
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
+
parentId: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
63
|
+
effectiveFrom: z.ZodOptional<z.ZodISODate>;
|
|
64
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
65
|
+
active: "active";
|
|
66
|
+
inactive: "inactive";
|
|
67
|
+
}>>;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
export type CreateAdministrativeAreaPayload = z.infer<typeof CreateAdministrativeAreaPayload>;
|
|
70
|
+
/**
|
|
71
|
+
* Administrative-area twin of {@link UpdateLocationPayload} — strict for the
|
|
72
|
+
* same reason: the identity field (`parentId`) is rejected, not ignored.
|
|
73
|
+
*/
|
|
74
|
+
export declare const UpdateAdministrativeAreaPayload: z.ZodObject<{
|
|
75
|
+
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
76
|
+
versionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
77
|
+
name: z.ZodString;
|
|
78
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
|
+
status: z.ZodEnum<{
|
|
80
|
+
active: "active";
|
|
81
|
+
inactive: "inactive";
|
|
82
|
+
}>;
|
|
83
|
+
effectiveFrom: z.ZodOptional<z.ZodISODate>;
|
|
84
|
+
lastVersionId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
85
|
+
}, z.core.$strict>;
|
|
86
|
+
export type UpdateAdministrativeAreaPayload = z.infer<typeof UpdateAdministrativeAreaPayload>;
|
|
87
|
+
/**
|
|
88
|
+
* Administrative-area twin of {@link WithdrawLocationVersionPayload}.
|
|
89
|
+
*/
|
|
90
|
+
export declare const WithdrawAdministrativeAreaVersionPayload: z.ZodObject<{
|
|
91
|
+
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
92
|
+
versionId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
export type WithdrawAdministrativeAreaVersionPayload = z.infer<typeof WithdrawAdministrativeAreaVersionPayload>;
|
|
95
|
+
//# sourceMappingURL=locationPayloads.d.ts.map
|
|
@@ -11,12 +11,46 @@ export declare const LocationTypeV1: z.ZodEnum<{
|
|
|
11
11
|
HEALTH_FACILITY: "HEALTH_FACILITY";
|
|
12
12
|
}>;
|
|
13
13
|
export type LocationTypeV1 = z.infer<typeof LocationTypeV1>;
|
|
14
|
+
export declare const LocationStatus: z.ZodEnum<{
|
|
15
|
+
active: "active";
|
|
16
|
+
inactive: "inactive";
|
|
17
|
+
}>;
|
|
18
|
+
export type LocationStatus = z.infer<typeof LocationStatus>;
|
|
19
|
+
/**
|
|
20
|
+
* A single element of the append-only `versions` history of a location or
|
|
21
|
+
* administrative area. Versions are sorted ascending by `effectiveFrom`
|
|
22
|
+
* ('0001-01-01' is used as the beginning-of-time sentinel).
|
|
23
|
+
*/
|
|
24
|
+
export declare const LocationVersion: z.ZodObject<{
|
|
25
|
+
versionId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
26
|
+
effectiveFrom: z.ZodISODate;
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
status: z.ZodEnum<{
|
|
30
|
+
active: "active";
|
|
31
|
+
inactive: "inactive";
|
|
32
|
+
}>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export type LocationVersion = z.infer<typeof LocationVersion>;
|
|
14
35
|
export declare const AdministrativeArea: z.ZodObject<{
|
|
15
36
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
16
37
|
name: z.ZodString;
|
|
17
38
|
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
39
|
parentId: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
19
|
-
|
|
40
|
+
status: z.ZodEnum<{
|
|
41
|
+
active: "active";
|
|
42
|
+
inactive: "inactive";
|
|
43
|
+
}>;
|
|
44
|
+
versions: z.ZodArray<z.ZodObject<{
|
|
45
|
+
versionId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
46
|
+
effectiveFrom: z.ZodISODate;
|
|
47
|
+
name: z.ZodString;
|
|
48
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
status: z.ZodEnum<{
|
|
50
|
+
active: "active";
|
|
51
|
+
inactive: "inactive";
|
|
52
|
+
}>;
|
|
53
|
+
}, z.core.$strip>>;
|
|
20
54
|
}, z.core.$strip>;
|
|
21
55
|
export type AdministrativeArea = z.infer<typeof AdministrativeArea>;
|
|
22
56
|
export declare const Location: z.ZodObject<{
|
|
@@ -24,10 +58,66 @@ export declare const Location: z.ZodObject<{
|
|
|
24
58
|
name: z.ZodString;
|
|
25
59
|
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
60
|
administrativeAreaId: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
27
|
-
validUntil: z.ZodNullable<z.ZodISODateTime>;
|
|
28
61
|
locationType: z.ZodNullable<z.ZodString>;
|
|
62
|
+
status: z.ZodEnum<{
|
|
63
|
+
active: "active";
|
|
64
|
+
inactive: "inactive";
|
|
65
|
+
}>;
|
|
66
|
+
versions: z.ZodArray<z.ZodObject<{
|
|
67
|
+
versionId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
68
|
+
effectiveFrom: z.ZodISODate;
|
|
69
|
+
name: z.ZodString;
|
|
70
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
|
+
status: z.ZodEnum<{
|
|
72
|
+
active: "active";
|
|
73
|
+
inactive: "inactive";
|
|
74
|
+
}>;
|
|
75
|
+
}, z.core.$strip>>;
|
|
29
76
|
}, z.core.$strip>;
|
|
30
77
|
export type Location = z.infer<typeof Location>;
|
|
78
|
+
/**
|
|
79
|
+
* Input payload for the locations `set` mutation. Carries only the seedable
|
|
80
|
+
* identity and hierarchy fields — version history is managed by the server.
|
|
81
|
+
*/
|
|
82
|
+
export declare const SetLocationPayload: z.ZodObject<{
|
|
83
|
+
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
84
|
+
name: z.ZodString;
|
|
85
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
|
+
administrativeAreaId: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
87
|
+
locationType: z.ZodNullable<z.ZodString>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
export type SetLocationPayload = z.infer<typeof SetLocationPayload>;
|
|
90
|
+
/**
|
|
91
|
+
* Input payload for the administrative areas `set` mutation. Carries only the
|
|
92
|
+
* seedable identity and hierarchy fields — version history is managed by the
|
|
93
|
+
* server.
|
|
94
|
+
*/
|
|
95
|
+
export declare const SetAdministrativeAreaPayload: z.ZodObject<{
|
|
96
|
+
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
97
|
+
name: z.ZodString;
|
|
98
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
|
+
parentId: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
export type SetAdministrativeAreaPayload = z.infer<typeof SetAdministrativeAreaPayload>;
|
|
102
|
+
/**
|
|
103
|
+
* Resolves the version in effect at the given anchor date.
|
|
104
|
+
*
|
|
105
|
+
* Returns the element with the greatest `effectiveFrom` that is less than or
|
|
106
|
+
* equal to `anchor`, falling back to the earliest element when the anchor
|
|
107
|
+
* precedes all versions. Assumes `versions` is sorted ascending by
|
|
108
|
+
* `effectiveFrom`. Both `effectiveFrom` and `anchor` are 'YYYY-MM-DD' strings,
|
|
109
|
+
* so plain string comparison is correct.
|
|
110
|
+
*/
|
|
111
|
+
export declare function resolveVersion<T extends {
|
|
112
|
+
effectiveFrom: string;
|
|
113
|
+
}>(versions: T[], anchor: string): T;
|
|
114
|
+
/**
|
|
115
|
+
* Whether the entity holds the given externalId with active status at the
|
|
116
|
+
* anchor date or at any point after it. Used for point-in-time uniqueness of
|
|
117
|
+
* external codes: a new holder starting at `anchor` collides when an existing
|
|
118
|
+
* holder is (or is scheduled to be) active with the code from then on.
|
|
119
|
+
*/
|
|
120
|
+
export declare function hasActiveExternalIdOnOrAfter(versions: LocationVersion[], externalId: string, anchor: string): boolean;
|
|
31
121
|
type WrapArrayPreserveNullish<V> = V extends readonly any[] ? V : NonNullable<V>[] | Extract<V, null | undefined>;
|
|
32
122
|
/**
|
|
33
123
|
* For type T, convert fields K to arrays. If field is string, convert to string[].
|
|
@@ -79,7 +169,14 @@ export declare function getAdministrativeAreaHierarchy(administrativeAreaId: str
|
|
|
79
169
|
name: string;
|
|
80
170
|
externalId?: string | null | undefined;
|
|
81
171
|
parentId: (string & z.$brand<"UUID">) | null;
|
|
82
|
-
|
|
172
|
+
status: "active" | "inactive";
|
|
173
|
+
versions: {
|
|
174
|
+
versionId: string & z.$brand<"UUID">;
|
|
175
|
+
effectiveFrom: string;
|
|
176
|
+
name: string;
|
|
177
|
+
externalId?: string | null | undefined;
|
|
178
|
+
status: "active" | "inactive";
|
|
179
|
+
}[];
|
|
83
180
|
}[];
|
|
84
181
|
/**
|
|
85
182
|
* Resolves a location or administrative area UUID into a root-first hierarchy of UUIDs.
|
|
@@ -6,14 +6,28 @@ export declare const V2_DEFAULT_MOCK_LOCATIONS_MAP: Map<string & import("zod").$
|
|
|
6
6
|
name: string;
|
|
7
7
|
externalId?: string | null | undefined;
|
|
8
8
|
administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
|
|
9
|
-
validUntil: string | null;
|
|
10
9
|
locationType: string | null;
|
|
10
|
+
status: "active" | "inactive";
|
|
11
|
+
versions: {
|
|
12
|
+
versionId: string & import("zod").$brand<"UUID">;
|
|
13
|
+
effectiveFrom: string;
|
|
14
|
+
name: string;
|
|
15
|
+
externalId?: string | null | undefined;
|
|
16
|
+
status: "active" | "inactive";
|
|
17
|
+
}[];
|
|
11
18
|
}>;
|
|
12
19
|
export declare const V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS_MAP: Map<string & import("zod").$brand<"UUID">, {
|
|
13
20
|
id: string & import("zod").$brand<"UUID">;
|
|
14
21
|
name: string;
|
|
15
22
|
externalId?: string | null | undefined;
|
|
16
23
|
parentId: (string & import("zod").$brand<"UUID">) | null;
|
|
17
|
-
|
|
24
|
+
status: "active" | "inactive";
|
|
25
|
+
versions: {
|
|
26
|
+
versionId: string & import("zod").$brand<"UUID">;
|
|
27
|
+
effectiveFrom: string;
|
|
28
|
+
name: string;
|
|
29
|
+
externalId?: string | null | undefined;
|
|
30
|
+
status: "active" | "inactive";
|
|
31
|
+
}[];
|
|
18
32
|
}>;
|
|
19
33
|
//# sourceMappingURL=mocks.test.utils.d.ts.map
|
|
@@ -9,7 +9,7 @@ import { EventIndex } from './EventIndex';
|
|
|
9
9
|
import { EventInput } from './EventInput';
|
|
10
10
|
import { TranslationConfig } from './TranslationConfig';
|
|
11
11
|
import { FieldConfig } from './FieldConfig';
|
|
12
|
-
import {
|
|
12
|
+
import { SetLocationPayload, SetAdministrativeAreaPayload } from './locations';
|
|
13
13
|
import { WorkqueueConfig } from './WorkqueueConfig';
|
|
14
14
|
import * as z from 'zod/v4';
|
|
15
15
|
import { DocumentPath } from '../documents';
|
|
@@ -48,16 +48,16 @@ export declare function fieldConfigsToActionPayload(fields: FieldConfig[], rng:
|
|
|
48
48
|
* Given hierarchy, ensures that related fields (e.g. location and administrative area) have valid values based on the hierarchy.
|
|
49
49
|
*/
|
|
50
50
|
administrativeHierarchy?: {
|
|
51
|
-
administrativeAreas:
|
|
52
|
-
locations:
|
|
51
|
+
administrativeAreas: SetAdministrativeAreaPayload[];
|
|
52
|
+
locations: SetLocationPayload[];
|
|
53
53
|
}): ActionUpdate;
|
|
54
54
|
export declare function generateActionDeclarationInput(configuration: EventConfig, action: ActionType, rng: () => number, overrides?: ActionUpdate,
|
|
55
55
|
/**
|
|
56
56
|
* Given hierarchy, ensures that related fields (e.g. location and administrative area) have valid values based on the hierarchy.
|
|
57
57
|
*/
|
|
58
58
|
administrativeHierarchy?: {
|
|
59
|
-
administrativeAreas:
|
|
60
|
-
locations:
|
|
59
|
+
administrativeAreas: SetAdministrativeAreaPayload[];
|
|
60
|
+
locations: SetLocationPayload[];
|
|
61
61
|
}): ActionUpdate;
|
|
62
62
|
export declare function generateActionDuplicateDeclarationInput(...args: Parameters<typeof generateActionDeclarationInput>): ReturnType<typeof generateActionDeclarationInput>;
|
|
63
63
|
export declare function eventPayloadGenerator(rng: () => number, configuration?: EventConfig): {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare function runEnvironmentInit(): Promise<void>;
|
|
2
|
+
export declare function runEnvironmentUpgrade(): Promise<void>;
|
|
2
3
|
export declare function runEnvironmentUpdateWorkflows(): Promise<void>;
|
|
3
4
|
export declare function runEnvironmentUsers(): Promise<void>;
|
|
4
5
|
export declare function runEnvironmentSwarmToK8s(): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/environment/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/environment/index.ts"],"names":[],"mappings":"AAyCA,wBAAsB,kBAAkB,kBAIvC;AAED,wBAAsB,qBAAqB,kBAI1C;AAED,wBAAsB,6BAA6B,kBAIlD;AAED,wBAAsB,mBAAmB,kBAIxC;AAED,wBAAsB,wBAAwB,kBAG7C"}
|
|
@@ -20,11 +20,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
exports.runEnvironmentInit = runEnvironmentInit;
|
|
23
|
+
exports.runEnvironmentUpgrade = runEnvironmentUpgrade;
|
|
23
24
|
exports.runEnvironmentUpdateWorkflows = runEnvironmentUpdateWorkflows;
|
|
24
25
|
exports.runEnvironmentUsers = runEnvironmentUsers;
|
|
25
26
|
exports.runEnvironmentSwarmToK8s = runEnvironmentSwarmToK8s;
|
|
26
27
|
const fs_1 = require("fs");
|
|
27
28
|
const path_1 = require("path");
|
|
29
|
+
const paths_1 = require("./paths");
|
|
28
30
|
const REQUIRED_REPOSITORY_DIRECTORIES = [
|
|
29
31
|
'.github/workflows',
|
|
30
32
|
'environments',
|
|
@@ -46,9 +48,17 @@ function validateRepositoryStructure(repositoryRoot = process.cwd()) {
|
|
|
46
48
|
function runEnvironmentInit() {
|
|
47
49
|
return __awaiter(this, void 0, void 0, function* () {
|
|
48
50
|
validateRepositoryStructure();
|
|
51
|
+
(0, paths_1.assertNoOldInventoryLayout)();
|
|
49
52
|
yield import('./setup-environment.js');
|
|
50
53
|
});
|
|
51
54
|
}
|
|
55
|
+
function runEnvironmentUpgrade() {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
validateRepositoryStructure();
|
|
58
|
+
const { upgradeEnvironmentLayout } = yield import('./upgrade.js');
|
|
59
|
+
yield upgradeEnvironmentLayout();
|
|
60
|
+
});
|
|
61
|
+
}
|
|
52
62
|
function runEnvironmentUpdateWorkflows() {
|
|
53
63
|
return __awaiter(this, void 0, void 0, function* () {
|
|
54
64
|
validateRepositoryStructure();
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const OLD_INVENTORY_DIR: string;
|
|
2
|
+
export declare const INVENTORY_FILE_NAME = "inventory.yml";
|
|
3
|
+
export declare function getEnvironmentInventoryPath(environment: string): string;
|
|
4
|
+
export declare function findOldInventoryFiles(): string[];
|
|
5
|
+
export declare function getEnvironmentNameFromOldInventoryPath(filePath: string): string;
|
|
6
|
+
export declare function assertNoOldInventoryLayout(): void;
|
|
7
|
+
//# sourceMappingURL=paths.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/environment/paths.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,iBAAiB,QAI7B,CAAA;AAED,eAAO,MAAM,mBAAmB,kBAAkB,CAAA;AAElD,wBAAgB,2BAA2B,CAAC,WAAW,EAAE,MAAM,UAE9D;AAED,wBAAgB,qBAAqB,aAEpC;AAED,wBAAgB,sCAAsC,CAAC,QAAQ,EAAE,MAAM,UAEtE;AAED,wBAAgB,0BAA0B,SAWzC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
15
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
16
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
17
|
+
}
|
|
18
|
+
Object.defineProperty(o, k2, desc);
|
|
19
|
+
}) : (function(o, m, k, k2) {
|
|
20
|
+
if (k2 === undefined) k2 = k;
|
|
21
|
+
o[k2] = m[k];
|
|
22
|
+
}));
|
|
23
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
24
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
25
|
+
}) : function(o, v) {
|
|
26
|
+
o["default"] = v;
|
|
27
|
+
});
|
|
28
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
29
|
+
var ownKeys = function(o) {
|
|
30
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
31
|
+
var ar = [];
|
|
32
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
33
|
+
return ar;
|
|
34
|
+
};
|
|
35
|
+
return ownKeys(o);
|
|
36
|
+
};
|
|
37
|
+
return function (mod) {
|
|
38
|
+
if (mod && mod.__esModule) return mod;
|
|
39
|
+
var result = {};
|
|
40
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
41
|
+
__setModuleDefault(result, mod);
|
|
42
|
+
return result;
|
|
43
|
+
};
|
|
44
|
+
})();
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.INVENTORY_FILE_NAME = exports.OLD_INVENTORY_DIR = void 0;
|
|
47
|
+
exports.getEnvironmentInventoryPath = getEnvironmentInventoryPath;
|
|
48
|
+
exports.findOldInventoryFiles = findOldInventoryFiles;
|
|
49
|
+
exports.getEnvironmentNameFromOldInventoryPath = getEnvironmentNameFromOldInventoryPath;
|
|
50
|
+
exports.assertNoOldInventoryLayout = assertNoOldInventoryLayout;
|
|
51
|
+
const path_1 = require("path");
|
|
52
|
+
const glob = __importStar(require("glob"));
|
|
53
|
+
exports.OLD_INVENTORY_DIR = (0, path_1.join)('infrastructure', 'server-setup', 'inventory');
|
|
54
|
+
exports.INVENTORY_FILE_NAME = 'inventory.yml';
|
|
55
|
+
function getEnvironmentInventoryPath(environment) {
|
|
56
|
+
return (0, path_1.join)('environments', environment, exports.INVENTORY_FILE_NAME);
|
|
57
|
+
}
|
|
58
|
+
function findOldInventoryFiles() {
|
|
59
|
+
return glob.sync((0, path_1.join)(exports.OLD_INVENTORY_DIR, '*.yml')).sort();
|
|
60
|
+
}
|
|
61
|
+
function getEnvironmentNameFromOldInventoryPath(filePath) {
|
|
62
|
+
return (0, path_1.basename)(filePath, '.yml');
|
|
63
|
+
}
|
|
64
|
+
function assertNoOldInventoryLayout() {
|
|
65
|
+
if (findOldInventoryFiles().length === 0) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
throw new Error([
|
|
69
|
+
`Old inventory layout detected at ${exports.OLD_INVENTORY_DIR}.`,
|
|
70
|
+
'Please run `yarn environment:upgrade` before running `yarn environment:init`.'
|
|
71
|
+
].join(' '));
|
|
72
|
+
}
|
|
@@ -59,6 +59,7 @@ const questions_1 = require("./questions");
|
|
|
59
59
|
const editor_questions_1 = require("./editor-questions");
|
|
60
60
|
const questions_helper_1 = require("./questions-helper");
|
|
61
61
|
const manage_users_1 = require("./manage-users");
|
|
62
|
+
const paths_1 = require("./paths");
|
|
62
63
|
function questionToPrompt(_a) {
|
|
63
64
|
var { valueType, valueLabel, scope } = _a, promptOptions = __rest(_a, ["valueType", "valueLabel", "scope"]);
|
|
64
65
|
return promptOptions;
|
|
@@ -271,7 +272,7 @@ ALL_QUESTIONS.push(...questions_1.githubTokenQuestion, ...questions_1.githubOthe
|
|
|
271
272
|
? infrastructure.kubeWorkerNodes.split(',').map((ip) => ip.trim())
|
|
272
273
|
: [];
|
|
273
274
|
(0, logger_1.log)('\n', kleur_1.default.bold().underline('SSH Users'), '\n');
|
|
274
|
-
const users = yield (0, manage_users_1.manageUsers)(
|
|
275
|
+
const users = yield (0, manage_users_1.manageUsers)((0, paths_1.getEnvironmentInventoryPath)(environment));
|
|
275
276
|
(0, logger_1.log)('\n', kleur_1.default.bold().underline('Traefik SSL Certificate'), '\n');
|
|
276
277
|
const sslCertExists = (0, utils_1.findExistingValue)('SSL_CRT', 'SECRET', 'ENVIRONMENT', existingValues);
|
|
277
278
|
let ssl_answers = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/environment/templates.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/environment/templates.ts"],"names":[],"mappings":"AAuBA,wBAAgB,QAAQ,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,CAKvC;AAID,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,CAYpD;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,MAAM,CAWpD;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,MAAM,CASnD;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,MAAM,EAAE,CAStD;AAGD;;;;GAIG;AACH;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,QA0CzC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,QAsBzE"}
|