@webiny/project 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/ProjectSdk.d.ts +8 -19
- package/ProjectSdk.js +1 -28
- package/ProjectSdk.js.map +1 -1
- package/abstractions/features/hooks/index.d.ts +0 -8
- package/abstractions/features/hooks/index.js +0 -8
- package/abstractions/features/index.d.ts +0 -8
- package/abstractions/features/index.js +0 -8
- package/abstractions/models/IAppModel.d.ts +0 -2
- package/abstractions/models/IProjectModel.d.ts +0 -2
- package/abstractions/services/InitHostingSdkService.d.ts +21 -0
- package/abstractions/services/InitHostingSdkService.js +5 -0
- package/abstractions/services/InitHostingSdkService.js.map +1 -0
- package/abstractions/services/ProjectInfoService/ProjectInfoService.d.ts +6 -6
- package/abstractions/services/ProjectInfoService/ProjectInfoService.js.map +1 -1
- package/abstractions/services/ProjectInfoService/index.d.ts +0 -1
- package/abstractions/services/ProjectInfoService/index.js +0 -1
- package/abstractions/services/index.d.ts +1 -13
- package/abstractions/services/index.js +1 -13
- package/components/FeatureFlag.d.ts +9 -4
- package/components/FeatureFlag.js +6 -7
- package/components/FeatureFlag.js.map +1 -1
- package/createProjectSdkContainer.js +23 -12
- package/createProjectSdkContainer.js.map +1 -1
- package/decorators/GetFeatureFlagsWithLicense.js +1 -0
- package/decorators/GetFeatureFlagsWithLicense.js.map +1 -1
- package/decorators/index.d.ts +0 -6
- package/decorators/index.js +0 -6
- package/defineExtension/createExtensionReactComponent.js +9 -1
- package/defineExtension/createExtensionReactComponent.js.map +1 -1
- package/defineExtension/types.d.ts +7 -2
- package/exports/infra/admin.d.ts +0 -2
- package/exports/infra/admin.js +0 -2
- package/exports/infra/api.d.ts +0 -2
- package/exports/infra/api.js +0 -2
- package/exports/infra/core.d.ts +0 -2
- package/exports/infra/core.js +0 -2
- package/exports/infra.d.ts +0 -2
- package/exports/infra.js +0 -2
- package/extensions/AdminApiUrl.js +2 -1
- package/extensions/AdminApiUrl.js.map +1 -1
- package/extensions/AdminBuildParam.js +5 -5
- package/extensions/AdminBuildParam.js.map +1 -1
- package/extensions/AdminExtension.d.ts +1 -1
- package/extensions/AdminExtension.js +6 -5
- package/extensions/AdminExtension.js.map +1 -1
- package/extensions/AdminWebsocketsUrl.d.ts +1 -1
- package/extensions/AdminWebsocketsUrl.js +2 -1
- package/extensions/AdminWebsocketsUrl.js.map +1 -1
- package/extensions/ApiBuildParam.js +11 -10
- package/extensions/ApiBuildParam.js.map +1 -1
- package/extensions/ApiExtension.d.ts +1 -1
- package/extensions/ApiExtension.js +8 -5
- package/extensions/ApiExtension.js.map +1 -1
- package/extensions/BugReporter.d.ts +6 -0
- package/extensions/BugReporter.js +34 -0
- package/extensions/BugReporter.js.map +1 -0
- package/extensions/DatabaseSetup.js +2 -1
- package/extensions/DatabaseSetup.js.map +1 -1
- package/extensions/EnvVar.js +2 -1
- package/extensions/EnvVar.js.map +1 -1
- package/extensions/ExtensionDefinitions.js +2 -1
- package/extensions/ExtensionDefinitions.js.map +1 -1
- package/extensions/FeatureFlags.d.ts +7 -1
- package/extensions/FeatureFlags.js +12 -2
- package/extensions/FeatureFlags.js.map +1 -1
- package/extensions/{pulumi/ProductionEnvironments.js → ProductionEnvironments.js} +4 -3
- package/extensions/ProductionEnvironments.js.map +1 -0
- package/extensions/Project/WcpInjectTelemetryClientAfterBuild.js.map +1 -1
- package/extensions/Project/showConfigChangeNotice.d.ts +1 -1
- package/extensions/Project/showConfigChangeNotice.js.map +1 -1
- package/extensions/ProjectDecorator.js +2 -1
- package/extensions/ProjectDecorator.js.map +1 -1
- package/extensions/ProjectId.js +2 -1
- package/extensions/ProjectId.js.map +1 -1
- package/extensions/ProjectImplementation.js +2 -1
- package/extensions/ProjectImplementation.js.map +1 -1
- package/extensions/Telemetry.js +2 -1
- package/extensions/Telemetry.js.map +1 -1
- package/extensions/api/BackgroundTasks.d.ts +4 -0
- package/extensions/api/BackgroundTasks.js +25 -0
- package/extensions/api/BackgroundTasks.js.map +1 -0
- package/extensions/api/Cms/ModelFieldCompression.d.ts +4 -0
- package/extensions/api/Cms/ModelFieldCompression.js +25 -0
- package/extensions/api/Cms/ModelFieldCompression.js.map +1 -0
- package/extensions/api/Mailer/Smtp.d.ts +8 -0
- package/extensions/api/Mailer/Smtp.js +22 -0
- package/extensions/api/Mailer/Smtp.js.map +1 -0
- package/extensions/api/Mailer/Smtp.test.js +127 -0
- package/extensions/api/Mailer/Smtp.test.js.map +1 -0
- package/extensions/api/Mailer/SmtpParamsSchema.d.ts +9 -0
- package/extensions/api/Mailer/SmtpParamsSchema.js +17 -0
- package/extensions/api/Mailer/SmtpParamsSchema.js.map +1 -0
- package/extensions/api/Route/ApiRoute.d.ts +23 -0
- package/extensions/api/Route/ApiRoute.js +92 -0
- package/extensions/api/Route/ApiRoute.js.map +1 -0
- package/extensions/api/Route/index.d.ts +2 -0
- package/extensions/api/Route/index.js +2 -0
- package/extensions/api/Route/routePath.d.ts +20 -0
- package/extensions/api/Route/routePath.js +10 -0
- package/extensions/api/Route/routePath.js.map +1 -0
- package/extensions/api/index.d.ts +5 -0
- package/extensions/api/index.js +5 -0
- package/extensions/hasDefaultExport.d.ts +2 -0
- package/extensions/hasDefaultExport.js +17 -0
- package/extensions/hasDefaultExport.js.map +1 -0
- package/extensions/hooks/AdminAfterBuild.js +2 -1
- package/extensions/hooks/AdminAfterBuild.js.map +1 -1
- package/extensions/hooks/AdminBeforeBuild.js +2 -1
- package/extensions/hooks/AdminBeforeBuild.js.map +1 -1
- package/extensions/hooks/AdminBeforeWatch.js +2 -1
- package/extensions/hooks/AdminBeforeWatch.js.map +1 -1
- package/extensions/hooks/AfterBuild.js +2 -1
- package/extensions/hooks/AfterBuild.js.map +1 -1
- package/extensions/hooks/ApiAfterBuild.js +2 -1
- package/extensions/hooks/ApiAfterBuild.js.map +1 -1
- package/extensions/hooks/ApiBeforeBuild.js +2 -1
- package/extensions/hooks/ApiBeforeBuild.js.map +1 -1
- package/extensions/hooks/ApiBeforeWatch.js +2 -1
- package/extensions/hooks/ApiBeforeWatch.js.map +1 -1
- package/extensions/hooks/BeforeBuild.js +2 -1
- package/extensions/hooks/BeforeBuild.js.map +1 -1
- package/extensions/hooks/BeforeWatch.js +2 -1
- package/extensions/hooks/BeforeWatch.js.map +1 -1
- package/extensions/hooks/CoreAfterBuild.js +2 -1
- package/extensions/hooks/CoreAfterBuild.js.map +1 -1
- package/extensions/hooks/CoreBeforeBuild.js +2 -1
- package/extensions/hooks/CoreBeforeBuild.js.map +1 -1
- package/extensions/hooks/CoreBeforeWatch.js +2 -1
- package/extensions/hooks/CoreBeforeWatch.js.map +1 -1
- package/extensions/hooks/index.d.ts +0 -8
- package/extensions/hooks/index.js +0 -8
- package/extensions/hosting/assertHostingType.d.ts +13 -0
- package/extensions/hosting/assertHostingType.js +12 -0
- package/extensions/hosting/assertHostingType.js.map +1 -0
- package/extensions/hosting/extensionImplementations.d.ts +13 -0
- package/extensions/hosting/extensionImplementations.js +4 -0
- package/extensions/hosting/extensionImplementations.js.map +1 -0
- package/extensions/hosting/getExtensionImplementation.d.ts +1 -0
- package/extensions/hosting/getExtensionImplementation.js +9 -0
- package/extensions/hosting/getExtensionImplementation.js.map +1 -0
- package/extensions/hosting/hostingType.d.ts +2 -0
- package/extensions/hosting/hostingType.js +0 -0
- package/extensions/hosting/index.d.ts +4 -0
- package/extensions/hosting/index.js +4 -0
- package/extensions/hosting/registerExtensionImplementation.d.ts +12 -0
- package/extensions/hosting/registerExtensionImplementation.js +13 -0
- package/extensions/hosting/registerExtensionImplementation.js.map +1 -0
- package/extensions/index.d.ts +26 -39
- package/extensions/index.js +10 -21
- package/extensions/index.js.map +1 -1
- package/extensions/infra/Env.js +5 -0
- package/extensions/infra/Env.js.map +1 -1
- package/features/GetProductionEnvironments/GetProductionEnvironments.js +1 -1
- package/features/GetProductionEnvironments/GetProductionEnvironments.js.map +1 -1
- package/features/Serve/Serve.d.ts +1 -1
- package/features/Serve/Serve.js.map +1 -1
- package/features/Watch/watchers/worker.js +3 -0
- package/features/Watch/watchers/worker.js.map +1 -1
- package/features/hooks/index.d.ts +0 -8
- package/features/hooks/index.js +0 -8
- package/features/index.d.ts +0 -8
- package/features/index.js +0 -8
- package/index.d.ts +0 -4
- package/index.js +1 -5
- package/index.js.map +1 -1
- package/models/AppModel.js +1 -2
- package/models/AppModel.js.map +1 -1
- package/models/ProjectModel.js +0 -2
- package/models/ProjectModel.js.map +1 -1
- package/package.json +29 -34
- package/services/GetAppService/GetAppService.js +1 -3
- package/services/GetAppService/GetAppService.js.map +1 -1
- package/services/GetProjectConfigService/ConfigRenderErrorBoundary.d.ts +15 -0
- package/services/GetProjectConfigService/ConfigRenderErrorBoundary.js +23 -0
- package/services/GetProjectConfigService/ConfigRenderErrorBoundary.js.map +1 -0
- package/services/GetProjectConfigService/EnvContext.d.ts +3 -2
- package/services/GetProjectConfigService/EnvContext.js +4 -6
- package/services/GetProjectConfigService/EnvContext.js.map +1 -1
- package/services/GetProjectConfigService/GetProjectConfigService.js +14 -11
- package/services/GetProjectConfigService/GetProjectConfigService.js.map +1 -1
- package/services/GetProjectConfigService/LicenseDecoratedFeatureFlags.js +1 -0
- package/services/GetProjectConfigService/LicenseDecoratedFeatureFlags.js.map +1 -1
- package/services/GetProjectConfigService/WcpProjectLicenseContext.d.ts +1 -0
- package/services/GetProjectConfigService/WcpProjectLicenseContext.js +1 -0
- package/services/GetProjectConfigService/WcpProjectLicenseContext.js.map +1 -1
- package/services/GetProjectConfigService/getRenderCacheKey.d.ts +1 -0
- package/services/GetProjectConfigService/getRenderCacheKey.js +13 -0
- package/services/GetProjectConfigService/getRenderCacheKey.js.map +1 -0
- package/services/GetProjectConfigService/nullRenderer.d.ts +4 -0
- package/services/GetProjectConfigService/nullRenderer.js +83 -0
- package/services/GetProjectConfigService/nullRenderer.js.map +1 -0
- package/services/GetProjectConfigService/renderConfig.d.ts +3 -12
- package/services/GetProjectConfigService/renderConfig.js +10 -35
- package/services/GetProjectConfigService/renderConfig.js.map +1 -1
- package/services/GetProjectConfigService/renderExtensions.d.ts +8 -0
- package/services/GetProjectConfigService/renderExtensions.js +52 -0
- package/services/GetProjectConfigService/renderExtensions.js.map +1 -0
- package/services/GetProjectService/GetProjectService.js +0 -2
- package/services/GetProjectService/GetProjectService.js.map +1 -1
- package/services/InitProjectSdkService/InitProjectSdkService.d.ts +6 -2
- package/services/InitProjectSdkService/InitProjectSdkService.js +22 -19
- package/services/InitProjectSdkService/InitProjectSdkService.js.map +1 -1
- package/services/InitProjectSdkService/applyWcpEnvVars.js +27 -9
- package/services/InitProjectSdkService/applyWcpEnvVars.js.map +1 -1
- package/services/InitProjectSdkService/registerHooks.js +4 -16
- package/services/InitProjectSdkService/registerHooks.js.map +1 -1
- package/services/ProjectInfoService/ProjectInfoService.d.ts +7 -3
- package/services/ProjectInfoService/ProjectInfoService.js +3 -11
- package/services/ProjectInfoService/ProjectInfoService.js.map +1 -1
- package/services/ProjectInfoService/index.d.ts +0 -1
- package/services/ProjectInfoService/index.js +0 -1
- package/services/ValidateProjectConfigService/ValidateProjectConfigService.js +10 -7
- package/services/ValidateProjectConfigService/ValidateProjectConfigService.js.map +1 -1
- package/services/WcpService/GetProjectEnvironment.js +16 -5
- package/services/WcpService/GetProjectEnvironment.js.map +1 -1
- package/services/WcpService/WcpGqlClient.js +2 -2
- package/services/WcpService/WcpGqlClient.js.map +1 -1
- package/services/WcpService/fetchProjectEnvironmentByApiKey.d.ts +8 -0
- package/services/WcpService/fetchProjectEnvironmentByApiKey.js +21 -0
- package/services/WcpService/fetchProjectEnvironmentByApiKey.js.map +1 -0
- package/services/index.d.ts +0 -12
- package/services/index.js +0 -12
- package/utils/ExtensionSrcResolver.js +2 -2
- package/utils/ExtensionSrcResolver.js.map +1 -1
- package/utils/apiRuntimeEnv.d.ts +2 -2
- package/utils/apiRuntimeEnv.js.map +1 -1
- package/utils/env/index.d.ts +0 -1
- package/utils/env/index.js +0 -1
- package/utils/index.d.ts +2 -0
- package/utils/index.js +2 -0
- package/utils/registerSrcExtensions.d.ts +13 -0
- package/utils/registerSrcExtensions.js +10 -0
- package/utils/registerSrcExtensions.js.map +1 -0
- package/utils/trace/TraceRecorder.d.ts +17 -0
- package/utils/trace/TraceRecorder.js +51 -0
- package/utils/trace/TraceRecorder.js.map +1 -0
- package/utils/trace/formatTraceReport.d.ts +2 -0
- package/utils/trace/formatTraceReport.js +53 -0
- package/utils/trace/formatTraceReport.js.map +1 -0
- package/utils/trace/index.d.ts +6 -0
- package/utils/trace/index.js +6 -0
- package/utils/trace/isTraceRequested.d.ts +1 -0
- package/utils/trace/isTraceRequested.js +12 -0
- package/utils/trace/isTraceRequested.js.map +1 -0
- package/utils/trace/startTrace.d.ts +1 -0
- package/utils/trace/startTrace.js +19 -0
- package/utils/trace/startTrace.js.map +1 -0
- package/utils/trace/trace.d.ts +1 -0
- package/utils/trace/trace.js +13 -0
- package/utils/trace/trace.js.map +1 -0
- package/utils/trace/traceAsync.d.ts +1 -0
- package/utils/trace/traceAsync.js +13 -0
- package/utils/trace/traceAsync.js.map +1 -0
- package/abstractions/features/DeployApp.d.ts +0 -20
- package/abstractions/features/DeployApp.js +0 -5
- package/abstractions/features/DeployApp.js.map +0 -1
- package/abstractions/features/DestroyApp.d.ts +0 -18
- package/abstractions/features/DestroyApp.js +0 -5
- package/abstractions/features/DestroyApp.js.map +0 -1
- package/abstractions/features/ExportStack.d.ts +0 -18
- package/abstractions/features/ExportStack.js +0 -5
- package/abstractions/features/ExportStack.js.map +0 -1
- package/abstractions/features/GetAppOutput.d.ts +0 -18
- package/abstractions/features/GetAppOutput.js +0 -5
- package/abstractions/features/GetAppOutput.js.map +0 -1
- package/abstractions/features/GetAppStackOutput.d.ts +0 -21
- package/abstractions/features/GetAppStackOutput.js +0 -5
- package/abstractions/features/GetAppStackOutput.js.map +0 -1
- package/abstractions/features/GetPulumiResourceNamePrefix.d.ts +0 -7
- package/abstractions/features/GetPulumiResourceNamePrefix.js +0 -5
- package/abstractions/features/GetPulumiResourceNamePrefix.js.map +0 -1
- package/abstractions/features/RefreshApp.d.ts +0 -18
- package/abstractions/features/RefreshApp.js +0 -5
- package/abstractions/features/RefreshApp.js.map +0 -1
- package/abstractions/features/RunPulumiCommand.d.ts +0 -19
- package/abstractions/features/RunPulumiCommand.js +0 -5
- package/abstractions/features/RunPulumiCommand.js.map +0 -1
- package/abstractions/features/hooks/AdminAfterDeploy.d.ts +0 -9
- package/abstractions/features/hooks/AdminAfterDeploy.js +0 -5
- package/abstractions/features/hooks/AdminAfterDeploy.js.map +0 -1
- package/abstractions/features/hooks/AdminBeforeDeploy.d.ts +0 -9
- package/abstractions/features/hooks/AdminBeforeDeploy.js +0 -5
- package/abstractions/features/hooks/AdminBeforeDeploy.js.map +0 -1
- package/abstractions/features/hooks/AfterDeploy.d.ts +0 -9
- package/abstractions/features/hooks/AfterDeploy.js +0 -5
- package/abstractions/features/hooks/AfterDeploy.js.map +0 -1
- package/abstractions/features/hooks/ApiAfterDeploy.d.ts +0 -9
- package/abstractions/features/hooks/ApiAfterDeploy.js +0 -5
- package/abstractions/features/hooks/ApiAfterDeploy.js.map +0 -1
- package/abstractions/features/hooks/ApiBeforeDeploy.d.ts +0 -9
- package/abstractions/features/hooks/ApiBeforeDeploy.js +0 -5
- package/abstractions/features/hooks/ApiBeforeDeploy.js.map +0 -1
- package/abstractions/features/hooks/BeforeDeploy.d.ts +0 -9
- package/abstractions/features/hooks/BeforeDeploy.js +0 -5
- package/abstractions/features/hooks/BeforeDeploy.js.map +0 -1
- package/abstractions/features/hooks/CoreAfterDeploy.d.ts +0 -9
- package/abstractions/features/hooks/CoreAfterDeploy.js +0 -5
- package/abstractions/features/hooks/CoreAfterDeploy.js.map +0 -1
- package/abstractions/features/hooks/CoreBeforeDeploy.d.ts +0 -9
- package/abstractions/features/hooks/CoreBeforeDeploy.js +0 -5
- package/abstractions/features/hooks/CoreBeforeDeploy.js.map +0 -1
- package/abstractions/services/GetPulumiService.d.ts +0 -14
- package/abstractions/services/GetPulumiService.js +0 -5
- package/abstractions/services/GetPulumiService.js.map +0 -1
- package/abstractions/services/IsRemotePulumiBackendService.d.ts +0 -7
- package/abstractions/services/IsRemotePulumiBackendService.js +0 -5
- package/abstractions/services/IsRemotePulumiBackendService.js.map +0 -1
- package/abstractions/services/ListAppLambdaFunctionsService.d.ts +0 -23
- package/abstractions/services/ListAppLambdaFunctionsService.js +0 -5
- package/abstractions/services/ListAppLambdaFunctionsService.js.map +0 -1
- package/abstractions/services/ListDeployedEnvironmentsService.d.ts +0 -12
- package/abstractions/services/ListDeployedEnvironmentsService.js +0 -5
- package/abstractions/services/ListDeployedEnvironmentsService.js.map +0 -1
- package/abstractions/services/ProjectInfoService/GetPulumiVersionService.d.ts +0 -12
- package/abstractions/services/ProjectInfoService/GetPulumiVersionService.js +0 -5
- package/abstractions/services/ProjectInfoService/GetPulumiVersionService.js.map +0 -1
- package/abstractions/services/PulumiExportService.d.ts +0 -13
- package/abstractions/services/PulumiExportService.js +0 -6
- package/abstractions/services/PulumiExportService.js.map +0 -1
- package/abstractions/services/PulumiGetConfigPassphraseService.d.ts +0 -7
- package/abstractions/services/PulumiGetConfigPassphraseService.js +0 -5
- package/abstractions/services/PulumiGetConfigPassphraseService.js.map +0 -1
- package/abstractions/services/PulumiGetSecretsProviderService.d.ts +0 -7
- package/abstractions/services/PulumiGetSecretsProviderService.js +0 -5
- package/abstractions/services/PulumiGetSecretsProviderService.js.map +0 -1
- package/abstractions/services/PulumiGetStackOutputService.d.ts +0 -13
- package/abstractions/services/PulumiGetStackOutputService.js +0 -5
- package/abstractions/services/PulumiGetStackOutputService.js.map +0 -1
- package/abstractions/services/PulumiImportService.d.ts +0 -8
- package/abstractions/services/PulumiImportService.js +0 -5
- package/abstractions/services/PulumiImportService.js.map +0 -1
- package/abstractions/services/PulumiLoginService.d.ts +0 -16
- package/abstractions/services/PulumiLoginService.js +0 -5
- package/abstractions/services/PulumiLoginService.js.map +0 -1
- package/abstractions/services/PulumiSelectStackService.d.ts +0 -10
- package/abstractions/services/PulumiSelectStackService.js +0 -5
- package/abstractions/services/PulumiSelectStackService.js.map +0 -1
- package/abstractions/services/StackOutputCacheService.d.ts +0 -10
- package/abstractions/services/StackOutputCacheService.js +0 -5
- package/abstractions/services/StackOutputCacheService.js.map +0 -1
- package/abstractions/services/WatchedLambdaFunctionsService.d.ts +0 -28
- package/abstractions/services/WatchedLambdaFunctionsService.js +0 -5
- package/abstractions/services/WatchedLambdaFunctionsService.js.map +0 -1
- package/decorators/DeployAppClearWatchedLambdaFunctions.d.ts +0 -17
- package/decorators/DeployAppClearWatchedLambdaFunctions.js +0 -32
- package/decorators/DeployAppClearWatchedLambdaFunctions.js.map +0 -1
- package/decorators/DeployAppRefreshStackOutputCache.d.ts +0 -17
- package/decorators/DeployAppRefreshStackOutputCache.js +0 -32
- package/decorators/DeployAppRefreshStackOutputCache.js.map +0 -1
- package/decorators/DeployAppWithHooks.d.ts +0 -17
- package/decorators/DeployAppWithHooks.js +0 -58
- package/decorators/DeployAppWithHooks.js.map +0 -1
- package/decorators/DeployAppWithWatchedLambdaReplacement.d.ts +0 -17
- package/decorators/DeployAppWithWatchedLambdaReplacement.js +0 -39
- package/decorators/DeployAppWithWatchedLambdaReplacement.js.map +0 -1
- package/decorators/DestroyAppClearStackOutputCache.d.ts +0 -25
- package/decorators/DestroyAppClearStackOutputCache.js +0 -29
- package/decorators/DestroyAppClearStackOutputCache.js.map +0 -1
- package/decorators/GetPulumiServiceWithDownloadInfo.d.ts +0 -11
- package/decorators/GetPulumiServiceWithDownloadInfo.js +0 -27
- package/decorators/GetPulumiServiceWithDownloadInfo.js.map +0 -1
- package/extensions/ApiMaxBundleSize.d.ts +0 -4
- package/extensions/ApiMaxBundleSize.js +0 -23
- package/extensions/ApiMaxBundleSize.js.map +0 -1
- package/extensions/hooks/AdminAfterDeploy.d.ts +0 -4
- package/extensions/hooks/AdminAfterDeploy.js +0 -22
- package/extensions/hooks/AdminAfterDeploy.js.map +0 -1
- package/extensions/hooks/AdminBeforeDeploy.d.ts +0 -4
- package/extensions/hooks/AdminBeforeDeploy.js +0 -22
- package/extensions/hooks/AdminBeforeDeploy.js.map +0 -1
- package/extensions/hooks/AfterDeploy.d.ts +0 -4
- package/extensions/hooks/AfterDeploy.js +0 -21
- package/extensions/hooks/AfterDeploy.js.map +0 -1
- package/extensions/hooks/ApiAfterDeploy.d.ts +0 -4
- package/extensions/hooks/ApiAfterDeploy.js +0 -22
- package/extensions/hooks/ApiAfterDeploy.js.map +0 -1
- package/extensions/hooks/ApiBeforeDeploy.d.ts +0 -4
- package/extensions/hooks/ApiBeforeDeploy.js +0 -22
- package/extensions/hooks/ApiBeforeDeploy.js.map +0 -1
- package/extensions/hooks/BeforeDeploy.d.ts +0 -4
- package/extensions/hooks/BeforeDeploy.js +0 -21
- package/extensions/hooks/BeforeDeploy.js.map +0 -1
- package/extensions/hooks/CoreAfterDeploy.d.ts +0 -4
- package/extensions/hooks/CoreAfterDeploy.js +0 -22
- package/extensions/hooks/CoreAfterDeploy.js.map +0 -1
- package/extensions/hooks/CoreBeforeDeploy.d.ts +0 -4
- package/extensions/hooks/CoreBeforeDeploy.js +0 -22
- package/extensions/hooks/CoreBeforeDeploy.js.map +0 -1
- package/extensions/infra/Encryption.d.ts +0 -10
- package/extensions/infra/Encryption.js +0 -36
- package/extensions/infra/Encryption.js.map +0 -1
- package/extensions/infra/Hashing.d.ts +0 -5
- package/extensions/infra/Hashing.js +0 -27
- package/extensions/infra/Hashing.js.map +0 -1
- package/extensions/pulumi/AdminStackOutputValue.d.ts +0 -5
- package/extensions/pulumi/AdminStackOutputValue.js +0 -18
- package/extensions/pulumi/AdminStackOutputValue.js.map +0 -1
- package/extensions/pulumi/ApiStackOutputValue.d.ts +0 -5
- package/extensions/pulumi/ApiStackOutputValue.js +0 -18
- package/extensions/pulumi/ApiStackOutputValue.js.map +0 -1
- package/extensions/pulumi/CoreStackOutputValue.d.ts +0 -5
- package/extensions/pulumi/CoreStackOutputValue.js +0 -18
- package/extensions/pulumi/CoreStackOutputValue.js.map +0 -1
- package/extensions/pulumi/ProductionEnvironments.js.map +0 -1
- package/extensions/pulumi/PulumiResourceNamePrefix.d.ts +0 -4
- package/extensions/pulumi/PulumiResourceNamePrefix.js +0 -15
- package/extensions/pulumi/PulumiResourceNamePrefix.js.map +0 -1
- package/extensions/pulumi/index.d.ts +0 -5
- package/extensions/pulumi/index.js +0 -5
- package/features/DeployApp/DeployApp.d.ts +0 -14
- package/features/DeployApp/DeployApp.js +0 -86
- package/features/DeployApp/DeployApp.js.map +0 -1
- package/features/DeployApp/index.d.ts +0 -1
- package/features/DeployApp/index.js +0 -1
- package/features/DestroyApp/DestroyApp.d.ts +0 -14
- package/features/DestroyApp/DestroyApp.js +0 -66
- package/features/DestroyApp/DestroyApp.js.map +0 -1
- package/features/DestroyApp/index.d.ts +0 -1
- package/features/DestroyApp/index.js +0 -1
- package/features/ExportStack/ExportStack.d.ts +0 -9
- package/features/ExportStack/ExportStack.js +0 -26
- package/features/ExportStack/ExportStack.js.map +0 -1
- package/features/ExportStack/index.d.ts +0 -1
- package/features/ExportStack/index.js +0 -1
- package/features/GetAppOutput/GetAppOutput.d.ts +0 -12
- package/features/GetAppOutput/GetAppOutput.js +0 -51
- package/features/GetAppOutput/GetAppOutput.js.map +0 -1
- package/features/GetAppOutput/index.d.ts +0 -1
- package/features/GetAppOutput/index.js +0 -1
- package/features/GetAppStackOutput/GetAppStackOutput.d.ts +0 -10
- package/features/GetAppStackOutput/GetAppStackOutput.js +0 -26
- package/features/GetAppStackOutput/GetAppStackOutput.js.map +0 -1
- package/features/GetAppStackOutput/index.d.ts +0 -1
- package/features/GetAppStackOutput/index.js +0 -1
- package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.d.ts +0 -7
- package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.js +0 -25
- package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.js.map +0 -1
- package/features/GetPulumiResourceNamePrefix/index.d.ts +0 -1
- package/features/GetPulumiResourceNamePrefix/index.js +0 -1
- package/features/RefreshApp/RefreshApp.d.ts +0 -13
- package/features/RefreshApp/RefreshApp.js +0 -64
- package/features/RefreshApp/RefreshApp.js.map +0 -1
- package/features/RefreshApp/index.d.ts +0 -1
- package/features/RefreshApp/index.js +0 -1
- package/features/RunPulumiCommand/RunPulumiCommand.d.ts +0 -13
- package/features/RunPulumiCommand/RunPulumiCommand.js +0 -61
- package/features/RunPulumiCommand/RunPulumiCommand.js.map +0 -1
- package/features/RunPulumiCommand/index.d.ts +0 -1
- package/features/RunPulumiCommand/index.js +0 -1
- package/features/Watch/handler/handler.zip +0 -0
- package/features/Watch/initInvocationForwarding.d.ts +0 -9
- package/features/Watch/initInvocationForwarding.js +0 -91
- package/features/Watch/initInvocationForwarding.js.map +0 -1
- package/features/Watch/localInvocationWorker.js +0 -31
- package/features/Watch/localInvocationWorker.js.map +0 -1
- package/features/hooks/AdminAfterDeploy/AdminBeforeBuild.d.ts +0 -7
- package/features/hooks/AdminAfterDeploy/AdminBeforeBuild.js +0 -25
- package/features/hooks/AdminAfterDeploy/AdminBeforeBuild.js.map +0 -1
- package/features/hooks/AdminAfterDeploy/index.d.ts +0 -1
- package/features/hooks/AdminAfterDeploy/index.js +0 -1
- package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.d.ts +0 -7
- package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.js +0 -25
- package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.js.map +0 -1
- package/features/hooks/AdminBeforeDeploy/index.d.ts +0 -1
- package/features/hooks/AdminBeforeDeploy/index.js +0 -1
- package/features/hooks/AfterDeploy/AfterDeploy.d.ts +0 -7
- package/features/hooks/AfterDeploy/AfterDeploy.js +0 -25
- package/features/hooks/AfterDeploy/AfterDeploy.js.map +0 -1
- package/features/hooks/AfterDeploy/index.d.ts +0 -1
- package/features/hooks/AfterDeploy/index.js +0 -1
- package/features/hooks/ApiAfterDeploy/ApiBeforeBuild.d.ts +0 -7
- package/features/hooks/ApiAfterDeploy/ApiBeforeBuild.js +0 -25
- package/features/hooks/ApiAfterDeploy/ApiBeforeBuild.js.map +0 -1
- package/features/hooks/ApiAfterDeploy/index.d.ts +0 -1
- package/features/hooks/ApiAfterDeploy/index.js +0 -1
- package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.d.ts +0 -7
- package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.js +0 -25
- package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.js.map +0 -1
- package/features/hooks/ApiBeforeDeploy/index.d.ts +0 -1
- package/features/hooks/ApiBeforeDeploy/index.js +0 -1
- package/features/hooks/BeforeDeploy/BeforeDeploy.d.ts +0 -7
- package/features/hooks/BeforeDeploy/BeforeDeploy.js +0 -25
- package/features/hooks/BeforeDeploy/BeforeDeploy.js.map +0 -1
- package/features/hooks/BeforeDeploy/index.d.ts +0 -1
- package/features/hooks/BeforeDeploy/index.js +0 -1
- package/features/hooks/CoreAfterDeploy/CoreBeforeBuild.d.ts +0 -7
- package/features/hooks/CoreAfterDeploy/CoreBeforeBuild.js +0 -25
- package/features/hooks/CoreAfterDeploy/CoreBeforeBuild.js.map +0 -1
- package/features/hooks/CoreAfterDeploy/index.d.ts +0 -1
- package/features/hooks/CoreAfterDeploy/index.js +0 -1
- package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.d.ts +0 -7
- package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.js +0 -25
- package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.js.map +0 -1
- package/features/hooks/CoreBeforeDeploy/index.d.ts +0 -1
- package/features/hooks/CoreBeforeDeploy/index.js +0 -1
- package/rslib-runtime.js +0 -14
- package/rslib-runtime.js.map +0 -1
- package/services/GetProjectConfigService/renderConfigWorker.d.ts +0 -1
- package/services/GetProjectConfigService/renderConfigWorker.js +0 -64
- package/services/GetProjectConfigService/renderConfigWorker.js.map +0 -1
- package/services/InitProjectSdkService/registerPulumiExtensions.d.ts +0 -4
- package/services/InitProjectSdkService/registerPulumiExtensions.js +0 -16
- package/services/InitProjectSdkService/registerPulumiExtensions.js.map +0 -1
- package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.d.ts +0 -14
- package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.js +0 -15
- package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.js.map +0 -1
- package/services/IsRemotePulumiBackendService/index.d.ts +0 -1
- package/services/IsRemotePulumiBackendService/index.js +0 -1
- package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.d.ts +0 -18
- package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.js +0 -61
- package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.js.map +0 -1
- package/services/ListAppLambdaFunctionsService/index.d.ts +0 -1
- package/services/ListAppLambdaFunctionsService/index.js +0 -1
- package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.d.ts +0 -7
- package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.js +0 -30
- package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.js.map +0 -1
- package/services/ListDeployedEnvironmentsService/index.d.ts +0 -1
- package/services/ListDeployedEnvironmentsService/index.js +0 -1
- package/services/ProjectInfoService/GetPulumiVersionService.d.ts +0 -5
- package/services/ProjectInfoService/GetPulumiVersionService.js +0 -46
- package/services/ProjectInfoService/GetPulumiVersionService.js.map +0 -1
- package/services/PulumiExportService/PulumiExportService.d.ts +0 -13
- package/services/PulumiExportService/PulumiExportService.js +0 -50
- package/services/PulumiExportService/PulumiExportService.js.map +0 -1
- package/services/PulumiExportService/index.d.ts +0 -1
- package/services/PulumiExportService/index.js +0 -1
- package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.d.ts +0 -5
- package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.js +0 -15
- package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.js.map +0 -1
- package/services/PulumiGetConfigPassphraseService/index.d.ts +0 -1
- package/services/PulumiGetConfigPassphraseService/index.js +0 -1
- package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.d.ts +0 -5
- package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.js +0 -15
- package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.js.map +0 -1
- package/services/PulumiGetSecretsProviderService/index.d.ts +0 -1
- package/services/PulumiGetSecretsProviderService/index.js +0 -1
- package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.d.ts +0 -12
- package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js +0 -64
- package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js.map +0 -1
- package/services/PulumiGetStackOutputService/index.d.ts +0 -1
- package/services/PulumiGetStackOutputService/index.js +0 -1
- package/services/PulumiGetStackOutputService/mapStackOutput.d.ts +0 -1
- package/services/PulumiGetStackOutputService/mapStackOutput.js +0 -22
- package/services/PulumiGetStackOutputService/mapStackOutput.js.map +0 -1
- package/services/PulumiImportService/PulumiImportService.d.ts +0 -10
- package/services/PulumiImportService/PulumiImportService.js +0 -60
- package/services/PulumiImportService/PulumiImportService.js.map +0 -1
- package/services/PulumiImportService/index.d.ts +0 -1
- package/services/PulumiImportService/index.js +0 -1
- package/services/PulumiLoginService/PulumiLoginService.d.ts +0 -10
- package/services/PulumiLoginService/PulumiLoginService.js +0 -54
- package/services/PulumiLoginService/PulumiLoginService.js.map +0 -1
- package/services/PulumiLoginService/index.d.ts +0 -1
- package/services/PulumiLoginService/index.js +0 -1
- package/services/PulumiSelectStackService/PulumiSelectStackService.d.ts +0 -15
- package/services/PulumiSelectStackService/PulumiSelectStackService.js +0 -102
- package/services/PulumiSelectStackService/PulumiSelectStackService.js.map +0 -1
- package/services/PulumiSelectStackService/index.d.ts +0 -1
- package/services/PulumiSelectStackService/index.js +0 -1
- package/services/StackOutputCacheService/StackOutputCacheService.d.ts +0 -18
- package/services/StackOutputCacheService/StackOutputCacheService.js +0 -89
- package/services/StackOutputCacheService/StackOutputCacheService.js.map +0 -1
- package/services/StackOutputCacheService/index.d.ts +0 -1
- package/services/StackOutputCacheService/index.js +0 -1
- package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.d.ts +0 -13
- package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.js +0 -54
- package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.js.map +0 -1
- package/services/WatchedLambdaFunctionsService/index.d.ts +0 -1
- package/services/WatchedLambdaFunctionsService/index.js +0 -1
- package/utils/env/withPulumiConfigPassphrase.d.ts +0 -1
- package/utils/env/withPulumiConfigPassphrase.js +0 -7
- package/utils/env/withPulumiConfigPassphrase.js.map +0 -1
- /package/extensions/{pulumi/ProductionEnvironments.d.ts → ProductionEnvironments.d.ts} +0 -0
- /package/{features/Watch/localInvocationWorker.d.ts → extensions/api/Mailer/Smtp.test.d.ts} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/hooks/CoreBeforeDeploy.js","sources":["../../../src/extensions/hooks/CoreBeforeDeploy.ts"],"sourcesContent":["import { defineExtension } from \"~/defineExtension/index.js\";\nimport { zodSrcPath } from \"~/defineExtension/zodTypes/zodSrcPath.js\";\nimport { CoreBeforeDeploy as CoreBeforeDeployAbstraction } from \"~/abstractions/index.js\";\nimport { z } from \"zod\";\n\nexport const CoreBeforeDeploy = defineExtension({\n type: \"Core/BeforeDeploy\",\n tags: { runtimeContext: \"project\", application: \"core\" },\n description: \"Add custom logic to be executed before the CORE deployment process.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project, abstraction: CoreBeforeDeployAbstraction })\n });\n }\n});\n"],"names":["CoreBeforeDeploy","defineExtension","project","z","zodSrcPath","CoreBeforeDeployAbstraction"],"mappings":";;;;AAKO,MAAMA,oCAAmBC,gBAAgB;IAC5C,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,aAAa;IAAO;IACvD,aAAa;IACb,UAAU;IACV,cAAc,CAAC,EAAEC,OAAO,EAAE,GACfC,EAAE,MAAM,CAAC;YACZ,KAAKC,WAAW;gBAAEF;gBAAS,aAAaG;YAA4B;QACxE;AAER"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const Encryption: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
|
|
3
|
-
passphrase: z.ZodString;
|
|
4
|
-
salt: z.ZodOptional<z.ZodString>;
|
|
5
|
-
algorithm: z.ZodOptional<z.ZodEnum<{
|
|
6
|
-
"aes-128-gcm": "aes-128-gcm";
|
|
7
|
-
"aes-192-gcm": "aes-192-gcm";
|
|
8
|
-
"aes-256-gcm": "aes-256-gcm";
|
|
9
|
-
}>>;
|
|
10
|
-
}, z.core.$strip>>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import react from "react";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { defineExtension } from "../../defineExtension/index.js";
|
|
4
|
-
import { BuildParam } from "../ApiBuildParam.js";
|
|
5
|
-
const SUPPORTED_ALGORITHMS = [
|
|
6
|
-
"aes-128-gcm",
|
|
7
|
-
"aes-192-gcm",
|
|
8
|
-
"aes-256-gcm"
|
|
9
|
-
];
|
|
10
|
-
const Encryption = defineExtension({
|
|
11
|
-
type: "Infra/Encryption",
|
|
12
|
-
tags: {
|
|
13
|
-
runtimeContext: "project"
|
|
14
|
-
},
|
|
15
|
-
description: "Configure the API's EncryptionService.",
|
|
16
|
-
paramsSchema: z.object({
|
|
17
|
-
passphrase: z.string().min(1).describe("The passphrase used to derive the AES encryption key via scrypt."),
|
|
18
|
-
salt: z.string().min(1).optional().describe("Optional scrypt salt. Ensures two projects using the same passphrase derive different encryption keys."),
|
|
19
|
-
algorithm: z["enum"](SUPPORTED_ALGORITHMS).optional().describe("AES-GCM algorithm. Defaults to aes-256-gcm.")
|
|
20
|
-
}),
|
|
21
|
-
render ({ passphrase, salt, algorithm }) {
|
|
22
|
-
return /*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(BuildParam, {
|
|
23
|
-
paramName: "EncryptionPassphrase",
|
|
24
|
-
value: passphrase
|
|
25
|
-
}), salt && /*#__PURE__*/ react.createElement(BuildParam, {
|
|
26
|
-
paramName: "EncryptionSalt",
|
|
27
|
-
value: salt
|
|
28
|
-
}), algorithm && /*#__PURE__*/ react.createElement(BuildParam, {
|
|
29
|
-
paramName: "EncryptionAlgorithm",
|
|
30
|
-
value: algorithm
|
|
31
|
-
}));
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
export { Encryption };
|
|
35
|
-
|
|
36
|
-
//# sourceMappingURL=Encryption.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/infra/Encryption.js","sources":["../../../src/extensions/infra/Encryption.tsx"],"sourcesContent":["import React from \"react\";\nimport { z } from \"zod\";\nimport { defineExtension } from \"~/defineExtension/index.js\";\nimport { BuildParam } from \"~/extensions/ApiBuildParam.js\";\n\nconst SUPPORTED_ALGORITHMS = [\"aes-128-gcm\", \"aes-192-gcm\", \"aes-256-gcm\"] as const;\n\nexport const Encryption = defineExtension({\n type: \"Infra/Encryption\",\n tags: { runtimeContext: \"project\" },\n description: \"Configure the API's EncryptionService.\",\n paramsSchema: z.object({\n passphrase: z\n .string()\n .min(1)\n .describe(\"The passphrase used to derive the AES encryption key via scrypt.\"),\n salt: z\n .string()\n .min(1)\n .optional()\n .describe(\n \"Optional scrypt salt. Ensures two projects using the same passphrase derive different encryption keys.\"\n ),\n algorithm: z\n .enum(SUPPORTED_ALGORITHMS)\n .optional()\n .describe(\"AES-GCM algorithm. Defaults to aes-256-gcm.\")\n }),\n render({ passphrase, salt, algorithm }) {\n return (\n <>\n <BuildParam paramName=\"EncryptionPassphrase\" value={passphrase} />\n {salt && <BuildParam paramName=\"EncryptionSalt\" value={salt} />}\n {algorithm && <BuildParam paramName=\"EncryptionAlgorithm\" value={algorithm} />}\n </>\n );\n }\n});\n"],"names":["SUPPORTED_ALGORITHMS","Encryption","defineExtension","z","passphrase","salt","algorithm","BuildParam"],"mappings":";;;;AAKA,MAAMA,uBAAuB;IAAC;IAAe;IAAe;CAAc;AAEnE,MAAMC,aAAaC,gBAAgB;IACtC,MAAM;IACN,MAAM;QAAE,gBAAgB;IAAU;IAClC,aAAa;IACb,cAAcC,EAAE,MAAM,CAAC;QACnB,YAAYA,EAAAA,MACD,GACN,GAAG,CAAC,GACJ,QAAQ,CAAC;QACd,MAAMA,EAAAA,MACK,GACN,GAAG,CAAC,GACJ,QAAQ,GACR,QAAQ,CACL;QAER,WAAWA,CAAC,CAADA,OACF,CAACH,sBACL,QAAQ,GACR,QAAQ,CAAC;IAClB;IACA,QAAO,EAAEI,UAAU,EAAEC,IAAI,EAAEC,SAAS,EAAE;QAClC,OAAO,WAAP,GACI,wDACI,oBAACC,YAAUA;YAAC,WAAU;YAAuB,OAAOH;YACnDC,QAAQ,WAARA,GAAQ,oBAACE,YAAUA;YAAC,WAAU;YAAiB,OAAOF;YACtDC,aAAa,WAAbA,GAAa,oBAACC,YAAUA;YAAC,WAAU;YAAsB,OAAOD;;IAG7E;AACJ"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import react from "react";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { defineExtension } from "../../defineExtension/index.js";
|
|
4
|
-
import { BuildParam } from "../ApiBuildParam.js";
|
|
5
|
-
const Hashing = defineExtension({
|
|
6
|
-
type: "Infra/Hashing",
|
|
7
|
-
tags: {
|
|
8
|
-
runtimeContext: "project"
|
|
9
|
-
},
|
|
10
|
-
description: "Configure the API's hashing service (scrypt).",
|
|
11
|
-
paramsSchema: z.object({
|
|
12
|
-
pepper: z.string().min(1).optional().describe("Server-side secret folded into every hash (a 'pepper'). It is NOT stored with the hash, so a stolen database alone cannot be brute-forced without it. Changing it invalidates existing hashes."),
|
|
13
|
-
cost: z.number().int().positive().optional().describe("scrypt CPU/memory cost parameter N (a power of two). Defaults to 16384.")
|
|
14
|
-
}),
|
|
15
|
-
render ({ pepper, cost }) {
|
|
16
|
-
return /*#__PURE__*/ react.createElement(react.Fragment, null, pepper && /*#__PURE__*/ react.createElement(BuildParam, {
|
|
17
|
-
paramName: "HashingPepper",
|
|
18
|
-
value: pepper
|
|
19
|
-
}), cost && /*#__PURE__*/ react.createElement(BuildParam, {
|
|
20
|
-
paramName: "HashingCost",
|
|
21
|
-
value: cost
|
|
22
|
-
}));
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
export { Hashing };
|
|
26
|
-
|
|
27
|
-
//# sourceMappingURL=Hashing.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/infra/Hashing.js","sources":["../../../src/extensions/infra/Hashing.tsx"],"sourcesContent":["import React from \"react\";\nimport { z } from \"zod\";\nimport { defineExtension } from \"~/defineExtension/index.js\";\nimport { BuildParam } from \"~/extensions/ApiBuildParam.js\";\n\nexport const Hashing = defineExtension({\n type: \"Infra/Hashing\",\n tags: { runtimeContext: \"project\" },\n description: \"Configure the API's hashing service (scrypt).\",\n paramsSchema: z.object({\n pepper: z\n .string()\n .min(1)\n .optional()\n .describe(\n \"Server-side secret folded into every hash (a 'pepper'). It is NOT stored with the \" +\n \"hash, so a stolen database alone cannot be brute-forced without it. Changing it \" +\n \"invalidates existing hashes.\"\n ),\n cost: z\n .number()\n .int()\n .positive()\n .optional()\n .describe(\"scrypt CPU/memory cost parameter N (a power of two). Defaults to 16384.\")\n }),\n render({ pepper, cost }) {\n return (\n <>\n {pepper && <BuildParam paramName=\"HashingPepper\" value={pepper} />}\n {cost && <BuildParam paramName=\"HashingCost\" value={cost} />}\n </>\n );\n }\n});\n"],"names":["Hashing","defineExtension","z","pepper","cost","BuildParam"],"mappings":";;;;AAKO,MAAMA,UAAUC,gBAAgB;IACnC,MAAM;IACN,MAAM;QAAE,gBAAgB;IAAU;IAClC,aAAa;IACb,cAAcC,EAAE,MAAM,CAAC;QACnB,QAAQA,EAAAA,MACG,GACN,GAAG,CAAC,GACJ,QAAQ,GACR,QAAQ,CACL;QAIR,MAAMA,EAAAA,MACK,GACN,GAAG,GACH,QAAQ,GACR,QAAQ,GACR,QAAQ,CAAC;IAClB;IACA,QAAO,EAAEC,MAAM,EAAEC,IAAI,EAAE;QACnB,OAAO,WAAP,GACI,0CACKD,UAAU,WAAVA,GAAU,oBAACE,YAAUA;YAAC,WAAU;YAAgB,OAAOF;YACvDC,QAAQ,WAARA,GAAQ,oBAACC,YAAUA;YAAC,WAAU;YAAc,OAAOD;;IAGhE;AACJ"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { defineExtension } from "../../defineExtension/index.js";
|
|
3
|
-
const AdminStackOutputValue = defineExtension({
|
|
4
|
-
type: "Admin/StackOutputValue",
|
|
5
|
-
tags: {
|
|
6
|
-
runtimeContext: "project",
|
|
7
|
-
appName: "admin"
|
|
8
|
-
},
|
|
9
|
-
description: "Add custom output values to the Admin stack.",
|
|
10
|
-
multiple: true,
|
|
11
|
-
paramsSchema: z.object({
|
|
12
|
-
key: z.string().describe("The key for the output value"),
|
|
13
|
-
value: z.any().describe("The value to output")
|
|
14
|
-
})
|
|
15
|
-
});
|
|
16
|
-
export { AdminStackOutputValue };
|
|
17
|
-
|
|
18
|
-
//# sourceMappingURL=AdminStackOutputValue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/pulumi/AdminStackOutputValue.js","sources":["../../../src/extensions/pulumi/AdminStackOutputValue.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineExtension } from \"~/defineExtension/index.js\";\n\nexport const AdminStackOutputValue = defineExtension({\n type: \"Admin/StackOutputValue\",\n tags: { runtimeContext: \"project\", appName: \"admin\" },\n description: \"Add custom output values to the Admin stack.\",\n multiple: true,\n paramsSchema: z.object({\n key: z.string().describe(\"The key for the output value\"),\n value: z.any().describe(\"The value to output\")\n })\n});\n"],"names":["AdminStackOutputValue","defineExtension","z"],"mappings":";;AAGO,MAAMA,wBAAwBC,gBAAgB;IACjD,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,SAAS;IAAQ;IACpD,aAAa;IACb,UAAU;IACV,cAAcC,EAAE,MAAM,CAAC;QACnB,KAAKA,EAAE,MAAM,GAAG,QAAQ,CAAC;QACzB,OAAOA,EAAE,GAAG,GAAG,QAAQ,CAAC;IAC5B;AACJ"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { defineExtension } from "../../defineExtension/index.js";
|
|
3
|
-
const ApiStackOutputValue = defineExtension({
|
|
4
|
-
type: "Api/StackOutputValue",
|
|
5
|
-
tags: {
|
|
6
|
-
runtimeContext: "project",
|
|
7
|
-
appName: "api"
|
|
8
|
-
},
|
|
9
|
-
description: "Add custom output values to the Api stack.",
|
|
10
|
-
multiple: true,
|
|
11
|
-
paramsSchema: z.object({
|
|
12
|
-
key: z.string().describe("The key for the output value"),
|
|
13
|
-
value: z.any().describe("The value to output")
|
|
14
|
-
})
|
|
15
|
-
});
|
|
16
|
-
export { ApiStackOutputValue };
|
|
17
|
-
|
|
18
|
-
//# sourceMappingURL=ApiStackOutputValue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/pulumi/ApiStackOutputValue.js","sources":["../../../src/extensions/pulumi/ApiStackOutputValue.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineExtension } from \"~/defineExtension/index.js\";\n\nexport const ApiStackOutputValue = defineExtension({\n type: \"Api/StackOutputValue\",\n tags: { runtimeContext: \"project\", appName: \"api\" },\n description: \"Add custom output values to the Api stack.\",\n multiple: true,\n paramsSchema: z.object({\n key: z.string().describe(\"The key for the output value\"),\n value: z.any().describe(\"The value to output\")\n })\n});\n"],"names":["ApiStackOutputValue","defineExtension","z"],"mappings":";;AAGO,MAAMA,sBAAsBC,gBAAgB;IAC/C,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,SAAS;IAAM;IAClD,aAAa;IACb,UAAU;IACV,cAAcC,EAAE,MAAM,CAAC;QACnB,KAAKA,EAAE,MAAM,GAAG,QAAQ,CAAC;QACzB,OAAOA,EAAE,GAAG,GAAG,QAAQ,CAAC;IAC5B;AACJ"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { defineExtension } from "../../defineExtension/index.js";
|
|
3
|
-
const CoreStackOutputValue = defineExtension({
|
|
4
|
-
type: "Core/StackOutputValue",
|
|
5
|
-
tags: {
|
|
6
|
-
runtimeContext: "project",
|
|
7
|
-
appName: "core"
|
|
8
|
-
},
|
|
9
|
-
description: "Add custom output values to the Core stack.",
|
|
10
|
-
multiple: true,
|
|
11
|
-
paramsSchema: z.object({
|
|
12
|
-
key: z.string().describe("The key for the output value"),
|
|
13
|
-
value: z.any().describe("The value to output")
|
|
14
|
-
})
|
|
15
|
-
});
|
|
16
|
-
export { CoreStackOutputValue };
|
|
17
|
-
|
|
18
|
-
//# sourceMappingURL=CoreStackOutputValue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/pulumi/CoreStackOutputValue.js","sources":["../../../src/extensions/pulumi/CoreStackOutputValue.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineExtension } from \"~/defineExtension/index.js\";\n\nexport const CoreStackOutputValue = defineExtension({\n type: \"Core/StackOutputValue\",\n tags: { runtimeContext: \"project\", appName: \"core\" },\n description: \"Add custom output values to the Core stack.\",\n multiple: true,\n paramsSchema: z.object({\n key: z.string().describe(\"The key for the output value\"),\n value: z.any().describe(\"The value to output\")\n })\n});\n"],"names":["CoreStackOutputValue","defineExtension","z"],"mappings":";;AAGO,MAAMA,uBAAuBC,gBAAgB;IAChD,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,SAAS;IAAO;IACnD,aAAa;IACb,UAAU;IACV,cAAcC,EAAE,MAAM,CAAC;QACnB,KAAKA,EAAE,MAAM,GAAG,QAAQ,CAAC;QACzB,OAAOA,EAAE,GAAG,GAAG,QAAQ,CAAC;IAC5B;AACJ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/pulumi/ProductionEnvironments.js","sources":["../../../src/extensions/pulumi/ProductionEnvironments.ts"],"sourcesContent":["import React, { useEffect } from \"react\";\nimport { z } from \"zod\";\nimport { defineExtension } from \"~/defineExtension/index.js\";\nimport { useRegisterProductionEnvironments } from \"~/services/GetProjectConfigService/ProductionEnvironmentsContext.js\";\n\ninterface RegistrarProps {\n environments: string[];\n}\n\nconst Registrar: React.FC<RegistrarProps> = ({ environments }) => {\n const setProdEnvs = useRegisterProductionEnvironments();\n useEffect(() => {\n if (setProdEnvs) {\n setProdEnvs(environments);\n }\n }, []);\n return null;\n};\n\nexport const ProductionEnvironments = defineExtension({\n type: \"Infra/ProductionEnvironments\",\n tags: { runtimeContext: \"project\" },\n description: \"Provide names for environments that are considered production environments.\",\n paramsSchema: z.object({\n environments: z.array(\n z.string().superRefine((value, ctx) => {\n if (!value) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: \"Environment name cannot be empty.\"\n });\n return;\n }\n\n // Must allow only letters, numbers, dashes, and underscores.\n if (!/^[a-zA-Z0-9-_]+$/.test(value)) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message:\n \"Environment name can only contain letters, numbers, dashes, and underscores.\"\n });\n }\n })\n )\n }),\n render: props => React.createElement(Registrar, { environments: props.environments })\n});\n"],"names":["Registrar","environments","setProdEnvs","useRegisterProductionEnvironments","useEffect","ProductionEnvironments","defineExtension","z","value","ctx","props","React"],"mappings":";;;;AASA,MAAMA,YAAsC,CAAC,EAAEC,YAAY,EAAE;IACzD,MAAMC,cAAcC;IACpBC,UAAU;QACN,IAAIF,aACAA,YAAYD;IAEpB,GAAG,EAAE;IACL,OAAO;AACX;AAEO,MAAMI,yBAAyBC,gBAAgB;IAClD,MAAM;IACN,MAAM;QAAE,gBAAgB;IAAU;IAClC,aAAa;IACb,cAAcC,EAAE,MAAM,CAAC;QACnB,cAAcA,EAAE,KAAK,CACjBA,EAAE,MAAM,GAAG,WAAW,CAAC,CAACC,OAAOC;YAC3B,IAAI,CAACD,OAAO,YACRC,IAAI,QAAQ,CAAC;gBACT,MAAMF,EAAE,YAAY,CAAC,MAAM;gBAC3B,SAAS;YACb;YAKJ,IAAI,CAAC,mBAAmB,IAAI,CAACC,QACzBC,IAAI,QAAQ,CAAC;gBACT,MAAMF,EAAE,YAAY,CAAC,MAAM;gBAC3B,SACI;YACR;QAER;IAER;IACA,QAAQG,CAAAA,QAASC,MAAAA,aAAmB,CAACX,WAAW;YAAE,cAAcU,MAAM,YAAY;QAAC;AACvF"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { defineExtension } from "../../defineExtension/index.js";
|
|
3
|
-
const PulumiResourceNamePrefix = defineExtension({
|
|
4
|
-
type: "Infra/PulumiResourceNamePrefix",
|
|
5
|
-
tags: {
|
|
6
|
-
runtimeContext: "project"
|
|
7
|
-
},
|
|
8
|
-
description: 'Adjust the prefix for Pulumi resource names (default: "wby-").',
|
|
9
|
-
paramsSchema: z.object({
|
|
10
|
-
prefix: z.string()
|
|
11
|
-
})
|
|
12
|
-
});
|
|
13
|
-
export { PulumiResourceNamePrefix };
|
|
14
|
-
|
|
15
|
-
//# sourceMappingURL=PulumiResourceNamePrefix.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/pulumi/PulumiResourceNamePrefix.js","sources":["../../../src/extensions/pulumi/PulumiResourceNamePrefix.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineExtension } from \"~/defineExtension/index.js\";\n\nexport const PulumiResourceNamePrefix = defineExtension({\n type: \"Infra/PulumiResourceNamePrefix\",\n tags: { runtimeContext: \"project\" },\n description: 'Adjust the prefix for Pulumi resource names (default: \"wby-\").',\n paramsSchema: z.object({\n prefix: z.string()\n })\n});\n"],"names":["PulumiResourceNamePrefix","defineExtension","z"],"mappings":";;AAGO,MAAMA,2BAA2BC,gBAAgB;IACpD,MAAM;IACN,MAAM;QAAE,gBAAgB;IAAU;IAClC,aAAa;IACb,cAAcC,EAAE,MAAM,CAAC;QACnB,QAAQA,EAAE,MAAM;IACpB;AACJ"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { DeployApp, BuildAppWorkspaceService, GetApp, GetProject, GetPulumiService, LoggerService, ProjectSdkParamsService, PulumiGetSecretsProviderService, PulumiSelectStackService } from "../../abstractions/index.js";
|
|
2
|
-
export declare class DefaultDeployApp implements DeployApp.Interface {
|
|
3
|
-
private getApp;
|
|
4
|
-
private buildAppWorkspaceService;
|
|
5
|
-
private getProject;
|
|
6
|
-
private pulumiSelectStackService;
|
|
7
|
-
private getPulumiService;
|
|
8
|
-
private pulumiGetSecretsProviderService;
|
|
9
|
-
private logger;
|
|
10
|
-
private projectSdkParamsService;
|
|
11
|
-
constructor(getApp: GetApp.Interface, buildAppWorkspaceService: BuildAppWorkspaceService.Interface, getProject: GetProject.Interface, pulumiSelectStackService: PulumiSelectStackService.Interface, getPulumiService: GetPulumiService.Interface, pulumiGetSecretsProviderService: PulumiGetSecretsProviderService.Interface, logger: LoggerService.Interface, projectSdkParamsService: ProjectSdkParamsService.Interface);
|
|
12
|
-
execute(params: DeployApp.Params): Promise<void>;
|
|
13
|
-
}
|
|
14
|
-
export declare const deployApp: import("@webiny/di").Implementation<typeof DefaultDeployApp>;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { createImplementation } from "@webiny/di";
|
|
2
|
-
import { BuildAppWorkspaceService, DeployApp, GetApp, GetProject, GetPulumiService, LoggerService, ProjectSdkParamsService, PulumiGetSecretsProviderService, PulumiSelectStackService } from "../../abstractions/index.js";
|
|
3
|
-
import { createEnvConfiguration, withEnv, withEnvVariant, withProjectName, withPulumiConfigPassphrase, withRegion } from "../../utils/env/index.js";
|
|
4
|
-
class DefaultDeployApp {
|
|
5
|
-
constructor(getApp, buildAppWorkspaceService, getProject, pulumiSelectStackService, getPulumiService, pulumiGetSecretsProviderService, logger, projectSdkParamsService){
|
|
6
|
-
this.getApp = getApp;
|
|
7
|
-
this.buildAppWorkspaceService = buildAppWorkspaceService;
|
|
8
|
-
this.getProject = getProject;
|
|
9
|
-
this.pulumiSelectStackService = pulumiSelectStackService;
|
|
10
|
-
this.getPulumiService = getPulumiService;
|
|
11
|
-
this.pulumiGetSecretsProviderService = pulumiGetSecretsProviderService;
|
|
12
|
-
this.logger = logger;
|
|
13
|
-
this.projectSdkParamsService = projectSdkParamsService;
|
|
14
|
-
}
|
|
15
|
-
async execute(params) {
|
|
16
|
-
await this.buildAppWorkspaceService.execute(params.app);
|
|
17
|
-
const app = this.getApp.execute(params.app);
|
|
18
|
-
await this.pulumiSelectStackService.execute(app);
|
|
19
|
-
const pulumi = await this.getPulumiService.execute({
|
|
20
|
-
app
|
|
21
|
-
});
|
|
22
|
-
const project = await this.getProject.execute();
|
|
23
|
-
const sdkParams = this.projectSdkParamsService.get();
|
|
24
|
-
const env = createEnvConfiguration({
|
|
25
|
-
configurations: [
|
|
26
|
-
withRegion({
|
|
27
|
-
region: sdkParams.region
|
|
28
|
-
}),
|
|
29
|
-
withEnv({
|
|
30
|
-
env: sdkParams.env
|
|
31
|
-
}),
|
|
32
|
-
withEnvVariant({
|
|
33
|
-
variant: sdkParams.variant
|
|
34
|
-
}),
|
|
35
|
-
withProjectName({
|
|
36
|
-
project
|
|
37
|
-
}),
|
|
38
|
-
withPulumiConfigPassphrase()
|
|
39
|
-
]
|
|
40
|
-
});
|
|
41
|
-
const secretsProvider = this.pulumiGetSecretsProviderService.execute();
|
|
42
|
-
const pulumiProcess = params.preview ? pulumi.run({
|
|
43
|
-
command: "preview",
|
|
44
|
-
args: {
|
|
45
|
-
diff: true,
|
|
46
|
-
...params.pulumiArgs
|
|
47
|
-
},
|
|
48
|
-
execa: {
|
|
49
|
-
env
|
|
50
|
-
}
|
|
51
|
-
}) : pulumi.run({
|
|
52
|
-
command: "up",
|
|
53
|
-
args: {
|
|
54
|
-
yes: true,
|
|
55
|
-
skipPreview: true,
|
|
56
|
-
secretsProvider,
|
|
57
|
-
...params.pulumiArgs
|
|
58
|
-
},
|
|
59
|
-
execa: {
|
|
60
|
-
env
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
let output = Promise.resolve();
|
|
64
|
-
if (params.output) output = params.output(pulumiProcess);
|
|
65
|
-
else this.logger.info("No output function provided, skipping output.");
|
|
66
|
-
await pulumiProcess;
|
|
67
|
-
await output;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
const deployApp = createImplementation({
|
|
71
|
-
abstraction: DeployApp,
|
|
72
|
-
implementation: DefaultDeployApp,
|
|
73
|
-
dependencies: [
|
|
74
|
-
GetApp,
|
|
75
|
-
BuildAppWorkspaceService,
|
|
76
|
-
GetProject,
|
|
77
|
-
PulumiSelectStackService,
|
|
78
|
-
GetPulumiService,
|
|
79
|
-
PulumiGetSecretsProviderService,
|
|
80
|
-
LoggerService,
|
|
81
|
-
ProjectSdkParamsService
|
|
82
|
-
]
|
|
83
|
-
});
|
|
84
|
-
export { DefaultDeployApp, deployApp };
|
|
85
|
-
|
|
86
|
-
//# sourceMappingURL=DeployApp.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"features/DeployApp/DeployApp.js","sources":["../../../src/features/DeployApp/DeployApp.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport {\n DeployApp,\n BuildAppWorkspaceService,\n GetApp,\n GetProject,\n GetPulumiService,\n LoggerService,\n ProjectSdkParamsService,\n PulumiGetSecretsProviderService,\n PulumiSelectStackService\n} from \"~/abstractions/index.js\";\nimport {\n createEnvConfiguration,\n withEnv,\n withEnvVariant,\n withProjectName,\n withPulumiConfigPassphrase,\n withRegion\n} from \"~/utils/env/index.js\";\n\nexport class DefaultDeployApp implements DeployApp.Interface {\n constructor(\n private getApp: GetApp.Interface,\n private buildAppWorkspaceService: BuildAppWorkspaceService.Interface,\n private getProject: GetProject.Interface,\n private pulumiSelectStackService: PulumiSelectStackService.Interface,\n private getPulumiService: GetPulumiService.Interface,\n private pulumiGetSecretsProviderService: PulumiGetSecretsProviderService.Interface,\n private logger: LoggerService.Interface,\n private projectSdkParamsService: ProjectSdkParamsService.Interface\n ) {}\n\n async execute(params: DeployApp.Params) {\n await this.buildAppWorkspaceService.execute(params.app);\n\n const app = this.getApp.execute(params.app);\n\n await this.pulumiSelectStackService.execute(app);\n\n // A Pulumi refresh might be executed before the deploy. For example,\n // this is needed if the user run the watch command prior to the deploy.\n // await executeRefresh(commandParams);\n\n const pulumi = await this.getPulumiService.execute({ app });\n const project = await this.getProject.execute();\n const sdkParams = this.projectSdkParamsService.get();\n\n const env = createEnvConfiguration({\n configurations: [\n withRegion({ region: sdkParams.region }),\n withEnv({ env: sdkParams.env }),\n withEnvVariant({ variant: sdkParams.variant }),\n withProjectName({ project }),\n withPulumiConfigPassphrase()\n ]\n });\n\n const secretsProvider = this.pulumiGetSecretsProviderService.execute();\n\n const pulumiProcess = params.preview\n ? pulumi.run({\n command: \"preview\",\n args: {\n diff: true,\n\n // Preview command does not accept \"--secrets-provider\" argument.\n // secretsProvider: PULUMI_SECRETS_PROVIDER,\n\n ...params.pulumiArgs\n },\n execa: { env }\n })\n : pulumi.run({\n command: \"up\",\n args: {\n yes: true,\n skipPreview: true,\n secretsProvider,\n ...params.pulumiArgs\n },\n execa: { env }\n });\n\n // If custom output function is provided, use it. While doing so, we must wait\n // for it to resolve before finishing the build process.\n let output = Promise.resolve();\n if (params.output) {\n output = params.output(pulumiProcess);\n } else {\n this.logger.info(`No output function provided, skipping output.`);\n }\n\n // Promise is returned so that the caller can await it if needed.\n await pulumiProcess;\n await output;\n }\n}\n\nexport const deployApp = createImplementation({\n abstraction: DeployApp,\n implementation: DefaultDeployApp,\n dependencies: [\n GetApp,\n BuildAppWorkspaceService,\n GetProject,\n PulumiSelectStackService,\n GetPulumiService,\n PulumiGetSecretsProviderService,\n LoggerService,\n ProjectSdkParamsService\n ]\n});\n"],"names":["DefaultDeployApp","getApp","buildAppWorkspaceService","getProject","pulumiSelectStackService","getPulumiService","pulumiGetSecretsProviderService","logger","projectSdkParamsService","params","app","pulumi","project","sdkParams","env","createEnvConfiguration","withRegion","withEnv","withEnvVariant","withProjectName","withPulumiConfigPassphrase","secretsProvider","pulumiProcess","output","Promise","deployApp","createImplementation","DeployApp","GetApp","BuildAppWorkspaceService","GetProject","PulumiSelectStackService","GetPulumiService","PulumiGetSecretsProviderService","LoggerService","ProjectSdkParamsService"],"mappings":";;;AAqBO,MAAMA;IACT,YACYC,MAAwB,EACxBC,wBAA4D,EAC5DC,UAAgC,EAChCC,wBAA4D,EAC5DC,gBAA4C,EAC5CC,+BAA0E,EAC1EC,MAA+B,EAC/BC,uBAA0D,CACpE;aARUP,MAAM,GAANA;aACAC,wBAAwB,GAAxBA;aACAC,UAAU,GAAVA;aACAC,wBAAwB,GAAxBA;aACAC,gBAAgB,GAAhBA;aACAC,+BAA+B,GAA/BA;aACAC,MAAM,GAANA;aACAC,uBAAuB,GAAvBA;IACT;IAEH,MAAM,QAAQC,MAAwB,EAAE;QACpC,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACA,OAAO,GAAG;QAEtD,MAAMC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAACD,OAAO,GAAG;QAE1C,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACC;QAM5C,MAAMC,SAAS,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC;YAAED;QAAI;QACzD,MAAME,UAAU,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO;QAC7C,MAAMC,YAAY,IAAI,CAAC,uBAAuB,CAAC,GAAG;QAElD,MAAMC,MAAMC,uBAAuB;YAC/B,gBAAgB;gBACZC,WAAW;oBAAE,QAAQH,UAAU,MAAM;gBAAC;gBACtCI,QAAQ;oBAAE,KAAKJ,UAAU,GAAG;gBAAC;gBAC7BK,eAAe;oBAAE,SAASL,UAAU,OAAO;gBAAC;gBAC5CM,gBAAgB;oBAAEP;gBAAQ;gBAC1BQ;aACH;QACL;QAEA,MAAMC,kBAAkB,IAAI,CAAC,+BAA+B,CAAC,OAAO;QAEpE,MAAMC,gBAAgBb,OAAO,OAAO,GAC9BE,OAAO,GAAG,CAAC;YACP,SAAS;YACT,MAAM;gBACF,MAAM;gBAKN,GAAGF,OAAO,UAAU;YACxB;YACA,OAAO;gBAAEK;YAAI;QACjB,KACAH,OAAO,GAAG,CAAC;YACP,SAAS;YACT,MAAM;gBACF,KAAK;gBACL,aAAa;gBACbU;gBACA,GAAGZ,OAAO,UAAU;YACxB;YACA,OAAO;gBAAEK;YAAI;QACjB;QAIN,IAAIS,SAASC,QAAQ,OAAO;QAC5B,IAAIf,OAAO,MAAM,EACbc,SAASd,OAAO,MAAM,CAACa;aAEvB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;QAIrB,MAAMA;QACN,MAAMC;IACV;AACJ;AAEO,MAAME,YAAYC,qBAAqB;IAC1C,aAAaC;IACb,gBAAgB3B;IAChB,cAAc;QACV4B;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;KACH;AACL"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./DeployApp.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./DeployApp.js";
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { DestroyApp, BuildAppWorkspaceService, GetApp, GetProject, GetPulumiService, ProjectSdkParamsService, PulumiSelectStackService } from "../../abstractions/index.js";
|
|
2
|
-
export declare class DefaultDestroyApp implements DestroyApp.Interface {
|
|
3
|
-
private getApp;
|
|
4
|
-
private buildAppWorkspaceService;
|
|
5
|
-
private getProject;
|
|
6
|
-
private pulumiSelectStackService;
|
|
7
|
-
private getPulumiService;
|
|
8
|
-
private projectSdkParamsService;
|
|
9
|
-
constructor(getApp: GetApp.Interface, buildAppWorkspaceService: BuildAppWorkspaceService.Interface, getProject: GetProject.Interface, pulumiSelectStackService: PulumiSelectStackService.Interface, getPulumiService: GetPulumiService.Interface, projectSdkParamsService: ProjectSdkParamsService.Interface);
|
|
10
|
-
execute(params: DestroyApp.Params): Promise<{
|
|
11
|
-
pulumiProcess: import("@webiny/pulumi-sdk/Pulumi").PulumiProcess;
|
|
12
|
-
}>;
|
|
13
|
-
}
|
|
14
|
-
export declare const destroyApp: import("@webiny/di").Implementation<typeof DefaultDestroyApp>;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { createImplementation } from "@webiny/di";
|
|
2
|
-
import { BuildAppWorkspaceService, DestroyApp, GetApp, GetProject, GetPulumiService, ProjectSdkParamsService, PulumiSelectStackService } from "../../abstractions/index.js";
|
|
3
|
-
import { createEnvConfiguration, withEnv, withEnvVariant, withProjectName, withPulumiConfigPassphrase, withRegion } from "../../utils/env/index.js";
|
|
4
|
-
class DefaultDestroyApp {
|
|
5
|
-
constructor(getApp, buildAppWorkspaceService, getProject, pulumiSelectStackService, getPulumiService, projectSdkParamsService){
|
|
6
|
-
this.getApp = getApp;
|
|
7
|
-
this.buildAppWorkspaceService = buildAppWorkspaceService;
|
|
8
|
-
this.getProject = getProject;
|
|
9
|
-
this.pulumiSelectStackService = pulumiSelectStackService;
|
|
10
|
-
this.getPulumiService = getPulumiService;
|
|
11
|
-
this.projectSdkParamsService = projectSdkParamsService;
|
|
12
|
-
}
|
|
13
|
-
async execute(params) {
|
|
14
|
-
await this.buildAppWorkspaceService.execute(params.app);
|
|
15
|
-
const app = this.getApp.execute(params.app);
|
|
16
|
-
await this.pulumiSelectStackService.execute(app);
|
|
17
|
-
const pulumi = await this.getPulumiService.execute({
|
|
18
|
-
app
|
|
19
|
-
});
|
|
20
|
-
const project = await this.getProject.execute();
|
|
21
|
-
const sdkParams = this.projectSdkParamsService.get();
|
|
22
|
-
const env = createEnvConfiguration({
|
|
23
|
-
configurations: [
|
|
24
|
-
withRegion({
|
|
25
|
-
region: sdkParams.region
|
|
26
|
-
}),
|
|
27
|
-
withEnv({
|
|
28
|
-
env: sdkParams.env
|
|
29
|
-
}),
|
|
30
|
-
withEnvVariant({
|
|
31
|
-
variant: sdkParams.variant
|
|
32
|
-
}),
|
|
33
|
-
withPulumiConfigPassphrase(),
|
|
34
|
-
withProjectName({
|
|
35
|
-
project
|
|
36
|
-
})
|
|
37
|
-
]
|
|
38
|
-
});
|
|
39
|
-
return {
|
|
40
|
-
pulumiProcess: pulumi.run({
|
|
41
|
-
command: "destroy",
|
|
42
|
-
args: {
|
|
43
|
-
yes: true
|
|
44
|
-
},
|
|
45
|
-
execa: {
|
|
46
|
-
env
|
|
47
|
-
}
|
|
48
|
-
})
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
const destroyApp = createImplementation({
|
|
53
|
-
abstraction: DestroyApp,
|
|
54
|
-
implementation: DefaultDestroyApp,
|
|
55
|
-
dependencies: [
|
|
56
|
-
GetApp,
|
|
57
|
-
BuildAppWorkspaceService,
|
|
58
|
-
GetProject,
|
|
59
|
-
PulumiSelectStackService,
|
|
60
|
-
GetPulumiService,
|
|
61
|
-
ProjectSdkParamsService
|
|
62
|
-
]
|
|
63
|
-
});
|
|
64
|
-
export { DefaultDestroyApp, destroyApp };
|
|
65
|
-
|
|
66
|
-
//# sourceMappingURL=DestroyApp.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"features/DestroyApp/DestroyApp.js","sources":["../../../src/features/DestroyApp/DestroyApp.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport {\n DestroyApp,\n BuildAppWorkspaceService,\n GetApp,\n GetProject,\n GetPulumiService,\n ProjectSdkParamsService,\n PulumiSelectStackService\n} from \"~/abstractions/index.js\";\nimport {\n createEnvConfiguration,\n withEnv,\n withEnvVariant,\n withProjectName,\n withPulumiConfigPassphrase,\n withRegion\n} from \"~/utils/env/index.js\";\n\nexport class DefaultDestroyApp implements DestroyApp.Interface {\n constructor(\n private getApp: GetApp.Interface,\n private buildAppWorkspaceService: BuildAppWorkspaceService.Interface,\n private getProject: GetProject.Interface,\n private pulumiSelectStackService: PulumiSelectStackService.Interface,\n private getPulumiService: GetPulumiService.Interface,\n private projectSdkParamsService: ProjectSdkParamsService.Interface\n ) {}\n\n async execute(params: DestroyApp.Params) {\n await this.buildAppWorkspaceService.execute(params.app);\n\n const app = this.getApp.execute(params.app);\n\n await this.pulumiSelectStackService.execute(app);\n\n const pulumi = await this.getPulumiService.execute({ app });\n const project = await this.getProject.execute();\n const sdkParams = this.projectSdkParamsService.get();\n\n const env = createEnvConfiguration({\n configurations: [\n withRegion({ region: sdkParams.region }),\n withEnv({ env: sdkParams.env }),\n withEnvVariant({ variant: sdkParams.variant }),\n withPulumiConfigPassphrase(),\n withProjectName({ project })\n ]\n });\n\n return {\n pulumiProcess: pulumi.run({\n command: \"destroy\",\n args: {\n yes: true\n },\n execa: { env }\n })\n };\n }\n}\n\nexport const destroyApp = createImplementation({\n abstraction: DestroyApp,\n implementation: DefaultDestroyApp,\n dependencies: [\n GetApp,\n BuildAppWorkspaceService,\n GetProject,\n PulumiSelectStackService,\n GetPulumiService,\n ProjectSdkParamsService\n ]\n});\n"],"names":["DefaultDestroyApp","getApp","buildAppWorkspaceService","getProject","pulumiSelectStackService","getPulumiService","projectSdkParamsService","params","app","pulumi","project","sdkParams","env","createEnvConfiguration","withRegion","withEnv","withEnvVariant","withPulumiConfigPassphrase","withProjectName","destroyApp","createImplementation","DestroyApp","GetApp","BuildAppWorkspaceService","GetProject","PulumiSelectStackService","GetPulumiService","ProjectSdkParamsService"],"mappings":";;;AAmBO,MAAMA;IACT,YACYC,MAAwB,EACxBC,wBAA4D,EAC5DC,UAAgC,EAChCC,wBAA4D,EAC5DC,gBAA4C,EAC5CC,uBAA0D,CACpE;aANUL,MAAM,GAANA;aACAC,wBAAwB,GAAxBA;aACAC,UAAU,GAAVA;aACAC,wBAAwB,GAAxBA;aACAC,gBAAgB,GAAhBA;aACAC,uBAAuB,GAAvBA;IACT;IAEH,MAAM,QAAQC,MAAyB,EAAE;QACrC,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACA,OAAO,GAAG;QAEtD,MAAMC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAACD,OAAO,GAAG;QAE1C,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACC;QAE5C,MAAMC,SAAS,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC;YAAED;QAAI;QACzD,MAAME,UAAU,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO;QAC7C,MAAMC,YAAY,IAAI,CAAC,uBAAuB,CAAC,GAAG;QAElD,MAAMC,MAAMC,uBAAuB;YAC/B,gBAAgB;gBACZC,WAAW;oBAAE,QAAQH,UAAU,MAAM;gBAAC;gBACtCI,QAAQ;oBAAE,KAAKJ,UAAU,GAAG;gBAAC;gBAC7BK,eAAe;oBAAE,SAASL,UAAU,OAAO;gBAAC;gBAC5CM;gBACAC,gBAAgB;oBAAER;gBAAQ;aAC7B;QACL;QAEA,OAAO;YACH,eAAeD,OAAO,GAAG,CAAC;gBACtB,SAAS;gBACT,MAAM;oBACF,KAAK;gBACT;gBACA,OAAO;oBAAEG;gBAAI;YACjB;QACJ;IACJ;AACJ;AAEO,MAAMO,aAAaC,qBAAqB;IAC3C,aAAaC;IACb,gBAAgBrB;IAChB,cAAc;QACVsB;QACAC;QACAC;QACAC;QACAC;QACAC;KACH;AACL"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./DestroyApp.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./DestroyApp.js";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BuildAppWorkspaceService, GetApp, ExportStack, PulumiExportService } from "../../abstractions/index.js";
|
|
2
|
-
export declare class DefaultExportStack implements ExportStack.Interface {
|
|
3
|
-
private getApp;
|
|
4
|
-
private buildAppWorkspaceService;
|
|
5
|
-
private pulumiExportService;
|
|
6
|
-
constructor(getApp: GetApp.Interface, buildAppWorkspaceService: BuildAppWorkspaceService.Interface, pulumiExportService: PulumiExportService.Interface);
|
|
7
|
-
execute<TExport extends Record<string, any> = Record<string, string>>(params: ExportStack.Params): Promise<TExport | null>;
|
|
8
|
-
}
|
|
9
|
-
export declare const exportStack: import("@webiny/di").Implementation<typeof DefaultExportStack>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { createImplementation } from "@webiny/di";
|
|
2
|
-
import { BuildAppWorkspaceService, ExportStack, GetApp, PulumiExportService } from "../../abstractions/index.js";
|
|
3
|
-
class DefaultExportStack {
|
|
4
|
-
constructor(getApp, buildAppWorkspaceService, pulumiExportService){
|
|
5
|
-
this.getApp = getApp;
|
|
6
|
-
this.buildAppWorkspaceService = buildAppWorkspaceService;
|
|
7
|
-
this.pulumiExportService = pulumiExportService;
|
|
8
|
-
}
|
|
9
|
-
async execute(params) {
|
|
10
|
-
await this.buildAppWorkspaceService.execute(params.app);
|
|
11
|
-
const app = this.getApp.execute(params.app);
|
|
12
|
-
return this.pulumiExportService.execute(app);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
const exportStack = createImplementation({
|
|
16
|
-
abstraction: ExportStack,
|
|
17
|
-
implementation: DefaultExportStack,
|
|
18
|
-
dependencies: [
|
|
19
|
-
GetApp,
|
|
20
|
-
BuildAppWorkspaceService,
|
|
21
|
-
PulumiExportService
|
|
22
|
-
]
|
|
23
|
-
});
|
|
24
|
-
export { DefaultExportStack, exportStack };
|
|
25
|
-
|
|
26
|
-
//# sourceMappingURL=ExportStack.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"features/ExportStack/ExportStack.js","sources":["../../../src/features/ExportStack/ExportStack.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport {\n BuildAppWorkspaceService,\n GetApp,\n ExportStack,\n PulumiExportService\n} from \"~/abstractions/index.js\";\n\nexport class DefaultExportStack implements ExportStack.Interface {\n constructor(\n private getApp: GetApp.Interface,\n private buildAppWorkspaceService: BuildAppWorkspaceService.Interface,\n private pulumiExportService: PulumiExportService.Interface\n ) {}\n\n async execute<TExport extends Record<string, any> = Record<string, string>>(\n params: ExportStack.Params\n ) {\n await this.buildAppWorkspaceService.execute(params.app);\n\n const app = this.getApp.execute(params.app);\n return this.pulumiExportService.execute<TExport>(app);\n }\n}\n\nexport const exportStack = createImplementation({\n abstraction: ExportStack,\n implementation: DefaultExportStack,\n dependencies: [GetApp, BuildAppWorkspaceService, PulumiExportService]\n});\n"],"names":["DefaultExportStack","getApp","buildAppWorkspaceService","pulumiExportService","params","app","exportStack","createImplementation","ExportStack","GetApp","BuildAppWorkspaceService","PulumiExportService"],"mappings":";;AAQO,MAAMA;IACT,YACYC,MAAwB,EACxBC,wBAA4D,EAC5DC,mBAAkD,CAC5D;aAHUF,MAAM,GAANA;aACAC,wBAAwB,GAAxBA;aACAC,mBAAmB,GAAnBA;IACT;IAEH,MAAM,QACFC,MAA0B,EAC5B;QACE,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACA,OAAO,GAAG;QAEtD,MAAMC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAACD,OAAO,GAAG;QAC1C,OAAO,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAUC;IACrD;AACJ;AAEO,MAAMC,cAAcC,qBAAqB;IAC5C,aAAaC;IACb,gBAAgBR;IAChB,cAAc;QAACS;QAAQC;QAA0BC;KAAoB;AACzE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./ExportStack.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./ExportStack.js";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BuildAppWorkspaceService, GetApp, GetAppOutput, GetPulumiService, PulumiSelectStackService } from "../../abstractions/index.js";
|
|
2
|
-
export declare class DefaultGetAppOutput implements GetAppOutput.Interface {
|
|
3
|
-
private getApp;
|
|
4
|
-
private buildAppWorkspaceService;
|
|
5
|
-
private pulumiSelectStackService;
|
|
6
|
-
private getPulumiService;
|
|
7
|
-
constructor(getApp: GetApp.Interface, buildAppWorkspaceService: BuildAppWorkspaceService.Interface, pulumiSelectStackService: PulumiSelectStackService.Interface, getPulumiService: GetPulumiService.Interface);
|
|
8
|
-
execute(params: GetAppOutput.Params): Promise<{
|
|
9
|
-
pulumiProcess: import("@webiny/pulumi-sdk/Pulumi").PulumiProcess;
|
|
10
|
-
}>;
|
|
11
|
-
}
|
|
12
|
-
export declare const getAppOutput: import("@webiny/di").Implementation<typeof DefaultGetAppOutput>;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { createImplementation } from "@webiny/di";
|
|
2
|
-
import { BuildAppWorkspaceService, GetApp, GetAppOutput, GetPulumiService, PulumiSelectStackService } from "../../abstractions/index.js";
|
|
3
|
-
import { createEnvConfiguration, withPulumiConfigPassphrase } from "../../utils/env/index.js";
|
|
4
|
-
class DefaultGetAppOutput {
|
|
5
|
-
constructor(getApp, buildAppWorkspaceService, pulumiSelectStackService, getPulumiService){
|
|
6
|
-
this.getApp = getApp;
|
|
7
|
-
this.buildAppWorkspaceService = buildAppWorkspaceService;
|
|
8
|
-
this.pulumiSelectStackService = pulumiSelectStackService;
|
|
9
|
-
this.getPulumiService = getPulumiService;
|
|
10
|
-
}
|
|
11
|
-
async execute(params) {
|
|
12
|
-
await this.buildAppWorkspaceService.execute(params.app);
|
|
13
|
-
const app = this.getApp.execute(params.app);
|
|
14
|
-
await this.pulumiSelectStackService.execute(app);
|
|
15
|
-
const pulumi = await this.getPulumiService.execute({
|
|
16
|
-
app
|
|
17
|
-
});
|
|
18
|
-
const env = createEnvConfiguration({
|
|
19
|
-
configurations: [
|
|
20
|
-
withPulumiConfigPassphrase()
|
|
21
|
-
]
|
|
22
|
-
});
|
|
23
|
-
return {
|
|
24
|
-
pulumiProcess: pulumi.run({
|
|
25
|
-
command: [
|
|
26
|
-
"stack",
|
|
27
|
-
"output"
|
|
28
|
-
],
|
|
29
|
-
args: {
|
|
30
|
-
json: params.json || false
|
|
31
|
-
},
|
|
32
|
-
execa: {
|
|
33
|
-
env
|
|
34
|
-
}
|
|
35
|
-
})
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
const getAppOutput = createImplementation({
|
|
40
|
-
abstraction: GetAppOutput,
|
|
41
|
-
implementation: DefaultGetAppOutput,
|
|
42
|
-
dependencies: [
|
|
43
|
-
GetApp,
|
|
44
|
-
BuildAppWorkspaceService,
|
|
45
|
-
PulumiSelectStackService,
|
|
46
|
-
GetPulumiService
|
|
47
|
-
]
|
|
48
|
-
});
|
|
49
|
-
export { DefaultGetAppOutput, getAppOutput };
|
|
50
|
-
|
|
51
|
-
//# sourceMappingURL=GetAppOutput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"features/GetAppOutput/GetAppOutput.js","sources":["../../../src/features/GetAppOutput/GetAppOutput.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport {\n BuildAppWorkspaceService,\n GetApp,\n GetAppOutput,\n GetPulumiService,\n PulumiSelectStackService\n} from \"~/abstractions/index.js\";\nimport { createEnvConfiguration, withPulumiConfigPassphrase } from \"~/utils/env/index.js\";\n\nexport class DefaultGetAppOutput implements GetAppOutput.Interface {\n constructor(\n private getApp: GetApp.Interface,\n private buildAppWorkspaceService: BuildAppWorkspaceService.Interface,\n private pulumiSelectStackService: PulumiSelectStackService.Interface,\n private getPulumiService: GetPulumiService.Interface\n ) {}\n\n async execute(params: GetAppOutput.Params) {\n await this.buildAppWorkspaceService.execute(params.app);\n\n const app = this.getApp.execute(params.app);\n\n await this.pulumiSelectStackService.execute(app);\n\n const pulumi = await this.getPulumiService.execute({ app });\n\n const env = createEnvConfiguration({\n configurations: [withPulumiConfigPassphrase()]\n });\n\n return {\n pulumiProcess: pulumi.run({\n command: [\"stack\", \"output\"],\n args: {\n json: params.json || false\n },\n execa: { env }\n })\n };\n }\n}\n\nexport const getAppOutput = createImplementation({\n abstraction: GetAppOutput,\n implementation: DefaultGetAppOutput,\n dependencies: [GetApp, BuildAppWorkspaceService, PulumiSelectStackService, GetPulumiService]\n});\n"],"names":["DefaultGetAppOutput","getApp","buildAppWorkspaceService","pulumiSelectStackService","getPulumiService","params","app","pulumi","env","createEnvConfiguration","withPulumiConfigPassphrase","getAppOutput","createImplementation","GetAppOutput","GetApp","BuildAppWorkspaceService","PulumiSelectStackService","GetPulumiService"],"mappings":";;;AAUO,MAAMA;IACT,YACYC,MAAwB,EACxBC,wBAA4D,EAC5DC,wBAA4D,EAC5DC,gBAA4C,CACtD;aAJUH,MAAM,GAANA;aACAC,wBAAwB,GAAxBA;aACAC,wBAAwB,GAAxBA;aACAC,gBAAgB,GAAhBA;IACT;IAEH,MAAM,QAAQC,MAA2B,EAAE;QACvC,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACA,OAAO,GAAG;QAEtD,MAAMC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAACD,OAAO,GAAG;QAE1C,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAACC;QAE5C,MAAMC,SAAS,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC;YAAED;QAAI;QAEzD,MAAME,MAAMC,uBAAuB;YAC/B,gBAAgB;gBAACC;aAA6B;QAClD;QAEA,OAAO;YACH,eAAeH,OAAO,GAAG,CAAC;gBACtB,SAAS;oBAAC;oBAAS;iBAAS;gBAC5B,MAAM;oBACF,MAAMF,OAAO,IAAI,IAAI;gBACzB;gBACA,OAAO;oBAAEG;gBAAI;YACjB;QACJ;IACJ;AACJ;AAEO,MAAMG,eAAeC,qBAAqB;IAC7C,aAAaC;IACb,gBAAgBb;IAChB,cAAc;QAACc;QAAQC;QAA0BC;QAA0BC;KAAiB;AAChG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./GetAppOutput.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./GetAppOutput.js";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BuildAppWorkspaceService, GetApp, GetAppStackOutput, PulumiGetStackOutputService } from "../../abstractions/index.js";
|
|
2
|
-
import { type AppName } from "../../abstractions/types.js";
|
|
3
|
-
export declare class DefaultGetAppStackOutput implements GetAppStackOutput.Interface {
|
|
4
|
-
private getAppService;
|
|
5
|
-
private buildAppWorkspaceService;
|
|
6
|
-
private pulumiGetStackOutputService;
|
|
7
|
-
constructor(getAppService: GetApp.Interface, buildAppWorkspaceService: BuildAppWorkspaceService.Interface, pulumiGetStackOutputService: PulumiGetStackOutputService.Interface);
|
|
8
|
-
execute<TOutput extends GetAppStackOutput.StackOutput = GetAppStackOutput.StackOutput>(appName: AppName): Promise<TOutput | null>;
|
|
9
|
-
}
|
|
10
|
-
export declare const getAppStackOutput: import("@webiny/di").Implementation<typeof DefaultGetAppStackOutput>;
|