@opencrvs/toolkit 2.1.0-rc.c8d2a48 → 2.1.0-rc.ce802f4
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 +0 -1
- package/dist/application-config/index.js +1 -0
- package/dist/cli.js +77 -191
- package/dist/commons/api/router.d.ts +73 -2
- 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 +23 -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 +7 -0
- package/dist/conditionals/index.js +1 -0
- package/dist/environment/index.d.ts +0 -1
- package/dist/environment/index.d.ts.map +1 -1
- package/dist/environment/index.js +0 -10
- package/dist/environment/setup-environment.js +1 -2
- package/dist/environment/templates.d.ts.map +1 -1
- package/dist/environment/templates.js +1 -2
- package/dist/environment/update-workflows.d.ts.map +1 -1
- package/dist/environment/update-workflows.js +3 -4
- package/dist/environment/users.js +13 -11
- package/dist/events/index.js +81 -0
- package/dist/notification/index.js +92 -25
- package/dist/scopes/index.d.ts +3 -1
- package/dist/scopes/index.js +1 -0
- package/opencrvs-toolkit-2.1.0-rc.ce802f4.tgz +0 -0
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/environment/paths.d.ts +0 -11
- package/dist/environment/paths.d.ts.map +0 -1
- package/dist/environment/paths.js +0 -89
- package/dist/environment/upgrade.d.ts +0 -2
- package/dist/environment/upgrade.d.ts.map +0 -1
- package/dist/environment/upgrade.js +0 -80
- package/opencrvs-toolkit-2.1.0-rc.c8d2a48.tgz +0 -0
|
@@ -38,7 +38,7 @@ __export(notification_exports, {
|
|
|
38
38
|
triggerUserEventNotification: () => triggerUserEventNotification
|
|
39
39
|
});
|
|
40
40
|
module.exports = __toCommonJS(notification_exports);
|
|
41
|
-
var
|
|
41
|
+
var z46 = __toESM(require("zod/v4"));
|
|
42
42
|
|
|
43
43
|
// ../commons/src/url.ts
|
|
44
44
|
function joinUrl(base, path) {
|
|
@@ -96,6 +96,7 @@ var PlainScopeType = z2.enum([
|
|
|
96
96
|
"integration.create",
|
|
97
97
|
"record.import",
|
|
98
98
|
"config.update-all",
|
|
99
|
+
"location.edit",
|
|
99
100
|
"attachment.upload",
|
|
100
101
|
"profile.electronic-signature",
|
|
101
102
|
"user.read-only-my-audit",
|
|
@@ -530,6 +531,23 @@ var IntegrationRefreshSecretEntrySchema = AuditLogEntryBase.extend({
|
|
|
530
531
|
requestData: z5.object({ id: z5.string() }),
|
|
531
532
|
responseSummary: z5.object({ clientId: z5.string() })
|
|
532
533
|
});
|
|
534
|
+
var LocationCreateEntrySchema = AuditLogEntryBase.extend({
|
|
535
|
+
operation: z5.enum(["locations.create", "administrativeAreas.create"]),
|
|
536
|
+
requestData: z5.object({
|
|
537
|
+
id: z5.string(),
|
|
538
|
+
versionId: z5.string(),
|
|
539
|
+
name: z5.string(),
|
|
540
|
+
externalId: z5.string().nullish(),
|
|
541
|
+
administrativeAreaId: z5.string().nullish(),
|
|
542
|
+
// locations only
|
|
543
|
+
parentId: z5.string().nullish(),
|
|
544
|
+
// administrative areas only
|
|
545
|
+
locationType: z5.string().nullish(),
|
|
546
|
+
// locations only
|
|
547
|
+
effectiveFrom: z5.string(),
|
|
548
|
+
status: z5.string()
|
|
549
|
+
})
|
|
550
|
+
});
|
|
533
551
|
var AttachmentUploadEntrySchema = AuditLogEntryBase.extend({
|
|
534
552
|
operation: z5.literal("attachments.upload"),
|
|
535
553
|
requestData: z5.object({
|
|
@@ -605,6 +623,7 @@ var AuditLogEntrySchema = z5.discriminatedUnion("operation", [
|
|
|
605
623
|
IntegrationActivateEntrySchema,
|
|
606
624
|
IntegrationDeleteEntrySchema,
|
|
607
625
|
IntegrationRefreshSecretEntrySchema,
|
|
626
|
+
LocationCreateEntrySchema,
|
|
608
627
|
AttachmentUploadEntrySchema,
|
|
609
628
|
UserCreateEntrySchema,
|
|
610
629
|
UserReasonEntrySchema,
|
|
@@ -7827,8 +7846,56 @@ var V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS_MAP = new Map(
|
|
|
7827
7846
|
V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS.map((a) => [a.id, a])
|
|
7828
7847
|
);
|
|
7829
7848
|
|
|
7830
|
-
// ../commons/src/
|
|
7849
|
+
// ../commons/src/events/locationPayloads.ts
|
|
7831
7850
|
var z44 = __toESM(require("zod/v4"));
|
|
7851
|
+
var CreateLocationPayload = z44.object({
|
|
7852
|
+
id: UUID.optional(),
|
|
7853
|
+
versionId: UUID.optional(),
|
|
7854
|
+
name: z44.string(),
|
|
7855
|
+
externalId: z44.string().nullish(),
|
|
7856
|
+
administrativeAreaId: UUID.nullable(),
|
|
7857
|
+
locationType: z44.string().nullable(),
|
|
7858
|
+
effectiveFrom: z44.iso.date().optional(),
|
|
7859
|
+
status: LocationStatus.default("active")
|
|
7860
|
+
});
|
|
7861
|
+
var UpdateLocationPayload = z44.strictObject({
|
|
7862
|
+
id: UUID,
|
|
7863
|
+
versionId: UUID.optional(),
|
|
7864
|
+
name: z44.string(),
|
|
7865
|
+
externalId: z44.string().nullish(),
|
|
7866
|
+
status: LocationStatus,
|
|
7867
|
+
effectiveFrom: z44.iso.date().optional(),
|
|
7868
|
+
lastVersionId: UUID
|
|
7869
|
+
});
|
|
7870
|
+
var WithdrawLocationVersionPayload = z44.object({
|
|
7871
|
+
id: UUID,
|
|
7872
|
+
versionId: UUID
|
|
7873
|
+
});
|
|
7874
|
+
var CreateAdministrativeAreaPayload = z44.object({
|
|
7875
|
+
id: UUID.optional(),
|
|
7876
|
+
versionId: UUID.optional(),
|
|
7877
|
+
name: z44.string(),
|
|
7878
|
+
externalId: z44.string().nullish(),
|
|
7879
|
+
parentId: UUID.nullable(),
|
|
7880
|
+
effectiveFrom: z44.iso.date().optional(),
|
|
7881
|
+
status: LocationStatus.default("active")
|
|
7882
|
+
});
|
|
7883
|
+
var UpdateAdministrativeAreaPayload = z44.strictObject({
|
|
7884
|
+
id: UUID,
|
|
7885
|
+
versionId: UUID.optional(),
|
|
7886
|
+
name: z44.string(),
|
|
7887
|
+
externalId: z44.string().nullish(),
|
|
7888
|
+
status: LocationStatus,
|
|
7889
|
+
effectiveFrom: z44.iso.date().optional(),
|
|
7890
|
+
lastVersionId: UUID
|
|
7891
|
+
});
|
|
7892
|
+
var WithdrawAdministrativeAreaVersionPayload = z44.object({
|
|
7893
|
+
id: UUID,
|
|
7894
|
+
versionId: UUID
|
|
7895
|
+
});
|
|
7896
|
+
|
|
7897
|
+
// ../commons/src/notification/UserNotifications.ts
|
|
7898
|
+
var z45 = __toESM(require("zod/v4"));
|
|
7832
7899
|
var TriggerEvent = {
|
|
7833
7900
|
USER_CREATED: "user-created",
|
|
7834
7901
|
USER_UPDATED: "user-updated",
|
|
@@ -7841,54 +7908,54 @@ var TriggerEvent = {
|
|
|
7841
7908
|
CHANGE_PHONE_NUMBER: "change-phone-number",
|
|
7842
7909
|
CHANGE_EMAIL_ADDRESS: "change-email-address"
|
|
7843
7910
|
};
|
|
7844
|
-
var Recipient =
|
|
7911
|
+
var Recipient = z45.object({
|
|
7845
7912
|
name: NameFieldValue.optional(),
|
|
7846
|
-
mobile:
|
|
7847
|
-
email:
|
|
7848
|
-
bcc:
|
|
7913
|
+
mobile: z45.string().optional(),
|
|
7914
|
+
email: z45.string().optional(),
|
|
7915
|
+
bcc: z45.array(z45.string()).optional()
|
|
7849
7916
|
});
|
|
7850
|
-
var BasePayload =
|
|
7917
|
+
var BasePayload = z45.object({
|
|
7851
7918
|
recipient: Recipient
|
|
7852
7919
|
});
|
|
7853
7920
|
var TriggerPayload = {
|
|
7854
7921
|
[TriggerEvent.USER_CREATED]: BasePayload.extend({
|
|
7855
|
-
username:
|
|
7856
|
-
temporaryPassword:
|
|
7922
|
+
username: z45.string(),
|
|
7923
|
+
temporaryPassword: z45.string()
|
|
7857
7924
|
}),
|
|
7858
7925
|
[TriggerEvent.USER_UPDATED]: BasePayload.extend({
|
|
7859
|
-
oldUsername:
|
|
7860
|
-
newUsername:
|
|
7926
|
+
oldUsername: z45.string(),
|
|
7927
|
+
newUsername: z45.string()
|
|
7861
7928
|
}),
|
|
7862
7929
|
[TriggerEvent.USERNAME_REMINDER]: BasePayload.extend({
|
|
7863
|
-
username:
|
|
7930
|
+
username: z45.string()
|
|
7864
7931
|
}),
|
|
7865
7932
|
[TriggerEvent.RESET_PASSWORD]: BasePayload.extend({
|
|
7866
|
-
code:
|
|
7933
|
+
code: z45.string()
|
|
7867
7934
|
}),
|
|
7868
7935
|
[TriggerEvent.RESET_PASSWORD_BY_ADMIN]: BasePayload.extend({
|
|
7869
|
-
temporaryPassword:
|
|
7870
|
-
admin:
|
|
7871
|
-
id:
|
|
7936
|
+
temporaryPassword: z45.string(),
|
|
7937
|
+
admin: z45.object({
|
|
7938
|
+
id: z45.string(),
|
|
7872
7939
|
name: NameFieldValue,
|
|
7873
|
-
role:
|
|
7940
|
+
role: z45.string()
|
|
7874
7941
|
})
|
|
7875
7942
|
}),
|
|
7876
7943
|
[TriggerEvent.RESEND_INVITE]: BasePayload.extend({
|
|
7877
|
-
username:
|
|
7878
|
-
temporaryPassword:
|
|
7944
|
+
username: z45.string(),
|
|
7945
|
+
temporaryPassword: z45.string()
|
|
7879
7946
|
}),
|
|
7880
7947
|
[TriggerEvent.TWO_FA]: BasePayload.extend({
|
|
7881
|
-
code:
|
|
7948
|
+
code: z45.string()
|
|
7882
7949
|
}),
|
|
7883
7950
|
[TriggerEvent.ALL_USER_NOTIFICATION]: BasePayload.extend({
|
|
7884
|
-
subject:
|
|
7885
|
-
body:
|
|
7951
|
+
subject: z45.string(),
|
|
7952
|
+
body: z45.string()
|
|
7886
7953
|
}),
|
|
7887
7954
|
[TriggerEvent.CHANGE_PHONE_NUMBER]: BasePayload.extend({
|
|
7888
|
-
code:
|
|
7955
|
+
code: z45.string()
|
|
7889
7956
|
}),
|
|
7890
7957
|
[TriggerEvent.CHANGE_EMAIL_ADDRESS]: BasePayload.extend({
|
|
7891
|
-
code:
|
|
7958
|
+
code: z45.string()
|
|
7892
7959
|
})
|
|
7893
7960
|
};
|
|
7894
7961
|
async function triggerUserEventNotification({
|
|
@@ -7912,4 +7979,4 @@ function parseUserEventTrigger(event2, body) {
|
|
|
7912
7979
|
}
|
|
7913
7980
|
|
|
7914
7981
|
// src/notification/index.ts
|
|
7915
|
-
|
|
7982
|
+
z46.globalRegistry.clear();
|
package/dist/scopes/index.d.ts
CHANGED
|
@@ -397,6 +397,7 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
397
397
|
bypassratelimit: "bypassratelimit";
|
|
398
398
|
"config.update-all": "config.update-all";
|
|
399
399
|
"integration.create": "integration.create";
|
|
400
|
+
"location.edit": "location.edit";
|
|
400
401
|
"performance.read": "performance.read";
|
|
401
402
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
402
403
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
@@ -617,6 +618,7 @@ export declare const ScopeType: z.ZodEnum<{
|
|
|
617
618
|
"config.update-all": "config.update-all";
|
|
618
619
|
"dashboard.view": "dashboard.view";
|
|
619
620
|
"integration.create": "integration.create";
|
|
621
|
+
"location.edit": "location.edit";
|
|
620
622
|
"organisation.read-locations": "organisation.read-locations";
|
|
621
623
|
"performance.read": "performance.read";
|
|
622
624
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -737,7 +739,7 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
737
739
|
accessLevel?: "administrativeArea" | "all" | "location" | undefined;
|
|
738
740
|
} | undefined;
|
|
739
741
|
} | {
|
|
740
|
-
type: "attachment.upload" | "bypassratelimit" | "config.update-all" | "integration.create" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.confirm-registration" | "record.import" | "record.reindex" | "record.reject-registration" | "user.data-seeding" | "user.read-only-my-audit";
|
|
742
|
+
type: "attachment.upload" | "bypassratelimit" | "config.update-all" | "integration.create" | "location.edit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.confirm-registration" | "record.import" | "record.reindex" | "record.reject-registration" | "user.data-seeding" | "user.read-only-my-audit";
|
|
741
743
|
} | {
|
|
742
744
|
type: "organisation.read-locations";
|
|
743
745
|
options?: {
|
package/dist/scopes/index.js
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/tsconfig.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"7.0.2","root":["./src/cli.ts","./src/api/index.ts","./src/application-config/index.ts","./src/conditionals/index.ts","./src/environment/custom-types.ts","./src/environment/derived-variables.ts","./src/environment/editor-questions.ts","./src/environment/git.ts","./src/environment/github.ts","./src/environment/index.ts","./src/environment/logger.ts","./src/environment/manage-users.ts","./src/environment/paths.ts","./src/environment/questions-helper.ts","./src/environment/questions.ts","./src/environment/setup-environment.ts","./src/environment/ssh-keygen.ts","./src/environment/swarm-to-k8s.ts","./src/environment/templates.ts","./src/environment/update-workflows.ts","./src/environment/upgrade.ts","./src/environment/users.ts","./src/environment/utils.ts","./src/events/deduplication.ts","./src/events/index.ts","./src/migrations/v2.0/add-birth-certificate-issuance-flag.ts","./src/migrations/v2.0/add-resend-invite-notification.ts","./src/migrations/v2.0/checkout-upstream-files.ts","./src/migrations/v2.0/convert-config-files-to-ts.ts","./src/migrations/v2.0/convert-paragraph-to-heading.ts","./src/migrations/v2.0/create-events-index.ts","./src/migrations/v2.0/delete-infrastructure-directory.ts","./src/migrations/v2.0/fix-accept-requested-registration-function-type.ts","./src/migrations/v2.0/index.ts","./src/migrations/v2.0/make-built-in-validate-actions-custom.ts","./src/migrations/v2.0/merge-infrastructure-directory.ts","./src/migrations/v2.0/migrate-application-config-url.ts","./src/migrations/v2.0/migrate-scopes.ts","./src/migrations/v2.0/migrate-validated-workqueue-status-to-flag.ts","./src/migrations/v2.0/migrate-workqueue-configs.ts","./src/migrations/v2.0/remove-delete-actions.ts","./src/migrations/v2.0/remove-demo-scope.ts","./src/migrations/v2.0/remove-deprecated-imports.ts","./src/migrations/v2.0/remove-fhir-url-helpers.ts","./src/migrations/v2.0/remove-hearth-migrations.ts","./src/migrations/v2.0/remove-old-statistics-service.ts","./src/migrations/v2.0/remove-pending-certification-flag.ts","./src/migrations/v2.0/remove-review-from-register-action.ts","./src/migrations/v2.0/remove-unused-environment-variables.ts","./src/migrations/v2.0/rename-api-paths.ts","./src/migrations/v2.0/rename-location-parent-id.ts","./src/migrations/v2.0/simplify-analytics-precalculations.ts","./src/migrations/v2.0/update-package-json.ts","./src/migrations/v2.1/add-explicit-correction-flags.ts","./src/migrations/v2.1/index.ts","./src/notification/index.ts","./src/scopes/index.ts"],"packageJsons":["../../node_modules/@hapi/boom/package.json","../../node_modules/@hapi/catbox/node_modules/@hapi/podium/package.json","../../node_modules/@hapi/catbox/package.json","../../node_modules/@hapi/hapi/node_modules/@hapi/podium/package.json","../../node_modules/@hapi/hapi/package.json","../../node_modules/@hapi/mimos/package.json","../../node_modules/@hapi/shot/package.json","../../node_modules/@hapi/statehood/node_modules/@hapi/iron/package.json","../../node_modules/@hapi/statehood/package.json","../../node_modules/@inquirer/checkbox/package.json","../../node_modules/@inquirer/core/package.json","../../node_modules/@inquirer/editor/package.json","../../node_modules/@inquirer/expand/package.json","../../node_modules/@inquirer/external-editor/package.json","../../node_modules/@inquirer/input/package.json","../../node_modules/@inquirer/number/package.json","../../node_modules/@inquirer/password/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/confirm/package.json","../../node_modules/@inquirer/prompts/package.json","../../node_modules/@inquirer/rawlist/package.json","../../node_modules/@inquirer/search/package.json","../../node_modules/@inquirer/select/package.json","../../node_modules/@inquirer/type/package.json","../../node_modules/@octokit/graphql/package.json","../../node_modules/@octokit/openapi-types/package.json","../../node_modules/@octokit/request-error/package.json","../../node_modules/@octokit/request/package.json","../../node_modules/@octokit/types/package.json","../../node_modules/@trpc/server/http/package.json","../../node_modules/@trpc/server/observable/package.json","../../node_modules/@trpc/server/package.json","../../node_modules/@trpc/server/unstable-core-do-not-import/package.json","../../node_modules/@ts-morph/common/package.json","../../node_modules/@types/js-yaml/package.json","../../node_modules/@types/libsodium-wrappers/package.json","../../node_modules/@types/lodash/package.json","../../node_modules/@types/node-fetch/package.json","../../node_modules/@types/node/package.json","../../node_modules/@types/prompts/package.json","../../node_modules/assert/package.json","../../node_modules/before-after-hook/package.json","../../node_modules/buffer/package.json","../../node_modules/colorette/package.json","../../node_modules/dotenv/package.json","../../node_modules/events/package.json","../../node_modules/form-data/package.json","../../node_modules/handlebars/package.json","../../node_modules/joi/package.json","../../node_modules/js-yaml/package.json","../../node_modules/kleur/package.json","../../node_modules/libsodium-wrappers/package.json","../../node_modules/lodash/package.json","../../node_modules/minipass/dist/commonjs/package.json","../../node_modules/minipass/package.json","../../node_modules/node-fetch/package.json","../../node_modules/pino-pretty/node_modules/pino-abstract-transport/package.json","../../node_modules/pino-pretty/package.json","../../node_modules/pino-std-serializers/package.json","../../node_modules/pino/package.json","../../node_modules/process/package.json","../../node_modules/prompts/package.json","../../node_modules/punycode/package.json","../../node_modules/querystring/package.json","../../node_modules/sonic-boom/package.json","../../node_modules/string_decoder/package.json","../../node_modules/superjson/package.json","../../node_modules/ts-morph/package.json","../../node_modules/typescript/package.json","../../node_modules/undici-types/package.json","../../node_modules/util/package.json","../../node_modules/zod-openapi/package.json","../../node_modules/zod/package.json","../../node_modules/zod/v4/classic/package.json","../../node_modules/zod/v4/core/package.json","../../node_modules/zod/v4/locales/package.json","../../node_modules/zod/v4/package.json","../commons/node_modules/ajv/package.json","../commons/package.json","../events/package.json","./node_modules/@octokit/core/package.json","./node_modules/@trpc/client/package.json","./node_modules/@types/node/package.json","./node_modules/@types/ssh2/package.json","./node_modules/glob/dist/commonjs/package.json","./node_modules/glob/package.json","./node_modules/kleur/package.json","./node_modules/lru-cache/dist/commonjs/package.json","./node_modules/lru-cache/package.json","./node_modules/minimatch/dist/commonjs/package.json","./node_modules/minimatch/package.json","./node_modules/path-scurry/dist/commonjs/package.json","./node_modules/path-scurry/package.json","./package.json"],"missingPackageJsons":["../../node_modules/@hapi/boom/lib/package.json","../../node_modules/@hapi/catbox/lib/package.json","../../node_modules/@hapi/catbox/node_modules/@hapi/podium/lib/package.json","../../node_modules/@hapi/hapi/lib/package.json","../../node_modules/@hapi/hapi/lib/types/package.json","../../node_modules/@hapi/hapi/lib/types/server/package.json","../../node_modules/@hapi/hapi/node_modules/@hapi/boom/package.json","../../node_modules/@hapi/hapi/node_modules/@hapi/catbox/package.json","../../node_modules/@hapi/hapi/node_modules/@hapi/mimos/package.json","../../node_modules/@hapi/hapi/node_modules/@hapi/podium/lib/package.json","../../node_modules/@hapi/hapi/node_modules/@hapi/shot/package.json","../../node_modules/@hapi/hapi/node_modules/@hapi/statehood/package.json","../../node_modules/@hapi/hapi/node_modules/http/package.json","../../node_modules/@hapi/hapi/node_modules/https/package.json","../../node_modules/@hapi/hapi/node_modules/joi/package.json","../../node_modules/@hapi/hapi/node_modules/stream/package.json","../../node_modules/@hapi/hapi/node_modules/url/package.json","../../node_modules/@hapi/hapi/node_modules/zlib/package.json","../../node_modules/@hapi/mimos/lib/package.json","../../node_modules/@hapi/shot/lib/package.json","../../node_modules/@hapi/statehood/lib/package.json","../../node_modules/@hapi/statehood/node_modules/@hapi/boom/package.json","../../node_modules/@hapi/statehood/node_modules/@hapi/iron/lib/package.json","../../node_modules/@inquirer/checkbox/dist/package.json","../../node_modules/@inquirer/core/dist/lib/package.json","../../node_modules/@inquirer/core/dist/lib/pagination/package.json","../../node_modules/@inquirer/core/dist/package.json","../../node_modules/@inquirer/core/node_modules/@inquirer/type/package.json","../../node_modules/@inquirer/editor/dist/package.json","../../node_modules/@inquirer/expand/dist/package.json","../../node_modules/@inquirer/external-editor/dist/package.json","../../node_modules/@inquirer/input/dist/package.json","../../node_modules/@inquirer/number/dist/package.json","../../node_modules/@inquirer/password/dist/package.json","../../node_modules/@inquirer/prompts/dist/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/checkbox/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/confirm/dist/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/core/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/editor/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/expand/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/input/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/number/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/password/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/rawlist/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/search/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/select/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/type/package.json","../../node_modules/@inquirer/prompts/node_modules/@types/node/package.json","../../node_modules/@inquirer/rawlist/dist/package.json","../../node_modules/@inquirer/search/dist/package.json","../../node_modules/@inquirer/select/dist/package.json","../../node_modules/@inquirer/type/dist/package.json","../../node_modules/@octokit/graphql/dist-types/package.json","../../node_modules/@octokit/request-error/dist-types/package.json","../../node_modules/@octokit/request/dist-types/package.json","../../node_modules/@octokit/types/dist-types/generated/package.json","../../node_modules/@octokit/types/dist-types/package.json","../../node_modules/@opencrvs/events/build/types/router/package.json","../../node_modules/@trpc/server/dist/observable/package.json","../../node_modules/@trpc/server/dist/package.json","../../node_modules/@ts-morph/common/lib/package.json","../../node_modules/@types/assert/package.json","../../node_modules/@types/async_hooks/package.json","../../node_modules/@types/child_process/package.json","../../node_modules/@types/cluster/package.json","../../node_modules/@types/constants/package.json","../../node_modules/@types/crypto/package.json","../../node_modules/@types/dgram/package.json","../../node_modules/@types/diagnostics_channel/package.json","../../node_modules/@types/dns/package.json","../../node_modules/@types/dns/promises/package.json","../../node_modules/@types/domain/package.json","../../node_modules/@types/events/package.json","../../node_modules/@types/fs/package.json","../../node_modules/@types/fs/promises/package.json","../../node_modules/@types/http/package.json","../../node_modules/@types/http2/package.json","../../node_modules/@types/https/package.json","../../node_modules/@types/inspector/package.json","../../node_modules/@types/lodash/common/package.json","../../node_modules/@types/module/package.json","../../node_modules/@types/net/package.json","../../node_modules/@types/opencrvs__events/build/types/router/package.json","../../node_modules/@types/opencrvs__events/package.json","../../node_modules/@types/os/package.json","../../node_modules/@types/path/package.json","../../node_modules/@types/path/posix/package.json","../../node_modules/@types/path/win32/package.json","../../node_modules/@types/perf_hooks/package.json","../../node_modules/@types/process/package.json","../../node_modules/@types/punycode/package.json","../../node_modules/@types/readline/package.json","../../node_modules/@types/readline/promises/package.json","../../node_modules/@types/repl/package.json","../../node_modules/@types/stream/consumers/package.json","../../node_modules/@types/stream/package.json","../../node_modules/@types/stream/promises/package.json","../../node_modules/@types/stream/web/package.json","../../node_modules/@types/string_decoder/package.json","../../node_modules/@types/timers/package.json","../../node_modules/@types/timers/promises/package.json","../../node_modules/@types/tls/package.json","../../node_modules/@types/trace_events/package.json","../../node_modules/@types/tty/package.json","../../node_modules/@types/url/package.json","../../node_modules/@types/util/package.json","../../node_modules/@types/util/types/package.json","../../node_modules/@types/v8/package.json","../../node_modules/@types/vm/package.json","../../node_modules/@types/wasi/package.json","../../node_modules/@types/worker_threads/package.json","../../node_modules/@types/zlib/package.json","../../node_modules/async_hooks/package.json","../../node_modules/child_process/package.json","../../node_modules/cluster/package.json","../../node_modules/constants/package.json","../../node_modules/crypto/package.json","../../node_modules/dgram/package.json","../../node_modules/diagnostics_channel/package.json","../../node_modules/dns/package.json","../../node_modules/dns/promises/package.json","../../node_modules/domain/package.json","../../node_modules/dotenv/lib/package.json","../../node_modules/form-data/node_modules/http/package.json","../../node_modules/form-data/node_modules/stream/package.json","../../node_modules/fs/package.json","../../node_modules/fs/promises/package.json","../../node_modules/handlebars/types/package.json","../../node_modules/http/package.json","../../node_modules/http2/package.json","../../node_modules/https/package.json","../../node_modules/inspector/package.json","../../node_modules/joi/lib/package.json","../../node_modules/module/package.json","../../node_modules/net/package.json","../../node_modules/os/package.json","../../node_modules/path/package.json","../../node_modules/path/posix/package.json","../../node_modules/path/win32/package.json","../../node_modules/perf_hooks/package.json","../../node_modules/pino-pretty/node_modules/colorette/package.json","../../node_modules/pino-pretty/node_modules/pino/package.json","../../node_modules/pino-pretty/node_modules/stream/package.json","../../node_modules/readline/package.json","../../node_modules/readline/promises/package.json","../../node_modules/repl/package.json","../../node_modules/sonic-boom/types/package.json","../../node_modules/stream/consumers/package.json","../../node_modules/stream/package.json","../../node_modules/stream/promises/package.json","../../node_modules/stream/web/package.json","../../node_modules/superjson/dist/package.json","../../node_modules/timers/package.json","../../node_modules/timers/promises/package.json","../../node_modules/tls/package.json","../../node_modules/trace_events/package.json","../../node_modules/ts-morph/lib/package.json","../../node_modules/tty/package.json","../../node_modules/url/package.json","../../node_modules/util/types/package.json","../../node_modules/v8/package.json","../../node_modules/vm/package.json","../../node_modules/wasi/package.json","../../node_modules/worker_threads/package.json","../../node_modules/zlib/package.json","../../node_modules/zod-openapi/dist/package.json","../commons/node_modules/@hapi/hapi/package.json","../commons/node_modules/@types/hapi__hapi/package.json","../commons/node_modules/@types/lodash/package.json","../commons/node_modules/@types/node-fetch/package.json","../commons/node_modules/@types/pino/package.json","../commons/node_modules/@types/zod-openapi/package.json","../commons/node_modules/@types/zod/package.json","../commons/node_modules/@types/zod/v4/package.json","../commons/node_modules/ajv/dist/package.json","../commons/node_modules/ajv/dist/types/json-schema/package.json","../commons/node_modules/ajv/dist/types/package.json","../commons/node_modules/lodash/package.json","../commons/node_modules/node-fetch/package.json","../commons/node_modules/pino/package.json","../commons/node_modules/zod-openapi/package.json","../commons/node_modules/zod/package.json","../commons/node_modules/zod/v4/package.json","./node_modules/@inquirer/prompts/package.json","./node_modules/@octokit/core/dist-types/package.json","./node_modules/@octokit/graphql/package.json","./node_modules/@octokit/request-error/package.json","./node_modules/@octokit/request/package.json","./node_modules/@octokit/types/package.json","./node_modules/@opencrvs/events/build/types/router/package.json","./node_modules/@opencrvs/events/package.json","./node_modules/@trpc/client/dist/package.json","./node_modules/@trpc/client/node_modules/@trpc/server/http/package.json","./node_modules/@trpc/client/node_modules/@trpc/server/observable/package.json","./node_modules/@trpc/client/node_modules/@trpc/server/package.json","./node_modules/@trpc/client/node_modules/@trpc/server/unstable-core-do-not-import/package.json","./node_modules/@trpc/server/http/package.json","./node_modules/@trpc/server/observable/package.json","./node_modules/@trpc/server/package.json","./node_modules/@trpc/server/unstable-core-do-not-import/package.json","./node_modules/@types/assert/package.json","./node_modules/@types/async_hooks/package.json","./node_modules/@types/before-after-hook/package.json","./node_modules/@types/buffer/package.json","./node_modules/@types/child_process/package.json","./node_modules/@types/cluster/package.json","./node_modules/@types/constants/package.json","./node_modules/@types/crypto/package.json","./node_modules/@types/dgram/package.json","./node_modules/@types/diagnostics_channel/package.json","./node_modules/@types/dns/package.json","./node_modules/@types/dns/promises/package.json","./node_modules/@types/domain/package.json","./node_modules/@types/dotenv/package.json","./node_modules/@types/events/package.json","./node_modules/@types/fs/package.json","./node_modules/@types/fs/promises/package.json","./node_modules/@types/handlebars/package.json","./node_modules/@types/http/package.json","./node_modules/@types/http2/package.json","./node_modules/@types/https/package.json","./node_modules/@types/inquirer__prompts/package.json","./node_modules/@types/inspector/package.json","./node_modules/@types/js-yaml/package.json","./node_modules/@types/libsodium-wrappers/package.json","./node_modules/@types/minipass/package.json","./node_modules/@types/module/package.json","./node_modules/@types/net/package.json","./node_modules/@types/node/assert/package.json","./node_modules/@types/node/dns/package.json","./node_modules/@types/node/fs/package.json","./node_modules/@types/node/readline/package.json","./node_modules/@types/node/stream/package.json","./node_modules/@types/node/timers/package.json","./node_modules/@types/octokit__graphql/package.json","./node_modules/@types/octokit__request-error/package.json","./node_modules/@types/octokit__request/package.json","./node_modules/@types/octokit__types/package.json","./node_modules/@types/opencrvs__events/build/types/router/package.json","./node_modules/@types/opencrvs__events/package.json","./node_modules/@types/os/package.json","./node_modules/@types/path/package.json","./node_modules/@types/path/posix/package.json","./node_modules/@types/path/win32/package.json","./node_modules/@types/perf_hooks/package.json","./node_modules/@types/process/package.json","./node_modules/@types/prompts/package.json","./node_modules/@types/punycode/package.json","./node_modules/@types/querystring/package.json","./node_modules/@types/readline/package.json","./node_modules/@types/readline/promises/package.json","./node_modules/@types/repl/package.json","./node_modules/@types/stream/consumers/package.json","./node_modules/@types/stream/package.json","./node_modules/@types/stream/promises/package.json","./node_modules/@types/stream/web/package.json","./node_modules/@types/string_decoder/package.json","./node_modules/@types/superjson/package.json","./node_modules/@types/timers/package.json","./node_modules/@types/timers/promises/package.json","./node_modules/@types/tls/package.json","./node_modules/@types/trace_events/package.json","./node_modules/@types/trpc__server/http/package.json","./node_modules/@types/trpc__server/observable/package.json","./node_modules/@types/trpc__server/package.json","./node_modules/@types/trpc__server/unstable-core-do-not-import/package.json","./node_modules/@types/ts-morph/package.json","./node_modules/@types/tty/package.json","./node_modules/@types/undici-types/package.json","./node_modules/@types/url/package.json","./node_modules/@types/util/package.json","./node_modules/@types/util/types/package.json","./node_modules/@types/v8/package.json","./node_modules/@types/vm/package.json","./node_modules/@types/wasi/package.json","./node_modules/@types/worker_threads/package.json","./node_modules/@types/zlib/package.json","./node_modules/@types/zod/package.json","./node_modules/@types/zod/v4/package.json","./node_modules/assert/package.json","./node_modules/async_hooks/package.json","./node_modules/before-after-hook/package.json","./node_modules/buffer/package.json","./node_modules/child_process/package.json","./node_modules/cluster/package.json","./node_modules/constants/package.json","./node_modules/crypto/package.json","./node_modules/dgram/package.json","./node_modules/diagnostics_channel/package.json","./node_modules/dns/package.json","./node_modules/dns/promises/package.json","./node_modules/domain/package.json","./node_modules/dotenv/package.json","./node_modules/events/package.json","./node_modules/fs/package.json","./node_modules/fs/promises/package.json","./node_modules/handlebars/package.json","./node_modules/http/package.json","./node_modules/http2/package.json","./node_modules/https/package.json","./node_modules/inspector/package.json","./node_modules/js-yaml/package.json","./node_modules/libsodium-wrappers/package.json","./node_modules/minipass/package.json","./node_modules/module/package.json","./node_modules/net/package.json","./node_modules/os/package.json","./node_modules/path/package.json","./node_modules/path/posix/package.json","./node_modules/path/win32/package.json","./node_modules/perf_hooks/package.json","./node_modules/process/package.json","./node_modules/prompts/package.json","./node_modules/punycode/package.json","./node_modules/querystring/package.json","./node_modules/readline/package.json","./node_modules/readline/promises/package.json","./node_modules/repl/package.json","./node_modules/ssh2/package.json","./node_modules/stream/consumers/package.json","./node_modules/stream/package.json","./node_modules/stream/promises/package.json","./node_modules/stream/web/package.json","./node_modules/string_decoder/package.json","./node_modules/superjson/package.json","./node_modules/timers/package.json","./node_modules/timers/promises/package.json","./node_modules/tls/package.json","./node_modules/trace_events/package.json","./node_modules/ts-morph/package.json","./node_modules/tty/package.json","./node_modules/typescript/package.json","./node_modules/undici-types/package.json","./node_modules/url/package.json","./node_modules/util/package.json","./node_modules/util/types/package.json","./node_modules/v8/package.json","./node_modules/vm/package.json","./node_modules/wasi/package.json","./node_modules/worker_threads/package.json","./node_modules/zlib/package.json","./node_modules/zod/package.json","./node_modules/zod/v4/package.json"]}
|
|
1
|
+
{"version":"7.0.2","root":["./src/cli.ts","./src/api/index.ts","./src/application-config/index.ts","./src/conditionals/index.ts","./src/environment/custom-types.ts","./src/environment/derived-variables.ts","./src/environment/editor-questions.ts","./src/environment/git.ts","./src/environment/github.ts","./src/environment/index.ts","./src/environment/logger.ts","./src/environment/manage-users.ts","./src/environment/questions-helper.ts","./src/environment/questions.ts","./src/environment/setup-environment.ts","./src/environment/ssh-keygen.ts","./src/environment/swarm-to-k8s.ts","./src/environment/templates.ts","./src/environment/update-workflows.ts","./src/environment/users.ts","./src/environment/utils.ts","./src/events/deduplication.ts","./src/events/index.ts","./src/migrations/v2.0/add-birth-certificate-issuance-flag.ts","./src/migrations/v2.0/add-resend-invite-notification.ts","./src/migrations/v2.0/checkout-upstream-files.ts","./src/migrations/v2.0/convert-config-files-to-ts.ts","./src/migrations/v2.0/convert-paragraph-to-heading.ts","./src/migrations/v2.0/create-events-index.ts","./src/migrations/v2.0/delete-infrastructure-directory.ts","./src/migrations/v2.0/fix-accept-requested-registration-function-type.ts","./src/migrations/v2.0/index.ts","./src/migrations/v2.0/make-built-in-validate-actions-custom.ts","./src/migrations/v2.0/merge-infrastructure-directory.ts","./src/migrations/v2.0/migrate-application-config-url.ts","./src/migrations/v2.0/migrate-scopes.ts","./src/migrations/v2.0/migrate-validated-workqueue-status-to-flag.ts","./src/migrations/v2.0/migrate-workqueue-configs.ts","./src/migrations/v2.0/remove-delete-actions.ts","./src/migrations/v2.0/remove-demo-scope.ts","./src/migrations/v2.0/remove-deprecated-imports.ts","./src/migrations/v2.0/remove-fhir-url-helpers.ts","./src/migrations/v2.0/remove-hearth-migrations.ts","./src/migrations/v2.0/remove-old-statistics-service.ts","./src/migrations/v2.0/remove-pending-certification-flag.ts","./src/migrations/v2.0/remove-review-from-register-action.ts","./src/migrations/v2.0/remove-unused-environment-variables.ts","./src/migrations/v2.0/rename-api-paths.ts","./src/migrations/v2.0/rename-location-parent-id.ts","./src/migrations/v2.0/simplify-analytics-precalculations.ts","./src/migrations/v2.0/update-package-json.ts","./src/migrations/v2.1/add-explicit-correction-flags.ts","./src/migrations/v2.1/index.ts","./src/notification/index.ts","./src/scopes/index.ts"],"packageJsons":["../../node_modules/@hapi/boom/package.json","../../node_modules/@hapi/catbox/node_modules/@hapi/podium/package.json","../../node_modules/@hapi/catbox/package.json","../../node_modules/@hapi/hapi/node_modules/@hapi/podium/package.json","../../node_modules/@hapi/hapi/package.json","../../node_modules/@hapi/mimos/package.json","../../node_modules/@hapi/shot/package.json","../../node_modules/@hapi/statehood/node_modules/@hapi/iron/package.json","../../node_modules/@hapi/statehood/package.json","../../node_modules/@inquirer/checkbox/package.json","../../node_modules/@inquirer/core/package.json","../../node_modules/@inquirer/editor/package.json","../../node_modules/@inquirer/expand/package.json","../../node_modules/@inquirer/external-editor/package.json","../../node_modules/@inquirer/input/package.json","../../node_modules/@inquirer/number/package.json","../../node_modules/@inquirer/password/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/confirm/package.json","../../node_modules/@inquirer/prompts/package.json","../../node_modules/@inquirer/rawlist/package.json","../../node_modules/@inquirer/search/package.json","../../node_modules/@inquirer/select/package.json","../../node_modules/@inquirer/type/package.json","../../node_modules/@octokit/graphql/package.json","../../node_modules/@octokit/openapi-types/package.json","../../node_modules/@octokit/request-error/package.json","../../node_modules/@octokit/request/package.json","../../node_modules/@octokit/types/package.json","../../node_modules/@trpc/server/http/package.json","../../node_modules/@trpc/server/observable/package.json","../../node_modules/@trpc/server/package.json","../../node_modules/@trpc/server/unstable-core-do-not-import/package.json","../../node_modules/@ts-morph/common/package.json","../../node_modules/@types/js-yaml/package.json","../../node_modules/@types/libsodium-wrappers/package.json","../../node_modules/@types/lodash/package.json","../../node_modules/@types/node-fetch/package.json","../../node_modules/@types/node/package.json","../../node_modules/@types/prompts/package.json","../../node_modules/assert/package.json","../../node_modules/before-after-hook/package.json","../../node_modules/buffer/package.json","../../node_modules/colorette/package.json","../../node_modules/dotenv/package.json","../../node_modules/events/package.json","../../node_modules/form-data/package.json","../../node_modules/handlebars/package.json","../../node_modules/joi/package.json","../../node_modules/js-yaml/package.json","../../node_modules/kleur/package.json","../../node_modules/libsodium-wrappers/package.json","../../node_modules/lodash/package.json","../../node_modules/minipass/dist/commonjs/package.json","../../node_modules/minipass/package.json","../../node_modules/node-fetch/package.json","../../node_modules/pino-pretty/node_modules/pino-abstract-transport/package.json","../../node_modules/pino-pretty/package.json","../../node_modules/pino-std-serializers/package.json","../../node_modules/pino/package.json","../../node_modules/process/package.json","../../node_modules/prompts/package.json","../../node_modules/punycode/package.json","../../node_modules/querystring/package.json","../../node_modules/sonic-boom/package.json","../../node_modules/string_decoder/package.json","../../node_modules/superjson/package.json","../../node_modules/ts-morph/package.json","../../node_modules/typescript/package.json","../../node_modules/undici-types/package.json","../../node_modules/util/package.json","../../node_modules/zod-openapi/package.json","../../node_modules/zod/package.json","../../node_modules/zod/v4/classic/package.json","../../node_modules/zod/v4/core/package.json","../../node_modules/zod/v4/locales/package.json","../../node_modules/zod/v4/package.json","../commons/node_modules/ajv/package.json","../commons/package.json","../events/package.json","./node_modules/@octokit/core/package.json","./node_modules/@trpc/client/package.json","./node_modules/@types/node/package.json","./node_modules/@types/ssh2/package.json","./node_modules/glob/dist/commonjs/package.json","./node_modules/glob/package.json","./node_modules/kleur/package.json","./node_modules/lru-cache/dist/commonjs/package.json","./node_modules/lru-cache/package.json","./node_modules/minimatch/dist/commonjs/package.json","./node_modules/minimatch/package.json","./node_modules/path-scurry/dist/commonjs/package.json","./node_modules/path-scurry/package.json","./package.json"],"missingPackageJsons":["../../node_modules/@hapi/boom/lib/package.json","../../node_modules/@hapi/catbox/lib/package.json","../../node_modules/@hapi/catbox/node_modules/@hapi/podium/lib/package.json","../../node_modules/@hapi/hapi/lib/package.json","../../node_modules/@hapi/hapi/lib/types/package.json","../../node_modules/@hapi/hapi/lib/types/server/package.json","../../node_modules/@hapi/hapi/node_modules/@hapi/boom/package.json","../../node_modules/@hapi/hapi/node_modules/@hapi/catbox/package.json","../../node_modules/@hapi/hapi/node_modules/@hapi/mimos/package.json","../../node_modules/@hapi/hapi/node_modules/@hapi/podium/lib/package.json","../../node_modules/@hapi/hapi/node_modules/@hapi/shot/package.json","../../node_modules/@hapi/hapi/node_modules/@hapi/statehood/package.json","../../node_modules/@hapi/hapi/node_modules/http/package.json","../../node_modules/@hapi/hapi/node_modules/https/package.json","../../node_modules/@hapi/hapi/node_modules/joi/package.json","../../node_modules/@hapi/hapi/node_modules/stream/package.json","../../node_modules/@hapi/hapi/node_modules/url/package.json","../../node_modules/@hapi/hapi/node_modules/zlib/package.json","../../node_modules/@hapi/mimos/lib/package.json","../../node_modules/@hapi/shot/lib/package.json","../../node_modules/@hapi/statehood/lib/package.json","../../node_modules/@hapi/statehood/node_modules/@hapi/boom/package.json","../../node_modules/@hapi/statehood/node_modules/@hapi/iron/lib/package.json","../../node_modules/@inquirer/checkbox/dist/package.json","../../node_modules/@inquirer/core/dist/lib/package.json","../../node_modules/@inquirer/core/dist/lib/pagination/package.json","../../node_modules/@inquirer/core/dist/package.json","../../node_modules/@inquirer/core/node_modules/@inquirer/type/package.json","../../node_modules/@inquirer/editor/dist/package.json","../../node_modules/@inquirer/expand/dist/package.json","../../node_modules/@inquirer/external-editor/dist/package.json","../../node_modules/@inquirer/input/dist/package.json","../../node_modules/@inquirer/number/dist/package.json","../../node_modules/@inquirer/password/dist/package.json","../../node_modules/@inquirer/prompts/dist/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/checkbox/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/confirm/dist/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/core/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/editor/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/expand/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/input/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/number/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/password/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/rawlist/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/search/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/select/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/type/package.json","../../node_modules/@inquirer/prompts/node_modules/@types/node/package.json","../../node_modules/@inquirer/rawlist/dist/package.json","../../node_modules/@inquirer/search/dist/package.json","../../node_modules/@inquirer/select/dist/package.json","../../node_modules/@inquirer/type/dist/package.json","../../node_modules/@octokit/graphql/dist-types/package.json","../../node_modules/@octokit/request-error/dist-types/package.json","../../node_modules/@octokit/request/dist-types/package.json","../../node_modules/@octokit/types/dist-types/generated/package.json","../../node_modules/@octokit/types/dist-types/package.json","../../node_modules/@opencrvs/events/build/types/router/package.json","../../node_modules/@trpc/server/dist/observable/package.json","../../node_modules/@trpc/server/dist/package.json","../../node_modules/@ts-morph/common/lib/package.json","../../node_modules/@types/assert/package.json","../../node_modules/@types/async_hooks/package.json","../../node_modules/@types/child_process/package.json","../../node_modules/@types/cluster/package.json","../../node_modules/@types/constants/package.json","../../node_modules/@types/crypto/package.json","../../node_modules/@types/dgram/package.json","../../node_modules/@types/diagnostics_channel/package.json","../../node_modules/@types/dns/package.json","../../node_modules/@types/dns/promises/package.json","../../node_modules/@types/domain/package.json","../../node_modules/@types/events/package.json","../../node_modules/@types/fs/package.json","../../node_modules/@types/fs/promises/package.json","../../node_modules/@types/http/package.json","../../node_modules/@types/http2/package.json","../../node_modules/@types/https/package.json","../../node_modules/@types/inspector/package.json","../../node_modules/@types/lodash/common/package.json","../../node_modules/@types/module/package.json","../../node_modules/@types/net/package.json","../../node_modules/@types/opencrvs__events/build/types/router/package.json","../../node_modules/@types/opencrvs__events/package.json","../../node_modules/@types/os/package.json","../../node_modules/@types/path/package.json","../../node_modules/@types/path/posix/package.json","../../node_modules/@types/path/win32/package.json","../../node_modules/@types/perf_hooks/package.json","../../node_modules/@types/process/package.json","../../node_modules/@types/punycode/package.json","../../node_modules/@types/readline/package.json","../../node_modules/@types/readline/promises/package.json","../../node_modules/@types/repl/package.json","../../node_modules/@types/stream/consumers/package.json","../../node_modules/@types/stream/package.json","../../node_modules/@types/stream/promises/package.json","../../node_modules/@types/stream/web/package.json","../../node_modules/@types/string_decoder/package.json","../../node_modules/@types/timers/package.json","../../node_modules/@types/timers/promises/package.json","../../node_modules/@types/tls/package.json","../../node_modules/@types/trace_events/package.json","../../node_modules/@types/tty/package.json","../../node_modules/@types/url/package.json","../../node_modules/@types/util/package.json","../../node_modules/@types/util/types/package.json","../../node_modules/@types/v8/package.json","../../node_modules/@types/vm/package.json","../../node_modules/@types/wasi/package.json","../../node_modules/@types/worker_threads/package.json","../../node_modules/@types/zlib/package.json","../../node_modules/async_hooks/package.json","../../node_modules/child_process/package.json","../../node_modules/cluster/package.json","../../node_modules/constants/package.json","../../node_modules/crypto/package.json","../../node_modules/dgram/package.json","../../node_modules/diagnostics_channel/package.json","../../node_modules/dns/package.json","../../node_modules/dns/promises/package.json","../../node_modules/domain/package.json","../../node_modules/dotenv/lib/package.json","../../node_modules/form-data/node_modules/http/package.json","../../node_modules/form-data/node_modules/stream/package.json","../../node_modules/fs/package.json","../../node_modules/fs/promises/package.json","../../node_modules/handlebars/types/package.json","../../node_modules/http/package.json","../../node_modules/http2/package.json","../../node_modules/https/package.json","../../node_modules/inspector/package.json","../../node_modules/joi/lib/package.json","../../node_modules/module/package.json","../../node_modules/net/package.json","../../node_modules/os/package.json","../../node_modules/path/package.json","../../node_modules/path/posix/package.json","../../node_modules/path/win32/package.json","../../node_modules/perf_hooks/package.json","../../node_modules/pino-pretty/node_modules/colorette/package.json","../../node_modules/pino-pretty/node_modules/pino/package.json","../../node_modules/pino-pretty/node_modules/stream/package.json","../../node_modules/readline/package.json","../../node_modules/readline/promises/package.json","../../node_modules/repl/package.json","../../node_modules/sonic-boom/types/package.json","../../node_modules/stream/consumers/package.json","../../node_modules/stream/package.json","../../node_modules/stream/promises/package.json","../../node_modules/stream/web/package.json","../../node_modules/superjson/dist/package.json","../../node_modules/timers/package.json","../../node_modules/timers/promises/package.json","../../node_modules/tls/package.json","../../node_modules/trace_events/package.json","../../node_modules/ts-morph/lib/package.json","../../node_modules/tty/package.json","../../node_modules/url/package.json","../../node_modules/util/types/package.json","../../node_modules/v8/package.json","../../node_modules/vm/package.json","../../node_modules/wasi/package.json","../../node_modules/worker_threads/package.json","../../node_modules/zlib/package.json","../../node_modules/zod-openapi/dist/package.json","../commons/node_modules/@hapi/hapi/package.json","../commons/node_modules/@types/hapi__hapi/package.json","../commons/node_modules/@types/lodash/package.json","../commons/node_modules/@types/node-fetch/package.json","../commons/node_modules/@types/pino/package.json","../commons/node_modules/@types/zod-openapi/package.json","../commons/node_modules/@types/zod/package.json","../commons/node_modules/@types/zod/v4/package.json","../commons/node_modules/ajv/dist/package.json","../commons/node_modules/ajv/dist/types/json-schema/package.json","../commons/node_modules/ajv/dist/types/package.json","../commons/node_modules/lodash/package.json","../commons/node_modules/node-fetch/package.json","../commons/node_modules/pino/package.json","../commons/node_modules/zod-openapi/package.json","../commons/node_modules/zod/package.json","../commons/node_modules/zod/v4/package.json","./node_modules/@inquirer/prompts/package.json","./node_modules/@octokit/core/dist-types/package.json","./node_modules/@octokit/graphql/package.json","./node_modules/@octokit/request-error/package.json","./node_modules/@octokit/request/package.json","./node_modules/@octokit/types/package.json","./node_modules/@opencrvs/events/build/types/router/package.json","./node_modules/@opencrvs/events/package.json","./node_modules/@trpc/client/dist/package.json","./node_modules/@trpc/client/node_modules/@trpc/server/http/package.json","./node_modules/@trpc/client/node_modules/@trpc/server/observable/package.json","./node_modules/@trpc/client/node_modules/@trpc/server/package.json","./node_modules/@trpc/client/node_modules/@trpc/server/unstable-core-do-not-import/package.json","./node_modules/@trpc/server/http/package.json","./node_modules/@trpc/server/observable/package.json","./node_modules/@trpc/server/package.json","./node_modules/@trpc/server/unstable-core-do-not-import/package.json","./node_modules/@types/assert/package.json","./node_modules/@types/async_hooks/package.json","./node_modules/@types/before-after-hook/package.json","./node_modules/@types/buffer/package.json","./node_modules/@types/child_process/package.json","./node_modules/@types/cluster/package.json","./node_modules/@types/constants/package.json","./node_modules/@types/crypto/package.json","./node_modules/@types/dgram/package.json","./node_modules/@types/diagnostics_channel/package.json","./node_modules/@types/dns/package.json","./node_modules/@types/dns/promises/package.json","./node_modules/@types/domain/package.json","./node_modules/@types/dotenv/package.json","./node_modules/@types/events/package.json","./node_modules/@types/fs/package.json","./node_modules/@types/fs/promises/package.json","./node_modules/@types/handlebars/package.json","./node_modules/@types/http/package.json","./node_modules/@types/http2/package.json","./node_modules/@types/https/package.json","./node_modules/@types/inquirer__prompts/package.json","./node_modules/@types/inspector/package.json","./node_modules/@types/js-yaml/package.json","./node_modules/@types/libsodium-wrappers/package.json","./node_modules/@types/minipass/package.json","./node_modules/@types/module/package.json","./node_modules/@types/net/package.json","./node_modules/@types/node/assert/package.json","./node_modules/@types/node/dns/package.json","./node_modules/@types/node/fs/package.json","./node_modules/@types/node/readline/package.json","./node_modules/@types/node/stream/package.json","./node_modules/@types/node/timers/package.json","./node_modules/@types/octokit__graphql/package.json","./node_modules/@types/octokit__request-error/package.json","./node_modules/@types/octokit__request/package.json","./node_modules/@types/octokit__types/package.json","./node_modules/@types/opencrvs__events/build/types/router/package.json","./node_modules/@types/opencrvs__events/package.json","./node_modules/@types/os/package.json","./node_modules/@types/path/package.json","./node_modules/@types/path/posix/package.json","./node_modules/@types/path/win32/package.json","./node_modules/@types/perf_hooks/package.json","./node_modules/@types/process/package.json","./node_modules/@types/prompts/package.json","./node_modules/@types/punycode/package.json","./node_modules/@types/querystring/package.json","./node_modules/@types/readline/package.json","./node_modules/@types/readline/promises/package.json","./node_modules/@types/repl/package.json","./node_modules/@types/stream/consumers/package.json","./node_modules/@types/stream/package.json","./node_modules/@types/stream/promises/package.json","./node_modules/@types/stream/web/package.json","./node_modules/@types/string_decoder/package.json","./node_modules/@types/superjson/package.json","./node_modules/@types/timers/package.json","./node_modules/@types/timers/promises/package.json","./node_modules/@types/tls/package.json","./node_modules/@types/trace_events/package.json","./node_modules/@types/trpc__server/http/package.json","./node_modules/@types/trpc__server/observable/package.json","./node_modules/@types/trpc__server/package.json","./node_modules/@types/trpc__server/unstable-core-do-not-import/package.json","./node_modules/@types/ts-morph/package.json","./node_modules/@types/tty/package.json","./node_modules/@types/undici-types/package.json","./node_modules/@types/url/package.json","./node_modules/@types/util/package.json","./node_modules/@types/util/types/package.json","./node_modules/@types/v8/package.json","./node_modules/@types/vm/package.json","./node_modules/@types/wasi/package.json","./node_modules/@types/worker_threads/package.json","./node_modules/@types/zlib/package.json","./node_modules/@types/zod/package.json","./node_modules/@types/zod/v4/package.json","./node_modules/assert/package.json","./node_modules/async_hooks/package.json","./node_modules/before-after-hook/package.json","./node_modules/buffer/package.json","./node_modules/child_process/package.json","./node_modules/cluster/package.json","./node_modules/constants/package.json","./node_modules/crypto/package.json","./node_modules/dgram/package.json","./node_modules/diagnostics_channel/package.json","./node_modules/dns/package.json","./node_modules/dns/promises/package.json","./node_modules/domain/package.json","./node_modules/dotenv/package.json","./node_modules/events/package.json","./node_modules/fs/package.json","./node_modules/fs/promises/package.json","./node_modules/handlebars/package.json","./node_modules/http/package.json","./node_modules/http2/package.json","./node_modules/https/package.json","./node_modules/inspector/package.json","./node_modules/js-yaml/package.json","./node_modules/libsodium-wrappers/package.json","./node_modules/minipass/package.json","./node_modules/module/package.json","./node_modules/net/package.json","./node_modules/os/package.json","./node_modules/path/package.json","./node_modules/path/posix/package.json","./node_modules/path/win32/package.json","./node_modules/perf_hooks/package.json","./node_modules/process/package.json","./node_modules/prompts/package.json","./node_modules/punycode/package.json","./node_modules/querystring/package.json","./node_modules/readline/package.json","./node_modules/readline/promises/package.json","./node_modules/repl/package.json","./node_modules/ssh2/package.json","./node_modules/stream/consumers/package.json","./node_modules/stream/package.json","./node_modules/stream/promises/package.json","./node_modules/stream/web/package.json","./node_modules/string_decoder/package.json","./node_modules/superjson/package.json","./node_modules/timers/package.json","./node_modules/timers/promises/package.json","./node_modules/tls/package.json","./node_modules/trace_events/package.json","./node_modules/ts-morph/package.json","./node_modules/tty/package.json","./node_modules/typescript/package.json","./node_modules/undici-types/package.json","./node_modules/url/package.json","./node_modules/util/package.json","./node_modules/util/types/package.json","./node_modules/v8/package.json","./node_modules/vm/package.json","./node_modules/wasi/package.json","./node_modules/worker_threads/package.json","./node_modules/zlib/package.json","./node_modules/zod/package.json","./node_modules/zod/v4/package.json"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const OLD_INVENTORY_DIR: string;
|
|
2
|
-
export declare const INVENTORY_FILE_NAME = "inventory.yml";
|
|
3
|
-
export declare function getEnvironmentDir(environment: string): string;
|
|
4
|
-
export declare function getEnvironmentInventoryPath(environment: string): string;
|
|
5
|
-
export declare function getOldInventoryPath(environment: string): string;
|
|
6
|
-
export declare function findOldInventoryFiles(): string[];
|
|
7
|
-
export declare function getEnvironmentNameFromOldInventoryPath(filePath: string): string;
|
|
8
|
-
export declare function hasOldInventoryLayout(): boolean;
|
|
9
|
-
export declare function assertNoOldInventoryLayout(): void;
|
|
10
|
-
export declare function hasEnvironmentInventory(environment: string): boolean;
|
|
11
|
-
//# sourceMappingURL=paths.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/environment/paths.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,iBAAiB,QAI7B,CAAA;AAED,eAAO,MAAM,mBAAmB,kBAAkB,CAAA;AAElD,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,UAEpD;AAED,wBAAgB,2BAA2B,CAAC,WAAW,EAAE,MAAM,UAE9D;AAED,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,UAEtD;AAED,wBAAgB,qBAAqB,aAEpC;AAED,wBAAgB,sCAAsC,CAAC,QAAQ,EAAE,MAAM,UAEtE;AAED,wBAAgB,qBAAqB,YAEpC;AAED,wBAAgB,0BAA0B,SAWzC;AAED,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,MAAM,WAE1D"}
|
|
@@ -1,89 +0,0 @@
|
|
|
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.getEnvironmentDir = getEnvironmentDir;
|
|
48
|
-
exports.getEnvironmentInventoryPath = getEnvironmentInventoryPath;
|
|
49
|
-
exports.getOldInventoryPath = getOldInventoryPath;
|
|
50
|
-
exports.findOldInventoryFiles = findOldInventoryFiles;
|
|
51
|
-
exports.getEnvironmentNameFromOldInventoryPath = getEnvironmentNameFromOldInventoryPath;
|
|
52
|
-
exports.hasOldInventoryLayout = hasOldInventoryLayout;
|
|
53
|
-
exports.assertNoOldInventoryLayout = assertNoOldInventoryLayout;
|
|
54
|
-
exports.hasEnvironmentInventory = hasEnvironmentInventory;
|
|
55
|
-
const fs_1 = require("fs");
|
|
56
|
-
const path_1 = require("path");
|
|
57
|
-
const glob = __importStar(require("glob"));
|
|
58
|
-
exports.OLD_INVENTORY_DIR = (0, path_1.join)('infrastructure', 'server-setup', 'inventory');
|
|
59
|
-
exports.INVENTORY_FILE_NAME = 'inventory.yml';
|
|
60
|
-
function getEnvironmentDir(environment) {
|
|
61
|
-
return (0, path_1.join)('environments', environment);
|
|
62
|
-
}
|
|
63
|
-
function getEnvironmentInventoryPath(environment) {
|
|
64
|
-
return (0, path_1.join)(getEnvironmentDir(environment), exports.INVENTORY_FILE_NAME);
|
|
65
|
-
}
|
|
66
|
-
function getOldInventoryPath(environment) {
|
|
67
|
-
return (0, path_1.join)(exports.OLD_INVENTORY_DIR, `${environment}.yml`);
|
|
68
|
-
}
|
|
69
|
-
function findOldInventoryFiles() {
|
|
70
|
-
return glob.sync((0, path_1.join)(exports.OLD_INVENTORY_DIR, '*.yml')).sort();
|
|
71
|
-
}
|
|
72
|
-
function getEnvironmentNameFromOldInventoryPath(filePath) {
|
|
73
|
-
return (0, path_1.basename)(filePath, '.yml');
|
|
74
|
-
}
|
|
75
|
-
function hasOldInventoryLayout() {
|
|
76
|
-
return findOldInventoryFiles().length > 0;
|
|
77
|
-
}
|
|
78
|
-
function assertNoOldInventoryLayout() {
|
|
79
|
-
if (!hasOldInventoryLayout()) {
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
throw new Error([
|
|
83
|
-
`Old inventory layout detected at ${exports.OLD_INVENTORY_DIR}.`,
|
|
84
|
-
'Please run `yarn environment:upgrade` before running `yarn environment:init`.'
|
|
85
|
-
].join(' '));
|
|
86
|
-
}
|
|
87
|
-
function hasEnvironmentInventory(environment) {
|
|
88
|
-
return (0, fs_1.existsSync)(getEnvironmentInventoryPath(environment));
|
|
89
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade.d.ts","sourceRoot":"","sources":["../../src/environment/upgrade.ts"],"names":[],"mappings":"AAkFA,wBAAsB,wBAAwB,kBAW7C"}
|
|
@@ -1,80 +0,0 @@
|
|
|
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
|
-
};
|
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.upgradeEnvironmentLayout = upgradeEnvironmentLayout;
|
|
26
|
-
const fs_1 = require("fs");
|
|
27
|
-
const path_1 = require("path");
|
|
28
|
-
const kleur_1 = __importDefault(require("kleur"));
|
|
29
|
-
const logger_1 = require("./logger");
|
|
30
|
-
const paths_1 = require("./paths");
|
|
31
|
-
const update_workflows_1 = require("./update-workflows");
|
|
32
|
-
function moveFileIfDestinationMissing(sourcePath, destinationPath) {
|
|
33
|
-
if (!(0, fs_1.existsSync)(sourcePath)) {
|
|
34
|
-
return false;
|
|
35
|
-
}
|
|
36
|
-
if ((0, fs_1.existsSync)(destinationPath)) {
|
|
37
|
-
(0, logger_1.warn)(`⚠️ Skipped ${sourcePath}; destination already exists at ${destinationPath}`);
|
|
38
|
-
return false;
|
|
39
|
-
}
|
|
40
|
-
(0, fs_1.mkdirSync)((0, path_1.dirname)(destinationPath), { recursive: true });
|
|
41
|
-
(0, fs_1.renameSync)(sourcePath, destinationPath);
|
|
42
|
-
(0, logger_1.log)(` ✓ Moved ${sourcePath} -> ${destinationPath}`);
|
|
43
|
-
return true;
|
|
44
|
-
}
|
|
45
|
-
function migrateInventoryFiles() {
|
|
46
|
-
const oldInventoryFiles = (0, paths_1.findOldInventoryFiles)();
|
|
47
|
-
if (oldInventoryFiles.length === 0) {
|
|
48
|
-
(0, logger_1.log)(`ℹ️ No old inventory files found at ${paths_1.OLD_INVENTORY_DIR}`);
|
|
49
|
-
return false;
|
|
50
|
-
}
|
|
51
|
-
(0, logger_1.log)(kleur_1.default.bold('\nMigrating Ansible inventory files'));
|
|
52
|
-
let didMoveInventory = false;
|
|
53
|
-
for (const oldInventoryFile of oldInventoryFiles) {
|
|
54
|
-
const environment = (0, paths_1.getEnvironmentNameFromOldInventoryPath)(oldInventoryFile);
|
|
55
|
-
didMoveInventory =
|
|
56
|
-
moveFileIfDestinationMissing(oldInventoryFile, (0, paths_1.getEnvironmentInventoryPath)(environment)) || didMoveInventory;
|
|
57
|
-
}
|
|
58
|
-
try {
|
|
59
|
-
if ((0, fs_1.existsSync)(paths_1.OLD_INVENTORY_DIR) &&
|
|
60
|
-
(0, fs_1.readdirSync)(paths_1.OLD_INVENTORY_DIR).length === 0) {
|
|
61
|
-
(0, fs_1.rmdirSync)(paths_1.OLD_INVENTORY_DIR);
|
|
62
|
-
(0, logger_1.log)(` ✓ Removed empty ${paths_1.OLD_INVENTORY_DIR}`);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
catch (_a) {
|
|
66
|
-
(0, logger_1.warn)(`⚠️ Could not remove ${paths_1.OLD_INVENTORY_DIR}; please review it manually`);
|
|
67
|
-
}
|
|
68
|
-
return didMoveInventory;
|
|
69
|
-
}
|
|
70
|
-
function upgradeEnvironmentLayout() {
|
|
71
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
-
const didMoveInventory = migrateInventoryFiles();
|
|
73
|
-
yield (0, update_workflows_1.updateWorkflowEnvironments)();
|
|
74
|
-
if (didMoveInventory) {
|
|
75
|
-
(0, logger_1.success)('\n✅ Environment layout upgrade completed successfully.');
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
(0, logger_1.success)('\n✅ Environment layout already uses the current structure.');
|
|
79
|
-
});
|
|
80
|
-
}
|
|
Binary file
|