@microsoft/teamsfx-core 0.7.0 → 0.7.1-alpha.5e8f6dea.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 +5 -0
- package/build/common/constants.d.ts.map +1 -1
- package/build/common/constants.js +6 -1
- package/build/common/constants.js.map +1 -1
- package/build/common/fileUtils.d.ts.map +1 -1
- package/build/common/fileUtils.js +12 -6
- package/build/common/fileUtils.js.map +1 -1
- package/build/common/localSettingsProvider.d.ts +4 -2
- package/build/common/localSettingsProvider.d.ts.map +1 -1
- package/build/common/localSettingsProvider.js +32 -1
- package/build/common/localSettingsProvider.js.map +1 -1
- package/build/common/templates.d.ts.map +1 -1
- package/build/common/templates.js +9 -9
- package/build/common/templates.js.map +1 -1
- package/build/common/templatesActions.d.ts +39 -0
- package/build/common/templatesActions.d.ts.map +1 -0
- package/build/common/templatesActions.js +120 -0
- package/build/common/templatesActions.js.map +1 -0
- package/build/common/templatesUtils.d.ts +14 -0
- package/build/common/templatesUtils.d.ts.map +1 -0
- package/build/common/templatesUtils.js +94 -0
- package/build/common/templatesUtils.js.map +1 -0
- package/build/common/tools.d.ts +12 -2
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +52 -7
- package/build/common/tools.js.map +1 -1
- package/build/core/SolutionPluginContainer.d.ts +15 -0
- package/build/core/SolutionPluginContainer.d.ts.map +1 -0
- package/build/core/SolutionPluginContainer.js +54 -0
- package/build/core/SolutionPluginContainer.js.map +1 -0
- package/build/core/callback.d.ts +9 -0
- package/build/core/callback.d.ts.map +1 -0
- package/build/core/callback.js +33 -0
- package/build/core/callback.js.map +1 -0
- package/build/core/environment.d.ts +7 -3
- package/build/core/environment.d.ts.map +1 -1
- package/build/core/environment.js +68 -13
- package/build/core/environment.js.map +1 -1
- package/build/core/error.d.ts +19 -2
- package/build/core/error.d.ts.map +1 -1
- package/build/core/error.js +72 -34
- package/build/core/error.js.map +1 -1
- package/build/core/index.d.ts +24 -12
- package/build/core/index.d.ts.map +1 -1
- package/build/core/index.js +604 -309
- package/build/core/index.js.map +1 -1
- package/build/core/middleware/concurrentLocker.d.ts.map +1 -1
- package/build/core/middleware/concurrentLocker.js +13 -6
- package/build/core/middleware/concurrentLocker.js.map +1 -1
- package/build/core/middleware/contextInjector.d.ts +3 -0
- package/build/core/middleware/contextInjector.d.ts.map +1 -0
- package/build/core/middleware/{contextInjecter.js → contextInjector.js} +4 -4
- package/build/core/middleware/contextInjector.js.map +1 -0
- package/build/core/middleware/envInfoLoader.d.ts +8 -4
- package/build/core/middleware/envInfoLoader.d.ts.map +1 -1
- package/build/core/middleware/envInfoLoader.js +77 -40
- package/build/core/middleware/envInfoLoader.js.map +1 -1
- package/build/core/middleware/envInfoWriter.d.ts +1 -1
- package/build/core/middleware/envInfoWriter.d.ts.map +1 -1
- package/build/core/middleware/envInfoWriter.js +30 -13
- package/build/core/middleware/envInfoWriter.js.map +1 -1
- package/build/core/middleware/localSettingsLoader.d.ts.map +1 -1
- package/build/core/middleware/localSettingsLoader.js +18 -8
- 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 +14 -5
- package/build/core/middleware/localSettingsWriter.js.map +1 -1
- package/build/core/middleware/projectMigrator.d.ts +5 -0
- package/build/core/middleware/projectMigrator.d.ts.map +1 -0
- package/build/core/middleware/projectMigrator.js +382 -0
- package/build/core/middleware/projectMigrator.js.map +1 -0
- package/build/core/middleware/projectSettingsLoader.d.ts +2 -2
- package/build/core/middleware/projectSettingsLoader.d.ts.map +1 -1
- package/build/core/middleware/projectSettingsLoader.js +13 -9
- 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 -7
- package/build/core/middleware/projectSettingsWriter.js.map +1 -1
- package/build/core/middleware/projectUpgrader.d.ts.map +1 -1
- package/build/core/middleware/projectUpgrader.js +15 -7
- package/build/core/middleware/projectUpgrader.js.map +1 -1
- package/build/core/middleware/questionModel.d.ts.map +1 -1
- package/build/core/middleware/questionModel.js +25 -17
- package/build/core/middleware/questionModel.js.map +1 -1
- package/build/core/middleware/solutionLoader.d.ts +1 -2
- package/build/core/middleware/solutionLoader.d.ts.map +1 -1
- package/build/core/middleware/solutionLoader.js +24 -4
- package/build/core/middleware/solutionLoader.js.map +1 -1
- package/build/core/question.d.ts +2 -0
- package/build/core/question.d.ts.map +1 -1
- package/build/core/question.js +12 -1
- package/build/core/question.js.map +1 -1
- package/build/core/tools.d.ts +2 -2
- package/build/core/tools.d.ts.map +1 -1
- package/build/core/tools.js +15 -5
- package/build/core/tools.js.map +1 -1
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -0
- package/build/index.js.map +1 -1
- package/build/plugins/resource/aad/appStudio.js +1 -1
- package/build/plugins/resource/aad/appStudio.js.map +1 -1
- package/build/plugins/resource/aad/errors.d.ts.map +1 -1
- package/build/plugins/resource/aad/errors.js +1 -0
- 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 +2 -1
- package/build/plugins/resource/aad/index.js.map +1 -1
- package/build/plugins/resource/aad/utils/configs.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/configs.js +9 -10
- package/build/plugins/resource/aad/utils/configs.js.map +1 -1
- package/build/plugins/resource/aad/utils/telemetry.js +1 -1
- package/build/plugins/resource/aad/utils/telemetry.js.map +1 -1
- package/build/plugins/resource/aad/v2/index.d.ts +7 -7
- package/build/plugins/resource/aad/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/aad/v2/index.js +6 -6
- package/build/plugins/resource/aad/v2/index.js.map +1 -1
- package/build/plugins/resource/apim/config.d.ts +1 -0
- package/build/plugins/resource/apim/config.d.ts.map +1 -1
- package/build/plugins/resource/apim/config.js.map +1 -1
- package/build/plugins/resource/apim/constants.d.ts +3 -0
- package/build/plugins/resource/apim/constants.d.ts.map +1 -1
- package/build/plugins/resource/apim/constants.js +5 -1
- package/build/plugins/resource/apim/constants.js.map +1 -1
- package/build/plugins/resource/apim/factory.d.ts +2 -1
- package/build/plugins/resource/apim/factory.d.ts.map +1 -1
- package/build/plugins/resource/apim/factory.js +19 -8
- package/build/plugins/resource/apim/factory.js.map +1 -1
- package/build/plugins/resource/apim/index.d.ts +2 -0
- package/build/plugins/resource/apim/index.d.ts.map +1 -1
- package/build/plugins/resource/apim/index.js +15 -8
- package/build/plugins/resource/apim/index.js.map +1 -1
- package/build/plugins/resource/apim/questions/vscodeQuestion.js +1 -1
- package/build/plugins/resource/apim/questions/vscodeQuestion.js.map +1 -1
- package/build/plugins/resource/apim/v2/index.d.ts +9 -11
- package/build/plugins/resource/apim/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/apim/v2/index.js +25 -29
- package/build/plugins/resource/apim/v2/index.js.map +1 -1
- package/build/plugins/resource/appstudio/appStudio.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/appStudio.js +9 -8
- package/build/plugins/resource/appstudio/appStudio.js.map +1 -1
- package/build/plugins/resource/appstudio/constants.d.ts +6 -2
- package/build/plugins/resource/appstudio/constants.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/constants.js +124 -13
- package/build/plugins/resource/appstudio/constants.js.map +1 -1
- package/build/plugins/resource/appstudio/errors.d.ts +4 -0
- package/build/plugins/resource/appstudio/errors.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/errors.js +8 -0
- package/build/plugins/resource/appstudio/errors.js.map +1 -1
- package/build/plugins/resource/appstudio/index.d.ts +1 -0
- package/build/plugins/resource/appstudio/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/index.js +23 -5
- package/build/plugins/resource/appstudio/index.js.map +1 -1
- package/build/plugins/resource/appstudio/interfaces/IAppDefinition.d.ts +1 -0
- package/build/plugins/resource/appstudio/interfaces/IAppDefinition.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/plugin.d.ts +2 -1
- package/build/plugins/resource/appstudio/plugin.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/plugin.js +197 -68
- package/build/plugins/resource/appstudio/plugin.js.map +1 -1
- package/build/plugins/resource/appstudio/utils/telemetry.d.ts +2 -1
- package/build/plugins/resource/appstudio/utils/telemetry.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/utils/telemetry.js +17 -12
- package/build/plugins/resource/appstudio/utils/telemetry.js.map +1 -1
- package/build/plugins/resource/appstudio/v2/index.d.ts +10 -13
- package/build/plugins/resource/appstudio/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/v2/index.js +25 -20
- package/build/plugins/resource/appstudio/v2/index.js.map +1 -1
- package/build/plugins/resource/bot/appStudio/appStudio.js +2 -2
- package/build/plugins/resource/bot/appStudio/appStudio.js.map +1 -1
- package/build/plugins/resource/bot/configs/localDebugConfig.d.ts +1 -1
- package/build/plugins/resource/bot/configs/localDebugConfig.d.ts.map +1 -1
- package/build/plugins/resource/bot/configs/localDebugConfig.js +3 -3
- package/build/plugins/resource/bot/configs/localDebugConfig.js.map +1 -1
- package/build/plugins/resource/bot/configs/provisionConfig.js +21 -20
- package/build/plugins/resource/bot/configs/provisionConfig.js.map +1 -1
- package/build/plugins/resource/bot/configs/scaffoldConfig.d.ts +1 -3
- package/build/plugins/resource/bot/configs/scaffoldConfig.d.ts.map +1 -1
- package/build/plugins/resource/bot/configs/scaffoldConfig.js +9 -10
- 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 +5 -5
- package/build/plugins/resource/bot/configs/teamsBotConfig.js.map +1 -1
- package/build/plugins/resource/bot/constants.d.ts +0 -2
- package/build/plugins/resource/bot/constants.d.ts.map +1 -1
- package/build/plugins/resource/bot/constants.js +2 -14
- package/build/plugins/resource/bot/constants.js.map +1 -1
- package/build/plugins/resource/bot/index.d.ts +2 -3
- package/build/plugins/resource/bot/index.d.ts.map +1 -1
- package/build/plugins/resource/bot/index.js +1 -7
- package/build/plugins/resource/bot/index.js.map +1 -1
- package/build/plugins/resource/bot/plugin.d.ts +1 -4
- package/build/plugins/resource/bot/plugin.d.ts.map +1 -1
- package/build/plugins/resource/bot/plugin.js +21 -80
- package/build/plugins/resource/bot/plugin.js.map +1 -1
- package/build/plugins/resource/bot/resources/messages.d.ts +0 -1
- package/build/plugins/resource/bot/resources/messages.d.ts.map +1 -1
- package/build/plugins/resource/bot/resources/messages.js +0 -1
- package/build/plugins/resource/bot/resources/messages.js.map +1 -1
- package/build/plugins/resource/bot/resources/strings.d.ts +1 -1
- package/build/plugins/resource/bot/resources/strings.d.ts.map +1 -1
- package/build/plugins/resource/bot/resources/strings.js +1 -1
- package/build/plugins/resource/bot/resources/strings.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 +1 -1
- package/build/plugins/resource/bot/utils/telemetry-helper.js.map +1 -1
- package/build/plugins/resource/bot/v2/index.d.ts +9 -13
- package/build/plugins/resource/bot/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/bot/v2/index.js +7 -7
- package/build/plugins/resource/bot/v2/index.js.map +1 -1
- package/build/plugins/resource/frontend/configs.d.ts +7 -2
- package/build/plugins/resource/frontend/configs.d.ts.map +1 -1
- package/build/plugins/resource/frontend/configs.js +49 -29
- package/build/plugins/resource/frontend/configs.js.map +1 -1
- package/build/plugins/resource/frontend/constants.d.ts +3 -2
- package/build/plugins/resource/frontend/constants.d.ts.map +1 -1
- package/build/plugins/resource/frontend/constants.js +4 -3
- package/build/plugins/resource/frontend/constants.js.map +1 -1
- package/build/plugins/resource/frontend/index.d.ts +1 -1
- package/build/plugins/resource/frontend/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/index.js +6 -5
- package/build/plugins/resource/frontend/index.js.map +1 -1
- package/build/plugins/resource/frontend/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/frontend/ops/deploy.js +1 -0
- package/build/plugins/resource/frontend/ops/deploy.js.map +1 -1
- package/build/plugins/resource/frontend/plugin.d.ts +4 -1
- package/build/plugins/resource/frontend/plugin.d.ts.map +1 -1
- package/build/plugins/resource/frontend/plugin.js +32 -32
- package/build/plugins/resource/frontend/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/resources/errors.d.ts +1 -1
- package/build/plugins/resource/frontend/resources/errors.d.ts.map +1 -1
- package/build/plugins/resource/frontend/resources/errors.js +5 -2
- package/build/plugins/resource/frontend/resources/errors.js.map +1 -1
- package/build/plugins/resource/frontend/utils/telemetry-helper.js +1 -1
- package/build/plugins/resource/frontend/utils/telemetry-helper.js.map +1 -1
- package/build/plugins/resource/frontend/v2/index.d.ts +6 -9
- package/build/plugins/resource/frontend/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/v2/index.js +5 -2
- package/build/plugins/resource/frontend/v2/index.js.map +1 -1
- package/build/plugins/resource/function/constants.d.ts +2 -6
- package/build/plugins/resource/function/constants.d.ts.map +1 -1
- package/build/plugins/resource/function/constants.js +3 -8
- package/build/plugins/resource/function/constants.js.map +1 -1
- package/build/plugins/resource/function/enums.d.ts +2 -0
- package/build/plugins/resource/function/enums.d.ts.map +1 -1
- package/build/plugins/resource/function/enums.js +2 -0
- package/build/plugins/resource/function/enums.js.map +1 -1
- package/build/plugins/resource/function/index.d.ts +1 -0
- package/build/plugins/resource/function/index.d.ts.map +1 -1
- package/build/plugins/resource/function/index.js +1 -0
- package/build/plugins/resource/function/index.js.map +1 -1
- package/build/plugins/resource/function/ops/deploy.d.ts +1 -1
- package/build/plugins/resource/function/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/function/ops/deploy.js +13 -5
- package/build/plugins/resource/function/ops/deploy.js.map +1 -1
- package/build/plugins/resource/function/ops/scaffold.d.ts +4 -7
- package/build/plugins/resource/function/ops/scaffold.d.ts.map +1 -1
- package/build/plugins/resource/function/ops/scaffold.js +42 -40
- package/build/plugins/resource/function/ops/scaffold.js.map +1 -1
- package/build/plugins/resource/function/plugin.d.ts +4 -0
- package/build/plugins/resource/function/plugin.d.ts.map +1 -1
- package/build/plugins/resource/function/plugin.js +57 -41
- package/build/plugins/resource/function/plugin.js.map +1 -1
- package/build/plugins/resource/function/resources/errors.d.ts +2 -5
- package/build/plugins/resource/function/resources/errors.d.ts.map +1 -1
- package/build/plugins/resource/function/resources/errors.js +5 -13
- package/build/plugins/resource/function/resources/errors.js.map +1 -1
- package/build/plugins/resource/function/resources/message.d.ts +1 -0
- package/build/plugins/resource/function/resources/message.d.ts.map +1 -1
- package/build/plugins/resource/function/resources/message.js +1 -0
- package/build/plugins/resource/function/resources/message.js.map +1 -1
- package/build/plugins/resource/function/utils/telemetry-helper.js +1 -1
- package/build/plugins/resource/function/utils/telemetry-helper.js.map +1 -1
- package/build/plugins/resource/function/v2/index.d.ts +8 -11
- package/build/plugins/resource/function/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/function/v2/index.js +9 -17
- package/build/plugins/resource/function/v2/index.js.map +1 -1
- package/build/plugins/resource/identity/index.d.ts +1 -0
- package/build/plugins/resource/identity/index.d.ts.map +1 -1
- package/build/plugins/resource/identity/index.js +7 -9
- package/build/plugins/resource/identity/index.js.map +1 -1
- package/build/plugins/resource/identity/utils/contextUtils.js +1 -1
- package/build/plugins/resource/identity/utils/contextUtils.js.map +1 -1
- package/build/plugins/resource/identity/utils/telemetryUtil.d.ts.map +1 -1
- package/build/plugins/resource/identity/utils/telemetryUtil.js +1 -1
- package/build/plugins/resource/identity/utils/telemetryUtil.js.map +1 -1
- package/build/plugins/resource/identity/v2/index.d.ts +3 -3
- package/build/plugins/resource/identity/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/identity/v2/index.js +2 -2
- package/build/plugins/resource/identity/v2/index.js.map +1 -1
- package/build/plugins/resource/localdebug/constants.d.ts +4 -0
- package/build/plugins/resource/localdebug/constants.d.ts.map +1 -1
- package/build/plugins/resource/localdebug/constants.js +6 -1
- package/build/plugins/resource/localdebug/constants.js.map +1 -1
- package/build/plugins/resource/localdebug/index.d.ts +1 -0
- package/build/plugins/resource/localdebug/index.d.ts.map +1 -1
- package/build/plugins/resource/localdebug/index.js +12 -6
- package/build/plugins/resource/localdebug/index.js.map +1 -1
- package/build/plugins/resource/localdebug/launch.d.ts +1 -0
- package/build/plugins/resource/localdebug/launch.d.ts.map +1 -1
- package/build/plugins/resource/localdebug/launch.js +66 -1
- package/build/plugins/resource/localdebug/launch.js.map +1 -1
- package/build/plugins/resource/localdebug/legacyPlugin.js +4 -4
- package/build/plugins/resource/localdebug/legacyPlugin.js.map +1 -1
- package/build/plugins/resource/localdebug/tasks.d.ts.map +1 -1
- package/build/plugins/resource/localdebug/tasks.js +12 -2
- package/build/plugins/resource/localdebug/tasks.js.map +1 -1
- package/build/plugins/resource/localdebug/util/telemetry.js +1 -1
- package/build/plugins/resource/localdebug/util/telemetry.js.map +1 -1
- package/build/plugins/resource/localdebug/v2/index.d.ts +6 -8
- package/build/plugins/resource/localdebug/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/localdebug/v2/index.js +2 -2
- package/build/plugins/resource/localdebug/v2/index.js.map +1 -1
- package/build/plugins/resource/simpleauth/index.d.ts +1 -0
- package/build/plugins/resource/simpleauth/index.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/index.js +1 -0
- 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 +1 -6
- package/build/plugins/resource/simpleauth/plugin.js.map +1 -1
- package/build/plugins/resource/simpleauth/utils/common.js +1 -1
- package/build/plugins/resource/simpleauth/utils/common.js.map +1 -1
- package/build/plugins/resource/simpleauth/utils/telemetry.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/utils/telemetry.js +2 -1
- package/build/plugins/resource/simpleauth/utils/telemetry.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.map +1 -1
- package/build/plugins/resource/spfx/index.d.ts +1 -0
- package/build/plugins/resource/spfx/index.d.ts.map +1 -1
- package/build/plugins/resource/spfx/index.js +1 -0
- package/build/plugins/resource/spfx/index.js.map +1 -1
- package/build/plugins/resource/spfx/v2/index.d.ts +4 -8
- package/build/plugins/resource/spfx/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/spfx/v2/index.js.map +1 -1
- package/build/plugins/resource/sql/config.d.ts +0 -1
- package/build/plugins/resource/sql/config.d.ts.map +1 -1
- package/build/plugins/resource/sql/config.js +0 -1
- package/build/plugins/resource/sql/config.js.map +1 -1
- package/build/plugins/resource/sql/errors.d.ts +4 -0
- package/build/plugins/resource/sql/errors.d.ts.map +1 -1
- package/build/plugins/resource/sql/errors.js +4 -0
- package/build/plugins/resource/sql/errors.js.map +1 -1
- package/build/plugins/resource/sql/index.d.ts +1 -0
- package/build/plugins/resource/sql/index.d.ts.map +1 -1
- package/build/plugins/resource/sql/index.js +1 -0
- package/build/plugins/resource/sql/index.js.map +1 -1
- package/build/plugins/resource/sql/plugin.d.ts +4 -0
- package/build/plugins/resource/sql/plugin.d.ts.map +1 -1
- package/build/plugins/resource/sql/plugin.js +68 -69
- package/build/plugins/resource/sql/plugin.js.map +1 -1
- package/build/plugins/resource/sql/utils/contextUtils.js +1 -1
- package/build/plugins/resource/sql/utils/contextUtils.js.map +1 -1
- package/build/plugins/resource/sql/utils/telemetryUtils.d.ts.map +1 -1
- package/build/plugins/resource/sql/utils/telemetryUtils.js +2 -1
- package/build/plugins/resource/sql/utils/telemetryUtils.js.map +1 -1
- package/build/plugins/resource/sql/v2/index.d.ts +5 -4
- package/build/plugins/resource/sql/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/sql/v2/index.js +18 -16
- package/build/plugins/resource/sql/v2/index.js.map +1 -1
- package/build/plugins/resource/utils4v2.d.ts +16 -14
- package/build/plugins/resource/utils4v2.d.ts.map +1 -1
- package/build/plugins/resource/utils4v2.js +127 -92
- package/build/plugins/resource/utils4v2.js.map +1 -1
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.js +4 -2
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.js.map +1 -1
- package/build/plugins/solution/fx-solution/arm.d.ts +11 -0
- package/build/plugins/solution/fx-solution/arm.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/arm.js +118 -40
- package/build/plugins/solution/fx-solution/arm.js.map +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.d.ts +2 -2
- package/build/plugins/solution/fx-solution/commonQuestions.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.js +120 -47
- package/build/plugins/solution/fx-solution/commonQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/constants.d.ts +16 -2
- package/build/plugins/solution/fx-solution/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/constants.js +15 -1
- package/build/plugins/solution/fx-solution/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/executor.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/executor.js +39 -21
- package/build/plugins/solution/fx-solution/executor.js.map +1 -1
- package/build/plugins/solution/fx-solution/index.d.ts +2 -0
- package/build/plugins/solution/fx-solution/index.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/index.js +2 -0
- package/build/plugins/solution/fx-solution/index.js.map +1 -1
- package/build/plugins/solution/fx-solution/question.d.ts +2 -1
- package/build/plugins/solution/fx-solution/question.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/question.js +18 -1
- package/build/plugins/solution/fx-solution/question.js.map +1 -1
- package/build/plugins/solution/fx-solution/solution.d.ts +3 -6
- package/build/plugins/solution/fx-solution/solution.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/solution.js +406 -379
- package/build/plugins/solution/fx-solution/solution.js.map +1 -1
- package/build/plugins/solution/fx-solution/utils/util.js +1 -1
- package/build/plugins/solution/fx-solution/utils/util.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/adaptor.d.ts +3 -0
- package/build/plugins/solution/fx-solution/v2/adaptor.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/adaptor.js +37 -3
- package/build/plugins/solution/fx-solution/v2/adaptor.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/createEnv.d.ts +3 -0
- package/build/plugins/solution/fx-solution/v2/createEnv.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v2/createEnv.js +28 -0
- package/build/plugins/solution/fx-solution/v2/createEnv.js.map +1 -0
- package/build/plugins/solution/fx-solution/v2/deploy.d.ts +2 -4
- package/build/plugins/solution/fx-solution/v2/deploy.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/deploy.js +19 -14
- package/build/plugins/solution/fx-solution/v2/deploy.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts +2 -2
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js +20 -4
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executor.d.ts +2 -2
- package/build/plugins/solution/fx-solution/v2/executor.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executor.js +27 -3
- package/build/plugins/solution/fx-solution/v2/executor.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts +2 -2
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js +8 -2
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/getQuestions.d.ts +8 -0
- package/build/plugins/solution/fx-solution/v2/getQuestions.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v2/getQuestions.js +393 -0
- package/build/plugins/solution/fx-solution/v2/getQuestions.js.map +1 -0
- package/build/plugins/solution/fx-solution/v2/package.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/package.js +12 -2
- package/build/plugins/solution/fx-solution/v2/package.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.d.ts +4 -0
- package/build/plugins/solution/fx-solution/v2/provision.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v2/provision.js +153 -0
- package/build/plugins/solution/fx-solution/v2/provision.js.map +1 -0
- package/build/plugins/solution/fx-solution/v2/provisionLocal.d.ts +3 -0
- package/build/plugins/solution/fx-solution/v2/provisionLocal.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v2/provisionLocal.js +73 -0
- package/build/plugins/solution/fx-solution/v2/provisionLocal.js.map +1 -0
- package/build/plugins/solution/fx-solution/v2/publish.d.ts +2 -2
- package/build/plugins/solution/fx-solution/v2/publish.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/publish.js +11 -11
- package/build/plugins/solution/fx-solution/v2/publish.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/scaffolding.d.ts +3 -7
- package/build/plugins/solution/fx-solution/v2/scaffolding.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/scaffolding.js +21 -6
- package/build/plugins/solution/fx-solution/v2/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/solution.d.ts +18 -0
- package/build/plugins/solution/fx-solution/v2/solution.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v2/solution.js +38 -0
- package/build/plugins/solution/fx-solution/v2/solution.js.map +1 -0
- package/build/plugins/solution/fx-solution/v2/utils.d.ts +11 -9
- package/build/plugins/solution/fx-solution/v2/utils.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.js +81 -1
- package/build/plugins/solution/fx-solution/v2/utils.js.map +1 -1
- package/package.json +8 -5
- package/resource/strings.json +2 -1
- package/templates/plugins/resource/bot/bicep/botConfiguration.template.bicep +0 -4
- package/templates/plugins/resource/bot/bicep/botProvision.template.bicep +0 -6
- package/templates/plugins/resource/bot/bicep/module.template.bicep +0 -4
- package/templates/plugins/resource/bot/bicep/output.template.bicep +0 -2
- package/templates/plugins/resource/bot/bicep/param.template.bicep +0 -2
- package/templates/plugins/resource/bot/bot-msgext.js.default.zip +0 -0
- package/templates/plugins/resource/bot/bot-msgext.ts.default.zip +0 -0
- package/templates/plugins/resource/bot/bot.js.default.zip +0 -0
- package/templates/plugins/resource/bot/bot.ts.default.zip +0 -0
- package/templates/plugins/resource/bot/msgext.js.default.zip +0 -0
- package/templates/plugins/resource/bot/msgext.ts.default.zip +0 -0
- package/templates/plugins/resource/frontend/bicep/frontendHosting.bicep +1 -1
- package/templates/plugins/resource/frontend/bicep/output.template.bicep +1 -1
- 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/functionProvision.template.bicep +1 -3
- package/templates/plugins/resource/function/bicep/output.template.bicep +1 -3
- 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/spfx/solution/manifest_multi_env.json +62 -0
- package/build/core/loader.d.ts +0 -11
- package/build/core/loader.d.ts.map +0 -1
- package/build/core/loader.js +0 -17
- package/build/core/loader.js.map +0 -1
- package/build/core/middleware/contextInjecter.d.ts +0 -3
- package/build/core/middleware/contextInjecter.d.ts.map +0 -1
- package/build/core/middleware/contextInjecter.js.map +0 -1
- package/build/plugins/resource/bot/enums/wayToRegisterBot.d.ts +0 -5
- package/build/plugins/resource/bot/enums/wayToRegisterBot.d.ts.map +0 -1
- package/build/plugins/resource/bot/enums/wayToRegisterBot.js +0 -11
- package/build/plugins/resource/bot/enums/wayToRegisterBot.js.map +0 -1
- package/build/plugins/resource/bot/questions.d.ts +0 -4
- package/build/plugins/resource/bot/questions.d.ts.map +0 -1
- package/build/plugins/resource/bot/questions.js +0 -65
- package/build/plugins/resource/bot/questions.js.map +0 -1
- package/build/plugins/resource/function/utils/templates-fetch.d.ts +0 -10
- package/build/plugins/resource/function/utils/templates-fetch.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/templates-fetch.js +0 -107
- package/build/plugins/resource/function/utils/templates-fetch.js.map +0 -1
|
@@ -9,26 +9,27 @@ const errors_1 = require("../errors");
|
|
|
9
9
|
const common_1 = require("../../../../common");
|
|
10
10
|
class ProvisionConfig {
|
|
11
11
|
async restoreConfigFromContext(context) {
|
|
12
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
13
|
-
this.subscriptionId = (
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
12
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
13
|
+
this.subscriptionId = (_a = context.envInfo.profile
|
|
14
|
+
.get(strings_1.PluginSolution.PLUGIN_NAME)) === null || _a === void 0 ? void 0 : _a.get(strings_1.PluginSolution.SUBSCRIPTION_ID);
|
|
15
|
+
this.resourceGroup = (_b = context.envInfo.profile
|
|
16
|
+
.get(strings_1.PluginSolution.PLUGIN_NAME)) === null || _b === void 0 ? void 0 : _b.get(strings_1.PluginSolution.RESOURCE_GROUP_NAME);
|
|
17
|
+
this.location = (_c = context.envInfo.profile
|
|
18
|
+
.get(strings_1.PluginSolution.PLUGIN_NAME)) === null || _c === void 0 ? void 0 : _c.get(strings_1.PluginSolution.LOCATION);
|
|
19
|
+
this.sqlEndpoint = (_d = context.envInfo.profile
|
|
20
|
+
.get(strings_1.PluginSql.PLUGIN_NAME)) === null || _d === void 0 ? void 0 : _d.get(strings_1.PluginSql.SQL_ENDPOINT);
|
|
21
|
+
this.sqlDatabaseName = (_e = context.envInfo.profile
|
|
22
|
+
.get(strings_1.PluginSql.PLUGIN_NAME)) === null || _e === void 0 ? void 0 : _e.get(strings_1.PluginSql.SQL_DATABASE_NAME);
|
|
23
|
+
this.sqlUserName = (_f = context.envInfo.profile
|
|
24
|
+
.get(strings_1.PluginSql.PLUGIN_NAME)) === null || _f === void 0 ? void 0 : _f.get(strings_1.PluginSql.SQL_USERNAME);
|
|
25
|
+
this.sqlPassword = (_g = context.envInfo.profile
|
|
26
|
+
.get(strings_1.PluginSql.PLUGIN_NAME)) === null || _g === void 0 ? void 0 : _g.get(strings_1.PluginSql.SQL_PASSWORD);
|
|
27
|
+
this.identityId = (_h = context.envInfo.profile
|
|
28
|
+
.get(strings_1.PluginIdentity.PLUGIN_NAME)) === null || _h === void 0 ? void 0 : _h.get(strings_1.PluginIdentity.IDENTITY_ID);
|
|
29
|
+
this.identityName = (_j = context.envInfo.profile
|
|
30
|
+
.get(strings_1.PluginIdentity.PLUGIN_NAME)) === null || _j === void 0 ? void 0 : _j.get(strings_1.PluginIdentity.IDENTITY_NAME);
|
|
31
|
+
this.functionEndpoint = (_k = context.envInfo.profile
|
|
32
|
+
.get(strings_1.PluginFunction.PLUGIN_NAME)) === null || _k === void 0 ? void 0 : _k.get(strings_1.PluginFunction.ENDPOINT);
|
|
32
33
|
this.appServicePlan = context.config.get(strings_1.PluginBot.APP_SERVICE_PLAN);
|
|
33
34
|
this.siteName = context.config.get(strings_1.PluginBot.SITE_NAME);
|
|
34
35
|
if (!common_1.isArmSupportEnabled()) {
|
|
@@ -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;AAClD,+CAAyD;AAEzD,MAAa,eAAe;IAsBnB,KAAK,CAAC,wBAAwB,CAAC,OAAsB;;QAC1D,IAAI,CAAC,cAAc,GAAG,MAAA,
|
|
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;AAClD,+CAAyD;AAEzD,MAAa,eAAe;IAsBnB,KAAK,CAAC,wBAAwB,CAAC,OAAsB;;QAC1D,IAAI,CAAC,cAAc,GAAG,MAAA,OAAO,CAAC,OAAO,CAAC,OAAO;aAC1C,GAAG,CAAC,wBAAc,CAAC,WAAW,CAAC,0CAC9B,GAAG,CAAC,wBAAc,CAAC,eAAe,CAAW,CAAC;QAElD,IAAI,CAAC,aAAa,GAAG,MAAA,OAAO,CAAC,OAAO,CAAC,OAAO;aACzC,GAAG,CAAC,wBAAc,CAAC,WAAW,CAAC,0CAC9B,GAAG,CAAC,wBAAc,CAAC,mBAAmB,CAAW,CAAC;QAEtD,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,CAAC,OAAO,CAAC,OAAO;aACpC,GAAG,CAAC,wBAAc,CAAC,WAAW,CAAC,0CAC9B,GAAG,CAAC,wBAAc,CAAC,QAAQ,CAAW,CAAC;QAE3C,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,CAAC,OAAO,CAAC,OAAO;aACvC,GAAG,CAAC,mBAAS,CAAC,WAAW,CAAC,0CACzB,GAAG,CAAC,mBAAS,CAAC,YAAY,CAAW,CAAC;QAE1C,IAAI,CAAC,eAAe,GAAG,MAAA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I,8BAAqB,CAAC,sBAAU,CAAC,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;SACtE;QAED,IAAI,IAAI,CAAC,YAAY,IAAI,CAAC,KAAK,CAAC,2BAA2B,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE;YAC9E,MAAM,IAAI,8BAAqB,CAAC,sBAAU,CAAC,aAAa,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;SAC9E;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;AA5GD,0CA4GC"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { PluginContext } from "@microsoft/teamsfx-api";
|
|
2
2
|
import { ProgrammingLanguage } from "../enums/programmingLanguage";
|
|
3
|
-
import { WayToRegisterBot } from "../enums/wayToRegisterBot";
|
|
4
3
|
export declare class ScaffoldConfig {
|
|
5
4
|
botId?: string;
|
|
6
5
|
botPassword?: string;
|
|
7
6
|
objectId?: string;
|
|
8
7
|
programmingLanguage?: ProgrammingLanguage;
|
|
9
|
-
wayToRegisterBot?: WayToRegisterBot;
|
|
10
8
|
workingDir?: string;
|
|
11
|
-
|
|
9
|
+
botAADCreated(): boolean;
|
|
12
10
|
restoreConfigFromContext(context: PluginContext): Promise<void>;
|
|
13
11
|
saveConfigIntoContext(context: PluginContext): void;
|
|
14
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scaffoldConfig.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/bot/configs/scaffoldConfig.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scaffoldConfig.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/bot/configs/scaffoldConfig.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGnE,qBAAa,cAAc;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,aAAa,IAAI,OAAO;IAOlB,wBAAwB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAmBrE,qBAAqB,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;CAK3D"}
|
|
@@ -6,37 +6,36 @@ const tslib_1 = require("tslib");
|
|
|
6
6
|
// Licensed under the MIT license.
|
|
7
7
|
const utils = tslib_1.__importStar(require("../utils/common"));
|
|
8
8
|
const strings_1 = require("../resources/strings");
|
|
9
|
+
const common_1 = require("../../../../common");
|
|
9
10
|
const programmingLanguage_1 = require("../enums/programmingLanguage");
|
|
10
|
-
const wayToRegisterBot_1 = require("../enums/wayToRegisterBot");
|
|
11
11
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
12
12
|
class ScaffoldConfig {
|
|
13
|
-
|
|
14
|
-
if (this.botId && this.botPassword
|
|
13
|
+
botAADCreated() {
|
|
14
|
+
if (this.botId && this.botPassword) {
|
|
15
15
|
return true;
|
|
16
16
|
}
|
|
17
17
|
return false;
|
|
18
18
|
}
|
|
19
19
|
async restoreConfigFromContext(context) {
|
|
20
|
-
var _a;
|
|
20
|
+
var _a, _b, _c, _d, _e;
|
|
21
21
|
this.workingDir = path_1.default.join(context.root, strings_1.CommonStrings.BOT_WORKING_DIR_NAME);
|
|
22
22
|
this.botId = context.config.get(strings_1.PluginBot.BOT_ID);
|
|
23
23
|
this.botPassword = context.config.get(strings_1.PluginBot.BOT_PASSWORD);
|
|
24
24
|
this.objectId = context.config.get(strings_1.PluginBot.OBJECT_ID);
|
|
25
|
-
|
|
25
|
+
if (common_1.isMultiEnvEnabled()) {
|
|
26
|
+
this.botId = (_b = (_a = context.envInfo.config.bot) === null || _a === void 0 ? void 0 : _a.appId) !== null && _b !== void 0 ? _b : this.botId;
|
|
27
|
+
this.botPassword = (_d = (_c = context.envInfo.config.bot) === null || _c === void 0 ? void 0 : _c.appPassword) !== null && _d !== void 0 ? _d : this.botPassword;
|
|
28
|
+
}
|
|
29
|
+
const rawProgrammingLanguage = (_e = context.projectSettings) === null || _e === void 0 ? void 0 : _e.programmingLanguage;
|
|
26
30
|
if (rawProgrammingLanguage &&
|
|
27
31
|
utils.existsInEnumValues(rawProgrammingLanguage, programmingLanguage_1.ProgrammingLanguage)) {
|
|
28
32
|
this.programmingLanguage = rawProgrammingLanguage;
|
|
29
33
|
}
|
|
30
|
-
const rawWay = context.config.get(strings_1.PluginBot.WAY_TO_REGISTER_BOT);
|
|
31
|
-
if (rawWay && utils.existsInEnumValues(rawWay, wayToRegisterBot_1.WayToRegisterBot)) {
|
|
32
|
-
this.wayToRegisterBot = rawWay;
|
|
33
|
-
}
|
|
34
34
|
}
|
|
35
35
|
saveConfigIntoContext(context) {
|
|
36
36
|
utils.checkAndSaveConfig(context, strings_1.PluginBot.BOT_ID, this.botId);
|
|
37
37
|
utils.checkAndSaveConfig(context, strings_1.PluginBot.BOT_PASSWORD, this.botPassword);
|
|
38
38
|
utils.checkAndSaveConfig(context, strings_1.PluginBot.OBJECT_ID, this.objectId);
|
|
39
|
-
utils.checkAndSaveConfig(context, strings_1.PluginBot.WAY_TO_REGISTER_BOT, this.wayToRegisterBot);
|
|
40
39
|
}
|
|
41
40
|
}
|
|
42
41
|
exports.ScaffoldConfig = ScaffoldConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scaffoldConfig.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/bot/configs/scaffoldConfig.ts"],"names":[],"mappings":";;;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,+DAAyC;AACzC,kDAAgE;
|
|
1
|
+
{"version":3,"file":"scaffoldConfig.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/bot/configs/scaffoldConfig.ts"],"names":[],"mappings":";;;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,+DAAyC;AACzC,kDAAgE;AAChE,+CAAuD;AAEvD,sEAAmE;AACnE,wDAAwB;AAExB,MAAa,cAAc;IAOlB,aAAa;QAClB,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,WAAW,EAAE;YAClC,OAAO,IAAI,CAAC;SACb;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAEM,KAAK,CAAC,wBAAwB,CAAC,OAAsB;;QAC1D,IAAI,CAAC,UAAU,GAAG,cAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,uBAAa,CAAC,oBAAoB,CAAC,CAAC;QAC9E,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,mBAAS,CAAC,MAAM,CAAW,CAAC;QAC5D,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,mBAAS,CAAC,YAAY,CAAW,CAAC;QACxE,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,mBAAS,CAAC,SAAS,CAAW,CAAC;QAClE,IAAI,0BAAiB,EAAE,EAAE;YACvB,IAAI,CAAC,KAAK,GAAG,MAAA,MAAA,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,0CAAE,KAAK,mCAAI,IAAI,CAAC,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AM;IAElB,wBAAwB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IA4CrE,qBAAqB,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAOnD,QAAQ,IAAI,MAAM;CAG1B"}
|
|
@@ -24,13 +24,13 @@ class TeamsBotConfig {
|
|
|
24
24
|
await this.provision.restoreConfigFromContext(context);
|
|
25
25
|
await this.localDebug.restoreConfigFromContext(context);
|
|
26
26
|
await this.deploy.restoreConfigFromContext(context);
|
|
27
|
-
this.teamsAppClientId = (_a = context.
|
|
27
|
+
this.teamsAppClientId = (_a = context.envInfo.profile
|
|
28
28
|
.get(strings_1.PluginAAD.PLUGIN_NAME)) === null || _a === void 0 ? void 0 : _a.get(strings_1.PluginAAD.CLIENT_ID);
|
|
29
|
-
this.teamsAppClientSecret = (_b = context.
|
|
29
|
+
this.teamsAppClientSecret = (_b = context.envInfo.profile
|
|
30
30
|
.get(strings_1.PluginAAD.PLUGIN_NAME)) === null || _b === void 0 ? void 0 : _b.get(strings_1.PluginAAD.CLIENT_SECRET);
|
|
31
|
-
this.teamsAppTenant = (_c = context.
|
|
31
|
+
this.teamsAppTenant = (_c = context.envInfo.profile
|
|
32
32
|
.get(strings_1.PluginSolution.PLUGIN_NAME)) === null || _c === void 0 ? void 0 : _c.get(strings_1.PluginSolution.M365_TENANT_ID);
|
|
33
|
-
this.applicationIdUris = (_d = context.
|
|
33
|
+
this.applicationIdUris = (_d = context.envInfo.profile
|
|
34
34
|
.get(strings_1.PluginAAD.PLUGIN_NAME)) === null || _d === void 0 ? void 0 : _d.get(strings_1.PluginAAD.APPLICATION_ID_URIS);
|
|
35
35
|
const capabilities = ((_e = context.projectSettings) === null || _e === void 0 ? void 0 : _e.solutionSettings)
|
|
36
36
|
.capabilities;
|
|
@@ -41,7 +41,7 @@ class TeamsBotConfig {
|
|
|
41
41
|
!this.actRoles.includes(pluginActRoles_1.PluginActRoles.MessageExtension)) {
|
|
42
42
|
this.actRoles.push(pluginActRoles_1.PluginActRoles.MessageExtension);
|
|
43
43
|
}
|
|
44
|
-
const resourceNameSuffixValue = (_f = context.
|
|
44
|
+
const resourceNameSuffixValue = (_f = context.envInfo.profile
|
|
45
45
|
.get(strings_1.PluginSolution.PLUGIN_NAME)) === null || _f === void 0 ? void 0 : _f.get(strings_1.PluginSolution.RESOURCE_NAME_SUFFIX);
|
|
46
46
|
this.resourceNameSuffix = resourceNameSuffixValue
|
|
47
47
|
? resourceNameSuffixValue
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teamsBotConfig.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/bot/configs/teamsBotConfig.ts"],"names":[],"mappings":";;;;AAIA,yDAAsD;AACtD,uDAAoD;AACpD,qDAAkD;AAClD,kDAAiE;AACjE,4DAAyD;AACzD,iDAA8C;AAC9C,+DAAyC;AAEzC,MAAa,cAAc;IAA3B;QACS,aAAQ,GAAmB,IAAI,+BAAc,EAAE,CAAC;QAChD,cAAS,GAAoB,IAAI,iCAAe,EAAE,CAAC;QACnD,eAAU,GAAqB,IAAI,mCAAgB,EAAE,CAAC;QACtD,WAAM,GAAiB,IAAI,2BAAY,EAAE,CAAC;QAM1C,aAAQ,GAAqB,EAAE,CAAC;QAChC,uBAAkB,GAAG,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"teamsBotConfig.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/bot/configs/teamsBotConfig.ts"],"names":[],"mappings":";;;;AAIA,yDAAsD;AACtD,uDAAoD;AACpD,qDAAkD;AAClD,kDAAiE;AACjE,4DAAyD;AACzD,iDAA8C;AAC9C,+DAAyC;AAEzC,MAAa,cAAc;IAA3B;QACS,aAAQ,GAAmB,IAAI,+BAAc,EAAE,CAAC;QAChD,cAAS,GAAoB,IAAI,iCAAe,EAAE,CAAC;QACnD,eAAU,GAAqB,IAAI,mCAAgB,EAAE,CAAC;QACtD,WAAM,GAAiB,IAAI,2BAAY,EAAE,CAAC;QAM1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ROGRAMMING_LANGUAGE = "programming-language";
|
|
58
|
-
static readonly WAY_TO_REGISTER_BOT = "way-to-register-bot";
|
|
59
58
|
static readonly GET_BOT_ID = "bot-id";
|
|
60
59
|
static readonly GET_BOT_PASSWORD = "bot-password";
|
|
61
60
|
static readonly CAPABILITIES = "capabilities";
|
|
@@ -117,7 +116,6 @@ export declare class Alias {
|
|
|
117
116
|
static readonly TEAMS_FX = "Teamsfx";
|
|
118
117
|
}
|
|
119
118
|
export declare class QuestionOptions {
|
|
120
|
-
static readonly WAY_TO_REGISTER_BOT_OPTIONS: OptionItem[];
|
|
121
119
|
static readonly PROGRAMMING_LANGUAGE_OPTIONS: OptionItem[];
|
|
122
120
|
}
|
|
123
121
|
export declare class AuthEnvNames {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/plugins/resource/bot/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/plugins/resource/bot/constants.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAoB,MAAM,wBAAwB,CAAC;AAItE,qBAAa,YAAY;IACvB,gBAAuB,mBAAmB,EAAE,MAAM,CAAmB;IACrE,gBAAuB,eAAe,EAAE,MAAM,CAAoB;IAGlE,gBAAuB,qBAAqB,EAAE,MAAM,CAA2B;IAE/E,gBAAuB,iBAAiB,EAAE,MAAM,CAAiD;IAEjG,gBAAuB,oBAAoB,EAAE,MAAM,CAAyC;CAC7F;AAED,qBAAa,eAAe;IAC1B,gBAAuB,mBAAmB,EAAE,MAAM,CAAuB;IACzE,gBAAuB,iCAAiC,QAAQ;CACjE;AAED,qBAAa,wBAAwB;IACnC,gBAAuB,mBAAmB,EAAE,MAAM,CAAsC;IACxF,gBAAuB,sBAAsB,EAAE,MAAM,CAAyB;CAC/E;AAED,qBAAa,oBAAoB;IAC/B,gBAAuB,MAAM,EAAE,MAAM,CAAc;IACn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,CAAC,MAAM,gBAAgB;IACtC,MAAM,CAAC,QAAQ,CAAC,kBAAkB,4BAA4B;IAC9D,MAAM,CAAC,QAAQ,CAAC,cAAc,qBAAqB;IACnD,MAAM,CAAC,QAAQ,CAAC,cAAc,wBAAwB;IACtD,MAAM,CAAC,QAAQ,CAAC,qBAAqB,+BAA+B;CACrE"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
3
|
exports.BotArmOutput = exports.PathInfo = exports.AzureConstants = exports.TelemetryValues = exports.TelemetryKeys = exports.IdentityConstants = exports.ErrorMessagesForChecking = exports.MaxLengths = exports.DownloadConstants = exports.TypeNames = exports.FolderNames = exports.ConfigKeys = exports.DeployConfigs = exports.AuthValues = exports.AuthEnvNames = exports.QuestionOptions = exports.Alias = exports.Links = exports.ErrorNames = exports.Retry = exports.LifecycleFuncNames = exports.QuestionNames = exports.ProgressBarConstants = exports.TemplateProjectsConstants = exports.ScaffoldPlaceholders = exports.AADRegistrationConstants = exports.WebAppConstants = exports.RegularExprs = void 0;
|
|
6
4
|
const tslib_1 = require("tslib");
|
|
7
|
-
|
|
5
|
+
// Copyright (c) Microsoft Corporation.
|
|
6
|
+
// Licensed under the MIT license.
|
|
8
7
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
9
8
|
const programmingLanguage_1 = require("./enums/programmingLanguage");
|
|
10
9
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
@@ -77,7 +76,6 @@ class QuestionNames {
|
|
|
77
76
|
}
|
|
78
77
|
exports.QuestionNames = QuestionNames;
|
|
79
78
|
QuestionNames.PROGRAMMING_LANGUAGE = "programming-language";
|
|
80
|
-
QuestionNames.WAY_TO_REGISTER_BOT = "way-to-register-bot";
|
|
81
79
|
QuestionNames.GET_BOT_ID = "bot-id";
|
|
82
80
|
QuestionNames.GET_BOT_PASSWORD = "bot-password";
|
|
83
81
|
QuestionNames.CAPABILITIES = "capabilities";
|
|
@@ -149,16 +147,6 @@ Alias.TEAMS_FX = "Teamsfx";
|
|
|
149
147
|
class QuestionOptions {
|
|
150
148
|
}
|
|
151
149
|
exports.QuestionOptions = QuestionOptions;
|
|
152
|
-
QuestionOptions.WAY_TO_REGISTER_BOT_OPTIONS = [
|
|
153
|
-
{
|
|
154
|
-
id: wayToRegisterBot_1.WayToRegisterBot.CreateNew,
|
|
155
|
-
label: "Create a new bot registration",
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
id: wayToRegisterBot_1.WayToRegisterBot.ReuseExisting,
|
|
159
|
-
label: "Use an existing bot registration",
|
|
160
|
-
},
|
|
161
|
-
];
|
|
162
150
|
QuestionOptions.PROGRAMMING_LANGUAGE_OPTIONS = Object.values(programmingLanguage_1.ProgrammingLanguage).map((value) => {
|
|
163
151
|
return {
|
|
164
152
|
id: value,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/plugins/resource/bot/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/plugins/resource/bot/constants.ts"],"names":[],"mappings":";;;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,wDAAsE;AACtE,qEAAkE;AAClE,wDAAwB;AAExB,MAAa,YAAY;;AAAzB,oCAUC;AATwB,gCAAmB,GAAW,eAAe,CAAC;AAC9C,4BAAe,GAAW,gBAAgB,CAAC;AAClE,wGAAwG;AACxG,kCAAkC;AACX,kCAAqB,GAAW,uBAAuB,CAAC;AAC/E,0EAA0E;AACnD,8BAAiB,GAAW,6CAA6C,CAAC;AACjG,kFAAkF;AAC3D,iCAAoB,GAAW,qCAAqC,CAAC;AAG9F,MAAa,eAAe;;AAA5B,0CAGC;AAFwB,mCAAmB,GAAW,mBAAmB,CAAC;AAClD,iDAAiC,G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,2BAAc,GAAG,oBAAoB,CAAC;AACtC,kCAAqB,GAAG,2BAA2B,CAAC"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { Plugin, PluginContext,
|
|
1
|
+
import { Plugin, PluginContext, AzureSolutionSettings, Func } from "@microsoft/teamsfx-api";
|
|
2
2
|
import { FxResult } from "./result";
|
|
3
3
|
import { TeamsBotImpl } from "./plugin";
|
|
4
|
+
import "./v2";
|
|
4
5
|
export declare class TeamsBot implements Plugin {
|
|
5
6
|
name: string;
|
|
6
7
|
displayName: string;
|
|
7
8
|
activate(solutionSettings: AzureSolutionSettings): boolean;
|
|
8
9
|
teamsBotImpl: TeamsBotImpl;
|
|
9
|
-
getQuestions(stage: Stage, ctx: PluginContext): Promise<Result<QTreeNode | undefined, FxError>>;
|
|
10
|
-
preScaffold(context: PluginContext): Promise<FxResult>;
|
|
11
10
|
scaffold(context: PluginContext): Promise<FxResult>;
|
|
12
11
|
preProvision(context: PluginContext): Promise<FxResult>;
|
|
13
12
|
provision(context: PluginContext): Promise<FxResult>;
|
|
@@ -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,MAAM,EACN,aAAa,EAQb,qBAAqB,EACrB,IAAI,EAEL,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,QAAQ,EAA6C,MAAM,UAAU,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AASxC,OAAO,MAAM,CAAC;AACd,qBACa,QAAS,YAAW,MAAM;IACrC,IAAI,SAAqB;IACzB,WAAW,SAAS;IACpB,QAAQ,CAAC,gBAAgB,EAAE,qBAAqB,GAAG,OAAO;IAInD,YAAY,EAAE,YAAY,CAAsB;IAE1C,QAAQ,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAenD,YAAY,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAWvD,SAAS,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAepD,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAWxD,oBAAoB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAa/D,SAAS,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAWpD,MAAM,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAejD,UAAU,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAkBrD,cAAc,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAWzD,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAcnF,OAAO,CAAC,SAAS;YAuCH,wBAAwB;CAgBvC;;AAED,wBAA8B"}
|
|
@@ -15,6 +15,7 @@ const telemetry_helper_1 = require("./utils/telemetry-helper");
|
|
|
15
15
|
const question_1 = require("../../solution/fx-solution/question");
|
|
16
16
|
const typedi_1 = require("typedi");
|
|
17
17
|
const ResourcePluginContainer_1 = require("../../solution/fx-solution/ResourcePluginContainer");
|
|
18
|
+
require("./v2");
|
|
18
19
|
let TeamsBot = class TeamsBot {
|
|
19
20
|
constructor() {
|
|
20
21
|
this.name = "fx-resource-bot";
|
|
@@ -25,13 +26,6 @@ let TeamsBot = class TeamsBot {
|
|
|
25
26
|
const cap = solutionSettings.capabilities || [];
|
|
26
27
|
return cap.includes(question_1.BotOptionItem.id) || cap.includes(question_1.MessageExtensionItem.id);
|
|
27
28
|
}
|
|
28
|
-
async getQuestions(stage, ctx) {
|
|
29
|
-
return this.teamsBotImpl.getQuestions(stage, ctx);
|
|
30
|
-
}
|
|
31
|
-
async preScaffold(context) {
|
|
32
|
-
logger_1.Logger.setLogger(context.logProvider);
|
|
33
|
-
return await this.runWithExceptionCatching(context, () => this.teamsBotImpl.preScaffold(context), true, constants_1.LifecycleFuncNames.PRE_SCAFFOLD);
|
|
34
|
-
}
|
|
35
29
|
async scaffold(context) {
|
|
36
30
|
logger_1.Logger.setLogger(context.logProvider);
|
|
37
31
|
const result = await this.runWithExceptionCatching(context, () => this.teamsBotImpl.scaffold(context), true, constants_1.LifecycleFuncNames.SCAFFOLD);
|
|
@@ -1 +1 @@
|
|
|
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,2CAAuE;AACvE,qCAAkD;AAClD,qCAAkC;AAClC,+DAA2D;AAC3D,kEAA0F;AAC1F,mCAAiC;AACjC,gGAAqF;
|
|
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,2CAAuE;AACvE,qCAAkD;AAClD,qCAAkC;AAClC,+DAA2D;AAC3D,kEAA0F;AAC1F,mCAAiC;AACjC,gGAAqF;AACrF,gBAAc;AAEd,IAAa,QAAQ,GAArB,MAAa,QAAQ;IAArB;QACE,SAAI,GAAG,iBAAiB,CAAC;QACzB,gBAAW,GAAG,KAAK,CAAC;QAKb,iBAAY,GAAiB,IAAI,qBAAY,EAAE,CAAC;IA+LzD,CAAC;IAnMC,QAAQ,CAAC,gBAAuC;QAC9C,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xE,OAAO,MAAM,CAAC;SACf;aAAM;YACL,0BAA0B;YAC1B,MAAM,kBAAkB,GAAG,gBAAgB,CAAC;YAC5C,aAAa;gBACX,kCAAe,CAAC,eAAe,CAC7B,OAAO,EACP,IAAI,EACJ,iCAAa,CAAC,WAAW,CAAC,kBAAkB,EAAE,2BAA2B,CAAC,CAAC,OAAO,EAAE,CAAC,CACtF,CAAC;YACJ,OAAO,iCAAa,CAAC,WAAW,CAAC,kBAAkB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;SACpE;IACH,CAAC;IAEO,KAAK,CAAC,wBAAwB,CACpC,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,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,CAAC,CAAC;SACxD;IACH,CAAC;CACF,CAAA;AAtMY,QAAQ;IADpB,gBAAO,CAAC,yCAAe,CAAC,SAAS,CAAC;GACtB,QAAQ,CAsMpB;AAtMY,4BAAQ;AAwMrB,kBAAe,IAAI,QAAQ,EAAE,CAAC"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { PluginContext
|
|
1
|
+
import { PluginContext } from "@microsoft/teamsfx-api";
|
|
2
2
|
import { FxResult } from "./result";
|
|
3
3
|
import { TeamsBotConfig } from "./configs/teamsBotConfig";
|
|
4
4
|
export declare class TeamsBotImpl {
|
|
5
5
|
config: TeamsBotConfig;
|
|
6
6
|
private ctx?;
|
|
7
|
-
getQuestions(stage: Stage, ctx: PluginContext): Promise<Result<QTreeNode | undefined, FxError>>;
|
|
8
7
|
private getAzureAccountCredenial;
|
|
9
|
-
preScaffold(context: PluginContext): Promise<FxResult>;
|
|
10
8
|
scaffold(context: PluginContext): Promise<FxResult>;
|
|
11
9
|
preProvision(context: PluginContext): Promise<FxResult>;
|
|
12
10
|
provision(context: PluginContext): Promise<FxResult>;
|
|
@@ -20,7 +18,6 @@ export declare class TeamsBotImpl {
|
|
|
20
18
|
migrateV1Project(ctx: PluginContext): Promise<FxResult>;
|
|
21
19
|
private updateMessageEndpointOnAppStudio;
|
|
22
20
|
private updateMessageEndpointOnAzure;
|
|
23
|
-
private reuseExistingBotRegistration;
|
|
24
21
|
private createNewBotRegistrationOnAppStudio;
|
|
25
22
|
private createOrGetBotAppRegistration;
|
|
26
23
|
private provisionBotServiceOnAzure;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/resource/bot/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/resource/bot/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EAUd,MAAM,wBAAwB,CAAC;AAOhC,OAAO,EAAE,QAAQ,EAA6C,MAAM,UAAU,CAAC;AAiC/E,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAoB1D,qBAAa,YAAY;IAEhB,MAAM,EAAE,cAAc,CAAwB;IACrD,OAAO,CAAC,GAAG,CAAC,CAAgB;YAEd,wBAAwB;IASzB,QAAQ,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAgDnD,YAAY,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAkCvD,SAAS,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAuCpD,oBAAoB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;YAqF9D,eAAe;IA8DhB,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAuIxD,SAAS,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IA0BpD,MAAM,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAiFjD,UAAU,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAoBrD,cAAc,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAezD,gBAAgB,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;YA8BtD,gCAAgC;YAiBhC,4BAA4B;YAwB5B,mCAAmC;YA0DnC,6BAA6B;YAuC7B,0BAA0B;CAwCzC"}
|
|
@@ -8,17 +8,14 @@ const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
|
8
8
|
const aadRegistration_1 = require("./aadRegistration");
|
|
9
9
|
const factory = tslib_1.__importStar(require("./clientFactory"));
|
|
10
10
|
const utils = tslib_1.__importStar(require("./utils/common"));
|
|
11
|
-
const questions_1 = require("./questions");
|
|
12
11
|
const languageStrategy_1 = require("./languageStrategy");
|
|
13
12
|
const messages_1 = require("./resources/messages");
|
|
14
13
|
const result_1 = require("./result");
|
|
15
14
|
const constants_1 = require("./constants");
|
|
16
|
-
const wayToRegisterBot_1 = require("./enums/wayToRegisterBot");
|
|
17
15
|
const zipDeploy_1 = require("./utils/zipDeploy");
|
|
18
16
|
const appService = tslib_1.__importStar(require("@azure/arm-appservice"));
|
|
19
17
|
const fs = tslib_1.__importStar(require("fs-extra"));
|
|
20
18
|
const strings_1 = require("./resources/strings");
|
|
21
|
-
const dialog_1 = require("./utils/dialog");
|
|
22
19
|
const errors_1 = require("./errors");
|
|
23
20
|
const teamsBotConfig_1 = require("./configs/teamsBotConfig");
|
|
24
21
|
const progressBars_1 = require("./progressBars");
|
|
@@ -39,16 +36,6 @@ class TeamsBotImpl {
|
|
|
39
36
|
// Made config plubic, because expect the upper layer to fill inputs.
|
|
40
37
|
this.config = new teamsBotConfig_1.TeamsBotConfig();
|
|
41
38
|
}
|
|
42
|
-
async getQuestions(stage, ctx) {
|
|
43
|
-
switch (stage) {
|
|
44
|
-
case teamsfx_api_1.Stage.create: {
|
|
45
|
-
return result_1.FxBotPluginResultFactory.Success(questions_1.createQuestions);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return result_1.FxBotPluginResultFactory.Success(new teamsfx_api_1.QTreeNode({
|
|
49
|
-
type: "group",
|
|
50
|
-
}));
|
|
51
|
-
}
|
|
52
39
|
async getAzureAccountCredenial() {
|
|
53
40
|
var _a, _b;
|
|
54
41
|
const serviceClientCredentials = await ((_b = (_a = this.ctx) === null || _a === void 0 ? void 0 : _a.azureAccountProvider) === null || _b === void 0 ? void 0 : _b.getAccountCredentialAsync());
|
|
@@ -57,28 +44,6 @@ class TeamsBotImpl {
|
|
|
57
44
|
}
|
|
58
45
|
return serviceClientCredentials;
|
|
59
46
|
}
|
|
60
|
-
async preScaffold(context) {
|
|
61
|
-
this.ctx = context;
|
|
62
|
-
await this.config.restoreConfigFromContext(context);
|
|
63
|
-
logger_1.Logger.info(messages_1.Messages.PreScaffoldingBot);
|
|
64
|
-
const rawWay = this.ctx.answers[constants_1.QuestionNames.WAY_TO_REGISTER_BOT];
|
|
65
|
-
if (!rawWay) {
|
|
66
|
-
throw new errors_1.UserInputsError(constants_1.QuestionNames.WAY_TO_REGISTER_BOT, rawWay);
|
|
67
|
-
}
|
|
68
|
-
const pickedWay = rawWay;
|
|
69
|
-
let botRegistration = {
|
|
70
|
-
botId: "",
|
|
71
|
-
botPassword: "",
|
|
72
|
-
};
|
|
73
|
-
if (pickedWay === wayToRegisterBot_1.WayToRegisterBot.ReuseExisting) {
|
|
74
|
-
botRegistration = await this.reuseExistingBotRegistration();
|
|
75
|
-
this.config.scaffold.botId = botRegistration.botId;
|
|
76
|
-
this.config.scaffold.botPassword = botRegistration.botPassword;
|
|
77
|
-
}
|
|
78
|
-
this.config.scaffold.wayToRegisterBot = pickedWay;
|
|
79
|
-
this.config.saveConfigIntoContext(context);
|
|
80
|
-
return result_1.FxBotPluginResultFactory.Success();
|
|
81
|
-
}
|
|
82
47
|
async scaffold(context) {
|
|
83
48
|
this.ctx = context;
|
|
84
49
|
await this.config.restoreConfigFromContext(context);
|
|
@@ -149,12 +114,10 @@ class TeamsBotImpl {
|
|
|
149
114
|
const rpClient = factory.createResourceProviderClient(azureCredential, this.config.provision.subscriptionId);
|
|
150
115
|
await factory.ensureResourceProvider(rpClient, constants_1.AzureConstants.requiredResourceProviders);
|
|
151
116
|
// 1. Do bot registration.
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
await this.provisionBotServiceOnAzure(botAuthCreds);
|
|
157
|
-
}
|
|
117
|
+
await (handler === null || handler === void 0 ? void 0 : handler.next(constants_1.ProgressBarConstants.PROVISION_STEP_BOT_REG));
|
|
118
|
+
const botAuthCreds = await this.createOrGetBotAppRegistration();
|
|
119
|
+
if (!common_1.isArmSupportEnabled()) {
|
|
120
|
+
await this.provisionBotServiceOnAzure(botAuthCreds);
|
|
158
121
|
}
|
|
159
122
|
if (!common_1.isArmSupportEnabled()) {
|
|
160
123
|
await (handler === null || handler === void 0 ? void 0 : handler.next(constants_1.ProgressBarConstants.PROVISION_STEP_WEB_APP));
|
|
@@ -175,8 +138,6 @@ class TeamsBotImpl {
|
|
|
175
138
|
.activeResourcePlugins;
|
|
176
139
|
const handleBarsContext = {
|
|
177
140
|
Plugins: selectedPlugins,
|
|
178
|
-
createNewBotService: !(this.config.scaffold.wayToRegisterBot ===
|
|
179
|
-
wayToRegisterBot_1.WayToRegisterBot.ReuseExisting),
|
|
180
141
|
};
|
|
181
142
|
const provisionModuleContentResult = await common_1.generateBicepFiles(path_1.default.join(bicepTemplateDir, constants_1.PathInfo.provisionModuleTemplateFileName), handleBarsContext);
|
|
182
143
|
if (provisionModuleContentResult.isErr()) {
|
|
@@ -341,18 +302,7 @@ class TeamsBotImpl {
|
|
|
341
302
|
await azureOps_1.AzureOperations.CreateOrUpdateAzureWebApp(webSiteMgmtClient, this.config.provision.resourceGroup, this.config.provision.siteName, siteEnvelope, true);
|
|
342
303
|
logger_1.Logger.info(messages_1.Messages.SuccessfullyUpdatedAzureWebAppSettings);
|
|
343
304
|
// 3. Update message endpoint for bot registration.
|
|
344
|
-
|
|
345
|
-
case wayToRegisterBot_1.WayToRegisterBot.CreateNew: {
|
|
346
|
-
await this.updateMessageEndpointOnAzure(`${this.config.provision.siteEndpoint}${strings_1.CommonStrings.MESSAGE_ENDPOINT_SUFFIX}`);
|
|
347
|
-
break;
|
|
348
|
-
}
|
|
349
|
-
case wayToRegisterBot_1.WayToRegisterBot.ReuseExisting: {
|
|
350
|
-
// Remind end developers to update message endpoint manually.
|
|
351
|
-
await dialog_1.DialogUtils.showAndHelp(context, messages_1.Messages.RemindUsersToUpdateMessageEndpoint(`${this.config.provision.siteEndpoint}${strings_1.CommonStrings.MESSAGE_ENDPOINT_SUFFIX}`), constants_1.Links.UPDATE_MESSAGE_ENDPOINT);
|
|
352
|
-
logger_1.Logger.info(messages_1.Messages.RemindUsersToUpdateMessageEndpoint(`${this.config.provision.siteEndpoint}${strings_1.CommonStrings.MESSAGE_ENDPOINT_SUFFIX}`));
|
|
353
|
-
break;
|
|
354
|
-
}
|
|
355
|
-
}
|
|
305
|
+
await this.updateMessageEndpointOnAzure(`${this.config.provision.siteEndpoint}${strings_1.CommonStrings.MESSAGE_ENDPOINT_SUFFIX}`);
|
|
356
306
|
}
|
|
357
307
|
this.config.saveConfigIntoContext(context);
|
|
358
308
|
return result_1.FxBotPluginResultFactory.Success();
|
|
@@ -490,37 +440,28 @@ class TeamsBotImpl {
|
|
|
490
440
|
await azureOps_1.AzureOperations.UpdateBotChannelRegistration(botClient, this.config.provision.resourceGroup, botChannelRegistrationName, this.config.scaffold.botId, endpoint, (_b = (_a = this.ctx) === null || _a === void 0 ? void 0 : _a.projectSettings) === null || _b === void 0 ? void 0 : _b.appName);
|
|
491
441
|
logger_1.Logger.info(messages_1.Messages.SuccessfullyUpdatedBotMessageEndpoint);
|
|
492
442
|
}
|
|
493
|
-
async reuseExistingBotRegistration() {
|
|
494
|
-
const rawBotId = this.ctx.answers[constants_1.QuestionNames.GET_BOT_ID];
|
|
495
|
-
if (!rawBotId) {
|
|
496
|
-
throw new errors_1.UserInputsError(constants_1.QuestionNames.GET_BOT_ID, rawBotId);
|
|
497
|
-
}
|
|
498
|
-
const botId = rawBotId;
|
|
499
|
-
const rawBotPassword = this.ctx.answers[constants_1.QuestionNames.GET_BOT_PASSWORD];
|
|
500
|
-
if (!rawBotPassword) {
|
|
501
|
-
throw new errors_1.UserInputsError(constants_1.QuestionNames.GET_BOT_PASSWORD, rawBotPassword);
|
|
502
|
-
}
|
|
503
|
-
const botPassword = rawBotPassword;
|
|
504
|
-
return {
|
|
505
|
-
botId: botId,
|
|
506
|
-
botPassword: botPassword,
|
|
507
|
-
};
|
|
508
|
-
}
|
|
509
443
|
async createNewBotRegistrationOnAppStudio() {
|
|
510
444
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
511
445
|
const appStudioToken = await ((_b = (_a = this.ctx) === null || _a === void 0 ? void 0 : _a.appStudioToken) === null || _b === void 0 ? void 0 : _b.getAccessToken());
|
|
512
446
|
errors_1.CheckThrowSomethingMissing(strings_1.ConfigNames.APPSTUDIO_TOKEN, appStudioToken);
|
|
513
447
|
errors_1.CheckThrowSomethingMissing(strings_1.CommonStrings.SHORT_APP_NAME, (_d = (_c = this.ctx) === null || _c === void 0 ? void 0 : _c.projectSettings) === null || _d === void 0 ? void 0 : _d.appName);
|
|
514
|
-
if (this.config.localDebug.botRegistrationCreated() &&
|
|
515
|
-
(await appStudio_1.AppStudio.isAADAppExisting(appStudioToken, this.config.localDebug.localObjectId))) {
|
|
516
|
-
logger_1.Logger.debug("Local bot has already been registered, just return.");
|
|
517
|
-
return;
|
|
518
|
-
}
|
|
519
448
|
// 1. Create a new AAD App Registraion with client secret.
|
|
520
449
|
const aadDisplayName = resourceNameFactory_1.ResourceNameFactory.createCommonName(this.config.resourceNameSuffix, (_f = (_e = this.ctx) === null || _e === void 0 ? void 0 : _e.projectSettings) === null || _f === void 0 ? void 0 : _f.appName, constants_1.MaxLengths.AAD_DISPLAY_NAME);
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
450
|
+
let botAuthCreds = new botAuthCredential_1.BotAuthCredential();
|
|
451
|
+
if (this.config.localDebug.botAADCreated()
|
|
452
|
+
// if user input AAD, the object id is not required
|
|
453
|
+
// && (await AppStudio.isAADAppExisting(appStudioToken!, this.config.localDebug.localObjectId!))
|
|
454
|
+
) {
|
|
455
|
+
botAuthCreds.clientId = this.config.localDebug.localBotId;
|
|
456
|
+
botAuthCreds.clientSecret = this.config.localDebug.localBotPassword;
|
|
457
|
+
botAuthCreds.objectId = this.config.localDebug.localObjectId;
|
|
458
|
+
logger_1.Logger.debug(messages_1.Messages.SuccessfullyGetExistingBotAadAppCredential);
|
|
459
|
+
}
|
|
460
|
+
else {
|
|
461
|
+
logger_1.Logger.info(messages_1.Messages.ProvisioningBotRegistration);
|
|
462
|
+
botAuthCreds = await aadRegistration_1.AADRegistration.registerAADAppAndGetSecretByAppStudio(appStudioToken, aadDisplayName);
|
|
463
|
+
logger_1.Logger.info(messages_1.Messages.SuccessfullyProvisionedBotRegistration);
|
|
464
|
+
}
|
|
524
465
|
// 2. Register bot by app studio.
|
|
525
466
|
const botReg = {
|
|
526
467
|
botId: botAuthCreds.clientId,
|
|
@@ -549,7 +490,7 @@ class TeamsBotImpl {
|
|
|
549
490
|
errors_1.CheckThrowSomethingMissing(strings_1.ConfigNames.APPSTUDIO_TOKEN, appStudioToken);
|
|
550
491
|
errors_1.CheckThrowSomethingMissing(strings_1.CommonStrings.SHORT_APP_NAME, (_d = (_c = this.ctx) === null || _c === void 0 ? void 0 : _c.projectSettings) === null || _d === void 0 ? void 0 : _d.appName);
|
|
551
492
|
let botAuthCreds = new botAuthCredential_1.BotAuthCredential();
|
|
552
|
-
if (!this.config.scaffold.
|
|
493
|
+
if (!this.config.scaffold.botAADCreated()) {
|
|
553
494
|
const aadDisplayName = resourceNameFactory_1.ResourceNameFactory.createCommonName(this.config.resourceNameSuffix, (_f = (_e = this.ctx) === null || _e === void 0 ? void 0 : _e.projectSettings) === null || _f === void 0 ? void 0 : _f.appName, constants_1.MaxLengths.AAD_DISPLAY_NAME);
|
|
554
495
|
botAuthCreds = await aadRegistration_1.AADRegistration.registerAADAppAndGetSecretByAppStudio(appStudioToken, aadDisplayName);
|
|
555
496
|
if (!this.config.scaffold.botId) {
|