@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,89 +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.sqlConfirmPasswordValidatorGenerator = exports.sqlPasswordValidatorGenerator = exports.sqlUserNameValidator = void 0;
|
|
6
|
-
const localizeUtils_1 = require("../../../../common/localizeUtils");
|
|
7
|
-
function sqlUserNameValidator(name) {
|
|
8
|
-
name = name === null || name === void 0 ? void 0 : name.trim();
|
|
9
|
-
if (!name) {
|
|
10
|
-
return localizeUtils_1.getLocalizedString("plugins.sql.getQuestionAdminName.validation.sqlUserNameEmpty");
|
|
11
|
-
}
|
|
12
|
-
if (invalidSqlUserName.names.includes(name.toLowerCase())) {
|
|
13
|
-
return localizeUtils_1.getLocalizedString("plugins.sql.getQuestionAdminName.validation.sqlUserNameContainsSqlIdentifier");
|
|
14
|
-
}
|
|
15
|
-
if (name.search(/[^a-zA-Z0-9]+/) >= 0) {
|
|
16
|
-
return localizeUtils_1.getLocalizedString("plugins.sql.getQuestionAdminName.validation.sqlUserNameContainsNonAlphanumeric");
|
|
17
|
-
}
|
|
18
|
-
if (name.match(/^[0-9]/)) {
|
|
19
|
-
return localizeUtils_1.getLocalizedString("plugins.sql.getQuestionAdminName.validation.sqlUserNameStartWithNumber");
|
|
20
|
-
}
|
|
21
|
-
return undefined;
|
|
22
|
-
}
|
|
23
|
-
exports.sqlUserNameValidator = sqlUserNameValidator;
|
|
24
|
-
class invalidSqlUserName {
|
|
25
|
-
}
|
|
26
|
-
invalidSqlUserName.names = [
|
|
27
|
-
"admin",
|
|
28
|
-
"administrator",
|
|
29
|
-
"sa",
|
|
30
|
-
"root",
|
|
31
|
-
"dbmanager",
|
|
32
|
-
"loginmanager",
|
|
33
|
-
"dbo",
|
|
34
|
-
"guest",
|
|
35
|
-
"public",
|
|
36
|
-
"db_accessadmin",
|
|
37
|
-
"db_backupoperator",
|
|
38
|
-
"db_datareader",
|
|
39
|
-
"db_datawriter",
|
|
40
|
-
"db_ddladmin",
|
|
41
|
-
"db_denydatareader",
|
|
42
|
-
"db_denydatawriter",
|
|
43
|
-
"db_owner",
|
|
44
|
-
"db_securityadmin",
|
|
45
|
-
"information_schema",
|
|
46
|
-
"sys",
|
|
47
|
-
];
|
|
48
|
-
/**
|
|
49
|
-
* Your password must be at least 8 characters in length.
|
|
50
|
-
* Your password must be no more than 128 characters in length.
|
|
51
|
-
* Your password must contain characters from three of the following categories – English uppercase letters, English lowercase letters, numbers (0-9), and non-alphanumeric characters (!, $, #, %, etc.).
|
|
52
|
-
* Your password cannot contain all or part of the login name. Part of a login name is defined as three or more consecutive alphanumeric characters.
|
|
53
|
-
*/
|
|
54
|
-
function sqlPasswordValidatorGenerator(name) {
|
|
55
|
-
return (password) => {
|
|
56
|
-
password = password === null || password === void 0 ? void 0 : password.trim();
|
|
57
|
-
if (!password) {
|
|
58
|
-
return localizeUtils_1.getLocalizedString("plugins.sql.getQuestionAdminPassword.validation.sqlPasswordEmpty");
|
|
59
|
-
}
|
|
60
|
-
if (password.length < 8) {
|
|
61
|
-
return localizeUtils_1.getLocalizedString("plugins.sql.getQuestionAdminPassword.validation.sqlPasswordLengthLessThan8");
|
|
62
|
-
}
|
|
63
|
-
if (password.length > 128) {
|
|
64
|
-
return localizeUtils_1.getLocalizedString("plugins.sql.getQuestionAdminPassword.validation.sqlPasswordLengthGreatThan128");
|
|
65
|
-
}
|
|
66
|
-
const containLowerLetters = password.match(/[a-z]+/) ? 1 : 0;
|
|
67
|
-
const containUpperLetters = password.match(/[A-Z]+/) ? 1 : 0;
|
|
68
|
-
const containNumbers = password.match(/[0-9]+/) ? 1 : 0;
|
|
69
|
-
const containSpecialCharacters = password.match(/[\[\]{}/~`_"$&+,:;=?@#|'<>.^*()%!-]+/) ? 1 : 0;
|
|
70
|
-
if (containLowerLetters + containUpperLetters + containNumbers + containSpecialCharacters < 3) {
|
|
71
|
-
return localizeUtils_1.getLocalizedString("plugins.sql.getQuestionAdminPassword.validation.sqlPasswordMustContain3Categories");
|
|
72
|
-
}
|
|
73
|
-
if (password.toLowerCase().search(name.toLowerCase()) >= 0) {
|
|
74
|
-
return localizeUtils_1.getLocalizedString("plugins.sql.getQuestionAdminPassword.validation.sqlPasswordCannotContainUserName");
|
|
75
|
-
}
|
|
76
|
-
return undefined;
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
exports.sqlPasswordValidatorGenerator = sqlPasswordValidatorGenerator;
|
|
80
|
-
function sqlConfirmPasswordValidatorGenerator(password) {
|
|
81
|
-
return (confirm) => {
|
|
82
|
-
if (password !== confirm) {
|
|
83
|
-
return localizeUtils_1.getLocalizedString("plugins.sql.getQuestionConfirmPassword.validation.sqlPasswordMustMatch");
|
|
84
|
-
}
|
|
85
|
-
return undefined;
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
exports.sqlConfirmPasswordValidatorGenerator = sqlConfirmPasswordValidatorGenerator;
|
|
89
|
-
//# sourceMappingURL=checkInput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkInput.js","sourceRoot":"","sources":["../../../../../src/component/resource/azureSql/utils/checkInput.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,oEAAsE;AACtE,SAAgB,oBAAoB,CAAC,IAAY;IAC/C,IAAI,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,EAAE,CAAC;IAEpB,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,kCAAkB,CAAC,8DAA8D,CAAC,CAAC;KAC3F;IAED,IAAI,kBAAkB,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,EAAE;QACzD,OAAO,kCAAkB,CACvB,8EAA8E,CAC/E,CAAC;KACH;IAED,IAAI,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE;QACrC,OAAO,kCAAkB,CACvB,gFAAgF,CACjF,CAAC;KACH;IAED,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,E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AAG,QAAQ,CAAC,KAAK,CAAC,sCAAsC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAEhG,IAAI,mBAAmB,GAAG,mBAAmB,GAAG,cAAc,GAAG,wBAAwB,GAAG,CAAC,EAAE;YAC7F,OAAO,kCAAkB,CACvB,mFAAmF,CACpF,CAAC;SACH;QAED,IAAI,QAAQ,CAAC,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC,EAAE;YAC1D,OAAO,kCAAkB,CACvB,kFAAkF,CACnF,CAAC;SACH;QAED,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC;AACJ,CAAC;AAxCD,sEAwCC;AAED,SAAgB,oCAAoC,CAClD,QAAgB;IAEhB,OAAO,CAAC,OAAe,EAAsB,EAAE;QAC7C,IAAI,QAAQ,KAAK,OAAO,EAAE;YACxB,OAAO,kCAAkB,CACvB,wEAAwE,CACzE,CAAC;SACH;QACD,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC;AACJ,CAAC;AAXD,oFAWC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare enum UserType {
|
|
2
|
-
User = "User",
|
|
3
|
-
ServicePrincipal = "ServicePrincipal"
|
|
4
|
-
}
|
|
5
|
-
export interface TokenInfo {
|
|
6
|
-
name: string;
|
|
7
|
-
objectId: string;
|
|
8
|
-
userType: UserType;
|
|
9
|
-
}
|
|
10
|
-
export declare function parseToken(accessToken: string): TokenInfo;
|
|
11
|
-
export declare function formatEndpoint(endpoint: string): string;
|
|
12
|
-
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../src/component/resource/azureSql/utils/common.ts"],"names":[],"mappings":"AAMA,oBAAY,QAAQ;IAClB,IAAI,SAAS;IACb,gBAAgB,qBAAqB;CACtC;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,wBAAgB,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAwBzD;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAOvD"}
|
|
@@ -1,51 +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.formatEndpoint = exports.parseToken = exports.UserType = void 0;
|
|
6
|
-
const tslib_1 = require("tslib");
|
|
7
|
-
const jwt_decode_1 = tslib_1.__importDefault(require("jwt-decode"));
|
|
8
|
-
const constants_1 = require("../constants");
|
|
9
|
-
var UserType;
|
|
10
|
-
(function (UserType) {
|
|
11
|
-
UserType["User"] = "User";
|
|
12
|
-
UserType["ServicePrincipal"] = "ServicePrincipal";
|
|
13
|
-
})(UserType = exports.UserType || (exports.UserType = {}));
|
|
14
|
-
function parseToken(accessToken) {
|
|
15
|
-
const jwt = jwt_decode_1.default(accessToken);
|
|
16
|
-
let authType;
|
|
17
|
-
if (jwt.ver === constants_1.Constants.jwtToken.ver1) {
|
|
18
|
-
authType = jwt.appidacr;
|
|
19
|
-
}
|
|
20
|
-
else if (jwt.ver === constants_1.Constants.jwtToken.ver2) {
|
|
21
|
-
authType = jwt.azpacr;
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("invalid token");
|
|
25
|
-
}
|
|
26
|
-
if (authType === constants_1.Constants.jwtToken.userType) {
|
|
27
|
-
return {
|
|
28
|
-
name: jwt.name,
|
|
29
|
-
objectId: jwt.oid,
|
|
30
|
-
userType: UserType.User,
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
return {
|
|
35
|
-
name: jwt.appid,
|
|
36
|
-
objectId: jwt.oid,
|
|
37
|
-
userType: UserType.ServicePrincipal,
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
exports.parseToken = parseToken;
|
|
42
|
-
function formatEndpoint(endpoint) {
|
|
43
|
-
endpoint = endpoint.toLowerCase();
|
|
44
|
-
endpoint = endpoint.replace(/[^a-z0-9-]/gi, "");
|
|
45
|
-
if (endpoint[0] === "-") {
|
|
46
|
-
endpoint = endpoint.slice(1);
|
|
47
|
-
}
|
|
48
|
-
return endpoint;
|
|
49
|
-
}
|
|
50
|
-
exports.formatEndpoint = formatEndpoint;
|
|
51
|
-
//# sourceMappingURL=common.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../src/component/resource/azureSql/utils/common.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,oEAAmC;AACnC,4CAAyC;AAEzC,IAAY,QAGX;AAHD,WAAY,QAAQ;IAClB,yBAAa,CAAA;IACb,iDAAqC,CAAA;AACvC,CAAC,EAHW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAGnB;AAQD,SAAgB,UAAU,CAAC,WAAmB;IAC5C,MAAM,GAAG,GAAG,oBAAS,CAAC,WAAW,CAAQ,CAAC;IAC1C,IAAI,QAAgB,CAAC;IACrB,IAAI,GAAG,CAAC,GAAG,KAAK,qBAAS,CAAC,QAAQ,CAAC,IAAI,EAAE;QACvC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;KACzB;SAAM,IAAI,GAAG,CAAC,GAAG,KAAK,qBAAS,CAAC,QAAQ,CAAC,IAAI,EAAE;QAC9C,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC;KACvB;SAAM;QACL,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;KAClC;IAED,IAAI,QAAQ,KAAK,qBAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE;QAC5C,OAAO;YACL,IAAI,EAAE,GAAG,CAAC,IAAI;YACd,QAAQ,EAAE,GAAG,CAAC,GAAG;YACjB,QAAQ,EAAE,QAAQ,CAAC,IAAI;SACxB,CAAC;KACH;SAAM;QACL,OAAO;YACL,IAAI,EAAE,GAAG,CAAC,KAAK;YACf,QAAQ,EAAE,GAAG,CAAC,GAAG;YACjB,QAAQ,EAAE,QAAQ,CAAC,gBAAgB;SACpC,CAAC;KACH;AACH,CAAC;AAxBD,gCAwBC;AAED,SAAgB,cAAc,CAAC,QAAgB;IAC7C,QAAQ,GAAG,QAAQ,CAAC,WAAW,EAAE,CAAC;IAClC,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;IAChD,IAAI,QAAQ,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;QACvB,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KAC9B;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC;AAPD,wCAOC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Bicep, ContextV3, FxError, InputsWithProjectPath, Result } from "@microsoft/teamsfx-api";
|
|
2
|
-
import "reflect-metadata";
|
|
3
|
-
import { AzureResource } from "./azureResource";
|
|
4
|
-
export declare class IdentityResource extends AzureResource {
|
|
5
|
-
readonly name: string;
|
|
6
|
-
readonly bicepModuleName: string;
|
|
7
|
-
outputs: {
|
|
8
|
-
identityResourceId: {
|
|
9
|
-
key: string;
|
|
10
|
-
bicepVariable: string;
|
|
11
|
-
};
|
|
12
|
-
identityName: {
|
|
13
|
-
key: string;
|
|
14
|
-
bicepVariable: string;
|
|
15
|
-
};
|
|
16
|
-
identityClientId: {
|
|
17
|
-
key: string;
|
|
18
|
-
bicepVariable: string;
|
|
19
|
-
};
|
|
20
|
-
identityPrincipalId: {
|
|
21
|
-
key: string;
|
|
22
|
-
bicepVariable: string;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
finalOutputKeys: string[];
|
|
26
|
-
generateBicep(context: ContextV3, inputs: InputsWithProjectPath): Promise<Result<Bicep[], FxError>>;
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=identity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../../src/component/resource/identity.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,qBAAqB,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAClG,OAAO,kBAAkB,CAAC;AAI1B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,qBACa,gBAAiB,SAAQ,aAAa;IACjD,QAAQ,CAAC,IAAI,SAA2B;IACxC,QAAQ,CAAC,eAAe,SAA2B;IACnD,OAAO;;;;;;;;;;;;;;;;;MAAmB;IAC1B,eAAe,WAA8D;IAUvE,aAAa,CACjB,OAAO,EAAE,SAAS,EAClB,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;CAGrC"}
|
|
@@ -1,42 +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.IdentityResource = void 0;
|
|
6
|
-
const tslib_1 = require("tslib");
|
|
7
|
-
const lib_1 = require("@feathersjs/hooks/lib");
|
|
8
|
-
require("reflect-metadata");
|
|
9
|
-
const typedi_1 = require("typedi");
|
|
10
|
-
const constants_1 = require("../constants");
|
|
11
|
-
const actionExecutionMW_1 = require("../middleware/actionExecutionMW");
|
|
12
|
-
const azureResource_1 = require("./azureResource");
|
|
13
|
-
let IdentityResource = class IdentityResource extends azureResource_1.AzureResource {
|
|
14
|
-
constructor() {
|
|
15
|
-
super(...arguments);
|
|
16
|
-
this.name = constants_1.ComponentNames.Identity;
|
|
17
|
-
this.bicepModuleName = constants_1.ComponentNames.Identity;
|
|
18
|
-
this.outputs = constants_1.IdentityOutputs;
|
|
19
|
-
this.finalOutputKeys = ["identityResourceId", "identityName", "identityClientId"];
|
|
20
|
-
}
|
|
21
|
-
async generateBicep(context, inputs) {
|
|
22
|
-
return super.generateBicep(context, inputs);
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
tslib_1.__decorate([
|
|
26
|
-
lib_1.hooks([
|
|
27
|
-
actionExecutionMW_1.ActionExecutionMW({
|
|
28
|
-
enableTelemetry: true,
|
|
29
|
-
telemetryComponentName: "fx-resource-azure-identity",
|
|
30
|
-
telemetryEventName: "generate-arm-templates",
|
|
31
|
-
errorSource: "msi",
|
|
32
|
-
}),
|
|
33
|
-
]),
|
|
34
|
-
tslib_1.__metadata("design:type", Function),
|
|
35
|
-
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
36
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
37
|
-
], IdentityResource.prototype, "generateBicep", null);
|
|
38
|
-
IdentityResource = tslib_1.__decorate([
|
|
39
|
-
typedi_1.Service(constants_1.ComponentNames.Identity)
|
|
40
|
-
], IdentityResource);
|
|
41
|
-
exports.IdentityResource = IdentityResource;
|
|
42
|
-
//# sourceMappingURL=identity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"identity.js","sourceRoot":"","sources":["../../../src/component/resource/identity.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,+CAA8C;AAE9C,4BAA0B;AAC1B,mCAAiC;AACjC,4CAA+D;AAC/D,uEAAoE;AACpE,mDAAgD;AAEhD,IAAa,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,6BAAa;IAAnD;;QACW,SAAI,GAAG,0BAAc,CAAC,QAAQ,CAAC;QAC/B,oBAAe,GAAG,0BAAc,CAAC,QAAQ,CAAC;QACnD,YAAO,GAAG,2BAAe,CAAC;QAC1B,oBAAe,GAAG,CAAC,oBAAoB,EAAE,cAAc,EAAE,kBAAkB,CAAC,CAAC;IAgB/E,CAAC;IANC,KAAK,CAAC,aAAa,CACjB,OAAkB,EAClB,MAA6B;QAE7B,OAAO,KAAK,CAAC,aAAa,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC9C,CAAC;CACF,CAAA;AANC;IARC,WAAK,CAAC;QACL,qCAAiB,CAAC;YAChB,eAAe,EAAE,IAAI;YACrB,sBAAsB,EAAE,4BAA4B;YACpD,kBAAkB,EAAE,wBAAwB;YAC5C,WAAW,EAAE,KAAK;SACnB,CAAC;KACH,CAAC;;;;qDAMD;AAnBU,gBAAgB;IAD5B,gBAAO,CAAC,0BAAc,CAAC,QAAQ,CAAC;GACpB,gBAAgB,CAoB5B;AApBY,4CAAgB"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Bicep, ContextV3, FxError, InputsWithProjectPath, Result } from "@microsoft/teamsfx-api";
|
|
2
|
-
import "reflect-metadata";
|
|
3
|
-
import { AzureResource } from "./azureResource";
|
|
4
|
-
export declare class KeyVaultResource extends AzureResource {
|
|
5
|
-
readonly name: string;
|
|
6
|
-
readonly bicepModuleName = "keyVault";
|
|
7
|
-
outputs: {
|
|
8
|
-
keyVaultResourceId: {
|
|
9
|
-
key: string;
|
|
10
|
-
bicepVariable: string;
|
|
11
|
-
};
|
|
12
|
-
m365ClientSecretReference: {
|
|
13
|
-
key: string;
|
|
14
|
-
bicepVariable: string;
|
|
15
|
-
};
|
|
16
|
-
botClientSecretReference: {
|
|
17
|
-
key: string;
|
|
18
|
-
bicepVariable: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
finalOutputKeys: string[];
|
|
22
|
-
templateContext: {
|
|
23
|
-
identity: {
|
|
24
|
-
principalId: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
generateBicep(context: ContextV3, inputs: InputsWithProjectPath): Promise<Result<Bicep[], FxError>>;
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=keyVault.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keyVault.d.ts","sourceRoot":"","sources":["../../../src/component/resource/keyVault.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,qBAAqB,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAClG,OAAO,kBAAkB,CAAC;AAI1B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,qBACa,gBAAiB,SAAQ,aAAa;IACjD,QAAQ,CAAC,IAAI,SAA2B;IACxC,QAAQ,CAAC,eAAe,cAAc;IACtC,OAAO;;;;;;;;;;;;;MAAmB;IAC1B,eAAe,WAAmF;IAClG,eAAe;;;;MAIb;IAUI,aAAa,CACjB,OAAO,EAAE,SAAS,EAClB,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;CAGrC"}
|
|
@@ -1,47 +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.KeyVaultResource = void 0;
|
|
6
|
-
const tslib_1 = require("tslib");
|
|
7
|
-
const lib_1 = require("@feathersjs/hooks/lib");
|
|
8
|
-
require("reflect-metadata");
|
|
9
|
-
const typedi_1 = require("typedi");
|
|
10
|
-
const constants_1 = require("../constants");
|
|
11
|
-
const actionExecutionMW_1 = require("../middleware/actionExecutionMW");
|
|
12
|
-
const azureResource_1 = require("./azureResource");
|
|
13
|
-
let KeyVaultResource = class KeyVaultResource extends azureResource_1.AzureResource {
|
|
14
|
-
constructor() {
|
|
15
|
-
super(...arguments);
|
|
16
|
-
this.name = constants_1.ComponentNames.KeyVault;
|
|
17
|
-
this.bicepModuleName = "keyVault";
|
|
18
|
-
this.outputs = constants_1.KeyVaultOutputs;
|
|
19
|
-
this.finalOutputKeys = ["keyVaultResourceId", "m365ClientSecretReference", "botClientSecretReference"];
|
|
20
|
-
this.templateContext = {
|
|
21
|
-
identity: {
|
|
22
|
-
principalId: constants_1.IdentityOutputs.identityPrincipalId.bicepVariable,
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
async generateBicep(context, inputs) {
|
|
27
|
-
return super.generateBicep(context, inputs);
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
tslib_1.__decorate([
|
|
31
|
-
lib_1.hooks([
|
|
32
|
-
actionExecutionMW_1.ActionExecutionMW({
|
|
33
|
-
enableTelemetry: true,
|
|
34
|
-
telemetryComponentName: "fx-resource-key-vault",
|
|
35
|
-
telemetryEventName: "generate-arm-templates",
|
|
36
|
-
errorSource: "kv",
|
|
37
|
-
}),
|
|
38
|
-
]),
|
|
39
|
-
tslib_1.__metadata("design:type", Function),
|
|
40
|
-
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
41
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
42
|
-
], KeyVaultResource.prototype, "generateBicep", null);
|
|
43
|
-
KeyVaultResource = tslib_1.__decorate([
|
|
44
|
-
typedi_1.Service(constants_1.ComponentNames.KeyVault)
|
|
45
|
-
], KeyVaultResource);
|
|
46
|
-
exports.KeyVaultResource = KeyVaultResource;
|
|
47
|
-
//# sourceMappingURL=keyVault.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keyVault.js","sourceRoot":"","sources":["../../../src/component/resource/keyVault.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,+CAA8C;AAE9C,4BAA0B;AAC1B,mCAAiC;AACjC,4CAAgF;AAChF,uEAAoE;AACpE,mDAAgD;AAEhD,IAAa,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,6BAAa;IAAnD;;QACW,SAAI,GAAG,0BAAc,CAAC,QAAQ,CAAC;QAC/B,oBAAe,GAAG,UAAU,CAAC;QACtC,YAAO,GAAG,2BAAe,CAAC;QAC1B,oBAAe,GAAG,CAAC,oBAAoB,EAAE,2BAA2B,EAAE,0BAA0B,CAAC,CAAC;QAClG,oBAAe,GAAG;YAChB,QAAQ,EAAE;gBACR,WAAW,EAAE,2BAAe,CAAC,mBAAmB,CAAC,aAAa;aAC/D;SACF,CAAC;IAgBJ,CAAC;IANC,KAAK,CAAC,aAAa,CACjB,OAAkB,EAClB,MAA6B;QAE7B,OAAO,KAAK,CAAC,aAAa,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC9C,CAAC;CACF,CAAA;AANC;IARC,WAAK,CAAC;QACL,qCAAiB,CAAC;YAChB,eAAe,EAAE,IAAI;YACrB,sBAAsB,EAAE,uBAAuB;YAC/C,kBAAkB,EAAE,wBAAwB;YAC5C,WAAW,EAAE,IAAI;SAClB,CAAC;KACH,CAAC;;;;qDAMD;AAxBU,gBAAgB;IAD5B,gBAAO,CAAC,0BAAc,CAAC,QAAQ,CAAC;GACpB,gBAAgB,CAyB5B;AAzBY,4CAAgB"}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
export declare class Constants {
|
|
2
|
-
static readonly SolutionPlugin: {
|
|
3
|
-
id: string;
|
|
4
|
-
configKeys: {
|
|
5
|
-
resourceNameSuffix: string;
|
|
6
|
-
subscriptionId: string;
|
|
7
|
-
resourceGroupName: string;
|
|
8
|
-
location: string;
|
|
9
|
-
remoteTeamsAppId: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
static readonly AadAppPlugin: {
|
|
13
|
-
id: string;
|
|
14
|
-
configKeys: {
|
|
15
|
-
clientId: string;
|
|
16
|
-
clientSecret: string;
|
|
17
|
-
applicationIdUris: string;
|
|
18
|
-
oauthAuthority: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
static readonly FrontendPlugin: {
|
|
22
|
-
id: string;
|
|
23
|
-
configKeys: {
|
|
24
|
-
endpoint: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
static readonly LocalDebugPlugin: {
|
|
28
|
-
id: string;
|
|
29
|
-
configKeys: {
|
|
30
|
-
endpoint: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
static readonly SimpleAuthPlugin: {
|
|
34
|
-
id: string;
|
|
35
|
-
name: string;
|
|
36
|
-
shortName: string;
|
|
37
|
-
configKeys: {
|
|
38
|
-
endpoint: string;
|
|
39
|
-
filePath: string;
|
|
40
|
-
environmentVariableParams: string;
|
|
41
|
-
skuName: string;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
static readonly provisionModuleTemplateFileName: string;
|
|
45
|
-
static readonly configModuleTemplateFileName: string;
|
|
46
|
-
static readonly SimpleAuthBicepOutputSkuName: string;
|
|
47
|
-
static readonly SimpleAuthBicepOutputEndpoint: string;
|
|
48
|
-
static readonly SimpleAuthFileName: string;
|
|
49
|
-
static readonly SimpleAuthZipName: (version: string) => string;
|
|
50
|
-
static readonly SimpleAuthTag: (version: string) => string;
|
|
51
|
-
static readonly SimpleAuthReleaseUrl: (tagName: string, fileName: string) => string;
|
|
52
|
-
static readonly VersionFileName: string;
|
|
53
|
-
static readonly ResourceNameMaxLength = 40;
|
|
54
|
-
static readonly SimpleAuthSuffix = "sa";
|
|
55
|
-
static readonly LocalPrefix = "local_";
|
|
56
|
-
static readonly Component = "component";
|
|
57
|
-
static readonly ApplicationSettingsKeys: {
|
|
58
|
-
clientId: string;
|
|
59
|
-
clientSecret: string;
|
|
60
|
-
oauthAuthority: string;
|
|
61
|
-
applicationIdUris: string;
|
|
62
|
-
allowedAppIds: string;
|
|
63
|
-
tabAppEndpoint: string;
|
|
64
|
-
aadMetadataAddress: string;
|
|
65
|
-
};
|
|
66
|
-
static readonly ProgressBar: {
|
|
67
|
-
start: string;
|
|
68
|
-
provision: {
|
|
69
|
-
title: string;
|
|
70
|
-
registerResourceProvider: string;
|
|
71
|
-
createAppServicePlan: string;
|
|
72
|
-
createWebApp: string;
|
|
73
|
-
zipDeploy: string;
|
|
74
|
-
};
|
|
75
|
-
postProvision: {
|
|
76
|
-
title: string;
|
|
77
|
-
updateWebApp: string;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
static readonly RegisterRersourceProviderFailed: (message: string) => string;
|
|
81
|
-
static readonly FreeServerFarmsQuotaErrorFromAzure = "The maximum number of Free ServerFarms allowed in a Subscription is 10";
|
|
82
|
-
static readonly FreeServerFarmsQuotaErrorToUser: string;
|
|
83
|
-
static readonly MissingSubscriptionRegistrationErrorFromAzure = "The subscription is not registered to use namespace 'Microsoft.Web'";
|
|
84
|
-
static readonly HelpLink = "https://aka.ms/teamsfx-sa-help";
|
|
85
|
-
static readonly RequiredResourceProviders: string[];
|
|
86
|
-
static readonly statusCodeUserError = 400;
|
|
87
|
-
static readonly statusCodeServerError = 500;
|
|
88
|
-
}
|
|
89
|
-
export declare class Telemetry {
|
|
90
|
-
static component: string;
|
|
91
|
-
static errorCode: string;
|
|
92
|
-
static errorType: string;
|
|
93
|
-
static skuName: string;
|
|
94
|
-
static errorMessage: string;
|
|
95
|
-
static userError: string;
|
|
96
|
-
static systemError: string;
|
|
97
|
-
static isSuccess: string;
|
|
98
|
-
static success: string;
|
|
99
|
-
static fail: string;
|
|
100
|
-
static appId: string;
|
|
101
|
-
}
|
|
102
|
-
export interface Message {
|
|
103
|
-
log: string;
|
|
104
|
-
telemetry: string;
|
|
105
|
-
}
|
|
106
|
-
export declare class Messages {
|
|
107
|
-
static readonly getLog: (log: string) => string;
|
|
108
|
-
private static readonly getEventName;
|
|
109
|
-
static readonly StartLocalDebug: Message;
|
|
110
|
-
static readonly EndLocalDebug: Message;
|
|
111
|
-
static readonly StartPostLocalDebug: Message;
|
|
112
|
-
static readonly EndPostLocalDebug: Message;
|
|
113
|
-
static readonly StartProvision: Message;
|
|
114
|
-
static readonly EndProvision: Message;
|
|
115
|
-
static readonly StartGenerateArmTemplates: Message;
|
|
116
|
-
static readonly EndGenerateArmTemplates: Message;
|
|
117
|
-
static readonly StartUpdateArmTemplates: Message;
|
|
118
|
-
static readonly EndUpdateArmTemplates: Message;
|
|
119
|
-
static readonly StartPostProvision: Message;
|
|
120
|
-
static readonly EndPostProvision: Message;
|
|
121
|
-
}
|
|
122
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/component/resource/simpleAuth/constants.ts"],"names":[],"mappings":"AAKA,qBAAa,SAAS;IACpB,MAAM,CAAC,QAAQ,CAAC,cAAc;;;;;;;;;MAS5B;IAEF,MAAM,CAAC,QAAQ,CAAC,YAAY;;;;;;;;MAQ1B;IAEF,MAAM,CAAC,QAAQ,CAAC,cAAc;;;;;MAK5B;IAEF,MAAM,CAAC,QAAQ,CAAC,gBAAgB;;;;;MAK9B;IAEF,MAAM,CAAC,QAAQ,CAAC,gBAAgB;;;;;;;;;;MAU9B;IAEF,MAAM,CAAC,QAAQ,CAAC,+BAA+B,EAAE,MAAM,CAAwC;IAC/F,MAAM,CAAC,QAAQ,CAAC,4BAA4B,EAAE,MAAM,CAA4C;IAEhG,MAAM,CAAC,QAAQ,CAAC,4BAA4B,EAAE,MAAM,CACK;IACzD,MAAM,CAAC,QAAQ,CAAC,6BAA6B,EAAE,MAAM,CACK;IAE1D,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAoB;IAC9D,MAAM,CAAC,QAAQ,CAAC,iBAAiB,YAAa,MAAM,KAAG,MAAM,CACb;IAChD,MAAM,CAAC,QAAQ,CAAC,aAAa,YAAa,MAAM,KAAG,MAAM,CAA4B;IACrF,MAAM,CAAC,QAAQ,CAAC,oBAAoB,YAAa,MAAM,YAAY,MAAM,KAAG,MAAM,CACA;IAClF,MAAM,CAAC,QAAQ,CA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IAC/F,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAyC;IAE7E,MAAM,CAAC,QAAQ,CAAC,eAAe,EAAE,OAAO,CAGtC;IACF,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,OAAO,CAGpC;IACF,MAAM,CAAC,QAAQ,CAAC,mBAAmB,EAAE,OAAO,CAG1C;IACF,MAAM,CAAC,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAGxC;IACF,MAAM,CAAC,QAAQ,CAAC,cAAc,EAAE,OAAO,CAGrC;IACF,MAAM,CAAC,QAAQ,CAAC,YAAY,EAAE,OAAO,CAGnC;IACF,MAAM,CAAC,QAAQ,CAAC,yBAAyB,EAAE,OAAO,CAGhD;IACF,MAAM,CAAC,QAAQ,CAAC,uBAAuB,EAAE,OAAO,CAG9C;IACF,MAAM,CAAC,QAAQ,CAAC,uBAAuB,EAAE,OAAO,CAG9C;IACF,MAAM,CAAC,QAAQ,CAAC,qBAAqB,EAAE,OAAO,CAG5C;IACF,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,OAAO,CAGzC;IACF,MAAM,CAAC,QAAQ,CAAC,gBAAgB,EAAE,OAAO,CAGvC;CACH"}
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Messages = exports.Telemetry = exports.Constants = void 0;
|
|
5
|
-
const localizeUtils_1 = require("../../../common/localizeUtils");
|
|
6
|
-
// Licensed under the MIT license.
|
|
7
|
-
class Constants {
|
|
8
|
-
}
|
|
9
|
-
exports.Constants = Constants;
|
|
10
|
-
Constants.SolutionPlugin = {
|
|
11
|
-
id: "solution",
|
|
12
|
-
configKeys: {
|
|
13
|
-
resourceNameSuffix: "resourceNameSuffix",
|
|
14
|
-
subscriptionId: "subscriptionId",
|
|
15
|
-
resourceGroupName: "resourceGroupName",
|
|
16
|
-
location: "location",
|
|
17
|
-
remoteTeamsAppId: "remoteTeamsAppId",
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
Constants.AadAppPlugin = {
|
|
21
|
-
id: "fx-resource-aad-app-for-teams",
|
|
22
|
-
configKeys: {
|
|
23
|
-
clientId: "clientId",
|
|
24
|
-
clientSecret: "clientSecret",
|
|
25
|
-
applicationIdUris: "applicationIdUris",
|
|
26
|
-
oauthAuthority: "oauthAuthority",
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
|
-
Constants.FrontendPlugin = {
|
|
30
|
-
id: "fx-resource-frontend-hosting",
|
|
31
|
-
configKeys: {
|
|
32
|
-
endpoint: "endpoint",
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
Constants.LocalDebugPlugin = {
|
|
36
|
-
id: "fx-resource-local-debug",
|
|
37
|
-
configKeys: {
|
|
38
|
-
endpoint: "localTabEndpoint",
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
Constants.SimpleAuthPlugin = {
|
|
42
|
-
id: "fx-resource-simple-auth",
|
|
43
|
-
name: "Simple Auth Plugin",
|
|
44
|
-
shortName: "sa",
|
|
45
|
-
configKeys: {
|
|
46
|
-
endpoint: "endpoint",
|
|
47
|
-
filePath: "filePath",
|
|
48
|
-
environmentVariableParams: "environmentVariableParams",
|
|
49
|
-
skuName: "skuName",
|
|
50
|
-
},
|
|
51
|
-
};
|
|
52
|
-
Constants.provisionModuleTemplateFileName = "simpleAuthProvision.template.bicep";
|
|
53
|
-
Constants.configModuleTemplateFileName = "simpleAuthConfiguration.template.bicep";
|
|
54
|
-
Constants.SimpleAuthBicepOutputSkuName = "provisionOutputs.simpleAuthProvision.outputs.skuName";
|
|
55
|
-
Constants.SimpleAuthBicepOutputEndpoint = "provisionOutputs.simpleAuthProvision.outputs.endpoint";
|
|
56
|
-
Constants.SimpleAuthFileName = "SimpleAuth.zip";
|
|
57
|
-
Constants.SimpleAuthZipName = (version) => `Microsoft.TeamsFx.SimpleAuth_${version}.zip`;
|
|
58
|
-
Constants.SimpleAuthTag = (version) => `simpleauth@${version}`;
|
|
59
|
-
Constants.SimpleAuthReleaseUrl = (tagName, fileName) => `https://github.com/OfficeDev/TeamsFx/releases/download/${tagName}/${fileName}`;
|
|
60
|
-
Constants.VersionFileName = "version.txt";
|
|
61
|
-
Constants.ResourceNameMaxLength = 40;
|
|
62
|
-
Constants.SimpleAuthSuffix = "sa";
|
|
63
|
-
Constants.LocalPrefix = "local_";
|
|
64
|
-
Constants.Component = "component";
|
|
65
|
-
Constants.ApplicationSettingsKeys = {
|
|
66
|
-
clientId: "CLIENT_ID",
|
|
67
|
-
clientSecret: "CLIENT_SECRET",
|
|
68
|
-
oauthAuthority: "OAUTH_AUTHORITY",
|
|
69
|
-
applicationIdUris: "IDENTIFIER_URI",
|
|
70
|
-
allowedAppIds: "ALLOWED_APP_IDS",
|
|
71
|
-
tabAppEndpoint: "TAB_APP_ENDPOINT",
|
|
72
|
-
aadMetadataAddress: "AAD_METADATA_ADDRESS",
|
|
73
|
-
};
|
|
74
|
-
Constants.ProgressBar = {
|
|
75
|
-
start: "Starting",
|
|
76
|
-
provision: {
|
|
77
|
-
title: "Provisioning Simple Auth",
|
|
78
|
-
registerResourceProvider: "Registering required resource provider.",
|
|
79
|
-
createAppServicePlan: "Creating Azure App Service plan",
|
|
80
|
-
createWebApp: "Creating Azure Web App",
|
|
81
|
-
zipDeploy: "Deploying Simple Auth",
|
|
82
|
-
},
|
|
83
|
-
postProvision: {
|
|
84
|
-
title: "Configuring Simple Auth",
|
|
85
|
-
updateWebApp: "Updating Azure Web App",
|
|
86
|
-
},
|
|
87
|
-
};
|
|
88
|
-
Constants.RegisterRersourceProviderFailed = (message) => localizeUtils_1.getLocalizedString("plugins.sa.RegisterRersourceProviderFailed", message, Constants.RequiredResourceProviders.join(","));
|
|
89
|
-
Constants.FreeServerFarmsQuotaErrorFromAzure = "The maximum number of Free ServerFarms allowed in a Subscription is 10";
|
|
90
|
-
Constants.FreeServerFarmsQuotaErrorToUser = localizeUtils_1.getLocalizedString("plugins.sa.FreeServerFarmsQuotaErrorToUser");
|
|
91
|
-
Constants.MissingSubscriptionRegistrationErrorFromAzure = "The subscription is not registered to use namespace 'Microsoft.Web'";
|
|
92
|
-
Constants.HelpLink = "https://aka.ms/teamsfx-sa-help";
|
|
93
|
-
Constants.RequiredResourceProviders = ["Microsoft.Web"];
|
|
94
|
-
Constants.statusCodeUserError = 400;
|
|
95
|
-
Constants.statusCodeServerError = 500;
|
|
96
|
-
class Telemetry {
|
|
97
|
-
}
|
|
98
|
-
exports.Telemetry = Telemetry;
|
|
99
|
-
Telemetry.component = "component";
|
|
100
|
-
Telemetry.errorCode = "error-code";
|
|
101
|
-
Telemetry.errorType = "error-type";
|
|
102
|
-
Telemetry.skuName = "sku-name";
|
|
103
|
-
Telemetry.errorMessage = "error-message";
|
|
104
|
-
Telemetry.userError = "user";
|
|
105
|
-
Telemetry.systemError = "system";
|
|
106
|
-
Telemetry.isSuccess = "success";
|
|
107
|
-
Telemetry.success = "yes";
|
|
108
|
-
Telemetry.fail = "no";
|
|
109
|
-
Telemetry.appId = "appid";
|
|
110
|
-
class Messages {
|
|
111
|
-
}
|
|
112
|
-
exports.Messages = Messages;
|
|
113
|
-
Messages.getLog = (log) => `[${Constants.SimpleAuthPlugin.name}] ${log}`;
|
|
114
|
-
Messages.getEventName = (eventName) => `${eventName}`;
|
|
115
|
-
Messages.StartLocalDebug = {
|
|
116
|
-
log: Messages.getLog("Starting local-debug"),
|
|
117
|
-
telemetry: Messages.getEventName("local-debug-start"),
|
|
118
|
-
};
|
|
119
|
-
Messages.EndLocalDebug = {
|
|
120
|
-
log: Messages.getLog("Successfully started local-debug"),
|
|
121
|
-
telemetry: Messages.getEventName("local-debug"),
|
|
122
|
-
};
|
|
123
|
-
Messages.StartPostLocalDebug = {
|
|
124
|
-
log: Messages.getLog("Starting post-local-debug"),
|
|
125
|
-
telemetry: Messages.getEventName("post-local-debug-start"),
|
|
126
|
-
};
|
|
127
|
-
Messages.EndPostLocalDebug = {
|
|
128
|
-
log: Messages.getLog("Successfully started post-local-debug"),
|
|
129
|
-
telemetry: Messages.getEventName("post-local-debug"),
|
|
130
|
-
};
|
|
131
|
-
Messages.StartProvision = {
|
|
132
|
-
log: Messages.getLog("Provisioning"),
|
|
133
|
-
telemetry: Messages.getEventName("provision-start"),
|
|
134
|
-
};
|
|
135
|
-
Messages.EndProvision = {
|
|
136
|
-
log: Messages.getLog("Successfully provisioned"),
|
|
137
|
-
telemetry: Messages.getEventName("provision"),
|
|
138
|
-
};
|
|
139
|
-
Messages.StartGenerateArmTemplates = {
|
|
140
|
-
log: Messages.getLog("Starting generating arm templates"),
|
|
141
|
-
telemetry: Messages.getEventName("generate-arm-templates-start"),
|
|
142
|
-
};
|
|
143
|
-
Messages.EndGenerateArmTemplates = {
|
|
144
|
-
log: Messages.getLog("Successfully generated arm templates"),
|
|
145
|
-
telemetry: Messages.getEventName("generate-arm-templates"),
|
|
146
|
-
};
|
|
147
|
-
Messages.StartUpdateArmTemplates = {
|
|
148
|
-
log: Messages.getLog("Starting updating arm templates"),
|
|
149
|
-
telemetry: Messages.getEventName("update-arm-templates-start"),
|
|
150
|
-
};
|
|
151
|
-
Messages.EndUpdateArmTemplates = {
|
|
152
|
-
log: Messages.getLog("Successfully generated arm templates"),
|
|
153
|
-
telemetry: Messages.getEventName("update-arm-templates"),
|
|
154
|
-
};
|
|
155
|
-
Messages.StartPostProvision = {
|
|
156
|
-
log: Messages.getLog("Post-provisioning"),
|
|
157
|
-
telemetry: Messages.getEventName("post-provision-start"),
|
|
158
|
-
};
|
|
159
|
-
Messages.EndPostProvision = {
|
|
160
|
-
log: Messages.getLog("Successfully post-provisioned"),
|
|
161
|
-
telemetry: Messages.getEventName("post-provision"),
|
|
162
|
-
};
|
|
163
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources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|
1
|
-
export interface PluginError {
|
|
2
|
-
name: string;
|
|
3
|
-
message: (...args: string[]) => [string, string];
|
|
4
|
-
}
|
|
5
|
-
export declare const NoConfigError: PluginError;
|
|
6
|
-
export declare const UnauthenticatedError: PluginError;
|
|
7
|
-
export declare const CreateAppServicePlanError: PluginError;
|
|
8
|
-
export declare const FreeServerFarmsQuotaError: PluginError;
|
|
9
|
-
export declare const MissingSubscriptionRegistrationError: PluginError;
|
|
10
|
-
export declare const CreateWebAppError: PluginError;
|
|
11
|
-
export declare const ZipDeployError: PluginError;
|
|
12
|
-
export declare const UpdateApplicationSettingsError: PluginError;
|
|
13
|
-
export declare const UnhandledError: PluginError;
|
|
14
|
-
export declare const EndpointInvalidError: PluginError;
|
|
15
|
-
export declare const ZipDownloadError: PluginError;
|
|
16
|
-
export declare const VersionFileNotExist: PluginError;
|
|
17
|
-
//# sourceMappingURL=errors.d.ts.map
|