@microsoft/teamsfx-core 2.0.9-rc-hotfix.2 → 2.0.10-alpha.288b4cdfa.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/client/teamsDevPortalClient.d.ts +127 -0
- package/build/client/teamsDevPortalClient.d.ts.map +1 -0
- package/build/client/teamsDevPortalClient.js +934 -0
- package/build/client/teamsDevPortalClient.js.map +1 -0
- package/build/common/azureUtils.d.ts +3 -0
- package/build/common/azureUtils.d.ts.map +1 -0
- package/build/common/azureUtils.js +50 -0
- package/build/common/azureUtils.js.map +1 -0
- package/build/common/constants.d.ts +11 -1
- package/build/common/constants.d.ts.map +1 -1
- package/build/common/constants.js +44 -3
- package/build/common/constants.js.map +1 -1
- package/build/common/featureFlags.d.ts +4 -5
- package/build/common/featureFlags.d.ts.map +1 -1
- package/build/common/featureFlags.js +2 -10
- package/build/common/featureFlags.js.map +1 -1
- package/build/common/globalState.js +3 -3
- package/build/{core → common}/globalVars.d.ts +2 -1
- package/build/common/globalVars.d.ts.map +1 -0
- package/build/{core → common}/globalVars.js +11 -1
- package/build/common/globalVars.js.map +1 -0
- package/build/common/localizeUtils.js +1 -1
- package/build/common/localizeUtils.js.map +1 -1
- package/build/common/projectSettingsHelper.d.ts +5 -0
- package/build/common/projectSettingsHelper.d.ts.map +1 -1
- package/build/common/projectSettingsHelper.js +31 -1
- package/build/common/projectSettingsHelper.js.map +1 -1
- package/build/common/requestUtils.d.ts +4 -0
- package/build/common/requestUtils.d.ts.map +1 -0
- package/build/common/requestUtils.js +52 -0
- package/build/common/requestUtils.js.map +1 -0
- package/build/common/samples.d.ts +6 -1
- package/build/common/samples.d.ts.map +1 -1
- package/build/common/samples.js +4 -4
- package/build/common/samples.js.map +1 -1
- package/build/common/stringUtils.d.ts +8 -0
- package/build/common/stringUtils.d.ts.map +1 -1
- package/build/common/stringUtils.js +63 -1
- package/build/common/stringUtils.js.map +1 -1
- package/build/common/telemetry.d.ts +30 -11
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +79 -74
- package/build/common/telemetry.js.map +1 -1
- package/build/common/templates-config.json +2 -2
- package/build/common/tools.d.ts +1 -31
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +6 -245
- package/build/common/tools.js.map +1 -1
- package/build/common/utils.d.ts +1 -3
- package/build/common/utils.d.ts.map +1 -1
- package/build/common/utils.js +5 -14
- package/build/common/utils.js.map +1 -1
- package/build/common/wrappedAxiosClient.js +5 -5
- package/build/common/wrappedAxiosClient.js.map +1 -1
- package/build/component/configManager/lifecycle.js +1 -1
- package/build/component/configManager/lifecycle.js.map +1 -1
- package/build/component/configManager/parser.js +1 -1
- package/build/component/configManager/parser.js.map +1 -1
- package/build/component/configManager/validator.js +1 -1
- package/build/component/configManager/validator.js.map +1 -1
- package/build/component/constants.d.ts +3 -223
- package/build/component/constants.d.ts.map +1 -1
- package/build/component/constants.js +4 -247
- package/build/component/constants.js.map +1 -1
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +74 -72
- package/build/component/coordinator/index.js.map +1 -1
- package/build/component/deps-checker/checkerFactory.d.ts.map +1 -0
- package/build/component/deps-checker/checkerFactory.js.map +1 -0
- package/build/{common → component}/deps-checker/constant/helpLink.d.ts +0 -3
- package/build/component/deps-checker/constant/helpLink.d.ts.map +1 -0
- package/build/{common → component}/deps-checker/constant/helpLink.js +1 -6
- package/build/component/deps-checker/constant/helpLink.js.map +1 -0
- package/build/component/deps-checker/constant/index.d.ts.map +1 -0
- package/build/component/deps-checker/constant/index.js.map +1 -0
- package/build/component/deps-checker/constant/message.d.ts.map +1 -0
- package/build/{common → component}/deps-checker/constant/message.js +1 -1
- package/build/component/deps-checker/constant/message.js.map +1 -0
- package/build/component/deps-checker/constant/telemetry.d.ts.map +1 -0
- package/build/component/deps-checker/constant/telemetry.js.map +1 -0
- package/build/component/deps-checker/coreDepsLoggerAdapter.d.ts.map +1 -0
- package/build/component/deps-checker/coreDepsLoggerAdapter.js.map +1 -0
- package/build/component/deps-checker/coreDepsTelemetryAdapter.d.ts.map +1 -0
- package/build/{common → component}/deps-checker/coreDepsTelemetryAdapter.js +4 -4
- package/build/component/deps-checker/coreDepsTelemetryAdapter.js.map +1 -0
- package/build/component/deps-checker/depsChecker.d.ts.map +1 -0
- package/build/component/deps-checker/depsChecker.js.map +1 -0
- package/build/component/deps-checker/depsError.d.ts.map +1 -0
- package/build/component/deps-checker/depsError.js.map +1 -0
- package/build/component/deps-checker/depsLogger.d.ts.map +1 -0
- package/build/component/deps-checker/depsLogger.js.map +1 -0
- package/build/component/deps-checker/depsManager.d.ts.map +1 -0
- package/build/component/deps-checker/depsManager.js.map +1 -0
- package/build/component/deps-checker/depsTelemetry.d.ts.map +1 -0
- package/build/component/deps-checker/depsTelemetry.js.map +1 -0
- package/build/component/deps-checker/index.d.ts.map +1 -0
- package/build/component/deps-checker/index.js.map +1 -0
- package/build/component/deps-checker/internal/dotnetChecker.d.ts.map +1 -0
- package/build/{common → component}/deps-checker/internal/dotnetChecker.js +1 -1
- package/build/component/deps-checker/internal/dotnetChecker.js.map +1 -0
- package/build/component/deps-checker/internal/funcToolChecker.d.ts.map +1 -0
- package/build/{common → component}/deps-checker/internal/funcToolChecker.js +4 -4
- package/build/component/deps-checker/internal/funcToolChecker.js.map +1 -0
- package/build/component/deps-checker/internal/nodeChecker.d.ts.map +1 -0
- package/build/component/deps-checker/internal/nodeChecker.js.map +1 -0
- package/build/component/deps-checker/internal/testToolChecker.d.ts.map +1 -0
- package/build/{common → component}/deps-checker/internal/testToolChecker.js +1 -1
- package/build/component/deps-checker/internal/testToolChecker.js.map +1 -0
- package/build/component/deps-checker/internal/vxTestAppChecker.d.ts.map +1 -0
- package/build/{common → component}/deps-checker/internal/vxTestAppChecker.js +9 -3
- package/build/component/deps-checker/internal/vxTestAppChecker.js.map +1 -0
- package/build/component/deps-checker/util/cpUtils.d.ts.map +1 -0
- package/build/component/deps-checker/util/cpUtils.js.map +1 -0
- package/build/component/deps-checker/util/downloadHelper.d.ts.map +1 -0
- package/build/component/deps-checker/util/downloadHelper.js.map +1 -0
- package/build/component/deps-checker/util/fileHelper.d.ts.map +1 -0
- package/build/component/deps-checker/util/fileHelper.js.map +1 -0
- package/build/component/deps-checker/util/index.d.ts.map +1 -0
- package/build/component/deps-checker/util/index.js.map +1 -0
- package/build/component/deps-checker/util/progressIndicator.d.ts.map +1 -0
- package/build/component/deps-checker/util/progressIndicator.js.map +1 -0
- package/build/component/deps-checker/util/system.d.ts.map +1 -0
- package/build/component/deps-checker/util/system.js.map +1 -0
- package/build/component/developerPortalScaffoldUtils.d.ts +1 -5
- package/build/component/developerPortalScaffoldUtils.d.ts.map +1 -1
- package/build/component/developerPortalScaffoldUtils.js +71 -87
- 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 +17 -18
- package/build/component/driver/aad/create.js.map +1 -1
- package/build/component/driver/aad/utility/aadAppClient.d.ts.map +1 -1
- package/build/component/driver/aad/utility/aadAppClient.js +10 -10
- package/build/component/driver/aad/utility/aadAppClient.js.map +1 -1
- package/build/component/driver/aad/utility/buildAadManifest.d.ts +1 -1
- package/build/component/driver/aad/utility/buildAadManifest.d.ts.map +1 -1
- package/build/component/driver/aad/utility/buildAadManifest.js +11 -11
- package/build/component/driver/aad/utility/buildAadManifest.js.map +1 -1
- package/build/component/driver/add/addWebPart.d.ts +2 -2
- package/build/component/driver/add/addWebPart.d.ts.map +1 -1
- package/build/component/driver/add/addWebPart.js +29 -29
- package/build/component/driver/add/addWebPart.js.map +1 -1
- package/build/component/driver/apiKey/create.d.ts.map +1 -1
- package/build/component/driver/apiKey/create.js +16 -16
- package/build/component/driver/apiKey/create.js.map +1 -1
- package/build/component/driver/apiKey/update.d.ts +1 -1
- package/build/component/driver/apiKey/update.d.ts.map +1 -1
- package/build/component/driver/apiKey/update.js +15 -15
- package/build/component/driver/apiKey/update.js.map +1 -1
- package/build/component/driver/arm/deployImpl.js +1 -1
- package/build/component/driver/arm/deployImpl.js.map +1 -1
- package/build/component/driver/arm/util/bicepChecker.d.ts.map +1 -1
- package/build/component/driver/arm/util/bicepChecker.js +25 -5
- package/build/component/driver/arm/util/bicepChecker.js.map +1 -1
- package/build/component/driver/arm/util/handleError.js +2 -2
- package/build/component/driver/arm/util/handleError.js.map +1 -1
- package/build/component/driver/deploy/azure/azureStorageDeployDriver.js +1 -1
- package/build/component/driver/deploy/azure/azureStorageDeployDriver.js.map +1 -1
- package/build/component/driver/deploy/azure/azureStorageStaticWebsiteConfigDriver.js +1 -1
- package/build/component/driver/deploy/azure/azureStorageStaticWebsiteConfigDriver.js.map +1 -1
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js +1 -1
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js.map +1 -1
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.d.ts +4 -4
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.js +13 -13
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.js.map +1 -1
- package/build/component/driver/deploy/spfx/deployDriver.d.ts +1 -1
- package/build/component/driver/deploy/spfx/deployDriver.d.ts.map +1 -1
- package/build/component/driver/deploy/spfx/deployDriver.js +19 -18
- package/build/component/driver/deploy/spfx/deployDriver.js.map +1 -1
- package/build/component/driver/devTool/error/dotnetInstallationUserError.js +1 -1
- package/build/component/driver/devTool/error/dotnetInstallationUserError.js.map +1 -1
- package/build/component/driver/devTool/error/funcInstallationUserError.js +1 -1
- package/build/component/driver/devTool/error/funcInstallationUserError.js.map +1 -1
- package/build/component/driver/devTool/error/testToolInstallationUserError.js +1 -1
- package/build/component/driver/devTool/error/testToolInstallationUserError.js.map +1 -1
- package/build/component/driver/devTool/installDriver.d.ts +1 -1
- package/build/component/driver/devTool/installDriver.d.ts.map +1 -1
- package/build/component/driver/devTool/installDriver.js +6 -6
- package/build/component/driver/devTool/installDriver.js.map +1 -1
- package/build/component/driver/m365/acquire.js +4 -4
- package/build/component/driver/m365/acquire.js.map +1 -1
- package/build/component/driver/middleware/addSWADeployTelemetry.js +5 -5
- package/build/component/driver/middleware/addSWADeployTelemetry.js.map +1 -1
- package/build/component/driver/middleware/addStartAndEndTelemetry.d.ts.map +1 -1
- package/build/component/driver/middleware/addStartAndEndTelemetry.js +3 -3
- package/build/component/driver/middleware/addStartAndEndTelemetry.js.map +1 -1
- package/build/component/driver/oauth/create.d.ts +1 -1
- package/build/component/driver/oauth/create.d.ts.map +1 -1
- package/build/component/driver/oauth/create.js +23 -24
- package/build/component/driver/oauth/create.js.map +1 -1
- package/build/component/driver/oauth/update.d.ts +1 -1
- package/build/component/driver/oauth/update.d.ts.map +1 -1
- package/build/component/driver/oauth/update.js +15 -15
- package/build/component/driver/oauth/update.js.map +1 -1
- package/build/component/driver/oauth/utility/utility.js +2 -2
- package/build/component/driver/oauth/utility/utility.js.map +1 -1
- package/build/component/driver/script/scriptDriver.js +1 -1
- package/build/component/driver/script/scriptDriver.js.map +1 -1
- package/build/component/driver/teamsApp/appStudio.d.ts +1 -1
- package/build/component/driver/teamsApp/appStudio.d.ts.map +1 -1
- package/build/component/driver/teamsApp/appStudio.js +25 -25
- package/build/component/driver/teamsApp/appStudio.js.map +1 -1
- package/build/component/driver/teamsApp/clients/appStudioClient.d.ts +7 -4
- package/build/component/driver/teamsApp/clients/appStudioClient.d.ts.map +1 -1
- package/build/component/driver/teamsApp/clients/appStudioClient.js +60 -60
- package/build/component/driver/teamsApp/clients/appStudioClient.js.map +1 -1
- package/build/component/driver/teamsApp/configure.d.ts +1 -1
- package/build/component/driver/teamsApp/configure.d.ts.map +1 -1
- package/build/component/driver/teamsApp/configure.js +16 -16
- package/build/component/driver/teamsApp/configure.js.map +1 -1
- package/build/component/driver/teamsApp/constants.d.ts +0 -2
- package/build/component/driver/teamsApp/constants.d.ts.map +1 -1
- package/build/component/driver/teamsApp/constants.js +14 -24
- package/build/component/driver/teamsApp/constants.js.map +1 -1
- package/build/component/driver/teamsApp/create.d.ts +2 -2
- package/build/component/driver/teamsApp/create.d.ts.map +1 -1
- package/build/component/driver/teamsApp/create.js +19 -19
- package/build/component/driver/teamsApp/create.js.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.js +1 -1
- package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.d.ts +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.js +21 -21
- package/build/component/driver/teamsApp/publishAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/teamsappMgr.js +8 -8
- package/build/component/driver/teamsApp/teamsappMgr.js.map +1 -1
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.js +29 -22
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.js.map +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.js +34 -34
- package/build/component/driver/teamsApp/utils/ManifestUtils.js.map +1 -1
- package/build/component/driver/teamsApp/utils/telemetry.d.ts +0 -9
- package/build/component/driver/teamsApp/utils/telemetry.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/telemetry.js +0 -9
- package/build/component/driver/teamsApp/utils/telemetry.js.map +1 -1
- package/build/component/driver/teamsApp/utils/utils.d.ts +1 -1
- package/build/component/driver/teamsApp/utils/utils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/utils.js +1 -1
- package/build/component/driver/teamsApp/utils/utils.js.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.d.ts +2 -5
- package/build/component/driver/teamsApp/validateAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.js +18 -18
- package/build/component/driver/teamsApp/validateAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/validateTestCases.d.ts +3 -3
- package/build/component/driver/teamsApp/validateTestCases.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validateTestCases.js +20 -19
- package/build/component/driver/teamsApp/validateTestCases.js.map +1 -1
- package/build/component/driver/util/utils.d.ts +3 -0
- package/build/component/driver/util/utils.d.ts.map +1 -1
- package/build/component/driver/util/utils.js +16 -1
- package/build/component/driver/util/utils.js.map +1 -1
- package/build/component/driver/util/wrapUtil.d.ts.map +1 -1
- package/build/component/driver/util/wrapUtil.js +8 -5
- package/build/component/driver/util/wrapUtil.js.map +1 -1
- package/build/component/feature/collaboration.d.ts.map +1 -1
- package/build/component/feature/collaboration.js +25 -24
- package/build/component/feature/collaboration.js.map +1 -1
- package/build/component/feature/sso.js +4 -3
- package/build/component/feature/sso.js.map +1 -1
- package/build/component/generator/copilotPlugin/generator.d.ts +10 -2
- package/build/component/generator/copilotPlugin/generator.d.ts.map +1 -1
- package/build/component/generator/copilotPlugin/generator.js +222 -98
- package/build/component/generator/copilotPlugin/generator.js.map +1 -1
- package/build/component/generator/copilotPlugin/helper.d.ts +5 -14
- package/build/component/generator/copilotPlugin/helper.d.ts.map +1 -1
- package/build/component/generator/copilotPlugin/helper.js +60 -110
- package/build/component/generator/copilotPlugin/helper.js.map +1 -1
- package/build/component/generator/generator.d.ts.map +1 -1
- package/build/component/generator/generator.js +7 -7
- package/build/component/generator/generator.js.map +1 -1
- package/build/component/generator/generatorAction.d.ts +1 -1
- package/build/component/generator/generatorAction.d.ts.map +1 -1
- package/build/component/generator/generatorAction.js +8 -16
- package/build/component/generator/generatorAction.js.map +1 -1
- package/build/component/generator/generatorProvider.d.ts.map +1 -1
- package/build/component/generator/generatorProvider.js +6 -2
- package/build/component/generator/generatorProvider.js.map +1 -1
- package/build/component/generator/officeAddin/generator.d.ts +2 -2
- package/build/component/generator/officeAddin/generator.d.ts.map +1 -1
- package/build/component/generator/officeAddin/generator.js +37 -36
- package/build/component/generator/officeAddin/generator.js.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.d.ts +5 -0
- package/build/component/generator/officeAddin/helperMethods.d.ts.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.js +37 -0
- package/build/component/generator/officeAddin/helperMethods.js.map +1 -1
- package/build/component/generator/officeXMLAddin/generator.d.ts +9 -1
- package/build/component/generator/officeXMLAddin/generator.d.ts.map +1 -1
- package/build/component/generator/officeXMLAddin/generator.js +74 -11
- package/build/component/generator/officeXMLAddin/generator.js.map +1 -1
- package/build/component/generator/officeXMLAddin/projectConfig.d.ts +2 -4
- package/build/component/generator/officeXMLAddin/projectConfig.d.ts.map +1 -1
- package/build/component/generator/officeXMLAddin/projectConfig.js +1 -11
- package/build/component/generator/officeXMLAddin/projectConfig.js.map +1 -1
- package/build/component/generator/spfx/depsChecker/generatorChecker.d.ts.map +1 -1
- package/build/component/generator/spfx/depsChecker/generatorChecker.js +8 -7
- package/build/component/generator/spfx/depsChecker/generatorChecker.js.map +1 -1
- package/build/component/generator/spfx/depsChecker/yoChecker.d.ts.map +1 -1
- package/build/component/generator/spfx/depsChecker/yoChecker.js +3 -2
- package/build/component/generator/spfx/depsChecker/yoChecker.js.map +1 -1
- package/build/component/generator/spfx/error.d.ts +0 -1
- package/build/component/generator/spfx/error.d.ts.map +1 -1
- package/build/component/generator/spfx/error.js +1 -5
- package/build/component/generator/spfx/error.js.map +1 -1
- package/build/component/generator/spfx/spfxGenerator.d.ts +2 -2
- package/build/component/generator/spfx/spfxGenerator.d.ts.map +1 -1
- package/build/component/generator/spfx/spfxGenerator.js +27 -29
- package/build/component/generator/spfx/spfxGenerator.js.map +1 -1
- package/build/component/generator/spfx/utils/constants.d.ts +0 -13
- package/build/component/generator/spfx/utils/constants.d.ts.map +1 -1
- package/build/component/generator/spfx/utils/constants.js +1 -16
- package/build/component/generator/spfx/utils/constants.js.map +1 -1
- package/build/component/generator/spfx/utils/telemetry-helper.d.ts.map +1 -1
- package/build/component/generator/spfx/utils/telemetry-helper.js +11 -9
- package/build/component/generator/spfx/utils/telemetry-helper.js.map +1 -1
- package/build/component/generator/spfx/utils/utils.d.ts +1 -1
- package/build/component/generator/spfx/utils/utils.d.ts.map +1 -1
- package/build/component/generator/spfx/utils/utils.js +1 -1
- package/build/component/generator/spfx/utils/utils.js.map +1 -1
- package/build/component/generator/templates/ssrTabGenerator.d.ts.map +1 -1
- package/build/component/generator/templates/ssrTabGenerator.js +5 -5
- package/build/component/generator/templates/ssrTabGenerator.js.map +1 -1
- package/build/component/generator/templates/templateGenerator.d.ts +3 -3
- package/build/component/generator/templates/templateGenerator.d.ts.map +1 -1
- package/build/component/generator/templates/templateGenerator.js +4 -6
- package/build/component/generator/templates/templateGenerator.js.map +1 -1
- package/build/component/generator/templates/templateNames.d.ts +2 -0
- package/build/component/generator/templates/templateNames.d.ts.map +1 -1
- package/build/component/generator/templates/templateNames.js +112 -109
- package/build/component/generator/templates/templateNames.js.map +1 -1
- package/build/component/generator/templates/templateReplaceMap.js +9 -9
- package/build/component/generator/templates/templateReplaceMap.js.map +1 -1
- package/build/component/generator/utils.d.ts +4 -12
- package/build/component/generator/utils.d.ts.map +1 -1
- package/build/component/generator/utils.js +48 -79
- package/build/component/generator/utils.js.map +1 -1
- package/build/{common → component}/local/constants.d.ts +1 -0
- package/build/component/local/constants.d.ts.map +1 -0
- package/build/{common → component}/local/constants.js +1 -0
- package/build/component/local/constants.js.map +1 -0
- package/build/component/local/index.d.ts.map +1 -0
- package/build/component/local/index.js.map +1 -0
- package/build/component/local/localCertificateManager.d.ts.map +1 -0
- package/build/{common → component}/local/localCertificateManager.js +2 -2
- package/build/component/local/localCertificateManager.js.map +1 -0
- package/build/component/local/localEnvManager.d.ts.map +1 -0
- package/build/component/local/localEnvManager.js.map +1 -0
- package/build/component/local/localTelemetryReporter.d.ts.map +1 -0
- package/build/{common → component}/local/localTelemetryReporter.js +1 -1
- package/build/component/local/localTelemetryReporter.js.map +1 -0
- package/build/component/local/npmLogHelper.d.ts.map +1 -0
- package/build/component/local/npmLogHelper.js.map +1 -0
- package/build/component/local/packageJsonHelper.d.ts.map +1 -0
- package/build/component/local/packageJsonHelper.js.map +1 -0
- package/build/component/local/portChecker.d.ts.map +1 -0
- package/build/{common → component}/local/portChecker.js +2 -2
- package/build/component/local/portChecker.js.map +1 -0
- package/build/component/local/process.d.ts.map +1 -0
- package/build/component/local/process.js.map +1 -0
- package/build/component/local/taskDefinition.d.ts.map +1 -0
- package/build/{common → component}/local/taskDefinition.js +3 -3
- package/build/component/local/taskDefinition.js.map +1 -0
- package/build/component/m365/constants.d.ts.map +1 -0
- package/build/component/m365/constants.js.map +1 -0
- package/build/component/m365/errors.d.ts.map +1 -0
- package/build/{common → component}/m365/errors.js +1 -1
- package/build/component/m365/errors.js.map +1 -0
- package/build/{common → component}/m365/launchHelper.d.ts +1 -1
- package/build/component/m365/launchHelper.d.ts.map +1 -0
- package/build/{common → component}/m365/launchHelper.js +13 -13
- package/build/component/m365/launchHelper.js.map +1 -0
- package/build/component/m365/packageService.d.ts.map +1 -0
- package/build/{common → component}/m365/packageService.js +12 -12
- package/build/component/m365/packageService.js.map +1 -0
- package/build/component/m365/serviceConstant.d.ts +3 -0
- package/build/component/m365/serviceConstant.d.ts.map +1 -0
- package/build/component/m365/serviceConstant.js +8 -0
- package/build/component/m365/serviceConstant.js.map +1 -0
- package/build/component/middleware/actionExecutionMW.d.ts +1 -1
- package/build/component/middleware/actionExecutionMW.d.ts.map +1 -1
- package/build/component/middleware/actionExecutionMW.js +9 -9
- package/build/component/middleware/actionExecutionMW.js.map +1 -1
- package/build/component/middleware/envMW.js +4 -4
- package/build/component/middleware/envMW.js.map +1 -1
- package/build/component/middleware/questionMW.js +1 -1
- package/build/component/middleware/questionMW.js.map +1 -1
- package/build/component/migrate.d.ts +32 -0
- package/build/component/migrate.d.ts.map +1 -1
- package/build/component/migrate.js +109 -32
- package/build/component/migrate.js.map +1 -1
- package/build/component/provisionUtils.d.ts.map +1 -1
- package/build/component/provisionUtils.js +5 -6
- package/build/component/provisionUtils.js.map +1 -1
- package/build/component/resource/botService/appStudio/appStudioClient.d.ts.map +1 -1
- package/build/component/resource/botService/appStudio/appStudioClient.js +12 -11
- package/build/component/resource/botService/appStudio/appStudioClient.js.map +1 -1
- package/build/component/resource/botService/botRegistration/botFrameworkRegistration.d.ts +1 -1
- package/build/component/resource/botService/botRegistration/botFrameworkRegistration.d.ts.map +1 -1
- package/build/component/resource/botService/botRegistration/botFrameworkRegistration.js +9 -6
- package/build/component/resource/botService/botRegistration/botFrameworkRegistration.js.map +1 -1
- package/build/component/resource/botService/constants.d.ts +0 -13
- package/build/component/resource/botService/constants.d.ts.map +1 -1
- package/build/component/resource/botService/constants.js +1 -15
- package/build/component/resource/botService/constants.js.map +1 -1
- package/build/component/telemetry.d.ts.map +1 -1
- package/build/component/telemetry.js +6 -7
- package/build/component/telemetry.js.map +1 -1
- package/build/component/utils/ResourceGroupHelper.d.ts +10 -2
- package/build/component/utils/ResourceGroupHelper.d.ts.map +1 -1
- package/build/component/utils/ResourceGroupHelper.js +135 -42
- package/build/component/utils/ResourceGroupHelper.js.map +1 -1
- package/build/component/utils/charsetUtils.d.ts +1 -1
- package/build/component/utils/charsetUtils.d.ts.map +1 -1
- package/build/component/utils/charsetUtils.js +3 -1
- package/build/component/utils/charsetUtils.js.map +1 -1
- package/build/component/utils/depsChecker/common.d.ts +1 -3
- package/build/component/utils/depsChecker/common.d.ts.map +1 -1
- package/build/component/utils/depsChecker/common.js +0 -2
- package/build/component/utils/depsChecker/common.js.map +1 -1
- package/build/component/utils/envUtil.js +2 -2
- package/build/component/utils/envUtil.js.map +1 -1
- package/build/component/utils/metadataUtil.js +1 -1
- package/build/component/utils/metadataUtil.js.map +1 -1
- package/build/component/utils/pathUtils.d.ts.map +1 -1
- package/build/component/utils/pathUtils.js +9 -11
- package/build/component/utils/pathUtils.js.map +1 -1
- package/build/component/utils/settingsUtil.js +1 -1
- package/build/component/utils/settingsUtil.js.map +1 -1
- package/build/component/utils/teamsFxTelemetryReporter.d.ts.map +1 -1
- package/build/component/utils/teamsFxTelemetryReporter.js +6 -9
- package/build/component/utils/teamsFxTelemetryReporter.js.map +1 -1
- package/build/core/FxCore.d.ts +3 -4
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.js +74 -103
- package/build/core/FxCore.js.map +1 -1
- package/build/core/callback.d.ts +2 -2
- package/build/core/callback.d.ts.map +1 -1
- package/build/core/callback.js.map +1 -1
- package/build/core/collaborator.d.ts.map +1 -1
- package/build/core/collaborator.js +9 -11
- package/build/core/collaborator.js.map +1 -1
- package/build/core/crypto.d.ts.map +1 -1
- package/build/core/crypto.js +1 -2
- package/build/core/crypto.js.map +1 -1
- package/build/core/environmentName.d.ts +0 -1
- package/build/core/environmentName.d.ts.map +1 -1
- package/build/core/environmentName.js +0 -2
- package/build/core/environmentName.js.map +1 -1
- package/build/core/middleware/concurrentLocker.d.ts.map +1 -1
- package/build/core/middleware/concurrentLocker.js +11 -12
- package/build/core/middleware/concurrentLocker.js.map +1 -1
- package/build/core/middleware/errorHandler.js +1 -1
- package/build/core/middleware/errorHandler.js.map +1 -1
- package/build/core/middleware/projectMigratorV3.d.ts +5 -1
- package/build/core/middleware/projectMigratorV3.d.ts.map +1 -1
- package/build/core/middleware/projectMigratorV3.js +32 -28
- package/build/core/middleware/projectMigratorV3.js.map +1 -1
- package/build/core/middleware/projectSettingsLoader.js +1 -1
- package/build/core/middleware/projectSettingsLoader.js.map +1 -1
- package/build/core/middleware/projectVersionChecker.js +5 -5
- package/build/core/middleware/projectVersionChecker.js.map +1 -1
- package/build/core/middleware/utils/MigrationUtils.js +1 -1
- package/build/core/middleware/utils/MigrationUtils.js.map +1 -1
- package/build/core/middleware/utils/appYmlGenerator.d.ts +1 -0
- package/build/core/middleware/utils/appYmlGenerator.d.ts.map +1 -1
- package/build/core/middleware/utils/appYmlGenerator.js +12 -6
- package/build/core/middleware/utils/appYmlGenerator.js.map +1 -1
- package/build/core/middleware/utils/debug/taskMigrator.js +2 -2
- package/build/core/middleware/utils/debug/taskMigrator.js.map +1 -1
- package/build/core/middleware/utils/v3MigrationUtils.js +4 -4
- package/build/core/middleware/utils/v3MigrationUtils.js.map +1 -1
- package/build/core/middleware/videoFilterAppBlocker.d.ts +2 -0
- package/build/core/middleware/videoFilterAppBlocker.d.ts.map +1 -1
- package/build/core/middleware/videoFilterAppBlocker.js +21 -5
- package/build/core/middleware/videoFilterAppBlocker.js.map +1 -1
- package/build/core/telemetry.d.ts +0 -5
- package/build/core/telemetry.d.ts.map +1 -1
- package/build/core/telemetry.js +9 -17
- package/build/core/telemetry.js.map +1 -1
- package/build/error/common.d.ts +32 -0
- package/build/error/common.d.ts.map +1 -1
- package/build/error/common.js +101 -2
- package/build/error/common.js.map +1 -1
- package/build/error/teamsApp.d.ts +3 -0
- package/build/error/teamsApp.d.ts.map +1 -1
- package/build/error/teamsApp.js +12 -1
- package/build/error/teamsApp.js.map +1 -1
- package/build/error/yml.js +1 -1
- package/build/error/yml.js.map +1 -1
- package/build/index.d.ts +56 -36
- package/build/index.d.ts.map +1 -1
- package/build/index.js +125 -52
- package/build/index.js.map +1 -1
- package/build/question/constants.d.ts +249 -1
- package/build/question/constants.d.ts.map +1 -1
- package/build/question/constants.js +1091 -11
- package/build/question/constants.js.map +1 -1
- package/build/question/create.d.ts +10 -150
- package/build/question/create.d.ts.map +1 -1
- package/build/question/create.js +277 -1239
- package/build/question/create.js.map +1 -1
- package/build/question/index.d.ts +1 -3
- package/build/question/index.d.ts.map +1 -1
- package/build/question/index.js +2 -6
- package/build/question/index.js.map +1 -1
- package/build/question/inputs/CreateProjectInputs.d.ts +4 -4
- package/build/question/inputs/CreateProjectInputs.d.ts.map +1 -1
- package/build/question/options/CreateProjectOptions.js +14 -14
- package/build/question/options/CreateProjectOptions.js.map +1 -1
- package/build/question/other.d.ts +2 -28
- package/build/question/other.d.ts.map +1 -1
- package/build/question/other.js +66 -272
- package/build/question/other.js.map +1 -1
- package/package.json +11 -9
- package/resource/deps-checker/dotnet-install.ps1 +912 -423
- package/resource/deps-checker/dotnet-install.sh +876 -238
- package/resource/package.nls.json +7 -22
- package/resource/yaml-schema/v1.6/yaml.schema.json +1829 -0
- package/resource/yaml-schema/yaml.schema.json +46 -1
- package/templates/core/v3Migration/js.ts.app.local.yml +3 -3
- package/templates/fallback/common.zip +0 -0
- package/templates/fallback/csharp.zip +0 -0
- package/templates/fallback/js.zip +0 -0
- package/templates/fallback/python.zip +0 -0
- package/templates/fallback/ts.zip +0 -0
- package/templates/plugins/resource/aad/auth/V3/aad.manifest.template.json +6 -0
- package/templates/plugins/resource/aad/manifest/aad.template.json +6 -0
- package/templates/plugins/resource/aad/manifest/bot/aad.manifest.template.json +6 -0
- package/templates/plugins/resource/aad/manifest/tab/aad.manifest.template.json +6 -0
- package/build/common/deps-checker/checkerFactory.d.ts.map +0 -1
- package/build/common/deps-checker/checkerFactory.js.map +0 -1
- package/build/common/deps-checker/constant/helpLink.d.ts.map +0 -1
- package/build/common/deps-checker/constant/helpLink.js.map +0 -1
- package/build/common/deps-checker/constant/index.d.ts.map +0 -1
- package/build/common/deps-checker/constant/index.js.map +0 -1
- package/build/common/deps-checker/constant/message.d.ts.map +0 -1
- package/build/common/deps-checker/constant/message.js.map +0 -1
- package/build/common/deps-checker/constant/telemetry.d.ts.map +0 -1
- package/build/common/deps-checker/constant/telemetry.js.map +0 -1
- package/build/common/deps-checker/coreDepsLoggerAdapter.d.ts.map +0 -1
- package/build/common/deps-checker/coreDepsLoggerAdapter.js.map +0 -1
- package/build/common/deps-checker/coreDepsTelemetryAdapter.d.ts.map +0 -1
- package/build/common/deps-checker/coreDepsTelemetryAdapter.js.map +0 -1
- package/build/common/deps-checker/depsChecker.d.ts.map +0 -1
- package/build/common/deps-checker/depsChecker.js.map +0 -1
- package/build/common/deps-checker/depsError.d.ts.map +0 -1
- package/build/common/deps-checker/depsError.js.map +0 -1
- package/build/common/deps-checker/depsLogger.d.ts.map +0 -1
- package/build/common/deps-checker/depsLogger.js.map +0 -1
- package/build/common/deps-checker/depsManager.d.ts.map +0 -1
- package/build/common/deps-checker/depsManager.js.map +0 -1
- package/build/common/deps-checker/depsTelemetry.d.ts.map +0 -1
- package/build/common/deps-checker/depsTelemetry.js.map +0 -1
- package/build/common/deps-checker/index.d.ts.map +0 -1
- package/build/common/deps-checker/index.js.map +0 -1
- package/build/common/deps-checker/internal/dotnetChecker.d.ts.map +0 -1
- package/build/common/deps-checker/internal/dotnetChecker.js.map +0 -1
- package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +0 -1
- package/build/common/deps-checker/internal/funcToolChecker.js.map +0 -1
- package/build/common/deps-checker/internal/nodeChecker.d.ts.map +0 -1
- package/build/common/deps-checker/internal/nodeChecker.js.map +0 -1
- package/build/common/deps-checker/internal/testToolChecker.d.ts.map +0 -1
- package/build/common/deps-checker/internal/testToolChecker.js.map +0 -1
- package/build/common/deps-checker/internal/vxTestAppChecker.d.ts.map +0 -1
- package/build/common/deps-checker/internal/vxTestAppChecker.js.map +0 -1
- package/build/common/deps-checker/util/cpUtils.d.ts.map +0 -1
- package/build/common/deps-checker/util/cpUtils.js.map +0 -1
- package/build/common/deps-checker/util/downloadHelper.d.ts.map +0 -1
- package/build/common/deps-checker/util/downloadHelper.js.map +0 -1
- package/build/common/deps-checker/util/fileHelper.d.ts.map +0 -1
- package/build/common/deps-checker/util/fileHelper.js.map +0 -1
- package/build/common/deps-checker/util/index.d.ts.map +0 -1
- package/build/common/deps-checker/util/index.js.map +0 -1
- package/build/common/deps-checker/util/progressIndicator.d.ts.map +0 -1
- package/build/common/deps-checker/util/progressIndicator.js.map +0 -1
- package/build/common/deps-checker/util/system.d.ts.map +0 -1
- package/build/common/deps-checker/util/system.js.map +0 -1
- package/build/common/local/constants.d.ts.map +0 -1
- package/build/common/local/constants.js.map +0 -1
- package/build/common/local/index.d.ts.map +0 -1
- package/build/common/local/index.js.map +0 -1
- package/build/common/local/localCertificateManager.d.ts.map +0 -1
- package/build/common/local/localCertificateManager.js.map +0 -1
- package/build/common/local/localEnvManager.d.ts.map +0 -1
- package/build/common/local/localEnvManager.js.map +0 -1
- package/build/common/local/localTelemetryReporter.d.ts.map +0 -1
- package/build/common/local/localTelemetryReporter.js.map +0 -1
- package/build/common/local/npmLogHelper.d.ts.map +0 -1
- package/build/common/local/npmLogHelper.js.map +0 -1
- package/build/common/local/packageJsonHelper.d.ts.map +0 -1
- package/build/common/local/packageJsonHelper.js.map +0 -1
- package/build/common/local/portChecker.d.ts.map +0 -1
- package/build/common/local/portChecker.js.map +0 -1
- package/build/common/local/process.d.ts.map +0 -1
- package/build/common/local/process.js.map +0 -1
- package/build/common/local/taskDefinition.d.ts.map +0 -1
- package/build/common/local/taskDefinition.js.map +0 -1
- package/build/common/m365/constants.d.ts.map +0 -1
- package/build/common/m365/constants.js.map +0 -1
- package/build/common/m365/errors.d.ts.map +0 -1
- package/build/common/m365/errors.js.map +0 -1
- package/build/common/m365/launchHelper.d.ts.map +0 -1
- package/build/common/m365/launchHelper.js.map +0 -1
- package/build/common/m365/packageService.d.ts.map +0 -1
- package/build/common/m365/packageService.js.map +0 -1
- package/build/common/m365/serviceConstant.d.ts +0 -3
- package/build/common/m365/serviceConstant.d.ts.map +0 -1
- package/build/common/m365/serviceConstant.js +0 -8
- package/build/common/m365/serviceConstant.js.map +0 -1
- package/build/common/projectSettingsHelperV3.d.ts +0 -2
- package/build/common/projectSettingsHelperV3.d.ts.map +0 -1
- package/build/common/projectSettingsHelperV3.js +0 -15
- package/build/common/projectSettingsHelperV3.js.map +0 -1
- package/build/component/utils.d.ts +0 -12
- package/build/component/utils.d.ts.map +0 -1
- package/build/component/utils.js +0 -136
- package/build/component/utils.js.map +0 -1
- package/build/component/workflow.d.ts +0 -4
- package/build/component/workflow.d.ts.map +0 -1
- package/build/component/workflow.js +0 -18
- package/build/component/workflow.js.map +0 -1
- package/build/core/error.d.ts +0 -32
- package/build/core/error.d.ts.map +0 -1
- package/build/core/error.js +0 -122
- package/build/core/error.js.map +0 -1
- package/build/core/globalVars.d.ts.map +0 -1
- package/build/core/globalVars.js.map +0 -1
- package/build/failpoint/index.d.ts +0 -3
- package/build/failpoint/index.d.ts.map +0 -1
- package/build/failpoint/index.js +0 -11
- package/build/failpoint/index.js.map +0 -1
- package/build/failpoint/marker.d.ts +0 -13
- package/build/failpoint/marker.d.ts.map +0 -1
- package/build/failpoint/marker.js +0 -8
- package/build/failpoint/marker.js.map +0 -1
- package/build/failpoint/runtime.d.ts +0 -12
- package/build/failpoint/runtime.d.ts.map +0 -1
- package/build/failpoint/runtime.js +0 -67
- package/build/failpoint/runtime.js.map +0 -1
- package/build/question/questionNames.d.ts +0 -78
- package/build/question/questionNames.d.ts.map +0 -1
- package/build/question/questionNames.js +0 -85
- package/build/question/questionNames.js.map +0 -1
- package/build/question/util.d.ts +0 -2
- package/build/question/util.d.ts.map +0 -1
- package/build/question/util.js +0 -18
- package/build/question/util.js.map +0 -1
- /package/build/{common → component}/deps-checker/checkerFactory.d.ts +0 -0
- /package/build/{common → component}/deps-checker/checkerFactory.js +0 -0
- /package/build/{common → component}/deps-checker/constant/index.d.ts +0 -0
- /package/build/{common → component}/deps-checker/constant/index.js +0 -0
- /package/build/{common → component}/deps-checker/constant/message.d.ts +0 -0
- /package/build/{common → component}/deps-checker/constant/telemetry.d.ts +0 -0
- /package/build/{common → component}/deps-checker/constant/telemetry.js +0 -0
- /package/build/{common → component}/deps-checker/coreDepsLoggerAdapter.d.ts +0 -0
- /package/build/{common → component}/deps-checker/coreDepsLoggerAdapter.js +0 -0
- /package/build/{common → component}/deps-checker/coreDepsTelemetryAdapter.d.ts +0 -0
- /package/build/{common → component}/deps-checker/depsChecker.d.ts +0 -0
- /package/build/{common → component}/deps-checker/depsChecker.js +0 -0
- /package/build/{common → component}/deps-checker/depsError.d.ts +0 -0
- /package/build/{common → component}/deps-checker/depsError.js +0 -0
- /package/build/{common → component}/deps-checker/depsLogger.d.ts +0 -0
- /package/build/{common → component}/deps-checker/depsLogger.js +0 -0
- /package/build/{common → component}/deps-checker/depsManager.d.ts +0 -0
- /package/build/{common → component}/deps-checker/depsManager.js +0 -0
- /package/build/{common → component}/deps-checker/depsTelemetry.d.ts +0 -0
- /package/build/{common → component}/deps-checker/depsTelemetry.js +0 -0
- /package/build/{common → component}/deps-checker/index.d.ts +0 -0
- /package/build/{common → component}/deps-checker/index.js +0 -0
- /package/build/{common → component}/deps-checker/internal/dotnetChecker.d.ts +0 -0
- /package/build/{common → component}/deps-checker/internal/funcToolChecker.d.ts +0 -0
- /package/build/{common → component}/deps-checker/internal/nodeChecker.d.ts +0 -0
- /package/build/{common → component}/deps-checker/internal/nodeChecker.js +0 -0
- /package/build/{common → component}/deps-checker/internal/testToolChecker.d.ts +0 -0
- /package/build/{common → component}/deps-checker/internal/vxTestAppChecker.d.ts +0 -0
- /package/build/{common → component}/deps-checker/util/cpUtils.d.ts +0 -0
- /package/build/{common → component}/deps-checker/util/cpUtils.js +0 -0
- /package/build/{common → component}/deps-checker/util/downloadHelper.d.ts +0 -0
- /package/build/{common → component}/deps-checker/util/downloadHelper.js +0 -0
- /package/build/{common → component}/deps-checker/util/fileHelper.d.ts +0 -0
- /package/build/{common → component}/deps-checker/util/fileHelper.js +0 -0
- /package/build/{common → component}/deps-checker/util/index.d.ts +0 -0
- /package/build/{common → component}/deps-checker/util/index.js +0 -0
- /package/build/{common → component}/deps-checker/util/progressIndicator.d.ts +0 -0
- /package/build/{common → component}/deps-checker/util/progressIndicator.js +0 -0
- /package/build/{common → component}/deps-checker/util/system.d.ts +0 -0
- /package/build/{common → component}/deps-checker/util/system.js +0 -0
- /package/build/{common → component}/local/index.d.ts +0 -0
- /package/build/{common → component}/local/index.js +0 -0
- /package/build/{common → component}/local/localCertificateManager.d.ts +0 -0
- /package/build/{common → component}/local/localEnvManager.d.ts +0 -0
- /package/build/{common → component}/local/localEnvManager.js +0 -0
- /package/build/{common → component}/local/localTelemetryReporter.d.ts +0 -0
- /package/build/{common → component}/local/npmLogHelper.d.ts +0 -0
- /package/build/{common → component}/local/npmLogHelper.js +0 -0
- /package/build/{common → component}/local/packageJsonHelper.d.ts +0 -0
- /package/build/{common → component}/local/packageJsonHelper.js +0 -0
- /package/build/{common → component}/local/portChecker.d.ts +0 -0
- /package/build/{common → component}/local/process.d.ts +0 -0
- /package/build/{common → component}/local/process.js +0 -0
- /package/build/{common → component}/local/taskDefinition.d.ts +0 -0
- /package/build/{common → component}/m365/constants.d.ts +0 -0
- /package/build/{common → component}/m365/constants.js +0 -0
- /package/build/{common → component}/m365/errors.d.ts +0 -0
- /package/build/{common → component}/m365/packageService.d.ts +0 -0
package/build/question/other.js
CHANGED
|
@@ -2,39 +2,37 @@
|
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
3
|
// Licensed under the MIT license.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.oauthQuestion = exports.apiSpecApiKeyQuestion = exports.apiSpecApiKeyConfirmQestion = exports.addPluginQuestionNode = exports.selectPluginAvailabilityQuestion = exports.
|
|
5
|
+
exports.oauthQuestion = exports.apiSpecApiKeyQuestion = exports.apiSpecApiKeyConfirmQestion = exports.addPluginQuestionNode = exports.selectPluginAvailabilityQuestion = exports.createNewEnvQuestionNode = exports.selectSourceEnvQuestion = exports.newTargetEnvQuestion = exports.newEnvNameValidation = exports.envQuestionCondition = exports.selectAadManifestQuestion = exports.isAadMainifestContainsPlaceholder = exports.inputUserEmailQuestion = exports.selectTargetEnvQuestion = exports.previewWithTeamsAppManifestQuestionNode = exports.selectTeamsAppPackageQuestionNode = exports.copilotPluginAddAPIQuestionNode = exports.selectLocalTeamsAppManifestQuestion = exports.selectTeamsAppManifestQuestion = exports.addWebPartQuestionNode = exports.selectAadAppManifestQuestionNode = exports.selectTeamsAppManifestQuestionNode = exports.validateTeamsAppQuestionNode = exports.deployAadManifestQuestionNode = exports.grantPermissionQuestionNode = exports.listCollaboratorQuestionNode = void 0;
|
|
6
6
|
const tslib_1 = require("tslib");
|
|
7
7
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
8
8
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
9
9
|
const path = tslib_1.__importStar(require("path"));
|
|
10
10
|
const constants_1 = require("../common/constants");
|
|
11
|
+
const featureFlags_1 = require("../common/featureFlags");
|
|
11
12
|
const localizeUtils_1 = require("../common/localizeUtils");
|
|
12
|
-
const tools_1 = require("../common/tools");
|
|
13
13
|
const constants_2 = require("../component/driver/add/utility/constants");
|
|
14
|
-
const
|
|
14
|
+
const errors_1 = require("../component/driver/teamsApp/errors");
|
|
15
|
+
const results_1 = require("../component/driver/teamsApp/results");
|
|
16
|
+
const ManifestUtils_1 = require("../component/driver/teamsApp/utils/ManifestUtils");
|
|
17
|
+
const common_1 = require("../component/utils/common");
|
|
15
18
|
const envUtil_1 = require("../component/utils/envUtil");
|
|
16
19
|
const collaborator_1 = require("../core/collaborator");
|
|
17
20
|
const environmentName_1 = require("../core/environmentName");
|
|
18
|
-
const globalVars_1 = require("../
|
|
21
|
+
const globalVars_1 = require("../common/globalVars");
|
|
22
|
+
const constants_3 = require("./constants");
|
|
19
23
|
const create_1 = require("./create");
|
|
20
|
-
const questionNames_1 = require("./questionNames");
|
|
21
|
-
const featureFlags_1 = require("../common/featureFlags");
|
|
22
|
-
const common_1 = require("../component/utils/common");
|
|
23
|
-
const ManifestUtils_1 = require("../component/driver/teamsApp/utils/ManifestUtils");
|
|
24
|
-
const results_1 = require("../component/driver/teamsApp/results");
|
|
25
|
-
const errors_1 = require("../component/driver/teamsApp/errors");
|
|
26
24
|
function listCollaboratorQuestionNode() {
|
|
27
25
|
const selectTeamsAppNode = selectTeamsAppManifestQuestionNode();
|
|
28
26
|
selectTeamsAppNode.condition = { contains: collaborator_1.CollaborationConstants.TeamsAppQuestionId };
|
|
29
27
|
selectTeamsAppNode.children.push({
|
|
30
28
|
condition: envQuestionCondition,
|
|
31
|
-
data: selectTargetEnvQuestion(
|
|
29
|
+
data: selectTargetEnvQuestion(constants_3.QuestionNames.Env, false, false, ""),
|
|
32
30
|
});
|
|
33
31
|
const selectAadAppNode = selectAadAppManifestQuestionNode();
|
|
34
32
|
selectAadAppNode.condition = { contains: collaborator_1.CollaborationConstants.AadAppQuestionId };
|
|
35
33
|
selectAadAppNode.children.push({
|
|
36
34
|
condition: envQuestionCondition,
|
|
37
|
-
data: selectTargetEnvQuestion(
|
|
35
|
+
data: selectTargetEnvQuestion(constants_3.QuestionNames.Env, false, false, ""),
|
|
38
36
|
});
|
|
39
37
|
return {
|
|
40
38
|
data: { type: "group" },
|
|
@@ -55,13 +53,13 @@ function grantPermissionQuestionNode() {
|
|
|
55
53
|
selectTeamsAppNode.condition = { contains: collaborator_1.CollaborationConstants.TeamsAppQuestionId };
|
|
56
54
|
selectTeamsAppNode.children.push({
|
|
57
55
|
condition: envQuestionCondition,
|
|
58
|
-
data: selectTargetEnvQuestion(
|
|
56
|
+
data: selectTargetEnvQuestion(constants_3.QuestionNames.Env, false, false, ""),
|
|
59
57
|
});
|
|
60
58
|
const selectAadAppNode = selectAadAppManifestQuestionNode();
|
|
61
59
|
selectAadAppNode.condition = { contains: collaborator_1.CollaborationConstants.AadAppQuestionId };
|
|
62
60
|
selectAadAppNode.children.push({
|
|
63
61
|
condition: envQuestionCondition,
|
|
64
|
-
data: selectTargetEnvQuestion(
|
|
62
|
+
data: selectTargetEnvQuestion(constants_3.QuestionNames.Env, false, false, ""),
|
|
65
63
|
});
|
|
66
64
|
return {
|
|
67
65
|
data: { type: "group" },
|
|
@@ -94,7 +92,7 @@ function deployAadManifestQuestionNode() {
|
|
|
94
92
|
{
|
|
95
93
|
condition: (inputs) => inputs.platform === teamsfx_api_1.Platform.VSCode && // confirm question only works for VSC
|
|
96
94
|
inputs.projectPath !== undefined &&
|
|
97
|
-
path.resolve(inputs[
|
|
95
|
+
path.resolve(inputs[constants_3.QuestionNames.AadAppManifestFilePath]) !==
|
|
98
96
|
path.join(inputs.projectPath, "aad.manifest.json"),
|
|
99
97
|
data: confirmManifestQuestion(false, false),
|
|
100
98
|
cliOptionDisabled: "self",
|
|
@@ -102,7 +100,7 @@ function deployAadManifestQuestionNode() {
|
|
|
102
100
|
},
|
|
103
101
|
{
|
|
104
102
|
condition: isAadMainifestContainsPlaceholder,
|
|
105
|
-
data: selectTargetEnvQuestion(
|
|
103
|
+
data: selectTargetEnvQuestion(constants_3.QuestionNames.Env, false, false, ""),
|
|
106
104
|
},
|
|
107
105
|
],
|
|
108
106
|
},
|
|
@@ -117,15 +115,15 @@ function validateTeamsAppQuestionNode() {
|
|
|
117
115
|
inputsDisabled: "self",
|
|
118
116
|
children: [
|
|
119
117
|
{
|
|
120
|
-
condition: { equals: TeamsAppValidationOptions.schema().id },
|
|
118
|
+
condition: { equals: constants_3.TeamsAppValidationOptions.schema().id },
|
|
121
119
|
data: selectTeamsAppManifestQuestion(),
|
|
122
120
|
},
|
|
123
121
|
{
|
|
124
|
-
condition: { equals: TeamsAppValidationOptions.package().id },
|
|
122
|
+
condition: { equals: constants_3.TeamsAppValidationOptions.package().id },
|
|
125
123
|
data: selectTeamsAppPackageQuestion(),
|
|
126
124
|
},
|
|
127
125
|
{
|
|
128
|
-
condition: { equals: TeamsAppValidationOptions.testCases().id },
|
|
126
|
+
condition: { equals: constants_3.TeamsAppValidationOptions.testCases().id },
|
|
129
127
|
data: selectTeamsAppPackageQuestion(),
|
|
130
128
|
},
|
|
131
129
|
],
|
|
@@ -153,8 +151,8 @@ function selectAadAppManifestQuestionNode() {
|
|
|
153
151
|
{
|
|
154
152
|
condition: (inputs) => inputs.platform === teamsfx_api_1.Platform.VSCode && // confirm question only works for VSC
|
|
155
153
|
inputs.projectPath &&
|
|
156
|
-
inputs[
|
|
157
|
-
path.resolve(inputs[
|
|
154
|
+
inputs[constants_3.QuestionNames.AadAppManifestFilePath] &&
|
|
155
|
+
path.resolve(inputs[constants_3.QuestionNames.AadAppManifestFilePath]) !==
|
|
158
156
|
path.join(inputs.projectPath, "aad.manifest.json"),
|
|
159
157
|
data: confirmManifestQuestion(false, false),
|
|
160
158
|
cliOptionDisabled: "self",
|
|
@@ -167,17 +165,17 @@ exports.selectAadAppManifestQuestionNode = selectAadAppManifestQuestionNode;
|
|
|
167
165
|
function confirmCondition(inputs, isLocal) {
|
|
168
166
|
return (inputs.platform === teamsfx_api_1.Platform.VSCode && // confirm question only works for VSC
|
|
169
167
|
inputs.projectPath &&
|
|
170
|
-
inputs[isLocal ?
|
|
168
|
+
inputs[isLocal ? constants_3.QuestionNames.LocalTeamsAppManifestFilePath : constants_3.QuestionNames.TeamsAppManifestFilePath] &&
|
|
171
169
|
path.resolve(inputs[isLocal
|
|
172
|
-
?
|
|
173
|
-
:
|
|
170
|
+
? constants_3.QuestionNames.LocalTeamsAppManifestFilePath
|
|
171
|
+
: constants_3.QuestionNames.TeamsAppManifestFilePath]) !==
|
|
174
172
|
path.join(inputs.projectPath, teamsfx_api_1.AppPackageFolderName, isLocal ? "manifest.local.json" : "manifest.json"));
|
|
175
173
|
}
|
|
176
174
|
async function spfxFrameworkExist(inputs) {
|
|
177
175
|
if (inputs.platform === teamsfx_api_1.Platform.CLI_HELP) {
|
|
178
176
|
return false;
|
|
179
177
|
}
|
|
180
|
-
const yorcPath = path.join(inputs[
|
|
178
|
+
const yorcPath = path.join(inputs[constants_3.QuestionNames.SPFxFolder], constants_2.Constants.YO_RC_FILE);
|
|
181
179
|
if (!(await fs_extra_1.default.pathExists(yorcPath))) {
|
|
182
180
|
return false;
|
|
183
181
|
}
|
|
@@ -230,7 +228,7 @@ function addWebPartQuestionNode() {
|
|
|
230
228
|
exports.addWebPartQuestionNode = addWebPartQuestionNode;
|
|
231
229
|
function selectTeamsAppManifestQuestion() {
|
|
232
230
|
return {
|
|
233
|
-
name:
|
|
231
|
+
name: constants_3.QuestionNames.TeamsAppManifestFilePath,
|
|
234
232
|
cliName: "teams-manifest-file",
|
|
235
233
|
cliShortName: "t",
|
|
236
234
|
cliDescription: "Specify the path for Teams app manifest template. It can be either absolute path or relative path to the project root folder, with default at './appPackage/manifest.json'",
|
|
@@ -257,7 +255,7 @@ function selectTeamsAppManifestQuestion() {
|
|
|
257
255
|
exports.selectTeamsAppManifestQuestion = selectTeamsAppManifestQuestion;
|
|
258
256
|
function selectLocalTeamsAppManifestQuestion() {
|
|
259
257
|
return {
|
|
260
|
-
name:
|
|
258
|
+
name: constants_3.QuestionNames.LocalTeamsAppManifestFilePath,
|
|
261
259
|
cliName: "local-teams-manifest-file",
|
|
262
260
|
cliShortName: "l",
|
|
263
261
|
cliDescription: "Specifies the Microsoft Teams app manifest template file path for local environment, it can be either absolute path or relative path to project root folder.",
|
|
@@ -284,10 +282,10 @@ function selectLocalTeamsAppManifestQuestion() {
|
|
|
284
282
|
exports.selectLocalTeamsAppManifestQuestion = selectLocalTeamsAppManifestQuestion;
|
|
285
283
|
function confirmManifestQuestion(isTeamsApp = true, isLocal = false) {
|
|
286
284
|
const map = {
|
|
287
|
-
true_true:
|
|
288
|
-
true_false:
|
|
289
|
-
false_true:
|
|
290
|
-
false_false:
|
|
285
|
+
true_true: constants_3.QuestionNames.ConfirmLocalManifest,
|
|
286
|
+
true_false: constants_3.QuestionNames.ConfirmManifest,
|
|
287
|
+
false_true: constants_3.QuestionNames.ConfirmAadManifest,
|
|
288
|
+
false_false: constants_3.QuestionNames.ConfirmAadManifest,
|
|
291
289
|
};
|
|
292
290
|
const name = map[`${isTeamsApp.toString()}_${isLocal.toString()}`];
|
|
293
291
|
return {
|
|
@@ -307,26 +305,26 @@ function confirmManifestQuestion(isTeamsApp = true, isLocal = false) {
|
|
|
307
305
|
id: "manifest",
|
|
308
306
|
label: `$(file) ${path.basename(isTeamsApp
|
|
309
307
|
? inputs[isLocal
|
|
310
|
-
?
|
|
311
|
-
:
|
|
312
|
-
: inputs[
|
|
308
|
+
? constants_3.QuestionNames.LocalTeamsAppManifestFilePath
|
|
309
|
+
: constants_3.QuestionNames.TeamsAppManifestFilePath]
|
|
310
|
+
: inputs[constants_3.QuestionNames.AadAppManifestFilePath])}`,
|
|
313
311
|
description: path.dirname(isTeamsApp
|
|
314
312
|
? inputs[isLocal
|
|
315
|
-
?
|
|
316
|
-
:
|
|
317
|
-
: inputs[
|
|
313
|
+
? constants_3.QuestionNames.LocalTeamsAppManifestFilePath
|
|
314
|
+
: constants_3.QuestionNames.TeamsAppManifestFilePath]
|
|
315
|
+
: inputs[constants_3.QuestionNames.AadAppManifestFilePath]),
|
|
318
316
|
},
|
|
319
317
|
];
|
|
320
318
|
},
|
|
321
319
|
};
|
|
322
320
|
}
|
|
323
321
|
function selectTeamsAppValidationMethodQuestion() {
|
|
324
|
-
const options = [TeamsAppValidationOptions.schema(), TeamsAppValidationOptions.package()];
|
|
325
|
-
if (featureFlags_1.
|
|
326
|
-
options.push(TeamsAppValidationOptions.testCases());
|
|
322
|
+
const options = [constants_3.TeamsAppValidationOptions.schema(), constants_3.TeamsAppValidationOptions.package()];
|
|
323
|
+
if (featureFlags_1.featureFlagManager.getBooleanValue(featureFlags_1.FeatureFlags.AsyncAppValidation)) {
|
|
324
|
+
options.push(constants_3.TeamsAppValidationOptions.testCases());
|
|
327
325
|
}
|
|
328
326
|
return {
|
|
329
|
-
name:
|
|
327
|
+
name: constants_3.QuestionNames.ValidateMethod,
|
|
330
328
|
title: localizeUtils_1.getLocalizedString("core.selectValidateMethodQuestion.validate.selectTitle"),
|
|
331
329
|
staticOptions: options,
|
|
332
330
|
type: "singleSelect",
|
|
@@ -343,33 +341,9 @@ function copilotPluginAddAPIQuestionNode() {
|
|
|
343
341
|
};
|
|
344
342
|
}
|
|
345
343
|
exports.copilotPluginAddAPIQuestionNode = copilotPluginAddAPIQuestionNode;
|
|
346
|
-
class TeamsAppValidationOptions {
|
|
347
|
-
static schema() {
|
|
348
|
-
return {
|
|
349
|
-
id: "validateAgainstSchema",
|
|
350
|
-
label: localizeUtils_1.getLocalizedString("core.selectValidateMethodQuestion.validate.schemaOption"),
|
|
351
|
-
description: localizeUtils_1.getLocalizedString("core.selectValidateMethodQuestion.validate.schemaOptionDescription"),
|
|
352
|
-
};
|
|
353
|
-
}
|
|
354
|
-
static package() {
|
|
355
|
-
return {
|
|
356
|
-
id: "validateAgainstPackage",
|
|
357
|
-
label: localizeUtils_1.getLocalizedString("core.selectValidateMethodQuestion.validate.appPackageOption"),
|
|
358
|
-
description: localizeUtils_1.getLocalizedString("core.selectValidateMethodQuestion.validate.appPackageOptionDescription"),
|
|
359
|
-
};
|
|
360
|
-
}
|
|
361
|
-
static testCases() {
|
|
362
|
-
return {
|
|
363
|
-
id: "validateWithTestCases",
|
|
364
|
-
label: localizeUtils_1.getLocalizedString("core.selectValidateMethodQuestion.validate.testCasesOption"),
|
|
365
|
-
description: localizeUtils_1.getLocalizedString("core.selectValidateMethodQuestion.validate.testCasesOptionDescription"),
|
|
366
|
-
};
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
exports.TeamsAppValidationOptions = TeamsAppValidationOptions;
|
|
370
344
|
function selectTeamsAppPackageQuestion() {
|
|
371
345
|
return {
|
|
372
|
-
name:
|
|
346
|
+
name: constants_3.QuestionNames.TeamsAppPackageFilePath,
|
|
373
347
|
title: localizeUtils_1.getLocalizedString("core.selectTeamsAppPackageQuestion.title"),
|
|
374
348
|
cliDescription: "Specifies the zipped Microsoft Teams app package path, it's a relative path to project root folder, defaults to '${folder}/appPackage/build/appPackage.${env}.zip'",
|
|
375
349
|
cliName: "app-package-file",
|
|
@@ -394,45 +368,15 @@ function selectTeamsAppPackageQuestionNode() {
|
|
|
394
368
|
};
|
|
395
369
|
}
|
|
396
370
|
exports.selectTeamsAppPackageQuestionNode = selectTeamsAppPackageQuestionNode;
|
|
397
|
-
var HubTypes;
|
|
398
|
-
(function (HubTypes) {
|
|
399
|
-
HubTypes["teams"] = "teams";
|
|
400
|
-
HubTypes["outlook"] = "outlook";
|
|
401
|
-
HubTypes["office"] = "office";
|
|
402
|
-
})(HubTypes = exports.HubTypes || (exports.HubTypes = {}));
|
|
403
|
-
class HubOptions {
|
|
404
|
-
static teams() {
|
|
405
|
-
return {
|
|
406
|
-
id: "teams",
|
|
407
|
-
label: "Teams",
|
|
408
|
-
};
|
|
409
|
-
}
|
|
410
|
-
static outlook() {
|
|
411
|
-
return {
|
|
412
|
-
id: "outlook",
|
|
413
|
-
label: "Outlook",
|
|
414
|
-
};
|
|
415
|
-
}
|
|
416
|
-
static office() {
|
|
417
|
-
return {
|
|
418
|
-
id: "office",
|
|
419
|
-
label: "the Microsoft 365 app",
|
|
420
|
-
};
|
|
421
|
-
}
|
|
422
|
-
static all() {
|
|
423
|
-
return [this.teams(), this.outlook(), this.office()];
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
exports.HubOptions = HubOptions;
|
|
427
371
|
function selectM365HostQuestion() {
|
|
428
372
|
return {
|
|
429
|
-
name:
|
|
373
|
+
name: constants_3.QuestionNames.M365Host,
|
|
430
374
|
cliShortName: "m",
|
|
431
375
|
cliDescription: "Preview the application in Teams, Outlook or the Microsoft 365 app.",
|
|
432
376
|
title: localizeUtils_1.getLocalizedString("core.M365HostQuestion.title"),
|
|
433
|
-
default: HubOptions.teams().id,
|
|
377
|
+
default: constants_3.HubOptions.teams().id,
|
|
434
378
|
type: "singleSelect",
|
|
435
|
-
staticOptions: HubOptions.all(),
|
|
379
|
+
staticOptions: constants_3.HubOptions.all(),
|
|
436
380
|
placeholder: localizeUtils_1.getLocalizedString("core.M365HostQuestion.placeholder"),
|
|
437
381
|
};
|
|
438
382
|
}
|
|
@@ -448,7 +392,7 @@ function previewWithTeamsAppManifestQuestionNode() {
|
|
|
448
392
|
};
|
|
449
393
|
}
|
|
450
394
|
exports.previewWithTeamsAppManifestQuestionNode = previewWithTeamsAppManifestQuestionNode;
|
|
451
|
-
function selectTargetEnvQuestion(questionName =
|
|
395
|
+
function selectTargetEnvQuestion(questionName = constants_3.QuestionNames.TargetEnvName, remoteOnly = true, throwErrorIfNoEnv = false, defaultValueIfNoEnv = environmentName_1.environmentNameManager.getDefaultEnvName()) {
|
|
452
396
|
return {
|
|
453
397
|
type: "singleSelect",
|
|
454
398
|
name: questionName,
|
|
@@ -477,7 +421,7 @@ async function getDefaultUserEmail() {
|
|
|
477
421
|
if (!(globalVars_1.TOOLS === null || globalVars_1.TOOLS === void 0 ? void 0 : globalVars_1.TOOLS.tokenProvider.m365TokenProvider))
|
|
478
422
|
return undefined;
|
|
479
423
|
const jsonObjectRes = await globalVars_1.TOOLS.tokenProvider.m365TokenProvider.getJsonObject({
|
|
480
|
-
scopes:
|
|
424
|
+
scopes: constants_1.AppStudioScopes,
|
|
481
425
|
});
|
|
482
426
|
if (jsonObjectRes.isErr()) {
|
|
483
427
|
throw jsonObjectRes.error;
|
|
@@ -492,7 +436,7 @@ async function getDefaultUserEmail() {
|
|
|
492
436
|
}
|
|
493
437
|
function inputUserEmailQuestion() {
|
|
494
438
|
return {
|
|
495
|
-
name:
|
|
439
|
+
name: constants_3.QuestionNames.UserEmail,
|
|
496
440
|
type: "text",
|
|
497
441
|
title: localizeUtils_1.getLocalizedString("core.getUserEmailQuestion.title"),
|
|
498
442
|
cliDescription: "Email address of the collaborator.",
|
|
@@ -518,7 +462,7 @@ function inputUserEmailQuestion() {
|
|
|
518
462
|
}
|
|
519
463
|
exports.inputUserEmailQuestion = inputUserEmailQuestion;
|
|
520
464
|
async function isAadMainifestContainsPlaceholder(inputs) {
|
|
521
|
-
const aadManifestPath = inputs === null || inputs === void 0 ? void 0 : inputs[
|
|
465
|
+
const aadManifestPath = inputs === null || inputs === void 0 ? void 0 : inputs[constants_3.QuestionNames.AadAppManifestFilePath];
|
|
522
466
|
const placeholderRegex = /\$\{\{ *[a-zA-Z0-9_.-]* *\}\}/g;
|
|
523
467
|
const regexObj = new RegExp(placeholderRegex);
|
|
524
468
|
try {
|
|
@@ -538,7 +482,7 @@ async function isAadMainifestContainsPlaceholder(inputs) {
|
|
|
538
482
|
exports.isAadMainifestContainsPlaceholder = isAadMainifestContainsPlaceholder;
|
|
539
483
|
function selectAadManifestQuestion() {
|
|
540
484
|
return {
|
|
541
|
-
name:
|
|
485
|
+
name: constants_3.QuestionNames.AadAppManifestFilePath,
|
|
542
486
|
cliName: "entra-app-manifest-file",
|
|
543
487
|
cliShortName: "a",
|
|
544
488
|
cliDescription: "Specifies the Microsoft Entra app manifest file path, can be either absolute path or relative path to project root folder.",
|
|
@@ -565,7 +509,7 @@ function selectAadManifestQuestion() {
|
|
|
565
509
|
exports.selectAadManifestQuestion = selectAadManifestQuestion;
|
|
566
510
|
function selectAppTypeQuestion() {
|
|
567
511
|
return {
|
|
568
|
-
name:
|
|
512
|
+
name: constants_3.QuestionNames.collaborationAppType,
|
|
569
513
|
title: localizeUtils_1.getLocalizedString("core.selectCollaborationAppTypeQuestion.title"),
|
|
570
514
|
type: "multiSelect",
|
|
571
515
|
staticOptions: [
|
|
@@ -588,8 +532,8 @@ async function envQuestionCondition(inputs) {
|
|
|
588
532
|
const appType = inputs[collaborator_1.CollaborationConstants.AppType];
|
|
589
533
|
const requireAad = appType === null || appType === void 0 ? void 0 : appType.includes(collaborator_1.CollaborationConstants.AadAppQuestionId);
|
|
590
534
|
const requireTeams = appType === null || appType === void 0 ? void 0 : appType.includes(collaborator_1.CollaborationConstants.TeamsAppQuestionId);
|
|
591
|
-
const aadManifestPath = inputs[
|
|
592
|
-
const teamsManifestPath = inputs[
|
|
535
|
+
const aadManifestPath = inputs[constants_3.QuestionNames.AadAppManifestFilePath];
|
|
536
|
+
const teamsManifestPath = inputs[constants_3.QuestionNames.TeamsAppManifestFilePath];
|
|
593
537
|
// When both is selected, only show the question once at the end
|
|
594
538
|
if ((requireAad && !aadManifestPath) || (requireTeams && !teamsManifestPath)) {
|
|
595
539
|
return false;
|
|
@@ -651,7 +595,7 @@ exports.newEnvNameValidation = newEnvNameValidation;
|
|
|
651
595
|
function newTargetEnvQuestion() {
|
|
652
596
|
return {
|
|
653
597
|
type: "text",
|
|
654
|
-
name:
|
|
598
|
+
name: constants_3.QuestionNames.NewTargetEnvName,
|
|
655
599
|
cliName: "name",
|
|
656
600
|
cliDescription: "Specifies the new environment name.",
|
|
657
601
|
cliType: "argument",
|
|
@@ -680,7 +624,7 @@ exports.newTargetEnvQuestion = newTargetEnvQuestion;
|
|
|
680
624
|
function selectSourceEnvQuestion() {
|
|
681
625
|
return {
|
|
682
626
|
type: "singleSelect",
|
|
683
|
-
name:
|
|
627
|
+
name: constants_3.QuestionNames.SourceEnvName,
|
|
684
628
|
cliName: "env",
|
|
685
629
|
title: localizeUtils_1.getLocalizedString("core.QuestionSelectSourceEnvironment.title"),
|
|
686
630
|
cliDescription: "Specifies an existing environment name to copy from.",
|
|
@@ -715,165 +659,15 @@ function createNewEnvQuestionNode() {
|
|
|
715
659
|
};
|
|
716
660
|
}
|
|
717
661
|
exports.createNewEnvQuestionNode = createNewEnvQuestionNode;
|
|
718
|
-
exports.newResourceGroupOption = "+ New resource group";
|
|
719
|
-
/**
|
|
720
|
-
* select existing resource group or create new resource group
|
|
721
|
-
*/
|
|
722
|
-
function selectResourceGroupQuestion(azureAccountProvider, subscriptionId) {
|
|
723
|
-
return {
|
|
724
|
-
type: "singleSelect",
|
|
725
|
-
name: questionNames_1.QuestionNames.TargetResourceGroupName,
|
|
726
|
-
title: localizeUtils_1.getLocalizedString("core.QuestionSelectResourceGroup.title"),
|
|
727
|
-
staticOptions: [{ id: exports.newResourceGroupOption, label: exports.newResourceGroupOption }],
|
|
728
|
-
dynamicOptions: async (inputs) => {
|
|
729
|
-
const rmClient = await ResourceGroupHelper_1.resourceGroupHelper.createRmClient(azureAccountProvider, subscriptionId);
|
|
730
|
-
const listRgRes = await ResourceGroupHelper_1.resourceGroupHelper.listResourceGroups(rmClient);
|
|
731
|
-
if (listRgRes.isErr())
|
|
732
|
-
throw listRgRes.error;
|
|
733
|
-
const rgList = listRgRes.value;
|
|
734
|
-
const options = rgList.map((rg) => {
|
|
735
|
-
return {
|
|
736
|
-
id: rg[0],
|
|
737
|
-
label: rg[0],
|
|
738
|
-
description: rg[1],
|
|
739
|
-
};
|
|
740
|
-
});
|
|
741
|
-
const existingResourceGroupNames = rgList.map((rg) => rg[0]);
|
|
742
|
-
inputs.existingResourceGroupNames = existingResourceGroupNames; // cache existing resource group names for valiation usage
|
|
743
|
-
return [{ id: exports.newResourceGroupOption, label: exports.newResourceGroupOption }, ...options];
|
|
744
|
-
},
|
|
745
|
-
skipSingleOption: true,
|
|
746
|
-
returnObject: true,
|
|
747
|
-
forgetLastValue: true,
|
|
748
|
-
};
|
|
749
|
-
}
|
|
750
|
-
function validateResourceGroupName(input, inputs) {
|
|
751
|
-
const name = input;
|
|
752
|
-
// https://docs.microsoft.com/en-us/rest/api/resources/resource-groups/create-or-update#uri-parameters
|
|
753
|
-
const match = name.match(/^[-\w._()]+$/);
|
|
754
|
-
if (!match) {
|
|
755
|
-
return localizeUtils_1.getLocalizedString("core.QuestionNewResourceGroupName.validation");
|
|
756
|
-
}
|
|
757
|
-
// To avoid the issue in CLI that using async func for validation and filter will make users input answers twice,
|
|
758
|
-
// we check the existence of a resource group from the list rather than call the api directly for now.
|
|
759
|
-
// Bug: https://msazure.visualstudio.com/Microsoft%20Teams%20Extensibility/_workitems/edit/15066282
|
|
760
|
-
// GitHub issue: https://github.com/SBoudrias/Inquirer.js/issues/1136
|
|
761
|
-
if (inputs === null || inputs === void 0 ? void 0 : inputs.existingResourceGroupNames) {
|
|
762
|
-
const maybeExist = inputs.existingResourceGroupNames.findIndex((o) => o.toLowerCase() === input.toLowerCase()) >= 0;
|
|
763
|
-
if (maybeExist) {
|
|
764
|
-
return `resource group already exists: ${name}`;
|
|
765
|
-
}
|
|
766
|
-
}
|
|
767
|
-
return undefined;
|
|
768
|
-
}
|
|
769
|
-
exports.validateResourceGroupName = validateResourceGroupName;
|
|
770
|
-
function newResourceGroupNameQuestion(defaultResourceGroupName) {
|
|
771
|
-
return {
|
|
772
|
-
type: "text",
|
|
773
|
-
name: questionNames_1.QuestionNames.NewResourceGroupName,
|
|
774
|
-
title: localizeUtils_1.getLocalizedString("core.QuestionNewResourceGroupName.title"),
|
|
775
|
-
placeholder: localizeUtils_1.getLocalizedString("core.QuestionNewResourceGroupName.placeholder"),
|
|
776
|
-
// default resource group name will change with env name
|
|
777
|
-
forgetLastValue: true,
|
|
778
|
-
default: defaultResourceGroupName,
|
|
779
|
-
validation: {
|
|
780
|
-
validFunc: validateResourceGroupName,
|
|
781
|
-
},
|
|
782
|
-
};
|
|
783
|
-
}
|
|
784
|
-
exports.newResourceGroupNameQuestion = newResourceGroupNameQuestion;
|
|
785
|
-
function selectResourceGroupLocationQuestion(azureAccountProvider, subscriptionId) {
|
|
786
|
-
return {
|
|
787
|
-
type: "singleSelect",
|
|
788
|
-
name: questionNames_1.QuestionNames.NewResourceGroupLocation,
|
|
789
|
-
title: localizeUtils_1.getLocalizedString("core.QuestionNewResourceGroupLocation.title"),
|
|
790
|
-
staticOptions: [],
|
|
791
|
-
dynamicOptions: async (inputs) => {
|
|
792
|
-
const rmClient = await ResourceGroupHelper_1.resourceGroupHelper.createRmClient(azureAccountProvider, subscriptionId);
|
|
793
|
-
const getLocationsRes = await ResourceGroupHelper_1.resourceGroupHelper.getLocations(azureAccountProvider, rmClient);
|
|
794
|
-
if (getLocationsRes.isErr()) {
|
|
795
|
-
throw getLocationsRes.error;
|
|
796
|
-
}
|
|
797
|
-
const recommended = getLocationsRes.value.filter((location) => {
|
|
798
|
-
return ResourceGroupHelper_1.recommendedLocations.indexOf(location) >= 0;
|
|
799
|
-
});
|
|
800
|
-
const others = getLocationsRes.value.filter((location) => {
|
|
801
|
-
return ResourceGroupHelper_1.recommendedLocations.indexOf(location) < 0;
|
|
802
|
-
});
|
|
803
|
-
return [
|
|
804
|
-
...recommended.map((location) => {
|
|
805
|
-
return {
|
|
806
|
-
id: location,
|
|
807
|
-
label: location,
|
|
808
|
-
groupName: localizeUtils_1.getLocalizedString("core.QuestionNewResourceGroupLocation.group.recommended"),
|
|
809
|
-
};
|
|
810
|
-
}),
|
|
811
|
-
...others.map((location) => {
|
|
812
|
-
return {
|
|
813
|
-
id: location,
|
|
814
|
-
label: location,
|
|
815
|
-
groupName: localizeUtils_1.getLocalizedString("core.QuestionNewResourceGroupLocation.group.others"),
|
|
816
|
-
};
|
|
817
|
-
}),
|
|
818
|
-
];
|
|
819
|
-
},
|
|
820
|
-
default: "Central US",
|
|
821
|
-
};
|
|
822
|
-
}
|
|
823
|
-
function resourceGroupQuestionNode(azureAccountProvider, subscriptionId, defaultResourceGroupName) {
|
|
824
|
-
return {
|
|
825
|
-
data: selectResourceGroupQuestion(azureAccountProvider, subscriptionId),
|
|
826
|
-
children: [
|
|
827
|
-
{
|
|
828
|
-
condition: { equals: exports.newResourceGroupOption },
|
|
829
|
-
data: newResourceGroupNameQuestion(defaultResourceGroupName),
|
|
830
|
-
children: [
|
|
831
|
-
{
|
|
832
|
-
data: selectResourceGroupLocationQuestion(azureAccountProvider, subscriptionId),
|
|
833
|
-
},
|
|
834
|
-
],
|
|
835
|
-
},
|
|
836
|
-
],
|
|
837
|
-
};
|
|
838
|
-
}
|
|
839
|
-
exports.resourceGroupQuestionNode = resourceGroupQuestionNode;
|
|
840
|
-
class PluginAvailabilityOptions {
|
|
841
|
-
static action() {
|
|
842
|
-
return {
|
|
843
|
-
id: "action",
|
|
844
|
-
label: localizeUtils_1.getLocalizedString("core.pluginAvailability.declarativeCopilot"),
|
|
845
|
-
};
|
|
846
|
-
}
|
|
847
|
-
static copilotPlugin() {
|
|
848
|
-
return {
|
|
849
|
-
id: "copilot-plugin",
|
|
850
|
-
label: localizeUtils_1.getLocalizedString("core.pluginAvailability.copilotForM365"),
|
|
851
|
-
};
|
|
852
|
-
}
|
|
853
|
-
static copilotPluginAndAction() {
|
|
854
|
-
return {
|
|
855
|
-
id: "copilot-plugin-and-action",
|
|
856
|
-
label: localizeUtils_1.getLocalizedString("core.pluginAvailability.declarativeCopilotAndM365"),
|
|
857
|
-
};
|
|
858
|
-
}
|
|
859
|
-
static all() {
|
|
860
|
-
return [
|
|
861
|
-
PluginAvailabilityOptions.copilotPlugin(),
|
|
862
|
-
PluginAvailabilityOptions.action(),
|
|
863
|
-
PluginAvailabilityOptions.copilotPluginAndAction(),
|
|
864
|
-
];
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
|
-
exports.PluginAvailabilityOptions = PluginAvailabilityOptions;
|
|
868
662
|
function selectPluginAvailabilityQuestion() {
|
|
869
663
|
return {
|
|
870
|
-
name:
|
|
664
|
+
name: constants_3.QuestionNames.PluginAvailability,
|
|
871
665
|
title: localizeUtils_1.getLocalizedString("core.question.pluginAvailability.title"),
|
|
872
666
|
cliDescription: "Select plugin availability.",
|
|
873
667
|
type: "singleSelect",
|
|
874
|
-
staticOptions: PluginAvailabilityOptions.all(),
|
|
668
|
+
staticOptions: constants_3.PluginAvailabilityOptions.all(),
|
|
875
669
|
dynamicOptions: async (inputs) => {
|
|
876
|
-
const teamsManifestPath = inputs[
|
|
670
|
+
const teamsManifestPath = inputs[constants_3.QuestionNames.TeamsAppManifestFilePath];
|
|
877
671
|
const absolutePath = common_1.getAbsolutePath(teamsManifestPath, inputs.projectPath);
|
|
878
672
|
const manifestRes = await ManifestUtils_1.manifestUtils._readAppManifest(absolutePath);
|
|
879
673
|
if (manifestRes.isErr()) {
|
|
@@ -885,10 +679,10 @@ function selectPluginAvailabilityQuestion() {
|
|
|
885
679
|
}
|
|
886
680
|
if (commonProperties.capabilities.includes("plugin")) {
|
|
887
681
|
// A project can have only one plugin.
|
|
888
|
-
return [PluginAvailabilityOptions.action()];
|
|
682
|
+
return [constants_3.PluginAvailabilityOptions.action()];
|
|
889
683
|
}
|
|
890
684
|
else {
|
|
891
|
-
return PluginAvailabilityOptions.all();
|
|
685
|
+
return constants_3.PluginAvailabilityOptions.all();
|
|
892
686
|
}
|
|
893
687
|
},
|
|
894
688
|
};
|
|
@@ -914,7 +708,7 @@ function addPluginQuestionNode() {
|
|
|
914
708
|
exports.addPluginQuestionNode = addPluginQuestionNode;
|
|
915
709
|
function apiSpecApiKeyConfirmQestion() {
|
|
916
710
|
return {
|
|
917
|
-
name:
|
|
711
|
+
name: constants_3.QuestionNames.ApiSpecApiKeyConfirm,
|
|
918
712
|
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.ApiKeyConfirm"),
|
|
919
713
|
type: "confirm",
|
|
920
714
|
default: true,
|
|
@@ -925,7 +719,7 @@ function apiSpecApiKeyQuestion() {
|
|
|
925
719
|
return {
|
|
926
720
|
data: {
|
|
927
721
|
type: "text",
|
|
928
|
-
name:
|
|
722
|
+
name: constants_3.QuestionNames.ApiSpecApiKey,
|
|
929
723
|
cliShortName: "k",
|
|
930
724
|
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.ApiKey"),
|
|
931
725
|
cliDescription: "Api key for OpenAPI spec.",
|
|
@@ -943,7 +737,7 @@ function apiSpecApiKeyQuestion() {
|
|
|
943
737
|
if (!inputs) {
|
|
944
738
|
throw new Error("inputs is undefined"); // should never happen
|
|
945
739
|
}
|
|
946
|
-
process.env[
|
|
740
|
+
process.env[constants_3.QuestionNames.ApiSpecApiKey] = input;
|
|
947
741
|
return;
|
|
948
742
|
},
|
|
949
743
|
},
|
|
@@ -994,7 +788,7 @@ exports.oauthQuestion = oauthQuestion;
|
|
|
994
788
|
function oauthClientIdQuestion() {
|
|
995
789
|
return {
|
|
996
790
|
type: "text",
|
|
997
|
-
name:
|
|
791
|
+
name: constants_3.QuestionNames.OauthClientId,
|
|
998
792
|
cliShortName: "i",
|
|
999
793
|
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.OauthClientId"),
|
|
1000
794
|
cliDescription: "Oauth client id for OpenAPI spec.",
|
|
@@ -1004,7 +798,7 @@ function oauthClientIdQuestion() {
|
|
|
1004
798
|
if (!inputs) {
|
|
1005
799
|
throw new Error("inputs is undefined"); // should never happen
|
|
1006
800
|
}
|
|
1007
|
-
process.env[
|
|
801
|
+
process.env[constants_3.QuestionNames.OauthClientId] = input;
|
|
1008
802
|
return;
|
|
1009
803
|
},
|
|
1010
804
|
},
|
|
@@ -1012,7 +806,7 @@ function oauthClientIdQuestion() {
|
|
|
1012
806
|
}
|
|
1013
807
|
function oauthConfirmQestion() {
|
|
1014
808
|
return {
|
|
1015
|
-
name:
|
|
809
|
+
name: constants_3.QuestionNames.OauthConfirm,
|
|
1016
810
|
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.OauthClientSecretConfirm"),
|
|
1017
811
|
type: "confirm",
|
|
1018
812
|
default: true,
|
|
@@ -1021,7 +815,7 @@ function oauthConfirmQestion() {
|
|
|
1021
815
|
function oauthClientSecretQuestion() {
|
|
1022
816
|
return {
|
|
1023
817
|
type: "text",
|
|
1024
|
-
name:
|
|
818
|
+
name: constants_3.QuestionNames.OauthClientSecret,
|
|
1025
819
|
cliShortName: "c",
|
|
1026
820
|
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.OauthClientSecret"),
|
|
1027
821
|
cliDescription: "Oauth client secret for OpenAPI spec.",
|
|
@@ -1039,7 +833,7 @@ function oauthClientSecretQuestion() {
|
|
|
1039
833
|
if (!inputs) {
|
|
1040
834
|
throw new Error("inputs is undefined"); // should never happen
|
|
1041
835
|
}
|
|
1042
|
-
process.env[
|
|
836
|
+
process.env[constants_3.QuestionNames.OauthClientSecret] = input;
|
|
1043
837
|
return;
|
|
1044
838
|
},
|
|
1045
839
|
},
|