@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,4 +1,4 @@
|
|
|
1
|
-
import { PluginContext, ConfigValue } from "@microsoft/teamsfx-api";
|
|
1
|
+
import { PluginContext, ConfigValue, v2, Result, FxError, v3 } from "@microsoft/teamsfx-api";
|
|
2
2
|
export declare class ConfigUtils {
|
|
3
3
|
static getAadConfig(ctx: PluginContext, key: string, isLocalDebug?: boolean): string | undefined;
|
|
4
4
|
static getLocalDebugConfigOfOtherPlugins(ctx: PluginContext, key: string): string | undefined;
|
|
@@ -14,8 +14,12 @@ export declare class ProvisionConfig {
|
|
|
14
14
|
oauth2PermissionScopeId?: string;
|
|
15
15
|
private isLocalDebug;
|
|
16
16
|
constructor(isLocalDebug?: boolean);
|
|
17
|
+
restoreConfigFromLocalSettings(ctx: v2.Context, inputs: v2.InputsWithProjectPath, localSettings: v2.LocalSettings): Promise<Result<any, FxError>>;
|
|
18
|
+
restoreConfigFromEnvInfo(ctx: v2.Context, inputs: v2.InputsWithProjectPath, envInfo: v3.EnvInfoV3): Promise<Result<any, FxError>>;
|
|
17
19
|
restoreConfigFromContext(ctx: PluginContext): Promise<void>;
|
|
18
20
|
saveConfigIntoContext(ctx: PluginContext, tenantId: string): void;
|
|
21
|
+
saveConfigIntoLocalSettings(localSettings: v2.LocalSettings, tenantId: string): void;
|
|
22
|
+
saveConfigIntoEnvInfo(envInfo: v3.EnvInfoV3, tenantId: string): void;
|
|
19
23
|
private static getOauthAuthority;
|
|
20
24
|
}
|
|
21
25
|
export declare class SetApplicationInContextConfig {
|
|
@@ -26,15 +30,20 @@ export declare class SetApplicationInContextConfig {
|
|
|
26
30
|
private isLocalDebug;
|
|
27
31
|
constructor(isLocalDebug?: boolean);
|
|
28
32
|
restoreConfigFromContext(ctx: PluginContext): void;
|
|
33
|
+
restoreConfigFromLocalSettings(localSettings: v2.LocalSettings): void;
|
|
34
|
+
restoreConfigFromEnvInfo(ctx: v2.Context, envInfo: v3.EnvInfoV3): void;
|
|
29
35
|
saveConfigIntoContext(ctx: PluginContext): void;
|
|
30
36
|
}
|
|
31
37
|
export declare class PostProvisionConfig {
|
|
32
38
|
frontendEndpoint?: string;
|
|
33
39
|
botEndpoint?: string;
|
|
34
40
|
objectId?: string;
|
|
41
|
+
clientId?: string;
|
|
35
42
|
applicationIdUri?: string;
|
|
36
43
|
private isLocalDebug;
|
|
37
44
|
constructor(isLocalDebug?: boolean);
|
|
45
|
+
restoreConfigFromLocalSettings(localSettings: v2.LocalSettings): void;
|
|
46
|
+
restoreConfigFromEnvInfo(ctx: v2.Context, envInfo: v3.EnvInfoV3): void;
|
|
38
47
|
restoreConfigFromContext(ctx: PluginContext): Promise<void>;
|
|
39
48
|
}
|
|
40
49
|
export declare class UpdatePermissionConfig {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configs.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/aad/utils/configs.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"configs.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/aad/utils/configs.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,aAAa,EACb,WAAW,EACX,EAAE,EAEF,MAAM,EACN,OAAO,EAEP,EAAE,EACH,MAAM,wBAAwB,CAAC;AAkBhC,qBAAa,WAAW;WACR,YAAY,CACxB,GAAG,EAAE,aAAa,EAClB,GAAG,EAAE,MAAM,EACX,YAAY,UAAQ,GACnB,MAAM,GAAG,SAAS;WAQP,iCAAiC,CAC7C,GAAG,EAAE,aAAa,EAClB,GAAG,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IAAI,CAAC;CAiBzE;AAED,qBAAa,0BAA0B;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,OAAO,CAAC;gBAEtB,iBAAiB,UAAQ;IAIxB,wBAAwB,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;CAczE"}
|
|
@@ -3,54 +3,37 @@
|
|
|
3
3
|
// Licensed under the MIT license.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.CheckGrantPermissionConfig = exports.UpdatePermissionConfig = exports.PostProvisionConfig = exports.SetApplicationInContextConfig = exports.ProvisionConfig = exports.ConfigUtils = void 0;
|
|
6
|
+
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
6
7
|
const constants_1 = require("../constants");
|
|
7
8
|
const errors_1 = require("../errors");
|
|
8
9
|
const format_1 = require("./format");
|
|
9
10
|
const common_1 = require("./common");
|
|
10
11
|
const results_1 = require("../results");
|
|
11
12
|
const uuid_1 = require("uuid");
|
|
12
|
-
const common_2 = require("../../../../common");
|
|
13
13
|
const localSettingsConstants_1 = require("../../../../common/localSettingsConstants");
|
|
14
|
+
const v3_1 = require("../v3");
|
|
15
|
+
const constants_2 = require("../../../solution/fx-solution/v3/constants");
|
|
14
16
|
class ConfigUtils {
|
|
15
17
|
static getAadConfig(ctx, key, isLocalDebug = false) {
|
|
16
|
-
var _a, _b, _c
|
|
18
|
+
var _a, _b, _c;
|
|
17
19
|
if (isLocalDebug) {
|
|
18
|
-
|
|
19
|
-
return (_b = (_a = ctx.localSettings) === null || _a === void 0 ? void 0 : _a.auth) === null || _b === void 0 ? void 0 : _b.get(key);
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
return (_c = ctx.config) === null || _c === void 0 ? void 0 : _c.get(common_1.Utils.addLocalDebugPrefix(true, key));
|
|
23
|
-
}
|
|
20
|
+
return (_b = (_a = ctx.localSettings) === null || _a === void 0 ? void 0 : _a.auth) === null || _b === void 0 ? void 0 : _b.get(key);
|
|
24
21
|
}
|
|
25
22
|
else {
|
|
26
|
-
|
|
27
|
-
return (_d = ctx.envInfo.state.get(constants_1.Plugins.pluginNameComplex)) === null || _d === void 0 ? void 0 : _d.get(key);
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
return (_e = ctx.config) === null || _e === void 0 ? void 0 : _e.get(key);
|
|
31
|
-
}
|
|
23
|
+
return (_c = ctx.envInfo.state.get(constants_1.Plugins.pluginNameComplex)) === null || _c === void 0 ? void 0 : _c.get(key);
|
|
32
24
|
}
|
|
33
25
|
}
|
|
34
26
|
static getLocalDebugConfigOfOtherPlugins(ctx, key) {
|
|
35
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
36
|
-
const isMultiEnvEnable = common_2.isMultiEnvEnabled();
|
|
27
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
37
28
|
switch (key) {
|
|
38
29
|
case constants_1.ConfigKeysOfOtherPlugin.localDebugTabDomain:
|
|
39
|
-
return
|
|
40
|
-
? (_b = (_a = ctx.localSettings) === null || _a === void 0 ? void 0 : _a.frontend) === null || _b === void 0 ? void 0 : _b.get(localSettingsConstants_1.LocalSettingsFrontendKeys.TabDomain)
|
|
41
|
-
: (_c = ctx.envInfo.state.get(constants_1.Plugins.localDebug)) === null || _c === void 0 ? void 0 : _c.get(key);
|
|
30
|
+
return (_b = (_a = ctx.localSettings) === null || _a === void 0 ? void 0 : _a.frontend) === null || _b === void 0 ? void 0 : _b.get(localSettingsConstants_1.LocalSettingsFrontendKeys.TabDomain);
|
|
42
31
|
case constants_1.ConfigKeysOfOtherPlugin.localDebugTabEndpoint:
|
|
43
|
-
return
|
|
44
|
-
? (_e = (_d = ctx.localSettings) === null || _d === void 0 ? void 0 : _d.frontend) === null || _e === void 0 ? void 0 : _e.get(localSettingsConstants_1.LocalSettingsFrontendKeys.TabEndpoint)
|
|
45
|
-
: (_f = ctx.envInfo.state.get(constants_1.Plugins.localDebug)) === null || _f === void 0 ? void 0 : _f.get(key);
|
|
32
|
+
return (_d = (_c = ctx.localSettings) === null || _c === void 0 ? void 0 : _c.frontend) === null || _d === void 0 ? void 0 : _d.get(localSettingsConstants_1.LocalSettingsFrontendKeys.TabEndpoint);
|
|
46
33
|
case constants_1.ConfigKeysOfOtherPlugin.localDebugBotEndpoint:
|
|
47
|
-
return
|
|
48
|
-
? (_h = (_g = ctx.localSettings) === null || _g === void 0 ? void 0 : _g.bot) === null || _h === void 0 ? void 0 : _h.get(localSettingsConstants_1.LocalSettingsBotKeys.BotEndpoint)
|
|
49
|
-
: (_j = ctx.envInfo.state.get(constants_1.Plugins.localDebug)) === null || _j === void 0 ? void 0 : _j.get(key);
|
|
34
|
+
return (_f = (_e = ctx.localSettings) === null || _e === void 0 ? void 0 : _e.bot) === null || _f === void 0 ? void 0 : _f.get(localSettingsConstants_1.LocalSettingsBotKeys.BotEndpoint);
|
|
50
35
|
case constants_1.ConfigKeysOfOtherPlugin.teamsBotIdLocal:
|
|
51
|
-
return
|
|
52
|
-
? (_l = (_k = ctx.localSettings) === null || _k === void 0 ? void 0 : _k.bot) === null || _l === void 0 ? void 0 : _l.get(localSettingsConstants_1.LocalSettingsBotKeys.BotId)
|
|
53
|
-
: (_m = ctx.envInfo.state.get(constants_1.Plugins.teamsBot)) === null || _m === void 0 ? void 0 : _m.get(key);
|
|
36
|
+
return (_h = (_g = ctx.localSettings) === null || _g === void 0 ? void 0 : _g.bot) === null || _h === void 0 ? void 0 : _h.get(localSettingsConstants_1.LocalSettingsBotKeys.BotId);
|
|
54
37
|
default:
|
|
55
38
|
return undefined;
|
|
56
39
|
}
|
|
@@ -60,16 +43,11 @@ class ConfigUtils {
|
|
|
60
43
|
if (!value) {
|
|
61
44
|
return;
|
|
62
45
|
}
|
|
63
|
-
if (
|
|
64
|
-
|
|
65
|
-
(_b = (_a = ctx.localSettings) === null || _a === void 0 ? void 0 : _a.auth) === null || _b === void 0 ? void 0 : _b.set(key, value);
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
(_c = ctx.envInfo.state.get(constants_1.Plugins.pluginNameComplex)) === null || _c === void 0 ? void 0 : _c.set(key, value);
|
|
69
|
-
}
|
|
46
|
+
if (isLocalDebug) {
|
|
47
|
+
(_b = (_a = ctx.localSettings) === null || _a === void 0 ? void 0 : _a.auth) === null || _b === void 0 ? void 0 : _b.set(key, value);
|
|
70
48
|
}
|
|
71
49
|
else {
|
|
72
|
-
ctx.
|
|
50
|
+
(_c = ctx.envInfo.state.get(constants_1.Plugins.pluginNameComplex)) === null || _c === void 0 ? void 0 : _c.set(key, value);
|
|
73
51
|
}
|
|
74
52
|
}
|
|
75
53
|
static async getPermissionRequest(ctx) {
|
|
@@ -91,6 +69,54 @@ class ProvisionConfig {
|
|
|
91
69
|
this.isLocalDebug = isLocalDebug;
|
|
92
70
|
this.oauth2PermissionScopeId = uuid_1.v4();
|
|
93
71
|
}
|
|
72
|
+
async restoreConfigFromLocalSettings(ctx, inputs, localSettings) {
|
|
73
|
+
var _a, _b;
|
|
74
|
+
const displayName = ctx.projectSetting.appName;
|
|
75
|
+
if (displayName) {
|
|
76
|
+
this.displayName = displayName.substr(0, constants_1.Constants.aadAppMaxLength);
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
throw results_1.ResultFactory.SystemError(errors_1.GetConfigError.name, errors_1.GetConfigError.message(errors_1.ConfigErrorMessages.GetDisplayNameError));
|
|
80
|
+
}
|
|
81
|
+
const permissionRes = await v3_1.getPermissionRequest(inputs.projectPath);
|
|
82
|
+
if (permissionRes.isErr()) {
|
|
83
|
+
return teamsfx_api_1.err(permissionRes.error);
|
|
84
|
+
}
|
|
85
|
+
this.permissionRequest = permissionRes.value;
|
|
86
|
+
const objectId = (_a = localSettings.auth) === null || _a === void 0 ? void 0 : _a.objectId;
|
|
87
|
+
if (objectId) {
|
|
88
|
+
this.objectId = objectId;
|
|
89
|
+
}
|
|
90
|
+
const clientSecret = (_b = localSettings.auth) === null || _b === void 0 ? void 0 : _b.clientSecret;
|
|
91
|
+
if (clientSecret) {
|
|
92
|
+
this.password = clientSecret;
|
|
93
|
+
}
|
|
94
|
+
return teamsfx_api_1.ok(undefined);
|
|
95
|
+
}
|
|
96
|
+
async restoreConfigFromEnvInfo(ctx, inputs, envInfo) {
|
|
97
|
+
const displayName = ctx.projectSetting.appName;
|
|
98
|
+
if (displayName) {
|
|
99
|
+
this.displayName = displayName.substr(0, constants_1.Constants.aadAppMaxLength);
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
throw results_1.ResultFactory.SystemError(errors_1.GetConfigError.name, errors_1.GetConfigError.message(errors_1.ConfigErrorMessages.GetDisplayNameError));
|
|
103
|
+
}
|
|
104
|
+
const permissionRes = await v3_1.getPermissionRequest(inputs.projectPath);
|
|
105
|
+
if (permissionRes.isErr()) {
|
|
106
|
+
return teamsfx_api_1.err(permissionRes.error);
|
|
107
|
+
}
|
|
108
|
+
this.permissionRequest = permissionRes.value;
|
|
109
|
+
const aadResource = envInfo.state[constants_2.BuiltInFeaturePluginNames.aad];
|
|
110
|
+
const objectId = aadResource === null || aadResource === void 0 ? void 0 : aadResource.objectId;
|
|
111
|
+
if (objectId) {
|
|
112
|
+
this.objectId = objectId;
|
|
113
|
+
}
|
|
114
|
+
const clientSecret = aadResource === null || aadResource === void 0 ? void 0 : aadResource.clientSecret;
|
|
115
|
+
if (clientSecret) {
|
|
116
|
+
this.password = clientSecret;
|
|
117
|
+
}
|
|
118
|
+
return teamsfx_api_1.ok(undefined);
|
|
119
|
+
}
|
|
94
120
|
async restoreConfigFromContext(ctx) {
|
|
95
121
|
const displayName = ctx.projectSettings.appName;
|
|
96
122
|
if (displayName) {
|
|
@@ -116,8 +142,46 @@ class ProvisionConfig {
|
|
|
116
142
|
ConfigUtils.checkAndSaveConfig(ctx, constants_1.ConfigKeys.objectId, this.objectId, this.isLocalDebug);
|
|
117
143
|
ConfigUtils.checkAndSaveConfig(ctx, constants_1.ConfigKeys.oauth2PermissionScopeId, this.oauth2PermissionScopeId, this.isLocalDebug);
|
|
118
144
|
ConfigUtils.checkAndSaveConfig(ctx, constants_1.ConfigKeys.tenantId, tenantId, this.isLocalDebug);
|
|
119
|
-
ConfigUtils.checkAndSaveConfig(ctx, constants_1.ConfigKeys.oauthHost, constants_1.Constants.oauthAuthorityPrefix,
|
|
120
|
-
ConfigUtils.checkAndSaveConfig(ctx, constants_1.ConfigKeys.oauthAuthority, oauthAuthority,
|
|
145
|
+
ConfigUtils.checkAndSaveConfig(ctx, constants_1.ConfigKeys.oauthHost, constants_1.Constants.oauthAuthorityPrefix, this.isLocalDebug);
|
|
146
|
+
ConfigUtils.checkAndSaveConfig(ctx, constants_1.ConfigKeys.oauthAuthority, oauthAuthority, this.isLocalDebug);
|
|
147
|
+
}
|
|
148
|
+
saveConfigIntoLocalSettings(localSettings, tenantId) {
|
|
149
|
+
const oauthAuthority = ProvisionConfig.getOauthAuthority(tenantId);
|
|
150
|
+
if (!localSettings.auth) {
|
|
151
|
+
localSettings.auth = {};
|
|
152
|
+
}
|
|
153
|
+
if (localSettings.auth) {
|
|
154
|
+
if (this.clientId)
|
|
155
|
+
localSettings.auth.clientId = this.clientId;
|
|
156
|
+
if (this.password)
|
|
157
|
+
localSettings.auth.clientSecret = this.password;
|
|
158
|
+
if (this.objectId)
|
|
159
|
+
localSettings.auth.objectId = this.objectId;
|
|
160
|
+
if (this.oauth2PermissionScopeId)
|
|
161
|
+
localSettings.auth.oauth2PermissionScopeId = this.oauth2PermissionScopeId;
|
|
162
|
+
localSettings.auth.tenantId = tenantId;
|
|
163
|
+
localSettings.auth.oauthHost = constants_1.Constants.oauthAuthorityPrefix;
|
|
164
|
+
localSettings.auth.oauthAuthority = oauthAuthority;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
saveConfigIntoEnvInfo(envInfo, tenantId) {
|
|
168
|
+
if (!envInfo.state[constants_2.BuiltInFeaturePluginNames.aad]) {
|
|
169
|
+
envInfo.state[constants_2.BuiltInFeaturePluginNames.aad] = {};
|
|
170
|
+
envInfo.state[constants_2.BuiltInFeaturePluginNames.aad].secretFields = ["clientSecret"];
|
|
171
|
+
}
|
|
172
|
+
const envState = envInfo.state[constants_2.BuiltInFeaturePluginNames.aad];
|
|
173
|
+
const oauthAuthority = ProvisionConfig.getOauthAuthority(tenantId);
|
|
174
|
+
if (this.clientId)
|
|
175
|
+
envState.clientId = this.clientId;
|
|
176
|
+
if (this.password)
|
|
177
|
+
envState.clientSecret = this.password;
|
|
178
|
+
if (this.objectId)
|
|
179
|
+
envState.objectId = this.objectId;
|
|
180
|
+
if (this.oauth2PermissionScopeId)
|
|
181
|
+
envState.oauth2PermissionScopeId = this.oauth2PermissionScopeId;
|
|
182
|
+
envState.tenantId = tenantId;
|
|
183
|
+
envState.oauthHost = constants_1.Constants.oauthAuthorityPrefix;
|
|
184
|
+
envState.oauthAuthority = oauthAuthority;
|
|
121
185
|
}
|
|
122
186
|
static getOauthAuthority(tenantId) {
|
|
123
187
|
return `${constants_1.Constants.oauthAuthorityPrefix}/${tenantId}`;
|
|
@@ -158,6 +222,46 @@ class SetApplicationInContextConfig {
|
|
|
158
222
|
throw results_1.ResultFactory.SystemError(errors_1.GetConfigError.name, errors_1.GetConfigError.message(errors_1.ConfigErrorMessages.GetConfigError(constants_1.ConfigKeys.clientId, constants_1.Plugins.pluginName)));
|
|
159
223
|
}
|
|
160
224
|
}
|
|
225
|
+
restoreConfigFromLocalSettings(localSettings) {
|
|
226
|
+
var _a, _b, _c;
|
|
227
|
+
const frontendDomain = (_a = localSettings.frontend) === null || _a === void 0 ? void 0 : _a.tabDomain;
|
|
228
|
+
if (frontendDomain) {
|
|
229
|
+
this.frontendDomain = format_1.format(frontendDomain, format_1.Formats.Domain);
|
|
230
|
+
}
|
|
231
|
+
const botId = (_b = localSettings.bot) === null || _b === void 0 ? void 0 : _b.botId;
|
|
232
|
+
if (botId) {
|
|
233
|
+
this.botId = format_1.format(botId, format_1.Formats.UUID);
|
|
234
|
+
}
|
|
235
|
+
const clientId = (_c = localSettings.auth) === null || _c === void 0 ? void 0 : _c.clientId;
|
|
236
|
+
if (clientId) {
|
|
237
|
+
this.clientId = clientId;
|
|
238
|
+
}
|
|
239
|
+
else {
|
|
240
|
+
throw results_1.ResultFactory.SystemError(errors_1.GetConfigError.name, errors_1.GetConfigError.message(errors_1.ConfigErrorMessages.GetConfigError(constants_1.ConfigKeys.clientId, constants_1.Plugins.pluginName)));
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
restoreConfigFromEnvInfo(ctx, envInfo) {
|
|
244
|
+
var _a, _b;
|
|
245
|
+
const aadResource = envInfo.state[constants_2.BuiltInFeaturePluginNames.aad];
|
|
246
|
+
let frontendDomain = aadResource === null || aadResource === void 0 ? void 0 : aadResource.domain;
|
|
247
|
+
if (!frontendDomain) {
|
|
248
|
+
frontendDomain = (_a = envInfo.state[constants_2.BuiltInFeaturePluginNames.frontend]) === null || _a === void 0 ? void 0 : _a.domain;
|
|
249
|
+
}
|
|
250
|
+
if (frontendDomain) {
|
|
251
|
+
this.frontendDomain = format_1.format(frontendDomain, format_1.Formats.Domain);
|
|
252
|
+
}
|
|
253
|
+
const botId = (_b = envInfo.state[constants_2.BuiltInFeaturePluginNames.bot]) === null || _b === void 0 ? void 0 : _b.botId;
|
|
254
|
+
if (botId) {
|
|
255
|
+
this.botId = format_1.format(botId, format_1.Formats.UUID);
|
|
256
|
+
}
|
|
257
|
+
const clientId = aadResource === null || aadResource === void 0 ? void 0 : aadResource.clientId;
|
|
258
|
+
if (clientId) {
|
|
259
|
+
this.clientId = clientId;
|
|
260
|
+
}
|
|
261
|
+
else {
|
|
262
|
+
throw results_1.ResultFactory.SystemError(errors_1.GetConfigError.name, errors_1.GetConfigError.message(errors_1.ConfigErrorMessages.GetConfigError(constants_1.ConfigKeys.clientId, constants_1.Plugins.pluginName)));
|
|
263
|
+
}
|
|
264
|
+
}
|
|
161
265
|
saveConfigIntoContext(ctx) {
|
|
162
266
|
ConfigUtils.checkAndSaveConfig(ctx, constants_1.ConfigKeys.applicationIdUri, this.applicationIdUri, this.isLocalDebug);
|
|
163
267
|
}
|
|
@@ -167,6 +271,81 @@ class PostProvisionConfig {
|
|
|
167
271
|
constructor(isLocalDebug = false) {
|
|
168
272
|
this.isLocalDebug = isLocalDebug;
|
|
169
273
|
}
|
|
274
|
+
restoreConfigFromLocalSettings(localSettings) {
|
|
275
|
+
var _a, _b, _c, _d, _e;
|
|
276
|
+
const frontendEndpoint = (_a = localSettings.frontend) === null || _a === void 0 ? void 0 : _a.tabEndpoint;
|
|
277
|
+
if (frontendEndpoint) {
|
|
278
|
+
this.frontendEndpoint = format_1.format(frontendEndpoint, format_1.Formats.Endpoint);
|
|
279
|
+
}
|
|
280
|
+
const botEndpoint = (_b = localSettings.bot) === null || _b === void 0 ? void 0 : _b.botEndpoint;
|
|
281
|
+
if (botEndpoint) {
|
|
282
|
+
this.botEndpoint = format_1.format(botEndpoint, format_1.Formats.Endpoint);
|
|
283
|
+
}
|
|
284
|
+
const objectId = (_c = localSettings.auth) === null || _c === void 0 ? void 0 : _c.objectId;
|
|
285
|
+
if (objectId) {
|
|
286
|
+
this.objectId = objectId;
|
|
287
|
+
}
|
|
288
|
+
if (objectId) {
|
|
289
|
+
this.objectId = objectId;
|
|
290
|
+
}
|
|
291
|
+
else {
|
|
292
|
+
throw results_1.ResultFactory.SystemError(errors_1.GetConfigError.name, errors_1.GetConfigError.message(errors_1.ConfigErrorMessages.GetConfigError(constants_1.ConfigKeys.objectId, constants_1.Plugins.pluginName)));
|
|
293
|
+
}
|
|
294
|
+
const applicationIdUri = (_d = localSettings.auth) === null || _d === void 0 ? void 0 : _d.applicationIdUris;
|
|
295
|
+
if (applicationIdUri) {
|
|
296
|
+
this.applicationIdUri = applicationIdUri;
|
|
297
|
+
}
|
|
298
|
+
else {
|
|
299
|
+
throw results_1.ResultFactory.SystemError(errors_1.GetConfigError.name, errors_1.GetConfigError.message(errors_1.ConfigErrorMessages.GetConfigError(constants_1.ConfigKeys.applicationIdUri, constants_1.Plugins.pluginName)));
|
|
300
|
+
}
|
|
301
|
+
const clientId = (_e = localSettings.auth) === null || _e === void 0 ? void 0 : _e.clientId;
|
|
302
|
+
if (objectId) {
|
|
303
|
+
this.clientId = clientId;
|
|
304
|
+
}
|
|
305
|
+
else {
|
|
306
|
+
throw results_1.ResultFactory.SystemError(errors_1.GetConfigError.name, errors_1.GetConfigError.message(errors_1.ConfigErrorMessages.GetConfigError(constants_1.ConfigKeys.clientId, constants_1.Plugins.pluginName)));
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
restoreConfigFromEnvInfo(ctx, envInfo) {
|
|
310
|
+
var _a, _b;
|
|
311
|
+
// const solutionSettings = ctx.projectSetting.solutionSettings as v3.TeamsFxSolutionSettings;
|
|
312
|
+
const aadResource = envInfo.state[constants_2.BuiltInFeaturePluginNames.aad];
|
|
313
|
+
let frontendEndpoint = aadResource === null || aadResource === void 0 ? void 0 : aadResource.endpoint;
|
|
314
|
+
if (!frontendEndpoint) {
|
|
315
|
+
frontendEndpoint = (_a = envInfo.state[constants_2.BuiltInFeaturePluginNames.frontend]) === null || _a === void 0 ? void 0 : _a.endpoint;
|
|
316
|
+
}
|
|
317
|
+
if (frontendEndpoint) {
|
|
318
|
+
this.frontendEndpoint = format_1.format(frontendEndpoint, format_1.Formats.Endpoint);
|
|
319
|
+
}
|
|
320
|
+
const botEndpoint = (_b = envInfo.state[constants_2.BuiltInFeaturePluginNames.bot]) === null || _b === void 0 ? void 0 : _b.siteEndpoint;
|
|
321
|
+
if (botEndpoint) {
|
|
322
|
+
this.botEndpoint = format_1.format(botEndpoint, format_1.Formats.Endpoint);
|
|
323
|
+
}
|
|
324
|
+
const objectId = aadResource === null || aadResource === void 0 ? void 0 : aadResource.objectId;
|
|
325
|
+
if (objectId) {
|
|
326
|
+
this.objectId = objectId;
|
|
327
|
+
}
|
|
328
|
+
if (objectId) {
|
|
329
|
+
this.objectId = objectId;
|
|
330
|
+
}
|
|
331
|
+
else {
|
|
332
|
+
throw results_1.ResultFactory.SystemError(errors_1.GetConfigError.name, errors_1.GetConfigError.message(errors_1.ConfigErrorMessages.GetConfigError(constants_1.ConfigKeys.objectId, constants_1.Plugins.pluginName)));
|
|
333
|
+
}
|
|
334
|
+
const applicationIdUri = aadResource === null || aadResource === void 0 ? void 0 : aadResource.applicationIdUris;
|
|
335
|
+
if (applicationIdUri) {
|
|
336
|
+
this.applicationIdUri = applicationIdUri;
|
|
337
|
+
}
|
|
338
|
+
else {
|
|
339
|
+
throw results_1.ResultFactory.SystemError(errors_1.GetConfigError.name, errors_1.GetConfigError.message(errors_1.ConfigErrorMessages.GetConfigError(constants_1.ConfigKeys.applicationIdUri, constants_1.Plugins.pluginName)));
|
|
340
|
+
}
|
|
341
|
+
const clientId = aadResource === null || aadResource === void 0 ? void 0 : aadResource.clientId;
|
|
342
|
+
if (clientId) {
|
|
343
|
+
this.clientId = clientId;
|
|
344
|
+
}
|
|
345
|
+
else {
|
|
346
|
+
throw results_1.ResultFactory.SystemError(errors_1.GetConfigError.name, errors_1.GetConfigError.message(errors_1.ConfigErrorMessages.GetConfigError(constants_1.ConfigKeys.clientId, constants_1.Plugins.pluginName)));
|
|
347
|
+
}
|
|
348
|
+
}
|
|
170
349
|
async restoreConfigFromContext(ctx) {
|
|
171
350
|
var _a, _b;
|
|
172
351
|
let frontendEndpoint;
|
|
@@ -203,6 +382,13 @@ class PostProvisionConfig {
|
|
|
203
382
|
else {
|
|
204
383
|
throw results_1.ResultFactory.SystemError(errors_1.GetConfigError.name, errors_1.GetConfigError.message(errors_1.ConfigErrorMessages.GetConfigError(constants_1.ConfigKeys.applicationIdUri, constants_1.Plugins.pluginName)));
|
|
205
384
|
}
|
|
385
|
+
const clientId = ConfigUtils.getAadConfig(ctx, constants_1.ConfigKeys.clientId, this.isLocalDebug);
|
|
386
|
+
if (clientId) {
|
|
387
|
+
this.clientId = clientId;
|
|
388
|
+
}
|
|
389
|
+
else {
|
|
390
|
+
throw results_1.ResultFactory.SystemError(errors_1.GetConfigError.name, errors_1.GetConfigError.message(errors_1.ConfigErrorMessages.GetConfigError(constants_1.ConfigKeys.clientId, constants_1.Plugins.pluginName)));
|
|
391
|
+
}
|
|
206
392
|
}
|
|
207
393
|
}
|
|
208
394
|
exports.PostProvisionConfig = PostProvisionConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configs.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/aad/utils/configs.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAGlC,4CAAuF;AACvF,sCAImB;AACnB,qCAA2C;AAC3C,qCAAiC;AACjC,wCAA2C;AAC3C,+BAAoC;AACpC,+CAAuD;AACvD,sFAGmD;AAEnD,MAAa,WAAW;IACf,MAAM,CAAC,YAAY,CACxB,GAAkB,EAClB,GAAW,EACX,YAAY,GAAG,KAAK;;QAEpB,IAAI,YAAY,EAAE;YAChB,IAAI,0BAAiB,EAAE,EAAE;gBACvB,OAAO,MAAA,MAAA,GAAG,CAAC,aAAa,0CAAE,IAAI,0CAAE,GAAG,CAAC,GAAG,CAAW,CAAC;aACpD;iBAAM;gBACL,OAAO,MAAA,GAAG,CAAC,MAAM,0CAAE,GAAG,CAAC,cAAK,CAAC,mBAAmB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAW,CAAC;aACxE;SACF;aAAM;YACL,IAAI,0BAAiB,EAAE,EAAE;gBACvB,OAAO,MAAA,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,mBAAO,CAAC,iBAAiB,CAAC,0CAAE,GAAG,CAAC,GAAG,CAAW,CAAC;aAC7E;iBAAM;gBACL,OAAO,MAAA,GAAG,CAAC,MAAM,0CAAE,GAAG,CAAC,GAAG,CAAW,CAAC;aACvC;SACF;IACH,CAAC;IAEM,MAAM,CAAC,iCAAiC,CAC7C,GAAkB,EAClB,GAAW;;QAEX,MAAM,gBA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E,mBAAO,CAAC,UAAU,CAAC,CAAC,CACvF,CAAC;SACH;QAED,IAAI,CAAC,iBAAiB,GAAG,MAAM,WAAW,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC;IACvE,CAAC;CACF;AA1BD,wDA0BC;AAED,MAAa,0BAA0B;IAIrC,YAAY,iBAAiB,GAAG,KAAK;QACnC,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC7C,CAAC;IAEM,KAAK,CAAC,wBAAwB,CAAC,GAAkB;;QACtD,MAAM,QAAQ,GAAgB,MAAA,GAAG,CAAC,MAAM,0CAAE,GAAG,CAAC,sBAAU,CAAC,QAAQ,CAAC,CAAC;QACnE,IAAI,QAAQ,EAAE;YACZ,IAAI,CAAC,QAAQ,GAAG,QAAkB,CAAC;SACpC;aAAM;YACL,MAAM,uBAAa,CAAC,WAAW,CAC7B,uBAAc,CAAC,IAAI,EACnB,cAAK,CAAC,yBAAyB,CAC7B,uBAAc,CAAC,OAAO,CAAC,4BAAM,CAAC,cAAc,CAAC,sBAAU,CAAC,QAAQ,EAAE,mBAAO,CAAC,UAAU,CAAC,CAAC,EACtF,IAAI,CAAC,iBAAiB,CACvB,CACF,CAAC;SACH;IACH,CAAC;CACF;AAtBD,gEAsBC"}
|
|
1
|
+
{"version":3,"file":"configs.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/aad/utils/configs.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,wDASgC;AAChC,4CAAuF;AACvF,sCAImB;AACnB,qCAA2C;AAC3C,qCAAiC;AACjC,wCAA2C;AAC3C,+BAAoC;AACpC,sFAGmD;AACnD,8BAA6C;AAC7C,0EAAuF;AAEvF,MAAa,WAAW;IACf,MAAM,CAAC,YAAY,CACxB,GAAkB,EAClB,GAAW,EACX,YAAY,GAAG,KAAK;;QAEpB,IAAI,YAAY,EAAE;YAChB,OAAO,MAAA,MAAA,GAAG,CAAC,aAAa,0CAAE,IAAI,0CAAE,G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C,4BAAM,CAAC,cAAc,CAAC,sBAAU,CAAC,QAAQ,EAAE,mBAAO,CAAC,UAAU,CAAC,CAAC,CACvF,CAAC;SACH;QAED,IAAI,CAAC,iBAAiB,GAAG,MAAM,WAAW,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC;IACvE,CAAC;CACF;AA1BD,wDA0BC;AAED,MAAa,0BAA0B;IAIrC,YAAY,iBAAiB,GAAG,KAAK;QACnC,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC7C,CAAC;IAEM,KAAK,CAAC,wBAAwB,CAAC,GAAkB;;QACtD,MAAM,QAAQ,GAAgB,MAAA,GAAG,CAAC,MAAM,0CAAE,GAAG,CAAC,sBAAU,CAAC,QAAQ,CAAC,CAAC;QACnE,IAAI,QAAQ,EAAE;YACZ,IAAI,CAAC,QAAQ,GAAG,QAAkB,CAAC;SACpC;aAAM;YACL,MAAM,uBAAa,CAAC,WAAW,CAC7B,uBAAc,CAAC,IAAI,EACnB,cAAK,CAAC,yBAAyB,CAC7B,uBAAc,CAAC,OAAO,CAAC,4BAAM,CAAC,cAAc,CAAC,sBAAU,CAAC,QAAQ,EAAE,mBAAO,CAAC,UAAU,CAAC,CAAC,EACtF,IAAI,CAAC,iBAAiB,CACvB,CACF,CAAC;SACH;IACH,CAAC;CACF;AAtBD,gEAsBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/aad/utils/telemetry.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/aad/utils/telemetry.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAKvD,qBAAa,cAAc;WACX,IAAI,CAAC,GAAG,EAAE,aAAa,GAAG,IAAI;WAE9B,SAAS,CACrB,SAAS,EAAE,MAAM,EACjB,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,EACtC,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GACvC,IAAI;WASO,gBAAgB,CAC5B,SAAS,EAAE,MAAM,EACjB,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,EACtC,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GACvC,IAAI;WAQO,cAAc,CAC1B,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,EACpB,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,EACtC,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GACvC,IAAI;IAcP,MAAM,CAAC,QAAQ,CAAC,gBAAgB,cAAe,MAAM,gBAAgB,MAAM;;;MAKzE;IAEF,OAAO,CAAC,MAAM,CAAC,kBAAkB;CAIlC"}
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
// Licensed under the MIT license.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.TelemetryUtils = void 0;
|
|
6
|
+
const core_1 = require("../../../../core");
|
|
7
|
+
const solutionGlobalVars_1 = require("../../../solution/fx-solution/v3/solutionGlobalVars");
|
|
6
8
|
const constants_1 = require("../constants");
|
|
7
9
|
class TelemetryUtils {
|
|
8
|
-
static init(ctx) {
|
|
9
|
-
TelemetryUtils.ctx = ctx;
|
|
10
|
-
}
|
|
10
|
+
static init(ctx) { }
|
|
11
11
|
static sendEvent(eventName, properties, measurements) {
|
|
12
12
|
var _a;
|
|
13
13
|
if (!properties) {
|
|
14
14
|
properties = {};
|
|
15
15
|
}
|
|
16
16
|
properties[constants_1.Telemetry.component] = constants_1.Plugins.pluginNameComplex;
|
|
17
|
-
TelemetryUtils.addAppIdInProperty(properties
|
|
18
|
-
(_a =
|
|
17
|
+
TelemetryUtils.addAppIdInProperty(properties);
|
|
18
|
+
(_a = core_1.TOOLS.telemetryReporter) === null || _a === void 0 ? void 0 : _a.sendTelemetryEvent(eventName, properties, measurements);
|
|
19
19
|
}
|
|
20
20
|
static sendSuccessEvent(eventName, properties, measurements) {
|
|
21
21
|
if (!properties) {
|
|
@@ -34,19 +34,12 @@ class TelemetryUtils {
|
|
|
34
34
|
properties[constants_1.Telemetry.errorType] = errorType;
|
|
35
35
|
properties[constants_1.Telemetry.errorMessage] = errorMessage;
|
|
36
36
|
properties[constants_1.Telemetry.isSuccess] = constants_1.Telemetry.no;
|
|
37
|
-
TelemetryUtils.addAppIdInProperty(properties
|
|
38
|
-
(_a =
|
|
37
|
+
TelemetryUtils.addAppIdInProperty(properties);
|
|
38
|
+
(_a = core_1.TOOLS.telemetryReporter) === null || _a === void 0 ? void 0 : _a.sendTelemetryErrorEvent(eventName, properties, measurements);
|
|
39
39
|
}
|
|
40
|
-
static addAppIdInProperty(properties
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
.get(constants_1.Plugins.solution)) === null || _a === void 0 ? void 0 : _a.get(constants_1.ConfigKeysOfOtherPlugin.remoteTeamsAppId);
|
|
44
|
-
if (appId) {
|
|
45
|
-
properties[constants_1.Telemetry.appId] = appId;
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
properties[constants_1.Telemetry.appId] = "";
|
|
49
|
-
}
|
|
40
|
+
static addAppIdInProperty(properties) {
|
|
41
|
+
const appId = solutionGlobalVars_1.solutionGlobalVars.TeamsAppId || "";
|
|
42
|
+
properties[constants_1.Telemetry.appId] = appId;
|
|
50
43
|
}
|
|
51
44
|
}
|
|
52
45
|
exports.TelemetryUtils = TelemetryUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/aad/utils/telemetry.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAGlC,
|
|
1
|
+
{"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/aad/utils/telemetry.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAGlC,2CAAyC;AACzC,4FAAyF;AACzF,4CAAkD;AAElD,MAAa,cAAc;IAClB,MAAM,CAAC,IAAI,CAAC,GAAkB,IAAS,CAAC;IAExC,MAAM,CAAC,SAAS,CACrB,SAAiB,EACjB,UAAsC,EACtC,YAAwC;;QAExC,IAAI,CAAC,UAAU,EAAE;YACf,UAAU,GAAG,EAAE,CAAC;SACjB;QACD,UAAU,CAAC,qBAAS,CAAC,SAAS,CAAC,GAAG,mBAAO,CAAC,iBAAiB,CAAC;QAC5D,cAAc,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAC9C,MAAA,YAAK,CAAC,iBAAiB,0CAAE,kBAAkB,CAAC,SAAS,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC;IACnF,CAAC;IAEM,MAAM,CAAC,gBAAgB,CAC5B,SAAiB,EACjB,UAAsC,EACtC,YAAwC;QAExC,IAAI,CAAC,UAAU,EAAE;YACf,UAAU,GAAG,EAAE,CAAC;SACjB;QACD,UAAU,CAAC,qBAAS,CAAC,SAAS,CAAC,GAAG,qBAAS,CAAC,GAAG,CAAC;QAChD,cAAc,CAAC,SAAS,CAAC,SAAS,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC;IAChE,CAAC;IAEM,MAAM,CAAC,cAAc,CAC1B,SAAiB,EACjB,SAAiB,EACjB,SAAiB,EACjB,YAAoB,EACpB,UAAsC,EACtC,YAAwC;;QAExC,IAAI,CAAC,UAAU,EAAE;YACf,UAAU,GAAG,EAAE,CAAC;SACjB;QAED,UAAU,CAAC,qBAAS,CAAC,SAAS,CAAC,GAAG,mBAAO,CAAC,iBAAiB,CAAC;QAC5D,UAAU,CAAC,qBAAS,CAAC,SAAS,CAAC,GAAG,GAAG,mBAAO,CAAC,eAAe,IAAI,SAAS,EAAE,CAAC;QAC5E,UAAU,CAAC,qBAAS,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;QAC5C,UAAU,CAAC,qBAAS,CAAC,YAAY,CAAC,GAAG,YAAY,CAAC;QAClD,UAAU,CAAC,qBAAS,CAAC,SAAS,CAAC,GAAG,qBAAS,CAAC,EAAE,CAAC;QAC/C,cAAc,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAC9C,MAAA,YAAK,CAAC,iBAAiB,0CAAE,uBAAuB,CAAC,SAAS,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC;IACxF,CAAC;IASO,MAAM,CAAC,kBAAkB,CAAC,UAAqC;QACrE,MAAM,KAAK,GAAG,uCAAkB,CAAC,UAAU,IAAI,EAAE,CAAC;QAClD,UAAU,CAAC,qBAAS,CAAC,KAAK,CAAC,GAAG,KAAe,CAAC;IAChD,CAAC;;AA3DH,wCA4DC;AAXiB,+BAAgB,GAAG,CAAC,SAAiB,EAAE,YAAoB,EAAE,EAAE;IAC7E,OAAO;QACL,YAAY,EAAE,SAAS;QACvB,eAAe,EAAE,YAAY;KAC9B,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AppStudioTokenProvider, GraphTokenProvider } from "@microsoft/teamsfx-api";
|
|
2
2
|
export declare enum TokenAudience {
|
|
3
3
|
Graph = "graph",
|
|
4
4
|
AppStudio = "appStudio"
|
|
5
5
|
}
|
|
6
|
+
export interface GraphAndAppStudioTokenProvider {
|
|
7
|
+
graph?: GraphTokenProvider;
|
|
8
|
+
appStudio?: AppStudioTokenProvider;
|
|
9
|
+
}
|
|
6
10
|
export declare class TokenProvider {
|
|
7
11
|
static token?: string;
|
|
8
12
|
static tenantId?: string;
|
|
9
13
|
static audience: TokenAudience;
|
|
10
|
-
static init(
|
|
14
|
+
static init(tokenProvider: GraphAndAppStudioTokenProvider, audience?: TokenAudience): Promise<void>;
|
|
11
15
|
}
|
|
12
16
|
//# sourceMappingURL=tokenProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokenProvider.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/aad/utils/tokenProvider.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"tokenProvider.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/aad/utils/tokenProvider.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAiB,MAAM,wBAAwB,CAAC;AAInG,oBAAY,aAAa;IACvB,KAAK,UAAU;IACf,SAAS,cAAc;CACxB;AAED,MAAM,WAAW,8BAA8B;IAC7C,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,SAAS,CAAC,EAAE,sBAAsB,CAAC;CACpC;AAgDD,qBAAa,aAAa;IACxB,MAAM,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,QAAQ,EAAE,aAAa,CAAC;WAEX,IAAI,CACtB,aAAa,EAAE,8BAA8B,EAC7C,QAAQ,GAAE,aAAmC,GAC5C,OAAO,CAAC,IAAI,CAAC;CAwBjB"}
|
|
@@ -11,14 +11,14 @@ var TokenAudience;
|
|
|
11
11
|
TokenAudience["AppStudio"] = "appStudio";
|
|
12
12
|
})(TokenAudience = exports.TokenAudience || (exports.TokenAudience = {}));
|
|
13
13
|
class GraphInstance {
|
|
14
|
-
async getToken(
|
|
14
|
+
async getToken(tokenProvider) {
|
|
15
15
|
var _a;
|
|
16
|
-
const token = await ((_a =
|
|
16
|
+
const token = await ((_a = tokenProvider.graph) === null || _a === void 0 ? void 0 : _a.getAccessToken());
|
|
17
17
|
return token;
|
|
18
18
|
}
|
|
19
|
-
async getTenant(
|
|
19
|
+
async getTenant(tokenProvider) {
|
|
20
20
|
var _a;
|
|
21
|
-
const tokenObject = await ((_a =
|
|
21
|
+
const tokenObject = await ((_a = tokenProvider.graph) === null || _a === void 0 ? void 0 : _a.getJsonObject());
|
|
22
22
|
if (!tokenObject) {
|
|
23
23
|
return undefined;
|
|
24
24
|
}
|
|
@@ -27,14 +27,14 @@ class GraphInstance {
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
class AppStudioInstance {
|
|
30
|
-
async getToken(
|
|
30
|
+
async getToken(tokenProvider) {
|
|
31
31
|
var _a;
|
|
32
|
-
const token = await ((_a =
|
|
32
|
+
const token = await ((_a = tokenProvider.appStudio) === null || _a === void 0 ? void 0 : _a.getAccessToken());
|
|
33
33
|
return token;
|
|
34
34
|
}
|
|
35
|
-
async getTenant(
|
|
35
|
+
async getTenant(tokenProvider) {
|
|
36
36
|
var _a;
|
|
37
|
-
const tokenObject = await ((_a =
|
|
37
|
+
const tokenObject = await ((_a = tokenProvider.appStudio) === null || _a === void 0 ? void 0 : _a.getJsonObject());
|
|
38
38
|
if (!tokenObject) {
|
|
39
39
|
return undefined;
|
|
40
40
|
}
|
|
@@ -43,7 +43,7 @@ class AppStudioInstance {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
class TokenProvider {
|
|
46
|
-
static async init(
|
|
46
|
+
static async init(tokenProvider, audience = TokenAudience.Graph) {
|
|
47
47
|
this.audience = audience;
|
|
48
48
|
let instance;
|
|
49
49
|
if (audience === TokenAudience.AppStudio) {
|
|
@@ -52,14 +52,14 @@ class TokenProvider {
|
|
|
52
52
|
else {
|
|
53
53
|
instance = new GraphInstance();
|
|
54
54
|
}
|
|
55
|
-
const token = await instance.getToken(
|
|
55
|
+
const token = await instance.getToken(tokenProvider);
|
|
56
56
|
if (token) {
|
|
57
57
|
TokenProvider.token = token;
|
|
58
58
|
}
|
|
59
59
|
else {
|
|
60
60
|
throw results_1.ResultFactory.SystemError(errors_1.GetTokenError.name, errors_1.GetTokenError.message(this.audience));
|
|
61
61
|
}
|
|
62
|
-
const tenantId = await instance.getTenant(
|
|
62
|
+
const tenantId = await instance.getTenant(tokenProvider);
|
|
63
63
|
if (tenantId) {
|
|
64
64
|
this.tenantId = tenantId;
|
|
65
65
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokenProvider.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/aad/utils/tokenProvider.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAGlC,wCAA2C;AAC3C,sCAA+D;AAE/D,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,gCAAe,CAAA;IACf,wCAAuB,CAAA;AACzB,CAAC,EAHW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAGxB;
|
|
1
|
+
{"version":3,"file":"tokenProvider.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/aad/utils/tokenProvider.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAGlC,wCAA2C;AAC3C,sCAA+D;AAE/D,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,gCAAe,CAAA;IACf,wCAAuB,CAAA;AACzB,CAAC,EAHW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAGxB;AAWD,MAAM,aAAa;IACV,KAAK,CAAC,QAAQ,CACnB,aAA6C;;QAE7C,MAAM,KAAK,GAAG,MAAM,CAAA,MAAA,aAAa,CAAC,KAAK,0CAAE,cAAc,EAAE,CAAA,CAAC;QAC1D,OAAO,KAAK,CAAC;IACf,CAAC;IAEM,KAAK,CAAC,SAAS,CACpB,aAA6C;;QAE7C,MAAM,WAAW,GAAG,MAAM,CAAA,MAAA,aAAa,CAAC,KAAK,0CAAE,aAAa,EAAE,CAAA,CAAC;QAC/D,IAAI,CAAC,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