@microsoft/teamsfx-core 1.5.0 → 1.5.1-alpha.3fc0dea41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/common/constants.d.ts +7 -0
- package/build/common/constants.d.ts.map +1 -1
- package/build/common/constants.js +8 -0
- package/build/common/constants.js.map +1 -1
- package/build/common/deps-checker/internal/dotnetChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/dotnetChecker.js +1 -1
- package/build/common/deps-checker/internal/dotnetChecker.js.map +1 -1
- package/build/common/index.d.ts +1 -0
- package/build/common/index.d.ts.map +1 -1
- package/build/common/index.js +1 -0
- package/build/common/index.js.map +1 -1
- package/build/common/local/constants.d.ts +5 -0
- package/build/common/local/constants.d.ts.map +1 -1
- package/build/common/local/constants.js +6 -1
- package/build/common/local/constants.js.map +1 -1
- package/build/common/local/localEnvManager.d.ts.map +1 -1
- package/build/common/local/localEnvManager.js +3 -2
- package/build/common/local/localEnvManager.js.map +1 -1
- package/build/common/local/projectSettingsHelper.d.ts +1 -0
- package/build/common/local/projectSettingsHelper.d.ts.map +1 -1
- package/build/common/local/projectSettingsHelper.js +9 -5
- package/build/common/local/projectSettingsHelper.js.map +1 -1
- package/build/common/localSettingsProvider.d.ts +1 -1
- package/build/common/localSettingsProvider.d.ts.map +1 -1
- package/build/common/localSettingsProvider.js +4 -1
- package/build/common/localSettingsProvider.js.map +1 -1
- package/build/common/localizeUtils.d.ts +3 -0
- package/build/common/localizeUtils.d.ts.map +1 -0
- package/build/common/localizeUtils.js +38 -0
- package/build/common/localizeUtils.js.map +1 -0
- package/build/common/projectSettingsHelper.d.ts +11 -0
- package/build/common/projectSettingsHelper.d.ts.map +1 -0
- package/build/common/projectSettingsHelper.js +134 -0
- package/build/common/projectSettingsHelper.js.map +1 -0
- package/build/common/template-utils/templatesActions.d.ts.map +1 -1
- package/build/common/template-utils/templatesActions.js +3 -2
- package/build/common/template-utils/templatesActions.js.map +1 -1
- package/build/common/templates-config.json +2 -2
- package/build/common/tools.d.ts +8 -2
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +62 -10
- package/build/common/tools.js.map +1 -1
- package/build/core/FxCore.d.ts +78 -0
- package/build/core/FxCore.d.ts.map +1 -0
- package/build/core/FxCore.js +1305 -0
- package/build/core/FxCore.js.map +1 -0
- package/build/core/SolutionPluginContainer.d.ts.map +1 -1
- package/build/core/SolutionPluginContainer.js.map +1 -1
- package/build/core/collaborator.d.ts +1 -4
- package/build/core/collaborator.d.ts.map +1 -1
- package/build/core/collaborator.js +56 -77
- package/build/core/collaborator.js.map +1 -1
- package/build/core/downloadSample.d.ts +2 -2
- package/build/core/downloadSample.d.ts.map +1 -1
- package/build/core/downloadSample.js +6 -5
- package/build/core/downloadSample.js.map +1 -1
- package/build/core/environment.d.ts +4 -2
- package/build/core/environment.d.ts.map +1 -1
- package/build/core/environment.js +50 -43
- package/build/core/environment.js.map +1 -1
- package/build/core/error.d.ts +27 -12
- package/build/core/error.d.ts.map +1 -1
- package/build/core/error.js +45 -33
- package/build/core/error.js.map +1 -1
- package/build/core/globalVars.d.ts +12 -0
- package/build/core/globalVars.d.ts.map +1 -0
- package/build/core/globalVars.js +41 -0
- package/build/core/globalVars.js.map +1 -0
- package/build/core/index.d.ts +4 -101
- package/build/core/index.d.ts.map +1 -1
- package/build/core/index.js +5 -1377
- package/build/core/index.js.map +1 -1
- package/build/core/middleware/concurrentLocker.d.ts +1 -0
- package/build/core/middleware/concurrentLocker.d.ts.map +1 -1
- package/build/core/middleware/concurrentLocker.js +17 -12
- package/build/core/middleware/concurrentLocker.js.map +1 -1
- package/build/core/middleware/envInfoLoader.d.ts +1 -1
- package/build/core/middleware/envInfoLoader.d.ts.map +1 -1
- package/build/core/middleware/envInfoLoader.js +28 -21
- package/build/core/middleware/envInfoLoader.js.map +1 -1
- package/build/core/middleware/envInfoLoaderV3.d.ts.map +1 -1
- package/build/core/middleware/envInfoLoaderV3.js +2 -3
- package/build/core/middleware/envInfoLoaderV3.js.map +1 -1
- package/build/core/middleware/envInfoWriter.js +3 -4
- package/build/core/middleware/envInfoWriter.js.map +1 -1
- package/build/core/middleware/envInfoWriterV3.js +3 -4
- package/build/core/middleware/envInfoWriterV3.js.map +1 -1
- package/build/core/middleware/errorHandler.d.ts.map +1 -1
- package/build/core/middleware/errorHandler.js +7 -5
- package/build/core/middleware/errorHandler.js.map +1 -1
- package/build/core/middleware/localSettingsLoader.js +3 -4
- package/build/core/middleware/localSettingsLoader.js.map +1 -1
- package/build/core/middleware/localSettingsWriter.d.ts.map +1 -1
- package/build/core/middleware/localSettingsWriter.js +4 -4
- package/build/core/middleware/localSettingsWriter.js.map +1 -1
- package/build/core/middleware/projectMigrator.d.ts +1 -1
- package/build/core/middleware/projectMigrator.d.ts.map +1 -1
- package/build/core/middleware/projectMigrator.js +52 -57
- package/build/core/middleware/projectMigrator.js.map +1 -1
- package/build/core/middleware/projectSettingsLoader.d.ts +1 -1
- package/build/core/middleware/projectSettingsLoader.d.ts.map +1 -1
- package/build/core/middleware/projectSettingsLoader.js +12 -10
- package/build/core/middleware/projectSettingsLoader.js.map +1 -1
- package/build/core/middleware/projectSettingsWriter.js +2 -2
- package/build/core/middleware/projectSettingsWriter.js.map +1 -1
- package/build/core/middleware/questionModel.d.ts.map +1 -1
- package/build/core/middleware/questionModel.js +78 -48
- package/build/core/middleware/questionModel.js.map +1 -1
- package/build/core/middleware/solutionLoader.d.ts +1 -1
- package/build/core/middleware/solutionLoader.d.ts.map +1 -1
- package/build/core/middleware/solutionLoader.js.map +1 -1
- package/build/core/middleware/solutionLoaderV3.d.ts +1 -1
- package/build/core/middleware/solutionLoaderV3.d.ts.map +1 -1
- package/build/core/middleware/solutionLoaderV3.js.map +1 -1
- package/build/core/pvm/broker.js +1 -1
- package/build/core/pvm/broker.js.map +1 -1
- package/build/core/question.d.ts +10 -7
- package/build/core/question.d.ts.map +1 -1
- package/build/core/question.js +156 -109
- package/build/core/question.js.map +1 -1
- package/build/core/types.d.ts +14 -0
- package/build/core/types.d.ts.map +1 -0
- package/build/core/types.js +5 -0
- package/build/core/types.js.map +1 -0
- package/build/plugins/resource/aad/aadAppClient.d.ts.map +1 -1
- package/build/plugins/resource/aad/aadAppClient.js +8 -9
- package/build/plugins/resource/aad/aadAppClient.js.map +1 -1
- package/build/plugins/resource/aad/aadAppManifestManager.d.ts +9 -0
- package/build/plugins/resource/aad/aadAppManifestManager.d.ts.map +1 -0
- package/build/plugins/resource/aad/aadAppManifestManager.js +78 -0
- package/build/plugins/resource/aad/aadAppManifestManager.js.map +1 -0
- package/build/plugins/resource/aad/appStudio.js +2 -2
- package/build/plugins/resource/aad/appStudio.js.map +1 -1
- package/build/plugins/resource/aad/constants.d.ts +5 -5
- package/build/plugins/resource/aad/constants.d.ts.map +1 -1
- package/build/plugins/resource/aad/constants.js +10 -9
- package/build/plugins/resource/aad/constants.js.map +1 -1
- package/build/plugins/resource/aad/errors.d.ts +19 -19
- package/build/plugins/resource/aad/errors.d.ts.map +1 -1
- package/build/plugins/resource/aad/errors.js +44 -48
- package/build/plugins/resource/aad/errors.js.map +1 -1
- package/build/plugins/resource/aad/index.d.ts.map +1 -1
- package/build/plugins/resource/aad/index.js +2 -6
- package/build/plugins/resource/aad/index.js.map +1 -1
- package/build/plugins/resource/aad/interfaces/AADApplication.d.ts +122 -0
- package/build/plugins/resource/aad/interfaces/AADApplication.d.ts.map +1 -0
- package/build/plugins/resource/aad/interfaces/AADApplication.js +3 -0
- package/build/plugins/resource/aad/interfaces/AADApplication.js.map +1 -0
- package/build/plugins/resource/aad/interfaces/AADManifest.d.ts +111 -0
- package/build/plugins/resource/aad/interfaces/AADManifest.d.ts.map +1 -0
- package/build/plugins/resource/aad/interfaces/AADManifest.js +3 -0
- package/build/plugins/resource/aad/interfaces/AADManifest.js.map +1 -0
- package/build/plugins/resource/aad/permissions/index.d.ts +5 -0
- package/build/plugins/resource/aad/permissions/index.d.ts.map +1 -0
- package/build/plugins/resource/aad/permissions/index.js +38 -0
- package/build/plugins/resource/aad/permissions/index.js.map +1 -0
- package/build/plugins/resource/aad/plugin.d.ts.map +1 -1
- package/build/plugins/resource/aad/plugin.js +21 -22
- package/build/plugins/resource/aad/plugin.js.map +1 -1
- package/build/plugins/resource/aad/utils/aadManifestHelper.d.ts +7 -0
- package/build/plugins/resource/aad/utils/aadManifestHelper.d.ts.map +1 -0
- package/build/plugins/resource/aad/utils/aadManifestHelper.js +150 -0
- package/build/plugins/resource/aad/utils/aadManifestHelper.js.map +1 -0
- package/build/plugins/resource/aad/utils/configs.d.ts +18 -1
- package/build/plugins/resource/aad/utils/configs.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/configs.js +128 -7
- package/build/plugins/resource/aad/utils/configs.js.map +1 -1
- package/build/plugins/resource/aad/utils/telemetry.js +3 -3
- package/build/plugins/resource/aad/utils/telemetry.js.map +1 -1
- package/build/plugins/resource/aad/v3/index.d.ts +1 -5
- package/build/plugins/resource/aad/v3/index.d.ts.map +1 -1
- package/build/plugins/resource/aad/v3/index.js +8 -42
- package/build/plugins/resource/aad/v3/index.js.map +1 -1
- package/build/plugins/resource/apim/constants.d.ts +8 -7
- package/build/plugins/resource/apim/constants.d.ts.map +1 -1
- package/build/plugins/resource/apim/constants.js +55 -55
- 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 +20 -24
- package/build/plugins/resource/apim/error.js.map +1 -1
- package/build/plugins/resource/appstudio/appStudio.js +2 -2
- package/build/plugins/resource/appstudio/appStudio.js.map +1 -1
- package/build/plugins/resource/appstudio/constants.d.ts +11 -0
- package/build/plugins/resource/appstudio/constants.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/constants.js +12 -1
- package/build/plugins/resource/appstudio/constants.js.map +1 -1
- package/build/plugins/resource/appstudio/errors.d.ts +9 -33
- package/build/plugins/resource/appstudio/errors.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/errors.js +37 -64
- package/build/plugins/resource/appstudio/errors.js.map +1 -1
- package/build/plugins/resource/appstudio/index.d.ts +1 -1
- package/build/plugins/resource/appstudio/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/index.js +12 -9
- package/build/plugins/resource/appstudio/index.js.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts +10 -4
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.js +147 -63
- package/build/plugins/resource/appstudio/manifestTemplate.js.map +1 -1
- package/build/plugins/resource/appstudio/plugin.d.ts +2 -2
- package/build/plugins/resource/appstudio/plugin.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/plugin.js +110 -58
- package/build/plugins/resource/appstudio/plugin.js.map +1 -1
- package/build/plugins/resource/appstudio/questions.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/questions.js +5 -4
- package/build/plugins/resource/appstudio/questions.js.map +1 -1
- package/build/plugins/resource/appstudio/utils/utils.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/utils/utils.js +2 -1
- package/build/plugins/resource/appstudio/utils/utils.js.map +1 -1
- package/build/plugins/resource/appstudio/v2/index.d.ts +2 -3
- package/build/plugins/resource/appstudio/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/v2/index.js +1 -2
- package/build/plugins/resource/appstudio/v2/index.js.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.d.ts +2 -2
- package/build/plugins/resource/appstudio/v3/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.js +2 -2
- package/build/plugins/resource/appstudio/v3/index.js.map +1 -1
- package/build/plugins/resource/appstudio/v3/plugin.d.ts +2 -2
- package/build/plugins/resource/appstudio/v3/plugin.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/v3/plugin.js +3 -3
- package/build/plugins/resource/appstudio/v3/plugin.js.map +1 -1
- package/build/plugins/resource/bot/aadRegistration.d.ts.map +1 -1
- package/build/plugins/resource/bot/aadRegistration.js +4 -8
- package/build/plugins/resource/bot/aadRegistration.js.map +1 -1
- package/build/plugins/resource/bot/appStudio/appStudio.d.ts.map +1 -1
- package/build/plugins/resource/bot/appStudio/appStudio.js +5 -8
- package/build/plugins/resource/bot/appStudio/appStudio.js.map +1 -1
- package/build/plugins/resource/bot/azureOps.d.ts +0 -1
- package/build/plugins/resource/bot/azureOps.d.ts.map +1 -1
- package/build/plugins/resource/bot/azureOps.js +2 -21
- package/build/plugins/resource/bot/azureOps.js.map +1 -1
- package/build/plugins/resource/bot/configs/localDebugConfig.d.ts.map +1 -1
- package/build/plugins/resource/bot/configs/localDebugConfig.js +13 -38
- package/build/plugins/resource/bot/configs/localDebugConfig.js.map +1 -1
- package/build/plugins/resource/bot/configs/scaffoldConfig.d.ts +11 -0
- package/build/plugins/resource/bot/configs/scaffoldConfig.d.ts.map +1 -1
- package/build/plugins/resource/bot/configs/scaffoldConfig.js +55 -6
- package/build/plugins/resource/bot/configs/scaffoldConfig.js.map +1 -1
- package/build/plugins/resource/bot/configs/teamsBotConfig.d.ts.map +1 -1
- package/build/plugins/resource/bot/configs/teamsBotConfig.js +8 -1
- package/build/plugins/resource/bot/configs/teamsBotConfig.js.map +1 -1
- package/build/plugins/resource/bot/constants.d.ts +25 -2
- package/build/plugins/resource/bot/constants.d.ts.map +1 -1
- package/build/plugins/resource/bot/constants.js +27 -3
- package/build/plugins/resource/bot/constants.js.map +1 -1
- package/build/plugins/resource/bot/enums/pluginActRoles.d.ts +2 -1
- package/build/plugins/resource/bot/enums/pluginActRoles.d.ts.map +1 -1
- package/build/plugins/resource/bot/enums/pluginActRoles.js +1 -0
- package/build/plugins/resource/bot/enums/pluginActRoles.js.map +1 -1
- package/build/plugins/resource/bot/errors.d.ts +44 -23
- package/build/plugins/resource/bot/errors.d.ts.map +1 -1
- package/build/plugins/resource/bot/errors.js +57 -44
- package/build/plugins/resource/bot/errors.js.map +1 -1
- package/build/plugins/resource/bot/functionsHostedBot/plugin.d.ts +7 -0
- package/build/plugins/resource/bot/functionsHostedBot/plugin.d.ts.map +1 -0
- package/build/plugins/resource/bot/functionsHostedBot/plugin.js +39 -0
- package/build/plugins/resource/bot/functionsHostedBot/plugin.js.map +1 -0
- package/build/plugins/resource/bot/index.d.ts +8 -3
- package/build/plugins/resource/bot/index.d.ts.map +1 -1
- package/build/plugins/resource/bot/index.js +84 -31
- package/build/plugins/resource/bot/index.js.map +1 -1
- package/build/plugins/resource/bot/languageStrategy.d.ts +4 -1
- package/build/plugins/resource/bot/languageStrategy.d.ts.map +1 -1
- package/build/plugins/resource/bot/languageStrategy.js +30 -3
- package/build/plugins/resource/bot/languageStrategy.js.map +1 -1
- package/build/plugins/resource/bot/plugin.d.ts +3 -6
- package/build/plugins/resource/bot/plugin.d.ts.map +1 -1
- package/build/plugins/resource/bot/plugin.js +42 -110
- package/build/plugins/resource/bot/plugin.js.map +1 -1
- package/build/plugins/resource/bot/question.d.ts +12 -0
- package/build/plugins/resource/bot/question.d.ts.map +1 -0
- package/build/plugins/resource/bot/question.js +69 -0
- package/build/plugins/resource/bot/question.js.map +1 -0
- package/build/plugins/resource/bot/resources/messages.d.ts +34 -56
- package/build/plugins/resource/bot/resources/messages.d.ts.map +1 -1
- package/build/plugins/resource/bot/resources/messages.js +58 -73
- package/build/plugins/resource/bot/resources/messages.js.map +1 -1
- package/build/plugins/resource/bot/resources/strings.d.ts +17 -28
- package/build/plugins/resource/bot/resources/strings.d.ts.map +1 -1
- package/build/plugins/resource/bot/resources/strings.js +19 -30
- package/build/plugins/resource/bot/resources/strings.js.map +1 -1
- package/build/plugins/resource/bot/utils/common.d.ts +5 -1
- package/build/plugins/resource/bot/utils/common.d.ts.map +1 -1
- package/build/plugins/resource/bot/utils/common.js +19 -1
- package/build/plugins/resource/bot/utils/common.js.map +1 -1
- package/build/plugins/resource/bot/utils/retryHandler.d.ts +1 -1
- package/build/plugins/resource/bot/utils/retryHandler.d.ts.map +1 -1
- package/build/plugins/resource/bot/utils/retryHandler.js.map +1 -1
- package/build/plugins/resource/bot/utils/telemetry-helper.d.ts.map +1 -1
- package/build/plugins/resource/bot/utils/telemetry-helper.js +3 -1
- package/build/plugins/resource/bot/utils/telemetry-helper.js.map +1 -1
- package/build/plugins/resource/bot/v2/index.d.ts +3 -1
- package/build/plugins/resource/bot/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/bot/v2/index.js +6 -0
- package/build/plugins/resource/bot/v2/index.js.map +1 -1
- package/build/plugins/resource/bot/v3/index.d.ts +2 -1
- package/build/plugins/resource/bot/v3/index.d.ts.map +1 -1
- package/build/plugins/resource/bot/v3/index.js +15 -1
- package/build/plugins/resource/bot/v3/index.js.map +1 -1
- package/build/plugins/resource/cicd/constants.d.ts +39 -0
- package/build/plugins/resource/cicd/constants.d.ts.map +1 -0
- package/build/plugins/resource/cicd/constants.js +52 -0
- package/build/plugins/resource/cicd/constants.js.map +1 -0
- package/build/plugins/resource/cicd/errors.d.ts +24 -0
- package/build/plugins/resource/cicd/errors.d.ts.map +1 -0
- package/build/plugins/resource/cicd/errors.js +48 -0
- package/build/plugins/resource/cicd/errors.js.map +1 -0
- package/build/plugins/resource/cicd/index.d.ts +17 -0
- package/build/plugins/resource/cicd/index.d.ts.map +1 -0
- package/build/plugins/resource/cicd/index.js +117 -0
- package/build/plugins/resource/cicd/index.js.map +1 -0
- package/build/plugins/resource/cicd/logger.d.ts +10 -0
- package/build/plugins/resource/cicd/logger.d.ts.map +1 -0
- package/build/plugins/resource/cicd/logger.js +27 -0
- package/build/plugins/resource/cicd/logger.js.map +1 -0
- package/build/plugins/resource/cicd/plugin.d.ts +10 -0
- package/build/plugins/resource/cicd/plugin.d.ts.map +1 -0
- package/build/plugins/resource/cicd/plugin.js +78 -0
- package/build/plugins/resource/cicd/plugin.js.map +1 -0
- package/build/plugins/resource/cicd/providers/azdoProvider.d.ts +6 -0
- package/build/plugins/resource/cicd/providers/azdoProvider.d.ts.map +1 -0
- package/build/plugins/resource/cicd/providers/azdoProvider.js +25 -0
- package/build/plugins/resource/cicd/providers/azdoProvider.js.map +1 -0
- package/build/plugins/resource/cicd/providers/enums.d.ts +12 -0
- package/build/plugins/resource/cicd/providers/enums.d.ts.map +1 -0
- package/build/plugins/resource/cicd/providers/enums.js +19 -0
- package/build/plugins/resource/cicd/providers/enums.js.map +1 -0
- package/build/plugins/resource/cicd/providers/factory.d.ts +6 -0
- package/build/plugins/resource/cicd/providers/factory.d.ts.map +1 -0
- package/build/plugins/resource/cicd/providers/factory.js +28 -0
- package/build/plugins/resource/cicd/providers/factory.js.map +1 -0
- package/build/plugins/resource/cicd/providers/githubProvider.d.ts +6 -0
- package/build/plugins/resource/cicd/providers/githubProvider.d.ts.map +1 -0
- package/build/plugins/resource/cicd/providers/githubProvider.js +25 -0
- package/build/plugins/resource/cicd/providers/githubProvider.js.map +1 -0
- package/build/plugins/resource/cicd/providers/jenkinsProvider.d.ts +6 -0
- package/build/plugins/resource/cicd/providers/jenkinsProvider.d.ts.map +1 -0
- package/build/plugins/resource/cicd/providers/jenkinsProvider.js +25 -0
- package/build/plugins/resource/cicd/providers/jenkinsProvider.js.map +1 -0
- package/build/plugins/resource/cicd/providers/provider.d.ts +11 -0
- package/build/plugins/resource/cicd/providers/provider.d.ts.map +1 -0
- package/build/plugins/resource/cicd/providers/provider.js +92 -0
- package/build/plugins/resource/cicd/providers/provider.js.map +1 -0
- package/build/plugins/resource/cicd/questions.d.ts +14 -0
- package/build/plugins/resource/cicd/questions.d.ts.map +1 -0
- package/build/plugins/resource/cicd/questions.js +45 -0
- package/build/plugins/resource/cicd/questions.js.map +1 -0
- package/build/plugins/resource/cicd/result.d.ts +11 -0
- package/build/plugins/resource/cicd/result.d.ts.map +1 -0
- package/build/plugins/resource/cicd/result.js +23 -0
- package/build/plugins/resource/cicd/result.js.map +1 -0
- package/build/plugins/resource/cicd/utils/buildScripts.d.ts +3 -0
- package/build/plugins/resource/cicd/utils/buildScripts.d.ts.map +1 -0
- package/build/plugins/resource/cicd/utils/buildScripts.js +34 -0
- package/build/plugins/resource/cicd/utils/buildScripts.js.map +1 -0
- package/build/plugins/resource/cicd/utils/telemetry-helper.d.ts +29 -0
- package/build/plugins/resource/cicd/utils/telemetry-helper.d.ts.map +1 -0
- package/build/plugins/resource/cicd/utils/telemetry-helper.js +46 -0
- package/build/plugins/resource/cicd/utils/telemetry-helper.js.map +1 -0
- package/build/plugins/resource/frontend/configs.js +4 -4
- package/build/plugins/resource/frontend/configs.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/ops/scaffold.d.ts.map +1 -1
- package/build/plugins/resource/frontend/dotnet/ops/scaffold.js +1 -2
- package/build/plugins/resource/frontend/dotnet/ops/scaffold.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts +2 -2
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts.map +1 -1
- package/build/plugins/resource/frontend/dotnet/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/env.d.ts.map +1 -1
- package/build/plugins/resource/frontend/env.js +2 -3
- package/build/plugins/resource/frontend/env.js.map +1 -1
- package/build/plugins/resource/frontend/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/index.js +3 -3
- package/build/plugins/resource/frontend/index.js.map +1 -1
- 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/resources/errors.d.ts +5 -4
- package/build/plugins/resource/frontend/resources/errors.d.ts.map +1 -1
- package/build/plugins/resource/frontend/resources/errors.js +50 -65
- package/build/plugins/resource/frontend/resources/errors.js.map +1 -1
- package/build/plugins/resource/frontend/resources/messages.d.ts +0 -2
- package/build/plugins/resource/frontend/resources/messages.d.ts.map +1 -1
- package/build/plugins/resource/frontend/resources/messages.js +0 -2
- package/build/plugins/resource/frontend/resources/messages.js.map +1 -1
- package/build/plugins/resource/frontend/resources/templateInfo.d.ts +1 -0
- package/build/plugins/resource/frontend/resources/templateInfo.d.ts.map +1 -1
- package/build/plugins/resource/frontend/resources/templateInfo.js +3 -1
- package/build/plugins/resource/frontend/resources/templateInfo.js.map +1 -1
- package/build/plugins/resource/frontend/utils/telemetry-helper.d.ts +1 -1
- package/build/plugins/resource/frontend/utils/telemetry-helper.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils/telemetry-helper.js +2 -3
- package/build/plugins/resource/frontend/utils/telemetry-helper.js.map +1 -1
- package/build/plugins/resource/frontend/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/v2/index.js.map +1 -1
- package/build/plugins/resource/frontend/v3/error.d.ts.map +1 -1
- package/build/plugins/resource/frontend/v3/error.js +8 -20
- package/build/plugins/resource/frontend/v3/error.js.map +1 -1
- package/build/plugins/resource/function/index.d.ts.map +1 -1
- package/build/plugins/resource/function/index.js +1 -2
- package/build/plugins/resource/function/index.js.map +1 -1
- package/build/plugins/resource/function/ops/scaffold.d.ts.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 +0 -2
- package/build/plugins/resource/function/plugin.d.ts.map +1 -1
- package/build/plugins/resource/function/plugin.js +2 -50
- package/build/plugins/resource/function/plugin.js.map +1 -1
- package/build/plugins/resource/function/resources/errors.d.ts +2 -15
- package/build/plugins/resource/function/resources/errors.d.ts.map +1 -1
- package/build/plugins/resource/function/resources/errors.js +40 -74
- package/build/plugins/resource/function/resources/errors.js.map +1 -1
- package/build/plugins/resource/function/utils/telemetry-helper.d.ts +1 -2
- package/build/plugins/resource/function/utils/telemetry-helper.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/telemetry-helper.js +2 -3
- package/build/plugins/resource/function/utils/telemetry-helper.js.map +1 -1
- package/build/plugins/resource/function/v3/error.d.ts +1 -1
- package/build/plugins/resource/function/v3/error.d.ts.map +1 -1
- package/build/plugins/resource/function/v3/error.js +12 -23
- package/build/plugins/resource/function/v3/error.js.map +1 -1
- package/build/plugins/resource/function/v3/index.d.ts.map +1 -1
- package/build/plugins/resource/function/v3/index.js +1 -1
- package/build/plugins/resource/function/v3/index.js.map +1 -1
- package/build/plugins/resource/identity/constants.d.ts +2 -1
- package/build/plugins/resource/identity/constants.d.ts.map +1 -1
- package/build/plugins/resource/identity/constants.js +2 -1
- package/build/plugins/resource/identity/constants.js.map +1 -1
- package/build/plugins/resource/identity/index.d.ts +4 -16
- package/build/plugins/resource/identity/index.d.ts.map +1 -1
- package/build/plugins/resource/identity/index.js +46 -119
- package/build/plugins/resource/identity/index.js.map +1 -1
- package/build/plugins/resource/identity/utils/telemetryUtil.d.ts +3 -3
- package/build/plugins/resource/identity/utils/telemetryUtil.d.ts.map +1 -1
- package/build/plugins/resource/identity/utils/telemetryUtil.js +6 -6
- package/build/plugins/resource/identity/utils/telemetryUtil.js.map +1 -1
- package/build/plugins/resource/identity/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/identity/v2/index.js.map +1 -1
- package/build/plugins/resource/identity/v3/index.d.ts +0 -2
- package/build/plugins/resource/identity/v3/index.d.ts.map +1 -1
- package/build/plugins/resource/identity/v3/index.js +0 -2
- package/build/plugins/resource/identity/v3/index.js.map +1 -1
- package/build/plugins/resource/index.d.ts +1 -0
- package/build/plugins/resource/index.d.ts.map +1 -1
- package/build/plugins/resource/index.js +1 -0
- package/build/plugins/resource/index.js.map +1 -1
- package/build/plugins/resource/simpleauth/constants.d.ts +1 -1
- package/build/plugins/resource/simpleauth/constants.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/constants.js +4 -3
- package/build/plugins/resource/simpleauth/constants.js.map +1 -1
- package/build/plugins/resource/simpleauth/errors.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/errors.js +13 -12
- package/build/plugins/resource/simpleauth/errors.js.map +1 -1
- package/build/plugins/resource/simpleauth/plugin.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/plugin.js +2 -13
- package/build/plugins/resource/simpleauth/plugin.js.map +1 -1
- package/build/plugins/resource/simpleauth/utils/common.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/utils/common.js +17 -50
- package/build/plugins/resource/simpleauth/utils/common.js.map +1 -1
- package/build/plugins/resource/spfx/error.d.ts.map +1 -1
- package/build/plugins/resource/spfx/error.js +8 -9
- package/build/plugins/resource/spfx/error.js.map +1 -1
- package/build/plugins/resource/spfx/index.d.ts.map +1 -1
- package/build/plugins/resource/spfx/index.js +3 -29
- package/build/plugins/resource/spfx/index.js.map +1 -1
- package/build/plugins/resource/spfx/plugin.d.ts.map +1 -1
- package/build/plugins/resource/spfx/plugin.js +149 -78
- package/build/plugins/resource/spfx/plugin.js.map +1 -1
- package/build/plugins/resource/spfx/utils/constants.d.ts +11 -6
- package/build/plugins/resource/spfx/utils/constants.d.ts.map +1 -1
- package/build/plugins/resource/spfx/utils/constants.js +15 -8
- package/build/plugins/resource/spfx/utils/constants.js.map +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.d.ts +3 -0
- package/build/plugins/resource/spfx/utils/progress-helper.d.ts.map +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.js +11 -0
- package/build/plugins/resource/spfx/utils/progress-helper.js.map +1 -1
- package/build/plugins/resource/spfx/utils/questions.d.ts.map +1 -1
- package/build/plugins/resource/spfx/utils/questions.js +11 -4
- package/build/plugins/resource/spfx/utils/questions.js.map +1 -1
- package/build/plugins/resource/spfx/utils/utils.js +2 -2
- package/build/plugins/resource/spfx/utils/utils.js.map +1 -1
- package/build/plugins/resource/spfx/v3/index.d.ts.map +1 -1
- package/build/plugins/resource/spfx/v3/index.js +2 -14
- package/build/plugins/resource/spfx/v3/index.js.map +1 -1
- package/build/plugins/resource/spfx/v3/plugin.d.ts.map +1 -1
- package/build/plugins/resource/spfx/v3/plugin.js +9 -8
- package/build/plugins/resource/spfx/v3/plugin.js.map +1 -1
- package/build/plugins/resource/sql/constants.d.ts +0 -6
- package/build/plugins/resource/sql/constants.d.ts.map +1 -1
- package/build/plugins/resource/sql/constants.js +0 -6
- package/build/plugins/resource/sql/constants.js.map +1 -1
- package/build/plugins/resource/sql/errors.d.ts +0 -10
- package/build/plugins/resource/sql/errors.d.ts.map +1 -1
- package/build/plugins/resource/sql/errors.js +18 -27
- package/build/plugins/resource/sql/errors.js.map +1 -1
- package/build/plugins/resource/sql/questions.d.ts.map +1 -1
- package/build/plugins/resource/sql/questions.js +4 -3
- package/build/plugins/resource/sql/questions.js.map +1 -1
- package/build/plugins/resource/sql/sqlClient.d.ts.map +1 -1
- package/build/plugins/resource/sql/sqlClient.js +8 -2
- package/build/plugins/resource/sql/sqlClient.js.map +1 -1
- package/build/plugins/resource/sql/utils/checkInput.d.ts.map +1 -1
- package/build/plugins/resource/sql/utils/checkInput.js +11 -11
- package/build/plugins/resource/sql/utils/checkInput.js.map +1 -1
- package/build/plugins/resource/sql/utils/message.d.ts +0 -17
- package/build/plugins/resource/sql/utils/message.d.ts.map +1 -1
- package/build/plugins/resource/sql/utils/message.js +0 -17
- package/build/plugins/resource/sql/utils/message.js.map +1 -1
- package/build/plugins/resource/utils4v2.d.ts +4 -0
- package/build/plugins/resource/utils4v2.d.ts.map +1 -1
- package/build/plugins/resource/utils4v2.js +30 -6
- package/build/plugins/resource/utils4v2.js.map +1 -1
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.d.ts +1 -0
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.js +1 -0
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.js.map +1 -1
- package/build/plugins/solution/fx-solution/arm.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/arm.js +19 -14
- package/build/plugins/solution/fx-solution/arm.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/constants.d.ts +5 -0
- package/build/plugins/solution/fx-solution/debug/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/constants.js +7 -1
- 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 +18 -12
- package/build/plugins/solution/fx-solution/debug/provisionLocal.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/scaffolding.js +24 -41
- package/build/plugins/solution/fx-solution/debug/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/util/launch.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/util/launch.js +5 -1
- package/build/plugins/solution/fx-solution/debug/util/launch.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/util/launchNext.d.ts +2 -0
- package/build/plugins/solution/fx-solution/debug/util/launchNext.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/util/launchNext.js +116 -1
- package/build/plugins/solution/fx-solution/debug/util/launchNext.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/util/tasksNext.d.ts +2 -1
- package/build/plugins/solution/fx-solution/debug/util/tasksNext.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/util/tasksNext.js +151 -3
- package/build/plugins/solution/fx-solution/debug/util/tasksNext.js.map +1 -1
- package/build/plugins/solution/fx-solution/question.d.ts +16 -4
- package/build/plugins/solution/fx-solution/question.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/question.js +59 -78
- package/build/plugins/solution/fx-solution/question.js.map +1 -1
- package/build/plugins/solution/fx-solution/solution.d.ts +5 -11
- package/build/plugins/solution/fx-solution/solution.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/solution.js +50 -59
- package/build/plugins/solution/fx-solution/solution.js.map +1 -1
- package/build/plugins/solution/fx-solution/types.d.ts +10 -0
- package/build/plugins/solution/fx-solution/types.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/types.js +12 -0
- package/build/plugins/solution/fx-solution/types.js.map +1 -0
- package/build/plugins/solution/fx-solution/utils/progressHelper.d.ts +0 -3
- package/build/plugins/solution/fx-solution/utils/progressHelper.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/utils/progressHelper.js +4 -8
- package/build/plugins/solution/fx-solution/utils/progressHelper.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/adaptor.js +6 -6
- 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 +20 -13
- 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 +2 -1
- 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 +8 -10
- package/build/plugins/solution/fx-solution/v2/deploy.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js +52 -24
- package/build/plugins/solution/fx-solution/v2/executeUserTask.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 +27 -11
- 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 +16 -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 +24 -17
- package/build/plugins/solution/fx-solution/v2/listCollaborator.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.js +20 -15
- 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 +10 -3
- package/build/plugins/solution/fx-solution/v2/provisionLocal.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/publish.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/publish.js +12 -6
- 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 +21 -21
- package/build/plugins/solution/fx-solution/v2/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.d.ts +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.js +21 -11
- package/build/plugins/solution/fx-solution/v2/utils.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addFeature.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addFeature.js +8 -15
- package/build/plugins/solution/fx-solution/v3/addFeature.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/deploy.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/deploy.js +5 -7
- package/build/plugins/solution/fx-solution/v3/deploy.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provision.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provision.js +34 -21
- package/build/plugins/solution/fx-solution/v3/provision.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/publish.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/publish.js +4 -1
- package/build/plugins/solution/fx-solution/v3/publish.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/userTask.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/userTask.js +12 -11
- package/build/plugins/solution/fx-solution/v3/userTask.js.map +1 -1
- package/build/plugins/solution/spfx-solution/addFeature.d.ts.map +1 -1
- package/build/plugins/solution/spfx-solution/addFeature.js +2 -2
- package/build/plugins/solution/spfx-solution/addFeature.js.map +1 -1
- package/package.json +9 -9
- package/resource/package.nls.json +515 -0
- package/templates/core/README-auto-generated.md +0 -0
- package/templates/plugins/resource/aad/manifest/aad.template.json +116 -0
- package/templates/plugins/resource/bot/bicep/botConfiguration.template.bicep +14 -8
- package/templates/plugins/resource/bot/bot.csharp.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/cicd/azdo/README.md +48 -0
- package/templates/plugins/resource/cicd/azdo/cd.yml +55 -0
- package/templates/plugins/resource/cicd/azdo/ci.yml +37 -0
- package/templates/plugins/resource/cicd/azdo/provision.yml +54 -0
- package/templates/plugins/resource/cicd/azdo/publish.yml +46 -0
- package/templates/plugins/resource/cicd/github/README.md +48 -0
- package/templates/plugins/resource/cicd/github/cd.yml +71 -0
- package/templates/plugins/resource/cicd/github/ci.yml +34 -0
- package/templates/plugins/resource/cicd/github/provision.yml +65 -0
- package/templates/plugins/resource/cicd/github/publish.yml +47 -0
- package/templates/plugins/resource/cicd/jenkins/Jenkinsfile.cd +78 -0
- package/templates/plugins/resource/cicd/jenkins/Jenkinsfile.ci +34 -0
- package/templates/plugins/resource/cicd/jenkins/Jenkinsfile.provision +79 -0
- package/templates/plugins/resource/cicd/jenkins/Jenkinsfile.publish +57 -0
- package/templates/plugins/resource/cicd/jenkins/README.md +45 -0
- package/templates/plugins/resource/dotnet/blazor-base.csharp.default.zip +0 -0
- package/templates/plugins/resource/frontend/tab.csharp.default.zip +0 -0
- package/templates/plugins/resource/frontend/tab.js.default.zip +0 -0
- package/templates/plugins/resource/frontend/tab.ts.default.zip +0 -0
- package/templates/plugins/resource/function/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/build/common/fileUtils.d.ts +0 -2
- package/build/common/fileUtils.d.ts.map +0 -1
- package/build/common/fileUtils.js +0 -46
- package/build/common/fileUtils.js.map +0 -1
- package/build/common/projectSettingsValidator.d.ts +0 -3
- package/build/common/projectSettingsValidator.d.ts.map +0 -1
- package/build/common/projectSettingsValidator.js +0 -54
- package/build/common/projectSettingsValidator.js.map +0 -1
- package/build/core/tools.d.ts +0 -8
- package/build/core/tools.d.ts.map +0 -1
- package/build/core/tools.js +0 -72
- package/build/core/tools.js.map +0 -1
- package/build/core/utils.d.ts +0 -3
- package/build/core/utils.d.ts.map +0 -1
- package/build/core/utils.js +0 -10
- package/build/core/utils.js.map +0 -1
- package/build/plugins/resource/aad/utils/common.d.ts +0 -19
- package/build/plugins/resource/aad/utils/common.d.ts.map +0 -1
- package/build/plugins/resource/aad/utils/common.js +0 -132
- package/build/plugins/resource/aad/utils/common.js.map +0 -1
- package/build/plugins/resource/frontend/dotnet/error-factory.d.ts +0 -10
- package/build/plugins/resource/frontend/dotnet/error-factory.d.ts.map +0 -1
- package/build/plugins/resource/frontend/dotnet/error-factory.js +0 -20
- package/build/plugins/resource/frontend/dotnet/error-factory.js.map +0 -1
- package/build/plugins/resource/identity/config.d.ts +0 -11
- package/build/plugins/resource/identity/config.d.ts.map +0 -1
- package/build/plugins/resource/identity/config.js +0 -17
- package/build/plugins/resource/identity/config.js.map +0 -1
- package/build/plugins/resource/identity/errors.d.ts +0 -11
- package/build/plugins/resource/identity/errors.d.ts.map +0 -1
- package/build/plugins/resource/identity/errors.js +0 -15
- package/build/plugins/resource/identity/errors.js.map +0 -1
- package/build/plugins/resource/identity/results.d.ts +0 -10
- package/build/plugins/resource/identity/results.d.ts.map +0 -1
- package/build/plugins/resource/identity/results.js +0 -18
- package/build/plugins/resource/identity/results.js.map +0 -1
- package/build/plugins/resource/identity/utils/commonUtils.d.ts +0 -2
- package/build/plugins/resource/identity/utils/commonUtils.d.ts.map +0 -1
- package/build/plugins/resource/identity/utils/commonUtils.js +0 -10
- package/build/plugins/resource/identity/utils/commonUtils.js.map +0 -1
- package/build/plugins/resource/identity/utils/contextUtils.d.ts +0 -5
- package/build/plugins/resource/identity/utils/contextUtils.d.ts.map +0 -1
- package/build/plugins/resource/identity/utils/contextUtils.js +0 -11
- package/build/plugins/resource/identity/utils/contextUtils.js.map +0 -1
- package/build/plugins/resource/identity/utils/messages.d.ts +0 -10
- package/build/plugins/resource/identity/utils/messages.d.ts.map +0 -1
- package/build/plugins/resource/identity/utils/messages.js +0 -15
- package/build/plugins/resource/identity/utils/messages.js.map +0 -1
- package/resource/strings.json +0 -103
- package/templates/plugins/resource/bot/bot-msgext.csharp.default.zip +0 -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/msgext.js.default.zip +0 -0
- package/templates/plugins/resource/bot/msgext.ts.default.zip +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FunctionsHostedBotImpl = void 0;
|
|
4
|
+
const languageStrategy_1 = require("../languageStrategy");
|
|
5
|
+
const messages_1 = require("../resources/messages");
|
|
6
|
+
const result_1 = require("../result");
|
|
7
|
+
const constants_1 = require("../constants");
|
|
8
|
+
const strings_1 = require("../resources/strings");
|
|
9
|
+
const errors_1 = require("../errors");
|
|
10
|
+
const progressBars_1 = require("../progressBars");
|
|
11
|
+
const logger_1 = require("../logger");
|
|
12
|
+
const plugin_1 = require("../plugin");
|
|
13
|
+
class FunctionsHostedBotImpl extends plugin_1.TeamsBotImpl {
|
|
14
|
+
async scaffold(context) {
|
|
15
|
+
this.ctx = context;
|
|
16
|
+
await this.config.restoreConfigFromContext(context);
|
|
17
|
+
this.config.scaffold.hostType = strings_1.HostTypes.AZURE_FUNCTIONS;
|
|
18
|
+
logger_1.Logger.info(messages_1.Messages.ScaffoldingBot);
|
|
19
|
+
const handler = await progressBars_1.ProgressBarFactory.newProgressBar(constants_1.ProgressBarConstants.SCAFFOLD_FUNCTIONS_NOTIFICATION_TITLE, constants_1.ProgressBarConstants.SCAFFOLD_FUNCTIONS_NOTIFICATION_STEPS_NUM, this.ctx);
|
|
20
|
+
await (handler === null || handler === void 0 ? void 0 : handler.start(constants_1.ProgressBarConstants.SCAFFOLD_FUNCTIONS_NOTIFICATION_STEP_START));
|
|
21
|
+
// 1. Copy the corresponding template project into target directory.
|
|
22
|
+
const group_name = constants_1.TemplateProjectsConstants.GROUP_NAME_BOT;
|
|
23
|
+
if (!this.config.actRoles) {
|
|
24
|
+
throw new errors_1.SomethingMissingError("act roles");
|
|
25
|
+
}
|
|
26
|
+
await (handler === null || handler === void 0 ? void 0 : handler.next(constants_1.ProgressBarConstants.SCAFFOLD_FUNCTIONS_NOTIFICATION_STEP_FETCH_PROJECT_TEMPLATE));
|
|
27
|
+
await languageStrategy_1.LanguageStrategy.scaffoldProject(group_name, this.config);
|
|
28
|
+
// 2. Copy the trigger template(s) into the trigger directories.
|
|
29
|
+
// For example,
|
|
30
|
+
// templates/bot/ts/notification-trigger-http ==> ${projectRoot}/notifyHttpTrigger
|
|
31
|
+
await (handler === null || handler === void 0 ? void 0 : handler.next(constants_1.ProgressBarConstants.SCAFFOLD_FUNCTIONS_NOTIFICATION_STEP_FETCH_TRIGGER_TEMPLATE));
|
|
32
|
+
await languageStrategy_1.LanguageStrategy.scaffoldTriggers(group_name, this.config);
|
|
33
|
+
this.config.saveConfigIntoContext(context);
|
|
34
|
+
logger_1.Logger.info(messages_1.Messages.SuccessfullyScaffoldedBot);
|
|
35
|
+
return result_1.FxBotPluginResultFactory.Success();
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.FunctionsHostedBotImpl = FunctionsHostedBotImpl;
|
|
39
|
+
//# sourceMappingURL=plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/bot/functionsHostedBot/plugin.ts"],"names":[],"mappings":";;;AAGA,0DAAuD;AACvD,oDAAiD;AACjD,sCAAgF;AAChF,4CAA+E;AAE/E,kDAAiD;AACjD,sCAAkD;AAClD,kDAAqD;AACrD,sCAAmC;AACnC,sCAAyC;AAEzC,MAAa,sBAAuB,SAAQ,qBAAY;IAC/C,KAAK,CAAC,QAAQ,CAAC,OAAsB;QAC1C,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC;QAEnB,MAAM,IAAI,CAAC,MAAM,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC;QACpD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,GAAG,mBAAS,CAAC,eAAe,CAAC;QAE1D,eAAM,CAAC,IAAI,CAAC,mBAAQ,CAAC,cAAc,CAAC,CAAC;QAErC,MAAM,OAAO,GAAG,MAAM,iCAAkB,CAAC,cAAc,CACrD,gCAAoB,CAAC,qCAAqC,EAC1D,gCAAoB,CAAC,yCAAyC,EAC9D,IAAI,CAAC,GAAG,CACT,CAAC;QACF,MAAM,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,CAAC,gCAAoB,CAAC,0CAA0C,CAAC,CAAA,CAAC;QAEtF,oEAAoE;QACpE,MAAM,UAAU,GAAG,qCAAyB,CAAC,cAAc,CAAC;QAC5D,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;YACzB,MAAM,IAAI,8BAAqB,CAAC,WAAW,CAAC,CAAC;SAC9C;QAED,MAAM,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,CACjB,gCAAoB,CAAC,2DAA2D,CACjF,CAAA,CAAC;QACF,MAAM,mCAAgB,CAAC,eAAe,CAAC,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QAEhE,gEAAgE;QAChE,eAAe;QACf,mFAAmF;QACnF,MAAM,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,CACjB,gCAAoB,CAAC,2DAA2D,CACjF,CAAA,CAAC;QACF,MAAM,mCAAgB,CAAC,gBAAgB,CAAC,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QAEjE,IAAI,CAAC,MAAM,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;QAC3C,eAAM,CAAC,IAAI,CAAC,mBAAQ,CAAC,yBAAyB,CAAC,CAAC;QAEhD,OAAO,iCAAa,CAAC,OAAO,EAAE,CAAC;IACjC,CAAC;CACF;AAxCD,wDAwCC"}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { Plugin, PluginContext,
|
|
1
|
+
import { AzureSolutionSettings, Func, FxError, Plugin, PluginContext, QTreeNode, Result, Stage } from "@microsoft/teamsfx-api";
|
|
2
2
|
import { FxResult } from "./result";
|
|
3
3
|
import { TeamsBotImpl } from "./plugin";
|
|
4
4
|
import "./v2";
|
|
5
5
|
import "./v3";
|
|
6
6
|
import { DotnetBotImpl } from "./dotnet/plugin";
|
|
7
7
|
import { PluginImpl } from "./interface";
|
|
8
|
+
import { FunctionsHostedBotImpl } from "./functionsHostedBot/plugin";
|
|
8
9
|
export declare class TeamsBot implements Plugin {
|
|
9
10
|
name: string;
|
|
10
11
|
displayName: string;
|
|
11
12
|
activate(solutionSettings: AzureSolutionSettings): boolean;
|
|
12
13
|
teamsBotImpl: TeamsBotImpl;
|
|
13
14
|
dotnetBotImpl: DotnetBotImpl;
|
|
15
|
+
functionsBotImpl: FunctionsHostedBotImpl;
|
|
14
16
|
getImpl(context: PluginContext): PluginImpl;
|
|
15
17
|
scaffold(context: PluginContext): Promise<FxResult>;
|
|
16
18
|
preProvision(context: PluginContext): Promise<FxResult>;
|
|
@@ -22,8 +24,11 @@ export declare class TeamsBot implements Plugin {
|
|
|
22
24
|
deploy(context: PluginContext): Promise<FxResult>;
|
|
23
25
|
localDebug(context: PluginContext): Promise<FxResult>;
|
|
24
26
|
postLocalDebug(context: PluginContext): Promise<FxResult>;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
getQuestions(stage: Stage, context: PluginContext): Promise<Result<QTreeNode | undefined, FxError>>;
|
|
28
|
+
getQuestionsForUserTask(func: Func, context: PluginContext): Promise<Result<QTreeNode | undefined, FxError>>;
|
|
29
|
+
private static wrapError;
|
|
30
|
+
private static runWithExceptionCatching;
|
|
31
|
+
private isFunctionsHostedBot;
|
|
27
32
|
}
|
|
28
33
|
declare const _default: TeamsBot;
|
|
29
34
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/resource/bot/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/resource/bot/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,qBAAqB,EAErB,IAAI,EACJ,OAAO,EAEP,MAAM,EACN,aAAa,EACb,SAAS,EACT,MAAM,EACN,KAAK,EAGN,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAA6C,QAAQ,EAAE,MAAM,UAAU,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAgBxC,OAAO,MAAM,CAAC;AACd,OAAO,MAAM,CAAC;AACd,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAKrE,qBACa,QAAS,YAAW,MAAM;IACrC,IAAI,SAAqB;IACzB,WAAW,SAAS;IACpB,QAAQ,CAAC,gBAAgB,EAAE,qBAAqB,GAAG,OAAO;IAInD,YAAY,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
1
1
|
"use strict";
|
|
2
|
+
var TeamsBot_1;
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
4
|
exports.TeamsBot = void 0;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
@@ -15,85 +16,134 @@ const telemetry_helper_1 = require("./utils/telemetry-helper");
|
|
|
15
16
|
const question_1 = require("../../solution/fx-solution/question");
|
|
16
17
|
const typedi_1 = require("typedi");
|
|
17
18
|
const ResourcePluginContainer_1 = require("../../solution/fx-solution/ResourcePluginContainer");
|
|
18
|
-
const core_1 = require("../../../core");
|
|
19
19
|
require("./v2");
|
|
20
20
|
require("./v3");
|
|
21
21
|
const plugin_2 = require("./dotnet/plugin");
|
|
22
|
-
|
|
22
|
+
const common_1 = require("../../../common");
|
|
23
|
+
const plugin_3 = require("./functionsHostedBot/plugin");
|
|
24
|
+
const scaffoldConfig_1 = require("./configs/scaffoldConfig");
|
|
25
|
+
const question_2 = require("./question");
|
|
26
|
+
const localizeUtils_1 = require("../../../common/localizeUtils");
|
|
27
|
+
let TeamsBot = TeamsBot_1 = class TeamsBot {
|
|
23
28
|
constructor() {
|
|
24
29
|
this.name = "fx-resource-bot";
|
|
25
30
|
this.displayName = "Bot";
|
|
26
31
|
this.teamsBotImpl = new plugin_1.TeamsBotImpl();
|
|
27
32
|
this.dotnetBotImpl = new plugin_2.DotnetBotImpl();
|
|
33
|
+
this.functionsBotImpl = new plugin_3.FunctionsHostedBotImpl();
|
|
28
34
|
}
|
|
29
35
|
activate(solutionSettings) {
|
|
30
36
|
const cap = solutionSettings.capabilities || [];
|
|
31
37
|
return cap.includes(question_1.BotOptionItem.id) || cap.includes(question_1.MessageExtensionItem.id);
|
|
32
38
|
}
|
|
33
39
|
getImpl(context) {
|
|
34
|
-
|
|
40
|
+
if (common_1.isVSProject(context.projectSettings)) {
|
|
41
|
+
return this.dotnetBotImpl;
|
|
42
|
+
}
|
|
43
|
+
else if (this.isFunctionsHostedBot(context)) {
|
|
44
|
+
return this.functionsBotImpl;
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
return this.teamsBotImpl;
|
|
48
|
+
}
|
|
35
49
|
}
|
|
36
50
|
async scaffold(context) {
|
|
37
51
|
logger_1.Logger.setLogger(context.logProvider);
|
|
38
|
-
const result = await
|
|
52
|
+
const result = await TeamsBot_1.runWithExceptionCatching(context, () => this.getImpl(context).scaffold(context), true, constants_1.LifecycleFuncNames.SCAFFOLD);
|
|
39
53
|
await progressBars_1.ProgressBarFactory.closeProgressBar(result.isOk(), constants_1.ProgressBarConstants.SCAFFOLD_TITLE);
|
|
40
54
|
return result;
|
|
41
55
|
}
|
|
42
56
|
async preProvision(context) {
|
|
43
57
|
logger_1.Logger.setLogger(context.logProvider);
|
|
44
|
-
return await
|
|
58
|
+
return await TeamsBot_1.runWithExceptionCatching(context, () => this.getImpl(context).preProvision(context), true, constants_1.LifecycleFuncNames.PRE_PROVISION);
|
|
45
59
|
}
|
|
46
60
|
async provision(context) {
|
|
47
61
|
logger_1.Logger.setLogger(context.logProvider);
|
|
48
|
-
const result = await
|
|
62
|
+
const result = await TeamsBot_1.runWithExceptionCatching(context, () => this.getImpl(context).provision(context), true, constants_1.LifecycleFuncNames.PROVISION);
|
|
49
63
|
await progressBars_1.ProgressBarFactory.closeProgressBar(result.isOk(), constants_1.ProgressBarConstants.PROVISION_TITLE);
|
|
50
64
|
return result;
|
|
51
65
|
}
|
|
52
66
|
async postProvision(context) {
|
|
53
67
|
logger_1.Logger.setLogger(context.logProvider);
|
|
54
|
-
return await
|
|
68
|
+
return await TeamsBot_1.runWithExceptionCatching(context, () => this.getImpl(context).postProvision(context), true, constants_1.LifecycleFuncNames.POST_PROVISION);
|
|
55
69
|
}
|
|
56
70
|
async updateArmTemplates(context) {
|
|
57
71
|
logger_1.Logger.setLogger(context.logProvider);
|
|
58
|
-
|
|
59
|
-
return result;
|
|
72
|
+
return await TeamsBot_1.runWithExceptionCatching(context, () => this.getImpl(context).updateArmTemplates(context), true, constants_1.LifecycleFuncNames.GENERATE_ARM_TEMPLATES);
|
|
60
73
|
}
|
|
61
74
|
async generateArmTemplates(context) {
|
|
62
75
|
logger_1.Logger.setLogger(context.logProvider);
|
|
63
|
-
|
|
64
|
-
return result;
|
|
76
|
+
return await TeamsBot_1.runWithExceptionCatching(context, () => this.getImpl(context).generateArmTemplates(context), true, constants_1.LifecycleFuncNames.GENERATE_ARM_TEMPLATES);
|
|
65
77
|
}
|
|
66
78
|
async preDeploy(context) {
|
|
67
79
|
logger_1.Logger.setLogger(context.logProvider);
|
|
68
|
-
return await
|
|
80
|
+
return await TeamsBot_1.runWithExceptionCatching(context, () => this.getImpl(context).preDeploy(context), true, constants_1.LifecycleFuncNames.PRE_DEPLOY);
|
|
69
81
|
}
|
|
70
82
|
async deploy(context) {
|
|
71
83
|
logger_1.Logger.setLogger(context.logProvider);
|
|
72
|
-
const result = await
|
|
84
|
+
const result = await TeamsBot_1.runWithExceptionCatching(context, () => this.getImpl(context).deploy(context), true, constants_1.LifecycleFuncNames.DEPLOY);
|
|
73
85
|
await progressBars_1.ProgressBarFactory.closeProgressBar(result.isOk(), constants_1.ProgressBarConstants.DEPLOY_TITLE);
|
|
74
86
|
return result;
|
|
75
87
|
}
|
|
76
88
|
async localDebug(context) {
|
|
77
89
|
logger_1.Logger.setLogger(context.logProvider);
|
|
78
|
-
const result = await
|
|
90
|
+
const result = await TeamsBot_1.runWithExceptionCatching(context, () => this.getImpl(context).localDebug(context), false, constants_1.LifecycleFuncNames.LOCAL_DEBUG);
|
|
79
91
|
await progressBars_1.ProgressBarFactory.closeProgressBar(result.isOk(), constants_1.ProgressBarConstants.LOCAL_DEBUG_TITLE);
|
|
80
92
|
return result;
|
|
81
93
|
}
|
|
82
94
|
async postLocalDebug(context) {
|
|
83
95
|
logger_1.Logger.setLogger(context.logProvider);
|
|
84
|
-
return await
|
|
96
|
+
return await TeamsBot_1.runWithExceptionCatching(context, () => this.getImpl(context).postLocalDebug(context), false, constants_1.LifecycleFuncNames.POST_LOCAL_DEBUG);
|
|
85
97
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
98
|
+
async getQuestions(stage, context) {
|
|
99
|
+
logger_1.Logger.setLogger(context.logProvider);
|
|
100
|
+
if (stage === teamsfx_api_1.Stage.create) {
|
|
101
|
+
return await TeamsBot_1.runWithExceptionCatching(context, async () => {
|
|
102
|
+
if (common_1.isBotNotificationEnabled()) {
|
|
103
|
+
const res = new teamsfx_api_1.QTreeNode({
|
|
104
|
+
type: "group",
|
|
105
|
+
});
|
|
106
|
+
res.addChild(new teamsfx_api_1.QTreeNode(question_2.createHostTypeTriggerQuestion()));
|
|
107
|
+
return teamsfx_api_1.ok(res);
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
return teamsfx_api_1.ok(undefined);
|
|
111
|
+
}
|
|
112
|
+
}, true, constants_1.LifecycleFuncNames.GET_QUETSIONS_FOR_SCAFFOLDING);
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
return teamsfx_api_1.ok(undefined);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
async getQuestionsForUserTask(func, context) {
|
|
119
|
+
logger_1.Logger.setLogger(context.logProvider);
|
|
120
|
+
return await TeamsBot_1.runWithExceptionCatching(context, async () => {
|
|
121
|
+
if (func.method === constants_1.CustomizedTasks.addCapability && common_1.isBotNotificationEnabled()) {
|
|
122
|
+
const res = new teamsfx_api_1.QTreeNode({
|
|
123
|
+
type: "group",
|
|
124
|
+
});
|
|
125
|
+
res.addChild(new teamsfx_api_1.QTreeNode(question_2.createHostTypeTriggerQuestion()));
|
|
126
|
+
return teamsfx_api_1.ok(res);
|
|
93
127
|
}
|
|
94
|
-
else
|
|
95
|
-
|
|
96
|
-
|
|
128
|
+
else {
|
|
129
|
+
return teamsfx_api_1.ok(undefined);
|
|
130
|
+
}
|
|
131
|
+
}, true, constants_1.LifecycleFuncNames.GET_QUETSIONS_FOR_USER_TASK);
|
|
132
|
+
}
|
|
133
|
+
static wrapError(e, context, sendTelemetry, name) {
|
|
134
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
135
|
+
let errorMsg = errors_1.isErrorWithMessage(e) ? e.message : "";
|
|
136
|
+
const innerError = errors_1.isPluginError(e) ? e.innerError : undefined;
|
|
137
|
+
if (innerError) {
|
|
138
|
+
errorMsg += localizeUtils_1.getLocalizedString("plugins.bot.DetailedError", errors_1.isErrorWithMessage(innerError) ? innerError.message : "");
|
|
139
|
+
if (errors_1.isHttpError(innerError)) {
|
|
140
|
+
if ((_b = (_a = innerError.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.errorMessage) {
|
|
141
|
+
errorMsg += localizeUtils_1.getLocalizedString("plugins.bot.DetailedErrorReason", (_d = (_c = innerError.response) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.errorMessage);
|
|
142
|
+
}
|
|
143
|
+
else if ((_g = (_f = (_e = innerError.response) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.error) === null || _g === void 0 ? void 0 : _g.message) {
|
|
144
|
+
// For errors return from Graph API
|
|
145
|
+
errorMsg += localizeUtils_1.getLocalizedString("plugins.bot.DetailedErrorReason", (_k = (_j = (_h = innerError.response) === null || _h === void 0 ? void 0 : _h.data) === null || _j === void 0 ? void 0 : _j.error) === null || _k === void 0 ? void 0 : _k.message);
|
|
146
|
+
}
|
|
97
147
|
}
|
|
98
148
|
}
|
|
99
149
|
logger_1.Logger.error(errorMsg);
|
|
@@ -103,7 +153,7 @@ let TeamsBot = class TeamsBot {
|
|
|
103
153
|
return res;
|
|
104
154
|
}
|
|
105
155
|
if (e instanceof errors_1.PluginError) {
|
|
106
|
-
const result = e.errorType === errors_1.ErrorType.
|
|
156
|
+
const result = e.errorType === errors_1.ErrorType.SYSTEM
|
|
107
157
|
? result_1.FxBotPluginResultFactory.SystemError(e.name, e.genMessage(), e.innerError)
|
|
108
158
|
: result_1.FxBotPluginResultFactory.UserError(e.name, e.genMessage(), e.innerError, e.helpLink);
|
|
109
159
|
sendTelemetry && telemetry_helper_1.telemetryHelper.sendResultEvent(context, name, result);
|
|
@@ -113,11 +163,11 @@ let TeamsBot = class TeamsBot {
|
|
|
113
163
|
// Unrecognized Exception.
|
|
114
164
|
const UnhandledErrorCode = "UnhandledError";
|
|
115
165
|
sendTelemetry &&
|
|
116
|
-
telemetry_helper_1.telemetryHelper.sendResultEvent(context, name, result_1.FxBotPluginResultFactory.SystemError(UnhandledErrorCode,
|
|
117
|
-
return result_1.FxBotPluginResultFactory.SystemError(UnhandledErrorCode,
|
|
166
|
+
telemetry_helper_1.telemetryHelper.sendResultEvent(context, name, result_1.FxBotPluginResultFactory.SystemError(UnhandledErrorCode, localizeUtils_1.getLocalizedString("plugins.bot.UnhandledError", errorMsg), errors_1.isPluginError(e) ? e.innerError : undefined));
|
|
167
|
+
return result_1.FxBotPluginResultFactory.SystemError(UnhandledErrorCode, errorMsg, innerError);
|
|
118
168
|
}
|
|
119
169
|
}
|
|
120
|
-
async runWithExceptionCatching(context, fn, sendTelemetry, name) {
|
|
170
|
+
static async runWithExceptionCatching(context, fn, sendTelemetry, name) {
|
|
121
171
|
try {
|
|
122
172
|
sendTelemetry && telemetry_helper_1.telemetryHelper.sendStartEvent(context, name);
|
|
123
173
|
const res = await fn();
|
|
@@ -126,11 +176,14 @@ let TeamsBot = class TeamsBot {
|
|
|
126
176
|
}
|
|
127
177
|
catch (e) {
|
|
128
178
|
await progressBars_1.ProgressBarFactory.closeProgressBar(false); // Close all progress bars.
|
|
129
|
-
return
|
|
179
|
+
return TeamsBot_1.wrapError(e, context, sendTelemetry, name);
|
|
130
180
|
}
|
|
131
181
|
}
|
|
182
|
+
isFunctionsHostedBot(context) {
|
|
183
|
+
return scaffoldConfig_1.ScaffoldConfig.getBotHostType(context) === common_1.BotHostTypes.AzureFunctions;
|
|
184
|
+
}
|
|
132
185
|
};
|
|
133
|
-
TeamsBot = tslib_1.__decorate([
|
|
186
|
+
TeamsBot = TeamsBot_1 = tslib_1.__decorate([
|
|
134
187
|
typedi_1.Service(ResourcePluginContainer_1.ResourcePlugins.BotPlugin)
|
|
135
188
|
], TeamsBot);
|
|
136
189
|
exports.TeamsBot = TeamsBot;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/plugins/resource/bot/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/plugins/resource/bot/index.ts"],"names":[],"mappings":";;;;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,wDAagC;AAEhC,qCAA+E;AAC/E,qCAAwC;AACxC,iDAAoD;AACpD,2CAAwF;AACxF,qCAOkB;AAClB,qCAAkC;AAClC,+DAA2D;AAC3D,kEAA0F;AAC1F,mCAAiC;AACjC,gGAAqF;AACrF,gBAAc;AACd,gBAAc;AACd,4CAAgD;AAEhD,4CAAsF;AACtF,wDAAqE;AACrE,6DAA0D;AAC1D,yCAA2D;AAC3D,iEAAmE;AAGnE,IAAa,QAAQ,gBAArB,MAAa,QAAQ;IAArB;QACE,SAAI,GAAG,iBAAiB,CAAC;QACzB,gBAAW,GAAG,KAAK,CAAC;QAKb,iBAAY,GAAiB,IAAI,qBAAY,EAAE,CAAC;QAChD,kBAAa,GAAkB,IAAI,sBAAa,EAAE,CAAC;QACnD,qBAAgB,GAA2B,IAAI,+BAAsB,EAAE,CAAC;IAgRjF,CAAC;IAtRC,QAAQ,CAAC,gBAAuC;QAC9C,MAAM,GAAG,GAAG,gBAAgB,CAAC,YAAY,IAAI,EAAE,CAAC;QAChD,OAAO,GAAG,CAAC,QAAQ,CAAC,wBAAa,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,+BAAoB,CAAC,EAAE,CAAC,CAAC;IACjF,CAAC;IAKM,OAA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,CAAC;SAC5E;IACH,CAAC;IAEO,MAAM,CAAC,KAAK,CAAC,wBAAwB,CAC3C,OAAsB,EACtB,EAA2B,EAC3B,aAAsB,EACtB,IAAY;QAEZ,IAAI;YACF,aAAa,IAAI,kCAAe,CAAC,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;YAC/D,MAAM,GAAG,GAAa,MAAM,EAAE,EAAE,CAAC;YACjC,aAAa,IAAI,kCAAe,CAAC,eAAe,CAAC,OAAO,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;YACrE,OAAO,GAAG,CAAC;SACZ;QAAC,OAAO,CAAC,EAAE;YACV,MAAM,iCAAkB,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,2BAA2B;YAC7E,OAAO,UAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,CAAC,CAAC;SAC5D;IACH,CAAC;IAEO,oBAAoB,CAAC,OAAsB;QACjD,OAAO,+BAAc,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,qBAAY,CAAC,cAAc,CAAC;IAChF,CAAC;CACF,CAAA;AAzRY,QAAQ;IADpB,gBAAO,CAAC,yCAAe,CAAC,SAAS,CAAC;GACtB,QAAQ,CAyRpB;AAzRY,4BAAQ;AA2RrB,kBAAe,IAAI,QAAQ,EAAE,CAAC"}
|
|
@@ -4,8 +4,11 @@ import { NameValuePair } from "@azure/arm-appservice/esm/models";
|
|
|
4
4
|
import { ScaffoldAction } from "../../../common/template-utils/templatesActions";
|
|
5
5
|
import { TeamsBotConfig } from "./configs/teamsBotConfig";
|
|
6
6
|
export declare class LanguageStrategy {
|
|
7
|
-
static
|
|
7
|
+
static scaffoldProject(group_name: string, config: TeamsBotConfig, actions?: ScaffoldAction[]): Promise<void>;
|
|
8
|
+
static scaffoldTriggers(group_name: string, config: TeamsBotConfig, actions?: ScaffoldAction[]): Promise<void>;
|
|
9
|
+
static getTemplateProject(group_name: string, scenario: string, dst: string, config: TeamsBotConfig, actions?: ScaffoldAction[]): Promise<void>;
|
|
8
10
|
static getSiteEnvelope(language: ProgrammingLanguage, appServicePlanName: string, location: string, appSettings?: NameValuePair[]): appService.WebSiteManagementModels.Site;
|
|
9
11
|
static localBuild(programmingLanguage: ProgrammingLanguage, packDir: string, unPackFlag?: boolean): Promise<void>;
|
|
12
|
+
private static resolveScenarioFromTeamsBotConfig;
|
|
10
13
|
}
|
|
11
14
|
//# sourceMappingURL=languageStrategy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"languageStrategy.d.ts","sourceRoot":"","sources":["../../../../src/plugins/resource/bot/languageStrategy.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"languageStrategy.d.ts","sourceRoot":"","sources":["../../../../src/plugins/resource/bot/languageStrategy.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAUlE,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAIjE,OAAO,EAEL,cAAc,EAIf,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAK1D,qBAAa,gBAAgB;WACP,eAAe,CACjC,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,cAAc,EACtB,OAAO,GAAE,cAAc,EAAqB,GAC3C,OAAO,CAAC,IAAI,CAAC;WAUI,gBAAgB,CAClC,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,cAAc,EACtB,OAAO,GAAE,cAAc,EAAqB,GAC3C,OAAO,CAAC,IAAI,CAAC;WAUI,kBAAkB,CACpC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,cAAc,EACtB,OAAO,GAAE,cAAc,EAAqB,GAC3C,OAAO,CAAC,IAAI,CAAC;WAiCF,eAAe,CAC3B,QAAQ,EAAE,mBAAmB,EAC7B,kBAAkB,EAAE,MAAM,EAC1B,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,aAAa,EAAE,GAC5B,UAAU,CAAC,uBAAuB,CAAC,IAAI;WA8BtB,UAAU,CAC5B,mBAAmB,EAAE,mBAAmB,EACxC,OAAO,EAAE,MAAM,EACf,UAAU,CAAC,EAAE,OAAO,GACnB,OAAO,CAAC,IAAI,CAAC;IAqBhB,OAAO,CAAC,MAAM,CAAC,iCAAiC;CAajD"}
|
|
@@ -12,14 +12,28 @@ const errors_1 = require("./errors");
|
|
|
12
12
|
const logger_1 = require("./logger");
|
|
13
13
|
const messages_1 = require("./resources/messages");
|
|
14
14
|
const templatesActions_1 = require("../../../common/template-utils/templatesActions");
|
|
15
|
+
const pluginActRoles_1 = require("./enums/pluginActRoles");
|
|
16
|
+
const path = tslib_1.__importStar(require("path"));
|
|
15
17
|
class LanguageStrategy {
|
|
16
|
-
static async
|
|
18
|
+
static async scaffoldProject(group_name, config, actions = templatesActions_1.defaultActionSeq) {
|
|
19
|
+
await this.getTemplateProject(group_name, this.resolveScenarioFromTeamsBotConfig(config), config.scaffold.workingDir, config, actions);
|
|
20
|
+
}
|
|
21
|
+
static async scaffoldTriggers(group_name, config, actions = templatesActions_1.defaultActionSeq) {
|
|
22
|
+
const scenarios = config.scaffold.triggers.map((trigger) => {
|
|
23
|
+
return constants_1.TriggerTemplateScenarioMappings[trigger];
|
|
24
|
+
});
|
|
25
|
+
const projectRoot = config.scaffold.workingDir;
|
|
26
|
+
for (const scenario of scenarios) {
|
|
27
|
+
await this.getTemplateProject(group_name, scenario, path.join(projectRoot), config, actions);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
static async getTemplateProject(group_name, scenario, dst, config, actions = templatesActions_1.defaultActionSeq) {
|
|
17
31
|
await templatesActions_1.scaffoldFromTemplates({
|
|
18
32
|
group: group_name,
|
|
19
33
|
lang: utils.convertToLangKey(config.scaffold.programmingLanguage),
|
|
20
|
-
scenario:
|
|
34
|
+
scenario: scenario,
|
|
21
35
|
templatesFolderName: constants_1.TemplateProjectsConstants.TEMPLATE_FOLDER_NAME,
|
|
22
|
-
dst:
|
|
36
|
+
dst: dst,
|
|
23
37
|
onActionEnd: async (action, context) => {
|
|
24
38
|
var _a;
|
|
25
39
|
if (action.name === templatesActions_1.ScaffoldActionName.FetchTemplatesUrlWithTag) {
|
|
@@ -89,6 +103,19 @@ class LanguageStrategy {
|
|
|
89
103
|
}
|
|
90
104
|
}
|
|
91
105
|
}
|
|
106
|
+
static resolveScenarioFromTeamsBotConfig(config) {
|
|
107
|
+
if (config.actRoles.includes(pluginActRoles_1.PluginActRoles.Notification)) {
|
|
108
|
+
if (config.scaffold.hostType === strings_1.HostTypes.APP_SERVICE) {
|
|
109
|
+
return constants_1.TemplateProjectsScenarios.NOTIFICATION_SCENARIO_NAME;
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
return constants_1.TemplateProjectsScenarios.NOTIFICATION_FUNCTION_BASE_SCENARIO_NAME;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
return constants_1.TemplateProjectsScenarios.DEFAULT_SCENARIO_NAME;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
92
119
|
}
|
|
93
120
|
exports.LanguageStrategy = LanguageStrategy;
|
|
94
121
|
//# sourceMappingURL=languageStrategy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"languageStrategy.js","sourceRoot":"","sources":["../../../../src/plugins/resource/bot/languageStrategy.ts"],"names":[],"mappings":";;;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,8DAAwC;AACxC,qEAAkE;AAClE,
|
|
1
|
+
{"version":3,"file":"languageStrategy.js","sourceRoot":"","sources":["../../../../src/plugins/resource/bot/languageStrategy.ts"],"names":[],"mappings":";;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C,MAAsB;QAEtB,IAAI,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,+BAAc,CAAC,YAAY,CAAC,EAAE;YACzD,IAAI,MAAM,CAAC,QAAQ,CAAC,QAAQ,KAAK,mBAAS,CAAC,WAAW,EAAE;gBACtD,OAAO,qCAAyB,CAAC,0BAA0B,CAAC;aAC7D;iBAAM;gBACL,OAAO,qCAAyB,CAAC,wCAAwC,CAAC;aAC3E;SACF;aAAM;YACL,OAAO,qCAAyB,CAAC,qBAAqB,CAAC;SACxD;IACH,CAAC;CACF;AA7ID,4CA6IC"}
|
|
@@ -4,23 +4,20 @@ import { TeamsBotConfig } from "./configs/teamsBotConfig";
|
|
|
4
4
|
import { PluginImpl } from "./interface";
|
|
5
5
|
export declare class TeamsBotImpl implements PluginImpl {
|
|
6
6
|
config: TeamsBotConfig;
|
|
7
|
-
|
|
8
|
-
private
|
|
7
|
+
protected ctx?: PluginContext;
|
|
8
|
+
private getAzureAccountCredential;
|
|
9
9
|
scaffold(context: PluginContext): Promise<FxResult>;
|
|
10
10
|
preProvision(context: PluginContext): Promise<FxResult>;
|
|
11
11
|
provision(context: PluginContext): Promise<FxResult>;
|
|
12
12
|
updateArmTemplates(ctx: PluginContext): Promise<FxResult>;
|
|
13
13
|
generateArmTemplates(ctx: PluginContext): Promise<FxResult>;
|
|
14
|
-
private provisionWebApp;
|
|
15
14
|
postProvision(context: PluginContext): Promise<FxResult>;
|
|
16
15
|
preDeploy(context: PluginContext): Promise<FxResult>;
|
|
17
16
|
deploy(context: PluginContext): Promise<FxResult>;
|
|
18
17
|
localDebug(context: PluginContext): Promise<FxResult>;
|
|
19
18
|
postLocalDebug(context: PluginContext): Promise<FxResult>;
|
|
20
19
|
private updateMessageEndpointOnAppStudio;
|
|
21
|
-
private updateMessageEndpointOnAzure;
|
|
22
20
|
private createNewBotRegistrationOnAppStudio;
|
|
23
|
-
private
|
|
24
|
-
private provisionBotServiceOnAzure;
|
|
21
|
+
private registerBotApp;
|
|
25
22
|
}
|
|
26
23
|
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/resource/bot/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/resource/bot/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAMvD,OAAO,EAAE,QAAQ,EAA6C,MAAM,UAAU,CAAC;AA4B/E,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AA0B1D,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzC,qBAAa,YAAa,YAAW,UAAU;IAEtC,MAAM,EAAE,cAAc,CAAwB;IACrD,SAAS,CAAC,GAAG,CAAC,EAAE,aAAa,CAAC;YAEhB,yBAAyB;IAS1B,QAAQ,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IA0CnD,YAAY,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAgBvD,SAAS,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAmBpD,kBAAkB,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IA0BzD,oBAAoB,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAiD3D,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIxD,SAAS,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IA4BpD,MAAM,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAyFjD,UAAU,CAAC,OAAO,EAA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