@webiny/project-aws 6.6.0-alpha.1 → 6.6.0-alpha.11
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/AwsProjectSdk.d.ts +38 -0
- package/AwsProjectSdk.js +61 -0
- package/AwsProjectSdk.js.map +1 -0
- package/abstractions/features/DestroyApp.d.ts +18 -0
- package/abstractions/features/DestroyApp.js +5 -0
- package/abstractions/features/DestroyApp.js.map +1 -0
- package/abstractions/features/ExportStack.d.ts +18 -0
- package/abstractions/features/ExportStack.js +5 -0
- package/abstractions/features/ExportStack.js.map +1 -0
- package/abstractions/features/GetAppOutput.d.ts +18 -0
- package/abstractions/features/GetAppOutput.js +5 -0
- package/abstractions/features/GetAppOutput.js.map +1 -0
- package/abstractions/features/GetAppStackOutput.d.ts +18 -0
- package/abstractions/features/GetAppStackOutput.js +5 -0
- package/abstractions/features/GetAppStackOutput.js.map +1 -0
- package/abstractions/features/GetPulumiResourceNamePrefix.d.ts +7 -0
- package/abstractions/features/GetPulumiResourceNamePrefix.js +5 -0
- package/abstractions/features/GetPulumiResourceNamePrefix.js.map +1 -0
- package/abstractions/features/RefreshApp.d.ts +18 -0
- package/abstractions/features/RefreshApp.js +5 -0
- package/abstractions/features/RefreshApp.js.map +1 -0
- package/abstractions/features/RunPulumiCommand.d.ts +19 -0
- package/abstractions/features/RunPulumiCommand.js +5 -0
- package/abstractions/features/RunPulumiCommand.js.map +1 -0
- package/abstractions/index.d.ts +21 -6
- package/abstractions/index.js +21 -6
- package/abstractions/pulumiTypes.d.ts +18 -0
- package/abstractions/pulumiTypes.js +0 -0
- package/abstractions/services/GetPulumiService.d.ts +20 -0
- package/abstractions/services/GetPulumiService.js +5 -0
- package/abstractions/services/GetPulumiService.js.map +1 -0
- package/abstractions/services/GetPulumiVersionService.d.ts +12 -0
- package/abstractions/services/GetPulumiVersionService.js +5 -0
- package/abstractions/services/GetPulumiVersionService.js.map +1 -0
- package/abstractions/services/IsRemotePulumiBackendService.d.ts +7 -0
- package/abstractions/services/IsRemotePulumiBackendService.js +5 -0
- package/abstractions/services/IsRemotePulumiBackendService.js.map +1 -0
- package/abstractions/services/ListAppLambdaFunctionsService.d.ts +23 -0
- package/abstractions/services/ListAppLambdaFunctionsService.js +5 -0
- package/abstractions/services/ListAppLambdaFunctionsService.js.map +1 -0
- package/abstractions/services/ListDeployedEnvironmentsService.d.ts +12 -0
- package/abstractions/services/ListDeployedEnvironmentsService.js +5 -0
- package/abstractions/services/ListDeployedEnvironmentsService.js.map +1 -0
- package/abstractions/services/PulumiExportService.d.ts +13 -0
- package/abstractions/services/PulumiExportService.js +6 -0
- package/abstractions/services/PulumiExportService.js.map +1 -0
- package/abstractions/services/PulumiGetConfigPassphraseService.d.ts +7 -0
- package/abstractions/services/PulumiGetConfigPassphraseService.js +5 -0
- package/abstractions/services/PulumiGetConfigPassphraseService.js.map +1 -0
- package/abstractions/services/PulumiGetSecretsProviderService.d.ts +7 -0
- package/abstractions/services/PulumiGetSecretsProviderService.js +5 -0
- package/abstractions/services/PulumiGetSecretsProviderService.js.map +1 -0
- package/abstractions/services/PulumiGetStackOutputService.d.ts +13 -0
- package/abstractions/services/PulumiGetStackOutputService.js +5 -0
- package/abstractions/services/PulumiGetStackOutputService.js.map +1 -0
- package/abstractions/services/PulumiImportService.d.ts +8 -0
- package/abstractions/services/PulumiImportService.js +5 -0
- package/abstractions/services/PulumiImportService.js.map +1 -0
- package/abstractions/services/PulumiLoginService.d.ts +19 -0
- package/abstractions/services/PulumiLoginService.js +5 -0
- package/abstractions/services/PulumiLoginService.js.map +1 -0
- package/abstractions/services/PulumiSelectStackService.d.ts +10 -0
- package/abstractions/services/PulumiSelectStackService.js +5 -0
- package/abstractions/services/PulumiSelectStackService.js.map +1 -0
- package/abstractions/services/StackOutputCacheService.d.ts +10 -0
- package/abstractions/services/StackOutputCacheService.js +5 -0
- package/abstractions/services/StackOutputCacheService.js.map +1 -0
- package/abstractions/services/WatchedLambdaFunctionsService.d.ts +28 -0
- package/abstractions/services/WatchedLambdaFunctionsService.js +5 -0
- package/abstractions/services/WatchedLambdaFunctionsService.js.map +1 -0
- package/api.d.ts +1 -15
- package/api.js +1 -3
- package/api.js.map +1 -1
- package/decorators/DeployAppClearWatchedLambdaFunctions.d.ts +20 -0
- package/decorators/DeployAppClearWatchedLambdaFunctions.js +35 -0
- package/decorators/DeployAppClearWatchedLambdaFunctions.js.map +1 -0
- package/decorators/DeployAppRefreshStackOutputCache.d.ts +20 -0
- package/decorators/DeployAppRefreshStackOutputCache.js +34 -0
- package/decorators/DeployAppRefreshStackOutputCache.js.map +1 -0
- package/decorators/DeployAppWithHooks.d.ts +25 -0
- package/decorators/DeployAppWithHooks.js +58 -0
- package/decorators/DeployAppWithHooks.js.map +1 -0
- package/decorators/DeployAppWithWatchedLambdaReplacement.d.ts +20 -0
- package/decorators/DeployAppWithWatchedLambdaReplacement.js +42 -0
- package/decorators/DeployAppWithWatchedLambdaReplacement.js.map +1 -0
- package/decorators/DestroyAppClearStackOutputCache.d.ts +28 -0
- package/decorators/DestroyAppClearStackOutputCache.js +31 -0
- package/decorators/DestroyAppClearStackOutputCache.js.map +1 -0
- package/decorators/GetPulumiServiceWithDownloadInfo.d.ts +13 -0
- package/decorators/GetPulumiServiceWithDownloadInfo.js +28 -0
- package/decorators/GetPulumiServiceWithDownloadInfo.js.map +1 -0
- package/decorators/ProjectInfoWithPulumi.d.ts +34 -0
- package/decorators/ProjectInfoWithPulumi.js +36 -0
- package/decorators/ProjectInfoWithPulumi.js.map +1 -0
- package/exports/infra/admin.d.ts +1 -3
- package/exports/infra/admin.js +0 -3
- package/exports/infra/api.d.ts +1 -3
- package/exports/infra/api.js +0 -3
- package/exports/infra/core.d.ts +1 -2
- package/exports/infra/core.js +0 -2
- package/extensions/ApiLambdaFunction.js +3 -2
- package/extensions/ApiLambdaFunction.js.map +1 -1
- package/extensions/ApiRoute.d.ts +7 -16
- package/extensions/ApiRoute.js +5 -73
- package/extensions/ApiRoute.js.map +1 -1
- package/extensions/OpenSearch/EnsureOsServiceRoleBeforeCoreDeploy.d.ts +3 -2
- package/extensions/OpenSearch/EnsureOsServiceRoleBeforeCoreDeploy.js +2 -1
- package/extensions/OpenSearch/EnsureOsServiceRoleBeforeCoreDeploy.js.map +1 -1
- package/extensions/OpenSearch/EnsureOsWasDeployed.d.ts +3 -3
- package/extensions/OpenSearch/EnsureOsWasDeployed.js +1 -2
- package/extensions/OpenSearch/EnsureOsWasDeployed.js.map +1 -1
- package/extensions/OpenSearch.d.ts +9 -10
- package/extensions/OpenSearch.js +8 -16
- package/extensions/OpenSearch.js.map +1 -1
- package/extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.d.ts +3 -3
- package/extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.js +3 -2
- package/extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.js.map +1 -1
- package/extensions/ProjectAws/BlueGreenDeployments/EnsureVariantBeforeDeploy.d.ts +3 -2
- package/extensions/ProjectAws/BlueGreenDeployments/EnsureVariantBeforeDeploy.js +2 -1
- package/extensions/ProjectAws/BlueGreenDeployments/EnsureVariantBeforeDeploy.js.map +1 -1
- package/extensions/ProjectAws/BlueGreenDeployments/PrintDeploymentInfoAfterDeploy.d.ts +5 -2
- package/extensions/ProjectAws/BlueGreenDeployments/PrintDeploymentInfoAfterDeploy.js +3 -1
- package/extensions/ProjectAws/BlueGreenDeployments/PrintDeploymentInfoAfterDeploy.js.map +1 -1
- package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminBuild.d.ts +3 -1
- package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminBuild.js +2 -1
- package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminBuild.js.map +1 -1
- package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminWatch.d.ts +3 -1
- package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminWatch.js +2 -1
- package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminWatch.js.map +1 -1
- package/extensions/ProjectAws/EnsureApiDeployedBeforeWatch.d.ts +3 -1
- package/extensions/ProjectAws/EnsureApiDeployedBeforeWatch.js +2 -1
- package/extensions/ProjectAws/EnsureApiDeployedBeforeWatch.js.map +1 -1
- package/extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.d.ts +3 -2
- package/extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.js +3 -2
- package/extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.js.map +1 -1
- package/extensions/ProjectAws/EnsureCoreDeployedBeforeApiDeploy.d.ts +4 -2
- package/extensions/ProjectAws/EnsureCoreDeployedBeforeApiDeploy.js +3 -1
- package/extensions/ProjectAws/EnsureCoreDeployedBeforeApiDeploy.js.map +1 -1
- package/extensions/ProjectAws/EnsureTelemetryEnabledForOss.d.ts +6 -2
- package/extensions/ProjectAws/EnsureTelemetryEnabledForOss.js +2 -1
- package/extensions/ProjectAws/EnsureTelemetryEnabledForOss.js.map +1 -1
- package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVars.d.ts +1 -1
- package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVars.js +1 -1
- package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVars.js.map +1 -1
- package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeBuild.d.ts +1 -1
- package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeBuild.js +1 -1
- package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeBuild.js.map +1 -1
- package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeWatch.d.ts +1 -1
- package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeWatch.js +1 -1
- package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeWatch.js.map +1 -1
- package/extensions/ProjectAws/SetDatabaseSetupOutput.d.ts +2 -2
- package/extensions/ProjectAws/SetDatabaseSetupOutput.js +1 -1
- package/extensions/ProjectAws/SetDatabaseSetupOutput.js.map +1 -1
- package/extensions/ProjectAws/TelemetryNoLongerNewUser.d.ts +2 -2
- package/extensions/ProjectAws/TelemetryNoLongerNewUser.js +1 -1
- package/extensions/ProjectAws/TelemetryNoLongerNewUser.js.map +1 -1
- package/extensions/ProjectAws/UploadAdminAppToS3.d.ts +5 -3
- package/extensions/ProjectAws/UploadAdminAppToS3.js +3 -3
- package/extensions/ProjectAws/UploadAdminAppToS3.js.map +1 -1
- package/extensions/ProjectAws/ValidateEncryptionBeforeDeploy.d.ts +5 -2
- package/extensions/ProjectAws/ValidateEncryptionBeforeDeploy.js +2 -1
- package/extensions/ProjectAws/ValidateEncryptionBeforeDeploy.js.map +1 -1
- package/extensions/ProjectAws/ValidateProductionPulumiState.d.ts +5 -2
- package/extensions/ProjectAws/ValidateProductionPulumiState.js +3 -1
- package/extensions/ProjectAws/ValidateProductionPulumiState.js.map +1 -1
- package/extensions/ProjectAws/definitions.js +6 -2
- package/extensions/ProjectAws/definitions.js.map +1 -1
- package/extensions/ProjectAws.d.ts +1 -0
- package/extensions/ProjectAws.js +3 -1
- package/extensions/ProjectAws.js.map +1 -1
- package/extensions/RegisterRoutesPulumi.d.ts +2 -2
- package/extensions/RegisterRoutesPulumi.js +4 -4
- package/extensions/RegisterRoutesPulumi.js.map +1 -1
- package/extensions/definitions.js +1 -5
- package/extensions/definitions.js.map +1 -1
- package/extensions/index.d.ts +2 -3
- package/extensions/index.js +2 -3
- package/extensions/registerExtensionImplementations.js +11 -0
- package/extensions/registerExtensionImplementations.js.map +1 -0
- package/extensions/toApiGatewayPath.d.ts +2 -0
- package/extensions/toApiGatewayPath.js +6 -0
- package/extensions/toApiGatewayPath.js.map +1 -0
- package/features/ApiGqlClient.d.ts +4 -4
- package/features/ApiGqlClient.js +3 -3
- package/features/ApiGqlClient.js.map +1 -1
- package/features/DeployApp/DeployApp.d.ts +22 -0
- package/features/DeployApp/DeployApp.js +91 -0
- package/features/DeployApp/DeployApp.js.map +1 -0
- package/features/DeployApp/index.d.ts +1 -0
- package/features/DeployApp/index.js +1 -0
- package/features/DestroyApp/DestroyApp.d.ts +20 -0
- package/features/DestroyApp/DestroyApp.js +70 -0
- package/features/DestroyApp/DestroyApp.js.map +1 -0
- package/features/DestroyApp/index.d.ts +1 -0
- package/features/DestroyApp/index.js +1 -0
- package/features/ExportStack/ExportStack.d.ts +12 -0
- package/features/ExportStack/ExportStack.js +28 -0
- package/features/ExportStack/ExportStack.js.map +1 -0
- package/features/ExportStack/index.d.ts +1 -0
- package/features/ExportStack/index.js +1 -0
- package/features/GetAppOutput/GetAppOutput.d.ts +16 -0
- package/features/GetAppOutput/GetAppOutput.js +55 -0
- package/features/GetAppOutput/GetAppOutput.js.map +1 -0
- package/features/GetAppOutput/index.d.ts +1 -0
- package/features/GetAppOutput/index.js +1 -0
- package/features/GetAppStackOutput/GetAppStackOutput.d.ts +13 -0
- package/features/GetAppStackOutput/GetAppStackOutput.js +28 -0
- package/features/GetAppStackOutput/GetAppStackOutput.js.map +1 -0
- package/features/GetAppStackOutput/index.d.ts +1 -0
- package/features/GetAppStackOutput/index.js +1 -0
- package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.d.ts +8 -0
- package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.js +26 -0
- package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.js.map +1 -0
- package/features/GetPulumiResourceNamePrefix/index.d.ts +1 -0
- package/features/GetPulumiResourceNamePrefix/index.js +1 -0
- package/features/InvokeLambdaFunction.d.ts +3 -3
- package/features/InvokeLambdaFunction.js +3 -3
- package/features/InvokeLambdaFunction.js.map +1 -1
- package/features/RefreshApp/RefreshApp.d.ts +18 -0
- package/features/RefreshApp/RefreshApp.js +68 -0
- package/features/RefreshApp/RefreshApp.js.map +1 -0
- package/features/RefreshApp/index.d.ts +1 -0
- package/features/RefreshApp/index.js +1 -0
- package/features/RunPulumiCommand/RunPulumiCommand.d.ts +18 -0
- package/features/RunPulumiCommand/RunPulumiCommand.js +65 -0
- package/features/RunPulumiCommand/RunPulumiCommand.js.map +1 -0
- package/features/RunPulumiCommand/index.d.ts +1 -0
- package/features/RunPulumiCommand/index.js +1 -0
- package/features/Watch/AwsWatch.d.ts +9 -1
- package/features/Watch/AwsWatch.js +8 -4
- package/features/Watch/AwsWatch.js.map +1 -1
- package/features/Watch/getIotEndpoint.d.ts +2 -2
- package/features/Watch/getIotEndpoint.js.map +1 -1
- package/features/Watch/initInvocationForwarding.d.ts +9 -0
- package/features/Watch/initInvocationForwarding.js +91 -0
- package/features/Watch/initInvocationForwarding.js.map +1 -0
- package/features/Watch/localInvocationWorker.d.ts +1 -0
- package/features/Watch/localInvocationWorker.js +31 -0
- package/features/Watch/localInvocationWorker.js.map +1 -0
- package/features/Watch/replaceLambdaFunctions.d.ts +7 -3
- package/features/Watch/replaceLambdaFunctions.js.map +1 -1
- package/features/hooks/AdminAfterDeploy/AdminAfterDeploy.d.ts +7 -0
- package/features/hooks/AdminAfterDeploy/AdminAfterDeploy.js +25 -0
- package/features/hooks/AdminAfterDeploy/AdminAfterDeploy.js.map +1 -0
- package/features/hooks/AdminAfterDeploy/index.d.ts +1 -0
- package/features/hooks/AdminAfterDeploy/index.js +1 -0
- package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.d.ts +7 -0
- package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.js +25 -0
- package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.js.map +1 -0
- package/features/hooks/AdminBeforeDeploy/index.d.ts +1 -0
- package/features/hooks/AdminBeforeDeploy/index.js +1 -0
- package/features/hooks/AfterDeploy/AfterDeploy.d.ts +7 -0
- package/features/hooks/AfterDeploy/AfterDeploy.js +25 -0
- package/features/hooks/AfterDeploy/AfterDeploy.js.map +1 -0
- package/features/hooks/AfterDeploy/index.d.ts +1 -0
- package/features/hooks/AfterDeploy/index.js +1 -0
- package/features/hooks/ApiAfterDeploy/ApiAfterDeploy.d.ts +7 -0
- package/features/hooks/ApiAfterDeploy/ApiAfterDeploy.js +25 -0
- package/features/hooks/ApiAfterDeploy/ApiAfterDeploy.js.map +1 -0
- package/features/hooks/ApiAfterDeploy/index.d.ts +1 -0
- package/features/hooks/ApiAfterDeploy/index.js +1 -0
- package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.d.ts +7 -0
- package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.js +25 -0
- package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.js.map +1 -0
- package/features/hooks/ApiBeforeDeploy/index.d.ts +1 -0
- package/features/hooks/ApiBeforeDeploy/index.js +1 -0
- package/features/hooks/BeforeDeploy/BeforeDeploy.d.ts +7 -0
- package/features/hooks/BeforeDeploy/BeforeDeploy.js +25 -0
- package/features/hooks/BeforeDeploy/BeforeDeploy.js.map +1 -0
- package/features/hooks/BeforeDeploy/index.d.ts +1 -0
- package/features/hooks/BeforeDeploy/index.js +1 -0
- package/features/hooks/CoreAfterDeploy/CoreAfterDeploy.d.ts +7 -0
- package/features/hooks/CoreAfterDeploy/CoreAfterDeploy.js +25 -0
- package/features/hooks/CoreAfterDeploy/CoreAfterDeploy.js.map +1 -0
- package/features/hooks/CoreAfterDeploy/index.d.ts +1 -0
- package/features/hooks/CoreAfterDeploy/index.js +1 -0
- package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.d.ts +7 -0
- package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.js +25 -0
- package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.js.map +1 -0
- package/features/hooks/CoreBeforeDeploy/index.d.ts +1 -0
- package/features/hooks/CoreBeforeDeploy/index.js +1 -0
- package/index.d.ts +3 -0
- package/index.js +3 -0
- package/infra.d.ts +49 -2
- package/infra.js +16 -4
- package/infra.js.map +1 -1
- package/package.json +26 -23
- package/project.d.ts +12 -1
- package/project.js +3 -2
- package/project.js.map +1 -1
- package/pulumi/apps/admin/createAdminPulumiApp.js +7 -4
- package/pulumi/apps/admin/createAdminPulumiApp.js.map +1 -1
- package/pulumi/apps/api/ApiCloudfront.js +2 -1
- package/pulumi/apps/api/ApiCloudfront.js.map +1 -1
- package/pulumi/apps/api/ApiOutput.d.ts +6 -6
- package/pulumi/apps/api/createApiPulumiApp.js +9 -7
- package/pulumi/apps/api/createApiPulumiApp.js.map +1 -1
- package/pulumi/apps/awsUtils.js +1 -1
- package/pulumi/apps/awsUtils.js.map +1 -1
- package/pulumi/apps/blueGreen/domains/resolveDomains.js +1 -1
- package/pulumi/apps/blueGreen/domains/resolveDomains.js.map +1 -1
- package/pulumi/apps/blueGreen/types.d.ts +2 -5
- package/pulumi/apps/common/CoreOutput.d.ts +2 -1
- package/pulumi/apps/common/CoreOutput.js.map +1 -1
- package/pulumi/apps/core/CoreAuditLogsDynamo.d.ts +1 -0
- package/pulumi/apps/core/CoreAuditLogsDynamo.js +3 -0
- package/pulumi/apps/core/CoreAuditLogsDynamo.js.map +1 -1
- package/pulumi/apps/core/CoreDynamo.d.ts +1 -0
- package/pulumi/apps/core/CoreDynamo.js +3 -0
- package/pulumi/apps/core/CoreDynamo.js.map +1 -1
- package/pulumi/apps/core/CoreFileManager.d.ts +2 -0
- package/pulumi/apps/core/CoreFileManager.js +11 -1
- package/pulumi/apps/core/CoreFileManager.js.map +1 -1
- package/pulumi/apps/core/CoreOpenSearch.d.ts +1 -0
- package/pulumi/apps/core/CoreOpenSearch.js +3 -0
- package/pulumi/apps/core/CoreOpenSearch.js.map +1 -1
- package/pulumi/apps/core/configureS3BucketMalwareProtection.js +12 -2
- package/pulumi/apps/core/configureS3BucketMalwareProtection.js.map +1 -1
- package/pulumi/apps/core/createCorePulumiApp.js +16 -7
- package/pulumi/apps/core/createCorePulumiApp.js.map +1 -1
- package/pulumi/apps/customDomain.d.ts +10 -0
- package/pulumi/apps/customDomain.js +5 -1
- package/pulumi/apps/customDomain.js.map +1 -1
- package/pulumi/apps/extensions/getAwsTagsFromExtension.js +1 -1
- package/pulumi/apps/extensions/getAwsTagsFromExtension.js.map +1 -1
- package/pulumi/apps/extensions/getBgDeploymentsConfigFromExtension.d.ts +2 -2
- package/pulumi/apps/extensions/getBgDeploymentsConfigFromExtension.js +1 -1
- package/pulumi/apps/extensions/getBgDeploymentsConfigFromExtension.js.map +1 -1
- package/pulumi/apps/extensions/getOsConfigFromExtension.js +2 -2
- package/pulumi/apps/extensions/getOsConfigFromExtension.js.map +1 -1
- package/pulumi/apps/extensions/getVpcConfigFromExtension.js +1 -1
- package/pulumi/apps/extensions/getVpcConfigFromExtension.js.map +1 -1
- package/pulumi/apps/extensions/isProductionDefaultEnabled.d.ts +16 -0
- package/pulumi/apps/extensions/isProductionDefaultEnabled.js +9 -0
- package/pulumi/apps/extensions/isProductionDefaultEnabled.js.map +1 -0
- package/pulumi/apps/extensions/isVpcEnabled.d.ts +14 -0
- package/pulumi/apps/extensions/isVpcEnabled.js +8 -0
- package/pulumi/apps/extensions/isVpcEnabled.js.map +1 -0
- package/pulumi/apps/syncSystem/types.d.ts +2 -2
- package/pulumi/extensions/AdminPulumi.js +3 -2
- package/pulumi/extensions/AdminPulumi.js.map +1 -1
- package/pulumi/extensions/ApiPulumi.js +3 -2
- package/pulumi/extensions/ApiPulumi.js.map +1 -1
- package/pulumi/extensions/CorePulumi.js +3 -2
- package/pulumi/extensions/CorePulumi.js.map +1 -1
- package/pulumi/extensions/index.d.ts +53 -22
- package/pulumi/extensions/index.js +12 -9
- package/pulumi/extensions/index.js.map +1 -1
- package/pulumi/features/AdminPulumi/AdminPulumi.d.ts +1 -1
- package/pulumi/features/AdminPulumi/AdminPulumi.js +1 -1
- package/pulumi/features/AdminPulumi/AdminPulumi.js.map +1 -1
- package/pulumi/features/ApiPulumi/ApiPulumi.d.ts +1 -1
- package/pulumi/features/ApiPulumi/ApiPulumi.js +1 -1
- package/pulumi/features/ApiPulumi/ApiPulumi.js.map +1 -1
- package/pulumi/features/CorePulumi/CorePulumi.d.ts +1 -1
- package/pulumi/features/CorePulumi/CorePulumi.js +1 -1
- package/pulumi/features/CorePulumi/CorePulumi.js.map +1 -1
- package/pulumi/features/DefaultSetAdminCustomDomains.d.ts +1 -1
- package/pulumi/features/DefaultSetAdminCustomDomains.js.map +1 -1
- package/pulumi/features/DefaultSetApiCustomDomains.d.ts +1 -1
- package/pulumi/features/DefaultSetApiCustomDomains.js.map +1 -1
- package/pulumi/getAwsProjectSdk.d.ts +2 -12
- package/pulumi/getAwsProjectSdk.js +2 -3
- package/pulumi/getAwsProjectSdk.js.map +1 -1
- package/pulumi/getStackOutput.d.ts +4 -5
- package/pulumi/getStackOutput.js.map +1 -1
- package/pulumi/types.d.ts +4 -3
- package/pulumi/utils/getDistributionUrl.d.ts +9 -0
- package/pulumi/utils/getDistributionUrl.js +8 -0
- package/pulumi/utils/getDistributionUrl.js.map +1 -0
- package/pulumi/utils/index.d.ts +1 -0
- package/pulumi/utils/index.js +1 -0
- package/pulumi/utils/lambdaEnvVariables.js.map +1 -1
- package/registerAwsProjectFeatures.js +38 -9
- package/registerAwsProjectFeatures.js.map +1 -1
- package/services/AdminStackOutputService.d.ts +3 -3
- package/services/AdminStackOutputService.js +2 -2
- package/services/AdminStackOutputService.js.map +1 -1
- package/services/ApiStackOutputService.d.ts +3 -3
- package/services/ApiStackOutputService.js +2 -2
- package/services/ApiStackOutputService.js.map +1 -1
- package/services/AwsDeployInitHostingSdkService/AwsDeployInitHostingSdkService.d.ts +10 -0
- package/services/AwsDeployInitHostingSdkService/AwsDeployInitHostingSdkService.js +30 -0
- package/services/AwsDeployInitHostingSdkService/AwsDeployInitHostingSdkService.js.map +1 -0
- package/services/AwsPulumiInitHostingSdkService/AwsPulumiInitHostingSdkService.d.ts +9 -0
- package/services/AwsPulumiInitHostingSdkService/AwsPulumiInitHostingSdkService.js +24 -0
- package/services/AwsPulumiInitHostingSdkService/AwsPulumiInitHostingSdkService.js.map +1 -0
- package/services/CoreStackOutputService.d.ts +3 -3
- package/services/CoreStackOutputService.js +2 -2
- package/services/CoreStackOutputService.js.map +1 -1
- package/services/GetPulumiService/GetPulumiService.d.ts +4 -3
- package/services/GetPulumiService/GetPulumiService.js +3 -2
- package/services/GetPulumiService/GetPulumiService.js.map +1 -1
- package/services/GetPulumiVersionService/GetPulumiVersionService.d.ts +5 -0
- package/services/GetPulumiVersionService/GetPulumiVersionService.js +46 -0
- package/services/GetPulumiVersionService/GetPulumiVersionService.js.map +1 -0
- package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.d.ts +14 -0
- package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.js +15 -0
- package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.js.map +1 -0
- package/services/IsRemotePulumiBackendService/index.d.ts +1 -0
- package/services/IsRemotePulumiBackendService/index.js +1 -0
- package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.d.ts +20 -0
- package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.js +63 -0
- package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.js.map +1 -0
- package/services/ListAppLambdaFunctionsService/index.d.ts +1 -0
- package/services/ListAppLambdaFunctionsService/index.js +1 -0
- package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.d.ts +8 -0
- package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.js +31 -0
- package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.js.map +1 -0
- package/services/ListDeployedEnvironmentsService/index.d.ts +1 -0
- package/services/ListDeployedEnvironmentsService/index.js +1 -0
- package/services/PulumiExportService/PulumiExportService.d.ts +16 -0
- package/services/PulumiExportService/PulumiExportService.js +54 -0
- package/services/PulumiExportService/PulumiExportService.js.map +1 -0
- package/services/PulumiExportService/index.d.ts +1 -0
- package/services/PulumiExportService/index.js +1 -0
- package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.d.ts +5 -0
- package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.js +15 -0
- package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.js.map +1 -0
- package/services/PulumiGetConfigPassphraseService/index.d.ts +1 -0
- package/services/PulumiGetConfigPassphraseService/index.js +1 -0
- package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.d.ts +5 -0
- package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.js +15 -0
- package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.js.map +1 -0
- package/services/PulumiGetSecretsProviderService/index.d.ts +1 -0
- package/services/PulumiGetSecretsProviderService/index.js +1 -0
- package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.d.ts +16 -0
- package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js +69 -0
- package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js.map +1 -0
- package/services/PulumiGetStackOutputService/index.d.ts +1 -0
- package/services/PulumiGetStackOutputService/index.js +1 -0
- package/services/PulumiGetStackOutputService/mapStackOutput.d.ts +1 -0
- package/services/PulumiGetStackOutputService/mapStackOutput.js +22 -0
- package/services/PulumiGetStackOutputService/mapStackOutput.js.map +1 -0
- package/services/PulumiImportService/PulumiImportService.d.ts +13 -0
- package/services/PulumiImportService/PulumiImportService.js +64 -0
- package/services/PulumiImportService/PulumiImportService.js.map +1 -0
- package/services/PulumiImportService/index.d.ts +1 -0
- package/services/PulumiImportService/index.js +1 -0
- package/services/PulumiLoginService/PulumiLoginService.d.ts +13 -0
- package/services/PulumiLoginService/PulumiLoginService.js +59 -0
- package/services/PulumiLoginService/PulumiLoginService.js.map +1 -0
- package/services/PulumiLoginService/index.d.ts +1 -0
- package/services/PulumiLoginService/index.js +1 -0
- package/services/PulumiSelectStackService/PulumiSelectStackService.d.ts +20 -0
- package/services/PulumiSelectStackService/PulumiSelectStackService.js +106 -0
- package/services/PulumiSelectStackService/PulumiSelectStackService.js.map +1 -0
- package/services/PulumiSelectStackService/index.d.ts +1 -0
- package/services/PulumiSelectStackService/index.js +1 -0
- package/services/StackOutputCacheService/StackOutputCacheService.d.ts +21 -0
- package/services/StackOutputCacheService/StackOutputCacheService.js +90 -0
- package/services/StackOutputCacheService/StackOutputCacheService.js.map +1 -0
- package/services/StackOutputCacheService/index.d.ts +1 -0
- package/services/StackOutputCacheService/index.js +1 -0
- package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.d.ts +14 -0
- package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.js +55 -0
- package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.js.map +1 -0
- package/services/WatchedLambdaFunctionsService/index.d.ts +1 -0
- package/services/WatchedLambdaFunctionsService/index.js +1 -0
- package/utils/withPulumiConfigPassphrase.d.ts +1 -0
- package/utils/withPulumiConfigPassphrase.js +7 -0
- package/utils/withPulumiConfigPassphrase.js.map +1 -0
- package/abstractions/ApiGqlClient.d.ts +0 -23
- package/abstractions/ApiGqlClient.js +0 -5
- package/abstractions/ApiGqlClient.js.map +0 -1
- package/abstractions/InvokeLambdaFunction.d.ts +0 -18
- package/abstractions/InvokeLambdaFunction.js +0 -5
- package/abstractions/InvokeLambdaFunction.js.map +0 -1
- package/abstractions/features/pulumi/AdminPulumi.d.ts +0 -9
- package/abstractions/features/pulumi/AdminPulumi.js +0 -5
- package/abstractions/features/pulumi/AdminPulumi.js.map +0 -1
- package/abstractions/features/pulumi/ApiPulumi.d.ts +0 -9
- package/abstractions/features/pulumi/ApiPulumi.js +0 -5
- package/abstractions/features/pulumi/ApiPulumi.js.map +0 -1
- package/abstractions/features/pulumi/CorePulumi.d.ts +0 -9
- package/abstractions/features/pulumi/CorePulumi.js +0 -5
- package/abstractions/features/pulumi/CorePulumi.js.map +0 -1
- package/abstractions/features/pulumi/SetAdminCustomDomains.d.ts +0 -9
- package/abstractions/features/pulumi/SetAdminCustomDomains.js +0 -5
- package/abstractions/features/pulumi/SetAdminCustomDomains.js.map +0 -1
- package/abstractions/features/pulumi/SetApiCustomDomains.d.ts +0 -9
- package/abstractions/features/pulumi/SetApiCustomDomains.js +0 -5
- package/abstractions/features/pulumi/SetApiCustomDomains.js.map +0 -1
- package/abstractions/features/pulumi/index.d.ts +0 -5
- package/abstractions/features/pulumi/index.js +0 -5
- package/abstractions/services/AdminStackOutputService.d.ts +0 -13
- package/abstractions/services/AdminStackOutputService.js +0 -5
- package/abstractions/services/AdminStackOutputService.js.map +0 -1
- package/abstractions/services/ApiStackOutputService.d.ts +0 -29
- package/abstractions/services/ApiStackOutputService.js +0 -5
- package/abstractions/services/ApiStackOutputService.js.map +0 -1
- package/abstractions/services/CoreStackOutputService.d.ts +0 -16
- package/abstractions/services/CoreStackOutputService.js +0 -5
- package/abstractions/services/CoreStackOutputService.js.map +0 -1
- package/exports/extensions.d.ts +0 -5
- package/exports/extensions.js +0 -5
- package/exports/infra.d.ts +0 -1
- package/exports/infra.js +0 -1
- package/extensions/AwsDefaultRegion.d.ts +0 -4
- package/extensions/AwsDefaultRegion.js +0 -23
- package/extensions/AwsDefaultRegion.js.map +0 -1
- package/extensions/BackgroundTasks.d.ts +0 -4
- package/extensions/BackgroundTasks.js +0 -24
- package/extensions/BackgroundTasks.js.map +0 -1
- package/extensions/Cms/ModelFieldCompression.d.ts +0 -4
- package/extensions/Cms/ModelFieldCompression.js +0 -24
- package/extensions/Cms/ModelFieldCompression.js.map +0 -1
- package/extensions/Mailer/Smtp.d.ts +0 -8
- package/extensions/Mailer/Smtp.js +0 -21
- package/extensions/Mailer/Smtp.js.map +0 -1
- package/extensions/Mailer/Smtp.test.js +0 -127
- package/extensions/Mailer/Smtp.test.js.map +0 -1
- package/extensions/Mailer/SmtpParamsSchema.d.ts +0 -9
- package/extensions/Mailer/SmtpParamsSchema.js +0 -17
- package/extensions/Mailer/SmtpParamsSchema.js.map +0 -1
- package/extensions/ProjectAws/AutoInstall.d.ts +0 -9
- package/extensions/ProjectAws/AutoInstall.js +0 -20
- package/extensions/ProjectAws/AutoInstall.js.map +0 -1
- package/extensions/routePath.d.ts +0 -20
- package/extensions/routePath.js +0 -13
- package/extensions/routePath.js.map +0 -1
- package/pulumi/extensions/AdminCustomDomains.d.ts +0 -9
- package/pulumi/extensions/AdminCustomDomains.js +0 -20
- package/pulumi/extensions/AdminCustomDomains.js.map +0 -1
- package/pulumi/extensions/ApiCustomDomains.d.ts +0 -9
- package/pulumi/extensions/ApiCustomDomains.js +0 -20
- package/pulumi/extensions/ApiCustomDomains.js.map +0 -1
- package/pulumi/extensions/AwsTags.d.ts +0 -4
- package/pulumi/extensions/AwsTags.js +0 -16
- package/pulumi/extensions/AwsTags.js.map +0 -1
- package/pulumi/extensions/BlueGreenDeployments.d.ts +0 -34
- package/pulumi/extensions/BlueGreenDeployments.js +0 -38
- package/pulumi/extensions/BlueGreenDeployments.js.map +0 -1
- package/pulumi/extensions/OpenSearch.d.ts +0 -10
- package/pulumi/extensions/OpenSearch.js +0 -21
- package/pulumi/extensions/OpenSearch.js.map +0 -1
- package/pulumi/extensions/Vpc.d.ts +0 -15
- package/pulumi/extensions/Vpc.js +0 -26
- package/pulumi/extensions/Vpc.js.map +0 -1
- /package/extensions/{Mailer/Smtp.test.d.ts → registerExtensionImplementations.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.js","sources":["../../../../src/extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.ts"],"sourcesContent":["import { ApiAfterDeploy } from \"@webiny/project/abstractions/index.js\";\nimport { UiService } from \"@webiny/project/abstractions/services/UiService.js\";\nimport { LoggerService } from \"@webiny/project/abstractions/services/LoggerService.js\";\nimport { GetProjectConfigService } from \"@webiny/project/abstractions/index.js\";\nimport { ApiGqlClient } from \"
|
|
1
|
+
{"version":3,"file":"extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.js","sources":["../../../../src/extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.ts"],"sourcesContent":["import { ApiAfterDeploy } from \"@webiny/project-extensions-aws/abstractions/index.js\";\nimport { UiService } from \"@webiny/project/abstractions/services/UiService.js\";\nimport { LoggerService } from \"@webiny/project/abstractions/services/LoggerService.js\";\nimport { GetProjectConfigService } from \"@webiny/project/abstractions/index.js\";\nimport { ApiGqlClient } from \"@webiny/project-extensions-aws/abstractions/ApiGqlClient.js\";\n\nconst IS_INSTALLED_QUERY = `\n query IsSystemInstalled {\n system {\n isSystemInstalled {\n data\n error {\n message\n code\n }\n }\n }\n }\n`;\n\nconst INSTALL_MUTATION = `\n mutation InstallSystem($installationInput: JSON!) {\n system {\n installSystem(installationInput: $installationInput) {\n data\n error {\n message\n code\n }\n }\n }\n }\n`;\n\ninterface IsInstalledResponse {\n system: {\n isSystemInstalled: {\n data: boolean;\n error?: {\n message: string;\n code: string;\n };\n };\n };\n}\n\ninterface InstallResponse {\n system: {\n installSystem: {\n data: boolean;\n error?: {\n message: string;\n code: string;\n };\n };\n };\n}\n\nclass AutoInstallAfterApiDeployImpl implements ApiAfterDeploy.Interface {\n constructor(\n private apiGqlClient: ApiGqlClient.Interface,\n private ui: UiService.Interface,\n private getProjectConfig: GetProjectConfigService.Interface,\n private logger: LoggerService.Interface\n ) {}\n\n async execute(params: ApiAfterDeploy.Params): Promise<void> {\n if (params.preview) {\n // Skip auto-install on preview deployments\n return;\n }\n\n const projectConfig = await this.getProjectConfig.execute();\n const adminAutoInstallExtensions = projectConfig.extensionsByType(\"Project/AutoInstall\");\n\n if (adminAutoInstallExtensions.length === 0) {\n return;\n }\n\n const config = adminAutoInstallExtensions[0].params;\n\n // Check if system is already installed\n this.ui.info(\"Checking if system is already installed...\");\n\n try {\n const isInstalledResponse = await this.apiGqlClient.query<IsInstalledResponse>({\n query: IS_INSTALLED_QUERY\n });\n\n if (isInstalledResponse.data?.system.isSystemInstalled.data === true) {\n this.ui.info(\"System is already installed, skipping auto-install.\");\n return;\n }\n } catch (error: any) {\n this.logger.error(\"Failed to check installation status\", { error });\n this.ui.warning(`Could not check installation status: ${error.message}`);\n return;\n }\n\n this.ui.info(\"Auto-installing...\");\n /**\n * Type Error introduced with Zod v4. V3 had any type.\n */\n // @ts-expect-error\n const adminUser = config.adminUser || {\n firstName: \"John\",\n lastName: \"Smith\",\n email: \"admin@webiny.com\",\n password: \"12345678\"\n };\n\n const variables = {\n installationInput: [\n {\n app: \"Cognito\",\n data: adminUser\n }\n ]\n };\n\n const installResponse = await this.apiGqlClient.mutation<InstallResponse>({\n mutation: INSTALL_MUTATION,\n variables\n });\n\n if (installResponse.data?.system.installSystem.error) {\n const { message, code } = installResponse.data.system.installSystem.error;\n this.logger.error(\"Installation failed\", { message, code });\n this.ui.error(`Installation failed: ${message} (${code})`);\n throw new Error(message);\n }\n\n this.ui.success(\"System installed successfully!\");\n this.ui.info(\"Admin credentials:\");\n this.ui.info(` Email: ${adminUser.email}`);\n this.ui.info(` Password: ${adminUser.password}`);\n }\n}\n\nexport const AutoInstallAfterApiDeploy = ApiAfterDeploy.createImplementation({\n implementation: AutoInstallAfterApiDeployImpl,\n dependencies: [ApiGqlClient, UiService, GetProjectConfigService, LoggerService]\n});\n"],"names":["IS_INSTALLED_QUERY","INSTALL_MUTATION","AutoInstallAfterApiDeployImpl","apiGqlClient","ui","getProjectConfig","logger","params","projectConfig","adminAutoInstallExtensions","config","isInstalledResponse","error","adminUser","variables","installResponse","message","code","Error","AutoInstallAfterApiDeploy","ApiAfterDeploy","ApiGqlClient","UiService","GetProjectConfigService","LoggerService"],"mappings":";;;;;AAMA,MAAMA,qBAAqB,CAAC;;;;;;;;;;;;AAY5B,CAAC;AAED,MAAMC,mBAAmB,CAAC;;;;;;;;;;;;AAY1B,CAAC;AA0BD,MAAMC;IACF,YACYC,YAAoC,EACpCC,EAAuB,EACvBC,gBAAmD,EACnDC,MAA+B,CACzC;aAJUH,YAAY,GAAZA;aACAC,EAAE,GAAFA;aACAC,gBAAgB,GAAhBA;aACAC,MAAM,GAANA;IACT;IAEH,MAAM,QAAQC,MAA6B,EAAiB;QACxD,IAAIA,OAAO,OAAO,EAEd;QAGJ,MAAMC,gBAAgB,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO;QACzD,MAAMC,6BAA6BD,cAAc,gBAAgB,CAAC;QAElE,IAAIC,AAAsC,MAAtCA,2BAA2B,MAAM,EACjC;QAGJ,MAAMC,SAASD,0BAA0B,CAAC,EAAE,CAAC,MAAM;QAGnD,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC;QAEb,IAAI;YACA,MAAME,sBAAsB,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,CAAsB;gBAC3E,OAAOX;YACX;YAEA,IAAIW,oBAAoB,IAAI,EAAE,OAAO,kBAAkB,SAAS,MAAM,YAClE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC;QAGrB,EAAE,OAAOC,OAAY;YACjB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,uCAAuC;gBAAEA;YAAM;YACjE,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,qCAAqC,EAAEA,MAAM,OAAO,EAAE;YACvE;QACJ;QAEA,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC;QAKb,MAAMC,YAAYH,OAAO,SAAS,IAAI;YAClC,WAAW;YACX,UAAU;YACV,OAAO;YACP,UAAU;QACd;QAEA,MAAMI,YAAY;YACd,mBAAmB;gBACf;oBACI,KAAK;oBACL,MAAMD;gBACV;aACH;QACL;QAEA,MAAME,kBAAkB,MAAM,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAkB;YACtE,UAAUd;YACVa;QACJ;QAEA,IAAIC,gBAAgB,IAAI,EAAE,OAAO,cAAc,OAAO;YAClD,MAAM,EAAEC,OAAO,EAAEC,IAAI,EAAE,GAAGF,gBAAgB,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK;YACzE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,uBAAuB;gBAAEC;gBAASC;YAAK;YACzD,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,qBAAqB,EAAED,QAAQ,EAAE,EAAEC,KAAK,CAAC,CAAC;YACzD,MAAM,IAAIC,MAAMF;QACpB;QAEA,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC;QAChB,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC;QACb,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAEH,UAAU,KAAK,EAAE;QACzC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,WAAW,EAAEA,UAAU,QAAQ,EAAE;IACnD;AACJ;AAEO,MAAMM,4BAA4BC,eAAe,oBAAoB,CAAC;IACzE,gBAAgBlB;IAChB,cAAc;QAACmB;QAAcC;QAAWC;QAAyBC;KAAc;AACnF"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { BeforeDeploy
|
|
1
|
+
import { BeforeDeploy } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
2
|
+
import { ProjectSdkParamsService } from "@webiny/project/abstractions/index.js";
|
|
2
3
|
declare class PrintDeploymentInfoAfterDeployImpl implements BeforeDeploy.Interface {
|
|
3
4
|
private projectSdkParamsService;
|
|
4
5
|
constructor(projectSdkParamsService: ProjectSdkParamsService.Interface);
|
|
5
6
|
execute(params: BeforeDeploy.Params): Promise<void>;
|
|
6
7
|
}
|
|
7
8
|
export declare const EnsureVariantBeforeDeploy: typeof PrintDeploymentInfoAfterDeployImpl & {
|
|
8
|
-
__abstraction: import("@webiny/di").Abstraction<import("@webiny/project/abstractions/
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("@webiny/project-extensions-aws/abstractions/index.js").IBeforeDeploy>;
|
|
9
10
|
};
|
|
10
11
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BeforeDeploy
|
|
1
|
+
import { BeforeDeploy } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
2
|
+
import { ProjectSdkParamsService } from "@webiny/project/abstractions/index.js";
|
|
2
3
|
class PrintDeploymentInfoAfterDeployImpl {
|
|
3
4
|
constructor(projectSdkParamsService){
|
|
4
5
|
this.projectSdkParamsService = projectSdkParamsService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/ProjectAws/BlueGreenDeployments/EnsureVariantBeforeDeploy.js","sources":["../../../../src/extensions/ProjectAws/BlueGreenDeployments/EnsureVariantBeforeDeploy.ts"],"sourcesContent":["import { BeforeDeploy
|
|
1
|
+
{"version":3,"file":"extensions/ProjectAws/BlueGreenDeployments/EnsureVariantBeforeDeploy.js","sources":["../../../../src/extensions/ProjectAws/BlueGreenDeployments/EnsureVariantBeforeDeploy.ts"],"sourcesContent":["import { BeforeDeploy } from \"@webiny/project-extensions-aws/abstractions/index.js\";\nimport { ProjectSdkParamsService } from \"@webiny/project/abstractions/index.js\";\n\nclass PrintDeploymentInfoAfterDeployImpl implements BeforeDeploy.Interface {\n constructor(private projectSdkParamsService: ProjectSdkParamsService.Interface) {}\n\n async execute(params: BeforeDeploy.Params) {\n if (params.app !== \"blueGreen\") {\n return;\n }\n\n const sdkParams = this.projectSdkParamsService.get();\n const { env, variant } = sdkParams;\n\n if (!variant?.length) {\n return;\n }\n const message = `Cannot deploy Blue / Green system environment (${env}) with a variant (${variant}).`;\n throw new Error(message);\n }\n}\n\nexport const EnsureVariantBeforeDeploy = BeforeDeploy.createImplementation({\n implementation: PrintDeploymentInfoAfterDeployImpl,\n dependencies: [ProjectSdkParamsService]\n});\n"],"names":["PrintDeploymentInfoAfterDeployImpl","projectSdkParamsService","params","sdkParams","env","variant","message","Error","EnsureVariantBeforeDeploy","BeforeDeploy","ProjectSdkParamsService"],"mappings":";;AAGA,MAAMA;IACF,YAAoBC,uBAA0D,CAAE;aAA5DA,uBAAuB,GAAvBA;IAA6D;IAEjF,MAAM,QAAQC,MAA2B,EAAE;QACvC,IAAIA,AAAe,gBAAfA,OAAO,GAAG,EACV;QAGJ,MAAMC,YAAY,IAAI,CAAC,uBAAuB,CAAC,GAAG;QAClD,MAAM,EAAEC,GAAG,EAAEC,OAAO,EAAE,GAAGF;QAEzB,IAAI,CAACE,SAAS,QACV;QAEJ,MAAMC,UAAU,CAAC,+CAA+C,EAAEF,IAAI,kBAAkB,EAAEC,QAAQ,EAAE,CAAC;QACrG,MAAM,IAAIE,MAAMD;IACpB;AACJ;AAEO,MAAME,4BAA4BC,aAAa,oBAAoB,CAAC;IACvE,gBAAgBT;IAChB,cAAc;QAACU;KAAwB;AAC3C"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { AfterDeploy
|
|
1
|
+
import { AfterDeploy } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
2
|
+
import { GetAppStackOutput } from "../../../abstractions/features/GetAppStackOutput.js";
|
|
3
|
+
import { ProjectSdkParamsService } from "@webiny/project/abstractions/index.js";
|
|
4
|
+
import { UiService } from "@webiny/project/abstractions/index.js";
|
|
2
5
|
export interface IEnvironment {
|
|
3
6
|
name: string;
|
|
4
7
|
env: string;
|
|
@@ -15,6 +18,6 @@ declare class PrintDeploymentInfoAfterDeployImpl implements AfterDeploy.Interfac
|
|
|
15
18
|
execute(params: AfterDeploy.Params): Promise<void>;
|
|
16
19
|
}
|
|
17
20
|
export declare const PrintDeploymentInfoAfterDeploy: typeof PrintDeploymentInfoAfterDeployImpl & {
|
|
18
|
-
__abstraction: import("@webiny/di").Abstraction<import("@webiny/project/abstractions/
|
|
21
|
+
__abstraction: import("@webiny/di").Abstraction<import("@webiny/project-extensions-aws/abstractions/index.js").IAfterDeploy>;
|
|
19
22
|
};
|
|
20
23
|
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { AfterDeploy
|
|
1
|
+
import { AfterDeploy } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
2
|
+
import { GetAppStackOutput } from "../../../abstractions/features/GetAppStackOutput.js";
|
|
3
|
+
import { ProjectSdkParamsService, UiService } from "@webiny/project/abstractions/index.js";
|
|
2
4
|
import chalk from "chalk";
|
|
3
5
|
class PrintDeploymentInfoAfterDeployImpl {
|
|
4
6
|
constructor(ui, getAppStackOutput, projectSdkParamsService){
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/ProjectAws/BlueGreenDeployments/PrintDeploymentInfoAfterDeploy.js","sources":["../../../../src/extensions/ProjectAws/BlueGreenDeployments/PrintDeploymentInfoAfterDeploy.ts"],"sourcesContent":["import {\
|
|
1
|
+
{"version":3,"file":"extensions/ProjectAws/BlueGreenDeployments/PrintDeploymentInfoAfterDeploy.js","sources":["../../../../src/extensions/ProjectAws/BlueGreenDeployments/PrintDeploymentInfoAfterDeploy.ts"],"sourcesContent":["import { AfterDeploy } from \"@webiny/project-extensions-aws/abstractions/index.js\";\nimport { GetAppStackOutput } from \"~/abstractions/features/GetAppStackOutput.js\";\nimport { ProjectSdkParamsService } from \"@webiny/project/abstractions/index.js\";\nimport { UiService } from \"@webiny/project/abstractions/index.js\";\nimport { IBlueGreenStackOutput } from \"~/pulumi/apps/blueGreen/types.js\";\nimport chalk from \"chalk\";\n\nexport interface IEnvironment {\n name: string;\n env: string;\n variant: string | undefined;\n domains: {\n [key: string]: string;\n };\n}\n\nclass PrintDeploymentInfoAfterDeployImpl implements AfterDeploy.Interface {\n constructor(\n private ui: UiService.Interface,\n private getAppStackOutput: GetAppStackOutput.Interface,\n private projectSdkParamsService: ProjectSdkParamsService.Interface\n ) {}\n\n async execute(params: AfterDeploy.Params) {\n if (params.app !== \"blueGreen\") {\n return;\n }\n\n const { blue, green } = chalk;\n\n const bg = await this.getAppStackOutput.execute<IBlueGreenStackOutput>(\"blueGreen\");\n\n if (!bg) {\n this.ui.info(\n \"Blue / Green deployment info could not be printed because the Blue / Green app is not deployed.\"\n );\n return;\n }\n\n const sdkParams = this.projectSdkParamsService.get();\n\n const domains = Array.isArray(bg.domains) ? bg.domains : [];\n\n const environments = (bg.environments || []).reduce<IEnvironment[]>((items, item) => {\n const index = items.findIndex(i => i.name === item.name);\n if (index >= 0) {\n items[index].domains[item.type] = item.target;\n\n return items;\n }\n\n items.push({\n name: item.name,\n env: item.env,\n variant: item.variant,\n domains: {\n [item.type]: item.target\n }\n });\n\n return items;\n }, []);\n\n const output = [\n \"\",\n green(`Blue / Green Router`),\n `‣ Environment name: ${blue(sdkParams.env)}`,\n `‣ CloudFront domain: ${bg.distributionDomain}`,\n `‣ CloudFront URL: ${bg.distributionUrl}`,\n \"\",\n `‣ Domains attached: `,\n ...domains.map(domain => ` - https://${domain}`),\n \"\",\n `‣ Environments: `,\n ...environments.map(item => {\n const envVariant = `env: ${item.env}${\n item.variant ? ` / variant: ${item.variant}` : \"\"\n }`;\n return [\n ` - ${blue(item.name)} (${envVariant})`,\n ...Object.keys(item.domains).map(type => {\n return ` - ${type}: https://${item.domains[type]}`;\n })\n ].join(\"\\n\");\n }),\n \"\"\n ];\n console.log(output.join(\"\\n\"));\n }\n}\n\nexport const PrintDeploymentInfoAfterDeploy = AfterDeploy.createImplementation({\n implementation: PrintDeploymentInfoAfterDeployImpl,\n dependencies: [UiService, GetAppStackOutput, ProjectSdkParamsService]\n});\n"],"names":["PrintDeploymentInfoAfterDeployImpl","ui","getAppStackOutput","projectSdkParamsService","params","blue","green","chalk","bg","sdkParams","domains","Array","environments","items","item","index","i","output","domain","envVariant","Object","type","console","PrintDeploymentInfoAfterDeploy","AfterDeploy","UiService","GetAppStackOutput","ProjectSdkParamsService"],"mappings":";;;;AAgBA,MAAMA;IACF,YACYC,EAAuB,EACvBC,iBAA8C,EAC9CC,uBAA0D,CACpE;aAHUF,EAAE,GAAFA;aACAC,iBAAiB,GAAjBA;aACAC,uBAAuB,GAAvBA;IACT;IAEH,MAAM,QAAQC,MAA0B,EAAE;QACtC,IAAIA,AAAe,gBAAfA,OAAO,GAAG,EACV;QAGJ,MAAM,EAAEC,IAAI,EAAEC,KAAK,EAAE,GAAGC;QAExB,MAAMC,KAAK,MAAM,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAwB;QAEvE,IAAI,CAACA,IAAI,YACL,IAAI,CAAC,EAAE,CAAC,IAAI,CACR;QAKR,MAAMC,YAAY,IAAI,CAAC,uBAAuB,CAAC,GAAG;QAElD,MAAMC,UAAUC,MAAM,OAAO,CAACH,GAAG,OAAO,IAAIA,GAAG,OAAO,GAAG,EAAE;QAE3D,MAAMI,eAAgBJ,AAAAA,CAAAA,GAAG,YAAY,IAAI,EAAC,EAAG,MAAM,CAAiB,CAACK,OAAOC;YACxE,MAAMC,QAAQF,MAAM,SAAS,CAACG,CAAAA,IAAKA,EAAE,IAAI,KAAKF,KAAK,IAAI;YACvD,IAAIC,SAAS,GAAG;gBACZF,KAAK,CAACE,MAAM,CAAC,OAAO,CAACD,KAAK,IAAI,CAAC,GAAGA,KAAK,MAAM;gBAE7C,OAAOD;YACX;YAEAA,MAAM,IAAI,CAAC;gBACP,MAAMC,KAAK,IAAI;gBACf,KAAKA,KAAK,GAAG;gBACb,SAASA,KAAK,OAAO;gBACrB,SAAS;oBACL,CAACA,KAAK,IAAI,CAAC,EAAEA,KAAK,MAAM;gBAC5B;YACJ;YAEA,OAAOD;QACX,GAAG,EAAE;QAEL,MAAMI,SAAS;YACX;YACAX,MAAM;YACN,CAAC,oBAAoB,EAAED,KAAKI,UAAU,GAAG,GAAG;YAC5C,CAAC,qBAAqB,EAAED,GAAG,kBAAkB,EAAE;YAC/C,CAAC,kBAAkB,EAAEA,GAAG,eAAe,EAAE;YACzC;YACA;eACGE,QAAQ,GAAG,CAACQ,CAAAA,SAAU,CAAC,YAAY,EAAEA,QAAQ;YAChD;YACA;eACGN,aAAa,GAAG,CAACE,CAAAA;gBAChB,MAAMK,aAAa,CAAC,KAAK,EAAEL,KAAK,GAAG,GAC/BA,KAAK,OAAO,GAAG,CAAC,YAAY,EAAEA,KAAK,OAAO,EAAE,GAAG,IACjD;gBACF,OAAO;oBACH,CAAC,IAAI,EAAET,KAAKS,KAAK,IAAI,EAAE,EAAE,EAAEK,WAAW,CAAC,CAAC;uBACrCC,OAAO,IAAI,CAACN,KAAK,OAAO,EAAE,GAAG,CAACO,CAAAA,OACtB,CAAC,MAAM,EAAEA,KAAK,UAAU,EAAEP,KAAK,OAAO,CAACO,KAAK,EAAE;iBAE5D,CAAC,IAAI,CAAC;YACX;YACA;SACH;QACDC,QAAQ,GAAG,CAACL,OAAO,IAAI,CAAC;IAC5B;AACJ;AAEO,MAAMM,iCAAiCC,YAAY,oBAAoB,CAAC;IAC3E,gBAAgBxB;IAChB,cAAc;QAACyB;QAAWC;QAAmBC;KAAwB;AACzE"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { AdminBeforeBuild
|
|
1
|
+
import { AdminBeforeBuild } from "@webiny/project/abstractions/index.js";
|
|
2
|
+
import { ProjectSdkParamsService } from "@webiny/project/abstractions/index.js";
|
|
3
|
+
import { GetAppStackOutput } from "../../abstractions/features/GetAppStackOutput.js";
|
|
2
4
|
declare class EnsureApiDeployedBeforeAdminBuildImpl implements AdminBeforeBuild.Interface {
|
|
3
5
|
private getAppStackOutput;
|
|
4
6
|
private projectSdkParamsService;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { AdminBeforeBuild,
|
|
1
|
+
import { AdminBeforeBuild, ProjectSdkParamsService } from "@webiny/project/abstractions/index.js";
|
|
2
|
+
import { GetAppStackOutput } from "../../abstractions/features/GetAppStackOutput.js";
|
|
2
3
|
import { GracefulError } from "@webiny/project";
|
|
3
4
|
const NO_DEPLOYMENT_CHECKS_FLAG_NAME = "--no-deployment-checks";
|
|
4
5
|
class EnsureApiDeployedBeforeAdminBuildImpl {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/ProjectAws/EnsureApiDeployedBeforeAdminBuild.js","sources":["../../../src/extensions/ProjectAws/EnsureApiDeployedBeforeAdminBuild.ts"],"sourcesContent":["import {\
|
|
1
|
+
{"version":3,"file":"extensions/ProjectAws/EnsureApiDeployedBeforeAdminBuild.js","sources":["../../../src/extensions/ProjectAws/EnsureApiDeployedBeforeAdminBuild.ts"],"sourcesContent":["import { AdminBeforeBuild } from \"@webiny/project/abstractions/index.js\";\nimport { ProjectSdkParamsService } from \"@webiny/project/abstractions/index.js\";\nimport { GetAppStackOutput } from \"~/abstractions/features/GetAppStackOutput.js\";\nimport { GracefulError } from \"@webiny/project\";\n\nconst NO_DEPLOYMENT_CHECKS_FLAG_NAME = \"--no-deployment-checks\";\n\nclass EnsureApiDeployedBeforeAdminBuildImpl implements AdminBeforeBuild.Interface {\n constructor(\n private getAppStackOutput: GetAppStackOutput.Interface,\n private projectSdkParamsService: ProjectSdkParamsService.Interface\n ) {}\n\n async execute(params: AdminBeforeBuild.Params) {\n // Just in case, we want to allow users to skip the system requirements check.\n if (params.deploymentChecks === false) {\n return;\n }\n\n const output = await this.getAppStackOutput.execute(\"api\");\n const apiDeployed = output && Object.keys(output).length > 0;\n if (apiDeployed) {\n return;\n }\n\n const sdkParams = this.projectSdkParamsService.get();\n const cmd = `yarn webiny deploy api --env ${sdkParams.env}`;\n\n const error = new Error(\"Cannot build Admin before deploying API.\");\n const message = [\n `Before building %s, please build %s first by running: %s.`,\n `If you think this is a mistake, you can also try skipping`,\n `deployment checks by appending the %s flag.`,\n `Learn more: https://webiny.link/deployment-checks`\n ].join(\" \");\n\n throw GracefulError.from(\n error,\n message,\n \"Admin\",\n \"API\",\n cmd,\n NO_DEPLOYMENT_CHECKS_FLAG_NAME\n );\n }\n}\n\nexport const EnsureApiDeployedBeforeAdminBuild = AdminBeforeBuild.createImplementation({\n implementation: EnsureApiDeployedBeforeAdminBuildImpl,\n dependencies: [GetAppStackOutput, ProjectSdkParamsService]\n});\n"],"names":["NO_DEPLOYMENT_CHECKS_FLAG_NAME","EnsureApiDeployedBeforeAdminBuildImpl","getAppStackOutput","projectSdkParamsService","params","output","apiDeployed","Object","sdkParams","cmd","error","Error","message","GracefulError","EnsureApiDeployedBeforeAdminBuild","AdminBeforeBuild","GetAppStackOutput","ProjectSdkParamsService"],"mappings":";;;AAKA,MAAMA,iCAAiC;AAEvC,MAAMC;IACF,YACYC,iBAA8C,EAC9CC,uBAA0D,CACpE;aAFUD,iBAAiB,GAAjBA;aACAC,uBAAuB,GAAvBA;IACT;IAEH,MAAM,QAAQC,MAA+B,EAAE;QAE3C,IAAIA,AAA4B,UAA5BA,OAAO,gBAAgB,EACvB;QAGJ,MAAMC,SAAS,MAAM,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC;QACpD,MAAMC,cAAcD,UAAUE,OAAO,IAAI,CAACF,QAAQ,MAAM,GAAG;QAC3D,IAAIC,aACA;QAGJ,MAAME,YAAY,IAAI,CAAC,uBAAuB,CAAC,GAAG;QAClD,MAAMC,MAAM,CAAC,6BAA6B,EAAED,UAAU,GAAG,EAAE;QAE3D,MAAME,QAAQ,IAAIC,MAAM;QACxB,MAAMC,UAAU;QAOhB,MAAMC,cAAc,IAAI,CACpBH,OACAE,SACA,SACA,OACAH,KACAT;IAER;AACJ;AAEO,MAAMc,oCAAoCC,iBAAiB,oBAAoB,CAAC;IACnF,gBAAgBd;IAChB,cAAc;QAACe;QAAmBC;KAAwB;AAC9D"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { AdminBeforeWatch
|
|
1
|
+
import { AdminBeforeWatch } from "@webiny/project/abstractions/index.js";
|
|
2
|
+
import { ProjectSdkParamsService } from "@webiny/project/abstractions/index.js";
|
|
3
|
+
import { GetAppStackOutput } from "../../abstractions/features/GetAppStackOutput.js";
|
|
2
4
|
declare class EnsureApiDeployedBeforeAdminWatchImpl implements AdminBeforeWatch.Interface {
|
|
3
5
|
private getAppStackOutput;
|
|
4
6
|
private projectSdkParamsService;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { AdminBeforeWatch,
|
|
1
|
+
import { AdminBeforeWatch, ProjectSdkParamsService } from "@webiny/project/abstractions/index.js";
|
|
2
|
+
import { GetAppStackOutput } from "../../abstractions/features/GetAppStackOutput.js";
|
|
2
3
|
import { GracefulError } from "@webiny/project";
|
|
3
4
|
const NO_DEPLOYMENT_CHECKS_FLAG_NAME = "--no-deployment-checks";
|
|
4
5
|
class EnsureApiDeployedBeforeAdminWatchImpl {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/ProjectAws/EnsureApiDeployedBeforeAdminWatch.js","sources":["../../../src/extensions/ProjectAws/EnsureApiDeployedBeforeAdminWatch.ts"],"sourcesContent":["import {\
|
|
1
|
+
{"version":3,"file":"extensions/ProjectAws/EnsureApiDeployedBeforeAdminWatch.js","sources":["../../../src/extensions/ProjectAws/EnsureApiDeployedBeforeAdminWatch.ts"],"sourcesContent":["import { AdminBeforeWatch } from \"@webiny/project/abstractions/index.js\";\nimport { ProjectSdkParamsService } from \"@webiny/project/abstractions/index.js\";\nimport { GetAppStackOutput } from \"~/abstractions/features/GetAppStackOutput.js\";\nimport { GracefulError } from \"@webiny/project\";\n\nconst NO_DEPLOYMENT_CHECKS_FLAG_NAME = \"--no-deployment-checks\";\n\nclass EnsureApiDeployedBeforeAdminWatchImpl implements AdminBeforeWatch.Interface {\n constructor(\n private getAppStackOutput: GetAppStackOutput.Interface,\n private projectSdkParamsService: ProjectSdkParamsService.Interface\n ) {}\n\n async execute(params: AdminBeforeWatch.Params) {\n // Just in case, we want to allow users to skip the system requirements check.\n if (params.deploymentChecks === false) {\n return;\n }\n\n const output = await this.getAppStackOutput.execute(\"api\");\n const apiDeployed = output && Object.keys(output).length > 0;\n if (apiDeployed) {\n return;\n }\n\n const sdkParams = this.projectSdkParamsService.get();\n const cmd = `yarn webiny deploy api --env ${sdkParams.env}`;\n\n const error = new Error(`Cannot watch Admin before deploying API.`);\n const message = [\n `Before watching %s, please build %s first by running: %s.`,\n `If you think this is a mistake, you can also try skipping`,\n `deployment checks by appending the %s flag.`,\n `Learn more: https://webiny.link/deployment-checks`\n ].join(\" \");\n\n throw GracefulError.from(\n error,\n message,\n \"Admin\",\n \"API\",\n cmd,\n NO_DEPLOYMENT_CHECKS_FLAG_NAME\n );\n }\n}\n\nexport const EnsureApiDeployedBeforeAdminWatch = AdminBeforeWatch.createImplementation({\n implementation: EnsureApiDeployedBeforeAdminWatchImpl,\n dependencies: [GetAppStackOutput, ProjectSdkParamsService]\n});\n"],"names":["NO_DEPLOYMENT_CHECKS_FLAG_NAME","EnsureApiDeployedBeforeAdminWatchImpl","getAppStackOutput","projectSdkParamsService","params","output","apiDeployed","Object","sdkParams","cmd","error","Error","message","GracefulError","EnsureApiDeployedBeforeAdminWatch","AdminBeforeWatch","GetAppStackOutput","ProjectSdkParamsService"],"mappings":";;;AAKA,MAAMA,iCAAiC;AAEvC,MAAMC;IACF,YACYC,iBAA8C,EAC9CC,uBAA0D,CACpE;aAFUD,iBAAiB,GAAjBA;aACAC,uBAAuB,GAAvBA;IACT;IAEH,MAAM,QAAQC,MAA+B,EAAE;QAE3C,IAAIA,AAA4B,UAA5BA,OAAO,gBAAgB,EACvB;QAGJ,MAAMC,SAAS,MAAM,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC;QACpD,MAAMC,cAAcD,UAAUE,OAAO,IAAI,CAACF,QAAQ,MAAM,GAAG;QAC3D,IAAIC,aACA;QAGJ,MAAME,YAAY,IAAI,CAAC,uBAAuB,CAAC,GAAG;QAClD,MAAMC,MAAM,CAAC,6BAA6B,EAAED,UAAU,GAAG,EAAE;QAE3D,MAAME,QAAQ,IAAIC,MAAM;QACxB,MAAMC,UAAU;QAOhB,MAAMC,cAAc,IAAI,CACpBH,OACAE,SACA,SACA,OACAH,KACAT;IAER;AACJ;AAEO,MAAMc,oCAAoCC,iBAAiB,oBAAoB,CAAC;IACnF,gBAAgBd;IAChB,cAAc;QAACe;QAAmBC;KAAwB;AAC9D"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { ApiBeforeWatch
|
|
1
|
+
import { ApiBeforeWatch } from "@webiny/project/abstractions/index.js";
|
|
2
|
+
import { ProjectSdkParamsService } from "@webiny/project/abstractions/index.js";
|
|
3
|
+
import { GetAppStackOutput } from "../../abstractions/features/GetAppStackOutput.js";
|
|
2
4
|
declare class EnsureApiDeployedBeforeWatchImpl implements ApiBeforeWatch.Interface {
|
|
3
5
|
private getAppStackOutput;
|
|
4
6
|
private projectSdkParamsService;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ApiBeforeWatch,
|
|
1
|
+
import { ApiBeforeWatch, ProjectSdkParamsService } from "@webiny/project/abstractions/index.js";
|
|
2
|
+
import { GetAppStackOutput } from "../../abstractions/features/GetAppStackOutput.js";
|
|
2
3
|
import { GracefulError } from "@webiny/project";
|
|
3
4
|
const NO_DEPLOYMENT_CHECKS_FLAG_NAME = "--no-deployment-checks";
|
|
4
5
|
class EnsureApiDeployedBeforeWatchImpl {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/ProjectAws/EnsureApiDeployedBeforeWatch.js","sources":["../../../src/extensions/ProjectAws/EnsureApiDeployedBeforeWatch.ts"],"sourcesContent":["import {\
|
|
1
|
+
{"version":3,"file":"extensions/ProjectAws/EnsureApiDeployedBeforeWatch.js","sources":["../../../src/extensions/ProjectAws/EnsureApiDeployedBeforeWatch.ts"],"sourcesContent":["import { ApiBeforeWatch } from \"@webiny/project/abstractions/index.js\";\nimport { ProjectSdkParamsService } from \"@webiny/project/abstractions/index.js\";\nimport { GetAppStackOutput } from \"~/abstractions/features/GetAppStackOutput.js\";\nimport { GracefulError } from \"@webiny/project\";\n\nconst NO_DEPLOYMENT_CHECKS_FLAG_NAME = \"--no-deployment-checks\";\n\nclass EnsureApiDeployedBeforeWatchImpl implements ApiBeforeWatch.Interface {\n constructor(\n private getAppStackOutput: GetAppStackOutput.Interface,\n private projectSdkParamsService: ProjectSdkParamsService.Interface\n ) {}\n\n async execute(params: ApiBeforeWatch.Params) {\n // Just in case, we want to allow users to skip the system requirements check.\n if (params.deploymentChecks === false) {\n return;\n }\n\n const output = await this.getAppStackOutput.execute(\"api\");\n const apiDeployed = output && Object.keys(output).length > 0;\n if (apiDeployed) {\n return;\n }\n\n const error = new Error(`Cannot watch API before deploying it.`);\n const sdkParams = this.projectSdkParamsService.get();\n const cmd = `yarn webiny deploy api --env ${sdkParams.env}`;\n\n const message = [\n `Before watching %s, please deploy it first by running: %s.`,\n `If you think this is a mistake, you can also try skipping`,\n `deployment checks by appending the %s flag.`,\n `Learn more: https://webiny.link/deployment-checks`\n ].join(\" \");\n\n throw GracefulError.from(error, message, \"API\", cmd, NO_DEPLOYMENT_CHECKS_FLAG_NAME);\n }\n}\n\nexport const EnsureApiDeployedBeforeWatch = ApiBeforeWatch.createImplementation({\n implementation: EnsureApiDeployedBeforeWatchImpl,\n dependencies: [GetAppStackOutput, ProjectSdkParamsService]\n});\n"],"names":["NO_DEPLOYMENT_CHECKS_FLAG_NAME","EnsureApiDeployedBeforeWatchImpl","getAppStackOutput","projectSdkParamsService","params","output","apiDeployed","Object","error","Error","sdkParams","cmd","message","GracefulError","EnsureApiDeployedBeforeWatch","ApiBeforeWatch","GetAppStackOutput","ProjectSdkParamsService"],"mappings":";;;AAKA,MAAMA,iCAAiC;AAEvC,MAAMC;IACF,YACYC,iBAA8C,EAC9CC,uBAA0D,CACpE;aAFUD,iBAAiB,GAAjBA;aACAC,uBAAuB,GAAvBA;IACT;IAEH,MAAM,QAAQC,MAA6B,EAAE;QAEzC,IAAIA,AAA4B,UAA5BA,OAAO,gBAAgB,EACvB;QAGJ,MAAMC,SAAS,MAAM,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC;QACpD,MAAMC,cAAcD,UAAUE,OAAO,IAAI,CAACF,QAAQ,MAAM,GAAG;QAC3D,IAAIC,aACA;QAGJ,MAAME,QAAQ,IAAIC,MAAM;QACxB,MAAMC,YAAY,IAAI,CAAC,uBAAuB,CAAC,GAAG;QAClD,MAAMC,MAAM,CAAC,6BAA6B,EAAED,UAAU,GAAG,EAAE;QAE3D,MAAME,UAAU;QAOhB,MAAMC,cAAc,IAAI,CAACL,OAAOI,SAAS,OAAOD,KAAKX;IACzD;AACJ;AAEO,MAAMc,+BAA+BC,eAAe,oBAAoB,CAAC;IAC5E,gBAAgBd;IAChB,cAAc;QAACe;QAAmBC;KAAwB;AAC9D"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { BeforeDeploy
|
|
1
|
+
import { BeforeDeploy } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
2
|
+
import { LoggerService } from "@webiny/project/abstractions/index.js";
|
|
2
3
|
declare class EnsureAwsCredentialsBeforeDeployImpl implements BeforeDeploy.Interface {
|
|
3
4
|
private loggerService;
|
|
4
5
|
constructor(loggerService: LoggerService.Interface);
|
|
5
6
|
execute(): Promise<void>;
|
|
6
7
|
}
|
|
7
8
|
export declare const EnsureAwsCredentialsBeforeDeploy: typeof EnsureAwsCredentialsBeforeDeployImpl & {
|
|
8
|
-
__abstraction: import("@webiny/di").Abstraction<import("@webiny/project/abstractions/
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("@webiny/project-extensions-aws/abstractions/index.js").IBeforeDeploy>;
|
|
9
10
|
};
|
|
10
11
|
export {};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { BeforeDeploy
|
|
1
|
+
import { BeforeDeploy } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
2
|
+
import { LoggerService } from "@webiny/project/abstractions/index.js";
|
|
2
3
|
import { GracefulError } from "@webiny/project";
|
|
3
|
-
import { STS } from "@webiny/aws-sdk/client-sts/index.js";
|
|
4
4
|
class EnsureAwsCredentialsBeforeDeployImpl {
|
|
5
5
|
constructor(loggerService){
|
|
6
6
|
this.loggerService = loggerService;
|
|
7
7
|
}
|
|
8
8
|
async execute() {
|
|
9
|
+
const { STS } = await import("@webiny/aws-sdk/client-sts/index.js");
|
|
9
10
|
process.env.AWS_SDK_LOAD_CONFIG = "true";
|
|
10
11
|
const sts = new STS({});
|
|
11
12
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.js","sources":["../../../src/extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.ts"],"sourcesContent":["import { BeforeDeploy
|
|
1
|
+
{"version":3,"file":"extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.js","sources":["../../../src/extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.ts"],"sourcesContent":["import { BeforeDeploy } from \"@webiny/project-extensions-aws/abstractions/index.js\";\nimport { LoggerService } from \"@webiny/project/abstractions/index.js\";\nimport { GracefulError } from \"@webiny/project\";\n\nclass EnsureAwsCredentialsBeforeDeployImpl implements BeforeDeploy.Interface {\n constructor(private loggerService: LoggerService.Interface) {}\n\n async execute() {\n // Loaded here rather than at the top of the file. Validating the project config imports this\n // hook on every command, and only a deploy needs the STS client.\n const { STS } = await import(\"@webiny/aws-sdk/client-sts/index.js\");\n\n process.env.AWS_SDK_LOAD_CONFIG = \"true\";\n const sts = new STS({});\n\n try {\n await sts.getCallerIdentity({});\n } catch (err) {\n this.loggerService.debug({ err }, \"AWS credentials error.\");\n throw GracefulError.from(\n new Error(\"AWS credentials are not configured correctly.\"),\n 'No valid AWS credentials were found. Run \"aws configure\" or set the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables before deploying. Learn more: https://webiny.link/aws-credentials'\n );\n }\n\n const region = await sts.config.region();\n if (!region) {\n throw GracefulError.from(\n new Error(\"AWS region is not defined.\"),\n \"No AWS region is set. Define the AWS_REGION environment variable or set a default region in your AWS profile. Learn more: https://webiny.link/aws-region\"\n );\n }\n\n process.env.AWS_REGION = region;\n\n const { accessKeyId } = await sts.config.credentials();\n const profile = process.env.AWS_PROFILE;\n\n if (profile) {\n this.loggerService.info(`Using profile \"${profile}\" in \"${region}\" region.`);\n } else {\n this.loggerService.info(`Using access key ID \"${accessKeyId}\" in \"${region}\" region.`);\n }\n }\n}\n\nexport const EnsureAwsCredentialsBeforeDeploy = BeforeDeploy.createImplementation({\n implementation: EnsureAwsCredentialsBeforeDeployImpl,\n dependencies: [LoggerService]\n});\n"],"names":["EnsureAwsCredentialsBeforeDeployImpl","loggerService","STS","process","sts","err","GracefulError","Error","region","accessKeyId","profile","EnsureAwsCredentialsBeforeDeploy","BeforeDeploy","LoggerService"],"mappings":";;;AAIA,MAAMA;IACF,YAAoBC,aAAsC,CAAE;aAAxCA,aAAa,GAAbA;IAAyC;IAE7D,MAAM,UAAU;QAGZ,MAAM,EAAEC,GAAG,EAAE,GAAG,MAAM,MAAM,CAAC;QAE7BC,QAAQ,GAAG,CAAC,mBAAmB,GAAG;QAClC,MAAMC,MAAM,IAAIF,IAAI,CAAC;QAErB,IAAI;YACA,MAAME,IAAI,iBAAiB,CAAC,CAAC;QACjC,EAAE,OAAOC,KAAK;YACV,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC;gBAAEA;YAAI,GAAG;YAClC,MAAMC,cAAc,IAAI,CACpB,IAAIC,MAAM,kDACV;QAER;QAEA,MAAMC,SAAS,MAAMJ,IAAI,MAAM,CAAC,MAAM;QACtC,IAAI,CAACI,QACD,MAAMF,cAAc,IAAI,CACpB,IAAIC,MAAM,+BACV;QAIRJ,QAAQ,GAAG,CAAC,UAAU,GAAGK;QAEzB,MAAM,EAAEC,WAAW,EAAE,GAAG,MAAML,IAAI,MAAM,CAAC,WAAW;QACpD,MAAMM,UAAUP,QAAQ,GAAG,CAAC,WAAW;QAEvC,IAAIO,SACA,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,eAAe,EAAEA,QAAQ,MAAM,EAAEF,OAAO,SAAS,CAAC;aAE3E,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,qBAAqB,EAAEC,YAAY,MAAM,EAAED,OAAO,SAAS,CAAC;IAE7F;AACJ;AAEO,MAAMG,mCAAmCC,aAAa,oBAAoB,CAAC;IAC9E,gBAAgBZ;IAChB,cAAc;QAACa;KAAc;AACjC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { ApiBeforeDeploy
|
|
1
|
+
import { ApiBeforeDeploy } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
2
|
+
import { GetAppStackOutput } from "../../abstractions/features/GetAppStackOutput.js";
|
|
3
|
+
import { ProjectSdkParamsService } from "@webiny/project/abstractions/index.js";
|
|
2
4
|
declare class EnsureCoreDeployedBeforeApiDeployImpl implements ApiBeforeDeploy.Interface {
|
|
3
5
|
private getAppStackOutput;
|
|
4
6
|
private projectSdkParamsService;
|
|
@@ -6,6 +8,6 @@ declare class EnsureCoreDeployedBeforeApiDeployImpl implements ApiBeforeDeploy.I
|
|
|
6
8
|
execute(): Promise<void>;
|
|
7
9
|
}
|
|
8
10
|
export declare const EnsureCoreDeployedBeforeApiDeploy: typeof EnsureCoreDeployedBeforeApiDeployImpl & {
|
|
9
|
-
__abstraction: import("@webiny/di").Abstraction<import("@webiny/project/abstractions/
|
|
11
|
+
__abstraction: import("@webiny/di").Abstraction<import("@webiny/project-extensions-aws/abstractions/index.js").IApiBeforeDeploy>;
|
|
10
12
|
};
|
|
11
13
|
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { ApiBeforeDeploy
|
|
1
|
+
import { ApiBeforeDeploy } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
2
|
+
import { GetAppStackOutput } from "../../abstractions/features/GetAppStackOutput.js";
|
|
3
|
+
import { ProjectSdkParamsService } from "@webiny/project/abstractions/index.js";
|
|
2
4
|
import { GracefulError } from "@webiny/project";
|
|
3
5
|
class EnsureCoreDeployedBeforeApiDeployImpl {
|
|
4
6
|
constructor(getAppStackOutput, projectSdkParamsService){
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/ProjectAws/EnsureCoreDeployedBeforeApiDeploy.js","sources":["../../../src/extensions/ProjectAws/EnsureCoreDeployedBeforeApiDeploy.ts"],"sourcesContent":["import {\
|
|
1
|
+
{"version":3,"file":"extensions/ProjectAws/EnsureCoreDeployedBeforeApiDeploy.js","sources":["../../../src/extensions/ProjectAws/EnsureCoreDeployedBeforeApiDeploy.ts"],"sourcesContent":["import { ApiBeforeDeploy } from \"@webiny/project-extensions-aws/abstractions/index.js\";\nimport { GetAppStackOutput } from \"~/abstractions/features/GetAppStackOutput.js\";\nimport { ProjectSdkParamsService } from \"@webiny/project/abstractions/index.js\";\nimport { GracefulError } from \"@webiny/project\";\n\nclass EnsureCoreDeployedBeforeApiDeployImpl implements ApiBeforeDeploy.Interface {\n constructor(\n private getAppStackOutput: GetAppStackOutput.Interface,\n private projectSdkParamsService: ProjectSdkParamsService.Interface\n ) {}\n\n async execute() {\n const output = await this.getAppStackOutput.execute(\"core\");\n\n const coreDeployed = output && Object.keys(output).length > 0;\n if (coreDeployed) {\n return;\n }\n\n const sdkParams = this.projectSdkParamsService.get();\n const { variant, env } = sdkParams;\n\n let variantCmd = \"\";\n if (variant) {\n variantCmd = ` --variant ${variant}`;\n }\n\n const error = new Error(`Cannot deploy API before deploying Core.`);\n\n const message = [`Before deploying %s, please`, `deploy %s first by running: %s.`].join(\n \" \"\n );\n\n const cmd = `yarn webiny deploy core --env ${env}${variantCmd}`;\n throw GracefulError.from(error, message, \"API\", \"Core\", cmd);\n }\n}\n\nexport const EnsureCoreDeployedBeforeApiDeploy = ApiBeforeDeploy.createImplementation({\n implementation: EnsureCoreDeployedBeforeApiDeployImpl,\n dependencies: [GetAppStackOutput, ProjectSdkParamsService]\n});\n"],"names":["EnsureCoreDeployedBeforeApiDeployImpl","getAppStackOutput","projectSdkParamsService","output","coreDeployed","Object","sdkParams","variant","env","variantCmd","error","Error","message","cmd","GracefulError","EnsureCoreDeployedBeforeApiDeploy","ApiBeforeDeploy","GetAppStackOutput","ProjectSdkParamsService"],"mappings":";;;;AAKA,MAAMA;IACF,YACYC,iBAA8C,EAC9CC,uBAA0D,CACpE;aAFUD,iBAAiB,GAAjBA;aACAC,uBAAuB,GAAvBA;IACT;IAEH,MAAM,UAAU;QACZ,MAAMC,SAAS,MAAM,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC;QAEpD,MAAMC,eAAeD,UAAUE,OAAO,IAAI,CAACF,QAAQ,MAAM,GAAG;QAC5D,IAAIC,cACA;QAGJ,MAAME,YAAY,IAAI,CAAC,uBAAuB,CAAC,GAAG;QAClD,MAAM,EAAEC,OAAO,EAAEC,GAAG,EAAE,GAAGF;QAEzB,IAAIG,aAAa;QACjB,IAAIF,SACAE,aAAa,CAAC,WAAW,EAAEF,SAAS;QAGxC,MAAMG,QAAQ,IAAIC,MAAM;QAExB,MAAMC,UAAU;QAIhB,MAAMC,MAAM,CAAC,8BAA8B,EAAEL,MAAMC,YAAY;QAC/D,MAAMK,cAAc,IAAI,CAACJ,OAAOE,SAAS,OAAO,QAAQC;IAC5D;AACJ;AAEO,MAAME,oCAAoCC,gBAAgB,oBAAoB,CAAC;IAClF,gBAAgBhB;IAChB,cAAc;QAACiB;QAAmBC;KAAwB;AAC9D"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import { BeforeDeploy
|
|
1
|
+
import { BeforeDeploy } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
2
|
+
import { IsCi } from "@webiny/project/abstractions/index.js";
|
|
3
|
+
import { IsTelemetryEnabled } from "@webiny/project/abstractions/index.js";
|
|
4
|
+
import { IsWcpEnabled } from "@webiny/project/abstractions/index.js";
|
|
5
|
+
import { IsWebinyJsRepo } from "@webiny/project/abstractions/index.js";
|
|
2
6
|
declare class EnsureTelemetryEnabledForOssImpl implements BeforeDeploy.Interface {
|
|
3
7
|
private isTelemetryEnabled;
|
|
4
8
|
private isWcpEnabled;
|
|
@@ -8,6 +12,6 @@ declare class EnsureTelemetryEnabledForOssImpl implements BeforeDeploy.Interface
|
|
|
8
12
|
execute(): Promise<void>;
|
|
9
13
|
}
|
|
10
14
|
export declare const EnsureTelemetryEnabledForOss: typeof EnsureTelemetryEnabledForOssImpl & {
|
|
11
|
-
__abstraction: import("@webiny/di").Abstraction<import("@webiny/project/abstractions/
|
|
15
|
+
__abstraction: import("@webiny/di").Abstraction<import("@webiny/project-extensions-aws/abstractions/index.js").IBeforeDeploy>;
|
|
12
16
|
};
|
|
13
17
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BeforeDeploy
|
|
1
|
+
import { BeforeDeploy } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
2
|
+
import { IsCi, IsTelemetryEnabled, IsWcpEnabled, IsWebinyJsRepo } from "@webiny/project/abstractions/index.js";
|
|
2
3
|
import { GracefulError } from "@webiny/project";
|
|
3
4
|
class EnsureTelemetryEnabledForOssImpl {
|
|
4
5
|
constructor(isTelemetryEnabled, isWcpEnabled, isWebinyJsRepo, isCi){
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/ProjectAws/EnsureTelemetryEnabledForOss.js","sources":["../../../src/extensions/ProjectAws/EnsureTelemetryEnabledForOss.ts"],"sourcesContent":["import {\
|
|
1
|
+
{"version":3,"file":"extensions/ProjectAws/EnsureTelemetryEnabledForOss.js","sources":["../../../src/extensions/ProjectAws/EnsureTelemetryEnabledForOss.ts"],"sourcesContent":["import { BeforeDeploy } from \"@webiny/project-extensions-aws/abstractions/index.js\";\nimport { IsCi } from \"@webiny/project/abstractions/index.js\";\nimport { IsTelemetryEnabled } from \"@webiny/project/abstractions/index.js\";\nimport { IsWcpEnabled } from \"@webiny/project/abstractions/index.js\";\nimport { IsWebinyJsRepo } from \"@webiny/project/abstractions/index.js\";\nimport { GracefulError } from \"@webiny/project\";\n\nclass EnsureTelemetryEnabledForOssImpl implements BeforeDeploy.Interface {\n constructor(\n private isTelemetryEnabled: IsTelemetryEnabled.Interface,\n private isWcpEnabled: IsWcpEnabled.Interface,\n private isWebinyJsRepo: IsWebinyJsRepo.Interface,\n private isCi: IsCi.Interface\n ) {}\n\n async execute() {\n // Skip telemetry checks in CI environments\n if (this.isCi.execute()) {\n return;\n }\n\n // Don't enforce telemetry validation in the webiny-js development repository\n const isDevRepo = this.isWebinyJsRepo.execute();\n if (isDevRepo) {\n return;\n }\n\n const telemetryEnabled = await this.isTelemetryEnabled.execute();\n const wcpEnabled = await this.isWcpEnabled.execute();\n\n // If telemetry is disabled and WCP is not connected, throw an error\n if (!telemetryEnabled && !wcpEnabled) {\n const message = [\n `You are trying to deploy your project, but telemetry is currently disabled.`,\n `The open-source edition of Webiny requires telemetry to be enabled.`,\n `To proceed with the deployment, please re-enable telemetry or upgrade your project via https://www.webiny.com/pricing.`,\n `Learn more: https://webiny.link/telemetry-oss`\n ].join(\" \");\n\n const error = new Error(\"Cannot deploy with telemetry disabled in OSS edition.\");\n\n throw GracefulError.from(error, message);\n }\n }\n}\n\nexport const EnsureTelemetryEnabledForOss = BeforeDeploy.createImplementation({\n implementation: EnsureTelemetryEnabledForOssImpl,\n dependencies: [IsTelemetryEnabled, IsWcpEnabled, IsWebinyJsRepo, IsCi]\n});\n"],"names":["EnsureTelemetryEnabledForOssImpl","isTelemetryEnabled","isWcpEnabled","isWebinyJsRepo","isCi","isDevRepo","telemetryEnabled","wcpEnabled","message","error","Error","GracefulError","EnsureTelemetryEnabledForOss","BeforeDeploy","IsTelemetryEnabled","IsWcpEnabled","IsWebinyJsRepo","IsCi"],"mappings":";;;AAOA,MAAMA;IACF,YACYC,kBAAgD,EAChDC,YAAoC,EACpCC,cAAwC,EACxCC,IAAoB,CAC9B;aAJUH,kBAAkB,GAAlBA;aACAC,YAAY,GAAZA;aACAC,cAAc,GAAdA;aACAC,IAAI,GAAJA;IACT;IAEH,MAAM,UAAU;QAEZ,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,IACjB;QAIJ,MAAMC,YAAY,IAAI,CAAC,cAAc,CAAC,OAAO;QAC7C,IAAIA,WACA;QAGJ,MAAMC,mBAAmB,MAAM,IAAI,CAAC,kBAAkB,CAAC,OAAO;QAC9D,MAAMC,aAAa,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO;QAGlD,IAAI,CAACD,oBAAoB,CAACC,YAAY;YAClC,MAAMC,UAAU;YAOhB,MAAMC,QAAQ,IAAIC,MAAM;YAExB,MAAMC,cAAc,IAAI,CAACF,OAAOD;QACpC;IACJ;AACJ;AAEO,MAAMI,+BAA+BC,aAAa,oBAAoB,CAAC;IAC1E,gBAAgBb;IAChB,cAAc;QAACc;QAAoBC;QAAcC;QAAgBC;KAAK;AAC1E"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProjectSdkParamsService } from "@webiny/project/abstractions/index.js";
|
|
2
|
-
import { CoreStackOutputService, ApiStackOutputService } from "
|
|
2
|
+
import { CoreStackOutputService, ApiStackOutputService } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
3
3
|
interface ISetAdminEnvVarsDi {
|
|
4
4
|
projectSdkParamsService: ProjectSdkParamsService.Interface;
|
|
5
5
|
coreStackOutputService: CoreStackOutputService.Interface;
|
|
@@ -19,7 +19,7 @@ class SetAdminEnvVars {
|
|
|
19
19
|
process.env.WEBINY_ADMIN_API_URL = apiOutput.apiUrl;
|
|
20
20
|
process.env.REACT_APP_USER_POOL_ID = apiOutput.cognitoUserPoolId;
|
|
21
21
|
process.env.REACT_APP_USER_POOL_WEB_CLIENT_ID = apiOutput.cognitoAppClientId;
|
|
22
|
-
process.env.
|
|
22
|
+
process.env.WEBINY_ADMIN_PASSWORD_POLICY = JSON.stringify(apiOutput.cognitoUserPoolPasswordPolicy);
|
|
23
23
|
process.env.REACT_APP_WEBSOCKET_URL = apiOutput.websocketApiUrl;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVars.js","sources":["../../../../src/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVars.ts"],"sourcesContent":["import { ProjectSdkParamsService } from \"@webiny/project/abstractions/index.js\";\nimport {
|
|
1
|
+
{"version":3,"file":"extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVars.js","sources":["../../../../src/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVars.ts"],"sourcesContent":["import { ProjectSdkParamsService } from \"@webiny/project/abstractions/index.js\";\nimport {\n CoreStackOutputService,\n ApiStackOutputService\n} from \"@webiny/project-extensions-aws/abstractions/index.js\";\n\ninterface ISetAdminEnvVarsDi {\n projectSdkParamsService: ProjectSdkParamsService.Interface;\n coreStackOutputService: CoreStackOutputService.Interface;\n apiStackOutputService: ApiStackOutputService.Interface;\n}\n\nexport class SetAdminEnvVars {\n di: ISetAdminEnvVarsDi;\n\n constructor(di: ISetAdminEnvVarsDi) {\n this.di = di;\n }\n\n async execute() {\n const { projectSdkParamsService, coreStackOutputService, apiStackOutputService } = this.di;\n const sdkParams = projectSdkParamsService.get();\n\n // Set basic admin env vars\n process.env.PORT = process.env.PORT || \"3001\";\n process.env.WEBINY_ADMIN_ENV = sdkParams.env;\n process.env.WEBINY_ADMIN_TRASH_BIN_RETENTION_PERIOD_DAYS =\n process.env.WEBINY_TRASH_BIN_RETENTION_PERIOD_DAYS || \"\";\n\n // Load Core app stack output (automatically uses env/variant/region from ProjectSdkParamsService)\n const coreOutput = await coreStackOutputService.execute<{\n deploymentId: string;\n cognitoUserPoolDomain?: string;\n }>();\n\n if (coreOutput) {\n process.env.WEBINY_ADMIN_DEPLOYMENT_ID = coreOutput.deploymentId;\n\n // Set Cognito user pool domain if available\n if (coreOutput.cognitoUserPoolDomain) {\n process.env.REACT_APP_USER_POOL_DOMAIN = coreOutput.cognitoUserPoolDomain;\n }\n }\n\n // Load API app stack output (automatically uses env/variant/region from ProjectSdkParamsService)\n const apiOutput = await apiStackOutputService.execute<{\n region: string;\n apiUrl: string;\n cognitoUserPoolId: string;\n cognitoAppClientId: string;\n cognitoUserPoolPasswordPolicy: ApiStackOutputService.PasswordPolicy;\n websocketApiUrl: string;\n }>();\n\n if (apiOutput) {\n process.env.REACT_APP_USER_POOL_REGION = apiOutput.region;\n // Admin API URL, read by createRootContainer / Admin.tsx / playgrounds / api-info.\n process.env.WEBINY_ADMIN_API_URL = apiOutput.apiUrl;\n process.env.REACT_APP_USER_POOL_ID = apiOutput.cognitoUserPoolId;\n process.env.REACT_APP_USER_POOL_WEB_CLIENT_ID = apiOutput.cognitoAppClientId;\n // Read by app-admin's readPasswordPolicyRules, for every form that sets a password.\n process.env.WEBINY_ADMIN_PASSWORD_POLICY = JSON.stringify(\n apiOutput.cognitoUserPoolPasswordPolicy\n );\n process.env.REACT_APP_WEBSOCKET_URL = apiOutput.websocketApiUrl;\n }\n }\n}\n"],"names":["SetAdminEnvVars","di","projectSdkParamsService","coreStackOutputService","apiStackOutputService","sdkParams","process","coreOutput","apiOutput","JSON"],"mappings":"AAYO,MAAMA;IAGT,YAAYC,EAAsB,CAAE;QAChC,IAAI,CAAC,EAAE,GAAGA;IACd;IAEA,MAAM,UAAU;QACZ,MAAM,EAAEC,uBAAuB,EAAEC,sBAAsB,EAAEC,qBAAqB,EAAE,GAAG,IAAI,CAAC,EAAE;QAC1F,MAAMC,YAAYH,wBAAwB,GAAG;QAG7CI,QAAQ,GAAG,CAAC,IAAI,GAAGA,QAAQ,GAAG,CAAC,IAAI,IAAI;QACvCA,QAAQ,GAAG,CAAC,gBAAgB,GAAGD,UAAU,GAAG;QAC5CC,QAAQ,GAAG,CAAC,4CAA4C,GACpDA,QAAQ,GAAG,CAAC,sCAAsC,IAAI;QAG1D,MAAMC,aAAa,MAAMJ,uBAAuB,OAAO;QAKvD,IAAII,YAAY;YACZD,QAAQ,GAAG,CAAC,0BAA0B,GAAGC,WAAW,YAAY;YAGhE,IAAIA,WAAW,qBAAqB,EAChCD,QAAQ,GAAG,CAAC,0BAA0B,GAAGC,WAAW,qBAAqB;QAEjF;QAGA,MAAMC,YAAY,MAAMJ,sBAAsB,OAAO;QASrD,IAAII,WAAW;YACXF,QAAQ,GAAG,CAAC,0BAA0B,GAAGE,UAAU,MAAM;YAEzDF,QAAQ,GAAG,CAAC,oBAAoB,GAAGE,UAAU,MAAM;YACnDF,QAAQ,GAAG,CAAC,sBAAsB,GAAGE,UAAU,iBAAiB;YAChEF,QAAQ,GAAG,CAAC,iCAAiC,GAAGE,UAAU,kBAAkB;YAE5EF,QAAQ,GAAG,CAAC,4BAA4B,GAAGG,KAAK,SAAS,CACrDD,UAAU,6BAA6B;YAE3CF,QAAQ,GAAG,CAAC,uBAAuB,GAAGE,UAAU,eAAe;QACnE;IACJ;AACJ"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AdminBeforeBuild, ProjectSdkParamsService } from "@webiny/project/abstractions/index.js";
|
|
2
|
-
import { CoreStackOutputService, ApiStackOutputService } from "
|
|
2
|
+
import { CoreStackOutputService, ApiStackOutputService } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
3
3
|
declare class SetAdminEnvVarsBeforeBuildImpl implements AdminBeforeBuild.Interface {
|
|
4
4
|
private projectSdkParamsService;
|
|
5
5
|
private coreStackOutputService;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AdminBeforeBuild, ProjectSdkParamsService } from "@webiny/project/abstractions/index.js";
|
|
2
|
-
import { ApiStackOutputService, CoreStackOutputService } from "
|
|
2
|
+
import { ApiStackOutputService, CoreStackOutputService } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
3
3
|
import { SetAdminEnvVars } from "./SetAdminEnvVars.js";
|
|
4
4
|
class SetAdminEnvVarsBeforeBuildImpl {
|
|
5
5
|
constructor(projectSdkParamsService, coreStackOutputService, apiStackOutputService){
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeBuild.js","sources":["../../../../src/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeBuild.ts"],"sourcesContent":["import { AdminBeforeBuild, ProjectSdkParamsService } from \"@webiny/project/abstractions/index.js\";\nimport {
|
|
1
|
+
{"version":3,"file":"extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeBuild.js","sources":["../../../../src/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeBuild.ts"],"sourcesContent":["import { AdminBeforeBuild, ProjectSdkParamsService } from \"@webiny/project/abstractions/index.js\";\nimport {\n CoreStackOutputService,\n ApiStackOutputService\n} from \"@webiny/project-extensions-aws/abstractions/index.js\";\nimport { SetAdminEnvVars } from \"./SetAdminEnvVars.js\";\n\nclass SetAdminEnvVarsBeforeBuildImpl implements AdminBeforeBuild.Interface {\n constructor(\n private projectSdkParamsService: ProjectSdkParamsService.Interface,\n private coreStackOutputService: CoreStackOutputService.Interface,\n private apiStackOutputService: ApiStackOutputService.Interface\n ) {}\n\n async execute() {\n const setAdminEnvVars = new SetAdminEnvVars({\n projectSdkParamsService: this.projectSdkParamsService,\n coreStackOutputService: this.coreStackOutputService,\n apiStackOutputService: this.apiStackOutputService\n });\n\n await setAdminEnvVars.execute();\n }\n}\n\nexport const SetAdminEnvVarsBeforeBuild = AdminBeforeBuild.createImplementation({\n implementation: SetAdminEnvVarsBeforeBuildImpl,\n dependencies: [ProjectSdkParamsService, CoreStackOutputService, ApiStackOutputService]\n});\n"],"names":["SetAdminEnvVarsBeforeBuildImpl","projectSdkParamsService","coreStackOutputService","apiStackOutputService","setAdminEnvVars","SetAdminEnvVars","SetAdminEnvVarsBeforeBuild","AdminBeforeBuild","ProjectSdkParamsService","CoreStackOutputService","ApiStackOutputService"],"mappings":";;;AAOA,MAAMA;IACF,YACYC,uBAA0D,EAC1DC,sBAAwD,EACxDC,qBAAsD,CAChE;aAHUF,uBAAuB,GAAvBA;aACAC,sBAAsB,GAAtBA;aACAC,qBAAqB,GAArBA;IACT;IAEH,MAAM,UAAU;QACZ,MAAMC,kBAAkB,IAAIC,gBAAgB;YACxC,yBAAyB,IAAI,CAAC,uBAAuB;YACrD,wBAAwB,IAAI,CAAC,sBAAsB;YACnD,uBAAuB,IAAI,CAAC,qBAAqB;QACrD;QAEA,MAAMD,gBAAgB,OAAO;IACjC;AACJ;AAEO,MAAME,6BAA6BC,iBAAiB,oBAAoB,CAAC;IAC5E,gBAAgBP;IAChB,cAAc;QAACQ;QAAyBC;QAAwBC;KAAsB;AAC1F"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AdminBeforeWatch, ProjectSdkParamsService } from "@webiny/project/abstractions/index.js";
|
|
2
|
-
import { CoreStackOutputService, ApiStackOutputService } from "
|
|
2
|
+
import { CoreStackOutputService, ApiStackOutputService } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
3
3
|
declare class SetAdminEnvVarsBeforeWatchImpl implements AdminBeforeWatch.Interface {
|
|
4
4
|
private projectSdkParamsService;
|
|
5
5
|
private coreStackOutputService;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AdminBeforeWatch, ProjectSdkParamsService } from "@webiny/project/abstractions/index.js";
|
|
2
|
-
import { ApiStackOutputService, CoreStackOutputService } from "
|
|
2
|
+
import { ApiStackOutputService, CoreStackOutputService } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
3
3
|
import { SetAdminEnvVars } from "./SetAdminEnvVars.js";
|
|
4
4
|
class SetAdminEnvVarsBeforeWatchImpl {
|
|
5
5
|
constructor(projectSdkParamsService, coreStackOutputService, apiStackOutputService){
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeWatch.js","sources":["../../../../src/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeWatch.ts"],"sourcesContent":["import { AdminBeforeWatch, ProjectSdkParamsService } from \"@webiny/project/abstractions/index.js\";\nimport {
|
|
1
|
+
{"version":3,"file":"extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeWatch.js","sources":["../../../../src/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeWatch.ts"],"sourcesContent":["import { AdminBeforeWatch, ProjectSdkParamsService } from \"@webiny/project/abstractions/index.js\";\nimport {\n CoreStackOutputService,\n ApiStackOutputService\n} from \"@webiny/project-extensions-aws/abstractions/index.js\";\nimport { SetAdminEnvVars } from \"./SetAdminEnvVars.js\";\n\nclass SetAdminEnvVarsBeforeWatchImpl implements AdminBeforeWatch.Interface {\n constructor(\n private projectSdkParamsService: ProjectSdkParamsService.Interface,\n private coreStackOutputService: CoreStackOutputService.Interface,\n private apiStackOutputService: ApiStackOutputService.Interface\n ) {}\n\n async execute() {\n const setAdminEnvVars = new SetAdminEnvVars({\n projectSdkParamsService: this.projectSdkParamsService,\n coreStackOutputService: this.coreStackOutputService,\n apiStackOutputService: this.apiStackOutputService\n });\n\n await setAdminEnvVars.execute();\n }\n}\n\nexport const SetAdminEnvVarsBeforeWatch = AdminBeforeWatch.createImplementation({\n implementation: SetAdminEnvVarsBeforeWatchImpl,\n dependencies: [ProjectSdkParamsService, CoreStackOutputService, ApiStackOutputService]\n});\n"],"names":["SetAdminEnvVarsBeforeWatchImpl","projectSdkParamsService","coreStackOutputService","apiStackOutputService","setAdminEnvVars","SetAdminEnvVars","SetAdminEnvVarsBeforeWatch","AdminBeforeWatch","ProjectSdkParamsService","CoreStackOutputService","ApiStackOutputService"],"mappings":";;;AAOA,MAAMA;IACF,YACYC,uBAA0D,EAC1DC,sBAAwD,EACxDC,qBAAsD,CAChE;aAHUF,uBAAuB,GAAvBA;aACAC,sBAAsB,GAAtBA;aACAC,qBAAqB,GAArBA;IACT;IAEH,MAAM,UAAU;QACZ,MAAMC,kBAAkB,IAAIC,gBAAgB;YACxC,yBAAyB,IAAI,CAAC,uBAAuB;YACrD,wBAAwB,IAAI,CAAC,sBAAsB;YACnD,uBAAuB,IAAI,CAAC,qBAAqB;QACrD;QAEA,MAAMD,gBAAgB,OAAO;IACjC;AACJ;AAEO,MAAME,6BAA6BC,iBAAiB,oBAAoB,CAAC;IAC5E,gBAAgBP;IAChB,cAAc;QAACQ;QAAyBC;QAAwBC;KAAsB;AAC1F"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GetProjectConfigService } from "@webiny/project/abstractions/index.js";
|
|
2
|
-
import { CorePulumi } from "
|
|
2
|
+
import { CorePulumi } from "@webiny/project-extensions-aws/abstractions/features/pulumi/index.js";
|
|
3
3
|
import type { CorePulumiApp } from "../../pulumi/apps/core/createCorePulumiApp.js";
|
|
4
4
|
declare class SetDatabaseSetupOutputImpl implements CorePulumi.Interface {
|
|
5
5
|
private getProjectConfigService;
|
|
@@ -7,6 +7,6 @@ declare class SetDatabaseSetupOutputImpl implements CorePulumi.Interface {
|
|
|
7
7
|
execute(app: CorePulumiApp): Promise<void>;
|
|
8
8
|
}
|
|
9
9
|
export declare const SetDatabaseSetupOutput: typeof SetDatabaseSetupOutputImpl & {
|
|
10
|
-
__abstraction: import("@webiny/di").Abstraction<import("
|
|
10
|
+
__abstraction: import("@webiny/di").Abstraction<import("@webiny/project-extensions-aws/abstractions").ICorePulumi>;
|
|
11
11
|
};
|
|
12
12
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GetProjectConfigService } from "@webiny/project/abstractions/index.js";
|
|
2
2
|
import { DatabaseSetup } from "@webiny/project/extensions/index.js";
|
|
3
|
-
import { CorePulumi } from "
|
|
3
|
+
import { CorePulumi } from "@webiny/project-extensions-aws/abstractions/features/pulumi/index.js";
|
|
4
4
|
class SetDatabaseSetupOutputImpl {
|
|
5
5
|
constructor(getProjectConfigService){
|
|
6
6
|
this.getProjectConfigService = getProjectConfigService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/ProjectAws/SetDatabaseSetupOutput.js","sources":["../../../src/extensions/ProjectAws/SetDatabaseSetupOutput.ts"],"sourcesContent":["import { GetProjectConfigService } from \"@webiny/project/abstractions/index.js\";\nimport { DatabaseSetup } from \"@webiny/project/extensions/index.js\";\nimport { CorePulumi } from \"
|
|
1
|
+
{"version":3,"file":"extensions/ProjectAws/SetDatabaseSetupOutput.js","sources":["../../../src/extensions/ProjectAws/SetDatabaseSetupOutput.ts"],"sourcesContent":["import { GetProjectConfigService } from \"@webiny/project/abstractions/index.js\";\nimport { DatabaseSetup } from \"@webiny/project/extensions/index.js\";\nimport { CorePulumi } from \"@webiny/project-extensions-aws/abstractions/features/pulumi/index.js\";\nimport type { CorePulumiApp } from \"~/pulumi/apps/core/createCorePulumiApp.js\";\n\nclass SetDatabaseSetupOutputImpl implements CorePulumi.Interface {\n constructor(private getProjectConfigService: GetProjectConfigService.Interface) {}\n\n async execute(app: CorePulumiApp): Promise<void> {\n // Get the DatabaseSetup extension value\n const projectConfig = await this.getProjectConfigService.execute();\n\n const [databaseSetupExtension] = projectConfig.extensionsByType(DatabaseSetup);\n\n if (databaseSetupExtension) {\n const databaseSetup = databaseSetupExtension.params.setupName;\n app.addOutputs({\n databaseSetup\n });\n } else {\n // Default to 'ddb' if no DatabaseSetup extension is found\n app.addOutputs({\n databaseSetup: \"ddb\"\n });\n }\n }\n}\n\nexport const SetDatabaseSetupOutput = CorePulumi.createImplementation({\n implementation: SetDatabaseSetupOutputImpl,\n dependencies: [GetProjectConfigService]\n});\n"],"names":["SetDatabaseSetupOutputImpl","getProjectConfigService","app","projectConfig","databaseSetupExtension","DatabaseSetup","databaseSetup","SetDatabaseSetupOutput","CorePulumi","GetProjectConfigService"],"mappings":";;;AAKA,MAAMA;IACF,YAAoBC,uBAA0D,CAAE;aAA5DA,uBAAuB,GAAvBA;IAA6D;IAEjF,MAAM,QAAQC,GAAkB,EAAiB;QAE7C,MAAMC,gBAAgB,MAAM,IAAI,CAAC,uBAAuB,CAAC,OAAO;QAEhE,MAAM,CAACC,uBAAuB,GAAGD,cAAc,gBAAgB,CAACE;QAEhE,IAAID,wBAAwB;YACxB,MAAME,gBAAgBF,uBAAuB,MAAM,CAAC,SAAS;YAC7DF,IAAI,UAAU,CAAC;gBACXI;YACJ;QACJ,OAEIJ,IAAI,UAAU,CAAC;YACX,eAAe;QACnB;IAER;AACJ;AAEO,MAAMK,yBAAyBC,WAAW,oBAAoB,CAAC;IAClE,gBAAgBR;IAChB,cAAc;QAACS;KAAwB;AAC3C"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AdminAfterDeploy } from "@webiny/project/abstractions/index.js";
|
|
1
|
+
import { AdminAfterDeploy } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
2
2
|
declare class TelemetryNoLongerNewUserImpl implements AdminAfterDeploy.Interface {
|
|
3
3
|
execute(): Promise<void>;
|
|
4
4
|
}
|
|
5
5
|
export declare const TelemetryNoLongerNewUser: typeof TelemetryNoLongerNewUserImpl & {
|
|
6
|
-
__abstraction: import("@webiny/di").Abstraction<import("@webiny/project/abstractions/
|
|
6
|
+
__abstraction: import("@webiny/di").Abstraction<import("@webiny/project-extensions-aws/abstractions/index.js").IAdminAfterDeploy>;
|
|
7
7
|
};
|
|
8
8
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdminAfterDeploy } from "@webiny/project/abstractions/index.js";
|
|
1
|
+
import { AdminAfterDeploy } from "@webiny/project-extensions-aws/abstractions/index.js";
|
|
2
2
|
import { globalConfig } from "@webiny/global-config";
|
|
3
3
|
class TelemetryNoLongerNewUserImpl {
|
|
4
4
|
async execute() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/ProjectAws/TelemetryNoLongerNewUser.js","sources":["../../../src/extensions/ProjectAws/TelemetryNoLongerNewUser.ts"],"sourcesContent":["import { AdminAfterDeploy } from \"@webiny/project/abstractions/index.js\";\nimport { globalConfig } from \"@webiny/global-config\";\n\nclass TelemetryNoLongerNewUserImpl implements AdminAfterDeploy.Interface {\n async execute() {\n // Mark the user as no longer new.\n globalConfig.set(\"newUser\", false);\n }\n}\n\nexport const TelemetryNoLongerNewUser = AdminAfterDeploy.createImplementation({\n implementation: TelemetryNoLongerNewUserImpl,\n dependencies: []\n});\n"],"names":["TelemetryNoLongerNewUserImpl","globalConfig","TelemetryNoLongerNewUser","AdminAfterDeploy"],"mappings":";;AAGA,MAAMA;IACF,MAAM,UAAU;QAEZC,aAAa,GAAG,CAAC,WAAW;IAChC;AACJ;AAEO,MAAMC,2BAA2BC,iBAAiB,oBAAoB,CAAC;IAC1E,gBAAgBH;IAChB,cAAc,EAAE;AACpB"}
|
|
1
|
+
{"version":3,"file":"extensions/ProjectAws/TelemetryNoLongerNewUser.js","sources":["../../../src/extensions/ProjectAws/TelemetryNoLongerNewUser.ts"],"sourcesContent":["import { AdminAfterDeploy } from \"@webiny/project-extensions-aws/abstractions/index.js\";\nimport { globalConfig } from \"@webiny/global-config\";\n\nclass TelemetryNoLongerNewUserImpl implements AdminAfterDeploy.Interface {\n async execute() {\n // Mark the user as no longer new.\n globalConfig.set(\"newUser\", false);\n }\n}\n\nexport const TelemetryNoLongerNewUser = AdminAfterDeploy.createImplementation({\n implementation: TelemetryNoLongerNewUserImpl,\n dependencies: []\n});\n"],"names":["TelemetryNoLongerNewUserImpl","globalConfig","TelemetryNoLongerNewUser","AdminAfterDeploy"],"mappings":";;AAGA,MAAMA;IACF,MAAM,UAAU;QAEZC,aAAa,GAAG,CAAC,WAAW;IAChC;AACJ;AAEO,MAAMC,2BAA2BC,iBAAiB,oBAAoB,CAAC;IAC1E,gBAAgBH;IAChB,cAAc,EAAE;AACpB"}
|