@microsoft/teamsfx-core 1.7.0 → 1.7.1-alpha.42a29d71b.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 +3 -1
- package/build/common/constants.d.ts.map +1 -1
- package/build/common/constants.js +3 -1
- package/build/common/constants.js.map +1 -1
- package/build/common/featureFlags.d.ts +8 -0
- package/build/common/featureFlags.d.ts.map +1 -0
- package/build/common/featureFlags.js +43 -0
- package/build/common/featureFlags.js.map +1 -0
- package/build/common/index.d.ts +4 -3
- package/build/common/index.d.ts.map +1 -1
- package/build/common/index.js +4 -3
- package/build/common/index.js.map +1 -1
- package/build/common/local/localEnvManager.d.ts +1 -1
- package/build/common/local/localEnvManager.d.ts.map +1 -1
- package/build/common/local/localEnvManager.js +1 -1
- package/build/common/local/localEnvManager.js.map +1 -1
- package/build/common/local/localStateHelper.d.ts.map +1 -1
- package/build/common/local/localStateHelper.js +12 -0
- package/build/common/local/localStateHelper.js.map +1 -1
- package/build/common/local/portChecker.d.ts.map +1 -1
- package/build/common/local/portChecker.js +6 -1
- package/build/common/local/portChecker.js.map +1 -1
- package/build/common/projectSettingsHelper.d.ts +1 -1
- package/build/common/projectSettingsHelper.d.ts.map +1 -1
- package/build/common/projectSettingsHelper.js +6 -4
- package/build/common/projectSettingsHelper.js.map +1 -1
- package/build/common/samples-config.json +29 -15
- package/build/common/samples.d.ts +1 -1
- package/build/common/samples.d.ts.map +1 -1
- package/build/common/samples.js +3 -2
- package/build/common/samples.js.map +1 -1
- package/build/common/telemetry.d.ts +9 -0
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +9 -0
- package/build/common/telemetry.js.map +1 -1
- package/build/common/templates-config.json +2 -2
- package/build/common/tools.d.ts +3 -3
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +28 -28
- package/build/common/tools.js.map +1 -1
- package/build/core/FxCore.d.ts +3 -2
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.js +76 -19
- package/build/core/FxCore.js.map +1 -1
- package/build/core/environment.d.ts +1 -1
- package/build/core/environment.d.ts.map +1 -1
- package/build/core/environment.js +6 -1
- package/build/core/environment.js.map +1 -1
- package/build/core/error.d.ts +1 -0
- package/build/core/error.d.ts.map +1 -1
- package/build/core/error.js +5 -1
- package/build/core/error.js.map +1 -1
- package/build/core/globalVars.d.ts +0 -5
- package/build/core/globalVars.d.ts.map +1 -1
- package/build/core/globalVars.js +1 -9
- package/build/core/globalVars.js.map +1 -1
- package/build/core/middleware/aadManifestMigration.d.ts +3 -0
- package/build/core/middleware/aadManifestMigration.d.ts.map +1 -0
- package/build/core/middleware/aadManifestMigration.js +240 -0
- package/build/core/middleware/aadManifestMigration.js.map +1 -0
- package/build/core/middleware/consolidateLocalRemote.d.ts +2 -0
- package/build/core/middleware/consolidateLocalRemote.d.ts.map +1 -1
- package/build/core/middleware/consolidateLocalRemote.js +100 -55
- package/build/core/middleware/consolidateLocalRemote.js.map +1 -1
- package/build/core/middleware/errorHandler.d.ts.map +1 -1
- package/build/core/middleware/errorHandler.js +15 -3
- package/build/core/middleware/errorHandler.js.map +1 -1
- package/build/core/middleware/questionModel.d.ts.map +1 -1
- package/build/core/middleware/questionModel.js +11 -55
- package/build/core/middleware/questionModel.js.map +1 -1
- package/build/core/question.d.ts +2 -8
- package/build/core/question.d.ts.map +1 -1
- package/build/core/question.js +68 -52
- package/build/core/question.js.map +1 -1
- package/build/core/telemetry.d.ts +23 -0
- package/build/core/telemetry.d.ts.map +1 -0
- package/build/core/telemetry.js +46 -0
- package/build/core/telemetry.js.map +1 -0
- package/build/plugins/resource/aad/constants.d.ts +5 -0
- package/build/plugins/resource/aad/constants.d.ts.map +1 -1
- package/build/plugins/resource/aad/constants.js +5 -0
- package/build/plugins/resource/aad/constants.js.map +1 -1
- package/build/plugins/resource/aad/errors.d.ts +2 -0
- package/build/plugins/resource/aad/errors.d.ts.map +1 -1
- package/build/plugins/resource/aad/errors.js +15 -1
- package/build/plugins/resource/aad/errors.js.map +1 -1
- package/build/plugins/resource/aad/index.d.ts +2 -1
- package/build/plugins/resource/aad/index.d.ts.map +1 -1
- package/build/plugins/resource/aad/index.js +23 -0
- package/build/plugins/resource/aad/index.js.map +1 -1
- package/build/plugins/resource/aad/plugin.d.ts +3 -0
- package/build/plugins/resource/aad/plugin.d.ts.map +1 -1
- package/build/plugins/resource/aad/plugin.js +109 -19
- package/build/plugins/resource/aad/plugin.js.map +1 -1
- package/build/plugins/resource/aad/utils/configs.d.ts +2 -1
- package/build/plugins/resource/aad/utils/configs.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/configs.js +20 -3
- package/build/plugins/resource/aad/utils/configs.js.map +1 -1
- package/build/plugins/resource/aad/v2/index.d.ts +2 -1
- package/build/plugins/resource/aad/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/aad/v2/index.js +3 -0
- package/build/plugins/resource/aad/v2/index.js.map +1 -1
- package/build/plugins/resource/apiconnector/checker.d.ts +7 -0
- package/build/plugins/resource/apiconnector/checker.d.ts.map +1 -0
- package/build/plugins/resource/apiconnector/checker.js +73 -0
- package/build/plugins/resource/apiconnector/checker.js.map +1 -0
- package/build/plugins/resource/apiconnector/config.d.ts +23 -0
- package/build/plugins/resource/apiconnector/config.d.ts.map +1 -0
- package/build/plugins/resource/apiconnector/config.js +5 -0
- package/build/plugins/resource/apiconnector/config.js.map +1 -0
- package/build/plugins/resource/apiconnector/constants.d.ts +25 -1
- package/build/plugins/resource/apiconnector/constants.d.ts.map +1 -1
- package/build/plugins/resource/apiconnector/constants.js +33 -7
- package/build/plugins/resource/apiconnector/constants.js.map +1 -1
- package/build/plugins/resource/apiconnector/depsHandler.d.ts +13 -0
- package/build/plugins/resource/apiconnector/depsHandler.d.ts.map +1 -0
- package/build/plugins/resource/apiconnector/depsHandler.js +93 -0
- package/build/plugins/resource/apiconnector/depsHandler.js.map +1 -0
- package/build/plugins/resource/apiconnector/envHandler.d.ts +6 -4
- package/build/plugins/resource/apiconnector/envHandler.d.ts.map +1 -1
- package/build/plugins/resource/apiconnector/envHandler.js +57 -26
- package/build/plugins/resource/apiconnector/envHandler.js.map +1 -1
- package/build/plugins/resource/apiconnector/errors.d.ts +30 -8
- package/build/plugins/resource/apiconnector/errors.d.ts.map +1 -1
- package/build/plugins/resource/apiconnector/errors.js +35 -9
- package/build/plugins/resource/apiconnector/errors.js.map +1 -1
- package/build/plugins/resource/apiconnector/index.d.ts.map +1 -1
- package/build/plugins/resource/apiconnector/index.js +1 -8
- package/build/plugins/resource/apiconnector/index.js.map +1 -1
- package/build/plugins/resource/apiconnector/plugin.d.ts +16 -2
- package/build/plugins/resource/apiconnector/plugin.d.ts.map +1 -1
- package/build/plugins/resource/apiconnector/plugin.js +259 -37
- package/build/plugins/resource/apiconnector/plugin.js.map +1 -1
- package/build/plugins/resource/apiconnector/questions.d.ts +26 -4
- package/build/plugins/resource/apiconnector/questions.d.ts.map +1 -1
- package/build/plugins/resource/apiconnector/questions.js +103 -26
- package/build/plugins/resource/apiconnector/questions.js.map +1 -1
- package/build/plugins/resource/apiconnector/result.d.ts +16 -3
- package/build/plugins/resource/apiconnector/result.d.ts.map +1 -1
- package/build/plugins/resource/apiconnector/result.js +24 -5
- package/build/plugins/resource/apiconnector/result.js.map +1 -1
- package/build/plugins/resource/apiconnector/sampleHandler.d.ts +3 -3
- package/build/plugins/resource/apiconnector/sampleHandler.d.ts.map +1 -1
- package/build/plugins/resource/apiconnector/sampleHandler.js +14 -4
- package/build/plugins/resource/apiconnector/sampleHandler.js.map +1 -1
- package/build/plugins/resource/apiconnector/telemetry.d.ts +41 -0
- package/build/plugins/resource/apiconnector/telemetry.d.ts.map +1 -0
- package/build/plugins/resource/apiconnector/telemetry.js +69 -0
- package/build/plugins/resource/apiconnector/telemetry.js.map +1 -0
- package/build/plugins/resource/apiconnector/utils.d.ts +14 -20
- package/build/plugins/resource/apiconnector/utils.d.ts.map +1 -1
- package/build/plugins/resource/apiconnector/utils.js +63 -16
- package/build/plugins/resource/apiconnector/utils.js.map +1 -1
- package/build/plugins/resource/appstudio/appStudio.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/appStudio.js +6 -5
- package/build/plugins/resource/appstudio/appStudio.js.map +1 -1
- package/build/plugins/resource/appstudio/constants.d.ts +2 -0
- package/build/plugins/resource/appstudio/constants.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/constants.js +24 -1
- package/build/plugins/resource/appstudio/constants.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 +56 -11
- package/build/plugins/resource/appstudio/index.js.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts +2 -2
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.js +27 -5
- package/build/plugins/resource/appstudio/manifestTemplate.js.map +1 -1
- package/build/plugins/resource/appstudio/plugin.d.ts +1 -0
- package/build/plugins/resource/appstudio/plugin.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/plugin.js +6 -1
- package/build/plugins/resource/appstudio/plugin.js.map +1 -1
- package/build/plugins/resource/appstudio/utils/telemetry.d.ts +1 -0
- package/build/plugins/resource/appstudio/utils/telemetry.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/utils/telemetry.js +1 -0
- package/build/plugins/resource/appstudio/utils/telemetry.js.map +1 -1
- package/build/plugins/resource/appstudio/v2/index.d.ts +2 -0
- package/build/plugins/resource/appstudio/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/v2/index.js +5 -0
- package/build/plugins/resource/appstudio/v2/index.js.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.js +1 -1
- package/build/plugins/resource/appstudio/v3/index.js.map +1 -1
- package/build/plugins/resource/appstudio/v3/plugin.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/v3/plugin.js +5 -0
- package/build/plugins/resource/appstudio/v3/plugin.js.map +1 -1
- package/build/plugins/resource/bot/azureOps.d.ts +3 -2
- package/build/plugins/resource/bot/azureOps.d.ts.map +1 -1
- package/build/plugins/resource/bot/azureOps.js +29 -30
- package/build/plugins/resource/bot/azureOps.js.map +1 -1
- package/build/plugins/resource/bot/clientFactory.d.ts +0 -5
- package/build/plugins/resource/bot/clientFactory.d.ts.map +1 -1
- package/build/plugins/resource/bot/clientFactory.js +1 -29
- package/build/plugins/resource/bot/clientFactory.js.map +1 -1
- package/build/plugins/resource/bot/configs/teamsBotConfig.d.ts +1 -0
- package/build/plugins/resource/bot/configs/teamsBotConfig.d.ts.map +1 -1
- package/build/plugins/resource/bot/configs/teamsBotConfig.js +15 -13
- package/build/plugins/resource/bot/configs/teamsBotConfig.js.map +1 -1
- package/build/plugins/resource/bot/constants.d.ts +8 -9
- package/build/plugins/resource/bot/constants.d.ts.map +1 -1
- package/build/plugins/resource/bot/constants.js +9 -9
- package/build/plugins/resource/bot/constants.js.map +1 -1
- package/build/plugins/resource/bot/errors.d.ts +6 -18
- package/build/plugins/resource/bot/errors.d.ts.map +1 -1
- package/build/plugins/resource/bot/errors.js +16 -39
- package/build/plugins/resource/bot/errors.js.map +1 -1
- package/build/plugins/resource/bot/functionsHostedBot/deployMgr.d.ts +1 -1
- package/build/plugins/resource/bot/functionsHostedBot/deployMgr.d.ts.map +1 -1
- package/build/plugins/resource/bot/functionsHostedBot/deployMgr.js +10 -4
- package/build/plugins/resource/bot/functionsHostedBot/deployMgr.js.map +1 -1
- package/build/plugins/resource/bot/functionsHostedBot/plugin.d.ts.map +1 -1
- package/build/plugins/resource/bot/functionsHostedBot/plugin.js +4 -7
- package/build/plugins/resource/bot/functionsHostedBot/plugin.js.map +1 -1
- package/build/plugins/resource/bot/index.d.ts.map +1 -1
- package/build/plugins/resource/bot/index.js +4 -2
- package/build/plugins/resource/bot/index.js.map +1 -1
- package/build/plugins/resource/bot/languageStrategy.d.ts.map +1 -1
- package/build/plugins/resource/bot/languageStrategy.js +3 -1
- package/build/plugins/resource/bot/languageStrategy.js.map +1 -1
- package/build/plugins/resource/bot/plugin.d.ts.map +1 -1
- package/build/plugins/resource/bot/plugin.js +8 -3
- package/build/plugins/resource/bot/plugin.js.map +1 -1
- package/build/plugins/resource/bot/question.d.ts +5 -3
- package/build/plugins/resource/bot/question.d.ts.map +1 -1
- package/build/plugins/resource/bot/question.js +20 -2
- package/build/plugins/resource/bot/question.js.map +1 -1
- package/build/plugins/resource/bot/resources/messages.d.ts +2 -0
- package/build/plugins/resource/bot/resources/messages.d.ts.map +1 -1
- package/build/plugins/resource/bot/resources/messages.js +8 -0
- package/build/plugins/resource/bot/resources/messages.js.map +1 -1
- package/build/plugins/resource/bot/utils/common.d.ts +1 -0
- package/build/plugins/resource/bot/utils/common.d.ts.map +1 -1
- package/build/plugins/resource/bot/utils/common.js +5 -1
- package/build/plugins/resource/bot/utils/common.js.map +1 -1
- package/build/plugins/resource/bot/utils/zipDeploy.js +1 -1
- package/build/plugins/resource/bot/utils/zipDeploy.js.map +1 -1
- package/build/plugins/resource/bot/v3/index.d.ts.map +1 -1
- package/build/plugins/resource/bot/v3/index.js +2 -1
- package/build/plugins/resource/bot/v3/index.js.map +1 -1
- package/build/plugins/resource/frontend/constants.d.ts +4 -0
- package/build/plugins/resource/frontend/constants.d.ts.map +1 -1
- package/build/plugins/resource/frontend/constants.js +6 -2
- package/build/plugins/resource/frontend/constants.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/plugin.js +1 -1
- package/build/plugins/resource/frontend/dotnet/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/env.js +2 -2
- package/build/plugins/resource/frontend/env.js.map +1 -1
- package/build/plugins/resource/frontend/ops/deploy.d.ts +3 -5
- package/build/plugins/resource/frontend/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/frontend/ops/deploy.js +41 -7
- package/build/plugins/resource/frontend/ops/deploy.js.map +1 -1
- package/build/plugins/resource/frontend/plugin.d.ts.map +1 -1
- package/build/plugins/resource/frontend/plugin.js +5 -6
- 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 +4 -4
- package/build/plugins/resource/frontend/resources/errors.js.map +1 -1
- package/build/plugins/resource/frontend/resources/templateInfo.js +1 -1
- package/build/plugins/resource/frontend/resources/templateInfo.js.map +1 -1
- package/build/plugins/resource/frontend/utils/progress-helper.d.ts +2 -2
- package/build/plugins/resource/frontend/utils/progress-helper.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils/progress-helper.js +4 -4
- package/build/plugins/resource/frontend/utils/progress-helper.js.map +1 -1
- package/build/plugins/resource/frontend/v3/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/v3/index.js +10 -13
- package/build/plugins/resource/frontend/v3/index.js.map +1 -1
- package/build/plugins/resource/spfx/depsChecker/yoChecker.d.ts.map +1 -1
- package/build/plugins/resource/spfx/depsChecker/yoChecker.js +6 -0
- package/build/plugins/resource/spfx/depsChecker/yoChecker.js.map +1 -1
- package/build/plugins/resource/spfx/index.d.ts.map +1 -1
- package/build/plugins/resource/spfx/index.js +0 -5
- 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 +59 -133
- package/build/plugins/resource/spfx/plugin.js.map +1 -1
- package/build/plugins/resource/spfx/utils/questions.d.ts.map +1 -1
- package/build/plugins/resource/spfx/utils/questions.js +5 -11
- package/build/plugins/resource/spfx/utils/questions.js.map +1 -1
- package/build/plugins/resource/sql/constants.d.ts +2 -4
- package/build/plugins/resource/sql/constants.d.ts.map +1 -1
- package/build/plugins/resource/sql/constants.js +2 -4
- package/build/plugins/resource/sql/constants.js.map +1 -1
- package/build/plugins/resource/sql/errors.d.ts.map +1 -1
- package/build/plugins/resource/sql/errors.js +29 -29
- package/build/plugins/resource/sql/errors.js.map +1 -1
- package/build/plugins/resource/sql/index.d.ts.map +1 -1
- package/build/plugins/resource/sql/index.js +1 -1
- package/build/plugins/resource/sql/index.js.map +1 -1
- package/build/plugins/resource/sql/plugin.d.ts.map +1 -1
- package/build/plugins/resource/sql/plugin.js +24 -11
- package/build/plugins/resource/sql/plugin.js.map +1 -1
- package/build/plugins/resource/sql/sqlClient.d.ts.map +1 -1
- package/build/plugins/resource/sql/sqlClient.js +7 -10
- package/build/plugins/resource/sql/sqlClient.js.map +1 -1
- package/build/plugins/resource/sql/utils/dialogUtils.d.ts +0 -1
- package/build/plugins/resource/sql/utils/dialogUtils.d.ts.map +1 -1
- package/build/plugins/resource/sql/utils/dialogUtils.js +0 -1
- package/build/plugins/resource/sql/utils/dialogUtils.js.map +1 -1
- package/build/plugins/solution/fx-solution/arm.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/arm.js +15 -9
- package/build/plugins/solution/fx-solution/arm.js.map +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.js +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/constants.d.ts +19 -2
- package/build/plugins/solution/fx-solution/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/constants.js +22 -1
- package/build/plugins/solution/fx-solution/constants.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 +1 -46
- package/build/plugins/solution/fx-solution/debug/util/launch.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/util/launchNext.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/util/launchNext.js +0 -26
- package/build/plugins/solution/fx-solution/debug/util/launchNext.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/util/tasksNext.js +1 -1
- package/build/plugins/solution/fx-solution/debug/util/tasksNext.js.map +1 -1
- package/build/plugins/solution/fx-solution/index.d.ts +1 -0
- package/build/plugins/solution/fx-solution/index.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/index.js +1 -0
- package/build/plugins/solution/fx-solution/index.js.map +1 -1
- package/build/plugins/solution/fx-solution/question.d.ts +8 -3
- package/build/plugins/solution/fx-solution/question.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/question.js +70 -29
- package/build/plugins/solution/fx-solution/question.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 +31 -8
- package/build/plugins/solution/fx-solution/v2/deploy.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts +2 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js +160 -95
- 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 +123 -65
- package/build/plugins/solution/fx-solution/v2/getQuestions.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 +22 -9
- package/build/plugins/solution/fx-solution/v2/provision.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.js +9 -1
- package/build/plugins/solution/fx-solution/v2/utils.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provision.d.ts +1 -0
- package/build/plugins/solution/fx-solution/v3/provision.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provision.js +18 -1
- package/build/plugins/solution/fx-solution/v3/provision.js.map +1 -1
- package/package.json +5 -4
- package/resource/aad-manifest-change-logs.md +27 -0
- package/resource/package.nls.json +150 -72
- package/resource/unify-config-change-logs.md +26 -0
- package/templates/core/README.md +46 -0
- package/templates/fallback/blazor-base.csharp.default.zip +0 -0
- package/templates/fallback/bot.csharp.default.zip +0 -0
- package/templates/fallback/bot.js.command-and-response.zip +0 -0
- package/templates/fallback/bot.js.default.zip +0 -0
- package/templates/fallback/bot.js.m365.zip +0 -0
- package/templates/fallback/bot.js.notification-function-base.zip +0 -0
- package/templates/fallback/bot.js.notification-restify.zip +0 -0
- package/templates/fallback/bot.js.notification-trigger-http.zip +0 -0
- package/templates/fallback/bot.js.notification-trigger-timer.zip +0 -0
- package/templates/fallback/bot.ts.command-and-response.zip +0 -0
- package/templates/fallback/bot.ts.default.zip +0 -0
- package/templates/fallback/bot.ts.m365.zip +0 -0
- package/templates/fallback/bot.ts.notification-function-base.zip +0 -0
- package/templates/fallback/bot.ts.notification-restify.zip +0 -0
- package/templates/fallback/bot.ts.notification-trigger-http.zip +0 -0
- package/templates/fallback/bot.ts.notification-trigger-timer.zip +0 -0
- package/templates/fallback/bot.ts.notification.zip +0 -0
- package/templates/fallback/function-base.js.default.zip +0 -0
- package/templates/fallback/function-base.ts.default.zip +0 -0
- package/templates/fallback/function-triggers.js.HTTPTrigger.zip +0 -0
- package/templates/fallback/function-triggers.ts.HTTPTrigger.zip +0 -0
- package/templates/fallback/tab.csharp.default.zip +0 -0
- package/templates/fallback/tab.js.default.zip +0 -0
- package/templates/fallback/tab.js.m365.zip +0 -0
- package/templates/fallback/tab.js.non-sso.zip +0 -0
- package/templates/fallback/tab.ts.default.zip +0 -0
- package/templates/fallback/tab.ts.m365.zip +0 -0
- package/templates/fallback/tab.ts.non-sso.zip +0 -0
- package/templates/plugins/resource/aad/auth/bot/README.md +17 -0
- package/templates/plugins/resource/aad/auth/bot/js/public/auth-end.html +65 -0
- package/templates/plugins/resource/aad/auth/bot/js/public/auth-start.html +177 -0
- package/templates/plugins/resource/aad/auth/bot/js/sso/showUserInfo.js +23 -0
- package/templates/plugins/resource/aad/auth/bot/js/sso/ssoDialog.js +176 -0
- package/templates/plugins/resource/aad/auth/bot/js/sso/teamsSsoBot.js +57 -0
- package/templates/plugins/resource/aad/auth/bot/ts/public/auth-end.html +65 -0
- package/templates/plugins/resource/aad/auth/bot/ts/public/auth-start.html +177 -0
- package/templates/plugins/resource/aad/auth/bot/ts/sso/showUserInfo.ts +24 -0
- package/templates/plugins/resource/aad/auth/bot/ts/sso/ssoDialog.ts +182 -0
- package/templates/plugins/resource/aad/auth/bot/ts/sso/teamsSsoBot.ts +69 -0
- package/templates/plugins/resource/aad/auth/tab/README.md +15 -0
- package/templates/plugins/resource/aad/auth/tab/js/public/auth-end.html +58 -0
- package/templates/plugins/resource/aad/auth/tab/js/public/auth-start.html +57 -0
- package/templates/plugins/resource/aad/auth/tab/js/sso/GetUserProfile.jsx +34 -0
- package/templates/plugins/resource/aad/auth/tab/ts/public/auth-end.html +58 -0
- package/templates/plugins/resource/aad/auth/tab/ts/public/auth-start.html +57 -0
- package/templates/plugins/resource/aad/auth/tab/ts/sso/GetUserProfile.tsx +34 -0
- package/templates/plugins/resource/aad/manifest/aad.template.json +1 -14
- package/templates/plugins/resource/apiconnector/package.json +5 -0
- package/templates/plugins/resource/apiconnector/sample/footerComment.template +20 -0
- package/templates/plugins/resource/apiconnector/sample/headerComment.template +28 -0
- package/templates/plugins/resource/apiconnector/sample/js/aad.template +26 -0
- package/templates/plugins/resource/apiconnector/sample/js/apikey.template +19 -0
- package/templates/plugins/resource/apiconnector/sample/js/basic.template +14 -0
- package/templates/plugins/resource/apiconnector/sample/js/cert.template +15 -0
- package/templates/plugins/resource/apiconnector/sample/js/custom.template +39 -0
- package/templates/plugins/resource/apiconnector/sample/ts/aad.template +31 -0
- package/templates/plugins/resource/apiconnector/sample/ts/apikey.template +16 -0
- package/templates/plugins/resource/apiconnector/sample/ts/basic.template +14 -0
- package/templates/plugins/resource/apiconnector/sample/ts/cert.template +17 -0
- package/templates/plugins/resource/apiconnector/sample/ts/custom.template +42 -0
- package/templates/plugins/resource/bot/bicep/botProvision.template.bicep +9 -0
- package/templates/plugins/resource/bot/bicep/funcHostedBotProvision.template.bicep +2 -0
- package/templates/plugins/resource/function/bicep/functionProvision.template.bicep +2 -0
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthProvision.template.bicep +4 -0
- package/templates/plugins/resource/spfx/solution/README.md +3 -3
- package/templates/plugins/resource/webapp/bicep/webappProvision.template.bicep +2 -0
- package/templates/plugins/solution/v1/README.md +1 -1
- package/templates/core/README-auto-generated.md +0 -31
- package/templates/fallback/bot-msgext.csharp.default.zip +0 -0
- package/templates/fallback/bot-msgext.js.default.zip +0 -0
- package/templates/fallback/bot-msgext.ts.default.zip +0 -0
- package/templates/fallback/msgext.js.default.zip +0 -0
- package/templates/fallback/msgext.ts.default.zip +0 -0
- package/templates/plugins/resource/apiconnector/sample/js/api-connector.template +0 -30
- package/templates/plugins/resource/apiconnector/sample/ts/api-connector.template +0 -30
- package/templates/plugins/resource/spfx/solution/_gitignore +0 -33
- package/templates/plugins/resource/spfx/solution/config/config.json +0 -19
- package/templates/plugins/resource/spfx/solution/config/copy-assets.json +0 -4
- package/templates/plugins/resource/spfx/solution/config/deploy-azure-storage.json +0 -7
- package/templates/plugins/resource/spfx/solution/config/package-solution.json +0 -21
- package/templates/plugins/resource/spfx/solution/config/serve.json +0 -10
- package/templates/plugins/resource/spfx/solution/config/write-manifests.json +0 -4
- package/templates/plugins/resource/spfx/solution/gulpfile.js +0 -16
- package/templates/plugins/resource/spfx/solution/manifest.json +0 -62
- package/templates/plugins/resource/spfx/solution/src/index.ts +0 -1
- package/templates/plugins/resource/spfx/solution/tsconfig.json +0 -35
- package/templates/plugins/resource/spfx/solution/tslint.json +0 -30
- package/templates/plugins/resource/spfx/webpart/base/images/color.png +0 -0
- package/templates/plugins/resource/spfx/webpart/base/images/outline.png +0 -0
- package/templates/plugins/resource/spfx/webpart/base/loc/en-us.js +0 -7
- package/templates/plugins/resource/spfx/webpart/base/loc/mystrings.d.ts +0 -10
- package/templates/plugins/resource/spfx/webpart/base/{componentClassName}.manifest.json +0 -27
- package/templates/plugins/resource/spfx/webpart/none/package.json +0 -28
- package/templates/plugins/resource/spfx/webpart/none/{componentClassName}.module.scss +0 -74
- package/templates/plugins/resource/spfx/webpart/none/{componentClassName}.ts +0 -61
- package/templates/plugins/resource/spfx/webpart/react/components/I{componentName}Props.ts +0 -3
- package/templates/plugins/resource/spfx/webpart/react/components/{componentName}.module.scss +0 -74
- package/templates/plugins/resource/spfx/webpart/react/components/{componentName}.tsx +0 -25
- package/templates/plugins/resource/spfx/webpart/react/package.json +0 -33
- package/templates/plugins/resource/spfx/webpart/react/{componentClassName}.ts +0 -60
|
@@ -1,35 +1,57 @@
|
|
|
1
|
+
import { ApiConnectionMsg } from "./result";
|
|
1
2
|
export declare class ErrorMessage {
|
|
3
|
+
static getMessages(key: string, ...params: any[]): ApiConnectionMsg;
|
|
2
4
|
static readonly InvalidProjectError: {
|
|
3
5
|
name: string;
|
|
4
|
-
message: () =>
|
|
6
|
+
message: () => ApiConnectionMsg;
|
|
5
7
|
};
|
|
6
8
|
static readonly ApiConnectorInputError: {
|
|
7
9
|
name: string;
|
|
8
|
-
message: () =>
|
|
10
|
+
message: (key: string) => ApiConnectionMsg;
|
|
9
11
|
};
|
|
10
12
|
static readonly ApiConnectorPathError: {
|
|
11
13
|
name: string;
|
|
12
|
-
message: (pathName: string) =>
|
|
14
|
+
message: (pathName: string) => ApiConnectionMsg;
|
|
13
15
|
};
|
|
14
16
|
static readonly ApiConnectorFileCreateFailError: {
|
|
15
17
|
name: string;
|
|
16
|
-
message: (pathName: string) =>
|
|
18
|
+
message: (pathName: string) => ApiConnectionMsg;
|
|
17
19
|
};
|
|
18
20
|
static readonly ApiConnectorRouteError: {
|
|
19
21
|
name: string;
|
|
20
|
-
message: (funcName: string) =>
|
|
22
|
+
message: (funcName: string) => ApiConnectionMsg;
|
|
21
23
|
};
|
|
22
24
|
static readonly SampleCodeCreateFailError: {
|
|
23
25
|
name: string;
|
|
24
|
-
message: (pathName: string, reason: string) =>
|
|
26
|
+
message: (pathName: string, reason: string) => ApiConnectionMsg;
|
|
25
27
|
};
|
|
26
28
|
static readonly NoValidCompoentExistError: {
|
|
27
29
|
name: string;
|
|
28
|
-
message: () =>
|
|
30
|
+
message: () => ApiConnectionMsg;
|
|
29
31
|
};
|
|
30
32
|
static readonly NoActivePluginsExistError: {
|
|
31
33
|
name: string;
|
|
32
|
-
message: () =>
|
|
34
|
+
message: () => ApiConnectionMsg;
|
|
35
|
+
};
|
|
36
|
+
static readonly generateApiConFilesError: {
|
|
37
|
+
name: string;
|
|
38
|
+
message: (reason: string) => ApiConnectionMsg;
|
|
39
|
+
};
|
|
40
|
+
static readonly sdkVersionImcompatibleError: {
|
|
41
|
+
name: string;
|
|
42
|
+
message: (component: string, localVersion: string, targetVersion: string) => ApiConnectionMsg;
|
|
43
|
+
};
|
|
44
|
+
static readonly localPkgFileNotExistError: {
|
|
45
|
+
name: string;
|
|
46
|
+
message: (component: string) => ApiConnectionMsg;
|
|
47
|
+
};
|
|
48
|
+
static readonly componentNotExistError: {
|
|
49
|
+
name: string;
|
|
50
|
+
message: (component: string) => ApiConnectionMsg;
|
|
51
|
+
};
|
|
52
|
+
static readonly envVarExistError: {
|
|
53
|
+
name: string;
|
|
54
|
+
message: (varName: string) => ApiConnectionMsg;
|
|
33
55
|
};
|
|
34
56
|
}
|
|
35
57
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/plugins/resource/apiconnector/errors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/plugins/resource/apiconnector/errors.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,qBAAa,YAAY;WACT,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,EAAE,GAAG,gBAAgB;IAM1E,gBAAuB,mBAAmB;;uBAE3B,gBAAgB;MAE7B;IACF,gBAAuB,sBAAsB;;uBAE5B,MAAM,KAAG,gBAAgB;MAKxC;IAEF,gBAAuB,qBAAqB;;4BAEtB,MAAM,KAAG,gBAAgB;MAK7C;IAEF,gBAAuB,+BAA+B;;4BAEhC,MAAM,KAAG,gBAAgB;MAK7C;IAEF,gBAAuB,sBAAsB;;4BAEvB,MAAM,KAAG,gBAAgB;MAK7C;IAEF,gBAAuB,yBAAyB;;4BAE1B,MAAM,UAAU,MAAM,KAAG,gBAAgB;MAM7D;IAEF,gBAAuB,yBAAyB;;uBAEjC,gBAAgB;MAE7B;IAEF,gBAAuB,yBAAyB;;uBAEjC,gBAAgB;MAE7B;IAEF,gBAAuB,wBAAwB;;0BAE3B,MAAM,KAAG,gBAAgB;MAK3C;IAEF,gBAAuB,2BAA2B;;6BAE3B,MAAM,gBAAgB,MAAM,iBAAiB,MAAM,KAAG,gBAAgB;MAO3F;IAEF,gBAAuB,yBAAyB;;6BAEzB,MAAM,KAAG,gBAAgB;MAK9C;IAEF,gBAAuB,sBAAsB;;6BAEtB,MAAM,KAAG,gBAAgB;MAK9C;IAEF,gBAAuB,gBAAgB;;2BAElB,MAAM,KAAG,gBAAgB;MAE5C;CACH"}
|
|
@@ -5,38 +5,64 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.ErrorMessage = void 0;
|
|
6
6
|
const localizeUtils_1 = require("../../../common/localizeUtils");
|
|
7
7
|
class ErrorMessage {
|
|
8
|
+
static getMessages(key, ...params) {
|
|
9
|
+
return {
|
|
10
|
+
defaultMsg: localizeUtils_1.getDefaultString(key, ...params),
|
|
11
|
+
localizedMsg: localizeUtils_1.getLocalizedString(key, ...params),
|
|
12
|
+
};
|
|
13
|
+
}
|
|
8
14
|
}
|
|
9
15
|
exports.ErrorMessage = ErrorMessage;
|
|
10
16
|
ErrorMessage.InvalidProjectError = {
|
|
11
17
|
name: "InvalidProjectError",
|
|
12
|
-
message: () =>
|
|
18
|
+
message: () => ErrorMessage.getMessages(`error.apiConnector.${ErrorMessage.InvalidProjectError.name}`),
|
|
13
19
|
};
|
|
14
20
|
ErrorMessage.ApiConnectorInputError = {
|
|
15
21
|
name: "ApiConnectorInputError",
|
|
16
|
-
message: () =>
|
|
22
|
+
message: (key) => ErrorMessage.getMessages(`error.apiConnector.${ErrorMessage.ApiConnectorInputError.name}`, key),
|
|
17
23
|
};
|
|
18
24
|
ErrorMessage.ApiConnectorPathError = {
|
|
19
25
|
name: "ApiConnectorPathNotExistError",
|
|
20
|
-
message: (pathName) =>
|
|
26
|
+
message: (pathName) => ErrorMessage.getMessages(`error.apiConnector.${ErrorMessage.ApiConnectorPathError.name}`, pathName),
|
|
21
27
|
};
|
|
22
28
|
ErrorMessage.ApiConnectorFileCreateFailError = {
|
|
23
29
|
name: "ApiConnectorCreateFileFail",
|
|
24
|
-
message: (pathName) =>
|
|
30
|
+
message: (pathName) => ErrorMessage.getMessages(`error.apiConnector.${ErrorMessage.ApiConnectorFileCreateFailError.name}`, pathName),
|
|
25
31
|
};
|
|
26
32
|
ErrorMessage.ApiConnectorRouteError = {
|
|
27
33
|
name: "ApiConnectorFunctionRouteError",
|
|
28
|
-
message: (funcName) =>
|
|
34
|
+
message: (funcName) => ErrorMessage.getMessages(`error.apiConnector.${ErrorMessage.ApiConnectorRouteError.name}`, funcName),
|
|
29
35
|
};
|
|
30
36
|
ErrorMessage.SampleCodeCreateFailError = {
|
|
31
37
|
name: "SampleCodeCreateFailError",
|
|
32
|
-
message: (pathName, reason) =>
|
|
38
|
+
message: (pathName, reason) => ErrorMessage.getMessages(`error.apiConnector.${ErrorMessage.SampleCodeCreateFailError.name}`, pathName, reason),
|
|
33
39
|
};
|
|
34
40
|
ErrorMessage.NoValidCompoentExistError = {
|
|
35
|
-
name: "
|
|
36
|
-
message: () =>
|
|
41
|
+
name: "NoBotOrFunctionExistError",
|
|
42
|
+
message: () => ErrorMessage.getMessages(`error.apiConnector.${ErrorMessage.NoValidCompoentExistError.name}`),
|
|
37
43
|
};
|
|
38
44
|
ErrorMessage.NoActivePluginsExistError = {
|
|
39
45
|
name: "NoActivePluginsExistError",
|
|
40
|
-
message: () =>
|
|
46
|
+
message: () => ErrorMessage.getMessages(`error.apiConnector.${ErrorMessage.NoActivePluginsExistError.name}`),
|
|
47
|
+
};
|
|
48
|
+
ErrorMessage.generateApiConFilesError = {
|
|
49
|
+
name: "ScaffoldApiFilesError",
|
|
50
|
+
message: (reason) => ErrorMessage.getMessages(`error.apiConnector.${ErrorMessage.generateApiConFilesError.name}`, reason),
|
|
51
|
+
};
|
|
52
|
+
ErrorMessage.sdkVersionImcompatibleError = {
|
|
53
|
+
name: "SDKVersionImcompatibleError",
|
|
54
|
+
message: (component, localVersion, targetVersion) => ErrorMessage.getMessages(`error.apiConnector.${ErrorMessage.sdkVersionImcompatibleError.name}`, component, localVersion, targetVersion),
|
|
55
|
+
};
|
|
56
|
+
ErrorMessage.localPkgFileNotExistError = {
|
|
57
|
+
name: "pkgFileNotExistError",
|
|
58
|
+
message: (component) => ErrorMessage.getMessages(`error.apiConnector.${ErrorMessage.localPkgFileNotExistError.name}`, component),
|
|
59
|
+
};
|
|
60
|
+
ErrorMessage.componentNotExistError = {
|
|
61
|
+
name: "componentNotExistError",
|
|
62
|
+
message: (component) => ErrorMessage.getMessages(`error.apiConnector.${ErrorMessage.componentNotExistError.name}`, component),
|
|
63
|
+
};
|
|
64
|
+
ErrorMessage.envVarExistError = {
|
|
65
|
+
name: "envVarExistError",
|
|
66
|
+
message: (varName) => ErrorMessage.getMessages(`error.apiConnector.${ErrorMessage.envVarExistError.name}`, varName),
|
|
41
67
|
};
|
|
42
68
|
//# sourceMappingURL=errors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../src/plugins/resource/apiconnector/errors.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AACb,
|
|
1
|
+
{"version":3,"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SAAiB,EAAoB,EAAE,CAC/C,YAAY,CAAC,WAAW,CACtB,sBAAsB,YAAY,CAAC,yBAAyB,CAAC,IAAI,EAAE,EACnE,SAAS,CACV;CACJ,CAAC;AAEqB,mCAAsB,GAAG;IAC9C,IAAI,EAAE,wBAAwB;IAC9B,OAAO,EAAE,CAAC,SAAiB,EAAoB,EAAE,CAC/C,YAAY,CAAC,WAAW,CACtB,sBAAsB,YAAY,CAAC,sBAAsB,CAAC,IAAI,EAAE,EAChE,SAAS,CACV;CACJ,CAAC;AAEqB,6BAAgB,GAAG;IACxC,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,CAAC,OAAe,EAAoB,EAAE,CAC7C,YAAY,CAAC,WAAW,CAAC,sBAAsB,YAAY,CAAC,gBAAgB,CAAC,IAAI,EAAE,EAAE,OAAO,CAAC;CAChG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/resource/apiconnector/index.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/resource/apiconnector/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAChG,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAG1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAiB,MAAM,UAAU,CAAC;AAG7D,qBACa,oBAAqB,YAAW,cAAc;IACzD,IAAI,SAA+B;IACnC,WAAW,SAA6B;IACxC,gBAAgB,EAAE,gBAAgB,CAA0B;IAE5D,QAAQ,CAAC,eAAe,EAAE,eAAe,GAAG,OAAO;IAItC,uBAAuB,CAClC,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,YAAY,CAAC,EAAE,CAAC,SAAS,CAAC,EACnC,aAAa,EAAE,aAAa,GAC3B,OAAO,CAAC,kBAAkB,CAAC;IAIxB,eAAe,CACnB,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,EACV,aAAa,EAAE,IAAI,EACnB,OAAO,EAAE,EAAE,CAAC,SAAS,EACrB,aAAa,EAAE,aAAa,GAC3B,OAAO,CAAC,kBAAkB,CAAC;CAU/B"}
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.ApiConnectorPluginV2 = void 0;
|
|
6
6
|
const tslib_1 = require("tslib");
|
|
7
|
-
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
8
7
|
const typedi_1 = require("typedi");
|
|
9
8
|
const ResourcePluginContainer_1 = require("../../solution/fx-solution/ResourcePluginContainer");
|
|
10
9
|
const plugin_1 = require("./plugin");
|
|
@@ -20,13 +19,7 @@ let ApiConnectorPluginV2 = class ApiConnectorPluginV2 {
|
|
|
20
19
|
return true;
|
|
21
20
|
}
|
|
22
21
|
async getQuestionsForUserTask(ctx, inputs, func, envInfo, tokenProvider) {
|
|
23
|
-
|
|
24
|
-
const activeResourcePlugins = (_a = ctx.projectSetting.solutionSettings) === null || _a === void 0 ? void 0 : _a.activeResourcePlugins;
|
|
25
|
-
if (!activeResourcePlugins) {
|
|
26
|
-
throw result_1.ResultFactory.UserError(errors_1.ErrorMessage.NoActivePluginsExistError.name, errors_1.ErrorMessage.NoActivePluginsExistError.message());
|
|
27
|
-
}
|
|
28
|
-
const res = this.apiConnectorImpl.generateQuestion(activeResourcePlugins);
|
|
29
|
-
return teamsfx_api_1.ok(res);
|
|
22
|
+
return await this.apiConnectorImpl.generateQuestion(ctx, inputs);
|
|
30
23
|
}
|
|
31
24
|
async executeUserTask(ctx, inputs, func, localSettings, envInfo, tokenProvider) {
|
|
32
25
|
if (func.method != "connectExistingApi") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/plugins/resource/apiconnector/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/plugins/resource/apiconnector/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;;AAGb,mCAAiC;AACjC,gGAAuF;AACvF,qCAA4C;AAE5C,qCAA6D;AAC7D,qCAAwC;AAGxC,IAAa,oBAAoB,GAAjC,MAAa,oBAAoB;IAAjC;QACE,SAAI,GAAG,2BAA2B,CAAC;QACnC,gBAAW,GAAG,yBAAyB,CAAC;QACxC,qBAAgB,GAAqB,IAAI,yBAAgB,EAAE,CAAC;IAiC9D,CAAC;IA/BC,QAAQ,CAAC,eAAgC;QACvC,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,uBAAuB,CAClC,GAAY,EACZ,MAAc,EACd,IAAU,EACV,OAAmC,EACnC,aAA4B;QAE5B,OAAO,MAAM,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IACnE,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,GAAY,EACZ,MAAc,EACd,IAAU,EACV,aAAmB,EACnB,OAAqB,EACrB,aAA4B;QAE5B,IAAI,IAAI,CAAC,MAAM,IAAI,oBAAoB,EAAE;YACvC,MAAM,sBAAa,CAAC,WAAW,CAC7B,qBAAY,CAAC,sBAAsB,CAAC,IAAI,EACxC,qBAAY,CAAC,sBAAsB,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CACzD,CAAC;SACH;QACD,MAAM,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;QAClD,OAAO,sBAAa,CAAC,OAAO,EAAE,CAAC;IACjC,CAAC;CACF,CAAA;AApCY,oBAAoB;IADhC,gBAAO,CAAC,2CAAiB,CAAC,kBAAkB,CAAC;GACjC,oBAAoB,CAoChC;AApCY,oDAAoB"}
|
|
@@ -1,11 +1,25 @@
|
|
|
1
1
|
import { Inputs, QTreeNode } from "@microsoft/teamsfx-api";
|
|
2
2
|
import { Context } from "@microsoft/teamsfx-api/build/v2";
|
|
3
|
-
import {
|
|
3
|
+
import { ApiConnectorConfiguration } from "./config";
|
|
4
|
+
import { ApiConnectorResult, QesutionResult } from "./result";
|
|
4
5
|
export declare class ApiConnectorImpl {
|
|
5
6
|
scaffold(ctx: Context, inputs: Inputs): Promise<ApiConnectorResult>;
|
|
7
|
+
private sendErrorTelemetry;
|
|
8
|
+
private scaffoldInComponent;
|
|
9
|
+
private backupExistingFiles;
|
|
10
|
+
private removeSampleFilesWhenRestore;
|
|
11
|
+
private getAuthConfigFromInputs;
|
|
6
12
|
private getUserDataFromInputs;
|
|
7
13
|
private scaffoldEnvFileToComponent;
|
|
8
14
|
private scaffoldSampleCodeToComponent;
|
|
9
|
-
|
|
15
|
+
private addSDKDependency;
|
|
16
|
+
generateQuestion(ctx: Context, inputs: Inputs): Promise<QesutionResult>;
|
|
17
|
+
buildAuthTypeQuestion(ctx: Context, inputs: Inputs): QTreeNode;
|
|
18
|
+
buildBasicAuthQuestion(): QTreeNode;
|
|
19
|
+
buildAADAuthQuestion(ctx: Context, inputs: Inputs): QTreeNode;
|
|
20
|
+
buildAPIKeyAuthQuestion(): QTreeNode;
|
|
21
|
+
getTelemetryProperties(config: ApiConnectorConfiguration): {
|
|
22
|
+
[key: string]: string;
|
|
23
|
+
};
|
|
10
24
|
}
|
|
11
25
|
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/resource/apiconnector/plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/resource/apiconnector/plugin.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,MAAM,EACN,SAAS,EAMV,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAS1D,OAAO,EACL,yBAAyB,EAK1B,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,kBAAkB,EAAiB,cAAc,EAAc,MAAM,UAAU,CAAC;AA+BzF,qBAAa,gBAAgB;IACd,QAAQ,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAiIhF,OAAO,CAAC,kBAAkB;YASZ,mBAAmB;YA2BnB,mBAAmB;YAgBnB,4BAA4B;IAW1C,OAAO,CAAC,uBAAuB;IAyD/B,OAAO,CAAC,qBAAqB;YAiBf,0BAA0B;YAU1B,6BAA6B;YAU7B,gBAAgB;IAQjB,gBAAgB,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAkD7E,qBAAqB,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS;IAoB9D,sBAAsB,IAAI,SAAS;IAMnC,oBAAoB,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS;IAuB7D,uBAAuB,IAAI,SAAS;IAepC,sBAAsB,CAAC,MAAM,EAAE,yBAAyB,GAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE;CAsB5F"}
|
|
@@ -3,77 +3,242 @@
|
|
|
3
3
|
"use strict";
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.ApiConnectorImpl = void 0;
|
|
6
|
+
const tslib_1 = require("tslib");
|
|
7
|
+
const path = tslib_1.__importStar(require("path"));
|
|
8
|
+
const fs = tslib_1.__importStar(require("fs-extra"));
|
|
6
9
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
7
|
-
const
|
|
10
|
+
const utils_1 = require("./utils");
|
|
8
11
|
const result_1 = require("./result");
|
|
12
|
+
const constants_1 = require("./constants");
|
|
9
13
|
const envHandler_1 = require("./envHandler");
|
|
10
14
|
const errors_1 = require("./errors");
|
|
11
15
|
const constants_2 = require("../../../common/constants");
|
|
12
16
|
const questions_1 = require("./questions");
|
|
13
17
|
const localizeUtils_1 = require("../../../common/localizeUtils");
|
|
14
18
|
const sampleHandler_1 = require("./sampleHandler");
|
|
19
|
+
const common_1 = require("../../../common");
|
|
20
|
+
const utils_2 = require("../../solution/fx-solution/v2/utils");
|
|
21
|
+
const depsHandler_1 = require("./depsHandler");
|
|
22
|
+
const checker_1 = require("./checker");
|
|
23
|
+
const telemetry_1 = require("./telemetry");
|
|
15
24
|
class ApiConnectorImpl {
|
|
16
25
|
async scaffold(ctx, inputs) {
|
|
26
|
+
var _a, _b, _c;
|
|
17
27
|
if (!inputs.projectPath) {
|
|
18
28
|
throw result_1.ResultFactory.UserError(errors_1.ErrorMessage.InvalidProjectError.name, errors_1.ErrorMessage.InvalidProjectError.message());
|
|
19
29
|
}
|
|
20
30
|
const projectPath = inputs.projectPath;
|
|
21
31
|
const languageType = ctx.projectSetting.programmingLanguage;
|
|
22
32
|
const config = this.getUserDataFromInputs(inputs);
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
33
|
+
const telemetryProperties = this.getTelemetryProperties(config);
|
|
34
|
+
telemetry_1.TelemetryUtils.init(ctx.telemetryReporter);
|
|
35
|
+
telemetry_1.TelemetryUtils.sendEvent(telemetry_1.Telemetry.stage.scaffold + telemetry_1.Telemetry.startSuffix, undefined, telemetryProperties);
|
|
36
|
+
// CLI checker
|
|
37
|
+
const activePlugins = (_a = ctx.projectSetting.solutionSettings) === null || _a === void 0 ? void 0 : _a.activeResourcePlugins;
|
|
38
|
+
if (!activePlugins.includes(constants_2.ResourcePlugins.Bot) &&
|
|
39
|
+
config.ComponentType.includes(constants_1.ComponentType.BOT)) {
|
|
40
|
+
throw result_1.ResultFactory.UserError(errors_1.ErrorMessage.componentNotExistError.name, errors_1.ErrorMessage.componentNotExistError.message(constants_1.ComponentType.BOT));
|
|
41
|
+
}
|
|
42
|
+
if (!activePlugins.includes(constants_2.ResourcePlugins.Function) &&
|
|
43
|
+
config.ComponentType.includes(constants_1.ComponentType.API)) {
|
|
44
|
+
throw result_1.ResultFactory.UserError(errors_1.ErrorMessage.componentNotExistError.name, errors_1.ErrorMessage.componentNotExistError.message(constants_1.ComponentType.API));
|
|
45
|
+
}
|
|
46
|
+
// backup relative files.
|
|
47
|
+
const backupFolderName = utils_1.generateTempFolder();
|
|
48
|
+
await Promise.all(config.ComponentType.map(async (component) => {
|
|
49
|
+
await this.backupExistingFiles(path.join(projectPath, component), backupFolderName);
|
|
50
|
+
}));
|
|
51
|
+
try {
|
|
52
|
+
let filesChanged = [];
|
|
53
|
+
await Promise.all(config.ComponentType.map(async (component) => {
|
|
54
|
+
const changes = await this.scaffoldInComponent(projectPath, component, config, languageType);
|
|
55
|
+
filesChanged = filesChanged.concat(changes);
|
|
56
|
+
}));
|
|
57
|
+
const msg = utils_1.Notification.getNotificationMsg(config, languageType);
|
|
58
|
+
const logMessage = localizeUtils_1.getLocalizedString("plugins.apiConnector.Log.CommandSuccess", filesChanged.reduce((previousValue, currentValue) => previousValue +
|
|
59
|
+
`[${currentValue.changeType}] ${path.relative(inputs.projectPath, currentValue.filePath)}` +
|
|
60
|
+
"\n", ""));
|
|
61
|
+
(_b = ctx.logProvider) === null || _b === void 0 ? void 0 : _b.info(logMessage); // Print generated/updated files for users
|
|
62
|
+
if (inputs.platform != teamsfx_api_1.Platform.CLI) {
|
|
63
|
+
(_c = ctx.userInteraction) === null || _c === void 0 ? void 0 : _c.showMessage("info", msg, false, "OK", utils_1.Notification.READ_MORE).then((result) => {
|
|
64
|
+
var _a;
|
|
65
|
+
const userSelected = result.isOk() ? result.value : undefined;
|
|
66
|
+
if (userSelected === utils_1.Notification.READ_MORE) {
|
|
67
|
+
(_a = ctx.userInteraction) === null || _a === void 0 ? void 0 : _a.openUrl(utils_1.Notification.READ_MORE_URL);
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
ctx.userInteraction.showMessage("info", msg + ` ${utils_1.Notification.GetLinkNotification()}`, false);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
catch (err) {
|
|
76
|
+
await Promise.all(config.ComponentType.map(async (component) => {
|
|
77
|
+
await fs.copy(path.join(projectPath, component, backupFolderName), path.join(projectPath, component), { overwrite: true });
|
|
78
|
+
await this.removeSampleFilesWhenRestore(projectPath, component, config.APIName, languageType);
|
|
79
|
+
}));
|
|
80
|
+
if (!(err instanceof teamsfx_api_1.SystemError) && !(err instanceof teamsfx_api_1.UserError)) {
|
|
81
|
+
err = result_1.ResultFactory.SystemError(errors_1.ErrorMessage.generateApiConFilesError.name, errors_1.ErrorMessage.generateApiConFilesError.message(err.message));
|
|
82
|
+
}
|
|
83
|
+
this.sendErrorTelemetry(err);
|
|
84
|
+
throw err;
|
|
27
85
|
}
|
|
86
|
+
finally {
|
|
87
|
+
await Promise.all(config.ComponentType.map(async (component) => {
|
|
88
|
+
await utils_1.removeFileIfExist(path.join(projectPath, component, backupFolderName));
|
|
89
|
+
}));
|
|
90
|
+
}
|
|
91
|
+
telemetry_1.TelemetryUtils.sendEvent(telemetry_1.Telemetry.stage.scaffold, true, telemetryProperties);
|
|
28
92
|
return result_1.ResultFactory.Success();
|
|
29
93
|
}
|
|
94
|
+
sendErrorTelemetry(thrownErr) {
|
|
95
|
+
const errorCode = thrownErr.source + "." + thrownErr.name;
|
|
96
|
+
const errorType = thrownErr instanceof teamsfx_api_1.SystemError ? telemetry_1.Telemetry.systemError : telemetry_1.Telemetry.userError;
|
|
97
|
+
const errorMessage = thrownErr.message;
|
|
98
|
+
telemetry_1.TelemetryUtils.sendErrorEvent(telemetry_1.Telemetry.stage.scaffold, errorCode, errorType, errorMessage);
|
|
99
|
+
return thrownErr;
|
|
100
|
+
}
|
|
101
|
+
async scaffoldInComponent(projectPath, componentItem, config, languageType) {
|
|
102
|
+
const updatedPackageFile = await this.addSDKDependency(projectPath, componentItem);
|
|
103
|
+
const updatedEnvFile = await this.scaffoldEnvFileToComponent(projectPath, config, componentItem);
|
|
104
|
+
const generatedSampleFile = await this.scaffoldSampleCodeToComponent(projectPath, config, componentItem, languageType);
|
|
105
|
+
const fileChanges = [updatedEnvFile, generatedSampleFile];
|
|
106
|
+
if (updatedPackageFile) {
|
|
107
|
+
// if we didn't update package.json, the result will be undefined
|
|
108
|
+
fileChanges.push(updatedPackageFile);
|
|
109
|
+
}
|
|
110
|
+
return fileChanges;
|
|
111
|
+
}
|
|
112
|
+
async backupExistingFiles(folderPath, backupFolder) {
|
|
113
|
+
await fs.ensureDir(path.join(folderPath, backupFolder));
|
|
114
|
+
await utils_1.copyFileIfExist(path.join(folderPath, constants_1.Constants.envFileName), path.join(folderPath, backupFolder, constants_1.Constants.envFileName));
|
|
115
|
+
await utils_1.copyFileIfExist(path.join(folderPath, constants_1.Constants.pkgJsonFile), path.join(folderPath, backupFolder, constants_1.Constants.pkgJsonFile));
|
|
116
|
+
await utils_1.copyFileIfExist(path.join(folderPath, constants_1.Constants.pkgLockFile), path.join(folderPath, backupFolder, constants_1.Constants.pkgLockFile));
|
|
117
|
+
}
|
|
118
|
+
async removeSampleFilesWhenRestore(projectPath, component, apiName, languageType) {
|
|
119
|
+
const apiFileName = utils_1.getSampleFileName(apiName, languageType);
|
|
120
|
+
const sampleFilePath = path.join(projectPath, component, apiFileName);
|
|
121
|
+
await utils_1.removeFileIfExist(sampleFilePath);
|
|
122
|
+
}
|
|
123
|
+
getAuthConfigFromInputs(inputs) {
|
|
124
|
+
let config;
|
|
125
|
+
const apiType = inputs[constants_1.Constants.questionKey.apiType];
|
|
126
|
+
switch (apiType) {
|
|
127
|
+
case constants_1.AuthType.BASIC:
|
|
128
|
+
utils_1.checkInputEmpty(inputs, constants_1.Constants.questionKey.apiUserName);
|
|
129
|
+
config = {
|
|
130
|
+
AuthType: constants_1.AuthType.BASIC,
|
|
131
|
+
UserName: inputs[constants_1.Constants.questionKey.apiUserName],
|
|
132
|
+
};
|
|
133
|
+
break;
|
|
134
|
+
case constants_1.AuthType.AAD:
|
|
135
|
+
const AADConfig = {
|
|
136
|
+
AuthType: constants_1.AuthType.AAD,
|
|
137
|
+
};
|
|
138
|
+
if (inputs[constants_1.Constants.questionKey.apiAppType] === questions_1.reuseAppOption.id) {
|
|
139
|
+
AADConfig.ReuseTeamsApp = true;
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
AADConfig.ReuseTeamsApp = false;
|
|
143
|
+
utils_1.checkInputEmpty(inputs, constants_1.Constants.questionKey.apiAppTenentId, constants_1.Constants.questionKey.apiAppId);
|
|
144
|
+
AADConfig.TenantId = inputs[constants_1.Constants.questionKey.apiAppTenentId];
|
|
145
|
+
AADConfig.ClientId = inputs[constants_1.Constants.questionKey.apiAppId];
|
|
146
|
+
}
|
|
147
|
+
config = AADConfig;
|
|
148
|
+
break;
|
|
149
|
+
case constants_1.AuthType.APIKEY:
|
|
150
|
+
const APIKeyConfig = {
|
|
151
|
+
AuthType: constants_1.AuthType.APIKEY,
|
|
152
|
+
};
|
|
153
|
+
if (inputs[constants_1.Constants.questionKey.apiAPIKeyLocation] === questions_1.requestHeaderOption.id) {
|
|
154
|
+
APIKeyConfig.Location = constants_1.KeyLocation.Header;
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
APIKeyConfig.Location = constants_1.KeyLocation.QueryParams;
|
|
158
|
+
}
|
|
159
|
+
utils_1.checkInputEmpty(inputs, constants_1.Constants.questionKey.apiAPIKeyName);
|
|
160
|
+
APIKeyConfig.Name = inputs[constants_1.Constants.questionKey.apiAPIKeyName];
|
|
161
|
+
config = APIKeyConfig;
|
|
162
|
+
break;
|
|
163
|
+
case constants_1.AuthType.CUSTOM:
|
|
164
|
+
case constants_1.AuthType.CERT:
|
|
165
|
+
config = {
|
|
166
|
+
AuthType: apiType,
|
|
167
|
+
};
|
|
168
|
+
break;
|
|
169
|
+
default:
|
|
170
|
+
throw result_1.ResultFactory.SystemError(errors_1.ErrorMessage.ApiConnectorInputError.name, errors_1.ErrorMessage.ApiConnectorInputError.message(inputs[constants_1.Constants.questionKey.apiAppType]));
|
|
171
|
+
}
|
|
172
|
+
return config;
|
|
173
|
+
}
|
|
30
174
|
getUserDataFromInputs(inputs) {
|
|
175
|
+
utils_1.checkInputEmpty(inputs, constants_1.Constants.questionKey.componentsSelect, constants_1.Constants.questionKey.apiName, constants_1.Constants.questionKey.endpoint);
|
|
176
|
+
const authConfig = this.getAuthConfigFromInputs(inputs);
|
|
31
177
|
const config = {
|
|
32
|
-
|
|
178
|
+
ComponentType: inputs[constants_1.Constants.questionKey.componentsSelect],
|
|
33
179
|
APIName: inputs[constants_1.Constants.questionKey.apiName],
|
|
34
|
-
|
|
180
|
+
AuthConfig: authConfig,
|
|
35
181
|
EndPoint: inputs[constants_1.Constants.questionKey.endpoint],
|
|
36
|
-
ApiUserName: inputs[constants_1.Constants.questionKey.apiUserName],
|
|
37
182
|
};
|
|
38
183
|
return config;
|
|
39
184
|
}
|
|
40
185
|
async scaffoldEnvFileToComponent(projectPath, config, component) {
|
|
41
186
|
const envHander = new envHandler_1.EnvHandler(projectPath, component);
|
|
42
187
|
envHander.updateEnvs(config);
|
|
43
|
-
await envHander.saveLocalEnvFile();
|
|
44
|
-
return result_1.ResultFactory.Success();
|
|
188
|
+
return await envHander.saveLocalEnvFile();
|
|
45
189
|
}
|
|
46
190
|
async scaffoldSampleCodeToComponent(projectPath, config, component, languageType) {
|
|
47
191
|
const sampleHandler = new sampleHandler_1.SampleHandler(projectPath, languageType, component);
|
|
48
|
-
await sampleHandler.generateSampleCode(config);
|
|
49
|
-
return result_1.ResultFactory.Success();
|
|
192
|
+
return await sampleHandler.generateSampleCode(config);
|
|
50
193
|
}
|
|
51
|
-
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
194
|
+
async addSDKDependency(projectPath, component) {
|
|
195
|
+
const depsHandler = new depsHandler_1.DepsHandler(projectPath, component);
|
|
196
|
+
return await depsHandler.addPkgDeps();
|
|
197
|
+
}
|
|
198
|
+
async generateQuestion(ctx, inputs) {
|
|
199
|
+
var _a;
|
|
200
|
+
const componentOptions = [];
|
|
201
|
+
if (inputs.platform === teamsfx_api_1.Platform.CLI_HELP) {
|
|
202
|
+
componentOptions.push(questions_1.botOption);
|
|
203
|
+
componentOptions.push(questions_1.functionOption);
|
|
58
204
|
}
|
|
59
|
-
|
|
60
|
-
|
|
205
|
+
else {
|
|
206
|
+
const activePlugins = (_a = ctx.projectSetting.solutionSettings) === null || _a === void 0 ? void 0 : _a.activeResourcePlugins;
|
|
207
|
+
if (!activePlugins) {
|
|
208
|
+
throw result_1.ResultFactory.UserError(errors_1.ErrorMessage.NoActivePluginsExistError.name, errors_1.ErrorMessage.NoActivePluginsExistError.message());
|
|
209
|
+
}
|
|
210
|
+
if (activePlugins.includes(constants_2.ResourcePlugins.Bot)) {
|
|
211
|
+
componentOptions.push(questions_1.botOption);
|
|
212
|
+
}
|
|
213
|
+
if (activePlugins.includes(constants_2.ResourcePlugins.Function)) {
|
|
214
|
+
componentOptions.push(questions_1.functionOption);
|
|
215
|
+
}
|
|
216
|
+
if (componentOptions.length === 0) {
|
|
217
|
+
throw result_1.ResultFactory.UserError(errors_1.ErrorMessage.NoValidCompoentExistError.name, errors_1.ErrorMessage.NoValidCompoentExistError.message());
|
|
218
|
+
}
|
|
61
219
|
}
|
|
62
220
|
const whichComponent = new teamsfx_api_1.QTreeNode({
|
|
63
221
|
name: constants_1.Constants.questionKey.componentsSelect,
|
|
64
222
|
type: "multiSelect",
|
|
65
|
-
staticOptions:
|
|
223
|
+
staticOptions: componentOptions,
|
|
66
224
|
title: localizeUtils_1.getLocalizedString("plugins.apiConnector.whichService.title"),
|
|
67
225
|
validation: {
|
|
68
|
-
validFunc:
|
|
69
|
-
const name = input;
|
|
70
|
-
if (name.length === 0) {
|
|
71
|
-
return localizeUtils_1.getLocalizedString("plugins.apiConnector.questionComponentSelect.emptySelection");
|
|
72
|
-
}
|
|
73
|
-
return undefined;
|
|
74
|
-
},
|
|
226
|
+
validFunc: checker_1.checkEmptySelect,
|
|
75
227
|
},
|
|
228
|
+
placeholder: localizeUtils_1.getLocalizedString("plugins.apiConnector.whichService.placeholder"), // Use the placeholder to display some description
|
|
76
229
|
});
|
|
230
|
+
const apiNameQuestion = new questions_1.ApiNameQuestion(ctx);
|
|
231
|
+
const whichAuthType = this.buildAuthTypeQuestion(ctx, inputs);
|
|
232
|
+
const question = new teamsfx_api_1.QTreeNode({
|
|
233
|
+
type: "group",
|
|
234
|
+
});
|
|
235
|
+
question.addChild(new teamsfx_api_1.QTreeNode(questions_1.apiEndpointQuestion));
|
|
236
|
+
question.addChild(whichComponent);
|
|
237
|
+
question.addChild(new teamsfx_api_1.QTreeNode(apiNameQuestion.getQuestion()));
|
|
238
|
+
question.addChild(whichAuthType);
|
|
239
|
+
return teamsfx_api_1.ok(question);
|
|
240
|
+
}
|
|
241
|
+
buildAuthTypeQuestion(ctx, inputs) {
|
|
77
242
|
const whichAuthType = new teamsfx_api_1.QTreeNode({
|
|
78
243
|
name: constants_1.Constants.questionKey.apiType,
|
|
79
244
|
type: "singleSelect",
|
|
@@ -85,16 +250,73 @@ class ApiConnectorImpl {
|
|
|
85
250
|
questions_1.ImplementMyselfOption,
|
|
86
251
|
],
|
|
87
252
|
title: localizeUtils_1.getLocalizedString("plugins.apiConnector.whichAuthType.title"),
|
|
253
|
+
placeholder: localizeUtils_1.getLocalizedString("plugins.apiConnector.whichAuthType.placeholder"), // Use the placeholder to display some description
|
|
88
254
|
});
|
|
89
|
-
|
|
90
|
-
|
|
255
|
+
whichAuthType.addChild(this.buildAADAuthQuestion(ctx, inputs));
|
|
256
|
+
whichAuthType.addChild(this.buildBasicAuthQuestion());
|
|
257
|
+
whichAuthType.addChild(this.buildAPIKeyAuthQuestion());
|
|
258
|
+
return whichAuthType;
|
|
259
|
+
}
|
|
260
|
+
buildBasicAuthQuestion() {
|
|
261
|
+
const node = new teamsfx_api_1.QTreeNode(questions_1.basicAuthUsernameQuestion);
|
|
262
|
+
node.condition = { equals: questions_1.BasicAuthOption.id };
|
|
263
|
+
return node;
|
|
264
|
+
}
|
|
265
|
+
buildAADAuthQuestion(ctx, inputs) {
|
|
266
|
+
const solutionSettings = utils_2.getAzureSolutionSettings(ctx);
|
|
267
|
+
let node;
|
|
268
|
+
if (common_1.isAADEnabled(solutionSettings) || inputs.platform === teamsfx_api_1.Platform.CLI_HELP) {
|
|
269
|
+
node = new teamsfx_api_1.QTreeNode({
|
|
270
|
+
name: constants_1.Constants.questionKey.apiAppType,
|
|
271
|
+
type: "singleSelect",
|
|
272
|
+
staticOptions: [questions_1.reuseAppOption, questions_1.anotherAppOption],
|
|
273
|
+
title: localizeUtils_1.getLocalizedString("plugins.apiConnector.getQuestion.appType.title"),
|
|
274
|
+
});
|
|
275
|
+
node.condition = { equals: questions_1.AADAuthOption.id };
|
|
276
|
+
const tenentQuestionNode = new teamsfx_api_1.QTreeNode(questions_1.appTenantIdQuestion);
|
|
277
|
+
tenentQuestionNode.condition = { equals: questions_1.anotherAppOption.id };
|
|
278
|
+
tenentQuestionNode.addChild(new teamsfx_api_1.QTreeNode(questions_1.appIdQuestion));
|
|
279
|
+
node.addChild(tenentQuestionNode);
|
|
280
|
+
}
|
|
281
|
+
else {
|
|
282
|
+
node = new teamsfx_api_1.QTreeNode(questions_1.appTenantIdQuestion);
|
|
283
|
+
node.condition = { equals: questions_1.AADAuthOption.id };
|
|
284
|
+
node.addChild(new teamsfx_api_1.QTreeNode(questions_1.appIdQuestion));
|
|
285
|
+
}
|
|
286
|
+
return node;
|
|
287
|
+
}
|
|
288
|
+
buildAPIKeyAuthQuestion() {
|
|
289
|
+
const node = new teamsfx_api_1.QTreeNode({
|
|
290
|
+
name: constants_1.Constants.questionKey.apiAPIKeyLocation,
|
|
291
|
+
type: "singleSelect",
|
|
292
|
+
staticOptions: [questions_1.requestHeaderOption, questions_1.queryParamsOption],
|
|
293
|
+
title: localizeUtils_1.getLocalizedString("plugins.apiConnector.getQuestion.apiKeyLocation.title"),
|
|
91
294
|
});
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
295
|
+
node.condition = { equals: questions_1.APIKeyAuthOption.id };
|
|
296
|
+
const keyNameQuestionNode = new teamsfx_api_1.QTreeNode(questions_1.buildAPIKeyNameQuestion());
|
|
297
|
+
node.addChild(keyNameQuestionNode);
|
|
298
|
+
return node;
|
|
299
|
+
}
|
|
300
|
+
getTelemetryProperties(config) {
|
|
301
|
+
const properties = {
|
|
302
|
+
[telemetry_1.Telemetry.properties.authType]: config.AuthConfig.AuthType.toString(),
|
|
303
|
+
[telemetry_1.Telemetry.properties.componentType]: config.ComponentType.join(","),
|
|
304
|
+
};
|
|
305
|
+
switch (config.AuthConfig.AuthType) {
|
|
306
|
+
case constants_1.AuthType.AAD:
|
|
307
|
+
const aadAuthConfig = config.AuthConfig;
|
|
308
|
+
properties[telemetry_1.Telemetry.properties.reuseTeamsApp] = aadAuthConfig.ReuseTeamsApp
|
|
309
|
+
? telemetry_1.Telemetry.valueYes
|
|
310
|
+
: telemetry_1.Telemetry.valueNo;
|
|
311
|
+
break;
|
|
312
|
+
case constants_1.AuthType.APIKEY:
|
|
313
|
+
const authConfig = config.AuthConfig;
|
|
314
|
+
properties[telemetry_1.Telemetry.properties.keyLocation] = authConfig.Location;
|
|
315
|
+
break;
|
|
316
|
+
default:
|
|
317
|
+
break;
|
|
318
|
+
}
|
|
319
|
+
return properties;
|
|
98
320
|
}
|
|
99
321
|
}
|
|
100
322
|
exports.ApiConnectorImpl = ApiConnectorImpl;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../../src/plugins/resource/apiconnector/plugin.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AACb,wDAA2D;AAG3D,2CAAwC;AACxC,qCAA6D;AAC7D,6CAA0C;AAC1C,qCAAwC;AACxC,yDAA4D;AAC5D,2CAWqB;AACrB,iEAAmE;AACnE,mDAAgD;AAChD,MAAa,gBAAgB;IACpB,KAAK,CAAC,QAAQ,CAAC,GAAY,EAAE,MAAc;QAChD,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE;YACvB,MAAM,sBAAa,CAAC,SAAS,CAC3B,qBAAY,CAAC,mBAAmB,CAAC,IAAI,EACrC,qBAAY,CAAC,mBAAmB,CAAC,OAAO,EAAE,CAC3C,CAAC;SACH;QACD,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;QACvC,MAAM,YAAY,GAAW,GAAG,CAAC,cAAe,CAAC,mBAAoB,CAAC;QACtE,MAAM,MAAM,GAA8B,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;QAC7E,KAAK,MAAM,aAAa,IAAI,MAAM,CAAC,aAAa,EAAE;YAChD,MAAM,IAAI,CAAC,0BAA0B,CAAC,WAAW,EAAE,MAAM,EAAE,aAAa,CAAC,CAAC;YAC1E,MAAM,IAAI,CAAC,6BAA6B,CAAC,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,YAAY,CAAC,CAAC;YAC3F,8CAA8C;SAC/C;QAED,OAAO,sBAAa,CAAC,OAAO,EAAE,CAAC;IACjC,CAAC;IAEO,qBAAqB,CAAC,MAAc;QAC1C,MAAM,MAAM,GA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