@microsoft/teamsfx-core 2.0.1-alpha.c8eab1a43.0 → 2.0.1-alpha.d4f96cccc.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/local/localStateHelper.d.ts.map +1 -1
- package/build/common/local/localStateHelper.js.map +1 -1
- package/build/common/samples.d.ts.map +1 -1
- package/build/common/samples.js +2 -2
- package/build/common/samples.js.map +1 -1
- package/build/common/telemetry.d.ts +0 -13
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +0 -13
- package/build/common/telemetry.js.map +1 -1
- package/build/common/templates-config.json +2 -1
- package/build/common/tools.d.ts +1 -15
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +53 -138
- package/build/common/tools.js.map +1 -1
- package/build/component/code/appSettingUtils.d.ts +1 -2
- package/build/component/code/appSettingUtils.d.ts.map +1 -1
- package/build/component/code/appSettingUtils.js +1 -46
- package/build/component/code/appSettingUtils.js.map +1 -1
- package/build/component/constant/deployConstant.d.ts.map +1 -1
- package/build/component/constant/deployConstant.js.map +1 -1
- package/build/component/constants.d.ts +3 -210
- package/build/component/constants.d.ts.map +1 -1
- package/build/component/constants.js +7 -404
- package/build/component/constants.js.map +1 -1
- package/build/component/coordinator/index.d.ts +1 -0
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +21 -10
- package/build/component/coordinator/index.js.map +1 -1
- package/build/component/deployUtils.d.ts +1 -8
- package/build/component/deployUtils.d.ts.map +1 -1
- package/build/component/deployUtils.js +2 -98
- package/build/component/deployUtils.js.map +1 -1
- package/build/component/driver/add/addWebPart.js +3 -3
- package/build/component/driver/add/addWebPart.js.map +1 -1
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js +9 -9
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js.map +1 -1
- package/build/component/driver/interface/buildAndDeployArgs.d.ts +11 -11
- package/build/component/driver/interface/buildAndDeployArgs.d.ts.map +1 -1
- package/build/component/driver/script/scriptDriver.js +6 -6
- package/build/component/driver/script/scriptDriver.js.map +1 -1
- package/build/component/error.d.ts +0 -3
- package/build/component/error.d.ts.map +1 -1
- package/build/component/error.js +1 -11
- package/build/component/error.js.map +1 -1
- package/build/component/feature/cicd/cicd.d.ts +1 -2
- package/build/component/feature/cicd/cicd.d.ts.map +1 -1
- package/build/component/feature/cicd/cicd.js +2 -87
- package/build/component/feature/cicd/cicd.js.map +1 -1
- package/build/component/feature/sso.d.ts +0 -1
- package/build/component/feature/sso.d.ts.map +1 -1
- package/build/component/feature/sso.js +0 -1
- package/build/component/feature/sso.js.map +1 -1
- package/build/component/generator/generatorAction.d.ts.map +1 -1
- package/build/component/generator/generatorAction.js +1 -1
- package/build/component/generator/generatorAction.js.map +1 -1
- package/build/component/generator/spfx/depsChecker/dependencyChecker.d.ts +8 -0
- package/build/component/generator/spfx/depsChecker/dependencyChecker.d.ts.map +1 -0
- package/build/component/generator/spfx/depsChecker/dependencyChecker.js.map +1 -0
- package/build/component/{resource → generator}/spfx/depsChecker/generatorChecker.d.ts +1 -4
- package/build/component/generator/spfx/depsChecker/generatorChecker.d.ts.map +1 -0
- package/build/component/{resource → generator}/spfx/depsChecker/generatorChecker.js +0 -39
- package/build/component/generator/spfx/depsChecker/generatorChecker.js.map +1 -0
- package/build/component/{resource → generator}/spfx/depsChecker/yoChecker.d.ts +1 -4
- package/build/component/generator/spfx/depsChecker/yoChecker.d.ts.map +1 -0
- package/build/component/{resource → generator}/spfx/depsChecker/yoChecker.js +0 -33
- package/build/component/generator/spfx/depsChecker/yoChecker.js.map +1 -0
- package/build/component/generator/spfx/error.d.ts +8 -0
- package/build/component/generator/spfx/error.d.ts.map +1 -0
- package/build/component/generator/spfx/error.js +55 -0
- package/build/component/generator/spfx/error.js.map +1 -0
- package/build/component/generator/spfx/spfxGenerator.d.ts.map +1 -0
- package/build/component/generator/{spfxGenerator.js → spfx/spfxGenerator.js} +16 -16
- package/build/component/generator/spfx/spfxGenerator.js.map +1 -0
- package/build/component/{resource → generator}/spfx/utils/constants.d.ts +0 -33
- package/build/component/generator/spfx/utils/constants.d.ts.map +1 -0
- package/build/component/{resource → generator}/spfx/utils/constants.js +1 -39
- package/build/component/generator/spfx/utils/constants.js.map +1 -0
- package/build/component/{resource → generator}/spfx/utils/progress-helper.d.ts +0 -5
- package/build/component/generator/spfx/utils/progress-helper.d.ts.map +1 -0
- package/build/component/generator/spfx/utils/progress-helper.js +21 -0
- package/build/component/generator/spfx/utils/progress-helper.js.map +1 -0
- package/build/component/generator/spfx/utils/question-helper.d.ts.map +1 -0
- package/build/component/generator/spfx/utils/question-helper.js.map +1 -0
- package/build/component/{resource → generator}/spfx/utils/questions.d.ts +0 -1
- package/build/component/generator/spfx/utils/questions.d.ts.map +1 -0
- package/build/component/{resource → generator}/spfx/utils/questions.js +1 -23
- package/build/component/generator/spfx/utils/questions.js.map +1 -0
- package/build/component/generator/spfx/utils/telemetry-helper.d.ts.map +1 -0
- package/build/component/generator/spfx/utils/telemetry-helper.js.map +1 -0
- package/build/component/generator/spfx/utils/telemetryEvents.d.ts.map +1 -0
- package/build/component/generator/spfx/utils/telemetryEvents.js.map +1 -0
- package/build/component/generator/spfx/utils/utils.d.ts.map +1 -0
- package/build/component/generator/spfx/utils/utils.js.map +1 -0
- package/build/component/generator/utils.js +2 -2
- package/build/component/generator/utils.js.map +1 -1
- package/build/component/middleware/envMW.js.map +1 -1
- package/build/component/provisionUtils.d.ts +2 -23
- package/build/component/provisionUtils.d.ts.map +1 -1
- package/build/component/provisionUtils.js +5 -523
- package/build/component/provisionUtils.js.map +1 -1
- package/build/component/question.js +1 -1
- package/build/component/question.js.map +1 -1
- package/build/component/registerService.d.ts +0 -3
- package/build/component/registerService.d.ts.map +1 -1
- package/build/component/registerService.js +0 -3
- package/build/component/registerService.js.map +1 -1
- package/build/component/resource/aadApp/utils/aadManifestHelper.js +2 -1
- package/build/component/resource/aadApp/utils/aadManifestHelper.js.map +1 -1
- package/build/component/resource/appManifest/appManifest.d.ts +0 -6
- package/build/component/resource/appManifest/appManifest.d.ts.map +1 -1
- package/build/component/resource/appManifest/appManifest.js +24 -247
- package/build/component/resource/appManifest/appManifest.js.map +1 -1
- package/build/component/resource/appManifest/appStudio.d.ts +1 -21
- package/build/component/resource/appManifest/appStudio.d.ts.map +1 -1
- package/build/component/resource/appManifest/appStudio.js +15 -257
- package/build/component/resource/appManifest/appStudio.js.map +1 -1
- package/build/component/resource/botService/errors.d.ts +0 -2
- package/build/component/resource/botService/errors.d.ts.map +1 -1
- package/build/component/resource/botService/errors.js +1 -43
- package/build/component/resource/botService/errors.js.map +1 -1
- package/build/component/utils/ResourceGroupHelper.d.ts +1 -5
- package/build/component/utils/ResourceGroupHelper.d.ts.map +1 -1
- package/build/component/utils/ResourceGroupHelper.js +0 -6
- package/build/component/utils/ResourceGroupHelper.js.map +1 -1
- package/build/component/utils/pathUtils.d.ts.map +1 -1
- package/build/component/utils/pathUtils.js +2 -2
- package/build/component/utils/pathUtils.js.map +1 -1
- package/build/component/utils.d.ts +1 -18
- package/build/component/utils.d.ts.map +1 -1
- package/build/component/utils.js +23 -277
- 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 -6
- package/build/component/workflow.js.map +1 -1
- package/build/core/FxCore.d.ts +0 -8
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.js +0 -12
- package/build/core/FxCore.js.map +1 -1
- package/build/core/FxCoreImplementV3.d.ts.map +1 -1
- package/build/core/FxCoreImplementV3.js +7 -20
- package/build/core/FxCoreImplementV3.js.map +1 -1
- package/build/core/collaborator.d.ts +2 -0
- package/build/core/collaborator.d.ts.map +1 -1
- package/build/core/collaborator.js +2 -0
- package/build/core/collaborator.js.map +1 -1
- package/build/core/environment.d.ts +2 -4
- package/build/core/environment.d.ts.map +1 -1
- package/build/core/environment.js +44 -108
- package/build/core/environment.js.map +1 -1
- package/build/core/error.d.ts +1 -34
- package/build/core/error.d.ts.map +1 -1
- package/build/core/error.js +1 -112
- package/build/core/error.js.map +1 -1
- package/build/core/globalVars.d.ts +0 -1
- package/build/core/globalVars.d.ts.map +1 -1
- package/build/core/globalVars.js +1 -15
- package/build/core/globalVars.js.map +1 -1
- package/build/core/middleware/projectMigratorV3.d.ts +2 -1
- package/build/core/middleware/projectMigratorV3.d.ts.map +1 -1
- package/build/core/middleware/projectMigratorV3.js +40 -46
- package/build/core/middleware/projectMigratorV3.js.map +1 -1
- package/build/core/middleware/projectSettingsLoader.d.ts.map +1 -1
- package/build/core/middleware/projectSettingsLoader.js +9 -20
- 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 +6 -18
- package/build/core/middleware/projectVersionChecker.js.map +1 -1
- package/build/core/middleware/utils/migrationContext.d.ts.map +1 -1
- package/build/core/middleware/utils/migrationContext.js +0 -4
- package/build/core/middleware/utils/migrationContext.js.map +1 -1
- package/build/core/question.d.ts.map +1 -1
- package/build/core/question.js +4 -4
- package/build/core/question.js.map +1 -1
- package/build/core/types.d.ts +0 -10
- package/build/core/types.d.ts.map +1 -1
- package/build/index.d.ts +0 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +0 -1
- package/build/index.js.map +1 -1
- package/package.json +7 -11
- package/resource/package.nls.json +3 -177
- 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/azure-hosting/azureAppServiceHosting.d.ts +0 -16
- package/build/common/azure-hosting/azureAppServiceHosting.d.ts.map +0 -1
- package/build/common/azure-hosting/azureAppServiceHosting.js +0 -33
- package/build/common/azure-hosting/azureAppServiceHosting.js.map +0 -1
- package/build/common/azure-hosting/azureFunctionHosting.d.ts +0 -14
- package/build/common/azure-hosting/azureFunctionHosting.d.ts.map +0 -1
- package/build/common/azure-hosting/azureFunctionHosting.js +0 -34
- package/build/common/azure-hosting/azureFunctionHosting.js.map +0 -1
- package/build/common/azure-hosting/azureHosting.d.ts +0 -23
- package/build/common/azure-hosting/azureHosting.d.ts.map +0 -1
- package/build/common/azure-hosting/azureHosting.js +0 -95
- package/build/common/azure-hosting/azureHosting.js.map +0 -1
- package/build/common/azure-hosting/azureOps.d.ts +0 -17
- package/build/common/azure-hosting/azureOps.d.ts.map +0 -1
- package/build/common/azure-hosting/azureOps.js +0 -94
- package/build/common/azure-hosting/azureOps.js.map +0 -1
- package/build/common/azure-hosting/hostingConstant.d.ts +0 -46
- package/build/common/azure-hosting/hostingConstant.d.ts.map +0 -1
- package/build/common/azure-hosting/hostingConstant.js +0 -86
- package/build/common/azure-hosting/hostingConstant.js.map +0 -1
- package/build/common/azure-hosting/hostingError.d.ts +0 -47
- package/build/common/azure-hosting/hostingError.d.ts.map +0 -1
- package/build/common/azure-hosting/hostingError.js +0 -83
- package/build/common/azure-hosting/hostingError.js.map +0 -1
- package/build/common/azure-hosting/hostingFactory.d.ts +0 -6
- package/build/common/azure-hosting/hostingFactory.d.ts.map +0 -1
- package/build/common/azure-hosting/hostingFactory.js +0 -22
- package/build/common/azure-hosting/hostingFactory.js.map +0 -1
- package/build/common/azure-hosting/interfaces.d.ts +0 -58
- package/build/common/azure-hosting/interfaces.d.ts.map +0 -1
- package/build/common/azure-hosting/interfaces.js +0 -12
- package/build/common/azure-hosting/interfaces.js.map +0 -1
- package/build/common/azure-hosting/messages.d.ts +0 -10
- package/build/common/azure-hosting/messages.d.ts.map +0 -1
- package/build/common/azure-hosting/messages.js +0 -16
- package/build/common/azure-hosting/messages.js.map +0 -1
- package/build/common/azure-hosting/utils.d.ts +0 -10
- package/build/common/azure-hosting/utils.d.ts.map +0 -1
- package/build/common/azure-hosting/utils.js +0 -107
- package/build/common/azure-hosting/utils.js.map +0 -1
- package/build/common/samples-config.json +0 -201
- package/build/component/code/spfxTabCode.d.ts +0 -11
- package/build/component/code/spfxTabCode.d.ts.map +0 -1
- package/build/component/code/spfxTabCode.js +0 -237
- package/build/component/code/spfxTabCode.js.map +0 -1
- package/build/component/envManager.d.ts +0 -4
- package/build/component/envManager.d.ts.map +0 -1
- package/build/component/envManager.js +0 -25
- package/build/component/envManager.js.map +0 -1
- package/build/component/feature/apiconnector/ApiConnectorImpl.d.ts +0 -23
- package/build/component/feature/apiconnector/ApiConnectorImpl.d.ts.map +0 -1
- package/build/component/feature/apiconnector/ApiConnectorImpl.js +0 -288
- package/build/component/feature/apiconnector/ApiConnectorImpl.js.map +0 -1
- package/build/component/feature/apiconnector/checker.d.ts +0 -7
- package/build/component/feature/apiconnector/checker.d.ts.map +0 -1
- package/build/component/feature/apiconnector/checker.js +0 -74
- package/build/component/feature/apiconnector/checker.js.map +0 -1
- package/build/component/feature/apiconnector/config.d.ts +0 -23
- package/build/component/feature/apiconnector/config.d.ts.map +0 -1
- package/build/component/feature/apiconnector/config.js +0 -5
- package/build/component/feature/apiconnector/config.js.map +0 -1
- package/build/component/feature/apiconnector/constants.d.ts +0 -50
- package/build/component/feature/apiconnector/constants.d.ts.map +0 -1
- package/build/component/feature/apiconnector/constants.js +0 -61
- package/build/component/feature/apiconnector/constants.js.map +0 -1
- package/build/component/feature/apiconnector/depsHandler.d.ts +0 -14
- package/build/component/feature/apiconnector/depsHandler.d.ts.map +0 -1
- package/build/component/feature/apiconnector/depsHandler.js +0 -109
- package/build/component/feature/apiconnector/depsHandler.js.map +0 -1
- package/build/component/feature/apiconnector/envHandler.d.ts +0 -21
- package/build/component/feature/apiconnector/envHandler.d.ts.map +0 -1
- package/build/component/feature/apiconnector/envHandler.js +0 -128
- package/build/component/feature/apiconnector/envHandler.js.map +0 -1
- package/build/component/feature/apiconnector/errors.d.ts +0 -53
- package/build/component/feature/apiconnector/errors.d.ts.map +0 -1
- package/build/component/feature/apiconnector/errors.js +0 -64
- package/build/component/feature/apiconnector/errors.js.map +0 -1
- package/build/component/feature/apiconnector/questions.d.ts +0 -41
- package/build/component/feature/apiconnector/questions.d.ts.map +0 -1
- package/build/component/feature/apiconnector/questions.js +0 -262
- package/build/component/feature/apiconnector/questions.js.map +0 -1
- package/build/component/feature/apiconnector/result.d.ts +0 -23
- package/build/component/feature/apiconnector/result.d.ts.map +0 -1
- package/build/component/feature/apiconnector/result.js +0 -40
- package/build/component/feature/apiconnector/result.js.map +0 -1
- package/build/component/feature/apiconnector/sampleHandler.d.ts +0 -10
- package/build/component/feature/apiconnector/sampleHandler.d.ts.map +0 -1
- package/build/component/feature/apiconnector/sampleHandler.js +0 -62
- package/build/component/feature/apiconnector/sampleHandler.js.map +0 -1
- package/build/component/feature/apiconnector/telemetry.d.ts +0 -42
- package/build/component/feature/apiconnector/telemetry.d.ts.map +0 -1
- package/build/component/feature/apiconnector/telemetry.js +0 -70
- package/build/component/feature/apiconnector/telemetry.js.map +0 -1
- package/build/component/feature/apiconnector/utils.d.ts +0 -18
- package/build/component/feature/apiconnector/utils.d.ts.map +0 -1
- package/build/component/feature/apiconnector/utils.js +0 -90
- package/build/component/feature/apiconnector/utils.js.map +0 -1
- package/build/component/generator/spfxGenerator.d.ts.map +0 -1
- package/build/component/generator/spfxGenerator.js.map +0 -1
- package/build/component/resource/azureAppService/azureAppService.d.ts +0 -12
- package/build/component/resource/azureAppService/azureAppService.d.ts.map +0 -1
- package/build/component/resource/azureAppService/azureAppService.js +0 -48
- package/build/component/resource/azureAppService/azureAppService.js.map +0 -1
- package/build/component/resource/azureAppService/azureFunction.d.ts +0 -36
- package/build/component/resource/azureAppService/azureFunction.d.ts.map +0 -1
- package/build/component/resource/azureAppService/azureFunction.js +0 -155
- package/build/component/resource/azureAppService/azureFunction.js.map +0 -1
- package/build/component/resource/azureAppService/azureLibs.d.ts +0 -6
- package/build/component/resource/azureAppService/azureLibs.d.ts.map +0 -1
- package/build/component/resource/azureAppService/azureLibs.js +0 -13
- package/build/component/resource/azureAppService/azureLibs.js.map +0 -1
- package/build/component/resource/azureAppService/azureWebApp.d.ts +0 -30
- package/build/component/resource/azureAppService/azureWebApp.d.ts.map +0 -1
- package/build/component/resource/azureAppService/azureWebApp.js +0 -43
- package/build/component/resource/azureAppService/azureWebApp.js.map +0 -1
- package/build/component/resource/azureAppService/common.d.ts +0 -10
- package/build/component/resource/azureAppService/common.d.ts.map +0 -1
- package/build/component/resource/azureAppService/common.js +0 -80
- package/build/component/resource/azureAppService/common.js.map +0 -1
- package/build/component/resource/azureAppService/dir-walk.d.ts +0 -4
- package/build/component/resource/azureAppService/dir-walk.d.ts.map +0 -1
- package/build/component/resource/azureAppService/dir-walk.js +0 -21
- package/build/component/resource/azureAppService/dir-walk.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/azureStorage/azureStorage.d.ts +0 -31
- package/build/component/resource/azureStorage/azureStorage.d.ts.map +0 -1
- package/build/component/resource/azureStorage/azureStorage.js +0 -111
- package/build/component/resource/azureStorage/azureStorage.js.map +0 -1
- package/build/component/resource/azureStorage/clients.d.ts +0 -23
- package/build/component/resource/azureStorage/clients.d.ts.map +0 -1
- package/build/component/resource/azureStorage/clients.js +0 -133
- package/build/component/resource/azureStorage/clients.js.map +0 -1
- package/build/component/resource/azureStorage/configs.d.ts +0 -12
- package/build/component/resource/azureStorage/configs.d.ts.map +0 -1
- package/build/component/resource/azureStorage/configs.js +0 -30
- package/build/component/resource/azureStorage/configs.js.map +0 -1
- package/build/component/resource/azureStorage/constants.d.ts +0 -11
- package/build/component/resource/azureStorage/constants.d.ts.map +0 -1
- package/build/component/resource/azureStorage/constants.js +0 -17
- package/build/component/resource/azureStorage/constants.js.map +0 -1
- package/build/component/resource/azureStorage/messages.d.ts +0 -14
- package/build/component/resource/azureStorage/messages.d.ts.map +0 -1
- package/build/component/resource/azureStorage/messages.js +0 -28
- package/build/component/resource/azureStorage/messages.js.map +0 -1
- package/build/component/resource/botService/botService.d.ts +0 -24
- package/build/component/resource/botService/botService.d.ts.map +0 -1
- package/build/component/resource/botService/botService.js +0 -146
- package/build/component/resource/botService/botService.js.map +0 -1
- package/build/component/resource/spfx/depsChecker/dependencyChecker.d.ts +0 -11
- package/build/component/resource/spfx/depsChecker/dependencyChecker.d.ts.map +0 -1
- package/build/component/resource/spfx/depsChecker/dependencyChecker.js.map +0 -1
- package/build/component/resource/spfx/depsChecker/generatorChecker.d.ts.map +0 -1
- package/build/component/resource/spfx/depsChecker/generatorChecker.js.map +0 -1
- package/build/component/resource/spfx/depsChecker/yoChecker.d.ts.map +0 -1
- package/build/component/resource/spfx/depsChecker/yoChecker.js.map +0 -1
- package/build/component/resource/spfx/error.d.ts +0 -21
- package/build/component/resource/spfx/error.d.ts.map +0 -1
- package/build/component/resource/spfx/error.js +0 -138
- package/build/component/resource/spfx/error.js.map +0 -1
- package/build/component/resource/spfx/index.d.ts +0 -15
- package/build/component/resource/spfx/index.d.ts.map +0 -1
- package/build/component/resource/spfx/index.js +0 -248
- package/build/component/resource/spfx/index.js.map +0 -1
- package/build/component/resource/spfx/spoClient.d.ts +0 -25
- package/build/component/resource/spfx/spoClient.d.ts.map +0 -1
- package/build/component/resource/spfx/spoClient.js +0 -79
- package/build/component/resource/spfx/spoClient.js.map +0 -1
- package/build/component/resource/spfx/utils/constants.d.ts.map +0 -1
- package/build/component/resource/spfx/utils/constants.js.map +0 -1
- package/build/component/resource/spfx/utils/progress-helper.d.ts.map +0 -1
- package/build/component/resource/spfx/utils/progress-helper.js +0 -46
- package/build/component/resource/spfx/utils/progress-helper.js.map +0 -1
- package/build/component/resource/spfx/utils/question-helper.d.ts.map +0 -1
- package/build/component/resource/spfx/utils/question-helper.js.map +0 -1
- package/build/component/resource/spfx/utils/questions.d.ts.map +0 -1
- package/build/component/resource/spfx/utils/questions.js.map +0 -1
- package/build/component/resource/spfx/utils/telemetry-helper.d.ts.map +0 -1
- package/build/component/resource/spfx/utils/telemetry-helper.js.map +0 -1
- package/build/component/resource/spfx/utils/telemetryEvents.d.ts.map +0 -1
- package/build/component/resource/spfx/utils/telemetryEvents.js.map +0 -1
- package/build/component/resource/spfx/utils/utils.d.ts.map +0 -1
- package/build/component/resource/spfx/utils/utils.js.map +0 -1
- package/build/component/utils/backupFiles.d.ts +0 -4
- package/build/component/utils/backupFiles.d.ts.map +0 -1
- package/build/component/utils/backupFiles.js +0 -162
- package/build/component/utils/backupFiles.js.map +0 -1
- package/build/component/utils/executor.d.ts +0 -12
- package/build/component/utils/executor.d.ts.map +0 -1
- package/build/component/utils/executor.js +0 -87
- package/build/component/utils/executor.js.map +0 -1
- package/build/core/downloadSample.d.ts +0 -9
- package/build/core/downloadSample.d.ts.map +0 -1
- package/build/core/downloadSample.js +0 -161
- package/build/core/downloadSample.js.map +0 -1
- package/resource/backup-config-change-logs.md +0 -24
- package/templates/bicep/azureSql.parameters.json +0 -4
- package/templates/bicep/azureSql.provisionDatabase.module.bicep +0 -15
- package/templates/bicep/azureSql.provisionDatabase.orchestration.bicep +0 -5
- package/templates/bicep/azureSql.provisionServer.module.bicep +0 -44
- package/templates/bicep/azureSql.provisionServer.orchestration.bicep +0 -14
- package/templates/bicep/identity.provision.module.bicep +0 -15
- package/templates/bicep/identity.provision.orchestration.bicep +0 -14
- package/templates/bicep/keyVault.provision.module.bicep +0 -57
- package/templates/bicep/keyVault.provision.orchestration.bicep +0 -15
- package/templates/plugins/resource/apiconnector/package.json +0 -5
- package/templates/plugins/resource/apiconnector/sample/footerComment.template +0 -20
- package/templates/plugins/resource/apiconnector/sample/headerComment.template +0 -52
- package/templates/plugins/resource/apiconnector/sample/js/aad.template +0 -31
- package/templates/plugins/resource/apiconnector/sample/js/apikey.template +0 -19
- package/templates/plugins/resource/apiconnector/sample/js/basic.template +0 -14
- package/templates/plugins/resource/apiconnector/sample/js/cert.template +0 -17
- package/templates/plugins/resource/apiconnector/sample/js/custom.template +0 -39
- package/templates/plugins/resource/apiconnector/sample/ts/aad.template +0 -36
- package/templates/plugins/resource/apiconnector/sample/ts/apikey.template +0 -16
- package/templates/plugins/resource/apiconnector/sample/ts/basic.template +0 -14
- package/templates/plugins/resource/apiconnector/sample/ts/cert.template +0 -19
- package/templates/plugins/resource/apiconnector/sample/ts/custom.template +0 -42
- package/templates/plugins/resource/identity/bicep/identityProvision.template.bicep +0 -15
- package/templates/plugins/resource/identity/bicep/provision.template.bicep +0 -14
- package/templates/plugins/resource/identity/parameters.json +0 -12
- package/templates/plugins/resource/identity/template.json +0 -28
- package/templates/plugins/resource/keyvault/bicep/keyVaultProvision.template.bicep +0 -57
- package/templates/plugins/resource/keyvault/bicep/provision.template.bicep +0 -15
- package/templates/plugins/resource/simpleauth/SimpleAuth.zip +0 -0
- package/templates/plugins/resource/simpleauth/bicep/config.template.bicep +0 -12
- package/templates/plugins/resource/simpleauth/bicep/provision.template.bicep +0 -14
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthConfiguration.template.bicep +0 -62
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthProvision.template.bicep +0 -51
- package/templates/plugins/resource/simpleauth/version.txt +0 -2
- package/templates/plugins/resource/spfx/solution/README.md +0 -82
- package/templates/plugins/resource/spfx/solution/manifest.local.template.json +0 -62
- package/templates/plugins/resource/spfx/solution/manifest_multi_env.json +0 -63
- package/templates/plugins/resource/spfx/solution/rootREADME.md +0 -13
- package/templates/plugins/resource/sql/bicep/newDatabase.orchestration.template.bicep +0 -5
- package/templates/plugins/resource/sql/bicep/newDatabaseProvision.template.bicep +0 -15
- package/templates/plugins/resource/sql/bicep/parameters.json +0 -4
- package/templates/plugins/resource/sql/bicep/provision.template.bicep +0 -14
- package/templates/plugins/resource/sql/bicep/sqlProvision.template.bicep +0 -44
- /package/build/component/{resource → generator}/spfx/depsChecker/dependencyChecker.js +0 -0
- /package/build/component/generator/{spfxGenerator.d.ts → spfx/spfxGenerator.d.ts} +0 -0
- /package/build/component/{resource → generator}/spfx/utils/question-helper.d.ts +0 -0
- /package/build/component/{resource → generator}/spfx/utils/question-helper.js +0 -0
- /package/build/component/{resource → generator}/spfx/utils/telemetry-helper.d.ts +0 -0
- /package/build/component/{resource → generator}/spfx/utils/telemetry-helper.js +0 -0
- /package/build/component/{resource → generator}/spfx/utils/telemetryEvents.d.ts +0 -0
- /package/build/component/{resource → generator}/spfx/utils/telemetryEvents.js +0 -0
- /package/build/component/{resource → generator}/spfx/utils/utils.d.ts +0 -0
- /package/build/component/{resource → generator}/spfx/utils/utils.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sql.d.ts","sourceRoot":"","sources":["../../../../../src/component/resource/azureSql/clients/sql.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAI9D,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,qBAAa,SAAS;IACpB,MAAM,EAAE,SAAS,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IAEd,OAAO;WAKM,MAAM,CACjB,oBAAoB,EAAE,oBAAoB,EAC1C,MAAM,EAAE,SAAS,GAChB,OAAO,CAAC,SAAS,CAAC;IAKf,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;WA8CzC,SAAS,CACpB,oBAAoB,EAAE,oBAAoB,EAC1C,MAAM,EAAE,SAAS,GAChB,OAAO,CAAC,MAAM,CAAC;IAyDZ,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;WA2D9C,eAAe,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO;CAMnD"}
|
|
@@ -1,153 +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.SqlClient = void 0;
|
|
6
|
-
const tslib_1 = require("tslib");
|
|
7
|
-
const tedious = tslib_1.__importStar(require("tedious"));
|
|
8
|
-
const constants_1 = require("../constants");
|
|
9
|
-
const errors_1 = require("../errors");
|
|
10
|
-
const results_1 = require("../results");
|
|
11
|
-
const localizeUtils_1 = require("../../../../common/localizeUtils");
|
|
12
|
-
class SqlClient {
|
|
13
|
-
constructor(config, token) {
|
|
14
|
-
this.config = config;
|
|
15
|
-
this.token = token;
|
|
16
|
-
}
|
|
17
|
-
static async create(azureAccountProvider, config) {
|
|
18
|
-
const token = await SqlClient.initToken(azureAccountProvider, config);
|
|
19
|
-
return new SqlClient(config, token);
|
|
20
|
-
}
|
|
21
|
-
async addDatabaseUser(database) {
|
|
22
|
-
var _a;
|
|
23
|
-
try {
|
|
24
|
-
let query;
|
|
25
|
-
query = `IF NOT EXISTS (SELECT name FROM [sys].[database_principals] WHERE name='${this.config.identity}')
|
|
26
|
-
BEGIN
|
|
27
|
-
CREATE USER [${this.config.identity}] FROM EXTERNAL PROVIDER;
|
|
28
|
-
END;`;
|
|
29
|
-
await this.doQuery(query, database);
|
|
30
|
-
query = `sp_addrolemember 'db_datareader', '${this.config.identity}'`;
|
|
31
|
-
await this.doQuery(query, database);
|
|
32
|
-
query = `sp_addrolemember 'db_datawriter', '${this.config.identity}'`;
|
|
33
|
-
await this.doQuery(query, database);
|
|
34
|
-
}
|
|
35
|
-
catch (error) {
|
|
36
|
-
const link = constants_1.HelpLinks.default;
|
|
37
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.message) === null || _a === void 0 ? void 0 : _a.includes(errors_1.ErrorMessage.GuestAdminMessage)) {
|
|
38
|
-
const errorMessage = errors_1.ErrorMessage.DatabaseUserCreateError.message(database, this.config.identity);
|
|
39
|
-
const e = results_1.SqlResultFactory.UserError(errors_1.ErrorMessage.DatabaseUserCreateError.name, [errorMessage[0], errorMessage[1] + `. ${errors_1.ErrorMessage.GuestAdminError}`], error, undefined, link);
|
|
40
|
-
e.message += ` ${errors_1.ErrorMessage.LinkHelpMessage(link)}`;
|
|
41
|
-
throw e;
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
const errorMessage = errors_1.ErrorMessage.DatabaseUserCreateError.message(database, this.config.identity);
|
|
45
|
-
const e = results_1.SqlResultFactory.UserError(errors_1.ErrorMessage.DatabaseUserCreateError.name, [errorMessage[0], errorMessage[1] + `. ${localizeUtils_1.getLocalizedString("error.sql.GetDetail")}`], error, undefined, link);
|
|
46
|
-
e.message += ` ${errors_1.ErrorMessage.LinkHelpMessage(link)}`;
|
|
47
|
-
throw e;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
static async initToken(azureAccountProvider, config) {
|
|
52
|
-
var _a;
|
|
53
|
-
const credential = await azureAccountProvider.getIdentityCredentialAsync();
|
|
54
|
-
const databaseNames = `(${config.databases.join(",")})`;
|
|
55
|
-
if (!credential) {
|
|
56
|
-
const link = constants_1.HelpLinks.default;
|
|
57
|
-
const reason = errors_1.ErrorMessage.IdentityCredentialUndefine(config.identity, databaseNames);
|
|
58
|
-
const message = errors_1.ErrorMessage.DatabaseUserCreateError.message(databaseNames, config.identity);
|
|
59
|
-
message[0] += `. ${reason}`;
|
|
60
|
-
message[1] += `. ${reason}`;
|
|
61
|
-
throw results_1.SqlResultFactory.UserError(errors_1.ErrorMessage.DatabaseUserCreateError.name, [message[0] + ` ${errors_1.ErrorMessage.LinkHelpMessage(link)}`, message[1]], undefined, undefined, link);
|
|
62
|
-
}
|
|
63
|
-
try {
|
|
64
|
-
const accessToken = await credential.getToken(constants_1.Constants.azureSqlScope);
|
|
65
|
-
return accessToken.token;
|
|
66
|
-
}
|
|
67
|
-
catch (error) {
|
|
68
|
-
const link = constants_1.HelpLinks.default;
|
|
69
|
-
if ((_a = error === null || error === void 0 ? void 0 : error.message) === null || _a === void 0 ? void 0 : _a.includes(errors_1.ErrorMessage.DomainCode)) {
|
|
70
|
-
const errorMessage = errors_1.ErrorMessage.DatabaseUserCreateError.message(databaseNames, config.identity);
|
|
71
|
-
const e = results_1.SqlResultFactory.UserError(errors_1.ErrorMessage.DatabaseUserCreateError.name, [
|
|
72
|
-
errorMessage[0] + `. ${errors_1.ErrorMessage.DomainError}`,
|
|
73
|
-
errorMessage[1] + `. ${errors_1.ErrorMessage.DomainError}`,
|
|
74
|
-
], error, undefined, link);
|
|
75
|
-
e.message += ` ${errors_1.ErrorMessage.LinkHelpMessage(link)}`;
|
|
76
|
-
throw e;
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
const errorMessage = errors_1.ErrorMessage.DatabaseUserCreateError.message(databaseNames, config.identity);
|
|
80
|
-
const e = results_1.SqlResultFactory.UserError(errors_1.ErrorMessage.DatabaseUserCreateError.name, [errorMessage[0], errorMessage[1] + `. ${localizeUtils_1.getLocalizedString("error.sql.GetDetail")}`], error, undefined, link);
|
|
81
|
-
e.message += `Reason: ${error.message}. ${errors_1.ErrorMessage.LinkHelpMessage(link)}`;
|
|
82
|
-
throw e;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
async doQuery(cmd, database) {
|
|
87
|
-
const config = {
|
|
88
|
-
server: this.config.sqlEndpoint,
|
|
89
|
-
authentication: {
|
|
90
|
-
type: "azure-active-directory-access-token",
|
|
91
|
-
options: {
|
|
92
|
-
token: this.token,
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
options: {
|
|
96
|
-
debug: {
|
|
97
|
-
packet: true,
|
|
98
|
-
data: true,
|
|
99
|
-
payload: true,
|
|
100
|
-
token: false,
|
|
101
|
-
log: true,
|
|
102
|
-
},
|
|
103
|
-
rowCollectionOnDone: true,
|
|
104
|
-
database: database,
|
|
105
|
-
encrypt: true,
|
|
106
|
-
requestTimeout: 30000,
|
|
107
|
-
connectTimeout: 30000,
|
|
108
|
-
},
|
|
109
|
-
};
|
|
110
|
-
const connection = new tedious.Connection(config);
|
|
111
|
-
return new Promise((resolve, reject) => {
|
|
112
|
-
connection.connect((err) => {
|
|
113
|
-
if (err) {
|
|
114
|
-
reject(err);
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
connection.on("connect", (err) => {
|
|
118
|
-
if (err) {
|
|
119
|
-
reject(err);
|
|
120
|
-
}
|
|
121
|
-
const request = new tedious.Request(cmd, (err) => {
|
|
122
|
-
if (err) {
|
|
123
|
-
reject(err);
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
let res;
|
|
127
|
-
request.on("doneInProc", function (rowCount, more, rows) {
|
|
128
|
-
res = rows;
|
|
129
|
-
});
|
|
130
|
-
request.on("requestCompleted", () => {
|
|
131
|
-
connection.close();
|
|
132
|
-
resolve(res);
|
|
133
|
-
});
|
|
134
|
-
request.on("error", (error) => {
|
|
135
|
-
reject(error);
|
|
136
|
-
});
|
|
137
|
-
connection.execSql(request);
|
|
138
|
-
});
|
|
139
|
-
connection.on("error", (err) => {
|
|
140
|
-
reject(err);
|
|
141
|
-
});
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
static isFireWallError(error) {
|
|
145
|
-
var _a;
|
|
146
|
-
if ((error === null || error === void 0 ? void 0 : error.code) === "ELOGIN" && ((_a = error === null || error === void 0 ? void 0 : error.message) === null || _a === void 0 ? void 0 : _a.match(errors_1.ErrorMessage.FirewallErrorReg))) {
|
|
147
|
-
return true;
|
|
148
|
-
}
|
|
149
|
-
return false;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
exports.SqlClient = SqlClient;
|
|
153
|
-
//# sourceMappingURL=sql.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sql.js","sourceRoot":"","sources":["../../../../../src/component/resource/azureSql/clients/sql.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,yDAAmC;AACnC,4CAAoD;AAEpD,sCAAyC;AACzC,wCAA8C;AAC9C,oEAAsE;AAGtE,MAAa,SAAS;IAIpB,YAAoB,MAAiB,EAAE,KAAa;QAClD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,MAAM,CACjB,oBAA0C,EAC1C,MAAiB;QAEjB,MAAM,KAAK,GAAG,MAAM,SAAS,CAAC,SAAS,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;QACtE,OAAO,IAAI,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACtC,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,QAAgB;;QACpC,IAAI;YACF,IAAI,KAAa,CAAC;YAClB,KAAK,GAAG,2EAA2E,IAAI,CAAC,MAAM,CAAC,QAAQ;;qBAExF,IAAI,CAAC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I,GAAU,CAAC;gBACf,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,UAAU,QAAa,EAAE,IAAS,EAAE,IAAW;oBACtE,GAAG,GAAG,IAAI,CAAC;gBACb,CAAC,CAAC,CAAC;gBACH,OAAO,CAAC,EAAE,CAAC,kBAAkB,EAAE,GAAG,EAAE;oBAClC,UAAU,CAAC,KAAK,EAAE,CAAC;oBACnB,OAAO,CAAC,GAAG,CAAC,CAAC;gBACf,CAAC,CAAC,CAAC;gBACH,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAU,EAAE,EAAE;oBACjC,MAAM,CAAC,KAAK,CAAC,CAAC;gBAChB,CAAC,CAAC,CAAC;gBACH,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YAC9B,CAAC,CAAC,CAAC;YACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,GAAQ,EAAE,EAAE;gBAClC,MAAM,CAAC,GAAG,CAAC,CAAC;YACd,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;IAEM,MAAM,CAAC,eAAe,CAAC,KAAU;;QACtC,IAAI,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,MAAK,QAAQ,KAAI,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,0CAAE,KAAK,CAAC,qBAAY,CAAC,gBAAgB,CAAC,CAAA,EAAE;YACpF,OAAO,IAAI,CAAC;SACb;QACD,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AA5LD,8BA4LC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { v3 } from "@microsoft/teamsfx-api";
|
|
2
|
-
import { ManagementConfig, SqlConfig } from "./types";
|
|
3
|
-
export declare function LoadManagementConfig(state: v3.CloudResource): ManagementConfig;
|
|
4
|
-
export declare function LoadSqlConfig(state: v3.CloudResource, identity: string): SqlConfig;
|
|
5
|
-
export declare function loadDatabases(state: v3.CloudResource): Record<string, string>;
|
|
6
|
-
export declare function removeDatabases(state: v3.CloudResource): void;
|
|
7
|
-
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/component/resource/azureSql/config.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAE,MAAM,wBAAwB,CAAC;AAQ5C,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEtD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,EAAE,CAAC,aAAa,GAAG,gBAAgB,CAW9E;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,EAAE,CAAC,aAAa,EAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,CAQlF;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,EAAE,CAAC,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAQ7E;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,EAAE,CAAC,aAAa,GAAG,IAAI,CAM7D"}
|
|
@@ -1,77 +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.removeDatabases = exports.loadDatabases = exports.LoadSqlConfig = exports.LoadManagementConfig = void 0;
|
|
6
|
-
const tools_1 = require("../../../common/tools");
|
|
7
|
-
const constants_1 = require("./constants");
|
|
8
|
-
const errors_1 = require("./errors");
|
|
9
|
-
const results_1 = require("./results");
|
|
10
|
-
function LoadManagementConfig(state) {
|
|
11
|
-
const subscriptionId = loadSubscriptionId(state);
|
|
12
|
-
const resourceGroup = loadResourceGroup(state);
|
|
13
|
-
const sqlEndpoint = state[constants_1.Constants.sqlEndpoint];
|
|
14
|
-
const sqlServer = sqlEndpoint.split(".")[0];
|
|
15
|
-
return {
|
|
16
|
-
azureSubscriptionId: subscriptionId,
|
|
17
|
-
resourceGroup: resourceGroup,
|
|
18
|
-
sqlEndpoint: sqlEndpoint,
|
|
19
|
-
sqlServer: sqlServer,
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
exports.LoadManagementConfig = LoadManagementConfig;
|
|
23
|
-
function LoadSqlConfig(state, identity) {
|
|
24
|
-
const sqlEndpoint = state[constants_1.Constants.sqlEndpoint];
|
|
25
|
-
const databases = loadDatabases(state);
|
|
26
|
-
return {
|
|
27
|
-
sqlEndpoint: sqlEndpoint,
|
|
28
|
-
identity: identity,
|
|
29
|
-
databases: Object.values(databases),
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
exports.LoadSqlConfig = LoadSqlConfig;
|
|
33
|
-
function loadDatabases(state) {
|
|
34
|
-
const databases = {};
|
|
35
|
-
for (const key of Object.keys(state)) {
|
|
36
|
-
if (key.startsWith(constants_1.Constants.databaseName)) {
|
|
37
|
-
databases[key] = state[key];
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return databases;
|
|
41
|
-
}
|
|
42
|
-
exports.loadDatabases = loadDatabases;
|
|
43
|
-
function removeDatabases(state) {
|
|
44
|
-
for (const key of Object.keys(state)) {
|
|
45
|
-
if (key.startsWith(constants_1.Constants.databaseName) && key !== constants_1.Constants.databaseName) {
|
|
46
|
-
delete state[key];
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
exports.removeDatabases = removeDatabases;
|
|
51
|
-
function loadSubscriptionId(state) {
|
|
52
|
-
let subscriptionId = "";
|
|
53
|
-
const sqlResourceId = state["sqlResourceId"];
|
|
54
|
-
if (sqlResourceId) {
|
|
55
|
-
try {
|
|
56
|
-
subscriptionId = tools_1.getSubscriptionIdFromResourceId(sqlResourceId);
|
|
57
|
-
}
|
|
58
|
-
catch (error) {
|
|
59
|
-
throw results_1.SqlResultFactory.UserError(errors_1.ErrorMessage.SqlInvalidConfigError.name, errors_1.ErrorMessage.SqlInvalidConfigError.message(sqlResourceId, error.message), error);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return subscriptionId;
|
|
63
|
-
}
|
|
64
|
-
function loadResourceGroup(state) {
|
|
65
|
-
let resourceGroup = "";
|
|
66
|
-
const sqlResourceId = state["sqlResourceId"];
|
|
67
|
-
if (sqlResourceId) {
|
|
68
|
-
try {
|
|
69
|
-
resourceGroup = tools_1.getResourceGroupNameFromResourceId(sqlResourceId);
|
|
70
|
-
}
|
|
71
|
-
catch (error) {
|
|
72
|
-
throw results_1.SqlResultFactory.UserError(errors_1.ErrorMessage.SqlInvalidConfigError.name, errors_1.ErrorMessage.SqlInvalidConfigError.message(sqlResourceId, error.message), error);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
return resourceGroup;
|
|
76
|
-
}
|
|
77
|
-
//# sourceMappingURL=config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../src/component/resource/azureSql/config.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAGlC,iDAG+B;AAC/B,2CAAwC;AACxC,qCAAwC;AACxC,uCAA6C;AAG7C,SAAgB,oBAAoB,CAAC,KAAuB;IAC1D,MAAM,cAAc,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;IACjD,MAAM,aAAa,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC;IAC/C,MAAM,WAAW,GAAG,KAAK,CAAC,qBAAS,CAAC,WAAW,CAAW,CAAC;IAC3D,MAAM,SAAS,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5C,OAAO;QACL,mBAAmB,EAAE,cAAc;QACnC,aAAa,EAAE,aAAa;QAC5B,WAAW,EAAE,WAAW;QACxB,SAAS,EAAE,SAAS;KACrB,CAAC;AACJ,CAAC;AAXD,oDAWC;AAED,SAAgB,aAAa,CAAC,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,qBAAY,CAAC,qBAAqB,CAAC,OAAO,CAAC,aAAa,EAAE,KAAK,CAAC,OAAO,CAAC,EACxE,KAAK,CACN,CAAC;SACH;KACF;IACD,OAAO,cAAc,CAAC;AACxB,CAAC;AAED,SAAS,iBAAiB,CAAC,KAAuB;IAChD,IAAI,aAAa,GAAG,EAAE,CAAC;IACvB,MAAM,aAAa,GAAG,KAAK,CAAC,eAAe,CAAC,CAAC;IAC7C,IAAI,aAAa,EAAE;QACjB,IAAI;YACF,aAAa,GAAG,0CAAkC,CAAC,aAAa,CAAC,CAAC;SACnE;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,0BAAgB,CAAC,SAAS,CAC9B,qBAAY,CAAC,qBAAqB,CAAC,IAAI,EACvC,qBAAY,CAAC,qBAAqB,CAAC,OAAO,CAAC,aAAa,EAAE,KAAK,CAAC,OAAO,CAAC,EACxE,KAAK,CACN,CAAC;SACH;KACF;IACD,OAAO,aAAa,CAAC;AACvB,CAAC"}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
export declare class Constants {
|
|
2
|
-
static readonly pluginName: string;
|
|
3
|
-
static readonly pluginNameShort: string;
|
|
4
|
-
static readonly pluginFullName: string;
|
|
5
|
-
static readonly firewall: {
|
|
6
|
-
localRule: string;
|
|
7
|
-
};
|
|
8
|
-
static readonly ipBeginToken = "0";
|
|
9
|
-
static readonly ipEndToken = "255";
|
|
10
|
-
static readonly maxRetryTimes = 3;
|
|
11
|
-
static readonly jwtToken: {
|
|
12
|
-
ver1: string;
|
|
13
|
-
ver2: string;
|
|
14
|
-
userType: string;
|
|
15
|
-
};
|
|
16
|
-
static readonly sqlAdministratorType: string;
|
|
17
|
-
static readonly echoIpAddress: string;
|
|
18
|
-
static readonly azureSqlScope: string;
|
|
19
|
-
static readonly resourceGroupName: string;
|
|
20
|
-
static readonly sqlEndpoint: string;
|
|
21
|
-
static readonly sqlResourceId: string;
|
|
22
|
-
static readonly databaseName: string;
|
|
23
|
-
static readonly skipAddingSqlUser: string;
|
|
24
|
-
static readonly admin: string;
|
|
25
|
-
static readonly adminPassword: string;
|
|
26
|
-
static readonly solution: string;
|
|
27
|
-
static readonly solutionPluginFullName = "fx-solution-azure";
|
|
28
|
-
static readonly solutionConfigKey: {
|
|
29
|
-
resourceNameSuffix: string;
|
|
30
|
-
location: string;
|
|
31
|
-
tenantId: string;
|
|
32
|
-
};
|
|
33
|
-
static readonly identityPlugin: string;
|
|
34
|
-
static readonly identityName: string;
|
|
35
|
-
static readonly questionKey: {
|
|
36
|
-
adminName: string;
|
|
37
|
-
adminPassword: string;
|
|
38
|
-
confirmPassword: string;
|
|
39
|
-
skipAddingUser: string;
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
export declare const ActionProvision: {
|
|
43
|
-
name: string;
|
|
44
|
-
};
|
|
45
|
-
export declare const ActionConfigure: {
|
|
46
|
-
name: string;
|
|
47
|
-
};
|
|
48
|
-
export declare const ActionGenerateBicep: {
|
|
49
|
-
name: string;
|
|
50
|
-
};
|
|
51
|
-
export declare class Telemetry {
|
|
52
|
-
static readonly componentName = "fx-resource-azure-sql";
|
|
53
|
-
static readonly stage: {
|
|
54
|
-
preProvision: string;
|
|
55
|
-
postProvision: string;
|
|
56
|
-
getQuestion: string;
|
|
57
|
-
generateArmTemplates: string;
|
|
58
|
-
};
|
|
59
|
-
static readonly properties: {
|
|
60
|
-
skipAddingUser: string;
|
|
61
|
-
dbCount: string;
|
|
62
|
-
dbOnly: string;
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
export declare class HelpLinks {
|
|
66
|
-
static readonly default = "https://aka.ms/teamsfx-sql-help";
|
|
67
|
-
}
|
|
68
|
-
export declare class AzureSqlBicep {
|
|
69
|
-
static readonly sqlResourceId: string;
|
|
70
|
-
static readonly sqlEndpoint: string;
|
|
71
|
-
static readonly databaseName: string;
|
|
72
|
-
}
|
|
73
|
-
export declare class AzureSqlBicepFile {
|
|
74
|
-
static readonly moduleTemplateFileName: string;
|
|
75
|
-
static readonly ProvisionModuleTemplateFileName = "sqlProvision.template.bicep";
|
|
76
|
-
static readonly newDatabaseOrchestrationTemplateFileName: string;
|
|
77
|
-
static readonly newDatabaseProvisionTemplateFileName = "newDatabaseProvision.template.bicep";
|
|
78
|
-
}
|
|
79
|
-
export declare const Message: {
|
|
80
|
-
skipAddAadAdmin: string;
|
|
81
|
-
addFirewall: string;
|
|
82
|
-
addSqlAadAdmin: string;
|
|
83
|
-
addDatabaseUser: (name: string) => string;
|
|
84
|
-
};
|
|
85
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/component/resource/azureSql/constants.ts"],"names":[],"mappings":"AAGA,qBAAa,SAAS;IACpB,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAgB;IAClD,MAAM,CAAC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAS;IAChD,MAAM,CAAC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAA2B;IAEjE,MAAM,CAAC,QAAQ,CAAC,QAAQ;;MAEtB;IAEF,MAAM,CAAC,QAAQ,CAAC,YAAY,OAAO;IACnC,MAAM,CAAC,QAAQ,CAAC,UAAU,SAAS;IAEnC,MAAM,CAAC,QAAQ,CAAC,aAAa,KAAK;IAElC,MAAM,CAAC,QAAQ,CAAC,QAAQ;;;;MAItB;IAEF,MAAM,CAAC,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAqB;IAEjE,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAA2B;IAEhE,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAA4C;IAEjF,MAAM,CAAC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAuB;IAChE,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAiB;IACpD,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAmB;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iC;IAChF,MAAM,CAAC,QAAQ,CAAC,wCAAwC,EAAE,MAAM,CACnB;IAC7C,MAAM,CAAC,QAAQ,CAAC,oCAAoC,yCAAyC;CAC9F;AAED,eAAO,MAAM,OAAO;;;;4BAKM,MAAM;CAC/B,CAAC"}
|
|
@@ -1,95 +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.Message = exports.AzureSqlBicepFile = exports.AzureSqlBicep = exports.HelpLinks = exports.Telemetry = exports.ActionGenerateBicep = exports.ActionConfigure = exports.ActionProvision = exports.Constants = void 0;
|
|
6
|
-
class Constants {
|
|
7
|
-
}
|
|
8
|
-
exports.Constants = Constants;
|
|
9
|
-
Constants.pluginName = "SQL Plugin";
|
|
10
|
-
Constants.pluginNameShort = "SQL";
|
|
11
|
-
Constants.pluginFullName = "fx-resource-azure-sql";
|
|
12
|
-
Constants.firewall = {
|
|
13
|
-
localRule: "AllowLocal",
|
|
14
|
-
};
|
|
15
|
-
Constants.ipBeginToken = "0";
|
|
16
|
-
Constants.ipEndToken = "255";
|
|
17
|
-
Constants.maxRetryTimes = 3;
|
|
18
|
-
Constants.jwtToken = {
|
|
19
|
-
ver1: "1.0",
|
|
20
|
-
ver2: "2.0",
|
|
21
|
-
userType: "0",
|
|
22
|
-
};
|
|
23
|
-
Constants.sqlAdministratorType = "ActiveDirectory";
|
|
24
|
-
Constants.echoIpAddress = "https://api.ipify.org";
|
|
25
|
-
Constants.azureSqlScope = "https://database.windows.net//.default";
|
|
26
|
-
Constants.resourceGroupName = "resourceGroupName";
|
|
27
|
-
Constants.sqlEndpoint = "sqlEndpoint";
|
|
28
|
-
Constants.sqlResourceId = "sqlResourceId";
|
|
29
|
-
Constants.databaseName = "databaseName";
|
|
30
|
-
Constants.skipAddingSqlUser = "skipAddingSqlUser";
|
|
31
|
-
Constants.admin = "admin";
|
|
32
|
-
Constants.adminPassword = "adminPassword";
|
|
33
|
-
Constants.solution = "solution";
|
|
34
|
-
Constants.solutionPluginFullName = "fx-solution-azure";
|
|
35
|
-
Constants.solutionConfigKey = {
|
|
36
|
-
resourceNameSuffix: "resourceNameSuffix",
|
|
37
|
-
location: "location",
|
|
38
|
-
tenantId: "tenantId",
|
|
39
|
-
};
|
|
40
|
-
Constants.identityPlugin = "fx-resource-identity";
|
|
41
|
-
Constants.identityName = "identityName";
|
|
42
|
-
Constants.questionKey = {
|
|
43
|
-
adminName: "sql-admin-name",
|
|
44
|
-
adminPassword: "sql-password",
|
|
45
|
-
confirmPassword: "sql-confirm-password",
|
|
46
|
-
skipAddingUser: "sql-skip-adding-user",
|
|
47
|
-
};
|
|
48
|
-
exports.ActionProvision = {
|
|
49
|
-
name: "provision",
|
|
50
|
-
};
|
|
51
|
-
exports.ActionConfigure = {
|
|
52
|
-
name: "configure",
|
|
53
|
-
};
|
|
54
|
-
exports.ActionGenerateBicep = {
|
|
55
|
-
name: "generateBicep",
|
|
56
|
-
};
|
|
57
|
-
class Telemetry {
|
|
58
|
-
}
|
|
59
|
-
exports.Telemetry = Telemetry;
|
|
60
|
-
Telemetry.componentName = "fx-resource-azure-sql";
|
|
61
|
-
Telemetry.stage = {
|
|
62
|
-
preProvision: "pre-provision",
|
|
63
|
-
postProvision: "post-provision",
|
|
64
|
-
getQuestion: "get-question",
|
|
65
|
-
generateArmTemplates: "generate-arm-templates",
|
|
66
|
-
};
|
|
67
|
-
Telemetry.properties = {
|
|
68
|
-
skipAddingUser: "skip-adding-user",
|
|
69
|
-
dbCount: "db-count",
|
|
70
|
-
dbOnly: "db-only",
|
|
71
|
-
};
|
|
72
|
-
class HelpLinks {
|
|
73
|
-
}
|
|
74
|
-
exports.HelpLinks = HelpLinks;
|
|
75
|
-
HelpLinks.default = "https://aka.ms/teamsfx-sql-help";
|
|
76
|
-
class AzureSqlBicep {
|
|
77
|
-
}
|
|
78
|
-
exports.AzureSqlBicep = AzureSqlBicep;
|
|
79
|
-
AzureSqlBicep.sqlResourceId = "provisionOutputs.azureSqlOutput.value.sqlResourceId";
|
|
80
|
-
AzureSqlBicep.sqlEndpoint = "provisionOutputs.azureSqlOutput.value.sqlEndpoint";
|
|
81
|
-
AzureSqlBicep.databaseName = "provisionOutputs.azureSqlOutput.value.databaseName";
|
|
82
|
-
class AzureSqlBicepFile {
|
|
83
|
-
}
|
|
84
|
-
exports.AzureSqlBicepFile = AzureSqlBicepFile;
|
|
85
|
-
AzureSqlBicepFile.moduleTemplateFileName = "provision.template.bicep";
|
|
86
|
-
AzureSqlBicepFile.ProvisionModuleTemplateFileName = "sqlProvision.template.bicep";
|
|
87
|
-
AzureSqlBicepFile.newDatabaseOrchestrationTemplateFileName = "newDatabase.orchestration.template.bicep";
|
|
88
|
-
AzureSqlBicepFile.newDatabaseProvisionTemplateFileName = "newDatabaseProvision.template.bicep";
|
|
89
|
-
exports.Message = {
|
|
90
|
-
skipAddAadAdmin: `skip adding existing aad admin`,
|
|
91
|
-
addFirewall: `add firewall`,
|
|
92
|
-
addSqlAadAdmin: `add SQL aad admin`,
|
|
93
|
-
addDatabaseUser: (name) => `add database user ${name}`,
|
|
94
|
-
};
|
|
95
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/component/resource/azureSql/constants.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,MAAa,SAAS;;AAAtB,8BAoDC;AAnDiB,oBAAU,GAAW,YAAY,CAAC;AAClC,yBAAe,GAAW,KAAK,CAAC;AAChC,wBAAc,GAAW,uBAAuB,CAAC;AAEjD,kBAAQ,GAAG;IACzB,SAAS,EAAE,YAAY;CACxB,CAAC;AAEc,sBAAY,GAAG,GAAG,CAAC;AACnB,oBAAU,GAAG,KAAK,CAAC;AAEnB,uBAAa,GAAG,CAAC,CAAC;AAEl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B,cAAc,EAAE,kBAAkB;IAClC,OAAO,EAAE,UAAU;IACnB,MAAM,EAAE,SAAS;CAClB,CAAC;AAGJ,MAAa,SAAS;;AAAtB,8BAEC;AADiB,iBAAO,GAAG,iCAAiC,CAAC;AAG9D,MAAa,aAAa;;AAA1B,sCAIC;AAHiB,2BAAa,GAAW,qDAAqD,CAAC;AAC9E,yBAAW,GAAW,mDAAmD,CAAC;AAC1E,0BAAY,GAAW,oDAAoD,CAAC;AAG9F,MAAa,iBAAiB;;AAA9B,8CAMC;AALiB,wCAAsB,GAAW,0BAA0B,CAAC;AAC5D,iDAA+B,GAAG,6BAA6B,CAAC;AAChE,0DAAwC,GACtD,0CAA0C,CAAC;AAC7B,sDAAoC,GAAG,qCAAqC,CAAC;AAGlF,QAAA,OAAO,GAAG;IACrB,eAAe,EAAE,gCAAgC;IACjD,WAAW,EAAE,cAAc;IAC3B,cAAc,EAAE,mBAAmB;IAEnC,eAAe,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,qBAAqB,IAAI,EAAE;CAC/D,CAAC"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
export declare class ErrorMessage {
|
|
2
|
-
static readonly LinkHelpMessage: (link: string) => string;
|
|
3
|
-
static readonly SqlInputError: {
|
|
4
|
-
name: string;
|
|
5
|
-
message: () => [string, string];
|
|
6
|
-
};
|
|
7
|
-
static readonly SqlAskInputError: {
|
|
8
|
-
name: string;
|
|
9
|
-
message: () => [string, string];
|
|
10
|
-
};
|
|
11
|
-
static readonly SqlEndpointError: {
|
|
12
|
-
name: string;
|
|
13
|
-
message: (sqlName: string) => [string, string];
|
|
14
|
-
};
|
|
15
|
-
static readonly DatabaseUserCreateError: {
|
|
16
|
-
name: string;
|
|
17
|
-
message: (database: string, user: string) => [string, string];
|
|
18
|
-
};
|
|
19
|
-
static readonly SqlAddAdminError: {
|
|
20
|
-
name: string;
|
|
21
|
-
message: (account: string, detail?: string) => [string, string];
|
|
22
|
-
};
|
|
23
|
-
static readonly SqlLocalFirwallError: {
|
|
24
|
-
name: string;
|
|
25
|
-
message: (sqlName: string, detail?: string) => [string, string];
|
|
26
|
-
};
|
|
27
|
-
static readonly SqlDeleteLocalFirwallError: {
|
|
28
|
-
name: string;
|
|
29
|
-
message: (sqlName: string, detail?: string) => [string, string];
|
|
30
|
-
};
|
|
31
|
-
static readonly SqlUserInfoError: {
|
|
32
|
-
name: string;
|
|
33
|
-
message: () => [string, string];
|
|
34
|
-
};
|
|
35
|
-
static readonly SqlGetConfigError: {
|
|
36
|
-
name: string;
|
|
37
|
-
message: (pluginId: string, configKey: string) => [string, string];
|
|
38
|
-
};
|
|
39
|
-
static readonly SqlInvalidConfigError: {
|
|
40
|
-
name: string;
|
|
41
|
-
message: (configKey: string, reason: string) => [string, string];
|
|
42
|
-
};
|
|
43
|
-
static readonly SqlCheckError: {
|
|
44
|
-
name: string;
|
|
45
|
-
message: (sqlName: string, detail?: string) => [string, string];
|
|
46
|
-
};
|
|
47
|
-
static readonly SqlCheckAdminError: {
|
|
48
|
-
name: string;
|
|
49
|
-
message: (identity: string, detail?: string) => [string, string];
|
|
50
|
-
};
|
|
51
|
-
static readonly UnhandledError: {
|
|
52
|
-
name: string;
|
|
53
|
-
message: () => [string, string];
|
|
54
|
-
};
|
|
55
|
-
static readonly IdentityCredentialUndefine: (user: string, databaseName: string) => string;
|
|
56
|
-
static readonly ServicePrincipalWarning: (user: string, databaseName: string) => string;
|
|
57
|
-
static readonly DomainCode = "AADSTS53000";
|
|
58
|
-
static readonly DomainError: string;
|
|
59
|
-
static readonly GuestAdminMessage = "Server identity does not have Azure Active Directory Readers permission";
|
|
60
|
-
static readonly FirewallErrorReg: RegExp;
|
|
61
|
-
static readonly GuestAdminError: string;
|
|
62
|
-
}
|
|
63
|
-
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/component/resource/azureSql/errors.ts"],"names":[],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B,UAAU,iBAAiB;IAElD,gBAAuB,WAAW,SAGhC;IAEF,gBAAuB,iBAAiB,6EACoC;IAE5E,gBAAuB,gBAAgB,SAC8B;IAErE,gBAAuB,eAAe,SAGpC;CACH"}
|
|
@@ -1,107 +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.ErrorMessage = void 0;
|
|
6
|
-
const localizeUtils_1 = require("../../../common/localizeUtils");
|
|
7
|
-
const constants_1 = require("./constants");
|
|
8
|
-
class ErrorMessage {
|
|
9
|
-
}
|
|
10
|
-
exports.ErrorMessage = ErrorMessage;
|
|
11
|
-
ErrorMessage.LinkHelpMessage = (link) => localizeUtils_1.getLocalizedString("error.sql.LinkHelpMessage", link);
|
|
12
|
-
ErrorMessage.SqlInputError = {
|
|
13
|
-
name: "SqlInputError",
|
|
14
|
-
message: () => [
|
|
15
|
-
localizeUtils_1.getDefaultString("error.sql.SqlInputError"),
|
|
16
|
-
localizeUtils_1.getLocalizedString("error.sql.SqlInputError"),
|
|
17
|
-
],
|
|
18
|
-
};
|
|
19
|
-
ErrorMessage.SqlAskInputError = {
|
|
20
|
-
name: "SqlAskInputError",
|
|
21
|
-
message: () => [
|
|
22
|
-
localizeUtils_1.getDefaultString("error.sql.SqlAskInputError"),
|
|
23
|
-
localizeUtils_1.getLocalizedString("error.sql.SqlAskInputError"),
|
|
24
|
-
],
|
|
25
|
-
};
|
|
26
|
-
ErrorMessage.SqlEndpointError = {
|
|
27
|
-
name: "SqlEndpointError",
|
|
28
|
-
message: (sqlName) => [
|
|
29
|
-
localizeUtils_1.getDefaultString("error.sql.SqlEndpointError", sqlName),
|
|
30
|
-
localizeUtils_1.getLocalizedString("error.sql.SqlEndpointError", sqlName),
|
|
31
|
-
],
|
|
32
|
-
};
|
|
33
|
-
ErrorMessage.DatabaseUserCreateError = {
|
|
34
|
-
name: "DatabaseUserCreateError",
|
|
35
|
-
message: (database, user) => [
|
|
36
|
-
localizeUtils_1.getDefaultString("error.sql.DatabaseUserCreateError", user, database),
|
|
37
|
-
localizeUtils_1.getLocalizedString("error.sql.DatabaseUserCreateError", user, database),
|
|
38
|
-
],
|
|
39
|
-
};
|
|
40
|
-
ErrorMessage.SqlAddAdminError = {
|
|
41
|
-
name: "SqlAddAdminError",
|
|
42
|
-
message: (account, detail = "") => [
|
|
43
|
-
localizeUtils_1.getDefaultString("error.sql.SqlAddAdminError", account, detail),
|
|
44
|
-
localizeUtils_1.getLocalizedString("error.sql.SqlAddAdminError", account, detail),
|
|
45
|
-
],
|
|
46
|
-
};
|
|
47
|
-
ErrorMessage.SqlLocalFirwallError = {
|
|
48
|
-
name: "SqlLocalFirwallError",
|
|
49
|
-
message: (sqlName, detail = "") => [
|
|
50
|
-
localizeUtils_1.getDefaultString("error.sql.SqlLocalFirwallError", sqlName, detail),
|
|
51
|
-
localizeUtils_1.getLocalizedString("error.sql.SqlLocalFirwallError", sqlName, detail),
|
|
52
|
-
],
|
|
53
|
-
};
|
|
54
|
-
ErrorMessage.SqlDeleteLocalFirwallError = {
|
|
55
|
-
name: "SqlDeleteLocalFirwallError",
|
|
56
|
-
message: (sqlName, detail = "") => [
|
|
57
|
-
localizeUtils_1.getDefaultString("error.sql.SqlDeleteLocalFirwallError", sqlName, constants_1.Constants.firewall.localRule, detail),
|
|
58
|
-
localizeUtils_1.getLocalizedString("error.sql.SqlDeleteLocalFirwallError", sqlName, constants_1.Constants.firewall.localRule, detail),
|
|
59
|
-
],
|
|
60
|
-
};
|
|
61
|
-
ErrorMessage.SqlUserInfoError = {
|
|
62
|
-
name: "SqlUserInfoError",
|
|
63
|
-
message: () => [
|
|
64
|
-
localizeUtils_1.getDefaultString("error.sql.SqlUserInfoError"),
|
|
65
|
-
localizeUtils_1.getLocalizedString("error.sql.SqlUserInfoError"),
|
|
66
|
-
],
|
|
67
|
-
};
|
|
68
|
-
ErrorMessage.SqlGetConfigError = {
|
|
69
|
-
name: "SqlGetConfigError",
|
|
70
|
-
message: (pluginId, configKey) => [
|
|
71
|
-
localizeUtils_1.getDefaultString("error.sql.SqlGetConfigError", configKey, pluginId),
|
|
72
|
-
localizeUtils_1.getLocalizedString("error.sql.SqlGetConfigError", configKey, pluginId),
|
|
73
|
-
],
|
|
74
|
-
};
|
|
75
|
-
ErrorMessage.SqlInvalidConfigError = {
|
|
76
|
-
name: "SqlInvalidConfigError",
|
|
77
|
-
message: (configKey, reason) => [
|
|
78
|
-
localizeUtils_1.getDefaultString("error.sql.SqlInvalidConfigError", configKey, reason),
|
|
79
|
-
localizeUtils_1.getLocalizedString("error.sql.SqlInvalidConfigError", configKey, reason),
|
|
80
|
-
],
|
|
81
|
-
};
|
|
82
|
-
ErrorMessage.SqlCheckError = {
|
|
83
|
-
name: "SqlCheckError",
|
|
84
|
-
message: (sqlName, detail = "") => [
|
|
85
|
-
localizeUtils_1.getDefaultString("error.sql.SqlCheckError", sqlName, detail),
|
|
86
|
-
localizeUtils_1.getLocalizedString("error.sql.SqlCheckError", sqlName, detail),
|
|
87
|
-
],
|
|
88
|
-
};
|
|
89
|
-
ErrorMessage.SqlCheckAdminError = {
|
|
90
|
-
name: "SqlCheckAdminError",
|
|
91
|
-
message: (identity, detail = "") => [
|
|
92
|
-
localizeUtils_1.getDefaultString("error.sql.SqlCheckAdminError", identity, detail),
|
|
93
|
-
localizeUtils_1.getLocalizedString("error.sql.SqlCheckAdminError", identity, detail),
|
|
94
|
-
],
|
|
95
|
-
};
|
|
96
|
-
ErrorMessage.UnhandledError = {
|
|
97
|
-
name: "UnhandledError",
|
|
98
|
-
message: () => ["Unhandled Error", "Unhandled Error"],
|
|
99
|
-
};
|
|
100
|
-
ErrorMessage.IdentityCredentialUndefine = (user, databaseName) => localizeUtils_1.getLocalizedString("error.sql.IdentityCredentialUndefine", user, databaseName);
|
|
101
|
-
ErrorMessage.ServicePrincipalWarning = (user, databaseName) => localizeUtils_1.getLocalizedString("error.sql.ServicePrincipalWarning", user, databaseName);
|
|
102
|
-
ErrorMessage.DomainCode = "AADSTS53000";
|
|
103
|
-
ErrorMessage.DomainError = localizeUtils_1.getLocalizedString("error.sql.DomainError", localizeUtils_1.getLocalizedString("error.sql.GetDetail"));
|
|
104
|
-
ErrorMessage.GuestAdminMessage = "Server identity does not have Azure Active Directory Readers permission";
|
|
105
|
-
ErrorMessage.FirewallErrorReg = /Client with IP address .*? is not allowed to access the server./g;
|
|
106
|
-
ErrorMessage.GuestAdminError = localizeUtils_1.getLocalizedString("error.sql.GuestAdminError", localizeUtils_1.getLocalizedString("error.sql.GetDetail"));
|
|
107
|
-
//# sourceMappingURL=errors.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../src/component/resource/azureSql/errors.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,iEAAqF;AACrF,2CAAwC;AAExC,MAAa,YAAY;;AAAzB,oCA0IC;AAzIwB,4BAAe,GAAG,CAAC,IAAY,EAAE,EAAE,CACxD,kCAAkB,CAAC,2BAA2B,EAAE,IAAI,CAAC,CAAC;AAEjC,0BAAa,GAAG;IACrC,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,GAAqB,EAAE,CAAC;QAC/B,gCAAgB,CAAC,yBAAyB,CAAC;QAC3C,kCAAkB,CAAC,yBAAyB,CAAC;KAC9C;CACF,CAAC;AAEqB,6BAAgB,GAAG;IACxC,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,GAAqB,EAAE,CAAC;QAC/B,gCAAgB,CAAC,4BAA4B,CAAC;QAC9C,kCAAkB,CAAC,4BAA4B,CAAC;KACjD;CACF,CAAC;AAEqB,6BAAgB,GAAG;IACxC,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,CAAC,OAAe,EAAoB,EAAE,CAAC;QAC9C,gCAAgB,CAAC,4BAA4B,EA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