@microsoft/teamsfx-core 2.0.0 → 2.0.1-alpha.6f92bb6f7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/common/armInterface.d.ts +0 -5
- package/build/common/armInterface.d.ts.map +1 -1
- package/build/common/deps-checker/checkerFactory.d.ts.map +1 -1
- package/build/common/deps-checker/checkerFactory.js +0 -7
- package/build/common/deps-checker/checkerFactory.js.map +1 -1
- package/build/common/deps-checker/constant/helpLink.d.ts +0 -4
- package/build/common/deps-checker/constant/helpLink.d.ts.map +1 -1
- package/build/common/deps-checker/constant/helpLink.js +1 -9
- package/build/common/deps-checker/constant/helpLink.js.map +1 -1
- package/build/common/deps-checker/constant/message.d.ts +0 -5
- package/build/common/deps-checker/constant/message.d.ts.map +1 -1
- package/build/common/deps-checker/constant/message.js +0 -6
- package/build/common/deps-checker/constant/message.js.map +1 -1
- package/build/common/deps-checker/constant/telemetry.d.ts +2 -33
- package/build/common/deps-checker/constant/telemetry.d.ts.map +1 -1
- package/build/common/deps-checker/constant/telemetry.js +0 -31
- package/build/common/deps-checker/constant/telemetry.js.map +1 -1
- package/build/common/deps-checker/depsChecker.d.ts +0 -3
- package/build/common/deps-checker/depsChecker.d.ts.map +1 -1
- package/build/common/deps-checker/depsChecker.js +0 -3
- package/build/common/deps-checker/depsChecker.js.map +1 -1
- package/build/common/deps-checker/depsError.d.ts +0 -9
- package/build/common/deps-checker/depsError.d.ts.map +1 -1
- package/build/common/deps-checker/depsError.js +1 -22
- package/build/common/deps-checker/depsError.js.map +1 -1
- package/build/common/deps-checker/depsManager.d.ts.map +1 -1
- package/build/common/deps-checker/depsManager.js +0 -3
- package/build/common/deps-checker/depsManager.js.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.d.ts +2 -2
- package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.js +4 -2
- package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.d.ts +0 -20
- package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.js +1 -51
- package/build/common/deps-checker/internal/nodeChecker.js.map +1 -1
- package/build/common/local/localEnvManager.d.ts +0 -9
- package/build/common/local/localEnvManager.d.ts.map +1 -1
- package/build/common/local/localEnvManager.js +0 -59
- package/build/common/local/localEnvManager.js.map +1 -1
- package/build/common/projectSettingsHelper.d.ts +1 -7
- package/build/common/projectSettingsHelper.d.ts.map +1 -1
- package/build/common/projectSettingsHelper.js +5 -81
- package/build/common/projectSettingsHelper.js.map +1 -1
- package/build/common/projectSettingsHelperV3.d.ts +0 -1
- package/build/common/projectSettingsHelperV3.d.ts.map +1 -1
- package/build/common/projectSettingsHelperV3.js +1 -10
- package/build/common/projectSettingsHelperV3.js.map +1 -1
- package/build/common/samples.d.ts.map +1 -1
- package/build/common/samples.js +18 -40
- package/build/common/samples.js.map +1 -1
- package/build/common/templates-config.json +2 -2
- package/build/common/tools.d.ts +1 -2
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +5 -70
- package/build/common/tools.js.map +1 -1
- package/build/component/code/utils.d.ts +1 -8
- package/build/component/code/utils.d.ts.map +1 -1
- package/build/component/code/utils.js +5 -144
- package/build/component/code/utils.js.map +1 -1
- package/build/component/constants.d.ts +3 -0
- package/build/component/constants.d.ts.map +1 -1
- package/build/component/constants.js +13 -2
- package/build/component/constants.js.map +1 -1
- package/build/component/coordinator/index.d.ts +7 -7
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +15 -179
- package/build/component/coordinator/index.js.map +1 -1
- package/build/component/debug/error.d.ts +0 -1
- package/build/component/debug/error.d.ts.map +1 -1
- package/build/component/debug/error.js +1 -11
- package/build/component/debug/error.js.map +1 -1
- package/build/component/debug/index.d.ts.map +1 -1
- package/build/component/debug/index.js +1 -25
- package/build/component/debug/index.js.map +1 -1
- package/build/component/driver/aad/create.d.ts.map +1 -1
- package/build/component/driver/aad/create.js +2 -2
- package/build/component/driver/aad/create.js.map +1 -1
- package/build/component/driver/aad/update.d.ts.map +1 -1
- package/build/component/driver/aad/update.js +6 -20
- package/build/component/driver/aad/update.js.map +1 -1
- package/build/component/driver/botAadApp/create.d.ts.map +1 -1
- package/build/component/driver/botAadApp/create.js +2 -2
- package/build/component/driver/botAadApp/create.js.map +1 -1
- package/build/component/driver/devTool/error/dotnetInstallationUserError.d.ts +1 -1
- package/build/component/driver/devTool/error/dotnetInstallationUserError.d.ts.map +1 -1
- package/build/component/driver/devTool/error/dotnetInstallationUserError.js +4 -2
- package/build/component/driver/devTool/error/dotnetInstallationUserError.js.map +1 -1
- package/build/component/driver/devTool/error/funcInstallationUserError.d.ts +1 -1
- package/build/component/driver/devTool/error/funcInstallationUserError.d.ts.map +1 -1
- package/build/component/driver/devTool/error/funcInstallationUserError.js +4 -2
- package/build/component/driver/devTool/error/funcInstallationUserError.js.map +1 -1
- package/build/component/driver/devTool/installDriver.d.ts +1 -0
- package/build/component/driver/devTool/installDriver.d.ts.map +1 -1
- package/build/component/driver/devTool/installDriver.js +17 -24
- package/build/component/driver/devTool/installDriver.js.map +1 -1
- package/build/component/driver/script/baseBuildDriver.d.ts.map +1 -1
- package/build/component/driver/script/baseBuildDriver.js +2 -2
- package/build/component/driver/script/baseBuildDriver.js.map +1 -1
- package/build/component/driver/script/scriptDriver.d.ts +11 -1
- package/build/component/driver/script/scriptDriver.d.ts.map +1 -1
- package/build/component/driver/script/scriptDriver.js +121 -4
- package/build/component/driver/script/scriptDriver.js.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.d.ts +0 -1
- package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.js +1 -11
- package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/validate.d.ts +0 -1
- package/build/component/driver/teamsApp/validate.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validate.js +34 -18
- package/build/component/driver/teamsApp/validate.js.map +1 -1
- package/build/component/feature/bot/question.d.ts.map +1 -1
- package/build/component/feature/bot/question.js +7 -16
- package/build/component/feature/bot/question.js.map +1 -1
- package/build/component/feature/sso.d.ts +0 -4
- package/build/component/feature/sso.d.ts.map +1 -1
- package/build/component/feature/sso.js +10 -144
- package/build/component/feature/sso.js.map +1 -1
- package/build/component/question.d.ts +3 -64
- package/build/component/question.d.ts.map +1 -1
- package/build/component/question.js +61 -663
- package/build/component/question.js.map +1 -1
- package/build/component/registerService.d.ts +0 -14
- package/build/component/registerService.d.ts.map +1 -1
- package/build/component/registerService.js +0 -14
- package/build/component/registerService.js.map +1 -1
- package/build/component/resource/aadApp/aadApp.d.ts.map +1 -1
- package/build/component/resource/aadApp/aadApp.js +6 -24
- package/build/component/resource/aadApp/aadApp.js.map +1 -1
- package/build/component/resource/appManifest/appStudio.js +1 -1
- package/build/component/resource/appManifest/appStudio.js.map +1 -1
- package/build/component/resource/appManifest/utils/ManifestUtils.d.ts +1 -1
- package/build/component/resource/appManifest/utils/ManifestUtils.d.ts.map +1 -1
- package/build/component/resource/appManifest/utils/ManifestUtils.js +1 -9
- package/build/component/resource/appManifest/utils/ManifestUtils.js.map +1 -1
- package/build/component/resource/spfx/utils/questions.d.ts.map +1 -1
- package/build/component/resource/spfx/utils/questions.js +1 -4
- package/build/component/resource/spfx/utils/questions.js.map +1 -1
- package/build/component/utils/backupFiles.d.ts +2 -1
- package/build/component/utils/backupFiles.d.ts.map +1 -1
- package/build/component/utils/backupFiles.js +23 -3
- package/build/component/utils/backupFiles.js.map +1 -1
- package/build/component/utils/charsetUtils.d.ts +3 -0
- package/build/component/utils/charsetUtils.d.ts.map +1 -0
- package/build/component/utils/charsetUtils.js +241 -0
- package/build/component/utils/charsetUtils.js.map +1 -0
- package/build/component/utils/envUtil.d.ts.map +1 -1
- package/build/component/utils/envUtil.js +4 -1
- package/build/component/utils/envUtil.js.map +1 -1
- package/build/component/utils/metadataUtil.d.ts.map +1 -1
- package/build/component/utils/metadataUtil.js +9 -7
- package/build/component/utils/metadataUtil.js.map +1 -1
- package/build/component/utils/pathUtils.d.ts.map +1 -1
- package/build/component/utils/pathUtils.js +8 -7
- package/build/component/utils/pathUtils.js.map +1 -1
- package/build/component/utils/settingsUtil.js +3 -3
- package/build/component/utils/settingsUtil.js.map +1 -1
- package/build/component/utils.d.ts +1 -12
- package/build/component/utils.d.ts.map +1 -1
- package/build/component/utils.js +2 -225
- package/build/component/utils.js.map +1 -1
- package/build/component/workflow.d.ts +0 -1
- package/build/component/workflow.d.ts.map +1 -1
- package/build/component/workflow.js +1 -687
- package/build/component/workflow.js.map +1 -1
- package/build/core/FxCore.d.ts +26 -34
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.js +86 -654
- package/build/core/FxCore.js.map +1 -1
- package/build/core/FxCoreImplementV3.d.ts +15 -9
- package/build/core/FxCoreImplementV3.d.ts.map +1 -1
- package/build/core/FxCoreImplementV3.js +105 -105
- package/build/core/FxCoreImplementV3.js.map +1 -1
- package/build/core/middleware/envInfoLoaderV3.d.ts +1 -10
- package/build/core/middleware/envInfoLoaderV3.d.ts.map +1 -1
- package/build/core/middleware/envInfoLoaderV3.js +1 -207
- package/build/core/middleware/envInfoLoaderV3.js.map +1 -1
- package/build/core/middleware/projectMigratorV3.d.ts +1 -0
- package/build/core/middleware/projectMigratorV3.d.ts.map +1 -1
- package/build/core/middleware/projectMigratorV3.js +7 -7
- package/build/core/middleware/projectMigratorV3.js.map +1 -1
- package/build/core/middleware/projectSettingsLoader.d.ts +1 -4
- package/build/core/middleware/projectSettingsLoader.d.ts.map +1 -1
- package/build/core/middleware/projectSettingsLoader.js +4 -58
- package/build/core/middleware/projectSettingsLoader.js.map +1 -1
- package/build/core/middleware/projectVersionChecker.d.ts.map +1 -1
- package/build/core/middleware/projectVersionChecker.js +4 -5
- package/build/core/middleware/projectVersionChecker.js.map +1 -1
- package/build/core/middleware/questionModel.d.ts +0 -1
- package/build/core/middleware/questionModel.d.ts.map +1 -1
- package/build/core/middleware/questionModel.js +8 -54
- package/build/core/middleware/questionModel.js.map +1 -1
- package/build/core/middleware/utils/MigrationUtils.d.ts +0 -5
- package/build/core/middleware/utils/MigrationUtils.d.ts.map +1 -1
- package/build/core/middleware/utils/MigrationUtils.js +1 -77
- package/build/core/middleware/utils/MigrationUtils.js.map +1 -1
- package/build/core/question.d.ts +2 -12
- package/build/core/question.d.ts.map +1 -1
- package/build/core/question.js +14 -236
- package/build/core/question.js.map +1 -1
- package/build/core/types.d.ts +3 -3
- package/build/core/types.d.ts.map +1 -1
- package/build/error/common.d.ts +9 -0
- package/build/error/common.d.ts.map +1 -1
- package/build/error/common.js +39 -1
- package/build/error/common.js.map +1 -1
- package/build/error/script.d.ts +1 -1
- package/build/error/script.d.ts.map +1 -1
- package/build/error/script.js +3 -3
- package/build/error/script.js.map +1 -1
- package/build/index.d.ts +0 -2
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -4
- package/build/index.js.map +1 -1
- package/package.json +12 -28
- package/resource/package.nls.json +10 -97
- package/templates/fallback/common.zip +0 -0
- package/templates/fallback/csharp.zip +0 -0
- package/templates/fallback/js.zip +0 -0
- package/templates/fallback/ts.zip +0 -0
- package/build/common/deps-checker/internal/ngrokChecker.d.ts +0 -27
- package/build/common/deps-checker/internal/ngrokChecker.d.ts.map +0 -1
- package/build/common/deps-checker/internal/ngrokChecker.js +0 -222
- package/build/common/deps-checker/internal/ngrokChecker.js.map +0 -1
- package/build/component/connection/apimConfig.d.ts +0 -11
- package/build/component/connection/apimConfig.d.ts.map +0 -1
- package/build/component/connection/apimConfig.js +0 -44
- package/build/component/connection/apimConfig.js.map +0 -1
- package/build/component/connection/azureFunctionConfig.d.ts +0 -9
- package/build/component/connection/azureFunctionConfig.d.ts.map +0 -1
- package/build/component/connection/azureFunctionConfig.js +0 -25
- package/build/component/connection/azureFunctionConfig.js.map +0 -1
- package/build/component/connection/azureResourceConfig.d.ts +0 -11
- package/build/component/connection/azureResourceConfig.d.ts.map +0 -1
- package/build/component/connection/azureResourceConfig.js +0 -72
- package/build/component/connection/azureResourceConfig.js.map +0 -1
- package/build/component/connection/azureWebAppConfig.d.ts +0 -9
- package/build/component/connection/azureWebAppConfig.d.ts.map +0 -1
- package/build/component/connection/azureWebAppConfig.js +0 -25
- package/build/component/connection/azureWebAppConfig.js.map +0 -1
- package/build/component/coordinator/lifecycleStage.d.ts +0 -2
- package/build/component/coordinator/lifecycleStage.d.ts.map +0 -1
- package/build/component/coordinator/lifecycleStage.js +0 -23
- package/build/component/coordinator/lifecycleStage.js.map +0 -1
- package/build/component/core.d.ts +0 -65
- package/build/component/core.d.ts.map +0 -1
- package/build/component/core.js +0 -653
- package/build/component/core.js.map +0 -1
- package/build/component/debug/util/ngrok.d.ts +0 -6
- package/build/component/debug/util/ngrok.d.ts.map +0 -1
- package/build/component/debug/util/ngrok.js +0 -65
- package/build/component/debug/util/ngrok.js.map +0 -1
- package/build/component/feature/api/api.d.ts +0 -8
- package/build/component/feature/api/api.d.ts.map +0 -1
- package/build/component/feature/api/api.js +0 -188
- package/build/component/feature/api/api.js.map +0 -1
- package/build/component/feature/apiconnector/apiConnector.d.ts +0 -11
- package/build/component/feature/apiconnector/apiConnector.d.ts.map +0 -1
- package/build/component/feature/apiconnector/apiConnector.js +0 -43
- package/build/component/feature/apiconnector/apiConnector.js.map +0 -1
- package/build/component/feature/apim.d.ts +0 -8
- package/build/component/feature/apim.d.ts.map +0 -1
- package/build/component/feature/apim.js +0 -123
- package/build/component/feature/apim.js.map +0 -1
- package/build/component/feature/bot/bot.d.ts +0 -12
- package/build/component/feature/bot/bot.d.ts.map +0 -1
- package/build/component/feature/bot/bot.js +0 -309
- package/build/component/feature/bot/bot.js.map +0 -1
- package/build/component/feature/keyVault.d.ts +0 -16
- package/build/component/feature/keyVault.d.ts.map +0 -1
- package/build/component/feature/keyVault.js +0 -90
- package/build/component/feature/keyVault.js.map +0 -1
- package/build/component/feature/spfx.d.ts +0 -9
- package/build/component/feature/spfx.d.ts.map +0 -1
- package/build/component/feature/spfx.js +0 -121
- package/build/component/feature/spfx.js.map +0 -1
- package/build/component/feature/sql.d.ts +0 -10
- package/build/component/feature/sql.d.ts.map +0 -1
- package/build/component/feature/sql.js +0 -80
- package/build/component/feature/sql.js.map +0 -1
- package/build/component/feature/tab.d.ts +0 -10
- package/build/component/feature/tab.d.ts.map +0 -1
- package/build/component/feature/tab.js +0 -238
- package/build/component/feature/tab.js.map +0 -1
- package/build/component/resource/azureSql/actions/configure.d.ts +0 -15
- package/build/component/resource/azureSql/actions/configure.d.ts.map +0 -1
- package/build/component/resource/azureSql/actions/configure.js +0 -92
- package/build/component/resource/azureSql/actions/configure.js.map +0 -1
- package/build/component/resource/azureSql/actions/provision.d.ts +0 -10
- package/build/component/resource/azureSql/actions/provision.d.ts.map +0 -1
- package/build/component/resource/azureSql/actions/provision.js +0 -63
- package/build/component/resource/azureSql/actions/provision.js.map +0 -1
- package/build/component/resource/azureSql/actions/utils.d.ts +0 -12
- package/build/component/resource/azureSql/actions/utils.d.ts.map +0 -1
- package/build/component/resource/azureSql/actions/utils.js +0 -82
- package/build/component/resource/azureSql/actions/utils.js.map +0 -1
- package/build/component/resource/azureSql/azureSql.d.ts +0 -24
- package/build/component/resource/azureSql/azureSql.d.ts.map +0 -1
- package/build/component/resource/azureSql/azureSql.js +0 -75
- package/build/component/resource/azureSql/azureSql.js.map +0 -1
- package/build/component/resource/azureSql/clients/management.d.ts +0 -18
- package/build/component/resource/azureSql/clients/management.d.ts.map +0 -1
- package/build/component/resource/azureSql/clients/management.js +0 -124
- package/build/component/resource/azureSql/clients/management.js.map +0 -1
- package/build/component/resource/azureSql/clients/sql.d.ts +0 -13
- package/build/component/resource/azureSql/clients/sql.d.ts.map +0 -1
- package/build/component/resource/azureSql/clients/sql.js +0 -153
- package/build/component/resource/azureSql/clients/sql.js.map +0 -1
- package/build/component/resource/azureSql/config.d.ts +0 -7
- package/build/component/resource/azureSql/config.d.ts.map +0 -1
- package/build/component/resource/azureSql/config.js +0 -77
- package/build/component/resource/azureSql/config.js.map +0 -1
- package/build/component/resource/azureSql/constants.d.ts +0 -85
- package/build/component/resource/azureSql/constants.d.ts.map +0 -1
- package/build/component/resource/azureSql/constants.js +0 -95
- package/build/component/resource/azureSql/constants.js.map +0 -1
- package/build/component/resource/azureSql/errors.d.ts +0 -63
- package/build/component/resource/azureSql/errors.d.ts.map +0 -1
- package/build/component/resource/azureSql/errors.js +0 -107
- package/build/component/resource/azureSql/errors.js.map +0 -1
- package/build/component/resource/azureSql/index.d.ts +0 -2
- package/build/component/resource/azureSql/index.d.ts.map +0 -1
- package/build/component/resource/azureSql/index.js +0 -7
- package/build/component/resource/azureSql/index.js.map +0 -1
- package/build/component/resource/azureSql/questions.d.ts +0 -6
- package/build/component/resource/azureSql/questions.d.ts.map +0 -1
- package/build/component/resource/azureSql/questions.js +0 -59
- package/build/component/resource/azureSql/questions.js.map +0 -1
- package/build/component/resource/azureSql/results.d.ts +0 -10
- package/build/component/resource/azureSql/results.d.ts.map +0 -1
- package/build/component/resource/azureSql/results.js +0 -34
- package/build/component/resource/azureSql/results.js.map +0 -1
- package/build/component/resource/azureSql/types.d.ts +0 -12
- package/build/component/resource/azureSql/types.d.ts.map +0 -1
- package/build/component/resource/azureSql/types.js +0 -5
- package/build/component/resource/azureSql/types.js.map +0 -1
- package/build/component/resource/azureSql/utils/checkInput.d.ts +0 -10
- package/build/component/resource/azureSql/utils/checkInput.d.ts.map +0 -1
- package/build/component/resource/azureSql/utils/checkInput.js +0 -89
- package/build/component/resource/azureSql/utils/checkInput.js.map +0 -1
- package/build/component/resource/azureSql/utils/common.d.ts +0 -12
- package/build/component/resource/azureSql/utils/common.d.ts.map +0 -1
- package/build/component/resource/azureSql/utils/common.js +0 -51
- package/build/component/resource/azureSql/utils/common.js.map +0 -1
- package/build/component/resource/identity.d.ts +0 -28
- package/build/component/resource/identity.d.ts.map +0 -1
- package/build/component/resource/identity.js +0 -42
- package/build/component/resource/identity.js.map +0 -1
- package/build/component/resource/keyVault.d.ts +0 -29
- package/build/component/resource/keyVault.d.ts.map +0 -1
- package/build/component/resource/keyVault.js +0 -47
- package/build/component/resource/keyVault.js.map +0 -1
- package/build/component/resource/simpleAuth/constants.d.ts +0 -122
- package/build/component/resource/simpleAuth/constants.d.ts.map +0 -1
- package/build/component/resource/simpleAuth/constants.js +0 -163
- package/build/component/resource/simpleAuth/constants.js.map +0 -1
- package/build/component/resource/simpleAuth/errors.d.ts +0 -17
- package/build/component/resource/simpleAuth/errors.d.ts.map +0 -1
- package/build/component/resource/simpleAuth/errors.js +0 -91
- package/build/component/resource/simpleAuth/errors.js.map +0 -1
- package/build/component/resource/simpleAuth/index.d.ts +0 -12
- package/build/component/resource/simpleAuth/index.d.ts.map +0 -1
- package/build/component/resource/simpleAuth/index.js +0 -115
- package/build/component/resource/simpleAuth/index.js.map +0 -1
- package/build/component/resource/simpleAuth/result.d.ts +0 -9
- package/build/component/resource/simpleAuth/result.d.ts.map +0 -1
- package/build/component/resource/simpleAuth/result.js +0 -35
- package/build/component/resource/simpleAuth/result.js.map +0 -1
- package/build/component/resource/simpleAuth/utils/common.d.ts +0 -23
- package/build/component/resource/simpleAuth/utils/common.d.ts.map +0 -1
- package/build/component/resource/simpleAuth/utils/common.js +0 -150
- package/build/component/resource/simpleAuth/utils/common.js.map +0 -1
- package/build/component/resource/simpleAuth/utils/dialog.d.ts +0 -5
- package/build/component/resource/simpleAuth/utils/dialog.d.ts.map +0 -1
- package/build/component/resource/simpleAuth/utils/dialog.js +0 -7
- package/build/component/resource/simpleAuth/utils/dialog.js.map +0 -1
- package/build/component/resource/simpleAuth/utils/telemetry.d.ts +0 -17
- package/build/component/resource/simpleAuth/utils/telemetry.d.ts.map +0 -1
- package/build/component/resource/simpleAuth/utils/telemetry.js +0 -45
- package/build/component/resource/simpleAuth/utils/telemetry.js.map +0 -1
- package/build/core/dependencyChecker.d.ts +0 -1
- package/build/core/dependencyChecker.d.ts.map +0 -1
- package/build/core/dependencyChecker.js +0 -2
- package/build/core/dependencyChecker.js.map +0 -1
- package/build/core/middleware/CommonErrorHandlerMW.d.ts +0 -14
- package/build/core/middleware/CommonErrorHandlerMW.d.ts.map +0 -1
- package/build/core/middleware/CommonErrorHandlerMW.js +0 -63
- package/build/core/middleware/CommonErrorHandlerMW.js.map +0 -1
- package/build/core/middleware/aadManifestMigration.d.ts +0 -3
- package/build/core/middleware/aadManifestMigration.d.ts.map +0 -1
- package/build/core/middleware/aadManifestMigration.js +0 -119
- package/build/core/middleware/aadManifestMigration.js.map +0 -1
- package/build/core/middleware/consolidateLocalRemote.d.ts +0 -5
- package/build/core/middleware/consolidateLocalRemote.d.ts.map +0 -1
- package/build/core/middleware/consolidateLocalRemote.js +0 -378
- package/build/core/middleware/consolidateLocalRemote.js.map +0 -1
- package/build/core/middleware/envInfoWriter.d.ts +0 -8
- package/build/core/middleware/envInfoWriter.d.ts.map +0 -1
- package/build/core/middleware/envInfoWriter.js +0 -76
- package/build/core/middleware/envInfoWriter.js.map +0 -1
- package/build/core/middleware/envInfoWriterV3.d.ts +0 -6
- package/build/core/middleware/envInfoWriterV3.d.ts.map +0 -1
- package/build/core/middleware/envInfoWriterV3.js +0 -67
- package/build/core/middleware/envInfoWriterV3.js.map +0 -1
- package/build/core/middleware/projectMigrator.d.ts +0 -40
- package/build/core/middleware/projectMigrator.d.ts.map +0 -1
- package/build/core/middleware/projectMigrator.js +0 -1014
- package/build/core/middleware/projectMigrator.js.map +0 -1
- package/build/core/middleware/projectSettingsWriter.d.ts +0 -6
- package/build/core/middleware/projectSettingsWriter.d.ts.map +0 -1
- package/build/core/middleware/projectSettingsWriter.js +0 -52
- package/build/core/middleware/projectSettingsWriter.js.map +0 -1
|
@@ -1,309 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.TeamsBot = void 0;
|
|
6
|
-
const tslib_1 = require("tslib");
|
|
7
|
-
const lib_1 = require("@feathersjs/hooks/lib");
|
|
8
|
-
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
9
|
-
const lodash_1 = require("lodash");
|
|
10
|
-
require("reflect-metadata");
|
|
11
|
-
const typedi_1 = require("typedi");
|
|
12
|
-
const telemetry_1 = require("../../../common/telemetry");
|
|
13
|
-
const utils_1 = require("../../../common/utils");
|
|
14
|
-
const globalVars_1 = require("../../../core/globalVars");
|
|
15
|
-
const question_1 = require("../../../core/question");
|
|
16
|
-
const constants_1 = require("./constants");
|
|
17
|
-
const question_2 = require("./question");
|
|
18
|
-
const constants_2 = require("../../constants");
|
|
19
|
-
require("../../connection/azureWebAppConfig");
|
|
20
|
-
const constants_3 = require("../../constants");
|
|
21
|
-
const debug_1 = require("../../debug");
|
|
22
|
-
const messages_1 = require("../../messages");
|
|
23
|
-
const actionExecutionMW_1 = require("../../middleware/actionExecutionMW");
|
|
24
|
-
require("../../resource/azureAppService/azureWebApp");
|
|
25
|
-
const utils_2 = require("../../utils");
|
|
26
|
-
const workflow_1 = require("../../workflow");
|
|
27
|
-
let TeamsBot = class TeamsBot {
|
|
28
|
-
constructor() {
|
|
29
|
-
this.name = constants_3.ComponentNames.TeamsBot;
|
|
30
|
-
}
|
|
31
|
-
async add(context, inputs, actionContext) {
|
|
32
|
-
var _a, _b;
|
|
33
|
-
const projectSettings = context.projectSetting;
|
|
34
|
-
const effects = [];
|
|
35
|
-
const botCapability = featureToCapability.get(inputs[question_1.CoreQuestionNames.Features]);
|
|
36
|
-
inputs.hosting = resolveHosting(inputs);
|
|
37
|
-
inputs[question_1.CoreQuestionNames.ProgrammingLanguage] =
|
|
38
|
-
context.projectSetting.programmingLanguage ||
|
|
39
|
-
inputs[question_1.CoreQuestionNames.ProgrammingLanguage] ||
|
|
40
|
-
"javascript";
|
|
41
|
-
globalVars_1.globalVars.isVS = inputs[question_1.CoreQuestionNames.ProgrammingLanguage] === "csharp";
|
|
42
|
-
const isM365 = context.projectSetting.isM365 === true;
|
|
43
|
-
let botConfig = workflow_1.getComponent(projectSettings, constants_3.ComponentNames.TeamsBot);
|
|
44
|
-
// bot can only add once
|
|
45
|
-
if (botConfig) {
|
|
46
|
-
if (!((_a = botConfig.capabilities) === null || _a === void 0 ? void 0 : _a.includes(botCapability))) {
|
|
47
|
-
botConfig.capabilities.push(botCapability);
|
|
48
|
-
const res = await this.addBotCapability(inputs, isM365);
|
|
49
|
-
if (res.isErr())
|
|
50
|
-
return teamsfx_api_1.err(res.error);
|
|
51
|
-
effects.push("add bot capability in app manifest");
|
|
52
|
-
}
|
|
53
|
-
utils_2.addFeatureNotify(inputs, context.userInteraction, "Capability", [inputs.features]);
|
|
54
|
-
return teamsfx_api_1.ok(undefined);
|
|
55
|
-
}
|
|
56
|
-
const addedComponents = [];
|
|
57
|
-
// 1. scaffold bot and add bot config
|
|
58
|
-
{
|
|
59
|
-
const clonedInputs = lodash_1.cloneDeep(inputs);
|
|
60
|
-
const scenarios = (_b = featureToScenario.get(inputs[question_1.CoreQuestionNames.Features])) === null || _b === void 0 ? void 0 : _b(inputs[constants_1.QuestionNames.BOT_HOST_TYPE_TRIGGER]);
|
|
61
|
-
const language = (inputs === null || inputs === void 0 ? void 0 : inputs[question_1.CoreQuestionNames.ProgrammingLanguage]) ||
|
|
62
|
-
context.projectSetting.programmingLanguage ||
|
|
63
|
-
constants_3.ProgrammingLanguage.JS;
|
|
64
|
-
const folder = language === constants_3.ProgrammingLanguage.CSharp ? "." : constants_3.PathConstants.botWorkingDir;
|
|
65
|
-
lodash_1.assign(clonedInputs, {
|
|
66
|
-
folder: folder,
|
|
67
|
-
scenarios: scenarios,
|
|
68
|
-
language: language,
|
|
69
|
-
});
|
|
70
|
-
const botCode = typedi_1.Container.get(constants_3.ComponentNames.BotCode);
|
|
71
|
-
const res = await botCode.generate(context, clonedInputs);
|
|
72
|
-
if (res.isErr())
|
|
73
|
-
return teamsfx_api_1.err(res.error);
|
|
74
|
-
effects.push("generate bot code");
|
|
75
|
-
botConfig = {
|
|
76
|
-
name: constants_3.ComponentNames.TeamsBot,
|
|
77
|
-
hosting: inputs.hosting,
|
|
78
|
-
provision: language === constants_3.ProgrammingLanguage.CSharp,
|
|
79
|
-
deploy: true,
|
|
80
|
-
capabilities: botCapability ? [botCapability] : [],
|
|
81
|
-
build: true,
|
|
82
|
-
folder: folder,
|
|
83
|
-
};
|
|
84
|
-
projectSettings.components.push(botConfig);
|
|
85
|
-
addedComponents.push(botConfig.name);
|
|
86
|
-
effects.push(messages_1.Plans.generateSourceCodeAndConfig(constants_3.ComponentNames.TeamsBot));
|
|
87
|
-
}
|
|
88
|
-
// 2. generate provision bicep
|
|
89
|
-
// 2.0 bicep.init
|
|
90
|
-
{
|
|
91
|
-
const bicepComponent = typedi_1.Container.get("bicep");
|
|
92
|
-
const res = await bicepComponent.init(inputs.projectPath);
|
|
93
|
-
if (res.isErr())
|
|
94
|
-
return teamsfx_api_1.err(res.error);
|
|
95
|
-
}
|
|
96
|
-
const biceps = [];
|
|
97
|
-
// 2.1 bot-service bicep
|
|
98
|
-
if (!workflow_1.getComponent(projectSettings, constants_3.ComponentNames.BotService)) {
|
|
99
|
-
const clonedInputs = lodash_1.cloneDeep(inputs);
|
|
100
|
-
lodash_1.assign(clonedInputs, {
|
|
101
|
-
hosting: inputs.hosting,
|
|
102
|
-
scenario: constants_3.Scenarios.Bot,
|
|
103
|
-
});
|
|
104
|
-
const botService = typedi_1.Container.get(constants_3.ComponentNames.BotService);
|
|
105
|
-
const res = await botService.generateBicep(context, clonedInputs);
|
|
106
|
-
if (res.isErr())
|
|
107
|
-
return teamsfx_api_1.err(res.error);
|
|
108
|
-
res.value.forEach((b) => biceps.push(b));
|
|
109
|
-
projectSettings.components.push({
|
|
110
|
-
name: constants_3.ComponentNames.BotService,
|
|
111
|
-
provision: true,
|
|
112
|
-
});
|
|
113
|
-
addedComponents.push(constants_3.ComponentNames.BotService);
|
|
114
|
-
effects.push(messages_1.Plans.generateBicepAndConfig(constants_3.ComponentNames.BotService));
|
|
115
|
-
}
|
|
116
|
-
// 2.2 hosting bicep
|
|
117
|
-
const hostingConfig = workflow_1.getComponentByScenario(projectSettings, inputs.hosting, constants_3.Scenarios.Bot);
|
|
118
|
-
if (!hostingConfig) {
|
|
119
|
-
const clonedInputs = lodash_1.cloneDeep(inputs);
|
|
120
|
-
lodash_1.assign(clonedInputs, {
|
|
121
|
-
componentId: constants_3.ComponentNames.TeamsBot,
|
|
122
|
-
scenario: constants_3.Scenarios.Bot,
|
|
123
|
-
});
|
|
124
|
-
const hostingComponent = typedi_1.Container.get(inputs.hosting);
|
|
125
|
-
const res = await hostingComponent.generateBicep(context, clonedInputs);
|
|
126
|
-
if (res.isErr())
|
|
127
|
-
return teamsfx_api_1.err(res.error);
|
|
128
|
-
res.value.forEach((b) => biceps.push(b));
|
|
129
|
-
projectSettings.components.push({
|
|
130
|
-
name: inputs.hosting,
|
|
131
|
-
scenario: constants_3.Scenarios.Bot,
|
|
132
|
-
});
|
|
133
|
-
addedComponents.push(inputs.hosting);
|
|
134
|
-
effects.push(messages_1.Plans.generateBicepAndConfig(inputs.hosting));
|
|
135
|
-
}
|
|
136
|
-
// 2.3 identity bicep
|
|
137
|
-
if (!workflow_1.getComponent(projectSettings, constants_3.ComponentNames.Identity)) {
|
|
138
|
-
const clonedInputs = lodash_1.cloneDeep(inputs);
|
|
139
|
-
const identityComponent = typedi_1.Container.get(constants_3.ComponentNames.Identity);
|
|
140
|
-
const res = await identityComponent.generateBicep(context, clonedInputs);
|
|
141
|
-
if (res.isErr())
|
|
142
|
-
return teamsfx_api_1.err(res.error);
|
|
143
|
-
res.value.forEach((b) => biceps.push(b));
|
|
144
|
-
projectSettings.components.push({
|
|
145
|
-
name: constants_3.ComponentNames.Identity,
|
|
146
|
-
provision: true,
|
|
147
|
-
});
|
|
148
|
-
addedComponents.push(constants_3.ComponentNames.Identity);
|
|
149
|
-
effects.push(messages_1.Plans.generateBicepAndConfig(constants_3.ComponentNames.Identity));
|
|
150
|
-
}
|
|
151
|
-
//persist bicep
|
|
152
|
-
const bicepRes = await utils_2.bicepUtils.persistBiceps(inputs.projectPath, utils_1.convertToAlphanumericOnly(context.projectSetting.appName), biceps);
|
|
153
|
-
if (bicepRes.isErr())
|
|
154
|
-
return bicepRes;
|
|
155
|
-
// 3. generate config bicep
|
|
156
|
-
{
|
|
157
|
-
const res = await utils_2.generateConfigBiceps(context, inputs);
|
|
158
|
-
if (res.isErr())
|
|
159
|
-
return teamsfx_api_1.err(res.error);
|
|
160
|
-
effects.push("generate config biceps");
|
|
161
|
-
}
|
|
162
|
-
// 4. local debug settings
|
|
163
|
-
{
|
|
164
|
-
const res = await debug_1.generateLocalDebugSettings(context, inputs);
|
|
165
|
-
if (res.isErr())
|
|
166
|
-
return teamsfx_api_1.err(res.error);
|
|
167
|
-
effects.push("generate debug configs");
|
|
168
|
-
}
|
|
169
|
-
// 5. app-manifest.addCapability
|
|
170
|
-
{
|
|
171
|
-
const res = await this.addBotCapability(inputs, isM365);
|
|
172
|
-
if (res.isErr())
|
|
173
|
-
return teamsfx_api_1.err(res.error);
|
|
174
|
-
effects.push("add bot capability in app manifest");
|
|
175
|
-
}
|
|
176
|
-
projectSettings.programmingLanguage || (projectSettings.programmingLanguage = inputs[question_1.CoreQuestionNames.ProgrammingLanguage]);
|
|
177
|
-
lodash_1.merge(actionContext === null || actionContext === void 0 ? void 0 : actionContext.telemetryProps, {
|
|
178
|
-
[telemetry_1.TelemetryProperty.Components]: JSON.stringify(addedComponents),
|
|
179
|
-
});
|
|
180
|
-
await utils_2.scaffoldRootReadme(context.projectSetting, inputs.projectPath);
|
|
181
|
-
utils_2.addFeatureNotify(inputs, context.userInteraction, "Capability", [inputs.features]);
|
|
182
|
-
return teamsfx_api_1.ok(undefined);
|
|
183
|
-
}
|
|
184
|
-
async configure(context, inputs) {
|
|
185
|
-
const botCode = typedi_1.Container.get(constants_3.ComponentNames.BotCode);
|
|
186
|
-
return await botCode.configure(context, inputs);
|
|
187
|
-
}
|
|
188
|
-
async build(context, inputs) {
|
|
189
|
-
const botCode = typedi_1.Container.get(constants_3.ComponentNames.BotCode);
|
|
190
|
-
const res = await botCode.build(context, inputs);
|
|
191
|
-
if (res.isErr())
|
|
192
|
-
return teamsfx_api_1.err(res.error);
|
|
193
|
-
return teamsfx_api_1.ok(undefined);
|
|
194
|
-
}
|
|
195
|
-
async addBotCapability(inputs, isM365 = false) {
|
|
196
|
-
{
|
|
197
|
-
const manifestCapability = {
|
|
198
|
-
name: inputs[question_1.CoreQuestionNames.Features] === constants_2.MessageExtensionItem().id ||
|
|
199
|
-
inputs[question_1.CoreQuestionNames.Features] === constants_2.M365SearchAppOptionItem().id
|
|
200
|
-
? "MessageExtension"
|
|
201
|
-
: "Bot",
|
|
202
|
-
};
|
|
203
|
-
const clonedInputs = Object.assign(Object.assign({}, lodash_1.cloneDeep(inputs)), { validDomain: `{{state.${constants_3.ComponentNames.TeamsBot}.domain}}` });
|
|
204
|
-
const appManifest = typedi_1.Container.get(constants_3.ComponentNames.AppManifest);
|
|
205
|
-
return await appManifest.addCapability(clonedInputs, [manifestCapability], isM365);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
};
|
|
209
|
-
tslib_1.__decorate([
|
|
210
|
-
lib_1.hooks([
|
|
211
|
-
actionExecutionMW_1.ActionExecutionMW({
|
|
212
|
-
enableTelemetry: true,
|
|
213
|
-
telemetryEventName: telemetry_1.TelemetryEvent.AddFeature,
|
|
214
|
-
telemetryComponentName: constants_3.ComponentNames.TeamsBot,
|
|
215
|
-
errorSource: "BT",
|
|
216
|
-
errorHandler: (error) => {
|
|
217
|
-
if (error && !(error === null || error === void 0 ? void 0 : error.name)) {
|
|
218
|
-
error.name = "addBotError";
|
|
219
|
-
}
|
|
220
|
-
return error;
|
|
221
|
-
},
|
|
222
|
-
}),
|
|
223
|
-
]),
|
|
224
|
-
tslib_1.__metadata("design:type", Function),
|
|
225
|
-
tslib_1.__metadata("design:paramtypes", [Object, Object, Object]),
|
|
226
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
227
|
-
], TeamsBot.prototype, "add", null);
|
|
228
|
-
TeamsBot = tslib_1.__decorate([
|
|
229
|
-
typedi_1.Service(constants_3.ComponentNames.TeamsBot)
|
|
230
|
-
], TeamsBot);
|
|
231
|
-
exports.TeamsBot = TeamsBot;
|
|
232
|
-
/**
|
|
233
|
-
*
|
|
234
|
-
* capability = Notification
|
|
235
|
-
* bot-host-type-trigger = http-restify
|
|
236
|
-
* group=bot, scenario=notification-restify, host=app-service
|
|
237
|
-
* bot-host-type-trigger = [http-functions, timer-functions]
|
|
238
|
-
* group=bot, host=function, scenario=notification-function-base + [notification-trigger-http, notification-trigger-timer]
|
|
239
|
-
* capability = command-bot:
|
|
240
|
-
* group=bot, host=app-service, scenario=command-and-response
|
|
241
|
-
* capability = workflow-bot:
|
|
242
|
-
* group=bot, host=app-service, scenario=workflow
|
|
243
|
-
* capability = Bot
|
|
244
|
-
* group=bot, host=app-service, scenario=default
|
|
245
|
-
* capability = MessagingExtension
|
|
246
|
-
* group=bot, host=app-service, scenario=default
|
|
247
|
-
*/
|
|
248
|
-
const featureToCapability = new Map([
|
|
249
|
-
[constants_2.BotOptionItem().id, constants_1.BotCapabilities.BOT],
|
|
250
|
-
[constants_2.MessageExtensionItem().id, constants_1.BotCapabilities.MESSAGE_EXTENSION],
|
|
251
|
-
[constants_2.M365SearchAppOptionItem().id, constants_1.BotCapabilities.M365_SEARCH_APP],
|
|
252
|
-
[constants_2.CommandAndResponseOptionItem().id, constants_1.BotCapabilities.COMMAND_AND_RESPONSE],
|
|
253
|
-
[constants_2.NotificationOptionItem().id, constants_1.BotCapabilities.NOTIFICATION],
|
|
254
|
-
[constants_2.WorkflowOptionItem().id, constants_1.BotCapabilities.WORKFLOW],
|
|
255
|
-
]);
|
|
256
|
-
const featureToScenario = new Map([
|
|
257
|
-
[constants_2.BotOptionItem().id, () => [constants_1.TemplateProjectsScenarios.DEFAULT_SCENARIO_NAME]],
|
|
258
|
-
[constants_2.NotificationOptionItem().id, (triggers) => resolveNotificationScenario(triggers)],
|
|
259
|
-
[
|
|
260
|
-
constants_2.CommandAndResponseOptionItem().id,
|
|
261
|
-
() => [constants_1.TemplateProjectsScenarios.COMMAND_AND_RESPONSE_SCENARIO_NAME],
|
|
262
|
-
],
|
|
263
|
-
[constants_2.WorkflowOptionItem().id, () => [constants_1.TemplateProjectsScenarios.WORKFLOW_SCENARIO_NAME]],
|
|
264
|
-
[constants_2.MessageExtensionItem().id, () => [constants_1.TemplateProjectsScenarios.DEFAULT_SCENARIO_NAME]],
|
|
265
|
-
[constants_2.M365SearchAppOptionItem().id, () => [constants_1.TemplateProjectsScenarios.M365_SCENARIO_NAME]],
|
|
266
|
-
]);
|
|
267
|
-
const triggersToScenarios = new Map([
|
|
268
|
-
[question_2.AppServiceOptionItem().id, [constants_1.TemplateProjectsScenarios.NOTIFICATION_RESTIFY_SCENARIO_NAME]],
|
|
269
|
-
[question_2.AppServiceOptionItemForVS().id, [constants_1.TemplateProjectsScenarios.NOTIFICATION_WEBAPI_SCENARIO_NAME]],
|
|
270
|
-
[
|
|
271
|
-
question_2.FunctionsHttpTriggerOptionItem().id,
|
|
272
|
-
[
|
|
273
|
-
constants_1.TemplateProjectsScenarios.NOTIFICATION_FUNCTION_BASE_SCENARIO_NAME,
|
|
274
|
-
constants_1.TemplateProjectsScenarios.NOTIFICATION_FUNCTION_TRIGGER_HTTP_SCENARIO_NAME,
|
|
275
|
-
],
|
|
276
|
-
],
|
|
277
|
-
[
|
|
278
|
-
question_2.FunctionsTimerTriggerOptionItem().id,
|
|
279
|
-
[
|
|
280
|
-
constants_1.TemplateProjectsScenarios.NOTIFICATION_FUNCTION_BASE_SCENARIO_NAME,
|
|
281
|
-
constants_1.TemplateProjectsScenarios.NOTIFICATION_FUNCTION_TRIGGER_TIMER_SCENARIO_NAME,
|
|
282
|
-
],
|
|
283
|
-
],
|
|
284
|
-
[
|
|
285
|
-
question_2.FunctionsHttpAndTimerTriggerOptionItem().id,
|
|
286
|
-
[
|
|
287
|
-
constants_1.TemplateProjectsScenarios.NOTIFICATION_FUNCTION_BASE_SCENARIO_NAME,
|
|
288
|
-
constants_1.TemplateProjectsScenarios.NOTIFICATION_FUNCTION_TRIGGER_HTTP_SCENARIO_NAME,
|
|
289
|
-
constants_1.TemplateProjectsScenarios.NOTIFICATION_FUNCTION_TRIGGER_TIMER_SCENARIO_NAME,
|
|
290
|
-
],
|
|
291
|
-
],
|
|
292
|
-
]);
|
|
293
|
-
const resolveNotificationScenario = (triggers) => {
|
|
294
|
-
if (typeof triggers !== "string") {
|
|
295
|
-
return [];
|
|
296
|
-
}
|
|
297
|
-
return triggersToScenarios.get(triggers) || [];
|
|
298
|
-
};
|
|
299
|
-
const resolveHosting = (inputs) => {
|
|
300
|
-
let hosting = "azure-web-app";
|
|
301
|
-
const triggers = inputs[constants_1.QuestionNames.BOT_HOST_TYPE_TRIGGER];
|
|
302
|
-
if ((triggers === null || triggers === void 0 ? void 0 : triggers.includes(question_2.FunctionsHttpTriggerOptionItem().id)) ||
|
|
303
|
-
(triggers === null || triggers === void 0 ? void 0 : triggers.includes(question_2.FunctionsTimerTriggerOptionItem().id)) ||
|
|
304
|
-
(triggers === null || triggers === void 0 ? void 0 : triggers.includes(question_2.FunctionsHttpAndTimerTriggerOptionItem().id))) {
|
|
305
|
-
hosting = "azure-function";
|
|
306
|
-
}
|
|
307
|
-
return hosting;
|
|
308
|
-
};
|
|
309
|
-
//# sourceMappingURL=bot.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bot.js","sourceRoot":"","sources":["../../../../src/component/feature/bot/bot.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,+CAA8C;AAC9C,wDAagC;AACh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CAAC,gDAAgD;SAC3E;KACF;IACD;QACE,0CAA+B,EAAE,CAAC,EAAE;QACpC;YACE,qCAAyB,CAAC,wCAAwC;YAClE,qCAAyB,CAAC,iDAAiD;SAC5E;KACF;IACD;QACE,iDAAsC,EAAE,CAAC,EAAE;QAC3C;YACE,qCAAyB,CAAC,wCAAwC;YAClE,qCAAyB,CAAC,gDAAgD;YAC1E,qCAAyB,CAAC,iDAAiD;SAC5E;KACF;CACF,CAAC,CAAC;AAEH,MAAM,2BAA2B,GAAG,CAAC,QAAiB,EAA+B,EAAE;IACrF,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;QAChC,OAAO,EAAE,CAAC;KACX;IACD,OAAO,mBAAmB,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;AACjD,CAAC,CAAC;AAEF,MAAM,cAAc,GAA8C,CAAC,MAAM,EAAU,EAAE;IACnF,IAAI,OAAO,GAAG,eAAe,CAAC;IAC9B,MAAM,QAAQ,GAAG,MAAM,CAAC,yBAAa,CAAC,qBAAqB,CAAa,CAAC;IACzE,IACE,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,QAAQ,CAAC,yCAA8B,EAAE,CAAC,EAAE,CAAC;SACvD,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,QAAQ,CAAC,0CAA+B,EAAE,CAAC,EAAE,CAAC,CAAA;SACxD,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,QAAQ,CAAC,iDAAsC,EAAE,CAAC,EAAE,CAAC,CAAA,EAC/D;QACA,OAAO,GAAG,gBAAgB,CAAC;KAC5B;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ContextV3, FxError, InputsWithProjectPath, Result } from "@microsoft/teamsfx-api";
|
|
2
|
-
import "reflect-metadata";
|
|
3
|
-
import "../connection/azureWebAppConfig";
|
|
4
|
-
import "../resource/azureSql";
|
|
5
|
-
import "../resource/identity";
|
|
6
|
-
export declare class KeyVaultFeature {
|
|
7
|
-
name: string;
|
|
8
|
-
/**
|
|
9
|
-
* 1. config keyVault
|
|
10
|
-
* 2. add keyVault provision bicep
|
|
11
|
-
* 3. re-generate resources that connect to key-vault
|
|
12
|
-
* 4. persist bicep
|
|
13
|
-
*/
|
|
14
|
-
add(context: ContextV3, inputs: InputsWithProjectPath): Promise<Result<undefined, FxError>>;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=keyVault.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keyVault.d.ts","sourceRoot":"","sources":["../../../src/component/feature/keyVault.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,SAAS,EAGT,OAAO,EACP,qBAAqB,EAErB,MAAM,EACP,MAAM,wBAAwB,CAAC;AAChC,OAAO,kBAAkB,CAAC;AAK1B,OAAO,iCAAiC,CAAC;AAIzC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,sBAAsB,CAAC;AAK9B,qBACa,eAAe;IAC1B,IAAI,SAAuB;IAE3B;;;;;OAKG;IASG,GAAG,CACP,OAAO,EAAE,SAAS,EAClB,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;CA0CvC"}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.KeyVaultFeature = void 0;
|
|
6
|
-
const tslib_1 = require("tslib");
|
|
7
|
-
const lib_1 = require("@feathersjs/hooks/lib");
|
|
8
|
-
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
9
|
-
require("reflect-metadata");
|
|
10
|
-
const typedi_1 = require("typedi");
|
|
11
|
-
const utils_1 = require("../../common/utils");
|
|
12
|
-
const constants_1 = require("../constants");
|
|
13
|
-
require("../connection/azureWebAppConfig");
|
|
14
|
-
const constants_2 = require("../constants");
|
|
15
|
-
const messages_1 = require("../messages");
|
|
16
|
-
const actionExecutionMW_1 = require("../middleware/actionExecutionMW");
|
|
17
|
-
require("../resource/azureSql");
|
|
18
|
-
require("../resource/identity");
|
|
19
|
-
const utils_2 = require("../utils");
|
|
20
|
-
const workflow_1 = require("../workflow");
|
|
21
|
-
let KeyVaultFeature = class KeyVaultFeature {
|
|
22
|
-
constructor() {
|
|
23
|
-
this.name = "key-vault-feature";
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* 1. config keyVault
|
|
27
|
-
* 2. add keyVault provision bicep
|
|
28
|
-
* 3. re-generate resources that connect to key-vault
|
|
29
|
-
* 4. persist bicep
|
|
30
|
-
*/
|
|
31
|
-
async add(context, inputs) {
|
|
32
|
-
const projectSettings = context.projectSetting;
|
|
33
|
-
const keyVaultComponent = workflow_1.getComponent(projectSettings, constants_2.ComponentNames.KeyVault);
|
|
34
|
-
if (keyVaultComponent)
|
|
35
|
-
return teamsfx_api_1.ok(undefined);
|
|
36
|
-
const effects = [];
|
|
37
|
-
// config
|
|
38
|
-
projectSettings.components.push({
|
|
39
|
-
name: constants_2.ComponentNames.KeyVault,
|
|
40
|
-
connections: [constants_2.ComponentNames.Identity],
|
|
41
|
-
provision: true,
|
|
42
|
-
});
|
|
43
|
-
effects.push(messages_1.Plans.addFeature("key-vault"));
|
|
44
|
-
// bicep.init
|
|
45
|
-
{
|
|
46
|
-
const bicepComponent = typedi_1.Container.get("bicep");
|
|
47
|
-
const res = await bicepComponent.init(inputs.projectPath);
|
|
48
|
-
if (res.isErr())
|
|
49
|
-
return teamsfx_api_1.err(res.error);
|
|
50
|
-
}
|
|
51
|
-
// key-vault provision bicep
|
|
52
|
-
{
|
|
53
|
-
const keyVaultComponent = typedi_1.Container.get(constants_2.ComponentNames.KeyVault);
|
|
54
|
-
const res = await keyVaultComponent.generateBicep(context, inputs);
|
|
55
|
-
if (res.isErr())
|
|
56
|
-
return teamsfx_api_1.err(res.error);
|
|
57
|
-
effects.push("generate key-vault provision bicep");
|
|
58
|
-
const persistRes = await utils_2.bicepUtils.persistBiceps(inputs.projectPath, utils_1.convertToAlphanumericOnly(context.projectSetting.appName), res.value);
|
|
59
|
-
if (persistRes.isErr())
|
|
60
|
-
return persistRes;
|
|
61
|
-
}
|
|
62
|
-
// generate config bicep
|
|
63
|
-
{
|
|
64
|
-
const res = await utils_2.generateConfigBiceps(context, inputs);
|
|
65
|
-
if (res.isErr())
|
|
66
|
-
return teamsfx_api_1.err(res.error);
|
|
67
|
-
effects.push("update config biceps");
|
|
68
|
-
}
|
|
69
|
-
utils_2.addFeatureNotify(inputs, context.userInteraction, "Resource", [constants_1.AzureResourceKeyVault.id]);
|
|
70
|
-
return teamsfx_api_1.ok(undefined);
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
tslib_1.__decorate([
|
|
74
|
-
lib_1.hooks([
|
|
75
|
-
actionExecutionMW_1.ActionExecutionMW({
|
|
76
|
-
errorSource: "kv",
|
|
77
|
-
enableTelemetry: true,
|
|
78
|
-
telemetryComponentName: "fx-resource-key-vault",
|
|
79
|
-
telemetryEventName: "generate-arm-templates",
|
|
80
|
-
}),
|
|
81
|
-
]),
|
|
82
|
-
tslib_1.__metadata("design:type", Function),
|
|
83
|
-
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
84
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
85
|
-
], KeyVaultFeature.prototype, "add", null);
|
|
86
|
-
KeyVaultFeature = tslib_1.__decorate([
|
|
87
|
-
typedi_1.Service("key-vault-feature")
|
|
88
|
-
], KeyVaultFeature);
|
|
89
|
-
exports.KeyVaultFeature = KeyVaultFeature;
|
|
90
|
-
//# sourceMappingURL=keyVault.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keyVault.js","sourceRoot":"","sources":["../../../src/component/feature/key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@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ContextV3, FxError, InputsWithProjectPath, Platform, QTreeNode, Result } from "@microsoft/teamsfx-api";
|
|
2
|
-
import "reflect-metadata";
|
|
3
|
-
export declare class SPFxTab {
|
|
4
|
-
name: string;
|
|
5
|
-
add(context: ContextV3, inputs: InputsWithProjectPath): Promise<Result<undefined, FxError>>;
|
|
6
|
-
}
|
|
7
|
-
export declare function getSPFxScaffoldQuestion(platform: Platform): QTreeNode;
|
|
8
|
-
export declare function getAddSPFxQuestionNode(projectPath: string | undefined): Promise<Result<QTreeNode | undefined, FxError>>;
|
|
9
|
-
//# sourceMappingURL=spfx.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spfx.d.ts","sourceRoot":"","sources":["../../../src/component/feature/spfx.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,SAAS,EAET,OAAO,EACP,qBAAqB,EAErB,QAAQ,EAER,SAAS,EACT,MAAM,EACP,MAAM,wBAAwB,CAAC;AAChC,OAAO,kBAAkB,CAAC;AAmB1B,qBACa,OAAO;IAClB,IAAI,SAA0B;IACxB,GAAG,CACP,OAAO,EAAE,SAAS,EAClB,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;CAwCvC;AAED,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,QAAQ,GAAG,SAAS,CAuBrE;AAED,wBAAsB,sBAAsB,CAC1C,WAAW,EAAE,MAAM,GAAG,SAAS,GAC9B,OAAO,CAAC,MAAM,CAAC,SAAS,GAAG,SAAS,EAAE,OAAO,CAAC,CAAC,CA2BjD"}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.getAddSPFxQuestionNode = exports.getSPFxScaffoldQuestion = exports.SPFxTab = void 0;
|
|
6
|
-
const tslib_1 = require("tslib");
|
|
7
|
-
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
8
|
-
const path = tslib_1.__importStar(require("path"));
|
|
9
|
-
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
10
|
-
require("reflect-metadata");
|
|
11
|
-
const typedi_1 = require("typedi");
|
|
12
|
-
const globalVars_1 = require("../../core/globalVars");
|
|
13
|
-
const question_1 = require("../../core/question");
|
|
14
|
-
const questions_1 = require("../../component/resource/spfx/utils/questions");
|
|
15
|
-
const constants_1 = require("../constants");
|
|
16
|
-
const debug_1 = require("../debug");
|
|
17
|
-
const utils_1 = require("../utils");
|
|
18
|
-
const featureFlags_1 = require("../../common/featureFlags");
|
|
19
|
-
const constants_2 = require("../constants");
|
|
20
|
-
const workflow_1 = require("../workflow");
|
|
21
|
-
let SPFxTab = class SPFxTab {
|
|
22
|
-
constructor() {
|
|
23
|
-
this.name = constants_1.ComponentNames.SPFxTab;
|
|
24
|
-
}
|
|
25
|
-
async add(context, inputs) {
|
|
26
|
-
const projectSettings = context.projectSetting;
|
|
27
|
-
const spfxTabConfig = workflow_1.getComponent(projectSettings, constants_1.ComponentNames.SPFx);
|
|
28
|
-
if (!spfxTabConfig) {
|
|
29
|
-
// add teams-tab
|
|
30
|
-
projectSettings.components.push({
|
|
31
|
-
name: "teams-tab",
|
|
32
|
-
hosting: constants_1.ComponentNames.SPFx,
|
|
33
|
-
deploy: true,
|
|
34
|
-
folder: inputs.folder || "SPFx",
|
|
35
|
-
build: true,
|
|
36
|
-
});
|
|
37
|
-
// add hosting component
|
|
38
|
-
projectSettings.components.push({
|
|
39
|
-
name: constants_1.ComponentNames.SPFx,
|
|
40
|
-
provision: true,
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
projectSettings.programmingLanguage =
|
|
44
|
-
projectSettings.programmingLanguage || inputs[question_1.CoreQuestionNames.ProgrammingLanguage];
|
|
45
|
-
globalVars_1.globalVars.isVS = inputs[question_1.CoreQuestionNames.ProgrammingLanguage] === "csharp";
|
|
46
|
-
const effects = ["config 'teams-tab' in projectSettings"];
|
|
47
|
-
{
|
|
48
|
-
const spfxCode = typedi_1.Container.get(constants_1.ComponentNames.SPFxTabCode);
|
|
49
|
-
const res = await spfxCode.generate(context, inputs);
|
|
50
|
-
if (res.isErr())
|
|
51
|
-
return teamsfx_api_1.err(res.error);
|
|
52
|
-
effects.push("scaffold spfx code");
|
|
53
|
-
}
|
|
54
|
-
{
|
|
55
|
-
const res = await debug_1.generateLocalDebugSettings(context, inputs);
|
|
56
|
-
if (res.isErr())
|
|
57
|
-
return teamsfx_api_1.err(res.error);
|
|
58
|
-
effects.push("generate debug settings");
|
|
59
|
-
}
|
|
60
|
-
if (featureFlags_1.isSPFxMultiTabEnabled()) {
|
|
61
|
-
await utils_1.scaffoldRootReadme(context.projectSetting, inputs.projectPath);
|
|
62
|
-
}
|
|
63
|
-
utils_1.addFeatureNotify(inputs, context.userInteraction, "Capability", [inputs.features]);
|
|
64
|
-
return teamsfx_api_1.ok(undefined);
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
SPFxTab = tslib_1.__decorate([
|
|
68
|
-
typedi_1.Service(constants_1.ComponentNames.SPFxTab)
|
|
69
|
-
], SPFxTab);
|
|
70
|
-
exports.SPFxTab = SPFxTab;
|
|
71
|
-
function getSPFxScaffoldQuestion(platform) {
|
|
72
|
-
const spfx_frontend_host = new teamsfx_api_1.QTreeNode({
|
|
73
|
-
type: "group",
|
|
74
|
-
});
|
|
75
|
-
const spfx_select_package_question = new teamsfx_api_1.QTreeNode(questions_1.spfxPackageSelectQuestion);
|
|
76
|
-
const spfx_framework_type = new teamsfx_api_1.QTreeNode(questions_1.frameworkQuestion);
|
|
77
|
-
const spfx_webpart_name = new teamsfx_api_1.QTreeNode(questions_1.webpartNameQuestion);
|
|
78
|
-
if (platform !== teamsfx_api_1.Platform.CLI_HELP) {
|
|
79
|
-
const spfx_load_package_versions = new teamsfx_api_1.QTreeNode(questions_1.loadPackageVersions);
|
|
80
|
-
spfx_load_package_versions.addChild(spfx_select_package_question);
|
|
81
|
-
spfx_select_package_question.addChild(spfx_framework_type);
|
|
82
|
-
spfx_select_package_question.addChild(spfx_webpart_name);
|
|
83
|
-
spfx_frontend_host.addChild(spfx_load_package_versions);
|
|
84
|
-
}
|
|
85
|
-
else {
|
|
86
|
-
spfx_frontend_host.addChild(spfx_select_package_question);
|
|
87
|
-
spfx_frontend_host.addChild(spfx_framework_type);
|
|
88
|
-
spfx_frontend_host.addChild(spfx_webpart_name);
|
|
89
|
-
}
|
|
90
|
-
return spfx_frontend_host;
|
|
91
|
-
}
|
|
92
|
-
exports.getSPFxScaffoldQuestion = getSPFxScaffoldQuestion;
|
|
93
|
-
async function getAddSPFxQuestionNode(projectPath) {
|
|
94
|
-
var _a;
|
|
95
|
-
const spfx_add_feature = new teamsfx_api_1.QTreeNode({
|
|
96
|
-
type: "group",
|
|
97
|
-
});
|
|
98
|
-
spfx_add_feature.condition = { equals: constants_2.TabSPFxNewUIItem().id };
|
|
99
|
-
const spfx_version_check = new teamsfx_api_1.QTreeNode(questions_1.versionCheckQuestion);
|
|
100
|
-
spfx_add_feature.addChild(spfx_version_check);
|
|
101
|
-
if (projectPath) {
|
|
102
|
-
const yorcPath = path.join(projectPath, "SPFx", ".yo-rc.json");
|
|
103
|
-
if (await fs_extra_1.default.pathExists(yorcPath)) {
|
|
104
|
-
const yorc = await fs_extra_1.default.readJson(yorcPath);
|
|
105
|
-
const template = (_a = yorc["@microsoft/generator-sharepoint"]) === null || _a === void 0 ? void 0 : _a.template;
|
|
106
|
-
if (template === undefined || template === "") {
|
|
107
|
-
const spfx_framework_type = new teamsfx_api_1.QTreeNode(questions_1.frameworkQuestion);
|
|
108
|
-
spfx_version_check.addChild(spfx_framework_type);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
else {
|
|
112
|
-
const spfx_framework_type = new teamsfx_api_1.QTreeNode(questions_1.frameworkQuestion);
|
|
113
|
-
spfx_version_check.addChild(spfx_framework_type);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
const spfx_webpart_name = new teamsfx_api_1.QTreeNode(questions_1.webpartNameQuestion);
|
|
117
|
-
spfx_version_check.addChild(spfx_webpart_name);
|
|
118
|
-
return teamsfx_api_1.ok(spfx_add_feature);
|
|
119
|
-
}
|
|
120
|
-
exports.getAddSPFxQuestionNode = getAddSPFxQuestionNode;
|
|
121
|
-
//# sourceMappingURL=spfx.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spfx.js","sourceRoot":"","sources":["../../../src/component/feature/spfx.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAGlC,gEAA0B;AAC1B,mDAA6B;AAC7B,wDAUgC;AAChC,4BAA0B;AAC1B,mCAA4C;AAC5C,sDAAmD;AACnD,kDAAwD;AACxD,6EAMuD;AAEvD,4CAA8C;AAC9C,oCAAsD;AACtD,oCAAgE;AAChE,4DAAkE;AAClE,4CAAgD;AAChD,0CAA2C;AAG3C,IAAa,OAAO,GAApB,MAAa,OAAO;IAApB;QACE,SAAI,GAAG,0BAAc,CAAC,OAAO,CAAC;IA4ChC,CAAC;IA3CC,KAAK,CAAC,GAAG,CACP,OAAkB,EAClB,MAA6B;QAE7B,MAAM,eAAe,GAAG,OAAO,CAAC,cAAmC,CAAC;QACpE,MAAM,aAAa,GAAG,uBAAY,CAAC,eAAe,EAAE,0BAAc,CAAC,IAAI,CAAC,CAAC;QACzE,IAAI,CAAC,aAAa,EAAE;YAClB,gBAAgB;YAChB,eAAe,CAAC,UAAU,CAAC,IAAI,CAAC;gBAC9B,IAAI,EAAE,WAAW;gBACjB,OAAO,EAAE,0BAAc,CAAC,IAAI;gBAC5B,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE,MAAM,CAAC,MAAM,IAAI,MAAM;gBAC/B,KAAK,EAAE,IAAI;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AAC;IAE/D,MAAM,kBAAkB,GAAG,IAAI,uBAAS,CAAC,gCAAoB,CAAC,CAAC;IAC/D,gBAAgB,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC;IAE9C,IAAI,WAAW,EAAE;QACf,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,aAAa,CAAC,CAAC;QAC/D,IAAI,MAAM,kBAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;YACjC,MAAM,IAAI,GAAG,MAAM,kBAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;YACzC,MAAM,QAAQ,GAAG,MAAA,IAAI,CAAC,iCAAiC,CAAC,0CAAE,QAAQ,CAAC;YACnE,IAAI,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,EAAE,EAAE;gBAC7C,MAAM,mBAAmB,GAAG,IAAI,uBAAS,CAAC,6BAAiB,CAAC,CAAC;gBAC7D,kBAAkB,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;aAClD;SACF;aAAM;YACL,MAAM,mBAAmB,GAAG,IAAI,uBAAS,CAAC,6BAAiB,CAAC,CAAC;YAC7D,kBAAkB,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;SAClD;KACF;IAED,MAAM,iBAAiB,GAAG,IAAI,uBAAS,CAAC,+BAAmB,CAAC,CAAC;IAC7D,kBAAkB,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;IAC/C,OAAO,gBAAE,CAAC,gBAAgB,CAAC,CAAC;AAC9B,CAAC;AA7BD,wDA6BC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ContextV3, FxError, InputsWithProjectPath, Result } from "@microsoft/teamsfx-api";
|
|
2
|
-
import "reflect-metadata";
|
|
3
|
-
import "../connection/azureWebAppConfig";
|
|
4
|
-
import "../resource/azureSql";
|
|
5
|
-
import "../resource/identity";
|
|
6
|
-
export declare class Sql {
|
|
7
|
-
name: string;
|
|
8
|
-
add(context: ContextV3, inputs: InputsWithProjectPath): Promise<Result<undefined, FxError>>;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=sql.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sql.d.ts","sourceRoot":"","sources":["../../../src/component/feature/sql.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAO,OAAO,EAAE,qBAAqB,EAAM,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACpG,OAAO,kBAAkB,CAAC;AAG1B,OAAO,iCAAiC,CAAC;AACzC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,sBAAsB,CAAC;AAU9B,qBACa,GAAG;IACd,IAAI,SAAS;IAEP,GAAG,CACP,OAAO,EAAE,SAAS,EAClB,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;CAqDvC"}
|