@microsoft/teamsfx-core 1.17.0-rc.2 → 1.17.1-alpha.28543dcd0.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/constants.d.ts +2 -1
- package/build/common/constants.d.ts.map +1 -1
- package/build/common/constants.js +2 -1
- package/build/common/constants.js.map +1 -1
- package/build/common/deps-checker/constant/helpLink.d.ts +1 -0
- package/build/common/deps-checker/constant/helpLink.d.ts.map +1 -1
- package/build/common/deps-checker/constant/helpLink.js +2 -1
- package/build/common/deps-checker/constant/helpLink.js.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.js +5 -4
- package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
- package/build/common/local/constants.d.ts +2 -0
- package/build/common/local/constants.d.ts.map +1 -1
- package/build/common/local/constants.js +2 -0
- package/build/common/local/constants.js.map +1 -1
- package/build/common/local/localCertificateManager.d.ts.map +1 -1
- package/build/common/local/localCertificateManager.js +5 -8
- package/build/common/local/localCertificateManager.js.map +1 -1
- package/build/common/local/localEnvManager.d.ts.map +1 -1
- package/build/common/local/localEnvManager.js +2 -2
- package/build/common/local/localEnvManager.js.map +1 -1
- package/build/common/permissionInterface.d.ts +4 -0
- package/build/common/permissionInterface.d.ts.map +1 -1
- package/build/common/projectSettingsHelper.d.ts.map +1 -1
- package/build/common/projectSettingsHelper.js +28 -15
- package/build/common/projectSettingsHelper.js.map +1 -1
- package/build/common/samples-config.json +8 -6
- package/build/common/samples.d.ts +1 -0
- package/build/common/samples.d.ts.map +1 -1
- package/build/common/samples.js +1 -0
- package/build/common/samples.js.map +1 -1
- package/build/common/telemetry.d.ts +5 -0
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +5 -0
- package/build/common/telemetry.js.map +1 -1
- package/build/common/templates-config.json +2 -2
- package/build/common/tools.d.ts +7 -0
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +62 -41
- package/build/common/tools.js.map +1 -1
- package/build/{plugins/solution/fx-solution → component}/arm.d.ts +8 -33
- package/build/component/arm.d.ts.map +1 -0
- package/build/component/arm.js +641 -0
- package/build/component/arm.js.map +1 -0
- package/build/component/bicep.js +1 -1
- package/build/component/bicep.js.map +1 -1
- package/build/component/code/api/apiCode.js.map +1 -1
- package/build/component/code/appSettingUtils.js +1 -1
- package/build/component/code/appSettingUtils.js.map +1 -1
- package/build/component/code/botCode.js.map +1 -1
- package/build/component/code/spfxTabCode.js +1 -1
- package/build/component/code/spfxTabCode.js.map +1 -1
- package/build/component/code/tab/tabCode.d.ts.map +1 -1
- package/build/component/code/tab/tabCode.js +3 -4
- package/build/component/code/tab/tabCode.js.map +1 -1
- package/build/component/configManager/error.d.ts +12 -0
- package/build/component/configManager/error.d.ts.map +1 -0
- package/build/component/configManager/error.js +52 -0
- package/build/component/configManager/error.js.map +1 -0
- package/build/component/configManager/interface.d.ts +78 -0
- package/build/component/configManager/interface.d.ts.map +1 -0
- package/build/component/configManager/interface.js +11 -0
- package/build/component/configManager/interface.js.map +1 -0
- package/build/component/configManager/lifecycle.d.ts +14 -0
- package/build/component/configManager/lifecycle.d.ts.map +1 -0
- package/build/component/configManager/lifecycle.js +155 -0
- package/build/component/configManager/lifecycle.js.map +1 -0
- package/build/component/configManager/parser.d.ts +7 -0
- package/build/component/configManager/parser.d.ts.map +1 -0
- package/build/component/configManager/parser.js +68 -0
- package/build/component/configManager/parser.js.map +1 -0
- package/build/component/constant/commonConstant.d.ts +4 -0
- package/build/component/constant/commonConstant.d.ts.map +1 -1
- package/build/component/constant/commonConstant.js +8 -1
- package/build/component/constant/commonConstant.js.map +1 -1
- package/build/component/constant/deployConstant.d.ts +2 -0
- package/build/component/constant/deployConstant.d.ts.map +1 -1
- package/build/component/constant/deployConstant.js +4 -0
- package/build/component/constant/deployConstant.js.map +1 -1
- package/build/component/constants.d.ts +345 -0
- package/build/component/constants.d.ts.map +1 -1
- package/build/component/constants.js +643 -2
- package/build/component/constants.js.map +1 -1
- package/build/component/coordinator/index.d.ts +24 -5
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +274 -35
- package/build/component/coordinator/index.js.map +1 -1
- package/build/component/core.d.ts +7 -0
- package/build/component/core.d.ts.map +1 -1
- package/build/component/core.js +71 -58
- package/build/component/core.js.map +1 -1
- package/build/{plugins/solution/fx-solution → component}/debug/constants.d.ts +0 -0
- package/build/component/debug/constants.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/debug/constants.js +0 -0
- package/build/component/debug/constants.js.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/debug/error.d.ts +0 -0
- package/build/component/debug/error.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/debug/error.js +1 -1
- package/build/component/debug/error.js.map +1 -0
- package/build/component/{debug.d.ts → debug/index.d.ts} +6 -1
- package/build/component/debug/index.d.ts.map +1 -0
- package/build/component/{debug.js → debug/index.js} +116 -39
- package/build/component/debug/index.js.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/debug/util/codespace.d.ts +0 -0
- package/build/component/debug/util/codespace.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/debug/util/codespace.js +0 -0
- package/build/component/debug/util/codespace.js.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/debug/util/launch.d.ts +0 -0
- package/build/component/debug/util/launch.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/debug/util/launch.js +0 -0
- package/build/component/debug/util/launch.js.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/debug/util/launchNext.d.ts +0 -0
- package/build/component/debug/util/launchNext.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/debug/util/launchNext.js +0 -0
- package/build/component/debug/util/launchNext.js.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/debug/util/launchTransparency.d.ts +0 -0
- package/build/component/debug/util/launchTransparency.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/debug/util/launchTransparency.js +1 -1
- package/build/component/debug/util/launchTransparency.js.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/debug/util/localService.d.ts +0 -0
- package/build/component/debug/util/localService.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/debug/util/localService.js +0 -0
- package/build/component/debug/util/localService.js.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/debug/util/ngrok.d.ts +0 -0
- package/build/component/debug/util/ngrok.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/debug/util/ngrok.js +0 -0
- package/build/component/debug/util/ngrok.js.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/debug/util/settings.d.ts +0 -0
- package/build/component/debug/util/settings.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/debug/util/settings.js +1 -1
- package/build/component/debug/util/settings.js.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/debug/util/tasks.d.ts +0 -0
- package/build/component/debug/util/tasks.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/debug/util/tasks.js +1 -1
- package/build/component/debug/util/tasks.js.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/debug/util/tasksNext.d.ts +0 -0
- package/build/component/debug/util/tasksNext.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/debug/util/tasksNext.js +1 -1
- package/build/component/debug/util/tasksNext.js.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/debug/util/tasksTransparency.d.ts +0 -0
- package/build/component/debug/util/tasksTransparency.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/debug/util/tasksTransparency.js +2 -2
- package/build/component/debug/util/tasksTransparency.js.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/debug/util/telemetry.d.ts +0 -0
- package/build/component/debug/util/telemetry.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/debug/util/telemetry.js +0 -0
- package/build/component/debug/util/telemetry.js.map +1 -0
- package/build/component/debugHandler/appManifest.d.ts.map +1 -1
- package/build/component/debugHandler/appManifest.js +8 -0
- package/build/component/debugHandler/appManifest.js.map +1 -1
- package/build/component/debugHandler/bot.d.ts +1 -0
- package/build/component/debugHandler/bot.d.ts.map +1 -1
- package/build/component/debugHandler/bot.js +9 -8
- package/build/component/debugHandler/bot.js.map +1 -1
- package/build/component/debugHandler/localEnvProvider.d.ts.map +1 -1
- package/build/component/debugHandler/localEnvProvider.js +7 -7
- package/build/component/debugHandler/localEnvProvider.js.map +1 -1
- package/build/component/debugHandler/sso.d.ts.map +1 -1
- package/build/component/debugHandler/sso.js +3 -1
- package/build/component/debugHandler/sso.js.map +1 -1
- package/build/component/debugHandler/utils.js +3 -3
- package/build/component/debugHandler/utils.js.map +1 -1
- package/build/component/deployUtils.d.ts.map +1 -1
- package/build/component/deployUtils.js +6 -11
- package/build/component/deployUtils.js.map +1 -1
- package/build/component/driver/aad/create.d.ts +5 -3
- package/build/component/driver/aad/create.d.ts.map +1 -1
- package/build/component/driver/aad/create.js +43 -8
- package/build/component/driver/aad/create.js.map +1 -1
- package/build/component/driver/aad/error/invalidFieldInManifestError.d.ts +5 -0
- package/build/component/driver/aad/error/invalidFieldInManifestError.d.ts.map +1 -0
- package/build/component/driver/aad/error/invalidFieldInManifestError.js +29 -0
- package/build/component/driver/aad/error/invalidFieldInManifestError.js.map +1 -0
- package/build/component/driver/aad/interface/updateAadAppArgs.d.ts +5 -0
- package/build/component/driver/aad/interface/updateAadAppArgs.d.ts.map +1 -0
- package/build/component/driver/aad/interface/updateAadAppArgs.js +5 -0
- package/build/component/driver/aad/interface/updateAadAppArgs.js.map +1 -0
- package/build/component/driver/aad/interface/updateAadAppOutput.d.ts +4 -0
- package/build/component/driver/aad/interface/updateAadAppOutput.d.ts.map +1 -0
- package/build/component/driver/aad/interface/updateAadAppOutput.js +5 -0
- package/build/component/driver/aad/interface/updateAadAppOutput.js.map +1 -0
- package/build/component/driver/aad/update.d.ts +12 -0
- package/build/component/driver/aad/update.d.ts.map +1 -0
- package/build/component/driver/aad/update.js +146 -0
- package/build/component/driver/aad/update.js.map +1 -0
- package/build/component/driver/aad/utility/aadAppClient.d.ts +2 -0
- package/build/component/driver/aad/utility/aadAppClient.d.ts.map +1 -1
- package/build/component/driver/aad/utility/aadAppClient.js +7 -0
- package/build/component/driver/aad/utility/aadAppClient.js.map +1 -1
- package/build/component/driver/aad/utility/constants.d.ts +13 -0
- package/build/component/driver/aad/utility/constants.d.ts.map +1 -0
- package/build/component/driver/aad/utility/constants.js +18 -0
- package/build/component/driver/aad/utility/constants.js.map +1 -0
- package/build/component/driver/arm/constant.d.ts +12 -0
- package/build/component/driver/arm/constant.d.ts.map +1 -0
- package/build/component/driver/arm/constant.js +18 -0
- package/build/component/driver/arm/constant.js.map +1 -0
- package/build/component/driver/arm/deploy.d.ts +8 -0
- package/build/component/driver/arm/deploy.d.ts.map +1 -0
- package/build/component/driver/arm/deploy.js +22 -0
- package/build/component/driver/arm/deploy.js.map +1 -0
- package/build/component/driver/arm/deployImpl.d.ts +23 -0
- package/build/component/driver/arm/deployImpl.d.ts.map +1 -0
- package/build/component/driver/arm/deployImpl.js +160 -0
- package/build/component/driver/arm/deployImpl.js.map +1 -0
- package/build/component/driver/arm/interface.d.ts +13 -0
- package/build/component/driver/arm/interface.d.ts.map +1 -0
- package/build/component/driver/arm/interface.js +5 -0
- package/build/component/driver/arm/interface.js.map +1 -0
- package/build/component/driver/arm/util/util.d.ts +5 -0
- package/build/component/driver/arm/util/util.d.ts.map +1 -0
- package/build/component/driver/arm/util/util.js +71 -0
- package/build/component/driver/arm/util/util.js.map +1 -0
- package/build/component/driver/arm/validator.d.ts +3 -0
- package/build/component/driver/arm/validator.d.ts.map +1 -0
- package/build/component/driver/arm/validator.js +64 -0
- package/build/component/driver/arm/validator.js.map +1 -0
- package/build/component/driver/botAadApp/create.d.ts +11 -0
- package/build/component/driver/botAadApp/create.d.ts.map +1 -0
- package/build/component/driver/botAadApp/create.js +97 -0
- package/build/component/driver/botAadApp/create.js.map +1 -0
- package/build/component/driver/botAadApp/error/invalidParameterUserError.d.ts +5 -0
- package/build/component/driver/botAadApp/error/invalidParameterUserError.d.ts.map +1 -0
- package/build/component/driver/botAadApp/error/invalidParameterUserError.js +29 -0
- package/build/component/driver/botAadApp/error/invalidParameterUserError.js.map +1 -0
- package/build/component/driver/botAadApp/error/unhandledError.d.ts +8 -0
- package/build/component/driver/botAadApp/error/unhandledError.d.ts.map +1 -0
- package/build/component/driver/botAadApp/error/unhandledError.js +33 -0
- package/build/component/driver/botAadApp/error/unhandledError.js.map +1 -0
- package/build/component/driver/botAadApp/interface/createBotAadAppArgs.d.ts +4 -0
- package/build/component/driver/botAadApp/interface/createBotAadAppArgs.d.ts.map +1 -0
- package/build/component/driver/botAadApp/interface/createBotAadAppArgs.js +5 -0
- package/build/component/driver/botAadApp/interface/createBotAadAppArgs.js.map +1 -0
- package/build/component/driver/botAadApp/interface/createBotAadAppOutput.d.ts +5 -0
- package/build/component/driver/botAadApp/interface/createBotAadAppOutput.d.ts.map +1 -0
- package/build/component/driver/botAadApp/interface/createBotAadAppOutput.js +5 -0
- package/build/component/driver/botAadApp/interface/createBotAadAppOutput.js.map +1 -0
- package/build/component/driver/botAadApp/utility/constants.d.ts +6 -0
- package/build/component/driver/botAadApp/utility/constants.d.ts.map +1 -0
- package/build/component/driver/botAadApp/utility/constants.js +11 -0
- package/build/component/driver/botAadApp/utility/constants.js.map +1 -0
- package/build/component/driver/deploy/azure/azureAppServiceDeployDriver.d.ts +16 -0
- package/build/component/driver/deploy/azure/azureAppServiceDeployDriver.d.ts.map +1 -0
- package/build/component/driver/deploy/azure/azureAppServiceDeployDriver.js +46 -0
- package/build/component/driver/deploy/azure/azureAppServiceDeployDriver.js.map +1 -0
- package/build/component/{deploy → driver/deploy/azure}/azureDeployDriver.d.ts +2 -2
- package/build/component/driver/deploy/azure/azureDeployDriver.d.ts.map +1 -0
- package/build/component/{deploy → driver/deploy/azure}/azureDeployDriver.js +26 -11
- package/build/component/driver/deploy/azure/azureDeployDriver.js.map +1 -0
- package/build/component/{deploy → driver/deploy/azure}/azureFunctionDeployDriver.d.ts +7 -4
- package/build/component/driver/deploy/azure/azureFunctionDeployDriver.d.ts.map +1 -0
- package/build/component/{deploy → driver/deploy/azure}/azureFunctionDeployDriver.js +23 -4
- package/build/component/driver/deploy/azure/azureFunctionDeployDriver.js.map +1 -0
- package/build/component/{deploy → driver/deploy/azure}/azureStorageDeployDriver.d.ts +5 -4
- package/build/component/driver/deploy/azure/azureStorageDeployDriver.d.ts.map +1 -0
- package/build/component/{deploy → driver/deploy/azure}/azureStorageDeployDriver.js +19 -8
- package/build/component/driver/deploy/azure/azureStorageDeployDriver.js.map +1 -0
- package/build/component/{provision → driver/deploy/azure}/azureStorageStaticWebsiteConfigDriver.d.ts +6 -4
- package/build/component/driver/deploy/azure/azureStorageStaticWebsiteConfigDriver.d.ts.map +1 -0
- package/build/component/{provision → driver/deploy/azure}/azureStorageStaticWebsiteConfigDriver.js +23 -8
- package/build/component/driver/deploy/azure/azureStorageStaticWebsiteConfigDriver.js.map +1 -0
- package/build/component/{deploy → driver/deploy/azure}/baseDeployDriver.d.ts +3 -3
- package/build/component/driver/deploy/azure/baseDeployDriver.d.ts.map +1 -0
- package/build/component/{deploy → driver/deploy/azure}/baseDeployDriver.js +19 -12
- package/build/component/driver/deploy/azure/baseDeployDriver.js.map +1 -0
- package/build/component/driver/deploy/spfx/deployDriver.d.ts +14 -0
- package/build/component/driver/deploy/spfx/deployDriver.d.ts.map +1 -0
- package/build/component/driver/deploy/spfx/deployDriver.js +181 -0
- package/build/component/driver/deploy/spfx/deployDriver.js.map +1 -0
- package/build/component/driver/deploy/spfx/error/createAppCatalogFailedError.d.ts +5 -0
- package/build/component/driver/deploy/spfx/error/createAppCatalogFailedError.d.ts.map +1 -0
- package/build/component/driver/deploy/spfx/error/createAppCatalogFailedError.js +22 -0
- package/build/component/driver/deploy/spfx/error/createAppCatalogFailedError.js.map +1 -0
- package/build/component/driver/deploy/spfx/error/getGraphTokenFailedError.d.ts +5 -0
- package/build/component/driver/deploy/spfx/error/getGraphTokenFailedError.d.ts.map +1 -0
- package/build/component/driver/deploy/spfx/error/getGraphTokenFailedError.js +22 -0
- package/build/component/driver/deploy/spfx/error/getGraphTokenFailedError.js.map +1 -0
- package/build/component/driver/deploy/spfx/error/getSPOTokenFailedError.d.ts +5 -0
- package/build/component/driver/deploy/spfx/error/getSPOTokenFailedError.d.ts.map +1 -0
- package/build/component/driver/deploy/spfx/error/getSPOTokenFailedError.js +22 -0
- package/build/component/driver/deploy/spfx/error/getSPOTokenFailedError.js.map +1 -0
- package/build/component/driver/deploy/spfx/error/getTenantFailedError.d.ts +5 -0
- package/build/component/driver/deploy/spfx/error/getTenantFailedError.d.ts.map +1 -0
- package/build/component/driver/deploy/spfx/error/getTenantFailedError.js +25 -0
- package/build/component/driver/deploy/spfx/error/getTenantFailedError.js.map +1 -0
- package/build/component/driver/deploy/spfx/error/insufficientPermissionError.d.ts +5 -0
- package/build/component/driver/deploy/spfx/error/insufficientPermissionError.d.ts.map +1 -0
- package/build/component/driver/deploy/spfx/error/insufficientPermissionError.js +22 -0
- package/build/component/driver/deploy/spfx/error/insufficientPermissionError.js.map +1 -0
- package/build/component/driver/deploy/spfx/error/noSPPackageError.d.ts +5 -0
- package/build/component/driver/deploy/spfx/error/noSPPackageError.d.ts.map +1 -0
- package/build/component/driver/deploy/spfx/error/noSPPackageError.js +22 -0
- package/build/component/driver/deploy/spfx/error/noSPPackageError.js.map +1 -0
- package/build/component/driver/deploy/spfx/error/noValidAppCatelogError.d.ts +5 -0
- package/build/component/driver/deploy/spfx/error/noValidAppCatelogError.d.ts.map +1 -0
- package/build/component/driver/deploy/spfx/error/noValidAppCatelogError.js +22 -0
- package/build/component/driver/deploy/spfx/error/noValidAppCatelogError.js.map +1 -0
- package/build/component/driver/deploy/spfx/error/uploadAppPackageFailedError.d.ts +5 -0
- package/build/component/driver/deploy/spfx/error/uploadAppPackageFailedError.d.ts.map +1 -0
- package/build/component/driver/deploy/spfx/error/uploadAppPackageFailedError.js +22 -0
- package/build/component/driver/deploy/spfx/error/uploadAppPackageFailedError.js.map +1 -0
- package/build/component/driver/deploy/spfx/interface/deployArgs.d.ts +13 -0
- package/build/component/driver/deploy/spfx/interface/deployArgs.d.ts.map +1 -0
- package/build/component/driver/deploy/spfx/interface/deployArgs.js +5 -0
- package/build/component/driver/deploy/spfx/interface/deployArgs.js.map +1 -0
- package/build/component/driver/deploy/spfx/utility/constants.d.ts +14 -0
- package/build/component/driver/deploy/spfx/utility/constants.d.ts.map +1 -0
- package/build/component/driver/deploy/spfx/utility/constants.js +22 -0
- package/build/component/driver/deploy/spfx/utility/constants.js.map +1 -0
- package/build/component/driver/deploy/spfx/utility/sleep.d.ts +2 -0
- package/build/component/driver/deploy/spfx/utility/sleep.d.ts.map +1 -0
- package/build/component/driver/deploy/spfx/utility/sleep.js +10 -0
- package/build/component/driver/deploy/spfx/utility/sleep.js.map +1 -0
- package/build/component/driver/deploy/spfx/utility/spoClient.d.ts +25 -0
- package/build/component/driver/deploy/spfx/utility/spoClient.d.ts.map +1 -0
- package/build/component/driver/deploy/spfx/utility/spoClient.js +79 -0
- package/build/component/driver/deploy/spfx/utility/spoClient.js.map +1 -0
- package/build/component/driver/env/error/invalidParameterUserError.d.ts +5 -0
- package/build/component/driver/env/error/invalidParameterUserError.d.ts.map +1 -0
- package/build/component/driver/env/error/invalidParameterUserError.js +29 -0
- package/build/component/driver/env/error/invalidParameterUserError.js.map +1 -0
- package/build/component/driver/env/error/unhandledError.d.ts +5 -0
- package/build/component/driver/env/error/unhandledError.d.ts.map +1 -0
- package/build/component/driver/env/error/unhandledError.js +25 -0
- package/build/component/driver/env/error/unhandledError.js.map +1 -0
- package/build/component/driver/env/generate.d.ts +10 -0
- package/build/component/driver/env/generate.d.ts.map +1 -0
- package/build/component/driver/env/generate.js +81 -0
- package/build/component/driver/env/generate.js.map +1 -0
- package/build/component/driver/env/interface/generateEnvArgs.d.ts +8 -0
- package/build/component/driver/env/interface/generateEnvArgs.d.ts.map +1 -0
- package/build/component/driver/env/interface/generateEnvArgs.js +5 -0
- package/build/component/driver/env/interface/generateEnvArgs.js.map +1 -0
- package/build/component/driver/interface/baseDeployStepDriver.d.ts +18 -0
- package/build/component/driver/interface/baseDeployStepDriver.d.ts.map +1 -0
- package/build/component/driver/interface/baseDeployStepDriver.js +31 -0
- package/build/component/driver/interface/baseDeployStepDriver.js.map +1 -0
- package/build/component/{interface → driver/interface}/buildAndDeployArgs.d.ts +6 -6
- package/build/component/driver/interface/buildAndDeployArgs.d.ts.map +1 -0
- package/build/component/{interface → driver/interface}/buildAndDeployArgs.js +0 -0
- package/build/component/driver/interface/buildAndDeployArgs.js.map +1 -0
- package/build/component/{interface → driver/interface}/commonArgs.d.ts +5 -3
- package/build/component/driver/interface/commonArgs.d.ts.map +1 -0
- package/build/component/{interface → driver/interface}/commonArgs.js +0 -0
- package/build/component/driver/interface/commonArgs.js.map +1 -0
- package/build/component/{interface → driver/interface}/provisionArgs.d.ts +2 -2
- package/build/component/driver/interface/provisionArgs.d.ts.map +1 -0
- package/build/component/{interface → driver/interface}/provisionArgs.js +0 -0
- package/build/component/driver/interface/provisionArgs.js.map +1 -0
- package/build/component/{interface → driver/interface}/stepDriver.d.ts +2 -1
- package/build/component/driver/interface/stepDriver.d.ts.map +1 -0
- package/build/component/{interface → driver/interface}/stepDriver.js +0 -0
- package/build/component/driver/interface/stepDriver.js.map +1 -0
- package/build/component/driver/middleware/addStartAndEndTelemetry.d.ts +3 -0
- package/build/component/driver/middleware/addStartAndEndTelemetry.d.ts.map +1 -0
- package/build/component/driver/middleware/addStartAndEndTelemetry.js +29 -0
- package/build/component/driver/middleware/addStartAndEndTelemetry.js.map +1 -0
- package/build/component/driver/script/baseBuildDriver.d.ts +24 -0
- package/build/component/driver/script/baseBuildDriver.d.ts.map +1 -0
- package/build/component/driver/script/baseBuildDriver.js +59 -0
- package/build/component/driver/script/baseBuildDriver.js.map +1 -0
- package/build/component/{deploy → driver/script}/dotnetBuildDriver.d.ts +4 -1
- package/build/component/driver/script/dotnetBuildDriver.d.ts.map +1 -0
- package/build/component/driver/script/dotnetBuildDriver.js +39 -0
- package/build/component/driver/script/dotnetBuildDriver.js.map +1 -0
- package/build/component/{deploy → driver/script}/npmBuildDriver.d.ts +2 -1
- package/build/component/driver/script/npmBuildDriver.d.ts.map +1 -0
- package/build/component/driver/script/npmBuildDriver.js +37 -0
- package/build/component/driver/script/npmBuildDriver.js.map +1 -0
- package/build/component/driver/script/npxBuildDriver.d.ts +11 -0
- package/build/component/driver/script/npxBuildDriver.d.ts.map +1 -0
- package/build/component/driver/script/npxBuildDriver.js +27 -0
- package/build/component/driver/script/npxBuildDriver.js.map +1 -0
- package/build/component/driver/teamsApp/configure.d.ts +8 -0
- package/build/component/driver/teamsApp/configure.d.ts.map +1 -0
- package/build/component/driver/teamsApp/configure.js +65 -0
- package/build/component/driver/teamsApp/configure.js.map +1 -0
- package/build/component/driver/teamsApp/copyAppPackageForSPFx.d.ts +18 -0
- package/build/component/driver/teamsApp/copyAppPackageForSPFx.d.ts.map +1 -0
- package/build/component/driver/teamsApp/copyAppPackageForSPFx.js +75 -0
- package/build/component/driver/teamsApp/copyAppPackageForSPFx.js.map +1 -0
- package/build/component/driver/teamsApp/create.d.ts +9 -0
- package/build/component/driver/teamsApp/create.d.ts.map +1 -0
- package/build/component/driver/teamsApp/create.js +118 -0
- package/build/component/driver/teamsApp/create.js.map +1 -0
- package/build/component/driver/teamsApp/createAppPackage.d.ts +9 -0
- package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -0
- package/build/component/driver/teamsApp/createAppPackage.js +120 -0
- package/build/component/driver/teamsApp/createAppPackage.js.map +1 -0
- package/build/component/driver/teamsApp/interfaces/ConfigureTeamsAppArgs.d.ts +7 -0
- package/build/component/driver/teamsApp/interfaces/ConfigureTeamsAppArgs.d.ts.map +1 -0
- package/build/component/driver/teamsApp/interfaces/ConfigureTeamsAppArgs.js +5 -0
- package/build/component/driver/teamsApp/interfaces/ConfigureTeamsAppArgs.js.map +1 -0
- package/build/component/driver/teamsApp/interfaces/CopyAppPackageForSPFxArgs.d.ts +11 -0
- package/build/component/driver/teamsApp/interfaces/CopyAppPackageForSPFxArgs.d.ts.map +1 -0
- package/build/component/driver/teamsApp/interfaces/CopyAppPackageForSPFxArgs.js +5 -0
- package/build/component/driver/teamsApp/interfaces/CopyAppPackageForSPFxArgs.js.map +1 -0
- package/build/component/driver/teamsApp/interfaces/CreateAppPackageArgs.d.ts +15 -0
- package/build/component/driver/teamsApp/interfaces/CreateAppPackageArgs.d.ts.map +1 -0
- package/build/component/driver/teamsApp/interfaces/CreateAppPackageArgs.js +5 -0
- package/build/component/driver/teamsApp/interfaces/CreateAppPackageArgs.js.map +1 -0
- package/build/component/driver/teamsApp/interfaces/CreateTeamsAppArgs.d.ts +7 -0
- package/build/component/driver/teamsApp/interfaces/CreateTeamsAppArgs.d.ts.map +1 -0
- package/build/component/driver/teamsApp/interfaces/CreateTeamsAppArgs.js +5 -0
- package/build/component/driver/teamsApp/interfaces/CreateTeamsAppArgs.js.map +1 -0
- package/build/component/driver/teamsApp/interfaces/PublishAppPackageArgs.d.ts +7 -0
- package/build/component/driver/teamsApp/interfaces/PublishAppPackageArgs.d.ts.map +1 -0
- package/build/component/driver/teamsApp/interfaces/PublishAppPackageArgs.js +5 -0
- package/build/component/driver/teamsApp/interfaces/PublishAppPackageArgs.js.map +1 -0
- package/build/component/driver/teamsApp/interfaces/ValidateTeamsAppArgs.d.ts +7 -0
- package/build/component/driver/teamsApp/interfaces/ValidateTeamsAppArgs.d.ts.map +1 -0
- package/build/component/driver/teamsApp/interfaces/ValidateTeamsAppArgs.js +5 -0
- package/build/component/driver/teamsApp/interfaces/ValidateTeamsAppArgs.js.map +1 -0
- package/build/component/driver/teamsApp/publishAppPackage.d.ts +8 -0
- package/build/component/driver/teamsApp/publishAppPackage.d.ts.map +1 -0
- package/build/component/driver/teamsApp/publishAppPackage.js +106 -0
- package/build/component/driver/teamsApp/publishAppPackage.js.map +1 -0
- package/build/component/driver/teamsApp/validate.d.ts +9 -0
- package/build/component/driver/teamsApp/validate.d.ts.map +1 -0
- package/build/component/driver/teamsApp/validate.js +76 -0
- package/build/component/driver/teamsApp/validate.js.map +1 -0
- package/build/component/driver/tools/error/invalidParameterUserError.d.ts +5 -0
- package/build/component/driver/tools/error/invalidParameterUserError.d.ts.map +1 -0
- package/build/component/driver/tools/error/invalidParameterUserError.js +29 -0
- package/build/component/driver/tools/error/invalidParameterUserError.js.map +1 -0
- package/build/component/driver/tools/installDriver.d.ts +17 -0
- package/build/component/driver/tools/installDriver.d.ts.map +1 -0
- package/build/component/driver/tools/installDriver.js +81 -0
- package/build/component/driver/tools/installDriver.js.map +1 -0
- package/build/component/driver/tools/interfaces/InstallToolArgs.d.ts +18 -0
- package/build/component/driver/tools/interfaces/InstallToolArgs.d.ts.map +1 -0
- package/build/component/driver/tools/interfaces/InstallToolArgs.js +5 -0
- package/build/component/driver/tools/interfaces/InstallToolArgs.js.map +1 -0
- package/build/component/driver/util/wrapUtil.d.ts +23 -0
- package/build/component/driver/util/wrapUtil.d.ts.map +1 -0
- package/build/component/driver/util/wrapUtil.js +93 -0
- package/build/component/driver/util/wrapUtil.js.map +1 -0
- package/build/component/feature/api/api.js +32 -32
- package/build/component/feature/api/api.js.map +1 -1
- package/build/component/feature/apiconnector/apiConnector.js +1 -1
- package/build/component/feature/apiconnector/apiConnector.js.map +1 -1
- package/build/component/feature/apim.d.ts.map +1 -1
- package/build/component/feature/apim.js +15 -15
- package/build/component/feature/apim.js.map +1 -1
- package/build/component/feature/bot/bot.d.ts.map +1 -1
- package/build/component/feature/bot/bot.js +46 -45
- package/build/component/feature/bot/bot.js.map +1 -1
- package/build/component/feature/bot/constants.js +3 -3
- package/build/component/feature/bot/constants.js.map +1 -1
- package/build/component/feature/bot/question.d.ts.map +1 -1
- package/build/component/feature/bot/question.js +14 -14
- package/build/component/feature/bot/question.js.map +1 -1
- package/build/component/feature/cicd/provider/provider.d.ts.map +1 -1
- package/build/component/feature/cicd/provider/provider.js +3 -2
- package/build/component/feature/cicd/provider/provider.js.map +1 -1
- package/build/component/feature/keyVault.js +7 -7
- package/build/component/feature/keyVault.js.map +1 -1
- package/build/component/feature/spfx.js +2 -2
- package/build/component/feature/spfx.js.map +1 -1
- package/build/component/feature/sql.d.ts.map +1 -1
- package/build/component/feature/sql.js +3 -3
- package/build/component/feature/sql.js.map +1 -1
- package/build/component/feature/sso.js +21 -21
- package/build/component/feature/sso.js.map +1 -1
- package/build/component/feature/tab.d.ts.map +1 -1
- package/build/component/feature/tab.js +33 -33
- package/build/component/feature/tab.js.map +1 -1
- package/build/component/generator/constant.d.ts +10 -0
- package/build/component/generator/constant.d.ts.map +1 -0
- package/build/component/generator/constant.js +15 -0
- package/build/component/generator/constant.js.map +1 -0
- package/build/component/generator/error.d.ts +14 -0
- package/build/component/generator/error.d.ts.map +1 -0
- package/build/component/generator/error.js +34 -0
- package/build/component/generator/error.js.map +1 -0
- package/build/component/generator/generator.d.ts +10 -0
- package/build/component/generator/generator.d.ts.map +1 -0
- package/build/component/generator/generator.js +133 -0
- package/build/component/generator/generator.js.map +1 -0
- package/build/component/generator/generatorAction.d.ts +36 -0
- package/build/component/generator/generatorAction.d.ts.map +1 -0
- package/build/component/generator/generatorAction.js +95 -0
- package/build/component/generator/generatorAction.js.map +1 -0
- package/build/component/generator/utils.d.ts +17 -0
- package/build/component/generator/utils.d.ts.map +1 -0
- package/build/component/generator/utils.js +165 -0
- package/build/component/generator/utils.js.map +1 -0
- package/build/component/messages.d.ts +32 -23
- package/build/component/messages.d.ts.map +1 -1
- package/build/component/messages.js +32 -23
- package/build/component/messages.js.map +1 -1
- package/build/component/middleware/actionExecutionMW.js +2 -2
- package/build/component/middleware/actionExecutionMW.js.map +1 -1
- package/build/component/middleware/envMW.d.ts +4 -0
- package/build/component/middleware/envMW.d.ts.map +1 -0
- package/build/component/middleware/envMW.js +63 -0
- package/build/component/middleware/envMW.js.map +1 -0
- package/build/component/migrate.js +44 -44
- package/build/component/migrate.js.map +1 -1
- package/build/component/provisionUtils.d.ts +14 -2
- package/build/component/provisionUtils.d.ts.map +1 -1
- package/build/component/provisionUtils.js +254 -44
- package/build/component/provisionUtils.js.map +1 -1
- package/build/component/{questionV3.d.ts → question.d.ts} +10 -2
- package/build/component/question.d.ts.map +1 -0
- package/build/component/{questionV3.js → question.js} +222 -104
- package/build/component/question.js.map +1 -0
- package/build/component/resource/aadApp/aadApp.d.ts +4 -3
- package/build/component/resource/aadApp/aadApp.d.ts.map +1 -1
- package/build/component/resource/aadApp/aadApp.js +34 -11
- package/build/component/resource/aadApp/aadApp.js.map +1 -1
- package/build/component/resource/aadApp/aadAppForTeamsImpl.d.ts +3 -3
- package/build/component/resource/aadApp/aadAppForTeamsImpl.d.ts.map +1 -1
- package/build/component/resource/aadApp/aadAppForTeamsImpl.js +25 -11
- package/build/component/resource/aadApp/aadAppForTeamsImpl.js.map +1 -1
- package/build/component/resource/aadApp/constants.d.ts +3 -0
- package/build/component/resource/aadApp/constants.d.ts.map +1 -1
- package/build/component/resource/aadApp/constants.js +9 -0
- package/build/component/resource/aadApp/constants.js.map +1 -1
- package/build/component/resource/aadApp/permissions/index.d.ts.map +1 -1
- package/build/component/resource/aadApp/permissions/index.js +1 -1
- package/build/component/resource/aadApp/permissions/index.js.map +1 -1
- package/build/component/resource/aadApp/utils/configs.d.ts +1 -0
- package/build/component/resource/aadApp/utils/configs.d.ts.map +1 -1
- package/build/component/resource/aadApp/utils/configs.js +10 -4
- package/build/component/resource/aadApp/utils/configs.js.map +1 -1
- package/build/component/resource/aadApp/utils/telemetry.d.ts.map +1 -1
- package/build/component/resource/aadApp/utils/telemetry.js +1 -2
- package/build/component/resource/aadApp/utils/telemetry.js.map +1 -1
- package/build/component/resource/aadApp/utils.d.ts.map +1 -1
- package/build/component/resource/aadApp/utils.js +1 -1
- package/build/component/resource/aadApp/utils.js.map +1 -1
- package/build/component/resource/apim/managers/questionManager.js +1 -1
- package/build/component/resource/apim/managers/questionManager.js.map +1 -1
- package/build/component/resource/apim/questions/vscodeQuestion.js +1 -1
- package/build/component/resource/apim/questions/vscodeQuestion.js.map +1 -1
- package/build/component/resource/apim/utils/telemetry.d.ts.map +1 -1
- package/build/component/resource/apim/utils/telemetry.js +2 -4
- package/build/component/resource/apim/utils/telemetry.js.map +1 -1
- package/build/component/resource/appManifest/appManifest.d.ts +3 -3
- package/build/component/resource/appManifest/appManifest.d.ts.map +1 -1
- package/build/component/resource/appManifest/appManifest.js +21 -10
- package/build/component/resource/appManifest/appManifest.js.map +1 -1
- package/build/component/resource/appManifest/appStudio.d.ts +5 -1
- package/build/component/resource/appManifest/appStudio.d.ts.map +1 -1
- package/build/component/resource/appManifest/appStudio.js +197 -11
- package/build/component/resource/appManifest/appStudio.js.map +1 -1
- package/build/component/resource/appManifest/appStudioClient.d.ts +1 -0
- package/build/component/resource/appManifest/appStudioClient.d.ts.map +1 -1
- package/build/component/resource/appManifest/appStudioClient.js +22 -2
- package/build/component/resource/appManifest/appStudioClient.js.map +1 -1
- package/build/component/resource/appManifest/constants.d.ts +7 -2
- package/build/component/resource/appManifest/constants.d.ts.map +1 -1
- package/build/component/resource/appManifest/constants.js +147 -3
- package/build/component/resource/appManifest/constants.js.map +1 -1
- package/build/component/resource/appManifest/errors.d.ts +4 -0
- package/build/component/resource/appManifest/errors.d.ts.map +1 -1
- package/build/component/resource/appManifest/errors.js +7 -0
- package/build/component/resource/appManifest/errors.js.map +1 -1
- package/build/component/resource/appManifest/interfaces/appPackage.d.ts +10 -0
- package/build/component/resource/appManifest/interfaces/appPackage.d.ts.map +1 -0
- package/build/component/resource/appManifest/interfaces/appPackage.js +5 -0
- package/build/component/resource/appManifest/interfaces/appPackage.js.map +1 -0
- package/build/component/resource/appManifest/utils/ManifestUtils.d.ts +2 -0
- package/build/component/resource/appManifest/utils/ManifestUtils.d.ts.map +1 -1
- package/build/component/resource/appManifest/utils/ManifestUtils.js +98 -24
- package/build/component/resource/appManifest/utils/ManifestUtils.js.map +1 -1
- package/build/component/resource/appManifest/utils/telemetry.d.ts.map +1 -1
- package/build/component/resource/appManifest/utils/telemetry.js +5 -3
- package/build/component/resource/appManifest/utils/telemetry.js.map +1 -1
- package/build/component/resource/appManifest/utils/utils.d.ts +17 -0
- package/build/component/resource/appManifest/utils/utils.d.ts.map +1 -1
- package/build/component/resource/appManifest/utils/utils.js +50 -1
- package/build/component/resource/appManifest/utils/utils.js.map +1 -1
- package/build/component/resource/botService/AadAppCredentials.d.ts +5 -0
- package/build/component/resource/botService/AadAppCredentials.d.ts.map +1 -0
- package/build/component/resource/botService/AadAppCredentials.js +5 -0
- package/build/component/resource/botService/AadAppCredentials.js.map +1 -0
- package/build/component/resource/botService/appStudio/appStudioClient.d.ts +11 -0
- package/build/component/resource/botService/appStudio/appStudioClient.d.ts.map +1 -0
- package/build/component/resource/botService/appStudio/appStudioClient.js +117 -0
- package/build/component/resource/botService/appStudio/appStudioClient.js.map +1 -0
- package/build/component/resource/botService/botRegistration/botRegistration.d.ts +21 -0
- package/build/component/resource/botService/botRegistration/botRegistration.d.ts.map +1 -0
- package/build/component/resource/botService/botRegistration/botRegistration.js +71 -0
- package/build/component/resource/botService/botRegistration/botRegistration.js.map +1 -0
- package/build/component/resource/botService/botRegistration/constants.d.ts +10 -0
- package/build/component/resource/botService/botRegistration/constants.d.ts.map +1 -0
- package/build/component/resource/botService/botRegistration/constants.js +15 -0
- package/build/component/resource/botService/botRegistration/constants.js.map +1 -0
- package/build/component/resource/botService/botRegistration/factory.d.ts +9 -0
- package/build/component/resource/botService/botRegistration/factory.d.ts.map +1 -0
- package/build/component/resource/botService/botRegistration/factory.js +26 -0
- package/build/component/resource/botService/botRegistration/factory.js.map +1 -0
- package/build/component/resource/botService/botRegistration/graphClient.d.ts +5 -0
- package/build/component/resource/botService/botRegistration/graphClient.d.ts.map +1 -0
- package/build/component/resource/botService/botRegistration/graphClient.js +58 -0
- package/build/component/resource/botService/botRegistration/graphClient.js.map +1 -0
- package/build/component/resource/botService/botRegistration/localBotRegistration.d.ts +7 -0
- package/build/component/resource/botService/botRegistration/localBotRegistration.d.ts.map +1 -0
- package/build/component/resource/botService/botRegistration/localBotRegistration.js +53 -0
- package/build/component/resource/botService/botRegistration/localBotRegistration.js.map +1 -0
- package/build/component/resource/botService/botRegistration/remoteBotRegistration.d.ts +7 -0
- package/build/component/resource/botService/botRegistration/remoteBotRegistration.d.ts.map +1 -0
- package/build/component/resource/botService/botRegistration/remoteBotRegistration.js +25 -0
- package/build/component/resource/botService/botRegistration/remoteBotRegistration.js.map +1 -0
- package/build/component/resource/botService/botService.d.ts +0 -2
- package/build/component/resource/botService/botService.d.ts.map +1 -1
- package/build/component/resource/botService/botService.js +46 -93
- package/build/component/resource/botService/botService.js.map +1 -1
- package/build/component/resource/botService/errors.d.ts +2 -3
- package/build/component/resource/botService/errors.d.ts.map +1 -1
- package/build/component/resource/botService/errors.js +12 -7
- package/build/component/resource/botService/errors.js.map +1 -1
- package/build/component/resource/spfx/utils/constants.d.ts +2 -2
- package/build/component/resource/spfx/utils/constants.d.ts.map +1 -1
- package/build/component/resource/spfx/utils/constants.js +2 -2
- package/build/component/resource/spfx/utils/constants.js.map +1 -1
- package/build/component/telemetry.js +29 -29
- package/build/component/telemetry.js.map +1 -1
- package/build/{plugins/solution/fx-solution → component}/utils/ResourceGroupHelper.d.ts +4 -0
- package/build/component/utils/ResourceGroupHelper.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/utils/ResourceGroupHelper.js +19 -12
- package/build/component/utils/ResourceGroupHelper.js.map +1 -0
- package/build/component/utils/azureResourceOperation.d.ts +1 -1
- package/build/component/utils/azureResourceOperation.d.ts.map +1 -1
- package/build/{plugins/solution/fx-solution → component}/utils/backupFiles.d.ts +0 -0
- package/build/component/utils/backupFiles.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/utils/backupFiles.js +4 -4
- package/build/component/utils/backupFiles.js.map +1 -0
- package/build/component/utils/common.d.ts +9 -1
- package/build/component/utils/common.d.ts.map +1 -1
- package/build/component/utils/common.js +57 -9
- package/build/component/utils/common.js.map +1 -1
- package/build/component/utils/depsChecker/bicepChecker.d.ts +11 -0
- package/build/component/utils/depsChecker/bicepChecker.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/utils/depsChecker/bicepChecker.js +59 -19
- package/build/component/utils/depsChecker/bicepChecker.js.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/utils/depsChecker/common.d.ts +0 -0
- package/build/component/utils/depsChecker/common.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/utils/depsChecker/common.js +8 -7
- package/build/component/utils/depsChecker/common.js.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/utils/depsChecker/cpUtils.d.ts +0 -0
- package/build/component/utils/depsChecker/cpUtils.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/utils/depsChecker/cpUtils.js +0 -0
- package/build/component/utils/depsChecker/cpUtils.js.map +1 -0
- package/build/component/utils/envUtil.d.ts +11 -0
- package/build/component/utils/envUtil.d.ts.map +1 -0
- package/build/component/utils/envUtil.js +96 -0
- package/build/component/utils/envUtil.js.map +1 -0
- package/build/{plugins/solution/fx-solution/v2 → component/utils}/executor.d.ts +0 -1
- package/build/component/utils/executor.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution/v2 → component/utils}/executor.js +2 -18
- package/build/component/utils/executor.js.map +1 -0
- package/build/component/utils/fileOperation.d.ts.map +1 -1
- package/build/component/utils/fileOperation.js +6 -1
- package/build/component/utils/fileOperation.js.map +1 -1
- package/build/{plugins/solution/fx-solution → component}/utils/progressHelper.d.ts +0 -0
- package/build/component/utils/progressHelper.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution → component}/utils/progressHelper.js +1 -1
- package/build/component/utils/progressHelper.js.map +1 -0
- package/build/component/utils/settingsUtil.d.ts +9 -0
- package/build/component/utils/settingsUtil.d.ts.map +1 -0
- package/build/component/utils/settingsUtil.js +34 -0
- package/build/component/utils/settingsUtil.js.map +1 -0
- package/build/component/utils/teamsFxTelemetryReporter.d.ts +25 -0
- package/build/component/utils/teamsFxTelemetryReporter.d.ts.map +1 -0
- package/build/component/utils/teamsFxTelemetryReporter.js +73 -0
- package/build/component/utils/teamsFxTelemetryReporter.js.map +1 -0
- package/build/component/utils.d.ts +8 -1
- package/build/component/utils.d.ts.map +1 -1
- package/build/component/utils.js +35 -2
- package/build/component/utils.js.map +1 -1
- package/build/core/FxCore.d.ts +49 -5
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.js +339 -69
- package/build/core/FxCore.js.map +1 -1
- package/build/core/collaborator.d.ts +16 -4
- package/build/core/collaborator.d.ts.map +1 -1
- package/build/core/collaborator.js +189 -64
- package/build/core/collaborator.js.map +1 -1
- package/build/core/downloadSample.js +2 -2
- package/build/core/downloadSample.js.map +1 -1
- package/build/core/environment.d.ts.map +1 -1
- package/build/core/environment.js +15 -1
- package/build/core/environment.js.map +1 -1
- package/build/core/error.d.ts +3 -0
- package/build/core/error.d.ts.map +1 -1
- package/build/core/error.js +11 -1
- package/build/core/error.js.map +1 -1
- package/build/core/middleware/CommonErrorHandlerMW.js +3 -3
- package/build/core/middleware/CommonErrorHandlerMW.js.map +1 -1
- package/build/core/middleware/MigrationUtils.js +1 -1
- package/build/core/middleware/MigrationUtils.js.map +1 -1
- package/build/core/middleware/aadManifestMigration.d.ts.map +1 -1
- package/build/core/middleware/aadManifestMigration.js +1 -1
- package/build/core/middleware/aadManifestMigration.js.map +1 -1
- package/build/core/middleware/concurrentLocker.d.ts.map +1 -1
- package/build/core/middleware/concurrentLocker.js +3 -1
- package/build/core/middleware/concurrentLocker.js.map +1 -1
- package/build/core/middleware/consolidateLocalRemote.js +2 -2
- package/build/core/middleware/consolidateLocalRemote.js.map +1 -1
- package/build/core/middleware/envInfoLoaderV3.d.ts.map +1 -1
- package/build/core/middleware/envInfoLoaderV3.js +6 -0
- package/build/core/middleware/envInfoLoaderV3.js.map +1 -1
- package/build/core/middleware/envInfoWriter.js +1 -1
- package/build/core/middleware/envInfoWriter.js.map +1 -1
- package/build/core/middleware/projectMigrator.js +123 -123
- package/build/core/middleware/projectMigrator.js.map +1 -1
- package/build/core/middleware/projectSettingsLoader.d.ts.map +1 -1
- package/build/core/middleware/projectSettingsLoader.js +34 -13
- package/build/core/middleware/projectSettingsLoader.js.map +1 -1
- package/build/core/middleware/projectSettingsWriter.d.ts.map +1 -1
- package/build/core/middleware/projectSettingsWriter.js +22 -14
- package/build/core/middleware/projectSettingsWriter.js.map +1 -1
- package/build/core/middleware/questionModel.js +10 -10
- package/build/core/middleware/questionModel.js.map +1 -1
- package/build/core/permissionRequest.js +1 -1
- package/build/core/permissionRequest.js.map +1 -1
- package/build/core/question.d.ts +2 -2
- package/build/core/question.d.ts.map +1 -1
- package/build/core/question.js +83 -73
- package/build/core/question.js.map +1 -1
- package/build/core/types.d.ts +2 -0
- package/build/core/types.d.ts.map +1 -1
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +3 -1
- package/build/index.js.map +1 -1
- package/package.json +13 -4
- package/resource/package.nls.json +125 -5
- package/resource/package.nls.zh-cn.json +929 -0
- package/resource/package.nls.zh-tw.json +929 -0
- package/templates/bicep/azureWebApp.provision.module.bicep +1 -1
- package/templates/fallback/bot.csharp.command-and-response.zip +0 -0
- package/templates/fallback/bot.csharp.default.zip +0 -0
- package/templates/fallback/bot.csharp.notification-function-base.zip +0 -0
- package/templates/fallback/bot.csharp.notification-trigger-http.zip +0 -0
- package/templates/fallback/bot.csharp.notification-trigger-timer.zip +0 -0
- package/templates/fallback/bot.csharp.notification-webapi.zip +0 -0
- package/templates/fallback/bot.csharp.workflow.zip +0 -0
- package/templates/fallback/bot.js.command-and-response.zip +0 -0
- package/templates/fallback/bot.js.default.zip +0 -0
- package/templates/fallback/bot.js.m365.zip +0 -0
- package/templates/fallback/bot.js.notification-function-base.zip +0 -0
- package/templates/fallback/bot.js.notification-restify.zip +0 -0
- package/templates/fallback/bot.js.notification-trigger-http.zip +0 -0
- package/templates/fallback/bot.js.notification-trigger-timer.zip +0 -0
- package/templates/fallback/bot.js.workflow.zip +0 -0
- package/templates/fallback/bot.ts.command-and-response.zip +0 -0
- package/templates/fallback/bot.ts.default.zip +0 -0
- package/templates/fallback/bot.ts.m365.zip +0 -0
- package/templates/fallback/bot.ts.notification-function-base.zip +0 -0
- package/templates/fallback/bot.ts.notification-restify.zip +0 -0
- package/templates/fallback/bot.ts.notification-trigger-http.zip +0 -0
- package/templates/fallback/bot.ts.notification-trigger-timer.zip +0 -0
- package/templates/fallback/bot.ts.workflow.zip +0 -0
- package/templates/fallback/command-and-response-csharp.zip +0 -0
- package/templates/fallback/command-and-response-js.zip +0 -0
- package/templates/fallback/command-and-response-ts.zip +0 -0
- package/templates/fallback/function-base.js.default.zip +0 -0
- package/templates/fallback/function-base.ts.default.zip +0 -0
- package/templates/fallback/function-triggers.js.HTTPTrigger.zip +0 -0
- package/templates/fallback/function-triggers.ts.HTTPTrigger.zip +0 -0
- package/templates/fallback/init-infra.zip +0 -0
- package/templates/fallback/m365-tab-js.zip +0 -0
- package/templates/fallback/m365-tab-ts.zip +0 -0
- package/templates/fallback/message-extension-csharp.zip +0 -0
- package/templates/fallback/non-sso-tab-csharp.zip +0 -0
- package/templates/fallback/non-sso-tab-js.zip +0 -0
- package/templates/fallback/non-sso-tab-ts.zip +0 -0
- package/templates/fallback/notification-http-timer-trigger-csharp.zip +0 -0
- package/templates/fallback/notification-http-timer-trigger-js.zip +0 -0
- package/templates/fallback/notification-http-timer-trigger-ts.zip +0 -0
- package/templates/fallback/notification-http-trigger-csharp.zip +0 -0
- package/templates/fallback/notification-http-trigger-js.zip +0 -0
- package/templates/fallback/notification-http-trigger-ts.zip +0 -0
- package/templates/fallback/notification-restify-js.zip +0 -0
- package/templates/fallback/notification-restify-ts.zip +0 -0
- package/templates/fallback/notification-timer-trigger-csharp.zip +0 -0
- package/templates/fallback/notification-timer-trigger-js.zip +0 -0
- package/templates/fallback/notification-timer-trigger-ts.zip +0 -0
- package/templates/fallback/notification-webapi-csharp.zip +0 -0
- package/templates/fallback/sso-tab-csharp.zip +0 -0
- package/templates/fallback/sso-tab-js.zip +0 -0
- package/templates/fallback/sso-tab-ts.zip +0 -0
- package/templates/fallback/tab.csharp.default.zip +0 -0
- package/templates/fallback/tab.csharp.non-sso.zip +0 -0
- package/templates/fallback/tab.js.default.zip +0 -0
- package/templates/fallback/tab.js.m365.zip +0 -0
- package/templates/fallback/tab.js.non-sso.zip +0 -0
- package/templates/fallback/tab.ts.default.zip +0 -0
- package/templates/fallback/tab.ts.m365.zip +0 -0
- package/templates/fallback/tab.ts.non-sso.zip +0 -0
- package/templates/plugins/resource/aad/auth/tab/README.md +2 -3
- package/templates/plugins/resource/aad/auth/tab/js/public/auth-end.html +31 -31
- package/templates/plugins/resource/aad/auth/tab/js/public/auth-start.html +29 -31
- package/templates/plugins/resource/aad/auth/tab/ts/public/auth-end.html +31 -31
- package/templates/plugins/resource/aad/auth/tab/ts/public/auth-start.html +29 -31
- package/templates/plugins/resource/bot/bicep/botProvision.template.bicep +1 -1
- package/templates/plugins/resource/cicd/azdo/cd.yml +4 -4
- package/templates/plugins/resource/cicd/azdo/provision.yml +4 -4
- package/templates/plugins/resource/cicd/azdo/publish.yml +4 -4
- package/templates/plugins/resource/cicd/github/cd.yml +4 -0
- package/templates/plugins/resource/cicd/github/provision.yml +4 -0
- package/templates/plugins/resource/cicd/github/publish.yml +4 -0
- package/templates/plugins/resource/cicd/jenkins/Jenkinsfile.cd +4 -4
- package/templates/plugins/resource/cicd/jenkins/Jenkinsfile.provision +4 -4
- package/templates/plugins/resource/cicd/jenkins/Jenkinsfile.publish +4 -4
- package/templates/plugins/resource/cicd_v2/azdo/README.md +48 -0
- package/templates/plugins/resource/cicd_v2/azdo/cd.yml +56 -0
- package/templates/plugins/resource/cicd_v2/azdo/ci.yml +37 -0
- package/templates/plugins/resource/cicd_v2/azdo/provision.yml +53 -0
- package/templates/plugins/resource/cicd_v2/azdo/publish.yml +45 -0
- package/templates/plugins/resource/cicd_v2/github/README.md +48 -0
- package/templates/plugins/resource/cicd_v2/github/cd.yml +71 -0
- package/templates/plugins/resource/cicd_v2/github/ci.yml +34 -0
- package/templates/plugins/resource/cicd_v2/github/provision.yml +65 -0
- package/templates/plugins/resource/cicd_v2/github/publish.yml +47 -0
- package/templates/plugins/resource/cicd_v2/jenkins/Jenkinsfile.cd +77 -0
- package/templates/plugins/resource/cicd_v2/jenkins/Jenkinsfile.ci +34 -0
- package/templates/plugins/resource/cicd_v2/jenkins/Jenkinsfile.provision +79 -0
- package/templates/plugins/resource/cicd_v2/jenkins/Jenkinsfile.publish +57 -0
- package/templates/plugins/resource/cicd_v2/jenkins/README.md +45 -0
- package/templates/plugins/resource/hosting/bicep/webapp/webappProvision.template.bicep +1 -1
- package/build/component/debug.d.ts.map +0 -1
- package/build/component/debug.js.map +0 -1
- package/build/component/deploy/azureAppServiceDeployDriver.d.ts +0 -13
- package/build/component/deploy/azureAppServiceDeployDriver.d.ts.map +0 -1
- package/build/component/deploy/azureAppServiceDeployDriver.js +0 -29
- package/build/component/deploy/azureAppServiceDeployDriver.js.map +0 -1
- package/build/component/deploy/azureDeployDriver.d.ts.map +0 -1
- package/build/component/deploy/azureDeployDriver.js.map +0 -1
- package/build/component/deploy/azureFunctionDeployDriver.d.ts.map +0 -1
- package/build/component/deploy/azureFunctionDeployDriver.js.map +0 -1
- package/build/component/deploy/azureStorageDeployDriver.d.ts.map +0 -1
- package/build/component/deploy/azureStorageDeployDriver.js.map +0 -1
- package/build/component/deploy/baseBuildDriver.d.ts +0 -10
- package/build/component/deploy/baseBuildDriver.d.ts.map +0 -1
- package/build/component/deploy/baseBuildDriver.js +0 -36
- package/build/component/deploy/baseBuildDriver.js.map +0 -1
- package/build/component/deploy/baseDeployDriver.d.ts.map +0 -1
- package/build/component/deploy/baseDeployDriver.js.map +0 -1
- package/build/component/deploy/baseStepDriver.d.ts +0 -10
- package/build/component/deploy/baseStepDriver.d.ts.map +0 -1
- package/build/component/deploy/baseStepDriver.js +0 -21
- package/build/component/deploy/baseStepDriver.js.map +0 -1
- package/build/component/deploy/dotnetBuildDriver.d.ts.map +0 -1
- package/build/component/deploy/dotnetBuildDriver.js +0 -26
- package/build/component/deploy/dotnetBuildDriver.js.map +0 -1
- package/build/component/deploy/npmBuildDriver.d.ts.map +0 -1
- package/build/component/deploy/npmBuildDriver.js +0 -26
- package/build/component/deploy/npmBuildDriver.js.map +0 -1
- package/build/component/interface/buildAndDeployArgs.d.ts.map +0 -1
- package/build/component/interface/buildAndDeployArgs.js.map +0 -1
- package/build/component/interface/commonArgs.d.ts.map +0 -1
- package/build/component/interface/commonArgs.js.map +0 -1
- package/build/component/interface/provisionArgs.d.ts.map +0 -1
- package/build/component/interface/provisionArgs.js.map +0 -1
- package/build/component/interface/stepDriver.d.ts.map +0 -1
- package/build/component/interface/stepDriver.js.map +0 -1
- package/build/component/provision/azureStorageStaticWebsiteConfigDriver.d.ts.map +0 -1
- package/build/component/provision/azureStorageStaticWebsiteConfigDriver.js.map +0 -1
- package/build/component/questionV3.d.ts.map +0 -1
- package/build/component/questionV3.js.map +0 -1
- package/build/component/resource/botService/aadRegistration.d.ts +0 -6
- package/build/component/resource/botService/aadRegistration.d.ts.map +0 -1
- package/build/component/resource/botService/aadRegistration.js +0 -88
- package/build/component/resource/botService/aadRegistration.js.map +0 -1
- package/build/component/resource/botService/appStudio/appStudio.d.ts +0 -16
- package/build/component/resource/botService/appStudio/appStudio.d.ts.map +0 -1
- package/build/component/resource/botService/appStudio/appStudio.js +0 -174
- package/build/component/resource/botService/appStudio/appStudio.js.map +0 -1
- package/build/core/SolutionPluginContainer.d.ts +0 -15
- package/build/core/SolutionPluginContainer.d.ts.map +0 -1
- package/build/core/SolutionPluginContainer.js +0 -54
- package/build/core/SolutionPluginContainer.js.map +0 -1
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.d.ts +0 -33
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.js +0 -78
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.js.map +0 -1
- package/build/plugins/solution/fx-solution/arm.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/arm.js +0 -1225
- package/build/plugins/solution/fx-solution/arm.js.map +0 -1
- package/build/plugins/solution/fx-solution/commonQuestions.d.ts +0 -59
- package/build/plugins/solution/fx-solution/commonQuestions.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/commonQuestions.js +0 -456
- package/build/plugins/solution/fx-solution/commonQuestions.js.map +0 -1
- package/build/plugins/solution/fx-solution/constants.d.ts +0 -272
- package/build/plugins/solution/fx-solution/constants.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/constants.js +0 -313
- package/build/plugins/solution/fx-solution/constants.js.map +0 -1
- package/build/plugins/solution/fx-solution/debug/constants.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/debug/constants.js.map +0 -1
- package/build/plugins/solution/fx-solution/debug/error.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/debug/error.js.map +0 -1
- package/build/plugins/solution/fx-solution/debug/provisionLocal.d.ts +0 -6
- package/build/plugins/solution/fx-solution/debug/provisionLocal.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/debug/provisionLocal.js +0 -326
- package/build/plugins/solution/fx-solution/debug/provisionLocal.js.map +0 -1
- package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts +0 -9
- package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/debug/scaffolding.js +0 -145
- package/build/plugins/solution/fx-solution/debug/scaffolding.js.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/codespace.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/codespace.js.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/launch.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/launch.js.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/launchNext.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/launchNext.js.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/launchTransparency.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/launchTransparency.js.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/localService.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/localService.js.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/ngrok.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/ngrok.js.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/settings.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/settings.js.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/tasks.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/tasks.js.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/tasksNext.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/tasksNext.js.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/tasksTransparency.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/tasksTransparency.js.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/telemetry.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/telemetry.js.map +0 -1
- package/build/plugins/solution/fx-solution/executor.d.ts +0 -27
- package/build/plugins/solution/fx-solution/executor.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/executor.js +0 -164
- package/build/plugins/solution/fx-solution/executor.js.map +0 -1
- package/build/plugins/solution/fx-solution/question.d.ts +0 -65
- package/build/plugins/solution/fx-solution/question.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/question.js +0 -416
- package/build/plugins/solution/fx-solution/question.js.map +0 -1
- package/build/plugins/solution/fx-solution/types.d.ts +0 -10
- package/build/plugins/solution/fx-solution/types.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/types.js +0 -12
- package/build/plugins/solution/fx-solution/types.js.map +0 -1
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.js.map +0 -1
- package/build/plugins/solution/fx-solution/utils/backupFiles.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/utils/backupFiles.js.map +0 -1
- package/build/plugins/solution/fx-solution/utils/depsChecker/bicepChecker.d.ts +0 -8
- package/build/plugins/solution/fx-solution/utils/depsChecker/bicepChecker.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/utils/depsChecker/bicepChecker.js.map +0 -1
- package/build/plugins/solution/fx-solution/utils/depsChecker/common.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/utils/depsChecker/common.js.map +0 -1
- package/build/plugins/solution/fx-solution/utils/depsChecker/cpUtils.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/utils/depsChecker/cpUtils.js.map +0 -1
- package/build/plugins/solution/fx-solution/utils/progressHelper.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/utils/progressHelper.js.map +0 -1
- package/build/plugins/solution/fx-solution/utils/solutionSettingsHelper.d.ts +0 -3
- package/build/plugins/solution/fx-solution/utils/solutionSettingsHelper.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/utils/solutionSettingsHelper.js +0 -19
- package/build/plugins/solution/fx-solution/utils/solutionSettingsHelper.js.map +0 -1
- package/build/plugins/solution/fx-solution/utils/util.d.ts +0 -22
- package/build/plugins/solution/fx-solution/utils/util.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/utils/util.js +0 -129
- package/build/plugins/solution/fx-solution/utils/util.js.map +0 -1
- package/build/plugins/solution/fx-solution/v2/adaptor.d.ts +0 -11
- package/build/plugins/solution/fx-solution/v2/adaptor.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/v2/adaptor.js +0 -64
- package/build/plugins/solution/fx-solution/v2/adaptor.js.map +0 -1
- package/build/plugins/solution/fx-solution/v2/constants.d.ts +0 -2
- package/build/plugins/solution/fx-solution/v2/constants.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/v2/constants.js +0 -7
- package/build/plugins/solution/fx-solution/v2/constants.js.map +0 -1
- package/build/plugins/solution/fx-solution/v2/executor.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/v2/executor.js.map +0 -1
- package/build/plugins/solution/fx-solution/v2/utils.d.ts +0 -28
- package/build/plugins/solution/fx-solution/v2/utils.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/v2/utils.js +0 -276
- package/build/plugins/solution/fx-solution/v2/utils.js.map +0 -1
- package/build/plugins/solution/fx-solution/v3/constants.d.ts +0 -18
- package/build/plugins/solution/fx-solution/v3/constants.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/v3/constants.js +0 -23
- package/build/plugins/solution/fx-solution/v3/constants.js.map +0 -1
- package/build/plugins/solution/fx-solution/v3/solutionGlobalVars.d.ts +0 -5
- package/build/plugins/solution/fx-solution/v3/solutionGlobalVars.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/v3/solutionGlobalVars.js +0 -10
- package/build/plugins/solution/fx-solution/v3/solutionGlobalVars.js.map +0 -1
|
@@ -14,22 +14,22 @@ const localSettingsProvider_1 = require("../../common/localSettingsProvider");
|
|
|
14
14
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
15
15
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
16
16
|
const os_1 = tslib_1.__importDefault(require("os"));
|
|
17
|
-
const constants_1 = require("../../
|
|
17
|
+
const constants_1 = require("../../component/constants");
|
|
18
18
|
const projectSettingsLoader_1 = require("./projectSettingsLoader");
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
19
|
+
const constants_2 = require("../../component/constants");
|
|
20
|
+
const constants_3 = require("../../common/constants");
|
|
21
|
+
const constants_4 = require("../../component/resource/appManifest/constants");
|
|
22
22
|
const utils_1 = require("../../component/resource/appManifest/utils/utils");
|
|
23
23
|
const telemetry_1 = require("../../common/telemetry");
|
|
24
24
|
const dotenv = tslib_1.__importStar(require("dotenv"));
|
|
25
|
-
const
|
|
25
|
+
const constants_5 = require("../../component/resource/spfx/utils/constants");
|
|
26
26
|
const utils_2 = require("../../component/resource/spfx/utils/utils");
|
|
27
27
|
const localEnvProvider_1 = require("../../common/local/localEnvProvider");
|
|
28
28
|
const globalVars_1 = require("../globalVars");
|
|
29
29
|
const localizeUtils_1 = require("../../common/localizeUtils");
|
|
30
30
|
const utils_3 = require("../../common/utils");
|
|
31
31
|
const typedi_1 = require("typedi");
|
|
32
|
-
const
|
|
32
|
+
const constants_6 = require("../../component/constants");
|
|
33
33
|
const workflow_1 = require("../../component/workflow");
|
|
34
34
|
const utils_4 = require("../../component/utils");
|
|
35
35
|
const lodash_1 = require("lodash");
|
|
@@ -37,8 +37,8 @@ const migrate_1 = require("../../component/migrate");
|
|
|
37
37
|
const projectSettingsHelperV3_1 = require("../../common/projectSettingsHelperV3");
|
|
38
38
|
const programmingLanguage = "programmingLanguage";
|
|
39
39
|
const defaultFunctionName = "defaultFunctionName";
|
|
40
|
-
const learnMoreText = "
|
|
41
|
-
const upgradeButton = "
|
|
40
|
+
const learnMoreText = localizeUtils_1.getLocalizedString("core.option.learnMore");
|
|
41
|
+
const upgradeButton = localizeUtils_1.getLocalizedString("core.option.upgrade");
|
|
42
42
|
const solutionName = "solution";
|
|
43
43
|
const subscriptionId = "subscriptionId";
|
|
44
44
|
const resourceGroupName = "resourceGroupName";
|
|
@@ -181,11 +181,11 @@ async function getOldProjectInfoForTelemetry(projectPath) {
|
|
|
181
181
|
const solutionSettings = projectSettings.solutionSettings;
|
|
182
182
|
const hostType = solutionSettings === null || solutionSettings === void 0 ? void 0 : solutionSettings.hostType;
|
|
183
183
|
const result = { [telemetry_1.TelemetryProperty.HostType]: hostType };
|
|
184
|
-
if (hostType ===
|
|
184
|
+
if (hostType === constants_2.HostTypeOptionAzure.id || hostType === constants_2.HostTypeOptionSPFx.id) {
|
|
185
185
|
result[telemetry_1.TelemetryProperty.ActivePlugins] = JSON.stringify(solutionSettings.activeResourcePlugins);
|
|
186
186
|
result[telemetry_1.TelemetryProperty.Capabilities] = JSON.stringify(solutionSettings.capabilities);
|
|
187
187
|
}
|
|
188
|
-
if (hostType ===
|
|
188
|
+
if (hostType === constants_2.HostTypeOptionAzure.id) {
|
|
189
189
|
const azureSolutionSettings = solutionSettings;
|
|
190
190
|
result[telemetry_1.TelemetryProperty.AzureResources] = JSON.stringify(azureSolutionSettings.azureResources);
|
|
191
191
|
}
|
|
@@ -231,15 +231,15 @@ async function migrateToArmAndMultiEnv(ctx) {
|
|
|
231
231
|
await postMigration(projectPath, ctx, inputs, backupFolder);
|
|
232
232
|
}
|
|
233
233
|
async function getManifestPath(fx, projectPath) {
|
|
234
|
-
if (await fs_extra_1.default.pathExists(path_1.default.join(projectPath, teamsfx_api_1.AppPackageFolderName,
|
|
235
|
-
return path_1.default.join(projectPath, teamsfx_api_1.AppPackageFolderName,
|
|
234
|
+
if (await fs_extra_1.default.pathExists(path_1.default.join(projectPath, teamsfx_api_1.AppPackageFolderName, constants_4.REMOTE_MANIFEST))) {
|
|
235
|
+
return path_1.default.join(projectPath, teamsfx_api_1.AppPackageFolderName, constants_4.REMOTE_MANIFEST);
|
|
236
236
|
}
|
|
237
237
|
// 2.3.2<= version <= 2.4.1
|
|
238
|
-
if (await fs_extra_1.default.pathExists(path_1.default.join(fx, teamsfx_api_1.AppPackageFolderName,
|
|
239
|
-
return path_1.default.join(fx, teamsfx_api_1.AppPackageFolderName,
|
|
238
|
+
if (await fs_extra_1.default.pathExists(path_1.default.join(fx, teamsfx_api_1.AppPackageFolderName, constants_4.REMOTE_MANIFEST))) {
|
|
239
|
+
return path_1.default.join(fx, teamsfx_api_1.AppPackageFolderName, constants_4.REMOTE_MANIFEST);
|
|
240
240
|
}
|
|
241
241
|
// 2.0.1 <= version <= 2.3.1
|
|
242
|
-
return path_1.default.join(fx,
|
|
242
|
+
return path_1.default.join(fx, constants_4.REMOTE_MANIFEST);
|
|
243
243
|
}
|
|
244
244
|
async function preCheckKeyFiles(projectPath, ctx) {
|
|
245
245
|
const fx = path_1.default.join(projectPath, `.${teamsfx_api_1.ConfigFolderName}`);
|
|
@@ -392,8 +392,8 @@ async function copyManifest(projectPath, fx, target) {
|
|
|
392
392
|
}
|
|
393
393
|
else {
|
|
394
394
|
// version <= 2.3.1
|
|
395
|
-
await fs_extra_1.default.copy(path_1.default.join(fx,
|
|
396
|
-
const manifest = await getManifest(path_1.default.join(target,
|
|
395
|
+
await fs_extra_1.default.copy(path_1.default.join(fx, constants_4.REMOTE_MANIFEST), path_1.default.join(target, constants_4.REMOTE_MANIFEST));
|
|
396
|
+
const manifest = await getManifest(path_1.default.join(target, constants_4.REMOTE_MANIFEST));
|
|
397
397
|
const color = (await fs_extra_1.default.pathExists(path_1.default.join(fx, "color.png")))
|
|
398
398
|
? "color.png"
|
|
399
399
|
: manifest.icons.color;
|
|
@@ -415,8 +415,8 @@ async function migrateProjectSettings(projectPath) {
|
|
|
415
415
|
}
|
|
416
416
|
const projectSettings = loadRes.value;
|
|
417
417
|
if (projectSettingsHelperV3_1.hasAzureResourceV3(projectSettings, true)) {
|
|
418
|
-
if (!workflow_1.getComponent(projectSettings,
|
|
419
|
-
projectSettings.components.push({ name:
|
|
418
|
+
if (!workflow_1.getComponent(projectSettings, constants_6.ComponentNames.Identity)) {
|
|
419
|
+
projectSettings.components.push({ name: constants_6.ComponentNames.Identity });
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
422
|
return projectSettings;
|
|
@@ -439,40 +439,40 @@ async function migrateMultiEnv(projectPath, log) {
|
|
|
439
439
|
const configDev = getConfigDevJson(appName);
|
|
440
440
|
// migrate skipAddingSqlUser
|
|
441
441
|
const envDefault = await fs_extra_1.default.readJson(envDefaultFilePath);
|
|
442
|
-
if ((_a = envDefault[
|
|
442
|
+
if ((_a = envDefault[constants_3.ResourcePlugins.AzureSQL]) === null || _a === void 0 ? void 0 : _a[EnvConfigName.SqlSkipAddingUser]) {
|
|
443
443
|
configDev["skipAddingSqlUser"] =
|
|
444
|
-
envDefault[
|
|
444
|
+
envDefault[constants_3.ResourcePlugins.AzureSQL][EnvConfigName.SqlSkipAddingUser];
|
|
445
445
|
}
|
|
446
|
-
if (((_b = envDefault[
|
|
446
|
+
if (((_b = envDefault[constants_3.ResourcePlugins.Aad]) === null || _b === void 0 ? void 0 : _b[EnvConfigName.AadSkipProvision]) === "true") {
|
|
447
447
|
configDev.auth = {};
|
|
448
|
-
if (envDefault[
|
|
448
|
+
if (envDefault[constants_3.ResourcePlugins.Aad][EnvConfigName.OAuthScopeId]) {
|
|
449
449
|
configDev.auth.accessAsUserScopeId =
|
|
450
|
-
envDefault[
|
|
450
|
+
envDefault[constants_3.ResourcePlugins.Aad][EnvConfigName.OAuthScopeId];
|
|
451
451
|
}
|
|
452
|
-
if (envDefault[
|
|
453
|
-
configDev.auth.objectId = envDefault[
|
|
452
|
+
if (envDefault[constants_3.ResourcePlugins.Aad][EnvConfigName.ObjectId]) {
|
|
453
|
+
configDev.auth.objectId = envDefault[constants_3.ResourcePlugins.Aad][EnvConfigName.ObjectId];
|
|
454
454
|
}
|
|
455
|
-
if (envDefault[
|
|
456
|
-
configDev.auth.clientId = envDefault[
|
|
455
|
+
if (envDefault[constants_3.ResourcePlugins.Aad][EnvConfigName.ClientId]) {
|
|
456
|
+
configDev.auth.clientId = envDefault[constants_3.ResourcePlugins.Aad][EnvConfigName.ClientId];
|
|
457
457
|
}
|
|
458
|
-
if (envDefault[
|
|
459
|
-
await globalState_1.globalStateUpdate(AADClientSecretFlag, envDefault[
|
|
458
|
+
if (envDefault[constants_3.ResourcePlugins.Aad][EnvConfigName.ClientSecret]) {
|
|
459
|
+
await globalState_1.globalStateUpdate(AADClientSecretFlag, envDefault[constants_3.ResourcePlugins.Aad][EnvConfigName.ClientSecret]);
|
|
460
460
|
configDev.auth.clientSecret = AadSecret;
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
await fs_extra_1.default.writeFile(configDevJsonFilePath, JSON.stringify(configDev, null, 4));
|
|
464
464
|
// appPackage
|
|
465
465
|
await copyManifest(projectPath, fx, templateAppPackage);
|
|
466
|
-
const sourceManifestFile = path_1.default.join(templateAppPackage,
|
|
466
|
+
const sourceManifestFile = path_1.default.join(templateAppPackage, constants_4.REMOTE_MANIFEST);
|
|
467
467
|
const manifest = await getManifest(sourceManifestFile);
|
|
468
468
|
await fs_extra_1.default.remove(sourceManifestFile);
|
|
469
469
|
// generate manifest.remote.template.json
|
|
470
|
-
const targetRemoteManifestFile = path_1.default.join(templateAppPackage,
|
|
470
|
+
const targetRemoteManifestFile = path_1.default.join(templateAppPackage, constants_4.MANIFEST_TEMPLATE);
|
|
471
471
|
const remoteManifest = await generateRemoteTemplate(JSON.stringify(manifest));
|
|
472
472
|
await fs_extra_1.default.writeFile(targetRemoteManifestFile, JSON.stringify(remoteManifest, null, 4));
|
|
473
473
|
// generate manifest.local.template.json
|
|
474
474
|
const localManifest = await generateLocalTemplate(JSON.stringify(manifest), isSPFx, log);
|
|
475
|
-
const targetLocalManifestFile = path_1.default.join(templateAppPackage,
|
|
475
|
+
const targetLocalManifestFile = path_1.default.join(templateAppPackage, constants_4.MANIFEST_LOCAL);
|
|
476
476
|
await fs_extra_1.default.writeFile(targetLocalManifestFile, JSON.stringify(localManifest, null, 4));
|
|
477
477
|
if (isSPFx) {
|
|
478
478
|
const replaceMap = new Map();
|
|
@@ -481,8 +481,8 @@ async function migrateMultiEnv(projectPath, log) {
|
|
|
481
481
|
throw error_1.SPFxConfigError(packageSolutionFile);
|
|
482
482
|
}
|
|
483
483
|
const solutionConfig = await fs_extra_1.default.readJson(packageSolutionFile);
|
|
484
|
-
replaceMap.set(
|
|
485
|
-
replaceMap.set(
|
|
484
|
+
replaceMap.set(constants_5.PlaceHolders.componentId, solutionConfig.solution.id);
|
|
485
|
+
replaceMap.set(constants_5.PlaceHolders.componentNameUnescaped, localManifest.packageName);
|
|
486
486
|
await utils_2.Utils.configure(targetLocalManifestFile, replaceMap);
|
|
487
487
|
}
|
|
488
488
|
// state.dev.json / dev.userdata
|
|
@@ -564,8 +564,8 @@ async function queryProjectStatus(fx) {
|
|
|
564
564
|
const hasFrontend = projectSettingsHelperV3_1.hasAzureTab(settingsV3);
|
|
565
565
|
const hasBackend = projectSettingsHelperV3_1.hasApi(settingsV3);
|
|
566
566
|
const hasBot = projectSettingsHelperV3_1.hasBot(settingsV3);
|
|
567
|
-
const hasBotCapability = settings.solutionSettings.capabilities.includes(
|
|
568
|
-
const hasMessageExtensionCapability = settings.solutionSettings.capabilities.includes(
|
|
567
|
+
const hasBotCapability = settings.solutionSettings.capabilities.includes(constants_2.BotOptionItem.id);
|
|
568
|
+
const hasMessageExtensionCapability = settings.solutionSettings.capabilities.includes(constants_2.MessageExtensionItem.id);
|
|
569
569
|
const isSPFx = projectSettingsHelperV3_1.hasSPFxTab(settingsV3);
|
|
570
570
|
const hasProvision = (_a = envDefaultJson.solution) === null || _a === void 0 ? void 0 : _a.provisionSucceeded;
|
|
571
571
|
return {
|
|
@@ -648,7 +648,7 @@ async function removeOldProjectFiles(projectPath) {
|
|
|
648
648
|
// version <= 2.4.1, remove .fx/appPackage.
|
|
649
649
|
await fs_extra_1.default.remove(path_1.default.join(fx, teamsfx_api_1.AppPackageFolderName));
|
|
650
650
|
// version <= 3.2.1
|
|
651
|
-
await fs_extra_1.default.remove(path_1.default.join(fx,
|
|
651
|
+
await fs_extra_1.default.remove(path_1.default.join(fx, constants_4.REMOTE_MANIFEST));
|
|
652
652
|
await fs_extra_1.default.remove(path_1.default.join(fx, "color.png"));
|
|
653
653
|
await fs_extra_1.default.remove(path_1.default.join(fx, "outline.png"));
|
|
654
654
|
}
|
|
@@ -705,9 +705,9 @@ async function updateConfig(ctx) {
|
|
|
705
705
|
const inputs = ctx.arguments[ctx.arguments.length - 1];
|
|
706
706
|
const fx = path_1.default.join(inputs.projectPath, `.${teamsfx_api_1.ConfigFolderName}`);
|
|
707
707
|
const envConfig = await fs_extra_1.default.readJson(path_1.default.join(fx, "env.default.json"));
|
|
708
|
-
if (envConfig[
|
|
709
|
-
delete envConfig[
|
|
710
|
-
envConfig[
|
|
708
|
+
if (envConfig[constants_3.ResourcePlugins.Bot]) {
|
|
709
|
+
delete envConfig[constants_3.ResourcePlugins.Bot];
|
|
710
|
+
envConfig[constants_3.ResourcePlugins.Bot] = { wayToRegisterBot: "create-new" };
|
|
711
711
|
envConfig.solution.provisionSucceeded = false;
|
|
712
712
|
}
|
|
713
713
|
let needUpdate = false;
|
|
@@ -716,43 +716,43 @@ async function updateConfig(ctx) {
|
|
|
716
716
|
configPrefix = `/subscriptions/${envConfig[solutionName][subscriptionId]}/resourcegroups/${envConfig[solutionName][resourceGroupName]}`;
|
|
717
717
|
needUpdate = true;
|
|
718
718
|
}
|
|
719
|
-
if (needUpdate && ((_a = envConfig[
|
|
720
|
-
envConfig[
|
|
719
|
+
if (needUpdate && ((_a = envConfig[constants_3.ResourcePlugins.FrontendHosting]) === null || _a === void 0 ? void 0 : _a[EnvConfigName.StorageName])) {
|
|
720
|
+
envConfig[constants_3.ResourcePlugins.FrontendHosting][EnvConfigName.StorageResourceId] = `${configPrefix}/providers/Microsoft.Storage/storageAccounts/${envConfig[constants_3.ResourcePlugins.FrontendHosting][EnvConfigName.StorageName]}`;
|
|
721
721
|
}
|
|
722
|
-
if (needUpdate && ((_b = envConfig[
|
|
723
|
-
envConfig[
|
|
722
|
+
if (needUpdate && ((_b = envConfig[constants_3.ResourcePlugins.AzureSQL]) === null || _b === void 0 ? void 0 : _b[EnvConfigName.SqlEndpoint])) {
|
|
723
|
+
envConfig[constants_3.ResourcePlugins.AzureSQL][EnvConfigName.SqlResourceId] = `${configPrefix}/providers/Microsoft.Sql/servers/${envConfig[constants_3.ResourcePlugins.AzureSQL][EnvConfigName.SqlEndpoint].split(".database.windows.net")[0]}`;
|
|
724
724
|
}
|
|
725
|
-
if (needUpdate && ((_c = envConfig[
|
|
726
|
-
envConfig[
|
|
727
|
-
delete envConfig[
|
|
728
|
-
if (envConfig[
|
|
729
|
-
delete envConfig[
|
|
725
|
+
if (needUpdate && ((_c = envConfig[constants_3.ResourcePlugins.Function]) === null || _c === void 0 ? void 0 : _c[EnvConfigName.FuncAppName])) {
|
|
726
|
+
envConfig[constants_3.ResourcePlugins.Function][EnvConfigName.FunctionAppResourceId] = `${configPrefix}/providers/Microsoft.Web/sites/${envConfig[constants_3.ResourcePlugins.Function][EnvConfigName.FuncAppName]}`;
|
|
727
|
+
delete envConfig[constants_3.ResourcePlugins.Function][EnvConfigName.FuncAppName];
|
|
728
|
+
if (envConfig[constants_3.ResourcePlugins.Function][EnvConfigName.StorageAccountName]) {
|
|
729
|
+
delete envConfig[constants_3.ResourcePlugins.Function][EnvConfigName.StorageAccountName];
|
|
730
730
|
}
|
|
731
|
-
if (envConfig[
|
|
732
|
-
delete envConfig[
|
|
731
|
+
if (envConfig[constants_3.ResourcePlugins.Function][EnvConfigName.AppServicePlanName]) {
|
|
732
|
+
delete envConfig[constants_3.ResourcePlugins.Function][EnvConfigName.AppServicePlanName];
|
|
733
733
|
}
|
|
734
734
|
}
|
|
735
|
-
if (needUpdate && ((_d = envConfig[
|
|
736
|
-
envConfig[
|
|
737
|
-
envConfig[
|
|
738
|
-
envConfig[
|
|
739
|
-
delete envConfig[
|
|
735
|
+
if (needUpdate && ((_d = envConfig[constants_3.ResourcePlugins.Identity]) === null || _d === void 0 ? void 0 : _d[EnvConfigName.Identity])) {
|
|
736
|
+
envConfig[constants_3.ResourcePlugins.Identity][EnvConfigName.IdentityResourceId] = `${configPrefix}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/${envConfig[constants_3.ResourcePlugins.Identity][EnvConfigName.Identity]}`;
|
|
737
|
+
envConfig[constants_3.ResourcePlugins.Identity][EnvConfigName.IdentityName] =
|
|
738
|
+
envConfig[constants_3.ResourcePlugins.Identity][EnvConfigName.Identity];
|
|
739
|
+
delete envConfig[constants_3.ResourcePlugins.Identity][EnvConfigName.Identity];
|
|
740
740
|
}
|
|
741
|
-
if (needUpdate && ((_e = envConfig[
|
|
742
|
-
envConfig[
|
|
743
|
-
envConfig[
|
|
744
|
-
delete envConfig[
|
|
741
|
+
if (needUpdate && ((_e = envConfig[constants_3.ResourcePlugins.Identity]) === null || _e === void 0 ? void 0 : _e[EnvConfigName.IdentityId])) {
|
|
742
|
+
envConfig[constants_3.ResourcePlugins.Identity][EnvConfigName.IdentityClientId] =
|
|
743
|
+
envConfig[constants_3.ResourcePlugins.Identity][EnvConfigName.IdentityId];
|
|
744
|
+
delete envConfig[constants_3.ResourcePlugins.Identity][EnvConfigName.IdentityId];
|
|
745
745
|
}
|
|
746
|
-
if (needUpdate && ((_f = envConfig[
|
|
747
|
-
envConfig[
|
|
748
|
-
delete envConfig[
|
|
749
|
-
if ((_g = envConfig[
|
|
750
|
-
envConfig[
|
|
751
|
-
delete envConfig[
|
|
746
|
+
if (needUpdate && ((_f = envConfig[constants_3.ResourcePlugins.Apim]) === null || _f === void 0 ? void 0 : _f[EnvConfigName.ServiceName])) {
|
|
747
|
+
envConfig[constants_3.ResourcePlugins.Apim][EnvConfigName.ServiceResourceId] = `${configPrefix}/providers/Microsoft.ApiManagement/service/${envConfig[constants_3.ResourcePlugins.Apim][EnvConfigName.ServiceName]}`;
|
|
748
|
+
delete envConfig[constants_3.ResourcePlugins.Apim][EnvConfigName.ServiceName];
|
|
749
|
+
if ((_g = envConfig[constants_3.ResourcePlugins.Apim]) === null || _g === void 0 ? void 0 : _g[EnvConfigName.ProductId]) {
|
|
750
|
+
envConfig[constants_3.ResourcePlugins.Apim][EnvConfigName.ProductResourceId] = `${envConfig[constants_3.ResourcePlugins.Apim][EnvConfigName.ServiceResourceId]}/products/${envConfig[constants_3.ResourcePlugins.Apim][EnvConfigName.ProductId]}`;
|
|
751
|
+
delete envConfig[constants_3.ResourcePlugins.Apim][EnvConfigName.ProductId];
|
|
752
752
|
}
|
|
753
|
-
if ((_h = envConfig[
|
|
754
|
-
envConfig[
|
|
755
|
-
delete envConfig[
|
|
753
|
+
if ((_h = envConfig[constants_3.ResourcePlugins.Apim]) === null || _h === void 0 ? void 0 : _h[EnvConfigName.OAuthServerId]) {
|
|
754
|
+
envConfig[constants_3.ResourcePlugins.Apim][EnvConfigName.AuthServerResourceId] = `${envConfig[constants_3.ResourcePlugins.Apim][EnvConfigName.ServiceResourceId]}/authorizationServers/${envConfig[constants_3.ResourcePlugins.Apim][EnvConfigName.OAuthServerId]}`;
|
|
755
|
+
delete envConfig[constants_3.ResourcePlugins.Apim][EnvConfigName.OAuthServerId];
|
|
756
756
|
}
|
|
757
757
|
}
|
|
758
758
|
await fs_extra_1.default.writeFile(path_1.default.join(fx, "new.env.default.json"), JSON.stringify(envConfig, null, 4));
|
|
@@ -769,14 +769,14 @@ async function generateBicepsV3(projectSettings, inputs) {
|
|
|
769
769
|
const context = utils_4.createContextV3(projectSettings);
|
|
770
770
|
// teams-tab
|
|
771
771
|
{
|
|
772
|
-
const config = workflow_1.getComponent(projectSettings,
|
|
772
|
+
const config = workflow_1.getComponent(projectSettings, constants_6.ComponentNames.TeamsTab);
|
|
773
773
|
if (config) {
|
|
774
|
-
const hosting = config.hosting ||
|
|
774
|
+
const hosting = config.hosting || constants_6.ComponentNames.AzureStorage;
|
|
775
775
|
const hostingComponent = typedi_1.Container.get(hosting);
|
|
776
776
|
const clonedInputs = lodash_1.cloneDeep(inputs);
|
|
777
777
|
lodash_1.assign(clonedInputs, {
|
|
778
|
-
componentId:
|
|
779
|
-
scenario:
|
|
778
|
+
componentId: constants_6.ComponentNames.TeamsTab,
|
|
779
|
+
scenario: constants_6.Scenarios.Tab,
|
|
780
780
|
});
|
|
781
781
|
const res = await hostingComponent.generateBicep(context, clonedInputs);
|
|
782
782
|
if (res.isErr())
|
|
@@ -786,16 +786,16 @@ async function generateBicepsV3(projectSettings, inputs) {
|
|
|
786
786
|
}
|
|
787
787
|
// teams-bot
|
|
788
788
|
{
|
|
789
|
-
const config = workflow_1.getComponent(projectSettings,
|
|
789
|
+
const config = workflow_1.getComponent(projectSettings, constants_6.ComponentNames.TeamsBot);
|
|
790
790
|
if (config) {
|
|
791
791
|
// bot hosting
|
|
792
|
-
const hosting = config.hosting ||
|
|
792
|
+
const hosting = config.hosting || constants_6.ComponentNames.AzureWebApp;
|
|
793
793
|
{
|
|
794
794
|
const hostingComponent = typedi_1.Container.get(hosting);
|
|
795
795
|
const clonedInputs = lodash_1.cloneDeep(inputs);
|
|
796
796
|
lodash_1.assign(clonedInputs, {
|
|
797
|
-
componentId:
|
|
798
|
-
scenario:
|
|
797
|
+
componentId: constants_6.ComponentNames.TeamsBot,
|
|
798
|
+
scenario: constants_6.Scenarios.Bot,
|
|
799
799
|
});
|
|
800
800
|
const res = await hostingComponent.generateBicep(context, clonedInputs);
|
|
801
801
|
if (res.isErr())
|
|
@@ -807,9 +807,9 @@ async function generateBicepsV3(projectSettings, inputs) {
|
|
|
807
807
|
const clonedInputs = lodash_1.cloneDeep(inputs);
|
|
808
808
|
lodash_1.assign(clonedInputs, {
|
|
809
809
|
hosting: hosting,
|
|
810
|
-
scenario:
|
|
810
|
+
scenario: constants_6.Scenarios.Bot,
|
|
811
811
|
});
|
|
812
|
-
const botService = typedi_1.Container.get(
|
|
812
|
+
const botService = typedi_1.Container.get(constants_6.ComponentNames.BotService);
|
|
813
813
|
const res = await botService.generateBicep(context, clonedInputs);
|
|
814
814
|
if (res.isErr())
|
|
815
815
|
return teamsfx_api_1.err(res.error);
|
|
@@ -819,15 +819,15 @@ async function generateBicepsV3(projectSettings, inputs) {
|
|
|
819
819
|
}
|
|
820
820
|
// teams-api
|
|
821
821
|
{
|
|
822
|
-
const config = workflow_1.getComponent(projectSettings,
|
|
822
|
+
const config = workflow_1.getComponent(projectSettings, constants_6.ComponentNames.TeamsApi);
|
|
823
823
|
if (config) {
|
|
824
824
|
const clonedInputs = lodash_1.cloneDeep(inputs);
|
|
825
825
|
lodash_1.assign(clonedInputs, {
|
|
826
|
-
componentId:
|
|
827
|
-
hosting:
|
|
828
|
-
scenario:
|
|
826
|
+
componentId: constants_6.ComponentNames.TeamsApi,
|
|
827
|
+
hosting: constants_6.ComponentNames.Function,
|
|
828
|
+
scenario: constants_6.Scenarios.Api,
|
|
829
829
|
});
|
|
830
|
-
const functionComponent = typedi_1.Container.get(
|
|
830
|
+
const functionComponent = typedi_1.Container.get(constants_6.ComponentNames.Function);
|
|
831
831
|
const res = await functionComponent.generateBicep(context, clonedInputs);
|
|
832
832
|
if (res.isErr())
|
|
833
833
|
return teamsfx_api_1.err(res.error);
|
|
@@ -836,14 +836,14 @@ async function generateBicepsV3(projectSettings, inputs) {
|
|
|
836
836
|
}
|
|
837
837
|
// identity
|
|
838
838
|
{
|
|
839
|
-
const identity = workflow_1.getComponent(projectSettings,
|
|
839
|
+
const identity = workflow_1.getComponent(projectSettings, constants_6.ComponentNames.Identity);
|
|
840
840
|
if (identity) {
|
|
841
841
|
const clonedInputs = lodash_1.cloneDeep(inputs);
|
|
842
842
|
lodash_1.assign(clonedInputs, {
|
|
843
843
|
componentId: "",
|
|
844
844
|
scenario: "",
|
|
845
845
|
});
|
|
846
|
-
const identityComponent = typedi_1.Container.get(
|
|
846
|
+
const identityComponent = typedi_1.Container.get(constants_6.ComponentNames.Identity);
|
|
847
847
|
const res = await identityComponent.generateBicep(context, clonedInputs);
|
|
848
848
|
if (res.isErr())
|
|
849
849
|
return teamsfx_api_1.err(res.error);
|
|
@@ -852,9 +852,9 @@ async function generateBicepsV3(projectSettings, inputs) {
|
|
|
852
852
|
}
|
|
853
853
|
// apim
|
|
854
854
|
{
|
|
855
|
-
const config = workflow_1.getComponent(projectSettings,
|
|
855
|
+
const config = workflow_1.getComponent(projectSettings, constants_6.ComponentNames.APIM);
|
|
856
856
|
if (config) {
|
|
857
|
-
const resource = typedi_1.Container.get(
|
|
857
|
+
const resource = typedi_1.Container.get(constants_6.ComponentNames.APIM);
|
|
858
858
|
const res = await resource.generateBicep(context, inputs);
|
|
859
859
|
if (res.isErr())
|
|
860
860
|
return teamsfx_api_1.err(res.error);
|
|
@@ -863,9 +863,9 @@ async function generateBicepsV3(projectSettings, inputs) {
|
|
|
863
863
|
}
|
|
864
864
|
// keyvault
|
|
865
865
|
{
|
|
866
|
-
const config = workflow_1.getComponent(projectSettings,
|
|
866
|
+
const config = workflow_1.getComponent(projectSettings, constants_6.ComponentNames.KeyVault);
|
|
867
867
|
if (config) {
|
|
868
|
-
const resource = typedi_1.Container.get(
|
|
868
|
+
const resource = typedi_1.Container.get(constants_6.ComponentNames.KeyVault);
|
|
869
869
|
const res = await resource.generateBicep(context, inputs);
|
|
870
870
|
if (res.isErr())
|
|
871
871
|
return teamsfx_api_1.err(res.error);
|
|
@@ -874,12 +874,12 @@ async function generateBicepsV3(projectSettings, inputs) {
|
|
|
874
874
|
}
|
|
875
875
|
// sql
|
|
876
876
|
{
|
|
877
|
-
const config = workflow_1.getComponent(projectSettings,
|
|
877
|
+
const config = workflow_1.getComponent(projectSettings, constants_6.ComponentNames.AzureSQL);
|
|
878
878
|
if (config) {
|
|
879
879
|
const provisionType = "server";
|
|
880
880
|
const clonedInputs = lodash_1.cloneDeep(inputs);
|
|
881
881
|
clonedInputs.provisionType = provisionType;
|
|
882
|
-
const sqlResource = typedi_1.Container.get(
|
|
882
|
+
const sqlResource = typedi_1.Container.get(constants_6.ComponentNames.AzureSQL);
|
|
883
883
|
const res = await sqlResource.generateBicep(context, clonedInputs);
|
|
884
884
|
if (res.isErr())
|
|
885
885
|
return teamsfx_api_1.err(res.error);
|
|
@@ -888,9 +888,9 @@ async function generateBicepsV3(projectSettings, inputs) {
|
|
|
888
888
|
}
|
|
889
889
|
// aad
|
|
890
890
|
{
|
|
891
|
-
const config = workflow_1.getComponent(projectSettings,
|
|
891
|
+
const config = workflow_1.getComponent(projectSettings, constants_6.ComponentNames.AadApp);
|
|
892
892
|
if (config) {
|
|
893
|
-
const aadApp = typedi_1.Container.get(
|
|
893
|
+
const aadApp = typedi_1.Container.get(constants_6.ComponentNames.AadApp);
|
|
894
894
|
const res = await aadApp.generateBicep(context, inputs);
|
|
895
895
|
if (res.isErr())
|
|
896
896
|
return teamsfx_api_1.err(res.error);
|
|
@@ -941,71 +941,71 @@ async function generateArmParameterJson(ctx) {
|
|
|
941
941
|
const targetJson = await fs_extra_1.default.readJson(path_1.default.join(fxConfig, parameterEnvFileName));
|
|
942
942
|
const parameterObj = targetJson["parameters"]["provisionParameters"]["value"];
|
|
943
943
|
// frontend hosting
|
|
944
|
-
if ((_a = envConfig[
|
|
944
|
+
if ((_a = envConfig[constants_3.ResourcePlugins.FrontendHosting]) === null || _a === void 0 ? void 0 : _a[EnvConfigName.StorageName]) {
|
|
945
945
|
parameterObj[ArmParameters.FEStorageName] =
|
|
946
|
-
envConfig[
|
|
946
|
+
envConfig[constants_3.ResourcePlugins.FrontendHosting][EnvConfigName.StorageName];
|
|
947
947
|
}
|
|
948
948
|
// manage identity
|
|
949
|
-
if ((_b = envConfig[
|
|
949
|
+
if ((_b = envConfig[constants_3.ResourcePlugins.Identity]) === null || _b === void 0 ? void 0 : _b[EnvConfigName.Identity]) {
|
|
950
950
|
// Teams Toolkit <= 2.7
|
|
951
951
|
parameterObj[ArmParameters.IdentityName] =
|
|
952
|
-
envConfig[
|
|
952
|
+
envConfig[constants_3.ResourcePlugins.Identity][EnvConfigName.Identity];
|
|
953
953
|
}
|
|
954
|
-
else if ((_c = envConfig[
|
|
954
|
+
else if ((_c = envConfig[constants_3.ResourcePlugins.Identity]) === null || _c === void 0 ? void 0 : _c[EnvConfigName.IdentityName]) {
|
|
955
955
|
// Teams Toolkit >= 2.8
|
|
956
956
|
parameterObj[ArmParameters.IdentityName] =
|
|
957
|
-
envConfig[
|
|
957
|
+
envConfig[constants_3.ResourcePlugins.Identity][EnvConfigName.IdentityName];
|
|
958
958
|
}
|
|
959
959
|
// azure SQL
|
|
960
|
-
if ((_d = envConfig[
|
|
960
|
+
if ((_d = envConfig[constants_3.ResourcePlugins.AzureSQL]) === null || _d === void 0 ? void 0 : _d[EnvConfigName.SqlEndpoint]) {
|
|
961
961
|
parameterObj[ArmParameters.SQLServer] =
|
|
962
|
-
envConfig[
|
|
962
|
+
envConfig[constants_3.ResourcePlugins.AzureSQL][EnvConfigName.SqlEndpoint].split(".database.windows.net")[0];
|
|
963
963
|
}
|
|
964
|
-
if ((_e = envConfig[
|
|
964
|
+
if ((_e = envConfig[constants_3.ResourcePlugins.AzureSQL]) === null || _e === void 0 ? void 0 : _e[EnvConfigName.SqlDataBase]) {
|
|
965
965
|
parameterObj[ArmParameters.SQLDatabase] =
|
|
966
|
-
envConfig[
|
|
966
|
+
envConfig[constants_3.ResourcePlugins.AzureSQL][EnvConfigName.SqlDataBase];
|
|
967
967
|
}
|
|
968
968
|
// SimpleAuth
|
|
969
|
-
if ((_f = envConfig[
|
|
969
|
+
if ((_f = envConfig[constants_3.ResourcePlugins.SimpleAuth]) === null || _f === void 0 ? void 0 : _f[EnvConfigName.SkuName]) {
|
|
970
970
|
parameterObj[ArmParameters.SimpleAuthSku] =
|
|
971
|
-
envConfig[
|
|
971
|
+
envConfig[constants_3.ResourcePlugins.SimpleAuth][EnvConfigName.SkuName];
|
|
972
972
|
}
|
|
973
|
-
if ((_g = envConfig[
|
|
974
|
-
const simpleAuthHost = new URL((_h = envConfig[
|
|
973
|
+
if ((_g = envConfig[constants_3.ResourcePlugins.SimpleAuth]) === null || _g === void 0 ? void 0 : _g[EnvConfigName.Endpoint]) {
|
|
974
|
+
const simpleAuthHost = new URL((_h = envConfig[constants_3.ResourcePlugins.SimpleAuth]) === null || _h === void 0 ? void 0 : _h[EnvConfigName.Endpoint])
|
|
975
975
|
.hostname;
|
|
976
976
|
const simpleAuthName = simpleAuthHost.split(".")[0];
|
|
977
977
|
parameterObj[ArmParameters.SimpleAuthWebAppName] = parameterObj[ArmParameters.SimpleAuthServerFarm] = simpleAuthName;
|
|
978
978
|
}
|
|
979
979
|
// Function
|
|
980
|
-
if ((_j = envConfig[
|
|
980
|
+
if ((_j = envConfig[constants_3.ResourcePlugins.Function]) === null || _j === void 0 ? void 0 : _j[EnvConfigName.AppServicePlanName]) {
|
|
981
981
|
parameterObj[ArmParameters.functionServerName] =
|
|
982
|
-
envConfig[
|
|
982
|
+
envConfig[constants_3.ResourcePlugins.Function][EnvConfigName.AppServicePlanName];
|
|
983
983
|
}
|
|
984
|
-
if ((_k = envConfig[
|
|
984
|
+
if ((_k = envConfig[constants_3.ResourcePlugins.Function]) === null || _k === void 0 ? void 0 : _k[EnvConfigName.StorageAccountName]) {
|
|
985
985
|
parameterObj[ArmParameters.functionStorageName] =
|
|
986
|
-
envConfig[
|
|
986
|
+
envConfig[constants_3.ResourcePlugins.Function][EnvConfigName.StorageAccountName];
|
|
987
987
|
}
|
|
988
|
-
if ((_l = envConfig[
|
|
988
|
+
if ((_l = envConfig[constants_3.ResourcePlugins.Function]) === null || _l === void 0 ? void 0 : _l[EnvConfigName.FuncAppName]) {
|
|
989
989
|
parameterObj[ArmParameters.functionAppName] =
|
|
990
|
-
envConfig[
|
|
990
|
+
envConfig[constants_3.ResourcePlugins.Function][EnvConfigName.FuncAppName];
|
|
991
991
|
}
|
|
992
992
|
// Bot
|
|
993
|
-
if ((_m = envConfig[
|
|
993
|
+
if ((_m = envConfig[constants_3.ResourcePlugins.Bot]) === null || _m === void 0 ? void 0 : _m[EnvConfigName.SkuName]) {
|
|
994
994
|
parameterObj[ArmParameters.botWebAppSku] =
|
|
995
|
-
(_o = envConfig[
|
|
995
|
+
(_o = envConfig[constants_3.ResourcePlugins.Bot]) === null || _o === void 0 ? void 0 : _o[EnvConfigName.SkuName];
|
|
996
996
|
}
|
|
997
997
|
// Apim
|
|
998
|
-
if ((_p = envConfig[
|
|
998
|
+
if ((_p = envConfig[constants_3.ResourcePlugins.Apim]) === null || _p === void 0 ? void 0 : _p[EnvConfigName.ServiceName]) {
|
|
999
999
|
parameterObj[ArmParameters.ApimServiceName] =
|
|
1000
|
-
(_q = envConfig[
|
|
1000
|
+
(_q = envConfig[constants_3.ResourcePlugins.Apim]) === null || _q === void 0 ? void 0 : _q[EnvConfigName.ServiceName];
|
|
1001
1001
|
}
|
|
1002
|
-
if ((_r = envConfig[
|
|
1002
|
+
if ((_r = envConfig[constants_3.ResourcePlugins.Apim]) === null || _r === void 0 ? void 0 : _r[EnvConfigName.ProductId]) {
|
|
1003
1003
|
parameterObj[ArmParameters.ApimProductName] =
|
|
1004
|
-
(_s = envConfig[
|
|
1004
|
+
(_s = envConfig[constants_3.ResourcePlugins.Apim]) === null || _s === void 0 ? void 0 : _s[EnvConfigName.ProductId];
|
|
1005
1005
|
}
|
|
1006
|
-
if ((_t = envConfig[
|
|
1006
|
+
if ((_t = envConfig[constants_3.ResourcePlugins.Apim]) === null || _t === void 0 ? void 0 : _t[EnvConfigName.OAuthServerId]) {
|
|
1007
1007
|
parameterObj[ArmParameters.ApimOauthServerName] =
|
|
1008
|
-
(_u = envConfig[
|
|
1008
|
+
(_u = envConfig[constants_3.ResourcePlugins.Apim]) === null || _u === void 0 ? void 0 : _u[EnvConfigName.OAuthServerId];
|
|
1009
1009
|
}
|
|
1010
1010
|
await fs_extra_1.default.writeFile(path_1.default.join(fxConfig, parameterEnvFileName), JSON.stringify(targetJson, null, 4));
|
|
1011
1011
|
}
|