@webiny/project 6.6.0-alpha.10 → 6.6.0-alpha.12
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/createProjectSdkContainer.js +1 -3
- package/createProjectSdkContainer.js.map +1 -1
- package/decorators/index.d.ts +0 -6
- package/decorators/index.js +0 -6
- package/defineExtension/types.d.ts +1 -1
- 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/AdminWebsocketsUrl.d.ts +5 -3
- package/extensions/AdminWebsocketsUrl.js +1 -1
- package/extensions/AdminWebsocketsUrl.js.map +1 -1
- package/extensions/DatabaseSetup.d.ts +1 -0
- package/extensions/DatabaseSetup.js +4 -3
- package/extensions/DatabaseSetup.js.map +1 -1
- package/extensions/{pulumi/ProductionEnvironments.js → ProductionEnvironments.js} +2 -2
- package/extensions/ProductionEnvironments.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 +21 -0
- package/extensions/api/Route/routePath.js +10 -0
- package/extensions/api/Route/routePath.js.map +1 -0
- package/extensions/api/index.d.ts +1 -0
- package/extensions/api/index.js +1 -0
- package/extensions/hooks/index.d.ts +0 -8
- package/extensions/hooks/index.js +0 -8
- package/extensions/hosting/extensionImplementations.d.ts +5 -4
- package/extensions/hosting/extensionImplementations.js.map +1 -1
- package/extensions/index.d.ts +7 -17
- package/extensions/index.js +5 -13
- package/extensions/index.js.map +1 -1
- package/features/GetProductionEnvironments/GetProductionEnvironments.js +1 -1
- package/features/GetProductionEnvironments/GetProductionEnvironments.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 +8 -14
- package/services/GetAppService/GetAppService.js +1 -3
- package/services/GetAppService/GetAppService.js.map +1 -1
- 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 +18 -12
- package/services/InitProjectSdkService/InitProjectSdkService.js.map +1 -1
- package/services/InitProjectSdkService/registerHooks.js +4 -16
- package/services/InitProjectSdkService/registerHooks.js.map +1 -1
- package/services/InstallExtensionService/updateWebinyConfig.js +9 -23
- package/services/InstallExtensionService/updateWebinyConfig.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/SetProjectIdService/SetProjectIdService.js +2 -7
- package/services/SetProjectIdService/SetProjectIdService.js.map +1 -1
- package/services/index.d.ts +0 -12
- package/services/index.js +0 -12
- package/utils/ensureNamedImport.d.ts +12 -0
- package/utils/ensureNamedImport.js +27 -0
- package/utils/ensureNamedImport.js.map +1 -0
- 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/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 -22
- 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/hooks/AdminAfterDeploy.d.ts +0 -4
- package/extensions/hooks/AdminAfterDeploy.js +0 -23
- package/extensions/hooks/AdminAfterDeploy.js.map +0 -1
- package/extensions/hooks/AdminBeforeDeploy.d.ts +0 -4
- package/extensions/hooks/AdminBeforeDeploy.js +0 -23
- package/extensions/hooks/AdminBeforeDeploy.js.map +0 -1
- package/extensions/hooks/AfterDeploy.d.ts +0 -4
- package/extensions/hooks/AfterDeploy.js +0 -22
- package/extensions/hooks/AfterDeploy.js.map +0 -1
- package/extensions/hooks/ApiAfterDeploy.d.ts +0 -4
- package/extensions/hooks/ApiAfterDeploy.js +0 -23
- package/extensions/hooks/ApiAfterDeploy.js.map +0 -1
- package/extensions/hooks/ApiBeforeDeploy.d.ts +0 -4
- package/extensions/hooks/ApiBeforeDeploy.js +0 -23
- package/extensions/hooks/ApiBeforeDeploy.js.map +0 -1
- package/extensions/hooks/BeforeDeploy.d.ts +0 -4
- package/extensions/hooks/BeforeDeploy.js +0 -22
- package/extensions/hooks/BeforeDeploy.js.map +0 -1
- package/extensions/hooks/CoreAfterDeploy.d.ts +0 -4
- package/extensions/hooks/CoreAfterDeploy.js +0 -23
- package/extensions/hooks/CoreAfterDeploy.js.map +0 -1
- package/extensions/hooks/CoreBeforeDeploy.d.ts +0 -4
- package/extensions/hooks/CoreBeforeDeploy.js +0 -23
- package/extensions/hooks/CoreBeforeDeploy.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 -16
- package/extensions/pulumi/PulumiResourceNamePrefix.js.map +0 -1
- package/extensions/pulumi/index.d.ts +0 -2
- package/extensions/pulumi/index.js +0 -2
- 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.d.ts +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/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
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { createImplementation } from "@webiny/di";
|
|
2
|
-
import { GetIsCiService, GetNpmVersionService, GetNpxVersionService, GetProjectVersionService,
|
|
2
|
+
import { GetIsCiService, GetNpmVersionService, GetNpxVersionService, GetProjectVersionService, GetYarnVersionService, ProjectInfoService } from "../../abstractions/index.js";
|
|
3
3
|
class DefaultProjectInfoService {
|
|
4
|
-
constructor(getIsCi, getNpmVersion, getNpxVersion,
|
|
4
|
+
constructor(getIsCi, getNpmVersion, getNpxVersion, getYarnVersion, getProjectVersion){
|
|
5
5
|
this.getIsCi = getIsCi;
|
|
6
6
|
this.getNpmVersion = getNpmVersion;
|
|
7
7
|
this.getNpxVersion = getNpxVersion;
|
|
8
|
-
this.getPulumiVersion = getPulumiVersion;
|
|
9
8
|
this.getYarnVersion = getYarnVersion;
|
|
10
9
|
this.getProjectVersion = getProjectVersion;
|
|
11
10
|
}
|
|
@@ -16,7 +15,6 @@ class DefaultProjectInfoService {
|
|
|
16
15
|
const npmVersion = this.getNpmVersion.execute();
|
|
17
16
|
const npxVersion = this.getNpxVersion.execute();
|
|
18
17
|
const yarnVersion = this.getYarnVersion.execute();
|
|
19
|
-
const [pulumiVersion, pulumiAwsVersion] = this.getPulumiVersion.execute();
|
|
20
18
|
return {
|
|
21
19
|
webiny: {
|
|
22
20
|
version: this.getProjectVersion.execute(),
|
|
@@ -35,12 +33,7 @@ class DefaultProjectInfoService {
|
|
|
35
33
|
yarn: yarnVersion,
|
|
36
34
|
isCI: isCI
|
|
37
35
|
},
|
|
38
|
-
|
|
39
|
-
"@pulumi/pulumi": pulumiVersion,
|
|
40
|
-
"@pulumi/aws": pulumiAwsVersion,
|
|
41
|
-
secretsProvider: process.env.PULUMI_SECRETS_PROVIDER || "",
|
|
42
|
-
usingPassword: !!process.env.PULUMI_CONFIG_PASSPHRASE
|
|
43
|
-
}
|
|
36
|
+
sections: []
|
|
44
37
|
};
|
|
45
38
|
}
|
|
46
39
|
}
|
|
@@ -51,7 +44,6 @@ const projectInfoService = createImplementation({
|
|
|
51
44
|
GetIsCiService,
|
|
52
45
|
GetNpmVersionService,
|
|
53
46
|
GetNpxVersionService,
|
|
54
|
-
GetPulumiVersionService,
|
|
55
47
|
GetYarnVersionService,
|
|
56
48
|
GetProjectVersionService
|
|
57
49
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"services/ProjectInfoService/ProjectInfoService.js","sources":["../../../src/services/ProjectInfoService/ProjectInfoService.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport {\
|
|
1
|
+
{"version":3,"file":"services/ProjectInfoService/ProjectInfoService.js","sources":["../../../src/services/ProjectInfoService/ProjectInfoService.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { ProjectInfoService } from \"~/abstractions/index.js\";\nimport { GetIsCiService } from \"~/abstractions/index.js\";\nimport { GetNpmVersionService } from \"~/abstractions/index.js\";\nimport { GetNpxVersionService } from \"~/abstractions/index.js\";\nimport { GetYarnVersionService } from \"~/abstractions/index.js\";\nimport { GetProjectVersionService } from \"~/abstractions/index.js\";\nimport { IProjectInfoServiceResult } from \"~/abstractions/services/ProjectInfoService/ProjectInfoService.js\";\n\nexport class DefaultProjectInfoService implements ProjectInfoService.Interface {\n constructor(\n private getIsCi: GetIsCiService.Interface,\n private getNpmVersion: GetNpmVersionService.Interface,\n private getNpxVersion: GetNpxVersionService.Interface,\n private getYarnVersion: GetYarnVersionService.Interface,\n private getProjectVersion: GetProjectVersionService.Interface\n ) {}\n\n async execute() {\n const wcpProjectId = process.env.WEBINY_PROJECT_ID || process.env.WCP_PROJECT_ID || \"\";\n // const wcpUser = await getUser().catch(() => null);\n // oxlint-disable-next-line typescript/no-unused-vars\n const wcpUsingProjectEnvironmentApiKey = Boolean(\n process.env.WEBINY_PROJECT_API_KEY ||\n process.env.WCP_PROJECT_ENVIRONMENT_API_KEY ||\n process.env.WCP_ENVIRONMENT_API_KEY\n );\n\n const isCI = this.getIsCi.execute();\n const npmVersion = this.getNpmVersion.execute();\n const npxVersion = this.getNpxVersion.execute();\n const yarnVersion = this.getYarnVersion.execute();\n\n return {\n webiny: {\n version: this.getProjectVersion.execute(),\n debugEnabled: process.env.DEBUG === \"true\",\n featureFlags: process.env.WEBINY_FEATURE_FLAGS || {}\n },\n wcp: {\n projectId: wcpProjectId,\n // user: wcpUser?.email || \"N/A\",\n usingProjectEnvironmentApiKey: false // wcpUsingProject\n },\n host: {\n os: `${process.platform} (${process.arch})`,\n nodeJs: process.version,\n npm: npmVersion,\n npx: npxVersion,\n yarn: yarnVersion,\n isCI: isCI\n },\n sections: []\n } as IProjectInfoServiceResult;\n }\n}\n\nexport const projectInfoService = createImplementation({\n abstraction: ProjectInfoService,\n implementation: DefaultProjectInfoService,\n dependencies: [\n GetIsCiService,\n GetNpmVersionService,\n GetNpxVersionService,\n GetYarnVersionService,\n GetProjectVersionService\n ]\n});\n"],"names":["DefaultProjectInfoService","getIsCi","getNpmVersion","getNpxVersion","getYarnVersion","getProjectVersion","wcpProjectId","process","Boolean","isCI","npmVersion","npxVersion","yarnVersion","projectInfoService","createImplementation","ProjectInfoService","GetIsCiService","GetNpmVersionService","GetNpxVersionService","GetYarnVersionService","GetProjectVersionService"],"mappings":";;AASO,MAAMA;IACT,YACYC,OAAiC,EACjCC,aAA6C,EAC7CC,aAA6C,EAC7CC,cAA+C,EAC/CC,iBAAqD,CAC/D;aALUJ,OAAO,GAAPA;aACAC,aAAa,GAAbA;aACAC,aAAa,GAAbA;aACAC,cAAc,GAAdA;aACAC,iBAAiB,GAAjBA;IACT;IAEH,MAAM,UAAU;QACZ,MAAMC,eAAeC,QAAQ,GAAG,CAAC,iBAAiB,IAAIA,QAAQ,GAAG,CAAC,cAAc,IAAI;QAG3CC,QACrCD,QAAQ,GAAG,CAAC,sBAAsB,IAClCA,QAAQ,GAAG,CAAC,+BAA+B,IAC3CA,QAAQ,GAAG,CAAC,uBAAuB;QAGvC,MAAME,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO;QACjC,MAAMC,aAAa,IAAI,CAAC,aAAa,CAAC,OAAO;QAC7C,MAAMC,aAAa,IAAI,CAAC,aAAa,CAAC,OAAO;QAC7C,MAAMC,cAAc,IAAI,CAAC,cAAc,CAAC,OAAO;QAE/C,OAAO;YACH,QAAQ;gBACJ,SAAS,IAAI,CAAC,iBAAiB,CAAC,OAAO;gBACvC,cAAcL,AAAsB,WAAtBA,QAAQ,GAAG,CAAC,KAAK;gBAC/B,cAAcA,QAAQ,GAAG,CAAC,oBAAoB,IAAI,CAAC;YACvD;YACA,KAAK;gBACD,WAAWD;gBAEX,+BAA+B;YACnC;YACA,MAAM;gBACF,IAAI,GAAGC,QAAQ,QAAQ,CAAC,EAAE,EAAEA,QAAQ,IAAI,CAAC,CAAC,CAAC;gBAC3C,QAAQA,QAAQ,OAAO;gBACvB,KAAKG;gBACL,KAAKC;gBACL,MAAMC;gBACN,MAAMH;YACV;YACA,UAAU,EAAE;QAChB;IACJ;AACJ;AAEO,MAAMI,qBAAqBC,qBAAqB;IACnD,aAAaC;IACb,gBAAgBf;IAChB,cAAc;QACVgB;QACAC;QACAC;QACAC;QACAC;KACH;AACL"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createImplementation } from "@webiny/di";
|
|
2
2
|
import { GetProjectService, SetProjectIdService } from "../../abstractions/index.js";
|
|
3
3
|
import { Project, SyntaxKind } from "ts-morph";
|
|
4
|
+
import { ensureNamedImport } from "../../utils/ensureNamedImport.js";
|
|
4
5
|
class DefaultSetProjectIdService {
|
|
5
6
|
constructor(getProjectService){
|
|
6
7
|
this.getProjectService = getProjectService;
|
|
@@ -10,13 +11,7 @@ class DefaultSetProjectIdService {
|
|
|
10
11
|
const webinyConfigFileTsx = project.paths.webinyConfigFile.toString();
|
|
11
12
|
const tsMorphProject = new Project();
|
|
12
13
|
const sourceFile = tsMorphProject.addSourceFileAtPath(webinyConfigFileTsx);
|
|
13
|
-
|
|
14
|
-
if (!hasProjectImport) sourceFile.insertImportDeclaration(0, {
|
|
15
|
-
namedImports: [
|
|
16
|
-
"Project"
|
|
17
|
-
],
|
|
18
|
-
moduleSpecifier: "webiny/extensions"
|
|
19
|
-
});
|
|
14
|
+
ensureNamedImport(sourceFile, "Project", "webiny/extensions");
|
|
20
15
|
const jsxElements = sourceFile.getDescendantsOfKind(SyntaxKind.JsxSelfClosingElement);
|
|
21
16
|
const existingProjectIdEl = jsxElements.find((el)=>"Project.Id" === el.getTagNameNode().getText());
|
|
22
17
|
if (existingProjectIdEl) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"services/SetProjectIdService/SetProjectIdService.js","sources":["../../../src/services/SetProjectIdService/SetProjectIdService.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { GetProjectService, SetProjectIdService } from \"~/abstractions/index.js\";\nimport { Project as TsMorphProject, SyntaxKind } from \"ts-morph\";\n\nclass DefaultSetProjectIdService implements SetProjectIdService.Interface {\n constructor(private getProjectService: GetProjectService.Interface) {}\n\n async execute(id: string, options: SetProjectIdService.Options = {}) {\n const project = this.getProjectService.execute();\n const webinyConfigFileTsx = project.paths.webinyConfigFile.toString();\n\n const tsMorphProject = new TsMorphProject();\n const sourceFile = tsMorphProject.addSourceFileAtPath(webinyConfigFileTsx);\n\n
|
|
1
|
+
{"version":3,"file":"services/SetProjectIdService/SetProjectIdService.js","sources":["../../../src/services/SetProjectIdService/SetProjectIdService.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { GetProjectService, SetProjectIdService } from \"~/abstractions/index.js\";\nimport { Project as TsMorphProject, SyntaxKind } from \"ts-morph\";\nimport { ensureNamedImport } from \"~/utils/ensureNamedImport.js\";\n\nclass DefaultSetProjectIdService implements SetProjectIdService.Interface {\n constructor(private getProjectService: GetProjectService.Interface) {}\n\n async execute(id: string, options: SetProjectIdService.Options = {}) {\n const project = this.getProjectService.execute();\n const webinyConfigFileTsx = project.paths.webinyConfigFile.toString();\n\n const tsMorphProject = new TsMorphProject();\n const sourceFile = tsMorphProject.addSourceFileAtPath(webinyConfigFileTsx);\n\n ensureNamedImport(sourceFile, \"Project\", \"webiny/extensions\");\n\n const jsxElements = sourceFile.getDescendantsOfKind(SyntaxKind.JsxSelfClosingElement);\n\n // Check for existing <Project.Id />.\n const existingProjectIdEl = jsxElements.find(\n el => el.getTagNameNode().getText() === \"Project.Id\"\n );\n if (existingProjectIdEl) {\n if (options.force !== true) {\n throw new Error(\"Project.Id already exists in the file.\");\n }\n // Update the id attribute in-place.\n const idAttr = existingProjectIdEl\n .getAttributes()\n .find(attr => attr.getFirstChildByKind(SyntaxKind.Identifier)?.getText() === \"id\");\n if (idAttr) {\n idAttr.replaceWithText(`id={\"${id}\"}`);\n } else {\n existingProjectIdEl.replaceWithText(`<Project.Id id={\"${id}\"} />`);\n }\n await sourceFile.save();\n return;\n }\n\n /* Determine the insertion point — after the last <Project.*> element that is a\n direct child of the outermost JSX fragment (i.e. not inside a conditional expression).\n Fall back to inserting after the opening tag of the outermost JSX fragment. */\n const fragment = sourceFile.getFirstDescendantByKind(SyntaxKind.JsxFragment);\n const projectEls = jsxElements.filter(\n el =>\n el.getTagNameNode().getText().startsWith(\"Project.\") &&\n el.getParent()?.getParent() === fragment\n );\n\n if (projectEls.length > 0) {\n const lastProjectEl = projectEls[projectEls.length - 1];\n sourceFile.insertText(\n lastProjectEl.getEnd(),\n `\\n <Project.Id id={\"${id}\"} />`\n );\n } else {\n // Fallback: insert as first child of the outermost JSX fragment.\n if (!fragment) {\n throw new Error(\n `Could not find a JSX fragment or <Project.*> element to anchor <Project.Id /> in ${webinyConfigFileTsx}`\n );\n }\n const openingFragment = fragment.getOpeningFragment();\n sourceFile.insertText(\n openingFragment.getEnd(),\n `\\n <Project.Id id={\"${id}\"} />`\n );\n }\n\n await sourceFile.save();\n }\n}\n\nexport const setProjectIdService = createImplementation({\n abstraction: SetProjectIdService,\n implementation: DefaultSetProjectIdService,\n dependencies: [GetProjectService]\n});\n"],"names":["DefaultSetProjectIdService","getProjectService","id","options","project","webinyConfigFileTsx","tsMorphProject","TsMorphProject","sourceFile","ensureNamedImport","jsxElements","SyntaxKind","existingProjectIdEl","el","Error","idAttr","attr","fragment","projectEls","lastProjectEl","openingFragment","setProjectIdService","createImplementation","SetProjectIdService","GetProjectService"],"mappings":";;;;AAKA,MAAMA;IACF,YAAoBC,iBAA8C,CAAE;aAAhDA,iBAAiB,GAAjBA;IAAiD;IAErE,MAAM,QAAQC,EAAU,EAAEC,UAAuC,CAAC,CAAC,EAAE;QACjE,MAAMC,UAAU,IAAI,CAAC,iBAAiB,CAAC,OAAO;QAC9C,MAAMC,sBAAsBD,QAAQ,KAAK,CAAC,gBAAgB,CAAC,QAAQ;QAEnE,MAAME,iBAAiB,IAAIC;QAC3B,MAAMC,aAAaF,eAAe,mBAAmB,CAACD;QAEtDI,kBAAkBD,YAAY,WAAW;QAEzC,MAAME,cAAcF,WAAW,oBAAoB,CAACG,WAAW,qBAAqB;QAGpF,MAAMC,sBAAsBF,YAAY,IAAI,CACxCG,CAAAA,KAAMA,AAAkC,iBAAlCA,GAAG,cAAc,GAAG,OAAO;QAErC,IAAID,qBAAqB;YACrB,IAAIT,AAAkB,SAAlBA,QAAQ,KAAK,EACb,MAAM,IAAIW,MAAM;YAGpB,MAAMC,SAASH,oBACV,aAAa,GACb,IAAI,CAACI,CAAAA,OAAQA,KAAK,mBAAmB,CAACL,WAAW,UAAU,GAAG,cAAc;YACjF,IAAII,QACAA,OAAO,eAAe,CAAC,CAAC,KAAK,EAAEb,GAAG,EAAE,CAAC;iBAErCU,oBAAoB,eAAe,CAAC,CAAC,iBAAiB,EAAEV,GAAG,KAAK,CAAC;YAErE,MAAMM,WAAW,IAAI;YACrB;QACJ;QAKA,MAAMS,WAAWT,WAAW,wBAAwB,CAACG,WAAW,WAAW;QAC3E,MAAMO,aAAaR,YAAY,MAAM,CACjCG,CAAAA,KACIA,GAAG,cAAc,GAAG,OAAO,GAAG,UAAU,CAAC,eACzCA,GAAG,SAAS,IAAI,gBAAgBI;QAGxC,IAAIC,WAAW,MAAM,GAAG,GAAG;YACvB,MAAMC,gBAAgBD,UAAU,CAACA,WAAW,MAAM,GAAG,EAAE;YACvDV,WAAW,UAAU,CACjBW,cAAc,MAAM,IACpB,CAAC,+BAA+B,EAAEjB,GAAG,KAAK,CAAC;QAEnD,OAAO;YAEH,IAAI,CAACe,UACD,MAAM,IAAIH,MACN,CAAC,iFAAiF,EAAET,qBAAqB;YAGjH,MAAMe,kBAAkBH,SAAS,kBAAkB;YACnDT,WAAW,UAAU,CACjBY,gBAAgB,MAAM,IACtB,CAAC,+BAA+B,EAAElB,GAAG,KAAK,CAAC;QAEnD;QAEA,MAAMM,WAAW,IAAI;IACzB;AACJ;AAEO,MAAMa,sBAAsBC,qBAAqB;IACpD,aAAaC;IACb,gBAAgBvB;IAChB,cAAc;QAACwB;KAAkB;AACrC"}
|
package/services/index.d.ts
CHANGED
|
@@ -10,9 +10,6 @@ export * from "./GetProjectInstallationIdService/index.js";
|
|
|
10
10
|
export * from "./GetProjectVersionService/index.js";
|
|
11
11
|
export * from "./InitProjectSdkService/index.js";
|
|
12
12
|
export * from "./InstallExtensionService/index.js";
|
|
13
|
-
export * from "./IsRemotePulumiBackendService/index.js";
|
|
14
|
-
export * from "./ListAppLambdaFunctionsService/index.js";
|
|
15
|
-
export * from "./ListDeployedEnvironmentsService/index.js";
|
|
16
13
|
export * from "./ListPackagesInAppWorkspaceService/index.js";
|
|
17
14
|
export * from "./ListPackagesService/index.js";
|
|
18
15
|
export * from "./LoadEnvVarsService/index.js";
|
|
@@ -20,17 +17,8 @@ export * from "./LocalStorageService/index.js";
|
|
|
20
17
|
export * from "./LoggerService/index.js";
|
|
21
18
|
export * from "./ProjectInfoService/index.js";
|
|
22
19
|
export * from "./ProjectSdkParamsService/index.js";
|
|
23
|
-
export * from "./PulumiGetConfigPassphraseService/index.js";
|
|
24
|
-
export * from "./PulumiGetSecretsProviderService/index.js";
|
|
25
|
-
export * from "./PulumiExportService/index.js";
|
|
26
|
-
export * from "./PulumiImportService/index.js";
|
|
27
|
-
export * from "./PulumiGetStackOutputService/index.js";
|
|
28
|
-
export * from "./PulumiLoginService/index.js";
|
|
29
|
-
export * from "./PulumiSelectStackService/index.js";
|
|
30
20
|
export * from "./SetProjectIdService/index.js";
|
|
31
|
-
export * from "./StackOutputCacheService/index.js";
|
|
32
21
|
export * from "./StdioService/index.js";
|
|
33
22
|
export * from "./UiService/index.js";
|
|
34
23
|
export * from "./ValidateProjectConfigService/index.js";
|
|
35
|
-
export * from "./WatchedLambdaFunctionsService/index.js";
|
|
36
24
|
export * from "./WcpService/index.js";
|
package/services/index.js
CHANGED
|
@@ -10,9 +10,6 @@ export * from "./GetProjectInstallationIdService/index.js";
|
|
|
10
10
|
export * from "./GetProjectVersionService/index.js";
|
|
11
11
|
export * from "./InitProjectSdkService/index.js";
|
|
12
12
|
export * from "./InstallExtensionService/index.js";
|
|
13
|
-
export * from "./IsRemotePulumiBackendService/index.js";
|
|
14
|
-
export * from "./ListAppLambdaFunctionsService/index.js";
|
|
15
|
-
export * from "./ListDeployedEnvironmentsService/index.js";
|
|
16
13
|
export * from "./ListPackagesInAppWorkspaceService/index.js";
|
|
17
14
|
export * from "./ListPackagesService/index.js";
|
|
18
15
|
export * from "./LoadEnvVarsService/index.js";
|
|
@@ -20,17 +17,8 @@ export * from "./LocalStorageService/index.js";
|
|
|
20
17
|
export * from "./LoggerService/index.js";
|
|
21
18
|
export * from "./ProjectInfoService/index.js";
|
|
22
19
|
export * from "./ProjectSdkParamsService/index.js";
|
|
23
|
-
export * from "./PulumiGetConfigPassphraseService/index.js";
|
|
24
|
-
export * from "./PulumiGetSecretsProviderService/index.js";
|
|
25
|
-
export * from "./PulumiExportService/index.js";
|
|
26
|
-
export * from "./PulumiImportService/index.js";
|
|
27
|
-
export * from "./PulumiGetStackOutputService/index.js";
|
|
28
|
-
export * from "./PulumiLoginService/index.js";
|
|
29
|
-
export * from "./PulumiSelectStackService/index.js";
|
|
30
20
|
export * from "./SetProjectIdService/index.js";
|
|
31
|
-
export * from "./StackOutputCacheService/index.js";
|
|
32
21
|
export * from "./StdioService/index.js";
|
|
33
22
|
export * from "./UiService/index.js";
|
|
34
23
|
export * from "./ValidateProjectConfigService/index.js";
|
|
35
|
-
export * from "./WatchedLambdaFunctionsService/index.js";
|
|
36
24
|
export * from "./WcpService/index.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { SourceFile } from "ts-morph";
|
|
2
|
+
/**
|
|
3
|
+
* Makes sure `name` is imported from `moduleSpecifier` in the given file, as a value under its own
|
|
4
|
+
* name, so it can be used in JSX.
|
|
5
|
+
*
|
|
6
|
+
* Checks every import from the module, not only the first: a file can import from one module on
|
|
7
|
+
* several lines, and adding the name to one line when another already has it declares it twice.
|
|
8
|
+
* If the name is imported only as a type, that import becomes a value import, since a second,
|
|
9
|
+
* value import of the same name is also a duplicate. Otherwise a missing name goes into the first
|
|
10
|
+
* import from the module that takes named imports, or onto a new import line after the last one.
|
|
11
|
+
*/
|
|
12
|
+
export declare const ensureNamedImport: (sourceFile: SourceFile, name: string, moduleSpecifier: string) => void;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const ensureNamedImport = (sourceFile, name, moduleSpecifier)=>{
|
|
2
|
+
const moduleDeclarations = sourceFile.getImportDeclarations().filter((declaration)=>declaration.getModuleSpecifierValue() === moduleSpecifier);
|
|
3
|
+
const declarations = moduleDeclarations.filter((declaration)=>!declaration.isTypeOnly());
|
|
4
|
+
const isImported = declarations.some((declaration)=>declaration.getNamedImports().some((namedImport)=>namedImport.getName() === name && !namedImport.getAliasNode() && !namedImport.isTypeOnly()));
|
|
5
|
+
if (isImported) return;
|
|
6
|
+
for (const declaration of moduleDeclarations){
|
|
7
|
+
const typeOnlyImport = declaration.getNamedImports().find((namedImport)=>namedImport.getName() === name && !namedImport.getAliasNode());
|
|
8
|
+
if (!typeOnlyImport) continue;
|
|
9
|
+
if (typeOnlyImport.isTypeOnly()) return void typeOnlyImport.setIsTypeOnly(false);
|
|
10
|
+
const isOnlyName = 1 === declaration.getNamedImports().length && !declaration.getDefaultImport();
|
|
11
|
+
if (isOnlyName) return void declaration.setIsTypeOnly(false);
|
|
12
|
+
typeOnlyImport.remove();
|
|
13
|
+
break;
|
|
14
|
+
}
|
|
15
|
+
const target = declarations.find((declaration)=>!declaration.getNamespaceImport());
|
|
16
|
+
if (target) return void target.addNamedImport(name);
|
|
17
|
+
const index = sourceFile.getImportDeclarations().length;
|
|
18
|
+
sourceFile.insertImportDeclaration(index, {
|
|
19
|
+
namedImports: [
|
|
20
|
+
name
|
|
21
|
+
],
|
|
22
|
+
moduleSpecifier
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
export { ensureNamedImport };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=ensureNamedImport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils/ensureNamedImport.js","sources":["../../src/utils/ensureNamedImport.ts"],"sourcesContent":["import type { SourceFile } from \"ts-morph\";\n\n/**\n * Makes sure `name` is imported from `moduleSpecifier` in the given file, as a value under its own\n * name, so it can be used in JSX.\n *\n * Checks every import from the module, not only the first: a file can import from one module on\n * several lines, and adding the name to one line when another already has it declares it twice.\n * If the name is imported only as a type, that import becomes a value import, since a second,\n * value import of the same name is also a duplicate. Otherwise a missing name goes into the first\n * import from the module that takes named imports, or onto a new import line after the last one.\n */\nexport const ensureNamedImport = (\n sourceFile: SourceFile,\n name: string,\n moduleSpecifier: string\n) => {\n const moduleDeclarations = sourceFile\n .getImportDeclarations()\n .filter(declaration => declaration.getModuleSpecifierValue() === moduleSpecifier);\n const declarations = moduleDeclarations.filter(declaration => !declaration.isTypeOnly());\n\n const isImported = declarations.some(declaration => {\n return declaration.getNamedImports().some(namedImport => {\n return (\n namedImport.getName() === name &&\n !namedImport.getAliasNode() &&\n !namedImport.isTypeOnly()\n );\n });\n });\n\n if (isImported) {\n return;\n }\n\n for (const declaration of moduleDeclarations) {\n const typeOnlyImport = declaration.getNamedImports().find(namedImport => {\n return namedImport.getName() === name && !namedImport.getAliasNode();\n });\n if (!typeOnlyImport) {\n continue;\n }\n\n // `import { Infra, type Api }`: drop the `type` on the name.\n if (typeOnlyImport.isTypeOnly()) {\n typeOnlyImport.setIsTypeOnly(false);\n return;\n }\n\n // `import type { Api }`: the name is all it imports, so drop the `type` on the line.\n const isOnlyName =\n declaration.getNamedImports().length === 1 && !declaration.getDefaultImport();\n if (isOnlyName) {\n declaration.setIsTypeOnly(false);\n return;\n }\n\n // `import type { Api, Admin }`: take the name out and add it as a value below.\n typeOnlyImport.remove();\n break;\n }\n\n const target = declarations.find(declaration => !declaration.getNamespaceImport());\n if (target) {\n target.addNamedImport(name);\n return;\n }\n\n const index = sourceFile.getImportDeclarations().length;\n sourceFile.insertImportDeclaration(index, {\n namedImports: [name],\n moduleSpecifier\n });\n};\n"],"names":["ensureNamedImport","sourceFile","name","moduleSpecifier","moduleDeclarations","declaration","declarations","isImported","namedImport","typeOnlyImport","isOnlyName","target","index"],"mappings":"AAYO,MAAMA,oBAAoB,CAC7BC,YACAC,MACAC;IAEA,MAAMC,qBAAqBH,WACtB,qBAAqB,GACrB,MAAM,CAACI,CAAAA,cAAeA,YAAY,uBAAuB,OAAOF;IACrE,MAAMG,eAAeF,mBAAmB,MAAM,CAACC,CAAAA,cAAe,CAACA,YAAY,UAAU;IAErF,MAAME,aAAaD,aAAa,IAAI,CAACD,CAAAA,cAC1BA,YAAY,eAAe,GAAG,IAAI,CAACG,CAAAA,cAElCA,YAAY,OAAO,OAAON,QAC1B,CAACM,YAAY,YAAY,MACzB,CAACA,YAAY,UAAU;IAKnC,IAAID,YACA;IAGJ,KAAK,MAAMF,eAAeD,mBAAoB;QAC1C,MAAMK,iBAAiBJ,YAAY,eAAe,GAAG,IAAI,CAACG,CAAAA,cAC/CA,YAAY,OAAO,OAAON,QAAQ,CAACM,YAAY,YAAY;QAEtE,IAAI,CAACC,gBACD;QAIJ,IAAIA,eAAe,UAAU,IAAI,YAC7BA,eAAe,aAAa,CAAC;QAKjC,MAAMC,aACFL,AAAyC,MAAzCA,YAAY,eAAe,GAAG,MAAM,IAAU,CAACA,YAAY,gBAAgB;QAC/E,IAAIK,YAAY,YACZL,YAAY,aAAa,CAAC;QAK9BI,eAAe,MAAM;QACrB;IACJ;IAEA,MAAME,SAASL,aAAa,IAAI,CAACD,CAAAA,cAAe,CAACA,YAAY,kBAAkB;IAC/E,IAAIM,QAAQ,YACRA,OAAO,cAAc,CAACT;IAI1B,MAAMU,QAAQX,WAAW,qBAAqB,GAAG,MAAM;IACvDA,WAAW,uBAAuB,CAACW,OAAO;QACtC,cAAc;YAACV;SAAK;QACpBC;IACJ;AACJ"}
|
package/utils/env/index.d.ts
CHANGED
package/utils/env/index.js
CHANGED
package/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./constants.js";
|
|
2
2
|
export * from "./createPathResolver.js";
|
|
3
|
+
export * from "./ensureNamedImport.js";
|
|
3
4
|
export * from "./getRandomColorForString.js";
|
|
4
5
|
export * from "./getStackName.js";
|
|
5
6
|
export * from "./ExtensionSrcResolver.js";
|
|
@@ -12,3 +13,4 @@ export * from "./toImportSpecifier.js";
|
|
|
12
13
|
export * from "./trace/index.js";
|
|
13
14
|
export * from "./projectSdkContext.js";
|
|
14
15
|
export * from "./registerExtension.js";
|
|
16
|
+
export * from "./registerSrcExtensions.js";
|
package/utils/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./constants.js";
|
|
2
2
|
export * from "./createPathResolver.js";
|
|
3
|
+
export * from "./ensureNamedImport.js";
|
|
3
4
|
export * from "./getRandomColorForString.js";
|
|
4
5
|
export * from "./getStackName.js";
|
|
5
6
|
export * from "./ExtensionSrcResolver.js";
|
|
@@ -12,3 +13,4 @@ export * from "./toImportSpecifier.js";
|
|
|
12
13
|
export * from "./trace/index.js";
|
|
13
14
|
export * from "./projectSdkContext.js";
|
|
14
15
|
export * from "./registerExtension.js";
|
|
16
|
+
export * from "./registerSrcExtensions.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Container } from "@webiny/di";
|
|
2
|
+
import { type IProjectModel } from "../abstractions/models/index.js";
|
|
3
|
+
export interface ISrcExtension {
|
|
4
|
+
params: {
|
|
5
|
+
src: string;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Imports the module each extension's `src` points to and registers its default export in the
|
|
10
|
+
* container, as a singleton. Used for config extensions whose job is to name an implementation,
|
|
11
|
+
* such as the build, watch and deploy hooks.
|
|
12
|
+
*/
|
|
13
|
+
export declare const registerSrcExtensions: (container: Container, extensions: ISrcExtension[], project: IProjectModel) => Promise<void>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ExtensionSrcResolver } from "./ExtensionSrcResolver.js";
|
|
2
|
+
const registerSrcExtensions = async (container, extensions, project)=>{
|
|
3
|
+
for (const extension of extensions){
|
|
4
|
+
const implementation = await ExtensionSrcResolver.importFromPath(extension.params.src, project);
|
|
5
|
+
container.register(implementation).inSingletonScope();
|
|
6
|
+
}
|
|
7
|
+
};
|
|
8
|
+
export { registerSrcExtensions };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=registerSrcExtensions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils/registerSrcExtensions.js","sources":["../../src/utils/registerSrcExtensions.ts"],"sourcesContent":["import type { Container } from \"@webiny/di\";\nimport { type IProjectModel } from \"~/abstractions/models/index.js\";\nimport { ExtensionSrcResolver } from \"./ExtensionSrcResolver.js\";\n\nexport interface ISrcExtension {\n params: { src: string };\n}\n\n/**\n * Imports the module each extension's `src` points to and registers its default export in the\n * container, as a singleton. Used for config extensions whose job is to name an implementation,\n * such as the build, watch and deploy hooks.\n */\nexport const registerSrcExtensions = async (\n container: Container,\n extensions: ISrcExtension[],\n project: IProjectModel\n) => {\n for (const extension of extensions) {\n const implementation = await ExtensionSrcResolver.importFromPath(\n extension.params.src,\n project\n );\n container.register(implementation).inSingletonScope();\n }\n};\n"],"names":["registerSrcExtensions","container","extensions","project","extension","implementation","ExtensionSrcResolver"],"mappings":";AAaO,MAAMA,wBAAwB,OACjCC,WACAC,YACAC;IAEA,KAAK,MAAMC,aAAaF,WAAY;QAChC,MAAMG,iBAAiB,MAAMC,qBAAqB,cAAc,CAC5DF,UAAU,MAAM,CAAC,GAAG,EACpBD;QAEJF,UAAU,QAAQ,CAACI,gBAAgB,gBAAgB;IACvD;AACJ"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { type AppName } from "../../abstractions/types.js";
|
|
2
|
-
import { type PulumiProcess } from "@webiny/pulumi-sdk";
|
|
3
|
-
type IPulumiProcess = PulumiProcess;
|
|
4
|
-
interface IDeployAppParams {
|
|
5
|
-
app: AppName;
|
|
6
|
-
preview?: boolean;
|
|
7
|
-
pulumiArgs?: Record<string, string | boolean | string[] | undefined>;
|
|
8
|
-
allowLocalStateFiles?: boolean;
|
|
9
|
-
output?: (pulumiProcess: IPulumiProcess) => Promise<void>;
|
|
10
|
-
}
|
|
11
|
-
export interface IDeployApp {
|
|
12
|
-
execute(params: IDeployAppParams): Promise<void>;
|
|
13
|
-
}
|
|
14
|
-
export declare const DeployApp: import("@webiny/di").Abstraction<IDeployApp>;
|
|
15
|
-
export declare namespace DeployApp {
|
|
16
|
-
type Interface = IDeployApp;
|
|
17
|
-
type Params = IDeployAppParams;
|
|
18
|
-
type PulumiProcess = IPulumiProcess;
|
|
19
|
-
}
|
|
20
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstractions/features/DeployApp.js","sources":["../../../src/abstractions/features/DeployApp.ts"],"sourcesContent":["import { createAbstraction } from \"~/abstractions/createAbstraction.js\";\nimport { type AppName } from \"~/abstractions/types.js\";\nimport { type PulumiProcess } from \"@webiny/pulumi-sdk\";\n\ntype IPulumiProcess = PulumiProcess;\n\ninterface IDeployAppParams {\n app: AppName;\n preview?: boolean;\n pulumiArgs?: Record<string, string | boolean | string[] | undefined>;\n allowLocalStateFiles?: boolean;\n output?: (pulumiProcess: IPulumiProcess) => Promise<void>;\n}\n\nexport interface IDeployApp {\n execute(params: IDeployAppParams): Promise<void>;\n}\n\nexport const DeployApp = createAbstraction<IDeployApp>(\"DeployApp\");\n\nexport namespace DeployApp {\n export type Interface = IDeployApp;\n\n export type Params = IDeployAppParams;\n\n export type PulumiProcess = IPulumiProcess;\n}\n"],"names":["DeployApp","createAbstraction"],"mappings":";AAkBO,MAAMA,YAAYC,kBAA8B"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { type AppName } from "../../abstractions/types.js";
|
|
2
|
-
import { type PulumiProcess } from "@webiny/pulumi-sdk";
|
|
3
|
-
type IPulumiProcess = PulumiProcess;
|
|
4
|
-
export interface IDestroyAppParams {
|
|
5
|
-
app: AppName;
|
|
6
|
-
}
|
|
7
|
-
export interface IDestroyApp {
|
|
8
|
-
execute(params: IDestroyAppParams): Promise<{
|
|
9
|
-
pulumiProcess: IPulumiProcess;
|
|
10
|
-
}>;
|
|
11
|
-
}
|
|
12
|
-
export declare const DestroyApp: import("@webiny/di").Abstraction<IDestroyApp>;
|
|
13
|
-
export declare namespace DestroyApp {
|
|
14
|
-
type Interface = IDestroyApp;
|
|
15
|
-
type Params = IDestroyAppParams;
|
|
16
|
-
type PulumiProcess = IPulumiProcess;
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstractions/features/DestroyApp.js","sources":["../../../src/abstractions/features/DestroyApp.ts"],"sourcesContent":["import { createAbstraction } from \"~/abstractions/createAbstraction.js\";\nimport { type AppName } from \"~/abstractions/types.js\";\nimport { type PulumiProcess } from \"@webiny/pulumi-sdk\";\n\ntype IPulumiProcess = PulumiProcess;\n\nexport interface IDestroyAppParams {\n app: AppName;\n}\n\nexport interface IDestroyApp {\n execute(params: IDestroyAppParams): Promise<{ pulumiProcess: IPulumiProcess }>;\n}\n\nexport const DestroyApp = createAbstraction<IDestroyApp>(\"DestroyApp\");\n\nexport namespace DestroyApp {\n export type Interface = IDestroyApp;\n\n export type Params = IDestroyAppParams;\n\n export type PulumiProcess = IPulumiProcess;\n}\n"],"names":["DestroyApp","createAbstraction"],"mappings":";AAcO,MAAMA,aAAaC,kBAA+B"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { type AppName } from "../../abstractions/types.js";
|
|
2
|
-
export type IExportStackParams = {
|
|
3
|
-
app: AppName;
|
|
4
|
-
};
|
|
5
|
-
export interface IStackExport {
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
}
|
|
8
|
-
export type IExportStackResult<TExport extends IStackExport = IStackExport> = TExport | null;
|
|
9
|
-
export interface IExportStack {
|
|
10
|
-
execute<TExport extends IStackExport = IStackExport>(params: IExportStackParams): Promise<IExportStackResult<TExport>>;
|
|
11
|
-
}
|
|
12
|
-
export declare const ExportStack: import("@webiny/di").Abstraction<IExportStack>;
|
|
13
|
-
export declare namespace ExportStack {
|
|
14
|
-
type Interface = IExportStack;
|
|
15
|
-
type Params = IExportStackParams;
|
|
16
|
-
type Result = IExportStackResult;
|
|
17
|
-
type StackExport = IStackExport;
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstractions/features/ExportStack.js","sources":["../../../src/abstractions/features/ExportStack.ts"],"sourcesContent":["import { createAbstraction } from \"~/abstractions/createAbstraction.js\";\nimport { type AppName } from \"~/abstractions/types.js\";\n\nexport type IExportStackParams = { app: AppName };\n\nexport interface IStackExport {\n [key: string]: any;\n}\n\nexport type IExportStackResult<TExport extends IStackExport = IStackExport> = TExport | null;\n\nexport interface IExportStack {\n execute<TExport extends IStackExport = IStackExport>(\n params: IExportStackParams\n ): Promise<IExportStackResult<TExport>>;\n}\n\nexport const ExportStack = createAbstraction<IExportStack>(\"ExportStack\");\n\nexport namespace ExportStack {\n export type Interface = IExportStack;\n\n export type Params = IExportStackParams;\n export type Result = IExportStackResult;\n export type StackExport = IStackExport;\n}\n"],"names":["ExportStack","createAbstraction"],"mappings":";AAiBO,MAAMA,cAAcC,kBAAgC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { type AppName } from "../../abstractions/types.js";
|
|
2
|
-
import { type PulumiProcess } from "@webiny/pulumi-sdk";
|
|
3
|
-
type IPulumiProcess = PulumiProcess;
|
|
4
|
-
export interface IGetAppOutputParams {
|
|
5
|
-
app: AppName;
|
|
6
|
-
json?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export interface IGetAppOutput {
|
|
9
|
-
execute(params: IGetAppOutputParams): Promise<{
|
|
10
|
-
pulumiProcess: IPulumiProcess;
|
|
11
|
-
}>;
|
|
12
|
-
}
|
|
13
|
-
export declare const GetAppOutput: import("@webiny/di").Abstraction<IGetAppOutput>;
|
|
14
|
-
export declare namespace GetAppOutput {
|
|
15
|
-
type Interface = IGetAppOutput;
|
|
16
|
-
type Params = IGetAppOutputParams;
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstractions/features/GetAppOutput.js","sources":["../../../src/abstractions/features/GetAppOutput.ts"],"sourcesContent":["import { createAbstraction } from \"~/abstractions/createAbstraction.js\";\nimport { type AppName } from \"~/abstractions/types.js\";\nimport { type PulumiProcess } from \"@webiny/pulumi-sdk\";\n\ntype IPulumiProcess = PulumiProcess;\n\nexport interface IGetAppOutputParams {\n app: AppName;\n json?: boolean;\n}\n\nexport interface IGetAppOutput {\n execute(params: IGetAppOutputParams): Promise<{ pulumiProcess: IPulumiProcess }>;\n}\n\nexport const GetAppOutput = createAbstraction<IGetAppOutput>(\"GetAppOutput\");\n\nexport namespace GetAppOutput {\n export type Interface = IGetAppOutput;\n\n export type Params = IGetAppOutputParams;\n}\n"],"names":["GetAppOutput","createAbstraction"],"mappings":";AAeO,MAAMA,eAAeC,kBAAiC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type AppName } from "../../abstractions/types.js";
|
|
2
|
-
export interface IStackOutput {
|
|
3
|
-
/**
|
|
4
|
-
* There is a possibility for a user to add stuff to the stack output. Pulumi outputs can be
|
|
5
|
-
* objects too, for example the Cognito user pool's password policy.
|
|
6
|
-
*/
|
|
7
|
-
[key: string]: string | string[] | undefined | number | number[] | boolean | object;
|
|
8
|
-
}
|
|
9
|
-
export interface ICoreStackOutput extends IStackOutput {
|
|
10
|
-
deploymentId: string;
|
|
11
|
-
iotAuthorizerName: string;
|
|
12
|
-
}
|
|
13
|
-
export type IGetAppStackOutputResult<TOutput extends IStackOutput = IStackOutput> = TOutput | null;
|
|
14
|
-
export interface IGetAppStackOutput {
|
|
15
|
-
execute<TOutput extends IStackOutput = IStackOutput>(appName: AppName): Promise<IGetAppStackOutputResult<TOutput>>;
|
|
16
|
-
}
|
|
17
|
-
export declare const GetAppStackOutput: import("@webiny/di").Abstraction<IGetAppStackOutput>;
|
|
18
|
-
export declare namespace GetAppStackOutput {
|
|
19
|
-
type Interface = IGetAppStackOutput;
|
|
20
|
-
type Result = IGetAppStackOutputResult;
|
|
21
|
-
type StackOutput = IStackOutput;
|
|
22
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstractions/features/GetAppStackOutput.js","sources":["../../../src/abstractions/features/GetAppStackOutput.ts"],"sourcesContent":["import { createAbstraction } from \"~/abstractions/createAbstraction.js\";\nimport { type AppName } from \"~/abstractions/types.js\";\n\nexport interface IStackOutput {\n /**\n * There is a possibility for a user to add stuff to the stack output. Pulumi outputs can be\n * objects too, for example the Cognito user pool's password policy.\n */\n [key: string]: string | string[] | undefined | number | number[] | boolean | object;\n}\n\n// This interface is later extended in downstream packages (e.g., @webiny/project-aws).\n// TODO: because some of these are AWS specific, we should consider moving these to\n// TODO: @webiny/project-aws. Would've done it, but didn't have time.\nexport interface ICoreStackOutput extends IStackOutput {\n deploymentId: string;\n iotAuthorizerName: string;\n}\n\nexport type IGetAppStackOutputResult<TOutput extends IStackOutput = IStackOutput> = TOutput | null;\n\nexport interface IGetAppStackOutput {\n execute<TOutput extends IStackOutput = IStackOutput>(\n appName: AppName\n ): Promise<IGetAppStackOutputResult<TOutput>>;\n}\n\nexport const GetAppStackOutput = createAbstraction<IGetAppStackOutput>(\"GetAppStackOutput\");\n\nexport namespace GetAppStackOutput {\n export type Interface = IGetAppStackOutput;\n export type Result = IGetAppStackOutputResult;\n export type StackOutput = IStackOutput;\n}\n"],"names":["GetAppStackOutput","createAbstraction"],"mappings":";AA2BO,MAAMA,oBAAoBC,kBAAsC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export interface IGetPulumiResourceNamePrefix {
|
|
2
|
-
execute(): Promise<string>;
|
|
3
|
-
}
|
|
4
|
-
export declare const GetPulumiResourceNamePrefix: import("@webiny/di").Abstraction<IGetPulumiResourceNamePrefix>;
|
|
5
|
-
export declare namespace GetPulumiResourceNamePrefix {
|
|
6
|
-
type Interface = IGetPulumiResourceNamePrefix;
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstractions/features/GetPulumiResourceNamePrefix.js","sources":["../../../src/abstractions/features/GetPulumiResourceNamePrefix.ts"],"sourcesContent":["import { createAbstraction } from \"~/abstractions/createAbstraction.js\";\n\nexport interface IGetPulumiResourceNamePrefix {\n execute(): Promise<string>;\n}\n\nexport const GetPulumiResourceNamePrefix = createAbstraction<IGetPulumiResourceNamePrefix>(\n \"GetPulumiResourceNamePrefix\"\n);\n\nexport namespace GetPulumiResourceNamePrefix {\n export type Interface = IGetPulumiResourceNamePrefix;\n}\n"],"names":["GetPulumiResourceNamePrefix","createAbstraction"],"mappings":";AAMO,MAAMA,8BAA8BC,kBACvC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { type AppName } from "../../abstractions/types.js";
|
|
2
|
-
import { type PulumiProcess } from "@webiny/pulumi-sdk";
|
|
3
|
-
export type IPulumiProcess = PulumiProcess;
|
|
4
|
-
export type IRefreshAppParams = {
|
|
5
|
-
app: AppName;
|
|
6
|
-
};
|
|
7
|
-
interface IRefreshApp {
|
|
8
|
-
execute(params: IRefreshAppParams): Promise<{
|
|
9
|
-
pulumiProcess: IPulumiProcess;
|
|
10
|
-
}>;
|
|
11
|
-
}
|
|
12
|
-
export declare const RefreshApp: import("@webiny/di").Abstraction<IRefreshApp>;
|
|
13
|
-
export declare namespace RefreshApp {
|
|
14
|
-
type Interface = IRefreshApp;
|
|
15
|
-
type Params = IRefreshAppParams;
|
|
16
|
-
type PulumiProcess = IPulumiProcess;
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstractions/features/RefreshApp.js","sources":["../../../src/abstractions/features/RefreshApp.ts"],"sourcesContent":["import { createAbstraction } from \"~/abstractions/createAbstraction.js\";\nimport { type AppName } from \"~/abstractions/types.js\";\nimport { type PulumiProcess } from \"@webiny/pulumi-sdk\";\n\nexport type IPulumiProcess = PulumiProcess;\n\nexport type IRefreshAppParams = { app: AppName };\n\ninterface IRefreshApp {\n execute(params: IRefreshAppParams): Promise<{ pulumiProcess: IPulumiProcess }>;\n}\n\nexport const RefreshApp = createAbstraction<IRefreshApp>(\"RefreshApp\");\n\nexport namespace RefreshApp {\n export type Interface = IRefreshApp;\n\n export type Params = IRefreshAppParams;\n\n export type PulumiProcess = IPulumiProcess;\n}\n"],"names":["RefreshApp","createAbstraction"],"mappings":";AAYO,MAAMA,aAAaC,kBAA+B"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type AppName } from "../../abstractions/types.js";
|
|
2
|
-
import { type PulumiProcess } from "@webiny/pulumi-sdk";
|
|
3
|
-
type IPulumiProcess = PulumiProcess;
|
|
4
|
-
interface IRunPulumiCommandParams {
|
|
5
|
-
app: AppName;
|
|
6
|
-
command: string[];
|
|
7
|
-
}
|
|
8
|
-
interface IRunPulumiCommand {
|
|
9
|
-
execute(params: IRunPulumiCommandParams): Promise<{
|
|
10
|
-
pulumiProcess: IPulumiProcess;
|
|
11
|
-
}>;
|
|
12
|
-
}
|
|
13
|
-
export declare const RunPulumiCommand: import("@webiny/di").Abstraction<IRunPulumiCommand>;
|
|
14
|
-
export declare namespace RunPulumiCommand {
|
|
15
|
-
type Interface = IRunPulumiCommand;
|
|
16
|
-
type Params = IRunPulumiCommandParams;
|
|
17
|
-
type PulumiProcess = IPulumiProcess;
|
|
18
|
-
}
|
|
19
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstractions/features/RunPulumiCommand.js","sources":["../../../src/abstractions/features/RunPulumiCommand.ts"],"sourcesContent":["import { createAbstraction } from \"~/abstractions/createAbstraction.js\";\nimport { type AppName } from \"~/abstractions/types.js\";\nimport { type PulumiProcess } from \"@webiny/pulumi-sdk\";\n\ntype IPulumiProcess = PulumiProcess;\n\ninterface IRunPulumiCommandParams {\n app: AppName;\n command: string[];\n}\n\ninterface IRunPulumiCommand {\n execute(params: IRunPulumiCommandParams): Promise<{ pulumiProcess: IPulumiProcess }>;\n}\n\nexport const RunPulumiCommand = createAbstraction<IRunPulumiCommand>(\"RunPulumiCommand\");\n\nexport namespace RunPulumiCommand {\n export type Interface = IRunPulumiCommand;\n\n export type Params = IRunPulumiCommandParams;\n\n export type PulumiProcess = IPulumiProcess;\n}\n"],"names":["RunPulumiCommand","createAbstraction"],"mappings":";AAeO,MAAMA,mBAAmBC,kBAAqC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type DeployApp } from "../../../abstractions/index.js";
|
|
2
|
-
export interface IAdminAfterDeploy {
|
|
3
|
-
execute(params: DeployApp.Params): void | Promise<void>;
|
|
4
|
-
}
|
|
5
|
-
export declare const AdminAfterDeploy: import("@webiny/di").Abstraction<IAdminAfterDeploy>;
|
|
6
|
-
export declare namespace AdminAfterDeploy {
|
|
7
|
-
type Interface = IAdminAfterDeploy;
|
|
8
|
-
type Params = DeployApp.Params;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstractions/features/hooks/AdminAfterDeploy.js","sources":["../../../../src/abstractions/features/hooks/AdminAfterDeploy.ts"],"sourcesContent":["import { createAbstraction } from \"~/abstractions/createAbstraction.js\";\nimport { type DeployApp } from \"~/abstractions/index.js\";\n\nexport interface IAdminAfterDeploy {\n execute(params: DeployApp.Params): void | Promise<void>;\n}\n\nexport const AdminAfterDeploy = createAbstraction<IAdminAfterDeploy>(\"AdminAfterDeploy\");\n\nexport namespace AdminAfterDeploy {\n export type Interface = IAdminAfterDeploy;\n export type Params = DeployApp.Params;\n}\n"],"names":["AdminAfterDeploy","createAbstraction"],"mappings":";AAOO,MAAMA,mBAAmBC,kBAAqC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type DeployApp } from "../../../abstractions/index.js";
|
|
2
|
-
export interface IAdminBeforeDeploy {
|
|
3
|
-
execute(params: DeployApp.Params): void | Promise<void>;
|
|
4
|
-
}
|
|
5
|
-
export declare const AdminBeforeDeploy: import("@webiny/di").Abstraction<IAdminBeforeDeploy>;
|
|
6
|
-
export declare namespace AdminBeforeDeploy {
|
|
7
|
-
type Interface = IAdminBeforeDeploy;
|
|
8
|
-
type Params = DeployApp.Params;
|
|
9
|
-
}
|