@microsoft/teamsfx-core 1.3.0 → 1.3.1-alpha.59b5e7c6.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 +19 -12
- 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/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/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 +1 -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 +2 -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/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/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 +43 -4
- 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 +15 -18
- package/build/core/index.d.ts.map +1 -1
- package/build/core/index.js +205 -262
- 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/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 +21 -44
- 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.js +3 -2
- 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 +8 -8
- package/build/plugins/resource/aad/aadAppClient.d.ts.map +1 -1
- package/build/plugins/resource/aad/aadAppClient.js +29 -29
- 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 +13 -13
- 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 +20 -0
- package/build/plugins/resource/aad/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/aad/v3/index.js +213 -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 +9 -35
- 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 +192 -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 +4 -0
- package/build/plugins/resource/appstudio/errors.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/errors.js +4 -0
- package/build/plugins/resource/appstudio/errors.js.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts +3 -27
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.js +46 -13
- 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 +8 -4
- package/build/plugins/resource/appstudio/utils/telemetry.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/utils/telemetry.js +13 -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 +6 -26
- package/build/plugins/resource/appstudio/v3/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.js +37 -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 +95 -0
- package/build/plugins/resource/appstudio/v3/plugin.js.map +1 -0
- 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/index.js +3 -2
- package/build/plugins/resource/bot/index.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/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 +266 -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 +388 -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 +89 -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 +90 -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/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 +25 -0
- package/build/plugins/resource/sql/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/sql/v3/index.js +297 -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 +122 -74
- 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 +18 -1
- package/build/plugins/solution/fx-solution/debug/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/util/tasks.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/util/tasks.js +2 -4
- 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 +145 -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 +9 -8
- 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 +6 -5
- package/build/plugins/solution/fx-solution/v2/utils.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.js +18 -17
- package/build/plugins/solution/fx-solution/v2/utils.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addFeature.d.ts +9 -0
- package/build/plugins/solution/fx-solution/v3/addFeature.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/addFeature.js +128 -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 +15 -18
- 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 +150 -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 +161 -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 +38 -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 +9 -62
- package/build/plugins/solution/utils/questions.js.map +1 -1
- package/package.json +12 -6
- 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
|
@@ -2,66 +2,26 @@
|
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
3
|
// Licensed under the MIT license.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
6
|
-
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
7
|
-
const typedi_1 = require("typedi");
|
|
5
|
+
exports.selectCapabilitiesQuestion = exports.selectMultiPluginsQuestion = exports.selectSingleFeatureQuestion = exports.SolutionV3QuestionNames = void 0;
|
|
8
6
|
const question_1 = require("../fx-solution/question");
|
|
9
7
|
var SolutionV3QuestionNames;
|
|
10
8
|
(function (SolutionV3QuestionNames) {
|
|
11
|
-
SolutionV3QuestionNames["scaffoldTemplate"] = "template";
|
|
12
9
|
SolutionV3QuestionNames["capabilities"] = "capabilities";
|
|
13
|
-
SolutionV3QuestionNames["
|
|
14
|
-
SolutionV3QuestionNames["
|
|
15
|
-
SolutionV3QuestionNames["modules"] = "modules";
|
|
10
|
+
SolutionV3QuestionNames["feature"] = "feature";
|
|
11
|
+
SolutionV3QuestionNames["plugins"] = "plugins";
|
|
16
12
|
})(SolutionV3QuestionNames = exports.SolutionV3QuestionNames || (exports.SolutionV3QuestionNames = {}));
|
|
17
|
-
exports.
|
|
18
|
-
name: SolutionV3QuestionNames.
|
|
19
|
-
title: "Select a
|
|
13
|
+
exports.selectSingleFeatureQuestion = {
|
|
14
|
+
name: SolutionV3QuestionNames.feature,
|
|
15
|
+
title: "Select a feature to add",
|
|
20
16
|
type: "singleSelect",
|
|
21
17
|
staticOptions: [],
|
|
22
18
|
};
|
|
23
|
-
exports.
|
|
24
|
-
name: SolutionV3QuestionNames.
|
|
25
|
-
title: "Select
|
|
19
|
+
exports.selectMultiPluginsQuestion = {
|
|
20
|
+
name: SolutionV3QuestionNames.plugins,
|
|
21
|
+
title: "Select plugins to deploy",
|
|
26
22
|
type: "multiSelect",
|
|
27
23
|
staticOptions: [],
|
|
28
24
|
};
|
|
29
|
-
function createSelectModuleQuestionNode(modules) {
|
|
30
|
-
const moduleNode = new teamsfx_api_1.QTreeNode(exports.selectSingleModuleQuestion);
|
|
31
|
-
const moduleOptions = [];
|
|
32
|
-
let i = 0;
|
|
33
|
-
for (const module of modules) {
|
|
34
|
-
const option = {
|
|
35
|
-
id: `${i++}`,
|
|
36
|
-
label: JSON.stringify(module),
|
|
37
|
-
};
|
|
38
|
-
moduleOptions.push(option);
|
|
39
|
-
}
|
|
40
|
-
moduleOptions.push({ id: "none", label: "none" });
|
|
41
|
-
exports.selectSingleModuleQuestion.staticOptions = moduleOptions;
|
|
42
|
-
return moduleNode;
|
|
43
|
-
}
|
|
44
|
-
exports.createSelectModuleQuestionNode = createSelectModuleQuestionNode;
|
|
45
|
-
function createSelectModulesToDeployQuestionNode(modules) {
|
|
46
|
-
const moduleNode = new teamsfx_api_1.QTreeNode(exports.selectMultiModulesQuestion);
|
|
47
|
-
const moduleOptions = [];
|
|
48
|
-
let i = 0;
|
|
49
|
-
for (const module of modules) {
|
|
50
|
-
if (module.hostingPlugin) {
|
|
51
|
-
const plugin = typedi_1.Container.get(module.hostingPlugin);
|
|
52
|
-
if (plugin.deploy) {
|
|
53
|
-
const option = {
|
|
54
|
-
id: `${i++}`,
|
|
55
|
-
label: JSON.stringify(module),
|
|
56
|
-
};
|
|
57
|
-
moduleOptions.push(option);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
exports.selectMultiModulesQuestion.staticOptions = moduleOptions;
|
|
62
|
-
return moduleNode;
|
|
63
|
-
}
|
|
64
|
-
exports.createSelectModulesToDeployQuestionNode = createSelectModulesToDeployQuestionNode;
|
|
65
25
|
exports.selectCapabilitiesQuestion = {
|
|
66
26
|
name: SolutionV3QuestionNames.capabilities,
|
|
67
27
|
title: "Select capabilities",
|
|
@@ -70,17 +30,4 @@ exports.selectCapabilitiesQuestion = {
|
|
|
70
30
|
default: [question_1.TabOptionItem.id],
|
|
71
31
|
skipSingleOption: true,
|
|
72
32
|
};
|
|
73
|
-
exports.selectScaffoldTemplateQuestion = {
|
|
74
|
-
name: SolutionV3QuestionNames.scaffoldTemplate,
|
|
75
|
-
title: "Select a scaffold template",
|
|
76
|
-
type: "singleSelect",
|
|
77
|
-
staticOptions: [],
|
|
78
|
-
returnObject: true,
|
|
79
|
-
};
|
|
80
|
-
exports.selectResourceQuestion = {
|
|
81
|
-
name: SolutionV3QuestionNames.resource,
|
|
82
|
-
title: "Select a resources",
|
|
83
|
-
type: "singleSelect",
|
|
84
|
-
staticOptions: [],
|
|
85
|
-
};
|
|
86
33
|
//# sourceMappingURL=questions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"questions.js","sourceRoot":"","sources":["../../../../src/plugins/solution/utils/questions.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;
|
|
1
|
+
{"version":3,"file":"questions.js","sourceRoot":"","sources":["../../../../src/plugins/solution/utils/questions.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAGlC,sDAA6F;AAE7F,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IACjC,wDAA6B,CAAA;IAC7B,8CAAmB,CAAA;IACnB,8CAAmB,CAAA;AACrB,CAAC,EAJW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAIlC;AAEY,QAAA,2BAA2B,GAAyB;IAC/D,IAAI,EAAE,uBAAuB,CAAC,OAAO;IACrC,KAAK,EAAE,yBAAyB;IAChC,IAAI,EAAE,cAAc;IACpB,aAAa,EAAE,EAAE;CAClB,CAAC;AAEW,QAAA,0BAA0B,GAAwB;IAC7D,IAAI,EAAE,uBAAuB,CAAC,OAAO;IACrC,KAAK,EAAE,0BAA0B;IACjC,IAAI,EAAE,aAAa;IACnB,aAAa,EAAE,EAAE;CAClB,CAAC;AAEW,QAAA,0BAA0B,GAAwB;IAC7D,IAAI,EAAE,uBAAuB,CAAC,YAAY;IAC1C,KAAK,EAAE,qBAAqB;IAC5B,IAAI,EAAE,aAAa;IACnB,aAAa,EAAE,CAAC,wBAAa,EAAE,wBAAa,EAAE,+BAAoB,CAAC;IACnE,OAAO,EAAE,CAAC,wBAAa,CAAC,EAAE,CAAC;IAC3B,gBAAgB,EAAE,IAAI;CACvB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/teamsfx-core",
|
|
3
|
-
"version": "1.3.0",
|
|
3
|
+
"version": "1.3.1-alpha.59b5e7c6.0",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"types": "build/index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"test:localdebug": "nyc mocha \"tests/plugins/resource/localdebug/**/*.test.ts\"",
|
|
14
14
|
"test:frontend": "nyc mocha \"tests/plugins/resource/frontend/**/*.test.ts\"",
|
|
15
15
|
"test:aad": "nyc mocha \"tests/plugins/resource/aad/**/*.test.ts\"",
|
|
16
|
+
"test:aadv3": "nyc mocha \"tests/plugins/resource/aad/v3/*.test.ts\"",
|
|
16
17
|
"test:simpleauth": "nyc mocha \"tests/plugins/resource/simpleauth/**/*.test.ts\"",
|
|
17
18
|
"test:sql": "nyc mocha \"tests/plugins/resource/sql/**/*.test.ts\"",
|
|
18
19
|
"test:identity": "nyc mocha \"tests/plugins/resource/identity/**/*.test.ts\"",
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
"test:unit": "nyc --no-clean mocha \"tests/**/*.test.ts\"",
|
|
24
25
|
"test:common": "nyc --no-clean mocha \"tests/common/*.test.ts\"",
|
|
25
26
|
"test:solution": "nyc mocha \"tests/plugins/solution/*.test.ts\"",
|
|
27
|
+
"test:solution:deploy": "nyc mocha \"tests/plugins/solution/solution.deploy.test.ts\"",
|
|
26
28
|
"test:solution:debug": "nyc mocha \"tests/plugins/solution/debug/**/*.test.ts\"",
|
|
27
29
|
"test:core": "nyc mocha \"tests/core/**/*.test.ts\"",
|
|
28
30
|
"test:core:sample": "nyc mocha \"tests/core/sample.test.ts\"",
|
|
@@ -35,8 +37,8 @@
|
|
|
35
37
|
"clean": "rm -rf build",
|
|
36
38
|
"build": "rimraf build && npx tsc -p ./",
|
|
37
39
|
"lint:fix": "eslint --fix \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
38
|
-
"
|
|
39
|
-
"prepublishOnly": "npm run test:unit && npm run build",
|
|
40
|
+
"postbuild": "node ./scripts/download-templates-zip.js $(git tag --list)",
|
|
41
|
+
"prepublishOnly": "npm run test:unit -- check-coverage --lines 0 && npm run build",
|
|
40
42
|
"package": "rimraf build && webpack --mode production --config ./webpack.config.js",
|
|
41
43
|
"check-sensitive": "npx eslint --plugin 'no-secrets' --cache --ignore-pattern 'package.json' --ignore-pattern 'package-lock.json'",
|
|
42
44
|
"precommit": "npm run check-sensitive && lint-staged",
|
|
@@ -57,13 +59,14 @@
|
|
|
57
59
|
"@azure/storage-blob": "^12.7.0",
|
|
58
60
|
"@dbpiper/timer": "1.0.0-beta.2",
|
|
59
61
|
"@feathersjs/hooks": "^0.6.5",
|
|
60
|
-
"@microsoft/teamsfx-api": "
|
|
62
|
+
"@microsoft/teamsfx-api": "0.14.1-alpha.59b5e7c6.0",
|
|
61
63
|
"@npmcli/arborist": "^4.2.0",
|
|
62
64
|
"@npmcli/package-json": "^1.0.1",
|
|
63
65
|
"@types/jwt-decode": "3.1.0",
|
|
64
66
|
"@types/proper-lockfile": "^4.1.1",
|
|
65
67
|
"adm-zip": "^0.5.5",
|
|
66
|
-
"ajv": "^
|
|
68
|
+
"ajv": "^8.5.0",
|
|
69
|
+
"ajv-draft-04": "^1.0.0",
|
|
67
70
|
"axios": "^0.21.2",
|
|
68
71
|
"cryptr": "^6.0.2",
|
|
69
72
|
"dateformat": "^4.5.1",
|
|
@@ -85,6 +88,7 @@
|
|
|
85
88
|
"md5": "^2.3.0",
|
|
86
89
|
"mime": "^2.5.2",
|
|
87
90
|
"mustache": "^4.2.0",
|
|
91
|
+
"nanoid": "^3.1.31",
|
|
88
92
|
"node-forge": "^1.0.0",
|
|
89
93
|
"node-ts-uuid": "^1.0.8",
|
|
90
94
|
"openapi-types": "^7.2.3",
|
|
@@ -131,6 +135,7 @@
|
|
|
131
135
|
"@types/node": "^14.14.21",
|
|
132
136
|
"@types/node-forge": "^0.9.7",
|
|
133
137
|
"@types/proxyquire": "^1.3.28",
|
|
138
|
+
"@types/rewire": "^2.5.28",
|
|
134
139
|
"@types/semver": "^7.3.4",
|
|
135
140
|
"@types/sinon": "^9.0.10",
|
|
136
141
|
"@types/tedious": "^4.0.3",
|
|
@@ -159,6 +164,7 @@
|
|
|
159
164
|
"nyc": "^15.1.0",
|
|
160
165
|
"prettier": "^2.4.1",
|
|
161
166
|
"proxyquire": "^2.1.3",
|
|
167
|
+
"rewire": "^6.0.0",
|
|
162
168
|
"sinon": "^9.2.2",
|
|
163
169
|
"source-map-support": "^0.5.19",
|
|
164
170
|
"tmp": "^0.2.1",
|
|
@@ -175,7 +181,7 @@
|
|
|
175
181
|
"resource/**/*",
|
|
176
182
|
"templates/**/*"
|
|
177
183
|
],
|
|
178
|
-
"gitHead": "
|
|
184
|
+
"gitHead": "10ab13c4aeb1ea72d8ccd4b0577e5b964a47a205",
|
|
179
185
|
"publishConfig": {
|
|
180
186
|
"access": "public"
|
|
181
187
|
},
|
package/resource/strings.json
CHANGED
|
@@ -61,7 +61,34 @@
|
|
|
61
61
|
"Collaboration": {
|
|
62
62
|
"ListCollaboratorsSuccess": "List M365 Teams App%s owners success, you can view it in Teams Toolkit output window",
|
|
63
63
|
"WithAadApp": "(With AAD App)",
|
|
64
|
-
"FailedToListCollaborators": "Failed to list Teams App owners for the project.\nError details: \n"
|
|
64
|
+
"FailedToListCollaborators": "Failed to list Teams App owners for the project.\nError details: \n",
|
|
65
|
+
"GrantingPermission": "Granting permission",
|
|
66
|
+
"EmailCannotBeEmptyOrSame":"Collaborator's email cannot be null or same as current user",
|
|
67
|
+
"CannotFindUserInCurrentTenant":"Cannot find user in current tenant, please check whether your email address is correct",
|
|
68
|
+
"GrantPermissionForUser":"Grant permission for user",
|
|
69
|
+
"FailedToGetEnvName": "Failed to get env name.",
|
|
70
|
+
"AccountToGrantPermission": "Account to grant permission: ",
|
|
71
|
+
"StartingGrantPermission":"Starting grant permission for environment: ",
|
|
72
|
+
"TenantId": "Tenant ID: ",
|
|
73
|
+
"FailedToGrantPermission":"Failed to grant permission for the below resources to user: %s.\n Resource details: \n",
|
|
74
|
+
"PermissionHasBeenGrantTo":"permission has been granted to ",
|
|
75
|
+
"GrantPermissionResourceId": ", Resource ID: ",
|
|
76
|
+
"SharePointTip":"\nIf added user is not a SharePoint App Catalog site admin, you need to manually setup access policy via SharePoint admin center, please refer to this link for more details: ",
|
|
77
|
+
"AzureTip":"\nIf added user cannot access Azure resources, you need to manually setup access policy via Azure portal, please refer to this link for more details: ",
|
|
78
|
+
"ListingM365Permission": "Listing M365 permissions\n",
|
|
79
|
+
"AccountUsedToCheck":"Account used to check: ",
|
|
80
|
+
"StartingListAllTeamsAppOwners": "Starting list all teams app owners for environment: ",
|
|
81
|
+
"M365TeamsAppId": "M365 Teams App (ID: ",
|
|
82
|
+
"SsoAadAppId":"), SSO AAD App (ID: ",
|
|
83
|
+
"TeamsAppOwner": "Teams App Owner: ",
|
|
84
|
+
"NotOwnerOfSsoAadApp":"(Not owner of SSO AAD app)",
|
|
85
|
+
"FailedToConvertProfile": "failed to convert profile ",
|
|
86
|
+
"StaringCheckPermission": "Starting check permission for environment: ",
|
|
87
|
+
"FailedToCheckPermission": "Failed to check permission for the below resources.\n Resource details: \n",
|
|
88
|
+
"CheckPermissionResourceId": "Resource ID: ",
|
|
89
|
+
"Undefined": "undefined",
|
|
90
|
+
"ResourceName": ", Resource Name: ",
|
|
91
|
+
"Permission": ", Permission: "
|
|
65
92
|
}
|
|
66
93
|
},
|
|
67
94
|
"plugins": {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -47,9 +47,11 @@ var teamsMobileOrDesktopAppClientId = '1fec8e78-bce4-4aaf-ab1b-5451cc387264'
|
|
|
47
47
|
var teamsWebAppClientId = '5e3ce6c0-2b1f-4285-8d4b-75ee78787346'
|
|
48
48
|
var officeWebAppClientId1 = '4345a7b9-9a63-4910-a426-35363201d503'
|
|
49
49
|
var officeWebAppClientId2 = '4765445b-32c6-49b0-83e6-1d93765276ca'
|
|
50
|
+
var officeDesktopAppClientId = '0ec893e0-5785-4de6-99da-4ed124e5296c'
|
|
50
51
|
var outlookDesktopAppClientId = 'd3590ed6-52b3-4102-aeff-aad2292ab01c'
|
|
51
|
-
var
|
|
52
|
-
var
|
|
52
|
+
var outlookWebAppClientId1 = '00000002-0000-0ff1-ce00-000000000000'
|
|
53
|
+
var outlookWebAppClientId2 = 'bc59ab01-8403-45c6-8796-ac3ef710b3e3'
|
|
54
|
+
var authorizedClientApplicationIds = '${teamsMobileOrDesktopAppClientId};${teamsWebAppClientId};${officeWebAppClientId1};${officeWebAppClientId2};${officeDesktopAppClientId};${outlookDesktopAppClientId};${outlookWebAppClientId1};${outlookWebAppClientId2}'
|
|
53
55
|
|
|
54
56
|
var currentAllowedOrigins = empty(currentConfigs.cors) ? [] : currentConfigs.cors.allowedOrigins
|
|
55
57
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -40,9 +40,11 @@ var teamsMobileOrDesktopAppClientId = '1fec8e78-bce4-4aaf-ab1b-5451cc387264'
|
|
|
40
40
|
var teamsWebAppClientId = '5e3ce6c0-2b1f-4285-8d4b-75ee78787346'
|
|
41
41
|
var officeWebAppClientId1 = '4345a7b9-9a63-4910-a426-35363201d503'
|
|
42
42
|
var officeWebAppClientId2 = '4765445b-32c6-49b0-83e6-1d93765276ca'
|
|
43
|
+
var officeDesktopAppClientId = '0ec893e0-5785-4de6-99da-4ed124e5296c'
|
|
43
44
|
var outlookDesktopAppClientId = 'd3590ed6-52b3-4102-aeff-aad2292ab01c'
|
|
44
|
-
var
|
|
45
|
-
var
|
|
45
|
+
var outlookWebAppClientId1 = '00000002-0000-0ff1-ce00-000000000000'
|
|
46
|
+
var outlookWebAppClientId2 = 'bc59ab01-8403-45c6-8796-ac3ef710b3e3'
|
|
47
|
+
var authorizedClientApplicationIds = '${teamsMobileOrDesktopAppClientId};${teamsWebAppClientId};${officeWebAppClientId1};${officeWebAppClientId2};${officeDesktopAppClientId};${outlookDesktopAppClientId};${outlookWebAppClientId1};${outlookWebAppClientId2}'
|
|
46
48
|
|
|
47
49
|
resource simpleAuthWebAppSettings 'Microsoft.Web/sites/config@2021-02-01' = {
|
|
48
50
|
name: '${webAppName}/appsettings'
|
|
@@ -7,21 +7,17 @@ param provisionOutputs object
|
|
|
7
7
|
param currentAppSettings object
|
|
8
8
|
|
|
9
9
|
var webappName = split(provisionOutputs.webappOutput.value.webappResourceId, '/')[8]
|
|
10
|
-
|
|
11
10
|
var m365ClientId = provisionParameters['m365ClientId']
|
|
12
11
|
{{#if (contains "fx-resource-key-vault" plugins)}}
|
|
13
12
|
var m365ClientSecret = \{{fx-resource-key-vault.References.m365ClientSecretReference}}
|
|
14
13
|
{{else}}
|
|
15
14
|
var m365ClientSecret = provisionParameters['m365ClientSecret']
|
|
16
15
|
{{/if}}
|
|
17
|
-
|
|
18
16
|
var m365TenantId = provisionParameters['m365TenantId']
|
|
19
17
|
var m365OauthAuthorityHost = provisionParameters['m365OauthAuthorityHost']
|
|
20
18
|
var oauthAuthority = uri(m365OauthAuthorityHost, m365TenantId)
|
|
21
|
-
|
|
22
|
-
var webappDomain = provisionOutputs.webappOutput.value.domain
|
|
23
19
|
var webappEndpoint = provisionOutputs.webappOutput.value.endpoint
|
|
24
|
-
|
|
20
|
+
var initiateLoginEndpoint = uri(webappEndpoint, 'auth-start.html')
|
|
25
21
|
{{#if (contains "fx-resource-bot" plugins) }}
|
|
26
22
|
var botAadAppClientId = provisionParameters['botAadAppClientId']
|
|
27
23
|
{{#if (contains "fx-resource-key-vault" plugins) }}
|
|
@@ -31,36 +27,14 @@ var botAadAppClientSecret = provisionParameters['botAadAppClientSecret']
|
|
|
31
27
|
{{/if}}
|
|
32
28
|
{{/if}}
|
|
33
29
|
|
|
34
|
-
{{#if (contains "fx-resource-bot" plugins) }}
|
|
35
|
-
var m365ApplicationIdUri = 'api://${webappDomain}/botid-${botAadAppClientId}'
|
|
36
|
-
{{else}}
|
|
37
|
-
var m365ApplicationIdUri = 'api://${webappDomain}/${m365ClientId}'
|
|
38
|
-
{{/if}}
|
|
39
|
-
var aadMetadataAddress = uri(m365OauthAuthorityHost, '${m365TenantId}/v2.0/.well-known/openid-configuration')
|
|
40
|
-
var initiateLoginEndpoint = uri(webappEndpoint, 'auth-start.html')
|
|
41
|
-
|
|
42
|
-
var teamsMobileOrDesktopAppClientId = '1fec8e78-bce4-4aaf-ab1b-5451cc387264'
|
|
43
|
-
var teamsWebAppClientId = '5e3ce6c0-2b1f-4285-8d4b-75ee78787346'
|
|
44
|
-
var officeWebAppClientId1 = '4345a7b9-9a63-4910-a426-35363201d503'
|
|
45
|
-
var officeWebAppClientId2 = '4765445b-32c6-49b0-83e6-1d93765276ca'
|
|
46
|
-
var outlookDesktopAppClientId = 'd3590ed6-52b3-4102-aeff-aad2292ab01c'
|
|
47
|
-
var outlookWebAppClientId = '00000002-0000-0ff1-ce00-000000000000'
|
|
48
|
-
var authorizedClientApplicationIds = '${teamsMobileOrDesktopAppClientId};${teamsWebAppClientId};${officeWebAppClientId1};${officeWebAppClientId2};${outlookDesktopAppClientId};${outlookWebAppClientId}'
|
|
49
|
-
|
|
50
30
|
resource appSettings 'Microsoft.Web/sites/config@2021-02-01' = {
|
|
51
31
|
name: '${webappName}/appsettings'
|
|
52
32
|
properties: union({
|
|
53
|
-
AAD_METADATA_ADDRESS: aadMetadataAddress
|
|
54
|
-
CLIENT_ID: m365ClientId
|
|
55
|
-
CLIENT_SECRET: m365ClientSecret
|
|
56
|
-
IDENTIFIER_URI: m365ApplicationIdUri
|
|
57
|
-
OAUTH_AUTHORITY: oauthAuthority
|
|
58
33
|
TAB_APP_ENDPOINT: webappEndpoint
|
|
59
34
|
TeamsFx__Authentication__ClientId: m365ClientId
|
|
35
|
+
TeamsFx__Authentication__ClientSecret: m365ClientSecret
|
|
60
36
|
TeamsFx__Authentication__InitiateLoginEndpoint: initiateLoginEndpoint
|
|
61
|
-
|
|
62
|
-
ALLOWED_APP_IDS: authorizedClientApplicationIds
|
|
63
|
-
M365_TENANT_ID: m365TenantId
|
|
37
|
+
TeamsFx__Authentication__OAuthAuthority: oauthAuthority
|
|
64
38
|
{{#if (contains "fx-resource-bot" plugins) }}
|
|
65
39
|
BOT_ID: botAadAppClientId
|
|
66
40
|
BOT_PASSWORD: botAadAppClientSecret
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
@secure()
|
|
2
|
-
param provisionParameters object
|
|
3
|
-
|
|
4
|
-
module provision './provision.bicep' = {
|
|
5
|
-
name: 'provisionResources'
|
|
6
|
-
params: {
|
|
7
|
-
provisionParameters: provisionParameters
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
1
|
module teamsFxConfig './config.bicep' = {
|
|
12
2
|
name: 'addTeamsFxConfigurations'
|
|
13
3
|
params: {
|
|
@@ -15,6 +5,4 @@ module teamsFxConfig './config.bicep' = {
|
|
|
15
5
|
provisionOutputs: provision
|
|
16
6
|
}
|
|
17
7
|
}
|
|
18
|
-
|
|
19
|
-
output provisionOutput object = provision
|
|
20
8
|
output teamsFxConfigurationOutput object = contains(reference(resourceId('Microsoft.Resources/deployments', teamsFxConfig.name), '2020-06-01'), 'outputs') ? teamsFxConfig : {}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"projectSettingsLoaderV3.d.ts","sourceRoot":"","sources":["../../../src/core/middleware/projectSettingsLoaderV3.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAgB,MAAM,uBAAuB,CAAC;AAkBjE,eAAO,MAAM,0BAA0B,EAAE,UA8BxC,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM,UAOzD"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.getProjectSettingsPath = exports.ProjectSettingsLoaderMW_V3 = void 0;
|
|
6
|
-
const tslib_1 = require("tslib");
|
|
7
|
-
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
8
|
-
const fs = tslib_1.__importStar(require("fs-extra"));
|
|
9
|
-
const path = tslib_1.__importStar(require("path"));
|
|
10
|
-
const uuid = tslib_1.__importStar(require("uuid"));
|
|
11
|
-
const __1 = require("..");
|
|
12
|
-
const fileUtils_1 = require("../../common/fileUtils");
|
|
13
|
-
const crypto_1 = require("../crypto");
|
|
14
|
-
const error_1 = require("../error");
|
|
15
|
-
const tools_1 = require("../tools");
|
|
16
|
-
const ProjectSettingsLoaderMW_V3 = async (ctx, next) => {
|
|
17
|
-
const inputs = ctx.arguments[ctx.arguments.length - 1];
|
|
18
|
-
if (!inputs.projectPath) {
|
|
19
|
-
ctx.result = teamsfx_api_1.err(error_1.NoProjectOpenedError());
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
const projectPathExist = await fs.pathExists(inputs.projectPath);
|
|
23
|
-
if (!projectPathExist) {
|
|
24
|
-
ctx.result = teamsfx_api_1.err(error_1.PathNotExistError(inputs.projectPath));
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
const settingsFile = getProjectSettingsPath(inputs.projectPath);
|
|
28
|
-
const projectSettings = await fileUtils_1.readJson(settingsFile);
|
|
29
|
-
if (!projectSettings.projectId) {
|
|
30
|
-
projectSettings.projectId = uuid.v4();
|
|
31
|
-
}
|
|
32
|
-
const validRes = tools_1.validateSettings(projectSettings);
|
|
33
|
-
if (validRes) {
|
|
34
|
-
ctx.result = teamsfx_api_1.err(error_1.InvalidProjectError(validRes));
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
ctx.projectSettings = projectSettings;
|
|
38
|
-
ctx.self.isFromSample = projectSettings.isFromSample === true;
|
|
39
|
-
ctx.self.settingsVersion = projectSettings.version;
|
|
40
|
-
__1.TOOLS.cryptoProvider = new crypto_1.LocalCrypto(projectSettings.projectId);
|
|
41
|
-
ctx.contextV2 = __1.createV2Context(projectSettings);
|
|
42
|
-
await next();
|
|
43
|
-
};
|
|
44
|
-
exports.ProjectSettingsLoaderMW_V3 = ProjectSettingsLoaderMW_V3;
|
|
45
|
-
function getProjectSettingsPath(projectPath) {
|
|
46
|
-
return path.resolve(projectPath, `.${teamsfx_api_1.ConfigFolderName}`, teamsfx_api_1.InputConfigsFolderName, teamsfx_api_1.ProjectSettingsFileName);
|
|
47
|
-
}
|
|
48
|
-
exports.getProjectSettingsPath = getProjectSettingsPath;
|
|
49
|
-
//# sourceMappingURL=projectSettingsLoaderV3.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"projectSettingsLoaderV3.js","sourceRoot":"","sources":["../../../src/core/middleware/projectSettingsLoaderV3.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAGlC,wDAOgC;AAChC,qDAA+B;AAC/B,mDAA6B;AAC7B,mDAA6B;AAC7B,0BAA6D;AAC7D,sDAAkD;AAClD,sCAAwC;AACxC,oCAAwF;AACxF,oCAA4C;AAErC,MAAM,0BAA0B,GAAe,KAAK,EACzD,GAAoB,EACpB,IAAkB,EAClB,EAAE;IACF,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAW,CAAC;IACjE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE;QACvB,GAAG,CAAC,MAAM,GAAG,iBAAG,CAAC,4BAAoB,EAAE,CAAC,CAAC;QACzC,OAAO;KACR;IACD,MAAM,gBAAgB,GAAG,MAAM,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IACjE,IAAI,CAAC,gBAAgB,EAAE;QACrB,GAAG,CAAC,MAAM,GAAG,iBAAG,CAAC,yBAAiB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;QACxD,OAAO;KACR;IACD,MAAM,YAAY,GAAG,sBAAsB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IAChE,MAAM,eAAe,GAAoB,MAAM,oBAAQ,CAAC,YAAY,CAAC,CAAC;IACtE,IAAI,CAAC,eAAe,CAAC,SAAS,EAAE;QAC9B,eAAe,CAAC,SAAS,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;KACvC;IACD,MAAM,QAAQ,GAAG,wBAAgB,CAAC,eAAe,CAAC,CAAC;IACnD,IAAI,QAAQ,EAAE;QACZ,GAAG,CAAC,MAAM,GAAG,iBAAG,CAAC,2BAAmB,CAAC,QAAQ,CAAC,CAAC,CAAC;QAChD,OAAO;KACR;IACD,GAAG,CAAC,eAAe,GAAG,eAAe,CAAC;IACrC,GAAG,CAAC,IAAY,CAAC,YAAY,GAAG,eAAe,CAAC,YAAY,KAAK,IAAI,CAAC;IACtE,GAAG,CAAC,IAAY,CAAC,eAAe,GAAG,eAAe,CAAC,OAAO,CAAC;IAC5D,SAAK,CAAC,cAAc,GAAG,IAAI,oBAAW,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;IAClE,GAAG,CAAC,SAAS,GAAG,mBAAe,CAAC,eAAe,CAAC,CAAC;IACjD,MAAM,IAAI,EAAE,CAAC;AACf,CAAC,CAAC;AA9BW,QAAA,0BAA0B,8BA8BrC;AAEF,SAAgB,sBAAsB,CAAC,WAAmB;IACxD,OAAO,IAAI,CAAC,OAAO,CACjB,WAAW,EACX,IAAI,8BAAgB,EAAE,EACtB,oCAAsB,EACtB,qCAAuB,CACxB,CAAC;AACJ,CAAC;AAPD,wDAOC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IApimResource.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/apim/interfaces/IApimResource.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;CAC3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IApimResource.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/apim/interfaces/IApimResource.ts"],"names":[],"mappings":""}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { AzureAccountProvider, FxError, Result, TokenProvider, v2, v3, Void } from "@microsoft/teamsfx-api";
|
|
2
|
-
export declare class AzureStoragePlugin implements v3.ResourcePlugin {
|
|
3
|
-
type: "resource";
|
|
4
|
-
resourceType: string;
|
|
5
|
-
description: string;
|
|
6
|
-
name: string;
|
|
7
|
-
generateResourceTemplate(ctx: v3.ContextWithManifest, inputs: v3.PluginAddResourceInputs): Promise<Result<v2.ResourceTemplate, FxError>>;
|
|
8
|
-
updateResourceTemplate(ctx: v3.ContextWithManifest, inputs: v3.PluginAddResourceInputs): Promise<Result<v2.ResourceTemplate, FxError>>;
|
|
9
|
-
private buildFrontendConfig;
|
|
10
|
-
configureResource(ctx: v2.Context, inputs: v2.InputsWithProjectPath, envInfo: v2.DeepReadonly<v3.EnvInfoV3>, tokenProvider: TokenProvider): Promise<Result<Void, FxError>>;
|
|
11
|
-
deploy(ctx: v2.Context, inputs: v3.PluginDeployInputs, envInfo: v2.DeepReadonly<v3.EnvInfoV3>, tokenProvider: AzureAccountProvider): Promise<Result<Void, FxError>>;
|
|
12
|
-
private updateDotEnv;
|
|
13
|
-
private collectEnvs;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=AzureStoragePlugin.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AzureStoragePlugin.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/v3/AzureStoragePlugin.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,oBAAoB,EAEpB,OAAO,EAEP,MAAM,EACN,aAAa,EACb,EAAE,EACF,EAAE,EACF,IAAI,EACL,MAAM,wBAAwB,CAAC;AAqBhC,qBACa,kBAAmB,YAAW,EAAE,CAAC,cAAc;IAC1D,IAAI,EAAE,UAAU,CAAc;IAC9B,YAAY,SAAmB;IAC/B,WAAW,SAAmB;IAC9B,IAAI,SAAsC;IACpC,wBAAwB,CAC5B,GAAG,EAAE,EAAE,CAAC,mBAAmB,EAC3B,MAAM,EAAE,EAAE,CAAC,uBAAuB,GACjC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IA0BnC,sBAAsB,CACjC,GAAG,EAAE,EAAE,CAAC,mBAAmB,EAC3B,MAAM,EAAE,EAAE,CAAC,uBAAuB,GACjC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;YAWlC,mBAAmB;IAkB3B,iBAAiB,CACrB,GAAG,EAAE,EAAE,CAAC,OAAO,EACf,MAAM,EAAE,EAAE,CAAC,qBAAqB,EAChC,OAAO,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC,SAAS,CAAC,EACtC,aAAa,EAAE,aAAa,GAC3B,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IA2B3B,MAAM,CACV,GAAG,EAAE,EAAE,CAAC,OAAO,EACf,MAAM,EAAE,EAAE,CAAC,kBAAkB,EAC7B,OAAO,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC,SAAS,CAAC,EACtC,aAAa,EAAE,oBAAoB,GAClC,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;YA6BnB,YAAY;IAe1B,OAAO,CAAC,WAAW;CAgCpB"}
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.AzureStoragePlugin = void 0;
|
|
6
|
-
const tslib_1 = require("tslib");
|
|
7
|
-
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
8
|
-
const path = tslib_1.__importStar(require("path"));
|
|
9
|
-
const typedi_1 = require("typedi");
|
|
10
|
-
const constants_1 = require("../../../../common/constants");
|
|
11
|
-
const tools_1 = require("../../../../common/tools");
|
|
12
|
-
const folder_1 = require("../../../../folder");
|
|
13
|
-
const constants_2 = require("../../../solution/fx-solution/v3/constants");
|
|
14
|
-
const clients_1 = require("../clients");
|
|
15
|
-
const configs_1 = require("../configs");
|
|
16
|
-
const constants_3 = require("../constants");
|
|
17
|
-
const env_1 = require("../env");
|
|
18
|
-
const deploy_1 = require("../ops/deploy");
|
|
19
|
-
const messages_1 = require("../resources/messages");
|
|
20
|
-
const progress_helper_1 = require("../utils/progress-helper");
|
|
21
|
-
const error_1 = require("./error");
|
|
22
|
-
let AzureStoragePlugin = class AzureStoragePlugin {
|
|
23
|
-
constructor() {
|
|
24
|
-
this.type = "resource";
|
|
25
|
-
this.resourceType = "Azure Storage";
|
|
26
|
-
this.description = "Azure Storage";
|
|
27
|
-
this.name = constants_2.BuiltInResourcePluginNames.storage;
|
|
28
|
-
}
|
|
29
|
-
async generateResourceTemplate(ctx, inputs) {
|
|
30
|
-
ctx.logProvider.info(messages_1.Messages.StartGenerateArmTemplates(this.name));
|
|
31
|
-
const solutionSettings = ctx.projectSetting.solutionSettings;
|
|
32
|
-
const pluginCtx = { plugins: solutionSettings.activeResourcePlugins };
|
|
33
|
-
const bicepTemplateDir = path.join(folder_1.getTemplatesFolder(), path.join("plugins", "resource", "storage", "bicep"));
|
|
34
|
-
const provisionFilePath = path.join(bicepTemplateDir, constants_1.Bicep.ProvisionFileName);
|
|
35
|
-
const moduleProvisionFilePath = path.join(bicepTemplateDir, "azureStorageProvision.bicep");
|
|
36
|
-
const provisionOrchestration = await tools_1.generateBicepFromFile(provisionFilePath, pluginCtx);
|
|
37
|
-
const provisionModules = await tools_1.generateBicepFromFile(moduleProvisionFilePath, pluginCtx);
|
|
38
|
-
const result = {
|
|
39
|
-
Provision: {
|
|
40
|
-
Orchestration: provisionOrchestration,
|
|
41
|
-
Modules: { azureStorage: provisionModules },
|
|
42
|
-
},
|
|
43
|
-
Reference: {
|
|
44
|
-
endpoint: "provisionOutputs.azureStorageOutput.value.endpoint",
|
|
45
|
-
domain: "provisionOutputs.azureStorageOutput.value.domain",
|
|
46
|
-
},
|
|
47
|
-
};
|
|
48
|
-
return teamsfx_api_1.ok({ kind: "bicep", template: result });
|
|
49
|
-
}
|
|
50
|
-
async updateResourceTemplate(ctx, inputs) {
|
|
51
|
-
ctx.logProvider.info(messages_1.Messages.StartUpdateArmTemplates(this.name));
|
|
52
|
-
const result = {
|
|
53
|
-
Reference: {
|
|
54
|
-
endpoint: "provisionOutputs.azureStorageOutput.value.endpoint",
|
|
55
|
-
domain: "provisionOutputs.azureStorageOutput.value.domain",
|
|
56
|
-
},
|
|
57
|
-
};
|
|
58
|
-
return teamsfx_api_1.ok({ kind: "bicep", template: result });
|
|
59
|
-
}
|
|
60
|
-
async buildFrontendConfig(envInfo, tokenProvider) {
|
|
61
|
-
const credentials = await tokenProvider.getAccountCredentialAsync();
|
|
62
|
-
if (!credentials) {
|
|
63
|
-
return teamsfx_api_1.err(new error_1.UnauthenticatedError());
|
|
64
|
-
}
|
|
65
|
-
const storage = envInfo.state[this.name];
|
|
66
|
-
const frontendConfig = new configs_1.FrontendConfig(tools_1.getSubscriptionIdFromResourceId(storage.storageResourceId), tools_1.getResourceGroupNameFromResourceId(storage.storageResourceId), envInfo.state.solution.location, tools_1.getStorageAccountNameFromResourceId(storage.storageResourceId), credentials);
|
|
67
|
-
return teamsfx_api_1.ok(frontendConfig);
|
|
68
|
-
}
|
|
69
|
-
async configureResource(ctx, inputs, envInfo, tokenProvider) {
|
|
70
|
-
ctx.logProvider.info(messages_1.Messages.StartPostProvision(this.name));
|
|
71
|
-
const progress = ctx.userInteraction.createProgressBar(messages_1.Messages.PostProvisionProgressTitle, Object.entries(progress_helper_1.PostProvisionSteps).length);
|
|
72
|
-
await progress.start(messages_1.Messages.ProgressStart);
|
|
73
|
-
await progress.next(progress_helper_1.PostProvisionSteps.EnableStaticWebsite);
|
|
74
|
-
const frontendConfigRes = await this.buildFrontendConfig(envInfo, tokenProvider.azureAccountProvider);
|
|
75
|
-
if (frontendConfigRes.isErr()) {
|
|
76
|
-
return teamsfx_api_1.err(frontendConfigRes.error);
|
|
77
|
-
}
|
|
78
|
-
const client = new clients_1.AzureStorageClient(frontendConfigRes.value);
|
|
79
|
-
try {
|
|
80
|
-
await client.enableStaticWebsite();
|
|
81
|
-
}
|
|
82
|
-
catch (e) {
|
|
83
|
-
return teamsfx_api_1.err(new error_1.EnableStaticWebsiteError());
|
|
84
|
-
}
|
|
85
|
-
await this.updateDotEnv(ctx, inputs, envInfo);
|
|
86
|
-
await progress.end(true);
|
|
87
|
-
ctx.logProvider.info(messages_1.Messages.EndPostProvision(this.name));
|
|
88
|
-
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
89
|
-
}
|
|
90
|
-
async deploy(ctx, inputs, envInfo, tokenProvider) {
|
|
91
|
-
ctx.logProvider.info(messages_1.Messages.StartDeploy(this.name));
|
|
92
|
-
const progress = ctx.userInteraction.createProgressBar(messages_1.Messages.DeployProgressTitle, Object.entries(progress_helper_1.DeploySteps).length);
|
|
93
|
-
await progress.start(messages_1.Messages.ProgressStart);
|
|
94
|
-
const frontendConfigRes = await this.buildFrontendConfig(envInfo, tokenProvider);
|
|
95
|
-
if (frontendConfigRes.isErr()) {
|
|
96
|
-
return teamsfx_api_1.err(frontendConfigRes.error);
|
|
97
|
-
}
|
|
98
|
-
const client = new clients_1.AzureStorageClient(frontendConfigRes.value);
|
|
99
|
-
//TODO deploy according to build type
|
|
100
|
-
const componentPath = inputs.dir
|
|
101
|
-
? inputs.dir
|
|
102
|
-
: path.join(inputs.projectPath, constants_3.FrontendPathInfo.WorkingDir);
|
|
103
|
-
const envName = envInfo.envName;
|
|
104
|
-
const envs = await env_1.loadEnvFile(env_1.envFilePath(envName, componentPath));
|
|
105
|
-
await deploy_1.FrontendDeployment.doFrontendBuildV3(componentPath, envs, envName, progress);
|
|
106
|
-
await deploy_1.FrontendDeployment.doFrontendDeploymentV3(client, componentPath, envName);
|
|
107
|
-
await progress.end(true);
|
|
108
|
-
ctx.logProvider.info(messages_1.Messages.EndDeploy(this.name));
|
|
109
|
-
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
110
|
-
}
|
|
111
|
-
async updateDotEnv(ctx, inputs, envInfo) {
|
|
112
|
-
const envs = this.collectEnvs(ctx, inputs, envInfo);
|
|
113
|
-
await env_1.saveEnvFile(env_1.envFilePath(envInfo.envName, path.join(inputs.projectPath, constants_3.FrontendPathInfo.WorkingDir)), {
|
|
114
|
-
teamsfxRemoteEnvs: envs,
|
|
115
|
-
customizedRemoteEnvs: {},
|
|
116
|
-
});
|
|
117
|
-
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
118
|
-
}
|
|
119
|
-
collectEnvs(ctx, inputs, envInfo) {
|
|
120
|
-
const envs = {};
|
|
121
|
-
const addToEnvs = (key, value) => {
|
|
122
|
-
// Check for both null and undefined, add to envs when value is "", 0 or false.
|
|
123
|
-
if (value != null) {
|
|
124
|
-
envs[key] = value;
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
const solutionSettings = ctx.projectSetting.solutionSettings;
|
|
128
|
-
if (solutionSettings.activeResourcePlugins.includes(constants_2.BuiltInResourcePluginNames.function)) {
|
|
129
|
-
const functionState = envInfo.state[constants_2.BuiltInResourcePluginNames.function];
|
|
130
|
-
addToEnvs(env_1.EnvKeys.FuncName, ctx.projectSetting.defaultFunctionName);
|
|
131
|
-
addToEnvs(env_1.EnvKeys.FuncEndpoint, functionState.functionEndpoint);
|
|
132
|
-
}
|
|
133
|
-
if (solutionSettings.activeResourcePlugins.includes(constants_2.BuiltInResourcePluginNames.simpleAuth)) {
|
|
134
|
-
const simpleAuthState = envInfo.state[constants_2.BuiltInResourcePluginNames.simpleAuth];
|
|
135
|
-
addToEnvs(env_1.EnvKeys.RuntimeEndpoint, simpleAuthState.endpoint);
|
|
136
|
-
addToEnvs(env_1.EnvKeys.StartLoginPage, constants_3.DependentPluginInfo.StartLoginPageURL);
|
|
137
|
-
}
|
|
138
|
-
if (solutionSettings.activeResourcePlugins.includes(constants_2.BuiltInResourcePluginNames.aad)) {
|
|
139
|
-
const aadState = envInfo.state[constants_2.BuiltInResourcePluginNames.aad];
|
|
140
|
-
addToEnvs(env_1.EnvKeys.ClientID, aadState.clientId);
|
|
141
|
-
}
|
|
142
|
-
return envs;
|
|
143
|
-
}
|
|
144
|
-
};
|
|
145
|
-
AzureStoragePlugin = tslib_1.__decorate([
|
|
146
|
-
typedi_1.Service(constants_2.BuiltInResourcePluginNames.storage)
|
|
147
|
-
], AzureStoragePlugin);
|
|
148
|
-
exports.AzureStoragePlugin = AzureStoragePlugin;
|
|
149
|
-
//# sourceMappingURL=AzureStoragePlugin.js.map
|