@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
|
@@ -8,9 +8,9 @@ export interface GeneratorContext {
|
|
|
8
8
|
tryLimits?: number;
|
|
9
9
|
timeoutInMs?: number;
|
|
10
10
|
relativePath?: string;
|
|
11
|
-
|
|
11
|
+
url?: string;
|
|
12
12
|
zip?: AdmZip;
|
|
13
|
-
|
|
13
|
+
fallback?: boolean;
|
|
14
14
|
cancelDownloading?: boolean;
|
|
15
15
|
fileNameReplaceFn?: (name: string, data: Buffer) => string;
|
|
16
16
|
fileDataReplaceFn?: (name: string, data: Buffer) => Buffer | string;
|
|
@@ -27,13 +27,16 @@ export declare enum GeneratorActionName {
|
|
|
27
27
|
FetchTemplateUrlWithTag = "FetchTemplatesUrlWithTag",
|
|
28
28
|
FetchZipFromUrl = "FetchZipFromUrl",
|
|
29
29
|
FetchTemplateZipFromLocal = "FetchTemplateZipFromLocal",
|
|
30
|
+
DownloadDirectory = "DownloadDirectory",
|
|
30
31
|
Unzip = "Unzip"
|
|
31
32
|
}
|
|
32
33
|
export declare const fetchTemplateZipFromSourceCodeAction: GeneratorAction;
|
|
34
|
+
export declare const downloadDirectoryAction: GeneratorAction;
|
|
33
35
|
export declare const fetchTemplateUrlWithTagAction: GeneratorAction;
|
|
34
36
|
export declare const fetchZipFromUrlAction: GeneratorAction;
|
|
35
37
|
export declare const fetchTemplateZipFromLocalAction: GeneratorAction;
|
|
36
38
|
export declare const unzipAction: GeneratorAction;
|
|
37
39
|
export declare const TemplateActionSeq: GeneratorAction[];
|
|
38
40
|
export declare const SampleActionSeq: GeneratorAction[];
|
|
41
|
+
export declare const DownloadDirectoryActionSeq: GeneratorAction[];
|
|
39
42
|
//# sourceMappingURL=generatorAction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generatorAction.d.ts","sourceRoot":"","sources":["../../../src/component/generator/generatorAction.ts"],"names":[],"mappings":";AAGA,OAAO,MAAM,MAAM,SAAS,CAAC;AAO7B,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,WAAW,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,
|
|
1
|
+
{"version":3,"file":"generatorAction.d.ts","sourceRoot":"","sources":["../../../src/component/generator/generatorAction.ts"],"names":[],"mappings":";AAGA,OAAO,MAAM,MAAM,SAAS,CAAC;AAO7B,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,WAAW,CAAC;IACzB,SAAS,CAAC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;AAEF,eAAO,MAAM,qBAAqB,EAAE,eAYnC,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,eAc7C,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAczB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,eAAe,EAM9C,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,eAAe,EAAyC,CAAC;AACvF,eAAO,MAAM,0BAA0B,EAAE,eAAe,EAA8B,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
3
|
// Licensed under the MIT license.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.SampleActionSeq = exports.TemplateActionSeq = exports.unzipAction = exports.fetchTemplateZipFromLocalAction = exports.fetchZipFromUrlAction = exports.fetchTemplateUrlWithTagAction = exports.fetchTemplateZipFromSourceCodeAction = exports.GeneratorActionName = void 0;
|
|
5
|
+
exports.DownloadDirectoryActionSeq = exports.SampleActionSeq = exports.TemplateActionSeq = exports.unzipAction = exports.fetchTemplateZipFromLocalAction = exports.fetchZipFromUrlAction = exports.fetchTemplateUrlWithTagAction = exports.downloadDirectoryAction = exports.fetchTemplateZipFromSourceCodeAction = exports.GeneratorActionName = void 0;
|
|
6
6
|
const tslib_1 = require("tslib");
|
|
7
7
|
const adm_zip_1 = tslib_1.__importDefault(require("adm-zip"));
|
|
8
8
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
@@ -17,6 +17,7 @@ var GeneratorActionName;
|
|
|
17
17
|
GeneratorActionName["FetchTemplateUrlWithTag"] = "FetchTemplatesUrlWithTag";
|
|
18
18
|
GeneratorActionName["FetchZipFromUrl"] = "FetchZipFromUrl";
|
|
19
19
|
GeneratorActionName["FetchTemplateZipFromLocal"] = "FetchTemplateZipFromLocal";
|
|
20
|
+
GeneratorActionName["DownloadDirectory"] = "DownloadDirectory";
|
|
20
21
|
GeneratorActionName["Unzip"] = "Unzip";
|
|
21
22
|
})(GeneratorActionName = exports.GeneratorActionName || (exports.GeneratorActionName = {}));
|
|
22
23
|
// * This action is only for debug purpose
|
|
@@ -38,13 +39,22 @@ exports.fetchTemplateZipFromSourceCodeAction = {
|
|
|
38
39
|
context.zip = utils_1.zipFolder(templateSourceCodePath);
|
|
39
40
|
},
|
|
40
41
|
};
|
|
42
|
+
exports.downloadDirectoryAction = {
|
|
43
|
+
name: GeneratorActionName.DownloadDirectory,
|
|
44
|
+
run: async (context) => {
|
|
45
|
+
if (!context.url) {
|
|
46
|
+
throw new error_1.MissKeyError("url");
|
|
47
|
+
}
|
|
48
|
+
await utils_1.downloadDirectory(context.url, context.destination);
|
|
49
|
+
},
|
|
50
|
+
};
|
|
41
51
|
exports.fetchTemplateUrlWithTagAction = {
|
|
42
52
|
name: GeneratorActionName.FetchTemplateUrlWithTag,
|
|
43
53
|
run: async (context) => {
|
|
44
|
-
if (context.zip || context.
|
|
54
|
+
if (context.zip || context.url || context.cancelDownloading) {
|
|
45
55
|
return;
|
|
46
56
|
}
|
|
47
|
-
context.
|
|
57
|
+
context.url = await utils_1.fetchTemplateZipUrl(context.name, context.tryLimits, context.timeoutInMs);
|
|
48
58
|
},
|
|
49
59
|
};
|
|
50
60
|
exports.fetchZipFromUrlAction = {
|
|
@@ -53,10 +63,10 @@ exports.fetchZipFromUrlAction = {
|
|
|
53
63
|
if (context.zip || context.cancelDownloading) {
|
|
54
64
|
return;
|
|
55
65
|
}
|
|
56
|
-
if (!context.
|
|
57
|
-
throw new error_1.MissKeyError("
|
|
66
|
+
if (!context.url) {
|
|
67
|
+
throw new error_1.MissKeyError("url");
|
|
58
68
|
}
|
|
59
|
-
context.zip = await utils_1.fetchZipFromUrl(context.
|
|
69
|
+
context.zip = await utils_1.fetchZipFromUrl(context.url, context.tryLimits, context.timeoutInMs);
|
|
60
70
|
},
|
|
61
71
|
};
|
|
62
72
|
exports.fetchTemplateZipFromLocalAction = {
|
|
@@ -65,11 +75,10 @@ exports.fetchTemplateZipFromLocalAction = {
|
|
|
65
75
|
if (context.zip) {
|
|
66
76
|
return;
|
|
67
77
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
78
|
+
context.fallback = true;
|
|
79
|
+
const fallbackPath = path_1.default.join(folder_1.getTemplatesFolder(), "fallback");
|
|
71
80
|
const fileName = `${context.name}.zip`;
|
|
72
|
-
const zipPath = path_1.default.join(
|
|
81
|
+
const zipPath = path_1.default.join(fallbackPath, fileName);
|
|
73
82
|
const data = await fs_extra_1.default.readFile(zipPath);
|
|
74
83
|
context.zip = new adm_zip_1.default(data);
|
|
75
84
|
},
|
|
@@ -91,4 +100,5 @@ exports.TemplateActionSeq = [
|
|
|
91
100
|
exports.unzipAction,
|
|
92
101
|
];
|
|
93
102
|
exports.SampleActionSeq = [exports.fetchZipFromUrlAction, exports.unzipAction];
|
|
103
|
+
exports.DownloadDirectoryActionSeq = [exports.downloadDirectoryAction];
|
|
94
104
|
//# sourceMappingURL=generatorAction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generatorAction.js","sourceRoot":"","sources":["../../../src/component/generator/generatorAction.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,8DAA6B;AAC7B,wDAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"generatorAction.js","sourceRoot":"","sources":["../../../src/component/generator/generatorAction.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,8DAA6B;AAC7B,wDAAwB;AACxB,mCAAoG;AACpG,gEAA0B;AAC1B,yCAAkD;AAClD,mCAAuC;AACvC,sDAAyD;AAgCzD,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC7B,8FAAuE,CAAA;IACvE,2EAAoD,CAAA;IACpD,0DAAmC,CAAA;IACnC,8EAAuD,CAAA;IACvD,8DAAuC,CAAA;IACvC,sCAAe,CAAA;AACjB,CAAC,EAPW,mBAAmB,GAAnB,2BAAmB,KAAn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C,IAAI,CAAC,CAAC;IACjC,CAAC;CACF,CAAC;AAEW,QAAA,WAAW,GAAoB;IAC1C,IAAI,EAAE,mBAAmB,CAAC,KAAK;IAC/B,GAAG,EAAE,KAAK,EAAE,OAAyB,EAAE,EAAE;QACvC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE;YAChB,MAAM,IAAI,oBAAY,CAAC,KAAK,CAAC,CAAC;SAC/B;QACD,MAAM,aAAK,CACT,OAAO,CAAC,GAAG,EACX,OAAO,CAAC,WAAW,EACnB,OAAO,CAAC,iBAAiB,EACzB,OAAO,CAAC,iBAAiB,EACzB,OAAO,CAAC,YAAY,CACrB,CAAC;IACJ,CAAC;CACF,CAAC;AAEW,QAAA,iBAAiB,GAAsB;IAClD,4CAAoC;IACpC,qCAA6B;IAC7B,6BAAqB;IACrB,uCAA+B;IAC/B,mBAAW;CACZ,CAAC;AAEW,QAAA,eAAe,GAAsB,CAAC,6BAAqB,EAAE,mBAAW,CAAC,CAAC;AAC1E,QAAA,0BAA0B,GAAsB,CAAC,+BAAuB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/component/generator/officeAddin/question.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/component/generator/officeAddin/question.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,cAAc,EACd,MAAM,EACN,UAAU,EACV,SAAS,EACT,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAQhC,eAAO,MAAM,gBAAgB,EAAE,MAAM,UAAU,EAQ1C,CAAC;AAGN,wBAAgB,sBAAsB,IAAI,UAAU,CAUnD;AAED,oBAAY,YAAY;IACtB,qBAAqB,mBAAmB;IACxC,iBAAiB,eAAe;IAChC,0BAA0B,yBAAyB;IACnD,4BAA4B,2BAA2B;IACvD,2BAA2B,0BAA0B;IACrD,kBAAkB,eAAe;CAClC;AAED,eAAO,MAAM,qBAAqB,EAAE,oBAiBnC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,oBAoBhC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,cAIxC,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,kBAQ1C,CAAC;AAEF,eAAO,MAAM,WAAW,WAAY,MAAM,KAAG,MAS5C,CAAC;AAEF,eAAO,MAAM,0BAA0B,QAAO,SA2C7C,CAAC"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getQuestionsForScaffolding = exports.getTemplate = exports.AddinProjectManifestQuestion = exports.AddinProjectFolderQuestion = exports.OfficeHostQuestion = exports.AddinLanguageQuestion = exports.QuestionName = exports.ImportAddinProjectItem = exports.OfficeAddinItems = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
6
5
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
6
|
+
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
7
7
|
const localizeUtils_1 = require("../../../common/localizeUtils");
|
|
8
8
|
const constants_1 = require("../../constants");
|
|
9
9
|
const projectsJsonData_1 = tslib_1.__importDefault(require("./config/projectsJsonData"));
|
|
@@ -12,7 +12,7 @@ const OfficeAddinItems = () => jsonData.getProjectTemplateNames().map((template)
|
|
|
12
12
|
id: template,
|
|
13
13
|
label: localizeUtils_1.getLocalizedString(jsonData.getProjectDisplayName(template)),
|
|
14
14
|
detail: localizeUtils_1.getLocalizedString(jsonData.getProjectDetails(template)),
|
|
15
|
-
|
|
15
|
+
description: localizeUtils_1.getLocalizedString("core.createProjectQuestion.option.description.previewOnWindow"),
|
|
16
16
|
}));
|
|
17
17
|
exports.OfficeAddinItems = OfficeAddinItems;
|
|
18
18
|
// TODO: add localization strings
|
|
@@ -22,7 +22,7 @@ function ImportAddinProjectItem() {
|
|
|
22
22
|
label: localizeUtils_1.getLocalizedString("core.importAddin.label"),
|
|
23
23
|
cliName: "import",
|
|
24
24
|
detail: localizeUtils_1.getLocalizedString("core.importAddin.detail"),
|
|
25
|
-
|
|
25
|
+
description: localizeUtils_1.getLocalizedString("core.createProjectQuestion.option.description.previewOnWindow"),
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
exports.ImportAddinProjectItem = ImportAddinProjectItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"question.js","sourceRoot":"","sources":["../../../../src/component/generator/officeAddin/question.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"question.js","sourceRoot":"","sources":["../../../../src/component/generator/officeAddin/question.ts"],"names":[],"mappings":";;;;AAAA,wDAAwB;AAExB,wDAOgC;AAEhC,iEAAmE;AACnE,+CAA6D;AAC7D,yFAAyD;AAEzD,MAAM,QAAQ,GAAG,IAAI,0BAAgB,EAAE,CAAC;AAEjC,MAAM,gBAAgB,GAAuB,GAAG,EAAE,CACvD,QAAQ,CAAC,uBAAuB,EAAE,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;IACpD,EAAE,EAAE,QAAQ;IACZ,KAAK,EAAE,kCAAkB,CAAC,QAAQ,CAAC,qBAAqB,CAAC,QAAQ,CAAC,CAAC;IACnE,MAAM,EAAE,kCAAkB,CAAC,QAAQ,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IAChE,WAAW,EAAE,kCAAkB,CAC7B,+DAA+D,CAChE;CACF,CAAC,CAAC,CAAC;AARO,QAAA,gBAAgB,oBAQvB;AAEN,iCAAiC;AACjC,SAAgB,sBAAsB;IACpC,OAAO;QACL,EAAE,EAAE,sBAAsB;QAC1B,KAAK,EAAE,kCAAkB,CAAC,wBAAwB,CAAC;QACnD,OAAO,EAAE,QAAQ;QACjB,MAAM,EAAE,kCAAkB,CAAC,yBAAyB,CAAC;QACrD,WAAW,EAAE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AAI,uBAAS,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;IACtD,YAAY,CAAC,SAAS,GAAG;QACvB,SAAS,EAAE,CAAC,KAAc,EAAE,MAAe,EAAE,EAAE;YAC7C,IAAI,CAAC,MAAM,EAAE;gBACX,OAAO,gBAAgB,CAAC;aACzB;YACD,MAAM,GAAG,GAAG,MAAM,CAAC,sCAA0B,CAAC,YAAY,CAAW,CAAC;YACtE,MAAM,cAAc,GAAa;gBAC/B,GAAG,wBAAgB,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;oBACjC,OAAO,IAAI,CAAC,EAAE,CAAC;gBACjB,CAAC,CAAC;aACH,CAAC;YACF,IAAI,cAAc,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBAChC,OAAO,SAAS,CAAC;aAClB;YACD,OAAO,8BAA8B,CAAC;QACxC,CAAC;KACF,CAAC;IACF,YAAY,CAAC,QAAQ,CAAC,IAAI,uBAAS,CAAC,6BAAqB,CAAC,CAAC,CAAC;IAC5D,YAAY,CAAC,QAAQ,CAAC,IAAI,uBAAS,CAAC,0BAAkB,CAAC,CAAC,CAAC;IAEzD,MAAM,IAAI,GAAG,IAAI,uBAAS,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;IAC9C,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAC1B,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;IAE5B,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AA3CW,QAAA,0BAA0B,8BA2CrC"}
|
|
@@ -17,4 +17,6 @@ export declare function renderTemplateFileName(fileName: string, fileData: Buffe
|
|
|
17
17
|
export declare function getSampleInfoFromName(sampleName: string): SampleInfo;
|
|
18
18
|
export declare function getSampleRelativePath(sampleName: string): string;
|
|
19
19
|
export declare function zipFolder(folderPath: string): AdmZip;
|
|
20
|
+
export declare function downloadDirectory(sampleUrl: string, dstPath: string, concurrencyLimits?: number, retryLimits?: number): Promise<void>;
|
|
21
|
+
export declare function runWithLimitedConcurrency<T>(items: T[], callback: (arg: T) => any, concurrencyLimit: number): Promise<void>;
|
|
20
22
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/component/generator/utils.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/component/generator/utils.ts"],"names":[],"mappings":";AAiBA,OAAO,EAAE,UAAU,EAAkB,MAAM,sBAAsB,CAAC;AAClE,OAAO,MAAM,MAAM,SAAS,CAAC;AAC7B,OAAc,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAyB1D,wBAAsB,oBAAoB,CAAC,CAAC,EAC1C,SAAS,EAAE,MAAM,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,EAC1C,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAwB3B;AAED,wBAAsB,sBAAsB,CAAC,CAAC,EAC5C,SAAS,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,EAClE,WAAW,EAAE,MAAM,EACnB,SAAS,SAAI,GACZ,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAe3B;AAeD,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,MAAM,EACZ,SAAS,SAAmB,EAC5B,WAAW,SAAqB,GAC/B,OAAO,CAAC,MAAM,CAAC,CASjB;AAED,wBAAsB,eAAe,CACnC,GAAG,EAAE,MAAM,EACX,SAAS,SAAmB,EAC5B,WAAW,SAAqB,GAC/B,OAAO,CAAC,MAAM,CAAC,CAUjB;AAGD,wBAAsB,KAAK,CACzB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EACf,aAAa,CAAC,EAAE,CAA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ACzB,gBAAgB,EAAE,MAAM,iBAsBzB"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
3
|
// Licensed under the MIT license.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.zipFolder = exports.getSampleRelativePath = exports.getSampleInfoFromName = exports.renderTemplateFileName = exports.escapeEmptyVariable = exports.renderTemplateFileData = exports.unzip = exports.fetchZipFromUrl = exports.fetchTemplateZipUrl = exports.sendRequestWithTimeout = exports.sendRequestWithRetry = void 0;
|
|
5
|
+
exports.runWithLimitedConcurrency = exports.downloadDirectory = exports.zipFolder = exports.getSampleRelativePath = exports.getSampleInfoFromName = exports.renderTemplateFileName = exports.escapeEmptyVariable = exports.renderTemplateFileData = exports.unzip = exports.fetchZipFromUrl = exports.fetchTemplateZipUrl = exports.sendRequestWithTimeout = exports.sendRequestWithRetry = void 0;
|
|
6
6
|
const tslib_1 = require("tslib");
|
|
7
7
|
const mustache_1 = tslib_1.__importStar(require("mustache"));
|
|
8
8
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
@@ -43,7 +43,9 @@ async function sendRequestWithRetry(requestFn, tryLimits) {
|
|
|
43
43
|
if (res.status === 200 || res.status === 201) {
|
|
44
44
|
return res;
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
else {
|
|
47
|
+
error = new Error(`HTTP Request failed: ${JSON.stringify(res)}`);
|
|
48
|
+
}
|
|
47
49
|
status = res.status;
|
|
48
50
|
}
|
|
49
51
|
catch (e) {
|
|
@@ -179,4 +181,64 @@ function zipFolder(folderPath) {
|
|
|
179
181
|
return zip;
|
|
180
182
|
}
|
|
181
183
|
exports.zipFolder = zipFolder;
|
|
184
|
+
async function downloadDirectory(sampleUrl, dstPath, concurrencyLimits = constant_1.sampleConcurrencyLimits, retryLimits = constant_1.sampleDefaultRetryLimits) {
|
|
185
|
+
const urlInfo = parseSampleUrl(sampleUrl);
|
|
186
|
+
const { samplePaths, fileUrlPrefix } = await getSampleFileInfo(urlInfo, retryLimits);
|
|
187
|
+
await downloadSampleFiles(fileUrlPrefix, samplePaths, dstPath, urlInfo.dir, retryLimits, concurrencyLimits);
|
|
188
|
+
}
|
|
189
|
+
exports.downloadDirectory = downloadDirectory;
|
|
190
|
+
function parseSampleUrl(url) {
|
|
191
|
+
const urlParserRegex = /https:\/\/github.com\/([^/]+)\/([^/]+)\/tree\/([^/]+)[/](.*)/;
|
|
192
|
+
const parsed = urlParserRegex.exec(url);
|
|
193
|
+
if (!parsed)
|
|
194
|
+
throw new error_1.ParseUrlError(url);
|
|
195
|
+
const [owner, repository, ref, dir] = parsed.slice(1);
|
|
196
|
+
return { owner, repository, ref, dir };
|
|
197
|
+
}
|
|
198
|
+
async function getSampleFileInfo(urlInfo, retryLimits) {
|
|
199
|
+
const fileInfoUrl = `https://api.github.com/repos/${urlInfo.owner}/${urlInfo.repository}/git/trees/${urlInfo.ref}?recursive=1`;
|
|
200
|
+
const fileInfo = (await sendRequestWithRetry(async () => {
|
|
201
|
+
return await axios_1.default.get(fileInfoUrl);
|
|
202
|
+
}, retryLimits)).data;
|
|
203
|
+
const fileInfoTree = fileInfo.tree;
|
|
204
|
+
const samplePaths = fileInfoTree
|
|
205
|
+
.filter((node) => node.path.startsWith(`${urlInfo.dir}/`) && node.type !== "tree")
|
|
206
|
+
.map((node) => node.path);
|
|
207
|
+
const fileUrlPrefix = `https://raw.githubusercontent.com/${urlInfo.owner}/${urlInfo.repository}/${fileInfo.sha}/`;
|
|
208
|
+
return { samplePaths, fileUrlPrefix };
|
|
209
|
+
}
|
|
210
|
+
async function downloadSampleFiles(fileUrlPrefix, samplePaths, dstPath, relativePath, retryLimits, concurrencyLimits) {
|
|
211
|
+
const downloadCallback = async (samplePath) => {
|
|
212
|
+
const file = await sendRequestWithRetry(async () => {
|
|
213
|
+
return await axios_1.default.get(fileUrlPrefix + samplePath, { responseType: "arraybuffer" });
|
|
214
|
+
}, retryLimits);
|
|
215
|
+
const filePath = path_1.default.join(dstPath, path_1.default.relative(`${relativePath}/`, samplePath));
|
|
216
|
+
await fs.ensureFile(filePath);
|
|
217
|
+
await fs.writeFile(filePath, Buffer.from(file.data));
|
|
218
|
+
};
|
|
219
|
+
await runWithLimitedConcurrency(samplePaths, downloadCallback, concurrencyLimits);
|
|
220
|
+
}
|
|
221
|
+
async function runWithLimitedConcurrency(items, callback, concurrencyLimit) {
|
|
222
|
+
const queue = [];
|
|
223
|
+
for (const item of items) {
|
|
224
|
+
// fire the async function, add its promise to the queue, and remove
|
|
225
|
+
// it from queue when complete
|
|
226
|
+
const p = callback(item)
|
|
227
|
+
.then((res) => {
|
|
228
|
+
queue.splice(queue.indexOf(p), 1);
|
|
229
|
+
return res;
|
|
230
|
+
})
|
|
231
|
+
.catch((err) => {
|
|
232
|
+
throw err;
|
|
233
|
+
});
|
|
234
|
+
queue.push(p);
|
|
235
|
+
// if max concurrent, wait for one to finish
|
|
236
|
+
if (queue.length >= concurrencyLimit) {
|
|
237
|
+
await Promise.race(queue);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
// wait for the rest of the calls to finish
|
|
241
|
+
await Promise.all(queue);
|
|
242
|
+
}
|
|
243
|
+
exports.runWithLimitedConcurrency = runWithLimitedConcurrency;
|
|
182
244
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/component/generator/utils.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,6DAAqD;AACrD,wDAAwB;AACxB,qDAA+B;AAC/B,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/component/generator/utils.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,6DAAqD;AACrD,wDAAwB;AACxB,qDAA+B;AAC/B,yCAUoB;AACpB,kDAAkE;AAClE,8DAA6B;AAC7B,0DAA0D;AA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;IAC9D,CAAC,CAAC;IACF,MAAM,yBAAyB,CAAC,WAAW,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;AACpF,CAAC;AAEM,KAAK,UAAU,yBAAyB,CAC7C,KAAU,EACV,QAAyB,EACzB,gBAAwB;IAExB,MAAM,KAAK,GAAU,EAAE,CAAC;IACxB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;QACxB,oEAAoE;QACpE,8BAA8B;QAC9B,MAAM,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC;aACrB,IAAI,CAAC,CAAC,GAAQ,EAAE,EAAE;YACjB,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;YAClC,OAAO,GAAG,CAAC;QACb,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,GAAQ,EAAE,EAAE;YAClB,MAAM,GAAG,CAAC;QACZ,CAAC,CAAC,CAAC;QACL,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACd,4CAA4C;QAC5C,IAAI,KAAK,CAAC,MAAM,IAAI,gBAAgB,EAAE;YACpC,MAAM,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAC3B;KACF;IACD,2CAA2C;IAC3C,MAAM,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AAC3B,CAAC;AAzBD,8DAyBC"}
|
|
@@ -22,13 +22,14 @@ export declare class ProgressMessages {
|
|
|
22
22
|
static readonly packingCode: () => string;
|
|
23
23
|
static readonly enableStaticWebsite: string;
|
|
24
24
|
static readonly provisionBot: string;
|
|
25
|
-
static readonly generateTemplate: () => string;
|
|
26
|
-
static readonly generateSample: () => string;
|
|
25
|
+
static readonly generateTemplate: (templateName: string) => string;
|
|
26
|
+
static readonly generateSample: (sampleName: string) => string;
|
|
27
27
|
static readonly getDeploymentSrcAndDest: string;
|
|
28
28
|
static readonly clearStorageAccount: string;
|
|
29
29
|
static readonly uploadTabToStorage: string;
|
|
30
30
|
static readonly configureAzureStorageEnableStaticWebsite: string;
|
|
31
31
|
static readonly runCommand: (command: string, directory: string) => string;
|
|
32
|
+
static readonly deployToAzure: (location: string, dist: string) => string;
|
|
32
33
|
}
|
|
33
34
|
export declare class LogMessages {
|
|
34
35
|
static readonly updateFunctionAppSettings: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/component/messages.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAGhD,qBAAa,cAAc;IACzB,MAAM,CAAC,QAAQ,CAAC,WAAW,SAAmD;IAC9E,MAAM,CAAC,QAAQ,CAAC,WAAW,SAAmD;IAC9E,MAAM,CAAC,QAAQ,CAAC,WAAW,SAAmD;IAC9E,MAAM,CAAC,QAAQ,CAAC,WAAW,SAAmD;IAC9E,MAAM,CAAC,QAAQ,CAAC,WAAW,SAAmD;IAC9E,MAAM,CAAC,QAAQ,CAAC,WAAW,SAAmD;IAC9E,MAAM,CAAC,QAAQ,CAAC,YAAY,SAAoD;IAChF,MAAM,CAAC,QAAQ,CAAC,gBAAgB,SAAwD;IACxF,MAAM,CAAC,QAAQ,CAAC,cAAc,SAAsD;IACpF,MAAM,CAAC,QAAQ,CAAC,gBAAgB,SAAwD;IAExF,MAAM,CAAC,QAAQ,CAAC,SAAS,cAAe,MAAM,oCAAsB,MAAM,CACX;CAChE;AAED,qBAAa,gBAAgB;IAC3B,MAAM,CAAC,QAAQ,CAAC,WAAW,SAA0D;IACrF,MAAM,CAAC,QAAQ,CAAC,WAAW,SAA0D;IACrF,MAAM,CAAC,QAAQ,CAAC,WAAW,SAA0D;IACrF,MAAM,CAAC,QAAQ,CAAC,WAAW,SAA0D;IACrF,MAAM,CAAC,QAAQ,CAAC,WAAW,SAA0D;IACrF,MAAM,CAAC,QAAQ,CAAC,WAAW,SAA0D;IACrF,MAAM,CAAC,QAAQ,CAAC,WA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izeUtils_1.getLocalizedString("core.progress
|
|
|
31
31
|
ProgressMessages.packingCode = () => localizeUtils_1.getLocalizedString("core.progress.packingCode");
|
|
32
32
|
ProgressMessages.enableStaticWebsite = localizeUtils_1.getLocalizedString("core.progress.enableStaticWebsite");
|
|
33
33
|
ProgressMessages.provisionBot = localizeUtils_1.getLocalizedString("core.progress.provisionBot");
|
|
34
|
-
ProgressMessages.generateTemplate = () => localizeUtils_1.getLocalizedString("core.progress.generateTemplate.detail");
|
|
35
|
-
ProgressMessages.generateSample = () => localizeUtils_1.getLocalizedString("core.progress.generateSample.detail");
|
|
34
|
+
ProgressMessages.generateTemplate = (templateName) => localizeUtils_1.getLocalizedString("core.progress.generateTemplate.detail", templateName);
|
|
35
|
+
ProgressMessages.generateSample = (sampleName) => localizeUtils_1.getLocalizedString("core.progress.generateSample.detail", sampleName);
|
|
36
36
|
ProgressMessages.getDeploymentSrcAndDest = localizeUtils_1.getLocalizedString("core.progress.getDeploymentSrcAndDest");
|
|
37
37
|
ProgressMessages.clearStorageAccount = localizeUtils_1.getLocalizedString("core.progress.clearStorageAccount");
|
|
38
38
|
ProgressMessages.uploadTabToStorage = localizeUtils_1.getLocalizedString("core.progress.uploadTabToStorage");
|
|
39
39
|
ProgressMessages.configureAzureStorageEnableStaticWebsite = localizeUtils_1.getLocalizedString("core.progress.configureAzureStorage");
|
|
40
40
|
ProgressMessages.runCommand = (command, directory) => localizeUtils_1.getLocalizedString("core.progress.runCommand", command, directory);
|
|
41
|
+
ProgressMessages.deployToAzure = (location, dist) => localizeUtils_1.getLocalizedString("core.progress.deployToAzure", location, dist);
|
|
41
42
|
class LogMessages {
|
|
42
43
|
}
|
|
43
44
|
exports.LogMessages = LogMessages;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/component/messages.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAGlC,2DAA+E;AAE/E,MAAa,cAAc;;AAA3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CAA2B,GAAG,CAAC,OAAe,EAAU,EAAE,CACxE,uCAAuC,OAAO,sBAAsB,CAAC;AACvD,4BAAsB,GAAG,CAAC,OAAe,EAAU,EAAE,CACnE,iCAAiC,OAAO,sBAAsB,CAAC;AACjD,gBAAU,GAAG,CAAC,OAAe,EAAU,EAAE,CAAC,UAAU,OAAO,sBAAsB,CAAC"}
|
|
@@ -69,6 +69,7 @@ export declare function InitInfraProceedQuestion(): SingleSelectQuestion;
|
|
|
69
69
|
export declare function getQuestionsForInit(type: "debug" | "infra", inputs: Inputs): Result<QTreeNode | undefined, FxError>;
|
|
70
70
|
export declare function spfxFolderQuestion(): FolderQuestion;
|
|
71
71
|
export declare function getQuestionsForAddWebpart(inputs: Inputs): Result<QTreeNode | undefined, FxError>;
|
|
72
|
+
export declare function getQuestionsForValidateMethod(inputs: Inputs): Promise<Result<QTreeNode | undefined, FxError>>;
|
|
72
73
|
export declare function getQuestionsForValidateManifest(inputs: Inputs): Promise<Result<QTreeNode | undefined, FxError>>;
|
|
73
74
|
export declare function getQuestionsForValidateAppPackage(inputs: Inputs): Promise<Result<QTreeNode | undefined, FxError>>;
|
|
74
75
|
export declare function getQuestionsForCreateAppPackage(inputs: Inputs): Promise<Result<QTreeNode | undefined, FxError>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../src/component/question.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,SAAS,EAGT,cAAc,EACd,YAAY,EACZ,OAAO,EACP,MAAM,EAEN,IAAI,EACJ,mBAAmB,EAEnB,UAAU,EACV,QAAQ,EAER,SAAS,EAET,MAAM,
|
|
1
|
+
{"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../src/component/question.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,SAAS,EAGT,cAAc,EACd,YAAY,EACZ,OAAO,EACP,MAAM,EAEN,IAAI,EACJ,mBAAmB,EAEnB,UAAU,EACV,QAAQ,EAER,SAAS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AAM,EAAE,MAAM,GACb,OAAO,CAAC,MAAM,CAAC,SAAS,GAAG,SAAS,EAAE,OAAO,CAAC,CAAC,CAKjD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getQuestionsForPreviewWithManifest = exports.getQuestionsForUpdateTeamsApp = exports.getQuestionsForCreateAppPackage = exports.getQuestionsForValidateAppPackage = exports.getQuestionsForValidateManifest = exports.getQuestionsForAddWebpart = exports.spfxFolderQuestion = exports.getQuestionsForInit = exports.InitInfraProceedQuestion = exports.InitDebugProceedQuestion = exports.InitIsSPFxQuestion = exports.InitCapabilityQuestion = exports.InitEditorQuestion = exports.InitOptionNo = exports.InitOptionYes = exports.InitCapabilityBot = exports.InitCapabilityTab = exports.InitEditorVS = exports.InitEditorVSCode = exports.SelectEnvQuestion = exports.getUserEmailQuestion = exports.AskSubscriptionQuestion = exports.DeployPluginSelectQuestion = exports.addCapabilityQuestion = exports.createAddCloudResourceOptions = exports.createAddAzureResourceQuestion = exports.getPlatformRuntime = exports.getPluginCLIName = exports.getNotificationTriggerQuestionNode = exports.getQuestionsForAddFeatureSubCommand = exports.getActionNameByFeatureId = exports.FeatureIdToComponent = exports.FeatureId = exports.getQuestionsForAddResourceV3 = exports.getQuestionsForAddFeatureV3 = exports.checkWetherProvisionSucceeded = exports.getQuestionsForDeployV3 = exports.getQuestionsForProvisionV3 = void 0;
|
|
3
|
+
exports.getQuestionsForPreviewWithManifest = exports.getQuestionsForUpdateTeamsApp = exports.getQuestionsForCreateAppPackage = exports.getQuestionsForValidateAppPackage = exports.getQuestionsForValidateManifest = exports.getQuestionsForValidateMethod = exports.getQuestionsForAddWebpart = exports.spfxFolderQuestion = exports.getQuestionsForInit = exports.InitInfraProceedQuestion = exports.InitDebugProceedQuestion = exports.InitIsSPFxQuestion = exports.InitCapabilityQuestion = exports.InitEditorQuestion = exports.InitOptionNo = exports.InitOptionYes = exports.InitCapabilityBot = exports.InitCapabilityTab = exports.InitEditorVS = exports.InitEditorVSCode = exports.SelectEnvQuestion = exports.getUserEmailQuestion = exports.AskSubscriptionQuestion = exports.DeployPluginSelectQuestion = exports.addCapabilityQuestion = exports.createAddCloudResourceOptions = exports.createAddAzureResourceQuestion = exports.getPlatformRuntime = exports.getPluginCLIName = exports.getNotificationTriggerQuestionNode = exports.getQuestionsForAddFeatureSubCommand = exports.getActionNameByFeatureId = exports.FeatureIdToComponent = exports.FeatureId = exports.getQuestionsForAddResourceV3 = exports.getQuestionsForAddFeatureV3 = exports.checkWetherProvisionSucceeded = exports.getQuestionsForDeployV3 = exports.getQuestionsForProvisionV3 = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
// Copyright (c) Microsoft Corporation.
|
|
6
6
|
// Licensed under the MIT license.
|
|
@@ -740,17 +740,8 @@ function spfxFolderQuestion() {
|
|
|
740
740
|
exports.spfxFolderQuestion = spfxFolderQuestion;
|
|
741
741
|
function getQuestionsForAddWebpart(inputs) {
|
|
742
742
|
const addWebpart = new teamsfx_api_1.QTreeNode({ type: "group" });
|
|
743
|
-
const loadPackage = new teamsfx_api_1.QTreeNode(questions_2.loadPackageVersions);
|
|
744
|
-
const spfxPackage = new teamsfx_api_1.QTreeNode(questions_2.spfxPackageSelectQuestion);
|
|
745
|
-
if (inputs.platform === teamsfx_api_1.Platform.CLI_HELP) {
|
|
746
|
-
addWebpart.addChild(spfxPackage);
|
|
747
|
-
}
|
|
748
|
-
else {
|
|
749
|
-
addWebpart.addChild(loadPackage);
|
|
750
|
-
loadPackage.addChild(spfxPackage);
|
|
751
|
-
}
|
|
752
743
|
const spfxFolder = new teamsfx_api_1.QTreeNode(spfxFolderQuestion());
|
|
753
|
-
|
|
744
|
+
addWebpart.addChild(spfxFolder);
|
|
754
745
|
const webpartName = new teamsfx_api_1.QTreeNode(questions_2.webpartNameQuestion);
|
|
755
746
|
spfxFolder.addChild(webpartName);
|
|
756
747
|
const manifestFile = question_2.selectTeamsAppManifestQuestion(inputs);
|
|
@@ -760,6 +751,19 @@ function getQuestionsForAddWebpart(inputs) {
|
|
|
760
751
|
return teamsfx_api_1.ok(addWebpart);
|
|
761
752
|
}
|
|
762
753
|
exports.getQuestionsForAddWebpart = getQuestionsForAddWebpart;
|
|
754
|
+
async function getQuestionsForValidateMethod(inputs) {
|
|
755
|
+
const group = new teamsfx_api_1.QTreeNode({ type: "group" });
|
|
756
|
+
const question = {
|
|
757
|
+
name: question_2.CoreQuestionNames.ValidateMethod,
|
|
758
|
+
title: localizeUtils_1.getLocalizedString("core.selectValidateMethodQuestion.validate.selectTitle"),
|
|
759
|
+
staticOptions: [constants_2.validateSchemaOption, constants_2.validateAppPackageOption],
|
|
760
|
+
type: "singleSelect",
|
|
761
|
+
};
|
|
762
|
+
const node = new teamsfx_api_1.QTreeNode(question);
|
|
763
|
+
group.addChild(node);
|
|
764
|
+
return teamsfx_api_1.ok(group);
|
|
765
|
+
}
|
|
766
|
+
exports.getQuestionsForValidateMethod = getQuestionsForValidateMethod;
|
|
763
767
|
async function getQuestionsForValidateManifest(inputs) {
|
|
764
768
|
const group = new teamsfx_api_1.QTreeNode({ type: "group" });
|
|
765
769
|
// Manifest path node
|