@microsoft/teamsfx-core 2.0.1-alpha.cb1f62669.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/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.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/local/localStateHelper.d.ts.map +1 -1
- package/build/common/local/localStateHelper.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 +20 -42
- 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 -16
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +54 -204
- 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/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/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 +8 -7
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +35 -188
- 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/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/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 +2 -2
- package/build/component/driver/aad/update.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/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/deploy/azure/impl/AzureZipDeployImpl.js +9 -9
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js.map +1 -1
- package/build/component/driver/devTool/installDriver.d.ts.map +1 -1
- package/build/component/driver/devTool/installDriver.js +3 -2
- package/build/component/driver/devTool/installDriver.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/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/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/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/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 -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/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 +2 -27
- 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.d.ts +2 -64
- package/build/component/question.d.ts.map +1 -1
- package/build/component/question.js +50 -665
- package/build/component/question.js.map +1 -1
- package/build/component/registerService.d.ts +0 -16
- package/build/component/registerService.d.ts.map +1 -1
- package/build/component/registerService.js +0 -16
- 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/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/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/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 +2 -2
- package/build/component/utils/pathUtils.js.map +1 -1
- package/build/component/utils.d.ts +1 -29
- package/build/component/utils.d.ts.map +1 -1
- package/build/component/utils.js +24 -501
- package/build/component/utils.js.map +1 -1
- package/build/component/workflow.d.ts +0 -2
- package/build/component/workflow.d.ts.map +1 -1
- package/build/component/workflow.js +1 -692
- package/build/component/workflow.js.map +1 -1
- package/build/core/FxCore.d.ts +0 -13
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.js +1 -55
- package/build/core/FxCore.js.map +1 -1
- package/build/core/FxCoreImplementV3.d.ts +2 -4
- package/build/core/FxCoreImplementV3.d.ts.map +1 -1
- package/build/core/FxCoreImplementV3.js +58 -102
- 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 +3 -1
- package/build/core/middleware/projectMigratorV3.d.ts.map +1 -1
- package/build/core/middleware/projectMigratorV3.js +43 -49
- 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 +10 -23
- 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/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 +1 -12
- package/build/core/question.d.ts.map +1 -1
- package/build/core/question.js +17 -240
- 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/error/common.d.ts +6 -0
- package/build/error/common.d.ts.map +1 -1
- package/build/error/common.js +26 -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 +14 -34
- package/resource/package.nls.json +6 -241
- 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/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/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/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/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/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/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/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/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/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/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/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/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 -3
- package/build/component/utils/backupFiles.d.ts.map +0 -1
- package/build/component/utils/backupFiles.js +0 -142
- 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/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/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/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/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/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,12 +0,0 @@
|
|
|
1
|
-
import { FxError, InputsWithProjectPath, ResourceContextV3, ResourceOutputs, Result } from "@microsoft/teamsfx-api";
|
|
2
|
-
import { AzureResource } from "./../azureResource";
|
|
3
|
-
export declare abstract class AzureAppService extends AzureResource {
|
|
4
|
-
abstract readonly name: string;
|
|
5
|
-
abstract readonly alias: string;
|
|
6
|
-
abstract readonly displayName: string;
|
|
7
|
-
abstract readonly bicepModuleName: string;
|
|
8
|
-
abstract readonly outputs: ResourceOutputs;
|
|
9
|
-
abstract readonly finalOutputKeys: string[];
|
|
10
|
-
deploy(context: ResourceContextV3, inputs: InputsWithProjectPath, restart?: boolean, givenResourceIdKey?: string): Promise<Result<undefined, FxError>>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=azureAppService.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"azureAppService.d.ts","sourceRoot":"","sources":["../../../../src/component/resource/azureAppService/azureAppService.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,OAAO,EACP,qBAAqB,EAErB,iBAAiB,EACjB,eAAe,EACf,MAAM,EACP,MAAM,wBAAwB,CAAC;AAUhC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAQnD,8BAAsB,eAAgB,SAAQ,aAAa;IACzD,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IACtC,QAAQ,CAAC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IAC1C,QAAQ,CAAC,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAC3C,QAAQ,CAAC,QAAQ,CAAC,eAAe,EAAE,MAAM,EAAE,CAAC;IACtC,MAAM,CACV,OAAO,EAAE,iBAAiB,EAC1B,MAAM,EAAE,qBAAqB,EAC7B,OAAO,UAAQ,EACf,kBAAkB,CAAC,EAAE,MAAM,GAC1B,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;CA2CvC"}
|
|
@@ -1,48 +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.AzureAppService = void 0;
|
|
6
|
-
const tslib_1 = require("tslib");
|
|
7
|
-
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
8
|
-
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
9
|
-
const path = tslib_1.__importStar(require("path"));
|
|
10
|
-
const utils_1 = require("../../../common/azure-hosting/utils");
|
|
11
|
-
const utils = tslib_1.__importStar(require("./common"));
|
|
12
|
-
const error_1 = require("../../error");
|
|
13
|
-
const azureResource_1 = require("./../azureResource");
|
|
14
|
-
const messages_1 = require("../../messages");
|
|
15
|
-
const azureOps_1 = require("../../../common/azure-hosting/azureOps");
|
|
16
|
-
const tools_1 = require("../../../common/tools");
|
|
17
|
-
class AzureAppService extends azureResource_1.AzureResource {
|
|
18
|
-
async deploy(context, inputs, restart = false, givenResourceIdKey) {
|
|
19
|
-
const progressBar = context.userInteraction.createProgressBar(messages_1.ProgressTitles.deploying(this.displayName, inputs.scenario), 2);
|
|
20
|
-
await progressBar.start();
|
|
21
|
-
try {
|
|
22
|
-
// Preconditions checking.
|
|
23
|
-
if (!inputs.projectPath || !inputs.artifactFolder) {
|
|
24
|
-
throw new error_1.PreconditionError(this.alias, messages_1.ErrorMessage.WorkingDirIsMissing, []);
|
|
25
|
-
}
|
|
26
|
-
const publishDir = path.resolve(inputs.projectPath, inputs.artifactFolder);
|
|
27
|
-
const packDirExisted = await fs_extra_1.default.pathExists(publishDir);
|
|
28
|
-
if (!packDirExisted) {
|
|
29
|
-
throw new error_1.PackDirectoryExistenceError(this.alias);
|
|
30
|
-
}
|
|
31
|
-
const state = context.envInfo.state[inputs.componentId];
|
|
32
|
-
const resourceIdKey = givenResourceIdKey || this.outputs.resourceId.key;
|
|
33
|
-
const resourceId = error_1.CheckThrowSomethingMissing(this.name, resourceIdKey, state[resourceIdKey]);
|
|
34
|
-
await progressBar.next(messages_1.ProgressMessages.packingCode());
|
|
35
|
-
const zipBuffer = await utils.zipFolderAsync(publishDir, "");
|
|
36
|
-
const client = await utils_1.azureWebSiteDeploy(resourceId, context.tokenProvider, zipBuffer, context.logProvider, progressBar);
|
|
37
|
-
if (restart) {
|
|
38
|
-
await azureOps_1.AzureOperations.restartWebApp(client, tools_1.getResourceGroupNameFromResourceId(resourceId), tools_1.getSiteNameFromResourceId(resourceId), context.logProvider);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
finally {
|
|
42
|
-
progressBar.end(true);
|
|
43
|
-
}
|
|
44
|
-
return teamsfx_api_1.ok(undefined);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
exports.AzureAppService = AzureAppService;
|
|
48
|
-
//# sourceMappingURL=azureAppService.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"azureAppService.js","sourceRoot":"","sources":["../../../../src/component/resource/azureAppService/azureAppService.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,wDAOgC;AAChC,gEAA0B;AAC1B,mDAA6B;AAC7B,+DAAyE;AACzE,wDAAkC;AAClC,uCAIqB;AACrB,sDAAmD;AACnD,6CAAgF;AAChF,qEAAyE;AACzE,iDAG+B;AAE/B,MAAsB,eAAgB,SAAQ,6BAAa;IAOzD,KAAK,CAAC,MAAM,CACV,OAA0B,EAC1B,MAA6B,EAC7B,OAAO,GAAG,KAAK,EACf,kBAA2B;QAE3B,MAAM,WAAW,GAAG,OAAO,CAAC,eAAe,CAAC,iBAAiB,CAC3D,yBAAc,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,EAC3D,CAAC,CACF,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,EAAE,CAAC;QAC1B,IAAI;YACF,0BAA0B;YAC1B,IAAI,CAAC,MAAM,CAAC,WAAW,IAAI,CAAC,MAAM,CAAC,cAAc,EA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AAS,CAAC,CAAC;IACvB,CAAC;CACF;AAvDD,0CAuDC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { FxError, InputsWithProjectPath, ResourceContextV3, Result } from "@microsoft/teamsfx-api";
|
|
2
|
-
import { AzureAppService } from "./azureAppService";
|
|
3
|
-
import { Site } from "@azure/arm-appservice";
|
|
4
|
-
export declare class AzureFunctionResource extends AzureAppService {
|
|
5
|
-
readonly name = "azure-function";
|
|
6
|
-
readonly alias = "Functions";
|
|
7
|
-
readonly displayName = "Azure Functions";
|
|
8
|
-
readonly bicepModuleName = "azureFunction";
|
|
9
|
-
outputs: {
|
|
10
|
-
resourceId: {
|
|
11
|
-
key: string;
|
|
12
|
-
bicepVariable: string;
|
|
13
|
-
};
|
|
14
|
-
endpoint: {
|
|
15
|
-
key: string;
|
|
16
|
-
bicepVariable: string;
|
|
17
|
-
};
|
|
18
|
-
endpointAsParam: {
|
|
19
|
-
key: string;
|
|
20
|
-
bicepVariable: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
finalOutputKeys: string[];
|
|
24
|
-
templateContext: {
|
|
25
|
-
identity: {
|
|
26
|
-
resourceId: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
configure(context: ResourceContextV3, inputs: InputsWithProjectPath): Promise<Result<undefined, FxError>>;
|
|
30
|
-
deploy(context: ResourceContextV3, inputs: InputsWithProjectPath): Promise<Result<undefined, FxError>>;
|
|
31
|
-
private needConfigure;
|
|
32
|
-
private collectFunctionAppSettings;
|
|
33
|
-
ensureFunctionAllowAppIds(site: Site, clientIds: string[]): void;
|
|
34
|
-
private pushAppSettings;
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=azureFunction.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"azureFunction.d.ts","sourceRoot":"","sources":["../../../../src/component/resource/azureAppService/azureFunction.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,OAAO,EACP,qBAAqB,EAErB,iBAAiB,EACjB,MAAM,EACP,MAAM,wBAAwB,CAAC;AAWhC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAOpD,OAAO,EAAiB,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAO5D,qBACa,qBAAsB,SAAQ,eAAe;IACxD,QAAQ,CAAC,IAAI,oBAAoB;IACjC,QAAQ,CAAC,KAAK,eAAe;IAC7B,QAAQ,CAAC,WAAW,qBAAqB;IACzC,QAAQ,CAAC,eAAe,mBAAmB;IAC3C,OAAO;;;;;;;;;;;;;MAAmB;IAC1B,eAAe,WAA8B;IAC7C,eAAe;;;;MAIb;IAMI,SAAS,CACb,OAAO,EAAE,iBAAiB,EAC1B,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IA8ChC,MAAM,CACV,OAAO,EAAE,iBAAiB,EAC1B,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAetC,OAAO,CAAC,aAAa;IAWrB,OAAO,CAAC,0BAA0B;IAe3B,yBAAyB,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI;IA0BvE,OAAO,CAAC,eAAe;CAqBxB"}
|
|
@@ -1,155 +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.AzureFunctionResource = void 0;
|
|
6
|
-
const tslib_1 = require("tslib");
|
|
7
|
-
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
8
|
-
const typedi_1 = require("typedi");
|
|
9
|
-
const workflow_1 = require("../../workflow");
|
|
10
|
-
const constants_1 = require("../../constants");
|
|
11
|
-
const azureAppService_1 = require("./azureAppService");
|
|
12
|
-
const error_1 = require("../../error");
|
|
13
|
-
const tools_1 = require("../../../common/tools");
|
|
14
|
-
const lib_1 = require("@feathersjs/hooks/lib");
|
|
15
|
-
const actionExecutionMW_1 = require("../../middleware/actionExecutionMW");
|
|
16
|
-
const messages_1 = require("../../messages");
|
|
17
|
-
const azureLibs_1 = require("./azureLibs");
|
|
18
|
-
const ErrorSource = "Functions";
|
|
19
|
-
let AzureFunctionResource = class AzureFunctionResource extends azureAppService_1.AzureAppService {
|
|
20
|
-
constructor() {
|
|
21
|
-
super(...arguments);
|
|
22
|
-
this.name = "azure-function";
|
|
23
|
-
this.alias = ErrorSource;
|
|
24
|
-
this.displayName = "Azure Functions";
|
|
25
|
-
this.bicepModuleName = "azureFunction";
|
|
26
|
-
this.outputs = constants_1.FunctionOutputs;
|
|
27
|
-
this.finalOutputKeys = ["resourceId", "endpoint"];
|
|
28
|
-
this.templateContext = {
|
|
29
|
-
identity: {
|
|
30
|
-
resourceId: constants_1.IdentityOutputs.identityResourceId.bicepVariable,
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
async configure(context, inputs) {
|
|
35
|
-
var e_1, _a;
|
|
36
|
-
var _b;
|
|
37
|
-
if (!this.needConfigure(context)) {
|
|
38
|
-
return teamsfx_api_1.ok(undefined);
|
|
39
|
-
}
|
|
40
|
-
context.logProvider.info(messages_1.LogMessages.updateFunctionAppSettings);
|
|
41
|
-
const resourceId = error_1.CheckThrowSomethingMissing(this.alias, "resourceId", (_b = context.envInfo.state[constants_1.ComponentNames.TeamsApi]) === null || _b === void 0 ? void 0 : _b[constants_1.FunctionOutputs.resourceId.key]);
|
|
42
|
-
const credentials = error_1.CheckThrowSomethingMissing(this.alias, "Azure account", await context.tokenProvider.azureAccountProvider.getIdentityCredentialAsync());
|
|
43
|
-
const resourceGroupName = tools_1.getResourceGroupNameFromResourceId(resourceId);
|
|
44
|
-
const functionAppName = tools_1.getSiteNameFromResourceId(resourceId);
|
|
45
|
-
const subscriptionId = tools_1.getSubscriptionIdFromResourceId(resourceId);
|
|
46
|
-
const client = azureLibs_1.AzureClientFactory.getWebSiteManagementClient(credentials, subscriptionId);
|
|
47
|
-
let site = undefined;
|
|
48
|
-
try {
|
|
49
|
-
for (var _c = tslib_1.__asyncValues(client.webApps.listByResourceGroup(resourceGroupName).byPage()), _d; _d = await _c.next(), !_d.done;) {
|
|
50
|
-
const page = _d.value;
|
|
51
|
-
for (const webApp of page) {
|
|
52
|
-
if (webApp.name === functionAppName) {
|
|
53
|
-
site = webApp;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
59
|
-
finally {
|
|
60
|
-
try {
|
|
61
|
-
if (_d && !_d.done && (_a = _c.return)) await _a.call(_c);
|
|
62
|
-
}
|
|
63
|
-
finally { if (e_1) throw e_1.error; }
|
|
64
|
-
}
|
|
65
|
-
if (!site) {
|
|
66
|
-
throw new error_1.FindFunctionAppError(this.alias);
|
|
67
|
-
}
|
|
68
|
-
const settings = await client.webApps.listApplicationSettings(resourceGroupName, functionAppName);
|
|
69
|
-
if (settings === null || settings === void 0 ? void 0 : settings.properties) {
|
|
70
|
-
Object.entries(settings.properties).forEach((kv) => {
|
|
71
|
-
this.pushAppSettings(site, kv[0], kv[1], false);
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
this.collectFunctionAppSettings(context, site);
|
|
75
|
-
await client.webApps.update(resourceGroupName, functionAppName, site);
|
|
76
|
-
return teamsfx_api_1.ok(undefined);
|
|
77
|
-
}
|
|
78
|
-
async deploy(context, inputs) {
|
|
79
|
-
let resourceIdKey = this.outputs.resourceId.key;
|
|
80
|
-
if (inputs.componentId === constants_1.ComponentNames.TeamsBot) {
|
|
81
|
-
const state = context.envInfo.state[inputs.componentId];
|
|
82
|
-
if (!state[resourceIdKey]) {
|
|
83
|
-
if (state["resourceId"]) {
|
|
84
|
-
resourceIdKey = "resourceId";
|
|
85
|
-
}
|
|
86
|
-
else if (state["botWebAppResourceId"]) {
|
|
87
|
-
resourceIdKey = "botWebAppResourceId";
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
return await super.deploy(context, inputs, true, resourceIdKey);
|
|
92
|
-
}
|
|
93
|
-
needConfigure(context) {
|
|
94
|
-
var _a;
|
|
95
|
-
const func = workflow_1.getComponentByScenario(context.projectSetting, constants_1.ComponentNames.Function, constants_1.Scenarios.Api);
|
|
96
|
-
return (context.envInfo.envName !== "local" && !!((_a = func === null || func === void 0 ? void 0 : func.connections) === null || _a === void 0 ? void 0 : _a.includes(constants_1.ComponentNames.APIM)));
|
|
97
|
-
}
|
|
98
|
-
collectFunctionAppSettings(ctx, site) {
|
|
99
|
-
const apimConfig = ctx.envInfo.state[constants_1.ComponentNames.APIM];
|
|
100
|
-
if (apimConfig) {
|
|
101
|
-
// Logger.info(InfoMessages.dependPluginDetected(ComponentNames.APIM));
|
|
102
|
-
const clientId = error_1.CheckThrowSomethingMissing(this.alias, "APIM app Id", apimConfig[constants_1.APIMOutputs.apimClientAADClientId.key]);
|
|
103
|
-
this.ensureFunctionAllowAppIds(site, [clientId]);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
ensureFunctionAllowAppIds(site, clientIds) {
|
|
107
|
-
var _a, _b;
|
|
108
|
-
if (!site.siteConfig) {
|
|
109
|
-
site.siteConfig = {};
|
|
110
|
-
}
|
|
111
|
-
const rawOldClientIds = (_b = (_a = site.siteConfig.appSettings) === null || _a === void 0 ? void 0 : _a.find((kv) => kv.name === constants_1.FunctionAppSetting.keys.allowedAppIds)) === null || _b === void 0 ? void 0 : _b.value;
|
|
112
|
-
const oldClientIds = rawOldClientIds
|
|
113
|
-
? rawOldClientIds.split(constants_1.FunctionAppSetting.allowedAppIdSep).filter((e) => e)
|
|
114
|
-
: [];
|
|
115
|
-
for (const id of oldClientIds) {
|
|
116
|
-
if (!clientIds.includes(id)) {
|
|
117
|
-
clientIds.push(id);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
this.pushAppSettings(site, constants_1.FunctionAppSetting.keys.allowedAppIds, clientIds.join(constants_1.FunctionAppSetting.allowedAppIdSep), true);
|
|
121
|
-
}
|
|
122
|
-
pushAppSettings(site, newName, newValue, replace = true) {
|
|
123
|
-
if (!site.siteConfig) {
|
|
124
|
-
site.siteConfig = {};
|
|
125
|
-
}
|
|
126
|
-
if (!site.siteConfig.appSettings) {
|
|
127
|
-
site.siteConfig.appSettings = [];
|
|
128
|
-
}
|
|
129
|
-
const kv = site.siteConfig.appSettings.find((kv) => kv.name === newName);
|
|
130
|
-
if (!kv) {
|
|
131
|
-
site.siteConfig.appSettings.push({
|
|
132
|
-
name: newName,
|
|
133
|
-
value: newValue,
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
else if (replace) {
|
|
137
|
-
kv.value = newValue;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
tslib_1.__decorate([
|
|
142
|
-
lib_1.hooks([
|
|
143
|
-
actionExecutionMW_1.ActionExecutionMW({
|
|
144
|
-
errorSource: ErrorSource,
|
|
145
|
-
}),
|
|
146
|
-
]),
|
|
147
|
-
tslib_1.__metadata("design:type", Function),
|
|
148
|
-
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
149
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
150
|
-
], AzureFunctionResource.prototype, "configure", null);
|
|
151
|
-
AzureFunctionResource = tslib_1.__decorate([
|
|
152
|
-
typedi_1.Service("azure-function")
|
|
153
|
-
], AzureFunctionResource);
|
|
154
|
-
exports.AzureFunctionResource = AzureFunctionResource;
|
|
155
|
-
//# sourceMappingURL=azureFunction.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"azureFunction.js","sourceRoot":"","sources":["../../../../src/component/resource/azureAppService/azureFunction.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACv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AI,CAAC,UAAU,CAAC,WAAW,EAAE;YAChC,IAAI,CAAC,UAAU,CAAC,WAAW,GAAG,EAAE,CAAC;SAClC;QAED,MAAM,EAAE,GAA8B,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CACpE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,KAAK,OAAO,CAC5B,CAAC;QACF,IAAI,CAAC,EAAE,EAAE;YACP,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC;gBAC/B,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,QAAQ;aAChB,CAAC,CAAC;SACJ;aAAM,IAAI,OAAO,EAAE;YAClB,EAAE,CAAC,KAAK,GAAG,QAAQ,CAAC;SACrB;IACH,CAAC;CACF,CAAA;AA5IC;IALC,WAAK,CAAC;QACL,qCAAiB,CAAC;YAChB,WAAW,EAAE,WAAW;SACzB,CAAC;KACH,CAAC;;;;sDAgDD;AAhEU,qBAAqB;IADjC,gBAAO,CAAC,gBAAgB,CAAC;GACb,qBAAqB,CA6JjC;AA7JY,sDAAqB"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { WebSiteManagementClient } from "@azure/arm-appservice";
|
|
2
|
-
import { TokenCredential } from "@azure/identity";
|
|
3
|
-
export declare class AzureClientFactory {
|
|
4
|
-
static getWebSiteManagementClient(credentials: TokenCredential, subscriptionId: string): WebSiteManagementClient;
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=azureLibs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"azureLibs.d.ts","sourceRoot":"","sources":["../../../../src/component/resource/azureAppService/azureLibs.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,qBAAa,kBAAkB;IAC7B,MAAM,CAAC,0BAA0B,CAC/B,WAAW,EAAE,eAAe,EAC5B,cAAc,EAAE,MAAM,GACrB,uBAAuB;CAG3B"}
|
|
@@ -1,13 +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.AzureClientFactory = void 0;
|
|
6
|
-
const arm_appservice_1 = require("@azure/arm-appservice");
|
|
7
|
-
class AzureClientFactory {
|
|
8
|
-
static getWebSiteManagementClient(credentials, subscriptionId) {
|
|
9
|
-
return new arm_appservice_1.WebSiteManagementClient(credentials, subscriptionId);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.AzureClientFactory = AzureClientFactory;
|
|
13
|
-
//# sourceMappingURL=azureLibs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"azureLibs.js","sourceRoot":"","sources":["../../../../src/component/resource/azureAppService/azureLibs.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,0DAAgE;AAGhE,MAAa,kBAAkB;IAC7B,MAAM,CAAC,0BAA0B,CAC/B,WAA4B,EAC5B,cAAsB;QAEtB,OAAO,IAAI,wCAAuB,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;IAClE,CAAC;CACF;AAPD,gDAOC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { FxError, InputsWithProjectPath, ResourceContextV3, Result } from "@microsoft/teamsfx-api";
|
|
2
|
-
import { AzureAppService } from "./azureAppService";
|
|
3
|
-
export declare class AzureWebAppResource extends AzureAppService {
|
|
4
|
-
readonly name = "azure-web-app";
|
|
5
|
-
readonly alias = "WebApp";
|
|
6
|
-
readonly displayName = "Azure Web App";
|
|
7
|
-
readonly bicepModuleName = "azureWebApp";
|
|
8
|
-
readonly outputs: {
|
|
9
|
-
resourceId: {
|
|
10
|
-
key: string;
|
|
11
|
-
bicepVariable: string;
|
|
12
|
-
};
|
|
13
|
-
endpoint: {
|
|
14
|
-
key: string;
|
|
15
|
-
bicepVariable: string;
|
|
16
|
-
};
|
|
17
|
-
endpointAsParam: {
|
|
18
|
-
key: string;
|
|
19
|
-
bicepVariable: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
readonly finalOutputKeys: string[];
|
|
23
|
-
templateContext: {
|
|
24
|
-
identity: {
|
|
25
|
-
resourceId: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
deploy(context: ResourceContextV3, inputs: InputsWithProjectPath): Promise<Result<undefined, FxError>>;
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=azureWebApp.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"azureWebApp.d.ts","sourceRoot":"","sources":["../../../../src/component/resource/azureAppService/azureWebApp.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAGnG,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,qBACa,mBAAoB,SAAQ,eAAe;IACtD,QAAQ,CAAC,IAAI,mBAAmB;IAChC,QAAQ,CAAC,KAAK,YAAY;IAC1B,QAAQ,CAAC,WAAW,mBAAmB;IACvC,QAAQ,CAAC,eAAe,iBAAiB;IACzC,QAAQ,CAAC,OAAO;;;;;;;;;;;;;MAAiB;IACjC,QAAQ,CAAC,eAAe,WAA8B;IACtD,eAAe;;;;MAIb;IAEI,MAAM,CACV,OAAO,EAAE,iBAAiB,EAC1B,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;CAavC"}
|
|
@@ -1,43 +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.AzureWebAppResource = void 0;
|
|
6
|
-
const tslib_1 = require("tslib");
|
|
7
|
-
const typedi_1 = require("typedi");
|
|
8
|
-
const constants_1 = require("../../constants");
|
|
9
|
-
const azureAppService_1 = require("./azureAppService");
|
|
10
|
-
let AzureWebAppResource = class AzureWebAppResource extends azureAppService_1.AzureAppService {
|
|
11
|
-
constructor() {
|
|
12
|
-
super(...arguments);
|
|
13
|
-
this.name = "azure-web-app";
|
|
14
|
-
this.alias = "WebApp";
|
|
15
|
-
this.displayName = "Azure Web App";
|
|
16
|
-
this.bicepModuleName = "azureWebApp";
|
|
17
|
-
this.outputs = constants_1.WebAppOutputs;
|
|
18
|
-
this.finalOutputKeys = ["resourceId", "endpoint"];
|
|
19
|
-
this.templateContext = {
|
|
20
|
-
identity: {
|
|
21
|
-
resourceId: constants_1.IdentityOutputs.identityResourceId.bicepVariable,
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
async deploy(context, inputs) {
|
|
26
|
-
let resourceIdKey = this.outputs.resourceId.key;
|
|
27
|
-
const state = context.envInfo.state[inputs.componentId];
|
|
28
|
-
if (!state[resourceIdKey]) {
|
|
29
|
-
if (state["botWebAppResourceId"]) {
|
|
30
|
-
resourceIdKey = "botWebAppResourceId";
|
|
31
|
-
}
|
|
32
|
-
if (state["webAppResourceId"]) {
|
|
33
|
-
resourceIdKey = "webAppResourceId";
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
return await super.deploy(context, inputs, false, resourceIdKey);
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
AzureWebAppResource = tslib_1.__decorate([
|
|
40
|
-
typedi_1.Service("azure-web-app")
|
|
41
|
-
], AzureWebAppResource);
|
|
42
|
-
exports.AzureWebAppResource = AzureWebAppResource;
|
|
43
|
-
//# sourceMappingURL=azureWebApp.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"azureWebApp.js","sourceRoot":"","sources":["../../../../src/component/resource/azureAppService/azureWebApp.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAGlC,mCAAiC;AACjC,+CAAiF;AACjF,uDAAoD;AAEpD,IAAa,mBAAmB,GAAhC,MAAa,mBAAoB,SAAQ,iCAAe;IAAxD;;QACW,SAAI,GAAG,eAAe,CAAC;QACvB,UAAK,GAAG,QAAQ,CAAC;QACjB,gBAAW,GAAG,eAAe,CAAC;QAC9B,oBAAe,GAAG,aAAa,CAAC;QAChC,YAAO,GAAG,yBAAa,CAAC;QACxB,oBAAe,GAAG,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;QACtD,oBAAe,GAAG;YAChB,QAAQ,EAAE;gBACR,UAAU,EAAE,2BAAe,CAAC,kBAAkB,CAAC,aAAa;aAC7D;SACF,CAAC;IAkBJ,CAAC;IAhBC,KAAK,CAAC,MAAM,CACV,OAA0B,EAC1B,MAA6B;QAE7B,IAAI,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC;QAChD,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QACxD,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE;YACzB,IAAI,KAAK,CAAC,qBAAqB,CAAC,EAAE;gBAChC,aAAa,GAAG,qBAAqB,CAAC;aACvC;YACD,IAAI,KAAK,CAAC,kBAAkB,CAAC,EAAE;gBAC7B,aAAa,GAAG,kBAAkB,CAAC;aACpC;SACF;QACD,OAAO,MAAM,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC;IACnE,CAAC;CACF,CAAA;AA7BY,mBAAmB;IAD/B,gBAAO,CAAC,eAAe,CAAC;GACZ,mBAAmB,CA6B/B;AA7BY,kDAAmB"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { Ignore } from "ignore";
|
|
3
|
-
/**
|
|
4
|
-
* Asynchronously zip a folder and return buffer
|
|
5
|
-
* @param sourceDir base dir
|
|
6
|
-
* @param notIncluded block list
|
|
7
|
-
* @param cache zip cache file location
|
|
8
|
-
*/
|
|
9
|
-
export declare function zipFolderAsync(sourceDir: string, cache: string, notIncluded?: Ignore): Promise<Buffer>;
|
|
10
|
-
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/component/resource/azureAppService/common.ts"],"names":[],"mappings":";AAIA,OAAe,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAMxC;;;;;GAKG;AACH,wBAAsB,cAAc,CAClC,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,MAAM,CAAC,CAyDjB"}
|
|
@@ -1,80 +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.zipFolderAsync = void 0;
|
|
6
|
-
const tslib_1 = require("tslib");
|
|
7
|
-
const adm_zip_1 = tslib_1.__importDefault(require("adm-zip"));
|
|
8
|
-
const ignore_1 = tslib_1.__importDefault(require("ignore"));
|
|
9
|
-
const fs = tslib_1.__importStar(require("fs-extra"));
|
|
10
|
-
const dir_walk_1 = require("./dir-walk");
|
|
11
|
-
const path_1 = tslib_1.__importDefault(require("path"));
|
|
12
|
-
const hostingConstant_1 = require("../../../common/azure-hosting/hostingConstant");
|
|
13
|
-
/**
|
|
14
|
-
* Asynchronously zip a folder and return buffer
|
|
15
|
-
* @param sourceDir base dir
|
|
16
|
-
* @param notIncluded block list
|
|
17
|
-
* @param cache zip cache file location
|
|
18
|
-
*/
|
|
19
|
-
async function zipFolderAsync(sourceDir, cache, notIncluded) {
|
|
20
|
-
const normalizeTime = (t) => Math.floor(t / hostingConstant_1.AzureOperationCommonConstants.zipTimeMSGranularity);
|
|
21
|
-
const tasks = [];
|
|
22
|
-
const zipFiles = new Set();
|
|
23
|
-
const ig = notIncluded !== null && notIncluded !== void 0 ? notIncluded : ignore_1.default();
|
|
24
|
-
const zip = (await readZipFromCache(cache)) || new adm_zip_1.default();
|
|
25
|
-
const addFileIntoZip = async (zp, filePath, zipPath, stats) => {
|
|
26
|
-
const content = await fs.readFile(filePath);
|
|
27
|
-
zp.addFile(zipPath, content);
|
|
28
|
-
if (stats) {
|
|
29
|
-
zp.getEntry(zipPath).header.time = stats.mtime;
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
await dir_walk_1.forEachFileAndDir(sourceDir, (itemPath, stats) => {
|
|
33
|
-
const relativePath = path_1.default.relative(sourceDir, itemPath);
|
|
34
|
-
if (relativePath && !stats.isDirectory() && ig.filter([relativePath]).length > 0) {
|
|
35
|
-
zipFiles.add(relativePath);
|
|
36
|
-
const entry = zip.getEntry(relativePath);
|
|
37
|
-
if (entry) {
|
|
38
|
-
// The header is an object, the ts declare of adm-zip is wrong.
|
|
39
|
-
const header = entry.header;
|
|
40
|
-
const mtime = header && header.time;
|
|
41
|
-
// Some files' mtime in node_modules are too old, which may be invalid,
|
|
42
|
-
// so we arbitrarily add a limitation to update this kind of files.
|
|
43
|
-
// If mtime is valid and the two mtime is same in two-seconds, we think the two are same file.
|
|
44
|
-
if (mtime >= hostingConstant_1.AzureOperationCommonConstants.latestTrustMtime &&
|
|
45
|
-
normalizeTime(mtime.getTime()) === normalizeTime(stats.mtime.getTime())) {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
// Delete the entry because the file has been updated.
|
|
49
|
-
zip.deleteFile(relativePath);
|
|
50
|
-
}
|
|
51
|
-
// If fail to reuse cached entry, load it from disk.
|
|
52
|
-
const fullPath = path_1.default.join(sourceDir, relativePath);
|
|
53
|
-
const task = addFileIntoZip(zip, fullPath, relativePath, stats);
|
|
54
|
-
tasks.push(task);
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
await Promise.all(tasks);
|
|
58
|
-
removeLegacyFileInZip(zip, zipFiles);
|
|
59
|
-
return zip.toBuffer();
|
|
60
|
-
}
|
|
61
|
-
exports.zipFolderAsync = zipFolderAsync;
|
|
62
|
-
async function readZipFromCache(cache) {
|
|
63
|
-
try {
|
|
64
|
-
const content = await fs.readFile(cache);
|
|
65
|
-
return new adm_zip_1.default(content);
|
|
66
|
-
}
|
|
67
|
-
catch (_a) {
|
|
68
|
-
// Failed to load cache, it doesn't block deployment.
|
|
69
|
-
}
|
|
70
|
-
return undefined;
|
|
71
|
-
}
|
|
72
|
-
function removeLegacyFileInZip(zip, existenceFiles) {
|
|
73
|
-
zip
|
|
74
|
-
.getEntries()
|
|
75
|
-
.filter((entry) => !existenceFiles.has(entry.name))
|
|
76
|
-
.forEach((entry) => {
|
|
77
|
-
zip.deleteFile(entry.name);
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
//# sourceMappingURL=common.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../src/component/resource/azureAppService/common.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,8DAA6B;AAC7B,4DAAwC;AACxC,qDAA+B;AAC/B,yCAA+C;AAC/C,wDAAwB;AACxB,mFAA8F;AAE9F;;;;;GAKG;AACI,KAAK,UAAU,cAAc,CAClC,SAAiB,EACjB,KAAa,EACb,WAAoB;IAEpB,MAAM,aAAa,GAAG,CAAC,CAAS,EAAE,EAAE,CAClC,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,+CAA6B,CAAC,oBAAoB,CAAC,CAAC;IAErE,MAAM,KAAK,GAAoB,EAAE,CAAC;IAClC,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAU,CAA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<reference types="node" />
|
|
2
|
-
import * as fs from "fs-extra";
|
|
3
|
-
export declare function forEachFileAndDir(root: string, callback: (itemPath: string, stats: fs.Stats) => boolean | void, filter?: (itemPath: string) => boolean): Promise<void>;
|
|
4
|
-
//# sourceMappingURL=dir-walk.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dir-walk.d.ts","sourceRoot":"","sources":["../../../../src/component/resource/azureAppService/dir-walk.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,MAAM,UAAU,CAAC;AAG/B,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,OAAO,GAAG,IAAI,EAC/D,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,GACrC,OAAO,CAAC,IAAI,CAAC,CAaf"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.forEachFileAndDir = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const klaw_1 = tslib_1.__importDefault(require("klaw"));
|
|
6
|
-
async function forEachFileAndDir(root, callback, filter) {
|
|
7
|
-
await new Promise((resolve, reject) => {
|
|
8
|
-
const stream = klaw_1.default(root, { filter: filter });
|
|
9
|
-
stream
|
|
10
|
-
.on("data", (item) => {
|
|
11
|
-
if (callback(item.path, item.stats)) {
|
|
12
|
-
stream.emit("close");
|
|
13
|
-
}
|
|
14
|
-
})
|
|
15
|
-
.on("end", () => resolve({}))
|
|
16
|
-
.on("error", (err) => reject(err))
|
|
17
|
-
.on("close", () => resolve({}));
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
exports.forEachFileAndDir = forEachFileAndDir;
|
|
21
|
-
//# sourceMappingURL=dir-walk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dir-walk.js","sourceRoot":"","sources":["../../../../src/component/resource/azureAppService/dir-walk.ts"],"names":[],"mappings":";;;;AAGA,wDAAwB;AAEjB,KAAK,UAAU,iBAAiB,CACrC,IAAY,EACZ,QAA+D,EAC/D,MAAsC;IAEtC,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACpC,MAAM,MAAM,GAAgB,cAAI,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;QAC3D,MAAM;aACH,EAAE,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;YACnB,IAAI,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE;gBACnC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;aACtB;QACH,CAAC,CAAC;aACD,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;aAC5B,EAAE,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;aACjC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;IACpC,CAAC,CAAC,CAAC;AACL,CAAC;AAjBD,8CAiBC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ContextV3, InputsWithProjectPath, Result, FxError, Effect } from "@microsoft/teamsfx-api";
|
|
2
|
-
export declare class ConfigureActionImplement {
|
|
3
|
-
static readonly source = "SQL";
|
|
4
|
-
static readonly stage = "post-provision";
|
|
5
|
-
static readonly telemetryComponentName = "fx-resource-azure-sql";
|
|
6
|
-
static readonly progressTitle = "Configuring SQL";
|
|
7
|
-
static readonly progressMessage: {
|
|
8
|
-
addAadmin: string;
|
|
9
|
-
addUser: string;
|
|
10
|
-
};
|
|
11
|
-
static readonly loggerPrefix = "[SQL Component]";
|
|
12
|
-
static readonly logFormatter: (message: string) => string;
|
|
13
|
-
static execute(context: ContextV3, inputs: InputsWithProjectPath): Promise<Result<Effect[], FxError>>;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=configure.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"configure.d.ts","sourceRoot":"","sources":["../../../../../src/component/resource/azureSql/actions/configure.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,SAAS,EACT,qBAAqB,EAIrB,MAAM,EACN,OAAO,EACP,MAAM,EACP,MAAM,wBAAwB,CAAC;AAehC,qBAAa,wBAAwB;IACnC,MAAM,CAAC,QAAQ,CAAC,MAAM,SAAS;IAC/B,MAAM,CAAC,QAAQ,CAAC,KAAK,oBAAoB;IACzC,MAAM,CAAC,QAAQ,CAAC,sBAAsB,2BAA2B;IACjE,MAAM,CAAC,QAAQ,CAAC,aAAa,qBAAqB;IAClD,MAAM,CAAC,QAAQ,CAAC,eAAe;;;MAG7B;IACF,MAAM,CAAC,QAAQ,CAAC,YAAY,qBAAqB;IACjD,MAAM,CAAC,QAAQ,CAAC,YAAY,YAAa,MAAM,YACS;WAiB3C,OAAO,CAClB,OAAO,EAAE,SAAS,EAClB,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;CAuEtC"}
|