@microsoft/teamsfx-core 1.2.1 → 1.2.2-alpha.096c8289.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/common/armInterface.d.ts +0 -20
- package/build/common/armInterface.d.ts.map +1 -1
- package/build/common/constants.d.ts +9 -0
- package/build/common/constants.d.ts.map +1 -1
- package/build/common/constants.js +11 -1
- package/build/common/constants.js.map +1 -1
- package/build/common/deps-checker/constant/message.d.ts +0 -1
- package/build/common/deps-checker/constant/message.d.ts.map +1 -1
- package/build/common/deps-checker/constant/message.js +0 -4
- package/build/common/deps-checker/constant/message.js.map +1 -1
- package/build/common/deps-checker/depsChecker.d.ts +1 -0
- package/build/common/deps-checker/depsChecker.d.ts.map +1 -1
- package/build/common/deps-checker/depsChecker.js.map +1 -1
- package/build/common/deps-checker/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 +9 -5
- package/build/common/deps-checker/depsManager.d.ts.map +1 -1
- package/build/common/deps-checker/depsManager.js +29 -17
- package/build/common/deps-checker/depsManager.js.map +1 -1
- package/build/common/deps-checker/index.d.ts +1 -0
- package/build/common/deps-checker/index.d.ts.map +1 -1
- package/build/common/deps-checker/index.js +1 -0
- package/build/common/deps-checker/index.js.map +1 -1
- package/build/common/deps-checker/internal/dotnetChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/dotnetChecker.js +2 -1
- package/build/common/deps-checker/internal/dotnetChecker.js.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.js +2 -1
- package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
- package/build/common/deps-checker/internal/ngrokChecker.d.ts +1 -1
- package/build/common/deps-checker/internal/ngrokChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/ngrokChecker.js +2 -4
- package/build/common/deps-checker/internal/ngrokChecker.js.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.d.ts +1 -0
- package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.js +11 -1
- package/build/common/deps-checker/internal/nodeChecker.js.map +1 -1
- package/build/common/deps-checker/util/extensionInstaller.d.ts +3 -0
- package/build/common/deps-checker/util/extensionInstaller.d.ts.map +1 -0
- package/build/common/deps-checker/util/extensionInstaller.js +47 -0
- package/build/common/deps-checker/util/extensionInstaller.js.map +1 -0
- package/build/common/deps-checker/util/index.d.ts +5 -0
- package/build/common/deps-checker/util/index.d.ts.map +1 -0
- package/build/common/deps-checker/util/index.js +10 -0
- package/build/common/deps-checker/util/index.js.map +1 -0
- package/build/common/index.d.ts +1 -3
- package/build/common/index.d.ts.map +1 -1
- package/build/common/index.js +1 -3
- package/build/common/index.js.map +1 -1
- package/build/common/local/constants.d.ts +5 -42
- package/build/common/local/constants.d.ts.map +1 -1
- package/build/common/local/constants.js +7 -43
- package/build/common/local/constants.js.map +1 -1
- package/build/common/local/index.d.ts +6 -0
- package/build/common/local/index.d.ts.map +1 -0
- package/build/common/local/index.js +11 -0
- package/build/common/local/index.js.map +1 -0
- package/build/{plugins/solution/fx-solution/debug/util/certificate.d.ts → common/local/localCertificateManager.d.ts} +4 -6
- package/build/common/local/localCertificateManager.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution/debug/util/certificate.js → common/local/localCertificateManager.js} +35 -48
- package/build/common/local/localCertificateManager.js.map +1 -0
- package/build/common/local/localEnvManager.d.ts +6 -2
- package/build/common/local/localEnvManager.d.ts.map +1 -1
- package/build/common/local/localEnvManager.js +42 -2
- package/build/common/local/localEnvManager.js.map +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/packageJsonHelper.d.ts +1 -0
- package/build/common/local/packageJsonHelper.d.ts.map +1 -1
- package/build/common/local/packageJsonHelper.js +29 -1
- package/build/common/local/packageJsonHelper.js.map +1 -1
- package/build/common/local/portChecker.d.ts +2 -2
- package/build/common/local/portChecker.d.ts.map +1 -1
- package/build/common/local/portChecker.js +33 -50
- package/build/common/local/portChecker.js.map +1 -1
- package/build/{plugins/solution/fx-solution/debug/util → common/local}/process.d.ts +0 -0
- package/build/common/local/process.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution/debug/util → common/local}/process.js +0 -0
- package/build/common/local/process.js.map +1 -0
- package/build/common/local/projectSettingsHelper.d.ts +5 -5
- package/build/common/local/projectSettingsHelper.d.ts.map +1 -1
- package/build/common/local/projectSettingsHelper.js +26 -19
- package/build/common/local/projectSettingsHelper.js.map +1 -1
- package/build/common/local/taskDefinition.d.ts +1 -8
- package/build/common/local/taskDefinition.d.ts.map +1 -1
- package/build/common/local/taskDefinition.js +8 -56
- package/build/common/local/taskDefinition.js.map +1 -1
- package/build/common/localSettingsConstants.d.ts +3 -6
- package/build/common/localSettingsConstants.d.ts.map +1 -1
- package/build/common/localSettingsConstants.js +4 -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 +16 -14
- package/build/common/localSettingsProvider.js.map +1 -1
- package/build/common/permissionInterface.d.ts +2 -2
- package/build/common/permissionInterface.d.ts.map +1 -1
- package/build/common/permissionInterface.js +2 -2
- package/build/common/permissionInterface.js.map +1 -1
- package/build/common/projectSettingsValidator.d.ts +3 -0
- package/build/common/projectSettingsValidator.d.ts.map +1 -0
- package/build/common/projectSettingsValidator.js +51 -0
- package/build/common/projectSettingsValidator.js.map +1 -0
- package/build/common/samples-config.json +24 -12
- package/build/common/samples.d.ts +1 -0
- package/build/common/samples.d.ts.map +1 -1
- package/build/common/samples.js +1 -0
- package/build/common/samples.js.map +1 -1
- package/build/common/telemetry.d.ts +10 -3
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +12 -4
- package/build/common/telemetry.js.map +1 -1
- package/build/common/{templates.d.ts → template-utils/templates.d.ts} +0 -0
- package/build/common/template-utils/templates.d.ts.map +1 -0
- package/build/common/{templates.js → template-utils/templates.js} +1 -1
- package/build/common/template-utils/templates.js.map +1 -0
- package/build/common/{templatesActions.d.ts → template-utils/templatesActions.d.ts} +0 -0
- package/build/common/template-utils/templatesActions.d.ts.map +1 -0
- package/build/common/{templatesActions.js → template-utils/templatesActions.js} +5 -5
- package/build/common/template-utils/templatesActions.js.map +1 -0
- package/build/common/{templatesUtils.d.ts → template-utils/templatesUtils.d.ts} +2 -1
- package/build/common/template-utils/templatesUtils.d.ts.map +1 -0
- package/build/common/{templatesUtils.js → template-utils/templatesUtils.js} +26 -8
- package/build/common/template-utils/templatesUtils.js.map +1 -0
- package/build/common/templates-config.json +2 -2
- package/build/common/tools.d.ts +1 -8
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +41 -19
- 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 +4 -4
- package/build/core/environment.d.ts.map +1 -1
- package/build/core/environment.js +23 -2
- 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 +16 -2
- package/build/core/error.js.map +1 -1
- package/build/core/index.d.ts +11 -20
- package/build/core/index.d.ts.map +1 -1
- package/build/core/index.js +160 -259
- package/build/core/index.js.map +1 -1
- package/build/core/middleware/CommonErrorHandlerMW.d.ts +14 -0
- package/build/core/middleware/CommonErrorHandlerMW.d.ts.map +1 -0
- package/build/core/middleware/CommonErrorHandlerMW.js +58 -0
- package/build/core/middleware/CommonErrorHandlerMW.js.map +1 -0
- package/build/core/middleware/envInfoLoader.d.ts.map +1 -1
- package/build/core/middleware/envInfoLoader.js +2 -1
- 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/errorHandler.js +2 -1
- package/build/core/middleware/errorHandler.js.map +1 -1
- package/build/core/middleware/localSettingsLoader.d.ts.map +1 -1
- package/build/core/middleware/localSettingsLoader.js +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 +3 -17
- 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 +9 -5
- 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 +20 -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/permissionRequest.js +2 -2
- package/build/core/permissionRequest.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.d.ts.map +1 -1
- package/build/core/question.js +7 -4
- 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 +3 -31
- 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 +9 -9
- package/build/plugins/resource/aad/aadAppClient.d.ts.map +1 -1
- package/build/plugins/resource/aad/aadAppClient.js +30 -31
- package/build/plugins/resource/aad/aadAppClient.js.map +1 -1
- package/build/plugins/resource/aad/errors.d.ts.map +1 -1
- package/build/plugins/resource/aad/errors.js +1 -2
- package/build/plugins/resource/aad/errors.js.map +1 -1
- package/build/plugins/resource/aad/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/interfaces/IAADDefinition.d.ts +4 -0
- package/build/plugins/resource/aad/interfaces/IAADDefinition.d.ts.map +1 -1
- package/build/plugins/resource/aad/plugin.d.ts +4 -3
- package/build/plugins/resource/aad/plugin.d.ts.map +1 -1
- package/build/plugins/resource/aad/plugin.js +46 -59
- package/build/plugins/resource/aad/plugin.js.map +1 -1
- package/build/plugins/resource/aad/utils/common.d.ts +8 -4
- package/build/plugins/resource/aad/utils/common.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/common.js +70 -31
- package/build/plugins/resource/aad/utils/common.js.map +1 -1
- package/build/plugins/resource/aad/utils/configs.d.ts +10 -1
- package/build/plugins/resource/aad/utils/configs.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/configs.js +224 -38
- 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 +12 -13
- package/build/plugins/resource/aad/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/aad/v2/index.js +2 -1
- package/build/plugins/resource/aad/v2/index.js.map +1 -1
- package/build/plugins/resource/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 +0 -12
- package/build/plugins/resource/apim/config.d.ts.map +1 -1
- package/build/plugins/resource/apim/config.js +0 -24
- 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 +2 -10
- package/build/plugins/resource/apim/error.js.map +1 -1
- package/build/plugins/resource/apim/factory.d.ts.map +1 -1
- package/build/plugins/resource/apim/factory.js +2 -5
- package/build/plugins/resource/apim/factory.js.map +1 -1
- package/build/plugins/resource/apim/index.d.ts +0 -1
- package/build/plugins/resource/apim/index.d.ts.map +1 -1
- package/build/plugins/resource/apim/index.js +1 -24
- 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 +23 -63
- package/build/plugins/resource/apim/managers/apimManager.js.map +1 -1
- package/build/plugins/resource/apim/managers/questionManager.d.ts +2 -8
- package/build/plugins/resource/apim/managers/questionManager.d.ts.map +1 -1
- package/build/plugins/resource/apim/managers/questionManager.js +2 -28
- 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 +0 -6
- package/build/plugins/resource/apim/questions/vscodeQuestion.d.ts.map +1 -1
- package/build/plugins/resource/apim/questions/vscodeQuestion.js +7 -56
- 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/v2/index.d.ts +5 -7
- package/build/plugins/resource/apim/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/apim/v2/index.js +2 -7
- package/build/plugins/resource/apim/v2/index.js.map +1 -1
- 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 +9 -2
- package/build/plugins/resource/appstudio/constants.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/constants.js +126 -11
- package/build/plugins/resource/appstudio/constants.js.map +1 -1
- package/build/plugins/resource/appstudio/index.d.ts +2 -36
- package/build/plugins/resource/appstudio/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/index.js +1 -31
- package/build/plugins/resource/appstudio/index.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 +60 -19
- package/build/plugins/resource/appstudio/manifestTemplate.js.map +1 -1
- package/build/plugins/resource/appstudio/plugin.d.ts +4 -0
- package/build/plugins/resource/appstudio/plugin.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/plugin.js +66 -15
- 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/v2/index.d.ts +5 -5
- package/build/plugins/resource/appstudio/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/v2/index.js +2 -1
- package/build/plugins/resource/appstudio/v2/index.js.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.d.ts +15 -29
- package/build/plugins/resource/appstudio/v3/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.js +86 -17
- package/build/plugins/resource/appstudio/v3/index.js.map +1 -1
- package/build/plugins/resource/bot/aadRegistration.d.ts.map +1 -1
- package/build/plugins/resource/bot/aadRegistration.js +5 -4
- package/build/plugins/resource/bot/aadRegistration.js.map +1 -1
- package/build/plugins/resource/bot/configs/provisionConfig.d.ts.map +1 -1
- package/build/plugins/resource/bot/configs/provisionConfig.js +0 -10
- package/build/plugins/resource/bot/configs/provisionConfig.js.map +1 -1
- package/build/plugins/resource/bot/dotnet/constants.d.ts +5 -0
- package/build/plugins/resource/bot/dotnet/constants.d.ts.map +1 -0
- package/build/plugins/resource/bot/dotnet/constants.js +13 -0
- package/build/plugins/resource/bot/dotnet/constants.js.map +1 -0
- package/build/plugins/resource/bot/dotnet/plugin.d.ts +14 -0
- package/build/plugins/resource/bot/dotnet/plugin.d.ts.map +1 -0
- package/build/plugins/resource/bot/dotnet/plugin.js +62 -0
- package/build/plugins/resource/bot/dotnet/plugin.js.map +1 -0
- package/build/plugins/resource/bot/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.d.ts +5 -0
- package/build/plugins/resource/bot/index.d.ts.map +1 -1
- package/build/plugins/resource/bot/index.js +24 -13
- package/build/plugins/resource/bot/index.js.map +1 -1
- package/build/plugins/resource/bot/interface.d.ts +16 -0
- package/build/plugins/resource/bot/interface.d.ts.map +1 -0
- package/build/plugins/resource/bot/interface.js +5 -0
- package/build/plugins/resource/bot/interface.js.map +1 -0
- package/build/plugins/resource/bot/languageStrategy.d.ts +1 -1
- package/build/plugins/resource/bot/languageStrategy.d.ts.map +1 -1
- package/build/plugins/resource/bot/languageStrategy.js +1 -1
- package/build/plugins/resource/bot/languageStrategy.js.map +1 -1
- package/build/plugins/resource/bot/plugin.d.ts +2 -1
- package/build/plugins/resource/bot/plugin.d.ts.map +1 -1
- package/build/plugins/resource/bot/plugin.js +16 -135
- package/build/plugins/resource/bot/plugin.js.map +1 -1
- package/build/plugins/resource/bot/v2/index.d.ts +5 -5
- package/build/plugins/resource/bot/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/bot/v2/index.js +2 -1
- package/build/plugins/resource/bot/v2/index.js.map +1 -1
- package/build/plugins/resource/frontend/configs.d.ts +1 -1
- package/build/plugins/resource/frontend/configs.d.ts.map +1 -1
- package/build/plugins/resource/frontend/configs.js +3 -9
- package/build/plugins/resource/frontend/configs.js.map +1 -1
- package/build/plugins/resource/frontend/constants.d.ts +2 -8
- package/build/plugins/resource/frontend/constants.d.ts.map +1 -1
- package/build/plugins/resource/frontend/constants.js +3 -11
- package/build/plugins/resource/frontend/constants.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/constants.d.ts +56 -0
- package/build/plugins/resource/frontend/dotnet/constants.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/constants.js +73 -0
- package/build/plugins/resource/frontend/dotnet/constants.js.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/enum.d.ts +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/enum.d.ts.map +1 -1
- package/build/plugins/resource/frontend/dotnet/enum.js +41 -0
- package/build/plugins/resource/frontend/dotnet/enum.js.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.d.ts +0 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.d.ts.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.js +3 -3
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.js.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.d.ts +0 -0
- package/build/plugins/resource/frontend/dotnet/ops/deploy.d.ts.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.js +21 -6
- package/build/plugins/resource/frontend/dotnet/ops/deploy.js.map +1 -0
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts +32 -0
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/plugin.js +132 -0
- package/build/plugins/resource/frontend/dotnet/plugin.js.map +1 -0
- package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts +35 -0
- package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/resources/errors.js +10 -22
- package/build/plugins/resource/frontend/dotnet/resources/errors.js.map +1 -0
- package/build/plugins/resource/frontend/dotnet/resources/messages.d.ts +24 -0
- package/build/plugins/resource/frontend/dotnet/resources/messages.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/resources/messages.js +33 -0
- package/build/plugins/resource/frontend/dotnet/resources/messages.js.map +1 -0
- 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/utils/azure-client.d.ts +6 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.js +11 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.js.map +1 -0
- package/build/plugins/resource/frontend/index.d.ts +6 -4
- package/build/plugins/resource/frontend/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/index.js +29 -49
- package/build/plugins/resource/frontend/index.js.map +1 -1
- package/build/plugins/resource/frontend/interface.d.ts +13 -0
- package/build/plugins/resource/frontend/interface.d.ts.map +1 -0
- package/build/plugins/resource/frontend/interface.js +5 -0
- package/build/plugins/resource/frontend/interface.js.map +1 -0
- package/build/plugins/resource/frontend/ops/deploy.d.ts +3 -0
- package/build/plugins/resource/frontend/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/frontend/ops/deploy.js +58 -14
- 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 +1 -1
- package/build/plugins/resource/frontend/ops/scaffold.js.map +1 -1
- package/build/plugins/resource/frontend/plugin.d.ts +3 -3
- package/build/plugins/resource/frontend/plugin.d.ts.map +1 -1
- package/build/plugins/resource/frontend/plugin.js +27 -58
- package/build/plugins/resource/frontend/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/resources/errors.d.ts +23 -20
- package/build/plugins/resource/frontend/resources/errors.d.ts.map +1 -1
- package/build/plugins/resource/frontend/resources/errors.js +31 -67
- package/build/plugins/resource/frontend/resources/errors.js.map +1 -1
- package/build/plugins/resource/frontend/resources/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 +9 -8
- package/build/plugins/resource/frontend/resources/templateInfo.js.map +1 -1
- package/build/plugins/resource/frontend/utils/logger.d.ts +3 -1
- package/build/plugins/resource/frontend/utils/logger.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils/logger.js +9 -6
- package/build/plugins/resource/frontend/utils/logger.js.map +1 -1
- package/build/plugins/resource/frontend/utils/progress-helper.d.ts +9 -43
- package/build/plugins/resource/frontend/utils/progress-helper.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils/progress-helper.js +9 -100
- package/build/plugins/resource/frontend/utils/progress-helper.js.map +1 -1
- package/build/plugins/resource/frontend/v2/index.d.ts +5 -5
- package/build/plugins/resource/frontend/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/v2/index.js +5 -4
- package/build/plugins/resource/frontend/v2/index.js.map +1 -1
- package/build/plugins/resource/frontend/v3/error.d.ts +23 -0
- package/build/plugins/resource/frontend/v3/error.d.ts.map +1 -0
- package/build/plugins/resource/frontend/v3/error.js +66 -0
- package/build/plugins/resource/frontend/v3/error.js.map +1 -0
- package/build/plugins/resource/frontend/v3/index.d.ts +16 -0
- package/build/plugins/resource/frontend/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/frontend/v3/index.js +264 -0
- package/build/plugins/resource/frontend/v3/index.js.map +1 -0
- package/build/plugins/resource/function/index.d.ts +1 -1
- package/build/plugins/resource/function/index.d.ts.map +1 -1
- package/build/plugins/resource/function/index.js +8 -21
- package/build/plugins/resource/function/index.js.map +1 -1
- package/build/plugins/resource/function/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/function/ops/deploy.js +8 -9
- package/build/plugins/resource/function/ops/deploy.js.map +1 -1
- package/build/plugins/resource/function/ops/scaffold.js +1 -1
- package/build/plugins/resource/function/ops/scaffold.js.map +1 -1
- package/build/plugins/resource/function/plugin.d.ts.map +1 -1
- package/build/plugins/resource/function/plugin.js +35 -138
- package/build/plugins/resource/function/plugin.js.map +1 -1
- package/build/plugins/resource/function/resources/message.d.ts +0 -1
- package/build/plugins/resource/function/resources/message.d.ts.map +1 -1
- package/build/plugins/resource/function/resources/message.js +0 -1
- package/build/plugins/resource/function/resources/message.js.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts +11 -0
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts.map +1 -0
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.js +48 -0
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.js.map +1 -0
- package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.d.ts +6 -4
- package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.js +15 -8
- package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.js.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.d.ts +4 -3
- package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.js +5 -4
- package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.js.map +1 -1
- package/build/plugins/resource/function/utils/telemetry-helper.d.ts +1 -1
- package/build/plugins/resource/function/utils/telemetry-helper.d.ts.map +1 -1
- package/build/plugins/resource/function/v2/index.d.ts +5 -5
- package/build/plugins/resource/function/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/function/v2/index.js +2 -1
- package/build/plugins/resource/function/v2/index.js.map +1 -1
- package/build/plugins/resource/identity/index.d.ts +1 -1
- package/build/plugins/resource/identity/index.d.ts.map +1 -1
- package/build/plugins/resource/identity/index.js +4 -22
- package/build/plugins/resource/identity/index.js.map +1 -1
- package/build/plugins/resource/identity/v2/index.d.ts +4 -4
- package/build/plugins/resource/identity/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/identity/v2/index.js +2 -1
- package/build/plugins/resource/identity/v2/index.js.map +1 -1
- package/build/plugins/resource/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/plugin.d.ts.map +1 -1
- package/build/plugins/resource/keyvault/plugin.js +1 -2
- package/build/plugins/resource/keyvault/plugin.js.map +1 -1
- package/build/plugins/resource/keyvault/v2/index.d.ts +2 -2
- package/build/plugins/resource/keyvault/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/keyvault/v2/index.js +2 -1
- package/build/plugins/resource/keyvault/v2/index.js.map +1 -1
- package/build/plugins/resource/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 +2 -2
- package/build/plugins/resource/localdebug/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/localdebug/v2/index.js +3 -5
- package/build/plugins/resource/localdebug/v2/index.js.map +1 -1
- package/build/plugins/resource/simpleauth/index.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/index.js +6 -11
- package/build/plugins/resource/simpleauth/index.js.map +1 -1
- package/build/plugins/resource/simpleauth/plugin.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/plugin.js +4 -9
- package/build/plugins/resource/simpleauth/plugin.js.map +1 -1
- package/build/plugins/resource/simpleauth/v2/index.d.ts +4 -4
- package/build/plugins/resource/simpleauth/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/v2/index.js +2 -1
- package/build/plugins/resource/simpleauth/v2/index.js.map +1 -1
- package/build/plugins/resource/spfx/plugin.d.ts.map +1 -1
- package/build/plugins/resource/spfx/plugin.js +14 -9
- package/build/plugins/resource/spfx/plugin.js.map +1 -1
- package/build/plugins/resource/spfx/utils/constants.d.ts +5 -4
- package/build/plugins/resource/spfx/utils/constants.d.ts.map +1 -1
- package/build/plugins/resource/spfx/utils/constants.js +5 -4
- package/build/plugins/resource/spfx/utils/constants.js.map +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.d.ts.map +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.js +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.js.map +1 -1
- package/build/plugins/resource/spfx/v2/index.d.ts +2 -2
- package/build/plugins/resource/spfx/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/spfx/v2/index.js +2 -1
- package/build/plugins/resource/spfx/v2/index.js.map +1 -1
- package/build/plugins/resource/sql/config.d.ts +1 -0
- package/build/plugins/resource/sql/config.d.ts.map +1 -1
- package/build/plugins/resource/sql/config.js +1 -0
- package/build/plugins/resource/sql/config.js.map +1 -1
- package/build/plugins/resource/sql/constants.d.ts +3 -3
- package/build/plugins/resource/sql/constants.d.ts.map +1 -1
- package/build/plugins/resource/sql/constants.js +3 -3
- package/build/plugins/resource/sql/constants.js.map +1 -1
- package/build/plugins/resource/sql/errors.d.ts +1 -17
- package/build/plugins/resource/sql/errors.d.ts.map +1 -1
- package/build/plugins/resource/sql/errors.js +1 -17
- package/build/plugins/resource/sql/errors.js.map +1 -1
- package/build/plugins/resource/sql/index.d.ts.map +1 -1
- package/build/plugins/resource/sql/index.js +11 -11
- package/build/plugins/resource/sql/index.js.map +1 -1
- package/build/plugins/resource/sql/managementClient.d.ts +0 -4
- package/build/plugins/resource/sql/managementClient.d.ts.map +1 -1
- package/build/plugins/resource/sql/managementClient.js +14 -70
- package/build/plugins/resource/sql/managementClient.js.map +1 -1
- package/build/plugins/resource/sql/plugin.d.ts +4 -2
- package/build/plugins/resource/sql/plugin.d.ts.map +1 -1
- package/build/plugins/resource/sql/plugin.js +77 -123
- package/build/plugins/resource/sql/plugin.js.map +1 -1
- package/build/plugins/resource/sql/sqlClient.d.ts +2 -2
- package/build/plugins/resource/sql/sqlClient.d.ts.map +1 -1
- package/build/plugins/resource/sql/sqlClient.js +13 -12
- package/build/plugins/resource/sql/sqlClient.js.map +1 -1
- package/build/plugins/resource/sql/utils/dialogUtils.d.ts +0 -5
- package/build/plugins/resource/sql/utils/dialogUtils.d.ts.map +1 -1
- package/build/plugins/resource/sql/utils/dialogUtils.js +1 -7
- 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/v2/index.d.ts +5 -5
- package/build/plugins/resource/sql/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/sql/v2/index.js +2 -1
- package/build/plugins/resource/sql/v2/index.js.map +1 -1
- package/build/plugins/resource/utils4v2.d.ts +17 -21
- package/build/plugins/resource/utils4v2.d.ts.map +1 -1
- package/build/plugins/resource/utils4v2.js +12 -36
- package/build/plugins/resource/utils4v2.js.map +1 -1
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.d.ts +3 -3
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.js +7 -6
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.js.map +1 -1
- package/build/plugins/solution/fx-solution/arm.d.ts +8 -2
- package/build/plugins/solution/fx-solution/arm.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/arm.js +151 -76
- package/build/plugins/solution/fx-solution/arm.js.map +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.d.ts +4 -3
- package/build/plugins/solution/fx-solution/commonQuestions.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.js +11 -17
- package/build/plugins/solution/fx-solution/commonQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/constants.d.ts +3 -4
- package/build/plugins/solution/fx-solution/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/constants.js +4 -5
- package/build/plugins/solution/fx-solution/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/constants.d.ts +0 -5
- package/build/plugins/solution/fx-solution/debug/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/constants.js +1 -7
- package/build/plugins/solution/fx-solution/debug/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/provisionLocal.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/provisionLocal.js +19 -10
- package/build/plugins/solution/fx-solution/debug/provisionLocal.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts +2 -2
- package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/scaffolding.js +23 -4
- 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/question.d.ts +2 -2
- package/build/plugins/solution/fx-solution/question.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/question.js +32 -22
- package/build/plugins/solution/fx-solution/question.js.map +1 -1
- package/build/plugins/solution/fx-solution/solution.d.ts +2 -1
- package/build/plugins/solution/fx-solution/solution.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/solution.js +48 -29
- package/build/plugins/solution/fx-solution/solution.js.map +1 -1
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.d.ts +31 -0
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.js +222 -0
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.js.map +1 -0
- package/build/plugins/solution/fx-solution/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/adaptor.js +1 -1
- package/build/plugins/solution/fx-solution/v2/adaptor.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/checkPermission.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/checkPermission.js +32 -15
- package/build/plugins/solution/fx-solution/v2/checkPermission.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/createEnv.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/createEnv.js +1 -3
- package/build/plugins/solution/fx-solution/v2/createEnv.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/deploy.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/deploy.js +3 -3
- package/build/plugins/solution/fx-solution/v2/deploy.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts +3 -3
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js +217 -122
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts +1 -1
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js +6 -14
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/getQuestions.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/getQuestions.js +88 -99
- 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 -16
- 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 +26 -11
- 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.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provisionLocal.js +1 -6
- package/build/plugins/solution/fx-solution/v2/provisionLocal.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/publish.js +2 -2
- 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 +23 -9
- package/build/plugins/solution/fx-solution/v2/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/solution.d.ts +2 -2
- 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 -6
- package/build/plugins/solution/fx-solution/v2/utils.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.js +16 -16
- package/build/plugins/solution/fx-solution/v2/utils.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addFeature.d.ts +25 -0
- package/build/plugins/solution/fx-solution/v3/addFeature.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/addFeature.js +115 -0
- package/build/plugins/solution/fx-solution/v3/addFeature.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/constants.d.ts +9 -9
- package/build/plugins/solution/fx-solution/v3/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/constants.js +11 -11
- package/build/plugins/solution/fx-solution/v3/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/deploy.d.ts +2 -4
- 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 +15 -3
- package/build/plugins/solution/fx-solution/v3/provision.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provision.js +324 -81
- 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 +4 -3
- package/build/plugins/solution/fx-solution/v3/userTask.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/userTask.js +111 -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 +5 -17
- package/build/plugins/solution/spfx-solution/solution.d.ts.map +1 -1
- package/build/plugins/solution/spfx-solution/solution.js +5 -12
- 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 +21 -10
- package/resource/strings.json +50 -8
- package/templates/plugins/resource/apim/bicep/apimConfiguration.bicep +1 -0
- package/templates/plugins/resource/apim/bicep/apimProvision.bicep +7 -5
- package/templates/plugins/resource/apim/bicep/config.template.bicep +1 -0
- package/templates/plugins/resource/bot/bicep/botConfiguration.template.bicep +12 -12
- package/templates/plugins/resource/bot/bicep/botProvision.template.bicep +15 -11
- package/templates/plugins/resource/bot/bicep/config.template.bicep +2 -0
- package/templates/plugins/resource/bot/bot-msgext.js.default.zip +0 -0
- package/templates/plugins/resource/bot/bot-msgext.ts.default.zip +0 -0
- package/templates/plugins/resource/bot/bot.js.default.zip +0 -0
- package/templates/plugins/resource/bot/bot.ts.default.zip +0 -0
- package/templates/plugins/resource/bot/msgext.js.default.zip +0 -0
- package/templates/plugins/resource/bot/msgext.ts.default.zip +0 -0
- package/templates/plugins/resource/botservice/bicep/botServiceProvision.template.bicep +34 -0
- package/templates/plugins/resource/botservice/bicep/parameters.json +4 -0
- package/templates/plugins/resource/botservice/bicep/provision.template.bicep +13 -0
- package/templates/plugins/resource/frontend/bicep/frontendHostingProvision.bicep +4 -2
- package/templates/plugins/resource/frontend/bicep/provision.template.bicep +1 -0
- package/templates/plugins/resource/frontend/tab.js.default.zip +0 -0
- package/templates/plugins/resource/frontend/tab.ts.default.zip +0 -0
- package/templates/plugins/resource/function/bicep/config.template.bicep +2 -0
- package/templates/plugins/resource/function/bicep/functionConfiguration.template.bicep +15 -15
- package/templates/plugins/resource/function/bicep/functionProvision.template.bicep +17 -14
- package/templates/plugins/resource/function/function-base.js.default.zip +0 -0
- package/templates/plugins/resource/function/function-base.ts.default.zip +0 -0
- package/templates/plugins/resource/function/function-triggers.js.HTTPTrigger.zip +0 -0
- package/templates/plugins/resource/function/function-triggers.ts.HTTPTrigger.zip +0 -0
- package/templates/plugins/resource/identity/bicep/identityProvision.template.bicep +2 -1
- package/templates/plugins/resource/keyvault/bicep/keyVaultProvision.template.bicep +9 -7
- package/templates/plugins/resource/simpleauth/bicep/config.template.bicep +2 -0
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthConfiguration.template.bicep +7 -7
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthProvision.template.bicep +9 -6
- package/templates/plugins/resource/sql/bicep/newDatabase.orchestration.template.bicep +5 -0
- package/templates/plugins/resource/sql/bicep/newDatabaseProvision.template.bicep +15 -0
- package/templates/plugins/resource/sql/bicep/sqlProvision.template.bicep +9 -5
- package/templates/plugins/resource/storage/bicep/azureStorageProvision.bicep +25 -0
- package/templates/plugins/resource/storage/bicep/provision.template.bicep +15 -0
- package/templates/plugins/resource/webapp/bicep/config.template.bicep +10 -0
- package/templates/plugins/resource/webapp/bicep/provision.template.bicep +16 -0
- package/templates/plugins/resource/webapp/bicep/webappConfiguration.template.bicep +74 -0
- package/templates/plugins/resource/webapp/bicep/webappProvision.template.bicep +48 -0
- package/templates/plugins/solution/{main.bicep → mainConfig.bicep} +0 -12
- package/templates/plugins/solution/mainProvision.bicep +10 -0
- package/build/common/templates.d.ts.map +0 -1
- package/build/common/templates.js.map +0 -1
- package/build/common/templatesActions.d.ts.map +0 -1
- package/build/common/templatesActions.js.map +0 -1
- package/build/common/templatesUtils.d.ts.map +0 -1
- package/build/common/templatesUtils.js.map +0 -1
- package/build/core/middleware/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/blazor/constants.d.ts +0 -75
- package/build/plugins/resource/frontend/blazor/constants.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/constants.js +0 -98
- package/build/plugins/resource/frontend/blazor/constants.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/enum.js +0 -39
- package/build/plugins/resource/frontend/blazor/enum.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/ops/deploy.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/ops/deploy.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/ops/provision.d.ts +0 -8
- package/build/plugins/resource/frontend/blazor/ops/provision.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/ops/provision.js +0 -42
- package/build/plugins/resource/frontend/blazor/ops/provision.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/plugin.d.ts +0 -35
- package/build/plugins/resource/frontend/blazor/plugin.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/plugin.js +0 -190
- package/build/plugins/resource/frontend/blazor/plugin.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/errors.d.ts +0 -41
- package/build/plugins/resource/frontend/blazor/resources/errors.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/errors.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/messages.d.ts +0 -13
- package/build/plugins/resource/frontend/blazor/resources/messages.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/messages.js +0 -20
- package/build/plugins/resource/frontend/blazor/resources/messages.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/utils/azure-client.d.ts +0 -21
- package/build/plugins/resource/frontend/blazor/utils/azure-client.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/utils/azure-client.js +0 -47
- package/build/plugins/resource/frontend/blazor/utils/azure-client.js.map +0 -1
- package/build/plugins/resource/frontend/utils/azure-client.d.ts +0 -12
- package/build/plugins/resource/frontend/utils/azure-client.d.ts.map +0 -1
- package/build/plugins/resource/frontend/utils/azure-client.js +0 -29
- package/build/plugins/resource/frontend/utils/azure-client.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.d.ts +0 -9
- package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.js +0 -55
- package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/checker.d.ts +0 -54
- package/build/plugins/resource/function/utils/depsChecker/checker.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/checker.js +0 -104
- package/build/plugins/resource/function/utils/depsChecker/checker.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/common.d.ts +0 -84
- package/build/plugins/resource/function/utils/depsChecker/common.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/common.js +0 -136
- package/build/plugins/resource/function/utils/depsChecker/common.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/cpUtils.d.ts +0 -22
- package/build/plugins/resource/function/utils/depsChecker/cpUtils.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/cpUtils.js +0 -105
- package/build/plugins/resource/function/utils/depsChecker/cpUtils.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.d.ts +0 -53
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.js +0 -387
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/errors.d.ts +0 -14
- package/build/plugins/resource/function/utils/depsChecker/errors.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/errors.js +0 -41
- package/build/plugins/resource/function/utils/depsChecker/errors.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts +0 -26
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js +0 -111
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/certificate.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/certificate.js.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/process.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/process.js.map +0 -1
- package/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 -6
- package/build/plugins/solution/fx-solution/v3/addModule.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/v3/addModule.js +0 -35
- package/build/plugins/solution/fx-solution/v3/addModule.js.map +0 -1
- package/build/plugins/solution/fx-solution/v3/addResource.d.ts +0 -37
- package/build/plugins/solution/fx-solution/v3/addResource.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/v3/addResource.js +0 -261
- 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 -35
- 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 -13
- package/build/plugins/solution/fx-solution/v3/provisionLocal.js.map +0 -1
- package/build/plugins/solution/fx-solution/v3/scaffold.d.ts +0 -27
- package/build/plugins/solution/fx-solution/v3/scaffold.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/v3/scaffold.js +0 -241
- package/build/plugins/solution/fx-solution/v3/scaffold.js.map +0 -1
- package/build/plugins/solution/spfx-solution/addModule.d.ts +0 -5
- 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 -13
- package/build/plugins/solution/spfx-solution/scaffold.d.ts.map +0 -1
- package/build/plugins/solution/spfx-solution/scaffold.js +0 -105
- package/build/plugins/solution/spfx-solution/scaffold.js.map +0 -1
- package/resource/plugins/resource/function/dotnet-install.ps1 +0 -1095
- package/resource/plugins/resource/function/dotnet-install.sh +0 -1222
|
@@ -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,M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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,75 +0,0 @@
|
|
|
1
|
-
export declare class Constants {
|
|
2
|
-
static readonly emptyString = "";
|
|
3
|
-
}
|
|
4
|
-
export declare class AzureInfo {
|
|
5
|
-
static readonly webappNameLenMax = 24;
|
|
6
|
-
static readonly suffixLenMax = 12;
|
|
7
|
-
static readonly zipDeployURL: (appName: string) => string;
|
|
8
|
-
static readonly aadMetadataAddress: (tenantId: string) => string;
|
|
9
|
-
}
|
|
10
|
-
export declare class RegularExpr {
|
|
11
|
-
static readonly allCharToBeSkippedInName: RegExp;
|
|
12
|
-
static readonly targetFramework: RegExp;
|
|
13
|
-
}
|
|
14
|
-
export declare class DefaultProvisionConfigs {
|
|
15
|
-
static readonly appServicePlansConfig: (location: string) => {
|
|
16
|
-
location: string;
|
|
17
|
-
kind: string;
|
|
18
|
-
sku: {
|
|
19
|
-
name: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
static readonly webAppConfig: (location: string) => {
|
|
23
|
-
kind: string;
|
|
24
|
-
location: string;
|
|
25
|
-
sku: {
|
|
26
|
-
name: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
export declare class BlazorPluginInfo {
|
|
31
|
-
static readonly pluginName = "fx-resource-blazor";
|
|
32
|
-
static readonly displayName = "Blazor";
|
|
33
|
-
static readonly alias = "bz";
|
|
34
|
-
static readonly issueLink = "https://github.com/OfficeDev/TeamsFx/issues/new";
|
|
35
|
-
static readonly helpLink = "https://aka.ms/teamsfx-bz-help";
|
|
36
|
-
static readonly persistentConfig: string[];
|
|
37
|
-
static readonly defaultFramework = "net6.0";
|
|
38
|
-
static readonly defaultRuntime = "win-x86";
|
|
39
|
-
}
|
|
40
|
-
export declare class BlazorPathInfo {
|
|
41
|
-
static readonly publishFolderPath: (workingPath: string, framework?: string, runtime?: string) => string;
|
|
42
|
-
}
|
|
43
|
-
export declare class BlazorCommands {
|
|
44
|
-
static readonly buildRelease: (runtime: string) => string;
|
|
45
|
-
}
|
|
46
|
-
export declare class DependentPluginInfo {
|
|
47
|
-
static readonly solutionPluginName = "solution";
|
|
48
|
-
static readonly subscriptionId = "subscriptionId";
|
|
49
|
-
static readonly resourceGroupName = "resourceGroupName";
|
|
50
|
-
static readonly resourceNameSuffix = "resourceNameSuffix";
|
|
51
|
-
static readonly location = "location";
|
|
52
|
-
static readonly remoteTeamsAppId = "remoteTeamsAppId";
|
|
53
|
-
static readonly functionPluginName = "fx-resource-function";
|
|
54
|
-
static readonly functionEndpoint = "functionEndpoint";
|
|
55
|
-
static readonly runtimePluginName = "fx-resource-simple-auth";
|
|
56
|
-
static readonly runtimeEndpoint = "endpoint";
|
|
57
|
-
static readonly startLoginPageURL = "auth-start.html";
|
|
58
|
-
static readonly aadPluginName = "fx-resource-aad-app-for-teams";
|
|
59
|
-
static readonly clientID = "clientId";
|
|
60
|
-
static readonly tenantId = "tenantId";
|
|
61
|
-
static readonly aadClientSecret = "clientSecret";
|
|
62
|
-
static readonly oauthHost = "oauthHost";
|
|
63
|
-
static readonly applicationIdUris = "applicationIdUris";
|
|
64
|
-
static readonly botPluginName = "fx-resource-bot";
|
|
65
|
-
static readonly botId = "botId";
|
|
66
|
-
static readonly botPassword = "botPassword";
|
|
67
|
-
}
|
|
68
|
-
export declare class BlazorConfigInfo {
|
|
69
|
-
static readonly webAppName = "webAppName";
|
|
70
|
-
static readonly appServicePlanName = "appServicePlanName";
|
|
71
|
-
static readonly webAppEndpoint = "endpoint";
|
|
72
|
-
static readonly webAppDomain = "domain";
|
|
73
|
-
static readonly projectFilePath = "projectFilePath";
|
|
74
|
-
}
|
|
75
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/blazor/constants.ts"],"names":[],"mappings":"AAKA,qBAAa,SAAS;IACpB,MAAM,CAAC,QAAQ,CAAC,WAAW,MAAM;CAClC;AAED,qBAAa,SAAS;IACpB,MAAM,CAAC,QAAQ,CAAC,gBAAgB,MAAM;IACtC,MAAM,CAAC,QAAQ,CAAC,YAAY,MAAM;IAClC,MAAM,CAAC,QAAQ,CAAC,YAAY,YAAa,MAAM,YACY;IAE3D,MAAM,CAAC,QAAQ,CAAC,kBAAkB,aAAc,MAAM,YACkC;CACzF;AAED,qBAAa,WAAW;IACtB,MAAM,CAAC,QAAQ,CAAC,wBAAwB,EAAE,MAAM,CAAmB;IACnE,MAAM,CAAC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAwC;CAChF;AAED,qBAAa,uBAAuB;IAClC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,aAAc,MAAM;;;;;;MAMtD;IAEH,MAAM,CAAC,QAAQ,CAAC,YAAY,aAAc,MAAM;;;;;;MAM7C;CACJ;AAED,qBAAa,gBAAgB;IAC3B,MAAM,CAAC,QAAQ,CAAC,UAAU,wBAAwB;IAClD,MAAM,CAAC,QAAQ,CAAC,WAAW,YAAY;IACvC,MAAM,CAAC,QAAQ,CAAC,KAAK,Q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B,uBAAuB;IAExD,MAAM,CAAC,QAAQ,CAAC,aAAa,qBAAqB;IAClD,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAW;IAChC,MAAM,CAAC,QAAQ,CAAC,WAAW,iBAAiB;CAC7C;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"}
|
|
@@ -1,98 +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.BlazorConfigInfo = exports.DependentPluginInfo = exports.BlazorCommands = exports.BlazorPathInfo = exports.BlazorPluginInfo = exports.DefaultProvisionConfigs = exports.RegularExpr = exports.AzureInfo = exports.Constants = void 0;
|
|
6
|
-
const tslib_1 = require("tslib");
|
|
7
|
-
const path_1 = tslib_1.__importDefault(require("path"));
|
|
8
|
-
class Constants {
|
|
9
|
-
}
|
|
10
|
-
exports.Constants = Constants;
|
|
11
|
-
Constants.emptyString = "";
|
|
12
|
-
class AzureInfo {
|
|
13
|
-
}
|
|
14
|
-
exports.AzureInfo = AzureInfo;
|
|
15
|
-
AzureInfo.webappNameLenMax = 24;
|
|
16
|
-
AzureInfo.suffixLenMax = 12;
|
|
17
|
-
AzureInfo.zipDeployURL = (appName) => `https://${appName}.scm.azurewebsites.net/api/zipdeploy`;
|
|
18
|
-
// TODO: static readonly requiredResourceProviders = ["Microsoft.Web"];
|
|
19
|
-
AzureInfo.aadMetadataAddress = (tenantId) => `https://login.microsoftonline.com/${tenantId}/v2.0/.well-known/openid-configuration`;
|
|
20
|
-
class RegularExpr {
|
|
21
|
-
}
|
|
22
|
-
exports.RegularExpr = RegularExpr;
|
|
23
|
-
RegularExpr.allCharToBeSkippedInName = /[^a-zA-Z0-9]/g;
|
|
24
|
-
RegularExpr.targetFramework = /(?<=<TargetFramework>)(.*)(?=<)/gim;
|
|
25
|
-
class DefaultProvisionConfigs {
|
|
26
|
-
}
|
|
27
|
-
exports.DefaultProvisionConfigs = DefaultProvisionConfigs;
|
|
28
|
-
DefaultProvisionConfigs.appServicePlansConfig = (location) => ({
|
|
29
|
-
location: location,
|
|
30
|
-
kind: "app",
|
|
31
|
-
sku: {
|
|
32
|
-
name: "B1",
|
|
33
|
-
},
|
|
34
|
-
});
|
|
35
|
-
DefaultProvisionConfigs.webAppConfig = (location) => ({
|
|
36
|
-
kind: "app",
|
|
37
|
-
location: location,
|
|
38
|
-
sku: {
|
|
39
|
-
name: "B1",
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
|
-
class BlazorPluginInfo {
|
|
43
|
-
}
|
|
44
|
-
exports.BlazorPluginInfo = BlazorPluginInfo;
|
|
45
|
-
BlazorPluginInfo.pluginName = "fx-resource-blazor";
|
|
46
|
-
BlazorPluginInfo.displayName = "Blazor";
|
|
47
|
-
BlazorPluginInfo.alias = "bz";
|
|
48
|
-
BlazorPluginInfo.issueLink = "https://github.com/OfficeDev/TeamsFx/issues/new";
|
|
49
|
-
BlazorPluginInfo.helpLink = "https://aka.ms/teamsfx-bz-help";
|
|
50
|
-
BlazorPluginInfo.persistentConfig = [
|
|
51
|
-
"webAppName",
|
|
52
|
-
"appServicePlanName",
|
|
53
|
-
"endpoint",
|
|
54
|
-
"domain",
|
|
55
|
-
"projectFilePath",
|
|
56
|
-
];
|
|
57
|
-
BlazorPluginInfo.defaultFramework = "net6.0";
|
|
58
|
-
BlazorPluginInfo.defaultRuntime = "win-x86";
|
|
59
|
-
class BlazorPathInfo {
|
|
60
|
-
}
|
|
61
|
-
exports.BlazorPathInfo = BlazorPathInfo;
|
|
62
|
-
BlazorPathInfo.publishFolderPath = (workingPath, framework = BlazorPluginInfo.defaultFramework, runtime = BlazorPluginInfo.defaultRuntime) => path_1.default.join(workingPath, "bin", "Release", framework, runtime, "publish");
|
|
63
|
-
class BlazorCommands {
|
|
64
|
-
}
|
|
65
|
-
exports.BlazorCommands = BlazorCommands;
|
|
66
|
-
BlazorCommands.buildRelease = (runtime) => `dotnet publish --configuration Release --runtime ${runtime} --self-contained`;
|
|
67
|
-
class DependentPluginInfo {
|
|
68
|
-
}
|
|
69
|
-
exports.DependentPluginInfo = DependentPluginInfo;
|
|
70
|
-
DependentPluginInfo.solutionPluginName = "solution";
|
|
71
|
-
DependentPluginInfo.subscriptionId = "subscriptionId";
|
|
72
|
-
DependentPluginInfo.resourceGroupName = "resourceGroupName";
|
|
73
|
-
DependentPluginInfo.resourceNameSuffix = "resourceNameSuffix";
|
|
74
|
-
DependentPluginInfo.location = "location";
|
|
75
|
-
DependentPluginInfo.remoteTeamsAppId = "remoteTeamsAppId";
|
|
76
|
-
DependentPluginInfo.functionPluginName = "fx-resource-function";
|
|
77
|
-
DependentPluginInfo.functionEndpoint = "functionEndpoint";
|
|
78
|
-
DependentPluginInfo.runtimePluginName = "fx-resource-simple-auth";
|
|
79
|
-
DependentPluginInfo.runtimeEndpoint = "endpoint";
|
|
80
|
-
DependentPluginInfo.startLoginPageURL = "auth-start.html";
|
|
81
|
-
DependentPluginInfo.aadPluginName = "fx-resource-aad-app-for-teams";
|
|
82
|
-
DependentPluginInfo.clientID = "clientId";
|
|
83
|
-
DependentPluginInfo.tenantId = "tenantId";
|
|
84
|
-
DependentPluginInfo.aadClientSecret = "clientSecret";
|
|
85
|
-
DependentPluginInfo.oauthHost = "oauthHost";
|
|
86
|
-
DependentPluginInfo.applicationIdUris = "applicationIdUris";
|
|
87
|
-
DependentPluginInfo.botPluginName = "fx-resource-bot";
|
|
88
|
-
DependentPluginInfo.botId = "botId";
|
|
89
|
-
DependentPluginInfo.botPassword = "botPassword";
|
|
90
|
-
class BlazorConfigInfo {
|
|
91
|
-
}
|
|
92
|
-
exports.BlazorConfigInfo = BlazorConfigInfo;
|
|
93
|
-
BlazorConfigInfo.webAppName = "webAppName";
|
|
94
|
-
BlazorConfigInfo.appServicePlanName = "appServicePlanName";
|
|
95
|
-
BlazorConfigInfo.webAppEndpoint = "endpoint";
|
|
96
|
-
BlazorConfigInfo.webAppDomain = "domain";
|
|
97
|
-
BlazorConfigInfo.projectFilePath = "projectFilePath";
|
|
98
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/blazor/constants.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,wDAAwB;AAExB,MAAa,SAAS;;AAAtB,8BAEC;AADiB,qBAAW,GAAG,EAAE,CAAC;AAGnC,MAAa,SAAS;;AAAtB,8BAQC;AAPiB,0BAAgB,GAAG,EAAE,CAAC;AACtB,sBAAY,GAAG,EAAE,CAAC;AAClB,sBAAY,GAAG,CAAC,OAAe,EAAE,EAAE,CACjD,WAAW,OAAO,sCAAsC,CAAC;AAC3D,uEAAuE;AACvD,4BAAkB,GAAG,CAAC,QAAgB,EAAE,EAAE,CACxD,qCAAqC,QAAQ,wCAAwC,CAAC;AAG1F,MAAa,WAAW;;AAAxB,kCAGC;AAFiB,oCAAwB,GAAW,eAAe,CAAC;AACnD,2BAAe,GAAW,oCAAoC,CAAC;AAGjF,MAAa,uBAAuB;;AAApC,0DAgBC;AAfiB,6CAAqB,GAAG,CAAC,QAAgB,EAAE,EAAE,CAAC,CAAC;IAC7D,QAAQ,EAAE,QAAQ;IAClB,IAAI,EAAE,KAAK;IACX,GAAG,EAAE;QACH,IAAI,EAAE,IAAI;KACX;CACF,CAAC,CAAC;AAEa,oCAAY,GAAG,CAAC,QAAgB,EAAE,EAAE,CAAC,CAAC;IACpD,IAAI,EAAE,KAAK;IACX,Q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AiB,GAAG,iBAAiB,CAAC;AAEtC,iCAAa,GAAG,+BAA+B,CAAC;AAChD,4BAAQ,GAAG,UAAU,CAAC;AACtB,4BAAQ,GAAG,UAAU,CAAC;AACtB,mCAAe,GAAG,cAAc,CAAC;AACjC,6BAAS,GAAG,WAAW,CAAC;AACxB,qCAAiB,GAAG,mBAAmB,CAAC;AAExC,iCAAa,GAAG,iBAAiB,CAAC;AAClC,yBAAK,GAAG,OAAO,CAAC;AAChB,+BAAW,GAAG,aAAa,CAAC;AAG9C,MAAa,gBAAgB;;AAA7B,4CAMC;AALiB,2BAAU,GAAG,YAAY,CAAC;AAC1B,mCAAkB,GAAG,oBAAoB,CAAC;AAC1C,+BAAc,GAAG,UAAU,CAAC;AAC5B,6BAAY,GAAG,QAAQ,CAAC;AACxB,gCAAe,GAAG,iBAAiB,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ResourceType = exports.AppSettingsKey = exports.BlazorConfigKey = void 0;
|
|
4
|
-
var BlazorConfigKey;
|
|
5
|
-
(function (BlazorConfigKey) {
|
|
6
|
-
/* Config from solution */
|
|
7
|
-
BlazorConfigKey["resourceGroupName"] = "resourceGroupName";
|
|
8
|
-
BlazorConfigKey["subscriptionId"] = "subscriptionId";
|
|
9
|
-
BlazorConfigKey["resourceNameSuffix"] = "resourceNameSuffix";
|
|
10
|
-
BlazorConfigKey["location"] = "location";
|
|
11
|
-
BlazorConfigKey["credential"] = "credential";
|
|
12
|
-
BlazorConfigKey["teamsAppName"] = "teamsAppName";
|
|
13
|
-
/* Config exported by Blazor plugin */
|
|
14
|
-
BlazorConfigKey["webAppName"] = "webAppName";
|
|
15
|
-
BlazorConfigKey["appServicePlanName"] = "appServicePlanName";
|
|
16
|
-
BlazorConfigKey["webAppEndpoint"] = "webAppEndpoint";
|
|
17
|
-
BlazorConfigKey["webAppDomain"] = "webAppDomain";
|
|
18
|
-
BlazorConfigKey["projectFilePath"] = "projectFilePath";
|
|
19
|
-
BlazorConfigKey["webAppResourceId"] = "webAppResourceId";
|
|
20
|
-
/* Intermediate */
|
|
21
|
-
BlazorConfigKey["site"] = "site";
|
|
22
|
-
})(BlazorConfigKey = exports.BlazorConfigKey || (exports.BlazorConfigKey = {}));
|
|
23
|
-
var AppSettingsKey;
|
|
24
|
-
(function (AppSettingsKey) {
|
|
25
|
-
AppSettingsKey["clientSecret"] = "CLIENT_SECRET";
|
|
26
|
-
AppSettingsKey["clientId"] = "CLIENT_ID";
|
|
27
|
-
AppSettingsKey["oauthHost"] = "OAUTH_AUTHORITY";
|
|
28
|
-
AppSettingsKey["tabAppEndpoint"] = "TAB_APP_ENDPOINT";
|
|
29
|
-
AppSettingsKey["aadMetadataAddress"] = "AAD_METADATA_ADDRESS";
|
|
30
|
-
AppSettingsKey["botId"] = "BOT_ID";
|
|
31
|
-
AppSettingsKey["botPassword"] = "BOT_PASSWORD";
|
|
32
|
-
AppSettingsKey["identifierUri"] = "IDENTIFIER_URI";
|
|
33
|
-
})(AppSettingsKey = exports.AppSettingsKey || (exports.AppSettingsKey = {}));
|
|
34
|
-
var ResourceType;
|
|
35
|
-
(function (ResourceType) {
|
|
36
|
-
ResourceType["webApp"] = "Azure Web App";
|
|
37
|
-
ResourceType["appServicePlan"] = "Azure App Service Plan";
|
|
38
|
-
})(ResourceType = exports.ResourceType || (exports.ResourceType = {}));
|
|
39
|
-
//# sourceMappingURL=enum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/blazor/enum.ts"],"names":[],"mappings":";;;AAAA,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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/blazor/ops/deploy.ts"],"names":[],"mappings":"AAEA,OAAO,MAAM,MAAM,SAAS,CAAC;AAW7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAUhE,wBAAsB,mBAAmB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAOlF;AAED,wBAAsB,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,iBAMxD;AAED,wBAAsB,WAAW,CAAC,aAAa,EAAE,MAAM,mBAwBtD;AAED,wBAAsB,SAAS,CAC7B,MAAM,EAAE,uBAAuB,EAC/B,iBAAiB,EAAE,MAAM,EACzB,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,MAAM,iBAyCtB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{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,CAAC,kBAAkB,CAAC;IAChD,MAAM,QAAQ,GAAG,WAAW,CAAC,kBAAkB,CAAC;IAEhD,IAAI,CAAC,QAAQ,EAAE;QACb,uDAAuD;QACvD,MAAM,IAAI,+BAAsB,EAAE,CAAC;KACpC;IAED,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;AA7CD,8BA6CC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Site } from "@azure/arm-appservice/esm/models/mappers";
|
|
2
|
-
import { WebSiteManagementClient, WebSiteManagementModels } from "@azure/arm-appservice";
|
|
3
|
-
declare type Site = WebSiteManagementModels.Site;
|
|
4
|
-
export declare function generateWebAppName(appName: string, classSuffix: string, identSuffix: string): string;
|
|
5
|
-
export declare function ensureWebApp(client: WebSiteManagementClient, resourceGroupName: string, location: string, webAppName: string, appServiceId: string): Promise<Site>;
|
|
6
|
-
export declare function ensureAppServicePlan(client: WebSiteManagementClient, resourceGroupName: string, appServicePlanName: string, location: string): Promise<string>;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=provision.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"provision.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/blazor/ops/provision.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,0CAA0C,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAOzF,aAAK,IAAI,GAAG,uBAAuB,CAAC,IAAI,CAAC;AAazC,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,GAClB,MAAM,CAGR;AAED,wBAAsB,YAAY,CAChC,MAAM,EAAE,uBAAuB,EAC/B,iBAAiB,EAAE,MAAM,EACzB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC,CAiBf;AAED,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,uBAAuB,EAC/B,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,EAAE,MAAM,EAC1B,QAAQ,EAAE,MAAM,mBAoBjB"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ensureAppServicePlan = exports.ensureWebApp = exports.generateWebAppName = void 0;
|
|
4
|
-
const constants_1 = require("../constants");
|
|
5
|
-
const azure_client_1 = require("../utils/azure-client");
|
|
6
|
-
const errors_1 = require("../resources/errors");
|
|
7
|
-
const enum_1 = require("../enum");
|
|
8
|
-
function normalize(raw) {
|
|
9
|
-
return raw.replace(constants_1.RegularExpr.allCharToBeSkippedInName, constants_1.Constants.emptyString).toLowerCase();
|
|
10
|
-
}
|
|
11
|
-
function concatName(appName, mergedSuffix) {
|
|
12
|
-
const suffix = normalize(mergedSuffix).substr(0, constants_1.AzureInfo.suffixLenMax);
|
|
13
|
-
const paddingLength = constants_1.AzureInfo.webappNameLenMax - suffix.length;
|
|
14
|
-
const normalizedAppName = normalize(appName).substr(0, paddingLength);
|
|
15
|
-
return normalizedAppName + suffix;
|
|
16
|
-
}
|
|
17
|
-
function generateWebAppName(appName, classSuffix, identSuffix) {
|
|
18
|
-
const mergedSuffix = classSuffix + identSuffix;
|
|
19
|
-
return concatName(appName, mergedSuffix);
|
|
20
|
-
}
|
|
21
|
-
exports.generateWebAppName = generateWebAppName;
|
|
22
|
-
async function ensureWebApp(client, resourceGroupName, location, webAppName, appServiceId) {
|
|
23
|
-
const siteEnvelope = Object.assign(Object.assign({}, constants_1.DefaultProvisionConfigs.webAppConfig(location)), { serverFarmId: appServiceId });
|
|
24
|
-
const site = await errors_1.runWithErrorCatchAndWrap((error) => new errors_1.ProvisionError(enum_1.ResourceType.webApp, error.code), async () => await azure_client_1.AzureLib.ensureWebApp(client, resourceGroupName, webAppName, siteEnvelope));
|
|
25
|
-
if (!site.defaultHostName) {
|
|
26
|
-
// TODO: Logger.error("failToGetWebAppEndpoint");
|
|
27
|
-
throw new errors_1.ProvisionError(enum_1.ResourceType.webApp);
|
|
28
|
-
}
|
|
29
|
-
return site;
|
|
30
|
-
}
|
|
31
|
-
exports.ensureWebApp = ensureWebApp;
|
|
32
|
-
async function ensureAppServicePlan(client, resourceGroupName, appServicePlanName, location) {
|
|
33
|
-
const appServicePlan = await errors_1.runWithErrorCatchAndWrap((error) => new errors_1.ProvisionError(enum_1.ResourceType.appServicePlan, error.code), async () => await azure_client_1.AzureLib.ensureAppServicePlan(client, resourceGroupName, appServicePlanName, constants_1.DefaultProvisionConfigs.appServicePlansConfig(location)));
|
|
34
|
-
const appServicePlanId = appServicePlan.id;
|
|
35
|
-
if (!appServicePlanId) {
|
|
36
|
-
// TODO: Logger.error("failToGetAppServicePlanId");
|
|
37
|
-
throw new errors_1.ProvisionError(enum_1.ResourceType.appServicePlan);
|
|
38
|
-
}
|
|
39
|
-
return appServicePlanId;
|
|
40
|
-
}
|
|
41
|
-
exports.ensureAppServicePlan = ensureAppServicePlan;
|
|
42
|
-
//# sourceMappingURL=provision.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"provision.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/blazor/ops/provision.ts"],"names":[],"mappings":";;;AAKA,4CAA0F;AAC1F,wDAAiD;AACjD,gDAA+E;AAC/E,kCAAuC;AAIvC,SAAS,SAAS,CAAC,GAAW;IAC5B,OAAO,GAAG,CAAC,OAAO,CAAC,uBAAW,CAAC,wBAAwB,EAAE,qBAAS,CAAC,WAAW,CAAC,CAAC,WAAW,EAAE,CAAC;AAChG,CAAC;AAED,SAAS,UAAU,CAAC,OAAe,EAAE,YAAoB;IACvD,MAAM,MAAM,GAAG,SAAS,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,qBAAS,CAAC,YAAY,CAAC,CAAC;IACzE,MAAM,aAAa,GAAG,qBAAS,CAAC,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC;IACjE,MAAM,iBAAiB,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC;IACtE,OAAO,iBAAiB,GAAG,MAAM,CAAC;AACpC,CAAC;AAED,SAAgB,kBAAkB,CAChC,OAAe,EACf,WAAmB,EACnB,WAAmB;IAEnB,MAAM,YAAY,GAAW,WAAW,GAAG,WAAW,CAAC;IACvD,OAAO,UAAU,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;AAC3C,CAAC;AAPD,gDAOC;AAEM,KAAK,UAAU,YAAY,CAChC,MAA+B,EAC/B,iBAAyB,EACzB,QAAgB,EAChB,UAAkB,EAClB,YAAoB;IAEpB,MAAM,YAAY,mCACb,mCAAuB,CAAC,YAAY,CAAC,QAAQ,CAAC,KACjD,YAAY,EAAE,YAAY,GAC3B,CAAC;IAEF,MAAM,IAAI,GAAG,MAAM,iCAAwB,CACzC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,uBAAc,CAAC,mBAAY,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,EAC9D,KAAK,IAAI,EAAE,CAAC,MAAM,uBAAQ,CAAC,YAAY,CAAC,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,YAAY,CAAC,CAC7F,CAAC;IAEF,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE;QACzB,iDAAiD;QACjD,MAAM,IAAI,uBAAc,CAAC,mBAAY,CAAC,MAAM,CAAC,CAAC;KAC/C;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAvBD,oCAuBC;AAEM,KAAK,UAAU,oBAAoB,CACxC,MAA+B,EAC/B,iBAAyB,EACzB,kBAA0B,EAC1B,QAAgB;IAEhB,MAAM,cAAc,GAAG,MAAM,iCAAwB,CACnD,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,uBAAc,CAAC,mBAAY,CAAC,cAAc,EAAE,KAAK,CAAC,IAAI,CAAC,EACtE,KAAK,IAAI,EAAE,CACT,MAAM,uBAAQ,CAAC,oBAAoB,CACjC,MAAM,EACN,iBAAiB,EACjB,kBAAkB,EAClB,mCAAuB,CAAC,qBAAqB,CAAC,QAAQ,CAAC,CACxD,CACJ,CAAC;IAEF,MAAM,gBAAgB,GAAuB,cAAc,CAAC,EAAE,CAAC;IAC/D,IAAI,CAAC,gBAAgB,EAAE;QACrB,mDAAmD;QACnD,MAAM,IAAI,uBAAc,CAAC,mBAAY,CAAC,cAAc,CAAC,CAAC;KACvD;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAxBD,oDAwBC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { PluginContext, ReadonlyPluginConfig } from "@microsoft/teamsfx-api";
|
|
2
|
-
import { TeamsFxResult } from "./error-factory";
|
|
3
|
-
import { WebSiteManagementModels } from "@azure/arm-appservice";
|
|
4
|
-
declare type Site = WebSiteManagementModels.Site;
|
|
5
|
-
export interface BlazorPluginConfig {
|
|
6
|
-
resourceGroupName?: string;
|
|
7
|
-
subscriptionId?: string;
|
|
8
|
-
resourceNameSuffix?: string;
|
|
9
|
-
location?: string;
|
|
10
|
-
webAppName?: string;
|
|
11
|
-
appServicePlanName?: string;
|
|
12
|
-
endpoint?: string;
|
|
13
|
-
domain?: string;
|
|
14
|
-
projectFilePath?: string;
|
|
15
|
-
webAppResourceId?: string;
|
|
16
|
-
site?: Site;
|
|
17
|
-
}
|
|
18
|
-
export declare class BlazorPluginImpl {
|
|
19
|
-
config: BlazorPluginConfig;
|
|
20
|
-
private syncConfigFromContext;
|
|
21
|
-
private syncConfigToContext;
|
|
22
|
-
private checkAndGet;
|
|
23
|
-
private isPluginEnabled;
|
|
24
|
-
preProvision(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
25
|
-
provision(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
26
|
-
postProvision(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
27
|
-
collectAppSettings(ctx: PluginContext, site: Site): void;
|
|
28
|
-
collectAppSettingsSelf(site: Site): void;
|
|
29
|
-
collectAppSettingsFromBot(site: Site, botConfig: ReadonlyPluginConfig): void;
|
|
30
|
-
collectAppSettingsFromAAD(site: Site, aadConfig: ReadonlyPluginConfig): void;
|
|
31
|
-
pushAppSettings(site: Site, newName: string, newValue: string, replace?: boolean): void;
|
|
32
|
-
deploy(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
33
|
-
}
|
|
34
|
-
export {};
|
|
35
|
-
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/blazor/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EAGb,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAShC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAwBhE,aAAK,IAAI,GAAG,uBAAuB,CAAC,IAAI,CAAC;AAEzC,MA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E"}
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BlazorPluginImpl = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
// Copyright (c) Microsoft Corporation.
|
|
6
|
-
// Licensed under the MIT license.
|
|
7
|
-
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
8
|
-
const constants_1 = require("./constants");
|
|
9
|
-
const messages_1 = require("./resources/messages");
|
|
10
|
-
const uuid_1 = require("uuid");
|
|
11
|
-
const Provision = tslib_1.__importStar(require("./ops/provision"));
|
|
12
|
-
const azure_client_1 = require("./utils/azure-client");
|
|
13
|
-
const enum_1 = require("./enum");
|
|
14
|
-
const errors_1 = require("./resources/errors");
|
|
15
|
-
const Deploy = tslib_1.__importStar(require("./ops/deploy"));
|
|
16
|
-
const logger_1 = require("../utils/logger");
|
|
17
|
-
const path_1 = tslib_1.__importDefault(require("path"));
|
|
18
|
-
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
19
|
-
const __1 = require("../../../..");
|
|
20
|
-
class BlazorPluginImpl {
|
|
21
|
-
constructor() {
|
|
22
|
-
this.config = {};
|
|
23
|
-
}
|
|
24
|
-
syncConfigFromContext(ctx) {
|
|
25
|
-
const solutionConfig = ctx.envInfo.state.get(constants_1.DependentPluginInfo.solutionPluginName);
|
|
26
|
-
this.config.resourceGroupName = solutionConfig === null || solutionConfig === void 0 ? void 0 : solutionConfig.get(constants_1.DependentPluginInfo.resourceGroupName);
|
|
27
|
-
this.config.subscriptionId = solutionConfig === null || solutionConfig === void 0 ? void 0 : solutionConfig.get(constants_1.DependentPluginInfo.subscriptionId);
|
|
28
|
-
this.config.resourceNameSuffix = solutionConfig === null || solutionConfig === void 0 ? void 0 : solutionConfig.get(constants_1.DependentPluginInfo.resourceNameSuffix);
|
|
29
|
-
this.config.location = solutionConfig === null || solutionConfig === void 0 ? void 0 : solutionConfig.get(constants_1.DependentPluginInfo.location);
|
|
30
|
-
this.config.webAppName = ctx.config.get(constants_1.BlazorConfigInfo.webAppName);
|
|
31
|
-
this.config.appServicePlanName = ctx.config.get(constants_1.BlazorConfigInfo.appServicePlanName);
|
|
32
|
-
this.config.projectFilePath = ctx.config.get(constants_1.BlazorConfigInfo.projectFilePath);
|
|
33
|
-
// Resource id priors to other configs
|
|
34
|
-
const webAppResourceId = ctx.config.get(enum_1.BlazorConfigKey.webAppResourceId);
|
|
35
|
-
if (webAppResourceId) {
|
|
36
|
-
this.config.webAppResourceId = webAppResourceId;
|
|
37
|
-
this.config.resourceGroupName = __1.getResourceGroupNameFromResourceId(webAppResourceId);
|
|
38
|
-
this.config.webAppName = __1.getSiteNameFromResourceId(webAppResourceId);
|
|
39
|
-
this.config.subscriptionId = __1.getSubscriptionIdFromResourceId(webAppResourceId);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
syncConfigToContext(ctx) {
|
|
43
|
-
Object.entries(this.config)
|
|
44
|
-
.filter((kv) => constants_1.BlazorPluginInfo.persistentConfig.find((x) => x === kv[0] && kv[1]))
|
|
45
|
-
.forEach((kv) => ctx.config.set(kv[0], kv[1]));
|
|
46
|
-
}
|
|
47
|
-
checkAndGet(v, key) {
|
|
48
|
-
if (v) {
|
|
49
|
-
return v;
|
|
50
|
-
}
|
|
51
|
-
throw new errors_1.FetchConfigError(key);
|
|
52
|
-
}
|
|
53
|
-
isPluginEnabled(ctx, plugin) {
|
|
54
|
-
var _a;
|
|
55
|
-
const selectedPlugins = ((_a = ctx.projectSettings) === null || _a === void 0 ? void 0 : _a.solutionSettings)
|
|
56
|
-
.activeResourcePlugins;
|
|
57
|
-
return selectedPlugins.includes(plugin);
|
|
58
|
-
}
|
|
59
|
-
async preProvision(ctx) {
|
|
60
|
-
var _a, _b, _c, _d;
|
|
61
|
-
var _e, _f;
|
|
62
|
-
this.syncConfigFromContext(ctx);
|
|
63
|
-
const teamsAppName = this.checkAndGet((_a = ctx.projectSettings) === null || _a === void 0 ? void 0 : _a.appName, enum_1.BlazorConfigKey.teamsAppName);
|
|
64
|
-
const suffix = (_b = this.config.resourceNameSuffix) !== null && _b !== void 0 ? _b : uuid_1.v4().substr(0, 6);
|
|
65
|
-
(_c = (_e = this.config).webAppName) !== null && _c !== void 0 ? _c : (_e.webAppName = Provision.generateWebAppName(teamsAppName, constants_1.BlazorPluginInfo.alias, suffix));
|
|
66
|
-
(_d = (_f = this.config).appServicePlanName) !== null && _d !== void 0 ? _d : (_f.appServicePlanName = this.config.webAppName);
|
|
67
|
-
this.syncConfigToContext(ctx);
|
|
68
|
-
return teamsfx_api_1.ok(undefined);
|
|
69
|
-
}
|
|
70
|
-
async provision(ctx) {
|
|
71
|
-
var _a;
|
|
72
|
-
logger_1.Logger.info(messages_1.Messages.StartProvision(constants_1.BlazorPluginInfo.displayName));
|
|
73
|
-
// TODO: const progressHandler = await ProgressHelper.startProvisionProgressHandler(ctx);
|
|
74
|
-
this.syncConfigFromContext(ctx);
|
|
75
|
-
const resourceGroupName = this.checkAndGet(this.config.resourceGroupName, enum_1.BlazorConfigKey.resourceGroupName);
|
|
76
|
-
const subscriptionId = this.checkAndGet(this.config.subscriptionId, enum_1.BlazorConfigKey.subscriptionId);
|
|
77
|
-
const location = this.checkAndGet(this.config.location, enum_1.BlazorConfigKey.location);
|
|
78
|
-
const appServicePlanName = this.checkAndGet(this.config.appServicePlanName, enum_1.BlazorConfigKey.appServicePlanName);
|
|
79
|
-
const webAppName = this.checkAndGet(this.config.webAppName, enum_1.BlazorConfigKey.webAppName);
|
|
80
|
-
const credential = this.checkAndGet(await ((_a = ctx.azureAccountProvider) === null || _a === void 0 ? void 0 : _a.getAccountCredentialAsync()), enum_1.BlazorConfigKey.credential);
|
|
81
|
-
const client = azure_client_1.AzureClientFactory.getWebSiteManagementClient(credential, subscriptionId);
|
|
82
|
-
const appServicePlanId = await Provision.ensureAppServicePlan(client, resourceGroupName, appServicePlanName, location);
|
|
83
|
-
const site = await Provision.ensureWebApp(client, resourceGroupName, location, webAppName, appServicePlanId);
|
|
84
|
-
this.config.site = site;
|
|
85
|
-
if (!this.config.endpoint) {
|
|
86
|
-
this.config.endpoint = `https://${site.defaultHostName}`;
|
|
87
|
-
this.config.domain = site.defaultHostName;
|
|
88
|
-
}
|
|
89
|
-
this.syncConfigToContext(ctx);
|
|
90
|
-
// TODO: await ProgressHelper.endProvisionProgress(true);
|
|
91
|
-
logger_1.Logger.info(messages_1.Messages.EndProvision(constants_1.BlazorPluginInfo.displayName));
|
|
92
|
-
return teamsfx_api_1.ok(undefined);
|
|
93
|
-
}
|
|
94
|
-
async postProvision(ctx) {
|
|
95
|
-
var _a;
|
|
96
|
-
if (__1.isArmSupportEnabled()) {
|
|
97
|
-
return teamsfx_api_1.ok(undefined);
|
|
98
|
-
}
|
|
99
|
-
this.syncConfigFromContext(ctx);
|
|
100
|
-
const resourceGroupName = this.checkAndGet(this.config.resourceGroupName, enum_1.BlazorConfigKey.resourceGroupName);
|
|
101
|
-
const subscriptionId = this.checkAndGet(this.config.subscriptionId, enum_1.BlazorConfigKey.subscriptionId);
|
|
102
|
-
const webAppName = this.checkAndGet(this.config.webAppName, enum_1.BlazorConfigKey.webAppName);
|
|
103
|
-
const credential = this.checkAndGet(await ((_a = ctx.azureAccountProvider) === null || _a === void 0 ? void 0 : _a.getAccountCredentialAsync()), enum_1.BlazorConfigKey.credential);
|
|
104
|
-
const site = this.checkAndGet(this.config.site, enum_1.BlazorConfigKey.site);
|
|
105
|
-
this.config.site = undefined;
|
|
106
|
-
const client = azure_client_1.AzureClientFactory.getWebSiteManagementClient(credential, subscriptionId);
|
|
107
|
-
const res = await errors_1.runWithErrorCatchAndWrap((error) => new errors_1.ConfigureWebAppError(error.code), async () => await client.webApps.listApplicationSettings(resourceGroupName, webAppName));
|
|
108
|
-
if (res.properties) {
|
|
109
|
-
Object.entries(res.properties).forEach((kv) => {
|
|
110
|
-
this.pushAppSettings(site, kv[0], kv[1]);
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
this.collectAppSettings(ctx, site);
|
|
114
|
-
await errors_1.runWithErrorCatchAndWrap((error) => new errors_1.ConfigureWebAppError(error.code), async () => await client.webApps.update(resourceGroupName, webAppName, site));
|
|
115
|
-
return teamsfx_api_1.ok(undefined);
|
|
116
|
-
}
|
|
117
|
-
collectAppSettings(ctx, site) {
|
|
118
|
-
this.collectAppSettingsSelf(site);
|
|
119
|
-
const aadConfig = ctx.envInfo.state.get(constants_1.DependentPluginInfo.aadPluginName);
|
|
120
|
-
if (this.isPluginEnabled(ctx, constants_1.DependentPluginInfo.aadPluginName) && aadConfig) {
|
|
121
|
-
this.collectAppSettingsFromAAD(site, aadConfig);
|
|
122
|
-
}
|
|
123
|
-
const botConfig = ctx.envInfo.state.get(constants_1.DependentPluginInfo.botPluginName);
|
|
124
|
-
if (this.isPluginEnabled(ctx, constants_1.DependentPluginInfo.botPluginName) && botConfig) {
|
|
125
|
-
this.collectAppSettingsFromBot(site, botConfig);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
collectAppSettingsSelf(site) {
|
|
129
|
-
const endpoint = this.checkAndGet(this.config.endpoint, enum_1.BlazorConfigKey.webAppEndpoint);
|
|
130
|
-
this.pushAppSettings(site, enum_1.AppSettingsKey.tabAppEndpoint, endpoint);
|
|
131
|
-
}
|
|
132
|
-
collectAppSettingsFromBot(site, botConfig) {
|
|
133
|
-
const botId = this.checkAndGet(botConfig.get(constants_1.DependentPluginInfo.botId), constants_1.DependentPluginInfo.botId);
|
|
134
|
-
const botPassword = this.checkAndGet(botConfig.get(constants_1.DependentPluginInfo.botPassword), constants_1.DependentPluginInfo.botPassword);
|
|
135
|
-
this.pushAppSettings(site, enum_1.AppSettingsKey.botId, botId);
|
|
136
|
-
this.pushAppSettings(site, enum_1.AppSettingsKey.botPassword, botPassword);
|
|
137
|
-
}
|
|
138
|
-
collectAppSettingsFromAAD(site, aadConfig) {
|
|
139
|
-
const clientId = this.checkAndGet(aadConfig.get(constants_1.DependentPluginInfo.clientID), constants_1.DependentPluginInfo.clientID);
|
|
140
|
-
const clientSecret = this.checkAndGet(aadConfig.get(constants_1.DependentPluginInfo.aadClientSecret), constants_1.DependentPluginInfo.aadClientSecret);
|
|
141
|
-
const oauthHost = this.checkAndGet(aadConfig.get(constants_1.DependentPluginInfo.oauthHost), constants_1.DependentPluginInfo.oauthHost);
|
|
142
|
-
const tenantId = this.checkAndGet(aadConfig.get(constants_1.DependentPluginInfo.tenantId), constants_1.DependentPluginInfo.tenantId);
|
|
143
|
-
const applicationIdUris = this.checkAndGet(aadConfig.get(constants_1.DependentPluginInfo.applicationIdUris), constants_1.DependentPluginInfo.applicationIdUris);
|
|
144
|
-
this.pushAppSettings(site, enum_1.AppSettingsKey.clientId, clientId);
|
|
145
|
-
this.pushAppSettings(site, enum_1.AppSettingsKey.clientSecret, clientSecret);
|
|
146
|
-
this.pushAppSettings(site, enum_1.AppSettingsKey.oauthHost, `${oauthHost}/${tenantId}`);
|
|
147
|
-
this.pushAppSettings(site, enum_1.AppSettingsKey.identifierUri, applicationIdUris);
|
|
148
|
-
this.pushAppSettings(site, enum_1.AppSettingsKey.aadMetadataAddress, constants_1.AzureInfo.aadMetadataAddress(tenantId));
|
|
149
|
-
}
|
|
150
|
-
pushAppSettings(site, newName, newValue, replace = true) {
|
|
151
|
-
if (!site.siteConfig) {
|
|
152
|
-
site.siteConfig = {};
|
|
153
|
-
}
|
|
154
|
-
if (!site.siteConfig.appSettings) {
|
|
155
|
-
site.siteConfig.appSettings = [];
|
|
156
|
-
}
|
|
157
|
-
const kv = site.siteConfig.appSettings.find((kv) => kv.name === newName);
|
|
158
|
-
if (!kv) {
|
|
159
|
-
site.siteConfig.appSettings.push({
|
|
160
|
-
name: newName,
|
|
161
|
-
value: newValue,
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
else if (replace) {
|
|
165
|
-
kv.value = newValue;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
async deploy(ctx) {
|
|
169
|
-
var _a;
|
|
170
|
-
logger_1.Logger.info(messages_1.Messages.StartDeploy(constants_1.BlazorPluginInfo.displayName));
|
|
171
|
-
this.syncConfigFromContext(ctx);
|
|
172
|
-
const webAppName = this.checkAndGet(this.config.webAppName, enum_1.BlazorConfigKey.webAppName);
|
|
173
|
-
const resourceGroupName = this.checkAndGet(this.config.resourceGroupName, enum_1.BlazorConfigKey.resourceGroupName);
|
|
174
|
-
const subscriptionId = this.checkAndGet(this.config.subscriptionId, enum_1.BlazorConfigKey.subscriptionId);
|
|
175
|
-
const credential = this.checkAndGet(await ((_a = ctx.azureAccountProvider) === null || _a === void 0 ? void 0 : _a.getAccountCredentialAsync()), enum_1.BlazorConfigKey.credential);
|
|
176
|
-
const projectFilePath = path_1.default.resolve(ctx.root, this.checkAndGet(this.config.projectFilePath, enum_1.BlazorConfigKey.projectFilePath));
|
|
177
|
-
await errors_1.runWithErrorCatchAndThrow(new errors_1.ProjectPathError(projectFilePath), async () => await fs_extra_1.default.pathExists(projectFilePath));
|
|
178
|
-
const projectPath = path_1.default.dirname(projectFilePath);
|
|
179
|
-
const framework = await Deploy.getFrameworkVersion(projectFilePath);
|
|
180
|
-
const runtime = constants_1.BlazorPluginInfo.defaultRuntime;
|
|
181
|
-
const client = azure_client_1.AzureClientFactory.getWebSiteManagementClient(credential, subscriptionId);
|
|
182
|
-
await Deploy.build(projectPath, runtime);
|
|
183
|
-
const folderToBeZipped = constants_1.BlazorPathInfo.publishFolderPath(projectPath, framework, runtime);
|
|
184
|
-
await Deploy.zipDeploy(client, resourceGroupName, webAppName, folderToBeZipped);
|
|
185
|
-
logger_1.Logger.info(messages_1.Messages.EndDeploy(constants_1.BlazorPluginInfo.displayName));
|
|
186
|
-
return teamsfx_api_1.ok(undefined);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
exports.BlazorPluginImpl = BlazorPluginImpl;
|
|
190
|
-
//# sourceMappingURL=plugin.js.map
|