@microsoft/teamsfx-core 1.2.0 → 1.2.2-alpha.eb4575da.0
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/build/common/armInterface.d.ts +0 -20
- package/build/common/armInterface.d.ts.map +1 -1
- package/build/common/deps-checker/depsChecker.d.ts +1 -0
- package/build/common/deps-checker/depsChecker.d.ts.map +1 -1
- package/build/common/deps-checker/depsChecker.js.map +1 -1
- package/build/common/deps-checker/depsManager.d.ts +2 -1
- package/build/common/deps-checker/depsManager.d.ts.map +1 -1
- package/build/common/deps-checker/depsManager.js +12 -7
- package/build/common/deps-checker/depsManager.js.map +1 -1
- package/build/common/deps-checker/index.d.ts +1 -0
- package/build/common/deps-checker/index.d.ts.map +1 -1
- package/build/common/deps-checker/index.js +1 -0
- package/build/common/deps-checker/index.js.map +1 -1
- package/build/common/deps-checker/internal/dotnetChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/dotnetChecker.js +2 -1
- package/build/common/deps-checker/internal/dotnetChecker.js.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.js +2 -1
- package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
- package/build/common/deps-checker/internal/ngrokChecker.d.ts +1 -1
- package/build/common/deps-checker/internal/ngrokChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/ngrokChecker.js +2 -4
- package/build/common/deps-checker/internal/ngrokChecker.js.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.d.ts +1 -0
- package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.js +9 -1
- package/build/common/deps-checker/internal/nodeChecker.js.map +1 -1
- package/build/common/deps-checker/util/extensionInstaller.d.ts +3 -0
- package/build/common/deps-checker/util/extensionInstaller.d.ts.map +1 -0
- package/build/common/deps-checker/util/extensionInstaller.js +47 -0
- package/build/common/deps-checker/util/extensionInstaller.js.map +1 -0
- package/build/common/deps-checker/util/index.d.ts +5 -0
- package/build/common/deps-checker/util/index.d.ts.map +1 -0
- package/build/common/deps-checker/util/index.js +10 -0
- package/build/common/deps-checker/util/index.js.map +1 -0
- package/build/common/index.d.ts +1 -3
- package/build/common/index.d.ts.map +1 -1
- package/build/common/index.js +1 -3
- package/build/common/index.js.map +1 -1
- package/build/common/local/constants.d.ts +5 -0
- package/build/common/local/constants.d.ts.map +1 -1
- package/build/common/local/constants.js +7 -1
- package/build/common/local/constants.js.map +1 -1
- package/build/common/local/index.d.ts +5 -0
- package/build/common/local/index.d.ts.map +1 -0
- package/build/common/local/index.js +10 -0
- package/build/common/local/index.js.map +1 -0
- package/build/{plugins/solution/fx-solution/debug/util/certificate.d.ts → common/local/localCertificateManager.d.ts} +4 -6
- package/build/common/local/localCertificateManager.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution/debug/util/certificate.js → common/local/localCertificateManager.js} +37 -47
- package/build/common/local/localCertificateManager.js.map +1 -0
- package/build/common/local/localEnvManager.d.ts +6 -2
- package/build/common/local/localEnvManager.d.ts.map +1 -1
- package/build/common/local/localEnvManager.js +41 -1
- package/build/common/local/localEnvManager.js.map +1 -1
- package/build/{plugins/solution/fx-solution/debug/util → common/local}/process.d.ts +0 -0
- package/build/common/local/process.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution/debug/util → common/local}/process.js +0 -0
- package/build/common/local/process.js.map +1 -0
- package/build/common/local/projectSettingsHelper.d.ts +5 -5
- package/build/common/local/projectSettingsHelper.d.ts.map +1 -1
- package/build/common/local/projectSettingsHelper.js +28 -21
- package/build/common/local/projectSettingsHelper.js.map +1 -1
- package/build/common/local/taskDefinition.d.ts +1 -1
- package/build/common/local/taskDefinition.d.ts.map +1 -1
- package/build/common/local/taskDefinition.js +6 -4
- package/build/common/local/taskDefinition.js.map +1 -1
- package/build/common/localSettingsConstants.d.ts +1 -0
- package/build/common/localSettingsConstants.d.ts.map +1 -1
- package/build/common/localSettingsConstants.js +1 -0
- package/build/common/localSettingsConstants.js.map +1 -1
- package/build/common/localSettingsProvider.d.ts.map +1 -1
- package/build/common/localSettingsProvider.js +1 -0
- package/build/common/localSettingsProvider.js.map +1 -1
- package/build/common/permissionInterface.d.ts +1 -0
- package/build/common/permissionInterface.d.ts.map +1 -1
- package/build/common/permissionInterface.js +1 -0
- package/build/common/permissionInterface.js.map +1 -1
- package/build/common/telemetry.d.ts +7 -2
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +10 -4
- package/build/common/telemetry.js.map +1 -1
- package/build/common/{templates.d.ts → template-utils/templates.d.ts} +0 -0
- package/build/common/template-utils/templates.d.ts.map +1 -0
- package/build/common/{templates.js → template-utils/templates.js} +1 -1
- package/build/common/template-utils/templates.js.map +1 -0
- package/build/common/{templatesActions.d.ts → template-utils/templatesActions.d.ts} +0 -0
- package/build/common/template-utils/templatesActions.d.ts.map +1 -0
- package/build/common/{templatesActions.js → template-utils/templatesActions.js} +3 -3
- package/build/common/template-utils/templatesActions.js.map +1 -0
- package/build/common/{templatesUtils.d.ts → template-utils/templatesUtils.d.ts} +0 -0
- package/build/common/template-utils/templatesUtils.d.ts.map +1 -0
- package/build/common/{templatesUtils.js → template-utils/templatesUtils.js} +1 -1
- package/build/common/template-utils/templatesUtils.js.map +1 -0
- package/build/common/tools.d.ts +1 -4
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +41 -12
- package/build/common/tools.js.map +1 -1
- package/build/core/index.d.ts +2 -2
- package/build/core/index.d.ts.map +1 -1
- package/build/core/index.js +14 -6
- package/build/core/index.js.map +1 -1
- package/build/core/middleware/index.d.ts +0 -1
- package/build/core/middleware/index.d.ts.map +1 -1
- package/build/core/middleware/index.js +0 -1
- package/build/core/middleware/index.js.map +1 -1
- package/build/core/middleware/projectMigrator.d.ts.map +1 -1
- package/build/core/middleware/projectMigrator.js +0 -9
- package/build/core/middleware/projectMigrator.js.map +1 -1
- package/build/core/permissionRequest.js +2 -2
- package/build/core/permissionRequest.js.map +1 -1
- package/build/core/question.d.ts.map +1 -1
- package/build/core/question.js +7 -4
- package/build/core/question.js.map +1 -1
- package/build/plugins/resource/aad/aadAppClient.d.ts +2 -2
- package/build/plugins/resource/aad/aadAppClient.d.ts.map +1 -1
- package/build/plugins/resource/aad/aadAppClient.js +3 -4
- package/build/plugins/resource/aad/aadAppClient.js.map +1 -1
- package/build/plugins/resource/aad/errors.d.ts.map +1 -1
- package/build/plugins/resource/aad/errors.js +1 -2
- package/build/plugins/resource/aad/errors.js.map +1 -1
- package/build/plugins/resource/aad/interfaces/IAADDefinition.d.ts +4 -0
- package/build/plugins/resource/aad/interfaces/IAADDefinition.d.ts.map +1 -1
- package/build/plugins/resource/aad/plugin.d.ts.map +1 -1
- package/build/plugins/resource/aad/plugin.js +33 -46
- package/build/plugins/resource/aad/plugin.js.map +1 -1
- package/build/plugins/resource/aad/utils/common.d.ts +2 -0
- package/build/plugins/resource/aad/utils/common.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/common.js +14 -14
- package/build/plugins/resource/aad/utils/common.js.map +1 -1
- package/build/plugins/resource/aad/utils/configs.d.ts +1 -0
- package/build/plugins/resource/aad/utils/configs.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/configs.js +20 -38
- package/build/plugins/resource/aad/utils/configs.js.map +1 -1
- package/build/plugins/resource/apim/error.d.ts.map +1 -1
- package/build/plugins/resource/apim/error.js +1 -4
- package/build/plugins/resource/apim/error.js.map +1 -1
- package/build/plugins/resource/apim/managers/apimManager.d.ts.map +1 -1
- package/build/plugins/resource/apim/managers/apimManager.js +21 -58
- package/build/plugins/resource/apim/managers/apimManager.js.map +1 -1
- package/build/plugins/resource/apim/managers/questionManager.d.ts.map +1 -1
- package/build/plugins/resource/apim/managers/questionManager.js +0 -7
- package/build/plugins/resource/apim/managers/questionManager.js.map +1 -1
- package/build/plugins/resource/apim/questions/vscodeQuestion.d.ts.map +1 -1
- package/build/plugins/resource/apim/questions/vscodeQuestion.js +6 -13
- package/build/plugins/resource/apim/questions/vscodeQuestion.js.map +1 -1
- package/build/plugins/resource/appstudio/constants.d.ts +3 -2
- package/build/plugins/resource/appstudio/constants.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/constants.js +12 -11
- package/build/plugins/resource/appstudio/constants.js.map +1 -1
- package/build/plugins/resource/appstudio/index.d.ts +2 -36
- package/build/plugins/resource/appstudio/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/index.js +1 -31
- package/build/plugins/resource/appstudio/index.js.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.js +16 -8
- package/build/plugins/resource/appstudio/manifestTemplate.js.map +1 -1
- package/build/plugins/resource/appstudio/plugin.d.ts +1 -0
- package/build/plugins/resource/appstudio/plugin.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/plugin.js +14 -1
- package/build/plugins/resource/appstudio/plugin.js.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.d.ts +1 -3
- package/build/plugins/resource/appstudio/v3/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.js +28 -16
- package/build/plugins/resource/appstudio/v3/index.js.map +1 -1
- package/build/plugins/resource/bot/configs/provisionConfig.d.ts.map +1 -1
- package/build/plugins/resource/bot/configs/provisionConfig.js +0 -10
- package/build/plugins/resource/bot/configs/provisionConfig.js.map +1 -1
- package/build/plugins/resource/bot/languageStrategy.d.ts +1 -1
- package/build/plugins/resource/bot/languageStrategy.d.ts.map +1 -1
- package/build/plugins/resource/bot/languageStrategy.js +1 -1
- package/build/plugins/resource/bot/languageStrategy.js.map +1 -1
- package/build/plugins/resource/bot/plugin.d.ts.map +1 -1
- package/build/plugins/resource/bot/plugin.js +14 -131
- package/build/plugins/resource/bot/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/configs.d.ts +1 -1
- package/build/plugins/resource/frontend/configs.d.ts.map +1 -1
- package/build/plugins/resource/frontend/configs.js +3 -9
- package/build/plugins/resource/frontend/configs.js.map +1 -1
- package/build/plugins/resource/frontend/constants.d.ts +2 -8
- package/build/plugins/resource/frontend/constants.d.ts.map +1 -1
- package/build/plugins/resource/frontend/constants.js +3 -11
- package/build/plugins/resource/frontend/constants.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/constants.d.ts +52 -0
- package/build/plugins/resource/frontend/dotnet/constants.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/constants.js +69 -0
- package/build/plugins/resource/frontend/dotnet/constants.js.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/enum.d.ts +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/enum.d.ts.map +1 -1
- package/build/plugins/resource/frontend/dotnet/enum.js +39 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/enum.js.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.d.ts +0 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.d.ts.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.js +3 -3
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.js.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.d.ts +0 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.js +3 -3
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts +34 -0
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/plugin.js +126 -0
- package/build/plugins/resource/frontend/dotnet/plugin.js.map +1 -0
- package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts +35 -0
- package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/resources/errors.js +10 -22
- package/build/plugins/resource/frontend/dotnet/resources/errors.js.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/resources/messages.d.ts +0 -4
- package/build/plugins/resource/frontend/dotnet/resources/messages.d.ts.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/resources/messages.js +0 -4
- package/build/plugins/resource/frontend/dotnet/resources/messages.js.map +1 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.d.ts +6 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.js +11 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.js.map +1 -0
- package/build/plugins/resource/frontend/index.d.ts +6 -3
- package/build/plugins/resource/frontend/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/index.js +27 -45
- package/build/plugins/resource/frontend/index.js.map +1 -1
- package/build/plugins/resource/frontend/interface.d.ts +13 -0
- package/build/plugins/resource/frontend/interface.d.ts.map +1 -0
- package/build/plugins/resource/frontend/interface.js +3 -0
- package/build/plugins/resource/frontend/interface.js.map +1 -0
- package/build/plugins/resource/frontend/ops/deploy.d.ts +3 -0
- package/build/plugins/resource/frontend/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/frontend/ops/deploy.js +43 -0
- package/build/plugins/resource/frontend/ops/deploy.js.map +1 -1
- package/build/plugins/resource/frontend/ops/scaffold.d.ts.map +1 -1
- package/build/plugins/resource/frontend/ops/scaffold.js +1 -1
- package/build/plugins/resource/frontend/ops/scaffold.js.map +1 -1
- package/build/plugins/resource/frontend/plugin.d.ts +3 -3
- package/build/plugins/resource/frontend/plugin.d.ts.map +1 -1
- package/build/plugins/resource/frontend/plugin.js +13 -44
- package/build/plugins/resource/frontend/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/resources/errors.d.ts +23 -20
- package/build/plugins/resource/frontend/resources/errors.d.ts.map +1 -1
- package/build/plugins/resource/frontend/resources/errors.js +31 -67
- package/build/plugins/resource/frontend/resources/errors.js.map +1 -1
- package/build/plugins/resource/frontend/resources/templateInfo.js +1 -1
- package/build/plugins/resource/frontend/resources/templateInfo.js.map +1 -1
- package/build/plugins/resource/frontend/utils/logger.d.ts +3 -1
- package/build/plugins/resource/frontend/utils/logger.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils/logger.js +9 -6
- package/build/plugins/resource/frontend/utils/logger.js.map +1 -1
- package/build/plugins/resource/frontend/utils/progress-helper.d.ts +0 -8
- package/build/plugins/resource/frontend/utils/progress-helper.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils/progress-helper.js +1 -19
- package/build/plugins/resource/frontend/utils/progress-helper.js.map +1 -1
- package/build/plugins/resource/frontend/v2/index.d.ts +1 -0
- package/build/plugins/resource/frontend/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/v2/index.js +3 -0
- package/build/plugins/resource/frontend/v2/index.js.map +1 -1
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.d.ts +15 -0
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.d.ts.map +1 -0
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.js +149 -0
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.js.map +1 -0
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.d.ts +8 -0
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.d.ts.map +1 -0
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.js +95 -0
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.js.map +1 -0
- package/build/plugins/resource/frontend/v3/error.d.ts +23 -0
- package/build/plugins/resource/frontend/v3/error.d.ts.map +1 -0
- package/build/plugins/resource/frontend/v3/error.js +66 -0
- package/build/plugins/resource/frontend/v3/error.js.map +1 -0
- package/build/plugins/resource/frontend/v3/index.d.ts +3 -0
- package/build/plugins/resource/frontend/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/frontend/v3/index.js +7 -0
- package/build/plugins/resource/frontend/v3/index.js.map +1 -0
- package/build/plugins/resource/function/index.d.ts +1 -1
- package/build/plugins/resource/function/index.d.ts.map +1 -1
- package/build/plugins/resource/function/index.js +8 -21
- package/build/plugins/resource/function/index.js.map +1 -1
- package/build/plugins/resource/function/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/function/ops/deploy.js +8 -9
- package/build/plugins/resource/function/ops/deploy.js.map +1 -1
- package/build/plugins/resource/function/ops/scaffold.js +1 -1
- package/build/plugins/resource/function/ops/scaffold.js.map +1 -1
- package/build/plugins/resource/function/plugin.d.ts.map +1 -1
- package/build/plugins/resource/function/plugin.js +33 -134
- package/build/plugins/resource/function/plugin.js.map +1 -1
- package/build/plugins/resource/function/resources/message.d.ts +0 -1
- package/build/plugins/resource/function/resources/message.d.ts.map +1 -1
- package/build/plugins/resource/function/resources/message.js +0 -1
- package/build/plugins/resource/function/resources/message.js.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts +11 -0
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts.map +1 -0
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.js +48 -0
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.js.map +1 -0
- package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.d.ts +6 -4
- package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.js +15 -8
- package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.js.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.d.ts +4 -3
- package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.js +5 -4
- package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.js.map +1 -1
- package/build/plugins/resource/function/utils/telemetry-helper.d.ts +1 -1
- package/build/plugins/resource/function/utils/telemetry-helper.d.ts.map +1 -1
- package/build/plugins/resource/identity/index.d.ts +0 -1
- package/build/plugins/resource/identity/index.d.ts.map +1 -1
- package/build/plugins/resource/identity/index.js +2 -20
- package/build/plugins/resource/identity/index.js.map +1 -1
- package/build/plugins/resource/simpleauth/index.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/index.js +1 -6
- package/build/plugins/resource/simpleauth/index.js.map +1 -1
- package/build/plugins/resource/simpleauth/plugin.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/plugin.js +0 -3
- package/build/plugins/resource/simpleauth/plugin.js.map +1 -1
- package/build/plugins/resource/spfx/plugin.d.ts.map +1 -1
- package/build/plugins/resource/spfx/plugin.js +14 -9
- package/build/plugins/resource/spfx/plugin.js.map +1 -1
- package/build/plugins/resource/spfx/utils/constants.d.ts +5 -4
- package/build/plugins/resource/spfx/utils/constants.d.ts.map +1 -1
- package/build/plugins/resource/spfx/utils/constants.js +5 -4
- package/build/plugins/resource/spfx/utils/constants.js.map +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.d.ts.map +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.js +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.js.map +1 -1
- package/build/plugins/resource/sql/index.d.ts.map +1 -1
- package/build/plugins/resource/sql/index.js +1 -9
- package/build/plugins/resource/sql/index.js.map +1 -1
- package/build/plugins/resource/sql/plugin.d.ts.map +1 -1
- package/build/plugins/resource/sql/plugin.js +26 -58
- package/build/plugins/resource/sql/plugin.js.map +1 -1
- package/build/plugins/resource/utils4v2.d.ts +1 -1
- package/build/plugins/resource/utils4v2.d.ts.map +1 -1
- package/build/plugins/resource/utils4v2.js +3 -3
- package/build/plugins/resource/utils4v2.js.map +1 -1
- package/build/plugins/solution/fx-solution/arm.d.ts +9 -2
- package/build/plugins/solution/fx-solution/arm.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/arm.js +45 -11
- package/build/plugins/solution/fx-solution/arm.js.map +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.d.ts +4 -3
- package/build/plugins/solution/fx-solution/commonQuestions.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.js +11 -10
- package/build/plugins/solution/fx-solution/commonQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/constants.d.ts +1 -0
- package/build/plugins/solution/fx-solution/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/constants.js +1 -0
- package/build/plugins/solution/fx-solution/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/constants.d.ts +0 -5
- package/build/plugins/solution/fx-solution/debug/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/constants.js +1 -7
- package/build/plugins/solution/fx-solution/debug/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/provisionLocal.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/provisionLocal.js +2 -2
- package/build/plugins/solution/fx-solution/debug/provisionLocal.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts +2 -2
- package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/scaffolding.js +5 -3
- package/build/plugins/solution/fx-solution/debug/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/question.d.ts +2 -2
- package/build/plugins/solution/fx-solution/question.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/question.js +32 -22
- package/build/plugins/solution/fx-solution/question.js.map +1 -1
- package/build/plugins/solution/fx-solution/solution.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/solution.js +15 -15
- package/build/plugins/solution/fx-solution/solution.js.map +1 -1
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.d.ts +31 -0
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.js +222 -0
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.js.map +1 -0
- package/build/plugins/solution/fx-solution/v2/adaptor.js +1 -1
- package/build/plugins/solution/fx-solution/v2/adaptor.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/createEnv.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/createEnv.js +1 -3
- package/build/plugins/solution/fx-solution/v2/createEnv.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts +2 -2
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js +196 -122
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts +2 -2
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js +9 -14
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/getQuestions.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/getQuestions.js +81 -96
- package/build/plugins/solution/fx-solution/v2/getQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/scaffolding.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/scaffolding.js +6 -0
- package/build/plugins/solution/fx-solution/v2/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.js +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addModule.d.ts +2 -4
- package/build/plugins/solution/fx-solution/v3/addModule.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addModule.js +29 -6
- package/build/plugins/solution/fx-solution/v3/addModule.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addResource.d.ts +6 -14
- package/build/plugins/solution/fx-solution/v3/addResource.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addResource.js +23 -51
- package/build/plugins/solution/fx-solution/v3/addResource.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/constants.d.ts +2 -0
- package/build/plugins/solution/fx-solution/v3/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/constants.js +2 -0
- package/build/plugins/solution/fx-solution/v3/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/deploy.d.ts +1 -3
- package/build/plugins/solution/fx-solution/v3/deploy.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/deploy.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/init.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/init.js +9 -0
- package/build/plugins/solution/fx-solution/v3/init.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provision.d.ts +8 -1
- package/build/plugins/solution/fx-solution/v3/provision.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provision.js +219 -16
- package/build/plugins/solution/fx-solution/v3/provision.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provisionLocal.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provisionLocal.js +96 -1
- package/build/plugins/solution/fx-solution/v3/provisionLocal.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/scaffold.d.ts +8 -13
- package/build/plugins/solution/fx-solution/v3/scaffold.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/scaffold.js +30 -52
- package/build/plugins/solution/fx-solution/v3/scaffold.js.map +1 -1
- package/build/plugins/solution/spfx-solution/addModule.d.ts +2 -4
- package/build/plugins/solution/spfx-solution/addModule.d.ts.map +1 -1
- package/build/plugins/solution/spfx-solution/addModule.js +1 -1
- package/build/plugins/solution/spfx-solution/addModule.js.map +1 -1
- package/build/plugins/solution/spfx-solution/scaffold.d.ts +2 -10
- package/build/plugins/solution/spfx-solution/scaffold.d.ts.map +1 -1
- package/build/plugins/solution/spfx-solution/scaffold.js +3 -39
- package/build/plugins/solution/spfx-solution/scaffold.js.map +1 -1
- package/build/plugins/solution/spfx-solution/solution.d.ts +12 -17
- package/build/plugins/solution/spfx-solution/solution.d.ts.map +1 -1
- package/build/plugins/solution/spfx-solution/solution.js +7 -7
- package/build/plugins/solution/spfx-solution/solution.js.map +1 -1
- package/package.json +6 -7
- package/resource/strings.json +17 -7
- package/templates/plugins/resource/apim/bicep/apimConfiguration.bicep +1 -0
- package/templates/plugins/resource/apim/bicep/apimProvision.bicep +7 -5
- package/templates/plugins/resource/apim/bicep/config.template.bicep +1 -0
- package/templates/plugins/resource/bot/bicep/botConfiguration.template.bicep +12 -12
- package/templates/plugins/resource/bot/bicep/botProvision.template.bicep +15 -11
- package/templates/plugins/resource/bot/bicep/config.template.bicep +2 -0
- package/templates/plugins/resource/frontend/bicep/frontendHostingProvision.bicep +4 -2
- package/templates/plugins/resource/frontend/bicep/provision.template.bicep +1 -0
- package/templates/plugins/resource/function/bicep/config.template.bicep +2 -0
- package/templates/plugins/resource/function/bicep/functionConfiguration.template.bicep +15 -15
- package/templates/plugins/resource/function/bicep/functionProvision.template.bicep +17 -14
- package/templates/plugins/resource/identity/bicep/identityProvision.template.bicep +2 -1
- package/templates/plugins/resource/keyvault/bicep/keyVaultProvision.template.bicep +9 -7
- package/templates/plugins/resource/simpleauth/bicep/config.template.bicep +2 -0
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthConfiguration.template.bicep +7 -7
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthProvision.template.bicep +9 -6
- package/templates/plugins/resource/sql/bicep/sqlProvision.template.bicep +8 -5
- package/templates/plugins/resource/webapp/bicep/config.template.bicep +10 -0
- package/templates/plugins/resource/webapp/bicep/provision.template.bicep +16 -0
- package/templates/plugins/resource/webapp/bicep/webappConfiguration.template.bicep +74 -0
- package/templates/plugins/resource/webapp/bicep/webappProvision.template.bicep +48 -0
- package/build/common/templates.d.ts.map +0 -1
- package/build/common/templates.js.map +0 -1
- package/build/common/templatesActions.d.ts.map +0 -1
- package/build/common/templatesActions.js.map +0 -1
- package/build/common/templatesUtils.d.ts.map +0 -1
- package/build/common/templatesUtils.js.map +0 -1
- package/build/core/middleware/projectUpgrader.d.ts +0 -6
- package/build/core/middleware/projectUpgrader.d.ts.map +0 -1
- package/build/core/middleware/projectUpgrader.js +0 -224
- package/build/core/middleware/projectUpgrader.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/constants.d.ts +0 -75
- package/build/plugins/resource/frontend/blazor/constants.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/constants.js +0 -98
- package/build/plugins/resource/frontend/blazor/constants.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/enum.js +0 -39
- package/build/plugins/resource/frontend/blazor/ops/provision.d.ts +0 -8
- package/build/plugins/resource/frontend/blazor/ops/provision.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/ops/provision.js +0 -42
- package/build/plugins/resource/frontend/blazor/ops/provision.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/plugin.d.ts +0 -35
- package/build/plugins/resource/frontend/blazor/plugin.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/plugin.js +0 -190
- package/build/plugins/resource/frontend/blazor/plugin.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/errors.d.ts +0 -41
- package/build/plugins/resource/frontend/blazor/resources/errors.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/errors.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/messages.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/messages.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/utils/azure-client.d.ts +0 -21
- package/build/plugins/resource/frontend/blazor/utils/azure-client.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/utils/azure-client.js +0 -47
- package/build/plugins/resource/frontend/blazor/utils/azure-client.js.map +0 -1
- package/build/plugins/resource/frontend/utils/azure-client.d.ts +0 -12
- package/build/plugins/resource/frontend/utils/azure-client.d.ts.map +0 -1
- package/build/plugins/resource/frontend/utils/azure-client.js +0 -29
- package/build/plugins/resource/frontend/utils/azure-client.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.d.ts +0 -9
- package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.js +0 -55
- package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/checker.d.ts +0 -54
- package/build/plugins/resource/function/utils/depsChecker/checker.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/checker.js +0 -104
- package/build/plugins/resource/function/utils/depsChecker/checker.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/common.d.ts +0 -84
- package/build/plugins/resource/function/utils/depsChecker/common.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/common.js +0 -136
- package/build/plugins/resource/function/utils/depsChecker/common.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/cpUtils.d.ts +0 -22
- package/build/plugins/resource/function/utils/depsChecker/cpUtils.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/cpUtils.js +0 -105
- package/build/plugins/resource/function/utils/depsChecker/cpUtils.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.d.ts +0 -53
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.js +0 -387
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/errors.d.ts +0 -14
- package/build/plugins/resource/function/utils/depsChecker/errors.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/errors.js +0 -41
- package/build/plugins/resource/function/utils/depsChecker/errors.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts +0 -26
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js +0 -111
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/certificate.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/certificate.js.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/process.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/process.js.map +0 -1
- package/resource/plugins/resource/function/dotnet-install.ps1 +0 -1095
- package/resource/plugins/resource/function/dotnet-install.sh +0 -1222
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ResourceManagementClient } from "@azure/arm-resources";
|
|
2
|
+
import { Middleware } from "@feathersjs/hooks";
|
|
3
|
+
import { AzureAccountProvider, FxError, Inputs, QTreeNode, Result, UserError, v2 } from "@microsoft/teamsfx-api";
|
|
4
|
+
export declare type AzureSubscription = {
|
|
5
|
+
displayName: string;
|
|
6
|
+
subscriptionId: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const DefaultResourceGroupLocation = "East US";
|
|
9
|
+
export declare type ResourceGroupInfo = {
|
|
10
|
+
createNewResourceGroup: boolean;
|
|
11
|
+
name: string;
|
|
12
|
+
location: string;
|
|
13
|
+
};
|
|
14
|
+
export declare function ResourceGroupErrorHandlerMW(operation: string): Middleware;
|
|
15
|
+
export declare class ResourceGroupApiError extends UserError {
|
|
16
|
+
constructor(operation: string, resourceGroupName?: string, error?: any);
|
|
17
|
+
}
|
|
18
|
+
export declare class ResourceGroupHelper {
|
|
19
|
+
createNewResourceGroup(resourceGroupName: string, azureAccountProvider: AzureAccountProvider, subscriptionId: string, location: string): Promise<Result<string, FxError>>;
|
|
20
|
+
checkResourceGroupExistence(resourceGroupName: string, rmClient: ResourceManagementClient): Promise<Result<boolean, FxError>>;
|
|
21
|
+
getResourceGroupInfo(resourceGroupName: string, rmClient: ResourceManagementClient): Promise<Result<ResourceGroupInfo | undefined, FxError>>;
|
|
22
|
+
listResourceGroups(rmClient: ResourceManagementClient): Promise<Result<[string, string][], FxError>>;
|
|
23
|
+
getLocations(azureAccountProvider: AzureAccountProvider, rmClient: ResourceManagementClient): Promise<Result<string[], FxError>>;
|
|
24
|
+
getQuestionsForResourceGroup(defaultResourceGroupName: string, existingResourceGroupNameLocations: [string, string][], availableLocations: string[]): Promise<QTreeNode | undefined>;
|
|
25
|
+
/**
|
|
26
|
+
* Ask user to create a new resource group or use an existing resource group
|
|
27
|
+
*/
|
|
28
|
+
askResourceGroupInfo(ctx: v2.Context, inputs: Inputs, azureAccountProvider: AzureAccountProvider, rmClient: ResourceManagementClient, defaultResourceGroupName: string): Promise<Result<ResourceGroupInfo, FxError>>;
|
|
29
|
+
}
|
|
30
|
+
export declare const resourceGroupHelper: ResourceGroupHelper;
|
|
31
|
+
//# sourceMappingURL=ResourceGroupHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResourceGroupHelper.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/solution/fx-solution/utils/ResourceGroupHelper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAGhE,OAAO,EAAsB,UAAU,EAAgB,MAAM,mBAAmB,CAAC;AACjF,OAAO,EACL,oBAAoB,EAEpB,OAAO,EACP,MAAM,EAGN,SAAS,EACT,MAAM,EAGN,SAAS,EACT,EAAE,EACH,MAAM,wBAAwB,CAAC;AAchC,oBAAY,iBAAiB,GAAG;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,4BAA4B,YAAY,CAAC;AACtD,oBAAY,iBAAiB,GAAG;IAC9B,sBAAsB,E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AoB,CACxB,GAAG,EAAE,EAAE,CAAC,OAAO,EACf,MAAM,EAAE,MAAM,EACd,oBAAoB,EAAE,oBAAoB,EAC1C,QAAQ,EAAE,wBAAwB,EAClC,wBAAwB,EAAE,MAAM,GAC/B,OAAO,CAAC,MAAM,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;CAuD/C;AAED,eAAO,MAAM,mBAAmB,qBAA4B,CAAC"}
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resourceGroupHelper = exports.ResourceGroupHelper = exports.ResourceGroupApiError = exports.ResourceGroupErrorHandlerMW = exports.DefaultResourceGroupLocation = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
// Copyright (c) Microsoft Corporation.
|
|
6
|
+
// Licensed under the MIT license.
|
|
7
|
+
const arm_resources_1 = require("@azure/arm-resources");
|
|
8
|
+
const arm_subscriptions_1 = require("@azure/arm-subscriptions");
|
|
9
|
+
const ms_rest_js_1 = require("@azure/ms-rest-js");
|
|
10
|
+
const hooks_1 = require("@feathersjs/hooks");
|
|
11
|
+
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
12
|
+
const constants_1 = require("../../../../common/constants");
|
|
13
|
+
const questionModel_1 = require("../../../../core/middleware/questionModel");
|
|
14
|
+
const question_1 = require("../../../../core/question");
|
|
15
|
+
const constants_2 = require("../constants");
|
|
16
|
+
const MsResources = "Microsoft.Resources";
|
|
17
|
+
const ResourceGroups = "resourceGroups";
|
|
18
|
+
exports.DefaultResourceGroupLocation = "East US";
|
|
19
|
+
// TODO: use the emoji plus sign like Azure Functions extension
|
|
20
|
+
const newResourceGroupOption = "+ New resource group";
|
|
21
|
+
function ResourceGroupErrorHandlerMW(operation) {
|
|
22
|
+
return async (ctx, next) => {
|
|
23
|
+
const resourceGroupName = ctx.arguments.length > 0 && typeof ctx.arguments[0] === "string"
|
|
24
|
+
? ctx.arguments[0]
|
|
25
|
+
: undefined;
|
|
26
|
+
try {
|
|
27
|
+
await next();
|
|
28
|
+
}
|
|
29
|
+
catch (e) {
|
|
30
|
+
const fxError = new ResourceGroupApiError(operation, resourceGroupName, e);
|
|
31
|
+
ctx.result = teamsfx_api_1.err(fxError);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
exports.ResourceGroupErrorHandlerMW = ResourceGroupErrorHandlerMW;
|
|
36
|
+
class ResourceGroupApiError extends teamsfx_api_1.UserError {
|
|
37
|
+
constructor(operation, resourceGroupName, error) {
|
|
38
|
+
const baseErrorMessage = `${operation} failed ${resourceGroupName ? "resource group:" + resourceGroupName : ""}`;
|
|
39
|
+
const errorName = new.target.name;
|
|
40
|
+
if (!error)
|
|
41
|
+
super(new.target.name, baseErrorMessage, constants_2.SolutionSource);
|
|
42
|
+
else if (error instanceof ms_rest_js_1.RestError) {
|
|
43
|
+
const restError = error;
|
|
44
|
+
// Avoid sensitive information like request headers in the error message.
|
|
45
|
+
const rawErrorString = JSON.stringify({
|
|
46
|
+
code: restError.code,
|
|
47
|
+
statusCode: restError.statusCode,
|
|
48
|
+
body: restError.body,
|
|
49
|
+
name: restError.name,
|
|
50
|
+
message: restError.message,
|
|
51
|
+
});
|
|
52
|
+
super(errorName, `${baseErrorMessage}, error: '${rawErrorString}'`, constants_2.SolutionSource);
|
|
53
|
+
}
|
|
54
|
+
else if (error instanceof Error) {
|
|
55
|
+
super({ name: errorName, error: error });
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
super(errorName, `${baseErrorMessage}, error: '${JSON.stringify(error)}'`, constants_2.SolutionSource);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.ResourceGroupApiError = ResourceGroupApiError;
|
|
63
|
+
class ResourceGroupHelper {
|
|
64
|
+
async createNewResourceGroup(resourceGroupName, azureAccountProvider, subscriptionId, location) {
|
|
65
|
+
const azureToken = await azureAccountProvider.getAccountCredentialAsync();
|
|
66
|
+
if (!azureToken)
|
|
67
|
+
return teamsfx_api_1.err(new teamsfx_api_1.UserError(constants_2.SolutionError.FailedToGetAzureCredential, "Failed to get azure credential", constants_2.SolutionSource));
|
|
68
|
+
const rmClient = new arm_resources_1.ResourceManagementClient(azureToken, subscriptionId);
|
|
69
|
+
const maybeExist = await this.checkResourceGroupExistence(resourceGroupName, rmClient);
|
|
70
|
+
if (maybeExist.isErr()) {
|
|
71
|
+
return teamsfx_api_1.err(maybeExist.error);
|
|
72
|
+
}
|
|
73
|
+
if (maybeExist.value) {
|
|
74
|
+
return teamsfx_api_1.err(new teamsfx_api_1.UserError(constants_2.SolutionError.FailedToCreateResourceGroup, `Failed to create resource group "${resourceGroupName}": the resource group exists`, constants_2.SolutionSource));
|
|
75
|
+
}
|
|
76
|
+
const response = await rmClient.resourceGroups.createOrUpdate(resourceGroupName, {
|
|
77
|
+
location: location,
|
|
78
|
+
tags: { "created-by": "teamsfx" },
|
|
79
|
+
});
|
|
80
|
+
if (response.name === undefined) {
|
|
81
|
+
return teamsfx_api_1.err(new ResourceGroupApiError("create", resourceGroupName));
|
|
82
|
+
}
|
|
83
|
+
return teamsfx_api_1.ok(response.name);
|
|
84
|
+
}
|
|
85
|
+
async checkResourceGroupExistence(resourceGroupName, rmClient) {
|
|
86
|
+
const checkRes = await rmClient.resourceGroups.checkExistence(resourceGroupName);
|
|
87
|
+
return teamsfx_api_1.ok(!!checkRes.body);
|
|
88
|
+
}
|
|
89
|
+
async getResourceGroupInfo(resourceGroupName, rmClient) {
|
|
90
|
+
const getRes = await rmClient.resourceGroups.get(resourceGroupName);
|
|
91
|
+
if (getRes.name) {
|
|
92
|
+
return teamsfx_api_1.ok({
|
|
93
|
+
createNewResourceGroup: false,
|
|
94
|
+
name: getRes.name,
|
|
95
|
+
location: getRes.location,
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
else
|
|
99
|
+
return teamsfx_api_1.ok(undefined);
|
|
100
|
+
}
|
|
101
|
+
async listResourceGroups(rmClient) {
|
|
102
|
+
const resourceGroupResults = await rmClient.resourceGroups.list();
|
|
103
|
+
const resourceGroupNameLocations = resourceGroupResults
|
|
104
|
+
.filter((item) => item.name)
|
|
105
|
+
.map((item) => [item.name, item.location]);
|
|
106
|
+
return teamsfx_api_1.ok(resourceGroupNameLocations);
|
|
107
|
+
}
|
|
108
|
+
async getLocations(azureAccountProvider, rmClient) {
|
|
109
|
+
var _a;
|
|
110
|
+
const azureToken = await azureAccountProvider.getAccountCredentialAsync();
|
|
111
|
+
if (!azureToken)
|
|
112
|
+
return teamsfx_api_1.err(new teamsfx_api_1.UserError(constants_2.SolutionError.FailedToGetAzureCredential, "Failed to get azure credential", constants_2.SolutionSource));
|
|
113
|
+
const subscriptionClient = new arm_subscriptions_1.SubscriptionClient(azureToken);
|
|
114
|
+
const askSubRes = await azureAccountProvider.getSelectedSubscription(true);
|
|
115
|
+
const listLocations = await subscriptionClient.subscriptions.listLocations(askSubRes.subscriptionId);
|
|
116
|
+
const locations = listLocations.map((item) => item.displayName);
|
|
117
|
+
const providerData = await rmClient.providers.get(MsResources);
|
|
118
|
+
const resourceTypeData = (_a = providerData.resourceTypes) === null || _a === void 0 ? void 0 : _a.find((rt) => { var _a; return ((_a = rt.resourceType) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === ResourceGroups.toLowerCase(); });
|
|
119
|
+
const resourceLocations = resourceTypeData === null || resourceTypeData === void 0 ? void 0 : resourceTypeData.locations;
|
|
120
|
+
const rgLocations = resourceLocations === null || resourceLocations === void 0 ? void 0 : resourceLocations.filter((item) => locations.includes(item));
|
|
121
|
+
if (!rgLocations || rgLocations.length == 0) {
|
|
122
|
+
return teamsfx_api_1.err(teamsfx_api_1.returnUserError(new Error(`Failed to list resource group locations`), constants_2.SolutionSource, constants_2.SolutionError.FailedToListResourceGroupLocation));
|
|
123
|
+
}
|
|
124
|
+
return teamsfx_api_1.ok(rgLocations);
|
|
125
|
+
}
|
|
126
|
+
async getQuestionsForResourceGroup(defaultResourceGroupName, existingResourceGroupNameLocations, availableLocations) {
|
|
127
|
+
const selectResourceGroup = question_1.QuestionSelectResourceGroup;
|
|
128
|
+
const staticOptions = [
|
|
129
|
+
{ id: newResourceGroupOption, label: newResourceGroupOption },
|
|
130
|
+
];
|
|
131
|
+
selectResourceGroup.staticOptions = staticOptions.concat(existingResourceGroupNameLocations.map((item) => {
|
|
132
|
+
return {
|
|
133
|
+
id: item[0],
|
|
134
|
+
label: item[0],
|
|
135
|
+
description: item[1],
|
|
136
|
+
};
|
|
137
|
+
}));
|
|
138
|
+
const node = new teamsfx_api_1.QTreeNode(selectResourceGroup);
|
|
139
|
+
const inputNewResourceGroupName = question_1.QuestionNewResourceGroupName;
|
|
140
|
+
inputNewResourceGroupName.default = defaultResourceGroupName;
|
|
141
|
+
const newResourceGroupNameNode = new teamsfx_api_1.QTreeNode(inputNewResourceGroupName);
|
|
142
|
+
newResourceGroupNameNode.condition = { equals: newResourceGroupOption };
|
|
143
|
+
node.addChild(newResourceGroupNameNode);
|
|
144
|
+
const selectLocation = question_1.QuestionNewResourceGroupLocation;
|
|
145
|
+
// TODO: maybe lazily load locations
|
|
146
|
+
selectLocation.staticOptions = availableLocations;
|
|
147
|
+
const newResourceGroupLocationNode = new teamsfx_api_1.QTreeNode(selectLocation);
|
|
148
|
+
newResourceGroupNameNode.addChild(newResourceGroupLocationNode);
|
|
149
|
+
return node.trim();
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Ask user to create a new resource group or use an existing resource group
|
|
153
|
+
*/
|
|
154
|
+
async askResourceGroupInfo(ctx, inputs, azureAccountProvider, rmClient, defaultResourceGroupName) {
|
|
155
|
+
var _a, _b;
|
|
156
|
+
const listRgRes = await this.listResourceGroups(rmClient);
|
|
157
|
+
if (listRgRes.isErr())
|
|
158
|
+
return teamsfx_api_1.err(listRgRes.error);
|
|
159
|
+
const getLocationsRes = await this.getLocations(azureAccountProvider, rmClient);
|
|
160
|
+
if (getLocationsRes.isErr()) {
|
|
161
|
+
return teamsfx_api_1.err(getLocationsRes.error);
|
|
162
|
+
}
|
|
163
|
+
const node = await this.getQuestionsForResourceGroup(defaultResourceGroupName, listRgRes.value, getLocationsRes.value);
|
|
164
|
+
if (node) {
|
|
165
|
+
const res = await teamsfx_api_1.traverse(node, inputs, ctx.userInteraction);
|
|
166
|
+
if (res.isErr()) {
|
|
167
|
+
(_a = ctx.logProvider) === null || _a === void 0 ? void 0 : _a.debug(`[${constants_1.PluginDisplayName.Solution}] failed to run question model for target resource group.`);
|
|
168
|
+
return teamsfx_api_1.err(res.error);
|
|
169
|
+
}
|
|
170
|
+
const desensitized = questionModel_1.desensitize(node, inputs);
|
|
171
|
+
(_b = ctx.logProvider) === null || _b === void 0 ? void 0 : _b.info(`[${constants_1.PluginDisplayName.Solution}] success to run question model for resource group, answers:${JSON.stringify(desensitized)}`);
|
|
172
|
+
}
|
|
173
|
+
const targetResourceGroupName = inputs.targetResourceGroupName;
|
|
174
|
+
if (!targetResourceGroupName || typeof targetResourceGroupName !== "string") {
|
|
175
|
+
return teamsfx_api_1.err(new teamsfx_api_1.UserError("InvalidInputError", "Invalid targetResourceGroupName", constants_2.SolutionSource));
|
|
176
|
+
}
|
|
177
|
+
const resourceGroupName = inputs.targetResourceGroupName;
|
|
178
|
+
if (resourceGroupName === newResourceGroupOption) {
|
|
179
|
+
return teamsfx_api_1.ok({
|
|
180
|
+
name: inputs[question_1.CoreQuestionNames.NewResourceGroupName],
|
|
181
|
+
location: inputs[question_1.CoreQuestionNames.NewResourceGroupLocation],
|
|
182
|
+
createNewResourceGroup: true,
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
const target = listRgRes.value.find((item) => item[0] == targetResourceGroupName);
|
|
187
|
+
const location = target[1]; // location must exist because the user can only select from this list.
|
|
188
|
+
return teamsfx_api_1.ok({
|
|
189
|
+
createNewResourceGroup: false,
|
|
190
|
+
name: targetResourceGroupName,
|
|
191
|
+
location: location,
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
tslib_1.__decorate([
|
|
197
|
+
hooks_1.hooks([ResourceGroupErrorHandlerMW("create")]),
|
|
198
|
+
tslib_1.__metadata("design:type", Function),
|
|
199
|
+
tslib_1.__metadata("design:paramtypes", [String, Object, String, String]),
|
|
200
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
201
|
+
], ResourceGroupHelper.prototype, "createNewResourceGroup", null);
|
|
202
|
+
tslib_1.__decorate([
|
|
203
|
+
hooks_1.hooks([ResourceGroupErrorHandlerMW("checkExistence")]),
|
|
204
|
+
tslib_1.__metadata("design:type", Function),
|
|
205
|
+
tslib_1.__metadata("design:paramtypes", [String, arm_resources_1.ResourceManagementClient]),
|
|
206
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
207
|
+
], ResourceGroupHelper.prototype, "checkResourceGroupExistence", null);
|
|
208
|
+
tslib_1.__decorate([
|
|
209
|
+
hooks_1.hooks([ResourceGroupErrorHandlerMW("get")]),
|
|
210
|
+
tslib_1.__metadata("design:type", Function),
|
|
211
|
+
tslib_1.__metadata("design:paramtypes", [String, arm_resources_1.ResourceManagementClient]),
|
|
212
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
213
|
+
], ResourceGroupHelper.prototype, "getResourceGroupInfo", null);
|
|
214
|
+
tslib_1.__decorate([
|
|
215
|
+
hooks_1.hooks([ResourceGroupErrorHandlerMW("list")]),
|
|
216
|
+
tslib_1.__metadata("design:type", Function),
|
|
217
|
+
tslib_1.__metadata("design:paramtypes", [arm_resources_1.ResourceManagementClient]),
|
|
218
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
219
|
+
], ResourceGroupHelper.prototype, "listResourceGroups", null);
|
|
220
|
+
exports.ResourceGroupHelper = ResourceGroupHelper;
|
|
221
|
+
exports.resourceGroupHelper = new ResourceGroupHelper();
|
|
222
|
+
//# sourceMappingURL=ResourceGroupHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResourceGroupHelper.js","sourceRoot":"","sources":["../../../../../src/plugins/solution/fx-solution/utils/ResourceGroupHelper.ts"],"names":[],"mappings":";;;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,wDAAgE;AAChE,gEAA8D;AAC9D,kDAA8C;AAC9C,6CAAiF;AACjF,wDAagC;AAChC,4DAAiE;AACjE,6EAAwE;AACxE,wDAKmC;AACnC,4CAA6D;AAE7D,MAAM,WAAW,GAAG,qBAAqB,CAAC;AAC1C,MAAM,cAAc,GAAG,gBAAgB,CAAC;AAO3B,QAAA,4BAA4B,GAAG,SAAS,CAAC;AAOtD,+DAA+D;AAC/D,MAAM,sBAAsB,GAAG,sBAAsB,CAAC;AAEtD,SAAgB,2BAA2B,CAAC,SAAiB;IAC3D,OAAO,KAAK,EAAE,GAAgB,EAAE,IAAkB,EAAE,EAAE;QACpD,MAAM,iBAAiB,GACrB,GAAG,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,IAAI,OAAO,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,QAAQ;YAC9D,CAAC,CAAE,GAAG,CAAC,SAAS,CAAC,CAAC,CAAY;YAC9B,CAAC,CAAC,SAAS,CAAC;QAChB,IAAI;YACF,MAAM,IAAI,EAAE,CAAC;SACd;QAAC,OAAO,CAAC,EAAE;YACV,MAAM,OAAO,GAAG,IAAI,qBAAqB,CAAC,SAAS,EAAE,iBAAiB,EAAE,CAAC,CAAC,CAAC;YAC3E,GAAG,CAAC,MAAM,GAAG,iBAAG,CAAC,OAAO,CAAC,CAAC;SAC3B;IACH,CAAC,CAAC;AACJ,CAAC;AAbD,kEAaC;AAED,MAAa,qBAAsB,SAAQ,uBAAS;IAClD,YAAY,SAAiB,EAAE,iBAA0B,EAAE,KAAW;QACpE,MAAM,gBAAgB,GAAG,GAAG,SAAS,WACnC,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,G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Q,GAAG,MAAO,CAAC,CAAC,CAAC,CAAC,CAAC,uEAAuE;YACpG,OAAO,gBAAE,CAAC;gBACR,sBAAsB,EAAE,KAAK;gBAC7B,IAAI,EAAE,uBAAuB;gBAC7B,QAAQ,EAAE,QAAQ;aACnB,CAAC,CAAC;SACJ;IACH,CAAC;CACF;AAnNC;IADC,aAAK,CAAC,CAAC,2BAA2B,CAAC,QAAQ,CAAC,CAAC,CAAC;;;;iEAsC9C;AAGD;IADC,aAAK,CAAC,CAAC,2BAA2B,CAAC,gBAAgB,CAAC,CAAC,CAAC;;qDAG3C,wCAAwB;;sEAInC;AAGD;IADC,aAAK,CAAC,CAAC,2BAA2B,CAAC,KAAK,CAAC,CAAC,CAAC;;qDAGhC,wCAAwB;;+DAUnC;AAGD;IADC,aAAK,CAAC,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAC,CAAC;;6CAEjC,wCAAwB;;6DAOnC;AA1EH,kDAqNC;AAEY,QAAA,mBAAmB,GAAG,IAAI,mBAAmB,EAAE,CAAC"}
|
|
@@ -23,7 +23,7 @@ class ScaffoldingContextAdapter extends BaseSolutionContextAdaptor {
|
|
|
23
23
|
const v2context = params[0];
|
|
24
24
|
const inputs = params[1];
|
|
25
25
|
if (!inputs.projectPath) {
|
|
26
|
-
throw new Error(`
|
|
26
|
+
throw new Error(`invalid project path: ${inputs.projectPath}`);
|
|
27
27
|
}
|
|
28
28
|
this.root = inputs.projectPath;
|
|
29
29
|
this.targetEnvName = inputs.targetEnvName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adaptor.js","sourceRoot":"","sources":["../../../../../src/plugins/solution/fx-solution/v2/adaptor.ts"],"names":[],"mappings":";;;AAAA,wDAuBgC;AAEhC,0BAAgE;AAEhE,oDAAsD;AACtD,kDAAoD;AACpD,yDAAqF;AACrF,mCAAyC;AAEzC,MAAM,0BAA0B;IAAhC;QACE,YAAO,GAAG,kBAAU,EAAE,CAAC;QACvB,SAAI,GAAG,EA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AE,CAAC,KAAK,EAAE,GAAG,CAAC,OAAmD,CAAC,CAAC;YACxF,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;QACvC,CAAC,CAAC;IACJ,CAAC;CACF;AAjFD,sEAiFC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createEnv.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/solution/fx-solution/v2/createEnv.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,OAAO,EACP,MAAM,EAEN,MAAM,EAEN,EAAE,EACF,IAAI,EACL,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"createEnv.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/solution/fx-solution/v2/createEnv.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,OAAO,EACP,MAAM,EAEN,MAAM,EAEN,EAAE,EACF,IAAI,EACL,MAAM,wBAAwB,CAAC;AAKhC,wBAAsB,SAAS,CAAC,GAAG,EAAE,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CA6B/F"}
|
|
@@ -2,13 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createEnv = void 0;
|
|
4
4
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
5
|
-
const tools_1 = require("../../../../common/tools");
|
|
6
5
|
const core_1 = require("../../../../core");
|
|
7
6
|
const arm_1 = require("../arm");
|
|
8
7
|
const utils_1 = require("./utils");
|
|
9
8
|
async function createEnv(ctx, inputs) {
|
|
10
|
-
if (
|
|
11
|
-
utils_1.isAzureProject(ctx.projectSetting.solutionSettings)) {
|
|
9
|
+
if (utils_1.isAzureProject(ctx.projectSetting.solutionSettings)) {
|
|
12
10
|
const solutionContext = {
|
|
13
11
|
root: inputs.projectPath || "",
|
|
14
12
|
envInfo: core_1.newEnvInfo(inputs.targetEnvName),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createEnv.js","sourceRoot":"","sources":["../../../../../src/plugins/solution/fx-solution/v2/createEnv.ts"],"names":[],"mappings":";;;AAAA,wDAUgC;AAChC,
|
|
1
|
+
{"version":3,"file":"createEnv.js","sourceRoot":"","sources":["../../../../../src/plugins/solution/fx-solution/v2/createEnv.ts"],"names":[],"mappings":";;;AAAA,wDAUgC;AAChC,2CAA6D;AAC7D,gCAA6D;AAC7D,mCAAyC;AAElC,KAAK,UAAU,SAAS,CAAC,GAAe,EAAE,MAAc;IAC7D,IAAI,sBAAc,CAAC,GAAG,CAAC,cAAc,CAAC,gBAAyC,CAAC,EAAE;QAChF,MAAM,eAAe,GAAoB;YACvC,IAAI,EAAE,MAAM,CAAC,WAAW,IAAI,EAAE;YAC9B,OAAO,EAAE,iBAAU,CAAC,MAAM,CAAC,aAAa,CAAC;YACzC,eAAe,EAAE,GAAG,CAAC,cAAc;YACnC,OAAO,EAAE,MAAM;YACf,WAAW,EAAE,GAAG,CAAC,WAAW;YAC5B,iBAAiB,EAAE,GAAG,CAAC,iBAAiB;YACxC,cAAc,EAAE,GAAG,CAAC,cAAc;YAClC,yBAAyB,EAAE,GAAG,CAAC,yBAAyB;YACxD,EAAE,EAAE,GAAG,CAAC,eAAe;SACxB,CAAC;QACF,IAAI;YACF,IAAI,MAAM,CAAC,IAAI,KAAK,IAAI,EAAE;gBACxB,MAAM,uBAAiB,CACrB,MAAM,CAAC,WAAY,EACnB,GAAG,CAAC,cAAc,CAAC,OAAO,EAC1B,MAAM,CAAC,aAAc,EACrB,MAAM,CAAC,aAAc,CACtB,CAAC;aACH;iBAAM;gBACL,MAAM,sBAAgB,CAAC,eAAe,CAAC,CAAC;aACzC;SACF;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,iBAAG,CAAC,oBAAa,CAAC,CAAC,CAAC,CAAC,CAAC;SAC9B;KACF;IACD,OAAO,gBAAE,CAAC,kBAAI,CAAC,CAAC;AAClB,CAAC;AA7BD,8BA6BC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { v2, Inputs, FxError, Result, Func, TelemetryReporter, AzureSolutionSettings, Void, UserInteraction, SolutionSettings, TokenProvider, Json } from "@microsoft/teamsfx-api";
|
|
1
|
+
import { v2, Inputs, FxError, Result, Func, TelemetryReporter, AzureSolutionSettings, Void, UserInteraction, SolutionSettings, TokenProvider, Json, ProjectSettings } from "@microsoft/teamsfx-api";
|
|
2
2
|
export declare function executeUserTask(ctx: v2.Context, inputs: Inputs, func: Func, localSettings: Json, envInfo: v2.EnvInfoV2, tokenProvider: TokenProvider): Promise<Result<unknown, FxError>>;
|
|
3
3
|
export declare function canAddCapability(settings: AzureSolutionSettings, telemetryReporter: TelemetryReporter): Result<Void, FxError>;
|
|
4
|
-
export declare function canAddResource(
|
|
4
|
+
export declare function canAddResource(projectSetting: ProjectSettings, telemetryReporter: TelemetryReporter): Result<Void, FxError>;
|
|
5
5
|
export declare function addCapability(ctx: v2.Context, inputs: Inputs, localSettings: Json): Promise<Result<{
|
|
6
6
|
solutionSettings?: SolutionSettings;
|
|
7
7
|
solutionConfig?: Record<string, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executeUserTask.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/solution/fx-solution/v2/executeUserTask.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,MAAM,EACN,OAAO,EACP,MAAM,EAIN,IAAI,EAEJ,iBAAiB,EACjB,qBAAqB,EACrB,IAAI,EAEJ,eAAe,EACf,gBAAgB,EAChB,aAAa,EAEb,IAAI,
|
|
1
|
+
{"version":3,"file":"executeUserTask.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/solution/fx-solution/v2/executeUserTask.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,MAAM,EACN,OAAO,EACP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