@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,32 +0,0 @@
|
|
|
1
|
-
import { DeployApp, GetApp, LoggerService, PulumiGetStackOutputService } from "../abstractions/index.js";
|
|
2
|
-
class DeployAppRefreshStackOutputCache {
|
|
3
|
-
constructor(getApp, logger, pulumiGetStackOutputService, decoratee){
|
|
4
|
-
this.getApp = getApp;
|
|
5
|
-
this.logger = logger;
|
|
6
|
-
this.pulumiGetStackOutputService = pulumiGetStackOutputService;
|
|
7
|
-
this.decoratee = decoratee;
|
|
8
|
-
}
|
|
9
|
-
async execute(params) {
|
|
10
|
-
const result = await this.decoratee.execute(params);
|
|
11
|
-
try {
|
|
12
|
-
const app = this.getApp.execute(params.app);
|
|
13
|
-
await this.pulumiGetStackOutputService.execute(app, {
|
|
14
|
-
skipCache: true
|
|
15
|
-
});
|
|
16
|
-
} catch (error) {
|
|
17
|
-
this.logger.error("Failed to update stack output cache after deployment.", error);
|
|
18
|
-
}
|
|
19
|
-
return result;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
const deployAppRefreshStackOutputCache = DeployApp.createDecorator({
|
|
23
|
-
decorator: DeployAppRefreshStackOutputCache,
|
|
24
|
-
dependencies: [
|
|
25
|
-
GetApp,
|
|
26
|
-
LoggerService,
|
|
27
|
-
PulumiGetStackOutputService
|
|
28
|
-
]
|
|
29
|
-
});
|
|
30
|
-
export { DeployAppRefreshStackOutputCache, deployAppRefreshStackOutputCache };
|
|
31
|
-
|
|
32
|
-
//# sourceMappingURL=DeployAppRefreshStackOutputCache.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decorators/DeployAppRefreshStackOutputCache.js","sources":["../../src/decorators/DeployAppRefreshStackOutputCache.ts"],"sourcesContent":["import {\n DeployApp,\n GetApp,\n LoggerService,\n PulumiGetStackOutputService\n} from \"~/abstractions/index.js\";\n\n/**\n * Decorator that refreshes the stack output cache after successful deployment.\n * This ensures that subsequent calls to get stack output will have fresh data\n * without needing to fetch it from Pulumi.\n */\nexport class DeployAppRefreshStackOutputCache implements DeployApp.Interface {\n constructor(\n private getApp: GetApp.Interface,\n private logger: LoggerService.Interface,\n private pulumiGetStackOutputService: PulumiGetStackOutputService.Interface,\n private decoratee: DeployApp.Interface\n ) {}\n\n async execute(params: DeployApp.Params) {\n const result = await this.decoratee.execute(params);\n\n // Update the stack output cache after successful deployment\n try {\n const app = this.getApp.execute(params.app);\n await this.pulumiGetStackOutputService.execute(app, { skipCache: true });\n } catch (error) {\n // Cache refresh failure shouldn't affect deployment success\n this.logger.error(\"Failed to update stack output cache after deployment.\", error);\n }\n\n return result;\n }\n}\n\nexport const deployAppRefreshStackOutputCache = DeployApp.createDecorator({\n decorator: DeployAppRefreshStackOutputCache,\n dependencies: [GetApp, LoggerService, PulumiGetStackOutputService]\n});\n"],"names":["DeployAppRefreshStackOutputCache","getApp","logger","pulumiGetStackOutputService","decoratee","params","result","app","error","deployAppRefreshStackOutputCache","DeployApp","GetApp","LoggerService","PulumiGetStackOutputService"],"mappings":";AAYO,MAAMA;IACT,YACYC,MAAwB,EACxBC,MAA+B,EAC/BC,2BAAkE,EAClEC,SAA8B,CACxC;aAJUH,MAAM,GAANA;aACAC,MAAM,GAANA;aACAC,2BAA2B,GAA3BA;aACAC,SAAS,GAATA;IACT;IAEH,MAAM,QAAQC,MAAwB,EAAE;QACpC,MAAMC,SAAS,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAACD;QAG5C,IAAI;YACA,MAAME,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAACF,OAAO,GAAG;YAC1C,MAAM,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAACE,KAAK;gBAAE,WAAW;YAAK;QAC1E,EAAE,OAAOC,OAAO;YAEZ,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,yDAAyDA;QAC/E;QAEA,OAAOF;IACX;AACJ;AAEO,MAAMG,mCAAmCC,UAAU,eAAe,CAAC;IACtE,WAAWV;IACX,cAAc;QAACW;QAAQC;QAAeC;KAA4B;AACtE"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { AdminAfterDeploy, AdminBeforeDeploy, AfterDeploy, ApiAfterDeploy, ApiBeforeDeploy, BeforeDeploy, CoreAfterDeploy, CoreBeforeDeploy, DeployApp } from "../abstractions/index.js";
|
|
2
|
-
export declare class DeployAppWithHooks implements DeployApp.Interface {
|
|
3
|
-
private beforeDeploy;
|
|
4
|
-
private afterDeploy;
|
|
5
|
-
private adminBeforeDeploy;
|
|
6
|
-
private adminAfterDeploy;
|
|
7
|
-
private apiBeforeDeploy;
|
|
8
|
-
private apiAfterDeploy;
|
|
9
|
-
private coreBeforeDeploy;
|
|
10
|
-
private coreAfterDeploy;
|
|
11
|
-
private decoratee;
|
|
12
|
-
constructor(beforeDeploy: BeforeDeploy.Interface, afterDeploy: AfterDeploy.Interface, adminBeforeDeploy: AdminBeforeDeploy.Interface, adminAfterDeploy: AdminAfterDeploy.Interface, apiBeforeDeploy: ApiBeforeDeploy.Interface, apiAfterDeploy: ApiAfterDeploy.Interface, coreBeforeDeploy: CoreBeforeDeploy.Interface, coreAfterDeploy: CoreAfterDeploy.Interface, decoratee: DeployApp.Interface);
|
|
13
|
-
execute(params: DeployApp.Params): Promise<void>;
|
|
14
|
-
}
|
|
15
|
-
export declare const deployAppWithHooks: typeof DeployAppWithHooks & {
|
|
16
|
-
__abstraction: import("@webiny/di").Abstraction<import("../abstractions/features/DeployApp").IDeployApp>;
|
|
17
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { AdminAfterDeploy, AdminBeforeDeploy, AfterDeploy, ApiAfterDeploy, ApiBeforeDeploy, BeforeDeploy, CoreAfterDeploy, CoreBeforeDeploy, DeployApp } from "../abstractions/index.js";
|
|
2
|
-
class DeployAppWithHooks {
|
|
3
|
-
constructor(beforeDeploy, afterDeploy, adminBeforeDeploy, adminAfterDeploy, apiBeforeDeploy, apiAfterDeploy, coreBeforeDeploy, coreAfterDeploy, decoratee){
|
|
4
|
-
this.beforeDeploy = beforeDeploy;
|
|
5
|
-
this.afterDeploy = afterDeploy;
|
|
6
|
-
this.adminBeforeDeploy = adminBeforeDeploy;
|
|
7
|
-
this.adminAfterDeploy = adminAfterDeploy;
|
|
8
|
-
this.apiBeforeDeploy = apiBeforeDeploy;
|
|
9
|
-
this.apiAfterDeploy = apiAfterDeploy;
|
|
10
|
-
this.coreBeforeDeploy = coreBeforeDeploy;
|
|
11
|
-
this.coreAfterDeploy = coreAfterDeploy;
|
|
12
|
-
this.decoratee = decoratee;
|
|
13
|
-
}
|
|
14
|
-
async execute(params) {
|
|
15
|
-
await this.beforeDeploy.execute(params);
|
|
16
|
-
switch(params.app){
|
|
17
|
-
case "core":
|
|
18
|
-
await this.coreBeforeDeploy.execute(params);
|
|
19
|
-
break;
|
|
20
|
-
case "api":
|
|
21
|
-
await this.apiBeforeDeploy.execute(params);
|
|
22
|
-
break;
|
|
23
|
-
case "admin":
|
|
24
|
-
await this.adminBeforeDeploy.execute(params);
|
|
25
|
-
break;
|
|
26
|
-
}
|
|
27
|
-
const result = await this.decoratee.execute(params);
|
|
28
|
-
switch(params.app){
|
|
29
|
-
case "core":
|
|
30
|
-
await this.coreAfterDeploy.execute(params);
|
|
31
|
-
break;
|
|
32
|
-
case "api":
|
|
33
|
-
await this.apiAfterDeploy.execute(params);
|
|
34
|
-
break;
|
|
35
|
-
case "admin":
|
|
36
|
-
await this.adminAfterDeploy.execute(params);
|
|
37
|
-
break;
|
|
38
|
-
}
|
|
39
|
-
await this.afterDeploy.execute(params);
|
|
40
|
-
return result;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
const deployAppWithHooks = DeployApp.createDecorator({
|
|
44
|
-
decorator: DeployAppWithHooks,
|
|
45
|
-
dependencies: [
|
|
46
|
-
BeforeDeploy,
|
|
47
|
-
AfterDeploy,
|
|
48
|
-
AdminBeforeDeploy,
|
|
49
|
-
AdminAfterDeploy,
|
|
50
|
-
ApiBeforeDeploy,
|
|
51
|
-
ApiAfterDeploy,
|
|
52
|
-
CoreBeforeDeploy,
|
|
53
|
-
CoreAfterDeploy
|
|
54
|
-
]
|
|
55
|
-
});
|
|
56
|
-
export { DeployAppWithHooks, deployAppWithHooks };
|
|
57
|
-
|
|
58
|
-
//# sourceMappingURL=DeployAppWithHooks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decorators/DeployAppWithHooks.js","sources":["../../src/decorators/DeployAppWithHooks.ts"],"sourcesContent":["import {\n AdminAfterDeploy,\n AdminBeforeDeploy,\n AfterDeploy,\n ApiAfterDeploy,\n ApiBeforeDeploy,\n BeforeDeploy,\n CoreAfterDeploy,\n CoreBeforeDeploy,\n DeployApp\n} from \"~/abstractions/index.js\";\n\nexport class DeployAppWithHooks implements DeployApp.Interface {\n constructor(\n private beforeDeploy: BeforeDeploy.Interface,\n private afterDeploy: AfterDeploy.Interface,\n private adminBeforeDeploy: AdminBeforeDeploy.Interface,\n private adminAfterDeploy: AdminAfterDeploy.Interface,\n private apiBeforeDeploy: ApiBeforeDeploy.Interface,\n private apiAfterDeploy: ApiAfterDeploy.Interface,\n private coreBeforeDeploy: CoreBeforeDeploy.Interface,\n private coreAfterDeploy: CoreAfterDeploy.Interface,\n private decoratee: DeployApp.Interface\n ) {}\n\n async execute(params: DeployApp.Params) {\n await this.beforeDeploy.execute(params);\n\n switch (params.app) {\n case \"core\":\n await this.coreBeforeDeploy.execute(params);\n break;\n case \"api\":\n await this.apiBeforeDeploy.execute(params);\n break;\n case \"admin\":\n await this.adminBeforeDeploy.execute(params);\n break;\n }\n\n const result = await this.decoratee.execute(params);\n\n switch (params.app) {\n case \"core\":\n await this.coreAfterDeploy.execute(params);\n break;\n case \"api\":\n await this.apiAfterDeploy.execute(params);\n break;\n case \"admin\":\n await this.adminAfterDeploy.execute(params);\n break;\n }\n\n await this.afterDeploy.execute(params);\n\n return result;\n }\n}\n\nexport const deployAppWithHooks = DeployApp.createDecorator({\n decorator: DeployAppWithHooks,\n dependencies: [\n BeforeDeploy,\n AfterDeploy,\n AdminBeforeDeploy,\n AdminAfterDeploy,\n ApiBeforeDeploy,\n ApiAfterDeploy,\n CoreBeforeDeploy,\n CoreAfterDeploy\n ]\n});\n"],"names":["DeployAppWithHooks","beforeDeploy","afterDeploy","adminBeforeDeploy","adminAfterDeploy","apiBeforeDeploy","apiAfterDeploy","coreBeforeDeploy","coreAfterDeploy","decoratee","params","result","deployAppWithHooks","DeployApp","BeforeDeploy","AfterDeploy","AdminBeforeDeploy","AdminAfterDeploy","ApiBeforeDeploy","ApiAfterDeploy","CoreBeforeDeploy","CoreAfterDeploy"],"mappings":";AAYO,MAAMA;IACT,YACYC,YAAoC,EACpCC,WAAkC,EAClCC,iBAA8C,EAC9CC,gBAA4C,EAC5CC,eAA0C,EAC1CC,cAAwC,EACxCC,gBAA4C,EAC5CC,eAA0C,EAC1CC,SAA8B,CACxC;aATUR,YAAY,GAAZA;aACAC,WAAW,GAAXA;aACAC,iBAAiB,GAAjBA;aACAC,gBAAgB,GAAhBA;aACAC,eAAe,GAAfA;aACAC,cAAc,GAAdA;aACAC,gBAAgB,GAAhBA;aACAC,eAAe,GAAfA;aACAC,SAAS,GAATA;IACT;IAEH,MAAM,QAAQC,MAAwB,EAAE;QACpC,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAACA;QAEhC,OAAQA,OAAO,GAAG;YACd,KAAK;gBACD,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAACA;gBACpC;YACJ,KAAK;gBACD,MAAM,IAAI,CAAC,eAAe,CAAC,OAAO,CAACA;gBACnC;YACJ,KAAK;gBACD,MAAM,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAACA;gBACrC;QACR;QAEA,MAAMC,SAAS,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAACD;QAE5C,OAAQA,OAAO,GAAG;YACd,KAAK;gBACD,MAAM,IAAI,CAAC,eAAe,CAAC,OAAO,CAACA;gBACnC;YACJ,KAAK;gBACD,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAACA;gBAClC;YACJ,KAAK;gBACD,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAACA;gBACpC;QACR;QAEA,MAAM,IAAI,CAAC,WAAW,CAAC,OAAO,CAACA;QAE/B,OAAOC;IACX;AACJ;AAEO,MAAMC,qBAAqBC,UAAU,eAAe,CAAC;IACxD,WAAWb;IACX,cAAc;QACVc;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;KACH;AACL"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { DeployApp, GetApp, PulumiGetStackOutputService, WatchedLambdaFunctionsService } from "../abstractions/index.js";
|
|
2
|
-
/**
|
|
3
|
-
* Decorator that injects watched Lambda function URNs into Pulumi replace args.
|
|
4
|
-
* This ensures Lambda functions that were updated during watch sessions are
|
|
5
|
-
* replaced during deployment.
|
|
6
|
-
*/
|
|
7
|
-
export declare class DeployAppWithWatchedLambdaReplacement implements DeployApp.Interface {
|
|
8
|
-
private getApp;
|
|
9
|
-
private pulumiGetStackOutputService;
|
|
10
|
-
private watchedLambdaFunctionsService;
|
|
11
|
-
private decoratee;
|
|
12
|
-
constructor(getApp: GetApp.Interface, pulumiGetStackOutputService: PulumiGetStackOutputService.Interface, watchedLambdaFunctionsService: WatchedLambdaFunctionsService.Interface, decoratee: DeployApp.Interface);
|
|
13
|
-
execute(params: DeployApp.Params): Promise<void>;
|
|
14
|
-
}
|
|
15
|
-
export declare const deployAppWithWatchedLambdaReplacement: typeof DeployAppWithWatchedLambdaReplacement & {
|
|
16
|
-
__abstraction: import("@webiny/di").Abstraction<import("../abstractions/features/DeployApp").IDeployApp>;
|
|
17
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { DeployApp, GetApp, PulumiGetStackOutputService, WatchedLambdaFunctionsService } from "../abstractions/index.js";
|
|
2
|
-
class DeployAppWithWatchedLambdaReplacement {
|
|
3
|
-
constructor(getApp, pulumiGetStackOutputService, watchedLambdaFunctionsService, decoratee){
|
|
4
|
-
this.getApp = getApp;
|
|
5
|
-
this.pulumiGetStackOutputService = pulumiGetStackOutputService;
|
|
6
|
-
this.watchedLambdaFunctionsService = watchedLambdaFunctionsService;
|
|
7
|
-
this.decoratee = decoratee;
|
|
8
|
-
}
|
|
9
|
-
async execute(params) {
|
|
10
|
-
const coreApp = this.getApp.execute("core");
|
|
11
|
-
const coreStackOutput = await this.pulumiGetStackOutputService.execute(coreApp);
|
|
12
|
-
const deploymentId = coreStackOutput?.deploymentId;
|
|
13
|
-
const app = this.getApp.execute(params.app);
|
|
14
|
-
const lambdaUrnsToReplace = this.watchedLambdaFunctionsService.getDirty({
|
|
15
|
-
name: app.name,
|
|
16
|
-
deploymentId
|
|
17
|
-
});
|
|
18
|
-
if (0 === lambdaUrnsToReplace.length) return this.decoratee.execute(params);
|
|
19
|
-
const enhancedParams = {
|
|
20
|
-
...params,
|
|
21
|
-
pulumiArgs: {
|
|
22
|
-
...params.pulumiArgs,
|
|
23
|
-
replace: lambdaUrnsToReplace
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
return this.decoratee.execute(enhancedParams);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
const deployAppWithWatchedLambdaReplacement = DeployApp.createDecorator({
|
|
30
|
-
decorator: DeployAppWithWatchedLambdaReplacement,
|
|
31
|
-
dependencies: [
|
|
32
|
-
GetApp,
|
|
33
|
-
PulumiGetStackOutputService,
|
|
34
|
-
WatchedLambdaFunctionsService
|
|
35
|
-
]
|
|
36
|
-
});
|
|
37
|
-
export { DeployAppWithWatchedLambdaReplacement, deployAppWithWatchedLambdaReplacement };
|
|
38
|
-
|
|
39
|
-
//# sourceMappingURL=DeployAppWithWatchedLambdaReplacement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decorators/DeployAppWithWatchedLambdaReplacement.js","sources":["../../src/decorators/DeployAppWithWatchedLambdaReplacement.ts"],"sourcesContent":["import {\n DeployApp,\n GetApp,\n PulumiGetStackOutputService,\n WatchedLambdaFunctionsService\n} from \"~/abstractions/index.js\";\nimport { type ICoreStackOutput } from \"~/abstractions/features/GetAppStackOutput.js\";\n\n/**\n * Decorator that injects watched Lambda function URNs into Pulumi replace args.\n * This ensures Lambda functions that were updated during watch sessions are\n * replaced during deployment.\n */\nexport class DeployAppWithWatchedLambdaReplacement implements DeployApp.Interface {\n constructor(\n private getApp: GetApp.Interface,\n private pulumiGetStackOutputService: PulumiGetStackOutputService.Interface,\n private watchedLambdaFunctionsService: WatchedLambdaFunctionsService.Interface,\n private decoratee: DeployApp.Interface\n ) {}\n\n async execute(params: DeployApp.Params) {\n const coreApp = this.getApp.execute(\"core\");\n const coreStackOutput =\n await this.pulumiGetStackOutputService.execute<ICoreStackOutput>(coreApp);\n const deploymentId = coreStackOutput?.deploymentId;\n\n const app = this.getApp.execute(params.app);\n const lambdaUrnsToReplace = this.watchedLambdaFunctionsService.getDirty({\n name: app.name,\n deploymentId\n });\n\n if (lambdaUrnsToReplace.length === 0) {\n return this.decoratee.execute(params);\n }\n\n // Inject replace URNs into pulumiArgs.\n const enhancedParams = {\n ...params,\n pulumiArgs: {\n ...params.pulumiArgs,\n replace: lambdaUrnsToReplace\n }\n };\n\n return this.decoratee.execute(enhancedParams);\n }\n}\n\nexport const deployAppWithWatchedLambdaReplacement = DeployApp.createDecorator({\n decorator: DeployAppWithWatchedLambdaReplacement,\n dependencies: [GetApp, PulumiGetStackOutputService, WatchedLambdaFunctionsService]\n});\n"],"names":["DeployAppWithWatchedLambdaReplacement","getApp","pulumiGetStackOutputService","watchedLambdaFunctionsService","decoratee","params","coreApp","coreStackOutput","deploymentId","app","lambdaUrnsToReplace","enhancedParams","deployAppWithWatchedLambdaReplacement","DeployApp","GetApp","PulumiGetStackOutputService","WatchedLambdaFunctionsService"],"mappings":";AAaO,MAAMA;IACT,YACYC,MAAwB,EACxBC,2BAAkE,EAClEC,6BAAsE,EACtEC,SAA8B,CACxC;aAJUH,MAAM,GAANA;aACAC,2BAA2B,GAA3BA;aACAC,6BAA6B,GAA7BA;aACAC,SAAS,GAATA;IACT;IAEH,MAAM,QAAQC,MAAwB,EAAE;QACpC,MAAMC,UAAU,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;QACpC,MAAMC,kBACF,MAAM,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAmBD;QACrE,MAAME,eAAeD,iBAAiB;QAEtC,MAAME,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAACJ,OAAO,GAAG;QAC1C,MAAMK,sBAAsB,IAAI,CAAC,6BAA6B,CAAC,QAAQ,CAAC;YACpE,MAAMD,IAAI,IAAI;YACdD;QACJ;QAEA,IAAIE,AAA+B,MAA/BA,oBAAoB,MAAM,EAC1B,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAACL;QAIlC,MAAMM,iBAAiB;YACnB,GAAGN,MAAM;YACT,YAAY;gBACR,GAAGA,OAAO,UAAU;gBACpB,SAASK;YACb;QACJ;QAEA,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAACC;IAClC;AACJ;AAEO,MAAMC,wCAAwCC,UAAU,eAAe,CAAC;IAC3E,WAAWb;IACX,cAAc;QAACc;QAAQC;QAA6BC;KAA8B;AACtF"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { DestroyApp, GetApp, LoggerService, StackOutputCacheService } from "../abstractions/index.js";
|
|
2
|
-
/**
|
|
3
|
-
* Decorator that clears the stack output cache when an app is destroyed.
|
|
4
|
-
*
|
|
5
|
-
* Without this, the cache file written during deploy would remain on disk after a
|
|
6
|
-
* destroy, and a subsequent deploy (or any stack output read) would use it and behave
|
|
7
|
-
* as if the stack were still deployed.
|
|
8
|
-
*
|
|
9
|
-
* The cache is cleared before the destroy runs. Since the cache is only a performance
|
|
10
|
-
* optimization, this is safe even if the destroy fails and the stack remains: the next
|
|
11
|
-
* read simply fetches fresh output from Pulumi again.
|
|
12
|
-
*/
|
|
13
|
-
export declare class DestroyAppClearStackOutputCache implements DestroyApp.Interface {
|
|
14
|
-
private getApp;
|
|
15
|
-
private logger;
|
|
16
|
-
private stackOutputCacheService;
|
|
17
|
-
private decoratee;
|
|
18
|
-
constructor(getApp: GetApp.Interface, logger: LoggerService.Interface, stackOutputCacheService: StackOutputCacheService.Interface, decoratee: DestroyApp.Interface);
|
|
19
|
-
execute(params: DestroyApp.Params): Promise<{
|
|
20
|
-
pulumiProcess: import("@webiny/pulumi-sdk/Pulumi").PulumiProcess;
|
|
21
|
-
}>;
|
|
22
|
-
}
|
|
23
|
-
export declare const destroyAppClearStackOutputCache: typeof DestroyAppClearStackOutputCache & {
|
|
24
|
-
__abstraction: import("@webiny/di").Abstraction<import("../abstractions/features/DestroyApp").IDestroyApp>;
|
|
25
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { DestroyApp, GetApp, LoggerService, StackOutputCacheService } from "../abstractions/index.js";
|
|
2
|
-
class DestroyAppClearStackOutputCache {
|
|
3
|
-
constructor(getApp, logger, stackOutputCacheService, decoratee){
|
|
4
|
-
this.getApp = getApp;
|
|
5
|
-
this.logger = logger;
|
|
6
|
-
this.stackOutputCacheService = stackOutputCacheService;
|
|
7
|
-
this.decoratee = decoratee;
|
|
8
|
-
}
|
|
9
|
-
async execute(params) {
|
|
10
|
-
try {
|
|
11
|
-
const app = this.getApp.execute(params.app);
|
|
12
|
-
await this.stackOutputCacheService.delete(app);
|
|
13
|
-
} catch (error) {
|
|
14
|
-
this.logger.error("Failed to clear stack output cache before destroy.", error);
|
|
15
|
-
}
|
|
16
|
-
return this.decoratee.execute(params);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
const destroyAppClearStackOutputCache = DestroyApp.createDecorator({
|
|
20
|
-
decorator: DestroyAppClearStackOutputCache,
|
|
21
|
-
dependencies: [
|
|
22
|
-
GetApp,
|
|
23
|
-
LoggerService,
|
|
24
|
-
StackOutputCacheService
|
|
25
|
-
]
|
|
26
|
-
});
|
|
27
|
-
export { DestroyAppClearStackOutputCache, destroyAppClearStackOutputCache };
|
|
28
|
-
|
|
29
|
-
//# sourceMappingURL=DestroyAppClearStackOutputCache.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decorators/DestroyAppClearStackOutputCache.js","sources":["../../src/decorators/DestroyAppClearStackOutputCache.ts"],"sourcesContent":["import {\n DestroyApp,\n GetApp,\n LoggerService,\n StackOutputCacheService\n} from \"~/abstractions/index.js\";\n\n/**\n * Decorator that clears the stack output cache when an app is destroyed.\n *\n * Without this, the cache file written during deploy would remain on disk after a\n * destroy, and a subsequent deploy (or any stack output read) would use it and behave\n * as if the stack were still deployed.\n *\n * The cache is cleared before the destroy runs. Since the cache is only a performance\n * optimization, this is safe even if the destroy fails and the stack remains: the next\n * read simply fetches fresh output from Pulumi again.\n */\nexport class DestroyAppClearStackOutputCache implements DestroyApp.Interface {\n constructor(\n private getApp: GetApp.Interface,\n private logger: LoggerService.Interface,\n private stackOutputCacheService: StackOutputCacheService.Interface,\n private decoratee: DestroyApp.Interface\n ) {}\n\n async execute(params: DestroyApp.Params) {\n try {\n const app = this.getApp.execute(params.app);\n await this.stackOutputCacheService.delete(app);\n } catch (error) {\n // Cache clearing failure shouldn't prevent the destroy from running.\n this.logger.error(\"Failed to clear stack output cache before destroy.\", error);\n }\n\n return this.decoratee.execute(params);\n }\n}\n\nexport const destroyAppClearStackOutputCache = DestroyApp.createDecorator({\n decorator: DestroyAppClearStackOutputCache,\n dependencies: [GetApp, LoggerService, StackOutputCacheService]\n});\n"],"names":["DestroyAppClearStackOutputCache","getApp","logger","stackOutputCacheService","decoratee","params","app","error","destroyAppClearStackOutputCache","DestroyApp","GetApp","LoggerService","StackOutputCacheService"],"mappings":";AAkBO,MAAMA;IACT,YACYC,MAAwB,EACxBC,MAA+B,EAC/BC,uBAA0D,EAC1DC,SAA+B,CACzC;aAJUH,MAAM,GAANA;aACAC,MAAM,GAANA;aACAC,uBAAuB,GAAvBA;aACAC,SAAS,GAATA;IACT;IAEH,MAAM,QAAQC,MAAyB,EAAE;QACrC,IAAI;YACA,MAAMC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAACD,OAAO,GAAG;YAC1C,MAAM,IAAI,CAAC,uBAAuB,CAAC,MAAM,CAACC;QAC9C,EAAE,OAAOC,OAAO;YAEZ,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,sDAAsDA;QAC5E;QAEA,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAACF;IAClC;AACJ;AAEO,MAAMG,kCAAkCC,WAAW,eAAe,CAAC;IACtE,WAAWT;IACX,cAAc;QAACU;QAAQC;QAAeC;KAAwB;AAClE"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { GetProjectService, GetPulumiService, UiService } from "../abstractions/index.js";
|
|
2
|
-
export declare class GetPulumiServiceWithDownloadInfo implements GetPulumiService.Interface {
|
|
3
|
-
private getProjectService;
|
|
4
|
-
private ui;
|
|
5
|
-
private decoratee;
|
|
6
|
-
constructor(getProjectService: GetProjectService.Interface, ui: UiService.Interface, decoratee: GetPulumiService.Interface);
|
|
7
|
-
execute(params?: GetPulumiService.Params): Promise<import("@webiny/pulumi-sdk/Pulumi").Pulumi>;
|
|
8
|
-
}
|
|
9
|
-
export declare const getPulumiServiceWithDownloadInfo: typeof GetPulumiServiceWithDownloadInfo & {
|
|
10
|
-
__abstraction: import("@webiny/di").Abstraction<import("../abstractions/services/GetPulumiService").IGetPulumiService>;
|
|
11
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { GetProjectService, GetPulumiService, UiService } from "../abstractions/index.js";
|
|
2
|
-
class GetPulumiServiceWithDownloadInfo {
|
|
3
|
-
constructor(getProjectService, ui, decoratee){
|
|
4
|
-
this.getProjectService = getProjectService;
|
|
5
|
-
this.ui = ui;
|
|
6
|
-
this.decoratee = decoratee;
|
|
7
|
-
}
|
|
8
|
-
async execute(params = {}) {
|
|
9
|
-
const project = this.getProjectService.execute();
|
|
10
|
-
const pulumiCliPath = project.paths.dotWebinyFolder.join("pulumi-cli");
|
|
11
|
-
if (!pulumiCliPath.existsSync()) {
|
|
12
|
-
this.ui.info("Looks like this is your first time using Pulumi CLI. Downloading...");
|
|
13
|
-
this.ui.emptyLine();
|
|
14
|
-
}
|
|
15
|
-
return this.decoratee.execute(params);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
const getPulumiServiceWithDownloadInfo = GetPulumiService.createDecorator({
|
|
19
|
-
decorator: GetPulumiServiceWithDownloadInfo,
|
|
20
|
-
dependencies: [
|
|
21
|
-
GetProjectService,
|
|
22
|
-
UiService
|
|
23
|
-
]
|
|
24
|
-
});
|
|
25
|
-
export { GetPulumiServiceWithDownloadInfo, getPulumiServiceWithDownloadInfo };
|
|
26
|
-
|
|
27
|
-
//# sourceMappingURL=GetPulumiServiceWithDownloadInfo.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decorators/GetPulumiServiceWithDownloadInfo.js","sources":["../../src/decorators/GetPulumiServiceWithDownloadInfo.ts"],"sourcesContent":["import { GetProjectService, GetPulumiService, UiService } from \"~/abstractions/index.js\";\n\nexport class GetPulumiServiceWithDownloadInfo implements GetPulumiService.Interface {\n constructor(\n private getProjectService: GetProjectService.Interface,\n private ui: UiService.Interface,\n private decoratee: GetPulumiService.Interface\n ) {}\n\n async execute(params: GetPulumiService.Params = {}) {\n const project = this.getProjectService.execute();\n const pulumiCliPath = project.paths.dotWebinyFolder.join(\"pulumi-cli\");\n\n if (!pulumiCliPath.existsSync()) {\n this.ui.info(\"Looks like this is your first time using Pulumi CLI. Downloading...\");\n\n // New line b/c after the Pulumi CLI download, plugins are next.\n this.ui.emptyLine();\n }\n\n return this.decoratee.execute(params);\n }\n}\n\nexport const getPulumiServiceWithDownloadInfo = GetPulumiService.createDecorator({\n decorator: GetPulumiServiceWithDownloadInfo,\n dependencies: [GetProjectService, UiService]\n});\n"],"names":["GetPulumiServiceWithDownloadInfo","getProjectService","ui","decoratee","params","project","pulumiCliPath","getPulumiServiceWithDownloadInfo","GetPulumiService","GetProjectService","UiService"],"mappings":";AAEO,MAAMA;IACT,YACYC,iBAA8C,EAC9CC,EAAuB,EACvBC,SAAqC,CAC/C;aAHUF,iBAAiB,GAAjBA;aACAC,EAAE,GAAFA;aACAC,SAAS,GAATA;IACT;IAEH,MAAM,QAAQC,SAAkC,CAAC,CAAC,EAAE;QAChD,MAAMC,UAAU,IAAI,CAAC,iBAAiB,CAAC,OAAO;QAC9C,MAAMC,gBAAgBD,QAAQ,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC;QAEzD,IAAI,CAACC,cAAc,UAAU,IAAI;YAC7B,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC;YAGb,IAAI,CAAC,EAAE,CAAC,SAAS;QACrB;QAEA,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAACF;IAClC;AACJ;AAEO,MAAMG,mCAAmCC,iBAAiB,eAAe,CAAC;IAC7E,WAAWR;IACX,cAAc;QAACS;QAAmBC;KAAU;AAChD"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import react from "react";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { defineExtension } from "../defineExtension/index.js";
|
|
4
|
-
import { EnvVar } from "./EnvVar.js";
|
|
5
|
-
const ApiMaxBundleSize = defineExtension({
|
|
6
|
-
type: "Infra/Api/MaxBundleSize",
|
|
7
|
-
tags: {
|
|
8
|
-
runtimeContext: "project"
|
|
9
|
-
},
|
|
10
|
-
description: "Set the maximum bundle size for the API build.",
|
|
11
|
-
paramsSchema: z.object({
|
|
12
|
-
size: z.number().int().positive().describe("Maximum bundle size in bytes.")
|
|
13
|
-
}),
|
|
14
|
-
render ({ size }) {
|
|
15
|
-
return /*#__PURE__*/ react.createElement(EnvVar, {
|
|
16
|
-
varName: "WEBINY_INFRA_API_MAX_BUNDLE_SIZE",
|
|
17
|
-
value: String(size)
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
export { ApiMaxBundleSize };
|
|
22
|
-
|
|
23
|
-
//# sourceMappingURL=ApiMaxBundleSize.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/ApiMaxBundleSize.js","sources":["../../src/extensions/ApiMaxBundleSize.tsx"],"sourcesContent":["import React from \"react\";\nimport { z } from \"zod\";\nimport { defineExtension } from \"~/defineExtension/index.js\";\nimport { EnvVar } from \"~/extensions/EnvVar.js\";\n\nexport const ApiMaxBundleSize = defineExtension({\n type: \"Infra/Api/MaxBundleSize\",\n tags: { runtimeContext: \"project\" },\n description: \"Set the maximum bundle size for the API build.\",\n paramsSchema: z.object({\n size: z.number().int().positive().describe(\"Maximum bundle size in bytes.\")\n }),\n render({ size }) {\n return <EnvVar varName=\"WEBINY_INFRA_API_MAX_BUNDLE_SIZE\" value={String(size)} />;\n }\n});\n"],"names":["ApiMaxBundleSize","defineExtension","z","size","EnvVar","String"],"mappings":";;;;AAKO,MAAMA,mBAAmBC,gBAAgB;IAC5C,MAAM;IACN,MAAM;QAAE,gBAAgB;IAAU;IAClC,aAAa;IACb,cAAcC,EAAE,MAAM,CAAC;QACnB,MAAMA,EAAE,MAAM,GAAG,GAAG,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC/C;IACA,QAAO,EAAEC,IAAI,EAAE;QACX,OAAO,WAAP,GAAO,oBAACC,QAAMA;YAAC,SAAQ;YAAmC,OAAOC,OAAOF;;IAC5E;AACJ"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineExtension } from "../../defineExtension/index.js";
|
|
2
|
-
import { zodSrcPath } from "../../defineExtension/zodTypes/zodSrcPath.js";
|
|
3
|
-
import { AdminAfterDeploy } from "../../abstractions/index.js";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
const AdminAfterDeploy_AdminAfterDeploy = defineExtension({
|
|
6
|
-
type: "Admin/AfterDeploy",
|
|
7
|
-
tags: {
|
|
8
|
-
runtimeContext: "project",
|
|
9
|
-
application: "admin"
|
|
10
|
-
},
|
|
11
|
-
description: "Add custom logic to be executed after the ADMIN deployment process.",
|
|
12
|
-
multiple: true,
|
|
13
|
-
paramsSchema: ({ project })=>z.object({
|
|
14
|
-
src: zodSrcPath({
|
|
15
|
-
project,
|
|
16
|
-
abstraction: AdminAfterDeploy
|
|
17
|
-
})
|
|
18
|
-
})
|
|
19
|
-
});
|
|
20
|
-
export { AdminAfterDeploy_AdminAfterDeploy as AdminAfterDeploy };
|
|
21
|
-
|
|
22
|
-
//# sourceMappingURL=AdminAfterDeploy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/hooks/AdminAfterDeploy.js","sources":["../../../src/extensions/hooks/AdminAfterDeploy.ts"],"sourcesContent":["import { defineExtension } from \"~/defineExtension/index.js\";\nimport { zodSrcPath } from \"~/defineExtension/zodTypes/zodSrcPath.js\";\nimport { AdminAfterDeploy as AdminAfterDeployAbstraction } from \"~/abstractions/index.js\";\nimport { z } from \"zod\";\n\nexport const AdminAfterDeploy = defineExtension({\n type: \"Admin/AfterDeploy\",\n tags: { runtimeContext: \"project\", application: \"admin\" },\n description: \"Add custom logic to be executed after the ADMIN deployment process.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project, abstraction: AdminAfterDeployAbstraction })\n });\n }\n});\n"],"names":["AdminAfterDeploy","defineExtension","project","z","zodSrcPath","AdminAfterDeployAbstraction"],"mappings":";;;;AAKO,MAAMA,oCAAmBC,gBAAgB;IAC5C,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,aAAa;IAAQ;IACxD,aAAa;IACb,UAAU;IACV,cAAc,CAAC,EAAEC,OAAO,EAAE,GACfC,EAAE,MAAM,CAAC;YACZ,KAAKC,WAAW;gBAAEF;gBAAS,aAAaG;YAA4B;QACxE;AAER"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineExtension } from "../../defineExtension/index.js";
|
|
2
|
-
import { zodSrcPath } from "../../defineExtension/zodTypes/zodSrcPath.js";
|
|
3
|
-
import { AdminBeforeDeploy } from "../../abstractions/index.js";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
const AdminBeforeDeploy_AdminBeforeDeploy = defineExtension({
|
|
6
|
-
type: "Admin/BeforeDeploy",
|
|
7
|
-
tags: {
|
|
8
|
-
runtimeContext: "project",
|
|
9
|
-
application: "admin"
|
|
10
|
-
},
|
|
11
|
-
description: "Add custom logic to be executed before the ADMIN deployment process.",
|
|
12
|
-
multiple: true,
|
|
13
|
-
paramsSchema: ({ project })=>z.object({
|
|
14
|
-
src: zodSrcPath({
|
|
15
|
-
project,
|
|
16
|
-
abstraction: AdminBeforeDeploy
|
|
17
|
-
})
|
|
18
|
-
})
|
|
19
|
-
});
|
|
20
|
-
export { AdminBeforeDeploy_AdminBeforeDeploy as AdminBeforeDeploy };
|
|
21
|
-
|
|
22
|
-
//# sourceMappingURL=AdminBeforeDeploy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/hooks/AdminBeforeDeploy.js","sources":["../../../src/extensions/hooks/AdminBeforeDeploy.ts"],"sourcesContent":["import { defineExtension } from \"~/defineExtension/index.js\";\nimport { zodSrcPath } from \"~/defineExtension/zodTypes/zodSrcPath.js\";\nimport { AdminBeforeDeploy as AdminBeforeDeployAbstraction } from \"~/abstractions/index.js\";\nimport { z } from \"zod\";\n\nexport const AdminBeforeDeploy = defineExtension({\n type: \"Admin/BeforeDeploy\",\n tags: { runtimeContext: \"project\", application: \"admin\" },\n description: \"Add custom logic to be executed before the ADMIN deployment process.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project, abstraction: AdminBeforeDeployAbstraction })\n });\n }\n});\n"],"names":["AdminBeforeDeploy","defineExtension","project","z","zodSrcPath","AdminBeforeDeployAbstraction"],"mappings":";;;;AAKO,MAAMA,sCAAoBC,gBAAgB;IAC7C,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,aAAa;IAAQ;IACxD,aAAa;IACb,UAAU;IACV,cAAc,CAAC,EAAEC,OAAO,EAAE,GACfC,EAAE,MAAM,CAAC;YACZ,KAAKC,WAAW;gBAAEF;gBAAS,aAAaG;YAA6B;QACzE;AAER"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { defineExtension } from "../../defineExtension/index.js";
|
|
2
|
-
import { zodSrcPath } from "../../defineExtension/zodTypes/zodSrcPath.js";
|
|
3
|
-
import { AfterDeploy } from "../../abstractions/index.js";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
const AfterDeploy_AfterDeploy = defineExtension({
|
|
6
|
-
type: "Project/AfterDeploy",
|
|
7
|
-
tags: {
|
|
8
|
-
runtimeContext: "project"
|
|
9
|
-
},
|
|
10
|
-
description: "Add custom logic to be executed after the PROJECT deploy process.",
|
|
11
|
-
multiple: true,
|
|
12
|
-
paramsSchema: ({ project })=>z.object({
|
|
13
|
-
src: zodSrcPath({
|
|
14
|
-
project,
|
|
15
|
-
abstraction: AfterDeploy
|
|
16
|
-
})
|
|
17
|
-
})
|
|
18
|
-
});
|
|
19
|
-
export { AfterDeploy_AfterDeploy as AfterDeploy };
|
|
20
|
-
|
|
21
|
-
//# sourceMappingURL=AfterDeploy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/hooks/AfterDeploy.js","sources":["../../../src/extensions/hooks/AfterDeploy.ts"],"sourcesContent":["import { defineExtension } from \"~/defineExtension/index.js\";\nimport { zodSrcPath } from \"~/defineExtension/zodTypes/zodSrcPath.js\";\nimport { AfterDeploy as AfterDeployAbstraction } from \"~/abstractions/index.js\";\nimport { z } from \"zod\";\n\nexport const AfterDeploy = defineExtension({\n type: \"Project/AfterDeploy\",\n tags: { runtimeContext: \"project\" },\n description: \"Add custom logic to be executed after the PROJECT deploy process.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project, abstraction: AfterDeployAbstraction })\n });\n }\n});\n"],"names":["AfterDeploy","defineExtension","project","z","zodSrcPath","AfterDeployAbstraction"],"mappings":";;;;AAKO,MAAMA,0BAAcC,gBAAgB;IACvC,MAAM;IACN,MAAM;QAAE,gBAAgB;IAAU;IAClC,aAAa;IACb,UAAU;IACV,cAAc,CAAC,EAAEC,OAAO,EAAE,GACfC,EAAE,MAAM,CAAC;YACZ,KAAKC,WAAW;gBAAEF;gBAAS,aAAaG;YAAuB;QACnE;AAER"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineExtension } from "../../defineExtension/index.js";
|
|
2
|
-
import { zodSrcPath } from "../../defineExtension/zodTypes/zodSrcPath.js";
|
|
3
|
-
import { ApiAfterDeploy } from "../../abstractions/index.js";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
const ApiAfterDeploy_ApiAfterDeploy = defineExtension({
|
|
6
|
-
type: "Api/AfterDeploy",
|
|
7
|
-
tags: {
|
|
8
|
-
runtimeContext: "project",
|
|
9
|
-
application: "api"
|
|
10
|
-
},
|
|
11
|
-
description: "Add custom logic to be executed after the API deployment process.",
|
|
12
|
-
multiple: true,
|
|
13
|
-
paramsSchema: ({ project })=>z.object({
|
|
14
|
-
src: zodSrcPath({
|
|
15
|
-
project,
|
|
16
|
-
abstraction: ApiAfterDeploy
|
|
17
|
-
})
|
|
18
|
-
})
|
|
19
|
-
});
|
|
20
|
-
export { ApiAfterDeploy_ApiAfterDeploy as ApiAfterDeploy };
|
|
21
|
-
|
|
22
|
-
//# sourceMappingURL=ApiAfterDeploy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/hooks/ApiAfterDeploy.js","sources":["../../../src/extensions/hooks/ApiAfterDeploy.ts"],"sourcesContent":["import { defineExtension } from \"~/defineExtension/index.js\";\nimport { zodSrcPath } from \"~/defineExtension/zodTypes/zodSrcPath.js\";\nimport { ApiAfterDeploy as ApiAfterDeployAbstraction } from \"~/abstractions/index.js\";\nimport { z } from \"zod\";\n\nexport const ApiAfterDeploy = defineExtension({\n type: \"Api/AfterDeploy\",\n tags: { runtimeContext: \"project\", application: \"api\" },\n description: \"Add custom logic to be executed after the API deployment process.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project, abstraction: ApiAfterDeployAbstraction })\n });\n }\n});\n"],"names":["ApiAfterDeploy","defineExtension","project","z","zodSrcPath","ApiAfterDeployAbstraction"],"mappings":";;;;AAKO,MAAMA,gCAAiBC,gBAAgB;IAC1C,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,aAAa;IAAM;IACtD,aAAa;IACb,UAAU;IACV,cAAc,CAAC,EAAEC,OAAO,EAAE,GACfC,EAAE,MAAM,CAAC;YACZ,KAAKC,WAAW;gBAAEF;gBAAS,aAAaG;YAA0B;QACtE;AAER"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineExtension } from "../../defineExtension/index.js";
|
|
2
|
-
import { zodSrcPath } from "../../defineExtension/zodTypes/zodSrcPath.js";
|
|
3
|
-
import { ApiBeforeDeploy } from "../../abstractions/index.js";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
const ApiBeforeDeploy_ApiBeforeDeploy = defineExtension({
|
|
6
|
-
type: "Api/BeforeDeploy",
|
|
7
|
-
tags: {
|
|
8
|
-
runtimeContext: "project",
|
|
9
|
-
application: "api"
|
|
10
|
-
},
|
|
11
|
-
description: "Add custom logic to be executed before the API deployment process.",
|
|
12
|
-
multiple: true,
|
|
13
|
-
paramsSchema: ({ project })=>z.object({
|
|
14
|
-
src: zodSrcPath({
|
|
15
|
-
project,
|
|
16
|
-
abstraction: ApiBeforeDeploy
|
|
17
|
-
})
|
|
18
|
-
})
|
|
19
|
-
});
|
|
20
|
-
export { ApiBeforeDeploy_ApiBeforeDeploy as ApiBeforeDeploy };
|
|
21
|
-
|
|
22
|
-
//# sourceMappingURL=ApiBeforeDeploy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/hooks/ApiBeforeDeploy.js","sources":["../../../src/extensions/hooks/ApiBeforeDeploy.ts"],"sourcesContent":["import { defineExtension } from \"~/defineExtension/index.js\";\nimport { zodSrcPath } from \"~/defineExtension/zodTypes/zodSrcPath.js\";\nimport { ApiBeforeDeploy as ApiBeforeDeployAbstraction } from \"~/abstractions/index.js\";\nimport { z } from \"zod\";\n\nexport const ApiBeforeDeploy = defineExtension({\n type: \"Api/BeforeDeploy\",\n tags: { runtimeContext: \"project\", application: \"api\" },\n description: \"Add custom logic to be executed before the API deployment process.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project, abstraction: ApiBeforeDeployAbstraction })\n });\n }\n});\n"],"names":["ApiBeforeDeploy","defineExtension","project","z","zodSrcPath","ApiBeforeDeployAbstraction"],"mappings":";;;;AAKO,MAAMA,kCAAkBC,gBAAgB;IAC3C,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,aAAa;IAAM;IACtD,aAAa;IACb,UAAU;IACV,cAAc,CAAC,EAAEC,OAAO,EAAE,GACfC,EAAE,MAAM,CAAC;YACZ,KAAKC,WAAW;gBAAEF;gBAAS,aAAaG;YAA2B;QACvE;AAER"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { defineExtension } from "../../defineExtension/index.js";
|
|
2
|
-
import { zodSrcPath } from "../../defineExtension/zodTypes/zodSrcPath.js";
|
|
3
|
-
import { BeforeDeploy } from "../../abstractions/index.js";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
const BeforeDeploy_BeforeDeploy = defineExtension({
|
|
6
|
-
type: "Project/BeforeDeploy",
|
|
7
|
-
tags: {
|
|
8
|
-
runtimeContext: "project"
|
|
9
|
-
},
|
|
10
|
-
description: "Add custom logic to be executed before the PROJECT deploy process.",
|
|
11
|
-
multiple: true,
|
|
12
|
-
paramsSchema: ({ project })=>z.object({
|
|
13
|
-
src: zodSrcPath({
|
|
14
|
-
project,
|
|
15
|
-
abstraction: BeforeDeploy
|
|
16
|
-
})
|
|
17
|
-
})
|
|
18
|
-
});
|
|
19
|
-
export { BeforeDeploy_BeforeDeploy as BeforeDeploy };
|
|
20
|
-
|
|
21
|
-
//# sourceMappingURL=BeforeDeploy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/hooks/BeforeDeploy.js","sources":["../../../src/extensions/hooks/BeforeDeploy.ts"],"sourcesContent":["import { defineExtension } from \"~/defineExtension/index.js\";\nimport { zodSrcPath } from \"~/defineExtension/zodTypes/zodSrcPath.js\";\nimport { BeforeDeploy as BeforeDeployAbstraction } from \"~/abstractions/index.js\";\nimport { z } from \"zod\";\n\nexport const BeforeDeploy = defineExtension({\n type: \"Project/BeforeDeploy\",\n tags: { runtimeContext: \"project\" },\n description: \"Add custom logic to be executed before the PROJECT deploy process.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project, abstraction: BeforeDeployAbstraction })\n });\n }\n});\n"],"names":["BeforeDeploy","defineExtension","project","z","zodSrcPath","BeforeDeployAbstraction"],"mappings":";;;;AAKO,MAAMA,4BAAeC,gBAAgB;IACxC,MAAM;IACN,MAAM;QAAE,gBAAgB;IAAU;IAClC,aAAa;IACb,UAAU;IACV,cAAc,CAAC,EAAEC,OAAO,EAAE,GACfC,EAAE,MAAM,CAAC;YACZ,KAAKC,WAAW;gBAAEF;gBAAS,aAAaG;YAAwB;QACpE;AAER"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineExtension } from "../../defineExtension/index.js";
|
|
2
|
-
import { zodSrcPath } from "../../defineExtension/zodTypes/zodSrcPath.js";
|
|
3
|
-
import { CoreAfterDeploy } from "../../abstractions/index.js";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
const CoreAfterDeploy_CoreAfterDeploy = defineExtension({
|
|
6
|
-
type: "Core/AfterDeploy",
|
|
7
|
-
tags: {
|
|
8
|
-
runtimeContext: "project",
|
|
9
|
-
application: "core"
|
|
10
|
-
},
|
|
11
|
-
description: "Add custom logic to be executed after the CORE deployment process.",
|
|
12
|
-
multiple: true,
|
|
13
|
-
paramsSchema: ({ project })=>z.object({
|
|
14
|
-
src: zodSrcPath({
|
|
15
|
-
project,
|
|
16
|
-
abstraction: CoreAfterDeploy
|
|
17
|
-
})
|
|
18
|
-
})
|
|
19
|
-
});
|
|
20
|
-
export { CoreAfterDeploy_CoreAfterDeploy as CoreAfterDeploy };
|
|
21
|
-
|
|
22
|
-
//# sourceMappingURL=CoreAfterDeploy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/hooks/CoreAfterDeploy.js","sources":["../../../src/extensions/hooks/CoreAfterDeploy.ts"],"sourcesContent":["import { defineExtension } from \"~/defineExtension/index.js\";\nimport { zodSrcPath } from \"~/defineExtension/zodTypes/zodSrcPath.js\";\nimport { CoreAfterDeploy as CoreAfterDeployAbstraction } from \"~/abstractions/index.js\";\nimport { z } from \"zod\";\n\nexport const CoreAfterDeploy = defineExtension({\n type: \"Core/AfterDeploy\",\n tags: { runtimeContext: \"project\", application: \"core\" },\n description: \"Add custom logic to be executed after the CORE deployment process.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project, abstraction: CoreAfterDeployAbstraction })\n });\n }\n});\n"],"names":["CoreAfterDeploy","defineExtension","project","z","zodSrcPath","CoreAfterDeployAbstraction"],"mappings":";;;;AAKO,MAAMA,kCAAkBC,gBAAgB;IAC3C,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;YAA2B;QACvE;AAER"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineExtension } from "../../defineExtension/index.js";
|
|
2
|
-
import { zodSrcPath } from "../../defineExtension/zodTypes/zodSrcPath.js";
|
|
3
|
-
import { CoreBeforeDeploy } from "../../abstractions/index.js";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
const CoreBeforeDeploy_CoreBeforeDeploy = defineExtension({
|
|
6
|
-
type: "Core/BeforeDeploy",
|
|
7
|
-
tags: {
|
|
8
|
-
runtimeContext: "project",
|
|
9
|
-
application: "core"
|
|
10
|
-
},
|
|
11
|
-
description: "Add custom logic to be executed before the CORE deployment process.",
|
|
12
|
-
multiple: true,
|
|
13
|
-
paramsSchema: ({ project })=>z.object({
|
|
14
|
-
src: zodSrcPath({
|
|
15
|
-
project,
|
|
16
|
-
abstraction: CoreBeforeDeploy
|
|
17
|
-
})
|
|
18
|
-
})
|
|
19
|
-
});
|
|
20
|
-
export { CoreBeforeDeploy_CoreBeforeDeploy as CoreBeforeDeploy };
|
|
21
|
-
|
|
22
|
-
//# sourceMappingURL=CoreBeforeDeploy.js.map
|