@microsoft/teamsfx-core 2.0.0-alpha.df941b6ed.0 → 2.0.0-alpha.e49547890.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/common/armInterface.d.ts +0 -5
- package/build/common/armInterface.d.ts.map +1 -1
- package/build/common/deps-checker/constant/helpLink.d.ts +6 -6
- package/build/common/deps-checker/constant/helpLink.d.ts.map +1 -1
- package/build/common/deps-checker/constant/helpLink.js +14 -7
- package/build/common/deps-checker/constant/helpLink.js.map +1 -1
- package/build/common/deps-checker/constant/message.d.ts +6 -5
- package/build/common/deps-checker/constant/message.d.ts.map +1 -1
- package/build/common/deps-checker/constant/message.js +13 -9
- package/build/common/deps-checker/constant/message.js.map +1 -1
- package/build/common/deps-checker/constant/telemetry.d.ts +12 -1
- package/build/common/deps-checker/constant/telemetry.d.ts.map +1 -1
- package/build/common/deps-checker/constant/telemetry.js +11 -0
- package/build/common/deps-checker/constant/telemetry.js.map +1 -1
- package/build/common/deps-checker/depsChecker.d.ts +6 -1
- package/build/common/deps-checker/depsChecker.d.ts.map +1 -1
- package/build/common/deps-checker/depsChecker.js.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.d.ts +20 -40
- package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.js +208 -295
- package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.d.ts +3 -3
- package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.js +4 -6
- package/build/common/deps-checker/internal/nodeChecker.js.map +1 -1
- package/build/common/deps-checker/internal/vxTestAppChecker.d.ts +0 -1
- package/build/common/deps-checker/internal/vxTestAppChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/vxTestAppChecker.js +3 -21
- package/build/common/deps-checker/internal/vxTestAppChecker.js.map +1 -1
- package/build/common/deps-checker/util/fileHelper.d.ts +4 -0
- package/build/common/deps-checker/util/fileHelper.d.ts.map +1 -0
- package/build/common/deps-checker/util/fileHelper.js +45 -0
- package/build/common/deps-checker/util/fileHelper.js.map +1 -0
- package/build/common/local/constants.d.ts +7 -0
- package/build/common/local/constants.d.ts.map +1 -1
- package/build/common/local/constants.js +7 -0
- package/build/common/local/constants.js.map +1 -1
- package/build/common/local/localEnvManager.d.ts.map +1 -1
- package/build/common/local/localEnvManager.js +2 -3
- package/build/common/local/localEnvManager.js.map +1 -1
- package/build/common/m365/errors.d.ts +1 -1
- package/build/common/m365/errors.d.ts.map +1 -1
- package/build/common/m365/errors.js +7 -7
- package/build/common/m365/errors.js.map +1 -1
- package/build/common/m365/launchHelper.js +2 -2
- package/build/common/m365/launchHelper.js.map +1 -1
- package/build/common/samples-config-v3.json +23 -0
- package/build/common/samples.js +1 -1
- package/build/common/samples.js.map +1 -1
- package/build/common/telemetry.d.ts +1 -0
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +1 -0
- package/build/common/telemetry.js.map +1 -1
- package/build/common/tools.d.ts +1 -0
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +6 -2
- package/build/common/tools.js.map +1 -1
- package/build/common/versionMetadata.d.ts +5 -0
- package/build/common/versionMetadata.d.ts.map +1 -1
- package/build/common/versionMetadata.js +11 -0
- package/build/common/versionMetadata.js.map +1 -1
- package/build/component/code/utils.d.ts +3 -0
- package/build/component/code/utils.d.ts.map +1 -1
- package/build/component/code/utils.js +19 -8
- package/build/component/code/utils.js.map +1 -1
- package/build/component/configManager/diagnostic.d.ts +9 -0
- package/build/component/configManager/diagnostic.d.ts.map +1 -0
- package/build/component/configManager/diagnostic.js +47 -0
- package/build/component/configManager/diagnostic.js.map +1 -0
- package/build/component/configManager/parser.d.ts.map +1 -1
- package/build/component/configManager/parser.js +11 -5
- package/build/component/configManager/parser.js.map +1 -1
- package/build/component/constants.d.ts +7 -0
- package/build/component/constants.d.ts.map +1 -1
- package/build/component/constants.js +60 -26
- package/build/component/constants.js.map +1 -1
- package/build/component/coordinator/index.d.ts +2 -2
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +57 -72
- package/build/component/coordinator/index.js.map +1 -1
- package/build/component/debugHandler/appManifest.js +2 -1
- package/build/component/debugHandler/appManifest.js.map +1 -1
- package/build/component/debugHandler/error.d.ts +0 -1
- package/build/component/debugHandler/error.d.ts.map +1 -1
- package/build/component/debugHandler/error.js +1 -5
- package/build/component/debugHandler/error.js.map +1 -1
- package/build/component/developerPortalScaffoldUtils.d.ts +4 -1
- package/build/component/developerPortalScaffoldUtils.d.ts.map +1 -1
- package/build/component/developerPortalScaffoldUtils.js +5 -5
- package/build/component/developerPortalScaffoldUtils.js.map +1 -1
- package/build/component/driver/aad/create.d.ts.map +1 -1
- package/build/component/driver/aad/create.js +5 -14
- package/build/component/driver/aad/create.js.map +1 -1
- package/build/component/driver/aad/update.d.ts.map +1 -1
- package/build/component/driver/aad/update.js +3 -4
- package/build/component/driver/aad/update.js.map +1 -1
- package/build/component/driver/aad/utility/buildAadManifest.js +1 -1
- package/build/component/driver/aad/utility/buildAadManifest.js.map +1 -1
- package/build/component/driver/add/utility/constants.d.ts +1 -1
- package/build/component/driver/add/utility/constants.d.ts.map +1 -1
- package/build/component/driver/add/utility/constants.js +1 -1
- package/build/component/driver/add/utility/constants.js.map +1 -1
- package/build/component/driver/arm/deployImpl.d.ts.map +1 -1
- package/build/component/driver/arm/deployImpl.js +4 -1
- package/build/component/driver/arm/deployImpl.js.map +1 -1
- package/build/component/driver/arm/validator.d.ts.map +1 -1
- package/build/component/driver/arm/validator.js +0 -15
- package/build/component/driver/arm/validator.js.map +1 -1
- package/build/component/driver/botAadApp/create.d.ts.map +1 -1
- package/build/component/driver/botAadApp/create.js +5 -6
- package/build/component/driver/botAadApp/create.js.map +1 -1
- package/build/component/driver/botFramework/createOrUpdateBot.d.ts.map +1 -1
- package/build/component/driver/botFramework/createOrUpdateBot.js +1 -2
- package/build/component/driver/botFramework/createOrUpdateBot.js.map +1 -1
- package/build/component/driver/deploy/azure/azureStorageDeployDriver.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/azureStorageDeployDriver.js +10 -17
- package/build/component/driver/deploy/azure/azureStorageDeployDriver.js.map +1 -1
- package/build/component/driver/deploy/azure/azureStorageStaticWebsiteConfigDriver.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/azureStorageStaticWebsiteConfigDriver.js +3 -3
- package/build/component/driver/deploy/azure/azureStorageStaticWebsiteConfigDriver.js.map +1 -1
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.d.ts +1 -1
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js +13 -13
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js.map +1 -1
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.d.ts +2 -3
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.js +45 -13
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.js.map +1 -1
- package/build/component/driver/deploy/azure/impl/baseDeployImpl.d.ts +1 -1
- package/build/component/driver/deploy/azure/impl/baseDeployImpl.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/impl/baseDeployImpl.js +6 -0
- package/build/component/driver/deploy/azure/impl/baseDeployImpl.js.map +1 -1
- package/build/component/driver/devTool/constant.d.ts.map +1 -0
- package/build/component/driver/devTool/constant.js.map +1 -0
- package/build/component/driver/devTool/error/dotnetInstallationUserError.d.ts +5 -0
- package/build/component/driver/devTool/error/dotnetInstallationUserError.d.ts.map +1 -0
- package/build/component/driver/{prerequisite → devTool}/error/dotnetInstallationUserError.js +2 -1
- package/build/component/driver/devTool/error/dotnetInstallationUserError.js.map +1 -0
- package/build/component/driver/devTool/error/funcInstallationUserError.d.ts +5 -0
- package/build/component/driver/devTool/error/funcInstallationUserError.d.ts.map +1 -0
- package/build/component/driver/{prerequisite → devTool}/error/funcInstallationUserError.js +2 -1
- package/build/component/driver/devTool/error/funcInstallationUserError.js.map +1 -0
- package/build/component/driver/{prerequisite → devTool}/installDriver.d.ts +1 -1
- package/build/component/driver/devTool/installDriver.d.ts.map +1 -0
- package/build/component/driver/{prerequisite → devTool}/installDriver.js +46 -17
- package/build/component/driver/devTool/installDriver.js.map +1 -0
- package/build/component/driver/{prerequisite → devTool}/interfaces/InstallToolArgs.d.ts +5 -1
- package/build/component/driver/devTool/interfaces/InstallToolArgs.d.ts.map +1 -0
- package/build/component/driver/devTool/interfaces/InstallToolArgs.js.map +1 -0
- package/build/component/driver/error/outputEnvironmentVariableUndefinedError.d.ts +5 -0
- package/build/component/driver/error/outputEnvironmentVariableUndefinedError.d.ts.map +1 -0
- package/build/component/driver/error/outputEnvironmentVariableUndefinedError.js +22 -0
- package/build/component/driver/error/outputEnvironmentVariableUndefinedError.js.map +1 -0
- package/build/component/driver/file/createOrUpdateEnvironmentFile.d.ts.map +1 -1
- package/build/component/driver/file/createOrUpdateEnvironmentFile.js +1 -2
- package/build/component/driver/file/createOrUpdateEnvironmentFile.js.map +1 -1
- package/build/component/driver/file/createOrUpdateJsonFile.d.ts.map +1 -1
- package/build/component/driver/file/createOrUpdateJsonFile.js +1 -2
- package/build/component/driver/file/createOrUpdateJsonFile.js.map +1 -1
- package/build/component/driver/index.d.ts +1 -1
- package/build/component/driver/index.d.ts.map +1 -1
- package/build/component/driver/index.js +1 -1
- package/build/component/driver/index.js.map +1 -1
- package/build/component/driver/m365/acquire.d.ts.map +1 -1
- package/build/component/driver/m365/acquire.js +5 -6
- package/build/component/driver/m365/acquire.js.map +1 -1
- package/build/component/driver/middleware/addStartAndEndTelemetry.d.ts.map +1 -1
- package/build/component/driver/middleware/addStartAndEndTelemetry.js +14 -6
- package/build/component/driver/middleware/addStartAndEndTelemetry.js.map +1 -1
- package/build/component/driver/script/scriptDriver.js +4 -2
- package/build/component/driver/script/scriptDriver.js.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.d.ts +0 -1
- package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.js +1 -11
- package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/interfaces/ValidateManifestArgs.d.ts +5 -0
- package/build/component/driver/teamsApp/interfaces/ValidateManifestArgs.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validate.d.ts +0 -1
- package/build/component/driver/teamsApp/validate.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validate.js +54 -20
- package/build/component/driver/teamsApp/validate.js.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.js +80 -13
- package/build/component/driver/teamsApp/validateAppPackage.js.map +1 -1
- package/build/component/driver/util/wrapUtil.js +1 -1
- package/build/component/driver/util/wrapUtil.js.map +1 -1
- package/build/component/error/deployError.d.ts +0 -17
- package/build/component/error/deployError.d.ts.map +1 -1
- package/build/component/error/deployError.js +0 -80
- package/build/component/error/deployError.js.map +1 -1
- package/build/component/feature/apiconnector/errors.d.ts +0 -4
- package/build/component/feature/apiconnector/errors.d.ts.map +1 -1
- package/build/component/feature/apiconnector/errors.js +12 -16
- package/build/component/feature/apiconnector/errors.js.map +1 -1
- package/build/component/feature/bot/bot.js +8 -8
- package/build/component/feature/bot/bot.js.map +1 -1
- package/build/component/feature/bot/question.d.ts +6 -6
- package/build/component/feature/bot/question.d.ts.map +1 -1
- package/build/component/feature/bot/question.js +69 -38
- package/build/component/feature/bot/question.js.map +1 -1
- package/build/component/generator/constant.d.ts +2 -0
- package/build/component/generator/constant.d.ts.map +1 -1
- package/build/component/generator/constant.js +3 -1
- package/build/component/generator/constant.js.map +1 -1
- package/build/component/generator/error.d.ts +9 -0
- package/build/component/generator/error.d.ts.map +1 -1
- package/build/component/generator/error.js +19 -1
- package/build/component/generator/error.js.map +1 -1
- package/build/component/generator/generator.d.ts +1 -1
- package/build/component/generator/generator.d.ts.map +1 -1
- package/build/component/generator/generator.js +25 -8
- package/build/component/generator/generator.js.map +1 -1
- package/build/component/generator/generatorAction.d.ts +5 -2
- package/build/component/generator/generatorAction.d.ts.map +1 -1
- package/build/component/generator/generatorAction.js +20 -10
- package/build/component/generator/generatorAction.js.map +1 -1
- package/build/component/generator/officeAddin/question.d.ts.map +1 -1
- package/build/component/generator/officeAddin/question.js +3 -3
- package/build/component/generator/officeAddin/question.js.map +1 -1
- package/build/component/generator/utils.d.ts +2 -0
- package/build/component/generator/utils.d.ts.map +1 -1
- package/build/component/generator/utils.js +64 -2
- package/build/component/generator/utils.js.map +1 -1
- package/build/component/messages.d.ts +3 -2
- package/build/component/messages.d.ts.map +1 -1
- package/build/component/messages.js +3 -2
- package/build/component/messages.js.map +1 -1
- package/build/component/question.d.ts +1 -0
- package/build/component/question.d.ts.map +1 -1
- package/build/component/question.js +15 -11
- package/build/component/question.js.map +1 -1
- package/build/component/resource/appManifest/appManifest.d.ts.map +1 -1
- package/build/component/resource/appManifest/appManifest.js +3 -4
- package/build/component/resource/appManifest/appManifest.js.map +1 -1
- package/build/component/resource/appManifest/appStudio.d.ts.map +1 -1
- package/build/component/resource/appManifest/appStudio.js +8 -12
- package/build/component/resource/appManifest/appStudio.js.map +1 -1
- package/build/component/resource/appManifest/constants.d.ts +1 -0
- package/build/component/resource/appManifest/constants.d.ts.map +1 -1
- package/build/component/resource/appManifest/constants.js +1 -0
- package/build/component/resource/appManifest/constants.js.map +1 -1
- package/build/component/resource/appManifest/errors.d.ts +0 -4
- package/build/component/resource/appManifest/errors.d.ts.map +1 -1
- package/build/component/resource/appManifest/errors.js +0 -7
- package/build/component/resource/appManifest/errors.js.map +1 -1
- package/build/component/resource/appManifest/utils/ManifestUtils.d.ts +2 -1
- package/build/component/resource/appManifest/utils/ManifestUtils.d.ts.map +1 -1
- package/build/component/resource/appManifest/utils/ManifestUtils.js +9 -14
- package/build/component/resource/appManifest/utils/ManifestUtils.js.map +1 -1
- package/build/component/resource/appManifest/utils/telemetry.d.ts +2 -0
- package/build/component/resource/appManifest/utils/telemetry.d.ts.map +1 -1
- package/build/component/resource/appManifest/utils/telemetry.js +2 -0
- package/build/component/resource/appManifest/utils/telemetry.js.map +1 -1
- package/build/component/resource/appManifest/utils/utils.d.ts.map +1 -1
- package/build/component/resource/appManifest/utils/utils.js +5 -1
- package/build/component/resource/appManifest/utils/utils.js.map +1 -1
- package/build/component/resource/azureSql/errors.js +28 -28
- package/build/component/resource/azureSql/errors.js.map +1 -1
- package/build/component/resource/azureStorage/configs.d.ts +1 -1
- package/build/component/resource/spfx/utils/question-helper.js +1 -1
- package/build/component/resource/spfx/utils/question-helper.js.map +1 -1
- package/build/component/utils/ResourceGroupHelper.d.ts +1 -6
- package/build/component/utils/ResourceGroupHelper.d.ts.map +1 -1
- package/build/component/utils/ResourceGroupHelper.js +65 -131
- package/build/component/utils/ResourceGroupHelper.js.map +1 -1
- package/build/component/utils/azureSdkErrorHandler.d.ts +2 -1
- package/build/component/utils/azureSdkErrorHandler.d.ts.map +1 -1
- package/build/component/utils/azureSdkErrorHandler.js.map +1 -1
- package/build/component/utils/depsChecker/bicepChecker.d.ts.map +1 -1
- package/build/component/utils/depsChecker/bicepChecker.js +4 -7
- package/build/component/utils/depsChecker/bicepChecker.js.map +1 -1
- package/build/component/utils/envUtil.d.ts.map +1 -1
- package/build/component/utils/envUtil.js +5 -8
- package/build/component/utils/envUtil.js.map +1 -1
- package/build/component/utils/pathUtils.js +2 -2
- package/build/component/utils/pathUtils.js.map +1 -1
- package/build/component/utils/settingsUtil.js +3 -3
- package/build/component/utils/settingsUtil.js.map +1 -1
- package/build/core/FxCore.d.ts +89 -31
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.js +144 -607
- package/build/core/FxCore.js.map +1 -1
- package/build/core/FxCoreImplementV3.d.ts +12 -3
- package/build/core/FxCoreImplementV3.d.ts.map +1 -1
- package/build/core/FxCoreImplementV3.js +88 -31
- package/build/core/FxCoreImplementV3.js.map +1 -1
- package/build/core/environment.d.ts.map +1 -1
- package/build/core/environment.js +2 -13
- package/build/core/environment.js.map +1 -1
- package/build/core/error.d.ts +1 -13
- package/build/core/error.d.ts.map +1 -1
- package/build/core/error.js +1 -57
- package/build/core/error.js.map +1 -1
- package/build/core/middleware/concurrentLocker.d.ts.map +1 -1
- package/build/core/middleware/concurrentLocker.js +3 -10
- package/build/core/middleware/concurrentLocker.js.map +1 -1
- package/build/core/middleware/envInfoLoaderV3.d.ts +1 -10
- package/build/core/middleware/envInfoLoaderV3.d.ts.map +1 -1
- package/build/core/middleware/envInfoLoaderV3.js +1 -207
- package/build/core/middleware/envInfoLoaderV3.js.map +1 -1
- package/build/core/middleware/projectMigratorV3.d.ts +3 -1
- package/build/core/middleware/projectMigratorV3.d.ts.map +1 -1
- package/build/core/middleware/projectMigratorV3.js +81 -35
- package/build/core/middleware/projectMigratorV3.js.map +1 -1
- package/build/core/middleware/questionModel.d.ts +0 -1
- package/build/core/middleware/questionModel.d.ts.map +1 -1
- package/build/core/middleware/questionModel.js +110 -32
- package/build/core/middleware/questionModel.js.map +1 -1
- package/build/core/middleware/utils/MigrationUtils.d.ts.map +1 -1
- package/build/core/middleware/utils/MigrationUtils.js +1 -0
- package/build/core/middleware/utils/MigrationUtils.js.map +1 -1
- package/build/core/middleware/utils/debug/appLocalYmlGenerator.d.ts +1 -1
- package/build/core/middleware/utils/debug/appLocalYmlGenerator.d.ts.map +1 -1
- package/build/core/middleware/utils/debug/debugV3MigrationUtils.d.ts +2 -0
- package/build/core/middleware/utils/debug/debugV3MigrationUtils.d.ts.map +1 -1
- package/build/core/middleware/utils/debug/debugV3MigrationUtils.js +12 -8
- package/build/core/middleware/utils/debug/debugV3MigrationUtils.js.map +1 -1
- package/build/core/middleware/utils/debug/taskMigrator.d.ts +1 -0
- package/build/core/middleware/utils/debug/taskMigrator.d.ts.map +1 -1
- package/build/core/middleware/utils/debug/taskMigrator.js +134 -37
- package/build/core/middleware/utils/debug/taskMigrator.js.map +1 -1
- package/build/core/middleware/utils/migrationContext.d.ts +1 -0
- package/build/core/middleware/utils/migrationContext.d.ts.map +1 -1
- package/build/core/middleware/utils/migrationContext.js +1 -0
- package/build/core/middleware/utils/migrationContext.js.map +1 -1
- package/build/core/middleware/utils/v3MigrationUtils.d.ts +9 -1
- package/build/core/middleware/utils/v3MigrationUtils.d.ts.map +1 -1
- package/build/core/middleware/utils/v3MigrationUtils.js +49 -18
- package/build/core/middleware/utils/v3MigrationUtils.js.map +1 -1
- package/build/core/question.d.ts +10 -3
- package/build/core/question.d.ts.map +1 -1
- package/build/core/question.js +181 -90
- package/build/core/question.js.map +1 -1
- package/build/core/types.d.ts +3 -3
- package/build/core/types.d.ts.map +1 -1
- package/build/error/arm.d.ts +6 -0
- package/build/error/arm.d.ts.map +1 -1
- package/build/error/arm.js +17 -1
- package/build/error/arm.js.map +1 -1
- package/build/error/azure.d.ts +30 -0
- package/build/error/azure.d.ts.map +1 -1
- package/build/error/azure.js +81 -1
- package/build/error/azure.js.map +1 -1
- package/build/error/common.d.ts +14 -2
- package/build/error/common.d.ts.map +1 -1
- package/build/error/common.js +59 -11
- package/build/error/common.js.map +1 -1
- package/build/error/deploy.d.ts +28 -0
- package/build/error/deploy.d.ts.map +1 -1
- package/build/error/deploy.js +100 -1
- package/build/error/deploy.js.map +1 -1
- package/build/error/script.d.ts +14 -0
- package/build/error/script.d.ts.map +1 -0
- package/build/error/script.js +38 -0
- package/build/error/script.js.map +1 -0
- package/build/error/upgrade.d.ts +5 -0
- package/build/error/upgrade.d.ts.map +1 -0
- package/build/error/upgrade.js +16 -0
- package/build/error/upgrade.js.map +1 -0
- package/build/error/yml.d.ts +1 -1
- package/build/error/yml.d.ts.map +1 -1
- package/build/error/yml.js +5 -5
- package/build/error/yml.js.map +1 -1
- package/package.json +13 -8
- package/resource/package.nls.cs.json +307 -366
- package/resource/package.nls.de.json +307 -366
- package/resource/package.nls.es.json +307 -366
- package/resource/package.nls.fr.json +307 -366
- package/resource/package.nls.it.json +307 -366
- package/resource/package.nls.ja.json +307 -366
- package/resource/package.nls.json +118 -112
- package/resource/package.nls.ko.json +307 -366
- package/resource/package.nls.pl.json +307 -366
- package/resource/package.nls.pt-BR.json +307 -366
- package/resource/package.nls.ru.json +307 -366
- package/resource/package.nls.tr.json +307 -366
- package/resource/package.nls.zh-Hans.json +307 -366
- package/resource/package.nls.zh-Hant.json +307 -366
- package/resource/yaml.schema.json +33 -12
- package/templates/core/v3Migration/csharp.app.local.yml +13 -20
- package/templates/core/v3Migration/csharp.app.yml +20 -9
- package/templates/core/v3Migration/js.ts.app.local.yml +105 -53
- package/templates/core/v3Migration/js.ts.app.yml +149 -54
- package/templates/core/v3Migration/spfx.app.yml +61 -17
- package/templates/core/v3Migration/upgradeReport.md +4 -2
- package/templates/fallback/common.zip +0 -0
- package/templates/fallback/csharp.zip +0 -0
- package/templates/fallback/js.zip +0 -0
- package/templates/fallback/ts.zip +0 -0
- package/templates/plugins/resource/aad/auth/V3/Bot/SSO/SsoOperations.cs +23 -8
- package/templates/plugins/resource/aad/auth/V3/Tab/GetUserProfile.razor +2 -1
- package/build/component/driver/aad/error/invalidParameterUserError.d.ts +0 -5
- package/build/component/driver/aad/error/invalidParameterUserError.d.ts.map +0 -1
- package/build/component/driver/aad/error/invalidParameterUserError.js +0 -29
- package/build/component/driver/aad/error/invalidParameterUserError.js.map +0 -1
- package/build/component/driver/aad/error/unhandledError.d.ts +0 -8
- package/build/component/driver/aad/error/unhandledError.d.ts.map +0 -1
- package/build/component/driver/aad/error/unhandledError.js +0 -33
- package/build/component/driver/aad/error/unhandledError.js.map +0 -1
- package/build/component/driver/botAadApp/error/invalidParameterUserError.d.ts +0 -5
- package/build/component/driver/botAadApp/error/invalidParameterUserError.d.ts.map +0 -1
- package/build/component/driver/botAadApp/error/invalidParameterUserError.js +0 -30
- package/build/component/driver/botAadApp/error/invalidParameterUserError.js.map +0 -1
- package/build/component/driver/botAadApp/error/unhandledError.d.ts +0 -8
- package/build/component/driver/botAadApp/error/unhandledError.d.ts.map +0 -1
- package/build/component/driver/botAadApp/error/unhandledError.js +0 -33
- package/build/component/driver/botAadApp/error/unhandledError.js.map +0 -1
- package/build/component/driver/botFramework/error/unhandledError.d.ts +0 -5
- package/build/component/driver/botFramework/error/unhandledError.d.ts.map +0 -1
- package/build/component/driver/botFramework/error/unhandledError.js +0 -25
- package/build/component/driver/botFramework/error/unhandledError.js.map +0 -1
- package/build/component/driver/file/error/unhandledError.d.ts +0 -5
- package/build/component/driver/file/error/unhandledError.d.ts.map +0 -1
- package/build/component/driver/file/error/unhandledError.js +0 -25
- package/build/component/driver/file/error/unhandledError.js.map +0 -1
- package/build/component/driver/m365/error/FileNotFoundUserError.d.ts +0 -5
- package/build/component/driver/m365/error/FileNotFoundUserError.d.ts.map +0 -1
- package/build/component/driver/m365/error/FileNotFoundUserError.js +0 -22
- package/build/component/driver/m365/error/FileNotFoundUserError.js.map +0 -1
- package/build/component/driver/m365/error/unhandledError.d.ts +0 -5
- package/build/component/driver/m365/error/unhandledError.d.ts.map +0 -1
- package/build/component/driver/m365/error/unhandledError.js +0 -25
- package/build/component/driver/m365/error/unhandledError.js.map +0 -1
- package/build/component/driver/prerequisite/constant.d.ts.map +0 -1
- package/build/component/driver/prerequisite/constant.js.map +0 -1
- package/build/component/driver/prerequisite/error/dotnetInstallationUserError.d.ts +0 -5
- package/build/component/driver/prerequisite/error/dotnetInstallationUserError.d.ts.map +0 -1
- package/build/component/driver/prerequisite/error/dotnetInstallationUserError.js.map +0 -1
- package/build/component/driver/prerequisite/error/funcInstallationUserError.d.ts +0 -5
- package/build/component/driver/prerequisite/error/funcInstallationUserError.d.ts.map +0 -1
- package/build/component/driver/prerequisite/error/funcInstallationUserError.js.map +0 -1
- package/build/component/driver/prerequisite/installDriver.d.ts.map +0 -1
- package/build/component/driver/prerequisite/installDriver.js.map +0 -1
- package/build/component/driver/prerequisite/interfaces/InstallToolArgs.d.ts.map +0 -1
- package/build/component/driver/prerequisite/interfaces/InstallToolArgs.js.map +0 -1
- package/build/core/middleware/envInfoWriter.d.ts +0 -8
- package/build/core/middleware/envInfoWriter.d.ts.map +0 -1
- package/build/core/middleware/envInfoWriter.js +0 -76
- package/build/core/middleware/envInfoWriter.js.map +0 -1
- package/build/core/middleware/envInfoWriterV3.d.ts +0 -6
- package/build/core/middleware/envInfoWriterV3.d.ts.map +0 -1
- package/build/core/middleware/envInfoWriterV3.js +0 -67
- package/build/core/middleware/envInfoWriterV3.js.map +0 -1
- package/build/core/middleware/projectSettingsWriter.d.ts +0 -6
- package/build/core/middleware/projectSettingsWriter.d.ts.map +0 -1
- package/build/core/middleware/projectSettingsWriter.js +0 -52
- package/build/core/middleware/projectSettingsWriter.js.map +0 -1
- /package/build/component/driver/{prerequisite → devTool}/constant.d.ts +0 -0
- /package/build/component/driver/{prerequisite → devTool}/constant.js +0 -0
- /package/build/component/driver/{prerequisite → devTool}/interfaces/InstallToolArgs.js +0 -0
|
@@ -1,90 +1,151 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://aka.ms/teams-toolkit/1.0.0/yaml.schema.json
|
|
2
|
+
# Visit https://aka.ms/teamsfx-v5.0-guide for details on this file
|
|
3
|
+
# Visit https://aka.ms/teamsfx-actions for details on actions
|
|
1
4
|
version: 1.0.0
|
|
2
5
|
|
|
3
6
|
projectId: {{projectId}}
|
|
4
7
|
|
|
5
8
|
environmentFolderPath: ./ {{~environmentFolder}}
|
|
6
9
|
|
|
10
|
+
# Triggered when 'teamsfx provision' is executed
|
|
7
11
|
provision:
|
|
8
12
|
{{#if activePlugins.fx-resource-aad-app-for-teams}}
|
|
9
|
-
|
|
13
|
+
# Creates a new Azure Active Directory (AAD) app to authenticate users if
|
|
14
|
+
# the environment variable that stores clientId is empty
|
|
15
|
+
- uses: aadApp/create
|
|
10
16
|
with:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
# Note: when you run aadApp/update, the AAD app name will be updated
|
|
18
|
+
# based on the definition in manifest. If you don't want to change the
|
|
19
|
+
# name, make sure the name in AAD manifest is the same with the name
|
|
20
|
+
# defined here.
|
|
21
|
+
name: {{aadAppName}}
|
|
22
|
+
# If the value is false, the action will not generate client secret for you
|
|
23
|
+
generateClientSecret: true
|
|
24
|
+
# Authenticate users with a Microsoft work or school account in your
|
|
25
|
+
# organization's Azure AD tenant (for example, single tenant).
|
|
26
|
+
signInAudience: "AzureADMyOrg"
|
|
27
|
+
# Write the information of created resources into environment file for the
|
|
28
|
+
# specified environment variable(s).
|
|
29
|
+
writeToEnvironmentFile:
|
|
15
30
|
clientId: AAD_APP_CLIENT_ID
|
|
16
|
-
|
|
31
|
+
# Environment variable that starts with `SECRET_` will be stored to the
|
|
32
|
+
# .env.{envName}.user environment file
|
|
33
|
+
clientSecret: SECRET_AAD_APP_CLIENT_SECRET
|
|
17
34
|
objectId: AAD_APP_OBJECT_ID
|
|
18
35
|
tenantId: AAD_APP_TENANT_ID
|
|
19
36
|
authority: AAD_APP_OAUTH_AUTHORITY
|
|
20
37
|
authorityHost: AAD_APP_OAUTH_AUTHORITY_HOST
|
|
21
38
|
{{/if}}
|
|
22
|
-
|
|
39
|
+
# Creates a Teams app
|
|
40
|
+
- uses: teamsApp/create
|
|
23
41
|
with:
|
|
24
|
-
|
|
42
|
+
# Teams app name
|
|
43
|
+
name: {{teamsAppName}}
|
|
44
|
+
# Write the information of created resources into environment file for
|
|
45
|
+
# the specified environment variable(s).
|
|
25
46
|
writeToEnvironmentFile:
|
|
26
47
|
teamsAppId: TEAMS_APP_ID
|
|
27
48
|
{{#if activePlugins.fx-resource-bot}}
|
|
28
|
-
|
|
49
|
+
# Create or reuse an existing Azure Active Directory application for bot.
|
|
50
|
+
- uses: botAadApp/create
|
|
29
51
|
with:
|
|
52
|
+
# The Azure Active Directory application's display name
|
|
30
53
|
name: {{appName}}bt$\{{RESOURCE_SUFFIX}}
|
|
31
54
|
writeToEnvironmentFile:
|
|
55
|
+
# The Azure Active Directory application's client id created for bot.
|
|
32
56
|
botId: BOT_ID
|
|
57
|
+
# The Azure Active Directory application's client secret created for bot.
|
|
33
58
|
botPassword: SECRET_BOT_PASSWORD
|
|
34
59
|
{{/if}}
|
|
35
|
-
- uses: arm/deploy
|
|
60
|
+
- uses: arm/deploy # Deploy given ARM templates parallelly.
|
|
36
61
|
with:
|
|
37
|
-
|
|
38
|
-
|
|
62
|
+
# AZURE_SUBSCRIPTION_ID is a built-in environment variable,
|
|
63
|
+
# if its value is empty, TeamsFx will prompt you to select a subscription.
|
|
64
|
+
# Referencing other environment variables with empty values
|
|
65
|
+
# will skip the subscription selection prompt.
|
|
66
|
+
subscriptionId: $\{{AZURE_SUBSCRIPTION_ID}}
|
|
67
|
+
# AZURE_RESOURCE_GROUP_NAME is a built-in environment variable,
|
|
68
|
+
# if its value is empty, TeamsFx will prompt you to select or create one
|
|
69
|
+
# resource group.
|
|
70
|
+
# Referencing other environment variables with empty values
|
|
71
|
+
# will skip the resource group selection prompt.
|
|
72
|
+
resourceGroupName: $\{{AZURE_RESOURCE_GROUP_NAME}}
|
|
39
73
|
templates:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
74
|
+
- path: ./templates/azure/main.bicep # Relative path to this file
|
|
75
|
+
# Relative path to this yaml file.
|
|
76
|
+
# Placeholders will be replaced with corresponding environment
|
|
77
|
+
# variable before ARM deployment.
|
|
78
|
+
parameters: ./templates/azure/azure.parameters.$\{{TEAMSFX_ENV}}.json
|
|
79
|
+
# Required when deploying ARM template
|
|
80
|
+
deploymentName: teams_toolkit_deployment
|
|
81
|
+
# Teams Toolkit will download this bicep CLI version from github for you,
|
|
82
|
+
# will use bicep CLI in PATH if you remove this config.
|
|
83
|
+
bicepCliVersion: v0.4.613
|
|
44
84
|
{{#if activePlugins.fx-resource-frontend-hosting}}
|
|
45
85
|
- uses: azureStorage/enableStaticWebsite
|
|
46
86
|
with:
|
|
47
87
|
storageResourceId: $\{{ {{~placeholderMappings.[state.fx-resource-frontend-hosting.storageResourceId]~}} }}
|
|
48
88
|
indexPage: index.html
|
|
49
89
|
errorPage: error.html
|
|
50
|
-
# Output: N/A
|
|
51
90
|
{{/if}}
|
|
52
91
|
{{#if activePlugins.fx-resource-aad-app-for-teams}}
|
|
53
|
-
|
|
92
|
+
# Apply the AAD manifest to an existing AAD app. Will use the object id in
|
|
93
|
+
# manifest file to determine which AAD app to update.
|
|
94
|
+
- uses: aadApp/update
|
|
54
95
|
with:
|
|
55
|
-
|
|
96
|
+
# Relative path to this file. Environment variables in manifest will
|
|
97
|
+
# be replaced before apply to AAD app
|
|
98
|
+
manifestPath: ./aad.manifest.json
|
|
56
99
|
outputFilePath : ./build/aad.manifest.$\{{TEAMSFX_ENV}}.json
|
|
57
100
|
{{/if}}
|
|
58
|
-
|
|
101
|
+
# Validate using manifest schema
|
|
102
|
+
- uses: teamsApp/validateManifest
|
|
59
103
|
with:
|
|
60
|
-
|
|
61
|
-
|
|
104
|
+
# Path to manifest template
|
|
105
|
+
manifestPath: ./appPackage/manifest.json
|
|
106
|
+
# Build Teams app package with latest env value
|
|
107
|
+
- uses: teamsApp/zipAppPackage
|
|
62
108
|
with:
|
|
63
|
-
|
|
109
|
+
# Path to manifest template
|
|
110
|
+
manifestPath: ./appPackage/manifest.json
|
|
64
111
|
outputZipPath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
65
112
|
outputJsonPath: ./build/appPackage/manifest.$\{{TEAMSFX_ENV}}.json
|
|
66
|
-
|
|
113
|
+
# Validate app package using validation rules
|
|
114
|
+
- uses: teamsApp/validateAppPackage
|
|
67
115
|
with:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
116
|
+
# Relative path to this file. This is the path for built zip file.
|
|
117
|
+
appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
118
|
+
# Apply the Teams app manifest to an existing Teams app in
|
|
119
|
+
# Teams Developer Portal.
|
|
120
|
+
# Will use the app id in manifest file to determine which Teams app to update.
|
|
121
|
+
- uses: teamsApp/update
|
|
122
|
+
with:
|
|
123
|
+
# Relative path to this file. This is the path for built zip file.
|
|
124
|
+
appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
71
125
|
{{#if isM365}}
|
|
72
|
-
|
|
126
|
+
# Extend your Teams app to Outlook and the Microsoft 365 app
|
|
127
|
+
- uses: teamsApp/extendToM365
|
|
73
128
|
with:
|
|
74
|
-
|
|
75
|
-
|
|
129
|
+
# Relative path to the build app package.
|
|
130
|
+
appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
131
|
+
# Write the information of created resources into environment file for
|
|
132
|
+
# the specified environment variable(s).
|
|
133
|
+
writeToEnvironmentFile:
|
|
76
134
|
titleId: M365_TITLE_ID
|
|
77
135
|
appId: M365_APP_ID
|
|
78
136
|
{{/if}}
|
|
79
137
|
|
|
138
|
+
# Triggered when 'teamsfx deploy' is executed
|
|
80
139
|
deploy:
|
|
81
140
|
{{#if activePlugins.fx-resource-frontend-hosting}}
|
|
82
|
-
|
|
141
|
+
# Run npm command
|
|
142
|
+
- uses: cli/runNpmCommand
|
|
83
143
|
name: install tab dependencies
|
|
84
144
|
with:
|
|
85
145
|
workingDirectory: tabs
|
|
86
146
|
args: install
|
|
87
|
-
|
|
147
|
+
# Run npm command
|
|
148
|
+
- uses: cli/runNpmCommand
|
|
88
149
|
name: build tab app
|
|
89
150
|
{{#if activePlugins.fx-resource-aad-app-for-teams}}
|
|
90
151
|
env:
|
|
@@ -104,7 +165,10 @@ deploy:
|
|
|
104
165
|
workingDirectory: tabs
|
|
105
166
|
# Deploy base folder. This folder includes manifest files for AAD app and Teams app that should be ignored using the ignoreFile.
|
|
106
167
|
artifactFolder: build
|
|
107
|
-
# The resource id of the cloud resource to be deployed to.
|
|
168
|
+
# The resource id of the cloud resource to be deployed to.
|
|
169
|
+
# This key will be generated by arm/deploy action automatically.
|
|
170
|
+
# You can replace it with your existing Azure Resource id
|
|
171
|
+
# or add it to your environment variable file.
|
|
108
172
|
resourceId: $\{{ {{~placeholderMappings.[state.fx-resource-frontend-hosting.storageResourceId]~}} }}
|
|
109
173
|
{{/if}}
|
|
110
174
|
{{#if activePlugins.fx-resource-bot}}
|
|
@@ -122,45 +186,56 @@ deploy:
|
|
|
122
186
|
args: run build --if-present
|
|
123
187
|
{{/if}}
|
|
124
188
|
# Deploy your application to Azure Functions using the zip deploy feature.
|
|
125
|
-
# For additional details,
|
|
189
|
+
# For additional details, see at https://aka.ms/zip-deploy-to-azure-functions
|
|
126
190
|
- uses: azureFunctions/zipDeploy
|
|
127
191
|
with:
|
|
128
192
|
workingDirectory: bot
|
|
129
193
|
# Deploy base folder
|
|
130
194
|
artifactFolder: .
|
|
131
|
-
#
|
|
195
|
+
# Ignore file location, leave blank will ignore nothing
|
|
132
196
|
ignoreFile: .funcignore
|
|
133
|
-
# The resource id of the cloud resource to be deployed to.
|
|
197
|
+
# The resource id of the cloud resource to be deployed to.
|
|
198
|
+
# This key will be generated by arm/deploy action automatically.
|
|
199
|
+
# You can replace it with your existing Azure Resource id
|
|
200
|
+
# or add it to your environment variable file.
|
|
134
201
|
resourceId: $\{{ {{~botResourceId~}} }}
|
|
135
202
|
{{else}}
|
|
136
|
-
|
|
203
|
+
# Run npm command
|
|
204
|
+
- uses: cli/runNpmCommand
|
|
137
205
|
name: install bot dependencies
|
|
138
206
|
with:
|
|
139
207
|
workingDirectory: bot
|
|
140
208
|
args: install
|
|
141
209
|
{{#if isTypescript}}
|
|
142
|
-
|
|
210
|
+
# Run npm command
|
|
211
|
+
- uses: cli/runNpmCommand
|
|
143
212
|
name: build bot app
|
|
144
213
|
with:
|
|
145
214
|
workingDirectory: bot
|
|
146
215
|
args: run build --if-present
|
|
147
216
|
{{/if}}
|
|
148
217
|
# Deploy your application to Azure App Service using the zip deploy feature.
|
|
149
|
-
# For additional details,
|
|
218
|
+
# For additional details, refer to https://aka.ms/zip-deploy-to-app-services.
|
|
150
219
|
- uses: azureAppService/zipDeploy
|
|
151
220
|
with:
|
|
152
221
|
workingDirectory: bot
|
|
153
222
|
# Deploy base folder.
|
|
154
223
|
artifactFolder: .
|
|
155
|
-
# The resource id of the cloud resource to be deployed to.
|
|
224
|
+
# The resource id of the cloud resource to be deployed to.
|
|
225
|
+
# This key will be generated by arm/deploy action automatically.
|
|
226
|
+
# You can replace it with your existing Azure Resource id
|
|
227
|
+
# or add it to your environment variable file.
|
|
156
228
|
resourceId: $\{{ {{~botResourceId~}} }}
|
|
157
229
|
{{/if}}
|
|
158
230
|
{{/if}}
|
|
159
231
|
{{#if activePlugins.fx-resource-function}}
|
|
160
|
-
|
|
232
|
+
# Install development tool(s)
|
|
233
|
+
- uses: devTool/install
|
|
161
234
|
with:
|
|
162
235
|
dotnet: true
|
|
163
|
-
|
|
236
|
+
# Write the information of installed development tool(s) into environment
|
|
237
|
+
# file for the specified environment variable(s).
|
|
238
|
+
writeToEnvironmentFile:
|
|
164
239
|
dotnetPath: DOTNET_PATH
|
|
165
240
|
- uses: cli/runNpmCommand
|
|
166
241
|
name: install api dependencies
|
|
@@ -171,7 +246,7 @@ deploy:
|
|
|
171
246
|
with:
|
|
172
247
|
workingDirectory: api
|
|
173
248
|
args: build extensions.csproj -o bin --ignore-failed-sources
|
|
174
|
-
execPath: $\{{ {{~dotnetPath~}} }} # Use dotnet installed by
|
|
249
|
+
execPath: $\{{ {{~dotnetPath~}} }} # Use dotnet installed by devTool/install action
|
|
175
250
|
{{#if isTypescript}}
|
|
176
251
|
- uses: cli/runNpmCommand
|
|
177
252
|
name: build api app
|
|
@@ -180,34 +255,54 @@ deploy:
|
|
|
180
255
|
args: run build --if-present
|
|
181
256
|
{{/if}}
|
|
182
257
|
# Deploy your application to Azure Functions using the zip deploy feature.
|
|
183
|
-
# For additional details,
|
|
258
|
+
# For additional details, see at https://aka.ms/zip-deploy-to-azure-functions
|
|
184
259
|
- uses: azureFunctions/zipDeploy
|
|
185
260
|
with:
|
|
186
261
|
workingDirectory: api
|
|
187
262
|
# Deploy base folder
|
|
188
263
|
artifactFolder: .
|
|
189
|
-
#
|
|
264
|
+
# Ignore file location, leave blank will ignore nothing
|
|
190
265
|
ignoreFile: .funcignore
|
|
191
|
-
# The resource id of the cloud resource to be deployed to.
|
|
266
|
+
# The resource id of the cloud resource to be deployed to.
|
|
267
|
+
# This key will be generated by arm/deploy action automatically.
|
|
268
|
+
# You can replace it with your existing Azure Resource id
|
|
269
|
+
# or add it to your environment variable file.
|
|
192
270
|
resourceId: $\{{ {{~placeholderMappings.[state.fx-resource-function.functionAppResourceId]~}} }}
|
|
193
271
|
{{/if}}
|
|
194
272
|
|
|
273
|
+
# Triggered when 'teamsfx publish' is executed
|
|
195
274
|
publish:
|
|
196
|
-
|
|
275
|
+
# Validate using manifest schema
|
|
276
|
+
- uses: teamsApp/validateManifest
|
|
197
277
|
with:
|
|
198
|
-
|
|
278
|
+
# Path to manifest template
|
|
279
|
+
manifestPath: ./appPackage/manifest.json
|
|
280
|
+
# Build Teams app package with latest env value
|
|
199
281
|
- uses: teamsApp/zipAppPackage
|
|
200
282
|
with:
|
|
201
|
-
|
|
283
|
+
# Path to manifest template
|
|
284
|
+
manifestPath: ./appPackage/manifest.json
|
|
202
285
|
outputZipPath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
203
286
|
outputJsonPath: ./build/appPackage/manifest.$\{{TEAMSFX_ENV}}.json
|
|
204
|
-
|
|
287
|
+
# Validate app package using validation rules
|
|
288
|
+
- uses: teamsApp/validateAppPackage
|
|
205
289
|
with:
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
290
|
+
# Relative path to this file. This is the path for built zip file.
|
|
291
|
+
appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
292
|
+
# Apply the Teams app manifest to an existing Teams app in
|
|
293
|
+
# Teams Developer Portal.
|
|
294
|
+
# Will use the app id in manifest file to determine which Teams app to update.
|
|
295
|
+
- uses: teamsApp/update
|
|
296
|
+
with:
|
|
297
|
+
# Relative path to this file. This is the path for built zip file.
|
|
298
|
+
appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
299
|
+
# Publish the app to
|
|
300
|
+
# Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps)
|
|
301
|
+
# for review and approval
|
|
302
|
+
- uses: teamsApp/publishAppPackage
|
|
210
303
|
with:
|
|
211
304
|
appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
305
|
+
# Write the information of created resources into environment file for
|
|
306
|
+
# the specified environment variable(s).
|
|
212
307
|
writeToEnvironmentFile:
|
|
213
308
|
publishedAppId: TEAMS_APP_PUBLISHED_APP_ID
|
|
@@ -1,27 +1,59 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://aka.ms/teams-toolkit/1.0.0/yaml.schema.json
|
|
2
|
+
# Visit https://aka.ms/teamsfx-v5.0-guide for details on this file
|
|
3
|
+
# Visit https://aka.ms/teamsfx-actions for details on actions
|
|
1
4
|
version: 1.0.0
|
|
2
5
|
|
|
6
|
+
projectId: {{projectId}}
|
|
7
|
+
|
|
3
8
|
environmentFolderPath: ./ {{~environmentFolder}}
|
|
4
9
|
|
|
10
|
+
# Triggered when 'teamsfx provision' is executed
|
|
5
11
|
provision:
|
|
6
|
-
|
|
12
|
+
# Creates a Teams app
|
|
13
|
+
- uses: teamsApp/create
|
|
7
14
|
with:
|
|
8
|
-
|
|
15
|
+
# Teams app name
|
|
16
|
+
name: {{teamsAppName}}
|
|
17
|
+
# Write the information of created resources into environment file for
|
|
18
|
+
# the specified environment variable(s).
|
|
9
19
|
writeToEnvironmentFile:
|
|
10
20
|
teamsAppId: TEAMS_APP_ID
|
|
11
|
-
|
|
21
|
+
# Validate using manifest schema
|
|
22
|
+
- uses: teamsApp/validateManifest
|
|
12
23
|
with:
|
|
13
|
-
|
|
14
|
-
|
|
24
|
+
# Path to manifest template
|
|
25
|
+
manifestPath: ./appPackage/manifest.json
|
|
26
|
+
# Build Teams app package with latest env value
|
|
27
|
+
- uses: teamsApp/zipAppPackage
|
|
15
28
|
with:
|
|
16
|
-
|
|
29
|
+
# Path to manifest template
|
|
30
|
+
manifestPath: ./appPackage/manifest.json
|
|
17
31
|
outputZipPath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
18
32
|
outputJsonPath: ./build/appPackage/manifest.$\{{TEAMSFX_ENV}}.json
|
|
19
|
-
|
|
33
|
+
# Validate app package using validation rules
|
|
34
|
+
- uses: teamsApp/validateAppPackage
|
|
35
|
+
with:
|
|
36
|
+
# Relative path to this file. This is the path for built zip file.
|
|
37
|
+
appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
38
|
+
# Apply the Teams app manifest to an existing Teams app in
|
|
39
|
+
# Teams Developer Portal.
|
|
40
|
+
# Will use the app id in manifest file to determine which Teams app to update.
|
|
41
|
+
- uses: teamsApp/update
|
|
42
|
+
with:
|
|
43
|
+
# Relative path to this file. This is the path for built zip file.
|
|
44
|
+
appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
45
|
+
# Extend your Teams app to Outlook and the Microsoft 365 app
|
|
46
|
+
- uses: teamsApp/extendToM365
|
|
20
47
|
with:
|
|
21
|
-
|
|
48
|
+
# Relative path to the build app package.
|
|
49
|
+
appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
50
|
+
# Write the information of created resources into environment file for
|
|
51
|
+
# the specified environment variable(s).
|
|
22
52
|
writeToEnvironmentFile:
|
|
23
|
-
|
|
53
|
+
titleId: M365_TITLE_ID
|
|
54
|
+
appId: M365_APP_ID
|
|
24
55
|
|
|
56
|
+
# Triggered when 'teamsfx deploy' is executed
|
|
25
57
|
deploy:
|
|
26
58
|
- uses: cli/runNpmCommand
|
|
27
59
|
with:
|
|
@@ -40,26 +72,38 @@ deploy:
|
|
|
40
72
|
createAppCatalogIfNotExist: false
|
|
41
73
|
packageSolutionPath: ./SPFx/config/package-solution.json
|
|
42
74
|
|
|
75
|
+
# Triggered when 'teamsfx publish' is executed
|
|
43
76
|
publish:
|
|
44
|
-
|
|
77
|
+
# Validate using manifest schema
|
|
78
|
+
- uses: teamsApp/validateManifest
|
|
45
79
|
with:
|
|
46
|
-
|
|
80
|
+
# Path to manifest template
|
|
81
|
+
manifestPath: ./appPackage/manifest.json
|
|
82
|
+
# Build Teams app package with latest env value
|
|
47
83
|
- uses: teamsApp/zipAppPackage
|
|
48
84
|
with:
|
|
49
|
-
|
|
85
|
+
# Path to manifest template
|
|
86
|
+
manifestPath: ./appPackage/manifest.json
|
|
50
87
|
outputZipPath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
51
88
|
outputJsonPath: ./build/appPackage/manifest.$\{{TEAMSFX_ENV}}.json
|
|
52
89
|
- uses: teamsApp/copyAppPackageToSPFx
|
|
53
90
|
with:
|
|
54
91
|
appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
55
92
|
spfxFolder: ./SPFx
|
|
56
|
-
|
|
93
|
+
# Apply the Teams app manifest to an existing Teams app in
|
|
94
|
+
# Teams Developer Portal.
|
|
95
|
+
# Will use the app id in manifest file to determine which Teams app to update.
|
|
96
|
+
- uses: teamsApp/update
|
|
57
97
|
with:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
98
|
+
# Relative path to this file. This is the path for built zip file.
|
|
99
|
+
appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
100
|
+
# Publish the app to
|
|
101
|
+
# Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps)
|
|
102
|
+
# for review and approval
|
|
103
|
+
- uses: teamsApp/publishAppPackage
|
|
62
104
|
with:
|
|
63
105
|
appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
|
|
106
|
+
# Write the information of created resources into environment file for
|
|
107
|
+
# the specified environment variable(s).
|
|
64
108
|
writeToEnvironmentFile:
|
|
65
109
|
publishedAppId: TEAMS_APP_PUBLISHED_APP_ID
|
|
@@ -15,6 +15,7 @@ There's no immediate action required from you. This part illustrates what's chan
|
|
|
15
15
|
2. You need to take some manual steps when creating or provisioning new environments for your old project. [Learn More](https://aka.ms/teams-toolkit-5.0-upgrade#environment-management)
|
|
16
16
|
3. You need to manually update `.vscode/launch.json` when launching your app for a certain environment if your current project contains it. [Learn More](https://aka.ms/teams-toolkit-5.0-upgrade#launch-your-app)
|
|
17
17
|
4. You need to provide values to `APIM__PUBLISHEREMAIL` and `APIM__PUBLISHERNAME` environment variable if your current project uses APIM. [Learn More](https://aka.ms/teams-toolkit-5.0-upgrade#provision-apim-service)
|
|
18
|
+
5. You need to manually update `Start local tunnel` task in `.vscode/task.json` if you have customized this task. Teams Toolkit now uses Dev Tunnel as default tunnel solution. [Learn More](https://aka.ms/teams-toolkit-5.0-upgrade#start-tunnel-service)
|
|
18
19
|
|
|
19
20
|
You can visit this [wiki](https://aka.ms/teams-toolkit-5.0-upgrade#feature-changes-that-impact-your-development-flow) to learn more changes to Teams Toolkit.
|
|
20
21
|
|
|
@@ -35,9 +36,10 @@ For more detailed changes, please refer to this [wiki](https://aka.ms/teams-tool
|
|
|
35
36
|
|
|
36
37
|
1. If your project only contains a bot, you may meet error that complains `STATE__FX_RESOURCE_FRONTEND_HOSTING__ENDPOINT` is missing when executing commands. Replace this placeholder with a valid URL in `appPackage/manifest.json` to fix it. [Learn More](https://aka.ms/teams-toolkit-5.0-upgrade#state__fx_resource_frontend_hosting__endpoint-missing-error-in-some-projects)
|
|
37
38
|
|
|
38
|
-
2. If your project is created with
|
|
39
|
+
2. If your project is created with Visual Studio version < 17.4, you may see error `InvalidParameter: Following parameter is missing or invalid for aadApp/create action: name` when executing commands. Please follow [the steps](#how-to-roll-back) to roll back, install VS 17.4 and run upgrade first.
|
|
39
40
|
|
|
40
|
-
3. If your tab app is created with Teams Toolkit 3.2.0 or earlier version, you may see error `simpleAuthEndpoint in configuration is invalid` when remote debugging your app. Please follow this [wiki](
|
|
41
|
+
3. If your tab app is created with Teams Toolkit 3.2.0 or earlier version, you may see error `simpleAuthEndpoint in configuration is invalid` when remote debugging your app. Please follow this [wiki](https://aka.ms/teams-toolkit-5.0-upgrade#simpleauthendpoint-in-configuration-is-invalid) to learn how to mitigate this error.
|
|
42
|
+
4. If your project can be provisioned successfully before, but after upgrade it cannot be provisioned or published by `teamsApp/validateAppPackage` actione, please use the [validation](https://dev.teams.microsoft.com/validation) to check your appPackage zip file and fix the error. [Learn More](https://aka.ms/teams-toolkit-5.0-upgrade#teamsappvalidateapppackage-failed-error)
|
|
41
43
|
|
|
42
44
|
## How to roll back
|
|
43
45
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,22 +1,37 @@
|
|
|
1
1
|
using Microsoft.Bot.Builder;
|
|
2
2
|
using Microsoft.Graph;
|
|
3
|
+
using Microsoft.Kiota.Abstractions.Authentication;
|
|
3
4
|
using Microsoft.TeamsFx.Configuration;
|
|
4
5
|
|
|
5
6
|
namespace {{YOUR_NAMESPACE}}.SSO;
|
|
6
7
|
|
|
8
|
+
public class TokenProvider : IAccessTokenProvider
|
|
9
|
+
{
|
|
10
|
+
private string token { get; set; }
|
|
11
|
+
|
|
12
|
+
public TokenProvider(String token)
|
|
13
|
+
{
|
|
14
|
+
this.token = token;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
public Task<string> GetAuthorizationTokenAsync(Uri uri, Dictionary<string, object> additionalAuthenticationContext = default,
|
|
18
|
+
CancellationToken cancellationToken = default)
|
|
19
|
+
{
|
|
20
|
+
// get the token and return it
|
|
21
|
+
return Task.FromResult(this.token);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
public AllowedHostsValidator AllowedHostsValidator { get; }
|
|
25
|
+
}
|
|
26
|
+
|
|
7
27
|
public static class SsoOperations
|
|
8
28
|
{
|
|
9
29
|
public static async Task ShowUserInfo(ITurnContext stepContext, string token, BotAuthenticationOptions botAuthOptions)
|
|
10
30
|
{
|
|
11
31
|
await stepContext.SendActivityAsync("Retrieving user information from Microsoft Graph ...");
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", token);
|
|
16
|
-
return Task.CompletedTask;
|
|
17
|
-
});
|
|
18
|
-
var graphClient = new GraphServiceClient(authProvider);
|
|
19
|
-
var profile = await graphClient.Me.Request().GetAsync();
|
|
32
|
+
var tokenCredential = new BaseBearerTokenAuthenticationProvider(new TokenProvider(token));
|
|
33
|
+
var graphClient = new GraphServiceClient(tokenCredential);
|
|
34
|
+
var profile = await graphClient.Me.GetAsync();
|
|
20
35
|
await stepContext.SendActivityAsync($"You're logged in as {profile.DisplayName}");
|
|
21
36
|
}
|
|
22
37
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@using System.IO
|
|
2
2
|
@using Azure.Core
|
|
3
3
|
@using Microsoft.Graph
|
|
4
|
+
@using Microsoft.Graph.Models
|
|
4
5
|
@inject TeamsFx teamsfx
|
|
5
6
|
@inject TeamsUserCredential teamsUserCredential
|
|
6
7
|
|
|
@@ -45,7 +46,7 @@
|
|
|
45
46
|
IsLoading = true;
|
|
46
47
|
var graph = GetGraphServiceClient();
|
|
47
48
|
|
|
48
|
-
Profile = await graph.Me.
|
|
49
|
+
Profile = await graph.Me.GetAsync();
|
|
49
50
|
|
|
50
51
|
IsLoading = false;
|
|
51
52
|
ErrorMessage = string.Empty;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { UserError } from "@microsoft/teamsfx-api";
|
|
2
|
-
export declare class InvalidParameterUserError extends UserError {
|
|
3
|
-
constructor(actionName: string, invalidParameters: string | string[], helpLink: string);
|
|
4
|
-
}
|
|
5
|
-
//# sourceMappingURL=invalidParameterUserError.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"invalidParameterUserError.d.ts","sourceRoot":"","sources":["../../../../../src/component/driver/aad/error/invalidParameterUserError.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAMnD,qBAAa,yBAA0B,SAAQ,SAAS;gBAC1C,UAAU,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM;CAevF"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.InvalidParameterUserError = void 0;
|
|
6
|
-
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
7
|
-
const localizeUtils_1 = require("../../../../common/localizeUtils");
|
|
8
|
-
const errorCode = "InvalidParameter";
|
|
9
|
-
const messageKey = "driver.aadApp.error.invalidParameter";
|
|
10
|
-
class InvalidParameterUserError extends teamsfx_api_1.UserError {
|
|
11
|
-
constructor(actionName, invalidParameters, helpLink) {
|
|
12
|
-
let parameterList;
|
|
13
|
-
if (Array.isArray(invalidParameters)) {
|
|
14
|
-
parameterList = invalidParameters.join(", ");
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
parameterList = invalidParameters;
|
|
18
|
-
}
|
|
19
|
-
super({
|
|
20
|
-
source: actionName,
|
|
21
|
-
name: errorCode,
|
|
22
|
-
message: localizeUtils_1.getDefaultString(messageKey, actionName, parameterList),
|
|
23
|
-
displayMessage: localizeUtils_1.getLocalizedString(messageKey, actionName, parameterList),
|
|
24
|
-
helpLink: helpLink,
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.InvalidParameterUserError = InvalidParameterUserError;
|
|
29
|
-
//# sourceMappingURL=invalidParameterUserError.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"invalidParameterUserError.js","sourceRoot":"","sources":["../../../../../src/component/driver/aad/error/invalidParameterUserError.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,wDAAmD;AACnD,oEAAwF;AAExF,MAAM,SAAS,GAAG,kBAAkB,CAAC;AACrC,MAAM,UAAU,GAAG,sCAAsC,CAAC;AAE1D,MAAa,yBAA0B,SAAQ,uBAAS;IACtD,YAAY,UAAkB,EAAE,iBAAoC,EAAE,QAAgB;QACpF,IAAI,aAAa,CAAC;QAClB,IAAI,KAAK,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE;YACpC,aAAa,GAAG,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SAC9C;aAAM;YACL,aAAa,GAAG,iBAAiB,CAAC;SACnC;QACD,KAAK,CAAC;YACJ,MAAM,EAAE,UAAU;YAClB,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,gCAAgB,CAAC,UAAU,EAAE,UAAU,EAAE,aAAa,CAAC;YAChE,cAAc,EAAE,kCAAkB,CAAC,UAAU,EAAE,UAAU,EAAE,aAAa,CAAC;YACzE,QAAQ,EAAE,QAAQ;SACnB,CAAC,CAAC;IACL,CAAC;CACF;AAhBD,8DAgBC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SystemError, UserError } from "@microsoft/teamsfx-api";
|
|
2
|
-
export declare class UnhandledUserError extends UserError {
|
|
3
|
-
constructor(actionName: string, detail: string, helpLink: string);
|
|
4
|
-
}
|
|
5
|
-
export declare class UnhandledSystemError extends SystemError {
|
|
6
|
-
constructor(actionName: string, detail: string);
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=unhandledError.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unhandledError.d.ts","sourceRoot":"","sources":["../../../../../src/component/driver/aad/error/unhandledError.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,WAAW,EAEX,SAAS,EAEV,MAAM,wBAAwB,CAAC;AAMhC,qBAAa,kBAAmB,SAAQ,SAAS;gBACnC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;CAKjE;AAED,qBAAa,oBAAqB,SAAQ,WAAW;gBACvC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;CAI/C"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.UnhandledSystemError = exports.UnhandledUserError = void 0;
|
|
6
|
-
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
7
|
-
const localizeUtils_1 = require("../../../../common/localizeUtils");
|
|
8
|
-
const errorCode = "UnhandledError";
|
|
9
|
-
const messageKey = "error.common.UnhandledError";
|
|
10
|
-
class UnhandledUserError extends teamsfx_api_1.UserError {
|
|
11
|
-
constructor(actionName, detail, helpLink) {
|
|
12
|
-
const errorOptions = generateErrorOptions(actionName, detail);
|
|
13
|
-
errorOptions.helpLink = helpLink;
|
|
14
|
-
super(errorOptions);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.UnhandledUserError = UnhandledUserError;
|
|
18
|
-
class UnhandledSystemError extends teamsfx_api_1.SystemError {
|
|
19
|
-
constructor(actionName, detail) {
|
|
20
|
-
const errorOptions = generateErrorOptions(actionName, detail);
|
|
21
|
-
super(errorOptions);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
exports.UnhandledSystemError = UnhandledSystemError;
|
|
25
|
-
function generateErrorOptions(actionName, detail) {
|
|
26
|
-
return {
|
|
27
|
-
source: actionName,
|
|
28
|
-
name: errorCode,
|
|
29
|
-
message: localizeUtils_1.getDefaultString(messageKey, actionName, detail),
|
|
30
|
-
displayMessage: localizeUtils_1.getLocalizedString(messageKey, actionName, detail),
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=unhandledError.js.map
|