@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"services/PulumiSelectStackService/PulumiSelectStackService.js","sources":["../../../src/services/PulumiSelectStackService/PulumiSelectStackService.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { GetPulumiService } from \"~/abstractions/services/GetPulumiService.js\";\nimport { LoggerService } from \"@webiny/project/abstractions/index.js\";\nimport { ProjectSdkParamsService } from \"@webiny/project/abstractions/index.js\";\nimport { PulumiGetConfigPassphraseService } from \"~/abstractions/services/PulumiGetConfigPassphraseService.js\";\nimport { PulumiGetSecretsProviderService } from \"~/abstractions/services/PulumiGetSecretsProviderService.js\";\nimport { PulumiLoginService } from \"~/abstractions/services/PulumiLoginService.js\";\nimport { PulumiSelectStackService } from \"~/abstractions/services/PulumiSelectStackService.js\";\nimport { type IAppModel } from \"@webiny/project/abstractions/models/index.js\";\nimport { createEnvConfiguration } from \"@webiny/project/utils/env/index.js\";\nimport { withPulumiConfigPassphrase } from \"~/utils/withPulumiConfigPassphrase.js\";\nimport { getStackName } from \"@webiny/project/utils/index.js\";\n\n// Every app except core and blue-green is checked against the region stored in the core stack.\nconst isCoreAppRegionMismatchCheckNeeded = (app: IAppModel) => {\n return app.name !== \"core\" && app.name !== \"blueGreen\";\n};\n\nexport class DefaultPulumiSelectStackService implements PulumiSelectStackService.Interface {\n constructor(\n private getPulumiService: GetPulumiService.Interface,\n private pulumiLoginService: PulumiLoginService.Interface,\n private pulumiGetSecretsProviderService: PulumiGetSecretsProviderService.Interface,\n private pulumiGetConfigPassphraseService: PulumiGetConfigPassphraseService.Interface,\n private loggerService: LoggerService.Interface,\n private projectSdkParamsService: ProjectSdkParamsService.Interface\n ) {}\n\n async execute(app: IAppModel) {\n const pulumi = await this.getPulumiService.execute({ app });\n\n await this.pulumiLoginService.execute(app);\n\n const secretsProvider = this.pulumiGetSecretsProviderService.execute();\n const configPassphrase = this.pulumiGetConfigPassphraseService.execute();\n\n const sdkParams = this.projectSdkParamsService.get();\n const stackName = getStackName({ env: sdkParams.env, variant: sdkParams.variant });\n\n await pulumi.run({\n command: [\"stack\", \"select\", stackName],\n args: {\n create: true,\n secretsProvider\n },\n execa: {\n env: createEnvConfiguration({\n configurations: [withPulumiConfigPassphrase(configPassphrase)]\n })\n }\n });\n\n /**\n * A region from the input or process CANNOT be different to the region from the stack.\n * Also, if there is no stack, everything is ok.\n */\n const region = sdkParams.region || process.env.AWS_REGION;\n\n const mustPerformCoreAppRegionMismatchCheck = isCoreAppRegionMismatchCheckNeeded(app);\n\n if (mustPerformCoreAppRegionMismatchCheck) {\n const coreStack = await this.getAppStackOutput(app);\n if (coreStack && coreStack.region && coreStack.region !== region) {\n throw new Error(\n `Core App Region mismatch. Input: \"${sdkParams.region || \"none\"}\", process: \"${\n process.env.AWS_REGION || \"none\"\n }\". In Core stack: \"${\n coreStack.region\n }\". This can happen if you try to deploy a stack to a region different to the Core application region.`\n );\n }\n }\n\n const targetStack = await this.getAppStackOutput(app);\n\n if (!targetStack?.region || targetStack.region === region) {\n return;\n }\n\n throw new Error(\n `Region mismatch. Input: \"${sdkParams.region || \"none\"}\", process: \"${\n process.env.AWS_REGION || \"none\"\n }\". In stack: \"${\n targetStack.region\n }\". This can happen if you try to deploy a stack to a region other than it was initially deployed.`\n );\n }\n\n private async getAppStackOutput(app: IAppModel) {\n // We had to reimplement `getAppStackOutput` locally here. We could not use the existing\n // `PulumiGetStackOutputService` because, internally, it also depends on `PulumiSelectStackService`.\n // This would create a circular dependency. But also, this works just fine.\n const pulumi = await this.getPulumiService.execute({ app });\n const logger = this.loggerService;\n\n const stackOutputString = await pulumi.run({\n command: [\"stack\", \"output\"],\n args: {\n json: true\n },\n execa: {\n env: createEnvConfiguration({\n configurations: [withPulumiConfigPassphrase()]\n })\n }\n });\n\n try {\n const stackOutputJson = JSON.parse(stackOutputString.stdout as string);\n if (!stackOutputJson) {\n return null;\n }\n\n return stackOutputJson;\n } catch {\n logger.error(\"Could not parse stack output as JSON.\", stackOutputString.stdout, app);\n return null;\n }\n }\n}\n\nexport const pulumiSelectStackService = createImplementation({\n abstraction: PulumiSelectStackService,\n implementation: DefaultPulumiSelectStackService,\n dependencies: [\n GetPulumiService,\n PulumiLoginService,\n PulumiGetSecretsProviderService,\n PulumiGetConfigPassphraseService,\n LoggerService,\n ProjectSdkParamsService\n ]\n});\n"],"names":["isCoreAppRegionMismatchCheckNeeded","app","DefaultPulumiSelectStackService","getPulumiService","pulumiLoginService","pulumiGetSecretsProviderService","pulumiGetConfigPassphraseService","loggerService","projectSdkParamsService","pulumi","secretsProvider","configPassphrase","sdkParams","stackName","getStackName","createEnvConfiguration","withPulumiConfigPassphrase","region","process","mustPerformCoreAppRegionMismatchCheck","coreStack","Error","targetStack","logger","stackOutputString","stackOutputJson","JSON","pulumiSelectStackService","createImplementation","PulumiSelectStackService","GetPulumiService","PulumiLoginService","PulumiGetSecretsProviderService","PulumiGetConfigPassphraseService","LoggerService","ProjectSdkParamsService"],"mappings":";;;;;;;;;;AAcA,MAAMA,qCAAqC,CAACC,MACjCA,AAAa,WAAbA,IAAI,IAAI,IAAeA,AAAa,gBAAbA,IAAI,IAAI;AAGnC,MAAMC;IACT,YACYC,gBAA4C,EAC5CC,kBAAgD,EAChDC,+BAA0E,EAC1EC,gCAA4E,EAC5EC,aAAsC,EACtCC,uBAA0D,CACpE;aANUL,gBAAgB,GAAhBA;aACAC,kBAAkB,GAAlBA;aACAC,+BAA+B,GAA/BA;aACAC,gCAAgC,GAAhCA;aACAC,aAAa,GAAbA;aACAC,uBAAuB,GAAvBA;IACT;IAEH,MAAM,QAAQP,GAAc,EAAE;QAC1B,MAAMQ,SAAS,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC;YAAER;QAAI;QAEzD,MAAM,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAACA;QAEtC,MAAMS,kBAAkB,IAAI,CAAC,+BAA+B,CAAC,OAAO;QACpE,MAAMC,mBAAmB,IAAI,CAAC,gCAAgC,CAAC,OAAO;QAEtE,MAAMC,YAAY,IAAI,CAAC,uBAAuB,CAAC,GAAG;QAClD,MAAMC,YAAYC,aAAa;YAAE,KAAKF,UAAU,GAAG;YAAE,SAASA,UAAU,OAAO;QAAC;QAEhF,MAAMH,OAAO,GAAG,CAAC;YACb,SAAS;gBAAC;gBAAS;gBAAUI;aAAU;YACvC,MAAM;gBACF,QAAQ;gBACRH;YACJ;YACA,OAAO;gBACH,KAAKK,uBAAuB;oBACxB,gBAAgB;wBAACC,2BAA2BL;qBAAkB;gBAClE;YACJ;QACJ;QAMA,MAAMM,SAASL,UAAU,MAAM,IAAIM,QAAQ,GAAG,CAAC,UAAU;QAEzD,MAAMC,wCAAwCnB,mCAAmCC;QAEjF,IAAIkB,uCAAuC;YACvC,MAAMC,YAAY,MAAM,IAAI,CAAC,iBAAiB,CAACnB;YAC/C,IAAImB,aAAaA,UAAU,MAAM,IAAIA,UAAU,MAAM,KAAKH,QACtD,MAAM,IAAII,MACN,CAAC,kCAAkC,EAAET,UAAU,MAAM,IAAI,OAAO,aAAa,EACzEM,QAAQ,GAAG,CAAC,UAAU,IAAI,OAC7B,mBAAmB,EAChBE,UAAU,MAAM,CACnB,qGAAqG,CAAC;QAGnH;QAEA,MAAME,cAAc,MAAM,IAAI,CAAC,iBAAiB,CAACrB;QAEjD,IAAI,CAACqB,aAAa,UAAUA,YAAY,MAAM,KAAKL,QAC/C;QAGJ,MAAM,IAAII,MACN,CAAC,yBAAyB,EAAET,UAAU,MAAM,IAAI,OAAO,aAAa,EAChEM,QAAQ,GAAG,CAAC,UAAU,IAAI,OAC7B,cAAc,EACXI,YAAY,MAAM,CACrB,iGAAiG,CAAC;IAE3G;IAEA,MAAc,kBAAkBrB,GAAc,EAAE;QAI5C,MAAMQ,SAAS,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC;YAAER;QAAI;QACzD,MAAMsB,SAAS,IAAI,CAAC,aAAa;QAEjC,MAAMC,oBAAoB,MAAMf,OAAO,GAAG,CAAC;YACvC,SAAS;gBAAC;gBAAS;aAAS;YAC5B,MAAM;gBACF,MAAM;YACV;YACA,OAAO;gBACH,KAAKM,uBAAuB;oBACxB,gBAAgB;wBAACC;qBAA6B;gBAClD;YACJ;QACJ;QAEA,IAAI;YACA,MAAMS,kBAAkBC,KAAK,KAAK,CAACF,kBAAkB,MAAM;YAC3D,IAAI,CAACC,iBACD,OAAO;YAGX,OAAOA;QACX,EAAE,OAAM;YACJF,OAAO,KAAK,CAAC,yCAAyCC,kBAAkB,MAAM,EAAEvB;YAChF,OAAO;QACX;IACJ;AACJ;AAEO,MAAM0B,2BAA2BC,qBAAqB;IACzD,aAAaC;IACb,gBAAgB3B;IAChB,cAAc;QACV4B;QACAC;QACAC;QACAC;QACAC;QACAC;KACH;AACL"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./PulumiSelectStackService.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./PulumiSelectStackService.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { GetProjectService } from "@webiny/project/abstractions/index.js";
|
|
2
|
+
import { LoggerService } from "@webiny/project/abstractions/index.js";
|
|
3
|
+
import { ProjectSdkParamsService } from "@webiny/project/abstractions/index.js";
|
|
4
|
+
import { StackOutputCacheService } from "../../abstractions/services/StackOutputCacheService.js";
|
|
5
|
+
import { type IAppModel } from "@webiny/project/abstractions/models/index.js";
|
|
6
|
+
export declare class DefaultStackOutputCacheService implements StackOutputCacheService.Interface {
|
|
7
|
+
private getProjectService;
|
|
8
|
+
private projectSdkParamsService;
|
|
9
|
+
private loggerService;
|
|
10
|
+
private static readonly DEFAULT_ENV;
|
|
11
|
+
private static readonly DEFAULT_REGION;
|
|
12
|
+
private static readonly DEFAULT_VARIANT;
|
|
13
|
+
constructor(getProjectService: GetProjectService.Interface, projectSdkParamsService: ProjectSdkParamsService.Interface, loggerService: LoggerService.Interface);
|
|
14
|
+
read(app: IAppModel): Promise<Record<string, any> | null>;
|
|
15
|
+
write(app: IAppModel, data: Record<string, any>): Promise<void>;
|
|
16
|
+
delete(app: IAppModel): Promise<void>;
|
|
17
|
+
private getCacheKey;
|
|
18
|
+
private getCacheDir;
|
|
19
|
+
private getCachePath;
|
|
20
|
+
}
|
|
21
|
+
export declare const stackOutputCacheService: import("@webiny/di").Implementation<typeof DefaultStackOutputCacheService>;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { createImplementation } from "@webiny/di";
|
|
2
|
+
import { GetProjectService, LoggerService, ProjectSdkParamsService } from "@webiny/project/abstractions/index.js";
|
|
3
|
+
import { StackOutputCacheService } from "../../abstractions/services/StackOutputCacheService.js";
|
|
4
|
+
import promises from "fs/promises";
|
|
5
|
+
class DefaultStackOutputCacheService {
|
|
6
|
+
static{
|
|
7
|
+
this.DEFAULT_ENV = "dev";
|
|
8
|
+
}
|
|
9
|
+
static{
|
|
10
|
+
this.DEFAULT_REGION = "default";
|
|
11
|
+
}
|
|
12
|
+
static{
|
|
13
|
+
this.DEFAULT_VARIANT = "default";
|
|
14
|
+
}
|
|
15
|
+
constructor(getProjectService, projectSdkParamsService, loggerService){
|
|
16
|
+
this.getProjectService = getProjectService;
|
|
17
|
+
this.projectSdkParamsService = projectSdkParamsService;
|
|
18
|
+
this.loggerService = loggerService;
|
|
19
|
+
}
|
|
20
|
+
async read(app) {
|
|
21
|
+
const cachePath = this.getCachePath(app);
|
|
22
|
+
try {
|
|
23
|
+
const content = await promises.readFile(cachePath, "utf-8");
|
|
24
|
+
const data = JSON.parse(content);
|
|
25
|
+
this.loggerService.debug({
|
|
26
|
+
app: app.name,
|
|
27
|
+
cacheKey: this.getCacheKey(app)
|
|
28
|
+
}, "Stack output read from cache");
|
|
29
|
+
return data;
|
|
30
|
+
} catch {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
async write(app, data) {
|
|
35
|
+
const cachePath = this.getCachePath(app);
|
|
36
|
+
const cacheDir = this.getCacheDir().toString();
|
|
37
|
+
try {
|
|
38
|
+
await promises.mkdir(cacheDir, {
|
|
39
|
+
recursive: true
|
|
40
|
+
});
|
|
41
|
+
await promises.writeFile(cachePath, JSON.stringify(data, null, 2), "utf-8");
|
|
42
|
+
this.loggerService.debug("Stack output stored to cache", {
|
|
43
|
+
app: app.name,
|
|
44
|
+
cacheKey: this.getCacheKey(app)
|
|
45
|
+
});
|
|
46
|
+
} catch (error) {
|
|
47
|
+
this.loggerService.error("Could not write to cache file.", cachePath, error);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
async delete(app) {
|
|
51
|
+
const cachePath = this.getCachePath(app);
|
|
52
|
+
try {
|
|
53
|
+
await promises.rm(cachePath, {
|
|
54
|
+
force: true
|
|
55
|
+
});
|
|
56
|
+
this.loggerService.debug("Stack output cache deleted.", {
|
|
57
|
+
app: app.name,
|
|
58
|
+
cacheKey: this.getCacheKey(app)
|
|
59
|
+
});
|
|
60
|
+
} catch (error) {
|
|
61
|
+
this.loggerService.error("Could not delete stack output cache file.", cachePath, error);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
getCacheKey(app) {
|
|
65
|
+
const sdkParams = this.projectSdkParamsService.get();
|
|
66
|
+
const env = sdkParams.env || DefaultStackOutputCacheService.DEFAULT_ENV;
|
|
67
|
+
const region = sdkParams.region || DefaultStackOutputCacheService.DEFAULT_REGION;
|
|
68
|
+
const variant = sdkParams.variant || DefaultStackOutputCacheService.DEFAULT_VARIANT;
|
|
69
|
+
return `${app.name}-${env}-${region}-${variant}.json`;
|
|
70
|
+
}
|
|
71
|
+
getCacheDir() {
|
|
72
|
+
const project = this.getProjectService.execute();
|
|
73
|
+
return project.paths.dotWebinyFolder.join("caches", "stack-output");
|
|
74
|
+
}
|
|
75
|
+
getCachePath(app) {
|
|
76
|
+
return this.getCacheDir().join(this.getCacheKey(app)).toString();
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
const stackOutputCacheService = createImplementation({
|
|
80
|
+
abstraction: StackOutputCacheService,
|
|
81
|
+
implementation: DefaultStackOutputCacheService,
|
|
82
|
+
dependencies: [
|
|
83
|
+
GetProjectService,
|
|
84
|
+
ProjectSdkParamsService,
|
|
85
|
+
LoggerService
|
|
86
|
+
]
|
|
87
|
+
});
|
|
88
|
+
export { DefaultStackOutputCacheService, stackOutputCacheService };
|
|
89
|
+
|
|
90
|
+
//# sourceMappingURL=StackOutputCacheService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"services/StackOutputCacheService/StackOutputCacheService.js","sources":["../../../src/services/StackOutputCacheService/StackOutputCacheService.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { GetProjectService } from \"@webiny/project/abstractions/index.js\";\nimport { LoggerService } from \"@webiny/project/abstractions/index.js\";\nimport { ProjectSdkParamsService } from \"@webiny/project/abstractions/index.js\";\nimport { StackOutputCacheService } from \"~/abstractions/services/StackOutputCacheService.js\";\nimport { type IAppModel } from \"@webiny/project/abstractions/models/index.js\";\nimport fs from \"fs/promises\";\n\nexport class DefaultStackOutputCacheService implements StackOutputCacheService.Interface {\n private static readonly DEFAULT_ENV = \"dev\";\n private static readonly DEFAULT_REGION = \"default\";\n private static readonly DEFAULT_VARIANT = \"default\";\n\n constructor(\n private getProjectService: GetProjectService.Interface,\n private projectSdkParamsService: ProjectSdkParamsService.Interface,\n private loggerService: LoggerService.Interface\n ) {}\n\n async read(app: IAppModel): Promise<Record<string, any> | null> {\n const cachePath = this.getCachePath(app);\n\n try {\n const content = await fs.readFile(cachePath, \"utf-8\");\n const data = JSON.parse(content);\n this.loggerService.debug(\n { app: app.name, cacheKey: this.getCacheKey(app) },\n \"Stack output read from cache\"\n );\n return data;\n } catch {\n // File doesn't exist or couldn't be read/parsed - this is expected on first run.\n return null;\n }\n }\n\n async write(app: IAppModel, data: Record<string, any>): Promise<void> {\n const cachePath = this.getCachePath(app);\n const cacheDir = this.getCacheDir().toString();\n\n try {\n // Create cache directory if it doesn't exist.\n await fs.mkdir(cacheDir, { recursive: true });\n await fs.writeFile(cachePath, JSON.stringify(data, null, 2), \"utf-8\");\n this.loggerService.debug(\"Stack output stored to cache\", {\n app: app.name,\n cacheKey: this.getCacheKey(app)\n });\n } catch (error) {\n this.loggerService.error(\"Could not write to cache file.\", cachePath, error);\n }\n }\n\n async delete(app: IAppModel): Promise<void> {\n const cachePath = this.getCachePath(app);\n\n try {\n // `force: true` makes this a no-op if the cache file doesn't exist.\n await fs.rm(cachePath, { force: true });\n this.loggerService.debug(\"Stack output cache deleted.\", {\n app: app.name,\n cacheKey: this.getCacheKey(app)\n });\n } catch (error) {\n this.loggerService.error(\"Could not delete stack output cache file.\", cachePath, error);\n }\n }\n\n private getCacheKey(app: IAppModel): string {\n const sdkParams = this.projectSdkParamsService.get();\n const env = sdkParams.env || DefaultStackOutputCacheService.DEFAULT_ENV;\n const region = sdkParams.region || DefaultStackOutputCacheService.DEFAULT_REGION;\n const variant = sdkParams.variant || DefaultStackOutputCacheService.DEFAULT_VARIANT;\n return `${app.name}-${env}-${region}-${variant}.json`;\n }\n\n private getCacheDir() {\n const project = this.getProjectService.execute();\n return project.paths.dotWebinyFolder.join(\"caches\", \"stack-output\");\n }\n\n private getCachePath(app: IAppModel): string {\n return this.getCacheDir().join(this.getCacheKey(app)).toString();\n }\n}\n\nexport const stackOutputCacheService = createImplementation({\n abstraction: StackOutputCacheService,\n implementation: DefaultStackOutputCacheService,\n dependencies: [GetProjectService, ProjectSdkParamsService, LoggerService]\n});\n"],"names":["DefaultStackOutputCacheService","getProjectService","projectSdkParamsService","loggerService","app","cachePath","content","fs","data","JSON","cacheDir","error","sdkParams","env","region","variant","project","stackOutputCacheService","createImplementation","StackOutputCacheService","GetProjectService","ProjectSdkParamsService","LoggerService"],"mappings":";;;;AAQO,MAAMA;;aACe,WAAW,GAAG;;;aACd,cAAc,GAAG;;;aACjB,eAAe,GAAG;;IAE1C,YACYC,iBAA8C,EAC9CC,uBAA0D,EAC1DC,aAAsC,CAChD;aAHUF,iBAAiB,GAAjBA;aACAC,uBAAuB,GAAvBA;aACAC,aAAa,GAAbA;IACT;IAEH,MAAM,KAAKC,GAAc,EAAuC;QAC5D,MAAMC,YAAY,IAAI,CAAC,YAAY,CAACD;QAEpC,IAAI;YACA,MAAME,UAAU,MAAMC,SAAAA,QAAW,CAACF,WAAW;YAC7C,MAAMG,OAAOC,KAAK,KAAK,CAACH;YACxB,IAAI,CAAC,aAAa,CAAC,KAAK,CACpB;gBAAE,KAAKF,IAAI,IAAI;gBAAE,UAAU,IAAI,CAAC,WAAW,CAACA;YAAK,GACjD;YAEJ,OAAOI;QACX,EAAE,OAAM;YAEJ,OAAO;QACX;IACJ;IAEA,MAAM,MAAMJ,GAAc,EAAEI,IAAyB,EAAiB;QAClE,MAAMH,YAAY,IAAI,CAAC,YAAY,CAACD;QACpC,MAAMM,WAAW,IAAI,CAAC,WAAW,GAAG,QAAQ;QAE5C,IAAI;YAEA,MAAMH,SAAAA,KAAQ,CAACG,UAAU;gBAAE,WAAW;YAAK;YAC3C,MAAMH,SAAAA,SAAY,CAACF,WAAWI,KAAK,SAAS,CAACD,MAAM,MAAM,IAAI;YAC7D,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,gCAAgC;gBACrD,KAAKJ,IAAI,IAAI;gBACb,UAAU,IAAI,CAAC,WAAW,CAACA;YAC/B;QACJ,EAAE,OAAOO,OAAO;YACZ,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,kCAAkCN,WAAWM;QAC1E;IACJ;IAEA,MAAM,OAAOP,GAAc,EAAiB;QACxC,MAAMC,YAAY,IAAI,CAAC,YAAY,CAACD;QAEpC,IAAI;YAEA,MAAMG,SAAAA,EAAK,CAACF,WAAW;gBAAE,OAAO;YAAK;YACrC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,+BAA+B;gBACpD,KAAKD,IAAI,IAAI;gBACb,UAAU,IAAI,CAAC,WAAW,CAACA;YAC/B;QACJ,EAAE,OAAOO,OAAO;YACZ,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,6CAA6CN,WAAWM;QACrF;IACJ;IAEQ,YAAYP,GAAc,EAAU;QACxC,MAAMQ,YAAY,IAAI,CAAC,uBAAuB,CAAC,GAAG;QAClD,MAAMC,MAAMD,UAAU,GAAG,IAAIZ,+BAA+B,WAAW;QACvE,MAAMc,SAASF,UAAU,MAAM,IAAIZ,+BAA+B,cAAc;QAChF,MAAMe,UAAUH,UAAU,OAAO,IAAIZ,+BAA+B,eAAe;QACnF,OAAO,GAAGI,IAAI,IAAI,CAAC,CAAC,EAAES,IAAI,CAAC,EAAEC,OAAO,CAAC,EAAEC,QAAQ,KAAK,CAAC;IACzD;IAEQ,cAAc;QAClB,MAAMC,UAAU,IAAI,CAAC,iBAAiB,CAAC,OAAO;QAC9C,OAAOA,QAAQ,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,UAAU;IACxD;IAEQ,aAAaZ,GAAc,EAAU;QACzC,OAAO,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,CAACA,MAAM,QAAQ;IAClE;AACJ;AAEO,MAAMa,0BAA0BC,qBAAqB;IACxD,aAAaC;IACb,gBAAgBnB;IAChB,cAAc;QAACoB;QAAmBC;QAAyBC;KAAc;AAC7E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./StackOutputCacheService.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./StackOutputCacheService.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WatchedLambdaFunctionsService } from "../../abstractions/services/WatchedLambdaFunctionsService.js";
|
|
2
|
+
import { LocalStorageService } from "@webiny/project/abstractions/index.js";
|
|
3
|
+
export declare class DefaultWatchedLambdaFunctionsService implements WatchedLambdaFunctionsService.Interface {
|
|
4
|
+
private localStorageService;
|
|
5
|
+
constructor(localStorageService: LocalStorageService.Interface);
|
|
6
|
+
markDirty(params: WatchedLambdaFunctionsService.Params, functionUrns: string[]): void;
|
|
7
|
+
getDirty(params: WatchedLambdaFunctionsService.Params): string[];
|
|
8
|
+
clearDirty(params: WatchedLambdaFunctionsService.Params): void;
|
|
9
|
+
clearAll(): void;
|
|
10
|
+
private getCacheKey;
|
|
11
|
+
private getData;
|
|
12
|
+
private setData;
|
|
13
|
+
}
|
|
14
|
+
export declare const watchedLambdaFunctionsService: import("@webiny/di").Implementation<typeof DefaultWatchedLambdaFunctionsService>;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { createImplementation } from "@webiny/di";
|
|
2
|
+
import { WatchedLambdaFunctionsService } from "../../abstractions/services/WatchedLambdaFunctionsService.js";
|
|
3
|
+
import { LocalStorageService } from "@webiny/project/abstractions/index.js";
|
|
4
|
+
const WATCHED_LAMBDA_FUNCTIONS_KEY = "watchedLambdaFunctions";
|
|
5
|
+
class DefaultWatchedLambdaFunctionsService {
|
|
6
|
+
constructor(localStorageService){
|
|
7
|
+
this.localStorageService = localStorageService;
|
|
8
|
+
}
|
|
9
|
+
markDirty(params, functionUrns) {
|
|
10
|
+
const key = this.getCacheKey(params);
|
|
11
|
+
const data = this.getData(key);
|
|
12
|
+
if (!data[params.name]) data[params.name] = [];
|
|
13
|
+
for (const urn of functionUrns)if (!data[params.name].includes(urn)) data[params.name].push(urn);
|
|
14
|
+
this.setData(key, data);
|
|
15
|
+
}
|
|
16
|
+
getDirty(params) {
|
|
17
|
+
const key = this.getCacheKey(params);
|
|
18
|
+
const data = this.getData(key);
|
|
19
|
+
return data[params.name] || [];
|
|
20
|
+
}
|
|
21
|
+
clearDirty(params) {
|
|
22
|
+
const key = this.getCacheKey(params);
|
|
23
|
+
const data = this.getData(key);
|
|
24
|
+
delete data[params.name];
|
|
25
|
+
this.setData(key, data);
|
|
26
|
+
}
|
|
27
|
+
clearAll() {
|
|
28
|
+
this.setData(WATCHED_LAMBDA_FUNCTIONS_KEY, {});
|
|
29
|
+
}
|
|
30
|
+
getCacheKey(params) {
|
|
31
|
+
return params.deploymentId ? `${WATCHED_LAMBDA_FUNCTIONS_KEY}-${params.deploymentId}` : WATCHED_LAMBDA_FUNCTIONS_KEY;
|
|
32
|
+
}
|
|
33
|
+
getData(key) {
|
|
34
|
+
const data = this.localStorageService.get(key);
|
|
35
|
+
if (!data) return {};
|
|
36
|
+
try {
|
|
37
|
+
return "string" == typeof data ? JSON.parse(data) : data;
|
|
38
|
+
} catch {
|
|
39
|
+
return {};
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
setData(key, data) {
|
|
43
|
+
this.localStorageService.set(key, data);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
const watchedLambdaFunctionsService = createImplementation({
|
|
47
|
+
abstraction: WatchedLambdaFunctionsService,
|
|
48
|
+
implementation: DefaultWatchedLambdaFunctionsService,
|
|
49
|
+
dependencies: [
|
|
50
|
+
LocalStorageService
|
|
51
|
+
]
|
|
52
|
+
});
|
|
53
|
+
export { DefaultWatchedLambdaFunctionsService, watchedLambdaFunctionsService };
|
|
54
|
+
|
|
55
|
+
//# sourceMappingURL=WatchedLambdaFunctionsService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.js","sources":["../../../src/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { WatchedLambdaFunctionsService } from \"~/abstractions/services/WatchedLambdaFunctionsService.js\";\nimport { LocalStorageService } from \"@webiny/project/abstractions/index.js\";\n\nconst WATCHED_LAMBDA_FUNCTIONS_KEY = \"watchedLambdaFunctions\";\n\ninterface WatchedLambdaFunctionsData {\n [app: string]: string[]; // app name -> array of Lambda URNs\n}\n\nexport class DefaultWatchedLambdaFunctionsService\n implements WatchedLambdaFunctionsService.Interface\n{\n constructor(private localStorageService: LocalStorageService.Interface) {}\n\n markDirty(params: WatchedLambdaFunctionsService.Params, functionUrns: string[]): void {\n const key = this.getCacheKey(params);\n const data = this.getData(key);\n\n if (!data[params.name]) {\n data[params.name] = [];\n }\n\n // Add new URNs, avoiding duplicates.\n for (const urn of functionUrns) {\n if (!data[params.name].includes(urn)) {\n data[params.name].push(urn);\n }\n }\n\n this.setData(key, data);\n }\n\n getDirty(params: WatchedLambdaFunctionsService.Params): string[] {\n const key = this.getCacheKey(params);\n const data = this.getData(key);\n return data[params.name] || [];\n }\n\n clearDirty(params: WatchedLambdaFunctionsService.Params): void {\n const key = this.getCacheKey(params);\n const data = this.getData(key);\n delete data[params.name];\n this.setData(key, data);\n }\n\n clearAll(): void {\n this.setData(WATCHED_LAMBDA_FUNCTIONS_KEY, {});\n }\n\n private getCacheKey(params: WatchedLambdaFunctionsService.Params): string {\n return params.deploymentId\n ? `${WATCHED_LAMBDA_FUNCTIONS_KEY}-${params.deploymentId}`\n : WATCHED_LAMBDA_FUNCTIONS_KEY;\n }\n\n private getData(key: string): WatchedLambdaFunctionsData {\n const data = this.localStorageService.get(key);\n if (!data) {\n return {};\n }\n\n try {\n return typeof data === \"string\" ? JSON.parse(data) : data;\n } catch {\n return {};\n }\n }\n\n private setData(key: string, data: WatchedLambdaFunctionsData): void {\n this.localStorageService.set(key, data);\n }\n}\n\nexport const watchedLambdaFunctionsService = createImplementation({\n abstraction: WatchedLambdaFunctionsService,\n implementation: DefaultWatchedLambdaFunctionsService,\n dependencies: [LocalStorageService]\n});\n"],"names":["WATCHED_LAMBDA_FUNCTIONS_KEY","DefaultWatchedLambdaFunctionsService","localStorageService","params","functionUrns","key","data","urn","JSON","watchedLambdaFunctionsService","createImplementation","WatchedLambdaFunctionsService","LocalStorageService"],"mappings":";;;AAIA,MAAMA,+BAA+B;AAM9B,MAAMC;IAGT,YAAoBC,mBAAkD,CAAE;aAApDA,mBAAmB,GAAnBA;IAAqD;IAEzE,UAAUC,MAA4C,EAAEC,YAAsB,EAAQ;QAClF,MAAMC,MAAM,IAAI,CAAC,WAAW,CAACF;QAC7B,MAAMG,OAAO,IAAI,CAAC,OAAO,CAACD;QAE1B,IAAI,CAACC,IAAI,CAACH,OAAO,IAAI,CAAC,EAClBG,IAAI,CAACH,OAAO,IAAI,CAAC,GAAG,EAAE;QAI1B,KAAK,MAAMI,OAAOH,aACd,IAAI,CAACE,IAAI,CAACH,OAAO,IAAI,CAAC,CAAC,QAAQ,CAACI,MAC5BD,IAAI,CAACH,OAAO,IAAI,CAAC,CAAC,IAAI,CAACI;QAI/B,IAAI,CAAC,OAAO,CAACF,KAAKC;IACtB;IAEA,SAASH,MAA4C,EAAY;QAC7D,MAAME,MAAM,IAAI,CAAC,WAAW,CAACF;QAC7B,MAAMG,OAAO,IAAI,CAAC,OAAO,CAACD;QAC1B,OAAOC,IAAI,CAACH,OAAO,IAAI,CAAC,IAAI,EAAE;IAClC;IAEA,WAAWA,MAA4C,EAAQ;QAC3D,MAAME,MAAM,IAAI,CAAC,WAAW,CAACF;QAC7B,MAAMG,OAAO,IAAI,CAAC,OAAO,CAACD;QAC1B,OAAOC,IAAI,CAACH,OAAO,IAAI,CAAC;QACxB,IAAI,CAAC,OAAO,CAACE,KAAKC;IACtB;IAEA,WAAiB;QACb,IAAI,CAAC,OAAO,CAACN,8BAA8B,CAAC;IAChD;IAEQ,YAAYG,MAA4C,EAAU;QACtE,OAAOA,OAAO,YAAY,GACpB,GAAGH,6BAA6B,CAAC,EAAEG,OAAO,YAAY,EAAE,GACxDH;IACV;IAEQ,QAAQK,GAAW,EAA8B;QACrD,MAAMC,OAAO,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAACD;QAC1C,IAAI,CAACC,MACD,OAAO,CAAC;QAGZ,IAAI;YACA,OAAO,AAAgB,YAAhB,OAAOA,OAAoBE,KAAK,KAAK,CAACF,QAAQA;QACzD,EAAE,OAAM;YACJ,OAAO,CAAC;QACZ;IACJ;IAEQ,QAAQD,GAAW,EAAEC,IAAgC,EAAQ;QACjE,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAACD,KAAKC;IACtC;AACJ;AAEO,MAAMG,gCAAgCC,qBAAqB;IAC9D,aAAaC;IACb,gBAAgBV;IAChB,cAAc;QAACW;KAAoB;AACvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./WatchedLambdaFunctionsService.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./WatchedLambdaFunctionsService.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const withPulumiConfigPassphrase: (passphrase?: string) => import("@webiny/project/utils/env").IConfigurationCb;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createConfiguration } from "@webiny/project/utils/env/configuration.js";
|
|
2
|
+
const withPulumiConfigPassphrase = (passphrase)=>createConfiguration(()=>({
|
|
3
|
+
PULUMI_CONFIG_PASSPHRASE: passphrase || process.env.PULUMI_CONFIG_PASSPHRASE || "webiny"
|
|
4
|
+
}));
|
|
5
|
+
export { withPulumiConfigPassphrase };
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=withPulumiConfigPassphrase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils/withPulumiConfigPassphrase.js","sources":["../../src/utils/withPulumiConfigPassphrase.ts"],"sourcesContent":["import { createConfiguration } from \"@webiny/project/utils/env/configuration.js\";\n\nexport const withPulumiConfigPassphrase = (passphrase?: string) => {\n // TODO: use PulumiGetConfigPassphraseService instead.\n return createConfiguration(() => {\n return {\n PULUMI_CONFIG_PASSPHRASE: passphrase || process.env.PULUMI_CONFIG_PASSPHRASE || \"webiny\"\n };\n });\n};\n"],"names":["withPulumiConfigPassphrase","passphrase","createConfiguration","process"],"mappings":";AAEO,MAAMA,6BAA6B,CAACC,aAEhCC,oBAAoB,IAChB;YACH,0BAA0BD,cAAcE,QAAQ,GAAG,CAAC,wBAAwB,IAAI;QACpF"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export interface IApiGqlClientResponse<T = any> {
|
|
2
|
-
data?: T;
|
|
3
|
-
errors?: Array<{
|
|
4
|
-
message: string;
|
|
5
|
-
code?: string;
|
|
6
|
-
data?: any;
|
|
7
|
-
}>;
|
|
8
|
-
}
|
|
9
|
-
export interface IApiGqlClient {
|
|
10
|
-
query<T = any>(params: {
|
|
11
|
-
query: string;
|
|
12
|
-
variables?: Record<string, any>;
|
|
13
|
-
}): Promise<IApiGqlClientResponse<T>>;
|
|
14
|
-
mutation<T = any>(params: {
|
|
15
|
-
mutation: string;
|
|
16
|
-
variables?: Record<string, any>;
|
|
17
|
-
}): Promise<IApiGqlClientResponse<T>>;
|
|
18
|
-
}
|
|
19
|
-
export declare const ApiGqlClient: import("@webiny/di").Abstraction<IApiGqlClient>;
|
|
20
|
-
export declare namespace ApiGqlClient {
|
|
21
|
-
type Interface = IApiGqlClient;
|
|
22
|
-
type Response<T = any> = IApiGqlClientResponse<T>;
|
|
23
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstractions/ApiGqlClient.js","sources":["../../src/abstractions/ApiGqlClient.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/project/abstractions/createAbstraction.js\";\n\nexport interface IApiGqlClientResponse<T = any> {\n data?: T;\n errors?: Array<{\n message: string;\n code?: string;\n data?: any;\n }>;\n}\n\nexport interface IApiGqlClient {\n query<T = any>(params: {\n query: string;\n variables?: Record<string, any>;\n }): Promise<IApiGqlClientResponse<T>>;\n mutation<T = any>(params: {\n mutation: string;\n variables?: Record<string, any>;\n }): Promise<IApiGqlClientResponse<T>>;\n}\n\nexport const ApiGqlClient = createAbstraction<IApiGqlClient>(\"ApiGqlClient\");\n\nexport namespace ApiGqlClient {\n export type Interface = IApiGqlClient;\n export type Response<T = any> = IApiGqlClientResponse<T>;\n}\n"],"names":["ApiGqlClient","createAbstraction"],"mappings":";AAsBO,MAAMA,eAAeC,kBAAiC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface IInvokeLambdaFunctionParams {
|
|
2
|
-
functionName: string;
|
|
3
|
-
payload: Record<string, any>;
|
|
4
|
-
invocationType?: "RequestResponse" | "Event";
|
|
5
|
-
}
|
|
6
|
-
export interface IInvokeLambdaFunctionResult<T = any> {
|
|
7
|
-
statusCode?: number;
|
|
8
|
-
payload: T;
|
|
9
|
-
}
|
|
10
|
-
export interface IInvokeLambdaFunction {
|
|
11
|
-
execute<T = any>(params: IInvokeLambdaFunctionParams): Promise<IInvokeLambdaFunctionResult<T>>;
|
|
12
|
-
}
|
|
13
|
-
export declare const InvokeLambdaFunction: import("@webiny/di").Abstraction<IInvokeLambdaFunction>;
|
|
14
|
-
export declare namespace InvokeLambdaFunction {
|
|
15
|
-
type Interface = IInvokeLambdaFunction;
|
|
16
|
-
type Params = IInvokeLambdaFunctionParams;
|
|
17
|
-
type Result<T = any> = IInvokeLambdaFunctionResult<T>;
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstractions/InvokeLambdaFunction.js","sources":["../../src/abstractions/InvokeLambdaFunction.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/project/abstractions/createAbstraction.js\";\n\nexport interface IInvokeLambdaFunctionParams {\n functionName: string;\n payload: Record<string, any>;\n invocationType?: \"RequestResponse\" | \"Event\";\n}\n\nexport interface IInvokeLambdaFunctionResult<T = any> {\n statusCode?: number;\n payload: T;\n}\n\nexport interface IInvokeLambdaFunction {\n execute<T = any>(params: IInvokeLambdaFunctionParams): Promise<IInvokeLambdaFunctionResult<T>>;\n}\n\nexport const InvokeLambdaFunction =\n createAbstraction<IInvokeLambdaFunction>(\"InvokeLambdaFunction\");\n\nexport namespace InvokeLambdaFunction {\n export type Interface = IInvokeLambdaFunction;\n export type Params = IInvokeLambdaFunctionParams;\n export type Result<T = any> = IInvokeLambdaFunctionResult<T>;\n}\n"],"names":["InvokeLambdaFunction","createAbstraction"],"mappings":";AAiBO,MAAMA,uBACTC,kBAAyC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { AdminPulumiApp } from "../../../pulumi/apps/admin/createAdminPulumiApp.js";
|
|
2
|
-
export interface IAdminPulumi {
|
|
3
|
-
execute(app: AdminPulumiApp): void | Promise<void>;
|
|
4
|
-
}
|
|
5
|
-
export declare const AdminPulumi: import("@webiny/di").Abstraction<IAdminPulumi>;
|
|
6
|
-
export declare namespace AdminPulumi {
|
|
7
|
-
type Interface = IAdminPulumi;
|
|
8
|
-
type Params = AdminPulumiApp;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstractions/features/pulumi/AdminPulumi.js","sources":["../../../../src/abstractions/features/pulumi/AdminPulumi.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/project/abstractions/createAbstraction.js\";\nimport type { AdminPulumiApp } from \"~/pulumi/apps/admin/createAdminPulumiApp.js\";\n\nexport interface IAdminPulumi {\n execute(app: AdminPulumiApp): void | Promise<void>;\n}\n\nexport const AdminPulumi = createAbstraction<IAdminPulumi>(\"AdminPulumi\");\n\nexport namespace AdminPulumi {\n export type Interface = IAdminPulumi;\n export type Params = AdminPulumiApp;\n}\n"],"names":["AdminPulumi","createAbstraction"],"mappings":";AAOO,MAAMA,cAAcC,kBAAgC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ApiPulumiApp } from "../../../pulumi/apps/api/createApiPulumiApp.js";
|
|
2
|
-
export interface IApiPulumi {
|
|
3
|
-
execute(app: ApiPulumiApp): void | Promise<void>;
|
|
4
|
-
}
|
|
5
|
-
export declare const ApiPulumi: import("@webiny/di").Abstraction<IApiPulumi>;
|
|
6
|
-
export declare namespace ApiPulumi {
|
|
7
|
-
type Interface = IApiPulumi;
|
|
8
|
-
type Params = ApiPulumiApp;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstractions/features/pulumi/ApiPulumi.js","sources":["../../../../src/abstractions/features/pulumi/ApiPulumi.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/project/abstractions/createAbstraction.js\";\nimport type { ApiPulumiApp } from \"~/pulumi/apps/api/createApiPulumiApp.js\";\n\nexport interface IApiPulumi {\n execute(app: ApiPulumiApp): void | Promise<void>;\n}\n\nexport const ApiPulumi = createAbstraction<IApiPulumi>(\"ApiPulumi\");\n\nexport namespace ApiPulumi {\n export type Interface = IApiPulumi;\n export type Params = ApiPulumiApp;\n}\n"],"names":["ApiPulumi","createAbstraction"],"mappings":";AAOO,MAAMA,YAAYC,kBAA8B"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { CorePulumiApp } from "../../../pulumi/apps/core/createCorePulumiApp.js";
|
|
2
|
-
export interface ICorePulumi {
|
|
3
|
-
execute(app: CorePulumiApp): void | Promise<void>;
|
|
4
|
-
}
|
|
5
|
-
export declare const CorePulumi: import("@webiny/di").Abstraction<ICorePulumi>;
|
|
6
|
-
export declare namespace CorePulumi {
|
|
7
|
-
type Interface = ICorePulumi;
|
|
8
|
-
type Params = CorePulumiApp;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstractions/features/pulumi/CorePulumi.js","sources":["../../../../src/abstractions/features/pulumi/CorePulumi.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/project/abstractions/createAbstraction.js\";\nimport type { CorePulumiApp } from \"~/pulumi/apps/core/createCorePulumiApp.js\";\n\nexport interface ICorePulumi {\n execute(app: CorePulumiApp): void | Promise<void>;\n}\n\nexport const CorePulumi = createAbstraction<ICorePulumi>(\"CorePulumi\");\n\nexport namespace CorePulumi {\n export type Interface = ICorePulumi;\n export type Params = CorePulumiApp;\n}\n"],"names":["CorePulumi","createAbstraction"],"mappings":";AAOO,MAAMA,aAAaC,kBAA+B"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { CustomDomainParams } from "../../../pulumi/apps/customDomain.js";
|
|
2
|
-
export interface ISetAdminCustomDomains {
|
|
3
|
-
execute(params: CustomDomainParams): void;
|
|
4
|
-
}
|
|
5
|
-
export declare const SetAdminCustomDomains: import("@webiny/di").Abstraction<ISetAdminCustomDomains>;
|
|
6
|
-
export declare namespace SetAdminCustomDomains {
|
|
7
|
-
type Interface = ISetAdminCustomDomains;
|
|
8
|
-
type Params = CustomDomainParams;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstractions/features/pulumi/SetAdminCustomDomains.js","sources":["../../../../src/abstractions/features/pulumi/SetAdminCustomDomains.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/project/abstractions/createAbstraction.js\";\nimport type { CustomDomainParams } from \"~/pulumi/apps/customDomain.js\";\n\nexport interface ISetAdminCustomDomains {\n execute(params: CustomDomainParams): void;\n}\n\nexport const SetAdminCustomDomains =\n createAbstraction<ISetAdminCustomDomains>(\"SetAdminCustomDomains\");\n\nexport namespace SetAdminCustomDomains {\n export type Interface = ISetAdminCustomDomains;\n export type Params = CustomDomainParams;\n}\n"],"names":["SetAdminCustomDomains","createAbstraction"],"mappings":";AAOO,MAAMA,wBACTC,kBAA0C"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { CustomDomainParams } from "../../../pulumi/apps/customDomain.js";
|
|
2
|
-
export interface ISetApiCustomDomains {
|
|
3
|
-
execute(params: CustomDomainParams): void;
|
|
4
|
-
}
|
|
5
|
-
export declare const SetApiCustomDomains: import("@webiny/di").Abstraction<ISetApiCustomDomains>;
|
|
6
|
-
export declare namespace SetApiCustomDomains {
|
|
7
|
-
type Interface = ISetApiCustomDomains;
|
|
8
|
-
type Params = CustomDomainParams;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstractions/features/pulumi/SetApiCustomDomains.js","sources":["../../../../src/abstractions/features/pulumi/SetApiCustomDomains.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/project/abstractions/createAbstraction.js\";\nimport type { CustomDomainParams } from \"~/pulumi/apps/customDomain.js\";\n\nexport interface ISetApiCustomDomains {\n execute(params: CustomDomainParams): void;\n}\n\nexport const SetApiCustomDomains = createAbstraction<ISetApiCustomDomains>(\"SetApiCustomDomains\");\n\nexport namespace SetApiCustomDomains {\n export type Interface = ISetApiCustomDomains;\n export type Params = CustomDomainParams;\n}\n"],"names":["SetApiCustomDomains","createAbstraction"],"mappings":";AAOO,MAAMA,sBAAsBC,kBAAwC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface IAdminStackOutput {
|
|
2
|
-
region?: string;
|
|
3
|
-
appUrl?: string;
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
}
|
|
6
|
-
export interface IAdminStackOutputService {
|
|
7
|
-
execute<TOutput extends IAdminStackOutput = IAdminStackOutput>(): Promise<TOutput | null>;
|
|
8
|
-
}
|
|
9
|
-
export declare const AdminStackOutputService: import("@webiny/di").Abstraction<IAdminStackOutputService>;
|
|
10
|
-
export declare namespace AdminStackOutputService {
|
|
11
|
-
type Interface = IAdminStackOutputService;
|
|
12
|
-
type Output = IAdminStackOutput;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstractions/services/AdminStackOutputService.js","sources":["../../../src/abstractions/services/AdminStackOutputService.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/project/abstractions/createAbstraction.js\";\n\nexport interface IAdminStackOutput {\n region?: string;\n appUrl?: string;\n [key: string]: any;\n}\n\nexport interface IAdminStackOutputService {\n execute<TOutput extends IAdminStackOutput = IAdminStackOutput>(): Promise<TOutput | null>;\n}\n\nexport const AdminStackOutputService =\n createAbstraction<IAdminStackOutputService>(\"AdminStackOutputService\");\n\nexport namespace AdminStackOutputService {\n export type Interface = IAdminStackOutputService;\n export type Output = IAdminStackOutput;\n}\n"],"names":["AdminStackOutputService","createAbstraction"],"mappings":";AAYO,MAAMA,0BACTC,kBAA4C"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export interface IApiStackOutput {
|
|
2
|
-
apiDomain?: string;
|
|
3
|
-
apiUrl?: string;
|
|
4
|
-
graphqlLambdaRole?: string;
|
|
5
|
-
graphqlLambdaRoleName?: string;
|
|
6
|
-
cognitoAppClientId?: string;
|
|
7
|
-
cognitoUserPoolId?: string;
|
|
8
|
-
cognitoUserPoolPasswordPolicy?: string;
|
|
9
|
-
dynamoDbTable?: string;
|
|
10
|
-
region?: string;
|
|
11
|
-
websocketApiId?: string;
|
|
12
|
-
websocketApiUrl?: string;
|
|
13
|
-
graphqlLambdaName?: string;
|
|
14
|
-
backgroundTaskLambdaArn?: string;
|
|
15
|
-
backgroundTaskStepFunctionArn?: string;
|
|
16
|
-
fileManagerManageLambdaArn?: string;
|
|
17
|
-
fileManagerManageLambdaRole?: string;
|
|
18
|
-
fileManagerManageLambdaRoleName?: string;
|
|
19
|
-
fileManagerDownloadLambdaArn?: string;
|
|
20
|
-
[key: string]: any;
|
|
21
|
-
}
|
|
22
|
-
export interface IApiStackOutputService {
|
|
23
|
-
execute<TOutput extends IApiStackOutput = IApiStackOutput>(): Promise<TOutput | null>;
|
|
24
|
-
}
|
|
25
|
-
export declare const ApiStackOutputService: import("@webiny/di").Abstraction<IApiStackOutputService>;
|
|
26
|
-
export declare namespace ApiStackOutputService {
|
|
27
|
-
type Interface = IApiStackOutputService;
|
|
28
|
-
type Output = IApiStackOutput;
|
|
29
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstractions/services/ApiStackOutputService.js","sources":["../../../src/abstractions/services/ApiStackOutputService.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/project/abstractions/createAbstraction.js\";\n\nexport interface IApiStackOutput {\n apiDomain?: string;\n apiUrl?: string;\n graphqlLambdaRole?: string;\n graphqlLambdaRoleName?: string;\n cognitoAppClientId?: string;\n cognitoUserPoolId?: string;\n cognitoUserPoolPasswordPolicy?: string;\n dynamoDbTable?: string;\n region?: string;\n websocketApiId?: string;\n websocketApiUrl?: string;\n graphqlLambdaName?: string;\n backgroundTaskLambdaArn?: string;\n backgroundTaskStepFunctionArn?: string;\n fileManagerManageLambdaArn?: string;\n fileManagerManageLambdaRole?: string;\n fileManagerManageLambdaRoleName?: string;\n fileManagerDownloadLambdaArn?: string;\n [key: string]: any;\n}\n\nexport interface IApiStackOutputService {\n execute<TOutput extends IApiStackOutput = IApiStackOutput>(): Promise<TOutput | null>;\n}\n\nexport const ApiStackOutputService =\n createAbstraction<IApiStackOutputService>(\"ApiStackOutputService\");\n\nexport namespace ApiStackOutputService {\n export type Interface = IApiStackOutputService;\n export type Output = IApiStackOutput;\n}\n"],"names":["ApiStackOutputService","createAbstraction"],"mappings":";AA4BO,MAAMA,wBACTC,kBAA0C"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface ICoreStackOutput {
|
|
2
|
-
region?: string;
|
|
3
|
-
deploymentId?: string;
|
|
4
|
-
databaseSetup?: string;
|
|
5
|
-
opensearchDomainEndpoint?: string;
|
|
6
|
-
opensearchDomainArn?: string;
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
}
|
|
9
|
-
export interface ICoreStackOutputService {
|
|
10
|
-
execute<TOutput extends ICoreStackOutput = ICoreStackOutput>(): Promise<TOutput | null>;
|
|
11
|
-
}
|
|
12
|
-
export declare const CoreStackOutputService: import("@webiny/di").Abstraction<ICoreStackOutputService>;
|
|
13
|
-
export declare namespace CoreStackOutputService {
|
|
14
|
-
type Interface = ICoreStackOutputService;
|
|
15
|
-
type Output = ICoreStackOutput;
|
|
16
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstractions/services/CoreStackOutputService.js","sources":["../../../src/abstractions/services/CoreStackOutputService.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/project/abstractions/createAbstraction.js\";\n\nexport interface ICoreStackOutput {\n region?: string;\n deploymentId?: string;\n databaseSetup?: string;\n opensearchDomainEndpoint?: string;\n opensearchDomainArn?: string;\n [key: string]: any;\n}\n\nexport interface ICoreStackOutputService {\n execute<TOutput extends ICoreStackOutput = ICoreStackOutput>(): Promise<TOutput | null>;\n}\n\nexport const CoreStackOutputService =\n createAbstraction<ICoreStackOutputService>(\"CoreStackOutputService\");\n\nexport namespace CoreStackOutputService {\n export type Interface = ICoreStackOutputService;\n export type Output = ICoreStackOutput;\n}\n"],"names":["CoreStackOutputService","createAbstraction"],"mappings":";AAeO,MAAMA,yBACTC,kBAA2C"}
|
package/exports/extensions.d.ts
DELETED
package/exports/extensions.js
DELETED
package/exports/infra.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ApiStackOutputService as ApiStackOutput, CoreStackOutputService as CoreStackOutput, ApiGqlClient, AdminStackOutputService as AdminStackOutput, InvokeLambdaFunction } from "../abstractions/index.js";
|
package/exports/infra.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { AdminStackOutputService as AdminStackOutput, ApiGqlClient, ApiStackOutputService as ApiStackOutput, CoreStackOutputService as CoreStackOutput, InvokeLambdaFunction } from "../abstractions/index.js";
|