@microsoft/teamsfx-core 1.2.0-rc.0 → 1.2.2-alpha.01a113d2.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/constant/message.d.ts +0 -1
- package/build/common/deps-checker/constant/message.d.ts.map +1 -1
- package/build/common/deps-checker/constant/message.js +0 -4
- package/build/common/deps-checker/constant/message.js.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 +6 -0
- package/build/common/local/index.d.ts.map +1 -0
- package/build/common/local/index.js +11 -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/common/local/packageJsonHelper.d.ts +1 -0
- package/build/common/local/packageJsonHelper.d.ts.map +1 -1
- package/build/common/local/packageJsonHelper.js +29 -1
- package/build/common/local/packageJsonHelper.js.map +1 -1
- package/build/common/local/portChecker.d.ts.map +1 -1
- package/build/common/local/portChecker.js +18 -48
- package/build/common/local/portChecker.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 +7 -5
- 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 +2 -0
- package/build/common/permissionInterface.d.ts.map +1 -1
- package/build/common/permissionInterface.js +2 -0
- package/build/common/permissionInterface.js.map +1 -1
- package/build/common/samples-config.json +24 -12
- package/build/common/samples.d.ts +1 -0
- package/build/common/samples.d.ts.map +1 -1
- package/build/common/samples.js +1 -0
- package/build/common/samples.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/templates-config.json +1 -1
- 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/errorHandler.js +2 -1
- package/build/core/middleware/errorHandler.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 +1 -11
- 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/aad/v2/index.d.ts +2 -2
- package/build/plugins/resource/aad/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/aad/v2/index.js +2 -1
- package/build/plugins/resource/aad/v2/index.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 +23 -62
- 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/apim/v2/index.d.ts +2 -2
- package/build/plugins/resource/apim/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/apim/v2/index.js +2 -1
- package/build/plugins/resource/apim/v2/index.js.map +1 -1
- package/build/plugins/resource/appstudio/constants.d.ts +5 -2
- package/build/plugins/resource/appstudio/constants.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/constants.js +82 -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 +2 -32
- 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 +18 -10
- 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/v2/index.d.ts +2 -2
- package/build/plugins/resource/appstudio/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/v2/index.js +2 -1
- package/build/plugins/resource/appstudio/v2/index.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 +42 -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/dotnet/constants.d.ts +5 -0
- package/build/plugins/resource/bot/dotnet/constants.d.ts.map +1 -0
- package/build/plugins/resource/bot/dotnet/constants.js +13 -0
- package/build/plugins/resource/bot/dotnet/constants.js.map +1 -0
- package/build/plugins/resource/bot/dotnet/plugin.d.ts +14 -0
- package/build/plugins/resource/bot/dotnet/plugin.d.ts.map +1 -0
- package/build/plugins/resource/bot/dotnet/plugin.js +62 -0
- package/build/plugins/resource/bot/dotnet/plugin.js.map +1 -0
- package/build/plugins/resource/bot/index.d.ts +5 -0
- package/build/plugins/resource/bot/index.d.ts.map +1 -1
- package/build/plugins/resource/bot/index.js +23 -13
- package/build/plugins/resource/bot/index.js.map +1 -1
- package/build/plugins/resource/bot/interface.d.ts +16 -0
- package/build/plugins/resource/bot/interface.d.ts.map +1 -0
- package/build/plugins/resource/bot/interface.js +5 -0
- package/build/plugins/resource/bot/interface.js.map +1 -0
- 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 +2 -1
- package/build/plugins/resource/bot/plugin.d.ts.map +1 -1
- package/build/plugins/resource/bot/plugin.js +16 -135
- package/build/plugins/resource/bot/plugin.js.map +1 -1
- package/build/plugins/resource/bot/v2/index.d.ts +2 -2
- package/build/plugins/resource/bot/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/bot/v2/index.js +2 -1
- package/build/plugins/resource/bot/v2/index.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 +56 -0
- package/build/plugins/resource/frontend/dotnet/constants.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/constants.js +73 -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 +124 -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 +5 -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 +15 -47
- 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 +3 -2
- package/build/plugins/resource/frontend/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/v2/index.js +5 -1
- 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 +35 -138
- 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/function/v2/index.d.ts +2 -2
- package/build/plugins/resource/function/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/function/v2/index.js +2 -1
- package/build/plugins/resource/function/v2/index.js.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 +3 -22
- package/build/plugins/resource/identity/index.js.map +1 -1
- package/build/plugins/resource/identity/v2/index.d.ts +2 -2
- package/build/plugins/resource/identity/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/identity/v2/index.js +2 -1
- package/build/plugins/resource/identity/v2/index.js.map +1 -1
- package/build/plugins/resource/keyvault/plugin.d.ts.map +1 -1
- package/build/plugins/resource/keyvault/plugin.js +1 -2
- package/build/plugins/resource/keyvault/plugin.js.map +1 -1
- package/build/plugins/resource/keyvault/v2/index.d.ts +2 -2
- package/build/plugins/resource/keyvault/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/keyvault/v2/index.js +2 -1
- package/build/plugins/resource/keyvault/v2/index.js.map +1 -1
- package/build/plugins/resource/localdebug/v2/index.d.ts +2 -2
- package/build/plugins/resource/localdebug/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/localdebug/v2/index.js +2 -1
- package/build/plugins/resource/localdebug/v2/index.js.map +1 -1
- package/build/plugins/resource/simpleauth/index.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/index.js +6 -11
- 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 +2 -7
- package/build/plugins/resource/simpleauth/plugin.js.map +1 -1
- package/build/plugins/resource/simpleauth/v2/index.d.ts +2 -2
- package/build/plugins/resource/simpleauth/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/v2/index.js +2 -1
- package/build/plugins/resource/simpleauth/v2/index.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/spfx/v2/index.d.ts +2 -2
- package/build/plugins/resource/spfx/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/spfx/v2/index.js +2 -1
- package/build/plugins/resource/spfx/v2/index.js.map +1 -1
- package/build/plugins/resource/sql/config.d.ts +1 -0
- package/build/plugins/resource/sql/config.d.ts.map +1 -1
- package/build/plugins/resource/sql/config.js +1 -0
- package/build/plugins/resource/sql/config.js.map +1 -1
- package/build/plugins/resource/sql/constants.d.ts +3 -0
- package/build/plugins/resource/sql/constants.d.ts.map +1 -1
- package/build/plugins/resource/sql/constants.js +3 -0
- package/build/plugins/resource/sql/constants.js.map +1 -1
- package/build/plugins/resource/sql/errors.d.ts +1 -1
- package/build/plugins/resource/sql/errors.d.ts.map +1 -1
- package/build/plugins/resource/sql/errors.js +1 -1
- package/build/plugins/resource/sql/errors.js.map +1 -1
- package/build/plugins/resource/sql/index.d.ts.map +1 -1
- package/build/plugins/resource/sql/index.js +11 -11
- package/build/plugins/resource/sql/index.js.map +1 -1
- package/build/plugins/resource/sql/managementClient.js +14 -14
- package/build/plugins/resource/sql/managementClient.js.map +1 -1
- package/build/plugins/resource/sql/plugin.d.ts +3 -0
- package/build/plugins/resource/sql/plugin.d.ts.map +1 -1
- package/build/plugins/resource/sql/plugin.js +76 -68
- package/build/plugins/resource/sql/plugin.js.map +1 -1
- package/build/plugins/resource/sql/sqlClient.d.ts +2 -2
- package/build/plugins/resource/sql/sqlClient.d.ts.map +1 -1
- package/build/plugins/resource/sql/sqlClient.js +13 -12
- package/build/plugins/resource/sql/sqlClient.js.map +1 -1
- package/build/plugins/resource/sql/v2/index.d.ts +2 -2
- package/build/plugins/resource/sql/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/sql/v2/index.js +2 -1
- package/build/plugins/resource/sql/v2/index.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/ResourcePluginContainer.d.ts +3 -3
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.js +3 -3
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.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 +44 -13
- 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 +6 -4
- 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/checkPermission.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/checkPermission.js +1 -2
- package/build/plugins/solution/fx-solution/v2/checkPermission.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/deploy.js +1 -1
- package/build/plugins/solution/fx-solution/v2/deploy.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 -16
- 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 +84 -99
- package/build/plugins/solution/fx-solution/v2/getQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/grantPermission.js +1 -2
- package/build/plugins/solution/fx-solution/v2/grantPermission.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/listCollaborator.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/listCollaborator.js +6 -1
- package/build/plugins/solution/fx-solution/v2/listCollaborator.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 +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provisionLocal.js +1 -1
- package/build/plugins/solution/fx-solution/v2/provisionLocal.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/publish.js +1 -1
- package/build/plugins/solution/fx-solution/v2/publish.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 +16 -2
- package/build/plugins/solution/fx-solution/v2/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.d.ts +3 -3
- package/build/plugins/solution/fx-solution/v2/utils.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.js +7 -5
- 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 +14 -9
- package/resource/strings.json +23 -8
- 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/bot/bot-msgext.js.default.zip +0 -0
- package/templates/plugins/resource/bot/bot-msgext.ts.default.zip +0 -0
- package/templates/plugins/resource/bot/bot.js.default.zip +0 -0
- package/templates/plugins/resource/bot/bot.ts.default.zip +0 -0
- package/templates/plugins/resource/bot/msgext.js.default.zip +0 -0
- package/templates/plugins/resource/bot/msgext.ts.default.zip +0 -0
- package/templates/plugins/resource/botservice/bicep/botServiceProvision.template.bicep +34 -0
- package/templates/plugins/resource/botservice/bicep/parameters.json +4 -0
- package/templates/plugins/resource/botservice/bicep/provision.template.bicep +13 -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/frontend/tab.js.default.zip +0 -0
- package/templates/plugins/resource/frontend/tab.ts.default.zip +0 -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/function/function-base.js.default.zip +0 -0
- package/templates/plugins/resource/function/function-base.ts.default.zip +0 -0
- package/templates/plugins/resource/function/function-triggers.js.HTTPTrigger.zip +0 -0
- package/templates/plugins/resource/function/function-triggers.ts.HTTPTrigger.zip +0 -0
- 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/newDatabase.orchestration.template.bicep +5 -0
- package/templates/plugins/resource/sql/bicep/newDatabaseProvision.template.bicep +15 -0
- package/templates/plugins/resource/sql/bicep/sqlProvision.template.bicep +9 -5
- package/templates/plugins/resource/storage/bicep/azureStorageProvision.bicep +25 -0
- package/templates/plugins/resource/storage/bicep/provision.template.bicep +15 -0
- 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
|
@@ -41,8 +41,7 @@ async function executeCheckPermissionV1(ctx, userInfo) {
|
|
|
41
41
|
return [permissions, errors];
|
|
42
42
|
}
|
|
43
43
|
async function executeCheckPermissionV2(ctx, inputs, envInfo, tokenProvider, userInfo) {
|
|
44
|
-
|
|
45
|
-
const plugins = ResourcePluginContainer_1.getActivatedV2ResourcePlugins((_a = ctx.projectSetting) === null || _a === void 0 ? void 0 : _a.solutionSettings);
|
|
44
|
+
const plugins = ResourcePluginContainer_1.getActivatedV2ResourcePlugins(ctx.projectSetting);
|
|
46
45
|
const thunks = plugins
|
|
47
46
|
.filter((plugin) => !!plugin.checkPermission)
|
|
48
47
|
.map((plugin) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkPermission.js","sourceRoot":"","sources":["../../../../../src/plugins/solution/fx-solution/v2/checkPermission.ts"],"names":[],"mappings":";;;AAAA,wDAqBgC;AAChC,+CAA+F;AAE/F,4CASsB;AAEtB,wCAAkE;AAClE,0CAAyE;AACzE,wEAGoC;AACpC,yDAA8D;AAC9D,yCAA8F;AAC9F,2DAAwE;AACxE,mCAAmD;AAEnD,KAAK,UAAU,wBAAwB,CACrC,GAAoB,EACpB,QAAmB;;IAEnB,MAAM,OAAO,GAAG,qDAA2B,CACzC,MAAA,GAAG,CAAC,eAAe,0CAAE,gBAAyC,CAC/D,CAAC;IACF,MAAM,cAAc,GAAyB,gCAAwB,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IAEpF,MAAM,sBAAsB,GAA4B,cAAc,CAAC,GAAG,CACxE,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAAE;QACpB,OAAO;YACL,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,eAAe;gBACrB,CAAC,CAAC,CAAC,GAAkB,EAAE,EAAE,CAAC,MAAO,CAAC,eAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,QAAQ,CAAC;gBAC9E,CAAC,CAAC,SAAS;YACb,OAAO;YACP,MAAM,CAAC,IAAI;SACZ,CAAC;IACJ,CAAC,CACF,CAAC;IAEF,MAAM,OAAO,GAAG,MAAM,8BAAmB,CAAC,EAAE,EAAE,sBAAsB,CAAC,CAAC;IACtE,MAAM,WAAW,GAAyB,EAAE,CAAC;IAC7C,MAAM,MAAM,GAAG,EAAE,CAAC;IAClB,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;QAC5B,IAAI,MAAM,CAAC,KAAK,EAAE,EAAE;YAClB,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACpB,SAAS;SACV;QAED,IAAI,MAAM,IAAI,MAAM,CAAC,KAAK,EAAE;YAC1B,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,KAAK,EAAE;gBAC9B,WAAW,CAAC,IAAI,CAAC,GAAyB,CAAC,CAAC;aAC7C;SACF;KACF;IAED,OAAO,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;AAC/B,CAAC;AAED,KAAK,UAAU,wBAAwB,CACrC,GAAe,EACf,MAAgC,EAChC,OAAsC,EACtC,aAA4B,EAC5B,QAAmB
|
|
1
|
+
{"version":3,"file":"checkPermission.js","sourceRoot":"","sources":["../../../../../src/plugins/solution/fx-solution/v2/checkPermission.ts"],"names":[],"mappings":";;;AAAA,wDAqBgC;AAChC,+CAA+F;AAE/F,4CASsB;AAEtB,wCAAkE;AAClE,0CAAyE;AACzE,wEAGoC;AACpC,yDAA8D;AAC9D,yCAA8F;AAC9F,2DAAwE;AACxE,mCAAmD;AAEnD,KAAK,UAAU,wBAAwB,CACrC,GAAoB,EACpB,QAAmB;;IAEnB,MAAM,OAAO,GAAG,qDAA2B,CACzC,MAAA,GAAG,CAAC,eAAe,0CAAE,gBAAyC,CAC/D,CAAC;IACF,MAAM,cAAc,GAAyB,gCAAwB,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IAEpF,MAAM,sBAAsB,GAA4B,cAAc,CAAC,GAAG,CACxE,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAAE;QACpB,OAAO;YACL,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,eAAe;gBACrB,CAAC,CAAC,CAAC,GAAkB,EAAE,EAAE,CAAC,MAAO,CAAC,eAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,QAAQ,CAAC;gBAC9E,CAAC,CAAC,SAAS;YACb,OAAO;YACP,MAAM,CAAC,IAAI;SACZ,CAAC;IACJ,CAAC,CACF,CAAC;IAEF,MAAM,OAAO,GAAG,MAAM,8BAAmB,CAAC,EAAE,EAAE,sBAAsB,CAAC,CAAC;IACtE,MAAM,WAAW,GAAyB,EAAE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,EAClB,WAAW,EACX,QAAQ,CACT,CAAC;KACH;AACH,CAAC;AAlDD,0CAkDC"}
|
|
@@ -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"}
|
|
@@ -22,7 +22,7 @@ async function deploy(ctx, inputs, envInfo, tokenProvider) {
|
|
|
22
22
|
if (optionsToDeploy === undefined || optionsToDeploy.length === 0) {
|
|
23
23
|
return teamsfx_api_1.err(teamsfx_api_1.returnUserError(new Error(`No plugin selected`), constants_2.SolutionSource, constants_2.SolutionError.NoResourcePluginSelected));
|
|
24
24
|
}
|
|
25
|
-
const plugins = utils_1.getSelectedPlugins(
|
|
25
|
+
const plugins = utils_1.getSelectedPlugins(ctx.projectSetting);
|
|
26
26
|
const thunks = plugins
|
|
27
27
|
.filter((plugin) => !lodash_1.isUndefined(plugin.deploy) && optionsToDeploy.includes(plugin.name))
|
|
28
28
|
.map((plugin) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../../../../src/plugins/solution/fx-solution/v2/deploy.ts"],"names":[],"mappings":";;;;AAAA,wDAWgC;AAChC,mCAAqC;AACrC,mDAA6B;AAC7B,4DAAiE;AACjE,oDAAsD;AACtD,4CAKsB;AACtB,0CAAyD;AACzD,yCAA6D;AAC7D,mCAKiB;AAEV,KAAK,UAAU,MAAM,CAC1B,GAAe,EACf,MAAc,EACd,OAAsC,EACtC,aAA4B;IAE5B,MAAM,gBAAgB,GAAS,OAAO,CAAC,KAAK,CAAC;IAC7C,MAAM,cAAc,GAAG,sBAAc,CAAC,gCAAwB,CAAC,GAAG,CAAC,CAAC,CAAC;IACrE,MAAM,WAAW,GAAG,gBAAgB,CAAC,yBAAa,CAAC,CAAC,QAAQ,CAAC,CAC3D,wCAA4B,CAClB,CAAC;IAEb,IAAI,cAAc,IAAI,CAAC,WAAW,EAAE;QAClC,OAAO,iBAAG,CACR,6BAAe,CACb,IAAI,KAAK,CACP,IAAI,CAAC,MAAM,CAAC,kBAAU,EAAE,CAAC,QAAQ,CAAC,oBAAoB,EAAE,GAAG,CAAC,cAAc,CAAC,OAAO,CAAC,CACpF,EACD,0BAAc,EACd,yBAAa,CAAC,2BAA2B,CAC1C,CACF,CAAC;KACH;IAED,MAAM,eAAe,GAAG,MAAM,CAAC,qCAA0B,CAAC,qBAAqB,CAAa,CAAC;IAC7F,IAAI,eAAe,KAAK,SAAS,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC,EAAE;QACjE,OAAO,iBAAG,CACR,6BAAe,CACb,IAAI,KAAK,CAAC,oBAAoB,CAAC,EAC/B,0BAAc,EACd,yBAAa,CAAC,wBAAwB,CACvC,CACF,CAAC;KACH;IAED,MAAM,OAAO,GAAG,0BAAkB,CAAC,
|
|
1
|
+
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../../../../src/plugins/solution/fx-solution/v2/deploy.ts"],"names":[],"mappings":";;;;AAAA,wDAWgC;AAChC,mCAAqC;AACrC,mDAA6B;AAC7B,4DAAiE;AACjE,oDAAsD;AACtD,4CAKsB;AACtB,0CAAyD;AACzD,yCAA6D;AAC7D,mCAKiB;AAEV,KAAK,UAAU,MAAM,CAC1B,GAAe,EACf,MAAc,EACd,OAAsC,EACtC,aAA4B;IAE5B,MAAM,gBAAgB,GAAS,OAAO,CAAC,KAAK,CAAC;IAC7C,MAAM,cAAc,GAAG,sBAAc,CAAC,gCAAwB,CAAC,GAAG,CAAC,CAAC,CAAC;IACrE,MAAM,WAAW,GAAG,gBAAgB,CAAC,yBAAa,CAAC,CAAC,QAAQ,CAAC,CAC3D,wCAA4B,CAClB,CAAC;IAEb,IAAI,cAAc,IAAI,CAAC,WAAW,EAAE;QAClC,OAAO,iBAAG,CACR,6BAAe,CACb,IAAI,KAAK,CACP,IAAI,CAAC,MAAM,CAAC,kBAAU,EAAE,CAAC,QAAQ,CAAC,oBAAoB,EAAE,GAAG,CAAC,cAAc,CAAC,OAAO,CAAC,CACpF,EACD,0BAAc,EACd,yBAAa,CAAC,2BAA2B,CAC1C,CACF,CAAC;KACH;IAED,MAAM,eAAe,GAAG,MAAM,CAAC,qCAA0B,CAAC,qBAAqB,CAAa,CAAC;IAC7F,IAAI,eAAe,KAAK,SAAS,IAAI,eAAe,CAAC,MAAM,KAAK,CAA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C,UAAU,CAAC,CAAC,CAChD,CACF,CAAC;IACF,GAAG,CAAC,WAAW,CAAC,IAAI,CAClB,IAAI,CAAC,MAAM,CAAC,kBAAU,EAAE,CAAC,QAAQ,CAAC,iBAAiB,EAAE,6BAAiB,CAAC,QAAQ,CAAC,CACjF,CAAC;IACF,MAAM,MAAM,GAAG,MAAM,8BAAmB,CAAC,MAAM,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC;IAElE,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS,EAAE;QAC7B,IAAI,cAAc,EAAE;YAClB,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CACrB,YAAY,kBAAU,EAAE,CAAC,QAAQ,CAAC,mBAAmB,EAAE,EACvD,GAAG,CAAC,cAAc,CAAC,OAAO,CAC3B,CAAC;YACF,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAC1B,GAAG,CAAC,eAAe,CAAC,WAAW,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;SACrD;QACD,OAAO,gBAAE,CAAC,kBAAI,CAAC,CAAC;KACjB;SAAM;QACL,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,kBAAU,EAAE,CAAC,QAAQ,CAAC,gBAAgB,EAAE,GAAG,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QAC5F,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1B,OAAO,iBAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;KAC1B;AACH,CAAC;AA9FD,wBA8FC"}
|
|
@@ -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,MAAM,EAIN,IAAI,EAEJ,iBAAiB,EACjB,qBAAqB,EACrB,IAAI,EAEJ,eAAe,EACf,gBAAgB,EAChB,aAAa,EAEb,IAAI,EAMJ,eAAe,EAEhB,MAAM,wBAAwB,CAAC;AAiChC,wBAAsB,eAAe,CACnC,GAAG,EAAE,EAAE,CAAC,OAAO,EACf,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,EACV,aAAa,EAAE,IAAI,EACnB,OAAO,EAAE,EAAE,CAAC,SAAS,EACrB,aA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@@ const typedi_1 = require("typedi");
|
|
|
15
15
|
const scaffolding_1 = require("./scaffolding");
|
|
16
16
|
const generateResourceTemplate_1 = require("./generateResourceTemplate");
|
|
17
17
|
const scaffolding_2 = require("../debug/scaffolding");
|
|
18
|
+
const constants_2 = require("../v3/constants");
|
|
19
|
+
const core_1 = require("../../../../core");
|
|
18
20
|
async function executeUserTask(ctx, inputs, func, localSettings, envInfo, tokenProvider) {
|
|
19
21
|
const namespace = func.namespace;
|
|
20
22
|
const method = func.method;
|
|
@@ -74,33 +76,40 @@ async function executeUserTask(ctx, inputs, func, localSettings, envInfo, tokenP
|
|
|
74
76
|
exports.executeUserTask = executeUserTask;
|
|
75
77
|
function canAddCapability(settings, telemetryReporter) {
|
|
76
78
|
if (!(settings.hostType === question_1.HostTypeOptionAzure.id)) {
|
|
77
|
-
const e = teamsfx_api_1.
|
|
79
|
+
const e = new teamsfx_api_1.UserError(constants_1.SolutionError.AddCapabilityNotSupport, tools_1.getStrings().solution.addCapability.OnlySupportAzure, constants_1.SolutionSource);
|
|
78
80
|
return teamsfx_api_1.err(util_1.sendErrorTelemetryThenReturnError(constants_1.SolutionTelemetryEvent.AddCapability, e, telemetryReporter));
|
|
79
81
|
}
|
|
80
82
|
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
81
83
|
}
|
|
82
84
|
exports.canAddCapability = canAddCapability;
|
|
83
|
-
function canAddResource(
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
function canAddResource(projectSetting, telemetryReporter) {
|
|
86
|
+
const isVS = core_1.isVSProject(projectSetting);
|
|
87
|
+
if (isVS) {
|
|
88
|
+
const e = new teamsfx_api_1.UserError(constants_1.SolutionError.AddResourceNotSupport, tools_1.getStrings().solution.addResource.NotSupportForVSProject, constants_1.SolutionSource);
|
|
89
|
+
return teamsfx_api_1.err(util_1.sendErrorTelemetryThenReturnError(constants_1.SolutionTelemetryEvent.AddResource, e, telemetryReporter));
|
|
90
|
+
}
|
|
91
|
+
const solutionSettings = projectSetting.solutionSettings;
|
|
92
|
+
if (!(solutionSettings.hostType === question_1.HostTypeOptionAzure.id)) {
|
|
93
|
+
const e = new teamsfx_api_1.UserError(constants_1.SolutionError.AddResourceNotSupport, tools_1.getStrings().solution.addResource.OnlySupportAzure, constants_1.SolutionSource);
|
|
88
94
|
return teamsfx_api_1.err(util_1.sendErrorTelemetryThenReturnError(constants_1.SolutionTelemetryEvent.AddResource, e, telemetryReporter));
|
|
89
95
|
}
|
|
90
96
|
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
91
97
|
}
|
|
92
98
|
exports.canAddResource = canAddResource;
|
|
93
99
|
async function addCapability(ctx, inputs, localSettings) {
|
|
94
|
-
var _a, _b
|
|
100
|
+
var _a, _b;
|
|
95
101
|
ctx.telemetryReporter.sendTelemetryEvent(constants_1.SolutionTelemetryEvent.AddCapabilityStart, {
|
|
96
102
|
[constants_1.SolutionTelemetryProperty.Component]: constants_1.SolutionTelemetryComponentName,
|
|
97
103
|
});
|
|
98
|
-
|
|
99
|
-
const
|
|
100
|
-
const
|
|
104
|
+
// 1. checking addable
|
|
105
|
+
const solutionSettings = utils_1.getAzureSolutionSettings(ctx);
|
|
106
|
+
const originalSettings = lodash_1.cloneDeep(solutionSettings);
|
|
107
|
+
const inputsNew = Object.assign(Object.assign({}, inputs), { projectPath: inputs.projectPath, existingResources: originalSettings.activeResourcePlugins });
|
|
108
|
+
const canProceed = canAddCapability(solutionSettings, ctx.telemetryReporter);
|
|
101
109
|
if (canProceed.isErr()) {
|
|
102
110
|
return teamsfx_api_1.err(canProceed.error);
|
|
103
111
|
}
|
|
112
|
+
// 2. check answer
|
|
104
113
|
const capabilitiesAnswer = inputs[question_1.AzureSolutionQuestionNames.Capabilities];
|
|
105
114
|
if (!capabilitiesAnswer || capabilitiesAnswer.length === 0) {
|
|
106
115
|
(_a = ctx.telemetryReporter) === null || _a === void 0 ? void 0 : _a.sendTelemetryEvent(constants_1.SolutionTelemetryEvent.AddCapability, {
|
|
@@ -110,77 +119,132 @@ async function addCapability(ctx, inputs, localSettings) {
|
|
|
110
119
|
});
|
|
111
120
|
return teamsfx_api_1.ok({});
|
|
112
121
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
const
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
+
// 3. check capability limit
|
|
123
|
+
const alreadyHasTab = solutionSettings.capabilities.includes(question_1.TabOptionItem.id);
|
|
124
|
+
const alreadyHasBot = solutionSettings.capabilities.includes(question_1.BotOptionItem.id);
|
|
125
|
+
const alreadyHasME = solutionSettings.capabilities.includes(question_1.MessageExtensionItem.id);
|
|
126
|
+
const toAddTab = capabilitiesAnswer.includes(question_1.TabOptionItem.id);
|
|
127
|
+
const toAddBot = capabilitiesAnswer.includes(question_1.BotOptionItem.id);
|
|
128
|
+
const toAddME = capabilitiesAnswer.includes(question_1.MessageExtensionItem.id);
|
|
129
|
+
const appStudioPlugin = typedi_1.Container.get(constants_2.BuiltInResourcePluginNames.appStudio);
|
|
130
|
+
const inputsWithProjectPath = inputs;
|
|
131
|
+
const tabExceedRes = await appStudioPlugin.capabilityExceedLimit(ctx, inputs, "staticTab");
|
|
132
|
+
if (tabExceedRes.isErr()) {
|
|
133
|
+
return teamsfx_api_1.err(tabExceedRes.error);
|
|
134
|
+
}
|
|
135
|
+
const isTabAddable = !tabExceedRes.value;
|
|
136
|
+
const botExceedRes = await appStudioPlugin.capabilityExceedLimit(ctx, inputs, "Bot");
|
|
137
|
+
if (botExceedRes.isErr()) {
|
|
138
|
+
return teamsfx_api_1.err(botExceedRes.error);
|
|
139
|
+
}
|
|
140
|
+
const isBotAddable = !botExceedRes.value;
|
|
141
|
+
const meExceedRes = await appStudioPlugin.capabilityExceedLimit(ctx, inputs, "MessageExtension");
|
|
142
|
+
if (meExceedRes.isErr()) {
|
|
143
|
+
return teamsfx_api_1.err(meExceedRes.error);
|
|
144
|
+
}
|
|
145
|
+
const isMEAddable = !meExceedRes.value;
|
|
146
|
+
if ((toAddTab && !isTabAddable) || (toAddBot && !isBotAddable) || (toAddME && !isMEAddable)) {
|
|
147
|
+
const error = new teamsfx_api_1.UserError(constants_1.SolutionError.FailedToAddCapability, tools_1.getStrings().solution.addCapability.ExceedMaxLimit, constants_1.SolutionSource);
|
|
148
|
+
return teamsfx_api_1.err(util_1.sendErrorTelemetryThenReturnError(constants_1.SolutionTelemetryEvent.AddCapability, error, ctx.telemetryReporter));
|
|
149
|
+
}
|
|
150
|
+
const capabilitiesToAddManifest = [];
|
|
151
|
+
const pluginNamesToScaffold = new Set();
|
|
152
|
+
const pluginNamesToArm = new Set();
|
|
153
|
+
const newCapabilitySet = new Set();
|
|
154
|
+
solutionSettings.capabilities.forEach((c) => newCapabilitySet.add(c));
|
|
155
|
+
const vsProject = core_1.isVSProject(ctx.projectSetting);
|
|
156
|
+
// 4. check Tab
|
|
157
|
+
if (capabilitiesAnswer.includes(question_1.TabOptionItem.id)) {
|
|
158
|
+
if (vsProject) {
|
|
159
|
+
pluginNamesToScaffold.add(ResourcePluginContainer_1.ResourcePluginsV2.FrontendPlugin);
|
|
160
|
+
if (!alreadyHasTab) {
|
|
161
|
+
pluginNamesToArm.add(ResourcePluginContainer_1.ResourcePluginsV2.FrontendPlugin);
|
|
162
|
+
pluginNamesToArm.add(ResourcePluginContainer_1.ResourcePluginsV2.SimpleAuthPlugin);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
else {
|
|
166
|
+
if (!alreadyHasTab) {
|
|
167
|
+
pluginNamesToScaffold.add(ResourcePluginContainer_1.ResourcePluginsV2.FrontendPlugin);
|
|
168
|
+
pluginNamesToArm.add(ResourcePluginContainer_1.ResourcePluginsV2.FrontendPlugin);
|
|
169
|
+
pluginNamesToArm.add(ResourcePluginContainer_1.ResourcePluginsV2.SimpleAuthPlugin);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
capabilitiesToAddManifest.push({ name: "staticTab" });
|
|
173
|
+
newCapabilitySet.add(question_1.TabOptionItem.id);
|
|
122
174
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
for (const cap of capabilitiesAnswer) {
|
|
130
|
-
if (!capabilities.includes(cap)) {
|
|
131
|
-
capabilities.push(cap);
|
|
132
|
-
change = true;
|
|
133
|
-
if (cap === question_1.TabOptionItem.id) {
|
|
134
|
-
pluginsToScaffold.push(frontendPlugin);
|
|
135
|
-
pluginsToScaffold.push(typedi_1.Container.get(ResourcePluginContainer_1.ResourcePluginsV2.SimpleAuthPlugin));
|
|
175
|
+
// 5. check Bot
|
|
176
|
+
if (capabilitiesAnswer.includes(question_1.BotOptionItem.id)) {
|
|
177
|
+
if (vsProject) {
|
|
178
|
+
pluginNamesToScaffold.add(ResourcePluginContainer_1.ResourcePluginsV2.FrontendPlugin);
|
|
179
|
+
if (!alreadyHasBot && !alreadyHasME) {
|
|
180
|
+
pluginNamesToArm.add(ResourcePluginContainer_1.ResourcePluginsV2.BotPlugin);
|
|
136
181
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
if (!alreadyHasBot && !alreadyHasME) {
|
|
185
|
+
pluginNamesToScaffold.add(ResourcePluginContainer_1.ResourcePluginsV2.BotPlugin);
|
|
186
|
+
pluginNamesToArm.add(ResourcePluginContainer_1.ResourcePluginsV2.BotPlugin);
|
|
140
187
|
}
|
|
141
188
|
}
|
|
189
|
+
capabilitiesToAddManifest.push({ name: "Bot" });
|
|
190
|
+
newCapabilitySet.add(question_1.BotOptionItem.id);
|
|
142
191
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
192
|
+
// 6. check MessageExtension
|
|
193
|
+
if (capabilitiesAnswer.includes(question_1.MessageExtensionItem.id)) {
|
|
194
|
+
if (vsProject) {
|
|
195
|
+
pluginNamesToScaffold.add(ResourcePluginContainer_1.ResourcePluginsV2.FrontendPlugin);
|
|
196
|
+
if (!alreadyHasBot && !alreadyHasME) {
|
|
197
|
+
pluginNamesToArm.add(ResourcePluginContainer_1.ResourcePluginsV2.BotPlugin);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
else {
|
|
201
|
+
if (!alreadyHasBot && !alreadyHasME) {
|
|
202
|
+
pluginNamesToScaffold.add(ResourcePluginContainer_1.ResourcePluginsV2.BotPlugin);
|
|
203
|
+
pluginNamesToArm.add(ResourcePluginContainer_1.ResourcePluginsV2.BotPlugin);
|
|
204
|
+
}
|
|
146
205
|
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
206
|
+
capabilitiesToAddManifest.push({ name: "MessageExtension" });
|
|
207
|
+
newCapabilitySet.add(question_1.MessageExtensionItem.id);
|
|
208
|
+
}
|
|
209
|
+
// 7. update solution settings
|
|
210
|
+
solutionSettings.capabilities = Array.from(newCapabilitySet);
|
|
211
|
+
utils_1.reloadV2Plugins(ctx.projectSetting);
|
|
212
|
+
// 8. scaffold and update arm
|
|
213
|
+
const pluginsToScaffold = Array.from(pluginNamesToScaffold).map((name) => typedi_1.Container.get(name));
|
|
214
|
+
const pluginsToArm = Array.from(pluginNamesToArm).map((name) => typedi_1.Container.get(name));
|
|
215
|
+
if (pluginsToScaffold.length > 0) {
|
|
216
|
+
const scaffoldRes = await scaffoldCodeAndResourceTemplate(Object.assign(Object.assign({}, ctx), { appManifest: { local: {}, remote: {} } }), inputsNew, localSettings, pluginsToScaffold, pluginsToArm);
|
|
152
217
|
if (scaffoldRes.isErr()) {
|
|
153
|
-
(_f = ctx.logProvider) === null || _f === void 0 ? void 0 : _f.info(`failed to scaffold ${pluginNames}!`);
|
|
154
218
|
ctx.projectSetting.solutionSettings = originalSettings;
|
|
155
219
|
return teamsfx_api_1.err(util_1.sendErrorTelemetryThenReturnError(constants_1.SolutionTelemetryEvent.AddCapability, scaffoldRes.error, ctx.telemetryReporter));
|
|
156
220
|
}
|
|
157
|
-
|
|
221
|
+
}
|
|
222
|
+
// 4. update manifest
|
|
223
|
+
if (capabilitiesToAddManifest.length > 0 || pluginsToScaffold.length > 0) {
|
|
224
|
+
await appStudioPlugin.addCapabilities(ctx, inputsWithProjectPath, capabilitiesToAddManifest);
|
|
225
|
+
}
|
|
226
|
+
if (capabilitiesAnswer.length > 0) {
|
|
158
227
|
const addNames = capabilitiesAnswer.map((c) => `'${c}'`).join(" and ");
|
|
159
228
|
const single = capabilitiesAnswer.length === 1;
|
|
160
229
|
const template = inputs.platform === teamsfx_api_1.Platform.CLI
|
|
161
230
|
? single
|
|
162
|
-
? tools_1.getStrings().solution.AddCapabilityNoticeForCli
|
|
163
|
-
: tools_1.getStrings().solution.AddCapabilitiesNoticeForCli
|
|
231
|
+
? tools_1.getStrings().solution.addCapability.AddCapabilityNoticeForCli
|
|
232
|
+
: tools_1.getStrings().solution.addCapability.AddCapabilitiesNoticeForCli
|
|
164
233
|
: single
|
|
165
|
-
? tools_1.getStrings().solution.AddCapabilityNotice
|
|
166
|
-
: tools_1.getStrings().solution.AddCapabilitiesNotice;
|
|
234
|
+
? tools_1.getStrings().solution.addCapability.AddCapabilityNotice
|
|
235
|
+
: tools_1.getStrings().solution.addCapability.AddCapabilitiesNotice;
|
|
167
236
|
const msg = util.format(template, addNames);
|
|
168
237
|
ctx.userInteraction.showMessage("info", msg, false);
|
|
169
|
-
(
|
|
238
|
+
(_b = ctx.telemetryReporter) === null || _b === void 0 ? void 0 : _b.sendTelemetryEvent(constants_1.SolutionTelemetryEvent.AddCapability, {
|
|
170
239
|
[constants_1.SolutionTelemetryProperty.Component]: constants_1.SolutionTelemetryComponentName,
|
|
171
240
|
[constants_1.SolutionTelemetryProperty.Success]: constants_1.SolutionTelemetrySuccess.Yes,
|
|
172
241
|
[constants_1.SolutionTelemetryProperty.Capabilities]: capabilitiesAnswer.join(";"),
|
|
173
242
|
});
|
|
174
|
-
return teamsfx_api_1.ok({ solutionSettings: settings, solutionConfig: { provisionSucceeded: false } });
|
|
175
243
|
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
[constants_1.SolutionTelemetryProperty.Component]: constants_1.SolutionTelemetryComponentName,
|
|
180
|
-
[constants_1.SolutionTelemetryProperty.Success]: constants_1.SolutionTelemetrySuccess.Yes,
|
|
181
|
-
[constants_1.SolutionTelemetryProperty.Capabilities]: [].join(";"),
|
|
244
|
+
return teamsfx_api_1.ok({
|
|
245
|
+
solutionSettings: solutionSettings,
|
|
246
|
+
solutionConfig: { provisionSucceeded: false },
|
|
182
247
|
});
|
|
183
|
-
return teamsfx_api_1.ok({});
|
|
184
248
|
}
|
|
185
249
|
exports.addCapability = addCapability;
|
|
186
250
|
function showUpdateArmTemplateNotice(ui) {
|
|
@@ -188,101 +252,105 @@ function showUpdateArmTemplateNotice(ui) {
|
|
|
188
252
|
ui === null || ui === void 0 ? void 0 : ui.showMessage("info", msg, false);
|
|
189
253
|
}
|
|
190
254
|
exports.showUpdateArmTemplateNotice = showUpdateArmTemplateNotice;
|
|
191
|
-
async function scaffoldCodeAndResourceTemplate(ctx, inputs, localSettings, pluginsToScaffold,
|
|
255
|
+
async function scaffoldCodeAndResourceTemplate(ctx, inputs, localSettings, pluginsToScaffold, pluginsToDoArm) {
|
|
192
256
|
const result = await scaffolding_1.scaffoldByPlugins(ctx, inputs, localSettings, pluginsToScaffold);
|
|
193
257
|
if (result.isErr()) {
|
|
194
258
|
return result;
|
|
195
259
|
}
|
|
196
|
-
if (!generateTemplate || !tools_1.isArmSupportEnabled()) {
|
|
197
|
-
return result;
|
|
198
|
-
}
|
|
199
260
|
const scaffoldLocalDebugSettingsResult = await scaffolding_2.scaffoldLocalDebugSettings(ctx, inputs, localSettings);
|
|
200
261
|
if (scaffoldLocalDebugSettingsResult.isErr()) {
|
|
201
262
|
return scaffoldLocalDebugSettingsResult;
|
|
202
263
|
}
|
|
203
|
-
|
|
264
|
+
const pluginsToUpdateArm = pluginsToDoArm ? pluginsToDoArm : pluginsToScaffold;
|
|
265
|
+
if (pluginsToUpdateArm.length > 0) {
|
|
266
|
+
return generateResourceTemplate_1.generateResourceTemplateForPlugins(ctx, inputs, pluginsToUpdateArm);
|
|
267
|
+
}
|
|
268
|
+
return teamsfx_api_1.ok(undefined);
|
|
204
269
|
}
|
|
205
270
|
async function addResource(ctx, inputs, localSettings, func, envInfo, tokenProvider) {
|
|
206
|
-
var _a, _b, _c
|
|
271
|
+
var _a, _b, _c;
|
|
207
272
|
(_a = ctx.telemetryReporter) === null || _a === void 0 ? void 0 : _a.sendTelemetryEvent(constants_1.SolutionTelemetryEvent.AddResourceStart, {
|
|
208
273
|
[constants_1.SolutionTelemetryProperty.Component]: constants_1.SolutionTelemetryComponentName,
|
|
209
274
|
});
|
|
210
|
-
|
|
211
|
-
const
|
|
275
|
+
// 1. checking addable
|
|
276
|
+
const solutionSettings = utils_1.getAzureSolutionSettings(ctx);
|
|
277
|
+
const originalSettings = lodash_1.cloneDeep(solutionSettings);
|
|
278
|
+
const inputsNew = Object.assign(Object.assign({}, inputs), { projectPath: inputs.projectPath, existingResources: originalSettings.activeResourcePlugins });
|
|
279
|
+
const canProceed = canAddResource(ctx.projectSetting, ctx.telemetryReporter);
|
|
212
280
|
if (canProceed.isErr()) {
|
|
213
|
-
return canProceed;
|
|
281
|
+
return teamsfx_api_1.err(canProceed.error);
|
|
214
282
|
}
|
|
215
|
-
|
|
216
|
-
const functionPlugin = typedi_1.Container.get(ResourcePluginContainer_1.ResourcePluginsV2.FunctionPlugin);
|
|
217
|
-
const sqlPlugin = typedi_1.Container.get(ResourcePluginContainer_1.ResourcePluginsV2.SqlPlugin);
|
|
218
|
-
const apimPlugin = typedi_1.Container.get(ResourcePluginContainer_1.ResourcePluginsV2.ApimPlugin);
|
|
219
|
-
const keyVaultPlugin = typedi_1.Container.get(ResourcePluginContainer_1.ResourcePluginsV2.KeyVaultPlugin);
|
|
220
|
-
const alreadyHaveFunction = selectedPlugins === null || selectedPlugins === void 0 ? void 0 : selectedPlugins.includes(functionPlugin.name);
|
|
221
|
-
const alreadyHaveSql = selectedPlugins === null || selectedPlugins === void 0 ? void 0 : selectedPlugins.includes(sqlPlugin.name);
|
|
222
|
-
const alreadyHaveApim = selectedPlugins === null || selectedPlugins === void 0 ? void 0 : selectedPlugins.includes(apimPlugin.name);
|
|
223
|
-
const alreadyHaveKeyVault = selectedPlugins === null || selectedPlugins === void 0 ? void 0 : selectedPlugins.includes(keyVaultPlugin.name);
|
|
283
|
+
// 2. check answer
|
|
224
284
|
const addResourcesAnswer = inputs[question_1.AzureSolutionQuestionNames.AddResources];
|
|
225
|
-
if (!addResourcesAnswer) {
|
|
226
|
-
|
|
285
|
+
if (!addResourcesAnswer || addResourcesAnswer.length === 0) {
|
|
286
|
+
(_b = ctx.telemetryReporter) === null || _b === void 0 ? void 0 : _b.sendTelemetryEvent(constants_1.SolutionTelemetryEvent.AddResource, {
|
|
287
|
+
[constants_1.SolutionTelemetryProperty.Component]: constants_1.SolutionTelemetryComponentName,
|
|
288
|
+
[constants_1.SolutionTelemetryProperty.Success]: constants_1.SolutionTelemetrySuccess.Yes,
|
|
289
|
+
[constants_1.SolutionTelemetryProperty.Resources]: [].join(";"),
|
|
290
|
+
});
|
|
291
|
+
return teamsfx_api_1.ok({});
|
|
227
292
|
}
|
|
293
|
+
const alreadyHaveFunction = solutionSettings.azureResources.includes(question_1.AzureResourceFunction.id);
|
|
294
|
+
const alreadyHaveApim = solutionSettings.azureResources.includes(question_1.AzureResourceApim.id);
|
|
295
|
+
const alreadyHaveKeyVault = solutionSettings.azureResources.includes(question_1.AzureResourceKeyVault.id);
|
|
228
296
|
const addSQL = addResourcesAnswer.includes(question_1.AzureResourceSQL.id);
|
|
229
|
-
const addFunc = addResourcesAnswer.includes(question_1.AzureResourceFunction.id);
|
|
230
297
|
const addApim = addResourcesAnswer.includes(question_1.AzureResourceApim.id);
|
|
231
298
|
const addKeyVault = addResourcesAnswer.includes(question_1.AzureResourceKeyVault.id);
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
const e = teamsfx_api_1.
|
|
299
|
+
const addFunc = addResourcesAnswer.includes(question_1.AzureResourceFunction.id) || (addApim && !alreadyHaveFunction);
|
|
300
|
+
// 3. check APIM and KeyVault addable
|
|
301
|
+
if ((alreadyHaveApim && addApim) || (alreadyHaveKeyVault && addKeyVault)) {
|
|
302
|
+
const e = new teamsfx_api_1.UserError(new Error("APIM/KeyVault is already added."), constants_1.SolutionSource, constants_1.SolutionError.AddResourceNotSupport);
|
|
236
303
|
return teamsfx_api_1.err(util_1.sendErrorTelemetryThenReturnError(constants_1.SolutionTelemetryEvent.AddResource, e, ctx.telemetryReporter));
|
|
237
304
|
}
|
|
238
|
-
|
|
239
|
-
|
|
305
|
+
const newResourceSet = new Set();
|
|
306
|
+
solutionSettings.azureResources.forEach((r) => newResourceSet.add(r));
|
|
307
|
+
const addedResources = [];
|
|
240
308
|
const pluginsToScaffold = [];
|
|
241
309
|
const pluginsToDoArm = [];
|
|
242
|
-
const azureResource = Array.from(settings.azureResources || []);
|
|
243
310
|
let scaffoldApim = false;
|
|
244
|
-
|
|
311
|
+
// 4. check Function
|
|
312
|
+
if (addFunc) {
|
|
313
|
+
const functionPlugin = typedi_1.Container.get(ResourcePluginContainer_1.ResourcePluginsV2.FunctionPlugin);
|
|
245
314
|
pluginsToScaffold.push(functionPlugin);
|
|
246
|
-
if (!
|
|
247
|
-
azureResource.push(question_1.AzureResourceFunction.id);
|
|
248
|
-
addNewResourceToProvision = true;
|
|
315
|
+
if (!alreadyHaveFunction) {
|
|
249
316
|
pluginsToDoArm.push(functionPlugin);
|
|
250
317
|
}
|
|
251
|
-
|
|
318
|
+
addedResources.push(question_1.AzureResourceFunction.id);
|
|
252
319
|
}
|
|
253
|
-
|
|
254
|
-
|
|
320
|
+
// 5. check SQL
|
|
321
|
+
if (addSQL) {
|
|
322
|
+
const sqlPlugin = typedi_1.Container.get(ResourcePluginContainer_1.ResourcePluginsV2.SqlPlugin);
|
|
323
|
+
const identityPlugin = typedi_1.Container.get(ResourcePluginContainer_1.ResourcePluginsV2.IdentityPlugin);
|
|
255
324
|
pluginsToDoArm.push(sqlPlugin);
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
325
|
+
if (!solutionSettings.activeResourcePlugins.includes(identityPlugin.name)) {
|
|
326
|
+
// add identity for first time
|
|
327
|
+
pluginsToDoArm.push(identityPlugin);
|
|
328
|
+
}
|
|
329
|
+
addedResources.push(question_1.AzureResourceSQL.id);
|
|
259
330
|
}
|
|
260
|
-
|
|
331
|
+
// 6. check APIM
|
|
332
|
+
const apimPlugin = typedi_1.Container.get(ResourcePluginContainer_1.ResourcePluginsV2.ApimPlugin);
|
|
333
|
+
if (addApim) {
|
|
261
334
|
// We don't add apimPlugin into pluginsToScaffold because
|
|
262
335
|
// apim plugin needs to modify config output during scaffolding,
|
|
263
336
|
// which is not supported by the scaffoldSourceCode API.
|
|
264
|
-
// The scaffolding will run later as a
|
|
265
|
-
|
|
266
|
-
notifications.push(question_1.AzureResourceApim.label);
|
|
267
|
-
addNewResourceToProvision = true;
|
|
337
|
+
// The scaffolding will run later as a userTask as a work around.
|
|
338
|
+
addedResources.push(question_1.AzureResourceApim.id);
|
|
268
339
|
pluginsToDoArm.push(apimPlugin);
|
|
269
340
|
scaffoldApim = true;
|
|
270
341
|
}
|
|
271
|
-
if (addKeyVault
|
|
272
|
-
|
|
342
|
+
if (addKeyVault) {
|
|
343
|
+
const keyVaultPlugin = typedi_1.Container.get(ResourcePluginContainer_1.ResourcePluginsV2.KeyVaultPlugin);
|
|
273
344
|
pluginsToDoArm.push(keyVaultPlugin);
|
|
274
|
-
|
|
275
|
-
notifications.push(question_1.AzureResourceKeyVault.label);
|
|
276
|
-
addNewResourceToProvision = true;
|
|
345
|
+
addedResources.push(question_1.AzureResourceKeyVault.id);
|
|
277
346
|
}
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
let scaffoldRes = await scaffoldCodeAndResourceTemplate(ctx, inputs, localSettings, pluginsToScaffold, addNewResourceToProvision, pluginsToDoArm);
|
|
347
|
+
// 7. update solution settings
|
|
348
|
+
addedResources.forEach((r) => newResourceSet.add(r));
|
|
349
|
+
solutionSettings.azureResources = Array.from(newResourceSet);
|
|
350
|
+
utils_1.reloadV2Plugins(ctx.projectSetting);
|
|
351
|
+
// 8. scaffold and update arm
|
|
352
|
+
if (pluginsToScaffold.length > 0 || pluginsToDoArm.length > 0) {
|
|
353
|
+
let scaffoldRes = await scaffoldCodeAndResourceTemplate(Object.assign(Object.assign({}, ctx), { appManifest: { local: {}, remote: {} } }), inputsNew, localSettings, pluginsToScaffold, pluginsToDoArm);
|
|
286
354
|
if (scaffoldApim) {
|
|
287
355
|
if (apimPlugin && apimPlugin.executeUserTask) {
|
|
288
356
|
const result = await apimPlugin.executeUserTask(ctx, inputs, func, {}, envInfo, tokenProvider);
|
|
@@ -292,21 +360,27 @@ async function addResource(ctx, inputs, localSettings, func, envInfo, tokenProvi
|
|
|
292
360
|
}
|
|
293
361
|
}
|
|
294
362
|
if (scaffoldRes.isErr()) {
|
|
295
|
-
|
|
363
|
+
ctx.projectSetting.solutionSettings = originalSettings;
|
|
296
364
|
return teamsfx_api_1.err(util_1.sendErrorTelemetryThenReturnError(constants_1.SolutionTelemetryEvent.AddResource, scaffoldRes.error, ctx.telemetryReporter));
|
|
297
365
|
}
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
366
|
+
const addNames = addedResources.map((c) => `'${c}'`).join(" and ");
|
|
367
|
+
const single = addedResources.length === 1;
|
|
368
|
+
const template = inputs.platform === teamsfx_api_1.Platform.CLI
|
|
369
|
+
? single
|
|
370
|
+
? tools_1.getStrings().solution.addResource.AddResourceNoticeForCli
|
|
371
|
+
: tools_1.getStrings().solution.addResource.AddResourcesNoticeForCli
|
|
372
|
+
: single
|
|
373
|
+
? tools_1.getStrings().solution.addResource.AddResourceNotice
|
|
374
|
+
: tools_1.getStrings().solution.addResource.AddResourcesNotice;
|
|
375
|
+
ctx.userInteraction.showMessage("info", util.format(template, addNames), false);
|
|
302
376
|
}
|
|
303
|
-
(
|
|
377
|
+
(_c = ctx.telemetryReporter) === null || _c === void 0 ? void 0 : _c.sendTelemetryEvent(constants_1.SolutionTelemetryEvent.AddResource, {
|
|
304
378
|
[constants_1.SolutionTelemetryProperty.Component]: constants_1.SolutionTelemetryComponentName,
|
|
305
379
|
[constants_1.SolutionTelemetryProperty.Success]: constants_1.SolutionTelemetrySuccess.Yes,
|
|
306
380
|
[constants_1.SolutionTelemetryProperty.Resources]: addResourcesAnswer.join(";"),
|
|
307
381
|
});
|
|
308
|
-
return teamsfx_api_1.ok(
|
|
309
|
-
? { solutionSettings:
|
|
382
|
+
return teamsfx_api_1.ok(pluginsToDoArm.length > 0
|
|
383
|
+
? { solutionSettings: solutionSettings, solutionConfig: { provisionSucceeded: false } }
|
|
310
384
|
: teamsfx_api_1.Void);
|
|
311
385
|
}
|
|
312
386
|
exports.addResource = addResource;
|