@webiny/project 0.0.0-unstable.3c5210ad37
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.d.ts +4 -0
- package/GracefulError.js +20 -0
- package/GracefulError.js.map +1 -0
- package/LICENSE +21 -0
- package/ProjectError.d.ts +4 -0
- package/ProjectError.js +18 -0
- package/ProjectError.js.map +1 -0
- package/ProjectSdk.d.ts +47 -0
- package/ProjectSdk.js +134 -0
- package/ProjectSdk.js.map +1 -0
- package/README.md +11 -0
- package/abstractions/createAbstraction.d.ts +2 -0
- package/abstractions/createAbstraction.js +6 -0
- package/abstractions/createAbstraction.js.map +1 -0
- package/abstractions/features/BuildApp.d.ts +16 -0
- package/abstractions/features/BuildApp.js +4 -0
- package/abstractions/features/BuildApp.js.map +1 -0
- package/abstractions/features/BuildExtension.d.ts +7 -0
- package/abstractions/features/BuildExtension.js +4 -0
- package/abstractions/features/BuildExtension.js.map +1 -0
- package/abstractions/features/DeployApp.d.ts +21 -0
- package/abstractions/features/DeployApp.js +4 -0
- package/abstractions/features/DeployApp.js.map +1 -0
- package/abstractions/features/DestroyApp.d.ts +18 -0
- package/abstractions/features/DestroyApp.js +4 -0
- package/abstractions/features/DestroyApp.js.map +1 -0
- package/abstractions/features/ExportStack.d.ts +18 -0
- package/abstractions/features/ExportStack.js +4 -0
- package/abstractions/features/ExportStack.js.map +1 -0
- package/abstractions/features/GetApp.d.ts +13 -0
- package/abstractions/features/GetApp.js +4 -0
- package/abstractions/features/GetApp.js.map +1 -0
- package/abstractions/features/GetAppOutput.d.ts +18 -0
- package/abstractions/features/GetAppOutput.js +4 -0
- package/abstractions/features/GetAppOutput.js.map +1 -0
- package/abstractions/features/GetAppStackOutput.d.ts +21 -0
- package/abstractions/features/GetAppStackOutput.js +9 -0
- package/abstractions/features/GetAppStackOutput.js.map +1 -0
- package/abstractions/features/GetFeatureFlags.d.ts +8 -0
- package/abstractions/features/GetFeatureFlags.js +4 -0
- package/abstractions/features/GetFeatureFlags.js.map +1 -0
- package/abstractions/features/GetLogger.d.ts +10 -0
- package/abstractions/features/GetLogger.js +4 -0
- package/abstractions/features/GetLogger.js.map +1 -0
- package/abstractions/features/GetProductionEnvironments.d.ts +7 -0
- package/abstractions/features/GetProductionEnvironments.js +4 -0
- package/abstractions/features/GetProductionEnvironments.js.map +1 -0
- package/abstractions/features/GetProject.d.ts +10 -0
- package/abstractions/features/GetProject.js +4 -0
- package/abstractions/features/GetProject.js.map +1 -0
- package/abstractions/features/GetProjectConfig.d.ts +14 -0
- package/abstractions/features/GetProjectConfig.js +4 -0
- package/abstractions/features/GetProjectConfig.js.map +1 -0
- package/abstractions/features/GetProjectInfo.d.ts +13 -0
- package/abstractions/features/GetProjectInfo.js +4 -0
- package/abstractions/features/GetProjectInfo.js.map +1 -0
- package/abstractions/features/GetPulumiResourceNamePrefix.d.ts +7 -0
- package/abstractions/features/GetPulumiResourceNamePrefix.js +4 -0
- package/abstractions/features/GetPulumiResourceNamePrefix.js.map +1 -0
- package/abstractions/features/InstallExtension.d.ts +10 -0
- package/abstractions/features/InstallExtension.js +4 -0
- package/abstractions/features/InstallExtension.js.map +1 -0
- package/abstractions/features/IsCi.d.ts +8 -0
- package/abstractions/features/IsCi.js +4 -0
- package/abstractions/features/IsCi.js.map +1 -0
- package/abstractions/features/IsTelemetryEnabled.d.ts +8 -0
- package/abstractions/features/IsTelemetryEnabled.js +4 -0
- package/abstractions/features/IsTelemetryEnabled.js.map +1 -0
- package/abstractions/features/IsWcpEnabled.d.ts +8 -0
- package/abstractions/features/IsWcpEnabled.js +4 -0
- package/abstractions/features/IsWcpEnabled.js.map +1 -0
- package/abstractions/features/IsWebinyJsRepo.d.ts +8 -0
- package/abstractions/features/IsWebinyJsRepo.js +4 -0
- package/abstractions/features/IsWebinyJsRepo.js.map +1 -0
- package/abstractions/features/RefreshApp.d.ts +18 -0
- package/abstractions/features/RefreshApp.js +4 -0
- package/abstractions/features/RefreshApp.js.map +1 -0
- package/abstractions/features/RunPulumiCommand.d.ts +19 -0
- package/abstractions/features/RunPulumiCommand.js +4 -0
- package/abstractions/features/RunPulumiCommand.js.map +1 -0
- package/abstractions/features/ValidateProjectConfig.d.ts +10 -0
- package/abstractions/features/ValidateProjectConfig.js +4 -0
- package/abstractions/features/ValidateProjectConfig.js.map +1 -0
- package/abstractions/features/Watch.d.ts +31 -0
- package/abstractions/features/Watch.js +4 -0
- package/abstractions/features/Watch.js.map +1 -0
- package/abstractions/features/hooks/AdminAfterBuild.d.ts +9 -0
- package/abstractions/features/hooks/AdminAfterBuild.js +4 -0
- package/abstractions/features/hooks/AdminAfterBuild.js.map +1 -0
- package/abstractions/features/hooks/AdminAfterDeploy.d.ts +9 -0
- package/abstractions/features/hooks/AdminAfterDeploy.js +4 -0
- package/abstractions/features/hooks/AdminAfterDeploy.js.map +1 -0
- package/abstractions/features/hooks/AdminBeforeBuild.d.ts +9 -0
- package/abstractions/features/hooks/AdminBeforeBuild.js +4 -0
- package/abstractions/features/hooks/AdminBeforeBuild.js.map +1 -0
- package/abstractions/features/hooks/AdminBeforeDeploy.d.ts +9 -0
- package/abstractions/features/hooks/AdminBeforeDeploy.js +4 -0
- package/abstractions/features/hooks/AdminBeforeDeploy.js.map +1 -0
- package/abstractions/features/hooks/AdminBeforeWatch.d.ts +9 -0
- package/abstractions/features/hooks/AdminBeforeWatch.js +4 -0
- package/abstractions/features/hooks/AdminBeforeWatch.js.map +1 -0
- package/abstractions/features/hooks/AfterBuild.d.ts +9 -0
- package/abstractions/features/hooks/AfterBuild.js +4 -0
- package/abstractions/features/hooks/AfterBuild.js.map +1 -0
- package/abstractions/features/hooks/AfterDeploy.d.ts +9 -0
- package/abstractions/features/hooks/AfterDeploy.js +4 -0
- package/abstractions/features/hooks/AfterDeploy.js.map +1 -0
- package/abstractions/features/hooks/ApiAfterBuild.d.ts +9 -0
- package/abstractions/features/hooks/ApiAfterBuild.js +4 -0
- package/abstractions/features/hooks/ApiAfterBuild.js.map +1 -0
- package/abstractions/features/hooks/ApiAfterDeploy.d.ts +9 -0
- package/abstractions/features/hooks/ApiAfterDeploy.js +4 -0
- package/abstractions/features/hooks/ApiAfterDeploy.js.map +1 -0
- package/abstractions/features/hooks/ApiBeforeBuild.d.ts +9 -0
- package/abstractions/features/hooks/ApiBeforeBuild.js +4 -0
- package/abstractions/features/hooks/ApiBeforeBuild.js.map +1 -0
- package/abstractions/features/hooks/ApiBeforeDeploy.d.ts +9 -0
- package/abstractions/features/hooks/ApiBeforeDeploy.js +4 -0
- package/abstractions/features/hooks/ApiBeforeDeploy.js.map +1 -0
- package/abstractions/features/hooks/ApiBeforeWatch.d.ts +9 -0
- package/abstractions/features/hooks/ApiBeforeWatch.js +4 -0
- package/abstractions/features/hooks/ApiBeforeWatch.js.map +1 -0
- package/abstractions/features/hooks/BeforeBuild.d.ts +9 -0
- package/abstractions/features/hooks/BeforeBuild.js +4 -0
- package/abstractions/features/hooks/BeforeBuild.js.map +1 -0
- package/abstractions/features/hooks/BeforeDeploy.d.ts +9 -0
- package/abstractions/features/hooks/BeforeDeploy.js +4 -0
- package/abstractions/features/hooks/BeforeDeploy.js.map +1 -0
- package/abstractions/features/hooks/BeforeWatch.d.ts +9 -0
- package/abstractions/features/hooks/BeforeWatch.js +4 -0
- package/abstractions/features/hooks/BeforeWatch.js.map +1 -0
- package/abstractions/features/hooks/CoreAfterBuild.d.ts +9 -0
- package/abstractions/features/hooks/CoreAfterBuild.js +4 -0
- package/abstractions/features/hooks/CoreAfterBuild.js.map +1 -0
- package/abstractions/features/hooks/CoreAfterDeploy.d.ts +9 -0
- package/abstractions/features/hooks/CoreAfterDeploy.js +4 -0
- package/abstractions/features/hooks/CoreAfterDeploy.js.map +1 -0
- package/abstractions/features/hooks/CoreBeforeBuild.d.ts +9 -0
- package/abstractions/features/hooks/CoreBeforeBuild.js +4 -0
- package/abstractions/features/hooks/CoreBeforeBuild.js.map +1 -0
- package/abstractions/features/hooks/CoreBeforeDeploy.d.ts +9 -0
- package/abstractions/features/hooks/CoreBeforeDeploy.js +4 -0
- package/abstractions/features/hooks/CoreBeforeDeploy.js.map +1 -0
- package/abstractions/features/hooks/CoreBeforeWatch.d.ts +9 -0
- package/abstractions/features/hooks/CoreBeforeWatch.js +4 -0
- package/abstractions/features/hooks/CoreBeforeWatch.js.map +1 -0
- package/abstractions/features/hooks/index.d.ts +20 -0
- package/abstractions/features/hooks/index.js +22 -0
- package/abstractions/features/hooks/index.js.map +1 -0
- package/abstractions/features/index.d.ts +26 -0
- package/abstractions/features/index.js +28 -0
- package/abstractions/features/index.js.map +1 -0
- package/abstractions/features/pulumi/AdminPulumi.d.ts +8 -0
- package/abstractions/features/pulumi/AdminPulumi.js +4 -0
- package/abstractions/features/pulumi/AdminPulumi.js.map +1 -0
- package/abstractions/features/pulumi/ApiPulumi.d.ts +8 -0
- package/abstractions/features/pulumi/ApiPulumi.js +4 -0
- package/abstractions/features/pulumi/ApiPulumi.js.map +1 -0
- package/abstractions/features/pulumi/CorePulumi.d.ts +8 -0
- package/abstractions/features/pulumi/CorePulumi.js +4 -0
- package/abstractions/features/pulumi/CorePulumi.js.map +1 -0
- package/abstractions/features/pulumi/index.d.ts +3 -0
- package/abstractions/features/pulumi/index.js +5 -0
- package/abstractions/features/pulumi/index.js.map +1 -0
- package/abstractions/index.d.ts +2 -0
- package/abstractions/index.js +4 -0
- package/abstractions/index.js.map +1 -0
- package/abstractions/models/IAppModel.d.ts +17 -0
- package/abstractions/models/IAppModel.js +3 -0
- package/abstractions/models/IAppModel.js.map +1 -0
- package/abstractions/models/IAppPackageModel.d.ts +9 -0
- package/abstractions/models/IAppPackageModel.js +3 -0
- package/abstractions/models/IAppPackageModel.js.map +1 -0
- package/abstractions/models/IPathModel.d.ts +9 -0
- package/abstractions/models/IPathModel.js +3 -0
- package/abstractions/models/IPathModel.js.map +1 -0
- package/abstractions/models/IProjectConfigDto.d.ts +5 -0
- package/abstractions/models/IProjectConfigDto.js +3 -0
- package/abstractions/models/IProjectConfigDto.js.map +1 -0
- package/abstractions/models/IProjectConfigModel.d.ts +8 -0
- package/abstractions/models/IProjectConfigModel.js +3 -0
- package/abstractions/models/IProjectConfigModel.js.map +1 -0
- package/abstractions/models/IProjectModel.d.ts +28 -0
- package/abstractions/models/IProjectModel.js +3 -0
- package/abstractions/models/IProjectModel.js.map +1 -0
- package/abstractions/models/IUrlModel.d.ts +8 -0
- package/abstractions/models/IUrlModel.js +3 -0
- package/abstractions/models/IUrlModel.js.map +1 -0
- package/abstractions/models/IWcpEnvironmentDto.d.ts +18 -0
- package/abstractions/models/IWcpEnvironmentDto.js +3 -0
- package/abstractions/models/IWcpEnvironmentDto.js.map +1 -0
- package/abstractions/models/IWcpEnvironmentModel.d.ts +18 -0
- package/abstractions/models/IWcpEnvironmentModel.js +3 -0
- package/abstractions/models/IWcpEnvironmentModel.js.map +1 -0
- package/abstractions/models/IWcpUserDto.d.ts +18 -0
- package/abstractions/models/IWcpUserDto.js +3 -0
- package/abstractions/models/IWcpUserDto.js.map +1 -0
- package/abstractions/models/IWcpUserModel.d.ts +18 -0
- package/abstractions/models/IWcpUserModel.js +3 -0
- package/abstractions/models/IWcpUserModel.js.map +1 -0
- package/abstractions/models/IWcpUserPatDto.d.ts +9 -0
- package/abstractions/models/IWcpUserPatDto.js +3 -0
- package/abstractions/models/IWcpUserPatDto.js.map +1 -0
- package/abstractions/models/IWcpUserPatModel.d.ts +9 -0
- package/abstractions/models/IWcpUserPatModel.js +3 -0
- package/abstractions/models/IWcpUserPatModel.js.map +1 -0
- package/abstractions/models/PackagesBuilder/IPackagesBuilder.d.ts +20 -0
- package/abstractions/models/PackagesBuilder/IPackagesBuilder.js +3 -0
- package/abstractions/models/PackagesBuilder/IPackagesBuilder.js.map +1 -0
- package/abstractions/models/PackagesBuilder/IRunnableBuildProcess.d.ts +14 -0
- package/abstractions/models/PackagesBuilder/IRunnableBuildProcess.js +3 -0
- package/abstractions/models/PackagesBuilder/IRunnableBuildProcess.js.map +1 -0
- package/abstractions/models/PackagesBuilder/IRunnableBuildProcesses.d.ts +16 -0
- package/abstractions/models/PackagesBuilder/IRunnableBuildProcesses.js +3 -0
- package/abstractions/models/PackagesBuilder/IRunnableBuildProcesses.js.map +1 -0
- package/abstractions/models/PackagesBuilder/index.d.ts +3 -0
- package/abstractions/models/PackagesBuilder/index.js +3 -0
- package/abstractions/models/PackagesBuilder/index.js.map +1 -0
- package/abstractions/models/index.d.ts +15 -0
- package/abstractions/models/index.js +3 -0
- package/abstractions/models/index.js.map +1 -0
- package/abstractions/services/BuildAppWorkspaceService.d.ts +14 -0
- package/abstractions/services/BuildAppWorkspaceService.js +4 -0
- package/abstractions/services/BuildAppWorkspaceService.js.map +1 -0
- package/abstractions/services/BuildProjectWorkspaceService.d.ts +9 -0
- package/abstractions/services/BuildProjectWorkspaceService.js +4 -0
- package/abstractions/services/BuildProjectWorkspaceService.js.map +1 -0
- package/abstractions/services/GetAppPackagesService.d.ts +8 -0
- package/abstractions/services/GetAppPackagesService.js +4 -0
- package/abstractions/services/GetAppPackagesService.js.map +1 -0
- package/abstractions/services/GetAppService.d.ts +14 -0
- package/abstractions/services/GetAppService.js +4 -0
- package/abstractions/services/GetAppService.js.map +1 -0
- package/abstractions/services/GetCwdService.d.ts +7 -0
- package/abstractions/services/GetCwdService.js +4 -0
- package/abstractions/services/GetCwdService.js.map +1 -0
- package/abstractions/services/GetProjectConfigService.d.ts +17 -0
- package/abstractions/services/GetProjectConfigService.js +4 -0
- package/abstractions/services/GetProjectConfigService.js.map +1 -0
- package/abstractions/services/GetProjectIdService.d.ts +10 -0
- package/abstractions/services/GetProjectIdService.js +4 -0
- package/abstractions/services/GetProjectIdService.js.map +1 -0
- package/abstractions/services/GetProjectService.d.ts +11 -0
- package/abstractions/services/GetProjectService.js +4 -0
- package/abstractions/services/GetProjectService.js.map +1 -0
- package/abstractions/services/GetProjectVersionService.d.ts +10 -0
- package/abstractions/services/GetProjectVersionService.js +4 -0
- package/abstractions/services/GetProjectVersionService.js.map +1 -0
- package/abstractions/services/GetPulumiService.d.ts +14 -0
- package/abstractions/services/GetPulumiService.js +4 -0
- package/abstractions/services/GetPulumiService.js.map +1 -0
- package/abstractions/services/InitProjectSdkService.d.ts +8 -0
- package/abstractions/services/InitProjectSdkService.js +4 -0
- package/abstractions/services/InitProjectSdkService.js.map +1 -0
- package/abstractions/services/InstallExtensionService.d.ts +15 -0
- package/abstractions/services/InstallExtensionService.js +4 -0
- package/abstractions/services/InstallExtensionService.js.map +1 -0
- package/abstractions/services/IsRemotePulumiBackendService.d.ts +7 -0
- package/abstractions/services/IsRemotePulumiBackendService.js +4 -0
- package/abstractions/services/IsRemotePulumiBackendService.js.map +1 -0
- package/abstractions/services/ListAppLambdaFunctionsService.d.ts +23 -0
- package/abstractions/services/ListAppLambdaFunctionsService.js +4 -0
- package/abstractions/services/ListAppLambdaFunctionsService.js.map +1 -0
- package/abstractions/services/ListDeployedEnvironmentsService.d.ts +12 -0
- package/abstractions/services/ListDeployedEnvironmentsService.js +4 -0
- package/abstractions/services/ListDeployedEnvironmentsService.js.map +1 -0
- package/abstractions/services/ListPackagesInAppWorkspaceService.d.ts +18 -0
- package/abstractions/services/ListPackagesInAppWorkspaceService.js +4 -0
- package/abstractions/services/ListPackagesInAppWorkspaceService.js.map +1 -0
- package/abstractions/services/ListPackagesService.d.ts +23 -0
- package/abstractions/services/ListPackagesService.js +4 -0
- package/abstractions/services/ListPackagesService.js.map +1 -0
- package/abstractions/services/LoadEnvVarsService.d.ts +7 -0
- package/abstractions/services/LoadEnvVarsService.js +4 -0
- package/abstractions/services/LoadEnvVarsService.js.map +1 -0
- package/abstractions/services/LocalStorageService.d.ts +16 -0
- package/abstractions/services/LocalStorageService.js +4 -0
- package/abstractions/services/LocalStorageService.js.map +1 -0
- package/abstractions/services/LoggerService.d.ts +13 -0
- package/abstractions/services/LoggerService.js +4 -0
- package/abstractions/services/LoggerService.js.map +1 -0
- package/abstractions/services/ProjectInfoService/GetIsCiService.d.ts +8 -0
- package/abstractions/services/ProjectInfoService/GetIsCiService.js +4 -0
- package/abstractions/services/ProjectInfoService/GetIsCiService.js.map +1 -0
- package/abstractions/services/ProjectInfoService/GetNpmVersionService.d.ts +8 -0
- package/abstractions/services/ProjectInfoService/GetNpmVersionService.js +4 -0
- package/abstractions/services/ProjectInfoService/GetNpmVersionService.js.map +1 -0
- package/abstractions/services/ProjectInfoService/GetNpxVersionService.d.ts +8 -0
- package/abstractions/services/ProjectInfoService/GetNpxVersionService.js +4 -0
- package/abstractions/services/ProjectInfoService/GetNpxVersionService.js.map +1 -0
- package/abstractions/services/ProjectInfoService/GetPulumiVersionService.d.ts +12 -0
- package/abstractions/services/ProjectInfoService/GetPulumiVersionService.js +4 -0
- package/abstractions/services/ProjectInfoService/GetPulumiVersionService.js.map +1 -0
- package/abstractions/services/ProjectInfoService/GetYarnVersionService.d.ts +8 -0
- package/abstractions/services/ProjectInfoService/GetYarnVersionService.js +4 -0
- package/abstractions/services/ProjectInfoService/GetYarnVersionService.js.map +1 -0
- package/abstractions/services/ProjectInfoService/ProjectInfoService.d.ts +33 -0
- package/abstractions/services/ProjectInfoService/ProjectInfoService.js +4 -0
- package/abstractions/services/ProjectInfoService/ProjectInfoService.js.map +1 -0
- package/abstractions/services/ProjectInfoService/index.d.ts +6 -0
- package/abstractions/services/ProjectInfoService/index.js +8 -0
- package/abstractions/services/ProjectInfoService/index.js.map +1 -0
- package/abstractions/services/ProjectSdkParamsService.d.ts +22 -0
- package/abstractions/services/ProjectSdkParamsService.js +4 -0
- package/abstractions/services/ProjectSdkParamsService.js.map +1 -0
- package/abstractions/services/PulumiExportService.d.ts +13 -0
- package/abstractions/services/PulumiExportService.js +7 -0
- package/abstractions/services/PulumiExportService.js.map +1 -0
- package/abstractions/services/PulumiGetConfigPassphraseService.d.ts +7 -0
- package/abstractions/services/PulumiGetConfigPassphraseService.js +4 -0
- package/abstractions/services/PulumiGetConfigPassphraseService.js.map +1 -0
- package/abstractions/services/PulumiGetSecretsProviderService.d.ts +7 -0
- package/abstractions/services/PulumiGetSecretsProviderService.js +4 -0
- package/abstractions/services/PulumiGetSecretsProviderService.js.map +1 -0
- package/abstractions/services/PulumiGetStackOutputService.d.ts +13 -0
- package/abstractions/services/PulumiGetStackOutputService.js +4 -0
- package/abstractions/services/PulumiGetStackOutputService.js.map +1 -0
- package/abstractions/services/PulumiImportService.d.ts +8 -0
- package/abstractions/services/PulumiImportService.js +4 -0
- package/abstractions/services/PulumiImportService.js.map +1 -0
- package/abstractions/services/PulumiLoginService.d.ts +16 -0
- package/abstractions/services/PulumiLoginService.js +4 -0
- package/abstractions/services/PulumiLoginService.js.map +1 -0
- package/abstractions/services/PulumiSelectStackService.d.ts +10 -0
- package/abstractions/services/PulumiSelectStackService.js +4 -0
- package/abstractions/services/PulumiSelectStackService.js.map +1 -0
- package/abstractions/services/SetProjectIdService.d.ts +12 -0
- package/abstractions/services/SetProjectIdService.js +4 -0
- package/abstractions/services/SetProjectIdService.js.map +1 -0
- package/abstractions/services/StdioService.d.ts +9 -0
- package/abstractions/services/StdioService.js +4 -0
- package/abstractions/services/StdioService.js.map +1 -0
- package/abstractions/services/UiService.d.ts +15 -0
- package/abstractions/services/UiService.js +4 -0
- package/abstractions/services/UiService.js.map +1 -0
- package/abstractions/services/ValidateProjectConfigService.d.ts +10 -0
- package/abstractions/services/ValidateProjectConfigService.js +4 -0
- package/abstractions/services/ValidateProjectConfigService.js.map +1 -0
- package/abstractions/services/WatchedLambdaFunctionsService.d.ts +28 -0
- package/abstractions/services/WatchedLambdaFunctionsService.js +4 -0
- package/abstractions/services/WatchedLambdaFunctionsService.js.map +1 -0
- package/abstractions/services/WcpService.d.ts +31 -0
- package/abstractions/services/WcpService.js +4 -0
- package/abstractions/services/WcpService.js.map +1 -0
- package/abstractions/services/index.d.ts +35 -0
- package/abstractions/services/index.js +37 -0
- package/abstractions/services/index.js.map +1 -0
- package/abstractions/types.d.ts +1 -0
- package/abstractions/types.js +3 -0
- package/abstractions/types.js.map +1 -0
- package/components/Wcp.d.ts +19 -0
- package/components/Wcp.js +48 -0
- package/components/Wcp.js.map +1 -0
- package/createProjectSdkContainer.d.ts +3 -0
- package/createProjectSdkContainer.js +117 -0
- package/createProjectSdkContainer.js.map +1 -0
- package/decorators/BuildAppWithHooks.d.ts +17 -0
- package/decorators/BuildAppWithHooks.js +50 -0
- package/decorators/BuildAppWithHooks.js.map +1 -0
- package/decorators/DeployAppClearWatchedLambdaFunctions.d.ts +17 -0
- package/decorators/DeployAppClearWatchedLambdaFunctions.js +34 -0
- package/decorators/DeployAppClearWatchedLambdaFunctions.js.map +1 -0
- package/decorators/DeployAppRefreshStackOutputCache.d.ts +17 -0
- package/decorators/DeployAppRefreshStackOutputCache.js +36 -0
- package/decorators/DeployAppRefreshStackOutputCache.js.map +1 -0
- package/decorators/DeployAppWithHooks.d.ts +17 -0
- package/decorators/DeployAppWithHooks.js +48 -0
- package/decorators/DeployAppWithHooks.js.map +1 -0
- package/decorators/DeployAppWithWatchedLambdaReplacement.d.ts +17 -0
- package/decorators/DeployAppWithWatchedLambdaReplacement.js +43 -0
- package/decorators/DeployAppWithWatchedLambdaReplacement.js.map +1 -0
- package/decorators/GetFeatureFlagsWithLicense.d.ts +13 -0
- package/decorators/GetFeatureFlagsWithLicense.js +71 -0
- package/decorators/GetFeatureFlagsWithLicense.js.map +1 -0
- package/decorators/GetPulumiServiceWithDownloadInfo.d.ts +11 -0
- package/decorators/GetPulumiServiceWithDownloadInfo.js +25 -0
- package/decorators/GetPulumiServiceWithDownloadInfo.js.map +1 -0
- package/decorators/WatchWithHooks.d.ts +13 -0
- package/decorators/WatchWithHooks.js +34 -0
- package/decorators/WatchWithHooks.js.map +1 -0
- package/decorators/index.d.ts +8 -0
- package/decorators/index.js +10 -0
- package/decorators/index.js.map +1 -0
- package/defineExtension/createExtensionDefinition.d.ts +4 -0
- package/defineExtension/createExtensionDefinition.js +23 -0
- package/defineExtension/createExtensionDefinition.js.map +1 -0
- package/defineExtension/createExtensionReactComponent.d.ts +11 -0
- package/defineExtension/createExtensionReactComponent.js +51 -0
- package/defineExtension/createExtensionReactComponent.js.map +1 -0
- package/defineExtension/defineExtension.d.ts +9 -0
- package/defineExtension/defineExtension.js +14 -0
- package/defineExtension/defineExtension.js.map +1 -0
- package/defineExtension/index.d.ts +3 -0
- package/defineExtension/index.js +5 -0
- package/defineExtension/index.js.map +1 -0
- package/defineExtension/models/ExtensionDefinitionModel.d.ts +22 -0
- package/defineExtension/models/ExtensionDefinitionModel.js +13 -0
- package/defineExtension/models/ExtensionDefinitionModel.js.map +1 -0
- package/defineExtension/models/ExtensionInstanceModel.d.ts +16 -0
- package/defineExtension/models/ExtensionInstanceModel.js +27 -0
- package/defineExtension/models/ExtensionInstanceModel.js.map +1 -0
- package/defineExtension/models/index.d.ts +2 -0
- package/defineExtension/models/index.js +4 -0
- package/defineExtension/models/index.js.map +1 -0
- package/defineExtension/types.d.ts +24 -0
- package/defineExtension/types.js +3 -0
- package/defineExtension/types.js.map +1 -0
- package/defineExtension/zodTypes/zodSrcPath.d.ts +16 -0
- package/defineExtension/zodTypes/zodSrcPath.js +61 -0
- package/defineExtension/zodTypes/zodSrcPath.js.map +1 -0
- package/exports/infra/admin.d.ts +6 -0
- package/exports/infra/admin.js +8 -0
- package/exports/infra/admin.js.map +1 -0
- package/exports/infra/api.d.ts +6 -0
- package/exports/infra/api.js +8 -0
- package/exports/infra/api.js.map +1 -0
- package/exports/infra/core.d.ts +5 -0
- package/exports/infra/core.js +7 -0
- package/exports/infra/core.js.map +1 -0
- package/exports/infra/index.d.ts +8 -0
- package/exports/infra/index.js +10 -0
- package/exports/infra/index.js.map +1 -0
- package/extensions/AdminBuildParam.d.ts +11 -0
- package/extensions/AdminBuildParam.js +184 -0
- package/extensions/AdminBuildParam.js.map +1 -0
- package/extensions/AdminExtension.d.ts +11 -0
- package/extensions/AdminExtension.js +99 -0
- package/extensions/AdminExtension.js.map +1 -0
- package/extensions/ApiBuildParam.d.ts +11 -0
- package/extensions/ApiBuildParam.js +119 -0
- package/extensions/ApiBuildParam.js.map +1 -0
- package/extensions/ApiExtension.d.ts +11 -0
- package/extensions/ApiExtension.js +102 -0
- package/extensions/ApiExtension.js.map +1 -0
- package/extensions/DatabaseSetup.d.ts +8 -0
- package/extensions/DatabaseSetup.js +14 -0
- package/extensions/DatabaseSetup.js.map +1 -0
- package/extensions/EnvVar.d.ts +11 -0
- package/extensions/EnvVar.js +17 -0
- package/extensions/EnvVar.js.map +1 -0
- package/extensions/ExtensionDefinitions.d.ts +8 -0
- package/extensions/ExtensionDefinitions.js +15 -0
- package/extensions/ExtensionDefinitions.js.map +1 -0
- package/extensions/FeatureFlags.d.ts +92 -0
- package/extensions/FeatureFlags.js +43 -0
- package/extensions/FeatureFlags.js.map +1 -0
- package/extensions/Project/EnsureApiDeployedBeforeAdminBuild.d.ts +11 -0
- package/extensions/Project/EnsureApiDeployedBeforeAdminBuild.js +31 -0
- package/extensions/Project/EnsureApiDeployedBeforeAdminBuild.js.map +1 -0
- package/extensions/Project/EnsureApiDeployedBeforeAdminWatch.d.ts +11 -0
- package/extensions/Project/EnsureApiDeployedBeforeAdminWatch.js +31 -0
- package/extensions/Project/EnsureApiDeployedBeforeAdminWatch.js.map +1 -0
- package/extensions/Project/EnsureApiDeployedBeforeWatch.d.ts +11 -0
- package/extensions/Project/EnsureApiDeployedBeforeWatch.js +31 -0
- package/extensions/Project/EnsureApiDeployedBeforeWatch.js.map +1 -0
- package/extensions/Project/EnsureCoreDeployedBeforeApiDeploy.d.ts +11 -0
- package/extensions/Project/EnsureCoreDeployedBeforeApiDeploy.js +34 -0
- package/extensions/Project/EnsureCoreDeployedBeforeApiDeploy.js.map +1 -0
- package/extensions/Project/EnsureTelemetryEnabledForOss.d.ts +13 -0
- package/extensions/Project/EnsureTelemetryEnabledForOss.js +37 -0
- package/extensions/Project/EnsureTelemetryEnabledForOss.js.map +1 -0
- package/extensions/Project/SetAdminAppEnvVarsBeforeBuild.d.ts +12 -0
- package/extensions/Project/SetAdminAppEnvVarsBeforeBuild.js +43 -0
- package/extensions/Project/SetAdminAppEnvVarsBeforeBuild.js.map +1 -0
- package/extensions/Project/SetAdminAppEnvVarsBeforeWatch.d.ts +12 -0
- package/extensions/Project/SetAdminAppEnvVarsBeforeWatch.js +43 -0
- package/extensions/Project/SetAdminAppEnvVarsBeforeWatch.js.map +1 -0
- package/extensions/Project/ShowConfigChangeInfoBeforeAdminWatch.d.ts +10 -0
- package/extensions/Project/ShowConfigChangeInfoBeforeAdminWatch.js +15 -0
- package/extensions/Project/ShowConfigChangeInfoBeforeAdminWatch.js.map +1 -0
- package/extensions/Project/ShowConfigChangeInfoBeforeApiWatch.d.ts +10 -0
- package/extensions/Project/ShowConfigChangeInfoBeforeApiWatch.js +15 -0
- package/extensions/Project/ShowConfigChangeInfoBeforeApiWatch.js.map +1 -0
- package/extensions/Project/TelemetryNoLongerNewUser.d.ts +8 -0
- package/extensions/Project/TelemetryNoLongerNewUser.js +14 -0
- package/extensions/Project/TelemetryNoLongerNewUser.js.map +1 -0
- package/extensions/Project/ValidateProductionPulumiState.d.ts +11 -0
- package/extensions/Project/ValidateProductionPulumiState.js +37 -0
- package/extensions/Project/ValidateProductionPulumiState.js.map +1 -0
- package/extensions/Project/WcpInjectTelemetryClientAfterBuild.d.ts +14 -0
- package/extensions/Project/WcpInjectTelemetryClientAfterBuild.js +60 -0
- package/extensions/Project/WcpInjectTelemetryClientAfterBuild.js.map +1 -0
- package/extensions/Project.d.ts +2 -0
- package/extensions/Project.js +33 -0
- package/extensions/Project.js.map +1 -0
- package/extensions/ProjectDecorator.d.ts +8 -0
- package/extensions/ProjectDecorator.js +22 -0
- package/extensions/ProjectDecorator.js.map +1 -0
- package/extensions/ProjectId.d.ts +8 -0
- package/extensions/ProjectId.js +19 -0
- package/extensions/ProjectId.js.map +1 -0
- package/extensions/ProjectImplementation.d.ts +11 -0
- package/extensions/ProjectImplementation.js +23 -0
- package/extensions/ProjectImplementation.js.map +1 -0
- package/extensions/Telemetry.d.ts +8 -0
- package/extensions/Telemetry.js +14 -0
- package/extensions/Telemetry.js.map +1 -0
- package/extensions/hooks/AdminAfterBuild.d.ts +8 -0
- package/extensions/hooks/AdminAfterBuild.js +25 -0
- package/extensions/hooks/AdminAfterBuild.js.map +1 -0
- package/extensions/hooks/AdminAfterDeploy.d.ts +8 -0
- package/extensions/hooks/AdminAfterDeploy.js +25 -0
- package/extensions/hooks/AdminAfterDeploy.js.map +1 -0
- package/extensions/hooks/AdminBeforeBuild.d.ts +8 -0
- package/extensions/hooks/AdminBeforeBuild.js +25 -0
- package/extensions/hooks/AdminBeforeBuild.js.map +1 -0
- package/extensions/hooks/AdminBeforeDeploy.d.ts +8 -0
- package/extensions/hooks/AdminBeforeDeploy.js +25 -0
- package/extensions/hooks/AdminBeforeDeploy.js.map +1 -0
- package/extensions/hooks/AdminBeforeWatch.d.ts +8 -0
- package/extensions/hooks/AdminBeforeWatch.js +25 -0
- package/extensions/hooks/AdminBeforeWatch.js.map +1 -0
- package/extensions/hooks/AfterBuild.d.ts +8 -0
- package/extensions/hooks/AfterBuild.js +24 -0
- package/extensions/hooks/AfterBuild.js.map +1 -0
- package/extensions/hooks/AfterDeploy.d.ts +8 -0
- package/extensions/hooks/AfterDeploy.js +24 -0
- package/extensions/hooks/AfterDeploy.js.map +1 -0
- package/extensions/hooks/ApiAfterBuild.d.ts +8 -0
- package/extensions/hooks/ApiAfterBuild.js +25 -0
- package/extensions/hooks/ApiAfterBuild.js.map +1 -0
- package/extensions/hooks/ApiAfterDeploy.d.ts +8 -0
- package/extensions/hooks/ApiAfterDeploy.js +25 -0
- package/extensions/hooks/ApiAfterDeploy.js.map +1 -0
- package/extensions/hooks/ApiBeforeBuild.d.ts +8 -0
- package/extensions/hooks/ApiBeforeBuild.js +25 -0
- package/extensions/hooks/ApiBeforeBuild.js.map +1 -0
- package/extensions/hooks/ApiBeforeDeploy.d.ts +8 -0
- package/extensions/hooks/ApiBeforeDeploy.js +25 -0
- package/extensions/hooks/ApiBeforeDeploy.js.map +1 -0
- package/extensions/hooks/ApiBeforeWatch.d.ts +8 -0
- package/extensions/hooks/ApiBeforeWatch.js +25 -0
- package/extensions/hooks/ApiBeforeWatch.js.map +1 -0
- package/extensions/hooks/BeforeBuild.d.ts +8 -0
- package/extensions/hooks/BeforeBuild.js +24 -0
- package/extensions/hooks/BeforeBuild.js.map +1 -0
- package/extensions/hooks/BeforeDeploy.d.ts +8 -0
- package/extensions/hooks/BeforeDeploy.js +24 -0
- package/extensions/hooks/BeforeDeploy.js.map +1 -0
- package/extensions/hooks/BeforeWatch.d.ts +8 -0
- package/extensions/hooks/BeforeWatch.js +24 -0
- package/extensions/hooks/BeforeWatch.js.map +1 -0
- package/extensions/hooks/CoreAfterBuild.d.ts +8 -0
- package/extensions/hooks/CoreAfterBuild.js +25 -0
- package/extensions/hooks/CoreAfterBuild.js.map +1 -0
- package/extensions/hooks/CoreAfterDeploy.d.ts +8 -0
- package/extensions/hooks/CoreAfterDeploy.js +25 -0
- package/extensions/hooks/CoreAfterDeploy.js.map +1 -0
- package/extensions/hooks/CoreBeforeBuild.d.ts +8 -0
- package/extensions/hooks/CoreBeforeBuild.js +25 -0
- package/extensions/hooks/CoreBeforeBuild.js.map +1 -0
- package/extensions/hooks/CoreBeforeDeploy.d.ts +8 -0
- package/extensions/hooks/CoreBeforeDeploy.js +25 -0
- package/extensions/hooks/CoreBeforeDeploy.js.map +1 -0
- package/extensions/hooks/CoreBeforeWatch.d.ts +8 -0
- package/extensions/hooks/CoreBeforeWatch.js +25 -0
- package/extensions/hooks/CoreBeforeWatch.js.map +1 -0
- package/extensions/hooks/index.d.ts +20 -0
- package/extensions/hooks/index.js +22 -0
- package/extensions/hooks/index.js.map +1 -0
- package/extensions/index.d.ts +216 -0
- package/extensions/index.js +75 -0
- package/extensions/index.js.map +1 -0
- package/extensions/infra/Env.d.ts +19 -0
- package/extensions/infra/Env.js +79 -0
- package/extensions/infra/Env.js.map +1 -0
- package/extensions/infra/index.d.ts +1 -0
- package/extensions/infra/index.js +3 -0
- package/extensions/infra/index.js.map +1 -0
- package/extensions/pulumi/AdminPulumi.d.ts +8 -0
- package/extensions/pulumi/AdminPulumi.js +25 -0
- package/extensions/pulumi/AdminPulumi.js.map +1 -0
- package/extensions/pulumi/AdminStackOutputValue.d.ts +11 -0
- package/extensions/pulumi/AdminStackOutputValue.js +17 -0
- package/extensions/pulumi/AdminStackOutputValue.js.map +1 -0
- package/extensions/pulumi/ApiPulumi.d.ts +8 -0
- package/extensions/pulumi/ApiPulumi.js +25 -0
- package/extensions/pulumi/ApiPulumi.js.map +1 -0
- package/extensions/pulumi/ApiStackOutputValue.d.ts +11 -0
- package/extensions/pulumi/ApiStackOutputValue.js +17 -0
- package/extensions/pulumi/ApiStackOutputValue.js.map +1 -0
- package/extensions/pulumi/CorePulumi.d.ts +8 -0
- package/extensions/pulumi/CorePulumi.js +25 -0
- package/extensions/pulumi/CorePulumi.js.map +1 -0
- package/extensions/pulumi/CoreStackOutputValue.d.ts +11 -0
- package/extensions/pulumi/CoreStackOutputValue.js +17 -0
- package/extensions/pulumi/CoreStackOutputValue.js.map +1 -0
- package/extensions/pulumi/ProductionEnvironments.d.ts +8 -0
- package/extensions/pulumi/ProductionEnvironments.js +31 -0
- package/extensions/pulumi/ProductionEnvironments.js.map +1 -0
- package/extensions/pulumi/PulumiResourceNamePrefix.d.ts +8 -0
- package/extensions/pulumi/PulumiResourceNamePrefix.js +14 -0
- package/extensions/pulumi/PulumiResourceNamePrefix.js.map +1 -0
- package/extensions/pulumi/index.d.ts +8 -0
- package/extensions/pulumi/index.js +10 -0
- package/extensions/pulumi/index.js.map +1 -0
- package/features/BuildApp/BuildApp.d.ts +12 -0
- package/features/BuildApp/BuildApp.js +48 -0
- package/features/BuildApp/BuildApp.js.map +1 -0
- package/features/BuildApp/PackagesBuilder/PackagesBuilder.d.ts +32 -0
- package/features/BuildApp/PackagesBuilder/PackagesBuilder.js +44 -0
- package/features/BuildApp/PackagesBuilder/PackagesBuilder.js.map +1 -0
- package/features/BuildApp/PackagesBuilder/RunnableBuildProcess.d.ts +16 -0
- package/features/BuildApp/PackagesBuilder/RunnableBuildProcess.js +38 -0
- package/features/BuildApp/PackagesBuilder/RunnableBuildProcess.js.map +1 -0
- package/features/BuildApp/PackagesBuilder/RunnableBuildProcesses.d.ts +16 -0
- package/features/BuildApp/PackagesBuilder/RunnableBuildProcesses.js +49 -0
- package/features/BuildApp/PackagesBuilder/RunnableBuildProcesses.js.map +1 -0
- package/features/BuildApp/PackagesBuilder/utils/requireConfig.d.ts +18 -0
- package/features/BuildApp/PackagesBuilder/utils/requireConfig.js +15 -0
- package/features/BuildApp/PackagesBuilder/utils/requireConfig.js.map +1 -0
- package/features/BuildApp/PackagesBuilder/worker.d.ts +1 -0
- package/features/BuildApp/PackagesBuilder/worker.js +50 -0
- package/features/BuildApp/PackagesBuilder/worker.js.map +1 -0
- package/features/BuildApp/index.d.ts +1 -0
- package/features/BuildApp/index.js +3 -0
- package/features/BuildApp/index.js.map +1 -0
- package/features/DeployApp/DeployApp.d.ts +14 -0
- package/features/DeployApp/DeployApp.js +86 -0
- package/features/DeployApp/DeployApp.js.map +1 -0
- package/features/DeployApp/index.d.ts +1 -0
- package/features/DeployApp/index.js +3 -0
- package/features/DeployApp/index.js.map +1 -0
- package/features/DestroyApp/DestroyApp.d.ts +14 -0
- package/features/DestroyApp/DestroyApp.js +52 -0
- package/features/DestroyApp/DestroyApp.js.map +1 -0
- package/features/DestroyApp/index.d.ts +1 -0
- package/features/DestroyApp/index.js +3 -0
- package/features/DestroyApp/index.js.map +1 -0
- package/features/ExportStack/ExportStack.d.ts +9 -0
- package/features/ExportStack/ExportStack.js +21 -0
- package/features/ExportStack/ExportStack.js.map +1 -0
- package/features/ExportStack/index.d.ts +1 -0
- package/features/ExportStack/index.js +3 -0
- package/features/ExportStack/index.js.map +1 -0
- package/features/GetApp/GetApp.d.ts +7 -0
- package/features/GetApp/GetApp.js +17 -0
- package/features/GetApp/GetApp.js.map +1 -0
- package/features/GetApp/index.d.ts +1 -0
- package/features/GetApp/index.js +3 -0
- package/features/GetApp/index.js.map +1 -0
- package/features/GetAppOutput/GetAppOutput.d.ts +12 -0
- package/features/GetAppOutput/GetAppOutput.js +40 -0
- package/features/GetAppOutput/GetAppOutput.js.map +1 -0
- package/features/GetAppOutput/index.d.ts +1 -0
- package/features/GetAppOutput/index.js +3 -0
- package/features/GetAppOutput/index.js.map +1 -0
- package/features/GetAppStackOutput/GetAppStackOutput.d.ts +10 -0
- package/features/GetAppStackOutput/GetAppStackOutput.js +21 -0
- package/features/GetAppStackOutput/GetAppStackOutput.js.map +1 -0
- package/features/GetAppStackOutput/index.d.ts +1 -0
- package/features/GetAppStackOutput/index.js +3 -0
- package/features/GetAppStackOutput/index.js.map +1 -0
- package/features/GetFeatureFlags/GetFeatureFlags.d.ts +10 -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 +3 -0
- package/features/GetFeatureFlags/index.js.map +1 -0
- package/features/GetLogger/GetLogger.d.ts +7 -0
- package/features/GetLogger/GetLogger.js +17 -0
- package/features/GetLogger/GetLogger.js.map +1 -0
- package/features/GetLogger/index.d.ts +1 -0
- package/features/GetLogger/index.js +3 -0
- package/features/GetLogger/index.js.map +1 -0
- package/features/GetProductionEnvironments/GetProductionEnvironments.d.ts +7 -0
- package/features/GetProductionEnvironments/GetProductionEnvironments.js +26 -0
- package/features/GetProductionEnvironments/GetProductionEnvironments.js.map +1 -0
- package/features/GetProductionEnvironments/index.d.ts +1 -0
- package/features/GetProductionEnvironments/index.js +3 -0
- package/features/GetProductionEnvironments/index.js.map +1 -0
- package/features/GetProject/GetProject.d.ts +7 -0
- package/features/GetProject/GetProject.js +17 -0
- package/features/GetProject/GetProject.js.map +1 -0
- package/features/GetProject/index.d.ts +1 -0
- package/features/GetProject/index.js +3 -0
- package/features/GetProject/index.js.map +1 -0
- package/features/GetProjectConfig/GetProjectConfig.d.ts +7 -0
- package/features/GetProjectConfig/GetProjectConfig.js +17 -0
- package/features/GetProjectConfig/GetProjectConfig.js.map +1 -0
- package/features/GetProjectConfig/index.d.ts +1 -0
- package/features/GetProjectConfig/index.js +3 -0
- package/features/GetProjectConfig/index.js.map +1 -0
- package/features/GetProjectInfo/GetProjectInfo.d.ts +7 -0
- package/features/GetProjectInfo/GetProjectInfo.js +17 -0
- package/features/GetProjectInfo/GetProjectInfo.js.map +1 -0
- package/features/GetProjectInfo/index.d.ts +1 -0
- package/features/GetProjectInfo/index.js +3 -0
- package/features/GetProjectInfo/index.js.map +1 -0
- package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.d.ts +7 -0
- package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.js +24 -0
- package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.js.map +1 -0
- package/features/GetPulumiResourceNamePrefix/index.d.ts +1 -0
- package/features/GetPulumiResourceNamePrefix/index.js +3 -0
- package/features/GetPulumiResourceNamePrefix/index.js.map +1 -0
- package/features/InstallExtension/InstallExtension.d.ts +7 -0
- package/features/InstallExtension/InstallExtension.js +17 -0
- package/features/InstallExtension/InstallExtension.js.map +1 -0
- package/features/InstallExtension/index.d.ts +1 -0
- package/features/InstallExtension/index.js +3 -0
- package/features/InstallExtension/index.js.map +1 -0
- package/features/IsCi/IsCi.d.ts +7 -0
- package/features/IsCi/IsCi.js +17 -0
- package/features/IsCi/IsCi.js.map +1 -0
- package/features/IsCi/index.d.ts +1 -0
- package/features/IsCi/index.js +3 -0
- package/features/IsCi/index.js.map +1 -0
- package/features/IsTelemetryEnabled/IsTelemetryEnabled.d.ts +7 -0
- package/features/IsTelemetryEnabled/IsTelemetryEnabled.js +25 -0
- package/features/IsTelemetryEnabled/IsTelemetryEnabled.js.map +1 -0
- package/features/IsTelemetryEnabled/index.d.ts +1 -0
- package/features/IsTelemetryEnabled/index.js +3 -0
- package/features/IsTelemetryEnabled/index.js.map +1 -0
- package/features/IsWcpEnabled/IsWcpEnabled.d.ts +7 -0
- package/features/IsWcpEnabled/IsWcpEnabled.js +18 -0
- package/features/IsWcpEnabled/IsWcpEnabled.js.map +1 -0
- package/features/IsWcpEnabled/index.d.ts +1 -0
- package/features/IsWcpEnabled/index.js +3 -0
- package/features/IsWcpEnabled/index.js.map +1 -0
- package/features/IsWebinyJsRepo/IsWebinyJsRepo.d.ts +7 -0
- package/features/IsWebinyJsRepo/IsWebinyJsRepo.js +22 -0
- package/features/IsWebinyJsRepo/IsWebinyJsRepo.js.map +1 -0
- package/features/IsWebinyJsRepo/index.d.ts +1 -0
- package/features/IsWebinyJsRepo/index.js +3 -0
- package/features/IsWebinyJsRepo/index.js.map +1 -0
- package/features/RefreshApp/RefreshApp.d.ts +13 -0
- package/features/RefreshApp/RefreshApp.js +53 -0
- package/features/RefreshApp/RefreshApp.js.map +1 -0
- package/features/RefreshApp/index.d.ts +1 -0
- package/features/RefreshApp/index.js +3 -0
- package/features/RefreshApp/index.js.map +1 -0
- package/features/RunPulumiCommand/RunPulumiCommand.d.ts +13 -0
- package/features/RunPulumiCommand/RunPulumiCommand.js +50 -0
- package/features/RunPulumiCommand/RunPulumiCommand.js.map +1 -0
- package/features/RunPulumiCommand/index.d.ts +1 -0
- package/features/RunPulumiCommand/index.js +3 -0
- package/features/RunPulumiCommand/index.js.map +1 -0
- package/features/ValidateProjectConfig/ValidateProjectConfig.d.ts +7 -0
- package/features/ValidateProjectConfig/ValidateProjectConfig.js +17 -0
- package/features/ValidateProjectConfig/ValidateProjectConfig.js.map +1 -0
- package/features/ValidateProjectConfig/index.d.ts +1 -0
- package/features/ValidateProjectConfig/index.js +3 -0
- package/features/ValidateProjectConfig/index.js.map +1 -0
- package/features/Watch/Watch.d.ts +28 -0
- package/features/Watch/Watch.js +194 -0
- package/features/Watch/Watch.js.map +1 -0
- package/features/Watch/getIotEndpoint.d.ts +2 -0
- package/features/Watch/getIotEndpoint.js +16 -0
- package/features/Watch/getIotEndpoint.js.map +1 -0
- package/features/Watch/handler/handler.zip +0 -0
- package/features/Watch/index.d.ts +1 -0
- package/features/Watch/index.js +3 -0
- package/features/Watch/index.js.map +1 -0
- package/features/Watch/initInvocationForwarding.d.ts +9 -0
- package/features/Watch/initInvocationForwarding.js +110 -0
- package/features/Watch/initInvocationForwarding.js.map +1 -0
- package/features/Watch/localInvocationWorker.d.ts +1 -0
- package/features/Watch/localInvocationWorker.js +36 -0
- package/features/Watch/localInvocationWorker.js.map +1 -0
- package/features/Watch/replaceLambdaFunctions.d.ts +19 -0
- package/features/Watch/replaceLambdaFunctions.js +95 -0
- package/features/Watch/replaceLambdaFunctions.js.map +1 -0
- package/features/Watch/watchers/BasePackagesWatcher.d.ts +15 -0
- package/features/Watch/watchers/BasePackagesWatcher.js +16 -0
- package/features/Watch/watchers/BasePackagesWatcher.js.map +1 -0
- package/features/Watch/watchers/MultiplePackagesWatcher.d.ts +5 -0
- package/features/Watch/watchers/MultiplePackagesWatcher.js +18 -0
- package/features/Watch/watchers/MultiplePackagesWatcher.js.map +1 -0
- package/features/Watch/watchers/PackagesWatcher.d.ts +5 -0
- package/features/Watch/watchers/PackagesWatcher.js +27 -0
- package/features/Watch/watchers/PackagesWatcher.js.map +1 -0
- package/features/Watch/watchers/RunnableWatchProcess.d.ts +20 -0
- package/features/Watch/watchers/RunnableWatchProcess.js +47 -0
- package/features/Watch/watchers/RunnableWatchProcess.js.map +1 -0
- package/features/Watch/watchers/RunnableWatchProcesses.d.ts +13 -0
- package/features/Watch/watchers/RunnableWatchProcesses.js +37 -0
- package/features/Watch/watchers/RunnableWatchProcesses.js.map +1 -0
- package/features/Watch/watchers/SinglePackageWatcher.d.ts +5 -0
- package/features/Watch/watchers/SinglePackageWatcher.js +14 -0
- package/features/Watch/watchers/SinglePackageWatcher.js.map +1 -0
- package/features/Watch/watchers/WebinyConfigWatcher.d.ts +16 -0
- package/features/Watch/watchers/WebinyConfigWatcher.js +45 -0
- package/features/Watch/watchers/WebinyConfigWatcher.js.map +1 -0
- package/features/Watch/watchers/ZeroPackagesWatcher.d.ts +5 -0
- package/features/Watch/watchers/ZeroPackagesWatcher.js +10 -0
- package/features/Watch/watchers/ZeroPackagesWatcher.js.map +1 -0
- package/features/Watch/watchers/utils/measureDuration.d.ts +1 -0
- package/features/Watch/watchers/utils/measureDuration.js +11 -0
- package/features/Watch/watchers/utils/measureDuration.js.map +1 -0
- package/features/Watch/watchers/utils/requireConfig.d.ts +18 -0
- package/features/Watch/watchers/utils/requireConfig.js +15 -0
- package/features/Watch/watchers/utils/requireConfig.js.map +1 -0
- package/features/Watch/watchers/worker.d.ts +1 -0
- package/features/Watch/watchers/worker.js +33 -0
- package/features/Watch/watchers/worker.js.map +1 -0
- package/features/hooks/AdminAfterBuild/AdminBeforeBuild.d.ts +7 -0
- package/features/hooks/AdminAfterBuild/AdminBeforeBuild.js +21 -0
- package/features/hooks/AdminAfterBuild/AdminBeforeBuild.js.map +1 -0
- package/features/hooks/AdminAfterBuild/index.d.ts +1 -0
- package/features/hooks/AdminAfterBuild/index.js +3 -0
- package/features/hooks/AdminAfterBuild/index.js.map +1 -0
- package/features/hooks/AdminAfterDeploy/AdminBeforeBuild.d.ts +7 -0
- package/features/hooks/AdminAfterDeploy/AdminBeforeBuild.js +21 -0
- package/features/hooks/AdminAfterDeploy/AdminBeforeBuild.js.map +1 -0
- package/features/hooks/AdminAfterDeploy/index.d.ts +1 -0
- package/features/hooks/AdminAfterDeploy/index.js +3 -0
- package/features/hooks/AdminAfterDeploy/index.js.map +1 -0
- package/features/hooks/AdminBeforeBuild/AdminBeforeBuild.d.ts +7 -0
- package/features/hooks/AdminBeforeBuild/AdminBeforeBuild.js +21 -0
- package/features/hooks/AdminBeforeBuild/AdminBeforeBuild.js.map +1 -0
- package/features/hooks/AdminBeforeBuild/index.d.ts +1 -0
- package/features/hooks/AdminBeforeBuild/index.js +3 -0
- package/features/hooks/AdminBeforeBuild/index.js.map +1 -0
- package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.d.ts +7 -0
- package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.js +21 -0
- package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.js.map +1 -0
- package/features/hooks/AdminBeforeDeploy/index.d.ts +1 -0
- package/features/hooks/AdminBeforeDeploy/index.js +3 -0
- package/features/hooks/AdminBeforeDeploy/index.js.map +1 -0
- package/features/hooks/AdminBeforeWatch/AdminBeforeWatch.d.ts +7 -0
- package/features/hooks/AdminBeforeWatch/AdminBeforeWatch.js +21 -0
- package/features/hooks/AdminBeforeWatch/AdminBeforeWatch.js.map +1 -0
- package/features/hooks/AdminBeforeWatch/index.d.ts +1 -0
- package/features/hooks/AdminBeforeWatch/index.js +3 -0
- package/features/hooks/AdminBeforeWatch/index.js.map +1 -0
- package/features/hooks/AfterBuild/AfterBuild.d.ts +7 -0
- package/features/hooks/AfterBuild/AfterBuild.js +21 -0
- package/features/hooks/AfterBuild/AfterBuild.js.map +1 -0
- package/features/hooks/AfterBuild/index.d.ts +1 -0
- package/features/hooks/AfterBuild/index.js +3 -0
- package/features/hooks/AfterBuild/index.js.map +1 -0
- package/features/hooks/AfterDeploy/AfterDeploy.d.ts +7 -0
- package/features/hooks/AfterDeploy/AfterDeploy.js +21 -0
- package/features/hooks/AfterDeploy/AfterDeploy.js.map +1 -0
- package/features/hooks/AfterDeploy/index.d.ts +1 -0
- package/features/hooks/AfterDeploy/index.js +3 -0
- package/features/hooks/AfterDeploy/index.js.map +1 -0
- package/features/hooks/ApiAfterBuild/ApiBeforeBuild.d.ts +7 -0
- package/features/hooks/ApiAfterBuild/ApiBeforeBuild.js +21 -0
- package/features/hooks/ApiAfterBuild/ApiBeforeBuild.js.map +1 -0
- package/features/hooks/ApiAfterBuild/index.d.ts +1 -0
- package/features/hooks/ApiAfterBuild/index.js +3 -0
- package/features/hooks/ApiAfterBuild/index.js.map +1 -0
- package/features/hooks/ApiAfterDeploy/ApiBeforeBuild.d.ts +7 -0
- package/features/hooks/ApiAfterDeploy/ApiBeforeBuild.js +21 -0
- package/features/hooks/ApiAfterDeploy/ApiBeforeBuild.js.map +1 -0
- package/features/hooks/ApiAfterDeploy/index.d.ts +1 -0
- package/features/hooks/ApiAfterDeploy/index.js +3 -0
- package/features/hooks/ApiAfterDeploy/index.js.map +1 -0
- package/features/hooks/ApiBeforeBuild/ApiBeforeBuild.d.ts +7 -0
- package/features/hooks/ApiBeforeBuild/ApiBeforeBuild.js +21 -0
- package/features/hooks/ApiBeforeBuild/ApiBeforeBuild.js.map +1 -0
- package/features/hooks/ApiBeforeBuild/index.d.ts +1 -0
- package/features/hooks/ApiBeforeBuild/index.js +3 -0
- package/features/hooks/ApiBeforeBuild/index.js.map +1 -0
- package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.d.ts +7 -0
- package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.js +21 -0
- package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.js.map +1 -0
- package/features/hooks/ApiBeforeDeploy/index.d.ts +1 -0
- package/features/hooks/ApiBeforeDeploy/index.js +3 -0
- package/features/hooks/ApiBeforeDeploy/index.js.map +1 -0
- package/features/hooks/ApiBeforeWatch/ApiBeforeWatch.d.ts +7 -0
- package/features/hooks/ApiBeforeWatch/ApiBeforeWatch.js +21 -0
- package/features/hooks/ApiBeforeWatch/ApiBeforeWatch.js.map +1 -0
- package/features/hooks/ApiBeforeWatch/index.d.ts +1 -0
- package/features/hooks/ApiBeforeWatch/index.js +3 -0
- package/features/hooks/ApiBeforeWatch/index.js.map +1 -0
- package/features/hooks/BeforeBuild/BeforeBuild.d.ts +7 -0
- package/features/hooks/BeforeBuild/BeforeBuild.js +21 -0
- package/features/hooks/BeforeBuild/BeforeBuild.js.map +1 -0
- package/features/hooks/BeforeBuild/index.d.ts +1 -0
- package/features/hooks/BeforeBuild/index.js +3 -0
- package/features/hooks/BeforeBuild/index.js.map +1 -0
- package/features/hooks/BeforeDeploy/BeforeDeploy.d.ts +7 -0
- package/features/hooks/BeforeDeploy/BeforeDeploy.js +21 -0
- package/features/hooks/BeforeDeploy/BeforeDeploy.js.map +1 -0
- package/features/hooks/BeforeDeploy/index.d.ts +1 -0
- package/features/hooks/BeforeDeploy/index.js +3 -0
- package/features/hooks/BeforeDeploy/index.js.map +1 -0
- package/features/hooks/BeforeWatch/BeforeWatch.d.ts +7 -0
- package/features/hooks/BeforeWatch/BeforeWatch.js +21 -0
- package/features/hooks/BeforeWatch/BeforeWatch.js.map +1 -0
- package/features/hooks/BeforeWatch/index.d.ts +1 -0
- package/features/hooks/BeforeWatch/index.js +3 -0
- package/features/hooks/BeforeWatch/index.js.map +1 -0
- package/features/hooks/CoreAfterBuild/CoreBeforeBuild.d.ts +7 -0
- package/features/hooks/CoreAfterBuild/CoreBeforeBuild.js +21 -0
- package/features/hooks/CoreAfterBuild/CoreBeforeBuild.js.map +1 -0
- package/features/hooks/CoreAfterBuild/index.d.ts +1 -0
- package/features/hooks/CoreAfterBuild/index.js +3 -0
- package/features/hooks/CoreAfterBuild/index.js.map +1 -0
- package/features/hooks/CoreAfterDeploy/CoreBeforeBuild.d.ts +7 -0
- package/features/hooks/CoreAfterDeploy/CoreBeforeBuild.js +21 -0
- package/features/hooks/CoreAfterDeploy/CoreBeforeBuild.js.map +1 -0
- package/features/hooks/CoreAfterDeploy/index.d.ts +1 -0
- package/features/hooks/CoreAfterDeploy/index.js +3 -0
- package/features/hooks/CoreAfterDeploy/index.js.map +1 -0
- package/features/hooks/CoreBeforeBuild/CoreBeforeBuild.d.ts +7 -0
- package/features/hooks/CoreBeforeBuild/CoreBeforeBuild.js +21 -0
- package/features/hooks/CoreBeforeBuild/CoreBeforeBuild.js.map +1 -0
- package/features/hooks/CoreBeforeBuild/index.d.ts +1 -0
- package/features/hooks/CoreBeforeBuild/index.js +3 -0
- package/features/hooks/CoreBeforeBuild/index.js.map +1 -0
- package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.d.ts +7 -0
- package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.js +21 -0
- package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.js.map +1 -0
- package/features/hooks/CoreBeforeDeploy/index.d.ts +1 -0
- package/features/hooks/CoreBeforeDeploy/index.js +3 -0
- package/features/hooks/CoreBeforeDeploy/index.js.map +1 -0
- package/features/hooks/CoreBeforeWatch/CoreBeforeWatch.d.ts +7 -0
- package/features/hooks/CoreBeforeWatch/CoreBeforeWatch.js +21 -0
- package/features/hooks/CoreBeforeWatch/CoreBeforeWatch.js.map +1 -0
- package/features/hooks/CoreBeforeWatch/index.d.ts +1 -0
- package/features/hooks/CoreBeforeWatch/index.js +3 -0
- package/features/hooks/CoreBeforeWatch/index.js.map +1 -0
- package/features/hooks/index.d.ts +20 -0
- package/features/hooks/index.js +22 -0
- package/features/hooks/index.js.map +1 -0
- package/features/index.d.ts +25 -0
- package/features/index.js +27 -0
- package/features/index.js.map +1 -0
- package/features/pulumi/AdminPulumi/AdminPulumi.d.ts +7 -0
- package/features/pulumi/AdminPulumi/AdminPulumi.js +21 -0
- package/features/pulumi/AdminPulumi/AdminPulumi.js.map +1 -0
- package/features/pulumi/AdminPulumi/index.d.ts +1 -0
- package/features/pulumi/AdminPulumi/index.js +3 -0
- package/features/pulumi/AdminPulumi/index.js.map +1 -0
- package/features/pulumi/ApiPulumi/ApiPulumi.d.ts +7 -0
- package/features/pulumi/ApiPulumi/ApiPulumi.js +21 -0
- package/features/pulumi/ApiPulumi/ApiPulumi.js.map +1 -0
- package/features/pulumi/ApiPulumi/index.d.ts +1 -0
- package/features/pulumi/ApiPulumi/index.js +3 -0
- package/features/pulumi/ApiPulumi/index.js.map +1 -0
- package/features/pulumi/CorePulumi/CorePulumi.d.ts +7 -0
- package/features/pulumi/CorePulumi/CorePulumi.js +21 -0
- package/features/pulumi/CorePulumi/CorePulumi.js.map +1 -0
- package/features/pulumi/CorePulumi/index.d.ts +1 -0
- package/features/pulumi/CorePulumi/index.js +3 -0
- package/features/pulumi/CorePulumi/index.js.map +1 -0
- package/features/pulumi/index.d.ts +3 -0
- package/features/pulumi/index.js +5 -0
- package/features/pulumi/index.js.map +1 -0
- package/index.d.ts +15 -0
- package/index.js +20 -0
- package/index.js.map +1 -0
- package/models/AppModel.d.ts +9 -0
- package/models/AppModel.js +25 -0
- package/models/AppModel.js.map +1 -0
- package/models/AppPackageModel.d.ts +10 -0
- package/models/AppPackageModel.js +12 -0
- package/models/AppPackageModel.js.map +1 -0
- package/models/PathModel.d.ts +10 -0
- package/models/PathModel.js +33 -0
- package/models/PathModel.js.map +1 -0
- package/models/ProjectConfigModel.d.ts +10 -0
- package/models/ProjectConfigModel.js +20 -0
- package/models/ProjectConfigModel.js.map +1 -0
- package/models/ProjectModel.d.ts +14 -0
- package/models/ProjectModel.js +40 -0
- package/models/ProjectModel.js.map +1 -0
- package/models/UrlModel.d.ts +9 -0
- package/models/UrlModel.js +28 -0
- package/models/UrlModel.js.map +1 -0
- package/models/WcpEnvironmentModel.d.ts +21 -0
- package/models/WcpEnvironmentModel.js +25 -0
- package/models/WcpEnvironmentModel.js.map +1 -0
- package/models/WcpUserModel.d.ts +21 -0
- package/models/WcpUserModel.js +15 -0
- package/models/WcpUserModel.js.map +1 -0
- package/models/WcpUserPatModel.d.ts +12 -0
- package/models/WcpUserPatModel.js +14 -0
- package/models/WcpUserPatModel.js.map +1 -0
- package/models/index.d.ts +9 -0
- package/models/index.js +11 -0
- package/models/index.js.map +1 -0
- package/package.json +80 -0
- package/services/BuildAppWorkspaceService/BuildAppWorkspaceService.d.ts +9 -0
- package/services/BuildAppWorkspaceService/BuildAppWorkspaceService.js +82 -0
- package/services/BuildAppWorkspaceService/BuildAppWorkspaceService.js.map +1 -0
- package/services/BuildAppWorkspaceService/index.d.ts +1 -0
- package/services/BuildAppWorkspaceService/index.js +3 -0
- package/services/BuildAppWorkspaceService/index.js.map +1 -0
- package/services/BuildProjectWorkspaceService/BuildProjectWorkspaceService.d.ts +8 -0
- package/services/BuildProjectWorkspaceService/BuildProjectWorkspaceService.js +26 -0
- package/services/BuildProjectWorkspaceService/BuildProjectWorkspaceService.js.map +1 -0
- package/services/BuildProjectWorkspaceService/index.d.ts +1 -0
- package/services/BuildProjectWorkspaceService/index.js +3 -0
- package/services/BuildProjectWorkspaceService/index.js.map +1 -0
- package/services/GetAppPackagesService/GetAppPackagesService.d.ts +6 -0
- package/services/GetAppPackagesService/GetAppPackagesService.js +32 -0
- package/services/GetAppPackagesService/GetAppPackagesService.js.map +1 -0
- package/services/GetAppPackagesService/index.d.ts +1 -0
- package/services/GetAppPackagesService/index.js +3 -0
- package/services/GetAppPackagesService/index.js.map +1 -0
- package/services/GetAppService/GetAppService.d.ts +7 -0
- package/services/GetAppService/GetAppService.js +37 -0
- package/services/GetAppService/GetAppService.js.map +1 -0
- package/services/GetAppService/index.d.ts +1 -0
- package/services/GetAppService/index.js +3 -0
- package/services/GetAppService/index.js.map +1 -0
- package/services/GetCwdService/GetCwdService.d.ts +7 -0
- package/services/GetCwdService/GetCwdService.js +18 -0
- package/services/GetCwdService/GetCwdService.js.map +1 -0
- package/services/GetCwdService/index.d.ts +1 -0
- package/services/GetCwdService/index.js +3 -0
- package/services/GetCwdService/index.js.map +1 -0
- package/services/GetProjectConfigService/EnvContext.d.ts +13 -0
- package/services/GetProjectConfigService/EnvContext.js +46 -0
- package/services/GetProjectConfigService/EnvContext.js.map +1 -0
- package/services/GetProjectConfigService/GetProjectConfigService.d.ts +12 -0
- package/services/GetProjectConfigService/GetProjectConfigService.js +127 -0
- package/services/GetProjectConfigService/GetProjectConfigService.js.map +1 -0
- package/services/GetProjectConfigService/WcpProjectLicenseContext.d.ts +14 -0
- package/services/GetProjectConfigService/WcpProjectLicenseContext.js +42 -0
- package/services/GetProjectConfigService/WcpProjectLicenseContext.js.map +1 -0
- package/services/GetProjectConfigService/index.d.ts +1 -0
- package/services/GetProjectConfigService/index.js +3 -0
- package/services/GetProjectConfigService/index.js.map +1 -0
- package/services/GetProjectConfigService/renderConfig.d.ts +17 -0
- package/services/GetProjectConfigService/renderConfig.js +45 -0
- package/services/GetProjectConfigService/renderConfig.js.map +1 -0
- package/services/GetProjectConfigService/renderConfigWorker.d.ts +1 -0
- package/services/GetProjectConfigService/renderConfigWorker.js +58 -0
- package/services/GetProjectConfigService/renderConfigWorker.js.map +1 -0
- package/services/GetProjectIdService/GetProjectIdService.d.ts +9 -0
- package/services/GetProjectIdService/GetProjectIdService.js +32 -0
- package/services/GetProjectIdService/GetProjectIdService.js.map +1 -0
- package/services/GetProjectIdService/index.d.ts +1 -0
- package/services/GetProjectIdService/index.js +3 -0
- package/services/GetProjectIdService/index.js.map +1 -0
- package/services/GetProjectService/GetProjectService.d.ts +10 -0
- package/services/GetProjectService/GetProjectService.js +56 -0
- package/services/GetProjectService/GetProjectService.js.map +1 -0
- package/services/GetProjectService/index.d.ts +1 -0
- package/services/GetProjectService/index.js +3 -0
- package/services/GetProjectService/index.js.map +1 -0
- package/services/GetProjectVersionService/GetProjectVersionService.d.ts +7 -0
- package/services/GetProjectVersionService/GetProjectVersionService.js +34 -0
- package/services/GetProjectVersionService/GetProjectVersionService.js.map +1 -0
- package/services/GetProjectVersionService/index.d.ts +1 -0
- package/services/GetProjectVersionService/index.js +3 -0
- package/services/GetProjectVersionService/index.js.map +1 -0
- package/services/GetPulumiService/GetPulumiService.d.ts +9 -0
- package/services/GetPulumiService/GetPulumiService.js +49 -0
- package/services/GetPulumiService/GetPulumiService.js.map +1 -0
- package/services/GetPulumiService/index.d.ts +1 -0
- package/services/GetPulumiService/index.js +3 -0
- package/services/GetPulumiService/index.js.map +1 -0
- package/services/InitProjectSdkService/InitProjectSdkService.d.ts +9 -0
- package/services/InitProjectSdkService/InitProjectSdkService.js +63 -0
- package/services/InitProjectSdkService/InitProjectSdkService.js.map +1 -0
- package/services/InitProjectSdkService/applyEnvVars.d.ts +2 -0
- package/services/InitProjectSdkService/applyEnvVars.js +11 -0
- package/services/InitProjectSdkService/applyEnvVars.js.map +1 -0
- package/services/InitProjectSdkService/applyWcpEnvVars.d.ts +2 -0
- package/services/InitProjectSdkService/applyWcpEnvVars.js +144 -0
- package/services/InitProjectSdkService/applyWcpEnvVars.js.map +1 -0
- package/services/InitProjectSdkService/index.d.ts +1 -0
- package/services/InitProjectSdkService/index.js +3 -0
- package/services/InitProjectSdkService/index.js.map +1 -0
- package/services/InitProjectSdkService/registerDecorators.d.ts +4 -0
- package/services/InitProjectSdkService/registerDecorators.js +11 -0
- package/services/InitProjectSdkService/registerDecorators.js.map +1 -0
- package/services/InitProjectSdkService/registerHooks.d.ts +4 -0
- package/services/InitProjectSdkService/registerHooks.js +11 -0
- package/services/InitProjectSdkService/registerHooks.js.map +1 -0
- package/services/InitProjectSdkService/registerImplementations.d.ts +4 -0
- package/services/InitProjectSdkService/registerImplementations.js +16 -0
- package/services/InitProjectSdkService/registerImplementations.js.map +1 -0
- package/services/InitProjectSdkService/registerPulumiExtensions.d.ts +4 -0
- package/services/InitProjectSdkService/registerPulumiExtensions.js +11 -0
- package/services/InitProjectSdkService/registerPulumiExtensions.js.map +1 -0
- package/services/InstallExtensionService/InstallExtensionService.d.ts +9 -0
- package/services/InstallExtensionService/InstallExtensionService.js +143 -0
- package/services/InstallExtensionService/InstallExtensionService.js.map +1 -0
- package/services/InstallExtensionService/downloadFolderFromS3.d.ts +12 -0
- package/services/InstallExtensionService/downloadFolderFromS3.js +81 -0
- package/services/InstallExtensionService/downloadFolderFromS3.js.map +1 -0
- package/services/InstallExtensionService/index.d.ts +1 -0
- package/services/InstallExtensionService/index.js +3 -0
- package/services/InstallExtensionService/index.js.map +1 -0
- package/services/InstallExtensionService/mergePackageJson.d.ts +9 -0
- package/services/InstallExtensionService/mergePackageJson.js +31 -0
- package/services/InstallExtensionService/mergePackageJson.js.map +1 -0
- package/services/InstallExtensionService/types.d.ts +77 -0
- package/services/InstallExtensionService/types.js +3 -0
- package/services/InstallExtensionService/types.js.map +1 -0
- package/services/InstallExtensionService/updateWebinyConfig.d.ts +10 -0
- package/services/InstallExtensionService/updateWebinyConfig.js +120 -0
- package/services/InstallExtensionService/updateWebinyConfig.js.map +1 -0
- package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.d.ts +13 -0
- package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.js +23 -0
- package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.js.map +1 -0
- package/services/IsRemotePulumiBackendService/index.d.ts +1 -0
- package/services/IsRemotePulumiBackendService/index.js +3 -0
- package/services/IsRemotePulumiBackendService/index.js.map +1 -0
- package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.d.ts +18 -0
- package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.js +84 -0
- package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.js.map +1 -0
- package/services/ListAppLambdaFunctionsService/index.d.ts +1 -0
- package/services/ListAppLambdaFunctionsService/index.js +3 -0
- package/services/ListAppLambdaFunctionsService/index.js.map +1 -0
- package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.d.ts +7 -0
- package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.js +32 -0
- package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.js.map +1 -0
- package/services/ListDeployedEnvironmentsService/index.d.ts +1 -0
- package/services/ListDeployedEnvironmentsService/index.js +3 -0
- package/services/ListDeployedEnvironmentsService/index.js.map +1 -0
- package/services/ListPackagesInAppWorkspaceService/ListPackagesInAppWorkspaceService.d.ts +15 -0
- package/services/ListPackagesInAppWorkspaceService/ListPackagesInAppWorkspaceService.js +36 -0
- package/services/ListPackagesInAppWorkspaceService/ListPackagesInAppWorkspaceService.js.map +1 -0
- package/services/ListPackagesInAppWorkspaceService/index.d.ts +1 -0
- package/services/ListPackagesInAppWorkspaceService/index.js +3 -0
- package/services/ListPackagesInAppWorkspaceService/index.js.map +1 -0
- package/services/ListPackagesService/ListPackagesService.d.ts +8 -0
- package/services/ListPackagesService/ListPackagesService.js +129 -0
- package/services/ListPackagesService/ListPackagesService.js.map +1 -0
- package/services/ListPackagesService/index.d.ts +1 -0
- package/services/ListPackagesService/index.js +3 -0
- package/services/ListPackagesService/index.js.map +1 -0
- package/services/LoadEnvVarsService/LoadEnvVarsService.d.ts +8 -0
- package/services/LoadEnvVarsService/LoadEnvVarsService.js +37 -0
- package/services/LoadEnvVarsService/LoadEnvVarsService.js.map +1 -0
- package/services/LoadEnvVarsService/index.d.ts +1 -0
- package/services/LoadEnvVarsService/index.js +3 -0
- package/services/LoadEnvVarsService/index.js.map +1 -0
- package/services/LocalStorageService/LocalStorageService.d.ts +11 -0
- package/services/LocalStorageService/LocalStorageService.js +56 -0
- package/services/LocalStorageService/LocalStorageService.js.map +1 -0
- package/services/LocalStorageService/index.d.ts +1 -0
- package/services/LocalStorageService/index.js +3 -0
- package/services/LocalStorageService/index.js.map +1 -0
- package/services/LoggerService/LoggerService.d.ts +20 -0
- package/services/LoggerService/LoggerService.js +95 -0
- package/services/LoggerService/LoggerService.js.map +1 -0
- package/services/LoggerService/index.d.ts +1 -0
- package/services/LoggerService/index.js +3 -0
- package/services/LoggerService/index.js.map +1 -0
- package/services/ProjectInfoService/GetIsCiService.d.ts +5 -0
- package/services/ProjectInfoService/GetIsCiService.js +15 -0
- package/services/ProjectInfoService/GetIsCiService.js.map +1 -0
- package/services/ProjectInfoService/GetNpmVersionService.d.ts +5 -0
- package/services/ProjectInfoService/GetNpmVersionService.js +15 -0
- package/services/ProjectInfoService/GetNpmVersionService.js.map +1 -0
- package/services/ProjectInfoService/GetNpxVersionService.d.ts +5 -0
- package/services/ProjectInfoService/GetNpxVersionService.js +15 -0
- package/services/ProjectInfoService/GetNpxVersionService.js.map +1 -0
- package/services/ProjectInfoService/GetPulumiVersionService.d.ts +5 -0
- package/services/ProjectInfoService/GetPulumiVersionService.js +38 -0
- package/services/ProjectInfoService/GetPulumiVersionService.js.map +1 -0
- package/services/ProjectInfoService/GetYarnVersionService.d.ts +5 -0
- package/services/ProjectInfoService/GetYarnVersionService.js +15 -0
- package/services/ProjectInfoService/GetYarnVersionService.js.map +1 -0
- package/services/ProjectInfoService/ProjectInfoService.d.ts +13 -0
- package/services/ProjectInfoService/ProjectInfoService.js +56 -0
- package/services/ProjectInfoService/ProjectInfoService.js.map +1 -0
- package/services/ProjectInfoService/index.d.ts +6 -0
- package/services/ProjectInfoService/index.js +8 -0
- package/services/ProjectInfoService/index.js.map +1 -0
- package/services/ProjectSdkParamsService/ProjectSdkParamsService.d.ts +8 -0
- package/services/ProjectSdkParamsService/ProjectSdkParamsService.js +40 -0
- package/services/ProjectSdkParamsService/ProjectSdkParamsService.js.map +1 -0
- package/services/ProjectSdkParamsService/index.d.ts +1 -0
- package/services/ProjectSdkParamsService/index.js +3 -0
- package/services/ProjectSdkParamsService/index.js.map +1 -0
- package/services/PulumiExportService/PulumiExportService.d.ts +13 -0
- package/services/PulumiExportService/PulumiExportService.js +43 -0
- package/services/PulumiExportService/PulumiExportService.js.map +1 -0
- package/services/PulumiExportService/index.d.ts +1 -0
- package/services/PulumiExportService/index.js +3 -0
- package/services/PulumiExportService/index.js.map +1 -0
- package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.d.ts +5 -0
- package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.js +14 -0
- package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.js.map +1 -0
- package/services/PulumiGetConfigPassphraseService/index.d.ts +1 -0
- package/services/PulumiGetConfigPassphraseService/index.js +3 -0
- package/services/PulumiGetConfigPassphraseService/index.js.map +1 -0
- package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.d.ts +5 -0
- package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.js +14 -0
- package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.js.map +1 -0
- package/services/PulumiGetSecretsProviderService/index.d.ts +1 -0
- package/services/PulumiGetSecretsProviderService/index.js +3 -0
- package/services/PulumiGetSecretsProviderService/index.js.map +1 -0
- package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.d.ts +20 -0
- package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js +113 -0
- package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js.map +1 -0
- package/services/PulumiGetStackOutputService/index.d.ts +1 -0
- package/services/PulumiGetStackOutputService/index.js +3 -0
- package/services/PulumiGetStackOutputService/index.js.map +1 -0
- package/services/PulumiGetStackOutputService/mapStackOutput.d.ts +1 -0
- package/services/PulumiGetStackOutputService/mapStackOutput.js +34 -0
- package/services/PulumiGetStackOutputService/mapStackOutput.js.map +1 -0
- package/services/PulumiImportService/PulumiImportService.d.ts +10 -0
- package/services/PulumiImportService/PulumiImportService.js +57 -0
- package/services/PulumiImportService/PulumiImportService.js.map +1 -0
- package/services/PulumiImportService/index.d.ts +1 -0
- package/services/PulumiImportService/index.js +3 -0
- package/services/PulumiImportService/index.js.map +1 -0
- package/services/PulumiLoginService/PulumiLoginService.d.ts +10 -0
- package/services/PulumiLoginService/PulumiLoginService.js +51 -0
- package/services/PulumiLoginService/PulumiLoginService.js.map +1 -0
- package/services/PulumiLoginService/index.d.ts +1 -0
- package/services/PulumiLoginService/index.js +3 -0
- package/services/PulumiLoginService/index.js.map +1 -0
- package/services/PulumiSelectStackService/PulumiSelectStackService.d.ts +15 -0
- package/services/PulumiSelectStackService/PulumiSelectStackService.js +97 -0
- package/services/PulumiSelectStackService/PulumiSelectStackService.js.map +1 -0
- package/services/PulumiSelectStackService/index.d.ts +1 -0
- package/services/PulumiSelectStackService/index.js +3 -0
- package/services/PulumiSelectStackService/index.js.map +1 -0
- package/services/SetProjectIdService/SetProjectIdService.d.ts +8 -0
- package/services/SetProjectIdService/SetProjectIdService.js +66 -0
- package/services/SetProjectIdService/SetProjectIdService.js.map +1 -0
- package/services/SetProjectIdService/index.d.ts +1 -0
- package/services/SetProjectIdService/index.js +3 -0
- package/services/SetProjectIdService/index.js.map +1 -0
- package/services/StdioService/StdioService.d.ts +13 -0
- package/services/StdioService/StdioService.js +20 -0
- package/services/StdioService/StdioService.js.map +1 -0
- package/services/StdioService/index.d.ts +1 -0
- package/services/StdioService/index.js +3 -0
- package/services/StdioService/index.js.map +1 -0
- package/services/UiService/UiService.d.ts +17 -0
- package/services/UiService/UiService.js +70 -0
- package/services/UiService/UiService.js.map +1 -0
- package/services/UiService/index.d.ts +1 -0
- package/services/UiService/index.js +3 -0
- package/services/UiService/index.js.map +1 -0
- package/services/ValidateProjectConfigService/ValidateProjectConfigService.d.ts +5 -0
- package/services/ValidateProjectConfigService/ValidateProjectConfigService.js +28 -0
- package/services/ValidateProjectConfigService/ValidateProjectConfigService.js.map +1 -0
- package/services/ValidateProjectConfigService/index.d.ts +1 -0
- package/services/ValidateProjectConfigService/index.js +3 -0
- package/services/ValidateProjectConfigService/index.js.map +1 -0
- package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.d.ts +13 -0
- package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.js +61 -0
- package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.js.map +1 -0
- package/services/WatchedLambdaFunctionsService/index.d.ts +1 -0
- package/services/WatchedLambdaFunctionsService/index.js +3 -0
- package/services/WatchedLambdaFunctionsService/index.js.map +1 -0
- package/services/WcpService/CreateUserPat.d.ts +16 -0
- package/services/WcpService/CreateUserPat.js +47 -0
- package/services/WcpService/CreateUserPat.js.map +1 -0
- package/services/WcpService/GenerateUserPat.d.ts +15 -0
- package/services/WcpService/GenerateUserPat.js +28 -0
- package/services/WcpService/GenerateUserPat.js.map +1 -0
- package/services/WcpService/GetPatFromLocalStorage.d.ts +9 -0
- package/services/WcpService/GetPatFromLocalStorage.js +13 -0
- package/services/WcpService/GetPatFromLocalStorage.js.map +1 -0
- package/services/WcpService/GetProjectEnvironment.d.ts +22 -0
- package/services/WcpService/GetProjectEnvironment.js +108 -0
- package/services/WcpService/GetProjectEnvironment.js.map +1 -0
- package/services/WcpService/GetProjectLicense.d.ts +11 -0
- package/services/WcpService/GetProjectLicense.js +43 -0
- package/services/WcpService/GetProjectLicense.js.map +1 -0
- package/services/WcpService/GetUser.d.ts +11 -0
- package/services/WcpService/GetUser.js +92 -0
- package/services/WcpService/GetUser.js.map +1 -0
- package/services/WcpService/GetUserPat.d.ts +10 -0
- package/services/WcpService/GetUserPat.js +41 -0
- package/services/WcpService/GetUserPat.js.map +1 -0
- package/services/WcpService/LogoutUser.d.ts +9 -0
- package/services/WcpService/LogoutUser.js +12 -0
- package/services/WcpService/LogoutUser.js.map +1 -0
- package/services/WcpService/StorePatToLocalStorage.d.ts +9 -0
- package/services/WcpService/StorePatToLocalStorage.js +13 -0
- package/services/WcpService/StorePatToLocalStorage.js.map +1 -0
- package/services/WcpService/UnsetPatFromLocalStorage.d.ts +9 -0
- package/services/WcpService/UnsetPatFromLocalStorage.js +13 -0
- package/services/WcpService/UnsetPatFromLocalStorage.js.map +1 -0
- package/services/WcpService/WcpGqlClient.d.ts +3 -0
- package/services/WcpService/WcpGqlClient.js +10 -0
- package/services/WcpService/WcpGqlClient.js.map +1 -0
- package/services/WcpService/WcpService.d.ts +22 -0
- package/services/WcpService/WcpService.js +91 -0
- package/services/WcpService/WcpService.js.map +1 -0
- package/services/WcpService/index.d.ts +1 -0
- package/services/WcpService/index.js +3 -0
- package/services/WcpService/index.js.map +1 -0
- package/services/index.d.ts +35 -0
- package/services/index.js +37 -0
- package/services/index.js.map +1 -0
- package/utils/ExtensionSrcResolver.d.ts +33 -0
- package/utils/ExtensionSrcResolver.js +119 -0
- package/utils/ExtensionSrcResolver.js.map +1 -0
- package/utils/constants.d.ts +8 -0
- package/utils/constants.js +10 -0
- package/utils/constants.js.map +1 -0
- package/utils/createPathResolver.d.ts +1 -0
- package/utils/createPathResolver.js +8 -0
- package/utils/createPathResolver.js.map +1 -0
- package/utils/env/configuration.d.ts +12 -0
- package/utils/env/configuration.js +28 -0
- package/utils/env/configuration.js.map +1 -0
- package/utils/env/index.d.ts +7 -0
- package/utils/env/index.js +8 -0
- package/utils/env/index.js.map +1 -0
- package/utils/env/types.d.ts +9 -0
- package/utils/env/types.js +3 -0
- package/utils/env/types.js.map +1 -0
- package/utils/env/withEnv.d.ts +4 -0
- package/utils/env/withEnv.js +10 -0
- package/utils/env/withEnv.js.map +1 -0
- package/utils/env/withEnvVariant.d.ts +4 -0
- package/utils/env/withEnvVariant.js +14 -0
- package/utils/env/withEnvVariant.js.map +1 -0
- package/utils/env/withProjectName.d.ts +5 -0
- package/utils/env/withProjectName.js +12 -0
- package/utils/env/withProjectName.js.map +1 -0
- package/utils/env/withPulumiConfigPassphrase.d.ts +1 -0
- package/utils/env/withPulumiConfigPassphrase.js +11 -0
- package/utils/env/withPulumiConfigPassphrase.js.map +1 -0
- package/utils/env/withRegion.d.ts +4 -0
- package/utils/env/withRegion.js +21 -0
- package/utils/env/withRegion.js.map +1 -0
- package/utils/getRandomColorForString.d.ts +1 -0
- package/utils/getRandomColorForString.js +11 -0
- package/utils/getRandomColorForString.js.map +1 -0
- package/utils/getStackName.d.ts +14 -0
- package/utils/getStackName.js +22 -0
- package/utils/getStackName.js.map +1 -0
- package/utils/getTemplatesFolderPath.d.ts +1 -0
- package/utils/getTemplatesFolderPath.js +13 -0
- package/utils/getTemplatesFolderPath.js.map +1 -0
- package/utils/index.d.ts +12 -0
- package/utils/index.js +14 -0
- package/utils/index.js.map +1 -0
- package/utils/isValidRegionName.d.ts +2 -0
- package/utils/isValidRegionName.js +17 -0
- package/utils/isValidRegionName.js.map +1 -0
- package/utils/isValidVariantName.d.ts +2 -0
- package/utils/isValidVariantName.js +13 -0
- package/utils/isValidVariantName.js.map +1 -0
- package/utils/measureDuration.d.ts +1 -0
- package/utils/measureDuration.js +11 -0
- package/utils/measureDuration.js.map +1 -0
- package/utils/projectSdkContext.d.ts +19 -0
- package/utils/projectSdkContext.js +44 -0
- package/utils/projectSdkContext.js.map +1 -0
- package/utils/regions.d.ts +5 -0
- package/utils/regions.js +65 -0
- package/utils/regions.js.map +1 -0
- package/utils/registerExtension.d.ts +6 -0
- package/utils/registerExtension.js +19 -0
- package/utils/registerExtension.js.map +1 -0
- package/utils/requireConfig.d.ts +18 -0
- package/utils/requireConfig.js +12 -0
- package/utils/requireConfig.js.map +1 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { defineExtension, zodSrcPath } from "./index.js";
|
|
2
|
+
import { ExtensionSrcResolver } from "@webiny/project";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import path from "path";
|
|
5
|
+
import { Node, Project } from "ts-morph";
|
|
6
|
+
import crypto from "crypto";
|
|
7
|
+
export const AdminExtension = defineExtension({
|
|
8
|
+
type: "Admin/Extension",
|
|
9
|
+
tags: {
|
|
10
|
+
runtimeContext: "app-build",
|
|
11
|
+
appName: "admin"
|
|
12
|
+
},
|
|
13
|
+
description: "Extend the Admin application with custom functionality.",
|
|
14
|
+
multiple: true,
|
|
15
|
+
paramsSchema: ({
|
|
16
|
+
project
|
|
17
|
+
}) => {
|
|
18
|
+
return z.object({
|
|
19
|
+
src: zodSrcPath({
|
|
20
|
+
project
|
|
21
|
+
}),
|
|
22
|
+
exportName: z.string().optional()
|
|
23
|
+
});
|
|
24
|
+
},
|
|
25
|
+
async build(params, ctx) {
|
|
26
|
+
const extensionsTsxFilePath = ctx.project.paths.workspaceFolder.join("apps", "admin", "src", "Extensions.tsx").toString();
|
|
27
|
+
const {
|
|
28
|
+
src: extensionFilePath
|
|
29
|
+
} = params;
|
|
30
|
+
|
|
31
|
+
// Resolve to absolute path for file operations.
|
|
32
|
+
const absoluteExtensionFilePath = ExtensionSrcResolver.resolvePath(extensionFilePath, ctx.project);
|
|
33
|
+
const extensionFileName = path.basename(absoluteExtensionFilePath);
|
|
34
|
+
|
|
35
|
+
// Export name can be customized or defaults to the file name without extension.
|
|
36
|
+
const exportName = params.exportName ?? path.parse(extensionFileName).name;
|
|
37
|
+
|
|
38
|
+
// Generate a constant hash-based component name to avoid using timestamps.
|
|
39
|
+
const hash = crypto.createHash("sha256").update(extensionFilePath).digest("hex");
|
|
40
|
+
const componentName = `AdminExtension_${hash.slice(-10)}`;
|
|
41
|
+
const project = new Project();
|
|
42
|
+
const importPath = path.relative(path.dirname(extensionsTsxFilePath), absoluteExtensionFilePath).replace(/\.tsx?$/, ".js");
|
|
43
|
+
project.addSourceFileAtPath(extensionsTsxFilePath);
|
|
44
|
+
const source = project.getSourceFileOrThrow(extensionsTsxFilePath);
|
|
45
|
+
const existingImportDeclaration = source.getImportDeclaration(importPath);
|
|
46
|
+
if (existingImportDeclaration) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// Check if the extension file has a default export or named export.
|
|
51
|
+
const extensionProject = new Project();
|
|
52
|
+
extensionProject.addSourceFileAtPath(absoluteExtensionFilePath);
|
|
53
|
+
const extensionSource = extensionProject.getSourceFileOrThrow(absoluteExtensionFilePath);
|
|
54
|
+
const hasDefaultExport = extensionSource.getDefaultExportSymbol() !== undefined;
|
|
55
|
+
let index = 1;
|
|
56
|
+
const importDeclarations = source.getImportDeclarations();
|
|
57
|
+
if (importDeclarations.length) {
|
|
58
|
+
const last = importDeclarations[importDeclarations.length - 1];
|
|
59
|
+
index = last.getChildIndex() + 1;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// Import as default export if available, otherwise import named export.
|
|
63
|
+
if (hasDefaultExport) {
|
|
64
|
+
source.insertImportDeclaration(index, {
|
|
65
|
+
defaultImport: componentName,
|
|
66
|
+
moduleSpecifier: importPath
|
|
67
|
+
});
|
|
68
|
+
} else {
|
|
69
|
+
source.insertImportDeclaration(index, {
|
|
70
|
+
namedImports: [{
|
|
71
|
+
name: exportName,
|
|
72
|
+
alias: componentName
|
|
73
|
+
}],
|
|
74
|
+
moduleSpecifier: importPath
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
const extensionsIdentifier = source.getFirstDescendant(node => {
|
|
78
|
+
if (!Node.isIdentifier(node)) {
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
return node.getText() === "Extensions";
|
|
82
|
+
});
|
|
83
|
+
if (!extensionsIdentifier) {
|
|
84
|
+
throw new Error(`Could not find the "Extensions" React component in "${extensionsTsxFilePath}". Did you maybe change the name of the component?`);
|
|
85
|
+
}
|
|
86
|
+
const extensionsArrowFn = extensionsIdentifier.getNextSibling(node => Node.isArrowFunction(node));
|
|
87
|
+
if (!extensionsArrowFn) {
|
|
88
|
+
throw new Error(`Could not find the "Extensions" React component in "${extensionsTsxFilePath}". Did you maybe change its definition? It should be an arrow function.`);
|
|
89
|
+
}
|
|
90
|
+
const extensionsArrowFnFragment = extensionsArrowFn.getFirstDescendant(node => {
|
|
91
|
+
return Node.isJsxFragment(node);
|
|
92
|
+
});
|
|
93
|
+
const extensionsArrowFnFragmentChildrenText = extensionsArrowFnFragment.getFullText().replace("<>", "").replace("</>", "").trim();
|
|
94
|
+
extensionsArrowFnFragment.replaceWithText(`<><${componentName}/>${extensionsArrowFnFragmentChildrenText}</>`);
|
|
95
|
+
await source.save();
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
//# sourceMappingURL=AdminExtension.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["defineExtension","zodSrcPath","ExtensionSrcResolver","z","path","Node","Project","crypto","AdminExtension","type","tags","runtimeContext","appName","description","multiple","paramsSchema","project","object","src","exportName","string","optional","build","params","ctx","extensionsTsxFilePath","paths","workspaceFolder","join","toString","extensionFilePath","absoluteExtensionFilePath","resolvePath","extensionFileName","basename","parse","name","hash","createHash","update","digest","componentName","slice","importPath","relative","dirname","replace","addSourceFileAtPath","source","getSourceFileOrThrow","existingImportDeclaration","getImportDeclaration","extensionProject","extensionSource","hasDefaultExport","getDefaultExportSymbol","undefined","index","importDeclarations","getImportDeclarations","length","last","getChildIndex","insertImportDeclaration","defaultImport","moduleSpecifier","namedImports","alias","extensionsIdentifier","getFirstDescendant","node","isIdentifier","getText","Error","extensionsArrowFn","getNextSibling","isArrowFunction","extensionsArrowFnFragment","isJsxFragment","extensionsArrowFnFragmentChildrenText","getFullText","trim","replaceWithText","save"],"sources":["AdminExtension.ts"],"sourcesContent":["import { defineExtension, zodSrcPath } from \"~/extensions/index.js\";\nimport { ExtensionSrcResolver } from \"@webiny/project\";\nimport { z } from \"zod\";\nimport path from \"path\";\nimport { type JsxFragment, Node, Project } from \"ts-morph\";\nimport crypto from \"crypto\";\n\nexport const AdminExtension = defineExtension({\n type: \"Admin/Extension\",\n tags: { runtimeContext: \"app-build\", appName: \"admin\" },\n description: \"Extend the Admin application with custom functionality.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project }),\n exportName: z.string().optional()\n });\n },\n async build(params, ctx) {\n const extensionsTsxFilePath = ctx.project.paths.workspaceFolder\n .join(\"apps\", \"admin\", \"src\", \"Extensions.tsx\")\n .toString();\n\n const { src: extensionFilePath } = params;\n\n // Resolve to absolute path for file operations.\n const absoluteExtensionFilePath = ExtensionSrcResolver.resolvePath(\n extensionFilePath,\n ctx.project\n );\n\n const extensionFileName = path.basename(absoluteExtensionFilePath);\n\n // Export name can be customized or defaults to the file name without extension.\n const exportName = params.exportName ?? path.parse(extensionFileName).name;\n\n // Generate a constant hash-based component name to avoid using timestamps.\n const hash = crypto.createHash(\"sha256\").update(extensionFilePath).digest(\"hex\");\n const componentName = `AdminExtension_${hash.slice(-10)}`;\n\n const project = new Project();\n\n const importPath = path\n .relative(path.dirname(extensionsTsxFilePath), absoluteExtensionFilePath)\n .replace(/\\.tsx?$/, \".js\");\n\n project.addSourceFileAtPath(extensionsTsxFilePath);\n\n const source = project.getSourceFileOrThrow(extensionsTsxFilePath);\n\n const existingImportDeclaration = source.getImportDeclaration(importPath);\n if (existingImportDeclaration) {\n return;\n }\n\n // Check if the extension file has a default export or named export.\n const extensionProject = new Project();\n extensionProject.addSourceFileAtPath(absoluteExtensionFilePath);\n const extensionSource = extensionProject.getSourceFileOrThrow(absoluteExtensionFilePath);\n const hasDefaultExport = extensionSource.getDefaultExportSymbol() !== undefined;\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 // Import as default export if available, otherwise import named export.\n if (hasDefaultExport) {\n source.insertImportDeclaration(index, {\n defaultImport: componentName,\n moduleSpecifier: importPath\n });\n } else {\n source.insertImportDeclaration(index, {\n namedImports: [{ name: exportName, alias: componentName }],\n moduleSpecifier: importPath\n });\n }\n\n const extensionsIdentifier = source.getFirstDescendant(node => {\n if (!Node.isIdentifier(node)) {\n return false;\n }\n\n return node.getText() === \"Extensions\";\n });\n\n if (!extensionsIdentifier) {\n throw new Error(\n `Could not find the \"Extensions\" React component in \"${extensionsTsxFilePath}\". Did you maybe change the name of the component?`\n );\n }\n\n const extensionsArrowFn = extensionsIdentifier.getNextSibling(node =>\n Node.isArrowFunction(node)\n );\n if (!extensionsArrowFn) {\n throw new Error(\n `Could not find the \"Extensions\" React component in \"${extensionsTsxFilePath}\". Did you maybe change its definition? It should be an arrow function.`\n );\n }\n\n const extensionsArrowFnFragment = extensionsArrowFn.getFirstDescendant(node => {\n return Node.isJsxFragment(node);\n }) as JsxFragment;\n\n const extensionsArrowFnFragmentChildrenText = extensionsArrowFnFragment\n .getFullText()\n .replace(\"<>\", \"\")\n .replace(\"</>\", \"\")\n .trim();\n\n extensionsArrowFnFragment.replaceWithText(\n `<><${componentName}/>${extensionsArrowFnFragmentChildrenText}</>`\n );\n\n await source.save();\n }\n});\n"],"mappings":"AAAA,SAASA,eAAe,EAAEC,UAAU;AACpC,SAASC,oBAAoB,QAAQ,iBAAiB;AACtD,SAASC,CAAC,QAAQ,KAAK;AACvB,OAAOC,IAAI,MAAM,MAAM;AACvB,SAA2BC,IAAI,EA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0,0 +1,11 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const BuildParam: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
|
|
3
|
+
paramName: z.ZodString;
|
|
4
|
+
value: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny, "many">, z.ZodNumber, z.ZodBoolean]>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
value: string | number | boolean | any[] | Record<string, any>;
|
|
7
|
+
paramName: string;
|
|
8
|
+
}, {
|
|
9
|
+
value: string | number | boolean | any[] | Record<string, any>;
|
|
10
|
+
paramName: string;
|
|
11
|
+
}>>;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { Node, Project } from "ts-morph";
|
|
3
|
+
import { defineExtension } from "../defineExtension/index.js";
|
|
4
|
+
import crypto from "crypto";
|
|
5
|
+
import path from "path";
|
|
6
|
+
import fs from "fs";
|
|
7
|
+
export const BuildParam = defineExtension({
|
|
8
|
+
type: "Api/BuildParam",
|
|
9
|
+
tags: {
|
|
10
|
+
runtimeContext: "app-build",
|
|
11
|
+
appName: "api"
|
|
12
|
+
},
|
|
13
|
+
description: "Add build-time parameter to API app.",
|
|
14
|
+
multiple: true,
|
|
15
|
+
paramsSchema: () => {
|
|
16
|
+
return z.object({
|
|
17
|
+
paramName: z.string(),
|
|
18
|
+
value: z.union([z.string(), z.record(z.any()), z.array(z.any()), z.number(), z.boolean()])
|
|
19
|
+
});
|
|
20
|
+
},
|
|
21
|
+
async build(params, ctx) {
|
|
22
|
+
const extensionsTsFilePath = ctx.project.paths.workspaceFolder.join("apps", "api", "graphql", "src", "extensions.ts").toString();
|
|
23
|
+
const buildParamsDir = ctx.project.paths.workspaceFolder.join("apps", "api", "graphql", "src", "buildParams").toString();
|
|
24
|
+
const {
|
|
25
|
+
paramName,
|
|
26
|
+
value
|
|
27
|
+
} = params;
|
|
28
|
+
|
|
29
|
+
// Serialize value to a TypeScript literal.
|
|
30
|
+
const valueStr = JSON.stringify(value, null, 4);
|
|
31
|
+
|
|
32
|
+
// Generate a unique class name based on the paramName.
|
|
33
|
+
const hash = crypto.createHash("sha256").update(paramName).digest("hex");
|
|
34
|
+
const className = `BuildParam_${hash.slice(-10)}`;
|
|
35
|
+
const fileName = `${className}.ts`;
|
|
36
|
+
const filePath = path.join(buildParamsDir, fileName);
|
|
37
|
+
|
|
38
|
+
// Ensure buildParams directory exists.
|
|
39
|
+
if (!fs.existsSync(buildParamsDir)) {
|
|
40
|
+
fs.mkdirSync(buildParamsDir, {
|
|
41
|
+
recursive: true
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// Check if file already exists.
|
|
46
|
+
if (fs.existsSync(filePath)) {
|
|
47
|
+
// File exists, just ensure it's imported in extensions.ts
|
|
48
|
+
} else {
|
|
49
|
+
// Create the BuildParam implementation file.
|
|
50
|
+
const fileContent = `import { BuildParam } from "webiny/api/build-params";
|
|
51
|
+
|
|
52
|
+
class ${className} implements BuildParam.Interface {
|
|
53
|
+
key = "${paramName}";
|
|
54
|
+
value = ${valueStr};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export default BuildParam.createImplementation({
|
|
58
|
+
implementation: ${className},
|
|
59
|
+
dependencies: []
|
|
60
|
+
});
|
|
61
|
+
`;
|
|
62
|
+
fs.writeFileSync(filePath, fileContent, "utf8");
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// Now update extensions.ts to import and register this BuildParam.
|
|
66
|
+
const project = new Project();
|
|
67
|
+
project.addSourceFileAtPath(extensionsTsFilePath);
|
|
68
|
+
const source = project.getSourceFileOrThrow(extensionsTsFilePath);
|
|
69
|
+
|
|
70
|
+
// Calculate import path relative to extensions.ts.
|
|
71
|
+
let importPath = path.relative(path.dirname(extensionsTsFilePath), filePath).replace(/\.tsx?$/, ".js");
|
|
72
|
+
|
|
73
|
+
// Ensure the path starts with ./
|
|
74
|
+
if (!importPath.startsWith(".")) {
|
|
75
|
+
importPath = "./" + importPath;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// Check if import already exists.
|
|
79
|
+
const existingImportDeclaration = source.getImportDeclaration(importPath);
|
|
80
|
+
if (existingImportDeclaration) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
let index = 1;
|
|
84
|
+
const importDeclarations = source.getImportDeclarations();
|
|
85
|
+
if (importDeclarations.length) {
|
|
86
|
+
const last = importDeclarations[importDeclarations.length - 1];
|
|
87
|
+
index = last.getChildIndex() + 1;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// Add import for the BuildParam implementation.
|
|
91
|
+
source.insertImportDeclaration(index, {
|
|
92
|
+
defaultImport: className,
|
|
93
|
+
moduleSpecifier: importPath
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
// Add the registration to the plugins array.
|
|
97
|
+
const pluginsArray = source.getFirstDescendant(node => Node.isArrayLiteralExpression(node));
|
|
98
|
+
pluginsArray.addElement(`\ncreateContextPlugin(ctx => {\n\tregisterExtension(ctx.container, ${className});\n})`);
|
|
99
|
+
{
|
|
100
|
+
let index = 1;
|
|
101
|
+
const importDeclarations = source.getImportDeclarations();
|
|
102
|
+
if (importDeclarations.length) {
|
|
103
|
+
const last = importDeclarations[importDeclarations.length - 1];
|
|
104
|
+
index = last.getChildIndex() + 1;
|
|
105
|
+
}
|
|
106
|
+
const contextPluginImportPath = "@webiny/api/plugins/ContextPlugin";
|
|
107
|
+
const existingContextPluginImport = source.getImportDeclaration(contextPluginImportPath);
|
|
108
|
+
if (!existingContextPluginImport) {
|
|
109
|
+
source.insertImportDeclaration(index, {
|
|
110
|
+
namedImports: ["createContextPlugin"],
|
|
111
|
+
moduleSpecifier: contextPluginImportPath
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
await source.save();
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
//# sourceMappingURL=ApiBuildParam.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["z","Node","Project","defineExtension","crypto","path","fs","BuildParam","type","tags","runtimeContext","appName","description","multiple","paramsSchema","object","paramName","string","value","union","record","any","array","number","boolean","build","params","ctx","extensionsTsFilePath","project","paths","workspaceFolder","join","toString","buildParamsDir","valueStr","JSON","stringify","hash","createHash","update","digest","className","slice","fileName","filePath","existsSync","mkdirSync","recursive","fileContent","writeFileSync","addSourceFileAtPath","source","getSourceFileOrThrow","importPath","relative","dirname","replace","startsWith","existingImportDeclaration","getImportDeclaration","index","importDeclarations","getImportDeclarations","length","last","getChildIndex","insertImportDeclaration","defaultImport","moduleSpecifier","pluginsArray","getFirstDescendant","node","isArrayLiteralExpression","addElement","contextPluginImportPath","existingContextPluginImport","namedImports","save"],"sources":["ApiBuildParam.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { Node, Project, ArrayLiteralExpression } from \"ts-morph\";\nimport { defineExtension } from \"~/defineExtension/index.js\";\nimport crypto from \"crypto\";\nimport path from \"path\";\nimport fs from \"fs\";\n\nexport const BuildParam = defineExtension({\n type: \"Api/BuildParam\",\n tags: { runtimeContext: \"app-build\", appName: \"api\" },\n description: \"Add build-time parameter to API app.\",\n multiple: true,\n paramsSchema: () => {\n return z.object({\n paramName: z.string(),\n value: z.union([\n z.string(),\n z.record(z.any()),\n z.array(z.any()),\n z.number(),\n z.boolean()\n ])\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 buildParamsDir = ctx.project.paths.workspaceFolder\n .join(\"apps\", \"api\", \"graphql\", \"src\", \"buildParams\")\n .toString();\n\n const { paramName, value } = params;\n\n // Serialize value to a TypeScript literal.\n const valueStr = JSON.stringify(value, null, 4);\n\n // Generate a unique class name based on the paramName.\n const hash = crypto.createHash(\"sha256\").update(paramName).digest(\"hex\");\n const className = `BuildParam_${hash.slice(-10)}`;\n const fileName = `${className}.ts`;\n const filePath = path.join(buildParamsDir, fileName);\n\n // Ensure buildParams directory exists.\n if (!fs.existsSync(buildParamsDir)) {\n fs.mkdirSync(buildParamsDir, { recursive: true });\n }\n\n // Check if file already exists.\n if (fs.existsSync(filePath)) {\n // File exists, just ensure it's imported in extensions.ts\n } else {\n // Create the BuildParam implementation file.\n const fileContent = `import { BuildParam } from \"webiny/api/build-params\";\n\nclass ${className} implements BuildParam.Interface {\n key = \"${paramName}\";\n value = ${valueStr};\n}\n\nexport default BuildParam.createImplementation({\n implementation: ${className},\n dependencies: []\n});\n`;\n fs.writeFileSync(filePath, fileContent, \"utf8\");\n }\n\n // Now update extensions.ts to import and register this BuildParam.\n const project = new Project();\n project.addSourceFileAtPath(extensionsTsFilePath);\n\n const source = project.getSourceFileOrThrow(extensionsTsFilePath);\n\n // Calculate import path relative to extensions.ts.\n let importPath = path\n .relative(path.dirname(extensionsTsFilePath), filePath)\n .replace(/\\.tsx?$/, \".js\");\n\n // Ensure the path starts with ./\n if (!importPath.startsWith(\".\")) {\n importPath = \"./\" + importPath;\n }\n\n // Check if import already exists.\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 // Add import for the BuildParam implementation.\n source.insertImportDeclaration(index, {\n defaultImport: className,\n moduleSpecifier: importPath\n });\n\n // Add the registration to the plugins array.\n const pluginsArray = source.getFirstDescendant(node =>\n Node.isArrayLiteralExpression(node)\n ) as ArrayLiteralExpression;\n\n pluginsArray.addElement(\n `\\ncreateContextPlugin(ctx => {\\n\\tregisterExtension(ctx.container, ${className});\\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;AAChE,SAASC,eAAe;AACxB,OAAOC,MAAM,MAAM,QAAQ;AAC3B,OAAOC,IAAI,MAAM,MAAM;AACvB,OAAOC,EAAE,MAAM,IAAI;AAEnB,OAAO,MAAMC,UAAU,GAAGJ,eAAe,CAAC;EACtCK,IAAI,EAAE,gBAAgB;EACtBC,IAAI,EAAE;IAAEC,cAAc,EAAE,WAAW;IAAEC,OAAO,EAAE;EAAM,CAAC;EACrDC,WAAW,EAAE,sCAAsC;EACnDC,QAAQ,EAAE,IAAI;EACdC,YAAY,EAAEA,CAAA,KAAM;IAChB,OAAOd,CAAC,CAACe,MAAM,CAAC;MACZC,SAAS,EAAEhB,CAAC,CAACiB,MAAM,CAAC,CAAC;MACrBC,KAAK,EAAElB,CAAC,CAACmB,KAAK,CAAC,CACXnB,CAAC,CAACiB,MAAM,CAAC,CAAC,EACVjB,CAAC,CAACoB,MAAM,CAACpB,CAAC,CAACqB,GAAG,CAAC,CAAC,CAAC,EACjBrB,CAAC,CAACsB,KAAK,CAACtB,CAAC,CAACqB,GAAG,CAAC,CAAC,CAAC,EAChBrB,CAAC,CAACuB,MAAM,CAAC,CAAC,EACVvB,CAAC,CAACwB,OAAO,CAAC,CAAC,CACd;IACL,CAAC,CAAC;EACN,CAAC;EACD,MAAMC,KAAKA,CAACC,MAAM,EAAEC,GAAG,EAAE;IACrB,MAAMC,oBAAoB,GAAGD,GAAG,CAACE,OAAO,CAACC,KAAK,CAACC,eAAe,CACzDC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C;MAEb,MAAMC,kBAAkB,GAAGV,MAAM,CAACW,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,MAAMS,uBAAuB,GAAG,mCAAmC;MACnE,MAAMC,2BAA2B,GAC7BxB,MAAM,CAACQ,oBAAoB,CAACe,uBAAuB,CAAC;MACxD,IAAI,CAACC,2BAA2B,EAAE;QAC9BxB,MAAM,CAACe,uBAAuB,CAACN,KAAK,EAAE;UAClCgB,YAAY,EAAE,CAAC,qBAAqB,CAAC;UACrCR,eAAe,EAAEM;QACrB,CAAC,CAAC;MACN;IACJ;IAEA,MAAMvB,MAAM,CAAC0B,IAAI,CAAC,CAAC;EACvB;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ApiExtension: import("~/extensions/index.js").ExtensionComponent<z.ZodObject<{
|
|
3
|
+
src: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
4
|
+
exportName: z.ZodOptional<z.ZodString>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
src: string;
|
|
7
|
+
exportName?: string | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
src: string;
|
|
10
|
+
exportName?: string | undefined;
|
|
11
|
+
}>>;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { defineExtension, zodSrcPath } from "./index.js";
|
|
2
|
+
import { ExtensionSrcResolver } from "@webiny/project";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import path from "path";
|
|
5
|
+
import { Node, Project } from "ts-morph";
|
|
6
|
+
import crypto from "crypto";
|
|
7
|
+
export const ApiExtension = defineExtension({
|
|
8
|
+
type: "Api/Extension",
|
|
9
|
+
tags: {
|
|
10
|
+
runtimeContext: "app-build",
|
|
11
|
+
appName: "api"
|
|
12
|
+
},
|
|
13
|
+
description: "Add any API extension.",
|
|
14
|
+
multiple: true,
|
|
15
|
+
paramsSchema: ({
|
|
16
|
+
project
|
|
17
|
+
}) => {
|
|
18
|
+
return z.object({
|
|
19
|
+
src: zodSrcPath({
|
|
20
|
+
project
|
|
21
|
+
}),
|
|
22
|
+
exportName: z.string().optional()
|
|
23
|
+
});
|
|
24
|
+
},
|
|
25
|
+
async build(params, ctx) {
|
|
26
|
+
const extensionsTsFilePath = ctx.project.paths.workspaceFolder.join("apps", "api", "graphql", "src", "extensions.ts").toString();
|
|
27
|
+
const {
|
|
28
|
+
src: extensionFilePath
|
|
29
|
+
} = params;
|
|
30
|
+
|
|
31
|
+
// Resolve to absolute path for file operations.
|
|
32
|
+
const absoluteExtensionFilePath = ExtensionSrcResolver.resolvePath(extensionFilePath, ctx.project);
|
|
33
|
+
const extensionFileName = path.basename(absoluteExtensionFilePath);
|
|
34
|
+
|
|
35
|
+
// Export name is always the file name without extension.
|
|
36
|
+
const exportName = params.exportName ?? path.parse(extensionFileName).name;
|
|
37
|
+
|
|
38
|
+
// Alias name is "ApiExtension_" + hash of the file path. This way we
|
|
39
|
+
// avoid potential naming conflicts and keep the identifier constant.
|
|
40
|
+
const hash = crypto.createHash("sha256").update(extensionFilePath).digest("hex");
|
|
41
|
+
const exportNameAlias = `ApiExtension_${hash.slice(-10)}`;
|
|
42
|
+
|
|
43
|
+
// Calculate import path relative to `extensions.ts` file.
|
|
44
|
+
const importPath = path.relative(path.dirname(extensionsTsFilePath), absoluteExtensionFilePath).replace(/\.tsx?$/, ".js");
|
|
45
|
+
const project = new Project();
|
|
46
|
+
project.addSourceFileAtPath(extensionsTsFilePath);
|
|
47
|
+
const source = project.getSourceFileOrThrow(extensionsTsFilePath);
|
|
48
|
+
const existingImportDeclaration = source.getImportDeclaration(importPath);
|
|
49
|
+
if (existingImportDeclaration) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
let index = 1;
|
|
53
|
+
const importDeclarations = source.getImportDeclarations();
|
|
54
|
+
if (importDeclarations.length) {
|
|
55
|
+
const last = importDeclarations[importDeclarations.length - 1];
|
|
56
|
+
index = last.getChildIndex() + 1;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Check if the file has a default export using AST parsing.
|
|
60
|
+
const extensionProject = new Project();
|
|
61
|
+
extensionProject.addSourceFileAtPath(absoluteExtensionFilePath);
|
|
62
|
+
const extensionSource = extensionProject.getSourceFileOrThrow(absoluteExtensionFilePath);
|
|
63
|
+
const hasDefaultExport = extensionSource.getDefaultExportSymbol() !== undefined;
|
|
64
|
+
|
|
65
|
+
// Support both default and named exports.
|
|
66
|
+
if (hasDefaultExport) {
|
|
67
|
+
source.insertImportDeclaration(index, {
|
|
68
|
+
defaultImport: exportNameAlias,
|
|
69
|
+
moduleSpecifier: importPath
|
|
70
|
+
});
|
|
71
|
+
} else {
|
|
72
|
+
source.insertImportDeclaration(index, {
|
|
73
|
+
namedImports: [{
|
|
74
|
+
name: exportName,
|
|
75
|
+
alias: exportNameAlias
|
|
76
|
+
}],
|
|
77
|
+
moduleSpecifier: importPath
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
const pluginsArray = source.getFirstDescendant(node => Node.isArrayLiteralExpression(node));
|
|
81
|
+
pluginsArray.addElement(`\ncreateContextPlugin(ctx => {\n\tregisterExtension(ctx.container, ${exportNameAlias});\n})`);
|
|
82
|
+
{
|
|
83
|
+
let index = 1;
|
|
84
|
+
const importDeclarations = source.getImportDeclarations();
|
|
85
|
+
if (importDeclarations.length) {
|
|
86
|
+
const last = importDeclarations[importDeclarations.length - 1];
|
|
87
|
+
index = last.getChildIndex() + 1;
|
|
88
|
+
}
|
|
89
|
+
const contextPluginImportPath = "@webiny/api/plugins/ContextPlugin";
|
|
90
|
+
const existingContextPluginImport = source.getImportDeclaration(contextPluginImportPath);
|
|
91
|
+
if (!existingContextPluginImport) {
|
|
92
|
+
source.insertImportDeclaration(index, {
|
|
93
|
+
namedImports: ["createContextPlugin"],
|
|
94
|
+
moduleSpecifier: contextPluginImportPath
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
await source.save();
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
//# sourceMappingURL=ApiExtension.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["defineExtension","zodSrcPath","ExtensionSrcResolver","z","path","Node","Project","crypto","ApiExtension","type","tags","runtimeContext","appName","description","multiple","paramsSchema","project","object","src","exportName","string","optional","build","params","ctx","extensionsTsFilePath","paths","workspaceFolder","join","toString","extensionFilePath","absoluteExtensionFilePath","resolvePath","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":["ApiExtension.ts"],"sourcesContent":["import { defineExtension, zodSrcPath } from \"~/extensions/index.js\";\nimport { ExtensionSrcResolver } from \"@webiny/project\";\nimport { z } from \"zod\";\nimport path from \"path\";\nimport { Node, Project, ArrayLiteralExpression } from \"ts-morph\";\nimport crypto from \"crypto\";\n\nexport const ApiExtension = defineExtension({\n type: \"Api/Extension\",\n tags: { runtimeContext: \"app-build\", appName: \"api\" },\n description: \"Add any API extension.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n src: zodSrcPath({ project }),\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 const absoluteExtensionFilePath = ExtensionSrcResolver.resolvePath(\n extensionFilePath,\n ctx.project\n );\n\n const extensionFileName = path.basename(absoluteExtensionFilePath);\n\n // Export name is always the file name without extension.\n const exportName = params.exportName ?? path.parse(extensionFileName).name;\n\n // 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 // 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 = 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,eAAe,EAAEC,UAAU;AACpC,SAASC,oBAAoB,QAAQ,iBAAiB;AACtD,SAASC,CAAC,QAAQ,KAAK;AACvB,OAAOC,IAAI,MAAM,MAAM;AACvB,SAASC,IAAI,EAAEC,OAAO,QAAgC,UAAU;AAChE,OAAOC,MAAM,MAAM,QAAQ;AAE3B,OAAO,MAAMC,YAAY,GAAGR,eAAe,CAAC;EACxCS,IAAI,EAAE,eAAe;EACrBC,IAAI,EAAE;IAAEC,cAAc,EAAE,WAAW;IAAEC,OAAO,EAAE;EAAM,CAAC;EACrDC,WAAW,EAAE,wBAAwB;EACrCC,QAAQ,EAAE,IAAI;EACdC,YAAY,EAAEA,CAAC;IAAEC;EAAQ,CAAC,KAAK;IAC3B,OAAOb,CAAC,CAACc,MAAM,CAAC;MACZC,GAAG,EAAEjB,UAAU,CAAC;QAAEe;MAAQ,CAAC,CAAC;MAC5BG,UAAU,EAAEhB,CAAC,CAACiB,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC;IACpC,CAAC,CAAC;EACN,CAAC;EACD,MAAMC,KAAKA,CAACC,MAAM,EAAEC,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,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,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":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const DatabaseSetup: import("../defineExtension/defineExtension.js").ExtensionComponent<z.ZodObject<{
|
|
3
|
+
setupName: z.ZodEnum<["ddb", "ddb+es", "ddb+os"]>;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
setupName: "ddb" | "ddb+es" | "ddb+os";
|
|
6
|
+
}, {
|
|
7
|
+
setupName: "ddb" | "ddb+es" | "ddb+os";
|
|
8
|
+
}>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { defineExtension } from "../defineExtension/index.js";
|
|
3
|
+
export const DatabaseSetup = defineExtension({
|
|
4
|
+
type: "Project/DatabaseSetup",
|
|
5
|
+
tags: {
|
|
6
|
+
runtimeContext: "project"
|
|
7
|
+
},
|
|
8
|
+
description: "Define the database setup configuration (ddb, ddb+es, or ddb+os).",
|
|
9
|
+
paramsSchema: z.object({
|
|
10
|
+
setupName: z.enum(["ddb", "ddb+es", "ddb+os"]).describe("The database setup type: ddb (DynamoDB only), ddb+es (DynamoDB + ElasticSearch), or ddb+os (DynamoDB + OpenSearch)")
|
|
11
|
+
})
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=DatabaseSetup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["z","defineExtension","DatabaseSetup","type","tags","runtimeContext","description","paramsSchema","object","setupName","enum","describe"],"sources":["DatabaseSetup.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineExtension } from \"../defineExtension/index.js\";\n\nexport const DatabaseSetup = defineExtension({\n type: \"Project/DatabaseSetup\",\n tags: { runtimeContext: \"project\" },\n description: \"Define the database setup configuration (ddb, ddb+es, or ddb+os).\",\n paramsSchema: z.object({\n setupName: z\n .enum([\"ddb\", \"ddb+es\", \"ddb+os\"])\n .describe(\n \"The database setup type: ddb (DynamoDB only), ddb+es (DynamoDB + ElasticSearch), or ddb+os (DynamoDB + OpenSearch)\"\n )\n })\n});\n"],"mappings":"AAAA,SAASA,CAAC,QAAQ,KAAK;AACvB,SAASC,eAAe;AAExB,OAAO,MAAMC,aAAa,GAAGD,eAAe,CAAC;EACzCE,IAAI,EAAE,uBAAuB;EAC7BC,IAAI,EAAE;IAAEC,cAAc,EAAE;EAAU,CAAC;EACnCC,WAAW,EAAE,mEAAmE;EAChFC,YAAY,EAAEP,CAAC,CAACQ,MAAM,CAAC;IACnBC,SAAS,EAAET,CAAC,CACPU,IAAI,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CACjCC,QAAQ,CACL,oHACJ;EACR,CAAC;AACL,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const EnvVar: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
|
|
3
|
+
varName: z.ZodString;
|
|
4
|
+
value: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
value: string;
|
|
7
|
+
varName: string;
|
|
8
|
+
}, {
|
|
9
|
+
value: string;
|
|
10
|
+
varName: string;
|
|
11
|
+
}>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { defineExtension } from "../defineExtension/index.js";
|
|
3
|
+
export const EnvVar = defineExtension({
|
|
4
|
+
type: "Project/EnvVar",
|
|
5
|
+
tags: {
|
|
6
|
+
runtimeContext: "project"
|
|
7
|
+
},
|
|
8
|
+
description: "Set an environment variable in the project context.",
|
|
9
|
+
multiple: true,
|
|
10
|
+
paramsSchema: z.object({
|
|
11
|
+
// TODO: enable using `name` instead of `varName` for better consistency.
|
|
12
|
+
varName: z.string().describe("The environment variable name."),
|
|
13
|
+
value: z.string().describe("The environment variable value.")
|
|
14
|
+
})
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=EnvVar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["z","defineExtension","EnvVar","type","tags","runtimeContext","description","multiple","paramsSchema","object","varName","string","describe","value"],"sources":["EnvVar.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineExtension } from \"~/defineExtension/index.js\";\n\nexport const EnvVar = defineExtension({\n type: \"Project/EnvVar\",\n tags: { runtimeContext: \"project\" },\n description: \"Set an environment variable in the project context.\",\n multiple: true,\n paramsSchema: z.object({\n // TODO: enable using `name` instead of `varName` for better consistency.\n varName: z.string().describe(\"The environment variable name.\"),\n value: z.string().describe(\"The environment variable value.\")\n })\n});\n"],"mappings":"AAAA,SAASA,CAAC,QAAQ,KAAK;AACvB,SAASC,eAAe;AAExB,OAAO,MAAMC,MAAM,GAAGD,eAAe,CAAC;EAClCE,IAAI,EAAE,gBAAgB;EACtBC,IAAI,EAAE;IAAEC,cAAc,EAAE;EAAU,CAAC;EACnCC,WAAW,EAAE,qDAAqD;EAClEC,QAAQ,EAAE,IAAI;EACdC,YAAY,EAAER,CAAC,CAACS,MAAM,CAAC;IACnB;IACAC,OAAO,EAAEV,CAAC,CAACW,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC,gCAAgC,CAAC;IAC9DC,KAAK,EAAEb,CAAC,CAACW,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC,iCAAiC;EAChE,CAAC;AACL,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { defineExtension } from "../defineExtension/index.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
export const ExtensionDefinitions = defineExtension({
|
|
4
|
+
type: "Project/ExtensionDefinitions",
|
|
5
|
+
tags: {
|
|
6
|
+
runtimeContext: "project"
|
|
7
|
+
},
|
|
8
|
+
description: "Register additional extension definitions.",
|
|
9
|
+
multiple: true,
|
|
10
|
+
paramsSchema: z.object({
|
|
11
|
+
src: z.string()
|
|
12
|
+
})
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=ExtensionDefinitions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["defineExtension","z","ExtensionDefinitions","type","tags","runtimeContext","description","multiple","paramsSchema","object","src","string"],"sources":["ExtensionDefinitions.ts"],"sourcesContent":["import { defineExtension } from \"~/defineExtension/index.js\";\nimport { z } from \"zod\";\n\nexport const ExtensionDefinitions = defineExtension({\n type: \"Project/ExtensionDefinitions\",\n tags: { runtimeContext: \"project\" },\n description: \"Register additional extension definitions.\",\n multiple: true,\n paramsSchema: z.object({\n src: z.string()\n })\n});\n"],"mappings":"AAAA,SAASA,eAAe;AACxB,SAASC,CAAC,QAAQ,KAAK;AAEvB,OAAO,MAAMC,oBAAoB,GAAGF,eAAe,CAAC;EAChDG,IAAI,EAAE,8BAA8B;EACpCC,IAAI,EAAE;IAAEC,cAAc,EAAE;EAAU,CAAC;EACnCC,WAAW,EAAE,4CAA4C;EACzDC,QAAQ,EAAE,IAAI;EACdC,YAAY,EAAEP,CAAC,CAACQ,MAAM,CAAC;IACnBC,GAAG,EAAET,CAAC,CAACU,MAAM,CAAC;EAClB,CAAC;AACL,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const FeatureFlags: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
|
|
3
|
+
features: z.ZodObject<{
|
|
4
|
+
multiTenancy: z.ZodOptional<z.ZodBoolean>;
|
|
5
|
+
advancedPublishingWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
advancedAccessControlLayer: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
7
|
+
teams: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
privateFiles: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
folderLevelPermissions: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
hcmsFieldPermissions: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
teams?: boolean | undefined;
|
|
13
|
+
privateFiles?: boolean | undefined;
|
|
14
|
+
folderLevelPermissions?: boolean | undefined;
|
|
15
|
+
hcmsFieldPermissions?: boolean | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
teams?: boolean | undefined;
|
|
18
|
+
privateFiles?: boolean | undefined;
|
|
19
|
+
folderLevelPermissions?: boolean | undefined;
|
|
20
|
+
hcmsFieldPermissions?: boolean | undefined;
|
|
21
|
+
}>]>>;
|
|
22
|
+
auditLogs: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
recordLocking: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
fileManager: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
threatDetection: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
threatDetection?: boolean | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
threatDetection?: boolean | undefined;
|
|
30
|
+
}>>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
multiTenancy?: boolean | undefined;
|
|
33
|
+
advancedPublishingWorkflow?: boolean | undefined;
|
|
34
|
+
advancedAccessControlLayer?: boolean | {
|
|
35
|
+
teams?: boolean | undefined;
|
|
36
|
+
privateFiles?: boolean | undefined;
|
|
37
|
+
folderLevelPermissions?: boolean | undefined;
|
|
38
|
+
hcmsFieldPermissions?: boolean | undefined;
|
|
39
|
+
} | undefined;
|
|
40
|
+
auditLogs?: boolean | undefined;
|
|
41
|
+
recordLocking?: boolean | undefined;
|
|
42
|
+
fileManager?: {
|
|
43
|
+
threatDetection?: boolean | undefined;
|
|
44
|
+
} | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
multiTenancy?: boolean | undefined;
|
|
47
|
+
advancedPublishingWorkflow?: boolean | undefined;
|
|
48
|
+
advancedAccessControlLayer?: boolean | {
|
|
49
|
+
teams?: boolean | undefined;
|
|
50
|
+
privateFiles?: boolean | undefined;
|
|
51
|
+
folderLevelPermissions?: boolean | undefined;
|
|
52
|
+
hcmsFieldPermissions?: boolean | undefined;
|
|
53
|
+
} | undefined;
|
|
54
|
+
auditLogs?: boolean | undefined;
|
|
55
|
+
recordLocking?: boolean | undefined;
|
|
56
|
+
fileManager?: {
|
|
57
|
+
threatDetection?: boolean | undefined;
|
|
58
|
+
} | undefined;
|
|
59
|
+
}>;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
features: {
|
|
62
|
+
multiTenancy?: boolean | undefined;
|
|
63
|
+
advancedPublishingWorkflow?: boolean | undefined;
|
|
64
|
+
advancedAccessControlLayer?: boolean | {
|
|
65
|
+
teams?: boolean | undefined;
|
|
66
|
+
privateFiles?: boolean | undefined;
|
|
67
|
+
folderLevelPermissions?: boolean | undefined;
|
|
68
|
+
hcmsFieldPermissions?: boolean | undefined;
|
|
69
|
+
} | undefined;
|
|
70
|
+
auditLogs?: boolean | undefined;
|
|
71
|
+
recordLocking?: boolean | undefined;
|
|
72
|
+
fileManager?: {
|
|
73
|
+
threatDetection?: boolean | undefined;
|
|
74
|
+
} | undefined;
|
|
75
|
+
};
|
|
76
|
+
}, {
|
|
77
|
+
features: {
|
|
78
|
+
multiTenancy?: boolean | undefined;
|
|
79
|
+
advancedPublishingWorkflow?: boolean | undefined;
|
|
80
|
+
advancedAccessControlLayer?: boolean | {
|
|
81
|
+
teams?: boolean | undefined;
|
|
82
|
+
privateFiles?: boolean | undefined;
|
|
83
|
+
folderLevelPermissions?: boolean | undefined;
|
|
84
|
+
hcmsFieldPermissions?: boolean | undefined;
|
|
85
|
+
} | undefined;
|
|
86
|
+
auditLogs?: boolean | undefined;
|
|
87
|
+
recordLocking?: boolean | undefined;
|
|
88
|
+
fileManager?: {
|
|
89
|
+
threatDetection?: boolean | undefined;
|
|
90
|
+
} | undefined;
|
|
91
|
+
};
|
|
92
|
+
}>>;
|