@webiny/project 0.0.0-unstable.df7a8bb475 → 0.0.0-unstable.e1999482d0
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/GracefulError.js +13 -15
- package/GracefulError.js.map +1 -1
- package/ProjectError.js +11 -13
- package/ProjectError.js.map +1 -1
- package/ProjectSdk.d.ts +12 -20
- package/ProjectSdk.js +93 -126
- package/ProjectSdk.js.map +1 -1
- package/abstractions/createAbstraction.js +3 -2
- package/abstractions/createAbstraction.js.map +1 -1
- package/abstractions/features/BuildApp.js +2 -1
- package/abstractions/features/BuildApp.js.map +1 -1
- package/abstractions/features/BuildExtension.js +2 -1
- package/abstractions/features/BuildExtension.js.map +1 -1
- package/abstractions/features/GetApp.js +2 -1
- package/abstractions/features/GetApp.js.map +1 -1
- package/abstractions/features/GetFeatureFlags.d.ts +8 -0
- package/abstractions/features/GetFeatureFlags.js +5 -0
- package/abstractions/features/GetFeatureFlags.js.map +1 -0
- package/abstractions/features/GetLogger.js +2 -1
- package/abstractions/features/GetLogger.js.map +1 -1
- package/abstractions/features/GetProductionEnvironments.js +2 -1
- package/abstractions/features/GetProductionEnvironments.js.map +1 -1
- package/abstractions/features/GetProject.js +2 -1
- package/abstractions/features/GetProject.js.map +1 -1
- package/abstractions/features/GetProjectConfig.js +2 -1
- package/abstractions/features/GetProjectConfig.js.map +1 -1
- package/abstractions/features/GetProjectInfo.js +2 -1
- package/abstractions/features/GetProjectInfo.js.map +1 -1
- package/abstractions/features/InstallExtension.js +2 -1
- package/abstractions/features/InstallExtension.js.map +1 -1
- package/abstractions/features/IsCi.js +2 -1
- package/abstractions/features/IsCi.js.map +1 -1
- package/abstractions/features/IsTelemetryEnabled.js +2 -1
- package/abstractions/features/IsTelemetryEnabled.js.map +1 -1
- package/abstractions/features/IsWcpEnabled.js +2 -1
- package/abstractions/features/IsWcpEnabled.js.map +1 -1
- package/abstractions/features/IsWebinyJsRepo.js +2 -1
- package/abstractions/features/IsWebinyJsRepo.js.map +1 -1
- package/abstractions/features/Serve.d.ts +27 -0
- package/abstractions/features/Serve.js +5 -0
- package/abstractions/features/Serve.js.map +1 -0
- package/abstractions/features/ValidateProjectConfig.js +2 -1
- package/abstractions/features/ValidateProjectConfig.js.map +1 -1
- package/abstractions/features/Watch.d.ts +10 -0
- package/abstractions/features/Watch.js +2 -1
- package/abstractions/features/Watch.js.map +1 -1
- package/abstractions/features/hooks/AdminAfterBuild.js +2 -1
- package/abstractions/features/hooks/AdminAfterBuild.js.map +1 -1
- package/abstractions/features/hooks/AdminBeforeBuild.js +2 -1
- package/abstractions/features/hooks/AdminBeforeBuild.js.map +1 -1
- package/abstractions/features/hooks/AdminBeforeWatch.js +2 -1
- package/abstractions/features/hooks/AdminBeforeWatch.js.map +1 -1
- package/abstractions/features/hooks/AfterBuild.js +2 -1
- package/abstractions/features/hooks/AfterBuild.js.map +1 -1
- package/abstractions/features/hooks/ApiAfterBuild.js +2 -1
- package/abstractions/features/hooks/ApiAfterBuild.js.map +1 -1
- package/abstractions/features/hooks/ApiBeforeBuild.js +2 -1
- package/abstractions/features/hooks/ApiBeforeBuild.js.map +1 -1
- package/abstractions/features/hooks/ApiBeforeWatch.js +2 -1
- package/abstractions/features/hooks/ApiBeforeWatch.js.map +1 -1
- package/abstractions/features/hooks/BeforeBuild.js +2 -1
- package/abstractions/features/hooks/BeforeBuild.js.map +1 -1
- package/abstractions/features/hooks/BeforeWatch.js +2 -1
- package/abstractions/features/hooks/BeforeWatch.js.map +1 -1
- package/abstractions/features/hooks/CoreAfterBuild.js +2 -1
- package/abstractions/features/hooks/CoreAfterBuild.js.map +1 -1
- package/abstractions/features/hooks/CoreBeforeBuild.js +2 -1
- package/abstractions/features/hooks/CoreBeforeBuild.js.map +1 -1
- package/abstractions/features/hooks/CoreBeforeWatch.js +2 -1
- package/abstractions/features/hooks/CoreBeforeWatch.js.map +1 -1
- package/abstractions/features/hooks/index.d.ts +0 -8
- package/abstractions/features/hooks/index.js +0 -10
- package/abstractions/features/index.d.ts +2 -9
- package/abstractions/features/index.js +2 -11
- package/abstractions/index.js +0 -2
- package/abstractions/models/IAppModel.d.ts +0 -2
- package/abstractions/models/IAppModel.js +0 -3
- package/abstractions/models/IAppPackageModel.js +0 -3
- package/abstractions/models/IPathModel.js +0 -3
- package/abstractions/models/IProjectConfigDto.js +0 -3
- package/abstractions/models/IProjectConfigModel.js +0 -3
- package/abstractions/models/IProjectModel.d.ts +0 -2
- package/abstractions/models/IProjectModel.js +0 -3
- package/abstractions/models/IUrlModel.js +0 -3
- package/abstractions/models/IWcpEnvironmentDto.js +0 -3
- package/abstractions/models/IWcpEnvironmentModel.js +0 -3
- package/abstractions/models/IWcpUserDto.js +0 -3
- package/abstractions/models/IWcpUserModel.js +0 -3
- package/abstractions/models/IWcpUserPatDto.js +0 -3
- package/abstractions/models/IWcpUserPatModel.js +0 -3
- package/abstractions/models/PackagesBuilder/IPackagesBuilder.js +0 -3
- package/abstractions/models/PackagesBuilder/IRunnableBuildProcess.js +0 -3
- package/abstractions/models/PackagesBuilder/IRunnableBuildProcesses.js +0 -3
- package/abstractions/models/PackagesBuilder/index.js +0 -3
- package/abstractions/models/index.js +0 -3
- package/abstractions/services/BuildAppWorkspaceService.js +2 -1
- package/abstractions/services/BuildAppWorkspaceService.js.map +1 -1
- package/abstractions/services/BuildProjectWorkspaceService.js +2 -1
- package/abstractions/services/BuildProjectWorkspaceService.js.map +1 -1
- package/abstractions/services/GetAppPackagesService.js +2 -1
- package/abstractions/services/GetAppPackagesService.js.map +1 -1
- package/abstractions/services/GetAppService.js +2 -1
- package/abstractions/services/GetAppService.js.map +1 -1
- package/abstractions/services/GetCwdService.js +2 -1
- package/abstractions/services/GetCwdService.js.map +1 -1
- package/abstractions/services/GetProjectConfigService.js +2 -1
- package/abstractions/services/GetProjectConfigService.js.map +1 -1
- package/abstractions/services/GetProjectIdService.js +2 -1
- package/abstractions/services/GetProjectIdService.js.map +1 -1
- package/abstractions/services/GetProjectInstallationIdService.d.ts +10 -0
- package/abstractions/services/GetProjectInstallationIdService.js +5 -0
- package/abstractions/services/GetProjectInstallationIdService.js.map +1 -0
- package/abstractions/services/GetProjectService.js +2 -1
- package/abstractions/services/GetProjectService.js.map +1 -1
- package/abstractions/services/GetProjectVersionService.js +2 -1
- package/abstractions/services/GetProjectVersionService.js.map +1 -1
- 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/InitProjectSdkService.js +2 -1
- package/abstractions/services/InitProjectSdkService.js.map +1 -1
- package/abstractions/services/InstallExtensionService.js +2 -1
- package/abstractions/services/InstallExtensionService.js.map +1 -1
- package/abstractions/services/ListPackagesInAppWorkspaceService.js +2 -1
- package/abstractions/services/ListPackagesInAppWorkspaceService.js.map +1 -1
- package/abstractions/services/ListPackagesService.js +2 -1
- package/abstractions/services/ListPackagesService.js.map +1 -1
- package/abstractions/services/LoadEnvVarsService.js +2 -1
- package/abstractions/services/LoadEnvVarsService.js.map +1 -1
- package/abstractions/services/LocalStorageService.js +2 -1
- package/abstractions/services/LocalStorageService.js.map +1 -1
- package/abstractions/services/LoggerService.js +2 -1
- package/abstractions/services/LoggerService.js.map +1 -1
- package/abstractions/services/ProjectInfoService/GetIsCiService.js +2 -1
- package/abstractions/services/ProjectInfoService/GetIsCiService.js.map +1 -1
- package/abstractions/services/ProjectInfoService/GetNpmVersionService.js +2 -1
- package/abstractions/services/ProjectInfoService/GetNpmVersionService.js.map +1 -1
- package/abstractions/services/ProjectInfoService/GetNpxVersionService.js +2 -1
- package/abstractions/services/ProjectInfoService/GetNpxVersionService.js.map +1 -1
- package/abstractions/services/ProjectInfoService/GetYarnVersionService.js +2 -1
- package/abstractions/services/ProjectInfoService/GetYarnVersionService.js.map +1 -1
- package/abstractions/services/ProjectInfoService/ProjectInfoService.d.ts +6 -6
- package/abstractions/services/ProjectInfoService/ProjectInfoService.js +2 -1
- 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 -3
- package/abstractions/services/ProjectSdkParamsService.js +2 -1
- package/abstractions/services/ProjectSdkParamsService.js.map +1 -1
- package/abstractions/services/SetProjectIdService.js +2 -1
- package/abstractions/services/SetProjectIdService.js.map +1 -1
- package/abstractions/services/StdioService.js +2 -1
- package/abstractions/services/StdioService.js.map +1 -1
- package/abstractions/services/UiService.js +2 -1
- package/abstractions/services/UiService.js.map +1 -1
- package/abstractions/services/ValidateProjectConfigService.js +2 -1
- package/abstractions/services/ValidateProjectConfigService.js.map +1 -1
- package/abstractions/services/WcpService.js +2 -1
- package/abstractions/services/WcpService.js.map +1 -1
- package/abstractions/services/index.d.ts +2 -12
- package/abstractions/services/index.js +2 -14
- package/abstractions/types.js +0 -3
- package/components/FeatureFlag.d.ts +48 -0
- package/components/FeatureFlag.js +59 -0
- package/components/FeatureFlag.js.map +1 -0
- package/createProjectSdkContainer.d.ts +1 -1
- package/createProjectSdkContainer.js +91 -110
- package/createProjectSdkContainer.js.map +1 -1
- package/decorators/BuildAppWithHooks.js +54 -44
- package/decorators/BuildAppWithHooks.js.map +1 -1
- package/decorators/GetFeatureFlagsWithLicense.d.ts +12 -0
- package/decorators/GetFeatureFlagsWithLicense.js +58 -0
- package/decorators/GetFeatureFlagsWithLicense.js.map +1 -0
- package/decorators/WatchWithHooks.js +30 -27
- package/decorators/WatchWithHooks.js.map +1 -1
- package/decorators/index.d.ts +1 -5
- package/decorators/index.js +1 -7
- package/defineExtension/createExtensionDefinition.js +12 -19
- package/defineExtension/createExtensionDefinition.js.map +1 -1
- package/defineExtension/createExtensionReactComponent.js +48 -50
- package/defineExtension/createExtensionReactComponent.js.map +1 -1
- package/defineExtension/defineExtension.js +8 -9
- package/defineExtension/defineExtension.js.map +1 -1
- package/defineExtension/index.d.ts +0 -1
- package/defineExtension/index.js +0 -3
- package/defineExtension/models/ExtensionDefinitionModel.d.ts +4 -4
- package/defineExtension/models/ExtensionDefinitionModel.js +11 -10
- package/defineExtension/models/ExtensionDefinitionModel.js.map +1 -1
- package/defineExtension/models/ExtensionInstanceModel.js +23 -21
- package/defineExtension/models/ExtensionInstanceModel.js.map +1 -1
- package/defineExtension/models/index.js +0 -2
- package/defineExtension/types.d.ts +7 -2
- package/defineExtension/types.js +0 -3
- package/defineExtension/zodTypes/zodSrcPath.d.ts +2 -1
- package/defineExtension/zodTypes/zodSrcPath.js +37 -59
- package/defineExtension/zodTypes/zodSrcPath.js.map +1 -1
- package/exports/infra/admin.d.ts +0 -3
- package/exports/infra/admin.js +0 -5
- package/exports/infra/api.d.ts +0 -3
- package/exports/infra/api.js +0 -5
- package/exports/infra/core.d.ts +0 -3
- package/exports/infra/core.js +0 -5
- package/exports/infra.d.ts +6 -0
- package/exports/infra.js +6 -0
- package/extensions/AdminApiUrl.d.ts +10 -0
- package/extensions/AdminApiUrl.js +22 -0
- package/extensions/AdminApiUrl.js.map +1 -0
- package/extensions/AdminBuildParam.d.ts +5 -0
- package/extensions/AdminBuildParam.js +142 -0
- package/extensions/AdminBuildParam.js.map +1 -0
- package/extensions/AdminExtension.d.ts +5 -0
- package/extensions/AdminExtension.js +74 -0
- package/extensions/AdminExtension.js.map +1 -0
- package/extensions/AdminWebsocketsUrl.d.ts +14 -0
- package/extensions/AdminWebsocketsUrl.js +22 -0
- package/extensions/AdminWebsocketsUrl.js.map +1 -0
- package/extensions/ApiBuildParam.d.ts +5 -0
- package/extensions/ApiBuildParam.js +94 -0
- package/extensions/ApiBuildParam.js.map +1 -0
- package/extensions/ApiExtension.d.ts +5 -0
- package/extensions/ApiExtension.js +84 -0
- package/extensions/ApiExtension.js.map +1 -0
- package/extensions/BugReporter.d.ts +6 -0
- package/extensions/BugReporter.js +34 -0
- package/extensions/BugReporter.js.map +1 -0
- package/extensions/DatabaseSetup.d.ts +8 -7
- package/extensions/DatabaseSetup.js +16 -9
- package/extensions/DatabaseSetup.js.map +1 -1
- package/extensions/EnvVar.d.ts +4 -7
- package/extensions/EnvVar.js +13 -12
- package/extensions/EnvVar.js.map +1 -1
- package/extensions/ExtensionDefinitions.d.ts +1 -5
- package/extensions/ExtensionDefinitions.js +12 -10
- package/extensions/ExtensionDefinitions.js.map +1 -1
- package/extensions/FeatureFlags.d.ts +42 -0
- package/extensions/FeatureFlags.js +77 -0
- package/extensions/FeatureFlags.js.map +1 -0
- package/extensions/ProductionEnvironments.d.ts +4 -0
- package/extensions/ProductionEnvironments.js +37 -0
- package/extensions/ProductionEnvironments.js.map +1 -0
- package/extensions/Project/SetAdminAppEnvVarsBeforeBuild.d.ts +3 -2
- package/extensions/Project/SetAdminAppEnvVarsBeforeBuild.js +37 -34
- package/extensions/Project/SetAdminAppEnvVarsBeforeBuild.js.map +1 -1
- package/extensions/Project/SetAdminAppEnvVarsBeforeWatch.d.ts +3 -2
- package/extensions/Project/SetAdminAppEnvVarsBeforeWatch.js +37 -34
- package/extensions/Project/SetAdminAppEnvVarsBeforeWatch.js.map +1 -1
- package/extensions/Project/ShowConfigChangeInfoBeforeAdminWatch.js +13 -9
- package/extensions/Project/ShowConfigChangeInfoBeforeAdminWatch.js.map +1 -1
- package/extensions/Project/ShowConfigChangeInfoBeforeApiWatch.js +13 -9
- package/extensions/Project/ShowConfigChangeInfoBeforeApiWatch.js.map +1 -1
- package/extensions/Project/WcpInjectTelemetryClientAfterBuild.js +47 -51
- package/extensions/Project/WcpInjectTelemetryClientAfterBuild.js.map +1 -1
- package/extensions/Project/showConfigChangeNotice.d.ts +7 -0
- package/extensions/Project/showConfigChangeNotice.js +9 -0
- package/extensions/Project/showConfigChangeNotice.js.map +1 -0
- package/extensions/Project.js +14 -29
- package/extensions/Project.js.map +1 -1
- package/extensions/ProjectDecorator.d.ts +3 -7
- package/extensions/ProjectDecorator.js +14 -16
- package/extensions/ProjectDecorator.js.map +1 -1
- package/extensions/ProjectId.d.ts +3 -7
- package/extensions/ProjectId.js +12 -13
- package/extensions/ProjectId.js.map +1 -1
- package/extensions/ProjectImplementation.d.ts +3 -9
- package/extensions/ProjectImplementation.js +15 -17
- package/extensions/ProjectImplementation.js.map +1 -1
- package/extensions/Telemetry.d.ts +2 -6
- package/extensions/Telemetry.js +11 -9
- 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/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 +3 -0
- package/extensions/api/index.js +3 -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.d.ts +2 -6
- package/extensions/hooks/AdminAfterBuild.js +17 -19
- package/extensions/hooks/AdminAfterBuild.js.map +1 -1
- package/extensions/hooks/AdminBeforeBuild.d.ts +2 -6
- package/extensions/hooks/AdminBeforeBuild.js +17 -19
- package/extensions/hooks/AdminBeforeBuild.js.map +1 -1
- package/extensions/hooks/AdminBeforeWatch.d.ts +2 -6
- package/extensions/hooks/AdminBeforeWatch.js +17 -19
- package/extensions/hooks/AdminBeforeWatch.js.map +1 -1
- package/extensions/hooks/AfterBuild.d.ts +2 -6
- package/extensions/hooks/AfterBuild.js +16 -18
- package/extensions/hooks/AfterBuild.js.map +1 -1
- package/extensions/hooks/ApiAfterBuild.d.ts +2 -6
- package/extensions/hooks/ApiAfterBuild.js +17 -19
- package/extensions/hooks/ApiAfterBuild.js.map +1 -1
- package/extensions/hooks/ApiBeforeBuild.d.ts +2 -6
- package/extensions/hooks/ApiBeforeBuild.js +17 -19
- package/extensions/hooks/ApiBeforeBuild.js.map +1 -1
- package/extensions/hooks/ApiBeforeWatch.d.ts +2 -6
- package/extensions/hooks/ApiBeforeWatch.js +17 -19
- package/extensions/hooks/ApiBeforeWatch.js.map +1 -1
- package/extensions/hooks/BeforeBuild.d.ts +2 -6
- package/extensions/hooks/BeforeBuild.js +16 -18
- package/extensions/hooks/BeforeBuild.js.map +1 -1
- package/extensions/hooks/BeforeWatch.d.ts +2 -6
- package/extensions/hooks/BeforeWatch.js +16 -18
- package/extensions/hooks/BeforeWatch.js.map +1 -1
- package/extensions/hooks/CoreAfterBuild.d.ts +2 -6
- package/extensions/hooks/CoreAfterBuild.js +17 -19
- package/extensions/hooks/CoreAfterBuild.js.map +1 -1
- package/extensions/hooks/CoreBeforeBuild.d.ts +2 -6
- package/extensions/hooks/CoreBeforeBuild.js +17 -19
- package/extensions/hooks/CoreBeforeBuild.js.map +1 -1
- package/extensions/hooks/CoreBeforeWatch.d.ts +2 -6
- package/extensions/hooks/CoreBeforeWatch.js +17 -19
- package/extensions/hooks/CoreBeforeWatch.js.map +1 -1
- package/extensions/hooks/index.d.ts +0 -8
- package/extensions/hooks/index.js +0 -10
- 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 +89 -75
- package/extensions/index.js +46 -55
- package/extensions/index.js.map +1 -1
- package/extensions/infra/Ci.d.ts +14 -0
- package/extensions/infra/Ci.js +13 -0
- package/extensions/infra/Ci.js.map +1 -0
- package/extensions/infra/Env.d.ts +6 -0
- package/extensions/infra/Env.js +43 -74
- package/extensions/infra/Env.js.map +1 -1
- package/extensions/infra/index.d.ts +1 -0
- package/extensions/infra/index.js +1 -2
- package/features/BuildApp/BuildApp.js +49 -40
- package/features/BuildApp/BuildApp.js.map +1 -1
- package/features/BuildApp/PackagesBuilder/PackagesBuilder.js +34 -39
- package/features/BuildApp/PackagesBuilder/PackagesBuilder.js.map +1 -1
- package/features/BuildApp/PackagesBuilder/RunnableBuildProcess.js +39 -33
- package/features/BuildApp/PackagesBuilder/RunnableBuildProcess.js.map +1 -1
- package/features/BuildApp/PackagesBuilder/RunnableBuildProcesses.js +39 -46
- package/features/BuildApp/PackagesBuilder/RunnableBuildProcesses.js.map +1 -1
- package/features/BuildApp/PackagesBuilder/worker.js +27 -35
- package/features/BuildApp/PackagesBuilder/worker.js.map +1 -1
- package/features/BuildApp/index.js +0 -2
- package/features/GetApp/GetApp.js +14 -11
- package/features/GetApp/GetApp.js.map +1 -1
- package/features/GetApp/index.js +0 -2
- package/features/GetFeatureFlags/GetFeatureFlags.d.ts +9 -0
- package/features/GetFeatureFlags/GetFeatureFlags.js +29 -0
- package/features/GetFeatureFlags/GetFeatureFlags.js.map +1 -0
- package/features/GetFeatureFlags/index.d.ts +1 -0
- package/features/GetFeatureFlags/index.js +1 -0
- package/features/GetLogger/GetLogger.js +14 -11
- package/features/GetLogger/GetLogger.js.map +1 -1
- package/features/GetLogger/index.js +0 -2
- package/features/GetProductionEnvironments/GetProductionEnvironments.js +24 -19
- package/features/GetProductionEnvironments/GetProductionEnvironments.js.map +1 -1
- package/features/GetProductionEnvironments/index.js +0 -2
- package/features/GetProject/GetProject.js +14 -11
- package/features/GetProject/GetProject.js.map +1 -1
- package/features/GetProject/index.js +0 -2
- package/features/GetProjectConfig/GetProjectConfig.js +14 -11
- package/features/GetProjectConfig/GetProjectConfig.js.map +1 -1
- package/features/GetProjectConfig/index.js +0 -2
- package/features/GetProjectInfo/GetProjectInfo.js +14 -11
- package/features/GetProjectInfo/GetProjectInfo.js.map +1 -1
- package/features/GetProjectInfo/index.js +0 -2
- package/features/InstallExtension/InstallExtension.js +14 -11
- package/features/InstallExtension/InstallExtension.js.map +1 -1
- package/features/InstallExtension/index.js +0 -2
- package/features/IsCi/IsCi.js +14 -11
- package/features/IsCi/IsCi.js.map +1 -1
- package/features/IsCi/index.js +0 -2
- package/features/IsTelemetryEnabled/IsTelemetryEnabled.js +19 -18
- package/features/IsTelemetryEnabled/IsTelemetryEnabled.js.map +1 -1
- package/features/IsTelemetryEnabled/index.js +0 -2
- package/features/IsWcpEnabled/IsWcpEnabled.js +15 -12
- package/features/IsWcpEnabled/IsWcpEnabled.js.map +1 -1
- package/features/IsWcpEnabled/index.js +0 -2
- package/features/IsWebinyJsRepo/IsWebinyJsRepo.js +17 -14
- package/features/IsWebinyJsRepo/IsWebinyJsRepo.js.map +1 -1
- package/features/IsWebinyJsRepo/index.js +0 -2
- package/features/Serve/Serve.d.ts +10 -0
- package/features/Serve/Serve.js +15 -0
- package/features/Serve/Serve.js.map +1 -0
- package/features/Serve/index.d.ts +1 -0
- package/features/Serve/index.js +1 -0
- package/features/ValidateProjectConfig/ValidateProjectConfig.js +14 -11
- package/features/ValidateProjectConfig/ValidateProjectConfig.js.map +1 -1
- package/features/ValidateProjectConfig/index.js +0 -2
- package/features/Watch/Watch.d.ts +3 -16
- package/features/Watch/Watch.js +99 -183
- package/features/Watch/Watch.js.map +1 -1
- package/features/Watch/index.js +0 -2
- package/features/Watch/watchers/BasePackagesWatcher.js +10 -13
- package/features/Watch/watchers/BasePackagesWatcher.js.map +1 -1
- package/features/Watch/watchers/MultiplePackagesWatcher.js +11 -12
- package/features/Watch/watchers/MultiplePackagesWatcher.js.map +1 -1
- package/features/Watch/watchers/PackagesWatcher.js +15 -18
- package/features/Watch/watchers/PackagesWatcher.js.map +1 -1
- package/features/Watch/watchers/RunnableWatchProcess.js +41 -40
- package/features/Watch/watchers/RunnableWatchProcess.js.map +1 -1
- package/features/Watch/watchers/RunnableWatchProcesses.js +35 -34
- package/features/Watch/watchers/RunnableWatchProcesses.js.map +1 -1
- package/features/Watch/watchers/ServersWatcher.d.ts +36 -0
- package/features/Watch/watchers/ServersWatcher.js +38 -0
- package/features/Watch/watchers/ServersWatcher.js.map +1 -0
- package/features/Watch/watchers/SinglePackageWatcher.js +11 -8
- package/features/Watch/watchers/SinglePackageWatcher.js.map +1 -1
- package/features/Watch/watchers/WebinyConfigWatcher.js +30 -40
- package/features/Watch/watchers/WebinyConfigWatcher.js.map +1 -1
- package/features/Watch/watchers/ZeroPackagesWatcher.js +5 -5
- package/features/Watch/watchers/ZeroPackagesWatcher.js.map +1 -1
- package/features/Watch/watchers/utils/measureDuration.js +7 -8
- package/features/Watch/watchers/utils/measureDuration.js.map +1 -1
- package/features/Watch/watchers/worker.js +15 -21
- package/features/Watch/watchers/worker.js.map +1 -1
- package/features/hooks/AdminAfterBuild/AdminBeforeBuild.js +19 -15
- package/features/hooks/AdminAfterBuild/AdminBeforeBuild.js.map +1 -1
- package/features/hooks/AdminAfterBuild/index.js +0 -2
- package/features/hooks/AdminBeforeBuild/AdminBeforeBuild.js +19 -15
- package/features/hooks/AdminBeforeBuild/AdminBeforeBuild.js.map +1 -1
- package/features/hooks/AdminBeforeBuild/index.js +0 -2
- package/features/hooks/AdminBeforeWatch/AdminBeforeWatch.js +18 -14
- package/features/hooks/AdminBeforeWatch/AdminBeforeWatch.js.map +1 -1
- package/features/hooks/AdminBeforeWatch/index.js +0 -2
- package/features/hooks/AfterBuild/AfterBuild.js +19 -15
- package/features/hooks/AfterBuild/AfterBuild.js.map +1 -1
- package/features/hooks/AfterBuild/index.js +0 -2
- package/features/hooks/ApiAfterBuild/ApiBeforeBuild.js +18 -14
- package/features/hooks/ApiAfterBuild/ApiBeforeBuild.js.map +1 -1
- package/features/hooks/ApiAfterBuild/index.js +0 -2
- package/features/hooks/ApiBeforeBuild/ApiBeforeBuild.js +18 -14
- package/features/hooks/ApiBeforeBuild/ApiBeforeBuild.js.map +1 -1
- package/features/hooks/ApiBeforeBuild/index.js +0 -2
- package/features/hooks/ApiBeforeWatch/ApiBeforeWatch.js +18 -14
- package/features/hooks/ApiBeforeWatch/ApiBeforeWatch.js.map +1 -1
- package/features/hooks/ApiBeforeWatch/index.js +0 -2
- package/features/hooks/BeforeBuild/BeforeBuild.js +19 -15
- package/features/hooks/BeforeBuild/BeforeBuild.js.map +1 -1
- package/features/hooks/BeforeBuild/index.js +0 -2
- package/features/hooks/BeforeWatch/BeforeWatch.js +19 -15
- package/features/hooks/BeforeWatch/BeforeWatch.js.map +1 -1
- package/features/hooks/BeforeWatch/index.js +0 -2
- package/features/hooks/CoreAfterBuild/CoreBeforeBuild.js +18 -14
- package/features/hooks/CoreAfterBuild/CoreBeforeBuild.js.map +1 -1
- package/features/hooks/CoreAfterBuild/index.js +0 -2
- package/features/hooks/CoreBeforeBuild/CoreBeforeBuild.js +18 -14
- package/features/hooks/CoreBeforeBuild/CoreBeforeBuild.js.map +1 -1
- package/features/hooks/CoreBeforeBuild/index.js +0 -2
- package/features/hooks/CoreBeforeWatch/CoreBeforeWatch.js +18 -14
- package/features/hooks/CoreBeforeWatch/CoreBeforeWatch.js.map +1 -1
- package/features/hooks/CoreBeforeWatch/index.js +0 -2
- package/features/hooks/index.d.ts +0 -8
- package/features/hooks/index.js +0 -10
- package/features/index.d.ts +2 -9
- package/features/index.js +2 -11
- package/index.d.ts +5 -5
- package/index.js +7 -12
- package/index.js.map +1 -1
- package/models/AppModel.js +19 -19
- package/models/AppModel.js.map +1 -1
- package/models/AppPackageModel.js +10 -9
- package/models/AppPackageModel.js.map +1 -1
- package/models/PathModel.js +23 -26
- package/models/PathModel.js.map +1 -1
- package/models/ProjectConfigModel.js +12 -16
- package/models/ProjectConfigModel.js.map +1 -1
- package/models/ProjectModel.js +35 -36
- package/models/ProjectModel.js.map +1 -1
- package/models/UrlModel.js +23 -23
- package/models/UrlModel.js.map +1 -1
- package/models/WcpEnvironmentModel.js +23 -22
- package/models/WcpEnvironmentModel.js.map +1 -1
- package/models/WcpUserModel.js +13 -12
- package/models/WcpUserModel.js.map +1 -1
- package/models/WcpUserPatModel.js +12 -11
- package/models/WcpUserPatModel.js.map +1 -1
- package/models/index.js +0 -2
- package/package.json +46 -50
- package/services/BuildAppWorkspaceService/BuildAppWorkspaceService.d.ts +2 -3
- package/services/BuildAppWorkspaceService/BuildAppWorkspaceService.js +33 -73
- package/services/BuildAppWorkspaceService/BuildAppWorkspaceService.js.map +1 -1
- package/services/BuildAppWorkspaceService/index.js +0 -2
- package/services/BuildProjectWorkspaceService/BuildProjectWorkspaceService.js +21 -19
- package/services/BuildProjectWorkspaceService/BuildProjectWorkspaceService.js.map +1 -1
- package/services/BuildProjectWorkspaceService/index.js +0 -2
- package/services/GetAppPackagesService/GetAppPackagesService.js +24 -23
- package/services/GetAppPackagesService/GetAppPackagesService.js.map +1 -1
- package/services/GetAppPackagesService/index.js +0 -2
- package/services/GetAppService/GetAppService.js +22 -27
- package/services/GetAppService/GetAppService.js.map +1 -1
- package/services/GetAppService/index.js +0 -2
- package/services/GetCwdService/GetCwdService.js +15 -12
- package/services/GetCwdService/GetCwdService.js.map +1 -1
- package/services/GetCwdService/index.js +0 -2
- 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 +28 -39
- package/services/GetProjectConfigService/EnvContext.js.map +1 -1
- package/services/GetProjectConfigService/FeatureFlagsContext.d.ts +26 -0
- package/services/GetProjectConfigService/FeatureFlagsContext.js +41 -0
- package/services/GetProjectConfigService/FeatureFlagsContext.js.map +1 -0
- package/services/GetProjectConfigService/GetProjectConfigService.js +106 -115
- package/services/GetProjectConfigService/GetProjectConfigService.js.map +1 -1
- package/services/GetProjectConfigService/LicenseDecoratedFeatureFlags.d.ts +8 -0
- package/services/GetProjectConfigService/LicenseDecoratedFeatureFlags.js +28 -0
- package/services/GetProjectConfigService/LicenseDecoratedFeatureFlags.js.map +1 -0
- package/services/GetProjectConfigService/ProductionEnvironmentsContext.d.ts +6 -0
- package/services/GetProjectConfigService/ProductionEnvironmentsContext.js +16 -0
- package/services/GetProjectConfigService/ProductionEnvironmentsContext.js.map +1 -0
- package/services/GetProjectConfigService/WcpProjectLicenseContext.d.ts +3 -0
- package/services/GetProjectConfigService/WcpProjectLicenseContext.js +34 -36
- 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/index.js +0 -2
- 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 +11 -42
- 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/GetProjectIdService/GetProjectIdService.js +22 -23
- package/services/GetProjectIdService/GetProjectIdService.js.map +1 -1
- package/services/GetProjectIdService/index.js +0 -2
- package/services/GetProjectInstallationIdService/GetProjectInstallationIdService.d.ts +10 -0
- package/services/GetProjectInstallationIdService/GetProjectInstallationIdService.js +34 -0
- package/services/GetProjectInstallationIdService/GetProjectInstallationIdService.js.map +1 -0
- package/services/GetProjectInstallationIdService/index.d.ts +1 -0
- package/services/GetProjectInstallationIdService/index.js +1 -0
- package/services/GetProjectService/GetProjectService.js +42 -46
- package/services/GetProjectService/GetProjectService.js.map +1 -1
- package/services/GetProjectService/index.js +0 -2
- package/services/GetProjectVersionService/GetProjectVersionService.js +25 -24
- package/services/GetProjectVersionService/GetProjectVersionService.js.map +1 -1
- package/services/GetProjectVersionService/index.js +0 -2
- package/services/InitProjectSdkService/InitProjectSdkService.d.ts +6 -2
- package/services/InitProjectSdkService/InitProjectSdkService.js +43 -55
- package/services/InitProjectSdkService/InitProjectSdkService.js.map +1 -1
- package/services/InitProjectSdkService/applyEnvVars.js +5 -8
- package/services/InitProjectSdkService/applyEnvVars.js.map +1 -1
- package/services/InitProjectSdkService/applyWcpEnvVars.js +110 -135
- package/services/InitProjectSdkService/applyWcpEnvVars.js.map +1 -1
- package/services/InitProjectSdkService/index.js +0 -2
- package/services/InitProjectSdkService/registerDecorators.js +11 -8
- package/services/InitProjectSdkService/registerDecorators.js.map +1 -1
- package/services/InitProjectSdkService/registerHooks.js +19 -8
- package/services/InitProjectSdkService/registerHooks.js.map +1 -1
- package/services/InitProjectSdkService/registerImplementations.js +11 -12
- package/services/InitProjectSdkService/registerImplementations.js.map +1 -1
- package/services/InstallExtensionService/InstallExtensionService.d.ts +1 -1
- package/services/InstallExtensionService/InstallExtensionService.js +80 -123
- package/services/InstallExtensionService/InstallExtensionService.js.map +1 -1
- package/services/InstallExtensionService/downloadFolderFromS3.js +46 -74
- package/services/InstallExtensionService/downloadFolderFromS3.js.map +1 -1
- package/services/InstallExtensionService/index.js +0 -2
- package/services/InstallExtensionService/mergePackageJson.js +17 -27
- package/services/InstallExtensionService/mergePackageJson.js.map +1 -1
- package/services/InstallExtensionService/types.d.ts +4 -0
- package/services/InstallExtensionService/types.js +0 -3
- package/services/InstallExtensionService/updateWebinyConfig.js +47 -111
- package/services/InstallExtensionService/updateWebinyConfig.js.map +1 -1
- package/services/ListPackagesInAppWorkspaceService/ListPackagesInAppWorkspaceService.js +34 -29
- package/services/ListPackagesInAppWorkspaceService/ListPackagesInAppWorkspaceService.js.map +1 -1
- package/services/ListPackagesInAppWorkspaceService/index.js +0 -2
- package/services/ListPackagesService/ListPackagesService.js +81 -114
- package/services/ListPackagesService/ListPackagesService.js.map +1 -1
- package/services/ListPackagesService/index.js +0 -2
- package/services/LoadEnvVarsService/LoadEnvVarsService.d.ts +3 -2
- package/services/LoadEnvVarsService/LoadEnvVarsService.js +37 -30
- package/services/LoadEnvVarsService/LoadEnvVarsService.js.map +1 -1
- package/services/LoadEnvVarsService/index.js +0 -2
- package/services/LocalStorageService/LocalStorageService.js +41 -44
- package/services/LocalStorageService/LocalStorageService.js.map +1 -1
- package/services/LocalStorageService/index.js +0 -2
- package/services/LoggerService/LoggerService.js +76 -84
- package/services/LoggerService/LoggerService.js.map +1 -1
- package/services/LoggerService/index.js +0 -2
- package/services/ProjectInfoService/GetIsCiService.js +9 -8
- package/services/ProjectInfoService/GetIsCiService.js.map +1 -1
- package/services/ProjectInfoService/GetNpmVersionService.js +9 -8
- package/services/ProjectInfoService/GetNpmVersionService.js.map +1 -1
- package/services/ProjectInfoService/GetNpxVersionService.js +9 -8
- package/services/ProjectInfoService/GetNpxVersionService.js.map +1 -1
- package/services/ProjectInfoService/GetYarnVersionService.js +9 -8
- package/services/ProjectInfoService/GetYarnVersionService.js.map +1 -1
- package/services/ProjectInfoService/ProjectInfoService.d.ts +7 -3
- package/services/ProjectInfoService/ProjectInfoService.js +48 -51
- package/services/ProjectInfoService/ProjectInfoService.js.map +1 -1
- package/services/ProjectInfoService/index.d.ts +0 -1
- package/services/ProjectInfoService/index.js +0 -3
- package/services/ProjectSdkParamsService/ProjectSdkParamsService.js +37 -34
- package/services/ProjectSdkParamsService/ProjectSdkParamsService.js.map +1 -1
- package/services/ProjectSdkParamsService/index.js +0 -2
- package/services/SetProjectIdService/SetProjectIdService.js +37 -46
- package/services/SetProjectIdService/SetProjectIdService.js.map +1 -1
- package/services/SetProjectIdService/index.js +0 -2
- package/services/StdioService/StdioService.js +15 -14
- package/services/StdioService/StdioService.js.map +1 -1
- package/services/StdioService/index.js +0 -2
- package/services/UiService/UiService.d.ts +18 -0
- package/services/UiService/UiService.js +71 -58
- package/services/UiService/UiService.js.map +1 -1
- package/services/UiService/index.js +0 -2
- package/services/ValidateProjectConfigService/ValidateProjectConfigService.js +21 -19
- package/services/ValidateProjectConfigService/ValidateProjectConfigService.js.map +1 -1
- package/services/ValidateProjectConfigService/index.js +0 -2
- package/services/WcpService/CreateUserPat.js +20 -23
- package/services/WcpService/CreateUserPat.js.map +1 -1
- package/services/WcpService/GenerateUserPat.js +15 -18
- package/services/WcpService/GenerateUserPat.js.map +1 -1
- package/services/WcpService/GetPatFromLocalStorage.js +9 -10
- package/services/WcpService/GetPatFromLocalStorage.js.map +1 -1
- package/services/WcpService/GetProjectEnvironment.js +45 -47
- package/services/WcpService/GetProjectEnvironment.js.map +1 -1
- package/services/WcpService/GetProjectLicense.js +28 -38
- package/services/WcpService/GetProjectLicense.js.map +1 -1
- package/services/WcpService/GetUser.js +43 -46
- package/services/WcpService/GetUser.js.map +1 -1
- package/services/WcpService/GetUserPat.js +20 -23
- package/services/WcpService/GetUserPat.js.map +1 -1
- package/services/WcpService/LogoutUser.js +9 -8
- package/services/WcpService/LogoutUser.js.map +1 -1
- package/services/WcpService/StorePatToLocalStorage.js +9 -10
- package/services/WcpService/StorePatToLocalStorage.js.map +1 -1
- package/services/WcpService/UnsetPatFromLocalStorage.js +9 -10
- package/services/WcpService/UnsetPatFromLocalStorage.js.map +1 -1
- package/services/WcpService/WcpGqlClient.js +7 -6
- package/services/WcpService/WcpGqlClient.js.map +1 -1
- package/services/WcpService/WcpService.js +74 -75
- package/services/WcpService/WcpService.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/WcpService/index.js +0 -2
- package/services/index.d.ts +1 -12
- package/services/index.js +1 -14
- package/utils/ExtensionSrcResolver.d.ts +33 -0
- package/utils/ExtensionSrcResolver.js +65 -0
- package/utils/ExtensionSrcResolver.js.map +1 -0
- package/utils/apiRuntimeEnv.d.ts +20 -0
- package/utils/apiRuntimeEnv.js +51 -0
- package/utils/apiRuntimeEnv.js.map +1 -0
- package/utils/constants.js +8 -7
- package/utils/constants.js.map +1 -1
- package/utils/createPathResolver.js +2 -5
- package/utils/createPathResolver.js.map +1 -1
- package/utils/ensureNamedImport.d.ts +12 -0
- package/utils/ensureNamedImport.js +27 -0
- package/utils/ensureNamedImport.js.map +1 -0
- package/utils/env/configuration.js +16 -25
- package/utils/env/configuration.js.map +1 -1
- package/utils/env/index.d.ts +0 -1
- package/utils/env/index.js +0 -3
- package/utils/env/types.js +0 -3
- package/utils/env/withEnv.js +4 -7
- package/utils/env/withEnv.js.map +1 -1
- package/utils/env/withEnvVariant.js +8 -11
- package/utils/env/withEnvVariant.js.map +1 -1
- package/utils/env/withProjectName.js +4 -9
- package/utils/env/withProjectName.js.map +1 -1
- package/utils/env/withRegion.js +10 -17
- package/utils/env/withRegion.js.map +1 -1
- package/utils/getRandomColorForString.js +86 -8
- package/utils/getRandomColorForString.js.map +1 -1
- package/utils/getStackName.js +11 -18
- package/utils/getStackName.js.map +1 -1
- package/utils/index.d.ts +6 -2
- package/utils/index.js +6 -4
- package/utils/isValidRegionName.js +8 -13
- package/utils/isValidRegionName.js.map +1 -1
- package/utils/isValidVariantName.js +11 -10
- package/utils/isValidVariantName.js.map +1 -1
- package/utils/measureDuration.js +7 -8
- package/utils/measureDuration.js.map +1 -1
- package/utils/projectSdkContext.js +23 -39
- package/utils/projectSdkContext.js.map +1 -1
- package/utils/regions.js +75 -63
- package/utils/regions.js.map +1 -1
- package/utils/registerExtension.js +6 -15
- package/utils/registerExtension.js.map +1 -1
- package/utils/registerSrcExtensions.d.ts +13 -0
- package/utils/registerSrcExtensions.js +10 -0
- package/utils/registerSrcExtensions.js.map +1 -0
- package/utils/requireConfig.js +8 -9
- package/utils/requireConfig.js.map +1 -1
- package/utils/toImportSpecifier.d.ts +5 -0
- package/utils/toImportSpecifier.js +6 -0
- package/utils/toImportSpecifier.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 -21
- package/abstractions/features/DeployApp.js +0 -4
- package/abstractions/features/DeployApp.js.map +0 -1
- package/abstractions/features/DestroyApp.d.ts +0 -18
- package/abstractions/features/DestroyApp.js +0 -4
- package/abstractions/features/DestroyApp.js.map +0 -1
- package/abstractions/features/ExportStack.d.ts +0 -18
- package/abstractions/features/ExportStack.js +0 -4
- package/abstractions/features/ExportStack.js.map +0 -1
- package/abstractions/features/GetAppOutput.d.ts +0 -18
- package/abstractions/features/GetAppOutput.js +0 -4
- package/abstractions/features/GetAppOutput.js.map +0 -1
- package/abstractions/features/GetAppStackOutput.d.ts +0 -21
- package/abstractions/features/GetAppStackOutput.js +0 -9
- package/abstractions/features/GetAppStackOutput.js.map +0 -1
- package/abstractions/features/GetPulumiResourceNamePrefix.d.ts +0 -7
- package/abstractions/features/GetPulumiResourceNamePrefix.js +0 -4
- package/abstractions/features/GetPulumiResourceNamePrefix.js.map +0 -1
- package/abstractions/features/RefreshApp.d.ts +0 -18
- package/abstractions/features/RefreshApp.js +0 -4
- package/abstractions/features/RefreshApp.js.map +0 -1
- package/abstractions/features/RunPulumiCommand.d.ts +0 -19
- package/abstractions/features/RunPulumiCommand.js +0 -4
- package/abstractions/features/RunPulumiCommand.js.map +0 -1
- package/abstractions/features/hooks/AdminAfterDeploy.d.ts +0 -9
- package/abstractions/features/hooks/AdminAfterDeploy.js +0 -4
- 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 -4
- 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 -4
- 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 -4
- 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 -4
- 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 -4
- 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 -4
- 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 -4
- package/abstractions/features/hooks/CoreBeforeDeploy.js.map +0 -1
- package/abstractions/features/hooks/index.js.map +0 -1
- package/abstractions/features/index.js.map +0 -1
- package/abstractions/features/pulumi/AdminPulumi.d.ts +0 -8
- package/abstractions/features/pulumi/AdminPulumi.js +0 -4
- package/abstractions/features/pulumi/AdminPulumi.js.map +0 -1
- package/abstractions/features/pulumi/ApiPulumi.d.ts +0 -8
- package/abstractions/features/pulumi/ApiPulumi.js +0 -4
- package/abstractions/features/pulumi/ApiPulumi.js.map +0 -1
- package/abstractions/features/pulumi/CorePulumi.d.ts +0 -8
- package/abstractions/features/pulumi/CorePulumi.js +0 -4
- package/abstractions/features/pulumi/CorePulumi.js.map +0 -1
- package/abstractions/features/pulumi/index.d.ts +0 -3
- package/abstractions/features/pulumi/index.js +0 -5
- package/abstractions/features/pulumi/index.js.map +0 -1
- package/abstractions/index.js.map +0 -1
- package/abstractions/models/IAppModel.js.map +0 -1
- package/abstractions/models/IAppPackageModel.js.map +0 -1
- package/abstractions/models/IPathModel.js.map +0 -1
- package/abstractions/models/IProjectConfigDto.js.map +0 -1
- package/abstractions/models/IProjectConfigModel.js.map +0 -1
- package/abstractions/models/IProjectModel.js.map +0 -1
- package/abstractions/models/IUrlModel.js.map +0 -1
- package/abstractions/models/IWcpEnvironmentDto.js.map +0 -1
- package/abstractions/models/IWcpEnvironmentModel.js.map +0 -1
- package/abstractions/models/IWcpUserDto.js.map +0 -1
- package/abstractions/models/IWcpUserModel.js.map +0 -1
- package/abstractions/models/IWcpUserPatDto.js.map +0 -1
- package/abstractions/models/IWcpUserPatModel.js.map +0 -1
- package/abstractions/models/PackagesBuilder/IPackagesBuilder.js.map +0 -1
- package/abstractions/models/PackagesBuilder/IRunnableBuildProcess.js.map +0 -1
- package/abstractions/models/PackagesBuilder/IRunnableBuildProcesses.js.map +0 -1
- package/abstractions/models/PackagesBuilder/index.js.map +0 -1
- package/abstractions/models/index.js.map +0 -1
- package/abstractions/services/GetPulumiService.d.ts +0 -14
- package/abstractions/services/GetPulumiService.js +0 -4
- package/abstractions/services/GetPulumiService.js.map +0 -1
- package/abstractions/services/IsRemotePulumiBackendService.d.ts +0 -7
- package/abstractions/services/IsRemotePulumiBackendService.js +0 -4
- package/abstractions/services/IsRemotePulumiBackendService.js.map +0 -1
- package/abstractions/services/ListAppLambdaFunctionsService.d.ts +0 -23
- package/abstractions/services/ListAppLambdaFunctionsService.js +0 -4
- package/abstractions/services/ListAppLambdaFunctionsService.js.map +0 -1
- package/abstractions/services/ListDeployedEnvironmentsService.d.ts +0 -12
- package/abstractions/services/ListDeployedEnvironmentsService.js +0 -4
- package/abstractions/services/ListDeployedEnvironmentsService.js.map +0 -1
- package/abstractions/services/ProjectInfoService/GetPulumiVersionService.d.ts +0 -12
- package/abstractions/services/ProjectInfoService/GetPulumiVersionService.js +0 -4
- package/abstractions/services/ProjectInfoService/GetPulumiVersionService.js.map +0 -1
- package/abstractions/services/ProjectInfoService/index.js.map +0 -1
- package/abstractions/services/PulumiExportService.d.ts +0 -13
- package/abstractions/services/PulumiExportService.js +0 -7
- package/abstractions/services/PulumiExportService.js.map +0 -1
- package/abstractions/services/PulumiGetConfigPassphraseService.d.ts +0 -7
- package/abstractions/services/PulumiGetConfigPassphraseService.js +0 -4
- package/abstractions/services/PulumiGetConfigPassphraseService.js.map +0 -1
- package/abstractions/services/PulumiGetSecretsProviderService.d.ts +0 -7
- package/abstractions/services/PulumiGetSecretsProviderService.js +0 -4
- package/abstractions/services/PulumiGetSecretsProviderService.js.map +0 -1
- package/abstractions/services/PulumiGetStackOutputService.d.ts +0 -13
- package/abstractions/services/PulumiGetStackOutputService.js +0 -4
- package/abstractions/services/PulumiGetStackOutputService.js.map +0 -1
- package/abstractions/services/PulumiImportService.d.ts +0 -8
- package/abstractions/services/PulumiImportService.js +0 -4
- package/abstractions/services/PulumiImportService.js.map +0 -1
- package/abstractions/services/PulumiLoginService.d.ts +0 -16
- package/abstractions/services/PulumiLoginService.js +0 -4
- package/abstractions/services/PulumiLoginService.js.map +0 -1
- package/abstractions/services/PulumiSelectStackService.d.ts +0 -10
- package/abstractions/services/PulumiSelectStackService.js +0 -4
- package/abstractions/services/PulumiSelectStackService.js.map +0 -1
- package/abstractions/services/WatchedLambdaFunctionsService.d.ts +0 -23
- package/abstractions/services/WatchedLambdaFunctionsService.js +0 -4
- package/abstractions/services/WatchedLambdaFunctionsService.js.map +0 -1
- package/abstractions/services/index.js.map +0 -1
- package/abstractions/types.js.map +0 -1
- package/components/Wcp.d.ts +0 -17
- package/components/Wcp.js +0 -41
- package/components/Wcp.js.map +0 -1
- package/decorators/DeployAppClearWatchedLambdaFunctions.d.ts +0 -16
- package/decorators/DeployAppClearWatchedLambdaFunctions.js +0 -28
- package/decorators/DeployAppClearWatchedLambdaFunctions.js.map +0 -1
- package/decorators/DeployAppRefreshStackOutputCache.d.ts +0 -17
- package/decorators/DeployAppRefreshStackOutputCache.js +0 -36
- package/decorators/DeployAppRefreshStackOutputCache.js.map +0 -1
- package/decorators/DeployAppWithHooks.d.ts +0 -17
- package/decorators/DeployAppWithHooks.js +0 -48
- package/decorators/DeployAppWithHooks.js.map +0 -1
- package/decorators/DeployAppWithWatchedLambdaReplacement.d.ts +0 -16
- package/decorators/DeployAppWithWatchedLambdaReplacement.js +0 -34
- package/decorators/DeployAppWithWatchedLambdaReplacement.js.map +0 -1
- package/decorators/GetPulumiServiceWithDownloadInfo.d.ts +0 -11
- package/decorators/GetPulumiServiceWithDownloadInfo.js +0 -25
- package/decorators/GetPulumiServiceWithDownloadInfo.js.map +0 -1
- package/decorators/index.js.map +0 -1
- package/defineExtension/defineApiExtension.d.ts +0 -17
- package/defineExtension/defineApiExtension.js +0 -110
- package/defineExtension/defineApiExtension.js.map +0 -1
- package/defineExtension/index.js.map +0 -1
- package/defineExtension/models/index.js.map +0 -1
- package/defineExtension/types.js.map +0 -1
- package/exports/extensions.d.ts +0 -1
- package/exports/extensions.js +0 -3
- package/exports/extensions.js.map +0 -1
- package/exports/infra/admin.js.map +0 -1
- package/exports/infra/api.js.map +0 -1
- package/exports/infra/core.js.map +0 -1
- package/exports/infra/index.d.ts +0 -8
- package/exports/infra/index.js +0 -10
- package/exports/infra/index.js.map +0 -1
- package/extensions/Project/EnsureApiDeployedBeforeAdminBuild.d.ts +0 -11
- package/extensions/Project/EnsureApiDeployedBeforeAdminBuild.js +0 -31
- package/extensions/Project/EnsureApiDeployedBeforeAdminBuild.js.map +0 -1
- package/extensions/Project/EnsureApiDeployedBeforeAdminWatch.d.ts +0 -11
- package/extensions/Project/EnsureApiDeployedBeforeAdminWatch.js +0 -31
- package/extensions/Project/EnsureApiDeployedBeforeAdminWatch.js.map +0 -1
- package/extensions/Project/EnsureApiDeployedBeforeWatch.d.ts +0 -11
- package/extensions/Project/EnsureApiDeployedBeforeWatch.js +0 -31
- package/extensions/Project/EnsureApiDeployedBeforeWatch.js.map +0 -1
- package/extensions/Project/EnsureCoreDeployedBeforeApiDeploy.d.ts +0 -11
- package/extensions/Project/EnsureCoreDeployedBeforeApiDeploy.js +0 -34
- package/extensions/Project/EnsureCoreDeployedBeforeApiDeploy.js.map +0 -1
- package/extensions/Project/EnsureTelemetryEnabledForOss.d.ts +0 -13
- package/extensions/Project/EnsureTelemetryEnabledForOss.js +0 -37
- package/extensions/Project/EnsureTelemetryEnabledForOss.js.map +0 -1
- package/extensions/Project/TelemetryNoLongerNewUser.d.ts +0 -8
- package/extensions/Project/TelemetryNoLongerNewUser.js +0 -14
- package/extensions/Project/TelemetryNoLongerNewUser.js.map +0 -1
- package/extensions/Project/ValidateProductionPulumiState.d.ts +0 -11
- package/extensions/Project/ValidateProductionPulumiState.js +0 -37
- package/extensions/Project/ValidateProductionPulumiState.js.map +0 -1
- package/extensions/hooks/AdminAfterDeploy.d.ts +0 -8
- package/extensions/hooks/AdminAfterDeploy.js +0 -25
- package/extensions/hooks/AdminAfterDeploy.js.map +0 -1
- package/extensions/hooks/AdminBeforeDeploy.d.ts +0 -8
- package/extensions/hooks/AdminBeforeDeploy.js +0 -25
- package/extensions/hooks/AdminBeforeDeploy.js.map +0 -1
- package/extensions/hooks/AfterDeploy.d.ts +0 -8
- package/extensions/hooks/AfterDeploy.js +0 -24
- package/extensions/hooks/AfterDeploy.js.map +0 -1
- package/extensions/hooks/ApiAfterDeploy.d.ts +0 -8
- package/extensions/hooks/ApiAfterDeploy.js +0 -25
- package/extensions/hooks/ApiAfterDeploy.js.map +0 -1
- package/extensions/hooks/ApiBeforeDeploy.d.ts +0 -8
- package/extensions/hooks/ApiBeforeDeploy.js +0 -25
- package/extensions/hooks/ApiBeforeDeploy.js.map +0 -1
- package/extensions/hooks/BeforeDeploy.d.ts +0 -8
- package/extensions/hooks/BeforeDeploy.js +0 -24
- package/extensions/hooks/BeforeDeploy.js.map +0 -1
- package/extensions/hooks/CoreAfterDeploy.d.ts +0 -8
- package/extensions/hooks/CoreAfterDeploy.js +0 -25
- package/extensions/hooks/CoreAfterDeploy.js.map +0 -1
- package/extensions/hooks/CoreBeforeDeploy.d.ts +0 -8
- package/extensions/hooks/CoreBeforeDeploy.js +0 -25
- package/extensions/hooks/CoreBeforeDeploy.js.map +0 -1
- package/extensions/hooks/index.js.map +0 -1
- package/extensions/infra/index.js.map +0 -1
- package/extensions/pulumi/AdminPulumi.d.ts +0 -8
- package/extensions/pulumi/AdminPulumi.js +0 -25
- package/extensions/pulumi/AdminPulumi.js.map +0 -1
- package/extensions/pulumi/AdminStackOutputValue.d.ts +0 -11
- package/extensions/pulumi/AdminStackOutputValue.js +0 -17
- package/extensions/pulumi/AdminStackOutputValue.js.map +0 -1
- package/extensions/pulumi/ApiPulumi.d.ts +0 -8
- package/extensions/pulumi/ApiPulumi.js +0 -25
- package/extensions/pulumi/ApiPulumi.js.map +0 -1
- package/extensions/pulumi/ApiStackOutputValue.d.ts +0 -11
- package/extensions/pulumi/ApiStackOutputValue.js +0 -17
- package/extensions/pulumi/ApiStackOutputValue.js.map +0 -1
- package/extensions/pulumi/CorePulumi.d.ts +0 -8
- package/extensions/pulumi/CorePulumi.js +0 -25
- package/extensions/pulumi/CorePulumi.js.map +0 -1
- package/extensions/pulumi/CoreStackOutputValue.d.ts +0 -11
- package/extensions/pulumi/CoreStackOutputValue.js +0 -17
- package/extensions/pulumi/CoreStackOutputValue.js.map +0 -1
- package/extensions/pulumi/ProductionEnvironments.d.ts +0 -8
- package/extensions/pulumi/ProductionEnvironments.js +0 -31
- package/extensions/pulumi/ProductionEnvironments.js.map +0 -1
- package/extensions/pulumi/PulumiResourceNamePrefix.d.ts +0 -8
- package/extensions/pulumi/PulumiResourceNamePrefix.js +0 -14
- package/extensions/pulumi/PulumiResourceNamePrefix.js.map +0 -1
- package/extensions/pulumi/index.d.ts +0 -8
- package/extensions/pulumi/index.js +0 -10
- package/extensions/pulumi/index.js.map +0 -1
- package/features/BuildApp/PackagesBuilder/utils/requireConfig.d.ts +0 -18
- package/features/BuildApp/PackagesBuilder/utils/requireConfig.js +0 -15
- package/features/BuildApp/PackagesBuilder/utils/requireConfig.js.map +0 -1
- package/features/BuildApp/index.js.map +0 -1
- 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 -3
- package/features/DeployApp/index.js.map +0 -1
- package/features/DestroyApp/DestroyApp.d.ts +0 -14
- package/features/DestroyApp/DestroyApp.js +0 -52
- package/features/DestroyApp/DestroyApp.js.map +0 -1
- package/features/DestroyApp/index.d.ts +0 -1
- package/features/DestroyApp/index.js +0 -3
- package/features/DestroyApp/index.js.map +0 -1
- package/features/ExportStack/ExportStack.d.ts +0 -9
- package/features/ExportStack/ExportStack.js +0 -21
- package/features/ExportStack/ExportStack.js.map +0 -1
- package/features/ExportStack/index.d.ts +0 -1
- package/features/ExportStack/index.js +0 -3
- package/features/ExportStack/index.js.map +0 -1
- package/features/GetApp/index.js.map +0 -1
- package/features/GetAppOutput/GetAppOutput.d.ts +0 -12
- package/features/GetAppOutput/GetAppOutput.js +0 -40
- package/features/GetAppOutput/GetAppOutput.js.map +0 -1
- package/features/GetAppOutput/index.d.ts +0 -1
- package/features/GetAppOutput/index.js +0 -3
- package/features/GetAppOutput/index.js.map +0 -1
- package/features/GetAppStackOutput/GetAppStackOutput.d.ts +0 -10
- package/features/GetAppStackOutput/GetAppStackOutput.js +0 -21
- package/features/GetAppStackOutput/GetAppStackOutput.js.map +0 -1
- package/features/GetAppStackOutput/index.d.ts +0 -1
- package/features/GetAppStackOutput/index.js +0 -3
- package/features/GetAppStackOutput/index.js.map +0 -1
- package/features/GetLogger/index.js.map +0 -1
- package/features/GetProductionEnvironments/index.js.map +0 -1
- package/features/GetProject/index.js.map +0 -1
- package/features/GetProjectConfig/index.js.map +0 -1
- package/features/GetProjectInfo/index.js.map +0 -1
- package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.d.ts +0 -7
- package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.js +0 -24
- package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.js.map +0 -1
- package/features/GetPulumiResourceNamePrefix/index.d.ts +0 -1
- package/features/GetPulumiResourceNamePrefix/index.js +0 -3
- package/features/GetPulumiResourceNamePrefix/index.js.map +0 -1
- package/features/InstallExtension/index.js.map +0 -1
- package/features/IsCi/index.js.map +0 -1
- package/features/IsTelemetryEnabled/index.js.map +0 -1
- package/features/IsWcpEnabled/index.js.map +0 -1
- package/features/IsWebinyJsRepo/index.js.map +0 -1
- package/features/RefreshApp/RefreshApp.d.ts +0 -13
- package/features/RefreshApp/RefreshApp.js +0 -53
- package/features/RefreshApp/RefreshApp.js.map +0 -1
- package/features/RefreshApp/index.d.ts +0 -1
- package/features/RefreshApp/index.js +0 -3
- package/features/RefreshApp/index.js.map +0 -1
- package/features/RunPulumiCommand/RunPulumiCommand.d.ts +0 -13
- package/features/RunPulumiCommand/RunPulumiCommand.js +0 -50
- package/features/RunPulumiCommand/RunPulumiCommand.js.map +0 -1
- package/features/RunPulumiCommand/index.d.ts +0 -1
- package/features/RunPulumiCommand/index.js +0 -3
- package/features/RunPulumiCommand/index.js.map +0 -1
- package/features/ValidateProjectConfig/index.js.map +0 -1
- package/features/Watch/getIotEndpoint.d.ts +0 -2
- package/features/Watch/getIotEndpoint.js +0 -16
- package/features/Watch/getIotEndpoint.js.map +0 -1
- package/features/Watch/handler/handler.zip +0 -0
- package/features/Watch/index.js.map +0 -1
- package/features/Watch/initInvocationForwarding.d.ts +0 -9
- package/features/Watch/initInvocationForwarding.js +0 -110
- package/features/Watch/initInvocationForwarding.js.map +0 -1
- package/features/Watch/localInvocationWorker.d.ts +0 -1
- package/features/Watch/localInvocationWorker.js +0 -36
- package/features/Watch/localInvocationWorker.js.map +0 -1
- package/features/Watch/replaceLambdaFunctions.d.ts +0 -18
- package/features/Watch/replaceLambdaFunctions.js +0 -91
- package/features/Watch/replaceLambdaFunctions.js.map +0 -1
- package/features/Watch/watchers/utils/requireConfig.d.ts +0 -18
- package/features/Watch/watchers/utils/requireConfig.js +0 -15
- package/features/Watch/watchers/utils/requireConfig.js.map +0 -1
- package/features/hooks/AdminAfterBuild/index.js.map +0 -1
- package/features/hooks/AdminAfterDeploy/AdminBeforeBuild.d.ts +0 -7
- package/features/hooks/AdminAfterDeploy/AdminBeforeBuild.js +0 -21
- 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 -3
- package/features/hooks/AdminAfterDeploy/index.js.map +0 -1
- package/features/hooks/AdminBeforeBuild/index.js.map +0 -1
- package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.d.ts +0 -7
- package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.js +0 -21
- 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 -3
- package/features/hooks/AdminBeforeDeploy/index.js.map +0 -1
- package/features/hooks/AdminBeforeWatch/index.js.map +0 -1
- package/features/hooks/AfterBuild/index.js.map +0 -1
- package/features/hooks/AfterDeploy/AfterDeploy.d.ts +0 -7
- package/features/hooks/AfterDeploy/AfterDeploy.js +0 -21
- 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 -3
- package/features/hooks/AfterDeploy/index.js.map +0 -1
- package/features/hooks/ApiAfterBuild/index.js.map +0 -1
- package/features/hooks/ApiAfterDeploy/ApiBeforeBuild.d.ts +0 -7
- package/features/hooks/ApiAfterDeploy/ApiBeforeBuild.js +0 -21
- 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 -3
- package/features/hooks/ApiAfterDeploy/index.js.map +0 -1
- package/features/hooks/ApiBeforeBuild/index.js.map +0 -1
- package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.d.ts +0 -7
- package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.js +0 -21
- 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 -3
- package/features/hooks/ApiBeforeDeploy/index.js.map +0 -1
- package/features/hooks/ApiBeforeWatch/index.js.map +0 -1
- package/features/hooks/BeforeBuild/index.js.map +0 -1
- package/features/hooks/BeforeDeploy/BeforeDeploy.d.ts +0 -7
- package/features/hooks/BeforeDeploy/BeforeDeploy.js +0 -21
- 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 -3
- package/features/hooks/BeforeDeploy/index.js.map +0 -1
- package/features/hooks/BeforeWatch/index.js.map +0 -1
- package/features/hooks/CoreAfterBuild/index.js.map +0 -1
- package/features/hooks/CoreAfterDeploy/CoreBeforeBuild.d.ts +0 -7
- package/features/hooks/CoreAfterDeploy/CoreBeforeBuild.js +0 -21
- 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 -3
- package/features/hooks/CoreAfterDeploy/index.js.map +0 -1
- package/features/hooks/CoreBeforeBuild/index.js.map +0 -1
- package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.d.ts +0 -7
- package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.js +0 -21
- 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 -3
- package/features/hooks/CoreBeforeDeploy/index.js.map +0 -1
- package/features/hooks/CoreBeforeWatch/index.js.map +0 -1
- package/features/hooks/index.js.map +0 -1
- package/features/index.js.map +0 -1
- package/features/pulumi/AdminPulumi/AdminPulumi.d.ts +0 -7
- package/features/pulumi/AdminPulumi/AdminPulumi.js +0 -21
- package/features/pulumi/AdminPulumi/AdminPulumi.js.map +0 -1
- package/features/pulumi/AdminPulumi/index.d.ts +0 -1
- package/features/pulumi/AdminPulumi/index.js +0 -3
- package/features/pulumi/AdminPulumi/index.js.map +0 -1
- package/features/pulumi/ApiPulumi/ApiPulumi.d.ts +0 -7
- package/features/pulumi/ApiPulumi/ApiPulumi.js +0 -21
- package/features/pulumi/ApiPulumi/ApiPulumi.js.map +0 -1
- package/features/pulumi/ApiPulumi/index.d.ts +0 -1
- package/features/pulumi/ApiPulumi/index.js +0 -3
- package/features/pulumi/ApiPulumi/index.js.map +0 -1
- package/features/pulumi/CorePulumi/CorePulumi.d.ts +0 -7
- package/features/pulumi/CorePulumi/CorePulumi.js +0 -21
- package/features/pulumi/CorePulumi/CorePulumi.js.map +0 -1
- package/features/pulumi/CorePulumi/index.d.ts +0 -1
- package/features/pulumi/CorePulumi/index.js +0 -3
- package/features/pulumi/CorePulumi/index.js.map +0 -1
- package/features/pulumi/index.d.ts +0 -3
- package/features/pulumi/index.js +0 -5
- package/features/pulumi/index.js.map +0 -1
- package/models/index.js.map +0 -1
- package/services/BuildAppWorkspaceService/index.js.map +0 -1
- package/services/BuildProjectWorkspaceService/index.js.map +0 -1
- package/services/GetAppPackagesService/index.js.map +0 -1
- package/services/GetAppService/index.js.map +0 -1
- package/services/GetCwdService/index.js.map +0 -1
- package/services/GetProjectConfigService/index.js.map +0 -1
- package/services/GetProjectConfigService/renderConfigWorker.d.ts +0 -1
- package/services/GetProjectConfigService/renderConfigWorker.js +0 -58
- package/services/GetProjectConfigService/renderConfigWorker.js.map +0 -1
- package/services/GetProjectIdService/index.js.map +0 -1
- package/services/GetProjectService/index.js.map +0 -1
- package/services/GetProjectVersionService/index.js.map +0 -1
- package/services/GetPulumiService/GetPulumiService.d.ts +0 -9
- package/services/GetPulumiService/GetPulumiService.js +0 -49
- package/services/GetPulumiService/GetPulumiService.js.map +0 -1
- package/services/GetPulumiService/index.d.ts +0 -1
- package/services/GetPulumiService/index.js +0 -3
- package/services/GetPulumiService/index.js.map +0 -1
- package/services/InitProjectSdkService/index.js.map +0 -1
- package/services/InitProjectSdkService/registerPulumiExtensions.d.ts +0 -4
- package/services/InitProjectSdkService/registerPulumiExtensions.js +0 -11
- package/services/InitProjectSdkService/registerPulumiExtensions.js.map +0 -1
- package/services/InstallExtensionService/index.js.map +0 -1
- package/services/InstallExtensionService/types.js.map +0 -1
- package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.d.ts +0 -13
- package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.js +0 -23
- package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.js.map +0 -1
- package/services/IsRemotePulumiBackendService/index.d.ts +0 -1
- package/services/IsRemotePulumiBackendService/index.js +0 -3
- package/services/IsRemotePulumiBackendService/index.js.map +0 -1
- package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.d.ts +0 -18
- package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.js +0 -84
- package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.js.map +0 -1
- package/services/ListAppLambdaFunctionsService/index.d.ts +0 -1
- package/services/ListAppLambdaFunctionsService/index.js +0 -3
- package/services/ListAppLambdaFunctionsService/index.js.map +0 -1
- package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.d.ts +0 -7
- package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.js +0 -32
- package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.js.map +0 -1
- package/services/ListDeployedEnvironmentsService/index.d.ts +0 -1
- package/services/ListDeployedEnvironmentsService/index.js +0 -3
- package/services/ListDeployedEnvironmentsService/index.js.map +0 -1
- package/services/ListPackagesInAppWorkspaceService/index.js.map +0 -1
- package/services/ListPackagesService/index.js.map +0 -1
- package/services/LoadEnvVarsService/index.js.map +0 -1
- package/services/LocalStorageService/index.js.map +0 -1
- package/services/LoggerService/index.js.map +0 -1
- package/services/ProjectInfoService/GetPulumiVersionService.d.ts +0 -5
- package/services/ProjectInfoService/GetPulumiVersionService.js +0 -38
- package/services/ProjectInfoService/GetPulumiVersionService.js.map +0 -1
- package/services/ProjectInfoService/index.js.map +0 -1
- package/services/ProjectSdkParamsService/index.js.map +0 -1
- package/services/PulumiExportService/PulumiExportService.d.ts +0 -13
- package/services/PulumiExportService/PulumiExportService.js +0 -43
- package/services/PulumiExportService/PulumiExportService.js.map +0 -1
- package/services/PulumiExportService/index.d.ts +0 -1
- package/services/PulumiExportService/index.js +0 -3
- package/services/PulumiExportService/index.js.map +0 -1
- package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.d.ts +0 -5
- package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.js +0 -14
- package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.js.map +0 -1
- package/services/PulumiGetConfigPassphraseService/index.d.ts +0 -1
- package/services/PulumiGetConfigPassphraseService/index.js +0 -3
- package/services/PulumiGetConfigPassphraseService/index.js.map +0 -1
- package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.d.ts +0 -5
- package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.js +0 -14
- package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.js.map +0 -1
- package/services/PulumiGetSecretsProviderService/index.d.ts +0 -1
- package/services/PulumiGetSecretsProviderService/index.js +0 -3
- package/services/PulumiGetSecretsProviderService/index.js.map +0 -1
- package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.d.ts +0 -20
- package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js +0 -113
- package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js.map +0 -1
- package/services/PulumiGetStackOutputService/index.d.ts +0 -1
- package/services/PulumiGetStackOutputService/index.js +0 -3
- package/services/PulumiGetStackOutputService/index.js.map +0 -1
- package/services/PulumiGetStackOutputService/mapStackOutput.d.ts +0 -1
- package/services/PulumiGetStackOutputService/mapStackOutput.js +0 -34
- package/services/PulumiGetStackOutputService/mapStackOutput.js.map +0 -1
- package/services/PulumiImportService/PulumiImportService.d.ts +0 -10
- package/services/PulumiImportService/PulumiImportService.js +0 -57
- package/services/PulumiImportService/PulumiImportService.js.map +0 -1
- package/services/PulumiImportService/index.d.ts +0 -1
- package/services/PulumiImportService/index.js +0 -3
- package/services/PulumiImportService/index.js.map +0 -1
- package/services/PulumiLoginService/PulumiLoginService.d.ts +0 -10
- package/services/PulumiLoginService/PulumiLoginService.js +0 -51
- package/services/PulumiLoginService/PulumiLoginService.js.map +0 -1
- package/services/PulumiLoginService/index.d.ts +0 -1
- package/services/PulumiLoginService/index.js +0 -3
- package/services/PulumiLoginService/index.js.map +0 -1
- package/services/PulumiSelectStackService/PulumiSelectStackService.d.ts +0 -15
- package/services/PulumiSelectStackService/PulumiSelectStackService.js +0 -97
- package/services/PulumiSelectStackService/PulumiSelectStackService.js.map +0 -1
- package/services/PulumiSelectStackService/index.d.ts +0 -1
- package/services/PulumiSelectStackService/index.js +0 -3
- package/services/PulumiSelectStackService/index.js.map +0 -1
- package/services/SetProjectIdService/index.js.map +0 -1
- package/services/StdioService/index.js.map +0 -1
- package/services/UiService/index.js.map +0 -1
- package/services/ValidateProjectConfigService/index.js.map +0 -1
- package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.d.ts +0 -13
- package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.js +0 -55
- package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.js.map +0 -1
- package/services/WatchedLambdaFunctionsService/index.d.ts +0 -1
- package/services/WatchedLambdaFunctionsService/index.js +0 -3
- package/services/WatchedLambdaFunctionsService/index.js.map +0 -1
- package/services/WcpService/index.js.map +0 -1
- package/services/index.js.map +0 -1
- package/utils/ImplPathResolver.d.ts +0 -10
- package/utils/ImplPathResolver.js +0 -27
- package/utils/ImplPathResolver.js.map +0 -1
- package/utils/env/index.js.map +0 -1
- package/utils/env/types.js.map +0 -1
- package/utils/env/withPulumiConfigPassphrase.d.ts +0 -1
- package/utils/env/withPulumiConfigPassphrase.js +0 -11
- package/utils/env/withPulumiConfigPassphrase.js.map +0 -1
- package/utils/getTemplatesFolderPath.d.ts +0 -1
- package/utils/getTemplatesFolderPath.js +0 -13
- package/utils/getTemplatesFolderPath.js.map +0 -1
- package/utils/index.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["z","Node","Project","defineExtension","zodSrcPath","path","crypto","defineApiExtension","params","type","tags","runtimeContext","appName","description","multiple","paramsSchema","project","object","src","abstraction","exportName","string","optional","build","ctx","extensionsTsFilePath","paths","workspaceFolder","join","toString","extensionFilePath","absoluteExtensionFilePath","startsWith","rootFolder","extensionFileName","basename","parse","name","hash","createHash","update","digest","exportNameAlias","slice","importPath","relative","dirname","replace","addSourceFileAtPath","source","getSourceFileOrThrow","existingImportDeclaration","getImportDeclaration","index","importDeclarations","getImportDeclarations","length","last","getChildIndex","extensionProject","extensionSource","hasDefaultExport","getDefaultExportSymbol","undefined","insertImportDeclaration","defaultImport","moduleSpecifier","namedImports","alias","pluginsArray","getFirstDescendant","node","isArrayLiteralExpression","addElement","contextPluginImportPath","existingContextPluginImport","save"],"sources":["defineApiExtension.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { Node, Project, ArrayLiteralExpression } from \"ts-morph\";\nimport { Abstraction } from \"@webiny/di\";\nimport { defineExtension } from \"~/defineExtension/index.js\";\nimport { zodSrcPath } from \"~/defineExtension/zodTypes/zodSrcPath.js\";\nimport path from \"path\";\nimport crypto from \"crypto\";\n\nexport type DefineApiExtensionParams = {\n type: string;\n description?: string;\n abstraction?: Abstraction<any>;\n};\n\nexport const defineApiExtension = (params: DefineApiExtensionParams) =>\n defineExtension({\n type: params.type,\n tags: { runtimeContext: \"app-build\", appName: \"api\" },\n description: params.description,\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project, abstraction: params.abstraction }),\n exportName: z.string().optional()\n });\n },\n async build(params, ctx) {\n const extensionsTsFilePath = ctx.project.paths.workspaceFolder\n .join(\"apps\", \"api\", \"graphql\", \"src\", \"extensions.ts\")\n .toString();\n\n const { src: extensionFilePath } = params;\n\n // Resolve to absolute path for file operations\n let absoluteExtensionFilePath: string;\n if (extensionFilePath.startsWith(\"/extensions/\")) {\n // Resolve from project root\n absoluteExtensionFilePath = ctx.project.paths.rootFolder\n .join(extensionFilePath)\n .toString();\n } else {\n // Treat as absolute path\n absoluteExtensionFilePath = extensionFilePath;\n }\n\n const extensionFileName = path.basename(absoluteExtensionFilePath);\n\n // 1. Export name is always the file name without extension.\n const exportName = params.exportName ?? path.parse(extensionFileName).name;\n\n // 2. Alias name is \"ApiExtension_\" + hash of the file path. This way we\n // avoid potential naming conflicts and keep the identifier constant.\n const hash = crypto.createHash(\"sha256\").update(extensionFilePath).digest(\"hex\");\n const exportNameAlias = `ApiExtension_${hash.slice(-10)}`;\n\n // 3. Calculate import path relative to `extensions.ts` file.\n const importPath = path\n .relative(path.dirname(extensionsTsFilePath), absoluteExtensionFilePath)\n .replace(/\\.tsx?$/, \".js\");\n\n const project = new Project();\n project.addSourceFileAtPath(extensionsTsFilePath);\n\n const source = project.getSourceFileOrThrow(extensionsTsFilePath);\n\n const existingImportDeclaration = source.getImportDeclaration(importPath);\n if (existingImportDeclaration) {\n return;\n }\n\n let index = 1;\n\n const importDeclarations = source.getImportDeclarations();\n if (importDeclarations.length) {\n const last = importDeclarations[importDeclarations.length - 1];\n index = last.getChildIndex() + 1;\n }\n\n // Check if the file has a default export using AST parsing.\n const extensionProject = new Project();\n extensionProject.addSourceFileAtPath(absoluteExtensionFilePath);\n const extensionSource =\n extensionProject.getSourceFileOrThrow(absoluteExtensionFilePath);\n const hasDefaultExport = extensionSource.getDefaultExportSymbol() !== undefined;\n\n // Support both default and named exports.\n if (hasDefaultExport) {\n source.insertImportDeclaration(index, {\n defaultImport: exportNameAlias,\n moduleSpecifier: importPath\n });\n } else {\n source.insertImportDeclaration(index, {\n namedImports: [{ name: exportName, alias: exportNameAlias }],\n moduleSpecifier: importPath\n });\n }\n\n const pluginsArray = source.getFirstDescendant(node =>\n Node.isArrayLiteralExpression(node)\n ) as ArrayLiteralExpression;\n\n pluginsArray.addElement(\n `\\ncreateContextPlugin(ctx => {\\n\\tregisterExtension(ctx.container, ${exportNameAlias});\\n})`\n );\n\n {\n let index = 1;\n\n const importDeclarations = source.getImportDeclarations();\n if (importDeclarations.length) {\n const last = importDeclarations[importDeclarations.length - 1];\n index = last.getChildIndex() + 1;\n }\n\n const contextPluginImportPath = \"@webiny/api/plugins/ContextPlugin\";\n const existingContextPluginImport =\n source.getImportDeclaration(contextPluginImportPath);\n if (!existingContextPluginImport) {\n source.insertImportDeclaration(index, {\n namedImports: [\"createContextPlugin\"],\n moduleSpecifier: contextPluginImportPath\n });\n }\n }\n\n await source.save();\n }\n });\n"],"mappings":"AAAA,SAASA,CAAC,QAAQ,KAAK;AACvB,SAASC,IAAI,EAAEC,OAAO,QAAgC,UAAU;AAEhE,SAASC,eAAe;AACxB,SAASC,UAAU;AACnB,OAAOC,IAAI,MAAM,MAAM;AACvB,OAAOC,MAAM,MAAM,QAAQ;AAQ3B,OAAO,MAAMC,kBAAkB,GAAIC,MAAgC,IAC/DL,eAAe,CAAC;EACZM,IAAI,EAAED,MAAM,CAACC,IAAI;EACjBC,IAAI,EAAE;IAAEC,cAAc,EAAE,WAAW;IAAEC,OAAO,EAAE;EAAM,CAAC;EACrDC,WAAW,EAAEL,MAAM,CAACK,WAAW;EAC/BC,QAAQ,EAAE,IAAI;EACdC,YAAY,EAAEA,CAAC;IAAEC;EAAQ,CAAC,KAAK;IAC3B,OAAOhB,CAAC,CAACiB,MAAM,CAAC;MACZC,GAAG,EAAEd,UAAU,CAAC;QAAEY,OAAO;QAAEG,WAAW,EAAEX,MAAM,CAACW;MAAY,CAAC,CAAC;MAC7DC,UAAU,EAAEpB,CAAC,CAACqB,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC;IACpC,CAAC,CAAC;EACN,CAAC;EACD,MAAMC,KAAKA,CAACf,MAAM,EAAEgB,GAAG,EAAE;IACrB,MAAMC,oBAAoB,GAAGD,GAAG,CAACR,OAAO,CAACU,KAAK,CAACC,eAAe,CACzDC,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,eAAe,CAAC,CACtDC,QAAQ,CAAC,CAAC;IAEf,MAAM;MAAEX,GAAG,EAAEY;IAAkB,CAAC,GAAGtB,MAAM;;IAEzC;IACA,IAAIuB,yBAAiC;IACrC,IAAID,iBAAiB,CAACE,UAAU,CAAC,cAAc,CAAC,EAAE;MAC9C;MACAD,yBAAyB,GAAGP,GAAG,CAACR,OAAO,CAACU,KAAK,CAACO,UAAU,CACnDL,IAAI,CAACE,iBAAiB,CAAC,CACvBD,QAAQ,CAAC,CAAC;IACnB,CAAC,MAAM;MACH;MACAE,yBAAyB,GAAGD,iBAAiB;IACjD;IAEA,MAAMI,iBAAiB,GAAG7B,IAAI,CAAC8B,QAAQ,CAACJ,yBAAyB,CAAC;;IAElE;IACA,MAAMX,UAAU,GAAGZ,MAAM,CAACY,UAAU,IAAIf,IAAI,CAAC+B,KAAK,CAACF,iBAAiB,CAAC,CAACG,IAAI;;IAE1E;IACA;IACA,MAAMC,IAAI,GAAGhC,MAAM,CAACiC,UAAU,CAAC,QAAQ,CAAC,CAACC,MAAM,CAACV,iBAAiB,CAAC,CAACW,MAAM,CAAC,KAAK,CAAC;IAChF,MAAMC,eAAe,GAAG,gBAAgBJ,IAAI,CAACK,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE;;IAEzD;IACA,MAAMC,UAAU,GAAGvC,IAAI,CAClBwC,QAAQ,CAACxC,IAAI,CAACyC,OAAO,CAACrB,oBAAoB,CAAC,EAAEM,yBAAyB,CAAC,CACvEgB,OAAO,CAAC,SAAS,EAAE,KAAK,CAAC;IAE9B,MAAM/B,OAAO,GAAG,IAAId,OAAO,CAAC,CAAC;IAC7Bc,OAAO,CAACgC,mBAAmB,CAACvB,oBAAoB,CAAC;IAEjD,MAAMwB,MAAM,GAAGjC,OAAO,CAACkC,oBAAoB,CAACzB,oBAAoB,CAAC;IAEjE,MAAM0B,yBAAyB,GAAGF,MAAM,CAACG,oBAAoB,CAACR,UAAU,CAAC;IACzE,IAAIO,yBAAyB,EAAE;MAC3B;IACJ;IAEA,IAAIE,KAAK,GAAG,CAAC;IAEb,MAAMC,kBAAkB,GAAGL,MAAM,CAACM,qBAAqB,CAAC,CAAC;IACzD,IAAID,kBAAkB,CAACE,MAAM,EAAE;MAC3B,MAAMC,IAAI,GAAGH,kBAAkB,CAACA,kBAAkB,CAACE,MAAM,GAAG,CAAC,CAAC;MAC9DH,KAAK,GAAGI,IAAI,CAACC,aAAa,CAAC,CAAC,GAAG,CAAC;IACpC;;IAEA;IACA,MAAMC,gBAAgB,GAAG,IAAIzD,OAAO,CAAC,CAAC;IACtCyD,gBAAgB,CAACX,mBAAmB,CAACjB,yBAAyB,CAAC;IAC/D,MAAM6B,eAAe,GACjBD,gBAAgB,CAACT,oBAAoB,CAACnB,yBAAyB,CAAC;IACpE,MAAM8B,gBAAgB,GAAGD,eAAe,CAACE,sBAAsB,CAAC,CAAC,KAAKC,SAAS;;IAE/E;IACA,IAAIF,gBAAgB,EAAE;MAClBZ,MAAM,CAACe,uBAAuB,CAACX,KAAK,EAAE;QAClCY,aAAa,EAAEvB,eAAe;QAC9BwB,eAAe,EAAEtB;MACrB,CAAC,CAAC;IACN,CAAC,MAAM;MACHK,MAAM,CAACe,uBAAuB,CAACX,KAAK,EAAE;QAClCc,YAAY,EAAE,CAAC;UAAE9B,IAAI,EAAEjB,UAAU;UAAEgD,KAAK,EAAE1B;QAAgB,CAAC,CAAC;QAC5DwB,eAAe,EAAEtB;MACrB,CAAC,CAAC;IACN;IAEA,MAAMyB,YAAY,GAAGpB,MAAM,CAACqB,kBAAkB,CAACC,IAAI,IAC/CtE,IAAI,CAACuE,wBAAwB,CAACD,IAAI,CACtC,CAA2B;IAE3BF,YAAY,CAACI,UAAU,CACnB,sEAAsE/B,eAAe,QACzF,CAAC;IAED;MACI,IAAIW,KAAK,GAAG,CAAC;MAEb,MAAMC,kBAAkB,GAAGL,MAAM,CAACM,qBAAqB,CAAC,CAAC;MACzD,IAAID,kBAAkB,CAACE,MAAM,EAAE;QAC3B,MAAMC,IAAI,GAAGH,kBAAkB,CAACA,kBAAkB,CAACE,MAAM,GAAG,CAAC,CAAC;QAC9DH,KAAK,GAAGI,IAAI,CAACC,aAAa,CAAC,CAAC,GAAG,CAAC;MACpC;MAEA,MAAMgB,uBAAuB,GAAG,mCAAmC;MACnE,MAAMC,2BAA2B,GAC7B1B,MAAM,CAACG,oBAAoB,CAACsB,uBAAuB,CAAC;MACxD,IAAI,CAACC,2BAA2B,EAAE;QAC9B1B,MAAM,CAACe,uBAAuB,CAACX,KAAK,EAAE;UAClCc,YAAY,EAAE,CAAC,qBAAqB,CAAC;UACrCD,eAAe,EAAEQ;QACrB,CAAC,CAAC;MACN;IACJ;IAEA,MAAMzB,MAAM,CAAC2B,IAAI,CAAC,CAAC;EACvB;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./defineExtension.js\";\nexport * from \"./defineApiExtension.js\";\nexport * from \"./models/index.js\";\nexport * from \"./zodTypes/zodSrcPath.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ExtensionDefinitionModel.js\";\nexport * from \"./ExtensionInstanceModel.js\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import React from \"react\";\nimport { z } from \"zod\";\nimport { type ExtensionInstanceModelContext } from \"~/defineExtension/index.js\";\nimport { type AppName } from \"~/abstractions/types.js\";\n\nexport type ExtensionTags = {\n [key: string]: string | undefined;\n appName?: AppName;\n runtimeContext?: \"app-build\" | \"project\" | \"cli\" | \"pulumi\";\n};\n\nexport interface DefineExtensionParams<TParamsSchema extends z.ZodTypeAny> {\n type: string;\n tags: ExtensionTags;\n description?: string;\n multiple?: boolean;\n paramsSchema?: TParamsSchema | ((ctx: ExtensionInstanceModelContext) => TParamsSchema);\n build?: (\n params: z.infer<TParamsSchema>,\n ctx: ExtensionInstanceModelContext\n ) => Promise<void> | void;\n validate?: (params: z.infer<TParamsSchema>) => Promise<void> | void;\n render?: (\n props: z.infer<TParamsSchema> & {\n remove?: boolean;\n before?: string;\n after?: string;\n name?: string;\n }\n ) => React.ReactNode;\n}\n"],"mappings":"","ignoreList":[]}
|
package/exports/extensions.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { EnvVar } from "../extensions/EnvVar.js";
|
package/exports/extensions.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["EnvVar"],"sources":["extensions.ts"],"sourcesContent":["export { EnvVar } from \"~/extensions/EnvVar.js\";\n"],"mappings":"AAAA,SAASA,MAAM","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["AdminAfterBuild","AdminAfterBuildHook","AdminBeforeBuild","AdminBeforeBuildHook","AdminAfterDeploy","AdminAfterDeployHook","AdminBeforeDeploy","AdminBeforeDeployHook","AdminBeforeWatch","AdminBeforeWatchHook","AdminPulumi"],"sources":["admin.ts"],"sourcesContent":["export { AdminAfterBuild as AdminAfterBuildHook } from \"~/abstractions/features/hooks/AdminAfterBuild.js\";\nexport { AdminBeforeBuild as AdminBeforeBuildHook } from \"~/abstractions/features/hooks/AdminBeforeBuild.js\";\nexport { AdminAfterDeploy as AdminAfterDeployHook } from \"~/abstractions/features/hooks/AdminAfterDeploy.js\";\nexport { AdminBeforeDeploy as AdminBeforeDeployHook } from \"~/abstractions/features/hooks/AdminBeforeDeploy.js\";\nexport { AdminBeforeWatch as AdminBeforeWatchHook } from \"~/abstractions/features/hooks/AdminBeforeWatch.js\";\nexport { AdminPulumi } from \"~/abstractions/features/pulumi/AdminPulumi.js\";\n"],"mappings":"AAAA,SAASA,eAAe,IAAIC,mBAAmB;AAC/C,SAASC,gBAAgB,IAAIC,oBAAoB;AACjD,SAASC,gBAAgB,IAAIC,oBAAoB;AACjD,SAASC,iBAAiB,IAAIC,qBAAqB;AACnD,SAASC,gBAAgB,IAAIC,oBAAoB;AACjD,SAASC,WAAW","ignoreList":[]}
|
package/exports/infra/api.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["ApiAfterBuild","ApiAfterBuildHook","ApiBeforeBuild","ApiBeforeBuildHook","ApiAfterDeploy","ApiAfterDeployHook","ApiBeforeDeploy","ApiBeforeDeployHook","ApiBeforeWatch","ApiBeforeWatchHook","ApiPulumi"],"sources":["api.ts"],"sourcesContent":["export { ApiAfterBuild as ApiAfterBuildHook } from \"~/abstractions/features/hooks/ApiAfterBuild.js\";\nexport { ApiBeforeBuild as ApiBeforeBuildHook } from \"~/abstractions/features/hooks/ApiBeforeBuild.js\";\nexport { ApiAfterDeploy as ApiAfterDeployHook } from \"~/abstractions/features/hooks/ApiAfterDeploy.js\";\nexport { ApiBeforeDeploy as ApiBeforeDeployHook } from \"~/abstractions/features/hooks/ApiBeforeDeploy.js\";\nexport { ApiBeforeWatch as ApiBeforeWatchHook } from \"~/abstractions/features/hooks/ApiBeforeWatch.js\";\nexport { ApiPulumi } from \"~/abstractions/features/pulumi/ApiPulumi.js\";\n"],"mappings":"AAAA,SAASA,aAAa,IAAIC,iBAAiB;AAC3C,SAASC,cAAc,IAAIC,kBAAkB;AAC7C,SAASC,cAAc,IAAIC,kBAAkB;AAC7C,SAASC,eAAe,IAAIC,mBAAmB;AAC/C,SAASC,cAAc,IAAIC,kBAAkB;AAC7C,SAASC,SAAS","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["CoreAfterBuild","CoreAfterBuildHook","CoreBeforeBuild","CoreBeforeBuildHook","CoreAfterDeploy","CoreAfterDeployHook","CoreBeforeDeploy","CoreBeforeDeployHook","CorePulumi"],"sources":["core.ts"],"sourcesContent":["export { CoreAfterBuild as CoreAfterBuildHook } from \"~/abstractions/features/hooks/CoreAfterBuild.js\";\nexport { CoreBeforeBuild as CoreBeforeBuildHook } from \"~/abstractions/features/hooks/CoreBeforeBuild.js\";\nexport { CoreAfterDeploy as CoreAfterDeployHook } from \"~/abstractions/features/hooks/CoreAfterDeploy.js\";\nexport { CoreBeforeDeploy as CoreBeforeDeployHook } from \"~/abstractions/features/hooks/CoreBeforeDeploy.js\";\nexport { CorePulumi } from \"~/abstractions/features/pulumi/CorePulumi.js\";\n"],"mappings":"AAAA,SAASA,cAAc,IAAIC,kBAAkB;AAC7C,SAASC,eAAe,IAAIC,mBAAmB;AAC/C,SAASC,eAAe,IAAIC,mBAAmB;AAC/C,SAASC,gBAAgB,IAAIC,oBAAoB;AACjD,SAASC,UAAU","ignoreList":[]}
|
package/exports/infra/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { LoggerService as Logger } from "../../abstractions/services/LoggerService.js";
|
|
2
|
-
export { UiService as Ui } from "../../abstractions/services/UiService.js";
|
|
3
|
-
export { AfterBuild as AfterBuildHook } from "../../abstractions/features/hooks/AfterBuild.js";
|
|
4
|
-
export { BeforeBuild as BeforeBuildHook } from "../../abstractions/features/hooks/BeforeBuild.js";
|
|
5
|
-
export { AfterDeploy as AfterDeployHook } from "../../abstractions/features/hooks/AfterDeploy.js";
|
|
6
|
-
export { BeforeDeploy as BeforeDeployHook } from "../../abstractions/features/hooks/BeforeDeploy.js";
|
|
7
|
-
export { BeforeWatch as BeforeWatchHook } from "../../abstractions/features/hooks/BeforeWatch.js";
|
|
8
|
-
export { GetAppStackOutput } from "../../abstractions/features/GetAppStackOutput.js";
|
package/exports/infra/index.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { LoggerService as Logger } from "../../abstractions/services/LoggerService.js";
|
|
2
|
-
export { UiService as Ui } from "../../abstractions/services/UiService.js";
|
|
3
|
-
export { AfterBuild as AfterBuildHook } from "../../abstractions/features/hooks/AfterBuild.js";
|
|
4
|
-
export { BeforeBuild as BeforeBuildHook } from "../../abstractions/features/hooks/BeforeBuild.js";
|
|
5
|
-
export { AfterDeploy as AfterDeployHook } from "../../abstractions/features/hooks/AfterDeploy.js";
|
|
6
|
-
export { BeforeDeploy as BeforeDeployHook } from "../../abstractions/features/hooks/BeforeDeploy.js";
|
|
7
|
-
export { BeforeWatch as BeforeWatchHook } from "../../abstractions/features/hooks/BeforeWatch.js";
|
|
8
|
-
export { GetAppStackOutput } from "../../abstractions/features/GetAppStackOutput.js";
|
|
9
|
-
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["LoggerService","Logger","UiService","Ui","AfterBuild","AfterBuildHook","BeforeBuild","BeforeBuildHook","AfterDeploy","AfterDeployHook","BeforeDeploy","BeforeDeployHook","BeforeWatch","BeforeWatchHook","GetAppStackOutput"],"sources":["index.ts"],"sourcesContent":["export { LoggerService as Logger } from \"~/abstractions/services/LoggerService.js\";\nexport { UiService as Ui } from \"~/abstractions/services/UiService.js\";\nexport { AfterBuild as AfterBuildHook } from \"~/abstractions/features/hooks/AfterBuild.js\";\nexport { BeforeBuild as BeforeBuildHook } from \"~/abstractions/features/hooks/BeforeBuild.js\";\nexport { AfterDeploy as AfterDeployHook } from \"~/abstractions/features/hooks/AfterDeploy.js\";\nexport { BeforeDeploy as BeforeDeployHook } from \"~/abstractions/features/hooks/BeforeDeploy.js\";\nexport { BeforeWatch as BeforeWatchHook } from \"~/abstractions/features/hooks/BeforeWatch.js\";\nexport { GetAppStackOutput } from \"~/abstractions/features/GetAppStackOutput.js\";\n"],"mappings":"AAAA,SAASA,aAAa,IAAIC,MAAM;AAChC,SAASC,SAAS,IAAIC,EAAE;AACxB,SAASC,UAAU,IAAIC,cAAc;AACrC,SAASC,WAAW,IAAIC,eAAe;AACvC,SAASC,WAAW,IAAIC,eAAe;AACvC,SAASC,YAAY,IAAIC,gBAAgB;AACzC,SAASC,WAAW,IAAIC,eAAe;AACvC,SAASC,iBAAiB","ignoreList":[]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AdminBeforeBuild, GetAppStackOutput, ProjectSdkParamsService } from "../../abstractions/index.js";
|
|
2
|
-
declare class EnsureApiDeployedBeforeAdminBuildImpl implements AdminBeforeBuild.Interface {
|
|
3
|
-
private getAppStackOutput;
|
|
4
|
-
private projectSdkParamsService;
|
|
5
|
-
constructor(getAppStackOutput: GetAppStackOutput.Interface, projectSdkParamsService: ProjectSdkParamsService.Interface);
|
|
6
|
-
execute(params: AdminBeforeBuild.Params): Promise<void>;
|
|
7
|
-
}
|
|
8
|
-
export declare const EnsureApiDeployedBeforeAdminBuild: typeof EnsureApiDeployedBeforeAdminBuildImpl & {
|
|
9
|
-
__abstraction: import("@webiny/di").Abstraction<import("~/abstractions/index.js").IAdminBeforeBuild>;
|
|
10
|
-
};
|
|
11
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { AdminBeforeBuild, GetAppStackOutput, ProjectSdkParamsService } from "../../abstractions/index.js";
|
|
2
|
-
import { GracefulError } from "@webiny/project";
|
|
3
|
-
const NO_DEPLOYMENT_CHECKS_FLAG_NAME = "--no-deployment-checks";
|
|
4
|
-
class EnsureApiDeployedBeforeAdminBuildImpl {
|
|
5
|
-
constructor(getAppStackOutput, projectSdkParamsService) {
|
|
6
|
-
this.getAppStackOutput = getAppStackOutput;
|
|
7
|
-
this.projectSdkParamsService = projectSdkParamsService;
|
|
8
|
-
}
|
|
9
|
-
async execute(params) {
|
|
10
|
-
// Just in case, we want to allow users to skip the system requirements check.
|
|
11
|
-
if (params.deploymentChecks === false) {
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
const output = await this.getAppStackOutput.execute("api");
|
|
15
|
-
const apiDeployed = output && Object.keys(output).length > 0;
|
|
16
|
-
if (apiDeployed) {
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
const sdkParams = this.projectSdkParamsService.get();
|
|
20
|
-
const cmd = `yarn webiny deploy api --env ${sdkParams.env}`;
|
|
21
|
-
const error = new Error("Cannot build Admin before deploying API.");
|
|
22
|
-
const message = [`Before building %s, please build %s first by running: %s.`, `If you think this is a mistake, you can also try skipping`, `deployment checks by appending the %s flag.`, `Learn more: https://webiny.link/deployment-checks`].join(" ");
|
|
23
|
-
throw GracefulError.from(error, message, "Admin", "API", cmd, NO_DEPLOYMENT_CHECKS_FLAG_NAME);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
export const EnsureApiDeployedBeforeAdminBuild = AdminBeforeBuild.createImplementation({
|
|
27
|
-
implementation: EnsureApiDeployedBeforeAdminBuildImpl,
|
|
28
|
-
dependencies: [GetAppStackOutput, ProjectSdkParamsService]
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
//# sourceMappingURL=EnsureApiDeployedBeforeAdminBuild.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["AdminBeforeBuild","GetAppStackOutput","ProjectSdkParamsService","GracefulError","NO_DEPLOYMENT_CHECKS_FLAG_NAME","EnsureApiDeployedBeforeAdminBuildImpl","constructor","getAppStackOutput","projectSdkParamsService","execute","params","deploymentChecks","output","apiDeployed","Object","keys","length","sdkParams","get","cmd","env","error","Error","message","join","from","EnsureApiDeployedBeforeAdminBuild","createImplementation","implementation","dependencies"],"sources":["EnsureApiDeployedBeforeAdminBuild.ts"],"sourcesContent":["import {\n AdminBeforeBuild,\n GetAppStackOutput,\n ProjectSdkParamsService\n} from \"~/abstractions/index.js\";\nimport { GracefulError } from \"@webiny/project\";\n\nconst NO_DEPLOYMENT_CHECKS_FLAG_NAME = \"--no-deployment-checks\";\n\nclass EnsureApiDeployedBeforeAdminBuildImpl implements AdminBeforeBuild.Interface {\n constructor(\n private getAppStackOutput: GetAppStackOutput.Interface,\n private projectSdkParamsService: ProjectSdkParamsService.Interface\n ) {}\n\n async execute(params: AdminBeforeBuild.Params) {\n // Just in case, we want to allow users to skip the system requirements check.\n if (params.deploymentChecks === false) {\n return;\n }\n\n const output = await this.getAppStackOutput.execute(\"api\");\n const apiDeployed = output && Object.keys(output).length > 0;\n if (apiDeployed) {\n return;\n }\n\n const sdkParams = this.projectSdkParamsService.get();\n const cmd = `yarn webiny deploy api --env ${sdkParams.env}`;\n\n const error = new Error(\"Cannot build Admin before deploying API.\");\n const message = [\n `Before building %s, please build %s first by running: %s.`,\n `If you think this is a mistake, you can also try skipping`,\n `deployment checks by appending the %s flag.`,\n `Learn more: https://webiny.link/deployment-checks`\n ].join(\" \");\n\n throw GracefulError.from(\n error,\n message,\n \"Admin\",\n \"API\",\n cmd,\n NO_DEPLOYMENT_CHECKS_FLAG_NAME\n );\n }\n}\n\nexport const EnsureApiDeployedBeforeAdminBuild = AdminBeforeBuild.createImplementation({\n implementation: EnsureApiDeployedBeforeAdminBuildImpl,\n dependencies: [GetAppStackOutput, ProjectSdkParamsService]\n});\n"],"mappings":"AAAA,SACIA,gBAAgB,EAChBC,iBAAiB,EACjBC,uBAAuB;AAE3B,SAASC,aAAa,QAAQ,iBAAiB;AAE/C,MAAMC,8BAA8B,GAAG,wBAAwB;AAE/D,MAAMC,qCAAqC,CAAuC;EAC9EC,WAAWA,CACCC,iBAA8C,EAC9CC,uBAA0D,EACpE;IAAA,KAFUD,iBAA8C,GAA9CA,iBAA8C;IAAA,KAC9CC,uBAA0D,GAA1DA,uBAA0D;EACnE;EAEH,MAAMC,OAAOA,CAACC,MAA+B,EAAE;IAC3C;IACA,IAAIA,MAAM,CAACC,gBAAgB,KAAK,KAAK,EAAE;MACnC;IACJ;IAEA,MAAMC,MAAM,GAAG,MAAM,IAAI,CAACL,iBAAiB,CAACE,OAAO,CAAC,KAAK,CAAC;IAC1D,MAAMI,WAAW,GAAGD,MAAM,IAAIE,MAAM,CAACC,IAAI,CAACH,MAAM,CAAC,CAACI,MAAM,GAAG,CAAC;IAC5D,IAAIH,WAAW,EAAE;MACb;IACJ;IAEA,MAAMI,SAAS,GAAG,IAAI,CAACT,uBAAuB,CAACU,GAAG,CAAC,CAAC;IACpD,MAAMC,GAAG,GAAG,gCAAgCF,SAAS,CAACG,GAAG,EAAE;IAE3D,MAAMC,KAAK,GAAG,IAAIC,KAAK,CAAC,0CAA0C,CAAC;IACnE,MAAMC,OAAO,GAAG,CACZ,2DAA2D,EAC3D,2DAA2D,EAC3D,6CAA6C,EAC7C,mDAAmD,CACtD,CAACC,IAAI,CAAC,GAAG,CAAC;IAEX,MAAMrB,aAAa,CAACsB,IAAI,CACpBJ,KAAK,EACLE,OAAO,EACP,OAAO,EACP,KAAK,EACLJ,GAAG,EACHf,8BACJ,CAAC;EACL;AACJ;AAEA,OAAO,MAAMsB,iCAAiC,GAAG1B,gBAAgB,CAAC2B,oBAAoB,CAAC;EACnFC,cAAc,EAAEvB,qCAAqC;EACrDwB,YAAY,EAAE,CAAC5B,iBAAiB,EAAEC,uBAAuB;AAC7D,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AdminBeforeWatch, GetAppStackOutput, ProjectSdkParamsService } from "../../abstractions/index.js";
|
|
2
|
-
declare class EnsureApiDeployedBeforeAdminWatchImpl implements AdminBeforeWatch.Interface {
|
|
3
|
-
private getAppStackOutput;
|
|
4
|
-
private projectSdkParamsService;
|
|
5
|
-
constructor(getAppStackOutput: GetAppStackOutput.Interface, projectSdkParamsService: ProjectSdkParamsService.Interface);
|
|
6
|
-
execute(params: AdminBeforeWatch.Params): Promise<void>;
|
|
7
|
-
}
|
|
8
|
-
export declare const EnsureApiDeployedBeforeAdminWatch: typeof EnsureApiDeployedBeforeAdminWatchImpl & {
|
|
9
|
-
__abstraction: import("@webiny/di").Abstraction<import("~/abstractions/index.js").IAdminBeforeWatch>;
|
|
10
|
-
};
|
|
11
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { AdminBeforeWatch, GetAppStackOutput, ProjectSdkParamsService } from "../../abstractions/index.js";
|
|
2
|
-
import { GracefulError } from "@webiny/project";
|
|
3
|
-
const NO_DEPLOYMENT_CHECKS_FLAG_NAME = "--no-deployment-checks";
|
|
4
|
-
class EnsureApiDeployedBeforeAdminWatchImpl {
|
|
5
|
-
constructor(getAppStackOutput, projectSdkParamsService) {
|
|
6
|
-
this.getAppStackOutput = getAppStackOutput;
|
|
7
|
-
this.projectSdkParamsService = projectSdkParamsService;
|
|
8
|
-
}
|
|
9
|
-
async execute(params) {
|
|
10
|
-
// Just in case, we want to allow users to skip the system requirements check.
|
|
11
|
-
if (params.deploymentChecks === false) {
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
const output = await this.getAppStackOutput.execute("api");
|
|
15
|
-
const apiDeployed = output && Object.keys(output).length > 0;
|
|
16
|
-
if (apiDeployed) {
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
const sdkParams = this.projectSdkParamsService.get();
|
|
20
|
-
const cmd = `yarn webiny deploy api --env ${sdkParams.env}`;
|
|
21
|
-
const error = new Error(`Cannot watch Admin before deploying API.`);
|
|
22
|
-
const message = [`Before watching %s, please build %s first by running: %s.`, `If you think this is a mistake, you can also try skipping`, `deployment checks by appending the %s flag.`, `Learn more: https://webiny.link/deployment-checks`].join(" ");
|
|
23
|
-
throw GracefulError.from(error, message, "Admin", "API", cmd, NO_DEPLOYMENT_CHECKS_FLAG_NAME);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
export const EnsureApiDeployedBeforeAdminWatch = AdminBeforeWatch.createImplementation({
|
|
27
|
-
implementation: EnsureApiDeployedBeforeAdminWatchImpl,
|
|
28
|
-
dependencies: [GetAppStackOutput, ProjectSdkParamsService]
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
//# sourceMappingURL=EnsureApiDeployedBeforeAdminWatch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["AdminBeforeWatch","GetAppStackOutput","ProjectSdkParamsService","GracefulError","NO_DEPLOYMENT_CHECKS_FLAG_NAME","EnsureApiDeployedBeforeAdminWatchImpl","constructor","getAppStackOutput","projectSdkParamsService","execute","params","deploymentChecks","output","apiDeployed","Object","keys","length","sdkParams","get","cmd","env","error","Error","message","join","from","EnsureApiDeployedBeforeAdminWatch","createImplementation","implementation","dependencies"],"sources":["EnsureApiDeployedBeforeAdminWatch.ts"],"sourcesContent":["import {\n AdminBeforeWatch,\n GetAppStackOutput,\n ProjectSdkParamsService\n} from \"~/abstractions/index.js\";\nimport { GracefulError } from \"@webiny/project\";\n\nconst NO_DEPLOYMENT_CHECKS_FLAG_NAME = \"--no-deployment-checks\";\n\nclass EnsureApiDeployedBeforeAdminWatchImpl implements AdminBeforeWatch.Interface {\n constructor(\n private getAppStackOutput: GetAppStackOutput.Interface,\n private projectSdkParamsService: ProjectSdkParamsService.Interface\n ) {}\n\n async execute(params: AdminBeforeWatch.Params) {\n // Just in case, we want to allow users to skip the system requirements check.\n if (params.deploymentChecks === false) {\n return;\n }\n\n const output = await this.getAppStackOutput.execute(\"api\");\n const apiDeployed = output && Object.keys(output).length > 0;\n if (apiDeployed) {\n return;\n }\n\n const sdkParams = this.projectSdkParamsService.get();\n const cmd = `yarn webiny deploy api --env ${sdkParams.env}`;\n\n const error = new Error(`Cannot watch Admin before deploying API.`);\n const message = [\n `Before watching %s, please build %s first by running: %s.`,\n `If you think this is a mistake, you can also try skipping`,\n `deployment checks by appending the %s flag.`,\n `Learn more: https://webiny.link/deployment-checks`\n ].join(\" \");\n\n throw GracefulError.from(\n error,\n message,\n \"Admin\",\n \"API\",\n cmd,\n NO_DEPLOYMENT_CHECKS_FLAG_NAME\n );\n }\n}\n\nexport const EnsureApiDeployedBeforeAdminWatch = AdminBeforeWatch.createImplementation({\n implementation: EnsureApiDeployedBeforeAdminWatchImpl,\n dependencies: [GetAppStackOutput, ProjectSdkParamsService]\n});\n"],"mappings":"AAAA,SACIA,gBAAgB,EAChBC,iBAAiB,EACjBC,uBAAuB;AAE3B,SAASC,aAAa,QAAQ,iBAAiB;AAE/C,MAAMC,8BAA8B,GAAG,wBAAwB;AAE/D,MAAMC,qCAAqC,CAAuC;EAC9EC,WAAWA,CACCC,iBAA8C,EAC9CC,uBAA0D,EACpE;IAAA,KAFUD,iBAA8C,GAA9CA,iBAA8C;IAAA,KAC9CC,uBAA0D,GAA1DA,uBAA0D;EACnE;EAEH,MAAMC,OAAOA,CAACC,MAA+B,EAAE;IAC3C;IACA,IAAIA,MAAM,CAACC,gBAAgB,KAAK,KAAK,EAAE;MACnC;IACJ;IAEA,MAAMC,MAAM,GAAG,MAAM,IAAI,CAACL,iBAAiB,CAACE,OAAO,CAAC,KAAK,CAAC;IAC1D,MAAMI,WAAW,GAAGD,MAAM,IAAIE,MAAM,CAACC,IAAI,CAACH,MAAM,CAAC,CAACI,MAAM,GAAG,CAAC;IAC5D,IAAIH,WAAW,EAAE;MACb;IACJ;IAEA,MAAMI,SAAS,GAAG,IAAI,CAACT,uBAAuB,CAACU,GAAG,CAAC,CAAC;IACpD,MAAMC,GAAG,GAAG,gCAAgCF,SAAS,CAACG,GAAG,EAAE;IAE3D,MAAMC,KAAK,GAAG,IAAIC,KAAK,CAAC,0CAA0C,CAAC;IACnE,MAAMC,OAAO,GAAG,CACZ,2DAA2D,EAC3D,2DAA2D,EAC3D,6CAA6C,EAC7C,mDAAmD,CACtD,CAACC,IAAI,CAAC,GAAG,CAAC;IAEX,MAAMrB,aAAa,CAACsB,IAAI,CACpBJ,KAAK,EACLE,OAAO,EACP,OAAO,EACP,KAAK,EACLJ,GAAG,EACHf,8BACJ,CAAC;EACL;AACJ;AAEA,OAAO,MAAMsB,iCAAiC,GAAG1B,gBAAgB,CAAC2B,oBAAoB,CAAC;EACnFC,cAAc,EAAEvB,qCAAqC;EACrDwB,YAAY,EAAE,CAAC5B,iBAAiB,EAAEC,uBAAuB;AAC7D,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ApiBeforeWatch, GetAppStackOutput, ProjectSdkParamsService } from "../../abstractions/index.js";
|
|
2
|
-
declare class EnsureApiDeployedBeforeWatchImpl implements ApiBeforeWatch.Interface {
|
|
3
|
-
private getAppStackOutput;
|
|
4
|
-
private projectSdkParamsService;
|
|
5
|
-
constructor(getAppStackOutput: GetAppStackOutput.Interface, projectSdkParamsService: ProjectSdkParamsService.Interface);
|
|
6
|
-
execute(params: ApiBeforeWatch.Params): Promise<void>;
|
|
7
|
-
}
|
|
8
|
-
export declare const EnsureApiDeployedBeforeWatch: typeof EnsureApiDeployedBeforeWatchImpl & {
|
|
9
|
-
__abstraction: import("@webiny/di").Abstraction<import("~/abstractions/index.js").IApiBeforeWatch>;
|
|
10
|
-
};
|
|
11
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ApiBeforeWatch, GetAppStackOutput, ProjectSdkParamsService } from "../../abstractions/index.js";
|
|
2
|
-
import { GracefulError } from "@webiny/project";
|
|
3
|
-
const NO_DEPLOYMENT_CHECKS_FLAG_NAME = "--no-deployment-checks";
|
|
4
|
-
class EnsureApiDeployedBeforeWatchImpl {
|
|
5
|
-
constructor(getAppStackOutput, projectSdkParamsService) {
|
|
6
|
-
this.getAppStackOutput = getAppStackOutput;
|
|
7
|
-
this.projectSdkParamsService = projectSdkParamsService;
|
|
8
|
-
}
|
|
9
|
-
async execute(params) {
|
|
10
|
-
// Just in case, we want to allow users to skip the system requirements check.
|
|
11
|
-
if (params.deploymentChecks === false) {
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
const output = await this.getAppStackOutput.execute("api");
|
|
15
|
-
const apiDeployed = output && Object.keys(output).length > 0;
|
|
16
|
-
if (apiDeployed) {
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
const error = new Error(`Cannot watch API before deploying it.`);
|
|
20
|
-
const sdkParams = this.projectSdkParamsService.get();
|
|
21
|
-
const cmd = `yarn webiny deploy api --env ${sdkParams.env}`;
|
|
22
|
-
const message = [`Before watching %s, please deploy it first by running: %s.`, `If you think this is a mistake, you can also try skipping`, `deployment checks by appending the %s flag.`, `Learn more: https://webiny.link/deployment-checks`].join(" ");
|
|
23
|
-
throw GracefulError.from(error, message, "API", cmd, NO_DEPLOYMENT_CHECKS_FLAG_NAME);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
export const EnsureApiDeployedBeforeWatch = ApiBeforeWatch.createImplementation({
|
|
27
|
-
implementation: EnsureApiDeployedBeforeWatchImpl,
|
|
28
|
-
dependencies: [GetAppStackOutput, ProjectSdkParamsService]
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
//# sourceMappingURL=EnsureApiDeployedBeforeWatch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["ApiBeforeWatch","GetAppStackOutput","ProjectSdkParamsService","GracefulError","NO_DEPLOYMENT_CHECKS_FLAG_NAME","EnsureApiDeployedBeforeWatchImpl","constructor","getAppStackOutput","projectSdkParamsService","execute","params","deploymentChecks","output","apiDeployed","Object","keys","length","error","Error","sdkParams","get","cmd","env","message","join","from","EnsureApiDeployedBeforeWatch","createImplementation","implementation","dependencies"],"sources":["EnsureApiDeployedBeforeWatch.ts"],"sourcesContent":["import {\n ApiBeforeWatch,\n GetAppStackOutput,\n ProjectSdkParamsService\n} from \"~/abstractions/index.js\";\nimport { GracefulError } from \"@webiny/project\";\n\nconst NO_DEPLOYMENT_CHECKS_FLAG_NAME = \"--no-deployment-checks\";\n\nclass EnsureApiDeployedBeforeWatchImpl implements ApiBeforeWatch.Interface {\n constructor(\n private getAppStackOutput: GetAppStackOutput.Interface,\n private projectSdkParamsService: ProjectSdkParamsService.Interface\n ) {}\n\n async execute(params: ApiBeforeWatch.Params) {\n // Just in case, we want to allow users to skip the system requirements check.\n if (params.deploymentChecks === false) {\n return;\n }\n\n const output = await this.getAppStackOutput.execute(\"api\");\n const apiDeployed = output && Object.keys(output).length > 0;\n if (apiDeployed) {\n return;\n }\n\n const error = new Error(`Cannot watch API before deploying it.`);\n const sdkParams = this.projectSdkParamsService.get();\n const cmd = `yarn webiny deploy api --env ${sdkParams.env}`;\n\n const message = [\n `Before watching %s, please deploy it first by running: %s.`,\n `If you think this is a mistake, you can also try skipping`,\n `deployment checks by appending the %s flag.`,\n `Learn more: https://webiny.link/deployment-checks`\n ].join(\" \");\n\n throw GracefulError.from(error, message, \"API\", cmd, NO_DEPLOYMENT_CHECKS_FLAG_NAME);\n }\n}\n\nexport const EnsureApiDeployedBeforeWatch = ApiBeforeWatch.createImplementation({\n implementation: EnsureApiDeployedBeforeWatchImpl,\n dependencies: [GetAppStackOutput, ProjectSdkParamsService]\n});\n"],"mappings":"AAAA,SACIA,cAAc,EACdC,iBAAiB,EACjBC,uBAAuB;AAE3B,SAASC,aAAa,QAAQ,iBAAiB;AAE/C,MAAMC,8BAA8B,GAAG,wBAAwB;AAE/D,MAAMC,gCAAgC,CAAqC;EACvEC,WAAWA,CACCC,iBAA8C,EAC9CC,uBAA0D,EACpE;IAAA,KAFUD,iBAA8C,GAA9CA,iBAA8C;IAAA,KAC9CC,uBAA0D,GAA1DA,uBAA0D;EACnE;EAEH,MAAMC,OAAOA,CAACC,MAA6B,EAAE;IACzC;IACA,IAAIA,MAAM,CAACC,gBAAgB,KAAK,KAAK,EAAE;MACnC;IACJ;IAEA,MAAMC,MAAM,GAAG,MAAM,IAAI,CAACL,iBAAiB,CAACE,OAAO,CAAC,KAAK,CAAC;IAC1D,MAAMI,WAAW,GAAGD,MAAM,IAAIE,MAAM,CAACC,IAAI,CAACH,MAAM,CAAC,CAACI,MAAM,GAAG,CAAC;IAC5D,IAAIH,WAAW,EAAE;MACb;IACJ;IAEA,MAAMI,KAAK,GAAG,IAAIC,KAAK,CAAC,uCAAuC,CAAC;IAChE,MAAMC,SAAS,GAAG,IAAI,CAACX,uBAAuB,CAACY,GAAG,CAAC,CAAC;IACpD,MAAMC,GAAG,GAAG,gCAAgCF,SAAS,CAACG,GAAG,EAAE;IAE3D,MAAMC,OAAO,GAAG,CACZ,4DAA4D,EAC5D,2DAA2D,EAC3D,6CAA6C,EAC7C,mDAAmD,CACtD,CAACC,IAAI,CAAC,GAAG,CAAC;IAEX,MAAMrB,aAAa,CAACsB,IAAI,CAACR,KAAK,EAAEM,OAAO,EAAE,KAAK,EAAEF,GAAG,EAAEjB,8BAA8B,CAAC;EACxF;AACJ;AAEA,OAAO,MAAMsB,4BAA4B,GAAG1B,cAAc,CAAC2B,oBAAoB,CAAC;EAC5EC,cAAc,EAAEvB,gCAAgC;EAChDwB,YAAY,EAAE,CAAC5B,iBAAiB,EAAEC,uBAAuB;AAC7D,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ApiBeforeDeploy, GetAppStackOutput, ProjectSdkParamsService } from "../../abstractions/index.js";
|
|
2
|
-
declare class EnsureCoreDeployedBeforeApiDeployImpl implements ApiBeforeDeploy.Interface {
|
|
3
|
-
private getAppStackOutput;
|
|
4
|
-
private projectSdkParamsService;
|
|
5
|
-
constructor(getAppStackOutput: GetAppStackOutput.Interface, projectSdkParamsService: ProjectSdkParamsService.Interface);
|
|
6
|
-
execute(): Promise<void>;
|
|
7
|
-
}
|
|
8
|
-
export declare const EnsureCoreDeployedBeforeApiDeploy: typeof EnsureCoreDeployedBeforeApiDeployImpl & {
|
|
9
|
-
__abstraction: import("@webiny/di").Abstraction<import("~/abstractions/index.js").IApiBeforeDeploy>;
|
|
10
|
-
};
|
|
11
|
-
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ApiBeforeDeploy, GetAppStackOutput, ProjectSdkParamsService } from "../../abstractions/index.js";
|
|
2
|
-
import { GracefulError } from "@webiny/project";
|
|
3
|
-
class EnsureCoreDeployedBeforeApiDeployImpl {
|
|
4
|
-
constructor(getAppStackOutput, projectSdkParamsService) {
|
|
5
|
-
this.getAppStackOutput = getAppStackOutput;
|
|
6
|
-
this.projectSdkParamsService = projectSdkParamsService;
|
|
7
|
-
}
|
|
8
|
-
async execute() {
|
|
9
|
-
const output = await this.getAppStackOutput.execute("core");
|
|
10
|
-
const coreDeployed = output && Object.keys(output).length > 0;
|
|
11
|
-
if (coreDeployed) {
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
const sdkParams = this.projectSdkParamsService.get();
|
|
15
|
-
const {
|
|
16
|
-
variant,
|
|
17
|
-
env
|
|
18
|
-
} = sdkParams;
|
|
19
|
-
let variantCmd = "";
|
|
20
|
-
if (variant) {
|
|
21
|
-
variantCmd = ` --variant ${variant}`;
|
|
22
|
-
}
|
|
23
|
-
const error = new Error(`Cannot deploy API before deploying Core.`);
|
|
24
|
-
const message = [`Before deploying %s, please`, `deploy %s first by running: %s.`].join(" ");
|
|
25
|
-
const cmd = `yarn webiny deploy core --env ${env}${variantCmd}`;
|
|
26
|
-
throw GracefulError.from(error, message, "API", "Core", cmd);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
export const EnsureCoreDeployedBeforeApiDeploy = ApiBeforeDeploy.createImplementation({
|
|
30
|
-
implementation: EnsureCoreDeployedBeforeApiDeployImpl,
|
|
31
|
-
dependencies: [GetAppStackOutput, ProjectSdkParamsService]
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
//# sourceMappingURL=EnsureCoreDeployedBeforeApiDeploy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["ApiBeforeDeploy","GetAppStackOutput","ProjectSdkParamsService","GracefulError","EnsureCoreDeployedBeforeApiDeployImpl","constructor","getAppStackOutput","projectSdkParamsService","execute","output","coreDeployed","Object","keys","length","sdkParams","get","variant","env","variantCmd","error","Error","message","join","cmd","from","EnsureCoreDeployedBeforeApiDeploy","createImplementation","implementation","dependencies"],"sources":["EnsureCoreDeployedBeforeApiDeploy.ts"],"sourcesContent":["import {\n ApiBeforeDeploy,\n GetAppStackOutput,\n ProjectSdkParamsService\n} from \"~/abstractions/index.js\";\nimport { GracefulError } from \"@webiny/project\";\n\nclass EnsureCoreDeployedBeforeApiDeployImpl implements ApiBeforeDeploy.Interface {\n constructor(\n private getAppStackOutput: GetAppStackOutput.Interface,\n private projectSdkParamsService: ProjectSdkParamsService.Interface\n ) {}\n\n async execute() {\n const output = await this.getAppStackOutput.execute(\"core\");\n\n const coreDeployed = output && Object.keys(output).length > 0;\n if (coreDeployed) {\n return;\n }\n\n const sdkParams = this.projectSdkParamsService.get();\n const { variant, env } = sdkParams;\n\n let variantCmd = \"\";\n if (variant) {\n variantCmd = ` --variant ${variant}`;\n }\n\n const error = new Error(`Cannot deploy API before deploying Core.`);\n\n const message = [`Before deploying %s, please`, `deploy %s first by running: %s.`].join(\n \" \"\n );\n\n const cmd = `yarn webiny deploy core --env ${env}${variantCmd}`;\n throw GracefulError.from(error, message, \"API\", \"Core\", cmd);\n }\n}\n\nexport const EnsureCoreDeployedBeforeApiDeploy = ApiBeforeDeploy.createImplementation({\n implementation: EnsureCoreDeployedBeforeApiDeployImpl,\n dependencies: [GetAppStackOutput, ProjectSdkParamsService]\n});\n"],"mappings":"AAAA,SACIA,eAAe,EACfC,iBAAiB,EACjBC,uBAAuB;AAE3B,SAASC,aAAa,QAAQ,iBAAiB;AAE/C,MAAMC,qCAAqC,CAAsC;EAC7EC,WAAWA,CACCC,iBAA8C,EAC9CC,uBAA0D,EACpE;IAAA,KAFUD,iBAA8C,GAA9CA,iBAA8C;IAAA,KAC9CC,uBAA0D,GAA1DA,uBAA0D;EACnE;EAEH,MAAMC,OAAOA,CAAA,EAAG;IACZ,MAAMC,MAAM,GAAG,MAAM,IAAI,CAACH,iBAAiB,CAACE,OAAO,CAAC,MAAM,CAAC;IAE3D,MAAME,YAAY,GAAGD,MAAM,IAAIE,MAAM,CAACC,IAAI,CAACH,MAAM,CAAC,CAACI,MAAM,GAAG,CAAC;IAC7D,IAAIH,YAAY,EAAE;MACd;IACJ;IAEA,MAAMI,SAAS,GAAG,IAAI,CAACP,uBAAuB,CAACQ,GAAG,CAAC,CAAC;IACpD,MAAM;MAAEC,OAAO;MAAEC;IAAI,CAAC,GAAGH,SAAS;IAElC,IAAII,UAAU,GAAG,EAAE;IACnB,IAAIF,OAAO,EAAE;MACTE,UAAU,GAAG,cAAcF,OAAO,EAAE;IACxC;IAEA,MAAMG,KAAK,GAAG,IAAIC,KAAK,CAAC,0CAA0C,CAAC;IAEnE,MAAMC,OAAO,GAAG,CAAC,6BAA6B,EAAE,iCAAiC,CAAC,CAACC,IAAI,CACnF,GACJ,CAAC;IAED,MAAMC,GAAG,GAAG,iCAAiCN,GAAG,GAAGC,UAAU,EAAE;IAC/D,MAAMf,aAAa,CAACqB,IAAI,CAACL,KAAK,EAAEE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAEE,GAAG,CAAC;EAChE;AACJ;AAEA,OAAO,MAAME,iCAAiC,GAAGzB,eAAe,CAAC0B,oBAAoB,CAAC;EAClFC,cAAc,EAAEvB,qCAAqC;EACrDwB,YAAY,EAAE,CAAC3B,iBAAiB,EAAEC,uBAAuB;AAC7D,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { BeforeDeploy, IsCi, IsTelemetryEnabled, IsWcpEnabled, IsWebinyJsRepo } from "../../abstractions/index.js";
|
|
2
|
-
declare class EnsureTelemetryEnabledForOssImpl implements BeforeDeploy.Interface {
|
|
3
|
-
private isTelemetryEnabled;
|
|
4
|
-
private isWcpEnabled;
|
|
5
|
-
private isWebinyJsRepo;
|
|
6
|
-
private isCi;
|
|
7
|
-
constructor(isTelemetryEnabled: IsTelemetryEnabled.Interface, isWcpEnabled: IsWcpEnabled.Interface, isWebinyJsRepo: IsWebinyJsRepo.Interface, isCi: IsCi.Interface);
|
|
8
|
-
execute(): Promise<void>;
|
|
9
|
-
}
|
|
10
|
-
export declare const EnsureTelemetryEnabledForOss: typeof EnsureTelemetryEnabledForOssImpl & {
|
|
11
|
-
__abstraction: import("@webiny/di").Abstraction<import("~/abstractions/index.js").IBeforeDeploy>;
|
|
12
|
-
};
|
|
13
|
-
export {};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { BeforeDeploy, IsCi, IsTelemetryEnabled, IsWcpEnabled, IsWebinyJsRepo } from "../../abstractions/index.js";
|
|
2
|
-
import { GracefulError } from "@webiny/project";
|
|
3
|
-
class EnsureTelemetryEnabledForOssImpl {
|
|
4
|
-
constructor(isTelemetryEnabled, isWcpEnabled, isWebinyJsRepo, isCi) {
|
|
5
|
-
this.isTelemetryEnabled = isTelemetryEnabled;
|
|
6
|
-
this.isWcpEnabled = isWcpEnabled;
|
|
7
|
-
this.isWebinyJsRepo = isWebinyJsRepo;
|
|
8
|
-
this.isCi = isCi;
|
|
9
|
-
}
|
|
10
|
-
async execute() {
|
|
11
|
-
// Skip telemetry checks in CI environments
|
|
12
|
-
if (this.isCi.execute()) {
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
// Don't enforce telemetry validation in the webiny-js development repository
|
|
17
|
-
const isDevRepo = this.isWebinyJsRepo.execute();
|
|
18
|
-
if (isDevRepo) {
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
const telemetryEnabled = await this.isTelemetryEnabled.execute();
|
|
22
|
-
const wcpEnabled = await this.isWcpEnabled.execute();
|
|
23
|
-
|
|
24
|
-
// If telemetry is disabled and WCP is not connected, throw an error
|
|
25
|
-
if (!telemetryEnabled && !wcpEnabled) {
|
|
26
|
-
const message = [`You are trying to deploy your project, but telemetry is currently disabled.`, `The open-source edition of Webiny requires telemetry to be enabled.`, `Please re-enable telemetry to proceed with the deployment, or connect your project to Webiny Control Panel (WCP).`, `Learn more: https://webiny.link/telemetry-oss`].join(" ");
|
|
27
|
-
const error = new Error("Cannot deploy with telemetry disabled in OSS edition.");
|
|
28
|
-
throw GracefulError.from(error, message);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
export const EnsureTelemetryEnabledForOss = BeforeDeploy.createImplementation({
|
|
33
|
-
implementation: EnsureTelemetryEnabledForOssImpl,
|
|
34
|
-
dependencies: [IsTelemetryEnabled, IsWcpEnabled, IsWebinyJsRepo, IsCi]
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
//# sourceMappingURL=EnsureTelemetryEnabledForOss.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["BeforeDeploy","IsCi","IsTelemetryEnabled","IsWcpEnabled","IsWebinyJsRepo","GracefulError","EnsureTelemetryEnabledForOssImpl","constructor","isTelemetryEnabled","isWcpEnabled","isWebinyJsRepo","isCi","execute","isDevRepo","telemetryEnabled","wcpEnabled","message","join","error","Error","from","EnsureTelemetryEnabledForOss","createImplementation","implementation","dependencies"],"sources":["EnsureTelemetryEnabledForOss.ts"],"sourcesContent":["import {\n BeforeDeploy,\n IsCi,\n IsTelemetryEnabled,\n IsWcpEnabled,\n IsWebinyJsRepo\n} from \"~/abstractions/index.js\";\nimport { GracefulError } from \"@webiny/project\";\n\nclass EnsureTelemetryEnabledForOssImpl implements BeforeDeploy.Interface {\n constructor(\n private isTelemetryEnabled: IsTelemetryEnabled.Interface,\n private isWcpEnabled: IsWcpEnabled.Interface,\n private isWebinyJsRepo: IsWebinyJsRepo.Interface,\n private isCi: IsCi.Interface\n ) {}\n\n async execute() {\n // Skip telemetry checks in CI environments\n if (this.isCi.execute()) {\n return;\n }\n\n // Don't enforce telemetry validation in the webiny-js development repository\n const isDevRepo = this.isWebinyJsRepo.execute();\n if (isDevRepo) {\n return;\n }\n\n const telemetryEnabled = await this.isTelemetryEnabled.execute();\n const wcpEnabled = await this.isWcpEnabled.execute();\n\n // If telemetry is disabled and WCP is not connected, throw an error\n if (!telemetryEnabled && !wcpEnabled) {\n const message = [\n `You are trying to deploy your project, but telemetry is currently disabled.`,\n `The open-source edition of Webiny requires telemetry to be enabled.`,\n `Please re-enable telemetry to proceed with the deployment, or connect your project to Webiny Control Panel (WCP).`,\n `Learn more: https://webiny.link/telemetry-oss`\n ].join(\" \");\n\n const error = new Error(\"Cannot deploy with telemetry disabled in OSS edition.\");\n\n throw GracefulError.from(error, message);\n }\n }\n}\n\nexport const EnsureTelemetryEnabledForOss = BeforeDeploy.createImplementation({\n implementation: EnsureTelemetryEnabledForOssImpl,\n dependencies: [IsTelemetryEnabled, IsWcpEnabled, IsWebinyJsRepo, IsCi]\n});\n"],"mappings":"AAAA,SACIA,YAAY,EACZC,IAAI,EACJC,kBAAkB,EAClBC,YAAY,EACZC,cAAc;AAElB,SAASC,aAAa,QAAQ,iBAAiB;AAE/C,MAAMC,gCAAgC,CAAmC;EACrEC,WAAWA,CACCC,kBAAgD,EAChDC,YAAoC,EACpCC,cAAwC,EACxCC,IAAoB,EAC9B;IAAA,KAJUH,kBAAgD,GAAhDA,kBAAgD;IAAA,KAChDC,YAAoC,GAApCA,YAAoC;IAAA,KACpCC,cAAwC,GAAxCA,cAAwC;IAAA,KACxCC,IAAoB,GAApBA,IAAoB;EAC7B;EAEH,MAAMC,OAAOA,CAAA,EAAG;IACZ;IACA,IAAI,IAAI,CAACD,IAAI,CAACC,OAAO,CAAC,CAAC,EAAE;MACrB;IACJ;;IAEA;IACA,MAAMC,SAAS,GAAG,IAAI,CAACH,cAAc,CAACE,OAAO,CAAC,CAAC;IAC/C,IAAIC,SAAS,EAAE;MACX;IACJ;IAEA,MAAMC,gBAAgB,GAAG,MAAM,IAAI,CAACN,kBAAkB,CAACI,OAAO,CAAC,CAAC;IAChE,MAAMG,UAAU,GAAG,MAAM,IAAI,CAACN,YAAY,CAACG,OAAO,CAAC,CAAC;;IAEpD;IACA,IAAI,CAACE,gBAAgB,IAAI,CAACC,UAAU,EAAE;MAClC,MAAMC,OAAO,GAAG,CACZ,6EAA6E,EAC7E,qEAAqE,EACrE,mHAAmH,EACnH,+CAA+C,CAClD,CAACC,IAAI,CAAC,GAAG,CAAC;MAEX,MAAMC,KAAK,GAAG,IAAIC,KAAK,CAAC,uDAAuD,CAAC;MAEhF,MAAMd,aAAa,CAACe,IAAI,CAACF,KAAK,EAAEF,OAAO,CAAC;IAC5C;EACJ;AACJ;AAEA,OAAO,MAAMK,4BAA4B,GAAGrB,YAAY,CAACsB,oBAAoB,CAAC;EAC1EC,cAAc,EAAEjB,gCAAgC;EAChDkB,YAAY,EAAE,CAACtB,kBAAkB,EAAEC,YAAY,EAAEC,cAAc,EAAEH,IAAI;AACzE,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AdminAfterDeploy } from "../../abstractions/index.js";
|
|
2
|
-
declare class TelemetryNoLongerNewUserImpl implements AdminAfterDeploy.Interface {
|
|
3
|
-
execute(): Promise<void>;
|
|
4
|
-
}
|
|
5
|
-
export declare const TelemetryNoLongerNewUser: typeof TelemetryNoLongerNewUserImpl & {
|
|
6
|
-
__abstraction: import("@webiny/di").Abstraction<import("~/abstractions/index.js").IAdminAfterDeploy>;
|
|
7
|
-
};
|
|
8
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AdminAfterDeploy } from "../../abstractions/index.js";
|
|
2
|
-
import { globalConfig } from "@webiny/global-config";
|
|
3
|
-
class TelemetryNoLongerNewUserImpl {
|
|
4
|
-
async execute() {
|
|
5
|
-
// Mark the user as no longer new.
|
|
6
|
-
globalConfig.set("newUser", false);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
export const TelemetryNoLongerNewUser = AdminAfterDeploy.createImplementation({
|
|
10
|
-
implementation: TelemetryNoLongerNewUserImpl,
|
|
11
|
-
dependencies: []
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
//# sourceMappingURL=TelemetryNoLongerNewUser.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["AdminAfterDeploy","globalConfig","TelemetryNoLongerNewUserImpl","execute","set","TelemetryNoLongerNewUser","createImplementation","implementation","dependencies"],"sources":["TelemetryNoLongerNewUser.ts"],"sourcesContent":["import { AdminAfterDeploy } from \"~/abstractions/index.js\";\nimport { globalConfig } from \"@webiny/global-config\";\n\nclass TelemetryNoLongerNewUserImpl implements AdminAfterDeploy.Interface {\n async execute() {\n // Mark the user as no longer new.\n globalConfig.set(\"newUser\", false);\n }\n}\n\nexport const TelemetryNoLongerNewUser = AdminAfterDeploy.createImplementation({\n implementation: TelemetryNoLongerNewUserImpl,\n dependencies: []\n});\n"],"mappings":"AAAA,SAASA,gBAAgB;AACzB,SAASC,YAAY,QAAQ,uBAAuB;AAEpD,MAAMC,4BAA4B,CAAuC;EACrE,MAAMC,OAAOA,CAAA,EAAG;IACZ;IACAF,YAAY,CAACG,GAAG,CAAC,SAAS,EAAE,KAAK,CAAC;EACtC;AACJ;AAEA,OAAO,MAAMC,wBAAwB,GAAGL,gBAAgB,CAACM,oBAAoB,CAAC;EAC1EC,cAAc,EAAEL,4BAA4B;EAC5CM,YAAY,EAAE;AAClB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CoreBeforeDeploy, IsRemotePulumiBackendService, ProjectSdkParamsService } from "../../abstractions/index.js";
|
|
2
|
-
declare class ValidateProductionPulumiStateImpl implements CoreBeforeDeploy.Interface {
|
|
3
|
-
private isRemotePulumiBackendService;
|
|
4
|
-
private projectSdkParamsService;
|
|
5
|
-
constructor(isRemotePulumiBackendService: IsRemotePulumiBackendService.Interface, projectSdkParamsService: ProjectSdkParamsService.Interface);
|
|
6
|
-
execute(params: CoreBeforeDeploy.Params): Promise<void>;
|
|
7
|
-
}
|
|
8
|
-
export declare const ValidateProductionPulumiState: typeof ValidateProductionPulumiStateImpl & {
|
|
9
|
-
__abstraction: import("@webiny/di").Abstraction<import("~/abstractions/index.js").ICoreBeforeDeploy>;
|
|
10
|
-
};
|
|
11
|
-
export {};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { CoreBeforeDeploy, IsRemotePulumiBackendService, ProjectSdkParamsService } from "../../abstractions/index.js";
|
|
2
|
-
import { GracefulError } from "@webiny/project";
|
|
3
|
-
class ValidateProductionPulumiStateImpl {
|
|
4
|
-
constructor(isRemotePulumiBackendService, projectSdkParamsService) {
|
|
5
|
-
this.isRemotePulumiBackendService = isRemotePulumiBackendService;
|
|
6
|
-
this.projectSdkParamsService = projectSdkParamsService;
|
|
7
|
-
}
|
|
8
|
-
async execute(params) {
|
|
9
|
-
const sdkParams = this.projectSdkParamsService.get();
|
|
10
|
-
const {
|
|
11
|
-
env
|
|
12
|
-
} = sdkParams;
|
|
13
|
-
const {
|
|
14
|
-
allowLocalStateFiles
|
|
15
|
-
} = params;
|
|
16
|
-
const prodEnvs = ["prod", "production"];
|
|
17
|
-
const isProdEnv = prodEnvs.includes(env);
|
|
18
|
-
if (!isProdEnv) {
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
if (this.isRemotePulumiBackendService.execute()) {
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
if (allowLocalStateFiles) {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
const error = new Error("Cannot deploy to production with local state files.");
|
|
28
|
-
const message = ["Use the %s flag to continue with local Pulumi state files,", "or configure a remote backend for production deployments.", "Learn more: https://webiny.link/state-files-production."].join(" ");
|
|
29
|
-
throw GracefulError.from(error, message, "--allow-local-state-files");
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
export const ValidateProductionPulumiState = CoreBeforeDeploy.createImplementation({
|
|
33
|
-
implementation: ValidateProductionPulumiStateImpl,
|
|
34
|
-
dependencies: [IsRemotePulumiBackendService, ProjectSdkParamsService]
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
//# sourceMappingURL=ValidateProductionPulumiState.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["CoreBeforeDeploy","IsRemotePulumiBackendService","ProjectSdkParamsService","GracefulError","ValidateProductionPulumiStateImpl","constructor","isRemotePulumiBackendService","projectSdkParamsService","execute","params","sdkParams","get","env","allowLocalStateFiles","prodEnvs","isProdEnv","includes","error","Error","message","join","from","ValidateProductionPulumiState","createImplementation","implementation","dependencies"],"sources":["ValidateProductionPulumiState.ts"],"sourcesContent":["import {\n CoreBeforeDeploy,\n IsRemotePulumiBackendService,\n ProjectSdkParamsService\n} from \"~/abstractions/index.js\";\nimport { GracefulError } from \"@webiny/project\";\n\nclass ValidateProductionPulumiStateImpl implements CoreBeforeDeploy.Interface {\n constructor(\n private isRemotePulumiBackendService: IsRemotePulumiBackendService.Interface,\n private projectSdkParamsService: ProjectSdkParamsService.Interface\n ) {}\n\n async execute(params: CoreBeforeDeploy.Params) {\n const sdkParams = this.projectSdkParamsService.get();\n const { env } = sdkParams;\n const { allowLocalStateFiles } = params;\n\n const prodEnvs = [\"prod\", \"production\"];\n const isProdEnv = prodEnvs.includes(env);\n\n if (!isProdEnv) {\n return;\n }\n\n if (this.isRemotePulumiBackendService.execute()) {\n return;\n }\n\n if (allowLocalStateFiles) {\n return;\n }\n\n const error = new Error(\"Cannot deploy to production with local state files.\");\n\n const message = [\n \"Use the %s flag to continue with local Pulumi state files,\",\n \"or configure a remote backend for production deployments.\",\n \"Learn more: https://webiny.link/state-files-production.\"\n ].join(\" \");\n\n throw GracefulError.from(error, message, \"--allow-local-state-files\");\n }\n}\n\nexport const ValidateProductionPulumiState = CoreBeforeDeploy.createImplementation({\n implementation: ValidateProductionPulumiStateImpl,\n dependencies: [IsRemotePulumiBackendService, ProjectSdkParamsService]\n});\n"],"mappings":"AAAA,SACIA,gBAAgB,EAChBC,4BAA4B,EAC5BC,uBAAuB;AAE3B,SAASC,aAAa,QAAQ,iBAAiB;AAE/C,MAAMC,iCAAiC,CAAuC;EAC1EC,WAAWA,CACCC,4BAAoE,EACpEC,uBAA0D,EACpE;IAAA,KAFUD,4BAAoE,GAApEA,4BAAoE;IAAA,KACpEC,uBAA0D,GAA1DA,uBAA0D;EACnE;EAEH,MAAMC,OAAOA,CAACC,MAA+B,EAAE;IAC3C,MAAMC,SAAS,GAAG,IAAI,CAACH,uBAAuB,CAACI,GAAG,CAAC,CAAC;IACpD,MAAM;MAAEC;IAAI,CAAC,GAAGF,SAAS;IACzB,MAAM;MAAEG;IAAqB,CAAC,GAAGJ,MAAM;IAEvC,MAAMK,QAAQ,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC;IACvC,MAAMC,SAAS,GAAGD,QAAQ,CAACE,QAAQ,CAACJ,GAAG,CAAC;IAExC,IAAI,CAACG,SAAS,EAAE;MACZ;IACJ;IAEA,IAAI,IAAI,CAACT,4BAA4B,CAACE,OAAO,CAAC,CAAC,EAAE;MAC7C;IACJ;IAEA,IAAIK,oBAAoB,EAAE;MACtB;IACJ;IAEA,MAAMI,KAAK,GAAG,IAAIC,KAAK,CAAC,qDAAqD,CAAC;IAE9E,MAAMC,OAAO,GAAG,CACZ,4DAA4D,EAC5D,2DAA2D,EAC3D,yDAAyD,CAC5D,CAACC,IAAI,CAAC,GAAG,CAAC;IAEX,MAAMjB,aAAa,CAACkB,IAAI,CAACJ,KAAK,EAAEE,OAAO,EAAE,2BAA2B,CAAC;EACzE;AACJ;AAEA,OAAO,MAAMG,6BAA6B,GAAGtB,gBAAgB,CAACuB,oBAAoB,CAAC;EAC/EC,cAAc,EAAEpB,iCAAiC;EACjDqB,YAAY,EAAE,CAACxB,4BAA4B,EAAEC,uBAAuB;AACxE,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const AdminAfterDeploy: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
|
|
3
|
-
src: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
4
|
-
}, "strip", z.ZodTypeAny, {
|
|
5
|
-
src: string;
|
|
6
|
-
}, {
|
|
7
|
-
src: string;
|
|
8
|
-
}>>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { defineExtension } from "../../defineExtension/index.js";
|
|
2
|
-
import { zodSrcPath } from "../../defineExtension/zodTypes/zodSrcPath.js";
|
|
3
|
-
import { AdminAfterDeploy as AdminAfterDeployAbstraction } from "../../abstractions/index.js";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
export const 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: ({
|
|
14
|
-
project
|
|
15
|
-
}) => {
|
|
16
|
-
return z.object({
|
|
17
|
-
src: zodSrcPath({
|
|
18
|
-
project,
|
|
19
|
-
abstraction: AdminAfterDeployAbstraction
|
|
20
|
-
})
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
//# sourceMappingURL=AdminAfterDeploy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["defineExtension","zodSrcPath","AdminAfterDeploy","AdminAfterDeployAbstraction","z","type","tags","runtimeContext","application","description","multiple","paramsSchema","project","object","src","abstraction"],"sources":["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"],"mappings":"AAAA,SAASA,eAAe;AACxB,SAASC,UAAU;AACnB,SAASC,gBAAgB,IAAIC,2BAA2B;AACxD,SAASC,CAAC,QAAQ,KAAK;AAEvB,OAAO,MAAMF,gBAAgB,GAAGF,eAAe,CAAC;EAC5CK,IAAI,EAAE,mBAAmB;EACzBC,IAAI,EAAE;IAAEC,cAAc,EAAE,SAAS;IAAEC,WAAW,EAAE;EAAQ,CAAC;EACzDC,WAAW,EAAE,qEAAqE;EAClFC,QAAQ,EAAE,IAAI;EACdC,YAAY,EAAEA,CAAC;IAAEC;EAAQ,CAAC,KAAK;IAC3B,OAAOR,CAAC,CAACS,MAAM,CAAC;MACZC,GAAG,EAAEb,UAAU,CAAC;QAAEW,OAAO;QAAEG,WAAW,EAAEZ;MAA4B,CAAC;IACzE,CAAC,CAAC;EACN;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const AdminBeforeDeploy: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
|
|
3
|
-
src: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
4
|
-
}, "strip", z.ZodTypeAny, {
|
|
5
|
-
src: string;
|
|
6
|
-
}, {
|
|
7
|
-
src: string;
|
|
8
|
-
}>>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { defineExtension } from "../../defineExtension/index.js";
|
|
2
|
-
import { zodSrcPath } from "../../defineExtension/zodTypes/zodSrcPath.js";
|
|
3
|
-
import { AdminBeforeDeploy as AdminBeforeDeployAbstraction } from "../../abstractions/index.js";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
export const 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: ({
|
|
14
|
-
project
|
|
15
|
-
}) => {
|
|
16
|
-
return z.object({
|
|
17
|
-
src: zodSrcPath({
|
|
18
|
-
project,
|
|
19
|
-
abstraction: AdminBeforeDeployAbstraction
|
|
20
|
-
})
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
//# sourceMappingURL=AdminBeforeDeploy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["defineExtension","zodSrcPath","AdminBeforeDeploy","AdminBeforeDeployAbstraction","z","type","tags","runtimeContext","application","description","multiple","paramsSchema","project","object","src","abstraction"],"sources":["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"],"mappings":"AAAA,SAASA,eAAe;AACxB,SAASC,UAAU;AACnB,SAASC,iBAAiB,IAAIC,4BAA4B;AAC1D,SAASC,CAAC,QAAQ,KAAK;AAEvB,OAAO,MAAMF,iBAAiB,GAAGF,eAAe,CAAC;EAC7CK,IAAI,EAAE,oBAAoB;EAC1BC,IAAI,EAAE;IAAEC,cAAc,EAAE,SAAS;IAAEC,WAAW,EAAE;EAAQ,CAAC;EACzDC,WAAW,EAAE,sEAAsE;EACnFC,QAAQ,EAAE,IAAI;EACdC,YAAY,EAAEA,CAAC;IAAEC;EAAQ,CAAC,KAAK;IAC3B,OAAOR,CAAC,CAACS,MAAM,CAAC;MACZC,GAAG,EAAEb,UAAU,CAAC;QAAEW,OAAO;QAAEG,WAAW,EAAEZ;MAA6B,CAAC;IAC1E,CAAC,CAAC;EACN;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const AfterDeploy: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
|
|
3
|
-
src: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
4
|
-
}, "strip", z.ZodTypeAny, {
|
|
5
|
-
src: string;
|
|
6
|
-
}, {
|
|
7
|
-
src: string;
|
|
8
|
-
}>>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { defineExtension } from "../../defineExtension/index.js";
|
|
2
|
-
import { zodSrcPath } from "../../defineExtension/zodTypes/zodSrcPath.js";
|
|
3
|
-
import { AfterDeploy as AfterDeployAbstraction } from "../../abstractions/index.js";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
export const 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: ({
|
|
13
|
-
project
|
|
14
|
-
}) => {
|
|
15
|
-
return z.object({
|
|
16
|
-
src: zodSrcPath({
|
|
17
|
-
project,
|
|
18
|
-
abstraction: AfterDeployAbstraction
|
|
19
|
-
})
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
//# sourceMappingURL=AfterDeploy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["defineExtension","zodSrcPath","AfterDeploy","AfterDeployAbstraction","z","type","tags","runtimeContext","description","multiple","paramsSchema","project","object","src","abstraction"],"sources":["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"],"mappings":"AAAA,SAASA,eAAe;AACxB,SAASC,UAAU;AACnB,SAASC,WAAW,IAAIC,sBAAsB;AAC9C,SAASC,CAAC,QAAQ,KAAK;AAEvB,OAAO,MAAMF,WAAW,GAAGF,eAAe,CAAC;EACvCK,IAAI,EAAE,qBAAqB;EAC3BC,IAAI,EAAE;IAAEC,cAAc,EAAE;EAAU,CAAC;EACnCC,WAAW,EAAE,mEAAmE;EAChFC,QAAQ,EAAE,IAAI;EACdC,YAAY,EAAEA,CAAC;IAAEC;EAAQ,CAAC,KAAK;IAC3B,OAAOP,CAAC,CAACQ,MAAM,CAAC;MACZC,GAAG,EAAEZ,UAAU,CAAC;QAAEU,OAAO;QAAEG,WAAW,EAAEX;MAAuB,CAAC;IACpE,CAAC,CAAC;EACN;AACJ,CAAC,CAAC","ignoreList":[]}
|