@microsoft/teamsfx-core 1.1.2 → 1.1.3-alpha.12edbb86.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 +1 -1
- package/build/common/armInterface.d.ts.map +1 -1
- package/build/common/constants.d.ts +3 -2
- package/build/common/constants.d.ts.map +1 -1
- package/build/common/constants.js +3 -2
- package/build/common/constants.js.map +1 -1
- package/build/common/deps-checker/checkerFactory.d.ts +8 -0
- package/build/common/deps-checker/checkerFactory.d.ts.map +1 -0
- package/build/common/deps-checker/checkerFactory.js +32 -0
- package/build/common/deps-checker/checkerFactory.js.map +1 -0
- package/build/common/deps-checker/constant/helpLink.d.ts +11 -0
- package/build/common/deps-checker/constant/helpLink.d.ts.map +1 -0
- package/build/common/deps-checker/constant/helpLink.js +16 -0
- package/build/common/deps-checker/constant/helpLink.js.map +1 -0
- package/build/common/deps-checker/constant/index.d.ts +4 -0
- package/build/common/deps-checker/constant/index.d.ts.map +1 -0
- package/build/common/deps-checker/constant/index.js +9 -0
- package/build/common/deps-checker/constant/index.js.map +1 -0
- package/build/common/deps-checker/constant/message.d.ts +29 -0
- package/build/common/deps-checker/constant/message.d.ts.map +1 -0
- package/build/common/deps-checker/constant/message.js +57 -0
- package/build/common/deps-checker/constant/message.js.map +1 -0
- package/build/common/deps-checker/constant/telemetry.d.ts +43 -0
- package/build/common/deps-checker/constant/telemetry.d.ts.map +1 -0
- package/build/common/deps-checker/constant/telemetry.js +51 -0
- package/build/common/deps-checker/constant/telemetry.js.map +1 -0
- package/build/common/deps-checker/depsChecker.d.ts +25 -0
- package/build/common/deps-checker/depsChecker.d.ts.map +1 -0
- package/build/common/deps-checker/depsChecker.js +13 -0
- package/build/common/deps-checker/depsChecker.js.map +1 -0
- package/build/common/deps-checker/depsError.d.ts +17 -0
- package/build/common/deps-checker/depsError.d.ts.map +1 -0
- package/build/common/deps-checker/depsError.js +42 -0
- package/build/common/deps-checker/depsError.js.map +1 -0
- package/build/common/deps-checker/depsLogger.d.ts +11 -0
- package/build/common/deps-checker/depsLogger.d.ts.map +1 -0
- package/build/common/deps-checker/depsLogger.js +5 -0
- package/build/common/deps-checker/depsLogger.js.map +1 -0
- package/build/common/deps-checker/depsManager.d.ts +36 -0
- package/build/common/deps-checker/depsManager.d.ts.map +1 -0
- package/build/common/deps-checker/depsManager.js +80 -0
- package/build/common/deps-checker/depsManager.js.map +1 -0
- package/build/common/deps-checker/depsTelemetry.d.ts +10 -0
- package/build/common/deps-checker/depsTelemetry.d.ts.map +1 -0
- package/build/common/deps-checker/depsTelemetry.js +5 -0
- package/build/common/deps-checker/depsTelemetry.js.map +1 -0
- package/build/common/deps-checker/index.d.ts +9 -0
- package/build/common/deps-checker/index.d.ts.map +1 -0
- package/build/common/deps-checker/index.js +14 -0
- package/build/common/deps-checker/index.js.map +1 -0
- package/build/common/deps-checker/internal/dotnetChecker.d.ts +50 -0
- package/build/common/deps-checker/internal/dotnetChecker.d.ts.map +1 -0
- package/build/common/deps-checker/internal/dotnetChecker.js +406 -0
- package/build/common/deps-checker/internal/dotnetChecker.js.map +1 -0
- package/build/common/deps-checker/internal/funcToolChecker.d.ts +40 -0
- package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -0
- package/build/common/deps-checker/internal/funcToolChecker.js +280 -0
- package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -0
- package/build/common/deps-checker/internal/ngrokChecker.d.ts +28 -0
- package/build/common/deps-checker/internal/ngrokChecker.d.ts.map +1 -0
- package/build/common/deps-checker/internal/ngrokChecker.js +181 -0
- package/build/common/deps-checker/internal/ngrokChecker.js.map +1 -0
- package/build/common/deps-checker/internal/nodeChecker.d.ts +40 -0
- package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -0
- package/build/common/deps-checker/internal/nodeChecker.js +144 -0
- package/build/common/deps-checker/internal/nodeChecker.js.map +1 -0
- package/build/common/deps-checker/util/cpUtils.d.ts +24 -0
- package/build/common/deps-checker/util/cpUtils.d.ts.map +1 -0
- package/build/common/deps-checker/util/cpUtils.js +99 -0
- package/build/common/deps-checker/util/cpUtils.js.map +1 -0
- 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/deps-checker/util/progressIndicator.d.ts +3 -0
- package/build/common/deps-checker/util/progressIndicator.d.ts.map +1 -0
- package/build/common/deps-checker/util/progressIndicator.js +18 -0
- package/build/common/deps-checker/util/progressIndicator.js.map +1 -0
- package/build/common/deps-checker/util/system.d.ts +5 -0
- package/build/common/deps-checker/util/system.d.ts.map +1 -0
- package/build/common/deps-checker/util/system.js +24 -0
- package/build/common/deps-checker/util/system.js.map +1 -0
- package/build/common/index.d.ts +4 -0
- package/build/common/index.d.ts.map +1 -1
- package/build/common/index.js +4 -0
- package/build/common/index.js.map +1 -1
- package/build/common/local/constants.d.ts +115 -0
- package/build/common/local/constants.d.ts.map +1 -0
- package/build/common/local/constants.js +122 -0
- package/build/common/local/constants.js.map +1 -0
- package/build/common/local/depsAdapter.d.ts +27 -0
- package/build/common/local/depsAdapter.d.ts.map +1 -0
- package/build/common/local/depsAdapter.js +86 -0
- package/build/common/local/depsAdapter.js.map +1 -0
- package/build/common/local/localEnvManager.d.ts +24 -0
- package/build/common/local/localEnvManager.d.ts.map +1 -0
- package/build/common/local/localEnvManager.js +113 -0
- package/build/common/local/localEnvManager.js.map +1 -0
- package/build/{plugins/resource/localdebug/localEnvMulti.d.ts → common/local/localEnvProvider.d.ts} +5 -4
- package/build/common/local/localEnvProvider.d.ts.map +1 -0
- package/build/{plugins/resource/localdebug/localEnvMulti.js → common/local/localEnvProvider.js} +19 -15
- package/build/common/local/localEnvProvider.js.map +1 -0
- package/build/common/local/localSettingsHelper.d.ts +3 -0
- package/build/common/local/localSettingsHelper.d.ts.map +1 -0
- package/build/common/local/localSettingsHelper.js +133 -0
- package/build/common/local/localSettingsHelper.js.map +1 -0
- package/build/common/local/npmLogHelper.d.ts +11 -0
- package/build/common/local/npmLogHelper.d.ts.map +1 -0
- package/build/common/local/npmLogHelper.js +82 -0
- package/build/common/local/npmLogHelper.js.map +1 -0
- package/build/common/local/packageJsonHelper.d.ts +4 -0
- package/build/common/local/packageJsonHelper.d.ts.map +1 -0
- package/build/common/local/packageJsonHelper.js +36 -0
- package/build/common/local/packageJsonHelper.js.map +1 -0
- package/build/common/local/portChecker.d.ts +3 -0
- package/build/common/local/portChecker.d.ts.map +1 -0
- package/build/common/local/portChecker.js +104 -0
- package/build/common/local/portChecker.js.map +1 -0
- package/build/common/local/projectSettingsHelper.d.ts +11 -0
- package/build/common/local/projectSettingsHelper.d.ts.map +1 -0
- package/build/common/local/projectSettingsHelper.js +37 -0
- package/build/common/local/projectSettingsHelper.js.map +1 -0
- package/build/common/local/taskDefinition.d.ts +37 -0
- package/build/common/local/taskDefinition.d.ts.map +1 -0
- package/build/common/local/taskDefinition.js +231 -0
- package/build/common/local/taskDefinition.js.map +1 -0
- package/build/common/localSettingsProvider.d.ts +3 -3
- package/build/common/localSettingsProvider.d.ts.map +1 -1
- package/build/common/localSettingsProvider.js +12 -10
- package/build/common/localSettingsProvider.js.map +1 -1
- package/build/common/samples-config.json +14 -0
- package/build/common/templatesActions.d.ts +2 -0
- package/build/common/templatesActions.d.ts.map +1 -1
- package/build/common/templatesActions.js +33 -1
- package/build/common/templatesActions.js.map +1 -1
- package/build/common/tools.d.ts +11 -5
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +35 -85
- package/build/common/tools.js.map +1 -1
- package/build/core/SolutionPluginContainer.d.ts +2 -1
- package/build/core/SolutionPluginContainer.d.ts.map +1 -1
- package/build/core/SolutionPluginContainer.js +9 -1
- package/build/core/SolutionPluginContainer.js.map +1 -1
- package/build/core/dependencyChecker.d.ts +1 -0
- package/build/core/dependencyChecker.d.ts.map +1 -0
- package/build/core/dependencyChecker.js +2 -0
- package/build/core/dependencyChecker.js.map +1 -0
- package/build/core/downloadSample.d.ts +9 -0
- package/build/core/downloadSample.d.ts.map +1 -0
- package/build/core/downloadSample.js +150 -0
- package/build/core/downloadSample.js.map +1 -0
- package/build/core/environment.d.ts +5 -5
- package/build/core/environment.d.ts.map +1 -1
- package/build/core/environment.js +40 -25
- package/build/core/environment.js.map +1 -1
- package/build/core/error.d.ts +2 -1
- package/build/core/error.d.ts.map +1 -1
- package/build/core/error.js +7 -3
- package/build/core/error.js.map +1 -1
- package/build/core/index.d.ts +54 -15
- package/build/core/index.d.ts.map +1 -1
- package/build/core/index.js +693 -575
- package/build/core/index.js.map +1 -1
- package/build/core/middleware/concurrentLocker.d.ts.map +1 -1
- package/build/core/middleware/concurrentLocker.js +23 -12
- package/build/core/middleware/concurrentLocker.js.map +1 -1
- package/build/core/middleware/envInfoLoader.d.ts +5 -1
- package/build/core/middleware/envInfoLoader.d.ts.map +1 -1
- package/build/core/middleware/envInfoLoader.js +52 -46
- package/build/core/middleware/envInfoLoader.js.map +1 -1
- package/build/core/middleware/envInfoLoaderV3.d.ts +3 -0
- package/build/core/middleware/envInfoLoaderV3.d.ts.map +1 -0
- package/build/core/middleware/envInfoLoaderV3.js +64 -0
- package/build/core/middleware/envInfoLoaderV3.js.map +1 -0
- package/build/core/middleware/envInfoWriter.js +14 -31
- package/build/core/middleware/envInfoWriter.js.map +1 -1
- package/build/core/middleware/envInfoWriterV3.d.ts +6 -0
- package/build/core/middleware/envInfoWriterV3.d.ts.map +1 -0
- package/build/core/middleware/envInfoWriterV3.js +63 -0
- package/build/core/middleware/envInfoWriterV3.js.map +1 -0
- package/build/core/middleware/errorHandler.d.ts.map +1 -1
- package/build/core/middleware/errorHandler.js +3 -5
- package/build/core/middleware/errorHandler.js.map +1 -1
- package/build/core/middleware/localSettingsLoader.d.ts.map +1 -1
- package/build/core/middleware/localSettingsLoader.js +1 -2
- package/build/core/middleware/localSettingsLoader.js.map +1 -1
- package/build/core/middleware/localSettingsWriter.d.ts.map +1 -1
- package/build/core/middleware/localSettingsWriter.js +7 -18
- package/build/core/middleware/localSettingsWriter.js.map +1 -1
- package/build/core/middleware/projectMigrator.d.ts.map +1 -1
- package/build/core/middleware/projectMigrator.js +25 -57
- package/build/core/middleware/projectMigrator.js.map +1 -1
- package/build/core/middleware/projectSettingsLoader.d.ts.map +1 -1
- package/build/core/middleware/projectSettingsLoader.js +3 -6
- package/build/core/middleware/projectSettingsLoader.js.map +1 -1
- package/build/core/middleware/projectSettingsLoaderV3.d.ts +4 -0
- package/build/core/middleware/projectSettingsLoaderV3.d.ts.map +1 -0
- package/build/core/middleware/projectSettingsLoaderV3.js +49 -0
- package/build/core/middleware/projectSettingsLoaderV3.js.map +1 -0
- package/build/core/middleware/projectSettingsWriter.d.ts.map +1 -1
- package/build/core/middleware/projectSettingsWriter.js +5 -12
- package/build/core/middleware/projectSettingsWriter.js.map +1 -1
- package/build/core/middleware/projectUpgrader.d.ts.map +1 -1
- package/build/core/middleware/projectUpgrader.js +7 -15
- package/build/core/middleware/projectUpgrader.js.map +1 -1
- package/build/core/middleware/questionModel.d.ts +14 -1
- package/build/core/middleware/questionModel.d.ts.map +1 -1
- package/build/core/middleware/questionModel.js +319 -23
- package/build/core/middleware/questionModel.js.map +1 -1
- package/build/core/middleware/solutionLoader.d.ts +3 -2
- package/build/core/middleware/solutionLoader.d.ts.map +1 -1
- package/build/core/middleware/solutionLoader.js +21 -23
- package/build/core/middleware/solutionLoader.js.map +1 -1
- package/build/core/middleware/solutionLoaderV3.d.ts +4 -0
- package/build/core/middleware/solutionLoaderV3.d.ts.map +1 -0
- package/build/core/middleware/solutionLoaderV3.js +19 -0
- package/build/core/middleware/solutionLoaderV3.js.map +1 -0
- package/build/core/question.d.ts +9 -1
- package/build/core/question.d.ts.map +1 -1
- package/build/core/question.js +113 -3
- package/build/core/question.js.map +1 -1
- package/build/core/tools.d.ts +2 -1
- package/build/core/tools.d.ts.map +1 -1
- package/build/core/tools.js +19 -10
- package/build/core/tools.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/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 +18 -17
- 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 +10 -0
- 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 +7 -0
- package/build/plugins/resource/aad/utils/configs.js.map +1 -1
- package/build/plugins/resource/apim/config.d.ts +2 -1
- package/build/plugins/resource/apim/config.d.ts.map +1 -1
- package/build/plugins/resource/apim/config.js +5 -0
- package/build/plugins/resource/apim/config.js.map +1 -1
- package/build/plugins/resource/apim/constants.d.ts +1 -0
- package/build/plugins/resource/apim/constants.d.ts.map +1 -1
- package/build/plugins/resource/apim/constants.js +1 -0
- package/build/plugins/resource/apim/constants.js.map +1 -1
- package/build/plugins/resource/apim/index.js +2 -2
- package/build/plugins/resource/apim/index.js.map +1 -1
- package/build/plugins/resource/apim/managers/apimManager.d.ts +2 -2
- package/build/plugins/resource/apim/managers/apimManager.d.ts.map +1 -1
- package/build/plugins/resource/apim/managers/apimManager.js +26 -20
- package/build/plugins/resource/apim/managers/apimManager.js.map +1 -1
- package/build/plugins/resource/appstudio/appStudio.d.ts +1 -1
- package/build/plugins/resource/appstudio/appStudio.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/appStudio.js +106 -85
- package/build/plugins/resource/appstudio/appStudio.js.map +1 -1
- package/build/plugins/resource/appstudio/constants.d.ts +7 -6
- package/build/plugins/resource/appstudio/constants.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/constants.js +8 -152
- package/build/plugins/resource/appstudio/constants.js.map +1 -1
- package/build/plugins/resource/appstudio/errors.d.ts +9 -5
- package/build/plugins/resource/appstudio/errors.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/errors.js +10 -5
- package/build/plugins/resource/appstudio/errors.js.map +1 -1
- package/build/plugins/resource/appstudio/index.d.ts +37 -1
- package/build/plugins/resource/appstudio/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/index.js +58 -21
- package/build/plugins/resource/appstudio/index.js.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts +32 -0
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts.map +1 -0
- package/build/plugins/resource/appstudio/manifestTemplate.js +190 -0
- package/build/plugins/resource/appstudio/manifestTemplate.js.map +1 -0
- package/build/plugins/resource/appstudio/plugin.d.ts +2 -4
- package/build/plugins/resource/appstudio/plugin.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/plugin.js +256 -465
- package/build/plugins/resource/appstudio/plugin.js.map +1 -1
- package/build/plugins/resource/appstudio/utils/telemetry.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/utils/telemetry.js +12 -16
- package/build/plugins/resource/appstudio/utils/telemetry.js.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.d.ts +73 -0
- package/build/plugins/resource/appstudio/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/appstudio/v3/index.js +87 -0
- package/build/plugins/resource/appstudio/v3/index.js.map +1 -0
- package/build/plugins/resource/bot/index.d.ts.map +1 -1
- package/build/plugins/resource/bot/index.js +5 -1
- package/build/plugins/resource/bot/index.js.map +1 -1
- package/build/plugins/resource/bot/plugin.d.ts +2 -2
- package/build/plugins/resource/bot/plugin.d.ts.map +1 -1
- package/build/plugins/resource/bot/plugin.js +40 -37
- package/build/plugins/resource/bot/plugin.js.map +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 -15
- package/build/plugins/resource/frontend/constants.d.ts.map +1 -1
- package/build/plugins/resource/frontend/constants.js +3 -19
- package/build/plugins/resource/frontend/constants.js.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/constants.d.ts +7 -24
- package/build/plugins/resource/frontend/{blazor → dotnet}/constants.d.ts.map +1 -1
- package/build/plugins/resource/frontend/dotnet/constants.js +81 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/constants.js.map +1 -1
- 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 +2 -2
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts +26 -0
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/plugin.js +69 -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/env.d.ts +22 -0
- package/build/plugins/resource/frontend/env.d.ts.map +1 -0
- package/build/plugins/resource/frontend/env.js +103 -0
- package/build/plugins/resource/frontend/env.js.map +1 -0
- package/build/plugins/resource/frontend/index.d.ts +2 -2
- package/build/plugins/resource/frontend/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/index.js +8 -20
- package/build/plugins/resource/frontend/index.js.map +1 -1
- package/build/plugins/resource/frontend/ops/deploy.d.ts +5 -4
- package/build/plugins/resource/frontend/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/frontend/ops/deploy.js +35 -29
- package/build/plugins/resource/frontend/ops/deploy.js.map +1 -1
- package/build/plugins/resource/frontend/plugin.d.ts +2 -3
- package/build/plugins/resource/frontend/plugin.d.ts.map +1 -1
- package/build/plugins/resource/frontend/plugin.js +50 -75
- package/build/plugins/resource/frontend/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/resources/errors.d.ts +3 -18
- package/build/plugins/resource/frontend/resources/errors.d.ts.map +1 -1
- package/build/plugins/resource/frontend/resources/errors.js +7 -39
- package/build/plugins/resource/frontend/resources/errors.js.map +1 -1
- package/build/plugins/resource/frontend/resources/messages.d.ts +2 -0
- package/build/plugins/resource/frontend/resources/messages.d.ts.map +1 -1
- package/build/plugins/resource/frontend/resources/messages.js +2 -0
- package/build/plugins/resource/frontend/resources/messages.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/utils/telemetry-helper.d.ts +1 -1
- package/build/plugins/resource/frontend/utils/telemetry-helper.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils/telemetry-helper.js +8 -2
- package/build/plugins/resource/frontend/utils/telemetry-helper.js.map +1 -1
- package/build/plugins/resource/frontend/utils.d.ts +6 -1
- package/build/plugins/resource/frontend/utils.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils.js +17 -6
- package/build/plugins/resource/frontend/utils.js.map +1 -1
- 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 -12
- package/build/plugins/resource/function/index.js.map +1 -1
- package/build/plugins/resource/function/plugin.d.ts.map +1 -1
- package/build/plugins/resource/function/plugin.js +26 -21
- package/build/plugins/resource/function/plugin.js.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/checker.d.ts +0 -1
- package/build/plugins/resource/function/utils/depsChecker/checker.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/checker.js +2 -2
- package/build/plugins/resource/function/utils/depsChecker/checker.js.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/common.d.ts +2 -2
- package/build/plugins/resource/function/utils/depsChecker/common.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/common.js +6 -6
- package/build/plugins/resource/function/utils/depsChecker/common.js.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.d.ts +3 -2
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.js +3 -2
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.js.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts +0 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js +1 -23
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js.map +1 -1
- package/build/plugins/resource/identity/index.d.ts.map +1 -1
- package/build/plugins/resource/identity/index.js +21 -17
- package/build/plugins/resource/identity/index.js.map +1 -1
- package/build/plugins/resource/keyvault/plugin.d.ts.map +1 -1
- package/build/plugins/resource/keyvault/plugin.js +17 -14
- package/build/plugins/resource/keyvault/plugin.js.map +1 -1
- package/build/plugins/resource/localdebug/index.d.ts +0 -7
- package/build/plugins/resource/localdebug/index.d.ts.map +1 -1
- package/build/plugins/resource/localdebug/index.js +3 -501
- package/build/plugins/resource/localdebug/index.js.map +1 -1
- package/build/plugins/resource/localdebug/util/error.d.ts.map +1 -1
- package/build/plugins/resource/localdebug/util/error.js +1 -1
- package/build/plugins/resource/localdebug/util/error.js.map +1 -1
- package/build/plugins/resource/localdebug/util/localService.d.ts +0 -1
- package/build/plugins/resource/localdebug/util/localService.d.ts.map +1 -1
- package/build/plugins/resource/localdebug/util/localService.js +1 -40
- package/build/plugins/resource/localdebug/util/localService.js.map +1 -1
- package/build/plugins/resource/localdebug/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/localdebug/v2/index.js +41 -1
- package/build/plugins/resource/localdebug/v2/index.js.map +1 -1
- package/build/plugins/resource/simpleauth/plugin.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/plugin.js +26 -21
- package/build/plugins/resource/simpleauth/plugin.js.map +1 -1
- package/build/plugins/resource/simpleauth/utils/common.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/utils/common.js +3 -1
- package/build/plugins/resource/simpleauth/utils/common.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/config.d.ts +0 -1
- package/build/plugins/resource/sql/config.d.ts.map +1 -1
- package/build/plugins/resource/sql/config.js +0 -1
- package/build/plugins/resource/sql/config.js.map +1 -1
- package/build/plugins/resource/sql/constants.d.ts +1 -0
- package/build/plugins/resource/sql/constants.d.ts.map +1 -1
- package/build/plugins/resource/sql/constants.js +2 -1
- package/build/plugins/resource/sql/constants.js.map +1 -1
- package/build/plugins/resource/sql/errors.d.ts +3 -1
- package/build/plugins/resource/sql/errors.d.ts.map +1 -1
- package/build/plugins/resource/sql/errors.js +3 -1
- package/build/plugins/resource/sql/errors.js.map +1 -1
- package/build/plugins/resource/sql/managementClient.d.ts +3 -1
- package/build/plugins/resource/sql/managementClient.d.ts.map +1 -1
- package/build/plugins/resource/sql/managementClient.js +11 -20
- 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 +51 -40
- package/build/plugins/resource/sql/plugin.js.map +1 -1
- package/build/plugins/resource/sql/results.d.ts +2 -2
- package/build/plugins/resource/sql/results.d.ts.map +1 -1
- package/build/plugins/resource/sql/results.js +4 -4
- package/build/plugins/resource/sql/results.js.map +1 -1
- package/build/plugins/resource/sql/sqlClient.d.ts +1 -1
- package/build/plugins/resource/sql/sqlClient.d.ts.map +1 -1
- package/build/plugins/resource/sql/sqlClient.js +33 -46
- package/build/plugins/resource/sql/sqlClient.js.map +1 -1
- package/build/plugins/resource/sql/utils/checkInput.js +2 -2
- package/build/plugins/resource/sql/utils/checkInput.js.map +1 -1
- package/build/plugins/resource/sql/utils/message.d.ts +0 -1
- package/build/plugins/resource/sql/utils/message.d.ts.map +1 -1
- package/build/plugins/resource/sql/utils/message.js +0 -1
- package/build/plugins/resource/sql/utils/message.js.map +1 -1
- package/build/plugins/resource/utils4v2.d.ts.map +1 -1
- package/build/plugins/resource/utils4v2.js +0 -4
- package/build/plugins/resource/utils4v2.js.map +1 -1
- package/build/plugins/solution/fx-solution/arm.d.ts +26 -10
- package/build/plugins/solution/fx-solution/arm.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/arm.js +429 -146
- package/build/plugins/solution/fx-solution/arm.js.map +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.d.ts +13 -2
- package/build/plugins/solution/fx-solution/commonQuestions.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.js +24 -26
- package/build/plugins/solution/fx-solution/commonQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/constants.d.ts +2 -0
- package/build/plugins/solution/fx-solution/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/constants.js +2 -0
- package/build/plugins/solution/fx-solution/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/constants.d.ts +10 -0
- package/build/plugins/solution/fx-solution/debug/constants.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/debug/constants.js +17 -0
- package/build/plugins/solution/fx-solution/debug/constants.js.map +1 -0
- package/build/plugins/solution/fx-solution/debug/error.d.ts +9 -0
- package/build/plugins/solution/fx-solution/debug/error.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/debug/error.js +36 -0
- package/build/plugins/solution/fx-solution/debug/error.js.map +1 -0
- package/build/plugins/solution/fx-solution/debug/provisionLocal.d.ts +4 -0
- package/build/plugins/solution/fx-solution/debug/provisionLocal.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/debug/provisionLocal.js +237 -0
- package/build/plugins/solution/fx-solution/debug/provisionLocal.js.map +1 -0
- package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts +5 -0
- package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/debug/scaffolding.js +165 -0
- package/build/plugins/solution/fx-solution/debug/scaffolding.js.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug/util}/certificate.d.ts +2 -2
- package/build/plugins/solution/fx-solution/debug/util/certificate.d.ts.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug/util}/certificate.js +8 -9
- package/build/plugins/solution/fx-solution/debug/util/certificate.js.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug}/util/codespace.d.ts +0 -0
- package/build/plugins/solution/fx-solution/debug/util/codespace.d.ts.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug}/util/codespace.js +0 -0
- package/build/plugins/solution/fx-solution/debug/util/codespace.js.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug/util}/launch.d.ts +0 -0
- package/build/plugins/solution/fx-solution/debug/util/launch.d.ts.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug/util}/launch.js +1 -1
- package/build/plugins/solution/fx-solution/debug/util/launch.js.map +1 -0
- package/build/plugins/solution/fx-solution/debug/util/localService.d.ts +3 -0
- package/build/plugins/solution/fx-solution/debug/util/localService.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/debug/util/localService.js +52 -0
- package/build/plugins/solution/fx-solution/debug/util/localService.js.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug}/util/ngrok.d.ts +0 -0
- package/build/plugins/solution/fx-solution/debug/util/ngrok.d.ts.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug}/util/ngrok.js +2 -2
- package/build/plugins/solution/fx-solution/debug/util/ngrok.js.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug}/util/process.d.ts +0 -0
- package/build/plugins/solution/fx-solution/debug/util/process.d.ts.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug}/util/process.js +0 -0
- package/build/plugins/solution/fx-solution/debug/util/process.js.map +1 -0
- package/build/plugins/solution/fx-solution/debug/util/settings.d.ts +2 -0
- package/build/plugins/solution/fx-solution/debug/util/settings.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/debug/util/settings.js +22 -0
- package/build/plugins/solution/fx-solution/debug/util/settings.js.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug/util}/tasks.d.ts +0 -0
- package/build/plugins/solution/fx-solution/debug/util/tasks.d.ts.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug/util}/tasks.js +11 -11
- package/build/plugins/solution/fx-solution/debug/util/tasks.js.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug}/util/telemetry.d.ts +7 -6
- package/build/plugins/solution/fx-solution/debug/util/telemetry.d.ts.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug}/util/telemetry.js +16 -19
- package/build/plugins/solution/fx-solution/debug/util/telemetry.js.map +1 -0
- package/build/plugins/solution/fx-solution/index.d.ts +1 -0
- package/build/plugins/solution/fx-solution/index.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/index.js +1 -0
- package/build/plugins/solution/fx-solution/index.js.map +1 -1
- package/build/plugins/solution/fx-solution/question.d.ts +3 -3
- package/build/plugins/solution/fx-solution/question.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/question.js +4 -36
- 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 +19 -10
- package/build/plugins/solution/fx-solution/solution.js.map +1 -1
- package/build/plugins/solution/fx-solution/utils/depsChecker/bicepChecker.d.ts +2 -2
- package/build/plugins/solution/fx-solution/utils/depsChecker/bicepChecker.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/utils/depsChecker/bicepChecker.js +13 -14
- package/build/plugins/solution/fx-solution/utils/depsChecker/bicepChecker.js.map +1 -1
- package/build/plugins/solution/fx-solution/utils/progressHelper.d.ts +2 -2
- package/build/plugins/solution/fx-solution/utils/progressHelper.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/utils/progressHelper.js +4 -4
- package/build/plugins/solution/fx-solution/utils/progressHelper.js.map +1 -1
- 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/constants.d.ts +2 -0
- package/build/plugins/solution/fx-solution/v2/constants.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v2/constants.js +7 -0
- package/build/plugins/solution/fx-solution/v2/constants.js.map +1 -0
- package/build/plugins/solution/fx-solution/v2/createEnv.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/createEnv.js +1 -1
- package/build/plugins/solution/fx-solution/v2/createEnv.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/deploy.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/deploy.js +3 -0
- 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 +199 -124
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts +3 -1
- 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 +142 -120
- package/build/plugins/solution/fx-solution/v2/getQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/listAllCollaborators.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 +13 -3
- package/build/plugins/solution/fx-solution/v2/provision.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provisionLocal.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provisionLocal.js +12 -1
- package/build/plugins/solution/fx-solution/v2/provisionLocal.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 +11 -0
- package/build/plugins/solution/fx-solution/v2/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/solution.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/solution.js +2 -1
- package/build/plugins/solution/fx-solution/v2/solution.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addModule.d.ts +6 -0
- package/build/plugins/solution/fx-solution/v3/addModule.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/addModule.js +35 -0
- package/build/plugins/solution/fx-solution/v3/addModule.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/addResource.d.ts +37 -0
- package/build/plugins/solution/fx-solution/v3/addResource.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/addResource.js +264 -0
- package/build/plugins/solution/fx-solution/v3/addResource.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/constants.d.ts +20 -0
- package/build/plugins/solution/fx-solution/v3/constants.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/constants.js +25 -0
- package/build/plugins/solution/fx-solution/v3/constants.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/deploy.d.ts +6 -0
- package/build/plugins/solution/fx-solution/v3/deploy.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/deploy.js +78 -0
- package/build/plugins/solution/fx-solution/v3/deploy.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/error.d.ts +8 -0
- package/build/plugins/solution/fx-solution/v3/error.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/error.js +17 -0
- package/build/plugins/solution/fx-solution/v3/error.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/init.d.ts +4 -0
- package/build/plugins/solution/fx-solution/v3/init.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/init.js +35 -0
- package/build/plugins/solution/fx-solution/v3/init.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/provision.d.ts +4 -0
- package/build/plugins/solution/fx-solution/v3/provision.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/provision.js +124 -0
- package/build/plugins/solution/fx-solution/v3/provision.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/provisionLocal.d.ts +4 -0
- package/build/plugins/solution/fx-solution/v3/provisionLocal.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/provisionLocal.js +13 -0
- package/build/plugins/solution/fx-solution/v3/provisionLocal.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/publish.d.ts +4 -0
- package/build/plugins/solution/fx-solution/v3/publish.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/publish.js +15 -0
- package/build/plugins/solution/fx-solution/v3/publish.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/scaffold.d.ts +27 -0
- package/build/plugins/solution/fx-solution/v3/scaffold.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/scaffold.js +241 -0
- package/build/plugins/solution/fx-solution/v3/scaffold.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/solution.d.ts +32 -0
- package/build/plugins/solution/fx-solution/v3/solution.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/solution.js +45 -0
- package/build/plugins/solution/fx-solution/v3/solution.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/userTask.d.ts +4 -0
- package/build/plugins/solution/fx-solution/v3/userTask.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/userTask.js +15 -0
- package/build/plugins/solution/fx-solution/v3/userTask.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/utils.d.ts +3 -0
- package/build/plugins/solution/fx-solution/v3/utils.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/utils.js +16 -0
- package/build/plugins/solution/fx-solution/v3/utils.js.map +1 -0
- package/build/plugins/solution/index.d.ts +1 -0
- package/build/plugins/solution/index.d.ts.map +1 -1
- package/build/plugins/solution/index.js +1 -0
- package/build/plugins/solution/index.js.map +1 -1
- package/build/plugins/solution/spfx-solution/addModule.d.ts +5 -0
- package/build/plugins/solution/spfx-solution/addModule.d.ts.map +1 -0
- package/build/plugins/solution/spfx-solution/addModule.js +29 -0
- package/build/plugins/solution/spfx-solution/addModule.js.map +1 -0
- package/build/plugins/solution/spfx-solution/constants.d.ts +2 -0
- package/build/plugins/solution/spfx-solution/constants.d.ts.map +1 -0
- package/build/plugins/solution/spfx-solution/constants.js +7 -0
- package/build/plugins/solution/spfx-solution/constants.js.map +1 -0
- package/build/plugins/solution/spfx-solution/error.d.ts +5 -0
- package/build/plugins/solution/spfx-solution/error.d.ts.map +1 -0
- package/build/plugins/solution/spfx-solution/error.js +13 -0
- package/build/plugins/solution/spfx-solution/error.js.map +1 -0
- package/build/plugins/solution/spfx-solution/index.d.ts +2 -0
- package/build/plugins/solution/spfx-solution/index.d.ts.map +1 -0
- package/build/plugins/solution/spfx-solution/index.js +7 -0
- package/build/plugins/solution/spfx-solution/index.js.map +1 -0
- package/build/plugins/solution/spfx-solution/init.d.ts +4 -0
- package/build/plugins/solution/spfx-solution/init.d.ts.map +1 -0
- package/build/plugins/solution/spfx-solution/init.js +52 -0
- package/build/plugins/solution/spfx-solution/init.js.map +1 -0
- package/build/plugins/solution/spfx-solution/questions.d.ts +4 -0
- package/build/plugins/solution/spfx-solution/questions.d.ts.map +1 -0
- package/build/plugins/solution/spfx-solution/questions.js +10 -0
- package/build/plugins/solution/spfx-solution/questions.js.map +1 -0
- package/build/plugins/solution/spfx-solution/scaffold.d.ts +13 -0
- package/build/plugins/solution/spfx-solution/scaffold.d.ts.map +1 -0
- package/build/plugins/solution/spfx-solution/scaffold.js +105 -0
- package/build/plugins/solution/spfx-solution/scaffold.js.map +1 -0
- package/build/plugins/solution/spfx-solution/solution.d.ts +22 -0
- package/build/plugins/solution/spfx-solution/solution.d.ts.map +1 -0
- package/build/plugins/solution/spfx-solution/solution.js +31 -0
- package/build/plugins/solution/spfx-solution/solution.js.map +1 -0
- package/build/plugins/solution/utils/error.d.ts +5 -0
- package/build/plugins/solution/utils/error.d.ts.map +1 -0
- package/build/plugins/solution/utils/error.js +13 -0
- package/build/plugins/solution/utils/error.js.map +1 -0
- package/build/plugins/solution/utils/questions.d.ts +16 -0
- package/build/plugins/solution/utils/questions.d.ts.map +1 -0
- package/build/plugins/solution/utils/questions.js +86 -0
- package/build/plugins/solution/utils/questions.js.map +1 -0
- package/package.json +21 -6
- package/resource/deps-checker/dotnet-install.ps1 +1095 -0
- package/resource/deps-checker/dotnet-install.sh +1222 -0
- package/resource/strings.json +18 -9
- package/templates/plugins/resource/apim/bicep/apimConfiguration.bicep +16 -16
- package/templates/plugins/resource/apim/bicep/config.template.bicep +1 -1
- package/templates/plugins/resource/apim/bicep/provision.template.bicep +1 -1
- package/templates/plugins/resource/bot/bicep/botConfiguration.template.bicep +33 -38
- package/templates/plugins/resource/bot/bicep/botProvision.template.bicep +15 -11
- package/templates/plugins/resource/bot/bicep/config.template.bicep +3 -1
- package/templates/plugins/resource/bot/bicep/provision.template.bicep +2 -2
- package/templates/plugins/resource/frontend/bicep/frontendHostingProvision.bicep +3 -2
- package/templates/plugins/resource/frontend/bicep/provision.template.bicep +1 -1
- package/templates/plugins/resource/function/bicep/config.template.bicep +3 -1
- package/templates/plugins/resource/function/bicep/functionConfiguration.template.bicep +44 -42
- package/templates/plugins/resource/function/bicep/functionProvision.template.bicep +17 -14
- package/templates/plugins/resource/function/bicep/provision.template.bicep +2 -2
- package/templates/plugins/resource/identity/bicep/identityProvision.template.bicep +2 -1
- package/templates/plugins/resource/identity/bicep/provision.template.bicep +1 -1
- package/templates/plugins/resource/keyvault/bicep/keyVaultProvision.template.bicep +10 -7
- package/templates/plugins/resource/keyvault/bicep/provision.template.bicep +4 -2
- package/templates/plugins/resource/simpleauth/bicep/config.template.bicep +3 -1
- package/templates/plugins/resource/simpleauth/bicep/provision.template.bicep +2 -2
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthConfiguration.template.bicep +27 -31
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthProvision.template.bicep +9 -6
- package/templates/plugins/resource/simpleauth/version.txt +2 -1
- package/templates/plugins/resource/sql/bicep/provision.template.bicep +1 -1
- package/templates/plugins/resource/sql/bicep/sqlProvision.template.bicep +8 -5
- package/build/plugins/resource/frontend/blazor/constants.js +0 -98
- 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/frontend/utils/environment-utils.d.ts +0 -9
- package/build/plugins/resource/frontend/utils/environment-utils.d.ts.map +0 -1
- package/build/plugins/resource/frontend/utils/environment-utils.js +0 -36
- package/build/plugins/resource/frontend/utils/environment-utils.js.map +0 -1
- package/build/plugins/resource/localdebug/certificate.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/certificate.js.map +0 -1
- package/build/plugins/resource/localdebug/launch.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/launch.js.map +0 -1
- package/build/plugins/resource/localdebug/legacyPlugin.d.ts +0 -6
- package/build/plugins/resource/localdebug/legacyPlugin.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/legacyPlugin.js +0 -208
- package/build/plugins/resource/localdebug/legacyPlugin.js.map +0 -1
- package/build/plugins/resource/localdebug/localEnvMulti.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/localEnvMulti.js.map +0 -1
- package/build/plugins/resource/localdebug/settings.d.ts +0 -2
- package/build/plugins/resource/localdebug/settings.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/settings.js +0 -18
- package/build/plugins/resource/localdebug/settings.js.map +0 -1
- package/build/plugins/resource/localdebug/tasks.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/tasks.js.map +0 -1
- package/build/plugins/resource/localdebug/util/codespace.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/util/codespace.js.map +0 -1
- package/build/plugins/resource/localdebug/util/ngrok.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/util/ngrok.js.map +0 -1
- package/build/plugins/resource/localdebug/util/process.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/util/process.js.map +0 -1
- package/build/plugins/resource/localdebug/util/telemetry.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/util/telemetry.js.map +0 -1
- package/templates/azure/config.bicep +0 -25
- package/templates/azure/main.bicep +0 -20
- package/templates/azure/provision/azureSql.bicep +0 -39
- package/templates/azure/provision/frontendHosting.bicep +0 -23
- package/templates/azure/provision/function.bicep +0 -79
- package/templates/azure/provision/simpleAuth.bicep +0 -44
- package/templates/azure/provision.bicep +0 -58
- package/templates/azure/teamsFx/bot.bicep +0 -34
- package/templates/azure/teamsFx/function.bicep +0 -71
- package/templates/azure/teamsFx/simpleAuth.bicep +0 -40
- package/templates/plugins/resource/aad/bicep/param.template.bicep +0 -6
- package/templates/plugins/resource/aad/bicep/variables.template.bicep +0 -13
|
@@ -2,10 +2,16 @@
|
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
3
|
// Licensed under the MIT license.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.traverseToCollectPasswordNodes = exports.desensitize = exports.QuestionModelMW = void 0;
|
|
5
|
+
exports.getQuestionsForMigrateV1Project = exports.getQuestionsV2 = exports.getQuestionsForUserTaskV2 = exports.getQuestionsForCreateProjectV2 = exports.getQuestionsForCreateProjectV3 = exports.getQuestionsForInit = exports.getQuestionsForPublish = exports.getQuestionsForLocalProvision = exports.getQuestionsForDeploy = exports.getQuestionsForProvision = exports.getQuestionsForAddResource = exports.getQuestionsForAddModule = exports.getQuestionsForScaffold = exports.traverseToCollectPasswordNodes = exports.desensitize = exports.QuestionModelMW = void 0;
|
|
6
|
+
const tslib_1 = require("tslib");
|
|
6
7
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
8
|
+
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
7
9
|
const __1 = require("..");
|
|
8
10
|
const common_1 = require("../../common");
|
|
11
|
+
const question_1 = require("../question");
|
|
12
|
+
const SolutionPluginContainer_1 = require("../SolutionPluginContainer");
|
|
13
|
+
const projectSettingsLoader_1 = require("./projectSettingsLoader");
|
|
14
|
+
const projectSettingsLoaderV3_1 = require("./projectSettingsLoaderV3");
|
|
9
15
|
/**
|
|
10
16
|
* This middleware will help to collect input from question flow
|
|
11
17
|
*/
|
|
@@ -14,62 +20,103 @@ const QuestionModelMW = async (ctx, next) => {
|
|
|
14
20
|
const method = ctx.method;
|
|
15
21
|
const core = ctx.self;
|
|
16
22
|
let getQuestionRes = teamsfx_api_1.ok(undefined);
|
|
17
|
-
if (method === "
|
|
18
|
-
getQuestionRes = await core.
|
|
23
|
+
if (method === "createProjectV2") {
|
|
24
|
+
getQuestionRes = await core._getQuestionsForCreateProjectV2(inputs);
|
|
25
|
+
}
|
|
26
|
+
else if (method === "createProjectV3") {
|
|
27
|
+
getQuestionRes = await core._getQuestionsForCreateProjectV3(inputs);
|
|
19
28
|
}
|
|
20
29
|
else if (method === "migrateV1Project") {
|
|
21
|
-
const res = await
|
|
30
|
+
const res = await (__1.TOOLS === null || __1.TOOLS === void 0 ? void 0 : __1.TOOLS.ui.showMessage("warn", "We will update your project to make it compatible with the latest Teams Toolkit. We recommend to use git for better tracking file changes before migration. Your original project files will be archived to the .archive folder. You can refer to .archive.log which provides detailed information about the archive process.", true, "OK"));
|
|
22
31
|
const answer = (res === null || res === void 0 ? void 0 : res.isOk()) ? res.value : undefined;
|
|
23
32
|
if (!answer || answer != "OK") {
|
|
24
|
-
|
|
33
|
+
__1.TOOLS === null || __1.TOOLS === void 0 ? void 0 : __1.TOOLS.logProvider.info(`[core] V1 project migration was canceled.`);
|
|
25
34
|
ctx.result = teamsfx_api_1.ok(null);
|
|
26
35
|
return;
|
|
27
36
|
}
|
|
28
37
|
getQuestionRes = await core._getQuestionsForMigrateV1Project(inputs);
|
|
29
38
|
}
|
|
39
|
+
else if (method === "init" || method === "_init") {
|
|
40
|
+
getQuestionRes = await core._getQuestionsForInit(inputs);
|
|
41
|
+
}
|
|
42
|
+
else if ([
|
|
43
|
+
"addModule",
|
|
44
|
+
"scaffold",
|
|
45
|
+
"addResource",
|
|
46
|
+
"provisionResourcesV3",
|
|
47
|
+
"localDebugV3",
|
|
48
|
+
"deployArtifactsV3",
|
|
49
|
+
"publishApplicationV3",
|
|
50
|
+
].includes(method || "")) {
|
|
51
|
+
const solutionV3 = ctx.solutionV3;
|
|
52
|
+
const contextV2 = ctx.contextV2;
|
|
53
|
+
if (solutionV3 && contextV2) {
|
|
54
|
+
if (method === "addModule") {
|
|
55
|
+
getQuestionRes = await core._getQuestionsForAddModule(inputs, solutionV3, contextV2);
|
|
56
|
+
}
|
|
57
|
+
else if (method === "scaffold") {
|
|
58
|
+
getQuestionRes = await core._getQuestionsForScaffold(inputs, solutionV3, contextV2);
|
|
59
|
+
}
|
|
60
|
+
else if (method === "addResource") {
|
|
61
|
+
getQuestionRes = await core._getQuestionsForAddResource(inputs, solutionV3, contextV2);
|
|
62
|
+
}
|
|
63
|
+
else if (method === "provisionResourcesV3") {
|
|
64
|
+
getQuestionRes = await core._getQuestionsForProvision(inputs, solutionV3, contextV2, ctx.envInfoV3);
|
|
65
|
+
}
|
|
66
|
+
else if (method === "localDebugV3") {
|
|
67
|
+
getQuestionRes = await core._getQuestionsForLocalProvision(inputs, solutionV3, contextV2, ctx.localSettings);
|
|
68
|
+
}
|
|
69
|
+
else if (method === "deployArtifactsV3") {
|
|
70
|
+
getQuestionRes = await core._getQuestionsForDeploy(inputs, solutionV3, contextV2, ctx.envInfoV3);
|
|
71
|
+
}
|
|
72
|
+
else if (method === "publishApplicationV3") {
|
|
73
|
+
getQuestionRes = await core._getQuestionsForPublish(inputs, solutionV3, contextV2, ctx.envInfoV3);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
30
77
|
else {
|
|
31
|
-
if (
|
|
32
|
-
const solution =
|
|
33
|
-
const context =
|
|
78
|
+
if (ctx.solutionV2 && ctx.contextV2) {
|
|
79
|
+
const solution = ctx.solutionV2;
|
|
80
|
+
const context = ctx.contextV2;
|
|
34
81
|
if (solution && context) {
|
|
35
|
-
if (method === "provisionResources") {
|
|
36
|
-
getQuestionRes = await core._getQuestions(context, solution, teamsfx_api_1.Stage.provision, inputs,
|
|
82
|
+
if (method === "provisionResources" || method === "provisionResourcesV2") {
|
|
83
|
+
getQuestionRes = await core._getQuestions(context, solution, teamsfx_api_1.Stage.provision, inputs, ctx.envInfoV2);
|
|
37
84
|
}
|
|
38
|
-
else if (method === "localDebug") {
|
|
39
|
-
getQuestionRes = await core._getQuestions(context, solution, teamsfx_api_1.Stage.debug, inputs,
|
|
85
|
+
else if (method === "localDebug" || method === "localDebugV2") {
|
|
86
|
+
getQuestionRes = await core._getQuestions(context, solution, teamsfx_api_1.Stage.debug, inputs, ctx.envInfoV2);
|
|
40
87
|
}
|
|
41
|
-
else if (method === "deployArtifacts") {
|
|
42
|
-
getQuestionRes = await core._getQuestions(context, solution, teamsfx_api_1.Stage.deploy, inputs,
|
|
88
|
+
else if (method === "deployArtifacts" || method === "deployArtifactsV2") {
|
|
89
|
+
getQuestionRes = await core._getQuestions(context, solution, teamsfx_api_1.Stage.deploy, inputs, ctx.envInfoV2);
|
|
43
90
|
}
|
|
44
|
-
else if (method === "publishApplication") {
|
|
45
|
-
getQuestionRes = await core._getQuestions(context, solution, teamsfx_api_1.Stage.publish, inputs,
|
|
91
|
+
else if (method === "publishApplication" || method === "publishApplicationV2") {
|
|
92
|
+
getQuestionRes = await core._getQuestions(context, solution, teamsfx_api_1.Stage.publish, inputs, ctx.envInfoV2);
|
|
46
93
|
}
|
|
47
94
|
else if (method === "executeUserTask") {
|
|
48
95
|
const func = ctx.arguments[0];
|
|
49
|
-
getQuestionRes = await core._getQuestionsForUserTask(context, solution, func, inputs,
|
|
96
|
+
getQuestionRes = await core._getQuestionsForUserTask(context, solution, func, inputs, ctx.envInfoV2);
|
|
50
97
|
}
|
|
51
98
|
else if (method === "grantPermission") {
|
|
52
|
-
getQuestionRes = await core._getQuestions(context, solution, teamsfx_api_1.Stage.grantPermission, inputs,
|
|
99
|
+
getQuestionRes = await core._getQuestions(context, solution, teamsfx_api_1.Stage.grantPermission, inputs, ctx.envInfoV2);
|
|
53
100
|
}
|
|
54
101
|
}
|
|
55
102
|
}
|
|
56
103
|
}
|
|
57
104
|
if (getQuestionRes.isErr()) {
|
|
58
|
-
|
|
105
|
+
__1.TOOLS === null || __1.TOOLS === void 0 ? void 0 : __1.TOOLS.logProvider.error(`[core] failed to get questions for ${method}: ${getQuestionRes.error.message}`);
|
|
59
106
|
ctx.result = teamsfx_api_1.err(getQuestionRes.error);
|
|
60
107
|
return;
|
|
61
108
|
}
|
|
62
|
-
|
|
109
|
+
__1.TOOLS === null || __1.TOOLS === void 0 ? void 0 : __1.TOOLS.logProvider.debug(`[core] success to get questions for ${method}`);
|
|
63
110
|
const node = getQuestionRes.value;
|
|
64
111
|
if (node) {
|
|
65
|
-
const res = await teamsfx_api_1.traverse(node, inputs,
|
|
112
|
+
const res = await teamsfx_api_1.traverse(node, inputs, __1.TOOLS.ui, __1.TOOLS.telemetryReporter);
|
|
66
113
|
if (res.isErr()) {
|
|
67
|
-
|
|
114
|
+
__1.TOOLS === null || __1.TOOLS === void 0 ? void 0 : __1.TOOLS.logProvider.debug(`[core] failed to run question model for ${method}`);
|
|
68
115
|
ctx.result = teamsfx_api_1.err(res.error);
|
|
69
116
|
return;
|
|
70
117
|
}
|
|
71
118
|
const desensitized = desensitize(node, inputs);
|
|
72
|
-
|
|
119
|
+
__1.TOOLS === null || __1.TOOLS === void 0 ? void 0 : __1.TOOLS.logProvider.info(`[core] success to run question model for ${method}, answers:${JSON.stringify(desensitized)}`);
|
|
73
120
|
}
|
|
74
121
|
await next();
|
|
75
122
|
};
|
|
@@ -93,4 +140,253 @@ function traverseToCollectPasswordNodes(node, names) {
|
|
|
93
140
|
}
|
|
94
141
|
}
|
|
95
142
|
exports.traverseToCollectPasswordNodes = traverseToCollectPasswordNodes;
|
|
143
|
+
//////V3 questions
|
|
144
|
+
async function getQuestionsForScaffold(inputs, solution, context) {
|
|
145
|
+
if (solution.getQuestionsForScaffold) {
|
|
146
|
+
const res = await solution.getQuestionsForScaffold(context, inputs);
|
|
147
|
+
return res;
|
|
148
|
+
}
|
|
149
|
+
return teamsfx_api_1.ok(undefined);
|
|
150
|
+
}
|
|
151
|
+
exports.getQuestionsForScaffold = getQuestionsForScaffold;
|
|
152
|
+
async function getQuestionsForAddModule(inputs, solution, context) {
|
|
153
|
+
if (solution.getQuestionsForAddModule) {
|
|
154
|
+
const res = await solution.getQuestionsForAddModule(context, inputs);
|
|
155
|
+
return res;
|
|
156
|
+
}
|
|
157
|
+
return teamsfx_api_1.ok(undefined);
|
|
158
|
+
}
|
|
159
|
+
exports.getQuestionsForAddModule = getQuestionsForAddModule;
|
|
160
|
+
async function getQuestionsForAddResource(inputs, solution, context) {
|
|
161
|
+
if (solution.getQuestionsForAddResource) {
|
|
162
|
+
const res = await solution.getQuestionsForAddResource(context, inputs);
|
|
163
|
+
return res;
|
|
164
|
+
}
|
|
165
|
+
return teamsfx_api_1.ok(undefined);
|
|
166
|
+
}
|
|
167
|
+
exports.getQuestionsForAddResource = getQuestionsForAddResource;
|
|
168
|
+
async function getQuestionsForProvision(inputs, solution, context, envInfo) {
|
|
169
|
+
if (solution.getQuestionsForProvision) {
|
|
170
|
+
const res = await solution.getQuestionsForProvision(context, inputs, __1.TOOLS.tokenProvider, envInfo);
|
|
171
|
+
return res;
|
|
172
|
+
}
|
|
173
|
+
return teamsfx_api_1.ok(undefined);
|
|
174
|
+
}
|
|
175
|
+
exports.getQuestionsForProvision = getQuestionsForProvision;
|
|
176
|
+
async function getQuestionsForDeploy(inputs, solution, context, envInfo) {
|
|
177
|
+
if (solution.getQuestionsForDeploy) {
|
|
178
|
+
const res = await solution.getQuestionsForDeploy(context, inputs, envInfo, __1.TOOLS.tokenProvider);
|
|
179
|
+
return res;
|
|
180
|
+
}
|
|
181
|
+
return teamsfx_api_1.ok(undefined);
|
|
182
|
+
}
|
|
183
|
+
exports.getQuestionsForDeploy = getQuestionsForDeploy;
|
|
184
|
+
async function getQuestionsForLocalProvision(inputs, solution, context, localSettings) {
|
|
185
|
+
if (solution.getQuestionsForLocalProvision) {
|
|
186
|
+
const res = await solution.getQuestionsForLocalProvision(context, inputs, __1.TOOLS.tokenProvider, localSettings);
|
|
187
|
+
return res;
|
|
188
|
+
}
|
|
189
|
+
return teamsfx_api_1.ok(undefined);
|
|
190
|
+
}
|
|
191
|
+
exports.getQuestionsForLocalProvision = getQuestionsForLocalProvision;
|
|
192
|
+
async function getQuestionsForPublish(inputs, solution, context, envInfo) {
|
|
193
|
+
if (solution.getQuestionsForPublish) {
|
|
194
|
+
const res = await solution.getQuestionsForPublish(context, inputs, envInfo, __1.TOOLS.tokenProvider.appStudioToken);
|
|
195
|
+
return res;
|
|
196
|
+
}
|
|
197
|
+
return teamsfx_api_1.ok(undefined);
|
|
198
|
+
}
|
|
199
|
+
exports.getQuestionsForPublish = getQuestionsForPublish;
|
|
200
|
+
async function getQuestionsForInit(inputs) {
|
|
201
|
+
if (inputs.projectPath) {
|
|
202
|
+
const projectSettingsPath = projectSettingsLoaderV3_1.getProjectSettingsPath(inputs.projectPath);
|
|
203
|
+
if (await fs_extra_1.default.pathExists(projectSettingsPath)) {
|
|
204
|
+
const res = await __1.TOOLS.ui.showMessage("warn", "projectSettings.json already exists, 'init' operation will replace it, please confirm!", true, "Confirm");
|
|
205
|
+
if (!(res.isOk() && res.value === "Confirm")) {
|
|
206
|
+
return teamsfx_api_1.err(teamsfx_api_1.UserCancelError);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
const node = new teamsfx_api_1.QTreeNode({ type: "group" });
|
|
211
|
+
const globalSolutions = SolutionPluginContainer_1.getGlobalSolutionsV3();
|
|
212
|
+
const capQuestion = question_1.createCapabilityQuestion();
|
|
213
|
+
const capNode = new teamsfx_api_1.QTreeNode(capQuestion);
|
|
214
|
+
node.addChild(capNode);
|
|
215
|
+
const context = __1.createV2Context(__1.newProjectSettings());
|
|
216
|
+
for (const solution of globalSolutions) {
|
|
217
|
+
if (solution.getQuestionsForInit) {
|
|
218
|
+
const res = await solution.getQuestionsForInit(context, inputs);
|
|
219
|
+
if (res.isErr())
|
|
220
|
+
return res;
|
|
221
|
+
if (res.value) {
|
|
222
|
+
const solutionNode = res.value;
|
|
223
|
+
if (solutionNode.data)
|
|
224
|
+
capNode.addChild(solutionNode);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
node.addChild(new teamsfx_api_1.QTreeNode(question_1.QuestionAppName));
|
|
229
|
+
return teamsfx_api_1.ok(node.trim());
|
|
230
|
+
}
|
|
231
|
+
exports.getQuestionsForInit = getQuestionsForInit;
|
|
232
|
+
async function getQuestionsForCreateProjectV3(inputs) {
|
|
233
|
+
const node = new teamsfx_api_1.QTreeNode(question_1.getCreateNewOrFromSampleQuestion(inputs.platform));
|
|
234
|
+
// create new
|
|
235
|
+
const createNew = new teamsfx_api_1.QTreeNode({ type: "group" });
|
|
236
|
+
node.addChild(createNew);
|
|
237
|
+
createNew.condition = { equals: question_1.ScratchOptionYes.id };
|
|
238
|
+
// capabilities
|
|
239
|
+
const capQuestion = question_1.createCapabilityQuestion();
|
|
240
|
+
const capNode = new teamsfx_api_1.QTreeNode(capQuestion);
|
|
241
|
+
createNew.addChild(capNode);
|
|
242
|
+
const globalSolutions = SolutionPluginContainer_1.getGlobalSolutionsV3();
|
|
243
|
+
const context = __1.createV2Context(__1.newProjectSettings());
|
|
244
|
+
for (const solution of globalSolutions) {
|
|
245
|
+
if (solution.getQuestionsForInit) {
|
|
246
|
+
const res = await solution.getQuestionsForInit(context, inputs);
|
|
247
|
+
if (res.isErr())
|
|
248
|
+
return res;
|
|
249
|
+
if (res.value) {
|
|
250
|
+
const solutionNode = res.value;
|
|
251
|
+
if (solutionNode.data)
|
|
252
|
+
capNode.addChild(solutionNode);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
// Language
|
|
257
|
+
const programmingLanguage = new teamsfx_api_1.QTreeNode(question_1.ProgrammingLanguageQuestion);
|
|
258
|
+
programmingLanguage.condition = { minItems: 1 };
|
|
259
|
+
createNew.addChild(programmingLanguage);
|
|
260
|
+
// only CLI need folder input
|
|
261
|
+
if (inputs.platform === teamsfx_api_1.Platform.CLI) {
|
|
262
|
+
createNew.addChild(new teamsfx_api_1.QTreeNode(question_1.QuestionRootFolder));
|
|
263
|
+
}
|
|
264
|
+
createNew.addChild(new teamsfx_api_1.QTreeNode(question_1.QuestionAppName));
|
|
265
|
+
// create from sample
|
|
266
|
+
const sampleNode = new teamsfx_api_1.QTreeNode(question_1.SampleSelect);
|
|
267
|
+
node.addChild(sampleNode);
|
|
268
|
+
sampleNode.condition = { equals: question_1.ScratchOptionNo.id };
|
|
269
|
+
if (inputs.platform !== teamsfx_api_1.Platform.VSCode) {
|
|
270
|
+
sampleNode.addChild(new teamsfx_api_1.QTreeNode(question_1.QuestionRootFolder));
|
|
271
|
+
}
|
|
272
|
+
return teamsfx_api_1.ok(node.trim());
|
|
273
|
+
}
|
|
274
|
+
exports.getQuestionsForCreateProjectV3 = getQuestionsForCreateProjectV3;
|
|
275
|
+
//////V2 questions
|
|
276
|
+
async function getQuestionsForCreateProjectV2(inputs) {
|
|
277
|
+
const node = new teamsfx_api_1.QTreeNode(question_1.getCreateNewOrFromSampleQuestion(inputs.platform));
|
|
278
|
+
// create new
|
|
279
|
+
const createNew = new teamsfx_api_1.QTreeNode({ type: "group" });
|
|
280
|
+
node.addChild(createNew);
|
|
281
|
+
createNew.condition = { equals: question_1.ScratchOptionYes.id };
|
|
282
|
+
// capabilities
|
|
283
|
+
const capQuestion = question_1.createCapabilityQuestion();
|
|
284
|
+
const capNode = new teamsfx_api_1.QTreeNode(capQuestion);
|
|
285
|
+
createNew.addChild(capNode);
|
|
286
|
+
const globalSolutions = await SolutionPluginContainer_1.getAllSolutionPluginsV2();
|
|
287
|
+
const context = __1.createV2Context(__1.newProjectSettings());
|
|
288
|
+
for (const solutionPlugin of globalSolutions) {
|
|
289
|
+
let res = teamsfx_api_1.ok(undefined);
|
|
290
|
+
const v2plugin = solutionPlugin;
|
|
291
|
+
res = v2plugin.getQuestionsForScaffolding
|
|
292
|
+
? await v2plugin.getQuestionsForScaffolding(context, inputs)
|
|
293
|
+
: teamsfx_api_1.ok(undefined);
|
|
294
|
+
if (res.isErr())
|
|
295
|
+
return teamsfx_api_1.err(new teamsfx_api_1.SystemError(res.error, __1.CoreSource, "QuestionModelFail"));
|
|
296
|
+
if (res.value) {
|
|
297
|
+
const solutionNode = Array.isArray(res.value)
|
|
298
|
+
? res.value
|
|
299
|
+
: [res.value];
|
|
300
|
+
for (const node of solutionNode) {
|
|
301
|
+
if (node.data)
|
|
302
|
+
capNode.addChild(node);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
// Language
|
|
307
|
+
const programmingLanguage = new teamsfx_api_1.QTreeNode(question_1.ProgrammingLanguageQuestion);
|
|
308
|
+
programmingLanguage.condition = { minItems: 1 };
|
|
309
|
+
createNew.addChild(programmingLanguage);
|
|
310
|
+
// only CLI need folder input
|
|
311
|
+
if (teamsfx_api_1.CLIPlatforms.includes(inputs.platform)) {
|
|
312
|
+
createNew.addChild(new teamsfx_api_1.QTreeNode(question_1.QuestionRootFolder));
|
|
313
|
+
}
|
|
314
|
+
createNew.addChild(new teamsfx_api_1.QTreeNode(question_1.QuestionAppName));
|
|
315
|
+
// create from sample
|
|
316
|
+
const sampleNode = new teamsfx_api_1.QTreeNode(question_1.SampleSelect);
|
|
317
|
+
node.addChild(sampleNode);
|
|
318
|
+
sampleNode.condition = { equals: question_1.ScratchOptionNo.id };
|
|
319
|
+
if (inputs.platform !== teamsfx_api_1.Platform.VSCode) {
|
|
320
|
+
sampleNode.addChild(new teamsfx_api_1.QTreeNode(question_1.QuestionRootFolder));
|
|
321
|
+
}
|
|
322
|
+
return teamsfx_api_1.ok(node.trim());
|
|
323
|
+
}
|
|
324
|
+
exports.getQuestionsForCreateProjectV2 = getQuestionsForCreateProjectV2;
|
|
325
|
+
async function getQuestionsForUserTaskV2(ctx, solution, func, inputs, envInfo) {
|
|
326
|
+
const namespace = func.namespace;
|
|
327
|
+
const array = namespace ? namespace.split("/") : [];
|
|
328
|
+
if (namespace && "" !== namespace && array.length > 0) {
|
|
329
|
+
let res = teamsfx_api_1.ok(undefined);
|
|
330
|
+
const solutionV2 = solution;
|
|
331
|
+
if (solutionV2.getQuestionsForUserTask) {
|
|
332
|
+
res = await solutionV2.getQuestionsForUserTask(ctx, inputs, func, envInfo, __1.TOOLS.tokenProvider);
|
|
333
|
+
}
|
|
334
|
+
if (res.isOk()) {
|
|
335
|
+
if (res.value) {
|
|
336
|
+
const node = res.value.trim();
|
|
337
|
+
return teamsfx_api_1.ok(node);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
return res;
|
|
341
|
+
}
|
|
342
|
+
return teamsfx_api_1.err(__1.FunctionRouterError(func));
|
|
343
|
+
}
|
|
344
|
+
exports.getQuestionsForUserTaskV2 = getQuestionsForUserTaskV2;
|
|
345
|
+
async function getQuestionsV2(ctx, solution, stage, inputs, envInfo) {
|
|
346
|
+
if (stage !== teamsfx_api_1.Stage.create) {
|
|
347
|
+
let res = teamsfx_api_1.ok(undefined);
|
|
348
|
+
const solutionV2 = solution;
|
|
349
|
+
if (solutionV2.getQuestions) {
|
|
350
|
+
inputs.stage = stage;
|
|
351
|
+
res = await solutionV2.getQuestions(ctx, inputs, envInfo, __1.TOOLS.tokenProvider);
|
|
352
|
+
}
|
|
353
|
+
if (res.isErr())
|
|
354
|
+
return res;
|
|
355
|
+
if (res.value) {
|
|
356
|
+
const node = res.value;
|
|
357
|
+
if (node.data) {
|
|
358
|
+
return teamsfx_api_1.ok(node.trim());
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
return teamsfx_api_1.ok(undefined);
|
|
363
|
+
}
|
|
364
|
+
exports.getQuestionsV2 = getQuestionsV2;
|
|
365
|
+
async function getQuestionsForMigrateV1Project(inputs) {
|
|
366
|
+
const node = new teamsfx_api_1.QTreeNode({ type: "group" });
|
|
367
|
+
const globalSolutions = await SolutionPluginContainer_1.getAllSolutionPlugins();
|
|
368
|
+
const solutionContext = await projectSettingsLoader_1.newSolutionContext(__1.TOOLS, inputs);
|
|
369
|
+
for (const v of globalSolutions) {
|
|
370
|
+
if (v.getQuestions) {
|
|
371
|
+
const res = await v.getQuestions(teamsfx_api_1.Stage.migrateV1, solutionContext);
|
|
372
|
+
if (res.isErr())
|
|
373
|
+
return res;
|
|
374
|
+
if (res.value) {
|
|
375
|
+
const solutionNode = res.value;
|
|
376
|
+
solutionNode.condition = { equals: v.name };
|
|
377
|
+
if (solutionNode.data)
|
|
378
|
+
node.addChild(solutionNode);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
const defaultAppNameFunc = new teamsfx_api_1.QTreeNode(question_1.DefaultAppNameFunc);
|
|
383
|
+
node.addChild(defaultAppNameFunc);
|
|
384
|
+
const appNameQuestion = new teamsfx_api_1.QTreeNode(question_1.QuestionV1AppName);
|
|
385
|
+
appNameQuestion.condition = {
|
|
386
|
+
validFunc: (input) => (!input ? undefined : "App name is auto generated."),
|
|
387
|
+
};
|
|
388
|
+
defaultAppNameFunc.addChild(appNameQuestion);
|
|
389
|
+
return teamsfx_api_1.ok(node.trim());
|
|
390
|
+
}
|
|
391
|
+
exports.getQuestionsForMigrateV1Project = getQuestionsForMigrateV1Project;
|
|
96
392
|
//# sourceMappingURL=questionModel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"questionModel.js","sourceRoot":"","sources":["../../../src/core/middleware/questionModel.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAGlC,wDAUgC;AAChC,0BAA0B;AAE1B,yCAAwC;AAExC;;GAEG;AACI,MAAM,eAAe,GAAe,KAAK,EAAE,GAAoB,EAAE,IAAkB,EAAE,EAAE;IAC5F,MAAM,MAAM,GAAW,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAC/D,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;IAC1B,MAAM,IAAI,GAAG,GAAG,CAAC,IAAc,CAAC;IAEhC,IAAI,cAAc,GAA2C,gBAAE,CAAC,SAAS,CAAC,CAAC;IAC3E,IAAI,MAAM,KAAK,eAAe,EAAE;QAC9B,cAAc,GAAG,MAAM,IAAI,CAAC,6BAA6B,CAAC,MAAM,CAAC,CAAC;KACnE;SAAM,IAAI,MAAM,KAAK,kBAAkB,EAAE;QACxC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,WAAW,CACzC,MAAM,EACN,+TAA+T,EAC/T,IAAI,EACJ,IAAI,CACL,CAAC;QACF,MAAM,MAAM,GAAG,CAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,IAAI,EAAE,EAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;QACnD,IAAI,CAAC,MAAM,IAAI,MAAM,IAAI,IAAI,EAAE;YAC7B,IAA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OAAO,gBAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;AACzB,CAAC;AA5BD,0EA4BC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { NextFunction } from "@feathersjs/hooks/lib";
|
|
2
|
+
import { CoreHookContext } from "..";
|
|
3
|
+
export declare function SolutionLoaderMW(ctx: CoreHookContext, next: NextFunction): Promise<void>;
|
|
3
4
|
//# sourceMappingURL=solutionLoader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solutionLoader.d.ts","sourceRoot":"","sources":["../../../src/core/middleware/solutionLoader.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"solutionLoader.d.ts","sourceRoot":"","sources":["../../../src/core/middleware/solutionLoader.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,IAAI,CAAC;AAQrC,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,eAAe,EAAE,IAAI,EAAE,YAAY,iBAsB9E"}
|
|
@@ -4,31 +4,29 @@
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.SolutionLoaderMW = void 0;
|
|
6
6
|
const SolutionPluginContainer_1 = require("../SolutionPluginContainer");
|
|
7
|
-
function SolutionLoaderMW() {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
ctx.solutionV2 = solution;
|
|
13
|
-
}
|
|
14
|
-
{
|
|
15
|
-
const solution = SolutionPluginContainer_1.getSolutionPluginByName(ctx.projectSettings.solutionSettings.name);
|
|
16
|
-
ctx.solution = solution;
|
|
17
|
-
}
|
|
7
|
+
async function SolutionLoaderMW(ctx, next) {
|
|
8
|
+
if (ctx.projectSettings) {
|
|
9
|
+
{
|
|
10
|
+
const solution = SolutionPluginContainer_1.getSolutionPluginV2ByName(ctx.projectSettings.solutionSettings.name);
|
|
11
|
+
ctx.solutionV2 = solution;
|
|
18
12
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
const solution = SolutionPluginContainer_1.getAllSolutionPluginsV2()[0];
|
|
23
|
-
ctx.solutionV2 = solution;
|
|
24
|
-
}
|
|
25
|
-
{
|
|
26
|
-
const solution = SolutionPluginContainer_1.getAllSolutionPlugins()[0];
|
|
27
|
-
ctx.solution = solution;
|
|
28
|
-
}
|
|
13
|
+
{
|
|
14
|
+
const solution = SolutionPluginContainer_1.getSolutionPluginByName(ctx.projectSettings.solutionSettings.name);
|
|
15
|
+
ctx.solution = solution;
|
|
29
16
|
}
|
|
30
|
-
|
|
31
|
-
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
// run from zero, load a default solution
|
|
20
|
+
{
|
|
21
|
+
const solution = SolutionPluginContainer_1.getAllSolutionPluginsV2()[0];
|
|
22
|
+
ctx.solutionV2 = solution;
|
|
23
|
+
}
|
|
24
|
+
{
|
|
25
|
+
const solution = SolutionPluginContainer_1.getAllSolutionPlugins()[0];
|
|
26
|
+
ctx.solution = solution;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
await next();
|
|
32
30
|
}
|
|
33
31
|
exports.SolutionLoaderMW = SolutionLoaderMW;
|
|
34
32
|
//# sourceMappingURL=solutionLoader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solutionLoader.js","sourceRoot":"","sources":["../../../src/core/middleware/solutionLoader.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAIlC,wEAKoC;
|
|
1
|
+
{"version":3,"file":"solutionLoader.js","sourceRoot":"","sources":["../../../src/core/middleware/solutionLoader.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAIlC,wEAKoC;AAE7B,KAAK,UAAU,gBAAgB,CAAC,GAAoB,EAAE,IAAkB;IAC7E,IAAI,GAAG,CAAC,eAAe,EAAE;QACvB;YACE,MAAM,QAAQ,GAAG,mDAAyB,CAAC,GAAG,CAAC,eAAe,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;YACtF,GAAG,CAAC,UAAU,GAAG,QAAQ,CAAC;SAC3B;QACD;YACE,MAAM,QAAQ,GAAG,iDAAuB,CAAC,GAAG,CAAC,eAAe,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;YACpF,GAAG,CAAC,QAAQ,GAAG,QAAQ,CAAC;SACzB;KACF;SAAM;QACL,yCAAyC;QACzC;YACE,MAAM,QAAQ,GAAG,iDAAuB,EAAE,CAAC,CAAC,CAAC,CAAC;YAC9C,GAAG,CAAC,UAAU,GAAG,QAAQ,CAAC;SAC3B;QACD;YACE,MAAM,QAAQ,GAAG,+CAAqB,EAAE,CAAC,CAAC,CAAC,CAAC;YAC5C,GAAG,CAAC,QAAQ,GAAG,QAAQ,CAAC;SACzB;KACF;IACD,MAAM,IAAI,EAAE,CAAC;AACf,CAAC;AAtBD,4CAsBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solutionLoaderV3.d.ts","sourceRoot":"","sources":["../../../src/core/middleware/solutionLoaderV3.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,OAAO,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AAIxC,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,eAAe,EAAE,IAAI,EAAE,YAAY,iBAQjF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.SolutionLoaderMW_V3 = void 0;
|
|
6
|
+
const typedi_1 = require("typedi");
|
|
7
|
+
const constants_1 = require("../../plugins/solution/fx-solution/v3/constants");
|
|
8
|
+
async function SolutionLoaderMW_V3(ctx, next) {
|
|
9
|
+
if (ctx.projectSettings) {
|
|
10
|
+
const solutionName = ctx.projectSettings.solutionSettings.name;
|
|
11
|
+
ctx.solutionV3 = typedi_1.Container.get(solutionName);
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
ctx.solutionV3 = typedi_1.Container.get(constants_1.TeamsFxAzureSolutionNameV3);
|
|
15
|
+
}
|
|
16
|
+
await next();
|
|
17
|
+
}
|
|
18
|
+
exports.SolutionLoaderMW_V3 = SolutionLoaderMW_V3;
|
|
19
|
+
//# sourceMappingURL=solutionLoaderV3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solutionLoaderV3.js","sourceRoot":"","sources":["../../../src/core/middleware/solutionLoaderV3.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAGlC,mCAAmC;AAGnC,+EAA6F;AAEtF,KAAK,UAAU,mBAAmB,CAAC,GAAoB,EAAE,IAAkB;IAChF,IAAI,GAAG,CAAC,eAAe,EAAE;QACvB,MAAM,YAAY,GAAG,GAAG,CAAC,eAAe,CAAC,gBAAgB,CAAC,IAAI,CAAC;QAC/D,GAAG,CAAC,UAAU,GAAG,kBAAS,CAAC,GAAG,CAAe,YAAY,CAAC,CAAC;KAC5D;SAAM;QACL,GAAG,CAAC,UAAU,GAAG,kBAAS,CAAC,GAAG,CAAe,sCAA0B,CAAC,CAAC;KAC1E;IACD,MAAM,IAAI,EAAE,CAAC;AACf,CAAC;AARD,kDAQC"}
|
package/build/core/question.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { FolderQuestion, OptionItem, Platform, SingleSelectQuestion, TextInputQuestion, FuncQuestion } from "@microsoft/teamsfx-api";
|
|
1
|
+
import { FolderQuestion, OptionItem, Platform, SingleSelectQuestion, TextInputQuestion, FuncQuestion, MultiSelectQuestion } from "@microsoft/teamsfx-api";
|
|
2
2
|
export declare enum CoreQuestionNames {
|
|
3
3
|
AppName = "app-name",
|
|
4
4
|
DefaultAppNameFunc = "default-app-name-func",
|
|
5
5
|
Folder = "folder",
|
|
6
|
+
ProgrammingLanguage = "programming-language",
|
|
7
|
+
Capabilities = "capabilities",
|
|
6
8
|
Solution = "solution",
|
|
7
9
|
CreateFromScratch = "scratch",
|
|
8
10
|
Samples = "samples",
|
|
@@ -20,6 +22,12 @@ export declare const QuestionAppName: TextInputQuestion;
|
|
|
20
22
|
export declare const QuestionV1AppName: TextInputQuestion;
|
|
21
23
|
export declare const DefaultAppNameFunc: FuncQuestion;
|
|
22
24
|
export declare const QuestionRootFolder: FolderQuestion;
|
|
25
|
+
export declare const ProgrammingLanguageQuestion: SingleSelectQuestion;
|
|
26
|
+
export declare const TabOptionItem: OptionItem;
|
|
27
|
+
export declare const BotOptionItem: OptionItem;
|
|
28
|
+
export declare const MessageExtensionItem: OptionItem;
|
|
29
|
+
export declare const TabSPFxItem: OptionItem;
|
|
30
|
+
export declare function createCapabilityQuestion(): MultiSelectQuestion;
|
|
23
31
|
export declare const QuestionSelectTargetEnvironment: SingleSelectQuestion;
|
|
24
32
|
export declare function getQuestionNewTargetEnvironmentName(projectPath: string): TextInputQuestion;
|
|
25
33
|
export declare const QuestionSelectSourceEnvironment: SingleSelectQuestion;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../src/core/question.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,cAAc,EACd,UAAU,EACV,QAAQ,EACR,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,
|
|
1
|
+
{"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../src/core/question.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,cAAc,EACd,UAAU,EACV,QAAQ,EACR,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EAIZ,mBAAmB,EACpB,MAAM,wBAAwB,CAAC;AAShC,oBAAY,iBAAiB;IAC3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