@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,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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AQ,CAAC,aAAa,2BAA2B;IAExD,MAAM,CAAC,QAAQ,CAAC,KAAK;;;;;MAKnB;IAEF,MAAM,CAAC,QAAQ,CAAC,UAAU;;;;MAIxB;CACH;AAED,qBAAa,SAAS;IACpB,MAAM,CAAC,QAAQ,CAAC,OAAO,qCAAqC;CAC7D;AAED,qBAAa,aAAa;IACxB,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAyD;IAC9F,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAuD;IAC1F,MAAM,CAAC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAwD;CAC7F;AAED,qBAAa,iBAAiB;IAC5B,MAAM,CAAC,QAAQ,CAAC,sBAAsB,EAAE,MAAM,CAA8B;IAC5E,MAAM,CAAC,QAAQ,CAAC,+BAA+B,iCAAiC;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;AAElB,kBAAQ,GAAG;IACzB,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,KAAK;IACX,QAAQ,EAAE,GAAG;CACd,CAAC;AAEc,8BAAoB,GAAW,iBAAiB,CAAC;AAEjD,uBAAa,GAAW,uBAAuB,CAAC;AAEhD,uBAAa,GAAW,wCAAwC,CAAC;AAEjE,2BAAiB,GAAW,mBAAmB,CAAC;AAChD,qBAAW,GAAW,aAAa,CAAC;AACpC,uBAAa,GAAW,eAAe,CAAC;AACxC,sBAAY,GAAW,cAAc,CAAC;AACtC,2BAAiB,GAAW,mBAAmB,CAAC;AAChD,eAAK,GAAW,OAAO,CAAC;AACxB,uBAAa,GAAW,eAAe,CAAC;AAExC,kBAAQ,GAAW,UAAU,CAAC;AAC9B,gCAAsB,GAAG,mBAAmB,CAAC;AAE7C,2BAAiB,GAAG;IAClC,kBAAkB,EAAE,oBAAoB;IACxC,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;CACrB,CAAC;AAEc,wBAAc,GAAW,sBAAsB,CAAC;AAChD,sBAAY,GAAW,cAAc,CAAC;AAEtC,qBAAW,GAAG;IAC5B,SAAS,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age {
|
|
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":[],"mappings":"AAMA,qBAAa,YAAY;IACvB,gBAAuB,eAAe,SAAU,MAAM,YACE;IAExD,gBAAuB,aAAa;;uBAErB,CAAC,MAAM,EAAE,MAAM,CAAC;MAI7B;IAEF,gBAAuB,gBAAgB;;uBAExB,CAAC,MAAM,EAAE,MAAM,CAAC;MAI7B;IAEF,gBAAuB,gBAAgB;;2BAElB,MAAM,KAAG,CAAC,MAAM,EAAE,MAAM,CAAC;MAI5C;IAEF,gBAAuB,uBAAuB;;4BAExB,MAAM,QAAQ,MAAM,KAAG,CAAC,MAAM,EAAE,MAAM,CAAC;MAI3D;IAEF,gBAAuB,gBAAgB;;2BAElB,MAAM,sBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC;MAIzD;IAEF,gBAAuB,oBAAoB;;2BAEtB,MAAM,sBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC;MAIzD;IAEF,gBAAuB,0BAA0B;;2BAE5B,MAAM,sBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC;MAczD;IAEF,gBAAuB,gBAAgB;;uBAExB,CAAC,MAAM,EAAE,MAAM,CAAC;MAI7B;IAEF,gBAAuB,iBAAiB;;4BAElB,MAAM,aAAa,MAAM,KAAG,CAAC,MAAM,EAAE,MAAM,CAAC;MAIhE;IAEF,gBAAuB,qBAAqB;;6BAErB,MAAM,UAAU,MAAM,KAAG,CAAC,MAAM,EAAE,MAAM,CAAC;MAI9D;IAEF,gBAAuB,aAAa;;2BAEf,MAAM,sBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC;MAIzD;IAEF,gBAAuB,kBAAkB;;4BAEnB,MAAM,sBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC;MAI1D;IAEF,gBAAuB,cAAc;;uBAEtB,CAAC,MAAM,EAAE,MAAM,CAAC;MAC7B;IAEF,gBAAuB,0BAA0B,SAAU,MAAM,gBAAgB,MAAM,YACN;IAEjF,gBAAuB,uBAAuB,SAAU,MAAM,gBAAgB,MAAM,YACN;IAE9E,gBAAuB,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,k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"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
const tslib_1 = require("tslib");
|
|
6
|
-
tslib_1.__exportStar(require("./azureSql"), exports);
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/component/resource/azureSql/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,qDAA2B"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { QTreeNode, TextInputQuestion } from "@microsoft/teamsfx-api";
|
|
2
|
-
export declare const adminNameQuestion: TextInputQuestion;
|
|
3
|
-
export declare const adminPasswordQuestion: TextInputQuestion;
|
|
4
|
-
export declare const confirmPasswordQuestion: TextInputQuestion;
|
|
5
|
-
export declare function buildQuestionNode(): QTreeNode;
|
|
6
|
-
//# sourceMappingURL=questions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"questions.d.ts","sourceRoot":"","sources":["../../../../src/component/resource/azureSql/questions.ts"],"names":[],"mappings":"AAGA,OAAO,EAAU,SAAS,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAS9E,eAAO,MAAM,iBAAiB,EAAE,iBAU/B,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,iBAanC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,iBAarC,CAAC;AAEF,wBAAgB,iBAAiB,IAAI,SAAS,CAQ7C"}
|
|
@@ -1,59 +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.buildQuestionNode = exports.confirmPasswordQuestion = exports.adminPasswordQuestion = exports.adminNameQuestion = void 0;
|
|
6
|
-
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
7
|
-
const localizeUtils_1 = require("../../../common/localizeUtils");
|
|
8
|
-
const constants_1 = require("./constants");
|
|
9
|
-
const checkInput_1 = require("./utils/checkInput");
|
|
10
|
-
exports.adminNameQuestion = {
|
|
11
|
-
name: constants_1.Constants.questionKey.adminName,
|
|
12
|
-
title: localizeUtils_1.getLocalizedString("plugins.sql.getQuestionAdminName.title"),
|
|
13
|
-
type: "text",
|
|
14
|
-
validation: {
|
|
15
|
-
validFunc: async (input, previousInputs) => {
|
|
16
|
-
const res = checkInput_1.sqlUserNameValidator(input);
|
|
17
|
-
return res;
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
exports.adminPasswordQuestion = {
|
|
22
|
-
name: constants_1.Constants.questionKey.adminPassword,
|
|
23
|
-
title: localizeUtils_1.getLocalizedString("plugins.sql.getQuestionAdminPassword.title"),
|
|
24
|
-
type: "text",
|
|
25
|
-
password: true,
|
|
26
|
-
validation: {
|
|
27
|
-
validFunc: async (input, previousInputs) => {
|
|
28
|
-
const password = input;
|
|
29
|
-
const name = previousInputs[constants_1.Constants.questionKey.adminName];
|
|
30
|
-
const res = checkInput_1.sqlPasswordValidatorGenerator(name)(password);
|
|
31
|
-
return res;
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
exports.confirmPasswordQuestion = {
|
|
36
|
-
name: constants_1.Constants.questionKey.confirmPassword,
|
|
37
|
-
title: localizeUtils_1.getLocalizedString("plugins.sql.getQuestionConfirmPassword.title"),
|
|
38
|
-
type: "text",
|
|
39
|
-
password: true,
|
|
40
|
-
validation: {
|
|
41
|
-
validFunc: async (input, previousInputs) => {
|
|
42
|
-
const confirm = input;
|
|
43
|
-
const password = previousInputs[constants_1.Constants.questionKey.adminPassword];
|
|
44
|
-
const res = checkInput_1.sqlConfirmPasswordValidatorGenerator(password)(confirm);
|
|
45
|
-
return res;
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
};
|
|
49
|
-
function buildQuestionNode() {
|
|
50
|
-
const sqlNode = new teamsfx_api_1.QTreeNode({
|
|
51
|
-
type: "group",
|
|
52
|
-
});
|
|
53
|
-
sqlNode.addChild(new teamsfx_api_1.QTreeNode(exports.adminNameQuestion));
|
|
54
|
-
sqlNode.addChild(new teamsfx_api_1.QTreeNode(exports.adminPasswordQuestion));
|
|
55
|
-
sqlNode.addChild(new teamsfx_api_1.QTreeNode(exports.confirmPasswordQuestion));
|
|
56
|
-
return sqlNode;
|
|
57
|
-
}
|
|
58
|
-
exports.buildQuestionNode = buildQuestionNode;
|
|
59
|
-
//# sourceMappingURL=questions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"questions.js","sourceRoot":"","sources":["../../../../src/component/resource/azureSql/questions.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,wDAA8E;AAC9E,iEAAmE;AACnE,2CAAwC;AACxC,mDAI4B;AAEf,QAAA,iBAAiB,GAAsB;IAClD,IAAI,EAAE,qBAAS,CAAC,WAAW,CAAC,SAAS;IACrC,KAAK,EAAE,kCAAkB,CAAC,wCAAwC,CAAC;IACnE,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE;QACV,SAAS,EAAE,KAAK,EAAE,KAAa,EAAE,cAAuB,EAA+B,EAAE;YACvF,MAAM,GAAG,GAAG,iCAAoB,CAAC,KAAe,CAAC,CAAC;YAClD,OAAO,GAAG,CAAC;QACb,CAAC;KACF;CACF,CAAC;AAEW,QAAA,qBAAqB,GAAsB;IACtD,IAAI,EAAE,qBAAS,CAAC,WAAW,CAAC,aAAa;IACzC,KAAK,EAAE,kCAAkB,CAAC,4CAA4C,CAAC;IACvE,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,IAAI;IACd,UAAU,EAAE;QACV,SAAS,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serError, Result } from "@microsoft/teamsfx-api";
|
|
2
|
-
export declare type SqlResult = Result<any, FxError>;
|
|
3
|
-
export declare class SqlResultFactory {
|
|
4
|
-
static readonly source: string;
|
|
5
|
-
static readonly defaultHelpLink = "";
|
|
6
|
-
static readonly defaultIssueLink = "";
|
|
7
|
-
static UserError(name: string, messages: [string, string], innerError?: any, stack?: string, helpLink?: string): UserError;
|
|
8
|
-
static SystemError(name: string, messages: [string, string], innerError?: any, stack?: string, issueLink?: string): SystemError;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=results.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"results.d.ts","sourceRoot":"","sources":["../../../../src/component/resource/azureSql/results.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAGjF,oBAAY,SAAS,GAAG,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AAE7C,qBAAa,gBAAgB;IAC3B,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAA6B;IAC3D,MAAM,CAAC,QAAQ,CAAC,eAAe,MAAM;IACrC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,MAAM;WAExB,SAAS,CACrB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAC1B,UAAU,CAAC,EAAE,GAAG,EAChB,KAAK,CAAC,EAAE,MAAM,EACd,QAAQ,CAAC,EAAE,MAAM,GAChB,SAAS;WAWE,WAAW,CACvB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAC1B,UAAU,CAAC,EAAE,GAAG,EAChB,KAAK,CAAC,EAAE,MAAM,EACd,SAAS,CAAC,EAAE,MAAM,GACjB,WAAW;CAUf"}
|
|
@@ -1,34 +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.SqlResultFactory = void 0;
|
|
6
|
-
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
7
|
-
const constants_1 = require("./constants");
|
|
8
|
-
class SqlResultFactory {
|
|
9
|
-
static UserError(name, messages, innerError, stack, helpLink) {
|
|
10
|
-
return new teamsfx_api_1.UserError({
|
|
11
|
-
name,
|
|
12
|
-
message: messages[0],
|
|
13
|
-
displayMessage: messages[1],
|
|
14
|
-
source: this.source,
|
|
15
|
-
helpLink,
|
|
16
|
-
error: innerError,
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
static SystemError(name, messages, innerError, stack, issueLink) {
|
|
20
|
-
return new teamsfx_api_1.SystemError({
|
|
21
|
-
name,
|
|
22
|
-
message: messages[0],
|
|
23
|
-
displayMessage: messages[1],
|
|
24
|
-
source: this.source,
|
|
25
|
-
issueLink,
|
|
26
|
-
error: innerError,
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.SqlResultFactory = SqlResultFactory;
|
|
31
|
-
SqlResultFactory.source = constants_1.Constants.pluginNameShort;
|
|
32
|
-
SqlResultFactory.defaultHelpLink = "";
|
|
33
|
-
SqlResultFactory.defaultIssueLink = "";
|
|
34
|
-
//# sourceMappingURL=results.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"results.js","sourceRoot":"","sources":["../../../../src/component/resource/azureSql/results.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,wDAAiF;AACjF,2CAAwC;AAIxC,MAAa,gBAAgB;IAKpB,MAAM,CAAC,SAAS,CACrB,IAAY,EACZ,QAA0B,EAC1B,UAAgB,EAChB,KAAc,EACd,QAAiB;QAEjB,OAAO,IAAI,uBAAS,CAAC;YACnB,IAAI;YACJ,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;YACpB,cAAc,EAAE,QAAQ,CAAC,CAAC,CAAC;YAC3B,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,QAAQ;YACR,KAAK,EAAE,UAAU;SAClB,CAAC,CAAC;IACL,CAAC;IAEM,MAAM,CAAC,WAAW,CACvB,IAAY,EACZ,QAA0B,EAC1B,UAAgB,EAChB,KAAc,EACd,SAAkB;QAElB,OAAO,IAAI,yBAAW,CAAC;YACrB,IAAI;YACJ,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;YACpB,cAAc,EAAE,QAAQ,CAAC,CAAC,CAAC;YAC3B,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,SAAS;YACT,KAAK,EAAE,UAAU;SAClB,CAAC,CAAC;IACL,CAAC;;AArCH,4CAsCC;AArCiB,uBAAM,GAAW,qBAAS,CAAC,eAAe,CAAC;AAC3C,gCAAe,GAAG,EAAE,CAAC;AACrB,iCAAgB,GAAG,EAAE,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface ManagementConfig {
|
|
2
|
-
sqlServer: string;
|
|
3
|
-
sqlEndpoint: string;
|
|
4
|
-
resourceGroup: string;
|
|
5
|
-
azureSubscriptionId: string;
|
|
6
|
-
}
|
|
7
|
-
export interface SqlConfig {
|
|
8
|
-
sqlEndpoint: string;
|
|
9
|
-
identity: string;
|
|
10
|
-
databases: string[];
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/component/resource/azureSql/types.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,SAAS;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/component/resource/azureSql/types.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare function sqlUserNameValidator(name: string): string | undefined;
|
|
2
|
-
/**
|
|
3
|
-
* Your password must be at least 8 characters in length.
|
|
4
|
-
* Your password must be no more than 128 characters in length.
|
|
5
|
-
* 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.).
|
|
6
|
-
* 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.
|
|
7
|
-
*/
|
|
8
|
-
export declare function sqlPasswordValidatorGenerator(name: string): (password: string) => string | undefined;
|
|
9
|
-
export declare function sqlConfirmPasswordValidatorGenerator(password: string): (confirm: string) => string | undefined;
|
|
10
|
-
//# sourceMappingURL=checkInput.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkInput.d.ts","sourceRoot":"","sources":["../../../../../src/component/resource/azureSql/utils/checkInput.ts"],"names":[],"mappings":"AAIA,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAyBrE;AA2BD;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAC3C,IAAI,EAAE,MAAM,GACX,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAsC1C;AAED,wBAAgB,oCAAoC,CAClD,QAAQ,EAAE,MAAM,GACf,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CASzC"}
|