@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
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.NodeJSBotPluginV3 = void 0;
|
|
6
|
+
const tslib_1 = require("tslib");
|
|
7
|
+
const hooks_1 = require("@feathersjs/hooks");
|
|
8
|
+
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
9
|
+
const path = tslib_1.__importStar(require("path"));
|
|
10
|
+
const typedi_1 = require("typedi");
|
|
11
|
+
const constants_1 = require("../../../../common/constants");
|
|
12
|
+
const tools_1 = require("../../../../common/tools");
|
|
13
|
+
const CommonErrorHandlerMW_1 = require("../../../../core/middleware/CommonErrorHandlerMW");
|
|
14
|
+
const folder_1 = require("../../../../folder");
|
|
15
|
+
const question_1 = require("../../../solution/fx-solution/question");
|
|
16
|
+
const constants_2 = require("../../../solution/fx-solution/v3/constants");
|
|
17
|
+
const constants_3 = require("../constants");
|
|
18
|
+
const languageStrategy_1 = require("../languageStrategy");
|
|
19
|
+
const progressBars_1 = require("../progressBars");
|
|
20
|
+
const messages_1 = require("../resources/messages");
|
|
21
|
+
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
22
|
+
const strings_1 = require("../resources/strings");
|
|
23
|
+
const factory = tslib_1.__importStar(require("../clientFactory"));
|
|
24
|
+
const resourceNameFactory_1 = require("../utils/resourceNameFactory");
|
|
25
|
+
const aadRegistration_1 = require("../aadRegistration");
|
|
26
|
+
const appStudio_1 = require("../appStudio/appStudio");
|
|
27
|
+
const deployMgr_1 = require("../deployMgr");
|
|
28
|
+
const utils = tslib_1.__importStar(require("../utils/common"));
|
|
29
|
+
const appService = tslib_1.__importStar(require("@azure/arm-appservice"));
|
|
30
|
+
const azureOps_1 = require("../azureOps");
|
|
31
|
+
const zipDeploy_1 = require("../utils/zipDeploy");
|
|
32
|
+
const templatesActions_1 = require("../../../../common/template-utils/templatesActions");
|
|
33
|
+
const programmingLanguage_1 = require("../enums/programmingLanguage");
|
|
34
|
+
const error_1 = require("./error");
|
|
35
|
+
const solutionSettingsHelper_1 = require("../../../solution/fx-solution/utils/solutionSettingsHelper");
|
|
36
|
+
let NodeJSBotPluginV3 = class NodeJSBotPluginV3 {
|
|
37
|
+
constructor() {
|
|
38
|
+
this.name = constants_2.BuiltInFeaturePluginNames.bot;
|
|
39
|
+
this.displayName = "NodeJS Bot";
|
|
40
|
+
}
|
|
41
|
+
async pluginDependencies(ctx, inputs) {
|
|
42
|
+
return teamsfx_api_1.ok([constants_2.BuiltInFeaturePluginNames.identity]);
|
|
43
|
+
}
|
|
44
|
+
getProgrammingLanguage(ctx) {
|
|
45
|
+
const rawProgrammingLanguage = ctx.projectSetting.programmingLanguage;
|
|
46
|
+
if (rawProgrammingLanguage &&
|
|
47
|
+
utils.existsInEnumValues(rawProgrammingLanguage, programmingLanguage_1.ProgrammingLanguage)) {
|
|
48
|
+
return rawProgrammingLanguage;
|
|
49
|
+
}
|
|
50
|
+
return programmingLanguage_1.ProgrammingLanguage.JavaScript;
|
|
51
|
+
}
|
|
52
|
+
getLangKey(ctx) {
|
|
53
|
+
const rawProgrammingLanguage = ctx.projectSetting.programmingLanguage;
|
|
54
|
+
if (rawProgrammingLanguage &&
|
|
55
|
+
utils.existsInEnumValues(rawProgrammingLanguage, programmingLanguage_1.ProgrammingLanguage)) {
|
|
56
|
+
const programmingLanguage = rawProgrammingLanguage;
|
|
57
|
+
return utils.convertToLangKey(programmingLanguage);
|
|
58
|
+
}
|
|
59
|
+
return "js";
|
|
60
|
+
}
|
|
61
|
+
async scaffold(ctx, inputs) {
|
|
62
|
+
ctx.logProvider.info(messages_1.Messages.ScaffoldingBot);
|
|
63
|
+
const handler = await progressBars_1.ProgressBarFactory.newProgressBar(constants_3.ProgressBarConstants.SCAFFOLD_TITLE, constants_3.ProgressBarConstants.SCAFFOLD_STEPS_NUM, ctx);
|
|
64
|
+
await (handler === null || handler === void 0 ? void 0 : handler.start(constants_3.ProgressBarConstants.SCAFFOLD_STEP_START));
|
|
65
|
+
const group_name = constants_3.TemplateProjectsConstants.GROUP_NAME_BOT_MSGEXT;
|
|
66
|
+
const lang = this.getLangKey(ctx);
|
|
67
|
+
const workingDir = path.join(inputs.projectPath, strings_1.CommonStrings.BOT_WORKING_DIR_NAME);
|
|
68
|
+
await (handler === null || handler === void 0 ? void 0 : handler.next(constants_3.ProgressBarConstants.SCAFFOLD_STEP_FETCH_ZIP));
|
|
69
|
+
await templatesActions_1.scaffoldFromTemplates({
|
|
70
|
+
group: group_name,
|
|
71
|
+
lang: lang,
|
|
72
|
+
scenario: constants_3.TemplateProjectsConstants.DEFAULT_SCENARIO_NAME,
|
|
73
|
+
templatesFolderName: constants_3.TemplateProjectsConstants.TEMPLATE_FOLDER_NAME,
|
|
74
|
+
dst: workingDir,
|
|
75
|
+
onActionEnd: async (action, context) => {
|
|
76
|
+
var _a;
|
|
77
|
+
if (action.name === templatesActions_1.ScaffoldActionName.FetchTemplatesUrlWithTag) {
|
|
78
|
+
ctx.logProvider.info(messages_1.Messages.SuccessfullyRetrievedTemplateZip((_a = context.zipUrl) !== null && _a !== void 0 ? _a : ""));
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
onActionError: async (action, context, error) => {
|
|
82
|
+
ctx.logProvider.info(error.toString());
|
|
83
|
+
switch (action.name) {
|
|
84
|
+
case templatesActions_1.ScaffoldActionName.FetchTemplatesUrlWithTag:
|
|
85
|
+
case templatesActions_1.ScaffoldActionName.FetchTemplatesZipFromUrl:
|
|
86
|
+
ctx.logProvider.info(messages_1.Messages.FallingBackToUseLocalTemplateZip);
|
|
87
|
+
break;
|
|
88
|
+
case templatesActions_1.ScaffoldActionName.FetchTemplateZipFromLocal:
|
|
89
|
+
throw new error_1.TemplateZipFallbackError();
|
|
90
|
+
case templatesActions_1.ScaffoldActionName.Unzip:
|
|
91
|
+
throw new error_1.UnzipError(context.dst);
|
|
92
|
+
default:
|
|
93
|
+
throw new Error(error.message);
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
});
|
|
97
|
+
ctx.logProvider.info(messages_1.Messages.SuccessfullyScaffoldedBot);
|
|
98
|
+
handler === null || handler === void 0 ? void 0 : handler.end(true);
|
|
99
|
+
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
100
|
+
}
|
|
101
|
+
async generateResourceTemplate(ctx, inputs) {
|
|
102
|
+
const pluginCtx = { plugins: inputs.allPluginsAfterAdd };
|
|
103
|
+
const bicepTemplateDir = path.join(folder_1.getTemplatesFolder(), constants_3.PathInfo.BicepTemplateRelativeDir);
|
|
104
|
+
const provisionOrchestration = await tools_1.generateBicepFromFile(path.join(bicepTemplateDir, constants_1.Bicep.ProvisionFileName), pluginCtx);
|
|
105
|
+
const provisionModules = await tools_1.generateBicepFromFile(path.join(bicepTemplateDir, constants_3.PathInfo.ProvisionModuleTemplateFileName), pluginCtx);
|
|
106
|
+
const configOrchestration = await tools_1.generateBicepFromFile(path.join(bicepTemplateDir, constants_1.Bicep.ConfigFileName), pluginCtx);
|
|
107
|
+
const configModule = await tools_1.generateBicepFromFile(path.join(bicepTemplateDir, constants_3.PathInfo.ConfigurationModuleTemplateFileName), pluginCtx);
|
|
108
|
+
const result = {
|
|
109
|
+
Provision: {
|
|
110
|
+
Orchestration: provisionOrchestration,
|
|
111
|
+
Modules: { bot: provisionModules },
|
|
112
|
+
},
|
|
113
|
+
Configuration: {
|
|
114
|
+
Orchestration: configOrchestration,
|
|
115
|
+
Modules: { bot: configModule },
|
|
116
|
+
},
|
|
117
|
+
Reference: {
|
|
118
|
+
resourceId: constants_3.BotBicep.resourceId,
|
|
119
|
+
hostName: constants_3.BotBicep.hostName,
|
|
120
|
+
webAppEndpoint: constants_3.BotBicep.webAppEndpoint,
|
|
121
|
+
},
|
|
122
|
+
Parameters: JSON.parse(await fs_extra_1.default.readFile(path.join(bicepTemplateDir, constants_1.Bicep.ParameterFileName), constants_1.ConstantString.UTF8Encoding)),
|
|
123
|
+
};
|
|
124
|
+
return teamsfx_api_1.ok([{ kind: "bicep", template: result }]);
|
|
125
|
+
}
|
|
126
|
+
async addFeature(ctx, inputs) {
|
|
127
|
+
solutionSettingsHelper_1.ensureSolutionSettings(ctx.projectSetting);
|
|
128
|
+
const solutionSettings = ctx.projectSetting.solutionSettings;
|
|
129
|
+
const capabilities = solutionSettings.capabilities;
|
|
130
|
+
const newCapabilitySet = new Set();
|
|
131
|
+
capabilities.forEach((c) => newCapabilitySet.add(c));
|
|
132
|
+
const activeResourcePlugins = solutionSettings.activeResourcePlugins;
|
|
133
|
+
let templates = [];
|
|
134
|
+
if (!activeResourcePlugins.includes(this.name)) {
|
|
135
|
+
// bot plugin is added for first time, scaffold and generate resource template
|
|
136
|
+
const scaffoldRes = await this.scaffold(ctx, inputs);
|
|
137
|
+
if (scaffoldRes.isErr())
|
|
138
|
+
return teamsfx_api_1.err(scaffoldRes.error);
|
|
139
|
+
const armRes = await this.generateResourceTemplate(ctx, inputs);
|
|
140
|
+
if (armRes.isErr())
|
|
141
|
+
return teamsfx_api_1.err(armRes.error);
|
|
142
|
+
templates = armRes.value;
|
|
143
|
+
}
|
|
144
|
+
const capabilitiesToAddManifest = [];
|
|
145
|
+
const capabilitiesAnswer = inputs[question_1.AzureSolutionQuestionNames.Capabilities];
|
|
146
|
+
if (capabilitiesAnswer.includes(question_1.BotOptionItem.id)) {
|
|
147
|
+
capabilitiesToAddManifest.push({ name: "Bot" });
|
|
148
|
+
newCapabilitySet.add(question_1.BotOptionItem.id);
|
|
149
|
+
}
|
|
150
|
+
if (capabilitiesAnswer.includes(question_1.MessageExtensionItem.id)) {
|
|
151
|
+
capabilitiesToAddManifest.push({ name: "MessageExtension" });
|
|
152
|
+
newCapabilitySet.add(question_1.MessageExtensionItem.id);
|
|
153
|
+
}
|
|
154
|
+
const update = await ctx.appManifestProvider.addCapabilities(ctx, inputs, capabilitiesToAddManifest);
|
|
155
|
+
if (update.isErr())
|
|
156
|
+
return teamsfx_api_1.err(update.error);
|
|
157
|
+
solutionSettings.capabilities = Array.from(newCapabilitySet);
|
|
158
|
+
if (!activeResourcePlugins.includes(this.name))
|
|
159
|
+
activeResourcePlugins.push(this.name);
|
|
160
|
+
return teamsfx_api_1.ok(templates);
|
|
161
|
+
}
|
|
162
|
+
async afterOtherFeaturesAdded(ctx, inputs) {
|
|
163
|
+
const pluginCtx = { plugins: inputs.allPluginsAfterAdd };
|
|
164
|
+
const bicepTemplateDir = path.join(folder_1.getTemplatesFolder(), constants_3.PathInfo.BicepTemplateRelativeDir);
|
|
165
|
+
const configModule = await tools_1.generateBicepFromFile(path.join(bicepTemplateDir, constants_3.PathInfo.ConfigurationModuleTemplateFileName), pluginCtx);
|
|
166
|
+
const result = {
|
|
167
|
+
Reference: {
|
|
168
|
+
resourceId: constants_3.BotBicep.resourceId,
|
|
169
|
+
hostName: constants_3.BotBicep.hostName,
|
|
170
|
+
webAppEndpoint: constants_3.BotBicep.webAppEndpoint,
|
|
171
|
+
},
|
|
172
|
+
Configuration: {
|
|
173
|
+
Modules: { bot: configModule },
|
|
174
|
+
},
|
|
175
|
+
};
|
|
176
|
+
return teamsfx_api_1.ok([{ kind: "bicep", template: result }]);
|
|
177
|
+
}
|
|
178
|
+
async getAzureAccountCredential(tokenProvider) {
|
|
179
|
+
const serviceClientCredentials = await tokenProvider.getAccountCredentialAsync();
|
|
180
|
+
if (!serviceClientCredentials) {
|
|
181
|
+
throw new error_1.PreconditionError(messages_1.Messages.FailToGetAzureCreds, [messages_1.Messages.TryLoginAzure]);
|
|
182
|
+
}
|
|
183
|
+
return serviceClientCredentials;
|
|
184
|
+
}
|
|
185
|
+
async createOrGetBotAppRegistration(ctx, envInfo, tokenProvider) {
|
|
186
|
+
const token = await tokenProvider.graphTokenProvider.getAccessToken();
|
|
187
|
+
error_1.CheckThrowSomethingMissing(strings_1.ConfigNames.GRAPH_TOKEN, token);
|
|
188
|
+
error_1.CheckThrowSomethingMissing(strings_1.CommonStrings.SHORT_APP_NAME, ctx.projectSetting.appName);
|
|
189
|
+
let botConfig = envInfo.state[this.name];
|
|
190
|
+
if (!botConfig)
|
|
191
|
+
botConfig = {};
|
|
192
|
+
botConfig = botConfig;
|
|
193
|
+
const botAADCreated = (botConfig === null || botConfig === void 0 ? void 0 : botConfig.botId) !== undefined && (botConfig === null || botConfig === void 0 ? void 0 : botConfig.botPassword) !== undefined;
|
|
194
|
+
if (!botAADCreated) {
|
|
195
|
+
const solutionConfig = envInfo === null || envInfo === void 0 ? void 0 : envInfo.state.solution;
|
|
196
|
+
const resourceNameSuffix = solutionConfig.resourceNameSuffix
|
|
197
|
+
? solutionConfig.resourceNameSuffix
|
|
198
|
+
: utils.genUUID();
|
|
199
|
+
const aadDisplayName = resourceNameFactory_1.ResourceNameFactory.createCommonName(resourceNameSuffix, ctx.projectSetting.appName, constants_3.MaxLengths.AAD_DISPLAY_NAME);
|
|
200
|
+
const botAuthCreds = await aadRegistration_1.AADRegistration.registerAADAppAndGetSecretByGraph(token, aadDisplayName, botConfig.objectId, botConfig.botId);
|
|
201
|
+
botConfig.botId = botAuthCreds.clientId;
|
|
202
|
+
botConfig.botPassword = botAuthCreds.clientSecret;
|
|
203
|
+
botConfig.objectId = botAuthCreds.objectId;
|
|
204
|
+
ctx.logProvider.info(messages_1.Messages.SuccessfullyCreatedBotAadApp);
|
|
205
|
+
}
|
|
206
|
+
if (envInfo.envName === "local") {
|
|
207
|
+
// 2. Register bot by app studio.
|
|
208
|
+
const botReg = {
|
|
209
|
+
botId: botConfig.botId,
|
|
210
|
+
name: ctx.projectSetting.appName + strings_1.PluginLocalDebug.LOCAL_DEBUG_SUFFIX,
|
|
211
|
+
description: "",
|
|
212
|
+
iconUrl: "",
|
|
213
|
+
messagingEndpoint: "",
|
|
214
|
+
callingEndpoint: "",
|
|
215
|
+
};
|
|
216
|
+
ctx.logProvider.info(messages_1.Messages.ProvisioningBotRegistration);
|
|
217
|
+
const appStudioToken = await tokenProvider.appStudioToken.getAccessToken();
|
|
218
|
+
error_1.CheckThrowSomethingMissing(strings_1.ConfigNames.APPSTUDIO_TOKEN, appStudioToken);
|
|
219
|
+
await appStudio_1.AppStudio.createBotRegistration(appStudioToken, botReg);
|
|
220
|
+
ctx.logProvider.info(messages_1.Messages.SuccessfullyProvisionedBotRegistration);
|
|
221
|
+
}
|
|
222
|
+
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
223
|
+
}
|
|
224
|
+
async provisionResource(ctx, inputs, envInfo, tokenProvider) {
|
|
225
|
+
const botState = envInfo.state[this.name];
|
|
226
|
+
if (!botState.secretFields)
|
|
227
|
+
botState.secretFields = ["botPassword"];
|
|
228
|
+
if (envInfo.envName === "local") {
|
|
229
|
+
const handler = await progressBars_1.ProgressBarFactory.newProgressBar(constants_3.ProgressBarConstants.LOCAL_DEBUG_TITLE, constants_3.ProgressBarConstants.LOCAL_DEBUG_STEPS_NUM, ctx);
|
|
230
|
+
await (handler === null || handler === void 0 ? void 0 : handler.start(constants_3.ProgressBarConstants.LOCAL_DEBUG_STEP_START));
|
|
231
|
+
await (handler === null || handler === void 0 ? void 0 : handler.next(constants_3.ProgressBarConstants.LOCAL_DEBUG_STEP_BOT_REG));
|
|
232
|
+
await this.createOrGetBotAppRegistration(ctx, envInfo, tokenProvider);
|
|
233
|
+
}
|
|
234
|
+
else {
|
|
235
|
+
ctx.logProvider.info(messages_1.Messages.ProvisioningBot);
|
|
236
|
+
// Create and register progress bar for cleanup.
|
|
237
|
+
const handler = await progressBars_1.ProgressBarFactory.newProgressBar(constants_3.ProgressBarConstants.PROVISION_TITLE, 1, ctx);
|
|
238
|
+
await (handler === null || handler === void 0 ? void 0 : handler.start(constants_3.ProgressBarConstants.PROVISION_STEP_START));
|
|
239
|
+
// 0. Check Resource Provider
|
|
240
|
+
const azureCredential = await this.getAzureAccountCredential(tokenProvider.azureAccountProvider);
|
|
241
|
+
const solutionConfig = envInfo.state.solution;
|
|
242
|
+
const rpClient = factory.createResourceProviderClient(azureCredential, solutionConfig.subscriptionId);
|
|
243
|
+
await factory.ensureResourceProvider(rpClient, constants_3.AzureConstants.requiredResourceProviders);
|
|
244
|
+
// 1. Do bot registration.
|
|
245
|
+
await (handler === null || handler === void 0 ? void 0 : handler.next(constants_3.ProgressBarConstants.PROVISION_STEP_BOT_REG));
|
|
246
|
+
await this.createOrGetBotAppRegistration(ctx, envInfo, tokenProvider);
|
|
247
|
+
await (handler === null || handler === void 0 ? void 0 : handler.end(true));
|
|
248
|
+
}
|
|
249
|
+
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
250
|
+
}
|
|
251
|
+
async updateMessageEndpointOnAppStudio(appName, tokenProvider, botId, endpoint) {
|
|
252
|
+
const appStudioToken = await tokenProvider.appStudioToken.getAccessToken();
|
|
253
|
+
error_1.CheckThrowSomethingMissing(strings_1.ConfigNames.APPSTUDIO_TOKEN, appStudioToken);
|
|
254
|
+
error_1.CheckThrowSomethingMissing(strings_1.ConfigNames.LOCAL_BOT_ID, botId);
|
|
255
|
+
const botReg = {
|
|
256
|
+
botId: botId,
|
|
257
|
+
name: appName + strings_1.PluginLocalDebug.LOCAL_DEBUG_SUFFIX,
|
|
258
|
+
description: "",
|
|
259
|
+
iconUrl: "",
|
|
260
|
+
messagingEndpoint: endpoint,
|
|
261
|
+
callingEndpoint: "",
|
|
262
|
+
};
|
|
263
|
+
await appStudio_1.AppStudio.updateMessageEndpoint(appStudioToken, botReg.botId, botReg);
|
|
264
|
+
}
|
|
265
|
+
async configureResource(ctx, inputs, envInfo, tokenProvider) {
|
|
266
|
+
if (envInfo.envName === "local") {
|
|
267
|
+
const botConfig = envInfo.state[this.name];
|
|
268
|
+
error_1.CheckThrowSomethingMissing(strings_1.ConfigNames.LOCAL_ENDPOINT, botConfig.siteEndpoint);
|
|
269
|
+
await this.updateMessageEndpointOnAppStudio(ctx.projectSetting.appName, tokenProvider, botConfig.botId, `${botConfig.siteEndpoint}${strings_1.CommonStrings.MESSAGE_ENDPOINT_SUFFIX}`);
|
|
270
|
+
}
|
|
271
|
+
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
272
|
+
}
|
|
273
|
+
async deploy(ctx, inputs, envInfo, tokenProvider) {
|
|
274
|
+
var _a;
|
|
275
|
+
ctx.logProvider.info(messages_1.Messages.PreDeployingBot);
|
|
276
|
+
// Preconditions checking.
|
|
277
|
+
const workingDir = path.join(inputs.projectPath, strings_1.CommonStrings.BOT_WORKING_DIR_NAME);
|
|
278
|
+
if (!workingDir) {
|
|
279
|
+
throw new error_1.PreconditionError(messages_1.Messages.WorkingDirIsMissing, []);
|
|
280
|
+
}
|
|
281
|
+
const packDirExisted = await fs_extra_1.default.pathExists(workingDir);
|
|
282
|
+
if (!packDirExisted) {
|
|
283
|
+
throw new error_1.PackDirectoryExistenceError();
|
|
284
|
+
}
|
|
285
|
+
const botConfig = envInfo.state[this.name];
|
|
286
|
+
const programmingLanguage = this.getProgrammingLanguage(ctx);
|
|
287
|
+
error_1.CheckThrowSomethingMissing(strings_1.ConfigNames.SITE_ENDPOINT, botConfig.siteEndpoint);
|
|
288
|
+
error_1.CheckThrowSomethingMissing(strings_1.ConfigNames.PROGRAMMING_LANGUAGE, programmingLanguage);
|
|
289
|
+
error_1.CheckThrowSomethingMissing(strings_1.ConfigNames.BOT_SERVICE_RESOURCE_ID, botConfig.botWebAppResourceId);
|
|
290
|
+
const subscriptionId = tools_1.getSubscriptionIdFromResourceId(botConfig.botWebAppResourceId);
|
|
291
|
+
const resourceGroup = tools_1.getResourceGroupNameFromResourceId(botConfig.botWebAppResourceId);
|
|
292
|
+
const siteName = tools_1.getSiteNameFromResourceId(botConfig.botWebAppResourceId);
|
|
293
|
+
error_1.CheckThrowSomethingMissing(strings_1.ConfigNames.SUBSCRIPTION_ID, subscriptionId);
|
|
294
|
+
error_1.CheckThrowSomethingMissing(strings_1.ConfigNames.RESOURCE_GROUP, resourceGroup);
|
|
295
|
+
ctx.logProvider.info(messages_1.Messages.DeployingBot);
|
|
296
|
+
const deployTimeCandidate = Date.now();
|
|
297
|
+
const deployMgr = new deployMgr_1.DeployMgr(workingDir, envInfo.envName);
|
|
298
|
+
await deployMgr.init();
|
|
299
|
+
if (!(await deployMgr.needsToRedeploy())) {
|
|
300
|
+
ctx.logProvider.debug(messages_1.Messages.SkipDeployNoUpdates);
|
|
301
|
+
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
302
|
+
}
|
|
303
|
+
const handler = await progressBars_1.ProgressBarFactory.newProgressBar(constants_3.ProgressBarConstants.DEPLOY_TITLE, constants_3.ProgressBarConstants.DEPLOY_STEPS_NUM, ctx);
|
|
304
|
+
await (handler === null || handler === void 0 ? void 0 : handler.start(constants_3.ProgressBarConstants.DEPLOY_STEP_START));
|
|
305
|
+
await (handler === null || handler === void 0 ? void 0 : handler.next(constants_3.ProgressBarConstants.DEPLOY_STEP_NPM_INSTALL));
|
|
306
|
+
const unPackFlag = (_a = envInfo.config.bot) === null || _a === void 0 ? void 0 : _a.unPackFlag;
|
|
307
|
+
await languageStrategy_1.LanguageStrategy.localBuild(programmingLanguage, workingDir, unPackFlag === "false" ? false : true);
|
|
308
|
+
await (handler === null || handler === void 0 ? void 0 : handler.next(constants_3.ProgressBarConstants.DEPLOY_STEP_ZIP_FOLDER));
|
|
309
|
+
const zipBuffer = utils.zipAFolder(workingDir, constants_3.DeployConfigs.UN_PACK_DIRS, [
|
|
310
|
+
`${constants_3.FolderNames.NODE_MODULES}/${constants_3.FolderNames.KEYTAR}`,
|
|
311
|
+
]);
|
|
312
|
+
// 2.2 Retrieve publishing credentials.
|
|
313
|
+
const webSiteMgmtClient = new appService.WebSiteManagementClient(await this.getAzureAccountCredential(tokenProvider.azureAccountProvider), subscriptionId);
|
|
314
|
+
const listResponse = await azureOps_1.AzureOperations.ListPublishingCredentials(webSiteMgmtClient, resourceGroup, siteName);
|
|
315
|
+
const publishingUserName = listResponse.publishingUserName
|
|
316
|
+
? listResponse.publishingUserName
|
|
317
|
+
: "";
|
|
318
|
+
const publishingPassword = listResponse.publishingPassword
|
|
319
|
+
? listResponse.publishingPassword
|
|
320
|
+
: "";
|
|
321
|
+
const encryptedCreds = utils.toBase64(`${publishingUserName}:${publishingPassword}`);
|
|
322
|
+
const config = {
|
|
323
|
+
headers: {
|
|
324
|
+
Authorization: `Basic ${encryptedCreds}`,
|
|
325
|
+
},
|
|
326
|
+
maxContentLength: Infinity,
|
|
327
|
+
maxBodyLength: Infinity,
|
|
328
|
+
};
|
|
329
|
+
const zipDeployEndpoint = zipDeploy_1.getZipDeployEndpoint(botConfig.siteName);
|
|
330
|
+
await (handler === null || handler === void 0 ? void 0 : handler.next(constants_3.ProgressBarConstants.DEPLOY_STEP_ZIP_DEPLOY));
|
|
331
|
+
await azureOps_1.AzureOperations.ZipDeployPackage(zipDeployEndpoint, zipBuffer, config);
|
|
332
|
+
await deployMgr.updateLastDeployTime(deployTimeCandidate);
|
|
333
|
+
await (handler === null || handler === void 0 ? void 0 : handler.end(true));
|
|
334
|
+
ctx.logProvider.info(messages_1.Messages.SuccessfullyDeployedBot);
|
|
335
|
+
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
336
|
+
}
|
|
337
|
+
};
|
|
338
|
+
tslib_1.__decorate([
|
|
339
|
+
hooks_1.hooks([CommonErrorHandlerMW_1.CommonErrorHandlerMW({ telemetry: { component: constants_2.BuiltInFeaturePluginNames.bot } })]),
|
|
340
|
+
tslib_1.__metadata("design:type", Function),
|
|
341
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
342
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
343
|
+
], NodeJSBotPluginV3.prototype, "scaffold", null);
|
|
344
|
+
tslib_1.__decorate([
|
|
345
|
+
hooks_1.hooks([CommonErrorHandlerMW_1.CommonErrorHandlerMW({ telemetry: { component: constants_2.BuiltInFeaturePluginNames.bot } })]),
|
|
346
|
+
tslib_1.__metadata("design:type", Function),
|
|
347
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
348
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
349
|
+
], NodeJSBotPluginV3.prototype, "generateResourceTemplate", null);
|
|
350
|
+
tslib_1.__decorate([
|
|
351
|
+
hooks_1.hooks([CommonErrorHandlerMW_1.CommonErrorHandlerMW({ telemetry: { component: constants_2.BuiltInFeaturePluginNames.bot } })]),
|
|
352
|
+
tslib_1.__metadata("design:type", Function),
|
|
353
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
354
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
355
|
+
], NodeJSBotPluginV3.prototype, "addFeature", null);
|
|
356
|
+
tslib_1.__decorate([
|
|
357
|
+
hooks_1.hooks([CommonErrorHandlerMW_1.CommonErrorHandlerMW({ telemetry: { component: constants_2.BuiltInFeaturePluginNames.bot } })]),
|
|
358
|
+
tslib_1.__metadata("design:type", Function),
|
|
359
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
360
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
361
|
+
], NodeJSBotPluginV3.prototype, "afterOtherFeaturesAdded", null);
|
|
362
|
+
tslib_1.__decorate([
|
|
363
|
+
hooks_1.hooks([CommonErrorHandlerMW_1.CommonErrorHandlerMW({ telemetry: { component: constants_2.BuiltInFeaturePluginNames.bot } })]),
|
|
364
|
+
tslib_1.__metadata("design:type", Function),
|
|
365
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object, Object, Object]),
|
|
366
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
367
|
+
], NodeJSBotPluginV3.prototype, "provisionResource", null);
|
|
368
|
+
tslib_1.__decorate([
|
|
369
|
+
hooks_1.hooks([CommonErrorHandlerMW_1.CommonErrorHandlerMW({ telemetry: { component: constants_2.BuiltInFeaturePluginNames.bot } })]),
|
|
370
|
+
tslib_1.__metadata("design:type", Function),
|
|
371
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object, Object, Object]),
|
|
372
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
373
|
+
], NodeJSBotPluginV3.prototype, "configureResource", null);
|
|
374
|
+
tslib_1.__decorate([
|
|
375
|
+
hooks_1.hooks([CommonErrorHandlerMW_1.CommonErrorHandlerMW({ telemetry: { component: constants_2.BuiltInFeaturePluginNames.bot } })]),
|
|
376
|
+
tslib_1.__metadata("design:type", Function),
|
|
377
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object, Object, Object]),
|
|
378
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
379
|
+
], NodeJSBotPluginV3.prototype, "deploy", null);
|
|
380
|
+
NodeJSBotPluginV3 = tslib_1.__decorate([
|
|
381
|
+
typedi_1.Service(constants_2.BuiltInFeaturePluginNames.bot)
|
|
382
|
+
], NodeJSBotPluginV3);
|
|
383
|
+
exports.NodeJSBotPluginV3 = NodeJSBotPluginV3;
|
|
384
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/bot/v3/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,6CAA0C;AAC1C,wDAagC;AAChC,mDAA6B;AAC7B,mCAAiC;AAEjC,4DAAqE;AACrE,oDAKkC;AAClC,2FAAwF;AACxF,+CAAwD;AACxD,qEAIgD;AAChD,0EAAuF;AACvF,4CASsB;AACtB,0DAAuD;AACvD,kDAAqD;AACrD,oDAAiD;AACjD,gEAA0B;AAC1B,kDAAoF;AAEpF,kEAA4C;AAC5C,sEAAmE;AACnE,wDAAqD;AAErD,sDAAmD;AACnD,4CAAyC;AACzC,+DAAyC;AACzC,0EAAoD;AACpD,0CAA8C;AAC9C,kDAA0D;AAC1D,yFAK4D;AAC5D,sEAAmE;AACnE,mCAMiB;AACjB,uGAAoG;AAGpG,IAAa,iBAAiB,GAA9B,MAAa,iBAAiB;IAA9B;QACE,SAAI,GAAG,qCAAyB,CAAC,GAAG,CAAC;QACrC,gBAAW,GAAG,YAAY,CAAC;IAyb7B,CAAC;IAxbC,KAAK,CAAC,kBAAkB,CA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,CAAA;AA9ZC;IADC,aAAK,CAAC,CAAC,2CAAoB,CAAC,EAAE,SAAS,EAAE,EAAE,SAAS,EAAE,qCAAyB,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC;;;;iDAgD1F;AAED;IADC,aAAK,CAAC,CAAC,2CAAoB,CAAC,EAAE,SAAS,EAAE,EAAE,SAAS,EAAE,qCAAyB,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC;;;;iEA6C1F;AAED;IADC,aAAK,CAAC,CAAC,2CAAoB,CAAC,EAAE,SAAS,EAAE,EAAE,SAAS,EAAE,qCAAyB,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC;;;;mDAwC1F;AAED;IADC,aAAK,CAAC,CAAC,2CAAoB,CAAC,EAAE,SAAS,EAAE,EAAE,SAAS,EAAE,qCAAyB,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC;;;;gEAsB1F;AAiED;IADC,aAAK,CAAC,CAAC,2CAAoB,CAAC,EAAE,SAAS,EAAE,EAAE,SAAS,EAAE,qCAAyB,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC;;;;0DA+C1F;AAyBD;IADC,aAAK,CAAC,CAAC,2CAAoB,CAAC,EAAE,SAAS,EAAE,EAAE,SAAS,EAAE,qCAAyB,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC;;;;0DAkB1F;AAGD;IADC,aAAK,CAAC,CAAC,2CAAoB,CAAC,EAAE,SAAS,EAAE,EAAE,SAAS,EAAE,qCAAyB,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC;;;;+CAqG1F;AA1bU,iBAAiB;IAD7B,gBAAO,CAAC,qCAAyB,CAAC,GAAG,CAAC;GAC1B,iBAAiB,CA2b7B;AA3bY,8CAAiB"}
|
|
@@ -19,6 +19,8 @@ export declare class DotnetPluginInfo {
|
|
|
19
19
|
export declare class DotnetPathInfo {
|
|
20
20
|
static readonly publishFolderPath: (workingPath: string, framework?: string, runtime?: string) => string;
|
|
21
21
|
static readonly bicepTemplateFolder: (templateFolder: string) => string;
|
|
22
|
+
static readonly TemplateFolderName = "dotnet";
|
|
23
|
+
static readonly projectFilename: (projectName: string) => string;
|
|
22
24
|
}
|
|
23
25
|
export declare class DotnetCommands {
|
|
24
26
|
static readonly buildRelease: (runtime: string) => string;
|
|
@@ -35,6 +37,10 @@ export declare class DotnetConfigInfo {
|
|
|
35
37
|
static readonly webAppDomain = "domain";
|
|
36
38
|
static readonly projectFilePath = "projectFilePath";
|
|
37
39
|
}
|
|
40
|
+
export declare class Capability {
|
|
41
|
+
static readonly tab = "Tab";
|
|
42
|
+
static readonly bot = "Bot";
|
|
43
|
+
}
|
|
38
44
|
export declare class WebappBicepFile {
|
|
39
45
|
static readonly configurationTemplateFileName = "webappConfiguration.template.bicep";
|
|
40
46
|
static readonly provisionTemplateFileName = "webappProvision.template.bicep";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/dotnet/constants.ts"],"names":[],"mappings":"AAKA,qBAAa,SAAS;IACpB,MAAM,CAAC,QAAQ,CAAC,WAAW,MAAM;CAClC;AAED,qBAAa,SAAS;IACpB,MAAM,CAAC,QAAQ,CAAC,YAAY,YAAa,MAAM,YACY;CAC5D;AAED,qBAAa,WAAW;IACtB,MAAM,CAAC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAwC;CAChF;AAED,qBAAa,gBAAgB;IAC3B,MAAM,CAAC,QAAQ,CAAC,UAAU,wBAAwB;IAClD,MAAM,CAAC,QAAQ,CAAC,WAAW,YAAY;IACvC,MAAM,CAAC,QAAQ,CAAC,KAAK,QAAQ;IAC7B,MAAM,CAAC,QAAQ,CAAC,SAAS,qDAAqD;IAC9E,MAAM,CAAC,QAAQ,CAAC,QAAQ,oCAAoC;IAE5D,MAAM,CAAC,QAAQ,CAAC,gBAAgB,YAAY;IAC5C,MAAM,CAAC,QAAQ,C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C9B,MAAM,CAAC,QAAQ,CAAC,kBAAkB,cAAc;IAChD,MAAM,CAAC,QAAQ,CAAC,cAAc,oBAAoB;IAClD,MAAM,CAAC,QAAQ,CAAC,iBAAiB,uBAAuB;CACzD;AAED,qBAAa,gBAAgB;IAC3B,MAAM,CAAC,QAAQ,CAAC,UAAU,gBAAgB;IAC1C,MAAM,CAAC,QAAQ,CAAC,kBAAkB,wBAAwB;IAC1D,MAAM,CAAC,QAAQ,CAAC,cAAc,cAAc;IAC5C,MAAM,CAAC,QAAQ,CAAC,YAAY,YAAY;IACxC,MAAM,CAAC,QAAQ,CAAC,eAAe,qBAAqB;CACrD;AAED,qBAAa,UAAU;IACrB,MAAM,CAAC,QAAQ,CAAC,GAAG,SAAS;IAC5B,MAAM,CAAC,QAAQ,CAAC,GAAG,SAAS;CAC7B;AAED,qBAAa,eAAe;IAC1B,MAAM,CAAC,QAAQ,CAAC,6BAA6B,wCAAwC;IACrF,MAAM,CAAC,QAAQ,CAAC,yBAAyB,oCAAoC;CAC9E;AAED,qBAAa,WAAW;IACtB,MAAM,CAAC,QAAQ,CAAC,QAAQ,kDAAkD;IAC1E,MAAM,CAAC,QAAQ,CAAC,UAAU,oDAAoD;IAC9E,MAAM,CAAC,QAAQ,CAAC,MAAM,gDAAgD;IACtE,MAAM,CAAC,QAAQ,CAAC,eAAe,sCAAsC;IACrE,MAAM,CAAC,QAAQ,CAAC,aAAa,oCAAoC;IAEjE,MAAM,CAAC,QAAQ,CAAC,SAAS;;;;;;MAMvB;CACH"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
3
|
// Licensed under the MIT license.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.WebappBicep = exports.WebappBicepFile = exports.DotnetConfigInfo = exports.DependentPluginInfo = exports.DotnetCommands = exports.DotnetPathInfo = exports.DotnetPluginInfo = exports.RegularExpr = exports.AzureInfo = exports.Constants = void 0;
|
|
5
|
+
exports.WebappBicep = exports.WebappBicepFile = exports.Capability = exports.DotnetConfigInfo = exports.DependentPluginInfo = exports.DotnetCommands = exports.DotnetPathInfo = exports.DotnetPluginInfo = exports.RegularExpr = exports.AzureInfo = exports.Constants = void 0;
|
|
6
6
|
const tslib_1 = require("tslib");
|
|
7
7
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
8
8
|
class Constants {
|
|
@@ -32,6 +32,8 @@ class DotnetPathInfo {
|
|
|
32
32
|
exports.DotnetPathInfo = DotnetPathInfo;
|
|
33
33
|
DotnetPathInfo.publishFolderPath = (workingPath, framework = DotnetPluginInfo.defaultFramework, runtime = DotnetPluginInfo.defaultRuntime) => path_1.default.join(workingPath, "bin", "Release", framework, runtime, "publish");
|
|
34
34
|
DotnetPathInfo.bicepTemplateFolder = (templateFolder) => path_1.default.join(templateFolder, "plugins", "resource", "webapp", "bicep");
|
|
35
|
+
DotnetPathInfo.TemplateFolderName = "dotnet";
|
|
36
|
+
DotnetPathInfo.projectFilename = (projectName) => `${projectName}.csproj`;
|
|
35
37
|
class DotnetCommands {
|
|
36
38
|
}
|
|
37
39
|
exports.DotnetCommands = DotnetCommands;
|
|
@@ -50,6 +52,11 @@ DotnetConfigInfo.appServicePlanName = "appServicePlanName";
|
|
|
50
52
|
DotnetConfigInfo.webAppEndpoint = "endpoint";
|
|
51
53
|
DotnetConfigInfo.webAppDomain = "domain";
|
|
52
54
|
DotnetConfigInfo.projectFilePath = "projectFilePath";
|
|
55
|
+
class Capability {
|
|
56
|
+
}
|
|
57
|
+
exports.Capability = Capability;
|
|
58
|
+
Capability.tab = "Tab";
|
|
59
|
+
Capability.bot = "Bot";
|
|
53
60
|
class WebappBicepFile {
|
|
54
61
|
}
|
|
55
62
|
exports.WebappBicepFile = WebappBicepFile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/dotnet/constants.ts"],"names":[],"mappings":";A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;AAbiB,oBAAQ,GAAG,8CAA8C,CAAC;AAC1D,sBAAU,GAAG,gDAAgD,CAAC;AAC9D,kBAAM,GAAG,4CAA4C,CAAC;AACtD,2BAAe,GAAG,kCAAkC,CAAC;AACrD,yBAAa,GAAG,gCAAgC,CAAC;AAEjD,qBAAS,GAAG;IAC1B,gBAAgB,EAAE,WAAW,CAAC,UAAU;IACxC,QAAQ,EAAE,WAAW,CAAC,QAAQ;IAC9B,MAAM,EAAE,WAAW,CAAC,MAAM;IAC1B,eAAe,EAAE,WAAW,CAAC,eAAe;IAC5C,aAAa,EAAE,WAAW,CAAC,aAAa;CACzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enum.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/dotnet/enum.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"enum.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/dotnet/enum.ts"],"names":[],"mappings":"AAGA,oBAAY,eAAe;IAEzB,iBAAiB,sBAAsB;IACvC,cAAc,mBAAmB;IACjC,kBAAkB,uBAAuB;IACzC,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAG7B,UAAU,eAAe;IACzB,kBAAkB,uBAAuB;IACzC,cAAc,mBAAmB;IACjC,YAAY,iBAAiB;IAC7B,eAAe,oBAAoB;IACnC,gBAAgB,qBAAqB;IAGrC,IAAI,SAAS;CACd;AAED,oBAAY,cAAc;IACxB,YAAY,kBAAkB;IAC9B,QAAQ,cAAc;IACtB,SAAS,oBAAoB;IAC7B,cAAc,qBAAqB;IACnC,kBAAkB,yBAAyB;IAC3C,KAAK,WAAW;IAChB,WAAW,iBAAiB;IAC5B,aAAa,mBAAmB;CACjC;AAED,oBAAY,YAAY;IACtB,MAAM,kBAAkB;IACxB,cAAc,2BAA2B;CAC1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/dotnet/enum.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/dotnet/enum.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,IAAY,eAmBX;AAnBD,WAAY,eAAe;IACzB,0BAA0B;IAC1B,0DAAuC,CAAA;IACvC,oDAAiC,CAAA;IACjC,4DAAyC,CAAA;IACzC,wCAAqB,CAAA;IACrB,4CAAyB,CAAA;IACzB,gDAA6B,CAAA;IAE7B,sCAAsC;IACtC,4CAAyB,CAAA;IACzB,4DAAyC,CAAA;IACzC,oDAAiC,CAAA;IACjC,gDAA6B,CAAA;IAC7B,sDAAmC,CAAA;IACnC,wDAAqC,CAAA;IAErC,kBAAkB;IAClB,gCAAa,CAAA;AACf,CAAC,EAnBW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAmB1B;AAED,IAAY,cASX;AATD,WAAY,cAAc;IACxB,gDAA8B,CAAA;IAC9B,wCAAsB,CAAA;IACtB,+CAA6B,CAAA;IAC7B,qDAAmC,CAAA;IACnC,6DAA2C,CAAA;IAC3C,kCAAgB,CAAA;IAChB,8CAA4B,CAAA;IAC5B,kDAAgC,CAAA;AAClC,CAAC,EATW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QASzB;AAED,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,wCAAwB,CAAA;IACxB,yDAAyC,CAAA;AAC3C,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/ops/deploy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/ops/deploy.ts"],"names":[],"mappings":"AAKA,OAAO,MAAM,MAAM,SAAS,CAAC;AAW7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAchE,wBAAsB,mBAAmB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAOlF;AAED,wBAAsB,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CASxE;AAED,wBAAsB,WAAW,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAwBxE;AAED,wBAAsB,SAAS,CAC7B,MAAM,EAAE,uBAAuB,EAC/B,iBAAiB,EAAE,MAAM,EACzB,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,IAAI,CAAC,CA6Cf"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
2
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
5
|
exports.zipDeploy = exports.generateZip = exports.build = exports.getFrameworkVersion = void 0;
|
|
4
6
|
const tslib_1 = require("tslib");
|
|
@@ -9,8 +11,12 @@ const templatesUtils_1 = require("../../../../../common/template-utils/templates
|
|
|
9
11
|
const axios_1 = tslib_1.__importDefault(require("axios"));
|
|
10
12
|
const errors_1 = require("../resources/errors");
|
|
11
13
|
const constants_1 = require("../constants");
|
|
12
|
-
const execute_1 = require("../../../function/utils/execute");
|
|
13
14
|
const dir_walk_1 = require("../../../function/utils/dir-walk");
|
|
15
|
+
const logger_1 = require("../../utils/logger");
|
|
16
|
+
const messages_1 = require("../resources/messages");
|
|
17
|
+
const progress_helper_1 = require("../../utils/progress-helper");
|
|
18
|
+
const steps_1 = require("../resources/steps");
|
|
19
|
+
const utils_1 = require("../../utils");
|
|
14
20
|
async function getFrameworkVersion(projectFilePath) {
|
|
15
21
|
const content = await fs_extra_1.default.readFile(projectFilePath, "utf8");
|
|
16
22
|
const framework = content.match(constants_1.RegularExpr.targetFramework);
|
|
@@ -21,8 +27,11 @@ async function getFrameworkVersion(projectFilePath) {
|
|
|
21
27
|
}
|
|
22
28
|
exports.getFrameworkVersion = getFrameworkVersion;
|
|
23
29
|
async function build(path, runtime) {
|
|
30
|
+
var _a;
|
|
31
|
+
(_a = progress_helper_1.ProgressHelper.progressHandler) === null || _a === void 0 ? void 0 : _a.next(steps_1.WebappDeployProgress.steps.build);
|
|
32
|
+
logger_1.Logger.info(messages_1.Messages.Build(path));
|
|
24
33
|
const command = constants_1.DotnetCommands.buildRelease(runtime);
|
|
25
|
-
await errors_1.runWithErrorCatchAndWrap((error) => new errors_1.BuildError(error), async () => await
|
|
34
|
+
await errors_1.runWithErrorCatchAndWrap((error) => new errors_1.BuildError(error), async () => await utils_1.Utils.execute(command, path));
|
|
26
35
|
}
|
|
27
36
|
exports.build = build;
|
|
28
37
|
async function generateZip(componentPath) {
|
|
@@ -48,15 +57,21 @@ async function generateZip(componentPath) {
|
|
|
48
57
|
}
|
|
49
58
|
exports.generateZip = generateZip;
|
|
50
59
|
async function zipDeploy(client, resourceGroupName, webAppName, componentPath) {
|
|
60
|
+
var _a, _b, _c;
|
|
61
|
+
logger_1.Logger.info(messages_1.Messages.GenerateZip(componentPath));
|
|
62
|
+
(_a = progress_helper_1.ProgressHelper.progressHandler) === null || _a === void 0 ? void 0 : _a.next(steps_1.WebappDeployProgress.steps.generateZip);
|
|
51
63
|
const zip = await errors_1.runWithErrorCatchAndThrow(new errors_1.ZipError(), async () => await generateZip(componentPath));
|
|
52
64
|
const zipContent = zip.toBuffer();
|
|
65
|
+
(_b = progress_helper_1.ProgressHelper.progressHandler) === null || _b === void 0 ? void 0 : _b.next(steps_1.WebappDeployProgress.steps.fetchCredential);
|
|
53
66
|
const publishCred = await errors_1.runWithErrorCatchAndThrow(new errors_1.PublishCredentialError(), async () => await client.webApps.listPublishingCredentials(resourceGroupName, webAppName));
|
|
54
67
|
const username = publishCred.publishingUserName;
|
|
55
68
|
const password = publishCred.publishingPassword;
|
|
56
69
|
if (!password) {
|
|
57
|
-
|
|
70
|
+
logger_1.Logger.error(messages_1.Messages.FailQueryPublishCred);
|
|
58
71
|
throw new errors_1.PublishCredentialError();
|
|
59
72
|
}
|
|
73
|
+
logger_1.Logger.info(messages_1.Messages.UploadZip(zipContent.length));
|
|
74
|
+
(_c = progress_helper_1.ProgressHelper.progressHandler) === null || _c === void 0 ? void 0 : _c.next(steps_1.WebappDeployProgress.steps.deploy);
|
|
60
75
|
await errors_1.runWithErrorCatchAndThrow(new errors_1.UploadZipError(), async () => await templatesUtils_1.sendRequestWithRetry(async () => await axios_1.default.post(constants_1.AzureInfo.zipDeployURL(webAppName), zipContent, {
|
|
61
76
|
headers: {
|
|
62
77
|
"Content-Type": "application/octet-stream",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/ops/deploy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/ops/deploy.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,gEAA0B;AAC1B,mDAA6B;AAC7B,8DAA6B;AAC7B,wFAA2F;AAC3F,0DAA0B;AAC1B,gDAO6B;AAE7B,4CAKsB;AACtB,+DAAqE;AACrE,+CAA4C;AAC5C,oDAAiD;AACjD,iEAA6D;AAC7D,8CAA4E;AAC5E,uCAAoC;AAE7B,KAAK,UAAU,mBAAmB,CAAC,eAAuB;IAC/D,MAAM,OAAO,GAAG,MAAM,kBAAE,CAAC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;IAC3D,MAAM,SAAS,GAAG,OAAO,CAAC,KAAK,CAAC,uBAAW,CAAC,eAAe,CAAC,CAAC;IAC7D,IAAI,SAAS,aAA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C,kBAAkB,CAAC;IAChD,MAAM,QAAQ,GAAG,WAAW,CAAC,kBAAkB,CAAC;IAEhD,IAAI,CAAC,QAAQ,EAAE;QACb,eAAM,CAAC,KAAK,CAAC,mBAAQ,CAAC,oBAAoB,CAAC,CAAC;QAC5C,MAAM,IAAI,+BAAsB,EAAE,CAAC;KACpC;IAED,eAAM,CAAC,IAAI,CAAC,mBAAQ,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;IACnD,MAAA,gCAAc,CAAC,eAAe,0CAAE,IAAI,CAAC,4BAAc,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAClE,MAAM,kCAAyB,CAC7B,IAAI,uBAAc,EAAE,EACpB,KAAK,IAAI,EAAE,CACT,MAAM,qCAAoB,CACxB,KAAK,IAAI,EAAE,CACT,MAAM,eAAK,CAAC,IAAI,CAAC,qBAAS,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,UAAU,EAAE;QAC/D,OAAO,EAAE;YACP,cAAc,EAAE,0BAA0B;YAC1C,eAAe,EAAE,UAAU;SAC5B;QACD,IAAI,EAAE;YACJ,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;SACnB;QACD,gBAAgB,EAAE,QAAQ;QAC1B,aAAa,EAAE,QAAQ;QACvB,OAAO,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI;KACxB,CAAC,EACJ,CAAC,CACF,CACJ,CAAC;AACJ,CAAC;AAlDD,8BAkDC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { TemplateInfo } from "../resources/templateInfo";
|
|
3
|
+
export declare function scaffoldFromZipPackage(componentPath: string, templateInfo: TemplateInfo): Promise<void>;
|
|
4
|
+
export declare function renderTemplateName(name: string, data: Buffer, appName: string): string;
|
|
5
|
+
export declare function genTemplateNameRenderReplaceFn(appName: string): (name: string, data: Buffer) => string;
|
|
6
|
+
//# sourceMappingURL=scaffold.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/ops/scaffold.ts"],"names":[],"mappings":";AAoBA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,wBAAsB,sBAAsB,CAAC,aAAa,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,iBAgC7F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,UAE7E;AAED,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,MAAM,UAC9C,MAAM,QAAQ,MAAM,YACnC"}
|