@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
|
@@ -40,40 +40,42 @@ var TelemetryEventName;
|
|
|
40
40
|
TelemetryEventName["grantPermission"] = "grant-permission";
|
|
41
41
|
TelemetryEventName["listCollaborator"] = "list-collaborator";
|
|
42
42
|
TelemetryEventName["localDebug"] = "local-debug";
|
|
43
|
+
TelemetryEventName["init"] = "init";
|
|
44
|
+
TelemetryEventName["addCapability"] = "add-capability";
|
|
45
|
+
TelemetryEventName["loadManifest"] = "load-manifest";
|
|
46
|
+
TelemetryEventName["saveManifest"] = "save-manifest";
|
|
43
47
|
})(TelemetryEventName = exports.TelemetryEventName || (exports.TelemetryEventName = {}));
|
|
44
48
|
class TelemetryUtils {
|
|
45
49
|
static init(ctx) {
|
|
46
50
|
TelemetryUtils.ctx = ctx;
|
|
47
51
|
}
|
|
48
52
|
static sendStartEvent(eventName, properties, measurements) {
|
|
49
|
-
var _a, _b;
|
|
53
|
+
var _a, _b, _c;
|
|
50
54
|
if (!properties) {
|
|
51
55
|
properties = {};
|
|
52
56
|
}
|
|
53
57
|
properties[TelemetryPropertyKey.component] = constants_1.Constants.PLUGIN_NAME;
|
|
54
|
-
const teamsAppId = (_a = this.ctx.envInfo.state
|
|
55
|
-
.get(constants_2.PluginNames.APPST)) === null || _a === void 0 ? void 0 : _a.get(constants_1.Constants.TEAMS_APP_ID);
|
|
58
|
+
const teamsAppId = (_b = (_a = this.ctx.envInfo) === null || _a === void 0 ? void 0 : _a.state.get(constants_2.PluginNames.APPST)) === null || _b === void 0 ? void 0 : _b.get(constants_1.Constants.TEAMS_APP_ID);
|
|
56
59
|
if (teamsAppId) {
|
|
57
60
|
properties[TelemetryPropertyKey.appId] = teamsAppId;
|
|
58
61
|
}
|
|
59
|
-
(
|
|
62
|
+
(_c = TelemetryUtils.ctx.telemetryReporter) === null || _c === void 0 ? void 0 : _c.sendTelemetryErrorEvent(`${eventName}-start`, properties, measurements);
|
|
60
63
|
}
|
|
61
64
|
static sendSuccessEvent(eventName, properties, measurements) {
|
|
62
|
-
var _a, _b;
|
|
65
|
+
var _a, _b, _c;
|
|
63
66
|
if (!properties) {
|
|
64
67
|
properties = {};
|
|
65
68
|
}
|
|
66
69
|
properties[TelemetryPropertyKey.component] = constants_1.Constants.PLUGIN_NAME;
|
|
67
70
|
properties[TelemetryPropertyKey.success] = TelemetryPropertyValue.success;
|
|
68
|
-
const teamsAppId = (_a = this.ctx.envInfo.state
|
|
69
|
-
.get(constants_2.PluginNames.APPST)) === null || _a === void 0 ? void 0 : _a.get(constants_1.Constants.TEAMS_APP_ID);
|
|
71
|
+
const teamsAppId = (_b = (_a = this.ctx.envInfo) === null || _a === void 0 ? void 0 : _a.state.get(constants_2.PluginNames.APPST)) === null || _b === void 0 ? void 0 : _b.get(constants_1.Constants.TEAMS_APP_ID);
|
|
70
72
|
if (teamsAppId) {
|
|
71
73
|
properties[TelemetryPropertyKey.appId] = teamsAppId;
|
|
72
74
|
}
|
|
73
|
-
(
|
|
75
|
+
(_c = TelemetryUtils.ctx.telemetryReporter) === null || _c === void 0 ? void 0 : _c.sendTelemetryEvent(eventName, properties, measurements);
|
|
74
76
|
}
|
|
75
77
|
static sendErrorEvent(eventName, error, properties, measurements) {
|
|
76
|
-
var _a, _b;
|
|
78
|
+
var _a, _b, _c;
|
|
77
79
|
if (!properties) {
|
|
78
80
|
properties = {};
|
|
79
81
|
}
|
|
@@ -87,12 +89,11 @@ class TelemetryUtils {
|
|
|
87
89
|
properties[TelemetryPropertyKey.errorCode] = `${error.source}.${error.name}`;
|
|
88
90
|
properties[TelemetryPropertyKey.errorMessage] = error.message;
|
|
89
91
|
properties[TelemetryPropertyKey.success] = TelemetryPropertyValue.failure;
|
|
90
|
-
const teamsAppId = (_a = this.ctx.envInfo.state
|
|
91
|
-
.get(constants_2.PluginNames.APPST)) === null || _a === void 0 ? void 0 : _a.get(constants_1.Constants.TEAMS_APP_ID);
|
|
92
|
+
const teamsAppId = (_b = (_a = this.ctx.envInfo) === null || _a === void 0 ? void 0 : _a.state.get(constants_2.PluginNames.APPST)) === null || _b === void 0 ? void 0 : _b.get(constants_1.Constants.TEAMS_APP_ID);
|
|
92
93
|
if (teamsAppId) {
|
|
93
94
|
properties[TelemetryPropertyKey.appId] = teamsAppId;
|
|
94
95
|
}
|
|
95
|
-
(
|
|
96
|
+
(_c = TelemetryUtils.ctx.telemetryReporter) === null || _c === void 0 ? void 0 : _c.sendTelemetryErrorEvent(eventName, properties, measurements);
|
|
96
97
|
}
|
|
97
98
|
}
|
|
98
99
|
exports.TelemetryUtils = TelemetryUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/appstudio/utils/telemetry.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,
|
|
1
|
+
{"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/appstudio/utils/telemetry.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,wDAAmF;AACnF,8CAA2C;AAC3C,uEAAsE;AAEtE,IAAY,oBAWX;AAXD,WAAY,oBAAoB;IAC9B,+CAAuB,CAAA;IACvB,gDAAwB,CAAA;IACxB,gDAAwB,CAAA;IACxB,sDAA8B,CAAA;IAC9B,8DAAsC,CAAA;IACtC,oDAA4B,CAAA;IAC5B,2CAAmB,CAAA;IACnB,uCAAe,CAAA;IACf,2DAAmC,CAAA;IACnC,mEAA2C,CAAA;AAC7C,CAAC,EAXW,oBAAoB,GAApB,4BAAoB,K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AC;SAC/E;QACD,UAAU,CAAC,oBAAoB,CAAC,SAAS,CAAC,GAAG,GAAG,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;QAC7E,UAAU,CAAC,oBAAoB,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC;QAC9D,UAAU,CAAC,oBAAoB,CAAC,OAAO,CAAC,GAAG,sBAAsB,CAAC,OAAO,CAAC;QAE1E,MAAM,UAAU,GAAG,MAAA,MAAC,IAAI,CAAC,GAAqB,CAAC,OAAO,0CAAE,KAAK,CAC1D,GAAG,CAAC,uBAAW,CAAC,KAAK,CAAC,0CACrB,GAAG,CAAC,qBAAS,CAAC,YAAY,CAAW,CAAC;QAC1C,IAAI,UAAU,EAAE;YACd,UAAU,CAAC,oBAAoB,CAAC,KAAK,CAAC,GAAG,UAAU,CAAC;SACrD;QACD,MAAA,cAAc,CAAC,GAAG,CAAC,iBAAiB,0CAAE,uBAAuB,CAC3D,SAAS,EACT,UAAU,EACV,YAAY,CACb,CAAC;IACJ,CAAC;CACF;AA/ED,wCA+EC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { AppStudioTokenProvider,
|
|
2
|
-
import { Context, DeepReadonly, ProvisionInputs, ResourcePlugin
|
|
1
|
+
import { AppStudioTokenProvider, Func, FxError, Inputs, Json, ProjectSettings, QTreeNode, Result, TokenProvider, v2, Void } from "@microsoft/teamsfx-api";
|
|
2
|
+
import { Context, DeepReadonly, ProvisionInputs, ResourcePlugin } from "@microsoft/teamsfx-api/build/v2";
|
|
3
3
|
import { AppStudioPlugin } from "..";
|
|
4
4
|
export declare class AppStudioPluginV2 implements ResourcePlugin {
|
|
5
5
|
name: string;
|
|
6
6
|
displayName: string;
|
|
7
7
|
plugin: AppStudioPlugin;
|
|
8
|
-
activate(
|
|
8
|
+
activate(projectSettings: ProjectSettings): boolean;
|
|
9
9
|
scaffoldSourceCode(ctx: Context, inputs: Inputs): Promise<Result<Void, FxError>>;
|
|
10
|
-
provisionResource(ctx: Context, inputs: ProvisionInputs, envInfo:
|
|
11
|
-
configureResource(ctx: Context, inputs: Readonly<ProvisionInputs>, envInfo:
|
|
10
|
+
provisionResource(ctx: Context, inputs: ProvisionInputs, envInfo: v2.EnvInfoV2, tokenProvider: TokenProvider): Promise<Result<Void, FxError>>;
|
|
11
|
+
configureResource(ctx: Context, inputs: Readonly<ProvisionInputs>, envInfo: v2.EnvInfoV2, tokenProvider: TokenProvider): Promise<Result<Void, FxError>>;
|
|
12
12
|
configureLocalResource(ctx: Context, inputs: Inputs, localSettings: Json, tokenProvider: TokenProvider): Promise<Result<Void, FxError>>;
|
|
13
13
|
executeUserTask(ctx: Context, inputs: Inputs, func: Func, localSettings: Json, envInfo: v2.EnvInfoV2, tokenProvider: TokenProvider): Promise<Result<unknown, FxError>>;
|
|
14
14
|
getQuestions(ctx: Context, inputs: Inputs, envInfo: v2.EnvInfoV2, tokenProvider: TokenProvider): Promise<Result<QTreeNode | undefined, FxError>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/appstudio/v2/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/appstudio/v2/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,sBAAsB,EAItB,IAAI,EACJ,OAAO,EACP,MAAM,EACN,IAAI,EAGJ,eAAe,EACf,SAAS,EACT,MAAM,EACN,aAAa,EACb,EAAE,EACF,IAAI,EACL,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,OAAO,EACP,YAAY,EACZ,eAAe,EACf,cAAc,EAGf,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,eAAe,EAAE,MAAM,IAAI,CAAC;AAkBrC,qBACa,iBAAkB,YAAW,cAAc;IACtD,IAAI,SAA2B;IAC/B,WAAW,SAA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O,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,YAAY,CAAC,EAAE,CAAC,SAAS,CAAC,EACnC,aAAa,EAAE,sBAAsB,GACpC,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAwB3B,eAAe,CACnB,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,EAAE,CAAC,qBAAqB,EAChC,OAAO,EAAE,YAAY,CAAC,EAAE,CAAC,SAAS,CAAC,EACnC,aAAa,EAAE,aAAa,EAC5B,QAAQ,EAAE,IAAI,GACb,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAY3B,eAAe,CACnB,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,EAAE,CAAC,qBAAqB,EAChC,OAAO,EAAE,YAAY,CAAC,EAAE,CAAC,SAAS,CAAC,EACnC,aAAa,EAAE,aAAa,EAC5B,QAAQ,EAAE,IAAI,GACb,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAY3B,gBAAgB,CACpB,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,EAAE,CAAC,qBAAqB,EAChC,OAAO,EAAE,YAAY,CAAC,EAAE,CAAC,SAAS,CAAC,EACnC,aAAa,EAAE,aAAa,EAC5B,QAAQ,EAAE,IAAI,GACb,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;CAWlC"}
|
|
@@ -14,7 +14,8 @@ let AppStudioPluginV2 = class AppStudioPluginV2 {
|
|
|
14
14
|
this.name = "fx-resource-appstudio";
|
|
15
15
|
this.displayName = "App Studio";
|
|
16
16
|
}
|
|
17
|
-
activate(
|
|
17
|
+
activate(projectSettings) {
|
|
18
|
+
const solutionSettings = projectSettings.solutionSettings;
|
|
18
19
|
return this.plugin.activate(solutionSettings);
|
|
19
20
|
}
|
|
20
21
|
async scaffoldSourceCode(ctx, inputs) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/appstudio/v2/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/appstudio/v2/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,wDAiBgC;AAShC,mCAAyC;AACzC,0BAAqC;AAErC,mGAG+D;AAC/D,6CAUwB;AAGxB,IAAa,iBAAiB,GAA9B,MAAa,iBAAiB;IAA9B;QACE,SAAI,GAAG,uBAAuB,CAAC;QAC/B,gBAAW,GAAG,YAAY,CAAC;IA4J7B,CAAC;IAxJC,QAAQ,CAAC,eAAgC;QACvC,MAAM,gBAAgB,GAAG,eAAe,CAAC,gBAAyC,CAAC;QACnF,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IAChD,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,GAAY,EAAE,MAAc;QACnD,OAAO,MAAM,oCAAyB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IACnE,CAAC;IAED,KAAK,CAAC,iBAAiB,CACrB,GAAY,EACZ,MAAuB,EACvB,OAAqB,EACrB,aAA4B;QAE5B,OAAO,MAAM,mCAAwB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IAC1F,CAAC;IAED,KAAK,CAAC,iBAAiB,CACrB,GAAY,EACZ,MAAiC,EACjC,OAAqB,EACrB,aAA4B;QAE5B,OAAO,MAAM,mCAAwB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IAC1F,CAAC;IAED,KAAK,CAAC,sBAAsB,CAC1B,GAAY,EACZ,MAAc,EACd,aAAmB,EACnB,aA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OAAO,gBAAE,CAAC,kBAAI,CAAC,CAAC;IAClB,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,GAAY,EACZ,MAAgC,EAChC,OAAmC,EACnC,aAA4B,EAC5B,QAAc;QAEd,OAAO,kCAAuB,CAC5B,GAAG,EACH,MAAM,EACN,OAAO,EACP,aAAa,EACb,QAAQ,EACR,IAAI,CAAC,MAAM,EACX,iBAAiB,CAClB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,GAAY,EACZ,MAAgC,EAChC,OAAmC,EACnC,aAA4B,EAC5B,QAAc;QAEd,OAAO,kCAAuB,CAC5B,GAAG,EACH,MAAM,EACN,OAAO,EACP,aAAa,EACb,QAAQ,EACR,IAAI,CAAC,MAAM,EACX,iBAAiB,CAClB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,gBAAgB,CACpB,GAAY,EACZ,MAAgC,EAChC,OAAmC,EACnC,aAA4B,EAC5B,QAAc;QAEd,OAAO,kCAAuB,CAC5B,GAAG,EACH,MAAM,EACN,OAAO,EACP,aAAa,EACb,QAAQ,EACR,IAAI,CAAC,MAAM,EACX,kBAAkB,CACnB,CAAC;IACJ,CAAC;CACF,CAAA;AA1JC;IADC,eAAM,CAAC,yCAAe,CAAC,eAAe,CAAC;sCAC/B,mBAAe;iDAAC;AAJd,iBAAiB;IAD7B,gBAAO,CAAC,2CAAiB,CAAC,eAAe,CAAC;GAC9B,iBAAiB,CA8J7B;AA9JY,8CAAiB"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { FxError, Result, v2,
|
|
2
|
-
import { AppStudioPlugin } from "../";
|
|
1
|
+
import { FxError, Result, v2, TeamsAppManifest, Json, TokenProvider, Void, v3 } from "@microsoft/teamsfx-api";
|
|
3
2
|
export declare class AppStudioPluginV3 {
|
|
4
3
|
name: string;
|
|
5
4
|
displayName: string;
|
|
6
|
-
plugin: AppStudioPlugin;
|
|
7
5
|
/**
|
|
8
6
|
* Generate initial manifest template file, for both local debug & remote
|
|
9
7
|
* @param ctx
|
|
@@ -18,31 +16,7 @@ export declare class AppStudioPluginV3 {
|
|
|
18
16
|
* @param capabilities
|
|
19
17
|
* @returns
|
|
20
18
|
*/
|
|
21
|
-
addCapabilities(ctx: v2.Context, inputs: v2.InputsWithProjectPath, capabilities:
|
|
22
|
-
name: "staticTab";
|
|
23
|
-
snippet?: {
|
|
24
|
-
local: IStaticTab;
|
|
25
|
-
remote: IStaticTab;
|
|
26
|
-
};
|
|
27
|
-
} | {
|
|
28
|
-
name: "configurableTab";
|
|
29
|
-
snippet?: {
|
|
30
|
-
local: IConfigurableTab;
|
|
31
|
-
remote: IConfigurableTab;
|
|
32
|
-
};
|
|
33
|
-
} | {
|
|
34
|
-
name: "Bot";
|
|
35
|
-
snippet?: {
|
|
36
|
-
local: IBot;
|
|
37
|
-
remote: IBot;
|
|
38
|
-
};
|
|
39
|
-
} | {
|
|
40
|
-
name: "MessageExtension";
|
|
41
|
-
snippet?: {
|
|
42
|
-
local: IComposeExtension;
|
|
43
|
-
remote: IComposeExtension;
|
|
44
|
-
};
|
|
45
|
-
})[]): Promise<Result<any, FxError>>;
|
|
19
|
+
addCapabilities(ctx: v2.Context, inputs: v2.InputsWithProjectPath, capabilities: v3.ManifestCapability[]): Promise<Result<any, FxError>>;
|
|
46
20
|
/**
|
|
47
21
|
* Should conside both local and remote
|
|
48
22
|
* @returns
|
|
@@ -57,7 +31,7 @@ export declare class AppStudioPluginV3 {
|
|
|
57
31
|
* @param inputs
|
|
58
32
|
* @returns
|
|
59
33
|
*/
|
|
60
|
-
|
|
34
|
+
saveManifest(ctx: v2.Context, inputs: v2.InputsWithProjectPath, manifest: {
|
|
61
35
|
local: TeamsAppManifest;
|
|
62
36
|
remote: TeamsAppManifest;
|
|
63
37
|
}): Promise<Result<any, FxError>>;
|
|
@@ -69,5 +43,17 @@ export declare class AppStudioPluginV3 {
|
|
|
69
43
|
* @returns
|
|
70
44
|
*/
|
|
71
45
|
capabilityExceedLimit(ctx: v2.Context, inputs: v2.InputsWithProjectPath, capability: "staticTab" | "configurableTab" | "Bot" | "MessageExtension"): Promise<Result<boolean, FxError>>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @param ctx
|
|
49
|
+
* @param inputs
|
|
50
|
+
* @param localSettings
|
|
51
|
+
* @param tokenProvider
|
|
52
|
+
* @returns
|
|
53
|
+
*/
|
|
54
|
+
configureLocalResource(ctx: v2.Context, inputs: v2.InputsWithProjectPath, localSettings: Json, tokenProvider: TokenProvider): Promise<Result<Void, FxError>>;
|
|
55
|
+
registerTeamsApp(ctx: v2.Context, inputs: v2.InputsWithProjectPath, envInfo: v3.EnvInfoV3): Promise<Result<string, FxError>>;
|
|
56
|
+
updateTeamsApp(ctx: v2.Context, inputs: v2.InputsWithProjectPath, envInfo: v3.EnvInfoV3): Promise<Result<Void, FxError>>;
|
|
57
|
+
publishTeamsApp(ctx: v2.Context, inputs: v2.InputsWithProjectPath, envInfo: v3.EnvInfoV3): Promise<Result<Void, FxError>>;
|
|
72
58
|
}
|
|
73
59
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/appstudio/v3/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,OAAO,EACP,MAAM,EAEN,EAAE,EACF,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/appstudio/v3/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,OAAO,EACP,MAAM,EAEN,EAAE,EACF,gBAAgB,EAGhB,IAAI,EACJ,aAAa,EACb,IAAI,EACJ,EAAE,EACH,MAAM,wBAAwB,CAAC;AA0BhC,qBACa,iBAAiB;IAC5B,IAAI,SAA2B;IAC/B,WAAW,SAAgB;IAE3B;;;;;OAKG;IACG,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,E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AgB,CACpB,GAAG,EAAE,EAAE,CAAC,OAAO,EACf,MAAM,EAAE,EAAE,CAAC,qBAAqB,EAChC,OAAO,EAAE,EAAE,CAAC,SAAS,GACpB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAI7B,cAAc,CAClB,GAAG,EAAE,EAAE,CAAC,OAAO,EACf,MAAM,EAAE,EAAE,CAAC,qBAAqB,EAChC,OAAO,EAAE,EAAE,CAAC,SAAS,GACpB,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAI3B,eAAe,CACnB,GAAG,EAAE,EAAE,CAAC,OAAO,EACf,MAAM,EAAE,EAAE,CAAC,qBAAqB,EAChC,OAAO,EAAE,EAAE,CAAC,SAAS,GACpB,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;CAGlC"}
|
|
@@ -7,10 +7,15 @@ const tslib_1 = require("tslib");
|
|
|
7
7
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
8
8
|
const typedi_1 = require("typedi");
|
|
9
9
|
const constants_1 = require("../../../solution/fx-solution/v3/constants");
|
|
10
|
-
const __1 = require("../");
|
|
11
10
|
const utils4v2_1 = require("../../utils4v2");
|
|
12
11
|
const results_1 = require("../results");
|
|
13
12
|
const errors_1 = require("../errors");
|
|
13
|
+
const manifestTemplate_1 = require("../manifestTemplate");
|
|
14
|
+
const folder_1 = require("../../../../folder");
|
|
15
|
+
const path = tslib_1.__importStar(require("path"));
|
|
16
|
+
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
17
|
+
const constants_2 = require("../constants");
|
|
18
|
+
const telemetry_1 = require("../utils/telemetry");
|
|
14
19
|
let AppStudioPluginV3 = class AppStudioPluginV3 {
|
|
15
20
|
constructor() {
|
|
16
21
|
this.name = "fx-resource-appstudio";
|
|
@@ -23,8 +28,21 @@ let AppStudioPluginV3 = class AppStudioPluginV3 {
|
|
|
23
28
|
* @returns
|
|
24
29
|
*/
|
|
25
30
|
async init(ctx, inputs) {
|
|
26
|
-
|
|
27
|
-
|
|
31
|
+
telemetry_1.TelemetryUtils.init(ctx);
|
|
32
|
+
telemetry_1.TelemetryUtils.sendStartEvent(telemetry_1.TelemetryEventName.init);
|
|
33
|
+
const res = await manifestTemplate_1.init(inputs.projectPath, ctx.projectSetting.appName);
|
|
34
|
+
if (res.isErr())
|
|
35
|
+
return teamsfx_api_1.err(res.error);
|
|
36
|
+
const templatesFolder = folder_1.getTemplatesFolder();
|
|
37
|
+
const defaultColorPath = path.join(templatesFolder, constants_2.COLOR_TEMPLATE);
|
|
38
|
+
const defaultOutlinePath = path.join(templatesFolder, constants_2.OUTLINE_TEMPLATE);
|
|
39
|
+
const appPackageDir = path.resolve(inputs.projectPath, constants_2.APP_PACKAGE_FOLDER_FOR_MULTI_ENV);
|
|
40
|
+
const resourcesDir = path.resolve(appPackageDir, constants_2.MANIFEST_RESOURCES);
|
|
41
|
+
await fs_extra_1.default.ensureDir(resourcesDir);
|
|
42
|
+
await fs_extra_1.default.copy(defaultColorPath, path.join(resourcesDir, constants_2.DEFAULT_COLOR_PNG_FILENAME));
|
|
43
|
+
await fs_extra_1.default.copy(defaultOutlinePath, path.join(resourcesDir, constants_2.DEFAULT_OUTLINE_PNG_FILENAME));
|
|
44
|
+
telemetry_1.TelemetryUtils.sendSuccessEvent(telemetry_1.TelemetryEventName.init);
|
|
45
|
+
return teamsfx_api_1.ok(undefined);
|
|
28
46
|
}
|
|
29
47
|
/**
|
|
30
48
|
* Append capabilities to manifest templates
|
|
@@ -34,7 +52,9 @@ let AppStudioPluginV3 = class AppStudioPluginV3 {
|
|
|
34
52
|
* @returns
|
|
35
53
|
*/
|
|
36
54
|
async addCapabilities(ctx, inputs, capabilities) {
|
|
37
|
-
|
|
55
|
+
telemetry_1.TelemetryUtils.init(ctx);
|
|
56
|
+
telemetry_1.TelemetryUtils.sendStartEvent(telemetry_1.TelemetryEventName.addCapability);
|
|
57
|
+
const pluginContext = utils4v2_1.convert2PluginContext(this.name, ctx, inputs);
|
|
38
58
|
capabilities.map(async (capability) => {
|
|
39
59
|
const exceedLimit = await this.capabilityExceedLimit(ctx, inputs, capability.name);
|
|
40
60
|
if (exceedLimit.isErr()) {
|
|
@@ -44,15 +64,35 @@ let AppStudioPluginV3 = class AppStudioPluginV3 {
|
|
|
44
64
|
return teamsfx_api_1.err(results_1.AppStudioResultFactory.UserError(errors_1.AppStudioError.CapabilityExceedLimitError.name, errors_1.AppStudioError.CapabilityExceedLimitError.message(capability.name)));
|
|
45
65
|
}
|
|
46
66
|
});
|
|
47
|
-
|
|
67
|
+
const res = await manifestTemplate_1.addCapabilities(pluginContext.root, capabilities);
|
|
68
|
+
if (res.isOk()) {
|
|
69
|
+
telemetry_1.TelemetryUtils.sendSuccessEvent(telemetry_1.TelemetryEventName.addCapability);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
telemetry_1.TelemetryUtils.sendErrorEvent(telemetry_1.TelemetryEventName.addCapability, res.error);
|
|
73
|
+
}
|
|
74
|
+
return res;
|
|
48
75
|
}
|
|
49
76
|
/**
|
|
50
77
|
* Should conside both local and remote
|
|
51
78
|
* @returns
|
|
52
79
|
*/
|
|
53
80
|
async loadManifest(ctx, inputs) {
|
|
54
|
-
|
|
55
|
-
|
|
81
|
+
telemetry_1.TelemetryUtils.init(ctx);
|
|
82
|
+
telemetry_1.TelemetryUtils.sendStartEvent(telemetry_1.TelemetryEventName.loadManifest);
|
|
83
|
+
const pluginContext = utils4v2_1.convert2PluginContext(this.name, ctx, inputs);
|
|
84
|
+
const localManifest = await manifestTemplate_1.loadManifest(pluginContext.root, true);
|
|
85
|
+
if (localManifest.isErr()) {
|
|
86
|
+
telemetry_1.TelemetryUtils.sendErrorEvent(telemetry_1.TelemetryEventName.loadManifest, localManifest.error);
|
|
87
|
+
return teamsfx_api_1.err(localManifest.error);
|
|
88
|
+
}
|
|
89
|
+
const remoteManifest = await manifestTemplate_1.loadManifest(pluginContext.root, false);
|
|
90
|
+
if (remoteManifest.isErr()) {
|
|
91
|
+
telemetry_1.TelemetryUtils.sendErrorEvent(telemetry_1.TelemetryEventName.loadManifest, remoteManifest.error);
|
|
92
|
+
return teamsfx_api_1.err(remoteManifest.error);
|
|
93
|
+
}
|
|
94
|
+
telemetry_1.TelemetryUtils.sendSuccessEvent(telemetry_1.TelemetryEventName.loadManifest);
|
|
95
|
+
return teamsfx_api_1.ok({ local: localManifest.value, remote: remoteManifest.value });
|
|
56
96
|
}
|
|
57
97
|
/**
|
|
58
98
|
* Save manifest template file
|
|
@@ -60,9 +100,22 @@ let AppStudioPluginV3 = class AppStudioPluginV3 {
|
|
|
60
100
|
* @param inputs
|
|
61
101
|
* @returns
|
|
62
102
|
*/
|
|
63
|
-
async
|
|
64
|
-
|
|
65
|
-
|
|
103
|
+
async saveManifest(ctx, inputs, manifest) {
|
|
104
|
+
telemetry_1.TelemetryUtils.init(ctx);
|
|
105
|
+
telemetry_1.TelemetryUtils.sendStartEvent(telemetry_1.TelemetryEventName.saveManifest);
|
|
106
|
+
const pluginContext = utils4v2_1.convert2PluginContext(this.name, ctx, inputs);
|
|
107
|
+
let res = await manifestTemplate_1.saveManifest(pluginContext.root, manifest.local, true);
|
|
108
|
+
if (res.isErr()) {
|
|
109
|
+
telemetry_1.TelemetryUtils.sendErrorEvent(telemetry_1.TelemetryEventName.saveManifest, res.error);
|
|
110
|
+
return teamsfx_api_1.err(res.error);
|
|
111
|
+
}
|
|
112
|
+
res = await manifestTemplate_1.saveManifest(pluginContext.root, manifest.remote, false);
|
|
113
|
+
if (res.isErr()) {
|
|
114
|
+
telemetry_1.TelemetryUtils.sendErrorEvent(telemetry_1.TelemetryEventName.saveManifest, res.error);
|
|
115
|
+
return teamsfx_api_1.err(res.error);
|
|
116
|
+
}
|
|
117
|
+
telemetry_1.TelemetryUtils.sendSuccessEvent(telemetry_1.TelemetryEventName.saveManifest);
|
|
118
|
+
return teamsfx_api_1.ok(undefined);
|
|
66
119
|
}
|
|
67
120
|
/**
|
|
68
121
|
* Load manifest template, and check if it exceeds the limit.
|
|
@@ -72,16 +125,32 @@ let AppStudioPluginV3 = class AppStudioPluginV3 {
|
|
|
72
125
|
* @returns
|
|
73
126
|
*/
|
|
74
127
|
async capabilityExceedLimit(ctx, inputs, capability) {
|
|
75
|
-
const pluginContext = utils4v2_1.convert2PluginContext(this.
|
|
76
|
-
return await
|
|
128
|
+
const pluginContext = utils4v2_1.convert2PluginContext(this.name, ctx, inputs);
|
|
129
|
+
return await manifestTemplate_1.capabilityExceedLimit(pluginContext.root, capability);
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @param ctx
|
|
134
|
+
* @param inputs
|
|
135
|
+
* @param localSettings
|
|
136
|
+
* @param tokenProvider
|
|
137
|
+
* @returns
|
|
138
|
+
*/
|
|
139
|
+
async configureLocalResource(ctx, inputs, localSettings, tokenProvider) {
|
|
140
|
+
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
141
|
+
}
|
|
142
|
+
async registerTeamsApp(ctx, inputs, envInfo) {
|
|
143
|
+
return teamsfx_api_1.ok("fake");
|
|
144
|
+
}
|
|
145
|
+
async updateTeamsApp(ctx, inputs, envInfo) {
|
|
146
|
+
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
147
|
+
}
|
|
148
|
+
async publishTeamsApp(ctx, inputs, envInfo) {
|
|
149
|
+
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
77
150
|
}
|
|
78
151
|
};
|
|
79
|
-
tslib_1.__decorate([
|
|
80
|
-
typedi_1.Inject("AppStudioPlugin"),
|
|
81
|
-
tslib_1.__metadata("design:type", __1.AppStudioPlugin)
|
|
82
|
-
], AppStudioPluginV3.prototype, "plugin", void 0);
|
|
83
152
|
AppStudioPluginV3 = tslib_1.__decorate([
|
|
84
|
-
typedi_1.Service(constants_1.
|
|
153
|
+
typedi_1.Service(constants_1.BuiltInFeaturePluginNames.appStudio)
|
|
85
154
|
], AppStudioPluginV3);
|
|
86
155
|
exports.AppStudioPluginV3 = AppStudioPluginV3;
|
|
87
156
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/appstudio/v3/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/appstudio/v3/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,wDAYgC;AAChC,mCAAiC;AACjC,0EAAuF;AACvF,6CAAuD;AACvD,wCAAoD;AACpD,sCAA2C;AAC3C,0DAM6B;AAC7B,+CAAwD;AACxD,mDAA6B;AAC7B,gEAA0B;AAC1B,4CAOsB;AACtB,kDAAwE;AAGxE,IAAa,iBAAiB,GAA9B,MAAa,iBAAiB;IAA9B;QACE,SAAI,GAAG,uBAAuB,CAAC;QAC/B,gBAAW,GAAG,YAAY,CAAC;IAgL7B,CAAC;IA9KC;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CAAC,GAAe,EAAE,MAAgC;QAC1D,0BAAc,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACzB,0BAAc,CAAC,cAAc,CAAC,8BAAkB,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,GAAG,GAAG,MAAM,uBAAI,CAAC,MAAM,CAAC,WAAW,EAAE,GAAG,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QACvE,IAAI,GAAG,CAAC,KAAK,EAAE;YAAE,OAAO,iBAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACvC,MAAM,eAAe,GAAG,2BAAkB,EAAE,CAAC;QAC7C,MAAM,gBAAgB,GAAG,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,0BAAc,CAAC,CAAC;QACpE,MAAM,kBAAkB,GAAG,IA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AkB,CAAC,YAAY,CAAC,CAAC;QACjE,OAAO,gBAAE,CAAC,SAAS,CAAC,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,qBAAqB,CACzB,GAAe,EACf,MAAgC,EAChC,UAAwE;QAExE,MAAM,aAAa,GAAkB,gCAAqB,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;QACnF,OAAO,MAAM,wCAAqB,CAAC,aAAa,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,sBAAsB,CAC1B,GAAe,EACf,MAAgC,EAChC,aAAmB,EACnB,aAA4B;QAE5B,OAAO,gBAAE,CAAC,kBAAI,CAAC,CAAC;IAClB,CAAC;IAED,KAAK,CAAC,gBAAgB,CACpB,GAAe,EACf,MAAgC,EAChC,OAAqB;QAErB,OAAO,gBAAE,CAAC,MAAM,CAAC,CAAC;IACpB,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,GAAe,EACf,MAAgC,EAChC,OAAqB;QAErB,OAAO,gBAAE,CAAC,kBAAI,CAAC,CAAC;IAClB,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,GAAe,EACf,MAAgC,EAChC,OAAqB;QAErB,OAAO,gBAAE,CAAC,kBAAI,CAAC,CAAC;IAClB,CAAC;CACF,CAAA;AAlLY,iBAAiB;IAD7B,gBAAO,CAAC,qCAAyB,CAAC,SAAS,CAAC;GAChC,iBAAiB,CAkL7B;AAlLY,8CAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aadRegistration.d.ts","sourceRoot":"","sources":["../../../../src/plugins/resource/bot/aadRegistration.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"aadRegistration.d.ts","sourceRoot":"","sources":["../../../../src/plugins/resource/bot/aadRegistration.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,qBAAa,eAAe;WACN,iCAAiC,CACnD,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,MAAM,EACnB,QAAQ,CAAC,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,iBAAiB,CAAC;WA2DT,qCAAqC,CACvD,cAAc,EAAE,MAAM,EACtB,WAAW,EAAE,MAAM,EACnB,QAAQ,CAAC,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,iBAAiB,CAAC;CA6B9B"}
|
|
@@ -11,6 +11,7 @@ const appStudio_1 = require("./appStudio/appStudio");
|
|
|
11
11
|
const errors_1 = require("./errors");
|
|
12
12
|
const strings_1 = require("./resources/strings");
|
|
13
13
|
const botAuthCredential_1 = require("./botAuthCredential");
|
|
14
|
+
const retryHandler_1 = require("./utils/retryHandler");
|
|
14
15
|
class AADRegistration {
|
|
15
16
|
static async registerAADAppAndGetSecretByGraph(graphToken, displayName, objectId, msAppId) {
|
|
16
17
|
const axiosInstance = axios_1.default.create({
|
|
@@ -22,10 +23,10 @@ class AADRegistration {
|
|
|
22
23
|
// 1. Register a new AAD App.
|
|
23
24
|
let regResponse = undefined;
|
|
24
25
|
try {
|
|
25
|
-
regResponse = await axiosInstance.post(`${constants_1.AADRegistrationConstants.GRAPH_REST_BASE_URL}/applications`, {
|
|
26
|
+
regResponse = await retryHandler_1.RetryHandler.Retry(() => axiosInstance.post(`${constants_1.AADRegistrationConstants.GRAPH_REST_BASE_URL}/applications`, {
|
|
26
27
|
displayName: displayName,
|
|
27
28
|
signInAudience: constants_1.AADRegistrationConstants.AZURE_AD_MULTIPLE_ORGS,
|
|
28
|
-
});
|
|
29
|
+
}));
|
|
29
30
|
}
|
|
30
31
|
catch (e) {
|
|
31
32
|
throw new errors_1.CreateAADAppError(e);
|
|
@@ -45,11 +46,11 @@ class AADRegistration {
|
|
|
45
46
|
// 2. Generate client secret.
|
|
46
47
|
let genResponse = undefined;
|
|
47
48
|
try {
|
|
48
|
-
genResponse = await axiosInstance.post(`${constants_1.AADRegistrationConstants.GRAPH_REST_BASE_URL}/applications/${result.objectId}/addPassword`, {
|
|
49
|
+
genResponse = await retryHandler_1.RetryHandler.Retry(() => axiosInstance.post(`${constants_1.AADRegistrationConstants.GRAPH_REST_BASE_URL}/applications/${result.objectId}/addPassword`, {
|
|
49
50
|
passwordCredential: {
|
|
50
51
|
displayName: "default",
|
|
51
52
|
},
|
|
52
|
-
});
|
|
53
|
+
}));
|
|
53
54
|
}
|
|
54
55
|
catch (e) {
|
|
55
56
|
throw new errors_1.CreateAADSecretError(e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aadRegistration.js","sourceRoot":"","sources":["../../../../src/plugins/resource/bot/aadRegistration.ts"],"names":[],"mappings":";;;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,8DAAwC;AACxC,0DAAwD;AAExD,2CAAuD;AAEvD,qDAAkD;AAClD,qCAKkB;AAClB,iDAAoD;AACpD,2DAAwD;
|
|
1
|
+
{"version":3,"file":"aadRegistration.js","sourceRoot":"","sources":["../../../../src/plugins/resource/bot/aadRegistration.ts"],"names":[],"mappings":";;;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,8DAAwC;AACxC,0DAAwD;AAExD,2CAAuD;AAEvD,qDAAkD;AAClD,qCAKkB;AAClB,iDAAoD;AACpD,2DAAwD;AACxD,uDAAoD;AAEpD,MAAa,eAAe;IACnB,MAAM,CAAC,KAAK,CAAC,iCAAiC,CACnD,UAAkB,EAClB,WAAmB,EACnB,QAAiB,EACjB,OAAgB;QAEhB,MAAM,aAAa,GAAkB,eAAK,CAAC,MAAM,CAAC;YAChD,OAAO,EAAE,oCAAwB,CAAC,mBAAmB;SACtD,CAAC,CAAC;QACH,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,GAA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AAE;YAChC,MAAM,IAAI,uBAAc,CAAC,uBAAa,CAAC,iBAAiB,CAAC,CAAC;SAC3D;QAED,MAAM,CAAC,YAAY,GAAG,QAAQ,CAAC,KAAK,CAAC;QAErC,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AAnGD,0CAmGC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provisionConfig.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/bot/configs/provisionConfig.ts"],"names":[],"mappings":"AAEA,OAAO,EAAe,aAAa,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"provisionConfig.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/bot/configs/provisionConfig.ts"],"names":[],"mappings":"AAEA,OAAO,EAAe,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAcpE,qBAAa,eAAe;IAEnB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAEpB,wBAAwB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAoDrE,qBAAqB,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAU1D,OAAO,CAAC,sBAAsB;CAiB/B"}
|
|
@@ -6,7 +6,6 @@ const utils = tslib_1.__importStar(require("../utils/common"));
|
|
|
6
6
|
const strings_1 = require("../resources/strings");
|
|
7
7
|
const constants_1 = require("../constants");
|
|
8
8
|
const errors_1 = require("../errors");
|
|
9
|
-
const common_1 = require("../../../../common");
|
|
10
9
|
class ProvisionConfig {
|
|
11
10
|
async restoreConfigFromContext(context) {
|
|
12
11
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
@@ -32,15 +31,6 @@ class ProvisionConfig {
|
|
|
32
31
|
.get(strings_1.PluginFunction.PLUGIN_NAME)) === null || _k === void 0 ? void 0 : _k.get(strings_1.PluginFunction.ENDPOINT);
|
|
33
32
|
this.appServicePlan = context.config.get(strings_1.PluginBot.APP_SERVICE_PLAN);
|
|
34
33
|
this.siteName = context.config.get(strings_1.PluginBot.SITE_NAME);
|
|
35
|
-
if (!common_1.isArmSupportEnabled()) {
|
|
36
|
-
const skuNameValue = context.config.get(strings_1.PluginBot.SKU_NAME);
|
|
37
|
-
if (skuNameValue) {
|
|
38
|
-
this.skuName = skuNameValue;
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
this.skuName = constants_1.WebAppConstants.APP_SERVICE_PLAN_DEFAULT_SKU_NAME;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
34
|
this.siteEndpoint = context.config.get(strings_1.PluginBot.SITE_ENDPOINT);
|
|
45
35
|
this.botChannelRegName = context.config.get(strings_1.PluginBot.BOT_CHANNEL_REGISTRATION);
|
|
46
36
|
this.botWebAppResourceId = context.config.get(strings_1.PluginBot.BOT_WEB_APP_RESOURCE_ID);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provisionConfig.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/bot/configs/provisionConfig.ts"],"names":[],"mappings":";;;;AAIA,+DAAyC;AACzC,kDAO8B;AAC9B,4CAA2D;AAC3D,sCAAkD;
|
|
1
|
+
{"version":3,"file":"provisionConfig.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/bot/configs/provisionConfig.ts"],"names":[],"mappings":";;;;AAIA,+DAAyC;AACzC,kDAO8B;AAC9B,4CAA2D;AAC3D,sCAAkD;AAElD,MAAa,eAAe;IAuBnB,KAAK,CAAC,wBAAwB,CAAC,OAAsB;;QAC1D,IAAI,CAAC,cAAc,GAAG,MAAA,OAAO,CAAC,OAAO,CAAC,KAAK;aACxC,GAAG,CAAC,wBAAc,CAAC,WAAW,CAAC,0CAC9B,GAAG,CAAC,wBAAc,CAAC,eAAe,CAAW,CAAC;QAElD,IAAI,CAAC,aAAa,GAAG,MAAA,OAAO,CAAC,OAAO,CAAC,KAAK;aACvC,GAAG,CAAC,wBAAc,CAAC,WAAW,CAAC,0CAC9B,GAAG,CAAC,wBAAc,CAAC,mBAAmB,CAAW,CAAC;QAEtD,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,CAAC,OAAO,CAAC,KAAK;aAClC,GAAG,CAAC,wBAAc,CAAC,WAAW,CAAC,0CAC9B,GAAG,CAAC,wBAAc,CAAC,QAAQ,CAAW,CAAC;QAE3C,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,CAAC,OAAO,CAAC,KAAK;aACrC,GAAG,CAAC,mBAAS,CAAC,WAAW,CAAC,0CACzB,GAAG,CAAC,mBAAS,CAAC,YAAY,CAAW,CAAC;QAE1C,IAAI,CAAC,eAAe,GAAG,MAAA,OAAO,CAAC,OAAO,CAAC,KAAK;aACzC,GAAG,CAAC,mBAAS,CAAC,WAAW,CAAC,0CACzB,GAAG,CAAC,mBAAS,CAAC,iBAAiB,CAAW,CAAC;QAE/C,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,CAAC,OAAO,CAAC,KAAK;aACrC,GAAG,CA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QAED,IAAI,IAAI,CAAC,cAAc,IAAI,CAAC,KAAK,CAAC,yBAAyB,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE;YAChF,MAAM,IAAI,8BAAqB,CAAC,sBAAU,CAAC,gBAAgB,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;SACnF;QAED,IAAI,IAAI,CAAC,iBAAiB,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,IAAI,CAAC,iBAAiB,CAAC,EAAE;YACrF,MAAM,IAAI,8BAAqB,CAAC,sBAAU,CAAC,oBAAoB,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC;SAC1F;IACH,CAAC;CACF;AAtGD,0CAsGC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/bot/dotnet/constants.ts"],"names":[],"mappings":"AAKA,qBAAa,QAAQ;IACnB,gBAAuB,wBAAwB,SAK7C;IACF,gBAAuB,+BAA+B,wCAAwC;CAC/F"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.PathInfo = void 0;
|
|
6
|
+
const tslib_1 = require("tslib");
|
|
7
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
8
|
+
class PathInfo {
|
|
9
|
+
}
|
|
10
|
+
exports.PathInfo = PathInfo;
|
|
11
|
+
PathInfo.BicepTemplateRelativeDir = path_1.default.join("plugins", "resource", "botservice", "bicep");
|
|
12
|
+
PathInfo.ProvisionModuleTemplateFileName = "botServiceProvision.template.bicep";
|
|
13
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/bot/dotnet/constants.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,wDAAwB;AAExB,MAAa,QAAQ;;AAArB,4BAQC;AAPwB,iCAAwB,GAAG,cAAI,CAAC,IAAI,CACzD,SAAS,EACT,UAAU,EACV,YAAY,EACZ,OAAO,CACR,CAAC;AACqB,wCAA+B,GAAG,oCAAoC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PluginContext } from "@microsoft/teamsfx-api";
|
|
2
|
+
import { FxResult } from "../result";
|
|
3
|
+
import { TeamsBotImpl } from "../plugin";
|
|
4
|
+
export declare class DotnetBotImpl extends TeamsBotImpl {
|
|
5
|
+
generateArmTemplates(ctx: PluginContext): Promise<FxResult>;
|
|
6
|
+
updateArmTemplates(ctx: PluginContext): Promise<FxResult>;
|
|
7
|
+
scaffold(context: PluginContext): Promise<FxResult>;
|
|
8
|
+
localDebug(ctx: PluginContext): Promise<FxResult>;
|
|
9
|
+
postLocalDebug(ctx: PluginContext): Promise<FxResult>;
|
|
10
|
+
preDeploy(ctx: PluginContext): Promise<FxResult>;
|
|
11
|
+
deploy(ctx: PluginContext): Promise<FxResult>;
|
|
12
|
+
migrateV1Project(ctx: PluginContext): Promise<FxResult>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/bot/dotnet/plugin.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAQvD,OAAO,EAAE,QAAQ,EAA6C,MAAM,WAAW,CAAC;AAKhF,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAGzC,qBAAa,aAAc,SAAQ,YAAY;IAChC,oBAAoB,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAkC3D,kBAAkB,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIzD,QAAQ,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAInD,UAAU,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIjD,cAAc,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIrD,SAAS,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIhD,MAAM,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAI7C,gBAAgB,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;CAGrE"}
|