@webiny/project-aws 6.6.0-alpha.1 → 6.6.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AwsProjectSdk.d.ts +38 -0
- package/AwsProjectSdk.js +61 -0
- package/AwsProjectSdk.js.map +1 -0
- package/abstractions/features/DestroyApp.d.ts +18 -0
- package/abstractions/features/DestroyApp.js +5 -0
- package/abstractions/features/DestroyApp.js.map +1 -0
- package/abstractions/features/ExportStack.d.ts +18 -0
- package/abstractions/features/ExportStack.js +5 -0
- package/abstractions/features/ExportStack.js.map +1 -0
- package/abstractions/features/GetAppOutput.d.ts +18 -0
- package/abstractions/features/GetAppOutput.js +5 -0
- package/abstractions/features/GetAppOutput.js.map +1 -0
- package/abstractions/features/GetAppStackOutput.d.ts +18 -0
- package/abstractions/features/GetAppStackOutput.js +5 -0
- package/abstractions/features/GetAppStackOutput.js.map +1 -0
- package/abstractions/features/GetPulumiResourceNamePrefix.d.ts +7 -0
- package/abstractions/features/GetPulumiResourceNamePrefix.js +5 -0
- package/abstractions/features/GetPulumiResourceNamePrefix.js.map +1 -0
- package/abstractions/features/RefreshApp.d.ts +18 -0
- package/abstractions/features/RefreshApp.js +5 -0
- package/abstractions/features/RefreshApp.js.map +1 -0
- package/abstractions/features/RunPulumiCommand.d.ts +19 -0
- package/abstractions/features/RunPulumiCommand.js +5 -0
- package/abstractions/features/RunPulumiCommand.js.map +1 -0
- package/abstractions/index.d.ts +21 -6
- package/abstractions/index.js +21 -6
- package/abstractions/pulumiTypes.d.ts +18 -0
- package/abstractions/pulumiTypes.js +0 -0
- package/abstractions/services/GetPulumiService.d.ts +20 -0
- package/abstractions/services/GetPulumiService.js +5 -0
- package/abstractions/services/GetPulumiService.js.map +1 -0
- package/abstractions/services/GetPulumiVersionService.d.ts +12 -0
- package/abstractions/services/GetPulumiVersionService.js +5 -0
- package/abstractions/services/GetPulumiVersionService.js.map +1 -0
- package/abstractions/services/IsRemotePulumiBackendService.d.ts +7 -0
- package/abstractions/services/IsRemotePulumiBackendService.js +5 -0
- package/abstractions/services/IsRemotePulumiBackendService.js.map +1 -0
- package/abstractions/services/ListAppLambdaFunctionsService.d.ts +23 -0
- package/abstractions/services/ListAppLambdaFunctionsService.js +5 -0
- package/abstractions/services/ListAppLambdaFunctionsService.js.map +1 -0
- package/abstractions/services/ListDeployedEnvironmentsService.d.ts +12 -0
- package/abstractions/services/ListDeployedEnvironmentsService.js +5 -0
- package/abstractions/services/ListDeployedEnvironmentsService.js.map +1 -0
- package/abstractions/services/PulumiExportService.d.ts +13 -0
- package/abstractions/services/PulumiExportService.js +6 -0
- package/abstractions/services/PulumiExportService.js.map +1 -0
- package/abstractions/services/PulumiGetConfigPassphraseService.d.ts +7 -0
- package/abstractions/services/PulumiGetConfigPassphraseService.js +5 -0
- package/abstractions/services/PulumiGetConfigPassphraseService.js.map +1 -0
- package/abstractions/services/PulumiGetSecretsProviderService.d.ts +7 -0
- package/abstractions/services/PulumiGetSecretsProviderService.js +5 -0
- package/abstractions/services/PulumiGetSecretsProviderService.js.map +1 -0
- package/abstractions/services/PulumiGetStackOutputService.d.ts +13 -0
- package/abstractions/services/PulumiGetStackOutputService.js +5 -0
- package/abstractions/services/PulumiGetStackOutputService.js.map +1 -0
- package/abstractions/services/PulumiImportService.d.ts +8 -0
- package/abstractions/services/PulumiImportService.js +5 -0
- package/abstractions/services/PulumiImportService.js.map +1 -0
- package/abstractions/services/PulumiLoginService.d.ts +19 -0
- package/abstractions/services/PulumiLoginService.js +5 -0
- package/abstractions/services/PulumiLoginService.js.map +1 -0
- package/abstractions/services/PulumiSelectStackService.d.ts +10 -0
- package/abstractions/services/PulumiSelectStackService.js +5 -0
- package/abstractions/services/PulumiSelectStackService.js.map +1 -0
- package/abstractions/services/StackOutputCacheService.d.ts +10 -0
- package/abstractions/services/StackOutputCacheService.js +5 -0
- package/abstractions/services/StackOutputCacheService.js.map +1 -0
- package/abstractions/services/WatchedLambdaFunctionsService.d.ts +28 -0
- package/abstractions/services/WatchedLambdaFunctionsService.js +5 -0
- package/abstractions/services/WatchedLambdaFunctionsService.js.map +1 -0
- package/api.d.ts +1 -15
- package/api.js +1 -3
- package/api.js.map +1 -1
- package/decorators/DeployAppClearWatchedLambdaFunctions.d.ts +20 -0
- package/decorators/DeployAppClearWatchedLambdaFunctions.js +35 -0
- package/decorators/DeployAppClearWatchedLambdaFunctions.js.map +1 -0
- package/decorators/DeployAppRefreshStackOutputCache.d.ts +20 -0
- package/decorators/DeployAppRefreshStackOutputCache.js +34 -0
- package/decorators/DeployAppRefreshStackOutputCache.js.map +1 -0
- package/decorators/DeployAppWithHooks.d.ts +25 -0
- package/decorators/DeployAppWithHooks.js +58 -0
- package/decorators/DeployAppWithHooks.js.map +1 -0
- package/decorators/DeployAppWithWatchedLambdaReplacement.d.ts +20 -0
- package/decorators/DeployAppWithWatchedLambdaReplacement.js +42 -0
- package/decorators/DeployAppWithWatchedLambdaReplacement.js.map +1 -0
- package/decorators/DestroyAppClearStackOutputCache.d.ts +28 -0
- package/decorators/DestroyAppClearStackOutputCache.js +31 -0
- package/decorators/DestroyAppClearStackOutputCache.js.map +1 -0
- package/decorators/GetPulumiServiceWithDownloadInfo.d.ts +13 -0
- package/decorators/GetPulumiServiceWithDownloadInfo.js +28 -0
- package/decorators/GetPulumiServiceWithDownloadInfo.js.map +1 -0
- package/decorators/ProjectInfoWithPulumi.d.ts +34 -0
- package/decorators/ProjectInfoWithPulumi.js +36 -0
- package/decorators/ProjectInfoWithPulumi.js.map +1 -0
- package/exports/infra/admin.d.ts +1 -3
- package/exports/infra/admin.js +0 -3
- package/exports/infra/api.d.ts +1 -3
- package/exports/infra/api.js +0 -3
- package/exports/infra/core.d.ts +1 -2
- package/exports/infra/core.js +0 -2
- package/extensions/ApiLambdaFunction.js +3 -2
- package/extensions/ApiLambdaFunction.js.map +1 -1
- package/extensions/ApiRoute.d.ts +7 -16
- package/extensions/ApiRoute.js +5 -73
- package/extensions/ApiRoute.js.map +1 -1
- package/extensions/OpenSearch/EnsureOsServiceRoleBeforeCoreDeploy.d.ts +3 -2
- package/extensions/OpenSearch/EnsureOsServiceRoleBeforeCoreDeploy.js +2 -1
- package/extensions/OpenSearch/EnsureOsServiceRoleBeforeCoreDeploy.js.map +1 -1
- package/extensions/OpenSearch/EnsureOsWasDeployed.d.ts +3 -3
- package/extensions/OpenSearch/EnsureOsWasDeployed.js +1 -2
- package/extensions/OpenSearch/EnsureOsWasDeployed.js.map +1 -1
- package/extensions/OpenSearch.d.ts +9 -10
- package/extensions/OpenSearch.js +8 -16
- package/extensions/OpenSearch.js.map +1 -1
- package/extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.d.ts +3 -3
- package/extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.js +3 -2
- package/extensions/ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.js.map +1 -1
- package/extensions/ProjectAws/BlueGreenDeployments/EnsureVariantBeforeDeploy.d.ts +3 -2
- package/extensions/ProjectAws/BlueGreenDeployments/EnsureVariantBeforeDeploy.js +2 -1
- package/extensions/ProjectAws/BlueGreenDeployments/EnsureVariantBeforeDeploy.js.map +1 -1
- package/extensions/ProjectAws/BlueGreenDeployments/PrintDeploymentInfoAfterDeploy.d.ts +5 -2
- package/extensions/ProjectAws/BlueGreenDeployments/PrintDeploymentInfoAfterDeploy.js +3 -1
- package/extensions/ProjectAws/BlueGreenDeployments/PrintDeploymentInfoAfterDeploy.js.map +1 -1
- package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminBuild.d.ts +3 -1
- package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminBuild.js +2 -1
- package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminBuild.js.map +1 -1
- package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminWatch.d.ts +3 -1
- package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminWatch.js +2 -1
- package/extensions/ProjectAws/EnsureApiDeployedBeforeAdminWatch.js.map +1 -1
- package/extensions/ProjectAws/EnsureApiDeployedBeforeWatch.d.ts +3 -1
- package/extensions/ProjectAws/EnsureApiDeployedBeforeWatch.js +2 -1
- package/extensions/ProjectAws/EnsureApiDeployedBeforeWatch.js.map +1 -1
- package/extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.d.ts +3 -2
- package/extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.js +3 -2
- package/extensions/ProjectAws/EnsureAwsCredentialsBeforeDeploy.js.map +1 -1
- package/extensions/ProjectAws/EnsureCoreDeployedBeforeApiDeploy.d.ts +4 -2
- package/extensions/ProjectAws/EnsureCoreDeployedBeforeApiDeploy.js +3 -1
- package/extensions/ProjectAws/EnsureCoreDeployedBeforeApiDeploy.js.map +1 -1
- package/extensions/ProjectAws/EnsureTelemetryEnabledForOss.d.ts +6 -2
- package/extensions/ProjectAws/EnsureTelemetryEnabledForOss.js +2 -1
- package/extensions/ProjectAws/EnsureTelemetryEnabledForOss.js.map +1 -1
- package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVars.d.ts +1 -1
- package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVars.js +1 -1
- package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVars.js.map +1 -1
- package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeBuild.d.ts +1 -1
- package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeBuild.js +1 -1
- package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeBuild.js.map +1 -1
- package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeWatch.d.ts +1 -1
- package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeWatch.js +1 -1
- package/extensions/ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeWatch.js.map +1 -1
- package/extensions/ProjectAws/SetDatabaseSetupOutput.d.ts +2 -2
- package/extensions/ProjectAws/SetDatabaseSetupOutput.js +1 -1
- package/extensions/ProjectAws/SetDatabaseSetupOutput.js.map +1 -1
- package/extensions/ProjectAws/TelemetryNoLongerNewUser.d.ts +2 -2
- package/extensions/ProjectAws/TelemetryNoLongerNewUser.js +1 -1
- package/extensions/ProjectAws/TelemetryNoLongerNewUser.js.map +1 -1
- package/extensions/ProjectAws/UploadAdminAppToS3.d.ts +5 -3
- package/extensions/ProjectAws/UploadAdminAppToS3.js +3 -3
- package/extensions/ProjectAws/UploadAdminAppToS3.js.map +1 -1
- package/extensions/ProjectAws/ValidateEncryptionBeforeDeploy.d.ts +5 -2
- package/extensions/ProjectAws/ValidateEncryptionBeforeDeploy.js +2 -1
- package/extensions/ProjectAws/ValidateEncryptionBeforeDeploy.js.map +1 -1
- package/extensions/ProjectAws/ValidateProductionPulumiState.d.ts +5 -2
- package/extensions/ProjectAws/ValidateProductionPulumiState.js +3 -1
- package/extensions/ProjectAws/ValidateProductionPulumiState.js.map +1 -1
- package/extensions/ProjectAws/definitions.js +6 -2
- package/extensions/ProjectAws/definitions.js.map +1 -1
- package/extensions/ProjectAws.d.ts +1 -0
- package/extensions/ProjectAws.js +3 -1
- package/extensions/ProjectAws.js.map +1 -1
- package/extensions/RegisterRoutesPulumi.d.ts +2 -2
- package/extensions/RegisterRoutesPulumi.js +4 -4
- package/extensions/RegisterRoutesPulumi.js.map +1 -1
- package/extensions/definitions.js +1 -5
- package/extensions/definitions.js.map +1 -1
- package/extensions/index.d.ts +2 -3
- package/extensions/index.js +2 -3
- package/extensions/registerExtensionImplementations.js +11 -0
- package/extensions/registerExtensionImplementations.js.map +1 -0
- package/extensions/toApiGatewayPath.d.ts +2 -0
- package/extensions/toApiGatewayPath.js +6 -0
- package/extensions/toApiGatewayPath.js.map +1 -0
- package/features/ApiGqlClient.d.ts +4 -4
- package/features/ApiGqlClient.js +3 -3
- package/features/ApiGqlClient.js.map +1 -1
- package/features/DeployApp/DeployApp.d.ts +22 -0
- package/features/DeployApp/DeployApp.js +91 -0
- package/features/DeployApp/DeployApp.js.map +1 -0
- package/features/DeployApp/index.d.ts +1 -0
- package/features/DeployApp/index.js +1 -0
- package/features/DestroyApp/DestroyApp.d.ts +20 -0
- package/features/DestroyApp/DestroyApp.js +70 -0
- package/features/DestroyApp/DestroyApp.js.map +1 -0
- package/features/DestroyApp/index.d.ts +1 -0
- package/features/DestroyApp/index.js +1 -0
- package/features/ExportStack/ExportStack.d.ts +12 -0
- package/features/ExportStack/ExportStack.js +28 -0
- package/features/ExportStack/ExportStack.js.map +1 -0
- package/features/ExportStack/index.d.ts +1 -0
- package/features/ExportStack/index.js +1 -0
- package/features/GetAppOutput/GetAppOutput.d.ts +16 -0
- package/features/GetAppOutput/GetAppOutput.js +55 -0
- package/features/GetAppOutput/GetAppOutput.js.map +1 -0
- package/features/GetAppOutput/index.d.ts +1 -0
- package/features/GetAppOutput/index.js +1 -0
- package/features/GetAppStackOutput/GetAppStackOutput.d.ts +13 -0
- package/features/GetAppStackOutput/GetAppStackOutput.js +28 -0
- package/features/GetAppStackOutput/GetAppStackOutput.js.map +1 -0
- package/features/GetAppStackOutput/index.d.ts +1 -0
- package/features/GetAppStackOutput/index.js +1 -0
- package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.d.ts +8 -0
- package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.js +26 -0
- package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.js.map +1 -0
- package/features/GetPulumiResourceNamePrefix/index.d.ts +1 -0
- package/features/GetPulumiResourceNamePrefix/index.js +1 -0
- package/features/InvokeLambdaFunction.d.ts +3 -3
- package/features/InvokeLambdaFunction.js +3 -3
- package/features/InvokeLambdaFunction.js.map +1 -1
- package/features/RefreshApp/RefreshApp.d.ts +18 -0
- package/features/RefreshApp/RefreshApp.js +68 -0
- package/features/RefreshApp/RefreshApp.js.map +1 -0
- package/features/RefreshApp/index.d.ts +1 -0
- package/features/RefreshApp/index.js +1 -0
- package/features/RunPulumiCommand/RunPulumiCommand.d.ts +18 -0
- package/features/RunPulumiCommand/RunPulumiCommand.js +65 -0
- package/features/RunPulumiCommand/RunPulumiCommand.js.map +1 -0
- package/features/RunPulumiCommand/index.d.ts +1 -0
- package/features/RunPulumiCommand/index.js +1 -0
- package/features/Watch/AwsWatch.d.ts +9 -1
- package/features/Watch/AwsWatch.js +8 -4
- package/features/Watch/AwsWatch.js.map +1 -1
- package/features/Watch/getIotEndpoint.d.ts +2 -2
- package/features/Watch/getIotEndpoint.js.map +1 -1
- package/features/Watch/initInvocationForwarding.d.ts +9 -0
- package/features/Watch/initInvocationForwarding.js +91 -0
- package/features/Watch/initInvocationForwarding.js.map +1 -0
- package/features/Watch/localInvocationWorker.d.ts +1 -0
- package/features/Watch/localInvocationWorker.js +31 -0
- package/features/Watch/localInvocationWorker.js.map +1 -0
- package/features/Watch/replaceLambdaFunctions.d.ts +7 -3
- package/features/Watch/replaceLambdaFunctions.js.map +1 -1
- package/features/hooks/AdminAfterDeploy/AdminAfterDeploy.d.ts +7 -0
- package/features/hooks/AdminAfterDeploy/AdminAfterDeploy.js +25 -0
- package/features/hooks/AdminAfterDeploy/AdminAfterDeploy.js.map +1 -0
- package/features/hooks/AdminAfterDeploy/index.d.ts +1 -0
- package/features/hooks/AdminAfterDeploy/index.js +1 -0
- package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.d.ts +7 -0
- package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.js +25 -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 +1 -0
- package/features/hooks/AfterDeploy/AfterDeploy.d.ts +7 -0
- package/features/hooks/AfterDeploy/AfterDeploy.js +25 -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 +1 -0
- package/features/hooks/ApiAfterDeploy/ApiAfterDeploy.d.ts +7 -0
- package/features/hooks/ApiAfterDeploy/ApiAfterDeploy.js +25 -0
- package/features/hooks/ApiAfterDeploy/ApiAfterDeploy.js.map +1 -0
- package/features/hooks/ApiAfterDeploy/index.d.ts +1 -0
- package/features/hooks/ApiAfterDeploy/index.js +1 -0
- package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.d.ts +7 -0
- package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.js +25 -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 +1 -0
- package/features/hooks/BeforeDeploy/BeforeDeploy.d.ts +7 -0
- package/features/hooks/BeforeDeploy/BeforeDeploy.js +25 -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 +1 -0
- package/features/hooks/CoreAfterDeploy/CoreAfterDeploy.d.ts +7 -0
- package/features/hooks/CoreAfterDeploy/CoreAfterDeploy.js +25 -0
- package/features/hooks/CoreAfterDeploy/CoreAfterDeploy.js.map +1 -0
- package/features/hooks/CoreAfterDeploy/index.d.ts +1 -0
- package/features/hooks/CoreAfterDeploy/index.js +1 -0
- package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.d.ts +7 -0
- package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.js +25 -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 +1 -0
- package/index.d.ts +3 -0
- package/index.js +3 -0
- package/infra.d.ts +49 -2
- package/infra.js +16 -4
- package/infra.js.map +1 -1
- package/package.json +26 -23
- package/project.d.ts +12 -1
- package/project.js +3 -2
- package/project.js.map +1 -1
- package/pulumi/apps/admin/createAdminPulumiApp.js +7 -4
- package/pulumi/apps/admin/createAdminPulumiApp.js.map +1 -1
- package/pulumi/apps/api/ApiCloudfront.js +2 -1
- package/pulumi/apps/api/ApiCloudfront.js.map +1 -1
- package/pulumi/apps/api/ApiOutput.d.ts +6 -6
- package/pulumi/apps/api/createApiPulumiApp.js +9 -7
- package/pulumi/apps/api/createApiPulumiApp.js.map +1 -1
- package/pulumi/apps/awsUtils.js +1 -1
- package/pulumi/apps/awsUtils.js.map +1 -1
- package/pulumi/apps/blueGreen/domains/resolveDomains.js +1 -1
- package/pulumi/apps/blueGreen/domains/resolveDomains.js.map +1 -1
- package/pulumi/apps/blueGreen/types.d.ts +2 -5
- package/pulumi/apps/common/CoreOutput.d.ts +2 -1
- package/pulumi/apps/common/CoreOutput.js.map +1 -1
- package/pulumi/apps/core/CoreAuditLogsDynamo.d.ts +1 -0
- package/pulumi/apps/core/CoreAuditLogsDynamo.js +3 -0
- package/pulumi/apps/core/CoreAuditLogsDynamo.js.map +1 -1
- package/pulumi/apps/core/CoreDynamo.d.ts +1 -0
- package/pulumi/apps/core/CoreDynamo.js +3 -0
- package/pulumi/apps/core/CoreDynamo.js.map +1 -1
- package/pulumi/apps/core/CoreFileManager.d.ts +2 -0
- package/pulumi/apps/core/CoreFileManager.js +11 -1
- package/pulumi/apps/core/CoreFileManager.js.map +1 -1
- package/pulumi/apps/core/CoreOpenSearch.d.ts +1 -0
- package/pulumi/apps/core/CoreOpenSearch.js +3 -0
- package/pulumi/apps/core/CoreOpenSearch.js.map +1 -1
- package/pulumi/apps/core/configureS3BucketMalwareProtection.js +12 -2
- package/pulumi/apps/core/configureS3BucketMalwareProtection.js.map +1 -1
- package/pulumi/apps/core/createCorePulumiApp.js +16 -7
- package/pulumi/apps/core/createCorePulumiApp.js.map +1 -1
- package/pulumi/apps/customDomain.d.ts +10 -0
- package/pulumi/apps/customDomain.js +5 -1
- package/pulumi/apps/customDomain.js.map +1 -1
- package/pulumi/apps/extensions/getAwsTagsFromExtension.js +1 -1
- package/pulumi/apps/extensions/getAwsTagsFromExtension.js.map +1 -1
- package/pulumi/apps/extensions/getBgDeploymentsConfigFromExtension.d.ts +2 -2
- package/pulumi/apps/extensions/getBgDeploymentsConfigFromExtension.js +1 -1
- package/pulumi/apps/extensions/getBgDeploymentsConfigFromExtension.js.map +1 -1
- package/pulumi/apps/extensions/getOsConfigFromExtension.js +2 -2
- package/pulumi/apps/extensions/getOsConfigFromExtension.js.map +1 -1
- package/pulumi/apps/extensions/getVpcConfigFromExtension.js +1 -1
- package/pulumi/apps/extensions/getVpcConfigFromExtension.js.map +1 -1
- package/pulumi/apps/extensions/isProductionDefaultEnabled.d.ts +16 -0
- package/pulumi/apps/extensions/isProductionDefaultEnabled.js +9 -0
- package/pulumi/apps/extensions/isProductionDefaultEnabled.js.map +1 -0
- package/pulumi/apps/extensions/isVpcEnabled.d.ts +14 -0
- package/pulumi/apps/extensions/isVpcEnabled.js +8 -0
- package/pulumi/apps/extensions/isVpcEnabled.js.map +1 -0
- package/pulumi/apps/syncSystem/types.d.ts +2 -2
- package/pulumi/extensions/AdminPulumi.js +3 -2
- package/pulumi/extensions/AdminPulumi.js.map +1 -1
- package/pulumi/extensions/ApiPulumi.js +3 -2
- package/pulumi/extensions/ApiPulumi.js.map +1 -1
- package/pulumi/extensions/CorePulumi.js +3 -2
- package/pulumi/extensions/CorePulumi.js.map +1 -1
- package/pulumi/extensions/index.d.ts +53 -22
- package/pulumi/extensions/index.js +12 -9
- package/pulumi/extensions/index.js.map +1 -1
- package/pulumi/features/AdminPulumi/AdminPulumi.d.ts +1 -1
- package/pulumi/features/AdminPulumi/AdminPulumi.js +1 -1
- package/pulumi/features/AdminPulumi/AdminPulumi.js.map +1 -1
- package/pulumi/features/ApiPulumi/ApiPulumi.d.ts +1 -1
- package/pulumi/features/ApiPulumi/ApiPulumi.js +1 -1
- package/pulumi/features/ApiPulumi/ApiPulumi.js.map +1 -1
- package/pulumi/features/CorePulumi/CorePulumi.d.ts +1 -1
- package/pulumi/features/CorePulumi/CorePulumi.js +1 -1
- package/pulumi/features/CorePulumi/CorePulumi.js.map +1 -1
- package/pulumi/features/DefaultSetAdminCustomDomains.d.ts +1 -1
- package/pulumi/features/DefaultSetAdminCustomDomains.js.map +1 -1
- package/pulumi/features/DefaultSetApiCustomDomains.d.ts +1 -1
- package/pulumi/features/DefaultSetApiCustomDomains.js.map +1 -1
- package/pulumi/getAwsProjectSdk.d.ts +2 -12
- package/pulumi/getAwsProjectSdk.js +2 -3
- package/pulumi/getAwsProjectSdk.js.map +1 -1
- package/pulumi/getStackOutput.d.ts +4 -5
- package/pulumi/getStackOutput.js.map +1 -1
- package/pulumi/types.d.ts +4 -3
- package/pulumi/utils/getDistributionUrl.d.ts +9 -0
- package/pulumi/utils/getDistributionUrl.js +8 -0
- package/pulumi/utils/getDistributionUrl.js.map +1 -0
- package/pulumi/utils/index.d.ts +1 -0
- package/pulumi/utils/index.js +1 -0
- package/pulumi/utils/lambdaEnvVariables.js.map +1 -1
- package/registerAwsProjectFeatures.js +38 -9
- package/registerAwsProjectFeatures.js.map +1 -1
- package/services/AdminStackOutputService.d.ts +3 -3
- package/services/AdminStackOutputService.js +2 -2
- package/services/AdminStackOutputService.js.map +1 -1
- package/services/ApiStackOutputService.d.ts +3 -3
- package/services/ApiStackOutputService.js +2 -2
- package/services/ApiStackOutputService.js.map +1 -1
- package/services/AwsDeployInitHostingSdkService/AwsDeployInitHostingSdkService.d.ts +10 -0
- package/services/AwsDeployInitHostingSdkService/AwsDeployInitHostingSdkService.js +30 -0
- package/services/AwsDeployInitHostingSdkService/AwsDeployInitHostingSdkService.js.map +1 -0
- package/services/AwsPulumiInitHostingSdkService/AwsPulumiInitHostingSdkService.d.ts +9 -0
- package/services/AwsPulumiInitHostingSdkService/AwsPulumiInitHostingSdkService.js +24 -0
- package/services/AwsPulumiInitHostingSdkService/AwsPulumiInitHostingSdkService.js.map +1 -0
- package/services/CoreStackOutputService.d.ts +3 -3
- package/services/CoreStackOutputService.js +2 -2
- package/services/CoreStackOutputService.js.map +1 -1
- package/services/GetPulumiService/GetPulumiService.d.ts +4 -3
- package/services/GetPulumiService/GetPulumiService.js +3 -2
- package/services/GetPulumiService/GetPulumiService.js.map +1 -1
- package/services/GetPulumiVersionService/GetPulumiVersionService.d.ts +5 -0
- package/services/GetPulumiVersionService/GetPulumiVersionService.js +46 -0
- package/services/GetPulumiVersionService/GetPulumiVersionService.js.map +1 -0
- package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.d.ts +14 -0
- package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.js +15 -0
- package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.js.map +1 -0
- package/services/IsRemotePulumiBackendService/index.d.ts +1 -0
- package/services/IsRemotePulumiBackendService/index.js +1 -0
- package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.d.ts +20 -0
- package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.js +63 -0
- package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.js.map +1 -0
- package/services/ListAppLambdaFunctionsService/index.d.ts +1 -0
- package/services/ListAppLambdaFunctionsService/index.js +1 -0
- package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.d.ts +8 -0
- package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.js +31 -0
- package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.js.map +1 -0
- package/services/ListDeployedEnvironmentsService/index.d.ts +1 -0
- package/services/ListDeployedEnvironmentsService/index.js +1 -0
- package/services/PulumiExportService/PulumiExportService.d.ts +16 -0
- package/services/PulumiExportService/PulumiExportService.js +54 -0
- package/services/PulumiExportService/PulumiExportService.js.map +1 -0
- package/services/PulumiExportService/index.d.ts +1 -0
- package/services/PulumiExportService/index.js +1 -0
- package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.d.ts +5 -0
- package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.js +15 -0
- package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.js.map +1 -0
- package/services/PulumiGetConfigPassphraseService/index.d.ts +1 -0
- package/services/PulumiGetConfigPassphraseService/index.js +1 -0
- package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.d.ts +5 -0
- package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.js +15 -0
- package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.js.map +1 -0
- package/services/PulumiGetSecretsProviderService/index.d.ts +1 -0
- package/services/PulumiGetSecretsProviderService/index.js +1 -0
- package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.d.ts +16 -0
- package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js +69 -0
- package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js.map +1 -0
- package/services/PulumiGetStackOutputService/index.d.ts +1 -0
- package/services/PulumiGetStackOutputService/index.js +1 -0
- package/services/PulumiGetStackOutputService/mapStackOutput.d.ts +1 -0
- package/services/PulumiGetStackOutputService/mapStackOutput.js +22 -0
- package/services/PulumiGetStackOutputService/mapStackOutput.js.map +1 -0
- package/services/PulumiImportService/PulumiImportService.d.ts +13 -0
- package/services/PulumiImportService/PulumiImportService.js +64 -0
- package/services/PulumiImportService/PulumiImportService.js.map +1 -0
- package/services/PulumiImportService/index.d.ts +1 -0
- package/services/PulumiImportService/index.js +1 -0
- package/services/PulumiLoginService/PulumiLoginService.d.ts +13 -0
- package/services/PulumiLoginService/PulumiLoginService.js +59 -0
- package/services/PulumiLoginService/PulumiLoginService.js.map +1 -0
- package/services/PulumiLoginService/index.d.ts +1 -0
- package/services/PulumiLoginService/index.js +1 -0
- package/services/PulumiSelectStackService/PulumiSelectStackService.d.ts +20 -0
- package/services/PulumiSelectStackService/PulumiSelectStackService.js +106 -0
- package/services/PulumiSelectStackService/PulumiSelectStackService.js.map +1 -0
- package/services/PulumiSelectStackService/index.d.ts +1 -0
- package/services/PulumiSelectStackService/index.js +1 -0
- package/services/StackOutputCacheService/StackOutputCacheService.d.ts +21 -0
- package/services/StackOutputCacheService/StackOutputCacheService.js +90 -0
- package/services/StackOutputCacheService/StackOutputCacheService.js.map +1 -0
- package/services/StackOutputCacheService/index.d.ts +1 -0
- package/services/StackOutputCacheService/index.js +1 -0
- package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.d.ts +14 -0
- package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.js +55 -0
- package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.js.map +1 -0
- package/services/WatchedLambdaFunctionsService/index.d.ts +1 -0
- package/services/WatchedLambdaFunctionsService/index.js +1 -0
- package/utils/withPulumiConfigPassphrase.d.ts +1 -0
- package/utils/withPulumiConfigPassphrase.js +7 -0
- package/utils/withPulumiConfigPassphrase.js.map +1 -0
- package/abstractions/ApiGqlClient.d.ts +0 -23
- package/abstractions/ApiGqlClient.js +0 -5
- package/abstractions/ApiGqlClient.js.map +0 -1
- package/abstractions/InvokeLambdaFunction.d.ts +0 -18
- package/abstractions/InvokeLambdaFunction.js +0 -5
- package/abstractions/InvokeLambdaFunction.js.map +0 -1
- package/abstractions/features/pulumi/AdminPulumi.d.ts +0 -9
- package/abstractions/features/pulumi/AdminPulumi.js +0 -5
- package/abstractions/features/pulumi/AdminPulumi.js.map +0 -1
- package/abstractions/features/pulumi/ApiPulumi.d.ts +0 -9
- package/abstractions/features/pulumi/ApiPulumi.js +0 -5
- package/abstractions/features/pulumi/ApiPulumi.js.map +0 -1
- package/abstractions/features/pulumi/CorePulumi.d.ts +0 -9
- package/abstractions/features/pulumi/CorePulumi.js +0 -5
- package/abstractions/features/pulumi/CorePulumi.js.map +0 -1
- package/abstractions/features/pulumi/SetAdminCustomDomains.d.ts +0 -9
- package/abstractions/features/pulumi/SetAdminCustomDomains.js +0 -5
- package/abstractions/features/pulumi/SetAdminCustomDomains.js.map +0 -1
- package/abstractions/features/pulumi/SetApiCustomDomains.d.ts +0 -9
- package/abstractions/features/pulumi/SetApiCustomDomains.js +0 -5
- package/abstractions/features/pulumi/SetApiCustomDomains.js.map +0 -1
- package/abstractions/features/pulumi/index.d.ts +0 -5
- package/abstractions/features/pulumi/index.js +0 -5
- package/abstractions/services/AdminStackOutputService.d.ts +0 -13
- package/abstractions/services/AdminStackOutputService.js +0 -5
- package/abstractions/services/AdminStackOutputService.js.map +0 -1
- package/abstractions/services/ApiStackOutputService.d.ts +0 -29
- package/abstractions/services/ApiStackOutputService.js +0 -5
- package/abstractions/services/ApiStackOutputService.js.map +0 -1
- package/abstractions/services/CoreStackOutputService.d.ts +0 -16
- package/abstractions/services/CoreStackOutputService.js +0 -5
- package/abstractions/services/CoreStackOutputService.js.map +0 -1
- package/exports/extensions.d.ts +0 -5
- package/exports/extensions.js +0 -5
- package/exports/infra.d.ts +0 -1
- package/exports/infra.js +0 -1
- package/extensions/AwsDefaultRegion.d.ts +0 -4
- package/extensions/AwsDefaultRegion.js +0 -23
- package/extensions/AwsDefaultRegion.js.map +0 -1
- package/extensions/BackgroundTasks.d.ts +0 -4
- package/extensions/BackgroundTasks.js +0 -24
- package/extensions/BackgroundTasks.js.map +0 -1
- package/extensions/Cms/ModelFieldCompression.d.ts +0 -4
- package/extensions/Cms/ModelFieldCompression.js +0 -24
- package/extensions/Cms/ModelFieldCompression.js.map +0 -1
- package/extensions/Mailer/Smtp.d.ts +0 -8
- package/extensions/Mailer/Smtp.js +0 -21
- package/extensions/Mailer/Smtp.js.map +0 -1
- package/extensions/Mailer/Smtp.test.js +0 -127
- package/extensions/Mailer/Smtp.test.js.map +0 -1
- package/extensions/Mailer/SmtpParamsSchema.d.ts +0 -9
- package/extensions/Mailer/SmtpParamsSchema.js +0 -17
- package/extensions/Mailer/SmtpParamsSchema.js.map +0 -1
- package/extensions/ProjectAws/AutoInstall.d.ts +0 -9
- package/extensions/ProjectAws/AutoInstall.js +0 -20
- package/extensions/ProjectAws/AutoInstall.js.map +0 -1
- package/extensions/routePath.d.ts +0 -20
- package/extensions/routePath.js +0 -13
- package/extensions/routePath.js.map +0 -1
- package/pulumi/extensions/AdminCustomDomains.d.ts +0 -9
- package/pulumi/extensions/AdminCustomDomains.js +0 -20
- package/pulumi/extensions/AdminCustomDomains.js.map +0 -1
- package/pulumi/extensions/ApiCustomDomains.d.ts +0 -9
- package/pulumi/extensions/ApiCustomDomains.js +0 -20
- package/pulumi/extensions/ApiCustomDomains.js.map +0 -1
- package/pulumi/extensions/AwsTags.d.ts +0 -4
- package/pulumi/extensions/AwsTags.js +0 -16
- package/pulumi/extensions/AwsTags.js.map +0 -1
- package/pulumi/extensions/BlueGreenDeployments.d.ts +0 -34
- package/pulumi/extensions/BlueGreenDeployments.js +0 -38
- package/pulumi/extensions/BlueGreenDeployments.js.map +0 -1
- package/pulumi/extensions/OpenSearch.d.ts +0 -10
- package/pulumi/extensions/OpenSearch.js +0 -21
- package/pulumi/extensions/OpenSearch.js.map +0 -1
- package/pulumi/extensions/Vpc.d.ts +0 -15
- package/pulumi/extensions/Vpc.js +0 -26
- package/pulumi/extensions/Vpc.js.map +0 -1
- /package/extensions/{Mailer/Smtp.test.d.ts → registerExtensionImplementations.d.ts} +0 -0
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import react from "react";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { defineExtension } from "@webiny/project/defineExtension/index.js";
|
|
4
|
-
import { EnvVar } from "@webiny/project/extensions/index.js";
|
|
5
|
-
const AwsDefaultRegion = defineExtension({
|
|
6
|
-
type: "Aws/DefaultRegion",
|
|
7
|
-
tags: {
|
|
8
|
-
runtimeContext: "project"
|
|
9
|
-
},
|
|
10
|
-
description: "Set the default AWS region for the project.",
|
|
11
|
-
paramsSchema: z.object({
|
|
12
|
-
name: z.string().describe("The AWS region name.")
|
|
13
|
-
}),
|
|
14
|
-
render (props) {
|
|
15
|
-
return /*#__PURE__*/ react.createElement(EnvVar, {
|
|
16
|
-
varName: "AWS_REGION",
|
|
17
|
-
value: props.name
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
export { AwsDefaultRegion };
|
|
22
|
-
|
|
23
|
-
//# sourceMappingURL=AwsDefaultRegion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/AwsDefaultRegion.js","sources":["../../src/extensions/AwsDefaultRegion.tsx"],"sourcesContent":["import React from \"react\";\nimport { z } from \"zod\";\nimport { defineExtension } from \"@webiny/project/defineExtension/index.js\";\nimport { EnvVar } from \"@webiny/project/extensions/index.js\";\n\nexport const AwsDefaultRegion = defineExtension({\n type: \"Aws/DefaultRegion\",\n tags: { runtimeContext: \"project\" },\n description: \"Set the default AWS region for the project.\",\n paramsSchema: z.object({\n name: z.string().describe(\"The AWS region name.\")\n }),\n render(props) {\n return <EnvVar varName=\"AWS_REGION\" value={props.name} />;\n }\n});\n"],"names":["AwsDefaultRegion","defineExtension","z","props","EnvVar"],"mappings":";;;;AAKO,MAAMA,mBAAmBC,gBAAgB;IAC5C,MAAM;IACN,MAAM;QAAE,gBAAgB;IAAU;IAClC,aAAa;IACb,cAAcC,EAAE,MAAM,CAAC;QACnB,MAAMA,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC9B;IACA,QAAOC,KAAK;QACR,OAAO,WAAP,GAAO,oBAACC,QAAMA;YAAC,SAAQ;YAAa,OAAOD,MAAM,IAAI;;IACzD;AACJ"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import react from "react";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { defineExtension } from "@webiny/project/defineExtension/index.js";
|
|
4
|
-
import { BuildParam } from "@webiny/project/extensions/index.js";
|
|
5
|
-
const paramsSchema = z.object({
|
|
6
|
-
retentionDays: z.number().int().min(0).max(3650).describe("Default retention period (in days) for completed background task runs. 0 = never delete. Max 3650.")
|
|
7
|
-
});
|
|
8
|
-
const BackgroundTasks = defineExtension({
|
|
9
|
-
type: "Api/BackgroundTasks",
|
|
10
|
-
tags: {
|
|
11
|
-
runtimeContext: "project"
|
|
12
|
-
},
|
|
13
|
-
description: "Configure default settings for background tasks. The retention value is used as the default when no admin has explicitly set a value via the Settings UI.",
|
|
14
|
-
paramsSchema: paramsSchema,
|
|
15
|
-
render (params) {
|
|
16
|
-
return /*#__PURE__*/ react.createElement(BuildParam, {
|
|
17
|
-
paramName: "BackgroundTasks.RetentionDays",
|
|
18
|
-
value: params.retentionDays
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
export { BackgroundTasks };
|
|
23
|
-
|
|
24
|
-
//# sourceMappingURL=BackgroundTasks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/BackgroundTasks.js","sources":["../../src/extensions/BackgroundTasks.tsx"],"sourcesContent":["import React from \"react\";\nimport { z } from \"zod\";\nimport { defineExtension } from \"@webiny/project/defineExtension/index.js\";\nimport { BuildParam } from \"@webiny/project/extensions/index.js\";\n\nconst paramsSchema = z.object({\n retentionDays: z\n .number()\n .int()\n .min(0)\n .max(3650)\n .describe(\n \"Default retention period (in days) for completed background task runs. 0 = never delete. Max 3650.\"\n )\n});\n\nexport const BackgroundTasks = defineExtension({\n type: \"Api/BackgroundTasks\",\n tags: { runtimeContext: \"project\" },\n description:\n \"Configure default settings for background tasks. The retention value is used as the default when no admin has explicitly set a value via the Settings UI.\",\n paramsSchema,\n render(params) {\n return (\n <BuildParam paramName=\"BackgroundTasks.RetentionDays\" value={params.retentionDays} />\n );\n }\n});\n"],"names":["paramsSchema","z","BackgroundTasks","defineExtension","params","BuildParam"],"mappings":";;;;AAKA,MAAMA,eAAeC,EAAE,MAAM,CAAC;IAC1B,eAAeA,EAAAA,MACJ,GACN,GAAG,GACH,GAAG,CAAC,GACJ,GAAG,CAAC,MACJ,QAAQ,CACL;AAEZ;AAEO,MAAMC,kBAAkBC,gBAAgB;IAC3C,MAAM;IACN,MAAM;QAAE,gBAAgB;IAAU;IAClC,aACI;IACJH,cAAAA;IACA,QAAOI,MAAM;QACT,OAAO,WAAP,GACI,oBAACC,YAAUA;YAAC,WAAU;YAAgC,OAAOD,OAAO,aAAa;;IAEzF;AACJ"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import react from "react";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { defineExtension } from "@webiny/project/defineExtension/index.js";
|
|
4
|
-
import { BuildParam } from "@webiny/project/extensions/index.js";
|
|
5
|
-
const paramsSchema = z.object({
|
|
6
|
-
enabled: z.boolean().describe("Enable compression of model fields before storing in the database.")
|
|
7
|
-
});
|
|
8
|
-
const ModelFieldCompression = defineExtension({
|
|
9
|
-
type: "Api/Cms/ModelFieldCompression",
|
|
10
|
-
tags: {
|
|
11
|
-
runtimeContext: "project"
|
|
12
|
-
},
|
|
13
|
-
description: "Enable or disable compression of Headless CMS model fields at the database storage level.",
|
|
14
|
-
paramsSchema: paramsSchema,
|
|
15
|
-
render (params) {
|
|
16
|
-
return /*#__PURE__*/ react.createElement(BuildParam, {
|
|
17
|
-
paramName: "ContentModelFieldCompression",
|
|
18
|
-
value: params.enabled
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
export { ModelFieldCompression };
|
|
23
|
-
|
|
24
|
-
//# sourceMappingURL=ModelFieldCompression.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/Cms/ModelFieldCompression.js","sources":["../../../src/extensions/Cms/ModelFieldCompression.tsx"],"sourcesContent":["import React from \"react\";\nimport { z } from \"zod\";\nimport { defineExtension } from \"@webiny/project/defineExtension/index.js\";\nimport { BuildParam } from \"@webiny/project/extensions/index.js\";\n\nconst paramsSchema = z.object({\n enabled: z\n .boolean()\n .describe(\"Enable compression of model fields before storing in the database.\")\n});\n\nexport const ModelFieldCompression = defineExtension({\n type: \"Api/Cms/ModelFieldCompression\",\n tags: { runtimeContext: \"project\" },\n description:\n \"Enable or disable compression of Headless CMS model fields at the database storage level.\",\n paramsSchema,\n render(params) {\n return <BuildParam paramName=\"ContentModelFieldCompression\" value={params.enabled} />;\n }\n});\n"],"names":["paramsSchema","z","ModelFieldCompression","defineExtension","params","BuildParam"],"mappings":";;;;AAKA,MAAMA,eAAeC,EAAE,MAAM,CAAC;IAC1B,SAASA,EAAAA,OACG,GACP,QAAQ,CAAC;AAClB;AAEO,MAAMC,wBAAwBC,gBAAgB;IACjD,MAAM;IACN,MAAM;QAAE,gBAAgB;IAAU;IAClC,aACI;IACJH,cAAAA;IACA,QAAOI,MAAM;QACT,OAAO,WAAP,GAAO,oBAACC,YAAUA;YAAC,WAAU;YAA+B,OAAOD,OAAO,OAAO;;IACrF;AACJ"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const Smtp: import("@webiny/project/defineExtension/defineExtension.js").ExtensionComponent<import("zod").ZodObject<{
|
|
2
|
-
host: import("zod").ZodString;
|
|
3
|
-
port: import("zod").ZodNumber;
|
|
4
|
-
user: import("zod").ZodString;
|
|
5
|
-
password: import("zod").ZodString;
|
|
6
|
-
from: import("zod").ZodString;
|
|
7
|
-
replyTo: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8
|
-
}, import("zod/v4/core").$strip>>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import react from "react";
|
|
2
|
-
import { defineExtension } from "@webiny/project/defineExtension/index.js";
|
|
3
|
-
import { BuildParam } from "@webiny/project/extensions/index.js";
|
|
4
|
-
import { SmtpParamsSchema } from "./SmtpParamsSchema.js";
|
|
5
|
-
const Smtp = defineExtension({
|
|
6
|
-
type: "Api/Mailer/Smtp",
|
|
7
|
-
tags: {
|
|
8
|
-
runtimeContext: "project"
|
|
9
|
-
},
|
|
10
|
-
description: "Configure mailer SMTP transport settings via code. Always pass the password through a build-time env var, e.g. `password={process.env.SMTP_PASSWORD!}` — the value is serialized into the build artifact, so hard-coding it would commit the secret to source control.",
|
|
11
|
-
paramsSchema: SmtpParamsSchema,
|
|
12
|
-
render (params) {
|
|
13
|
-
return /*#__PURE__*/ react.createElement(BuildParam, {
|
|
14
|
-
paramName: "Mailer.SmtpSettings",
|
|
15
|
-
value: params
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
export { Smtp };
|
|
20
|
-
|
|
21
|
-
//# sourceMappingURL=Smtp.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/Mailer/Smtp.js","sources":["../../../src/extensions/Mailer/Smtp.tsx"],"sourcesContent":["import React from \"react\";\nimport { defineExtension } from \"@webiny/project/defineExtension/index.js\";\nimport { BuildParam } from \"@webiny/project/extensions/index.js\";\nimport { SmtpParamsSchema } from \"./SmtpParamsSchema.js\";\n\nexport const Smtp = defineExtension({\n type: \"Api/Mailer/Smtp\",\n tags: { runtimeContext: \"project\" },\n description:\n \"Configure mailer SMTP transport settings via code. Always pass the password through a build-time env var, e.g. `password={process.env.SMTP_PASSWORD!}` — the value is serialized into the build artifact, so hard-coding it would commit the secret to source control.\",\n paramsSchema: SmtpParamsSchema,\n render(params) {\n return <BuildParam paramName=\"Mailer.SmtpSettings\" value={params} />;\n }\n});\n"],"names":["Smtp","defineExtension","SmtpParamsSchema","params","BuildParam"],"mappings":";;;;AAKO,MAAMA,OAAOC,gBAAgB;IAChC,MAAM;IACN,MAAM;QAAE,gBAAgB;IAAU;IAClC,aACI;IACJ,cAAcC;IACd,QAAOC,MAAM;QACT,OAAO,WAAP,GAAO,oBAACC,YAAUA;YAAC,WAAU;YAAsB,OAAOD;;IAC9D;AACJ"}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from "vitest";
|
|
2
|
-
import { SmtpParamsSchema } from "./SmtpParamsSchema.js";
|
|
3
|
-
const validParams = {
|
|
4
|
-
host: "smtp.example.com",
|
|
5
|
-
port: 587,
|
|
6
|
-
user: "smtp-user",
|
|
7
|
-
password: "secret",
|
|
8
|
-
from: "Webiny <test@webiny.com>",
|
|
9
|
-
replyTo: "No-reply <no-reply@webiny.com>"
|
|
10
|
-
};
|
|
11
|
-
describe("Smtp paramsSchema", ()=>{
|
|
12
|
-
describe("valid inputs", ()=>{
|
|
13
|
-
it("accepts a complete valid config", async ()=>{
|
|
14
|
-
const result = await SmtpParamsSchema.safeParseAsync(validParams);
|
|
15
|
-
expect(result.success).toBe(true);
|
|
16
|
-
});
|
|
17
|
-
it("accepts config without replyTo (it is optional)", async ()=>{
|
|
18
|
-
const { replyTo: _, ...params } = validParams;
|
|
19
|
-
const result = await SmtpParamsSchema.safeParseAsync(params);
|
|
20
|
-
expect(result.success).toBe(true);
|
|
21
|
-
});
|
|
22
|
-
it("accepts bare addr-spec for from and replyTo", async ()=>{
|
|
23
|
-
const result = await SmtpParamsSchema.safeParseAsync({
|
|
24
|
-
...validParams,
|
|
25
|
-
from: "test@webiny.com",
|
|
26
|
-
replyTo: "no-reply@webiny.com"
|
|
27
|
-
});
|
|
28
|
-
expect(result.success).toBe(true);
|
|
29
|
-
});
|
|
30
|
-
});
|
|
31
|
-
describe("react-properties serialization bug", ()=>{
|
|
32
|
-
it("password={} reproduces the 'expected string, received object' error", async ()=>{
|
|
33
|
-
const result = await SmtpParamsSchema.safeParseAsync({
|
|
34
|
-
...validParams,
|
|
35
|
-
password: {}
|
|
36
|
-
});
|
|
37
|
-
expect(result.success).toBe(false);
|
|
38
|
-
const issue = result.error?.issues[0];
|
|
39
|
-
expect(issue?.code).toBe("invalid_type");
|
|
40
|
-
expect(issue?.path).toEqual([
|
|
41
|
-
"password"
|
|
42
|
-
]);
|
|
43
|
-
expect(issue?.message).toBe("Invalid input: expected string, received object");
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
describe("required string fields", ()=>{
|
|
47
|
-
it("rejects missing host", async ()=>{
|
|
48
|
-
const { host: _, ...params } = validParams;
|
|
49
|
-
const result = await SmtpParamsSchema.safeParseAsync(params);
|
|
50
|
-
expect(result.success).toBe(false);
|
|
51
|
-
});
|
|
52
|
-
it("rejects empty host", async ()=>{
|
|
53
|
-
const result = await SmtpParamsSchema.safeParseAsync({
|
|
54
|
-
...validParams,
|
|
55
|
-
host: ""
|
|
56
|
-
});
|
|
57
|
-
expect(result.success).toBe(false);
|
|
58
|
-
});
|
|
59
|
-
it("rejects missing user", async ()=>{
|
|
60
|
-
const { user: _, ...params } = validParams;
|
|
61
|
-
const result = await SmtpParamsSchema.safeParseAsync(params);
|
|
62
|
-
expect(result.success).toBe(false);
|
|
63
|
-
});
|
|
64
|
-
it("rejects empty user", async ()=>{
|
|
65
|
-
const result = await SmtpParamsSchema.safeParseAsync({
|
|
66
|
-
...validParams,
|
|
67
|
-
user: ""
|
|
68
|
-
});
|
|
69
|
-
expect(result.success).toBe(false);
|
|
70
|
-
});
|
|
71
|
-
it("rejects missing password", async ()=>{
|
|
72
|
-
const { password: _, ...params } = validParams;
|
|
73
|
-
const result = await SmtpParamsSchema.safeParseAsync(params);
|
|
74
|
-
expect(result.success).toBe(false);
|
|
75
|
-
});
|
|
76
|
-
it("rejects empty password", async ()=>{
|
|
77
|
-
const result = await SmtpParamsSchema.safeParseAsync({
|
|
78
|
-
...validParams,
|
|
79
|
-
password: ""
|
|
80
|
-
});
|
|
81
|
-
expect(result.success).toBe(false);
|
|
82
|
-
});
|
|
83
|
-
});
|
|
84
|
-
describe("port validation", ()=>{
|
|
85
|
-
it("rejects port 0", async ()=>{
|
|
86
|
-
const result = await SmtpParamsSchema.safeParseAsync({
|
|
87
|
-
...validParams,
|
|
88
|
-
port: 0
|
|
89
|
-
});
|
|
90
|
-
expect(result.success).toBe(false);
|
|
91
|
-
});
|
|
92
|
-
it("rejects negative port", async ()=>{
|
|
93
|
-
const result = await SmtpParamsSchema.safeParseAsync({
|
|
94
|
-
...validParams,
|
|
95
|
-
port: -1
|
|
96
|
-
});
|
|
97
|
-
expect(result.success).toBe(false);
|
|
98
|
-
});
|
|
99
|
-
it("rejects fractional port", async ()=>{
|
|
100
|
-
const result = await SmtpParamsSchema.safeParseAsync({
|
|
101
|
-
...validParams,
|
|
102
|
-
port: 587.5
|
|
103
|
-
});
|
|
104
|
-
expect(result.success).toBe(false);
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
describe("email address validation", ()=>{
|
|
108
|
-
it("rejects invalid from address", async ()=>{
|
|
109
|
-
const result = await SmtpParamsSchema.safeParseAsync({
|
|
110
|
-
...validParams,
|
|
111
|
-
from: "not-an-email"
|
|
112
|
-
});
|
|
113
|
-
expect(result.success).toBe(false);
|
|
114
|
-
expect(result.error?.issues[0].message).toBe("Invalid email address.");
|
|
115
|
-
});
|
|
116
|
-
it("rejects invalid replyTo address", async ()=>{
|
|
117
|
-
const result = await SmtpParamsSchema.safeParseAsync({
|
|
118
|
-
...validParams,
|
|
119
|
-
replyTo: "not-an-email"
|
|
120
|
-
});
|
|
121
|
-
expect(result.success).toBe(false);
|
|
122
|
-
expect(result.error?.issues[0].message).toBe("Invalid email address.");
|
|
123
|
-
});
|
|
124
|
-
});
|
|
125
|
-
});
|
|
126
|
-
|
|
127
|
-
//# sourceMappingURL=Smtp.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/Mailer/Smtp.test.js","sources":["../../../src/extensions/Mailer/Smtp.test.ts"],"sourcesContent":["import { describe, it, expect } from \"vitest\";\nimport { SmtpParamsSchema as schema } from \"./SmtpParamsSchema.js\";\n\nconst validParams = {\n host: \"smtp.example.com\",\n port: 587,\n user: \"smtp-user\",\n password: \"secret\",\n from: \"Webiny <test@webiny.com>\",\n replyTo: \"No-reply <no-reply@webiny.com>\"\n};\n\ndescribe(\"Smtp paramsSchema\", () => {\n describe(\"valid inputs\", () => {\n it(\"accepts a complete valid config\", async () => {\n const result = await schema.safeParseAsync(validParams);\n expect(result.success).toBe(true);\n });\n\n it(\"accepts config without replyTo (it is optional)\", async () => {\n const { replyTo: _, ...params } = validParams;\n const result = await schema.safeParseAsync(params);\n expect(result.success).toBe(true);\n });\n\n it(\"accepts bare addr-spec for from and replyTo\", async () => {\n const result = await schema.safeParseAsync({\n ...validParams,\n from: \"test@webiny.com\",\n replyTo: \"no-reply@webiny.com\"\n });\n expect(result.success).toBe(true);\n });\n });\n\n describe(\"react-properties serialization bug\", () => {\n // When process.env.SMTP_PASSWORD is undefined at build time,\n // react-properties' buildRoots treats value===undefined as \"no value, build from\n // children\". The password Property has no children, so buildRoots returns {}.\n // Zod then validates {} against z.string() → \"expected string, received object\".\n it(\"password={} reproduces the 'expected string, received object' error\", async () => {\n const result = await schema.safeParseAsync({ ...validParams, password: {} });\n expect(result.success).toBe(false);\n const issue = result.error?.issues[0];\n expect(issue?.code).toBe(\"invalid_type\");\n expect(issue?.path).toEqual([\"password\"]);\n expect(issue?.message).toBe(\"Invalid input: expected string, received object\");\n });\n });\n\n describe(\"required string fields\", () => {\n it(\"rejects missing host\", async () => {\n const { host: _, ...params } = validParams;\n const result = await schema.safeParseAsync(params);\n expect(result.success).toBe(false);\n });\n\n it(\"rejects empty host\", async () => {\n const result = await schema.safeParseAsync({ ...validParams, host: \"\" });\n expect(result.success).toBe(false);\n });\n\n it(\"rejects missing user\", async () => {\n const { user: _, ...params } = validParams;\n const result = await schema.safeParseAsync(params);\n expect(result.success).toBe(false);\n });\n\n it(\"rejects empty user\", async () => {\n const result = await schema.safeParseAsync({ ...validParams, user: \"\" });\n expect(result.success).toBe(false);\n });\n\n it(\"rejects missing password\", async () => {\n const { password: _, ...params } = validParams;\n const result = await schema.safeParseAsync(params);\n expect(result.success).toBe(false);\n });\n\n it(\"rejects empty password\", async () => {\n const result = await schema.safeParseAsync({ ...validParams, password: \"\" });\n expect(result.success).toBe(false);\n });\n });\n\n describe(\"port validation\", () => {\n it(\"rejects port 0\", async () => {\n const result = await schema.safeParseAsync({ ...validParams, port: 0 });\n expect(result.success).toBe(false);\n });\n\n it(\"rejects negative port\", async () => {\n const result = await schema.safeParseAsync({ ...validParams, port: -1 });\n expect(result.success).toBe(false);\n });\n\n it(\"rejects fractional port\", async () => {\n const result = await schema.safeParseAsync({ ...validParams, port: 587.5 });\n expect(result.success).toBe(false);\n });\n });\n\n describe(\"email address validation\", () => {\n it(\"rejects invalid from address\", async () => {\n const result = await schema.safeParseAsync({ ...validParams, from: \"not-an-email\" });\n expect(result.success).toBe(false);\n expect(result.error?.issues[0].message).toBe(\"Invalid email address.\");\n });\n\n it(\"rejects invalid replyTo address\", async () => {\n const result = await schema.safeParseAsync({\n ...validParams,\n replyTo: \"not-an-email\"\n });\n expect(result.success).toBe(false);\n expect(result.error?.issues[0].message).toBe(\"Invalid email address.\");\n });\n });\n});\n"],"names":["validParams","describe","it","result","schema","expect","_","params","issue"],"mappings":";;AAGA,MAAMA,cAAc;IAChB,MAAM;IACN,MAAM;IACN,MAAM;IACN,UAAU;IACV,MAAM;IACN,SAAS;AACb;AAEAC,SAAS,qBAAqB;IAC1BA,SAAS,gBAAgB;QACrBC,GAAG,mCAAmC;YAClC,MAAMC,SAAS,MAAMC,iBAAAA,cAAqB,CAACJ;YAC3CK,OAAOF,OAAO,OAAO,EAAE,IAAI,CAAC;QAChC;QAEAD,GAAG,mDAAmD;YAClD,MAAM,EAAE,SAASI,CAAC,EAAE,GAAGC,QAAQ,GAAGP;YAClC,MAAMG,SAAS,MAAMC,iBAAAA,cAAqB,CAACG;YAC3CF,OAAOF,OAAO,OAAO,EAAE,IAAI,CAAC;QAChC;QAEAD,GAAG,+CAA+C;YAC9C,MAAMC,SAAS,MAAMC,iBAAAA,cAAqB,CAAC;gBACvC,GAAGJ,WAAW;gBACd,MAAM;gBACN,SAAS;YACb;YACAK,OAAOF,OAAO,OAAO,EAAE,IAAI,CAAC;QAChC;IACJ;IAEAF,SAAS,sCAAsC;QAK3CC,GAAG,uEAAuE;YACtE,MAAMC,SAAS,MAAMC,iBAAAA,cAAqB,CAAC;gBAAE,GAAGJ,WAAW;gBAAE,UAAU,CAAC;YAAE;YAC1EK,OAAOF,OAAO,OAAO,EAAE,IAAI,CAAC;YAC5B,MAAMK,QAAQL,OAAO,KAAK,EAAE,MAAM,CAAC,EAAE;YACrCE,OAAOG,OAAO,MAAM,IAAI,CAAC;YACzBH,OAAOG,OAAO,MAAM,OAAO,CAAC;gBAAC;aAAW;YACxCH,OAAOG,OAAO,SAAS,IAAI,CAAC;QAChC;IACJ;IAEAP,SAAS,0BAA0B;QAC/BC,GAAG,wBAAwB;YACvB,MAAM,EAAE,MAAMI,CAAC,EAAE,GAAGC,QAAQ,GAAGP;YAC/B,MAAMG,SAAS,MAAMC,iBAAAA,cAAqB,CAACG;YAC3CF,OAAOF,OAAO,OAAO,EAAE,IAAI,CAAC;QAChC;QAEAD,GAAG,sBAAsB;YACrB,MAAMC,SAAS,MAAMC,iBAAAA,cAAqB,CAAC;gBAAE,GAAGJ,WAAW;gBAAE,MAAM;YAAG;YACtEK,OAAOF,OAAO,OAAO,EAAE,IAAI,CAAC;QAChC;QAEAD,GAAG,wBAAwB;YACvB,MAAM,EAAE,MAAMI,CAAC,EAAE,GAAGC,QAAQ,GAAGP;YAC/B,MAAMG,SAAS,MAAMC,iBAAAA,cAAqB,CAACG;YAC3CF,OAAOF,OAAO,OAAO,EAAE,IAAI,CAAC;QAChC;QAEAD,GAAG,sBAAsB;YACrB,MAAMC,SAAS,MAAMC,iBAAAA,cAAqB,CAAC;gBAAE,GAAGJ,WAAW;gBAAE,MAAM;YAAG;YACtEK,OAAOF,OAAO,OAAO,EAAE,IAAI,CAAC;QAChC;QAEAD,GAAG,4BAA4B;YAC3B,MAAM,EAAE,UAAUI,CAAC,EAAE,GAAGC,QAAQ,GAAGP;YACnC,MAAMG,SAAS,MAAMC,iBAAAA,cAAqB,CAACG;YAC3CF,OAAOF,OAAO,OAAO,EAAE,IAAI,CAAC;QAChC;QAEAD,GAAG,0BAA0B;YACzB,MAAMC,SAAS,MAAMC,iBAAAA,cAAqB,CAAC;gBAAE,GAAGJ,WAAW;gBAAE,UAAU;YAAG;YAC1EK,OAAOF,OAAO,OAAO,EAAE,IAAI,CAAC;QAChC;IACJ;IAEAF,SAAS,mBAAmB;QACxBC,GAAG,kBAAkB;YACjB,MAAMC,SAAS,MAAMC,iBAAAA,cAAqB,CAAC;gBAAE,GAAGJ,WAAW;gBAAE,MAAM;YAAE;YACrEK,OAAOF,OAAO,OAAO,EAAE,IAAI,CAAC;QAChC;QAEAD,GAAG,yBAAyB;YACxB,MAAMC,SAAS,MAAMC,iBAAAA,cAAqB,CAAC;gBAAE,GAAGJ,WAAW;gBAAE,MAAM;YAAG;YACtEK,OAAOF,OAAO,OAAO,EAAE,IAAI,CAAC;QAChC;QAEAD,GAAG,2BAA2B;YAC1B,MAAMC,SAAS,MAAMC,iBAAAA,cAAqB,CAAC;gBAAE,GAAGJ,WAAW;gBAAE,MAAM;YAAM;YACzEK,OAAOF,OAAO,OAAO,EAAE,IAAI,CAAC;QAChC;IACJ;IAEAF,SAAS,4BAA4B;QACjCC,GAAG,gCAAgC;YAC/B,MAAMC,SAAS,MAAMC,iBAAAA,cAAqB,CAAC;gBAAE,GAAGJ,WAAW;gBAAE,MAAM;YAAe;YAClFK,OAAOF,OAAO,OAAO,EAAE,IAAI,CAAC;YAC5BE,OAAOF,OAAO,KAAK,EAAE,MAAM,CAAC,EAAE,CAAC,SAAS,IAAI,CAAC;QACjD;QAEAD,GAAG,mCAAmC;YAClC,MAAMC,SAAS,MAAMC,iBAAAA,cAAqB,CAAC;gBACvC,GAAGJ,WAAW;gBACd,SAAS;YACb;YACAK,OAAOF,OAAO,OAAO,EAAE,IAAI,CAAC;YAC5BE,OAAOF,OAAO,KAAK,EAAE,MAAM,CAAC,EAAE,CAAC,SAAS,IAAI,CAAC;QACjD;IACJ;AACJ"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import email_addresses from "email-addresses";
|
|
3
|
-
const isMailboxAddress = (value)=>null !== email_addresses.parseOneAddress(value);
|
|
4
|
-
const mailboxAddress = z.string().refine(isMailboxAddress, {
|
|
5
|
-
message: "Invalid email address."
|
|
6
|
-
});
|
|
7
|
-
const SmtpParamsSchema = z.object({
|
|
8
|
-
host: z.string().min(1).describe("SMTP server hostname."),
|
|
9
|
-
port: z.number().int().positive().describe("SMTP server port."),
|
|
10
|
-
user: z.string().min(1).describe("SMTP authentication username."),
|
|
11
|
-
password: z.string().min(1).describe("SMTP authentication password. Pass via env var (e.g. `process.env.SMTP_PASSWORD!`), never hard-code."),
|
|
12
|
-
from: mailboxAddress.describe("Default 'from' address."),
|
|
13
|
-
replyTo: mailboxAddress.optional().describe("Default 'reply-to' address.")
|
|
14
|
-
});
|
|
15
|
-
export { SmtpParamsSchema };
|
|
16
|
-
|
|
17
|
-
//# sourceMappingURL=SmtpParamsSchema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/Mailer/SmtpParamsSchema.js","sources":["../../../src/extensions/Mailer/SmtpParamsSchema.ts"],"sourcesContent":["import { z } from \"zod\";\nimport emailAddresses from \"email-addresses\";\n\n// Accept both addr-spec (\"foo@bar.com\") and name-addr (\"Foo <foo@bar.com>\") forms.\nconst isMailboxAddress = (value: string): boolean => {\n return emailAddresses.parseOneAddress(value) !== null;\n};\n\nconst mailboxAddress = z.string().refine(isMailboxAddress, { message: \"Invalid email address.\" });\n\nexport const SmtpParamsSchema = z.object({\n host: z.string().min(1).describe(\"SMTP server hostname.\"),\n port: z.number().int().positive().describe(\"SMTP server port.\"),\n user: z.string().min(1).describe(\"SMTP authentication username.\"),\n password: z\n .string()\n .min(1)\n .describe(\n \"SMTP authentication password. Pass via env var (e.g. `process.env.SMTP_PASSWORD!`), never hard-code.\"\n ),\n from: mailboxAddress.describe(\"Default 'from' address.\"),\n replyTo: mailboxAddress.optional().describe(\"Default 'reply-to' address.\")\n});\n"],"names":["isMailboxAddress","value","emailAddresses","mailboxAddress","z","SmtpParamsSchema"],"mappings":";;AAIA,MAAMA,mBAAmB,CAACC,QACfC,AAA0C,SAA1CA,gBAAAA,eAA8B,CAACD;AAG1C,MAAME,iBAAiBC,EAAE,MAAM,GAAG,MAAM,CAACJ,kBAAkB;IAAE,SAAS;AAAyB;AAExF,MAAMK,mBAAmBD,EAAE,MAAM,CAAC;IACrC,MAAMA,EAAE,MAAM,GAAG,GAAG,CAAC,GAAG,QAAQ,CAAC;IACjC,MAAMA,EAAE,MAAM,GAAG,GAAG,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC3C,MAAMA,EAAE,MAAM,GAAG,GAAG,CAAC,GAAG,QAAQ,CAAC;IACjC,UAAUA,EAAAA,MACC,GACN,GAAG,CAAC,GACJ,QAAQ,CACL;IAER,MAAMD,eAAe,QAAQ,CAAC;IAC9B,SAASA,eAAe,QAAQ,GAAG,QAAQ,CAAC;AAChD"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const AutoInstall: import("@webiny/project/extensions").ExtensionComponent<z.ZodObject<{
|
|
3
|
-
adminUser: z.ZodObject<{
|
|
4
|
-
firstName: z.ZodString;
|
|
5
|
-
lastName: z.ZodString;
|
|
6
|
-
email: z.ZodString;
|
|
7
|
-
password: z.ZodString;
|
|
8
|
-
}, z.core.$strip>;
|
|
9
|
-
}, z.core.$strip>>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { defineExtension } from "@webiny/project/defineExtension/index.js";
|
|
3
|
-
const AutoInstall = defineExtension({
|
|
4
|
-
type: "Project/AutoInstall",
|
|
5
|
-
tags: {
|
|
6
|
-
runtimeContext: "project"
|
|
7
|
-
},
|
|
8
|
-
description: "Auto-install Webiny with admin user credentials on first deploy.",
|
|
9
|
-
paramsSchema: z.object({
|
|
10
|
-
adminUser: z.object({
|
|
11
|
-
firstName: z.string().describe("Admin user first name"),
|
|
12
|
-
lastName: z.string().describe("Admin user last name"),
|
|
13
|
-
email: z.string().email().describe("Admin user email"),
|
|
14
|
-
password: z.string().min(8).describe("Admin user password (minimum 8 characters)")
|
|
15
|
-
}).describe("Admin user credentials for installation")
|
|
16
|
-
})
|
|
17
|
-
});
|
|
18
|
-
export { AutoInstall };
|
|
19
|
-
|
|
20
|
-
//# sourceMappingURL=AutoInstall.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/ProjectAws/AutoInstall.js","sources":["../../../src/extensions/ProjectAws/AutoInstall.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineExtension } from \"@webiny/project/defineExtension/index.js\";\n\nexport const AutoInstall = defineExtension({\n type: \"Project/AutoInstall\",\n tags: { runtimeContext: \"project\" },\n description: \"Auto-install Webiny with admin user credentials on first deploy.\",\n paramsSchema: z.object({\n adminUser: z\n .object({\n firstName: z.string().describe(\"Admin user first name\"),\n lastName: z.string().describe(\"Admin user last name\"),\n email: z.string().email().describe(\"Admin user email\"),\n password: z.string().min(8).describe(\"Admin user password (minimum 8 characters)\")\n })\n .describe(\"Admin user credentials for installation\")\n })\n});\n"],"names":["AutoInstall","defineExtension","z"],"mappings":";;AAGO,MAAMA,cAAcC,gBAAgB;IACvC,MAAM;IACN,MAAM;QAAE,gBAAgB;IAAU;IAClC,aAAa;IACb,cAAcC,EAAE,MAAM,CAAC;QACnB,WAAWA,EAAAA,MACA,CAAC;YACJ,WAAWA,EAAE,MAAM,GAAG,QAAQ,CAAC;YAC/B,UAAUA,EAAE,MAAM,GAAG,QAAQ,CAAC;YAC9B,OAAOA,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;YACnC,UAAUA,EAAE,MAAM,GAAG,GAAG,CAAC,GAAG,QAAQ,CAAC;QACzC,GACC,QAAQ,CAAC;IAClB;AACJ"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The `path` prop on `<Api.Route>` feeds two consumers that spell path parameters differently:
|
|
3
|
-
* API Gateway wants `{orderId}`, the DI `HttpRouter` wants `:orderId`. Rather than pick a winner and
|
|
4
|
-
* break whichever projects already used the other, accept both and convert per consumer.
|
|
5
|
-
*
|
|
6
|
-
* Wildcards are left alone. `HttpRouter` matches a trailing `/*`, API Gateway spells the same thing
|
|
7
|
-
* `{proxy+}`, and translating between them changes what the route captures — so a wildcard route
|
|
8
|
-
* has to be written for the target it's aimed at.
|
|
9
|
-
*/
|
|
10
|
-
/** `/orders/:orderId` → `/orders/{orderId}`. Already-braced segments pass through. */
|
|
11
|
-
export declare function toApiGatewayPath(path: string): string;
|
|
12
|
-
/** `/orders/{orderId}` → `/orders/:orderId`. Already-colon segments pass through. */
|
|
13
|
-
export declare function toRouterPath(path: string): string;
|
|
14
|
-
/**
|
|
15
|
-
* `/asd/{id}/xs` + POST → `asd-xs-post`. Handles either parameter syntax.
|
|
16
|
-
*
|
|
17
|
-
* Used for BOTH the Pulumi resource name and the route's DI name, so the name a decorator matches
|
|
18
|
-
* on is the same one that shows up in infrastructure.
|
|
19
|
-
*/
|
|
20
|
-
export declare function deriveRouteName(routePath: string, method: string): string;
|
package/extensions/routePath.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
function toApiGatewayPath(path) {
|
|
2
|
-
return path.replace(/(^|\/):([^/]+)/g, (_match, prefix, name)=>`${prefix}{${name}}`);
|
|
3
|
-
}
|
|
4
|
-
function toRouterPath(path) {
|
|
5
|
-
return path.replace(/\{([^}]+)\}/g, (_match, name)=>`:${name}`);
|
|
6
|
-
}
|
|
7
|
-
function deriveRouteName(routePath, method) {
|
|
8
|
-
const pathPart = routePath.replace(/^\//, "").replace(/\{[^}]*\}/g, "").replace(/(^|\/):[^/]+/g, "$1").replace(/\/+/g, "-").replace(/^-+|-+$/g, "").toLowerCase();
|
|
9
|
-
return `${pathPart}-${method.toLowerCase()}`;
|
|
10
|
-
}
|
|
11
|
-
export { deriveRouteName, toApiGatewayPath, toRouterPath };
|
|
12
|
-
|
|
13
|
-
//# sourceMappingURL=routePath.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/routePath.js","sources":["../../src/extensions/routePath.ts"],"sourcesContent":["/**\n * The `path` prop on `<Api.Route>` feeds two consumers that spell path parameters differently:\n * API Gateway wants `{orderId}`, the DI `HttpRouter` wants `:orderId`. Rather than pick a winner and\n * break whichever projects already used the other, accept both and convert per consumer.\n *\n * Wildcards are left alone. `HttpRouter` matches a trailing `/*`, API Gateway spells the same thing\n * `{proxy+}`, and translating between them changes what the route captures — so a wildcard route\n * has to be written for the target it's aimed at.\n */\n\n/** `/orders/:orderId` → `/orders/{orderId}`. Already-braced segments pass through. */\nexport function toApiGatewayPath(path: string): string {\n return path.replace(/(^|\\/):([^/]+)/g, (_match, prefix: string, name: string) => {\n return `${prefix}{${name}}`;\n });\n}\n\n/** `/orders/{orderId}` → `/orders/:orderId`. Already-colon segments pass through. */\nexport function toRouterPath(path: string): string {\n return path.replace(/\\{([^}]+)\\}/g, (_match, name: string) => {\n return `:${name}`;\n });\n}\n\n/**\n * `/asd/{id}/xs` + POST → `asd-xs-post`. Handles either parameter syntax.\n *\n * Used for BOTH the Pulumi resource name and the route's DI name, so the name a decorator matches\n * on is the same one that shows up in infrastructure.\n */\nexport function deriveRouteName(routePath: string, method: string): string {\n // /asd/{id}/xs + POST → asd-xs-post. Strips parameters in either syntax.\n const pathPart = routePath\n .replace(/^\\//, \"\")\n .replace(/\\{[^}]*\\}/g, \"\")\n .replace(/(^|\\/):[^/]+/g, \"$1\")\n .replace(/\\/+/g, \"-\")\n .replace(/^-+|-+$/g, \"\")\n .toLowerCase();\n\n return `${pathPart}-${method.toLowerCase()}`;\n}\n"],"names":["toApiGatewayPath","path","_match","prefix","name","toRouterPath","deriveRouteName","routePath","method","pathPart"],"mappings":"AAWO,SAASA,iBAAiBC,IAAY;IACzC,OAAOA,KAAK,OAAO,CAAC,mBAAmB,CAACC,QAAQC,QAAgBC,OACrD,GAAGD,OAAO,CAAC,EAAEC,KAAK,CAAC,CAAC;AAEnC;AAGO,SAASC,aAAaJ,IAAY;IACrC,OAAOA,KAAK,OAAO,CAAC,gBAAgB,CAACC,QAAQE,OAClC,CAAC,CAAC,EAAEA,MAAM;AAEzB;AAQO,SAASE,gBAAgBC,SAAiB,EAAEC,MAAc;IAE7D,MAAMC,WAAWF,UACZ,OAAO,CAAC,OAAO,IACf,OAAO,CAAC,cAAc,IACtB,OAAO,CAAC,iBAAiB,MACzB,OAAO,CAAC,QAAQ,KAChB,OAAO,CAAC,YAAY,IACpB,WAAW;IAEhB,OAAO,GAAGE,SAAS,CAAC,EAAED,OAAO,WAAW,IAAI;AAChD"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const AdminCustomDomains: import("@webiny/project/extensions").ExtensionComponent<z.ZodObject<{
|
|
3
|
-
domains: z.ZodArray<z.ZodString>;
|
|
4
|
-
sslMethod: z.ZodDefault<z.ZodEnum<{
|
|
5
|
-
"sni-only": "sni-only";
|
|
6
|
-
vip: "vip";
|
|
7
|
-
}>>;
|
|
8
|
-
certificateArn: z.ZodString;
|
|
9
|
-
}, z.core.$strip>>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { defineExtension } from "@webiny/project/defineExtension/index.js";
|
|
3
|
-
const AdminCustomDomains = defineExtension({
|
|
4
|
-
type: "Infra/Admin/CustomDomains",
|
|
5
|
-
tags: {
|
|
6
|
-
runtimeContext: "project"
|
|
7
|
-
},
|
|
8
|
-
description: "Configure custom domains for the Admin app.",
|
|
9
|
-
paramsSchema: z.object({
|
|
10
|
-
domains: z.array(z.string()).describe("List of custom domains.").min(1),
|
|
11
|
-
sslMethod: z["enum"]([
|
|
12
|
-
"sni-only",
|
|
13
|
-
"vip"
|
|
14
|
-
]).describe("The method to use for SSL/TLS certificate validation.").default("sni-only"),
|
|
15
|
-
certificateArn: z.string().describe("The ARN of the SSL/TLS certificate to use for the custom domains.")
|
|
16
|
-
})
|
|
17
|
-
});
|
|
18
|
-
export { AdminCustomDomains };
|
|
19
|
-
|
|
20
|
-
//# sourceMappingURL=AdminCustomDomains.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pulumi/extensions/AdminCustomDomains.js","sources":["../../../src/pulumi/extensions/AdminCustomDomains.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineExtension } from \"@webiny/project/defineExtension/index.js\";\n\nexport const AdminCustomDomains = defineExtension({\n type: \"Infra/Admin/CustomDomains\",\n tags: { runtimeContext: \"project\" },\n description: \"Configure custom domains for the Admin app.\",\n paramsSchema: z.object({\n domains: z.array(z.string()).describe(\"List of custom domains.\").min(1),\n sslMethod: z\n .enum([\"sni-only\", \"vip\"])\n .describe(\"The method to use for SSL/TLS certificate validation.\")\n .default(\"sni-only\"),\n certificateArn: z\n .string()\n .describe(\"The ARN of the SSL/TLS certificate to use for the custom domains.\")\n })\n});\n"],"names":["AdminCustomDomains","defineExtension","z"],"mappings":";;AAGO,MAAMA,qBAAqBC,gBAAgB;IAC9C,MAAM;IACN,MAAM;QAAE,gBAAgB;IAAU;IAClC,aAAa;IACb,cAAcC,EAAE,MAAM,CAAC;QACnB,SAASA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,QAAQ,CAAC,2BAA2B,GAAG,CAAC;QACrE,WAAWA,CAAC,CAADA,OACF,CAAC;YAAC;YAAY;SAAM,EACxB,QAAQ,CAAC,yDACT,OAAO,CAAC;QACb,gBAAgBA,EAAAA,MACL,GACN,QAAQ,CAAC;IAClB;AACJ"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const ApiCustomDomains: import("@webiny/project/extensions").ExtensionComponent<z.ZodObject<{
|
|
3
|
-
domains: z.ZodArray<z.ZodString>;
|
|
4
|
-
sslMethod: z.ZodDefault<z.ZodEnum<{
|
|
5
|
-
"sni-only": "sni-only";
|
|
6
|
-
vip: "vip";
|
|
7
|
-
}>>;
|
|
8
|
-
certificateArn: z.ZodString;
|
|
9
|
-
}, z.core.$strip>>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { defineExtension } from "@webiny/project/defineExtension/index.js";
|
|
3
|
-
const ApiCustomDomains = defineExtension({
|
|
4
|
-
type: "Infra/Api/CustomDomains",
|
|
5
|
-
tags: {
|
|
6
|
-
runtimeContext: "project"
|
|
7
|
-
},
|
|
8
|
-
description: "Configure custom domains for the API.",
|
|
9
|
-
paramsSchema: z.object({
|
|
10
|
-
domains: z.array(z.string()).describe("List of custom domains.").min(1),
|
|
11
|
-
sslMethod: z["enum"]([
|
|
12
|
-
"sni-only",
|
|
13
|
-
"vip"
|
|
14
|
-
]).describe("The method to use for SSL/TLS certificate validation.").default("sni-only"),
|
|
15
|
-
certificateArn: z.string().describe("The ARN of the SSL/TLS certificate to use for the custom domains.")
|
|
16
|
-
})
|
|
17
|
-
});
|
|
18
|
-
export { ApiCustomDomains };
|
|
19
|
-
|
|
20
|
-
//# sourceMappingURL=ApiCustomDomains.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pulumi/extensions/ApiCustomDomains.js","sources":["../../../src/pulumi/extensions/ApiCustomDomains.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineExtension } from \"@webiny/project/defineExtension/index.js\";\n\nexport const ApiCustomDomains = defineExtension({\n type: \"Infra/Api/CustomDomains\",\n tags: { runtimeContext: \"project\" },\n description: \"Configure custom domains for the API.\",\n paramsSchema: z.object({\n domains: z.array(z.string()).describe(\"List of custom domains.\").min(1),\n sslMethod: z\n .enum([\"sni-only\", \"vip\"])\n .describe(\"The method to use for SSL/TLS certificate validation.\")\n .default(\"sni-only\"),\n certificateArn: z\n .string()\n .describe(\"The ARN of the SSL/TLS certificate to use for the custom domains.\")\n })\n});\n"],"names":["ApiCustomDomains","defineExtension","z"],"mappings":";;AAGO,MAAMA,mBAAmBC,gBAAgB;IAC5C,MAAM;IACN,MAAM;QAAE,gBAAgB;IAAU;IAClC,aAAa;IACb,cAAcC,EAAE,MAAM,CAAC;QACnB,SAASA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,QAAQ,CAAC,2BAA2B,GAAG,CAAC;QACrE,WAAWA,CAAC,CAADA,OACF,CAAC;YAAC;YAAY;SAAM,EACxB,QAAQ,CAAC,yDACT,OAAO,CAAC;QACb,gBAAgBA,EAAAA,MACL,GACN,QAAQ,CAAC;IAClB;AACJ"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { defineExtension } from "@webiny/project/defineExtension/index.js";
|
|
3
|
-
const AwsTags = defineExtension({
|
|
4
|
-
type: "Infra/AwsTags",
|
|
5
|
-
tags: {
|
|
6
|
-
runtimeContext: "project"
|
|
7
|
-
},
|
|
8
|
-
description: "Apply tags to AWS resources during deployment.",
|
|
9
|
-
multiple: true,
|
|
10
|
-
paramsSchema: z.object({
|
|
11
|
-
tags: z.record(z.string(), z.string())
|
|
12
|
-
})
|
|
13
|
-
});
|
|
14
|
-
export { AwsTags };
|
|
15
|
-
|
|
16
|
-
//# sourceMappingURL=AwsTags.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pulumi/extensions/AwsTags.js","sources":["../../../src/pulumi/extensions/AwsTags.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineExtension } from \"@webiny/project/defineExtension/index.js\";\n\nexport const AwsTags = defineExtension({\n type: \"Infra/AwsTags\",\n tags: { runtimeContext: \"project\" },\n description: \"Apply tags to AWS resources during deployment.\",\n multiple: true,\n paramsSchema: z.object({\n tags: z.record(z.string(), z.string())\n })\n});\n"],"names":["AwsTags","defineExtension","z"],"mappings":";;AAGO,MAAMA,UAAUC,gBAAgB;IACnC,MAAM;IACN,MAAM;QAAE,gBAAgB;IAAU;IAClC,aAAa;IACb,UAAU;IACV,cAAcC,EAAE,MAAM,CAAC;QACnB,MAAMA,EAAE,MAAM,CAACA,EAAE,MAAM,IAAIA,EAAE,MAAM;IACvC;AACJ"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import type { NonEmptyArray } from "../apps/blueGreen/types.js";
|
|
3
|
-
export declare const deploymentsSchema: z.ZodTuple<[z.ZodObject<{
|
|
4
|
-
name: z.ZodString;
|
|
5
|
-
env: z.ZodString;
|
|
6
|
-
variant: z.ZodString;
|
|
7
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
8
|
-
name: z.ZodString;
|
|
9
|
-
env: z.ZodString;
|
|
10
|
-
variant: z.ZodString;
|
|
11
|
-
}, z.core.$strip>], null>;
|
|
12
|
-
export declare const BlueGreenDeployments: import("@webiny/project/defineExtension/defineExtension.js").ExtensionComponent<z.ZodObject<{
|
|
13
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
14
|
-
domains: z.ZodObject<{
|
|
15
|
-
acmCertificateArn: z.ZodString;
|
|
16
|
-
sslSupportMethod: z.ZodEnum<{
|
|
17
|
-
"sni-only": "sni-only";
|
|
18
|
-
vip: "vip";
|
|
19
|
-
}>;
|
|
20
|
-
domains: z.ZodObject<{
|
|
21
|
-
api: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<NonEmptyArray<string>, string[]>>;
|
|
22
|
-
admin: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<NonEmptyArray<string>, string[]>>;
|
|
23
|
-
}, z.core.$strip>;
|
|
24
|
-
}, z.core.$strip>;
|
|
25
|
-
deployments: z.ZodTuple<[z.ZodObject<{
|
|
26
|
-
name: z.ZodString;
|
|
27
|
-
env: z.ZodString;
|
|
28
|
-
variant: z.ZodString;
|
|
29
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
-
name: z.ZodString;
|
|
31
|
-
env: z.ZodString;
|
|
32
|
-
variant: z.ZodString;
|
|
33
|
-
}, z.core.$strip>], null>;
|
|
34
|
-
}, z.core.$strip>>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { defineExtension } from "@webiny/project/defineExtension/index.js";
|
|
3
|
-
const nonEmptyStringArray = z.array(z.string()).nonempty().transform((item)=>item);
|
|
4
|
-
const domainsSchema = z.object({
|
|
5
|
-
acmCertificateArn: z.string(),
|
|
6
|
-
sslSupportMethod: z["enum"]([
|
|
7
|
-
"sni-only",
|
|
8
|
-
"vip"
|
|
9
|
-
]),
|
|
10
|
-
domains: z.object({
|
|
11
|
-
api: nonEmptyStringArray,
|
|
12
|
-
admin: nonEmptyStringArray
|
|
13
|
-
})
|
|
14
|
-
});
|
|
15
|
-
const deploymentSchema = z.object({
|
|
16
|
-
name: z.string(),
|
|
17
|
-
env: z.string(),
|
|
18
|
-
variant: z.string()
|
|
19
|
-
});
|
|
20
|
-
const deploymentsSchema = z.tuple([
|
|
21
|
-
deploymentSchema,
|
|
22
|
-
deploymentSchema
|
|
23
|
-
]);
|
|
24
|
-
const BlueGreenDeployments = defineExtension({
|
|
25
|
-
type: "Infra/BlueGreenDeployments",
|
|
26
|
-
tags: {
|
|
27
|
-
runtimeContext: "project"
|
|
28
|
-
},
|
|
29
|
-
description: "Enable blue/green deployments for your Webiny project.",
|
|
30
|
-
paramsSchema: z.object({
|
|
31
|
-
enabled: z.boolean().default(false),
|
|
32
|
-
domains: domainsSchema,
|
|
33
|
-
deployments: deploymentsSchema
|
|
34
|
-
})
|
|
35
|
-
});
|
|
36
|
-
export { BlueGreenDeployments, deploymentsSchema };
|
|
37
|
-
|
|
38
|
-
//# sourceMappingURL=BlueGreenDeployments.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pulumi/extensions/BlueGreenDeployments.js","sources":["../../../src/pulumi/extensions/BlueGreenDeployments.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineExtension } from \"@webiny/project/defineExtension/index.js\";\nimport type { NonEmptyArray } from \"../apps/blueGreen/types.js\";\n\nconst nonEmptyStringArray = z\n .array(z.string())\n .nonempty()\n .transform(item => {\n return item as NonEmptyArray<string>;\n });\n\nconst domainsSchema = z.object({\n acmCertificateArn: z.string(),\n sslSupportMethod: z.enum([\"sni-only\", \"vip\"]),\n domains: z.object({\n api: nonEmptyStringArray,\n admin: nonEmptyStringArray\n })\n});\n\nconst deploymentSchema = z.object({\n name: z.string(),\n env: z.string(),\n variant: z.string()\n});\n\n// Tuple: exactly 2 items, both must match DeploymentSchema\nexport const deploymentsSchema = z.tuple([deploymentSchema, deploymentSchema]);\n\nexport const BlueGreenDeployments = defineExtension({\n type: \"Infra/BlueGreenDeployments\",\n tags: { runtimeContext: \"project\" },\n description: \"Enable blue/green deployments for your Webiny project.\",\n paramsSchema: z.object({\n enabled: z.boolean().default(false),\n domains: domainsSchema,\n deployments: deploymentsSchema\n })\n});\n"],"names":["nonEmptyStringArray","z","item","domainsSchema","deploymentSchema","deploymentsSchema","BlueGreenDeployments","defineExtension"],"mappings":";;AAIA,MAAMA,sBAAsBC,EAAAA,KAClB,CAACA,EAAE,MAAM,IACd,QAAQ,GACR,SAAS,CAACC,CAAAA,OACAA;AAGf,MAAMC,gBAAgBF,EAAE,MAAM,CAAC;IAC3B,mBAAmBA,EAAE,MAAM;IAC3B,kBAAkBA,CAAC,CAADA,OAAM,CAAC;QAAC;QAAY;KAAM;IAC5C,SAASA,EAAE,MAAM,CAAC;QACd,KAAKD;QACL,OAAOA;IACX;AACJ;AAEA,MAAMI,mBAAmBH,EAAE,MAAM,CAAC;IAC9B,MAAMA,EAAE,MAAM;IACd,KAAKA,EAAE,MAAM;IACb,SAASA,EAAE,MAAM;AACrB;AAGO,MAAMI,oBAAoBJ,EAAE,KAAK,CAAC;IAACG;IAAkBA;CAAiB;AAEtE,MAAME,uBAAuBC,gBAAgB;IAChD,MAAM;IACN,MAAM;QAAE,gBAAgB;IAAU;IAClC,aAAa;IACb,cAAcN,EAAE,MAAM,CAAC;QACnB,SAASA,EAAE,OAAO,GAAG,OAAO,CAAC;QAC7B,SAASE;QACT,aAAaE;IACjB;AACJ"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const OpenSearch: import("@webiny/project/extensions").ExtensionComponent<z.ZodObject<{
|
|
3
|
-
enabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
4
|
-
domainName: z.ZodOptional<z.ZodString>;
|
|
5
|
-
indexPrefix: z.ZodOptional<z.ZodString>;
|
|
6
|
-
sharedIndexes: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7
|
-
endpoint: z.ZodOptional<z.ZodString>;
|
|
8
|
-
username: z.ZodOptional<z.ZodString>;
|
|
9
|
-
password: z.ZodOptional<z.ZodString>;
|
|
10
|
-
}, z.core.$strip>>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { defineExtension } from "@webiny/project/defineExtension/index.js";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
const OpenSearch = defineExtension({
|
|
4
|
-
type: "Infra/OpenSearch",
|
|
5
|
-
tags: {
|
|
6
|
-
runtimeContext: "project"
|
|
7
|
-
},
|
|
8
|
-
description: "Enable and configure Opensearch integration.",
|
|
9
|
-
paramsSchema: z.object({
|
|
10
|
-
enabled: z.boolean().describe("Whether to enable OpenSearch.").default(false).optional(),
|
|
11
|
-
domainName: z.string().describe("The name of the Opensearch domain. When set, no new domain will be deployed.").optional(),
|
|
12
|
-
indexPrefix: z.string().describe("A prefix to be added to all Opensearch indexes.").optional(),
|
|
13
|
-
sharedIndexes: z.boolean().describe("Whether to use shared indexes across all environments (true) or separate indexes per environment (false).").default(false).optional(),
|
|
14
|
-
endpoint: z.string().describe("The endpoint of an existing OpenSearch cluster. Useful when cluster is behind a custom domain.").optional(),
|
|
15
|
-
username: z.string().describe("The username for OpenSearch authentication.").optional(),
|
|
16
|
-
password: z.string().describe("The password for OpenSearch authentication.").optional()
|
|
17
|
-
})
|
|
18
|
-
});
|
|
19
|
-
export { OpenSearch };
|
|
20
|
-
|
|
21
|
-
//# sourceMappingURL=OpenSearch.js.map
|