@microsoft/teamsfx-core 1.3.0 → 1.3.1-alpha.07c43242.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/constants.d.ts +13 -1
- package/build/common/constants.d.ts.map +1 -1
- package/build/common/constants.js +15 -2
- package/build/common/constants.js.map +1 -1
- package/build/common/deps-checker/depsLogger.d.ts +10 -0
- package/build/common/deps-checker/depsLogger.d.ts.map +1 -1
- package/build/common/deps-checker/depsLogger.js +26 -0
- package/build/common/deps-checker/depsLogger.js.map +1 -1
- package/build/common/deps-checker/depsManager.d.ts +8 -5
- package/build/common/deps-checker/depsManager.d.ts.map +1 -1
- package/build/common/deps-checker/depsManager.js +14 -11
- package/build/common/deps-checker/depsManager.js.map +1 -1
- package/build/common/deps-checker/internal/dotnetChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/dotnetChecker.js +1 -0
- 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 +4 -2
- package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.js +2 -0
- package/build/common/deps-checker/internal/nodeChecker.js.map +1 -1
- package/build/common/deps-checker/util/extensionInstaller.d.ts.map +1 -1
- package/build/common/deps-checker/util/extensionInstaller.js +4 -4
- package/build/common/deps-checker/util/extensionInstaller.js.map +1 -1
- package/build/common/local/constants.d.ts +0 -42
- package/build/common/local/constants.d.ts.map +1 -1
- package/build/common/local/constants.js +1 -43
- package/build/common/local/constants.js.map +1 -1
- package/build/common/local/localCertificateManager.d.ts +2 -1
- package/build/common/local/localCertificateManager.d.ts.map +1 -1
- package/build/common/local/localCertificateManager.js +24 -15
- package/build/common/local/localCertificateManager.js.map +1 -1
- package/build/common/local/localEnvManager.d.ts +2 -1
- package/build/common/local/localEnvManager.d.ts.map +1 -1
- package/build/common/local/localEnvManager.js +7 -5
- package/build/common/local/localEnvManager.js.map +1 -1
- package/build/common/local/localEnvProvider.js +1 -1
- package/build/common/local/localSettingsHelper.d.ts.map +1 -1
- package/build/common/local/localSettingsHelper.js +17 -16
- package/build/common/local/localSettingsHelper.js.map +1 -1
- package/build/common/local/portChecker.d.ts +2 -2
- package/build/common/local/portChecker.d.ts.map +1 -1
- package/build/common/local/portChecker.js +18 -5
- package/build/common/local/portChecker.js.map +1 -1
- package/build/common/local/projectSettingsHelper.d.ts.map +1 -1
- package/build/common/local/projectSettingsHelper.js +3 -3
- package/build/common/local/projectSettingsHelper.js.map +1 -1
- package/build/common/local/taskDefinition.d.ts +0 -7
- package/build/common/local/taskDefinition.d.ts.map +1 -1
- package/build/common/local/taskDefinition.js +2 -51
- package/build/common/local/taskDefinition.js.map +1 -1
- package/build/common/localSettingsConstants.d.ts +2 -6
- package/build/common/localSettingsConstants.d.ts.map +1 -1
- package/build/common/localSettingsConstants.js +3 -7
- package/build/common/localSettingsConstants.js.map +1 -1
- package/build/common/localSettingsProvider.d.ts +3 -3
- package/build/common/localSettingsProvider.d.ts.map +1 -1
- package/build/common/localSettingsProvider.js +15 -14
- package/build/common/localSettingsProvider.js.map +1 -1
- package/build/common/permissionInterface.d.ts +1 -3
- package/build/common/permissionInterface.d.ts.map +1 -1
- package/build/common/permissionInterface.js +0 -2
- package/build/common/permissionInterface.js.map +1 -1
- package/build/common/projectSettingsValidator.d.ts +0 -1
- package/build/common/projectSettingsValidator.d.ts.map +1 -1
- package/build/common/projectSettingsValidator.js +3 -18
- package/build/common/projectSettingsValidator.js.map +1 -1
- package/build/common/telemetry.d.ts +3 -1
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +2 -0
- package/build/common/telemetry.js.map +1 -1
- package/build/common/template-utils/templates.d.ts +1 -0
- package/build/common/template-utils/templates.d.ts.map +1 -1
- package/build/common/template-utils/templates.js +5 -1
- package/build/common/template-utils/templates.js.map +1 -1
- package/build/common/template-utils/templatesActions.js +2 -2
- package/build/common/template-utils/templatesUtils.d.ts +2 -1
- package/build/common/template-utils/templatesUtils.d.ts.map +1 -1
- package/build/common/template-utils/templatesUtils.js +25 -7
- package/build/common/template-utils/templatesUtils.js.map +1 -1
- package/build/common/templates-config.json +2 -2
- package/build/common/tools.d.ts +1 -4
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +7 -8
- package/build/common/tools.js.map +1 -1
- package/build/core/collaborator.d.ts +10 -0
- package/build/core/collaborator.d.ts.map +1 -0
- package/build/core/collaborator.js +381 -0
- package/build/core/collaborator.js.map +1 -0
- package/build/core/downloadSample.js +1 -1
- package/build/core/downloadSample.js.map +1 -1
- package/build/core/environment.d.ts +8 -5
- package/build/core/environment.d.ts.map +1 -1
- package/build/core/environment.js +50 -6
- package/build/core/environment.js.map +1 -1
- package/build/core/error.d.ts +5 -0
- package/build/core/error.d.ts.map +1 -1
- package/build/core/error.js +15 -1
- package/build/core/error.js.map +1 -1
- package/build/core/index.d.ts +25 -22
- package/build/core/index.d.ts.map +1 -1
- package/build/core/index.js +291 -265
- package/build/core/index.js.map +1 -1
- package/build/core/middleware/CommonErrorHandlerMW.d.ts.map +1 -1
- package/build/core/middleware/CommonErrorHandlerMW.js +3 -0
- package/build/core/middleware/CommonErrorHandlerMW.js.map +1 -1
- package/build/core/middleware/envInfoLoader.d.ts.map +1 -1
- package/build/core/middleware/envInfoLoader.js +4 -3
- package/build/core/middleware/envInfoLoader.js.map +1 -1
- package/build/core/middleware/envInfoLoaderV3.js +1 -0
- package/build/core/middleware/envInfoLoaderV3.js.map +1 -1
- package/build/core/middleware/envInfoWriter.js +5 -6
- package/build/core/middleware/envInfoWriter.js.map +1 -1
- package/build/core/middleware/localSettingsLoader.d.ts.map +1 -1
- package/build/core/middleware/localSettingsLoader.js +27 -22
- package/build/core/middleware/localSettingsLoader.js.map +1 -1
- package/build/core/middleware/projectMigrator.d.ts.map +1 -1
- package/build/core/middleware/projectMigrator.js +2 -6
- package/build/core/middleware/projectMigrator.js.map +1 -1
- package/build/core/middleware/projectSettingsLoader.d.ts +1 -0
- package/build/core/middleware/projectSettingsLoader.d.ts.map +1 -1
- package/build/core/middleware/projectSettingsLoader.js +8 -4
- package/build/core/middleware/projectSettingsLoader.js.map +1 -1
- package/build/core/middleware/projectSettingsWriter.d.ts.map +1 -1
- package/build/core/middleware/projectSettingsWriter.js +6 -4
- package/build/core/middleware/projectSettingsWriter.js.map +1 -1
- package/build/core/middleware/questionModel.d.ts +6 -8
- package/build/core/middleware/questionModel.d.ts.map +1 -1
- package/build/core/middleware/questionModel.js +26 -45
- package/build/core/middleware/questionModel.js.map +1 -1
- package/build/core/middleware/solutionLoader.d.ts.map +1 -1
- package/build/core/middleware/solutionLoader.js +5 -3
- package/build/core/middleware/solutionLoader.js.map +1 -1
- package/build/core/middleware/solutionLoaderV3.d.ts +1 -1
- package/build/core/middleware/solutionLoaderV3.d.ts.map +1 -1
- package/build/core/middleware/solutionLoaderV3.js +1 -7
- package/build/core/middleware/solutionLoaderV3.js.map +1 -1
- package/build/core/pvm/broker.d.ts +24 -0
- package/build/core/pvm/broker.d.ts.map +1 -0
- package/build/core/pvm/broker.js +93 -0
- package/build/core/pvm/broker.js.map +1 -0
- package/build/core/pvm/constant.d.ts +11 -0
- package/build/core/pvm/constant.d.ts.map +1 -0
- package/build/core/pvm/constant.js +14 -0
- package/build/core/pvm/constant.js.map +1 -0
- package/build/core/pvm/depot.d.ts +43 -0
- package/build/core/pvm/depot.d.ts.map +1 -0
- package/build/core/pvm/depot.js +243 -0
- package/build/core/pvm/depot.js.map +1 -0
- package/build/core/pvm/pvm.d.ts +49 -0
- package/build/core/pvm/pvm.d.ts.map +1 -0
- package/build/core/pvm/pvm.js +82 -0
- package/build/core/pvm/pvm.js.map +1 -0
- package/build/core/pvm/type.d.ts +11 -0
- package/build/core/pvm/type.d.ts.map +1 -0
- package/build/{plugins/resource/apim/interfaces/IApimResource.js → core/pvm/type.js} +1 -1
- package/build/core/pvm/type.js.map +1 -0
- package/build/core/pvm/utility.d.ts +2 -0
- package/build/core/pvm/utility.d.ts.map +1 -0
- package/build/core/pvm/utility.js +10 -0
- package/build/core/pvm/utility.js.map +1 -0
- package/build/core/question.js +1 -1
- package/build/core/question.js.map +1 -1
- package/build/core/tools.d.ts +1 -2
- package/build/core/tools.d.ts.map +1 -1
- package/build/core/tools.js +1 -25
- package/build/core/tools.js.map +1 -1
- package/build/core/utils.d.ts +4 -0
- package/build/core/utils.d.ts.map +1 -0
- package/build/core/utils.js +14 -0
- package/build/core/utils.js.map +1 -0
- package/build/plugins/resource/aad/aadAppClient.d.ts +11 -11
- package/build/plugins/resource/aad/aadAppClient.d.ts.map +1 -1
- package/build/plugins/resource/aad/aadAppClient.js +32 -32
- package/build/plugins/resource/aad/aadAppClient.js.map +1 -1
- package/build/plugins/resource/aad/index.d.ts +1 -0
- package/build/plugins/resource/aad/index.d.ts.map +1 -1
- package/build/plugins/resource/aad/index.js +6 -1
- package/build/plugins/resource/aad/index.js.map +1 -1
- package/build/plugins/resource/aad/plugin.d.ts +4 -3
- package/build/plugins/resource/aad/plugin.d.ts.map +1 -1
- package/build/plugins/resource/aad/plugin.js +16 -16
- package/build/plugins/resource/aad/plugin.js.map +1 -1
- package/build/plugins/resource/aad/utils/common.d.ts +6 -4
- package/build/plugins/resource/aad/utils/common.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/common.js +60 -21
- package/build/plugins/resource/aad/utils/common.js.map +1 -1
- package/build/plugins/resource/aad/utils/configs.d.ts +9 -1
- package/build/plugins/resource/aad/utils/configs.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/configs.js +204 -0
- package/build/plugins/resource/aad/utils/configs.js.map +1 -1
- package/build/plugins/resource/aad/utils/telemetry.d.ts +0 -1
- package/build/plugins/resource/aad/utils/telemetry.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/telemetry.js +10 -17
- package/build/plugins/resource/aad/utils/telemetry.js.map +1 -1
- package/build/plugins/resource/aad/utils/tokenProvider.d.ts +6 -2
- package/build/plugins/resource/aad/utils/tokenProvider.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/tokenProvider.js +11 -11
- package/build/plugins/resource/aad/utils/tokenProvider.js.map +1 -1
- package/build/plugins/resource/aad/v2/index.d.ts +10 -11
- package/build/plugins/resource/aad/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/aad/v2/index.js.map +1 -1
- package/build/plugins/resource/aad/v3/index.d.ts +26 -0
- package/build/plugins/resource/aad/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/aad/v3/index.js +315 -0
- package/build/plugins/resource/aad/v3/index.js.map +1 -0
- package/build/plugins/resource/apim/answer.d.ts +0 -6
- package/build/plugins/resource/apim/answer.d.ts.map +1 -1
- package/build/plugins/resource/apim/answer.js +6 -45
- package/build/plugins/resource/apim/answer.js.map +1 -1
- package/build/plugins/resource/apim/config.d.ts +5 -19
- package/build/plugins/resource/apim/config.d.ts.map +1 -1
- package/build/plugins/resource/apim/config.js +11 -36
- package/build/plugins/resource/apim/config.js.map +1 -1
- package/build/plugins/resource/apim/constants.d.ts +1 -30
- package/build/plugins/resource/apim/constants.d.ts.map +1 -1
- package/build/plugins/resource/apim/constants.js +37 -74
- package/build/plugins/resource/apim/constants.js.map +1 -1
- package/build/plugins/resource/apim/error.d.ts +0 -1
- package/build/plugins/resource/apim/error.d.ts.map +1 -1
- package/build/plugins/resource/apim/error.js +1 -6
- package/build/plugins/resource/apim/error.js.map +1 -1
- package/build/plugins/resource/apim/factory.d.ts +12 -12
- package/build/plugins/resource/apim/factory.d.ts.map +1 -1
- package/build/plugins/resource/apim/factory.js +38 -42
- package/build/plugins/resource/apim/factory.js.map +1 -1
- package/build/plugins/resource/apim/index.d.ts +1 -1
- package/build/plugins/resource/apim/index.d.ts.map +1 -1
- package/build/plugins/resource/apim/index.js +17 -39
- package/build/plugins/resource/apim/index.js.map +1 -1
- package/build/plugins/resource/apim/managers/apimManager.d.ts +2 -3
- package/build/plugins/resource/apim/managers/apimManager.d.ts.map +1 -1
- package/build/plugins/resource/apim/managers/apimManager.js +2 -3
- package/build/plugins/resource/apim/managers/apimManager.js.map +1 -1
- package/build/plugins/resource/apim/managers/questionManager.d.ts +7 -13
- package/build/plugins/resource/apim/managers/questionManager.d.ts.map +1 -1
- package/build/plugins/resource/apim/managers/questionManager.js +17 -32
- package/build/plugins/resource/apim/managers/questionManager.js.map +1 -1
- package/build/plugins/resource/apim/questions/cliQuestion.d.ts +0 -8
- package/build/plugins/resource/apim/questions/cliQuestion.d.ts.map +1 -1
- package/build/plugins/resource/apim/questions/cliQuestion.js +1 -33
- package/build/plugins/resource/apim/questions/cliQuestion.js.map +1 -1
- package/build/plugins/resource/apim/questions/vscodeQuestion.d.ts +8 -14
- package/build/plugins/resource/apim/questions/vscodeQuestion.d.ts.map +1 -1
- package/build/plugins/resource/apim/questions/vscodeQuestion.js +39 -79
- package/build/plugins/resource/apim/questions/vscodeQuestion.js.map +1 -1
- package/build/plugins/resource/apim/services/apimService.d.ts +1 -12
- package/build/plugins/resource/apim/services/apimService.d.ts.map +1 -1
- package/build/plugins/resource/apim/services/apimService.js +0 -112
- package/build/plugins/resource/apim/services/apimService.js.map +1 -1
- package/build/plugins/resource/apim/utils/commonUtils.d.ts +1 -1
- package/build/plugins/resource/apim/utils/commonUtils.js +3 -3
- package/build/plugins/resource/apim/utils/namingRules.d.ts +0 -4
- package/build/plugins/resource/apim/utils/namingRules.d.ts.map +1 -1
- package/build/plugins/resource/apim/utils/namingRules.js +0 -32
- package/build/plugins/resource/apim/utils/namingRules.js.map +1 -1
- package/build/plugins/resource/apim/utils/progressBar.d.ts +2 -2
- package/build/plugins/resource/apim/utils/progressBar.d.ts.map +1 -1
- package/build/plugins/resource/apim/utils/progressBar.js +3 -3
- package/build/plugins/resource/apim/utils/progressBar.js.map +1 -1
- package/build/plugins/resource/apim/utils/telemetry.d.ts +2 -2
- package/build/plugins/resource/apim/utils/telemetry.d.ts.map +1 -1
- package/build/plugins/resource/apim/utils/telemetry.js +4 -5
- package/build/plugins/resource/apim/utils/telemetry.js.map +1 -1
- package/build/plugins/resource/apim/v2/index.d.ts +3 -5
- package/build/plugins/resource/apim/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/apim/v2/index.js +0 -6
- package/build/plugins/resource/apim/v2/index.js.map +1 -1
- package/build/plugins/resource/apim/v3/index.d.ts +15 -0
- package/build/plugins/resource/apim/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/apim/v3/index.js +206 -0
- package/build/plugins/resource/apim/v3/index.js.map +1 -0
- package/build/plugins/resource/appstudio/appStudio.d.ts +3 -0
- package/build/plugins/resource/appstudio/appStudio.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/appStudio.js +3 -0
- package/build/plugins/resource/appstudio/appStudio.js.map +1 -1
- package/build/plugins/resource/appstudio/constants.d.ts +4 -0
- package/build/plugins/resource/appstudio/constants.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/constants.js +45 -1
- package/build/plugins/resource/appstudio/constants.js.map +1 -1
- package/build/plugins/resource/appstudio/errors.d.ts +12 -12
- package/build/plugins/resource/appstudio/errors.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/errors.js +12 -12
- package/build/plugins/resource/appstudio/errors.js.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts +6 -28
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.js +157 -14
- package/build/plugins/resource/appstudio/manifestTemplate.js.map +1 -1
- package/build/plugins/resource/appstudio/plugin.d.ts +3 -2
- package/build/plugins/resource/appstudio/plugin.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/plugin.js +54 -70
- package/build/plugins/resource/appstudio/plugin.js.map +1 -1
- package/build/plugins/resource/appstudio/utils/telemetry.d.ts +9 -4
- package/build/plugins/resource/appstudio/utils/telemetry.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/utils/telemetry.js +14 -12
- package/build/plugins/resource/appstudio/utils/telemetry.js.map +1 -1
- package/build/plugins/resource/appstudio/utils/utils.d.ts +11 -0
- package/build/plugins/resource/appstudio/utils/utils.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/utils/utils.js +105 -1
- package/build/plugins/resource/appstudio/utils/utils.js.map +1 -1
- package/build/plugins/resource/appstudio/v2/index.d.ts +3 -3
- package/build/plugins/resource/appstudio/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/v2/index.js.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.d.ts +27 -27
- package/build/plugins/resource/appstudio/v3/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.js +153 -3
- package/build/plugins/resource/appstudio/v3/index.js.map +1 -1
- package/build/plugins/resource/appstudio/v3/plugin.d.ts +8 -0
- package/build/plugins/resource/appstudio/v3/plugin.d.ts.map +1 -0
- package/build/plugins/resource/appstudio/v3/plugin.js +97 -0
- package/build/plugins/resource/appstudio/v3/plugin.js.map +1 -0
- package/build/plugins/resource/bot/configs/deployConfig.js.map +1 -1
- package/build/plugins/resource/bot/dotnet/plugin.d.ts.map +1 -1
- package/build/plugins/resource/bot/dotnet/plugin.js +1 -1
- package/build/plugins/resource/bot/dotnet/plugin.js.map +1 -1
- package/build/plugins/resource/bot/enums/programmingLanguage.d.ts +2 -1
- package/build/plugins/resource/bot/enums/programmingLanguage.d.ts.map +1 -1
- package/build/plugins/resource/bot/enums/programmingLanguage.js +1 -0
- package/build/plugins/resource/bot/enums/programmingLanguage.js.map +1 -1
- package/build/plugins/resource/bot/errors.d.ts +0 -1
- package/build/plugins/resource/bot/errors.d.ts.map +1 -1
- package/build/plugins/resource/bot/errors.js +41 -39
- package/build/plugins/resource/bot/errors.js.map +1 -1
- package/build/plugins/resource/bot/index.d.ts +1 -0
- package/build/plugins/resource/bot/index.d.ts.map +1 -1
- package/build/plugins/resource/bot/index.js +4 -2
- package/build/plugins/resource/bot/index.js.map +1 -1
- package/build/plugins/resource/bot/progressBars.d.ts +2 -2
- package/build/plugins/resource/bot/progressBars.d.ts.map +1 -1
- package/build/plugins/resource/bot/progressBars.js +4 -3
- package/build/plugins/resource/bot/progressBars.js.map +1 -1
- package/build/plugins/resource/bot/v2/index.d.ts +3 -3
- package/build/plugins/resource/bot/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/bot/v2/index.js.map +1 -1
- package/build/plugins/resource/bot/v3/error.d.ts +15 -0
- package/build/plugins/resource/bot/v3/error.d.ts.map +1 -0
- package/build/plugins/resource/bot/v3/error.js +46 -0
- package/build/plugins/resource/bot/v3/error.js.map +1 -0
- package/build/plugins/resource/bot/v3/index.d.ts +20 -0
- package/build/plugins/resource/bot/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/bot/v3/index.js +384 -0
- package/build/plugins/resource/bot/v3/index.js.map +1 -0
- package/build/plugins/resource/frontend/dotnet/constants.d.ts +6 -0
- package/build/plugins/resource/frontend/dotnet/constants.d.ts.map +1 -1
- package/build/plugins/resource/frontend/dotnet/constants.js +8 -1
- package/build/plugins/resource/frontend/dotnet/constants.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/enum.d.ts.map +1 -1
- package/build/plugins/resource/frontend/dotnet/enum.js +2 -0
- package/build/plugins/resource/frontend/dotnet/enum.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/frontend/dotnet/ops/deploy.js +18 -3
- package/build/plugins/resource/frontend/dotnet/ops/deploy.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/ops/scaffold.d.ts +6 -0
- package/build/plugins/resource/frontend/dotnet/ops/scaffold.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/ops/scaffold.js +55 -0
- package/build/plugins/resource/frontend/dotnet/ops/scaffold.js.map +1 -0
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts +1 -3
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts.map +1 -1
- package/build/plugins/resource/frontend/dotnet/plugin.js +42 -19
- package/build/plugins/resource/frontend/dotnet/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts +3 -0
- package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts.map +1 -1
- package/build/plugins/resource/frontend/dotnet/resources/errors.js +7 -1
- package/build/plugins/resource/frontend/dotnet/resources/errors.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/resources/messages.d.ts +23 -6
- package/build/plugins/resource/frontend/dotnet/resources/messages.d.ts.map +1 -1
- package/build/plugins/resource/frontend/dotnet/resources/messages.js +26 -7
- package/build/plugins/resource/frontend/dotnet/resources/messages.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/resources/steps.d.ts +3 -0
- package/build/plugins/resource/frontend/dotnet/resources/steps.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/resources/steps.js +16 -0
- package/build/plugins/resource/frontend/dotnet/resources/steps.js.map +1 -0
- package/build/plugins/resource/frontend/dotnet/resources/templateInfo.d.ts +19 -0
- package/build/plugins/resource/frontend/dotnet/resources/templateInfo.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/resources/templateInfo.js +42 -0
- package/build/plugins/resource/frontend/dotnet/resources/templateInfo.js.map +1 -0
- package/build/plugins/resource/frontend/index.d.ts +0 -1
- package/build/plugins/resource/frontend/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/index.js +4 -6
- package/build/plugins/resource/frontend/index.js.map +1 -1
- package/build/plugins/resource/frontend/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/frontend/ops/deploy.js +25 -24
- package/build/plugins/resource/frontend/ops/deploy.js.map +1 -1
- package/build/plugins/resource/frontend/ops/scaffold.d.ts +0 -10
- package/build/plugins/resource/frontend/ops/scaffold.d.ts.map +1 -1
- package/build/plugins/resource/frontend/ops/scaffold.js.map +1 -1
- package/build/plugins/resource/frontend/plugin.d.ts.map +1 -1
- package/build/plugins/resource/frontend/plugin.js +15 -14
- package/build/plugins/resource/frontend/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/resources/steps.d.ts +7 -0
- package/build/plugins/resource/frontend/resources/steps.d.ts.map +1 -0
- package/build/plugins/resource/frontend/resources/steps.js +41 -0
- package/build/plugins/resource/frontend/resources/steps.js.map +1 -0
- package/build/plugins/resource/frontend/resources/templateInfo.d.ts +4 -3
- package/build/plugins/resource/frontend/resources/templateInfo.d.ts.map +1 -1
- package/build/plugins/resource/frontend/resources/templateInfo.js +8 -7
- package/build/plugins/resource/frontend/resources/templateInfo.js.map +1 -1
- package/build/plugins/resource/frontend/utils/progress-helper.d.ts +9 -35
- package/build/plugins/resource/frontend/utils/progress-helper.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils/progress-helper.js +9 -82
- package/build/plugins/resource/frontend/utils/progress-helper.js.map +1 -1
- package/build/plugins/resource/frontend/v2/index.d.ts +2 -3
- package/build/plugins/resource/frontend/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/v2/index.js +3 -4
- package/build/plugins/resource/frontend/v2/index.js.map +1 -1
- package/build/plugins/resource/frontend/v3/index.d.ts +15 -2
- package/build/plugins/resource/frontend/v3/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/v3/index.js +265 -2
- package/build/plugins/resource/frontend/v3/index.js.map +1 -1
- package/build/plugins/resource/function/index.d.ts +1 -0
- package/build/plugins/resource/function/index.d.ts.map +1 -1
- package/build/plugins/resource/function/index.js +1 -0
- package/build/plugins/resource/function/index.js.map +1 -1
- package/build/plugins/resource/function/ops/deploy.d.ts +1 -2
- package/build/plugins/resource/function/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/function/ops/deploy.js +1 -1
- package/build/plugins/resource/function/ops/deploy.js.map +1 -1
- package/build/plugins/resource/function/plugin.js +2 -2
- package/build/plugins/resource/function/plugin.js.map +1 -1
- package/build/plugins/resource/function/resources/errors.d.ts +22 -1
- package/build/plugins/resource/function/resources/errors.d.ts.map +1 -1
- package/build/plugins/resource/function/resources/errors.js +32 -32
- package/build/plugins/resource/function/resources/errors.js.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts +2 -2
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.js +3 -3
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.js.map +1 -1
- package/build/plugins/resource/function/v2/index.d.ts +3 -3
- package/build/plugins/resource/function/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/function/v2/index.js.map +1 -1
- package/build/plugins/resource/function/v3/error.d.ts +26 -0
- package/build/plugins/resource/function/v3/error.d.ts.map +1 -0
- package/build/plugins/resource/function/v3/error.js +69 -0
- package/build/plugins/resource/function/v3/error.js.map +1 -0
- package/build/plugins/resource/function/v3/index.d.ts +30 -0
- package/build/plugins/resource/function/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/function/v3/index.js +386 -0
- package/build/plugins/resource/function/v3/index.js.map +1 -0
- package/build/plugins/resource/identity/index.d.ts +1 -0
- package/build/plugins/resource/identity/index.d.ts.map +1 -1
- package/build/plugins/resource/identity/index.js +1 -0
- package/build/plugins/resource/identity/index.js.map +1 -1
- package/build/plugins/resource/identity/v2/index.d.ts +3 -3
- package/build/plugins/resource/identity/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/identity/v2/index.js.map +1 -1
- package/build/plugins/resource/identity/v3/index.d.ts +12 -0
- package/build/plugins/resource/identity/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/identity/v3/index.js +88 -0
- package/build/plugins/resource/identity/v3/index.js.map +1 -0
- package/build/plugins/resource/keyvault/index.d.ts +1 -0
- package/build/plugins/resource/keyvault/index.d.ts.map +1 -1
- package/build/plugins/resource/keyvault/index.js +1 -0
- package/build/plugins/resource/keyvault/index.js.map +1 -1
- package/build/plugins/resource/keyvault/v3/index.d.ts +10 -0
- package/build/plugins/resource/keyvault/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/keyvault/v3/index.js +89 -0
- package/build/plugins/resource/keyvault/v3/index.js.map +1 -0
- package/build/plugins/resource/localdebug/constants.d.ts +0 -1
- package/build/plugins/resource/localdebug/constants.d.ts.map +1 -1
- package/build/plugins/resource/localdebug/constants.js +0 -1
- package/build/plugins/resource/localdebug/constants.js.map +1 -1
- package/build/plugins/resource/localdebug/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/localdebug/v2/index.js +1 -4
- 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 +2 -2
- 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.map +1 -1
- package/build/plugins/resource/spfx/index.d.ts +1 -5
- package/build/plugins/resource/spfx/index.d.ts.map +1 -1
- package/build/plugins/resource/spfx/index.js +6 -10
- package/build/plugins/resource/spfx/index.js.map +1 -1
- package/build/plugins/resource/spfx/plugin.js +6 -6
- package/build/plugins/resource/spfx/plugin.js.map +1 -1
- package/build/plugins/resource/spfx/utils/constants.d.ts +9 -0
- package/build/plugins/resource/spfx/utils/constants.d.ts.map +1 -1
- package/build/plugins/resource/spfx/utils/constants.js +11 -1
- package/build/plugins/resource/spfx/utils/constants.js.map +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.d.ts +3 -3
- package/build/plugins/resource/spfx/utils/progress-helper.d.ts.map +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.js +8 -8
- package/build/plugins/resource/spfx/utils/progress-helper.js.map +1 -1
- package/build/plugins/resource/spfx/utils/questions.d.ts +10 -0
- package/build/plugins/resource/spfx/utils/questions.d.ts.map +1 -0
- package/build/plugins/resource/spfx/utils/questions.js +39 -0
- package/build/plugins/resource/spfx/utils/questions.js.map +1 -0
- package/build/plugins/resource/spfx/v3/error.d.ts +5 -0
- package/build/plugins/resource/spfx/v3/error.d.ts.map +1 -0
- package/build/plugins/resource/spfx/v3/error.js +20 -0
- package/build/plugins/resource/spfx/v3/error.js.map +1 -0
- package/build/plugins/resource/spfx/v3/index.d.ts +13 -0
- package/build/plugins/resource/spfx/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/spfx/v3/index.js +123 -0
- package/build/plugins/resource/spfx/v3/index.js.map +1 -0
- package/build/plugins/resource/spfx/v3/plugin.d.ts +11 -0
- package/build/plugins/resource/spfx/v3/plugin.d.ts.map +1 -0
- package/build/plugins/resource/spfx/v3/plugin.js +290 -0
- package/build/plugins/resource/spfx/v3/plugin.js.map +1 -0
- package/build/plugins/resource/sql/constants.d.ts +0 -3
- package/build/plugins/resource/sql/constants.d.ts.map +1 -1
- package/build/plugins/resource/sql/constants.js +0 -3
- package/build/plugins/resource/sql/constants.js.map +1 -1
- package/build/plugins/resource/sql/errors.d.ts +0 -16
- package/build/plugins/resource/sql/errors.d.ts.map +1 -1
- package/build/plugins/resource/sql/errors.js +0 -16
- package/build/plugins/resource/sql/errors.js.map +1 -1
- package/build/plugins/resource/sql/index.d.ts +1 -0
- package/build/plugins/resource/sql/index.d.ts.map +1 -1
- package/build/plugins/resource/sql/index.js +2 -1
- package/build/plugins/resource/sql/index.js.map +1 -1
- package/build/plugins/resource/sql/managementClient.d.ts +5 -10
- package/build/plugins/resource/sql/managementClient.d.ts.map +1 -1
- package/build/plugins/resource/sql/managementClient.js +17 -65
- package/build/plugins/resource/sql/managementClient.js.map +1 -1
- package/build/plugins/resource/sql/plugin.d.ts +2 -3
- package/build/plugins/resource/sql/plugin.d.ts.map +1 -1
- package/build/plugins/resource/sql/plugin.js +15 -69
- package/build/plugins/resource/sql/plugin.js.map +1 -1
- package/build/plugins/resource/sql/sqlClient.d.ts +3 -4
- package/build/plugins/resource/sql/sqlClient.d.ts.map +1 -1
- package/build/plugins/resource/sql/sqlClient.js +6 -7
- package/build/plugins/resource/sql/sqlClient.js.map +1 -1
- package/build/plugins/resource/sql/utils/dialogUtils.d.ts +2 -8
- package/build/plugins/resource/sql/utils/dialogUtils.d.ts.map +1 -1
- package/build/plugins/resource/sql/utils/dialogUtils.js +3 -11
- package/build/plugins/resource/sql/utils/dialogUtils.js.map +1 -1
- package/build/plugins/resource/sql/utils/message.d.ts +0 -10
- package/build/plugins/resource/sql/utils/message.d.ts.map +1 -1
- package/build/plugins/resource/sql/utils/message.js +0 -10
- package/build/plugins/resource/sql/utils/message.js.map +1 -1
- package/build/plugins/resource/sql/utils/telemetryUtils.d.ts +3 -3
- package/build/plugins/resource/sql/utils/telemetryUtils.d.ts.map +1 -1
- package/build/plugins/resource/sql/utils/telemetryUtils.js +6 -7
- package/build/plugins/resource/sql/utils/telemetryUtils.js.map +1 -1
- package/build/plugins/resource/sql/v2/index.d.ts +4 -4
- package/build/plugins/resource/sql/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/sql/v2/index.js.map +1 -1
- package/build/plugins/resource/sql/v3/index.d.ts +28 -0
- package/build/plugins/resource/sql/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/sql/v3/index.js +358 -0
- package/build/plugins/resource/sql/v3/index.js.map +1 -0
- package/build/plugins/resource/utils4v2.d.ts +16 -20
- package/build/plugins/resource/utils4v2.d.ts.map +1 -1
- package/build/plugins/resource/utils4v2.js +9 -33
- package/build/plugins/resource/utils4v2.js.map +1 -1
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.js +5 -4
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.js.map +1 -1
- package/build/plugins/solution/fx-solution/arm.d.ts +3 -4
- package/build/plugins/solution/fx-solution/arm.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/arm.js +120 -72
- package/build/plugins/solution/fx-solution/arm.js.map +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.js +0 -7
- package/build/plugins/solution/fx-solution/commonQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/constants.d.ts +2 -4
- package/build/plugins/solution/fx-solution/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/constants.js +3 -5
- package/build/plugins/solution/fx-solution/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/provisionLocal.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/provisionLocal.js +2 -7
- package/build/plugins/solution/fx-solution/debug/provisionLocal.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/scaffolding.js +25 -3
- package/build/plugins/solution/fx-solution/debug/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/util/launch.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/util/launch.js +106 -285
- package/build/plugins/solution/fx-solution/debug/util/launch.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/util/launchNext.d.ts +3 -0
- package/build/plugins/solution/fx-solution/debug/util/launchNext.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/debug/util/launchNext.js +136 -0
- package/build/plugins/solution/fx-solution/debug/util/launchNext.js.map +1 -0
- package/build/plugins/solution/fx-solution/debug/util/tasks.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/util/tasks.js +8 -10
- package/build/plugins/solution/fx-solution/debug/util/tasks.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/util/tasksNext.d.ts +2 -0
- package/build/plugins/solution/fx-solution/debug/util/tasksNext.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/debug/util/tasksNext.js +178 -0
- package/build/plugins/solution/fx-solution/debug/util/tasksNext.js.map +1 -0
- package/build/plugins/solution/fx-solution/solution.d.ts +2 -1
- package/build/plugins/solution/fx-solution/solution.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/solution.js +33 -14
- package/build/plugins/solution/fx-solution/solution.js.map +1 -1
- package/build/plugins/solution/fx-solution/utils/progressHelper.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/utils/solutionSettingsHelper.d.ts +3 -0
- package/build/plugins/solution/fx-solution/utils/solutionSettingsHelper.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/utils/solutionSettingsHelper.js +19 -0
- package/build/plugins/solution/fx-solution/utils/solutionSettingsHelper.js.map +1 -0
- package/build/plugins/solution/fx-solution/v2/checkPermission.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/checkPermission.js +32 -14
- package/build/plugins/solution/fx-solution/v2/checkPermission.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 +11 -6
- package/build/plugins/solution/fx-solution/v2/deploy.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js +31 -10
- 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 +4 -5
- 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 +32 -25
- package/build/plugins/solution/fx-solution/v2/getQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/grantPermission.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/grantPermission.js +33 -15
- 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 +20 -10
- package/build/plugins/solution/fx-solution/v2/listCollaborator.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.d.ts +2 -3
- package/build/plugins/solution/fx-solution/v2/provision.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.js +98 -130
- package/build/plugins/solution/fx-solution/v2/provision.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provisionLocal.d.ts +2 -1
- package/build/plugins/solution/fx-solution/v2/provisionLocal.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provisionLocal.js +10 -8
- 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 +12 -9
- package/build/plugins/solution/fx-solution/v2/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/solution.d.ts +3 -3
- package/build/plugins/solution/fx-solution/v2/solution.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/solution.js +0 -2
- package/build/plugins/solution/fx-solution/v2/solution.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.d.ts +7 -5
- package/build/plugins/solution/fx-solution/v2/utils.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.js +22 -17
- package/build/plugins/solution/fx-solution/v2/utils.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addFeature.d.ts +10 -0
- package/build/plugins/solution/fx-solution/v3/addFeature.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/addFeature.js +130 -0
- package/build/plugins/solution/fx-solution/v3/addFeature.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/constants.d.ts +7 -9
- package/build/plugins/solution/fx-solution/v3/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/constants.js +9 -11
- package/build/plugins/solution/fx-solution/v3/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/deploy.d.ts +2 -2
- package/build/plugins/solution/fx-solution/v3/deploy.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/deploy.js +34 -27
- package/build/plugins/solution/fx-solution/v3/deploy.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/error.d.ts +1 -7
- package/build/plugins/solution/fx-solution/v3/error.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/error.js +0 -14
- package/build/plugins/solution/fx-solution/v3/error.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provision.d.ts +8 -3
- package/build/plugins/solution/fx-solution/v3/provision.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provision.js +151 -110
- package/build/plugins/solution/fx-solution/v3/provision.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/publish.d.ts +2 -2
- package/build/plugins/solution/fx-solution/v3/publish.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/publish.js +1 -1
- package/build/plugins/solution/fx-solution/v3/publish.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/solution.d.ts +14 -24
- package/build/plugins/solution/fx-solution/v3/solution.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/solution.js +75 -19
- package/build/plugins/solution/fx-solution/v3/solution.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/solutionGlobalVars.d.ts +5 -0
- package/build/plugins/solution/fx-solution/v3/solutionGlobalVars.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/solutionGlobalVars.js +10 -0
- package/build/plugins/solution/fx-solution/v3/solutionGlobalVars.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/userTask.d.ts +5 -3
- package/build/plugins/solution/fx-solution/v3/userTask.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/userTask.js +157 -5
- package/build/plugins/solution/fx-solution/v3/userTask.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/utils.d.ts +1 -2
- package/build/plugins/solution/fx-solution/v3/utils.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/utils.js +0 -13
- package/build/plugins/solution/fx-solution/v3/utils.js.map +1 -1
- package/build/plugins/solution/spfx-solution/addFeature.d.ts +5 -0
- package/build/plugins/solution/spfx-solution/addFeature.d.ts.map +1 -0
- package/build/plugins/solution/spfx-solution/addFeature.js +30 -0
- package/build/plugins/solution/spfx-solution/addFeature.js.map +1 -0
- package/build/plugins/solution/spfx-solution/solution.d.ts +3 -10
- package/build/plugins/solution/spfx-solution/solution.d.ts.map +1 -1
- package/build/plugins/solution/spfx-solution/solution.js +4 -11
- package/build/plugins/solution/spfx-solution/solution.js.map +1 -1
- package/build/plugins/solution/utils/questions.d.ts +5 -11
- package/build/plugins/solution/utils/questions.d.ts.map +1 -1
- package/build/plugins/solution/utils/questions.js +10 -63
- package/build/plugins/solution/utils/questions.js.map +1 -1
- package/package.json +14 -7
- package/resource/strings.json +28 -1
- 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/frontend/tab.js.default.zip +0 -0
- package/templates/plugins/resource/frontend/tab.ts.default.zip +0 -0
- package/templates/plugins/resource/function/bicep/functionConfiguration.template.bicep +4 -2
- 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/simpleauth/bicep/simpleAuthConfiguration.template.bicep +4 -2
- package/templates/plugins/resource/webapp/bicep/webappConfiguration.template.bicep +3 -29
- package/templates/plugins/solution/{main.bicep → mainConfig.bicep} +0 -12
- package/templates/plugins/solution/mainProvision.bicep +10 -0
- package/build/core/middleware/projectSettingsLoaderV3.d.ts +0 -4
- package/build/core/middleware/projectSettingsLoaderV3.d.ts.map +0 -1
- package/build/core/middleware/projectSettingsLoaderV3.js +0 -49
- package/build/core/middleware/projectSettingsLoaderV3.js.map +0 -1
- package/build/plugins/resource/apim/interfaces/IApimResource.d.ts +0 -5
- package/build/plugins/resource/apim/interfaces/IApimResource.d.ts.map +0 -1
- package/build/plugins/resource/apim/interfaces/IApimResource.js.map +0 -1
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.d.ts +0 -15
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.d.ts.map +0 -1
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.js +0 -149
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.js.map +0 -1
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.d.ts +0 -8
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.d.ts.map +0 -1
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.js +0 -95
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.js.map +0 -1
- package/build/plugins/solution/fx-solution/v2/listAllCollaborators.d.ts +0 -5
- package/build/plugins/solution/fx-solution/v2/listAllCollaborators.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/v2/listAllCollaborators.js +0 -118
- package/build/plugins/solution/fx-solution/v2/listAllCollaborators.js.map +0 -1
- package/build/plugins/solution/fx-solution/v3/addModule.d.ts +0 -4
- package/build/plugins/solution/fx-solution/v3/addModule.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/v3/addModule.js +0 -58
- package/build/plugins/solution/fx-solution/v3/addModule.js.map +0 -1
- package/build/plugins/solution/fx-solution/v3/addResource.d.ts +0 -29
- package/build/plugins/solution/fx-solution/v3/addResource.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/v3/addResource.js +0 -233
- package/build/plugins/solution/fx-solution/v3/addResource.js.map +0 -1
- package/build/plugins/solution/fx-solution/v3/init.d.ts +0 -4
- package/build/plugins/solution/fx-solution/v3/init.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/v3/init.js +0 -44
- package/build/plugins/solution/fx-solution/v3/init.js.map +0 -1
- package/build/plugins/solution/fx-solution/v3/provisionLocal.d.ts +0 -4
- package/build/plugins/solution/fx-solution/v3/provisionLocal.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/v3/provisionLocal.js +0 -108
- package/build/plugins/solution/fx-solution/v3/provisionLocal.js.map +0 -1
- package/build/plugins/solution/fx-solution/v3/scaffold.d.ts +0 -22
- package/build/plugins/solution/fx-solution/v3/scaffold.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/v3/scaffold.js +0 -219
- package/build/plugins/solution/fx-solution/v3/scaffold.js.map +0 -1
- package/build/plugins/solution/spfx-solution/addModule.d.ts +0 -3
- package/build/plugins/solution/spfx-solution/addModule.d.ts.map +0 -1
- package/build/plugins/solution/spfx-solution/addModule.js +0 -29
- package/build/plugins/solution/spfx-solution/addModule.js.map +0 -1
- package/build/plugins/solution/spfx-solution/init.d.ts +0 -4
- package/build/plugins/solution/spfx-solution/init.d.ts.map +0 -1
- package/build/plugins/solution/spfx-solution/init.js +0 -52
- package/build/plugins/solution/spfx-solution/init.js.map +0 -1
- package/build/plugins/solution/spfx-solution/scaffold.d.ts +0 -5
- package/build/plugins/solution/spfx-solution/scaffold.d.ts.map +0 -1
- package/build/plugins/solution/spfx-solution/scaffold.js +0 -69
- package/build/plugins/solution/spfx-solution/scaffold.js.map +0 -1
- package/templates/plugins/resource/storage/bicep/azureStorageProvision.bicep +0 -25
- package/templates/plugins/resource/storage/bicep/provision.template.bicep +0 -15
package/build/core/index.js
CHANGED
|
@@ -8,7 +8,6 @@ const hooks_1 = require("@feathersjs/hooks");
|
|
|
8
8
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
9
9
|
const fs = tslib_1.__importStar(require("fs-extra"));
|
|
10
10
|
const jsonschema = tslib_1.__importStar(require("jsonschema"));
|
|
11
|
-
const lodash_1 = require("lodash");
|
|
12
11
|
const path = tslib_1.__importStar(require("path"));
|
|
13
12
|
const typedi_1 = require("typedi");
|
|
14
13
|
const uuid = tslib_1.__importStar(require("uuid"));
|
|
@@ -21,6 +20,7 @@ const tools_1 = require("../common/tools");
|
|
|
21
20
|
const question_1 = require("../plugins/solution/fx-solution/question");
|
|
22
21
|
const constants_2 = require("../plugins/solution/fx-solution/v3/constants");
|
|
23
22
|
const callback_1 = require("./callback");
|
|
23
|
+
const collaborator_1 = require("./collaborator");
|
|
24
24
|
const crypto_1 = require("./crypto");
|
|
25
25
|
const downloadSample_1 = require("./downloadSample");
|
|
26
26
|
const error_1 = require("./error");
|
|
@@ -36,7 +36,6 @@ const localSettingsWriter_1 = require("./middleware/localSettingsWriter");
|
|
|
36
36
|
const migrateConditionHandler_1 = require("./middleware/migrateConditionHandler");
|
|
37
37
|
const projectMigrator_1 = require("./middleware/projectMigrator");
|
|
38
38
|
const projectSettingsLoader_1 = require("./middleware/projectSettingsLoader");
|
|
39
|
-
const projectSettingsLoaderV3_1 = require("./middleware/projectSettingsLoaderV3");
|
|
40
39
|
const projectSettingsWriter_1 = require("./middleware/projectSettingsWriter");
|
|
41
40
|
const questionModel_1 = require("./middleware/questionModel");
|
|
42
41
|
const solutionLoader_1 = require("./middleware/solutionLoader");
|
|
@@ -45,6 +44,7 @@ const supportV1ConditionHandler_1 = require("./middleware/supportV1ConditionHand
|
|
|
45
44
|
const question_2 = require("./question");
|
|
46
45
|
const SolutionPluginContainer_1 = require("./SolutionPluginContainer");
|
|
47
46
|
const tools_2 = require("./tools");
|
|
47
|
+
const utils_1 = require("./utils");
|
|
48
48
|
// TODO: For package.json,
|
|
49
49
|
// use require instead of import because of core building/packaging method.
|
|
50
50
|
// Using import will cause the build folder structure to change.
|
|
@@ -84,14 +84,12 @@ class FxCore {
|
|
|
84
84
|
this._getQuestions = questionModel_1.getQuestionsV2;
|
|
85
85
|
this._getQuestionsForMigrateV1Project = questionModel_1.getQuestionsForMigrateV1Project;
|
|
86
86
|
//v3 questions
|
|
87
|
-
this.
|
|
88
|
-
this._getQuestionsForAddModule = questionModel_1.getQuestionsForAddModule;
|
|
89
|
-
this._getQuestionsForAddResource = questionModel_1.getQuestionsForAddResource;
|
|
87
|
+
this._getQuestionsForAddFeature = questionModel_1.getQuestionsForAddFeature;
|
|
90
88
|
this._getQuestionsForProvision = questionModel_1.getQuestionsForProvision;
|
|
91
89
|
this._getQuestionsForDeploy = questionModel_1.getQuestionsForDeploy;
|
|
92
|
-
this._getQuestionsForLocalProvision = questionModel_1.getQuestionsForLocalProvision;
|
|
93
90
|
this._getQuestionsForPublish = questionModel_1.getQuestionsForPublish;
|
|
94
91
|
this._getQuestionsForInit = questionModel_1.getQuestionsForInit;
|
|
92
|
+
this._getQuestionsForUserTaskV3 = questionModel_1.getQuestionsForUserTaskV3;
|
|
95
93
|
this.tools = tools;
|
|
96
94
|
exports.TOOLS = tools;
|
|
97
95
|
exports.Logger = tools.logProvider;
|
|
@@ -131,6 +129,7 @@ class FxCore {
|
|
|
131
129
|
const scratch = inputs[question_2.CoreQuestionNames.CreateFromScratch];
|
|
132
130
|
let projectPath;
|
|
133
131
|
let globalStateDescription = "openReadme";
|
|
132
|
+
const automaticNpmInstall = "automaticNpmInstall";
|
|
134
133
|
if (scratch === question_2.ScratchOptionNo.id) {
|
|
135
134
|
// create from sample
|
|
136
135
|
const downloadRes = await downloadSample_1.downloadSample(inputs, ctx);
|
|
@@ -167,45 +166,61 @@ class FxCore {
|
|
|
167
166
|
const projectSettings = {
|
|
168
167
|
appName: appName,
|
|
169
168
|
projectId: inputs.projectId ? inputs.projectId : uuid.v4(),
|
|
170
|
-
solutionSettings: {
|
|
171
|
-
name: "",
|
|
172
|
-
version: "1.0.0",
|
|
173
|
-
},
|
|
174
169
|
version: getProjectSettingsVersion(),
|
|
175
170
|
isFromSample: false,
|
|
176
171
|
};
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
const solution = await SolutionPluginContainer_1.getSolutionPluginV2ByName(inputs[question_2.CoreQuestionNames.Solution]);
|
|
183
|
-
if (!solution) {
|
|
184
|
-
return teamsfx_api_1.err(new error_1.LoadSolutionError());
|
|
172
|
+
if (utils_1.isCreatedFromExistingApp(inputs)) {
|
|
173
|
+
// there is no solution settings if created from existing app
|
|
174
|
+
//TODO create from existing Tab or Bot/ME
|
|
175
|
+
// 1. call App Studio V3 API to create manifest with placeholder
|
|
176
|
+
// 2. create config.local.json to store existing App information
|
|
185
177
|
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
178
|
+
else {
|
|
179
|
+
projectSettings.solutionSettings = {
|
|
180
|
+
name: "",
|
|
181
|
+
version: "1.0.0",
|
|
182
|
+
};
|
|
183
|
+
projectSettings.programmingLanguage = inputs[question_2.CoreQuestionNames.ProgrammingLanguage];
|
|
184
|
+
ctx.projectSettings = projectSettings;
|
|
185
|
+
const createEnvResult = await this.createEnvWithName(__1.environmentManager.getDefaultEnvName(), projectSettings, inputs);
|
|
186
|
+
if (createEnvResult.isErr()) {
|
|
187
|
+
return teamsfx_api_1.err(createEnvResult.error);
|
|
188
|
+
}
|
|
189
|
+
if (tools_1.isConfigUnifyEnabled()) {
|
|
190
|
+
const createLocalEnvResult = await this.createEnvWithName(__1.environmentManager.getLocalEnvName(), projectSettings, inputs);
|
|
191
|
+
if (createLocalEnvResult.isErr()) {
|
|
192
|
+
return teamsfx_api_1.err(createLocalEnvResult.error);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
const solution = await SolutionPluginContainer_1.getSolutionPluginV2ByName(inputs[question_2.CoreQuestionNames.Solution]);
|
|
196
|
+
if (!solution) {
|
|
197
|
+
return teamsfx_api_1.err(new error_1.LoadSolutionError());
|
|
198
|
+
}
|
|
199
|
+
ctx.solutionV2 = solution;
|
|
200
|
+
projectSettings.solutionSettings.name = solution.name;
|
|
201
|
+
const contextV2 = createV2Context(projectSettings);
|
|
202
|
+
ctx.contextV2 = contextV2;
|
|
203
|
+
const scaffoldSourceCodeRes = await solution.scaffoldSourceCode(contextV2, inputs);
|
|
204
|
+
if (scaffoldSourceCodeRes.isErr()) {
|
|
205
|
+
return teamsfx_api_1.err(scaffoldSourceCodeRes.error);
|
|
206
|
+
}
|
|
207
|
+
const generateResourceTemplateRes = await solution.generateResourceTemplate(contextV2, inputs);
|
|
208
|
+
if (generateResourceTemplateRes.isErr()) {
|
|
209
|
+
return teamsfx_api_1.err(generateResourceTemplateRes.error);
|
|
210
|
+
}
|
|
211
|
+
// ctx.provisionInputConfig = generateResourceTemplateRes.value;
|
|
212
|
+
if (solution.createEnv) {
|
|
213
|
+
inputs.copy = false;
|
|
214
|
+
const createEnvRes = await solution.createEnv(contextV2, inputs);
|
|
215
|
+
if (createEnvRes.isErr()) {
|
|
216
|
+
return teamsfx_api_1.err(createEnvRes.error);
|
|
217
|
+
}
|
|
204
218
|
}
|
|
205
219
|
}
|
|
206
220
|
}
|
|
207
221
|
if (inputs.platform === teamsfx_api_1.Platform.VSCode) {
|
|
208
222
|
await globalState_1.globalStateUpdate(globalStateDescription, true);
|
|
223
|
+
await globalState_1.globalStateUpdate(automaticNpmInstall, true);
|
|
209
224
|
}
|
|
210
225
|
return teamsfx_api_1.ok(projectPath);
|
|
211
226
|
}
|
|
@@ -228,6 +243,7 @@ class FxCore {
|
|
|
228
243
|
const scratch = inputs[question_2.CoreQuestionNames.CreateFromScratch];
|
|
229
244
|
let projectPath;
|
|
230
245
|
let globalStateDescription = "openReadme";
|
|
246
|
+
const automaticNpmInstall = "automaticNpmInstall";
|
|
231
247
|
if (scratch === question_2.ScratchOptionNo.id) {
|
|
232
248
|
// create from sample
|
|
233
249
|
const downloadRes = await downloadSample_1.downloadSample(inputs, ctx);
|
|
@@ -256,136 +272,45 @@ class FxCore {
|
|
|
256
272
|
}
|
|
257
273
|
await fs.ensureDir(projectPath);
|
|
258
274
|
await fs.ensureDir(path.join(projectPath, `.${teamsfx_api_1.ConfigFolderName}`));
|
|
259
|
-
|
|
260
|
-
let projectType = "";
|
|
261
|
-
if (capabilities.includes(question_2.TabSPFxItem.id))
|
|
262
|
-
projectType = "spfx";
|
|
263
|
-
else if (capabilities.includes(question_2.TabOptionItem.id) && capabilities.length === 1)
|
|
264
|
-
projectType = "tab";
|
|
265
|
-
else if ((capabilities.includes(question_2.BotOptionItem.id) ||
|
|
266
|
-
capabilities.includes(question_1.MessageExtensionItem.id)) &&
|
|
267
|
-
!capabilities.includes(question_2.TabOptionItem.id))
|
|
268
|
-
projectType = "bot";
|
|
269
|
-
else if ((capabilities.includes(question_2.BotOptionItem.id) ||
|
|
270
|
-
capabilities.includes(question_1.MessageExtensionItem.id)) &&
|
|
271
|
-
capabilities.includes(question_2.TabOptionItem.id))
|
|
272
|
-
projectType = "tab+bot";
|
|
273
|
-
const programmingLanguage = inputs[question_2.CoreQuestionNames.ProgrammingLanguage];
|
|
274
|
-
// const solution = capabilities.includes(TabSPFxItem.id)
|
|
275
|
-
// ? BuiltInSolutionNames.spfx
|
|
276
|
-
// : BuiltInSolutionNames.azure;
|
|
275
|
+
const capabilities = inputs[question_2.CoreQuestionNames.Capabilities];
|
|
277
276
|
// init
|
|
278
277
|
const initInputs = Object.assign(Object.assign({}, inputs), { projectPath: projectPath });
|
|
279
278
|
const initRes = await this._init(initInputs, ctx);
|
|
280
279
|
if (initRes.isErr()) {
|
|
281
280
|
return teamsfx_api_1.err(initRes.error);
|
|
282
281
|
}
|
|
283
|
-
|
|
282
|
+
ctx.projectSettings.programmingLanguage = inputs[question_2.CoreQuestionNames.ProgrammingLanguage];
|
|
283
|
+
const projectSettingsPath = projectSettingsLoader_1.getProjectSettingsPath(projectPath);
|
|
284
|
+
await fs.writeFile(projectSettingsPath, JSON.stringify(ctx.projectSettings, null, 4)); // persist project settings
|
|
285
|
+
// addFeature
|
|
286
|
+
const features = [];
|
|
287
|
+
if (!capabilities.includes(question_2.TabSPFxItem.id)) {
|
|
288
|
+
features.push(constants_2.BuiltInFeaturePluginNames.aad);
|
|
289
|
+
}
|
|
284
290
|
if (inputs.platform === teamsfx_api_1.Platform.VS) {
|
|
285
|
-
|
|
286
|
-
const addModuleInputs = Object.assign(Object.assign({}, inputs), { projectPath: projectPath, capabilities: capabilities });
|
|
287
|
-
const addModuleRes = await this._addModule(addModuleInputs, ctx);
|
|
288
|
-
if (addModuleRes.isErr()) {
|
|
289
|
-
return teamsfx_api_1.err(addModuleRes.error);
|
|
290
|
-
}
|
|
291
|
-
// addResource
|
|
292
|
-
const addResourceInputs = Object.assign(Object.assign({}, inputs), { projectPath: projectPath, module: "0", resource: constants_2.BuiltInResourcePluginNames.webApp });
|
|
293
|
-
const addResourceRes = await this._addResource(addResourceInputs, ctx);
|
|
294
|
-
if (addResourceRes.isErr()) {
|
|
295
|
-
return teamsfx_api_1.err(addResourceRes.error);
|
|
296
|
-
}
|
|
297
|
-
// scaffold
|
|
298
|
-
let templateName = "";
|
|
299
|
-
if (projectType === "tab")
|
|
300
|
-
templateName = "BlazorTab";
|
|
301
|
-
else if (projectType === "bot")
|
|
302
|
-
templateName = "BlazorBot";
|
|
303
|
-
else if (projectType === "tabbot")
|
|
304
|
-
templateName = "BlazorTabBot";
|
|
305
|
-
const scaffoldInputs = Object.assign(Object.assign({}, inputs), { projectPath: projectPath, module: "0", template: {
|
|
306
|
-
id: `${constants_2.BuiltInScaffoldPluginNames.blazor}/${templateName}`,
|
|
307
|
-
label: `${constants_2.BuiltInScaffoldPluginNames.blazor}/${templateName}`,
|
|
308
|
-
data: {
|
|
309
|
-
pluginName: constants_2.BuiltInScaffoldPluginNames.blazor,
|
|
310
|
-
templateName: templateName,
|
|
311
|
-
},
|
|
312
|
-
} });
|
|
313
|
-
const scaffoldRes = await this._scaffold(scaffoldInputs, ctx);
|
|
314
|
-
if (scaffoldRes.isErr()) {
|
|
315
|
-
return teamsfx_api_1.err(scaffoldRes.error);
|
|
316
|
-
}
|
|
291
|
+
features.push(constants_2.BuiltInFeaturePluginNames.dotnet);
|
|
317
292
|
}
|
|
318
293
|
else {
|
|
319
|
-
if (capabilities.includes(question_2.TabOptionItem.id)
|
|
320
|
-
|
|
321
|
-
? [question_2.TabOptionItem.id]
|
|
322
|
-
: [question_2.TabSPFxItem.id] });
|
|
323
|
-
const addModuleRes = await this._addModule(addModuleInputs, ctx);
|
|
324
|
-
if (addModuleRes.isErr()) {
|
|
325
|
-
return teamsfx_api_1.err(addModuleRes.error);
|
|
326
|
-
}
|
|
327
|
-
// addResource
|
|
328
|
-
const addResourceInputs = Object.assign(Object.assign({}, inputs), { projectPath: projectPath, module: "0", resource: capabilities.includes(question_2.TabOptionItem.id)
|
|
329
|
-
? constants_2.BuiltInResourcePluginNames.storage
|
|
330
|
-
: constants_2.BuiltInResourcePluginNames.spfx });
|
|
331
|
-
const addResourceRes = await this._addResource(addResourceInputs, ctx);
|
|
332
|
-
if (addResourceRes.isErr()) {
|
|
333
|
-
return teamsfx_api_1.err(addResourceRes.error);
|
|
334
|
-
}
|
|
335
|
-
// scaffold
|
|
336
|
-
const pluginName = capabilities.includes(question_2.TabOptionItem.id)
|
|
337
|
-
? constants_2.BuiltInScaffoldPluginNames.tab
|
|
338
|
-
: constants_2.BuiltInScaffoldPluginNames.spfx;
|
|
339
|
-
const templateName = capabilities.includes(question_2.TabOptionItem.id)
|
|
340
|
-
? programmingLanguage === "javascript"
|
|
341
|
-
? "ReactTab_JS"
|
|
342
|
-
: "ReactTab_TS"
|
|
343
|
-
: "SPFxTab";
|
|
344
|
-
const scaffoldInputs = Object.assign(Object.assign({}, inputs), { projectPath: projectPath, module: "0", template: {
|
|
345
|
-
id: `${pluginName}/${templateName}`,
|
|
346
|
-
label: `${pluginName}/${templateName}`,
|
|
347
|
-
data: {
|
|
348
|
-
pluginName: pluginName,
|
|
349
|
-
templateName: templateName, //TODO
|
|
350
|
-
},
|
|
351
|
-
} });
|
|
352
|
-
const scaffoldRes = await this._scaffold(scaffoldInputs, ctx);
|
|
353
|
-
if (scaffoldRes.isErr()) {
|
|
354
|
-
return teamsfx_api_1.err(scaffoldRes.error);
|
|
355
|
-
}
|
|
294
|
+
if (capabilities.includes(question_2.TabOptionItem.id)) {
|
|
295
|
+
features.push(constants_2.BuiltInFeaturePluginNames.frontend);
|
|
356
296
|
}
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
const addModuleInputs = Object.assign(Object.assign({}, inputs), { projectPath: projectPath, capabilities: capabilities });
|
|
360
|
-
const addModuleRes = await this._addModule(addModuleInputs, ctx);
|
|
361
|
-
if (addModuleRes.isErr()) {
|
|
362
|
-
return teamsfx_api_1.err(addModuleRes.error);
|
|
363
|
-
}
|
|
364
|
-
// addResource
|
|
365
|
-
const addResourceInputs = Object.assign(Object.assign({}, inputs), { projectPath: projectPath, module: "1", resource: constants_2.BuiltInResourcePluginNames.bot });
|
|
366
|
-
const addResourceRes = await this._addResource(addResourceInputs, ctx);
|
|
367
|
-
if (addResourceRes.isErr()) {
|
|
368
|
-
return teamsfx_api_1.err(addResourceRes.error);
|
|
369
|
-
}
|
|
370
|
-
// scaffold
|
|
371
|
-
const templateName = programmingLanguage === "javascript" ? "NodejsBot_JS" : "NodejsBot_TS";
|
|
372
|
-
const scaffoldInputs = Object.assign(Object.assign({}, inputs), { projectPath: projectPath, module: "1", resource: constants_2.BuiltInScaffoldPluginNames.bot, template: {
|
|
373
|
-
id: `${constants_2.BuiltInScaffoldPluginNames.bot}/${templateName}`,
|
|
374
|
-
label: `${constants_2.BuiltInScaffoldPluginNames.bot}/${templateName}`,
|
|
375
|
-
data: {
|
|
376
|
-
pluginName: constants_2.BuiltInScaffoldPluginNames.bot,
|
|
377
|
-
templateName: templateName, //TODO
|
|
378
|
-
},
|
|
379
|
-
} });
|
|
380
|
-
const scaffoldRes = await this._scaffold(scaffoldInputs, ctx);
|
|
381
|
-
if (scaffoldRes.isErr()) {
|
|
382
|
-
return teamsfx_api_1.err(scaffoldRes.error);
|
|
383
|
-
}
|
|
297
|
+
else if (capabilities.includes(question_2.TabSPFxItem.id)) {
|
|
298
|
+
features.push(constants_2.BuiltInFeaturePluginNames.spfx);
|
|
384
299
|
}
|
|
300
|
+
if (capabilities.includes(question_2.BotOptionItem.id) ||
|
|
301
|
+
capabilities.includes(question_1.MessageExtensionItem.id)) {
|
|
302
|
+
features.push(constants_2.BuiltInFeaturePluginNames.bot);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
const addFeatureInputs = Object.assign(Object.assign({}, inputs), { projectPath: projectPath, features: features });
|
|
306
|
+
const addFeatureRes = await this.addFeature(addFeatureInputs);
|
|
307
|
+
if (addFeatureRes.isErr()) {
|
|
308
|
+
return teamsfx_api_1.err(addFeatureRes.error);
|
|
385
309
|
}
|
|
386
310
|
}
|
|
387
311
|
if (inputs.platform === teamsfx_api_1.Platform.VSCode) {
|
|
388
312
|
await globalState_1.globalStateUpdate(globalStateDescription, true);
|
|
313
|
+
await globalState_1.globalStateUpdate(automaticNpmInstall, true);
|
|
389
314
|
}
|
|
390
315
|
return teamsfx_api_1.ok(projectPath);
|
|
391
316
|
}
|
|
@@ -493,17 +418,7 @@ class FxCore {
|
|
|
493
418
|
}
|
|
494
419
|
const envInfo = ctx.envInfoV2;
|
|
495
420
|
const result = await ctx.solutionV2.provisionResources(ctx.contextV2, inputs, envInfo, this.tools.tokenProvider);
|
|
496
|
-
|
|
497
|
-
ctx.envInfoV2.state = lodash_1.assign(ctx.envInfoV2.state, result.output);
|
|
498
|
-
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
499
|
-
}
|
|
500
|
-
else if (result.kind === "partialSuccess") {
|
|
501
|
-
ctx.envInfoV2.state = lodash_1.assign(ctx.envInfoV2.state, result.output);
|
|
502
|
-
return teamsfx_api_1.err(result.error);
|
|
503
|
-
}
|
|
504
|
-
else {
|
|
505
|
-
return teamsfx_api_1.err(result.error);
|
|
506
|
-
}
|
|
421
|
+
return result;
|
|
507
422
|
}
|
|
508
423
|
async provisionResourcesV3(inputs, ctx) {
|
|
509
424
|
exports.currentStage = teamsfx_api_1.Stage.provision;
|
|
@@ -514,13 +429,34 @@ class FxCore {
|
|
|
514
429
|
ctx.envInfoV3 &&
|
|
515
430
|
ctx.solutionV3.provisionResources) {
|
|
516
431
|
const res = await ctx.solutionV3.provisionResources(ctx.contextV2, inputs, ctx.envInfoV3, exports.TOOLS.tokenProvider);
|
|
517
|
-
if (res.isOk()) {
|
|
518
|
-
ctx.envInfoV3 = res.value;
|
|
519
|
-
}
|
|
520
432
|
return res;
|
|
521
433
|
}
|
|
522
434
|
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
523
435
|
}
|
|
436
|
+
/**
|
|
437
|
+
* Only used to provision Teams app with user provided app package
|
|
438
|
+
* @param inputs
|
|
439
|
+
* @returns teamsAppId on provision success
|
|
440
|
+
*/
|
|
441
|
+
async provisionTeamsAppForCLI(inputs) {
|
|
442
|
+
if (!inputs.appPackagePath) {
|
|
443
|
+
return teamsfx_api_1.err(error_1.InvalidInputError("appPackagePath is not defined", inputs));
|
|
444
|
+
}
|
|
445
|
+
const projectSettings = {
|
|
446
|
+
appName: "fake",
|
|
447
|
+
projectId: uuid.v4(),
|
|
448
|
+
};
|
|
449
|
+
const context = {
|
|
450
|
+
userInteraction: exports.TOOLS.ui,
|
|
451
|
+
logProvider: exports.TOOLS.logProvider,
|
|
452
|
+
telemetryReporter: exports.TOOLS.telemetryReporter,
|
|
453
|
+
cryptoProvider: new crypto_1.LocalCrypto(projectSettings.projectId),
|
|
454
|
+
permissionRequestProvider: exports.TOOLS.permissionRequest,
|
|
455
|
+
projectSetting: projectSettings,
|
|
456
|
+
};
|
|
457
|
+
const appStudioV3 = typedi_1.Container.get(constants_2.BuiltInFeaturePluginNames.appStudio);
|
|
458
|
+
return appStudioV3.registerTeamsApp(context, inputs, tools_2.newEnvInfoV3(), exports.TOOLS.tokenProvider);
|
|
459
|
+
}
|
|
524
460
|
async deployArtifacts(inputs) {
|
|
525
461
|
if (isV3())
|
|
526
462
|
return this.deployArtifactsV3(inputs);
|
|
@@ -530,7 +466,14 @@ class FxCore {
|
|
|
530
466
|
async deployArtifactsV2(inputs, ctx) {
|
|
531
467
|
exports.currentStage = teamsfx_api_1.Stage.deploy;
|
|
532
468
|
inputs.stage = teamsfx_api_1.Stage.deploy;
|
|
533
|
-
if (!ctx
|
|
469
|
+
if (!(ctx === null || ctx === void 0 ? void 0 : ctx.projectSettings)) {
|
|
470
|
+
return teamsfx_api_1.err(new error_1.ObjectIsUndefinedError("deploy input stuff"));
|
|
471
|
+
}
|
|
472
|
+
if (utils_1.isPureExistingApp(ctx.projectSettings)) {
|
|
473
|
+
// existing app scenario, deploy has no effect
|
|
474
|
+
return teamsfx_api_1.err(new error_1.OperationNotSupportedForExistingAppError("deploy"));
|
|
475
|
+
}
|
|
476
|
+
if (!ctx.solutionV2 || !ctx.contextV2 || !ctx.envInfoV2) {
|
|
534
477
|
const name = undefinedName([ctx, ctx === null || ctx === void 0 ? void 0 : ctx.solutionV2, ctx === null || ctx === void 0 ? void 0 : ctx.contextV2, ctx === null || ctx === void 0 ? void 0 : ctx.envInfoV2], ["ctx", "ctx.solutionV2", "ctx.contextV2", "ctx.envInfoV2"]);
|
|
535
478
|
return teamsfx_api_1.err(new error_1.ObjectIsUndefinedError(`Deploy input stuff: ${name}`));
|
|
536
479
|
}
|
|
@@ -549,6 +492,7 @@ class FxCore {
|
|
|
549
492
|
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
550
493
|
}
|
|
551
494
|
async localDebug(inputs) {
|
|
495
|
+
inputs.env = __1.environmentManager.getLocalEnvName();
|
|
552
496
|
if (isV3())
|
|
553
497
|
return this.localDebugV3(inputs);
|
|
554
498
|
else
|
|
@@ -557,14 +501,21 @@ class FxCore {
|
|
|
557
501
|
async localDebugV2(inputs, ctx) {
|
|
558
502
|
exports.currentStage = teamsfx_api_1.Stage.debug;
|
|
559
503
|
inputs.stage = teamsfx_api_1.Stage.debug;
|
|
560
|
-
if (!ctx ||
|
|
504
|
+
if (!(ctx === null || ctx === void 0 ? void 0 : ctx.projectSettings)) {
|
|
505
|
+
return teamsfx_api_1.err(new error_1.ObjectIsUndefinedError("local debug input stuff"));
|
|
506
|
+
}
|
|
507
|
+
if (utils_1.isPureExistingApp(ctx.projectSettings)) {
|
|
508
|
+
// existing app scenario, local debug has no effect
|
|
509
|
+
return teamsfx_api_1.err(new error_1.OperationNotSupportedForExistingAppError("localDebug"));
|
|
510
|
+
}
|
|
511
|
+
if (!ctx.solutionV2 || !ctx.contextV2) {
|
|
561
512
|
const name = undefinedName([ctx, ctx === null || ctx === void 0 ? void 0 : ctx.solutionV2, ctx === null || ctx === void 0 ? void 0 : ctx.contextV2], ["ctx", "ctx.solutionV2", "ctx.contextV2"]);
|
|
562
513
|
return teamsfx_api_1.err(new error_1.ObjectIsUndefinedError(`localDebug input stuff (${name})`));
|
|
563
514
|
}
|
|
564
515
|
if (!ctx.localSettings)
|
|
565
516
|
ctx.localSettings = {};
|
|
566
517
|
if (ctx.solutionV2.provisionLocalResource) {
|
|
567
|
-
const res = await ctx.solutionV2.provisionLocalResource(ctx.contextV2, inputs, ctx.localSettings, this.tools.tokenProvider);
|
|
518
|
+
const res = await ctx.solutionV2.provisionLocalResource(ctx.contextV2, inputs, ctx.localSettings, this.tools.tokenProvider, ctx.envInfoV2);
|
|
568
519
|
if (res.kind === "success") {
|
|
569
520
|
ctx.localSettings = res.output;
|
|
570
521
|
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
@@ -587,9 +538,9 @@ class FxCore {
|
|
|
587
538
|
if (ctx &&
|
|
588
539
|
ctx.solutionV3 &&
|
|
589
540
|
ctx.contextV2 &&
|
|
590
|
-
ctx.
|
|
591
|
-
ctx.solutionV3.
|
|
592
|
-
const res = await ctx.solutionV3.
|
|
541
|
+
ctx.envInfoV3 &&
|
|
542
|
+
ctx.solutionV3.provisionResources) {
|
|
543
|
+
const res = await ctx.solutionV3.provisionResources(ctx.contextV2, inputs, ctx.envInfoV3, exports.TOOLS.tokenProvider);
|
|
593
544
|
if (res.isOk()) {
|
|
594
545
|
ctx.localSettings = res.value;
|
|
595
546
|
}
|
|
@@ -636,7 +587,13 @@ class FxCore {
|
|
|
636
587
|
}
|
|
637
588
|
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
638
589
|
}
|
|
639
|
-
async executeUserTask(func, inputs
|
|
590
|
+
async executeUserTask(func, inputs) {
|
|
591
|
+
if (isV3())
|
|
592
|
+
return this.executeUserTaskV3(func, inputs);
|
|
593
|
+
else
|
|
594
|
+
return this.executeUserTaskV2(func, inputs);
|
|
595
|
+
}
|
|
596
|
+
async executeUserTaskV2(func, inputs, ctx) {
|
|
640
597
|
exports.currentStage = teamsfx_api_1.Stage.userTask;
|
|
641
598
|
inputs.stage = teamsfx_api_1.Stage.userTask;
|
|
642
599
|
const namespace = func.namespace;
|
|
@@ -659,6 +616,27 @@ class FxCore {
|
|
|
659
616
|
}
|
|
660
617
|
return teamsfx_api_1.err(error_1.FunctionRouterError(func));
|
|
661
618
|
}
|
|
619
|
+
async executeUserTaskV3(func, inputs, ctx) {
|
|
620
|
+
exports.currentStage = teamsfx_api_1.Stage.userTask;
|
|
621
|
+
inputs.stage = teamsfx_api_1.Stage.userTask;
|
|
622
|
+
const namespace = func.namespace;
|
|
623
|
+
const array = namespace ? namespace.split("/") : [];
|
|
624
|
+
if ("" !== namespace && array.length > 0) {
|
|
625
|
+
if (!ctx || !ctx.solutionV3 || !ctx.envInfoV3) {
|
|
626
|
+
const name = undefinedName([ctx, ctx === null || ctx === void 0 ? void 0 : ctx.solutionV3, ctx === null || ctx === void 0 ? void 0 : ctx.envInfoV3], ["ctx", "ctx.solutionV3", "ctx.envInfoV3"]);
|
|
627
|
+
return teamsfx_api_1.err(new error_1.ObjectIsUndefinedError(`executeUserTask input stuff: ${name}`));
|
|
628
|
+
}
|
|
629
|
+
if (!ctx.contextV2)
|
|
630
|
+
ctx.contextV2 = createV2Context(newProjectSettings());
|
|
631
|
+
if (ctx.solutionV3.executeUserTask) {
|
|
632
|
+
const res = await ctx.solutionV3.executeUserTask(ctx.contextV2, inputs, func, ctx.envInfoV3, this.tools.tokenProvider);
|
|
633
|
+
return res;
|
|
634
|
+
}
|
|
635
|
+
else
|
|
636
|
+
return teamsfx_api_1.err(error_1.FunctionRouterError(func));
|
|
637
|
+
}
|
|
638
|
+
return teamsfx_api_1.err(error_1.FunctionRouterError(func));
|
|
639
|
+
}
|
|
662
640
|
async getQuestions(stage, inputs, ctx) {
|
|
663
641
|
if (!ctx)
|
|
664
642
|
return teamsfx_api_1.err(new error_1.ObjectIsUndefinedError("getQuestions input stuff"));
|
|
@@ -702,7 +680,13 @@ class FxCore {
|
|
|
702
680
|
localSettings: (_b = ctx.solutionContext) === null || _b === void 0 ? void 0 : _b.localSettings,
|
|
703
681
|
});
|
|
704
682
|
}
|
|
705
|
-
async grantPermission(inputs
|
|
683
|
+
async grantPermission(inputs) {
|
|
684
|
+
if (isV3())
|
|
685
|
+
return this.grantPermissionV3(inputs);
|
|
686
|
+
else
|
|
687
|
+
return this.grantPermissionV2(inputs);
|
|
688
|
+
}
|
|
689
|
+
async grantPermissionV2(inputs, ctx) {
|
|
706
690
|
exports.currentStage = teamsfx_api_1.Stage.grantPermission;
|
|
707
691
|
inputs.stage = teamsfx_api_1.Stage.grantPermission;
|
|
708
692
|
const projectPath = inputs.projectPath;
|
|
@@ -711,7 +695,26 @@ class FxCore {
|
|
|
711
695
|
}
|
|
712
696
|
return ctx.solutionV2.grantPermission(ctx.contextV2, Object.assign(Object.assign({}, inputs), { projectPath: projectPath }), ctx.envInfoV2, this.tools.tokenProvider);
|
|
713
697
|
}
|
|
714
|
-
async
|
|
698
|
+
async grantPermissionV3(inputs, ctx) {
|
|
699
|
+
exports.currentStage = teamsfx_api_1.Stage.grantPermission;
|
|
700
|
+
inputs.stage = teamsfx_api_1.Stage.grantPermission;
|
|
701
|
+
const projectPath = inputs.projectPath;
|
|
702
|
+
if (!projectPath) {
|
|
703
|
+
return teamsfx_api_1.err(new error_1.ObjectIsUndefinedError("projectPath"));
|
|
704
|
+
}
|
|
705
|
+
if (ctx && ctx.contextV2 && ctx.envInfoV3) {
|
|
706
|
+
const res = await collaborator_1.grantPermission(ctx.contextV2, inputs, ctx.envInfoV3, exports.TOOLS.tokenProvider);
|
|
707
|
+
return res;
|
|
708
|
+
}
|
|
709
|
+
return teamsfx_api_1.err(new error_1.ObjectIsUndefinedError("ctx, contextV2, envInfoV3"));
|
|
710
|
+
}
|
|
711
|
+
async checkPermission(inputs) {
|
|
712
|
+
if (isV3())
|
|
713
|
+
return this.checkPermissionV3(inputs);
|
|
714
|
+
else
|
|
715
|
+
return this.checkPermissionV2(inputs);
|
|
716
|
+
}
|
|
717
|
+
async checkPermissionV2(inputs, ctx) {
|
|
715
718
|
exports.currentStage = teamsfx_api_1.Stage.checkPermission;
|
|
716
719
|
inputs.stage = teamsfx_api_1.Stage.checkPermission;
|
|
717
720
|
const projectPath = inputs.projectPath;
|
|
@@ -720,7 +723,26 @@ class FxCore {
|
|
|
720
723
|
}
|
|
721
724
|
return ctx.solutionV2.checkPermission(ctx.contextV2, Object.assign(Object.assign({}, inputs), { projectPath: projectPath }), ctx.envInfoV2, this.tools.tokenProvider);
|
|
722
725
|
}
|
|
723
|
-
async
|
|
726
|
+
async checkPermissionV3(inputs, ctx) {
|
|
727
|
+
exports.currentStage = teamsfx_api_1.Stage.checkPermission;
|
|
728
|
+
inputs.stage = teamsfx_api_1.Stage.checkPermission;
|
|
729
|
+
const projectPath = inputs.projectPath;
|
|
730
|
+
if (!projectPath) {
|
|
731
|
+
return teamsfx_api_1.err(new error_1.ObjectIsUndefinedError("projectPath"));
|
|
732
|
+
}
|
|
733
|
+
if (ctx && ctx.contextV2 && ctx.envInfoV3) {
|
|
734
|
+
const res = await collaborator_1.checkPermission(ctx.contextV2, inputs, ctx.envInfoV3, exports.TOOLS.tokenProvider);
|
|
735
|
+
return res;
|
|
736
|
+
}
|
|
737
|
+
return teamsfx_api_1.err(new error_1.ObjectIsUndefinedError("ctx, contextV2, envInfoV3"));
|
|
738
|
+
}
|
|
739
|
+
async listCollaborator(inputs) {
|
|
740
|
+
if (isV3())
|
|
741
|
+
return this.listCollaboratorV3(inputs);
|
|
742
|
+
else
|
|
743
|
+
return this.listCollaboratorV2(inputs);
|
|
744
|
+
}
|
|
745
|
+
async listCollaboratorV2(inputs, ctx) {
|
|
724
746
|
exports.currentStage = teamsfx_api_1.Stage.listCollaborator;
|
|
725
747
|
inputs.stage = teamsfx_api_1.Stage.listCollaborator;
|
|
726
748
|
const projectPath = inputs.projectPath;
|
|
@@ -729,14 +751,18 @@ class FxCore {
|
|
|
729
751
|
}
|
|
730
752
|
return ctx.solutionV2.listCollaborator(ctx.contextV2, Object.assign(Object.assign({}, inputs), { projectPath: projectPath }), ctx.envInfoV2, this.tools.tokenProvider);
|
|
731
753
|
}
|
|
732
|
-
async
|
|
733
|
-
exports.currentStage = teamsfx_api_1.Stage.
|
|
734
|
-
inputs.stage = teamsfx_api_1.Stage.
|
|
754
|
+
async listCollaboratorV3(inputs, ctx) {
|
|
755
|
+
exports.currentStage = teamsfx_api_1.Stage.listCollaborator;
|
|
756
|
+
inputs.stage = teamsfx_api_1.Stage.listCollaborator;
|
|
735
757
|
const projectPath = inputs.projectPath;
|
|
736
758
|
if (!projectPath) {
|
|
737
759
|
return teamsfx_api_1.err(new error_1.ObjectIsUndefinedError("projectPath"));
|
|
738
760
|
}
|
|
739
|
-
|
|
761
|
+
if (ctx && ctx.contextV2 && ctx.envInfoV3) {
|
|
762
|
+
const res = await collaborator_1.listCollaborator(ctx.contextV2, inputs, ctx.envInfoV3, exports.TOOLS.tokenProvider);
|
|
763
|
+
return res;
|
|
764
|
+
}
|
|
765
|
+
return teamsfx_api_1.err(new error_1.ObjectIsUndefinedError("ctx, contextV2, envInfoV3"));
|
|
740
766
|
}
|
|
741
767
|
async getSelectedEnv(inputs, ctx) {
|
|
742
768
|
var _a;
|
|
@@ -788,7 +814,10 @@ class FxCore {
|
|
|
788
814
|
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
789
815
|
}
|
|
790
816
|
async createEnvWithName(targetEnvName, projectSettings, inputs) {
|
|
791
|
-
|
|
817
|
+
let appName = projectSettings.appName;
|
|
818
|
+
if (targetEnvName === __1.environmentManager.getLocalEnvName()) {
|
|
819
|
+
appName = appName + "-local-debug";
|
|
820
|
+
}
|
|
792
821
|
const newEnvConfig = __1.environmentManager.newEnvConfigData(appName);
|
|
793
822
|
const writeEnvResult = await __1.environmentManager.writeEnvConfig(inputs.projectPath, newEnvConfig, targetEnvName);
|
|
794
823
|
if (writeEnvResult.isErr()) {
|
|
@@ -819,7 +848,7 @@ class FxCore {
|
|
|
819
848
|
if (!ctx.projectSettings) {
|
|
820
849
|
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
821
850
|
}
|
|
822
|
-
const envConfigs = await __1.environmentManager.
|
|
851
|
+
const envConfigs = await __1.environmentManager.listRemoteEnvConfigs(inputs.projectPath);
|
|
823
852
|
if (envConfigs.isErr()) {
|
|
824
853
|
return envConfigs;
|
|
825
854
|
}
|
|
@@ -850,57 +879,37 @@ class FxCore {
|
|
|
850
879
|
const projectSettings = newProjectSettings();
|
|
851
880
|
projectSettings.appName = appName;
|
|
852
881
|
ctx.projectSettings = projectSettings;
|
|
853
|
-
if (!inputs.solution) {
|
|
854
|
-
return teamsfx_api_1.err(error_1.InvalidInputError("solution is undefined", inputs));
|
|
855
|
-
}
|
|
856
882
|
const createEnvResult = await this.createEnvWithName(__1.environmentManager.getDefaultEnvName(), projectSettings, inputs);
|
|
857
883
|
if (createEnvResult.isErr()) {
|
|
858
884
|
return teamsfx_api_1.err(createEnvResult.error);
|
|
859
885
|
}
|
|
886
|
+
if (tools_1.isConfigUnifyEnabled()) {
|
|
887
|
+
const createLocalEnvResult = await this.createEnvWithName(__1.environmentManager.getLocalEnvName(), projectSettings, inputs);
|
|
888
|
+
if (createLocalEnvResult.isErr()) {
|
|
889
|
+
return teamsfx_api_1.err(createLocalEnvResult.error);
|
|
890
|
+
}
|
|
891
|
+
}
|
|
860
892
|
await fs.ensureDir(path.join(inputs.projectPath, `.${teamsfx_api_1.ConfigFolderName}`));
|
|
861
893
|
await fs.ensureDir(path.join(inputs.projectPath, "templates", `${teamsfx_api_1.AppPackageFolderName}`));
|
|
862
894
|
const basicFolderRes = await createBasicFolderStructure(inputs);
|
|
863
895
|
if (basicFolderRes.isErr()) {
|
|
864
896
|
return teamsfx_api_1.err(basicFolderRes.error);
|
|
865
897
|
}
|
|
866
|
-
const solution = typedi_1.Container.get(inputs.solution);
|
|
867
|
-
projectSettings.solutionSettings.name = inputs.solution;
|
|
868
898
|
const context = createV2Context(projectSettings);
|
|
869
899
|
ctx.contextV2 = context;
|
|
870
|
-
|
|
871
|
-
|
|
900
|
+
const appStudioV3 = typedi_1.Container.get(constants_2.BuiltInFeaturePluginNames.appStudio);
|
|
901
|
+
await appStudioV3.init(context, inputs);
|
|
902
|
+
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
872
903
|
}
|
|
873
904
|
async init(inputs, ctx) {
|
|
874
905
|
return this._init(inputs, ctx);
|
|
875
906
|
}
|
|
876
|
-
async
|
|
877
|
-
|
|
878
|
-
const addModuleRes = await ctx.solutionV3.addModule(ctx.contextV2, inputs, ctx.localSettings);
|
|
879
|
-
if (addModuleRes.isErr()) {
|
|
880
|
-
return teamsfx_api_1.err(addModuleRes.error);
|
|
881
|
-
}
|
|
882
|
-
ctx.localSettings = addModuleRes.value; // return back local settings
|
|
883
|
-
}
|
|
884
|
-
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
885
|
-
}
|
|
886
|
-
async addModule(inputs, ctx) {
|
|
887
|
-
return this._addModule(inputs, ctx);
|
|
888
|
-
}
|
|
889
|
-
async scaffold(inputs, ctx) {
|
|
890
|
-
return this._scaffold(inputs, ctx);
|
|
907
|
+
async addFeature(inputs, ctx) {
|
|
908
|
+
return this._addFeature(inputs, ctx);
|
|
891
909
|
}
|
|
892
|
-
async
|
|
893
|
-
if (ctx && ctx.solutionV3 && ctx.contextV2) {
|
|
894
|
-
return await ctx.solutionV3.
|
|
895
|
-
}
|
|
896
|
-
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
897
|
-
}
|
|
898
|
-
async addResource(inputs, ctx) {
|
|
899
|
-
return this._addResource(inputs, ctx);
|
|
900
|
-
}
|
|
901
|
-
async _addResource(inputs, ctx) {
|
|
902
|
-
if (ctx && ctx.solutionV3 && ctx.contextV2) {
|
|
903
|
-
return await ctx.solutionV3.addResource(ctx.contextV2, inputs);
|
|
910
|
+
async _addFeature(inputs, ctx) {
|
|
911
|
+
if (ctx && ctx.solutionV3 && ctx.contextV2 && ctx.solutionV3.addFeature) {
|
|
912
|
+
return await ctx.solutionV3.addFeature(ctx.contextV2, inputs);
|
|
904
913
|
}
|
|
905
914
|
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
906
915
|
}
|
|
@@ -919,14 +928,7 @@ tslib_1.__decorate([
|
|
|
919
928
|
tslib_1.__metadata("design:returntype", Promise)
|
|
920
929
|
], FxCore.prototype, "createProjectV2", null);
|
|
921
930
|
tslib_1.__decorate([
|
|
922
|
-
hooks_1.hooks([
|
|
923
|
-
errorHandler_1.ErrorHandlerMW,
|
|
924
|
-
supportV1ConditionHandler_1.SupportV1ConditionMW(true),
|
|
925
|
-
questionModel_1.QuestionModelMW,
|
|
926
|
-
contextInjector_1.ContextInjectorMW,
|
|
927
|
-
projectSettingsWriter_1.ProjectSettingsWriterMW,
|
|
928
|
-
envInfoWriterV3_1.EnvInfoWriterMW_V3(true),
|
|
929
|
-
]),
|
|
931
|
+
hooks_1.hooks([errorHandler_1.ErrorHandlerMW, supportV1ConditionHandler_1.SupportV1ConditionMW(true), questionModel_1.QuestionModelMW, contextInjector_1.ContextInjectorMW]),
|
|
930
932
|
tslib_1.__metadata("design:type", Function),
|
|
931
933
|
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
932
934
|
tslib_1.__metadata("design:returntype", Promise)
|
|
@@ -969,7 +971,7 @@ tslib_1.__decorate([
|
|
|
969
971
|
concurrentLocker_1.ConcurrentLockerMW,
|
|
970
972
|
supportV1ConditionHandler_1.SupportV1ConditionMW(false),
|
|
971
973
|
projectMigrator_1.ProjectMigratorMW,
|
|
972
|
-
|
|
974
|
+
projectSettingsLoader_1.ProjectSettingsLoaderMW,
|
|
973
975
|
envInfoLoaderV3_1.EnvInfoLoaderMW_V3(false),
|
|
974
976
|
solutionLoaderV3_1.SolutionLoaderMW_V3,
|
|
975
977
|
questionModel_1.QuestionModelMW,
|
|
@@ -1005,7 +1007,7 @@ tslib_1.__decorate([
|
|
|
1005
1007
|
concurrentLocker_1.ConcurrentLockerMW,
|
|
1006
1008
|
supportV1ConditionHandler_1.SupportV1ConditionMW(false),
|
|
1007
1009
|
projectMigrator_1.ProjectMigratorMW,
|
|
1008
|
-
|
|
1010
|
+
projectSettingsLoader_1.ProjectSettingsLoaderMW,
|
|
1009
1011
|
envInfoLoaderV3_1.EnvInfoLoaderMW_V3(false),
|
|
1010
1012
|
solutionLoaderV3_1.SolutionLoaderMW_V3,
|
|
1011
1013
|
questionModel_1.QuestionModelMW,
|
|
@@ -1024,13 +1026,13 @@ tslib_1.__decorate([
|
|
|
1024
1026
|
supportV1ConditionHandler_1.SupportV1ConditionMW(true),
|
|
1025
1027
|
projectMigrator_1.ProjectMigratorMW,
|
|
1026
1028
|
projectSettingsLoader_1.ProjectSettingsLoaderMW,
|
|
1027
|
-
envInfoLoader_1.EnvInfoLoaderMW(
|
|
1029
|
+
envInfoLoader_1.EnvInfoLoaderMW(!tools_1.isConfigUnifyEnabled()),
|
|
1028
1030
|
localSettingsLoader_1.LocalSettingsLoaderMW,
|
|
1029
1031
|
solutionLoader_1.SolutionLoaderMW,
|
|
1030
1032
|
questionModel_1.QuestionModelMW,
|
|
1031
1033
|
contextInjector_1.ContextInjectorMW,
|
|
1032
1034
|
projectSettingsWriter_1.ProjectSettingsWriterMW,
|
|
1033
|
-
envInfoWriter_1.EnvInfoWriterMW(
|
|
1035
|
+
envInfoWriter_1.EnvInfoWriterMW(!tools_1.isConfigUnifyEnabled()),
|
|
1034
1036
|
localSettingsWriter_1.LocalSettingsWriterMW,
|
|
1035
1037
|
]),
|
|
1036
1038
|
tslib_1.__metadata("design:type", Function),
|
|
@@ -1043,7 +1045,7 @@ tslib_1.__decorate([
|
|
|
1043
1045
|
concurrentLocker_1.ConcurrentLockerMW,
|
|
1044
1046
|
supportV1ConditionHandler_1.SupportV1ConditionMW(true),
|
|
1045
1047
|
projectMigrator_1.ProjectMigratorMW,
|
|
1046
|
-
|
|
1048
|
+
projectSettingsLoader_1.ProjectSettingsLoaderMW,
|
|
1047
1049
|
localSettingsLoader_1.LocalSettingsLoaderMW,
|
|
1048
1050
|
solutionLoaderV3_1.SolutionLoaderMW_V3,
|
|
1049
1051
|
questionModel_1.QuestionModelMW,
|
|
@@ -1109,7 +1111,26 @@ tslib_1.__decorate([
|
|
|
1109
1111
|
tslib_1.__metadata("design:type", Function),
|
|
1110
1112
|
tslib_1.__metadata("design:paramtypes", [Object, Object, Object]),
|
|
1111
1113
|
tslib_1.__metadata("design:returntype", Promise)
|
|
1112
|
-
], FxCore.prototype, "
|
|
1114
|
+
], FxCore.prototype, "executeUserTaskV2", null);
|
|
1115
|
+
tslib_1.__decorate([
|
|
1116
|
+
hooks_1.hooks([
|
|
1117
|
+
errorHandler_1.ErrorHandlerMW,
|
|
1118
|
+
concurrentLocker_1.ConcurrentLockerMW,
|
|
1119
|
+
supportV1ConditionHandler_1.SupportV1ConditionMW(false),
|
|
1120
|
+
projectMigrator_1.ProjectMigratorMW,
|
|
1121
|
+
projectSettingsLoader_1.ProjectSettingsLoaderMW,
|
|
1122
|
+
envInfoLoaderV3_1.EnvInfoLoaderMW_V3(false),
|
|
1123
|
+
localSettingsLoader_1.LocalSettingsLoaderMW,
|
|
1124
|
+
solutionLoaderV3_1.SolutionLoaderMW_V3,
|
|
1125
|
+
questionModel_1.QuestionModelMW,
|
|
1126
|
+
contextInjector_1.ContextInjectorMW,
|
|
1127
|
+
projectSettingsWriter_1.ProjectSettingsWriterMW,
|
|
1128
|
+
envInfoWriter_1.EnvInfoWriterMW(),
|
|
1129
|
+
]),
|
|
1130
|
+
tslib_1.__metadata("design:type", Function),
|
|
1131
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object, Object]),
|
|
1132
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
1133
|
+
], FxCore.prototype, "executeUserTaskV3", null);
|
|
1113
1134
|
tslib_1.__decorate([
|
|
1114
1135
|
hooks_1.hooks([
|
|
1115
1136
|
errorHandler_1.ErrorHandlerMW,
|
|
@@ -1170,7 +1191,22 @@ tslib_1.__decorate([
|
|
|
1170
1191
|
tslib_1.__metadata("design:type", Function),
|
|
1171
1192
|
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
1172
1193
|
tslib_1.__metadata("design:returntype", Promise)
|
|
1173
|
-
], FxCore.prototype, "
|
|
1194
|
+
], FxCore.prototype, "grantPermissionV2", null);
|
|
1195
|
+
tslib_1.__decorate([
|
|
1196
|
+
hooks_1.hooks([
|
|
1197
|
+
errorHandler_1.ErrorHandlerMW,
|
|
1198
|
+
concurrentLocker_1.ConcurrentLockerMW,
|
|
1199
|
+
supportV1ConditionHandler_1.SupportV1ConditionMW(false),
|
|
1200
|
+
projectMigrator_1.ProjectMigratorMW,
|
|
1201
|
+
projectSettingsLoader_1.ProjectSettingsLoaderMW,
|
|
1202
|
+
envInfoLoaderV3_1.EnvInfoLoaderMW_V3(false),
|
|
1203
|
+
questionModel_1.QuestionModelMW,
|
|
1204
|
+
contextInjector_1.ContextInjectorMW,
|
|
1205
|
+
]),
|
|
1206
|
+
tslib_1.__metadata("design:type", Function),
|
|
1207
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
1208
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
1209
|
+
], FxCore.prototype, "grantPermissionV3", null);
|
|
1174
1210
|
tslib_1.__decorate([
|
|
1175
1211
|
hooks_1.hooks([
|
|
1176
1212
|
errorHandler_1.ErrorHandlerMW,
|
|
@@ -1186,7 +1222,21 @@ tslib_1.__decorate([
|
|
|
1186
1222
|
tslib_1.__metadata("design:type", Function),
|
|
1187
1223
|
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
1188
1224
|
tslib_1.__metadata("design:returntype", Promise)
|
|
1189
|
-
], FxCore.prototype, "
|
|
1225
|
+
], FxCore.prototype, "checkPermissionV2", null);
|
|
1226
|
+
tslib_1.__decorate([
|
|
1227
|
+
hooks_1.hooks([
|
|
1228
|
+
errorHandler_1.ErrorHandlerMW,
|
|
1229
|
+
concurrentLocker_1.ConcurrentLockerMW,
|
|
1230
|
+
supportV1ConditionHandler_1.SupportV1ConditionMW(false),
|
|
1231
|
+
projectMigrator_1.ProjectMigratorMW,
|
|
1232
|
+
projectSettingsLoader_1.ProjectSettingsLoaderMW,
|
|
1233
|
+
envInfoLoaderV3_1.EnvInfoLoaderMW_V3(false),
|
|
1234
|
+
contextInjector_1.ContextInjectorMW,
|
|
1235
|
+
]),
|
|
1236
|
+
tslib_1.__metadata("design:type", Function),
|
|
1237
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
1238
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
1239
|
+
], FxCore.prototype, "checkPermissionV3", null);
|
|
1190
1240
|
tslib_1.__decorate([
|
|
1191
1241
|
hooks_1.hooks([
|
|
1192
1242
|
errorHandler_1.ErrorHandlerMW,
|
|
@@ -1202,22 +1252,21 @@ tslib_1.__decorate([
|
|
|
1202
1252
|
tslib_1.__metadata("design:type", Function),
|
|
1203
1253
|
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
1204
1254
|
tslib_1.__metadata("design:returntype", Promise)
|
|
1205
|
-
], FxCore.prototype, "
|
|
1255
|
+
], FxCore.prototype, "listCollaboratorV2", null);
|
|
1206
1256
|
tslib_1.__decorate([
|
|
1207
1257
|
hooks_1.hooks([
|
|
1208
1258
|
errorHandler_1.ErrorHandlerMW,
|
|
1209
1259
|
concurrentLocker_1.ConcurrentLockerMW,
|
|
1210
1260
|
supportV1ConditionHandler_1.SupportV1ConditionMW(true),
|
|
1261
|
+
projectMigrator_1.ProjectMigratorMW,
|
|
1211
1262
|
projectSettingsLoader_1.ProjectSettingsLoaderMW,
|
|
1212
|
-
|
|
1213
|
-
solutionLoader_1.SolutionLoaderMW,
|
|
1214
|
-
questionModel_1.QuestionModelMW,
|
|
1263
|
+
envInfoLoaderV3_1.EnvInfoLoaderMW_V3(false),
|
|
1215
1264
|
contextInjector_1.ContextInjectorMW,
|
|
1216
1265
|
]),
|
|
1217
1266
|
tslib_1.__metadata("design:type", Function),
|
|
1218
1267
|
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
1219
1268
|
tslib_1.__metadata("design:returntype", Promise)
|
|
1220
|
-
], FxCore.prototype, "
|
|
1269
|
+
], FxCore.prototype, "listCollaboratorV3", null);
|
|
1221
1270
|
tslib_1.__decorate([
|
|
1222
1271
|
hooks_1.hooks([
|
|
1223
1272
|
errorHandler_1.ErrorHandlerMW,
|
|
@@ -1285,32 +1334,10 @@ tslib_1.__decorate([
|
|
|
1285
1334
|
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
1286
1335
|
tslib_1.__metadata("design:returntype", Promise)
|
|
1287
1336
|
], FxCore.prototype, "activateEnv", null);
|
|
1288
|
-
tslib_1.__decorate([
|
|
1289
|
-
hooks_1.hooks([errorHandler_1.ErrorHandlerMW, questionModel_1.QuestionModelMW, contextInjector_1.ContextInjectorMW, projectSettingsWriter_1.ProjectSettingsWriterMW]),
|
|
1290
|
-
tslib_1.__metadata("design:type", Function),
|
|
1291
|
-
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
1292
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
1293
|
-
], FxCore.prototype, "init", null);
|
|
1294
1337
|
tslib_1.__decorate([
|
|
1295
1338
|
hooks_1.hooks([
|
|
1296
1339
|
errorHandler_1.ErrorHandlerMW,
|
|
1297
|
-
|
|
1298
|
-
localSettingsLoader_1.LocalSettingsLoaderMW,
|
|
1299
|
-
solutionLoaderV3_1.SolutionLoaderMW_V3,
|
|
1300
|
-
questionModel_1.QuestionModelMW,
|
|
1301
|
-
contextInjector_1.ContextInjectorMW,
|
|
1302
|
-
projectSettingsWriter_1.ProjectSettingsWriterMW,
|
|
1303
|
-
localSettingsWriter_1.LocalSettingsWriterMW,
|
|
1304
|
-
]),
|
|
1305
|
-
tslib_1.__metadata("design:type", Function),
|
|
1306
|
-
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
1307
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
1308
|
-
], FxCore.prototype, "addModule", null);
|
|
1309
|
-
tslib_1.__decorate([
|
|
1310
|
-
hooks_1.hooks([
|
|
1311
|
-
errorHandler_1.ErrorHandlerMW,
|
|
1312
|
-
projectSettingsLoaderV3_1.ProjectSettingsLoaderMW_V3,
|
|
1313
|
-
solutionLoaderV3_1.SolutionLoaderMW_V3,
|
|
1340
|
+
concurrentLocker_1.ConcurrentLockerMW,
|
|
1314
1341
|
questionModel_1.QuestionModelMW,
|
|
1315
1342
|
contextInjector_1.ContextInjectorMW,
|
|
1316
1343
|
projectSettingsWriter_1.ProjectSettingsWriterMW,
|
|
@@ -1318,12 +1345,14 @@ tslib_1.__decorate([
|
|
|
1318
1345
|
tslib_1.__metadata("design:type", Function),
|
|
1319
1346
|
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
1320
1347
|
tslib_1.__metadata("design:returntype", Promise)
|
|
1321
|
-
], FxCore.prototype, "
|
|
1348
|
+
], FxCore.prototype, "init", null);
|
|
1322
1349
|
tslib_1.__decorate([
|
|
1323
1350
|
hooks_1.hooks([
|
|
1324
1351
|
errorHandler_1.ErrorHandlerMW,
|
|
1325
|
-
|
|
1352
|
+
concurrentLocker_1.ConcurrentLockerMW,
|
|
1353
|
+
projectSettingsLoader_1.ProjectSettingsLoaderMW,
|
|
1326
1354
|
solutionLoaderV3_1.SolutionLoaderMW_V3,
|
|
1355
|
+
envInfoLoaderV3_1.EnvInfoLoaderMW_V3(false),
|
|
1327
1356
|
questionModel_1.QuestionModelMW,
|
|
1328
1357
|
contextInjector_1.ContextInjectorMW,
|
|
1329
1358
|
projectSettingsWriter_1.ProjectSettingsWriterMW,
|
|
@@ -1331,7 +1360,7 @@ tslib_1.__decorate([
|
|
|
1331
1360
|
tslib_1.__metadata("design:type", Function),
|
|
1332
1361
|
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
1333
1362
|
tslib_1.__metadata("design:returntype", Promise)
|
|
1334
|
-
], FxCore.prototype, "
|
|
1363
|
+
], FxCore.prototype, "addFeature", null);
|
|
1335
1364
|
exports.FxCore = FxCore;
|
|
1336
1365
|
async function createBasicFolderStructure(inputs) {
|
|
1337
1366
|
if (!inputs.projectPath) {
|
|
@@ -1377,9 +1406,6 @@ function newProjectSettings() {
|
|
|
1377
1406
|
appName: "",
|
|
1378
1407
|
projectId: uuid.v4(),
|
|
1379
1408
|
version: getProjectSettingsVersion(),
|
|
1380
|
-
solutionSettings: {
|
|
1381
|
-
name: "",
|
|
1382
|
-
},
|
|
1383
1409
|
};
|
|
1384
1410
|
return projectSettings;
|
|
1385
1411
|
}
|