@microsoft/teamsfx-core 2.0.10-rc.0 → 2.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/common/constants.d.ts +19 -11
- package/build/common/constants.d.ts.map +1 -1
- package/build/common/constants.js +22 -44
- package/build/common/constants.js.map +1 -1
- package/build/common/correlator.d.ts +0 -1
- package/build/common/correlator.d.ts.map +1 -1
- package/build/common/correlator.js +1 -6
- package/build/common/correlator.js.map +1 -1
- package/build/common/deps-checker/checkerFactory.d.ts.map +1 -0
- package/build/common/deps-checker/checkerFactory.js.map +1 -0
- package/build/{component → common}/deps-checker/constant/helpLink.d.ts +3 -0
- package/build/common/deps-checker/constant/helpLink.d.ts.map +1 -0
- package/build/{component → common}/deps-checker/constant/helpLink.js +6 -1
- package/build/common/deps-checker/constant/helpLink.js.map +1 -0
- package/build/common/deps-checker/constant/index.d.ts.map +1 -0
- package/build/common/deps-checker/constant/index.js.map +1 -0
- package/build/common/deps-checker/constant/message.d.ts.map +1 -0
- package/build/common/deps-checker/constant/message.js +45 -0
- package/build/common/deps-checker/constant/message.js.map +1 -0
- package/build/common/deps-checker/constant/telemetry.d.ts.map +1 -0
- package/build/common/deps-checker/constant/telemetry.js.map +1 -0
- package/build/common/deps-checker/coreDepsLoggerAdapter.d.ts.map +1 -0
- package/build/common/deps-checker/coreDepsLoggerAdapter.js.map +1 -0
- package/build/common/deps-checker/coreDepsTelemetryAdapter.d.ts.map +1 -0
- package/build/{component → common}/deps-checker/coreDepsTelemetryAdapter.js +4 -4
- package/build/common/deps-checker/coreDepsTelemetryAdapter.js.map +1 -0
- package/build/common/deps-checker/depsChecker.d.ts.map +1 -0
- package/build/common/deps-checker/depsChecker.js.map +1 -0
- package/build/common/deps-checker/depsError.d.ts.map +1 -0
- package/build/common/deps-checker/depsError.js.map +1 -0
- package/build/common/deps-checker/depsLogger.d.ts.map +1 -0
- package/build/common/deps-checker/depsLogger.js.map +1 -0
- package/build/common/deps-checker/depsManager.d.ts.map +1 -0
- package/build/common/deps-checker/depsManager.js.map +1 -0
- package/build/common/deps-checker/depsTelemetry.d.ts.map +1 -0
- package/build/common/deps-checker/depsTelemetry.js.map +1 -0
- package/build/common/deps-checker/index.d.ts.map +1 -0
- package/build/common/deps-checker/index.js.map +1 -0
- package/build/common/deps-checker/internal/dotnetChecker.d.ts.map +1 -0
- package/build/{component → common}/deps-checker/internal/dotnetChecker.js +14 -14
- package/build/common/deps-checker/internal/dotnetChecker.js.map +1 -0
- package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -0
- package/build/{component → common}/deps-checker/internal/funcToolChecker.js +16 -16
- package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -0
- package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -0
- package/build/common/deps-checker/internal/nodeChecker.js.map +1 -0
- package/build/common/deps-checker/internal/testToolChecker.d.ts.map +1 -0
- package/build/{component → common}/deps-checker/internal/testToolChecker.js +22 -22
- package/build/common/deps-checker/internal/testToolChecker.js.map +1 -0
- package/build/common/deps-checker/internal/vxTestAppChecker.d.ts.map +1 -0
- package/build/{component → common}/deps-checker/internal/vxTestAppChecker.js +8 -14
- package/build/common/deps-checker/internal/vxTestAppChecker.js.map +1 -0
- package/build/common/deps-checker/util/cpUtils.d.ts.map +1 -0
- package/build/common/deps-checker/util/cpUtils.js.map +1 -0
- package/build/common/deps-checker/util/downloadHelper.d.ts.map +1 -0
- package/build/common/deps-checker/util/downloadHelper.js.map +1 -0
- package/build/common/deps-checker/util/fileHelper.d.ts.map +1 -0
- package/build/common/deps-checker/util/fileHelper.js.map +1 -0
- package/build/common/deps-checker/util/index.d.ts.map +1 -0
- package/build/common/deps-checker/util/index.js.map +1 -0
- package/build/common/deps-checker/util/progressIndicator.d.ts.map +1 -0
- package/build/common/deps-checker/util/progressIndicator.js.map +1 -0
- package/build/common/deps-checker/util/system.d.ts.map +1 -0
- package/build/common/deps-checker/util/system.js.map +1 -0
- package/build/common/featureFlags.d.ts +22 -61
- package/build/common/featureFlags.d.ts.map +1 -1
- package/build/common/featureFlags.js +70 -91
- package/build/common/featureFlags.js.map +1 -1
- package/build/common/globalState.js +4 -4
- package/build/common/globalState.js.map +1 -1
- package/build/common/jsonUtils.js +10 -10
- package/build/common/jsonUtils.js.map +1 -1
- package/build/common/local/constants.d.ts +185 -0
- package/build/common/local/constants.d.ts.map +1 -0
- package/build/{component → common}/local/constants.js +0 -1
- package/build/common/local/constants.js.map +1 -0
- package/build/common/local/index.d.ts.map +1 -0
- package/build/common/local/index.js.map +1 -0
- package/build/common/local/localCertificateManager.d.ts.map +1 -0
- package/build/{component → common}/local/localCertificateManager.js +11 -13
- package/build/common/local/localCertificateManager.js.map +1 -0
- package/build/common/local/localEnvManager.d.ts.map +1 -0
- package/build/{component → common}/local/localEnvManager.js +2 -2
- package/build/common/local/localEnvManager.js.map +1 -0
- package/build/common/local/localTelemetryReporter.d.ts.map +1 -0
- package/build/{component → common}/local/localTelemetryReporter.js +4 -4
- package/build/common/local/localTelemetryReporter.js.map +1 -0
- package/build/common/local/npmLogHelper.d.ts.map +1 -0
- package/build/common/local/npmLogHelper.js.map +1 -0
- package/build/common/local/packageJsonHelper.d.ts.map +1 -0
- package/build/common/local/packageJsonHelper.js.map +1 -0
- package/build/common/local/portChecker.d.ts.map +1 -0
- package/build/{component → common}/local/portChecker.js +6 -6
- package/build/common/local/portChecker.js.map +1 -0
- package/build/common/local/process.d.ts.map +1 -0
- package/build/common/local/process.js.map +1 -0
- package/build/common/local/taskDefinition.d.ts.map +1 -0
- package/build/{component → common}/local/taskDefinition.js +6 -6
- package/build/common/local/taskDefinition.js.map +1 -0
- package/build/common/localizeUtils.js +3 -3
- package/build/common/localizeUtils.js.map +1 -1
- package/build/common/m365/constants.d.ts +6 -0
- package/build/common/m365/constants.d.ts.map +1 -0
- package/build/{component → common}/m365/constants.js +1 -4
- package/build/common/m365/constants.js.map +1 -0
- package/build/common/m365/errors.d.ts.map +1 -0
- package/build/{component → common}/m365/errors.js +3 -3
- package/build/common/m365/errors.js.map +1 -0
- package/build/common/m365/launchHelper.d.ts +12 -0
- package/build/common/m365/launchHelper.d.ts.map +1 -0
- package/build/{component → common}/m365/launchHelper.js +30 -38
- package/build/common/m365/launchHelper.js.map +1 -0
- package/build/common/m365/packageService.d.ts.map +1 -0
- package/build/{component → common}/m365/packageService.js +28 -28
- package/build/common/m365/packageService.js.map +1 -0
- package/build/common/m365/serviceConstant.d.ts +3 -0
- package/build/common/m365/serviceConstant.d.ts.map +1 -0
- package/build/common/m365/serviceConstant.js +8 -0
- package/build/common/m365/serviceConstant.js.map +1 -0
- package/build/common/projectSettingsHelper.d.ts +0 -5
- package/build/common/projectSettingsHelper.d.ts.map +1 -1
- package/build/common/projectSettingsHelper.js +1 -31
- package/build/common/projectSettingsHelper.js.map +1 -1
- package/build/common/projectSettingsHelperV3.d.ts +2 -0
- package/build/common/projectSettingsHelperV3.d.ts.map +1 -0
- package/build/common/projectSettingsHelperV3.js +15 -0
- package/build/common/projectSettingsHelperV3.js.map +1 -0
- package/build/common/projectTypeChecker.js +3 -3
- package/build/common/projectTypeChecker.js.map +1 -1
- package/build/common/samples.d.ts +1 -6
- package/build/common/samples.d.ts.map +1 -1
- package/build/common/samples.js +7 -7
- package/build/common/samples.js.map +1 -1
- package/build/common/stringUtils.d.ts +5 -11
- package/build/common/stringUtils.d.ts.map +1 -1
- package/build/common/stringUtils.js +101 -71
- package/build/common/stringUtils.js.map +1 -1
- package/build/common/telemetry.d.ts +13 -43
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +74 -97
- package/build/common/telemetry.js.map +1 -1
- package/build/common/templates-config.json +2 -2
- package/build/common/tools.d.ts +32 -2
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +250 -17
- package/build/common/tools.js.map +1 -1
- package/build/common/utils.d.ts +3 -5
- package/build/common/utils.d.ts.map +1 -1
- package/build/common/utils.js +12 -40
- package/build/common/utils.js.map +1 -1
- package/build/common/wrappedAxiosClient.d.ts +0 -1
- package/build/common/wrappedAxiosClient.d.ts.map +1 -1
- package/build/common/wrappedAxiosClient.js +34 -64
- package/build/common/wrappedAxiosClient.js.map +1 -1
- package/build/component/configManager/actionInjector.js +2 -2
- package/build/component/configManager/actionInjector.js.map +1 -1
- package/build/component/configManager/lifecycle.js +10 -10
- package/build/component/configManager/lifecycle.js.map +1 -1
- package/build/component/configManager/parser.js +21 -21
- package/build/component/configManager/parser.js.map +1 -1
- package/build/component/configManager/validator.js +2 -2
- package/build/component/configManager/validator.js.map +1 -1
- package/build/component/constant/commonConstant.d.ts +0 -1
- package/build/component/constant/commonConstant.d.ts.map +1 -1
- package/build/component/constant/commonConstant.js +0 -1
- package/build/component/constant/commonConstant.js.map +1 -1
- package/build/component/constants.d.ts +223 -7
- package/build/component/constants.d.ts.map +1 -1
- package/build/component/constants.js +251 -12
- package/build/component/constants.js.map +1 -1
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +234 -125
- package/build/component/coordinator/index.js.map +1 -1
- package/build/component/coordinator/summary.js +10 -10
- package/build/component/coordinator/summary.js.map +1 -1
- package/build/component/deployUtils.js +4 -4
- package/build/component/deployUtils.js.map +1 -1
- package/build/component/developerPortalScaffoldUtils.d.ts +5 -1
- package/build/component/developerPortalScaffoldUtils.d.ts.map +1 -1
- package/build/component/developerPortalScaffoldUtils.js +94 -78
- 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 +29 -43
- package/build/component/driver/aad/create.js.map +1 -1
- package/build/component/driver/aad/error/aadAppNameTooLongError.js +2 -2
- package/build/component/driver/aad/error/aadAppNameTooLongError.js.map +1 -1
- package/build/component/driver/aad/error/aadManifestError.js +27 -27
- package/build/component/driver/aad/error/aadManifestError.js.map +1 -1
- package/build/component/driver/aad/error/clientSecretNotAllowedError.js +2 -2
- package/build/component/driver/aad/error/clientSecretNotAllowedError.js.map +1 -1
- package/build/component/driver/aad/error/credentialInvalidLifetimeError.js +2 -2
- package/build/component/driver/aad/error/credentialInvalidLifetimeError.js.map +1 -1
- package/build/component/driver/aad/error/invalidFieldInManifestError.js +2 -2
- package/build/component/driver/aad/error/invalidFieldInManifestError.js.map +1 -1
- package/build/component/driver/aad/error/missingEnvError.js +2 -2
- package/build/component/driver/aad/error/missingEnvError.js.map +1 -1
- package/build/component/driver/aad/update.js +16 -16
- package/build/component/driver/aad/update.js.map +1 -1
- package/build/component/driver/aad/utility/aadAppClient.d.ts.map +1 -1
- package/build/component/driver/aad/utility/aadAppClient.js +19 -19
- package/build/component/driver/aad/utility/aadAppClient.js.map +1 -1
- package/build/component/driver/aad/utility/aadManifestHelper.js +3 -3
- package/build/component/driver/aad/utility/aadManifestHelper.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 +13 -13
- package/build/component/driver/aad/utility/buildAadManifest.js.map +1 -1
- package/build/component/driver/aad/utility/constants.d.ts +0 -2
- package/build/component/driver/aad/utility/constants.d.ts.map +1 -1
- package/build/component/driver/aad/utility/constants.js +0 -2
- package/build/component/driver/aad/utility/constants.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 +31 -31
- package/build/component/driver/add/addWebPart.js.map +1 -1
- package/build/component/driver/add/error/noConfigurationError.js +2 -2
- package/build/component/driver/add/error/noConfigurationError.js.map +1 -1
- package/build/component/driver/apiKey/create.d.ts.map +1 -1
- package/build/component/driver/apiKey/create.js +27 -30
- package/build/component/driver/apiKey/create.js.map +1 -1
- package/build/component/driver/apiKey/error/apiKeyClientSecretInvalid.js +2 -2
- package/build/component/driver/apiKey/error/apiKeyClientSecretInvalid.js.map +1 -1
- package/build/component/driver/apiKey/error/apiKeyDomainInvalid.js +2 -2
- package/build/component/driver/apiKey/error/apiKeyDomainInvalid.js.map +1 -1
- package/build/component/driver/apiKey/error/apiKeyFailedToGetDomain.js +2 -2
- package/build/component/driver/apiKey/error/apiKeyFailedToGetDomain.js.map +1 -1
- package/build/component/driver/apiKey/error/apiKeyNameTooLong.js +2 -2
- package/build/component/driver/apiKey/error/apiKeyNameTooLong.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 +27 -27
- package/build/component/driver/apiKey/update.js.map +1 -1
- package/build/component/driver/apiKey/utility/constants.d.ts +1 -1
- package/build/component/driver/apiKey/utility/constants.js +1 -1
- package/build/component/driver/apiKey/utility/utility.js +2 -2
- package/build/component/driver/apiKey/utility/utility.js.map +1 -1
- package/build/component/driver/arm/deploy.js +4 -4
- package/build/component/driver/arm/deploy.js.map +1 -1
- package/build/component/driver/arm/deployImpl.d.ts.map +1 -1
- package/build/component/driver/arm/deployImpl.js +18 -20
- 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 +9 -29
- package/build/component/driver/arm/util/bicepChecker.js.map +1 -1
- package/build/component/driver/arm/util/handleError.js +10 -10
- package/build/component/driver/arm/util/handleError.js.map +1 -1
- package/build/component/driver/arm/validator.js +3 -3
- 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 +22 -38
- package/build/component/driver/botAadApp/create.js.map +1 -1
- package/build/component/driver/botAadApp/error/unexpectedEmptyBotPasswordError.js +2 -2
- package/build/component/driver/botAadApp/error/unexpectedEmptyBotPasswordError.js.map +1 -1
- package/build/component/driver/botAadApp/utility/constants.d.ts +0 -1
- package/build/component/driver/botAadApp/utility/constants.d.ts.map +1 -1
- package/build/component/driver/botAadApp/utility/constants.js +0 -1
- package/build/component/driver/botAadApp/utility/constants.js.map +1 -1
- package/build/component/driver/botFramework/createOrUpdateBot.js +14 -14
- package/build/component/driver/botFramework/createOrUpdateBot.js.map +1 -1
- package/build/component/driver/botFramework/error/invalidBotIdError.js +2 -2
- package/build/component/driver/botFramework/error/invalidBotIdError.js.map +1 -1
- package/build/component/driver/deploy/azure/azureAppServiceDeployDriver.js +3 -3
- package/build/component/driver/deploy/azure/azureAppServiceDeployDriver.js.map +1 -1
- package/build/component/driver/deploy/azure/azureFunctionDeployDriver.js +3 -3
- package/build/component/driver/deploy/azure/azureFunctionDeployDriver.js.map +1 -1
- package/build/component/driver/deploy/azure/azureStaticWebAppGetDeploymentTokenDriver.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/azureStaticWebAppGetDeploymentTokenDriver.js +10 -16
- package/build/component/driver/deploy/azure/azureStaticWebAppGetDeploymentTokenDriver.js.map +1 -1
- package/build/component/driver/deploy/azure/azureStorageDeployDriver.js +9 -9
- package/build/component/driver/deploy/azure/azureStorageDeployDriver.js.map +1 -1
- package/build/component/driver/deploy/azure/azureStorageStaticWebsiteConfigDriver.js +15 -15
- package/build/component/driver/deploy/azure/azureStorageStaticWebsiteConfigDriver.js.map +1 -1
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js +7 -7
- 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 +20 -20
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.js.map +1 -1
- package/build/component/driver/deploy/azure/impl/baseDeployImpl.js +11 -11
- package/build/component/driver/deploy/azure/impl/baseDeployImpl.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 +28 -29
- package/build/component/driver/deploy/spfx/deployDriver.js.map +1 -1
- package/build/component/driver/deploy/spfx/error/createAppCatalogFailedError.js +2 -2
- package/build/component/driver/deploy/spfx/error/createAppCatalogFailedError.js.map +1 -1
- package/build/component/driver/deploy/spfx/error/getGraphTokenFailedError.js +2 -2
- package/build/component/driver/deploy/spfx/error/getGraphTokenFailedError.js.map +1 -1
- package/build/component/driver/deploy/spfx/error/getSPOTokenFailedError.js +2 -2
- package/build/component/driver/deploy/spfx/error/getSPOTokenFailedError.js.map +1 -1
- package/build/component/driver/deploy/spfx/error/getTenantFailedError.js +2 -2
- package/build/component/driver/deploy/spfx/error/getTenantFailedError.js.map +1 -1
- package/build/component/driver/deploy/spfx/error/insufficientPermissionError.js +2 -2
- package/build/component/driver/deploy/spfx/error/insufficientPermissionError.js.map +1 -1
- package/build/component/driver/deploy/spfx/error/noSPPackageError.js +2 -2
- package/build/component/driver/deploy/spfx/error/noSPPackageError.js.map +1 -1
- package/build/component/driver/deploy/spfx/error/noValidAppCatelogError.js +2 -2
- package/build/component/driver/deploy/spfx/error/noValidAppCatelogError.js.map +1 -1
- package/build/component/driver/deploy/spfx/error/uploadAppPackageFailedError.js +2 -2
- package/build/component/driver/deploy/spfx/error/uploadAppPackageFailedError.js.map +1 -1
- package/build/component/driver/deploy/spfx/utility/constants.js +5 -5
- package/build/component/driver/deploy/spfx/utility/constants.js.map +1 -1
- package/build/component/driver/devTool/constant.d.ts +8 -8
- package/build/component/driver/devTool/constant.d.ts.map +1 -1
- package/build/component/driver/devTool/constant.js +10 -10
- package/build/component/driver/devTool/constant.js.map +1 -1
- package/build/component/driver/devTool/error/dotnetInstallationUserError.js +4 -4
- package/build/component/driver/devTool/error/dotnetInstallationUserError.js.map +1 -1
- package/build/component/driver/devTool/error/funcInstallationUserError.js +4 -4
- package/build/component/driver/devTool/error/funcInstallationUserError.js.map +1 -1
- package/build/component/driver/devTool/error/testToolInstallationUserError.js +4 -4
- 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 +12 -12
- package/build/component/driver/devTool/installDriver.js.map +1 -1
- package/build/component/driver/error/outputEnvironmentVariableUndefinedError.js +2 -2
- package/build/component/driver/error/outputEnvironmentVariableUndefinedError.js.map +1 -1
- package/build/component/driver/file/createOrUpdateEnvironmentFile.js +11 -11
- package/build/component/driver/file/createOrUpdateEnvironmentFile.js.map +1 -1
- package/build/component/driver/file/createOrUpdateJsonFile.js +12 -12
- package/build/component/driver/file/createOrUpdateJsonFile.js.map +1 -1
- package/build/component/driver/index.d.ts +0 -1
- package/build/component/driver/index.d.ts.map +1 -1
- package/build/component/driver/index.js +0 -1
- package/build/component/driver/index.js.map +1 -1
- package/build/component/driver/m365/acquire.js +16 -16
- package/build/component/driver/m365/acquire.js.map +1 -1
- package/build/component/driver/middleware/addSWADeployTelemetry.js +7 -7
- 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 +36 -65
- package/build/component/driver/oauth/create.js.map +1 -1
- package/build/component/driver/oauth/error/oauthAuthInfoInvalid.js +2 -2
- package/build/component/driver/oauth/error/oauthAuthInfoInvalid.js.map +1 -1
- package/build/component/driver/oauth/error/oauthDomainInvalid.js +2 -2
- package/build/component/driver/oauth/error/oauthDomainInvalid.js.map +1 -1
- package/build/component/driver/oauth/error/oauthFailedToGetDomain.js +2 -2
- package/build/component/driver/oauth/error/oauthFailedToGetDomain.js.map +1 -1
- package/build/component/driver/oauth/error/oauthNameTooLong.js +2 -2
- package/build/component/driver/oauth/error/oauthNameTooLong.js.map +1 -1
- package/build/component/driver/oauth/interface/createOauthArgs.d.ts +0 -2
- package/build/component/driver/oauth/interface/createOauthArgs.d.ts.map +1 -1
- package/build/component/driver/oauth/interface/updateOauthArgs.d.ts +0 -1
- package/build/component/driver/oauth/interface/updateOauthArgs.d.ts.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 +26 -37
- package/build/component/driver/oauth/update.js.map +1 -1
- package/build/component/driver/oauth/utility/constants.d.ts +1 -1
- package/build/component/driver/oauth/utility/constants.js +1 -1
- package/build/component/driver/oauth/utility/utility.js +6 -5
- package/build/component/driver/oauth/utility/utility.js.map +1 -1
- package/build/component/driver/script/baseBuildDriver.js +8 -8
- package/build/component/driver/script/baseBuildDriver.js.map +1 -1
- package/build/component/driver/script/dotnetBuildDriver.js +3 -3
- package/build/component/driver/script/dotnetBuildDriver.js.map +1 -1
- package/build/component/driver/script/npmBuildDriver.js +3 -3
- package/build/component/driver/script/npmBuildDriver.js.map +1 -1
- package/build/component/driver/script/npxBuildDriver.js +5 -5
- package/build/component/driver/script/npxBuildDriver.js.map +1 -1
- package/build/component/driver/script/scriptDriver.d.ts +0 -2
- package/build/component/driver/script/scriptDriver.d.ts.map +1 -1
- package/build/component/driver/script/scriptDriver.js +29 -28
- 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 +74 -63
- package/build/component/driver/teamsApp/appStudio.js.map +1 -1
- package/build/component/driver/teamsApp/clients/appStudioClient.d.ts +4 -7
- package/build/component/driver/teamsApp/clients/appStudioClient.d.ts.map +1 -1
- package/build/component/driver/teamsApp/clients/appStudioClient.js +77 -78
- 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 +32 -32
- package/build/component/driver/teamsApp/configure.js.map +1 -1
- package/build/component/driver/teamsApp/constants.d.ts +3 -15
- package/build/component/driver/teamsApp/constants.d.ts.map +1 -1
- package/build/component/driver/teamsApp/constants.js +16 -136
- package/build/component/driver/teamsApp/constants.js.map +1 -1
- package/build/component/driver/teamsApp/copyAppPackageToSPFx.js +8 -8
- package/build/component/driver/teamsApp/copyAppPackageToSPFx.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 +37 -37
- package/build/component/driver/teamsApp/create.js.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.d.ts +1 -3
- package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.js +68 -84
- package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/errors.d.ts +2 -6
- package/build/component/driver/teamsApp/errors.d.ts.map +1 -1
- package/build/component/driver/teamsApp/errors.js +42 -49
- package/build/component/driver/teamsApp/errors.js.map +1 -1
- package/build/component/driver/teamsApp/interfaces/CreateAppPackageArgs.d.ts +2 -6
- package/build/component/driver/teamsApp/interfaces/CreateAppPackageArgs.d.ts.map +1 -1
- package/build/component/driver/teamsApp/interfaces/OauthRegistration.d.ts +0 -2
- package/build/component/driver/teamsApp/interfaces/OauthRegistration.d.ts.map +1 -1
- package/build/component/driver/teamsApp/interfaces/OauthRegistration.js.map +1 -1
- package/build/component/driver/teamsApp/interfaces/appdefinitions/IValidationResult.d.ts +0 -1
- package/build/component/driver/teamsApp/interfaces/appdefinitions/IValidationResult.d.ts.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 +42 -42
- package/build/component/driver/teamsApp/publishAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/teamsappMgr.d.ts.map +1 -1
- package/build/component/driver/teamsApp/teamsappMgr.js +49 -48
- package/build/component/driver/teamsApp/teamsappMgr.js.map +1 -1
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.d.ts +3 -5
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.js +41 -72
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.js.map +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts +2 -3
- package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.js +61 -85
- package/build/component/driver/teamsApp/utils/ManifestUtils.js.map +1 -1
- package/build/component/driver/teamsApp/utils/PluginManifestUtils.d.ts +3 -4
- package/build/component/driver/teamsApp/utils/PluginManifestUtils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/PluginManifestUtils.js +18 -36
- package/build/component/driver/teamsApp/utils/PluginManifestUtils.js.map +1 -1
- package/build/component/driver/teamsApp/utils/telemetry.d.ts +9 -0
- package/build/component/driver/teamsApp/utils/telemetry.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/telemetry.js +9 -0
- package/build/component/driver/teamsApp/utils/telemetry.js.map +1 -1
- package/build/component/driver/teamsApp/utils/utils.d.ts +4 -4
- package/build/component/driver/teamsApp/utils/utils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/utils.js +15 -45
- package/build/component/driver/teamsApp/utils/utils.js.map +1 -1
- package/build/component/driver/teamsApp/validate.js +27 -27
- package/build/component/driver/teamsApp/validate.js.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.d.ts +5 -3
- package/build/component/driver/teamsApp/validateAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.js +54 -68
- 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 +49 -50
- package/build/component/driver/teamsApp/validateTestCases.js.map +1 -1
- package/build/component/driver/util/utils.d.ts +0 -3
- package/build/component/driver/util/utils.d.ts.map +1 -1
- package/build/component/driver/util/utils.js +1 -16
- 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 +9 -12
- package/build/component/driver/util/wrapUtil.js.map +1 -1
- package/build/component/error/componentError.js +8 -8
- package/build/component/error/componentError.js.map +1 -1
- package/build/component/feature/collaboration.d.ts.map +1 -1
- package/build/component/feature/collaboration.js +59 -60
- package/build/component/feature/collaboration.js.map +1 -1
- package/build/component/feature/createAuthFiles.js +8 -8
- package/build/component/feature/createAuthFiles.js.map +1 -1
- package/build/component/feature/sso.js +6 -7
- package/build/component/feature/sso.js.map +1 -1
- package/build/component/generator/constant.d.ts +0 -1
- package/build/component/generator/constant.d.ts.map +1 -1
- package/build/component/generator/constant.js +1 -2
- package/build/component/generator/constant.js.map +1 -1
- package/build/component/generator/copilotPlugin/generator.d.ts +13 -0
- package/build/component/generator/copilotPlugin/generator.d.ts.map +1 -0
- package/build/component/generator/copilotPlugin/generator.js +275 -0
- package/build/component/generator/copilotPlugin/generator.js.map +1 -0
- package/build/component/generator/copilotPlugin/helper.d.ts +45 -0
- package/build/component/generator/copilotPlugin/helper.d.ts.map +1 -0
- package/build/component/generator/copilotPlugin/helper.js +710 -0
- package/build/component/generator/copilotPlugin/helper.js.map +1 -0
- package/build/component/generator/error.d.ts +1 -1
- package/build/component/generator/error.d.ts.map +1 -1
- package/build/component/generator/error.js +5 -5
- package/build/component/generator/error.js.map +1 -1
- package/build/component/generator/generator.d.ts.map +1 -1
- package/build/component/generator/generator.js +21 -27
- 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 +22 -14
- 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 +2 -6
- package/build/component/generator/generatorProvider.js.map +1 -1
- package/build/component/generator/officeAddin/generator.d.ts +1 -0
- package/build/component/generator/officeAddin/generator.d.ts.map +1 -1
- package/build/component/generator/officeAddin/generator.js +73 -72
- package/build/component/generator/officeAddin/generator.js.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.d.ts +0 -5
- package/build/component/generator/officeAddin/helperMethods.d.ts.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.js +0 -37
- package/build/component/generator/officeAddin/helperMethods.js.map +1 -1
- package/build/component/generator/officeXMLAddin/generator.d.ts +13 -0
- package/build/component/generator/officeXMLAddin/generator.d.ts.map +1 -0
- package/build/component/generator/officeXMLAddin/generator.js +110 -0
- package/build/component/generator/officeXMLAddin/generator.js.map +1 -0
- package/build/component/generator/officeXMLAddin/projectConfig.d.ts +4 -2
- package/build/component/generator/officeXMLAddin/projectConfig.d.ts.map +1 -1
- package/build/component/generator/officeXMLAddin/projectConfig.js +86 -1
- 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 +10 -11
- 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 +6 -7
- package/build/component/generator/spfx/depsChecker/yoChecker.js.map +1 -1
- package/build/component/generator/spfx/error.d.ts +1 -0
- package/build/component/generator/spfx/error.d.ts.map +1 -1
- package/build/component/generator/spfx/error.js +24 -20
- 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 +105 -102
- package/build/component/generator/spfx/spfxGenerator.js.map +1 -1
- package/build/component/generator/spfx/utils/constants.d.ts +13 -0
- package/build/component/generator/spfx/utils/constants.d.ts.map +1 -1
- package/build/component/generator/spfx/utils/constants.js +24 -9
- 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 +9 -11
- 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 +3 -3
- 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 +6 -6
- 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 +18 -16
- package/build/component/generator/templates/templateGenerator.js.map +1 -1
- package/build/component/generator/templates/templateNames.d.ts +0 -3
- 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.d.ts.map +1 -1
- package/build/component/generator/templates/templateReplaceMap.js +15 -48
- package/build/component/generator/templates/templateReplaceMap.js.map +1 -1
- package/build/component/generator/utils.d.ts +12 -4
- package/build/component/generator/utils.d.ts.map +1 -1
- package/build/component/generator/utils.js +80 -49
- package/build/component/generator/utils.js.map +1 -1
- package/build/component/messages.js +7 -7
- package/build/component/messages.js.map +1 -1
- 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 +13 -13
- package/build/component/middleware/actionExecutionMW.js.map +1 -1
- package/build/component/middleware/envMW.js +9 -9
- package/build/component/middleware/envMW.js.map +1 -1
- package/build/component/middleware/questionMW.js +4 -4
- package/build/component/middleware/questionMW.js.map +1 -1
- package/build/component/migrate.d.ts +0 -32
- package/build/component/migrate.d.ts.map +1 -1
- package/build/component/migrate.js +35 -112
- package/build/component/migrate.js.map +1 -1
- package/build/component/provisionUtils.d.ts.map +1 -1
- package/build/component/provisionUtils.js +29 -28
- 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 +22 -23
- 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 +8 -11
- package/build/component/resource/botService/botRegistration/botFrameworkRegistration.js.map +1 -1
- package/build/component/resource/botService/constants.d.ts +13 -0
- package/build/component/resource/botService/constants.d.ts.map +1 -1
- package/build/component/resource/botService/constants.js +15 -1
- package/build/component/resource/botService/constants.js.map +1 -1
- package/build/component/resource/botService/errors.js +2 -2
- package/build/component/resource/botService/errors.js.map +1 -1
- package/build/component/resource/botService/messages.js +6 -6
- package/build/component/resource/botService/messages.js.map +1 -1
- package/build/component/resource/botService/strings.js +1 -1
- package/build/component/resource/botService/strings.js.map +1 -1
- package/build/component/telemetry.d.ts.map +1 -1
- package/build/component/telemetry.js +7 -6
- package/build/component/telemetry.js.map +1 -1
- package/build/component/utils/ResourceGroupHelper.d.ts +2 -10
- package/build/component/utils/ResourceGroupHelper.d.ts.map +1 -1
- package/build/component/utils/ResourceGroupHelper.js +62 -155
- package/build/component/utils/ResourceGroupHelper.js.map +1 -1
- package/build/component/utils/azureResourceOperation.js +2 -2
- package/build/component/utils/azureResourceOperation.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 +1 -3
- package/build/component/utils/charsetUtils.js.map +1 -1
- package/build/component/utils/common.d.ts +3 -4
- package/build/component/utils/common.d.ts.map +1 -1
- package/build/component/utils/common.js +6 -17
- package/build/component/utils/common.js.map +1 -1
- package/build/component/utils/depsChecker/common.d.ts +3 -1
- package/build/component/utils/depsChecker/common.d.ts.map +1 -1
- package/build/component/utils/depsChecker/common.js +4 -2
- package/build/component/utils/depsChecker/common.js.map +1 -1
- package/build/component/utils/envUtil.d.ts +0 -1
- package/build/component/utils/envUtil.d.ts.map +1 -1
- package/build/component/utils/envUtil.js +20 -20
- package/build/component/utils/envUtil.js.map +1 -1
- package/build/component/utils/fileOperation.js +4 -3
- package/build/component/utils/fileOperation.js.map +1 -1
- package/build/component/utils/metadataGraphPermssion.js +3 -3
- package/build/component/utils/metadataGraphPermssion.js.map +1 -1
- package/build/component/utils/metadataUtil.js +3 -3
- 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 +16 -14
- package/build/component/utils/pathUtils.js.map +1 -1
- package/build/component/utils/settingsUtil.js +8 -8
- 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 +10 -7
- package/build/component/utils/teamsFxTelemetryReporter.js.map +1 -1
- package/build/component/utils.d.ts +12 -0
- package/build/component/utils.d.ts.map +1 -0
- package/build/component/utils.js +136 -0
- package/build/component/utils.js.map +1 -0
- package/build/component/workflow.d.ts +4 -0
- package/build/component/workflow.d.ts.map +1 -0
- package/build/component/workflow.js +18 -0
- package/build/component/workflow.js.map +1 -0
- package/build/core/FxCore.d.ts +4 -37
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.js +477 -750
- 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 +72 -70
- package/build/core/collaborator.js.map +1 -1
- package/build/core/crypto.d.ts.map +1 -1
- package/build/core/crypto.js +5 -4
- package/build/core/crypto.js.map +1 -1
- package/build/core/environment.js +7 -7
- package/build/core/environment.js.map +1 -1
- package/build/core/environmentName.d.ts +1 -0
- package/build/core/environmentName.d.ts.map +1 -1
- package/build/core/environmentName.js +2 -0
- package/build/core/environmentName.js.map +1 -1
- package/build/core/error.d.ts +32 -0
- package/build/core/error.d.ts.map +1 -0
- package/build/core/error.js +122 -0
- package/build/core/error.js.map +1 -0
- package/build/{common → core}/globalVars.d.ts +1 -3
- package/build/core/globalVars.d.ts.map +1 -0
- package/build/{common → core}/globalVars.js +1 -12
- package/build/core/globalVars.js.map +1 -0
- package/build/core/middleware/concurrentLocker.d.ts.map +1 -1
- package/build/core/middleware/concurrentLocker.js +20 -19
- package/build/core/middleware/concurrentLocker.js.map +1 -1
- package/build/core/middleware/errorHandler.js +5 -5
- package/build/core/middleware/errorHandler.js.map +1 -1
- package/build/core/middleware/projectMigratorV3.d.ts +1 -5
- package/build/core/middleware/projectMigratorV3.d.ts.map +1 -1
- package/build/core/middleware/projectMigratorV3.js +100 -104
- package/build/core/middleware/projectMigratorV3.js.map +1 -1
- package/build/core/middleware/projectSettingsLoader.js +4 -4
- package/build/core/middleware/projectSettingsLoader.js.map +1 -1
- package/build/core/middleware/projectVersionChecker.js +14 -14
- package/build/core/middleware/projectVersionChecker.js.map +1 -1
- package/build/core/middleware/utils/MigrationUtils.js +5 -5
- package/build/core/middleware/utils/MigrationUtils.js.map +1 -1
- package/build/core/middleware/utils/appYmlGenerator.d.ts +0 -1
- package/build/core/middleware/utils/appYmlGenerator.d.ts.map +1 -1
- package/build/core/middleware/utils/appYmlGenerator.js +9 -15
- package/build/core/middleware/utils/appYmlGenerator.js.map +1 -1
- package/build/core/middleware/utils/debug/debugV3MigrationUtils.js +10 -10
- package/build/core/middleware/utils/debug/debugV3MigrationUtils.js.map +1 -1
- package/build/core/middleware/utils/debug/taskMigrator.js +74 -74
- package/build/core/middleware/utils/debug/taskMigrator.js.map +1 -1
- package/build/core/middleware/utils/migrationContext.js +1 -1
- package/build/core/middleware/utils/migrationContext.js.map +1 -1
- package/build/core/middleware/utils/v3MigrationUtils.js +13 -13
- package/build/core/middleware/utils/v3MigrationUtils.js.map +1 -1
- package/build/core/middleware/videoFilterAppBlocker.d.ts +0 -2
- package/build/core/middleware/videoFilterAppBlocker.d.ts.map +1 -1
- package/build/core/middleware/videoFilterAppBlocker.js +5 -21
- package/build/core/middleware/videoFilterAppBlocker.js.map +1 -1
- package/build/core/telemetry.d.ts +5 -0
- package/build/core/telemetry.d.ts.map +1 -1
- package/build/core/telemetry.js +17 -9
- package/build/core/telemetry.js.map +1 -1
- package/build/error/arm.js +10 -10
- package/build/error/arm.js.map +1 -1
- package/build/error/azure.js +20 -20
- package/build/error/azure.js.map +1 -1
- package/build/error/common.d.ts +1 -36
- package/build/error/common.d.ts.map +1 -1
- package/build/error/common.js +64 -175
- package/build/error/common.js.map +1 -1
- package/build/error/deploy.js +24 -24
- package/build/error/deploy.js.map +1 -1
- package/build/error/m365.js +6 -6
- package/build/error/m365.js.map +1 -1
- package/build/error/script.d.ts +2 -2
- package/build/error/script.d.ts.map +1 -1
- package/build/error/script.js +8 -14
- package/build/error/script.js.map +1 -1
- package/build/error/teamsApp.d.ts +0 -3
- package/build/error/teamsApp.d.ts.map +1 -1
- package/build/error/teamsApp.js +7 -20
- package/build/error/teamsApp.js.map +1 -1
- package/build/error/upgrade.js +2 -2
- package/build/error/upgrade.js.map +1 -1
- package/build/error/yml.js +13 -13
- package/build/error/yml.js.map +1 -1
- package/build/failpoint/index.d.ts +3 -0
- package/build/failpoint/index.d.ts.map +1 -0
- package/build/failpoint/index.js +11 -0
- package/build/failpoint/index.js.map +1 -0
- package/build/failpoint/marker.d.ts +13 -0
- package/build/failpoint/marker.d.ts.map +1 -0
- package/build/{question/inputs/SyncManifestInputs.js → failpoint/marker.js} +4 -1
- package/build/failpoint/marker.js.map +1 -0
- package/build/failpoint/runtime.d.ts +12 -0
- package/build/failpoint/runtime.d.ts.map +1 -0
- package/build/failpoint/runtime.js +67 -0
- package/build/failpoint/runtime.js.map +1 -0
- package/build/index.d.ts +36 -61
- package/build/index.d.ts.map +1 -1
- package/build/index.js +53 -132
- package/build/index.js.map +1 -1
- package/build/question/constants.d.ts +5 -269
- package/build/question/constants.d.ts.map +1 -1
- package/build/question/constants.js +13 -1107
- package/build/question/constants.js.map +1 -1
- package/build/question/create.d.ts +151 -13
- package/build/question/create.d.ts.map +1 -1
- package/build/question/create.js +1386 -542
- package/build/question/create.js.map +1 -1
- package/build/question/generator.js +2 -6
- package/build/question/generator.js.map +1 -1
- package/build/question/index.d.ts +3 -3
- package/build/question/index.d.ts.map +1 -1
- package/build/question/index.js +21 -23
- package/build/question/index.js.map +1 -1
- package/build/question/inputs/AddPluginInputs.d.ts +4 -8
- package/build/question/inputs/AddPluginInputs.d.ts.map +1 -1
- package/build/question/inputs/CreateProjectInputs.d.ts +8 -14
- package/build/question/inputs/CreateProjectInputs.d.ts.map +1 -1
- package/build/question/inputs/index.d.ts +0 -2
- package/build/question/inputs/index.d.ts.map +1 -1
- package/build/question/inputs/index.js +0 -2
- package/build/question/inputs/index.js.map +1 -1
- package/build/question/options/AddPluginOptions.d.ts.map +1 -1
- package/build/question/options/AddPluginOptions.js +10 -19
- package/build/question/options/AddPluginOptions.js.map +1 -1
- package/build/question/options/CreateProjectOptions.d.ts.map +1 -1
- package/build/question/options/CreateProjectOptions.js +33 -36
- package/build/question/options/CreateProjectOptions.js.map +1 -1
- package/build/question/options/index.d.ts +0 -2
- package/build/question/options/index.d.ts.map +1 -1
- package/build/question/options/index.js +0 -2
- package/build/question/options/index.js.map +1 -1
- package/build/question/other.d.ts +29 -4
- package/build/question/other.d.ts.map +1 -1
- package/build/question/other.js +343 -284
- package/build/question/other.js.map +1 -1
- package/build/question/questionNames.d.ts +78 -0
- package/build/question/questionNames.d.ts.map +1 -0
- package/build/question/questionNames.js +85 -0
- package/build/question/questionNames.js.map +1 -0
- package/build/question/util.d.ts +2 -0
- package/build/question/util.d.ts.map +1 -0
- package/build/question/util.js +18 -0
- package/build/question/util.js.map +1 -0
- package/build/ui/visitor.d.ts +1 -0
- package/build/ui/visitor.d.ts.map +1 -1
- package/build/ui/visitor.js +38 -57
- package/build/ui/visitor.js.map +1 -1
- package/package.json +14 -21
- package/resource/deps-checker/dotnet-install.ps1 +423 -912
- package/resource/deps-checker/dotnet-install.sh +238 -876
- package/resource/package.nls.json +156 -189
- package/resource/yaml-schema/yaml.schema.json +1 -59
- 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 +0 -6
- package/templates/plugins/resource/aad/manifest/aad.template.json +0 -6
- package/templates/plugins/resource/aad/manifest/bot/aad.manifest.template.json +0 -6
- package/templates/plugins/resource/aad/manifest/tab/aad.manifest.template.json +0 -6
- package/build/client/teamsDevPortalClient.d.ts +0 -128
- package/build/client/teamsDevPortalClient.d.ts.map +0 -1
- package/build/client/teamsDevPortalClient.js +0 -949
- package/build/client/teamsDevPortalClient.js.map +0 -1
- package/build/common/azureUtils.d.ts +0 -3
- package/build/common/azureUtils.d.ts.map +0 -1
- package/build/common/azureUtils.js +0 -50
- package/build/common/azureUtils.js.map +0 -1
- package/build/common/globalVars.d.ts.map +0 -1
- package/build/common/globalVars.js.map +0 -1
- package/build/common/requestUtils.d.ts +0 -4
- package/build/common/requestUtils.d.ts.map +0 -1
- package/build/common/requestUtils.js +0 -52
- package/build/common/requestUtils.js.map +0 -1
- package/build/common/secretmasker/dict.d.ts +0 -22
- package/build/common/secretmasker/dict.d.ts.map +0 -1
- package/build/common/secretmasker/dict.js +0 -83
- package/build/common/secretmasker/dict.js.map +0 -1
- package/build/common/secretmasker/feature.d.ts +0 -19
- package/build/common/secretmasker/feature.d.ts.map +0 -1
- package/build/common/secretmasker/feature.js +0 -389
- package/build/common/secretmasker/feature.js.map +0 -1
- package/build/common/secretmasker/masker.d.ts +0 -12
- package/build/common/secretmasker/masker.d.ts.map +0 -1
- package/build/common/secretmasker/masker.js +0 -54
- package/build/common/secretmasker/masker.js.map +0 -1
- package/build/component/deps-checker/checkerFactory.d.ts.map +0 -1
- package/build/component/deps-checker/checkerFactory.js.map +0 -1
- package/build/component/deps-checker/constant/helpLink.d.ts.map +0 -1
- package/build/component/deps-checker/constant/helpLink.js.map +0 -1
- package/build/component/deps-checker/constant/index.d.ts.map +0 -1
- package/build/component/deps-checker/constant/index.js.map +0 -1
- package/build/component/deps-checker/constant/message.d.ts.map +0 -1
- package/build/component/deps-checker/constant/message.js +0 -45
- package/build/component/deps-checker/constant/message.js.map +0 -1
- package/build/component/deps-checker/constant/telemetry.d.ts.map +0 -1
- package/build/component/deps-checker/constant/telemetry.js.map +0 -1
- package/build/component/deps-checker/coreDepsLoggerAdapter.d.ts.map +0 -1
- package/build/component/deps-checker/coreDepsLoggerAdapter.js.map +0 -1
- package/build/component/deps-checker/coreDepsTelemetryAdapter.d.ts.map +0 -1
- package/build/component/deps-checker/coreDepsTelemetryAdapter.js.map +0 -1
- package/build/component/deps-checker/depsChecker.d.ts.map +0 -1
- package/build/component/deps-checker/depsChecker.js.map +0 -1
- package/build/component/deps-checker/depsError.d.ts.map +0 -1
- package/build/component/deps-checker/depsError.js.map +0 -1
- package/build/component/deps-checker/depsLogger.d.ts.map +0 -1
- package/build/component/deps-checker/depsLogger.js.map +0 -1
- package/build/component/deps-checker/depsManager.d.ts.map +0 -1
- package/build/component/deps-checker/depsManager.js.map +0 -1
- package/build/component/deps-checker/depsTelemetry.d.ts.map +0 -1
- package/build/component/deps-checker/depsTelemetry.js.map +0 -1
- package/build/component/deps-checker/index.d.ts.map +0 -1
- package/build/component/deps-checker/index.js.map +0 -1
- package/build/component/deps-checker/internal/dotnetChecker.d.ts.map +0 -1
- package/build/component/deps-checker/internal/dotnetChecker.js.map +0 -1
- package/build/component/deps-checker/internal/funcToolChecker.d.ts.map +0 -1
- package/build/component/deps-checker/internal/funcToolChecker.js.map +0 -1
- package/build/component/deps-checker/internal/nodeChecker.d.ts.map +0 -1
- package/build/component/deps-checker/internal/nodeChecker.js.map +0 -1
- package/build/component/deps-checker/internal/testToolChecker.d.ts.map +0 -1
- package/build/component/deps-checker/internal/testToolChecker.js.map +0 -1
- package/build/component/deps-checker/internal/vxTestAppChecker.d.ts.map +0 -1
- package/build/component/deps-checker/internal/vxTestAppChecker.js.map +0 -1
- package/build/component/deps-checker/util/cpUtils.d.ts.map +0 -1
- package/build/component/deps-checker/util/cpUtils.js.map +0 -1
- package/build/component/deps-checker/util/downloadHelper.d.ts.map +0 -1
- package/build/component/deps-checker/util/downloadHelper.js.map +0 -1
- package/build/component/deps-checker/util/fileHelper.d.ts.map +0 -1
- package/build/component/deps-checker/util/fileHelper.js.map +0 -1
- package/build/component/deps-checker/util/index.d.ts.map +0 -1
- package/build/component/deps-checker/util/index.js.map +0 -1
- package/build/component/deps-checker/util/progressIndicator.d.ts.map +0 -1
- package/build/component/deps-checker/util/progressIndicator.js.map +0 -1
- package/build/component/deps-checker/util/system.d.ts.map +0 -1
- package/build/component/deps-checker/util/system.js.map +0 -1
- package/build/component/driver/aad/error/missingServiceManagamentReferenceError.d.ts +0 -5
- package/build/component/driver/aad/error/missingServiceManagamentReferenceError.d.ts.map +0 -1
- package/build/component/driver/aad/error/missingServiceManagamentReferenceError.js +0 -23
- package/build/component/driver/aad/error/missingServiceManagamentReferenceError.js.map +0 -1
- package/build/component/driver/apiKey/error/apiKeyFromScratchClientSecretInvalid.d.ts +0 -5
- package/build/component/driver/apiKey/error/apiKeyFromScratchClientSecretInvalid.d.ts.map +0 -1
- package/build/component/driver/apiKey/error/apiKeyFromScratchClientSecretInvalid.js +0 -21
- package/build/component/driver/apiKey/error/apiKeyFromScratchClientSecretInvalid.js.map +0 -1
- package/build/component/driver/oauth/error/oauthDisablePKCEError.d.ts +0 -5
- package/build/component/driver/oauth/error/oauthDisablePKCEError.d.ts.map +0 -1
- package/build/component/driver/oauth/error/oauthDisablePKCEError.js +0 -21
- package/build/component/driver/oauth/error/oauthDisablePKCEError.js.map +0 -1
- package/build/component/driver/oauth/error/oauthIdentityProviderInvalid.d.ts +0 -5
- package/build/component/driver/oauth/error/oauthIdentityProviderInvalid.d.ts.map +0 -1
- package/build/component/driver/oauth/error/oauthIdentityProviderInvalid.js +0 -21
- package/build/component/driver/oauth/error/oauthIdentityProviderInvalid.js.map +0 -1
- package/build/component/driver/teamsApp/interfaces/SyncManifest.d.ts +0 -20
- package/build/component/driver/teamsApp/interfaces/SyncManifest.d.ts.map +0 -1
- package/build/component/driver/teamsApp/interfaces/SyncManifest.js +0 -5
- package/build/component/driver/teamsApp/interfaces/SyncManifest.js.map +0 -1
- package/build/component/driver/teamsApp/syncManifest.d.ts +0 -14
- package/build/component/driver/teamsApp/syncManifest.d.ts.map +0 -1
- package/build/component/driver/teamsApp/syncManifest.js +0 -226
- package/build/component/driver/teamsApp/syncManifest.js.map +0 -1
- package/build/component/generator/apiSpec/generator.d.ts +0 -15
- package/build/component/generator/apiSpec/generator.d.ts.map +0 -1
- package/build/component/generator/apiSpec/generator.js +0 -274
- package/build/component/generator/apiSpec/generator.js.map +0 -1
- package/build/component/generator/apiSpec/helper.d.ts +0 -50
- package/build/component/generator/apiSpec/helper.d.ts.map +0 -1
- package/build/component/generator/apiSpec/helper.js +0 -834
- package/build/component/generator/apiSpec/helper.js.map +0 -1
- package/build/component/generator/copilotExtension/generator.d.ts +0 -19
- package/build/component/generator/copilotExtension/generator.d.ts.map +0 -1
- package/build/component/generator/copilotExtension/generator.js +0 -116
- package/build/component/generator/copilotExtension/generator.js.map +0 -1
- package/build/component/generator/copilotExtension/helper.d.ts +0 -8
- package/build/component/generator/copilotExtension/helper.d.ts.map +0 -1
- package/build/component/generator/copilotExtension/helper.js +0 -114
- package/build/component/generator/copilotExtension/helper.js.map +0 -1
- package/build/component/local/constants.d.ts +0 -186
- package/build/component/local/constants.d.ts.map +0 -1
- package/build/component/local/constants.js.map +0 -1
- package/build/component/local/index.d.ts.map +0 -1
- package/build/component/local/index.js.map +0 -1
- package/build/component/local/localCertificateManager.d.ts.map +0 -1
- package/build/component/local/localCertificateManager.js.map +0 -1
- package/build/component/local/localEnvManager.d.ts.map +0 -1
- package/build/component/local/localEnvManager.js.map +0 -1
- package/build/component/local/localTelemetryReporter.d.ts.map +0 -1
- package/build/component/local/localTelemetryReporter.js.map +0 -1
- package/build/component/local/npmLogHelper.d.ts.map +0 -1
- package/build/component/local/npmLogHelper.js.map +0 -1
- package/build/component/local/packageJsonHelper.d.ts.map +0 -1
- package/build/component/local/packageJsonHelper.js.map +0 -1
- package/build/component/local/portChecker.d.ts.map +0 -1
- package/build/component/local/portChecker.js.map +0 -1
- package/build/component/local/process.d.ts.map +0 -1
- package/build/component/local/process.js.map +0 -1
- package/build/component/local/taskDefinition.d.ts.map +0 -1
- package/build/component/local/taskDefinition.js.map +0 -1
- package/build/component/m365/constants.d.ts +0 -9
- package/build/component/m365/constants.d.ts.map +0 -1
- package/build/component/m365/constants.js.map +0 -1
- package/build/component/m365/errors.d.ts.map +0 -1
- package/build/component/m365/errors.js.map +0 -1
- package/build/component/m365/launchHelper.d.ts +0 -12
- package/build/component/m365/launchHelper.d.ts.map +0 -1
- package/build/component/m365/launchHelper.js.map +0 -1
- package/build/component/m365/packageService.d.ts.map +0 -1
- package/build/component/m365/packageService.js.map +0 -1
- package/build/component/m365/serviceConstant.d.ts +0 -3
- package/build/component/m365/serviceConstant.d.ts.map +0 -1
- package/build/component/m365/serviceConstant.js +0 -8
- package/build/component/m365/serviceConstant.js.map +0 -1
- package/build/component/utils/envFunctionUtils.d.ts +0 -12
- package/build/component/utils/envFunctionUtils.d.ts.map +0 -1
- package/build/component/utils/envFunctionUtils.js +0 -185
- package/build/component/utils/envFunctionUtils.js.map +0 -1
- package/build/question/inputs/SyncManifestInputs.d.ts +0 -16
- package/build/question/inputs/SyncManifestInputs.d.ts.map +0 -1
- package/build/question/inputs/SyncManifestInputs.js.map +0 -1
- package/build/question/inputs/UninstallInputs.d.ts +0 -22
- package/build/question/inputs/UninstallInputs.d.ts.map +0 -1
- package/build/question/inputs/UninstallInputs.js +0 -5
- package/build/question/inputs/UninstallInputs.js.map +0 -1
- package/build/question/options/SyncManifestOptions.d.ts +0 -10
- package/build/question/options/SyncManifestOptions.d.ts.map +0 -1
- package/build/question/options/SyncManifestOptions.js +0 -28
- package/build/question/options/SyncManifestOptions.js.map +0 -1
- package/build/question/options/UninstallOptions.d.ts +0 -10
- package/build/question/options/UninstallOptions.d.ts.map +0 -1
- package/build/question/options/UninstallOptions.js +0 -44
- package/build/question/options/UninstallOptions.js.map +0 -1
- package/build/tsconfig.tsbuildinfo +0 -1
- package/resource/dict.zip +0 -0
- package/resource/yaml-schema/v1.6/yaml.schema.json +0 -1842
- package/resource/yaml-schema/v1.7/yaml.schema.json +0 -1842
- /package/build/{component → common}/deps-checker/checkerFactory.d.ts +0 -0
- /package/build/{component → common}/deps-checker/checkerFactory.js +0 -0
- /package/build/{component → common}/deps-checker/constant/index.d.ts +0 -0
- /package/build/{component → common}/deps-checker/constant/index.js +0 -0
- /package/build/{component → common}/deps-checker/constant/message.d.ts +0 -0
- /package/build/{component → common}/deps-checker/constant/telemetry.d.ts +0 -0
- /package/build/{component → common}/deps-checker/constant/telemetry.js +0 -0
- /package/build/{component → common}/deps-checker/coreDepsLoggerAdapter.d.ts +0 -0
- /package/build/{component → common}/deps-checker/coreDepsLoggerAdapter.js +0 -0
- /package/build/{component → common}/deps-checker/coreDepsTelemetryAdapter.d.ts +0 -0
- /package/build/{component → common}/deps-checker/depsChecker.d.ts +0 -0
- /package/build/{component → common}/deps-checker/depsChecker.js +0 -0
- /package/build/{component → common}/deps-checker/depsError.d.ts +0 -0
- /package/build/{component → common}/deps-checker/depsError.js +0 -0
- /package/build/{component → common}/deps-checker/depsLogger.d.ts +0 -0
- /package/build/{component → common}/deps-checker/depsLogger.js +0 -0
- /package/build/{component → common}/deps-checker/depsManager.d.ts +0 -0
- /package/build/{component → common}/deps-checker/depsManager.js +0 -0
- /package/build/{component → common}/deps-checker/depsTelemetry.d.ts +0 -0
- /package/build/{component → common}/deps-checker/depsTelemetry.js +0 -0
- /package/build/{component → common}/deps-checker/index.d.ts +0 -0
- /package/build/{component → common}/deps-checker/index.js +0 -0
- /package/build/{component → common}/deps-checker/internal/dotnetChecker.d.ts +0 -0
- /package/build/{component → common}/deps-checker/internal/funcToolChecker.d.ts +0 -0
- /package/build/{component → common}/deps-checker/internal/nodeChecker.d.ts +0 -0
- /package/build/{component → common}/deps-checker/internal/nodeChecker.js +0 -0
- /package/build/{component → common}/deps-checker/internal/testToolChecker.d.ts +0 -0
- /package/build/{component → common}/deps-checker/internal/vxTestAppChecker.d.ts +0 -0
- /package/build/{component → common}/deps-checker/util/cpUtils.d.ts +0 -0
- /package/build/{component → common}/deps-checker/util/cpUtils.js +0 -0
- /package/build/{component → common}/deps-checker/util/downloadHelper.d.ts +0 -0
- /package/build/{component → common}/deps-checker/util/downloadHelper.js +0 -0
- /package/build/{component → common}/deps-checker/util/fileHelper.d.ts +0 -0
- /package/build/{component → common}/deps-checker/util/fileHelper.js +0 -0
- /package/build/{component → common}/deps-checker/util/index.d.ts +0 -0
- /package/build/{component → common}/deps-checker/util/index.js +0 -0
- /package/build/{component → common}/deps-checker/util/progressIndicator.d.ts +0 -0
- /package/build/{component → common}/deps-checker/util/progressIndicator.js +0 -0
- /package/build/{component → common}/deps-checker/util/system.d.ts +0 -0
- /package/build/{component → common}/deps-checker/util/system.js +0 -0
- /package/build/{component → common}/local/index.d.ts +0 -0
- /package/build/{component → common}/local/index.js +0 -0
- /package/build/{component → common}/local/localCertificateManager.d.ts +0 -0
- /package/build/{component → common}/local/localEnvManager.d.ts +0 -0
- /package/build/{component → common}/local/localTelemetryReporter.d.ts +0 -0
- /package/build/{component → common}/local/npmLogHelper.d.ts +0 -0
- /package/build/{component → common}/local/npmLogHelper.js +0 -0
- /package/build/{component → common}/local/packageJsonHelper.d.ts +0 -0
- /package/build/{component → common}/local/packageJsonHelper.js +0 -0
- /package/build/{component → common}/local/portChecker.d.ts +0 -0
- /package/build/{component → common}/local/process.d.ts +0 -0
- /package/build/{component → common}/local/process.js +0 -0
- /package/build/{component → common}/local/taskDefinition.d.ts +0 -0
- /package/build/{component → common}/m365/errors.d.ts +0 -0
- /package/build/{component → common}/m365/packageService.d.ts +0 -0
package/build/question/other.js
CHANGED
|
@@ -2,34 +2,39 @@
|
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
3
|
// Licensed under the MIT license.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
5
|
+
exports.oauthQuestion = exports.apiSpecApiKeyQuestion = exports.apiSpecApiKeyConfirmQestion = exports.addPluginQuestionNode = exports.selectPluginAvailabilityQuestion = exports.PluginAvailabilityOptions = exports.resourceGroupQuestionNode = exports.newResourceGroupNameQuestion = exports.validateResourceGroupName = exports.newResourceGroupOption = exports.createNewEnvQuestionNode = exports.selectSourceEnvQuestion = exports.newTargetEnvQuestion = exports.newEnvNameValidation = exports.envQuestionCondition = exports.selectAadManifestQuestion = exports.isAadMainifestContainsPlaceholder = exports.inputUserEmailQuestion = exports.selectTargetEnvQuestion = exports.previewWithTeamsAppManifestQuestionNode = exports.HubOptions = exports.HubTypes = exports.selectTeamsAppPackageQuestionNode = exports.TeamsAppValidationOptions = 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");
|
|
12
11
|
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 ResourceGroupHelper_1 = require("../component/utils/ResourceGroupHelper");
|
|
14
15
|
const envUtil_1 = require("../component/utils/envUtil");
|
|
15
16
|
const collaborator_1 = require("../core/collaborator");
|
|
16
17
|
const environmentName_1 = require("../core/environmentName");
|
|
17
|
-
const globalVars_1 = require("../
|
|
18
|
-
const constants_3 = require("./constants");
|
|
18
|
+
const globalVars_1 = require("../core/globalVars");
|
|
19
19
|
const create_1 = require("./create");
|
|
20
|
-
const
|
|
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");
|
|
21
26
|
function listCollaboratorQuestionNode() {
|
|
22
27
|
const selectTeamsAppNode = selectTeamsAppManifestQuestionNode();
|
|
23
28
|
selectTeamsAppNode.condition = { contains: collaborator_1.CollaborationConstants.TeamsAppQuestionId };
|
|
24
29
|
selectTeamsAppNode.children.push({
|
|
25
30
|
condition: envQuestionCondition,
|
|
26
|
-
data: selectTargetEnvQuestion(
|
|
31
|
+
data: selectTargetEnvQuestion(questionNames_1.QuestionNames.Env, false, false, ""),
|
|
27
32
|
});
|
|
28
33
|
const selectAadAppNode = selectAadAppManifestQuestionNode();
|
|
29
34
|
selectAadAppNode.condition = { contains: collaborator_1.CollaborationConstants.AadAppQuestionId };
|
|
30
35
|
selectAadAppNode.children.push({
|
|
31
36
|
condition: envQuestionCondition,
|
|
32
|
-
data: selectTargetEnvQuestion(
|
|
37
|
+
data: selectTargetEnvQuestion(questionNames_1.QuestionNames.Env, false, false, ""),
|
|
33
38
|
});
|
|
34
39
|
return {
|
|
35
40
|
data: { type: "group" },
|
|
@@ -50,13 +55,13 @@ function grantPermissionQuestionNode() {
|
|
|
50
55
|
selectTeamsAppNode.condition = { contains: collaborator_1.CollaborationConstants.TeamsAppQuestionId };
|
|
51
56
|
selectTeamsAppNode.children.push({
|
|
52
57
|
condition: envQuestionCondition,
|
|
53
|
-
data: selectTargetEnvQuestion(
|
|
58
|
+
data: selectTargetEnvQuestion(questionNames_1.QuestionNames.Env, false, false, ""),
|
|
54
59
|
});
|
|
55
60
|
const selectAadAppNode = selectAadAppManifestQuestionNode();
|
|
56
61
|
selectAadAppNode.condition = { contains: collaborator_1.CollaborationConstants.AadAppQuestionId };
|
|
57
62
|
selectAadAppNode.children.push({
|
|
58
63
|
condition: envQuestionCondition,
|
|
59
|
-
data: selectTargetEnvQuestion(
|
|
64
|
+
data: selectTargetEnvQuestion(questionNames_1.QuestionNames.Env, false, false, ""),
|
|
60
65
|
});
|
|
61
66
|
return {
|
|
62
67
|
data: { type: "group" },
|
|
@@ -89,7 +94,7 @@ function deployAadManifestQuestionNode() {
|
|
|
89
94
|
{
|
|
90
95
|
condition: (inputs) => inputs.platform === teamsfx_api_1.Platform.VSCode && // confirm question only works for VSC
|
|
91
96
|
inputs.projectPath !== undefined &&
|
|
92
|
-
path.resolve(inputs[
|
|
97
|
+
path.resolve(inputs[questionNames_1.QuestionNames.AadAppManifestFilePath]) !==
|
|
93
98
|
path.join(inputs.projectPath, "aad.manifest.json"),
|
|
94
99
|
data: confirmManifestQuestion(false, false),
|
|
95
100
|
cliOptionDisabled: "self",
|
|
@@ -97,7 +102,7 @@ function deployAadManifestQuestionNode() {
|
|
|
97
102
|
},
|
|
98
103
|
{
|
|
99
104
|
condition: isAadMainifestContainsPlaceholder,
|
|
100
|
-
data: selectTargetEnvQuestion(
|
|
105
|
+
data: selectTargetEnvQuestion(questionNames_1.QuestionNames.Env, false, false, ""),
|
|
101
106
|
},
|
|
102
107
|
],
|
|
103
108
|
},
|
|
@@ -112,15 +117,15 @@ function validateTeamsAppQuestionNode() {
|
|
|
112
117
|
inputsDisabled: "self",
|
|
113
118
|
children: [
|
|
114
119
|
{
|
|
115
|
-
condition: { equals:
|
|
120
|
+
condition: { equals: TeamsAppValidationOptions.schema().id },
|
|
116
121
|
data: selectTeamsAppManifestQuestion(),
|
|
117
122
|
},
|
|
118
123
|
{
|
|
119
|
-
condition: { equals:
|
|
124
|
+
condition: { equals: TeamsAppValidationOptions.package().id },
|
|
120
125
|
data: selectTeamsAppPackageQuestion(),
|
|
121
126
|
},
|
|
122
127
|
{
|
|
123
|
-
condition: { equals:
|
|
128
|
+
condition: { equals: TeamsAppValidationOptions.testCases().id },
|
|
124
129
|
data: selectTeamsAppPackageQuestion(),
|
|
125
130
|
},
|
|
126
131
|
],
|
|
@@ -148,8 +153,8 @@ function selectAadAppManifestQuestionNode() {
|
|
|
148
153
|
{
|
|
149
154
|
condition: (inputs) => inputs.platform === teamsfx_api_1.Platform.VSCode && // confirm question only works for VSC
|
|
150
155
|
inputs.projectPath &&
|
|
151
|
-
inputs[
|
|
152
|
-
path.resolve(inputs[
|
|
156
|
+
inputs[questionNames_1.QuestionNames.AadAppManifestFilePath] &&
|
|
157
|
+
path.resolve(inputs[questionNames_1.QuestionNames.AadAppManifestFilePath]) !==
|
|
153
158
|
path.join(inputs.projectPath, "aad.manifest.json"),
|
|
154
159
|
data: confirmManifestQuestion(false, false),
|
|
155
160
|
cliOptionDisabled: "self",
|
|
@@ -162,17 +167,17 @@ exports.selectAadAppManifestQuestionNode = selectAadAppManifestQuestionNode;
|
|
|
162
167
|
function confirmCondition(inputs, isLocal) {
|
|
163
168
|
return (inputs.platform === teamsfx_api_1.Platform.VSCode && // confirm question only works for VSC
|
|
164
169
|
inputs.projectPath &&
|
|
165
|
-
inputs[isLocal ?
|
|
170
|
+
inputs[isLocal ? questionNames_1.QuestionNames.LocalTeamsAppManifestFilePath : questionNames_1.QuestionNames.TeamsAppManifestFilePath] &&
|
|
166
171
|
path.resolve(inputs[isLocal
|
|
167
|
-
?
|
|
168
|
-
:
|
|
172
|
+
? questionNames_1.QuestionNames.LocalTeamsAppManifestFilePath
|
|
173
|
+
: questionNames_1.QuestionNames.TeamsAppManifestFilePath]) !==
|
|
169
174
|
path.join(inputs.projectPath, teamsfx_api_1.AppPackageFolderName, isLocal ? "manifest.local.json" : "manifest.json"));
|
|
170
175
|
}
|
|
171
176
|
async function spfxFrameworkExist(inputs) {
|
|
172
177
|
if (inputs.platform === teamsfx_api_1.Platform.CLI_HELP) {
|
|
173
178
|
return false;
|
|
174
179
|
}
|
|
175
|
-
const yorcPath = path.join(inputs[
|
|
180
|
+
const yorcPath = path.join(inputs[questionNames_1.QuestionNames.SPFxFolder], constants_2.Constants.YO_RC_FILE);
|
|
176
181
|
if (!(await fs_extra_1.default.pathExists(yorcPath))) {
|
|
177
182
|
return false;
|
|
178
183
|
}
|
|
@@ -184,13 +189,13 @@ async function spfxFrameworkExist(inputs) {
|
|
|
184
189
|
}
|
|
185
190
|
function addWebPartQuestionNode() {
|
|
186
191
|
return {
|
|
187
|
-
data:
|
|
192
|
+
data: create_1.SPFxImportFolderQuestion(true),
|
|
188
193
|
children: [
|
|
189
194
|
{
|
|
190
|
-
data:
|
|
195
|
+
data: create_1.SPFxWebpartNameQuestion(),
|
|
191
196
|
children: [
|
|
192
197
|
{
|
|
193
|
-
data:
|
|
198
|
+
data: create_1.SPFxFrameworkQuestion(),
|
|
194
199
|
condition: async (inputs) => {
|
|
195
200
|
return !(await spfxFrameworkExist(inputs));
|
|
196
201
|
},
|
|
@@ -225,11 +230,11 @@ function addWebPartQuestionNode() {
|
|
|
225
230
|
exports.addWebPartQuestionNode = addWebPartQuestionNode;
|
|
226
231
|
function selectTeamsAppManifestQuestion() {
|
|
227
232
|
return {
|
|
228
|
-
name:
|
|
233
|
+
name: questionNames_1.QuestionNames.TeamsAppManifestFilePath,
|
|
229
234
|
cliName: "teams-manifest-file",
|
|
230
235
|
cliShortName: "t",
|
|
231
236
|
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'",
|
|
232
|
-
title:
|
|
237
|
+
title: localizeUtils_1.getLocalizedString("core.selectTeamsAppManifestQuestion.title"),
|
|
233
238
|
type: "singleFile",
|
|
234
239
|
default: (inputs) => {
|
|
235
240
|
if (inputs.platform === teamsfx_api_1.Platform.CLI_HELP) {
|
|
@@ -252,11 +257,11 @@ function selectTeamsAppManifestQuestion() {
|
|
|
252
257
|
exports.selectTeamsAppManifestQuestion = selectTeamsAppManifestQuestion;
|
|
253
258
|
function selectLocalTeamsAppManifestQuestion() {
|
|
254
259
|
return {
|
|
255
|
-
name:
|
|
260
|
+
name: questionNames_1.QuestionNames.LocalTeamsAppManifestFilePath,
|
|
256
261
|
cliName: "local-teams-manifest-file",
|
|
257
262
|
cliShortName: "l",
|
|
258
263
|
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.",
|
|
259
|
-
title:
|
|
264
|
+
title: localizeUtils_1.getLocalizedString("core.selectLocalTeamsAppManifestQuestion.title"),
|
|
260
265
|
type: "singleFile",
|
|
261
266
|
default: (inputs) => {
|
|
262
267
|
if (inputs.platform === teamsfx_api_1.Platform.CLI_HELP) {
|
|
@@ -279,69 +284,93 @@ function selectLocalTeamsAppManifestQuestion() {
|
|
|
279
284
|
exports.selectLocalTeamsAppManifestQuestion = selectLocalTeamsAppManifestQuestion;
|
|
280
285
|
function confirmManifestQuestion(isTeamsApp = true, isLocal = false) {
|
|
281
286
|
const map = {
|
|
282
|
-
true_true:
|
|
283
|
-
true_false:
|
|
284
|
-
false_true:
|
|
285
|
-
false_false:
|
|
287
|
+
true_true: questionNames_1.QuestionNames.ConfirmLocalManifest,
|
|
288
|
+
true_false: questionNames_1.QuestionNames.ConfirmManifest,
|
|
289
|
+
false_true: questionNames_1.QuestionNames.ConfirmAadManifest,
|
|
290
|
+
false_false: questionNames_1.QuestionNames.ConfirmAadManifest,
|
|
286
291
|
};
|
|
287
292
|
const name = map[`${isTeamsApp.toString()}_${isLocal.toString()}`];
|
|
288
293
|
return {
|
|
289
294
|
name: name,
|
|
290
295
|
title: isTeamsApp
|
|
291
|
-
?
|
|
296
|
+
? localizeUtils_1.getLocalizedString(isLocal
|
|
292
297
|
? "core.selectLocalTeamsAppManifestQuestion.title"
|
|
293
298
|
: "core.selectTeamsAppManifestQuestion.title")
|
|
294
|
-
:
|
|
299
|
+
: localizeUtils_1.getLocalizedString("core.selectAadAppManifestQuestion.title"),
|
|
295
300
|
type: "singleSelect",
|
|
296
301
|
staticOptions: [],
|
|
297
302
|
skipSingleOption: false,
|
|
298
|
-
placeholder:
|
|
303
|
+
placeholder: localizeUtils_1.getLocalizedString("core.confirmManifestQuestion.placeholder"),
|
|
299
304
|
dynamicOptions: (inputs) => {
|
|
300
305
|
return [
|
|
301
306
|
{
|
|
302
307
|
id: "manifest",
|
|
303
308
|
label: `$(file) ${path.basename(isTeamsApp
|
|
304
309
|
? inputs[isLocal
|
|
305
|
-
?
|
|
306
|
-
:
|
|
307
|
-
: inputs[
|
|
310
|
+
? questionNames_1.QuestionNames.LocalTeamsAppManifestFilePath
|
|
311
|
+
: questionNames_1.QuestionNames.TeamsAppManifestFilePath]
|
|
312
|
+
: inputs[questionNames_1.QuestionNames.AadAppManifestFilePath])}`,
|
|
308
313
|
description: path.dirname(isTeamsApp
|
|
309
314
|
? inputs[isLocal
|
|
310
|
-
?
|
|
311
|
-
:
|
|
312
|
-
: inputs[
|
|
315
|
+
? questionNames_1.QuestionNames.LocalTeamsAppManifestFilePath
|
|
316
|
+
: questionNames_1.QuestionNames.TeamsAppManifestFilePath]
|
|
317
|
+
: inputs[questionNames_1.QuestionNames.AadAppManifestFilePath]),
|
|
313
318
|
},
|
|
314
319
|
];
|
|
315
320
|
},
|
|
316
321
|
};
|
|
317
322
|
}
|
|
318
323
|
function selectTeamsAppValidationMethodQuestion() {
|
|
319
|
-
const options = [
|
|
320
|
-
if (featureFlags_1.
|
|
321
|
-
options.push(
|
|
324
|
+
const options = [TeamsAppValidationOptions.schema(), TeamsAppValidationOptions.package()];
|
|
325
|
+
if (featureFlags_1.isAsyncAppValidationEnabled()) {
|
|
326
|
+
options.push(TeamsAppValidationOptions.testCases());
|
|
322
327
|
}
|
|
323
328
|
return {
|
|
324
|
-
name:
|
|
325
|
-
title:
|
|
329
|
+
name: questionNames_1.QuestionNames.ValidateMethod,
|
|
330
|
+
title: localizeUtils_1.getLocalizedString("core.selectValidateMethodQuestion.validate.selectTitle"),
|
|
326
331
|
staticOptions: options,
|
|
327
332
|
type: "singleSelect",
|
|
328
333
|
};
|
|
329
334
|
}
|
|
330
335
|
function copilotPluginAddAPIQuestionNode() {
|
|
331
336
|
return {
|
|
332
|
-
data:
|
|
337
|
+
data: create_1.apiSpecLocationQuestion(false),
|
|
333
338
|
children: [
|
|
334
339
|
{
|
|
335
|
-
data:
|
|
340
|
+
data: create_1.apiOperationQuestion(false),
|
|
336
341
|
},
|
|
337
342
|
],
|
|
338
343
|
};
|
|
339
344
|
}
|
|
340
345
|
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;
|
|
341
370
|
function selectTeamsAppPackageQuestion() {
|
|
342
371
|
return {
|
|
343
|
-
name:
|
|
344
|
-
title:
|
|
372
|
+
name: questionNames_1.QuestionNames.TeamsAppPackageFilePath,
|
|
373
|
+
title: localizeUtils_1.getLocalizedString("core.selectTeamsAppPackageQuestion.title"),
|
|
345
374
|
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'",
|
|
346
375
|
cliName: "app-package-file",
|
|
347
376
|
cliShortName: "p",
|
|
@@ -365,16 +394,46 @@ function selectTeamsAppPackageQuestionNode() {
|
|
|
365
394
|
};
|
|
366
395
|
}
|
|
367
396
|
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;
|
|
368
427
|
function selectM365HostQuestion() {
|
|
369
428
|
return {
|
|
370
|
-
name:
|
|
429
|
+
name: questionNames_1.QuestionNames.M365Host,
|
|
371
430
|
cliShortName: "m",
|
|
372
431
|
cliDescription: "Preview the application in Teams, Outlook or the Microsoft 365 app.",
|
|
373
|
-
title:
|
|
374
|
-
default:
|
|
432
|
+
title: localizeUtils_1.getLocalizedString("core.M365HostQuestion.title"),
|
|
433
|
+
default: HubOptions.teams().id,
|
|
375
434
|
type: "singleSelect",
|
|
376
|
-
staticOptions:
|
|
377
|
-
placeholder:
|
|
435
|
+
staticOptions: HubOptions.all(),
|
|
436
|
+
placeholder: localizeUtils_1.getLocalizedString("core.M365HostQuestion.placeholder"),
|
|
378
437
|
};
|
|
379
438
|
}
|
|
380
439
|
function previewWithTeamsAppManifestQuestionNode() {
|
|
@@ -389,11 +448,11 @@ function previewWithTeamsAppManifestQuestionNode() {
|
|
|
389
448
|
};
|
|
390
449
|
}
|
|
391
450
|
exports.previewWithTeamsAppManifestQuestionNode = previewWithTeamsAppManifestQuestionNode;
|
|
392
|
-
function selectTargetEnvQuestion(questionName =
|
|
451
|
+
function selectTargetEnvQuestion(questionName = questionNames_1.QuestionNames.TargetEnvName, remoteOnly = true, throwErrorIfNoEnv = false, defaultValueIfNoEnv = environmentName_1.environmentNameManager.getDefaultEnvName()) {
|
|
393
452
|
return {
|
|
394
453
|
type: "singleSelect",
|
|
395
454
|
name: questionName,
|
|
396
|
-
title:
|
|
455
|
+
title: localizeUtils_1.getLocalizedString("core.QuestionSelectTargetEnvironment.title"),
|
|
397
456
|
cliName: "env",
|
|
398
457
|
cliDescription: "Specifies the environment name for the project.",
|
|
399
458
|
staticOptions: [],
|
|
@@ -418,7 +477,7 @@ async function getDefaultUserEmail() {
|
|
|
418
477
|
if (!(globalVars_1.TOOLS === null || globalVars_1.TOOLS === void 0 ? void 0 : globalVars_1.TOOLS.tokenProvider.m365TokenProvider))
|
|
419
478
|
return undefined;
|
|
420
479
|
const jsonObjectRes = await globalVars_1.TOOLS.tokenProvider.m365TokenProvider.getJsonObject({
|
|
421
|
-
scopes:
|
|
480
|
+
scopes: tools_1.AppStudioScopes,
|
|
422
481
|
});
|
|
423
482
|
if (jsonObjectRes.isErr()) {
|
|
424
483
|
throw jsonObjectRes.error;
|
|
@@ -433,24 +492,24 @@ async function getDefaultUserEmail() {
|
|
|
433
492
|
}
|
|
434
493
|
function inputUserEmailQuestion() {
|
|
435
494
|
return {
|
|
436
|
-
name:
|
|
495
|
+
name: questionNames_1.QuestionNames.UserEmail,
|
|
437
496
|
type: "text",
|
|
438
|
-
title:
|
|
497
|
+
title: localizeUtils_1.getLocalizedString("core.getUserEmailQuestion.title"),
|
|
439
498
|
cliDescription: "Email address of the collaborator.",
|
|
440
499
|
default: getDefaultUserEmail,
|
|
441
500
|
validation: {
|
|
442
501
|
validFunc: async (input, previousInputs) => {
|
|
443
502
|
if (!input || input.trim() === "") {
|
|
444
|
-
return
|
|
503
|
+
return localizeUtils_1.getLocalizedString("core.getUserEmailQuestion.validation1");
|
|
445
504
|
}
|
|
446
505
|
input = input.trim();
|
|
447
506
|
const defaultUserEmail = await getDefaultUserEmail();
|
|
448
507
|
if (input === defaultUserEmail) {
|
|
449
|
-
return
|
|
508
|
+
return localizeUtils_1.getLocalizedString("core.getUserEmailQuestion.validation2");
|
|
450
509
|
}
|
|
451
510
|
const re = /\S+@\S+\.\S+/;
|
|
452
511
|
if (!re.test(input)) {
|
|
453
|
-
return
|
|
512
|
+
return localizeUtils_1.getLocalizedString("core.getUserEmailQuestion.validation3");
|
|
454
513
|
}
|
|
455
514
|
return undefined;
|
|
456
515
|
},
|
|
@@ -459,7 +518,7 @@ function inputUserEmailQuestion() {
|
|
|
459
518
|
}
|
|
460
519
|
exports.inputUserEmailQuestion = inputUserEmailQuestion;
|
|
461
520
|
async function isAadMainifestContainsPlaceholder(inputs) {
|
|
462
|
-
const aadManifestPath = inputs === null || inputs === void 0 ? void 0 : inputs[
|
|
521
|
+
const aadManifestPath = inputs === null || inputs === void 0 ? void 0 : inputs[questionNames_1.QuestionNames.AadAppManifestFilePath];
|
|
463
522
|
const placeholderRegex = /\$\{\{ *[a-zA-Z0-9_.-]* *\}\}/g;
|
|
464
523
|
const regexObj = new RegExp(placeholderRegex);
|
|
465
524
|
try {
|
|
@@ -479,11 +538,11 @@ async function isAadMainifestContainsPlaceholder(inputs) {
|
|
|
479
538
|
exports.isAadMainifestContainsPlaceholder = isAadMainifestContainsPlaceholder;
|
|
480
539
|
function selectAadManifestQuestion() {
|
|
481
540
|
return {
|
|
482
|
-
name:
|
|
541
|
+
name: questionNames_1.QuestionNames.AadAppManifestFilePath,
|
|
483
542
|
cliName: "entra-app-manifest-file",
|
|
484
543
|
cliShortName: "a",
|
|
485
544
|
cliDescription: "Specifies the Microsoft Entra app manifest file path, can be either absolute path or relative path to project root folder.",
|
|
486
|
-
title:
|
|
545
|
+
title: localizeUtils_1.getLocalizedString("core.selectAadAppManifestQuestion.title"),
|
|
487
546
|
type: "singleFile",
|
|
488
547
|
default: (inputs) => {
|
|
489
548
|
if (inputs.platform === teamsfx_api_1.Platform.CLI_HELP) {
|
|
@@ -506,19 +565,19 @@ function selectAadManifestQuestion() {
|
|
|
506
565
|
exports.selectAadManifestQuestion = selectAadManifestQuestion;
|
|
507
566
|
function selectAppTypeQuestion() {
|
|
508
567
|
return {
|
|
509
|
-
name:
|
|
510
|
-
title:
|
|
568
|
+
name: questionNames_1.QuestionNames.collaborationAppType,
|
|
569
|
+
title: localizeUtils_1.getLocalizedString("core.selectCollaborationAppTypeQuestion.title"),
|
|
511
570
|
type: "multiSelect",
|
|
512
571
|
staticOptions: [
|
|
513
572
|
{
|
|
514
573
|
id: collaborator_1.CollaborationConstants.AadAppQuestionId,
|
|
515
|
-
label:
|
|
516
|
-
description:
|
|
574
|
+
label: localizeUtils_1.getLocalizedString("core.aadAppQuestion.label"),
|
|
575
|
+
description: localizeUtils_1.getLocalizedString("core.aadAppQuestion.description"),
|
|
517
576
|
},
|
|
518
577
|
{
|
|
519
578
|
id: collaborator_1.CollaborationConstants.TeamsAppQuestionId,
|
|
520
|
-
label:
|
|
521
|
-
description:
|
|
579
|
+
label: localizeUtils_1.getLocalizedString("core.teamsAppQuestion.label"),
|
|
580
|
+
description: localizeUtils_1.getLocalizedString("core.teamsAppQuestion.description"),
|
|
522
581
|
},
|
|
523
582
|
],
|
|
524
583
|
validation: { minItems: 1 },
|
|
@@ -529,8 +588,8 @@ async function envQuestionCondition(inputs) {
|
|
|
529
588
|
const appType = inputs[collaborator_1.CollaborationConstants.AppType];
|
|
530
589
|
const requireAad = appType === null || appType === void 0 ? void 0 : appType.includes(collaborator_1.CollaborationConstants.AadAppQuestionId);
|
|
531
590
|
const requireTeams = appType === null || appType === void 0 ? void 0 : appType.includes(collaborator_1.CollaborationConstants.TeamsAppQuestionId);
|
|
532
|
-
const aadManifestPath = inputs[
|
|
533
|
-
const teamsManifestPath = inputs[
|
|
591
|
+
const aadManifestPath = inputs[questionNames_1.QuestionNames.AadAppManifestFilePath];
|
|
592
|
+
const teamsManifestPath = inputs[questionNames_1.QuestionNames.TeamsAppManifestFilePath];
|
|
534
593
|
// When both is selected, only show the question once at the end
|
|
535
594
|
if ((requireAad && !aadManifestPath) || (requireTeams && !teamsManifestPath)) {
|
|
536
595
|
return false;
|
|
@@ -568,21 +627,21 @@ async function newEnvNameValidation(input, inputs) {
|
|
|
568
627
|
const targetEnvName = input;
|
|
569
628
|
const match = targetEnvName.match(environmentName_1.environmentNameManager.envNameRegex);
|
|
570
629
|
if (!match) {
|
|
571
|
-
return
|
|
630
|
+
return localizeUtils_1.getLocalizedString("core.getQuestionNewTargetEnvironmentName.validation1");
|
|
572
631
|
}
|
|
573
632
|
if (!environmentName_1.environmentNameManager.isRemoteEnvironment(targetEnvName)) {
|
|
574
|
-
return
|
|
633
|
+
return localizeUtils_1.getLocalizedString("core.getQuestionNewTargetEnvironmentName.validation3", targetEnvName);
|
|
575
634
|
}
|
|
576
635
|
if (!(inputs === null || inputs === void 0 ? void 0 : inputs.projectPath))
|
|
577
636
|
return "Project path is not defined";
|
|
578
637
|
const envListRes = await envUtil_1.envUtil.listEnv(inputs.projectPath, true);
|
|
579
638
|
if (envListRes.isErr()) {
|
|
580
|
-
return
|
|
639
|
+
return localizeUtils_1.getLocalizedString("core.getQuestionNewTargetEnvironmentName.validation4");
|
|
581
640
|
}
|
|
582
641
|
inputs.existingEnvNames = envListRes.value; //cache existing env names
|
|
583
642
|
const found = envListRes.value.find((env) => env.localeCompare(targetEnvName, undefined, { sensitivity: "base" }) === 0) !== undefined;
|
|
584
643
|
if (found) {
|
|
585
|
-
return
|
|
644
|
+
return localizeUtils_1.getLocalizedString("core.getQuestionNewTargetEnvironmentName.validation5", targetEnvName);
|
|
586
645
|
}
|
|
587
646
|
else {
|
|
588
647
|
return undefined;
|
|
@@ -592,15 +651,15 @@ exports.newEnvNameValidation = newEnvNameValidation;
|
|
|
592
651
|
function newTargetEnvQuestion() {
|
|
593
652
|
return {
|
|
594
653
|
type: "text",
|
|
595
|
-
name:
|
|
654
|
+
name: questionNames_1.QuestionNames.NewTargetEnvName,
|
|
596
655
|
cliName: "name",
|
|
597
656
|
cliDescription: "Specifies the new environment name.",
|
|
598
657
|
cliType: "argument",
|
|
599
|
-
title:
|
|
658
|
+
title: localizeUtils_1.getLocalizedString("core.getQuestionNewTargetEnvironmentName.title"),
|
|
600
659
|
validation: {
|
|
601
660
|
validFunc: newEnvNameValidation,
|
|
602
661
|
},
|
|
603
|
-
placeholder:
|
|
662
|
+
placeholder: localizeUtils_1.getLocalizedString("core.getQuestionNewTargetEnvironmentName.placeholder"),
|
|
604
663
|
};
|
|
605
664
|
}
|
|
606
665
|
exports.newTargetEnvQuestion = newTargetEnvQuestion;
|
|
@@ -621,9 +680,9 @@ exports.newTargetEnvQuestion = newTargetEnvQuestion;
|
|
|
621
680
|
function selectSourceEnvQuestion() {
|
|
622
681
|
return {
|
|
623
682
|
type: "singleSelect",
|
|
624
|
-
name:
|
|
683
|
+
name: questionNames_1.QuestionNames.SourceEnvName,
|
|
625
684
|
cliName: "env",
|
|
626
|
-
title:
|
|
685
|
+
title: localizeUtils_1.getLocalizedString("core.QuestionSelectSourceEnvironment.title"),
|
|
627
686
|
cliDescription: "Specifies an existing environment name to copy from.",
|
|
628
687
|
staticOptions: [],
|
|
629
688
|
dynamicOptions: async (inputs) => {
|
|
@@ -656,37 +715,198 @@ function createNewEnvQuestionNode() {
|
|
|
656
715
|
};
|
|
657
716
|
}
|
|
658
717
|
exports.createNewEnvQuestionNode = createNewEnvQuestionNode;
|
|
659
|
-
|
|
660
|
-
|
|
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) {
|
|
661
824
|
return {
|
|
662
|
-
data: (
|
|
825
|
+
data: selectResourceGroupQuestion(azureAccountProvider, subscriptionId),
|
|
663
826
|
children: [
|
|
664
827
|
{
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
condition: {
|
|
673
|
-
equals: constants_3.ApiPluginStartOptions.existingPlugin().id,
|
|
674
|
-
},
|
|
828
|
+
condition: { equals: exports.newResourceGroupOption },
|
|
829
|
+
data: newResourceGroupNameQuestion(defaultResourceGroupName),
|
|
830
|
+
children: [
|
|
831
|
+
{
|
|
832
|
+
data: selectResourceGroupLocationQuestion(azureAccountProvider, subscriptionId),
|
|
833
|
+
},
|
|
834
|
+
],
|
|
675
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
|
+
function selectPluginAvailabilityQuestion() {
|
|
869
|
+
return {
|
|
870
|
+
name: questionNames_1.QuestionNames.PluginAvailability,
|
|
871
|
+
title: localizeUtils_1.getLocalizedString("core.question.pluginAvailability.title"),
|
|
872
|
+
cliDescription: "Select plugin availability.",
|
|
873
|
+
type: "singleSelect",
|
|
874
|
+
staticOptions: PluginAvailabilityOptions.all(),
|
|
875
|
+
dynamicOptions: async (inputs) => {
|
|
876
|
+
const teamsManifestPath = inputs[questionNames_1.QuestionNames.TeamsAppManifestFilePath];
|
|
877
|
+
const absolutePath = common_1.getAbsolutePath(teamsManifestPath, inputs.projectPath);
|
|
878
|
+
const manifestRes = await ManifestUtils_1.manifestUtils._readAppManifest(absolutePath);
|
|
879
|
+
if (manifestRes.isErr()) {
|
|
880
|
+
throw manifestRes.error;
|
|
881
|
+
}
|
|
882
|
+
const commonProperties = teamsfx_api_1.ManifestUtil.parseCommonProperties(manifestRes.value);
|
|
883
|
+
if (!commonProperties.capabilities.includes("copilotGpt")) {
|
|
884
|
+
throw results_1.AppStudioResultFactory.UserError(errors_1.AppStudioError.TeamsAppRequiredPropertyMissingError.name, errors_1.AppStudioError.TeamsAppRequiredPropertyMissingError.message("declarativeCopilots", teamsManifestPath));
|
|
885
|
+
}
|
|
886
|
+
if (commonProperties.capabilities.includes("plugin")) {
|
|
887
|
+
// A project can have only one plugin.
|
|
888
|
+
return [PluginAvailabilityOptions.action()];
|
|
889
|
+
}
|
|
890
|
+
else {
|
|
891
|
+
return PluginAvailabilityOptions.all();
|
|
892
|
+
}
|
|
893
|
+
},
|
|
894
|
+
};
|
|
895
|
+
}
|
|
896
|
+
exports.selectPluginAvailabilityQuestion = selectPluginAvailabilityQuestion;
|
|
897
|
+
// add Plugin to a declarative Copilot project
|
|
898
|
+
function addPluginQuestionNode() {
|
|
899
|
+
return {
|
|
900
|
+
data: selectTeamsAppManifestQuestion(),
|
|
901
|
+
children: [
|
|
676
902
|
{
|
|
677
|
-
data: (
|
|
678
|
-
condition: {
|
|
679
|
-
equals: constants_3.ApiPluginStartOptions.apiSpec().id,
|
|
680
|
-
},
|
|
903
|
+
data: selectPluginAvailabilityQuestion(),
|
|
681
904
|
},
|
|
682
905
|
{
|
|
683
|
-
data:
|
|
684
|
-
condition: {
|
|
685
|
-
equals: constants_3.ApiPluginStartOptions.apiSpec().id,
|
|
686
|
-
},
|
|
906
|
+
data: create_1.apiSpecLocationQuestion(),
|
|
687
907
|
},
|
|
688
908
|
{
|
|
689
|
-
data:
|
|
909
|
+
data: create_1.apiOperationQuestion(true, true),
|
|
690
910
|
},
|
|
691
911
|
],
|
|
692
912
|
};
|
|
@@ -694,8 +914,8 @@ function addPluginQuestionNode() {
|
|
|
694
914
|
exports.addPluginQuestionNode = addPluginQuestionNode;
|
|
695
915
|
function apiSpecApiKeyConfirmQestion() {
|
|
696
916
|
return {
|
|
697
|
-
name:
|
|
698
|
-
title:
|
|
917
|
+
name: questionNames_1.QuestionNames.ApiSpecApiKeyConfirm,
|
|
918
|
+
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.ApiKeyConfirm"),
|
|
699
919
|
type: "confirm",
|
|
700
920
|
default: true,
|
|
701
921
|
};
|
|
@@ -705,15 +925,15 @@ function apiSpecApiKeyQuestion() {
|
|
|
705
925
|
return {
|
|
706
926
|
data: {
|
|
707
927
|
type: "text",
|
|
708
|
-
name:
|
|
928
|
+
name: questionNames_1.QuestionNames.ApiSpecApiKey,
|
|
709
929
|
cliShortName: "k",
|
|
710
|
-
title:
|
|
930
|
+
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.ApiKey"),
|
|
711
931
|
cliDescription: "Api key for OpenAPI spec.",
|
|
712
932
|
forgetLastValue: true,
|
|
713
933
|
validation: {
|
|
714
934
|
validFunc: (input) => {
|
|
715
|
-
if (input.length < 10 || input.length >
|
|
716
|
-
return
|
|
935
|
+
if (input.length < 10 || input.length > 128) {
|
|
936
|
+
return localizeUtils_1.getLocalizedString("core.createProjectQuestion.invalidApiKey.message");
|
|
717
937
|
}
|
|
718
938
|
return undefined;
|
|
719
939
|
},
|
|
@@ -723,7 +943,7 @@ function apiSpecApiKeyQuestion() {
|
|
|
723
943
|
if (!inputs) {
|
|
724
944
|
throw new Error("inputs is undefined"); // should never happen
|
|
725
945
|
}
|
|
726
|
-
process.env[
|
|
946
|
+
process.env[questionNames_1.QuestionNames.ApiSpecApiKey] = input;
|
|
727
947
|
return;
|
|
728
948
|
},
|
|
729
949
|
},
|
|
@@ -758,148 +978,25 @@ function oauthQuestion() {
|
|
|
758
978
|
{
|
|
759
979
|
data: oauthClientSecretQuestion(),
|
|
760
980
|
condition: (inputs) => {
|
|
761
|
-
return
|
|
762
|
-
!inputs.clientSecret &&
|
|
763
|
-
(!inputs.identityProvider || inputs.identityProvider === "Custom"));
|
|
981
|
+
return !inputs.clientSecret;
|
|
764
982
|
},
|
|
765
983
|
},
|
|
766
984
|
{
|
|
767
985
|
data: oauthConfirmQestion(),
|
|
768
986
|
condition: (inputs) => {
|
|
769
|
-
return
|
|
770
|
-
(!inputs.clientSecret || !inputs.clientId) &&
|
|
771
|
-
(!inputs.identityProvider || inputs.identityProvider === "Custom"));
|
|
987
|
+
return !inputs.clientSecret || !inputs.clientId;
|
|
772
988
|
},
|
|
773
989
|
},
|
|
774
990
|
],
|
|
775
991
|
};
|
|
776
992
|
}
|
|
777
993
|
exports.oauthQuestion = oauthQuestion;
|
|
778
|
-
function uninstallQuestionNode() {
|
|
779
|
-
return {
|
|
780
|
-
data: {
|
|
781
|
-
type: "group",
|
|
782
|
-
},
|
|
783
|
-
children: [
|
|
784
|
-
{
|
|
785
|
-
data: uninstallModeQuestion(),
|
|
786
|
-
condition: () => {
|
|
787
|
-
return true;
|
|
788
|
-
},
|
|
789
|
-
children: [
|
|
790
|
-
{
|
|
791
|
-
data: {
|
|
792
|
-
type: "text",
|
|
793
|
-
name: constants_3.QuestionNames.ManifestId,
|
|
794
|
-
title: (0, localizeUtils_1.getLocalizedString)("core.uninstallQuestion.manifestId"),
|
|
795
|
-
},
|
|
796
|
-
condition: (input) => {
|
|
797
|
-
return input[constants_3.QuestionNames.UninstallMode] === constants_3.QuestionNames.UninstallModeManifestId;
|
|
798
|
-
},
|
|
799
|
-
},
|
|
800
|
-
{
|
|
801
|
-
data: {
|
|
802
|
-
type: "text",
|
|
803
|
-
name: constants_3.QuestionNames.Env,
|
|
804
|
-
title: (0, localizeUtils_1.getLocalizedString)("core.uninstallQuestion.env"),
|
|
805
|
-
},
|
|
806
|
-
condition: (input) => {
|
|
807
|
-
return input[constants_3.QuestionNames.UninstallMode] === constants_3.QuestionNames.UninstallModeEnv;
|
|
808
|
-
},
|
|
809
|
-
children: [
|
|
810
|
-
{
|
|
811
|
-
data: uninstallProjectPathQuestion(),
|
|
812
|
-
condition: () => {
|
|
813
|
-
return true;
|
|
814
|
-
},
|
|
815
|
-
},
|
|
816
|
-
],
|
|
817
|
-
},
|
|
818
|
-
{
|
|
819
|
-
data: uninstallOptionQuestion(),
|
|
820
|
-
condition: (input) => {
|
|
821
|
-
return (input[constants_3.QuestionNames.UninstallMode] === constants_3.QuestionNames.UninstallModeManifestId ||
|
|
822
|
-
input[constants_3.QuestionNames.UninstallMode] === constants_3.QuestionNames.UninstallModeEnv);
|
|
823
|
-
},
|
|
824
|
-
},
|
|
825
|
-
{
|
|
826
|
-
data: {
|
|
827
|
-
type: "text",
|
|
828
|
-
name: constants_3.QuestionNames.TitleId,
|
|
829
|
-
title: (0, localizeUtils_1.getLocalizedString)("core.uninstallQuestion.titleId"),
|
|
830
|
-
},
|
|
831
|
-
condition: (input) => {
|
|
832
|
-
return input[constants_3.QuestionNames.UninstallMode] === constants_3.QuestionNames.UninstallModeTitleId;
|
|
833
|
-
},
|
|
834
|
-
},
|
|
835
|
-
],
|
|
836
|
-
},
|
|
837
|
-
],
|
|
838
|
-
};
|
|
839
|
-
}
|
|
840
|
-
exports.uninstallQuestionNode = uninstallQuestionNode;
|
|
841
|
-
function uninstallModeQuestion() {
|
|
842
|
-
return {
|
|
843
|
-
name: constants_3.QuestionNames.UninstallMode,
|
|
844
|
-
title: (0, localizeUtils_1.getLocalizedString)("core.uninstallQuestion.chooseMode"),
|
|
845
|
-
type: "singleSelect",
|
|
846
|
-
staticOptions: [
|
|
847
|
-
{
|
|
848
|
-
id: constants_3.QuestionNames.UninstallModeManifestId,
|
|
849
|
-
label: (0, localizeUtils_1.getLocalizedString)("core.uninstallQuestion.manifestIdMode"),
|
|
850
|
-
detail: (0, localizeUtils_1.getLocalizedString)("core.uninstallQuestion.manifestIdMode.detail"),
|
|
851
|
-
},
|
|
852
|
-
{
|
|
853
|
-
id: constants_3.QuestionNames.UninstallModeEnv,
|
|
854
|
-
label: (0, localizeUtils_1.getLocalizedString)("core.uninstallQuestion.envMode"),
|
|
855
|
-
detail: (0, localizeUtils_1.getLocalizedString)("core.uninstallQuestion.envMode.detail"),
|
|
856
|
-
},
|
|
857
|
-
{
|
|
858
|
-
id: constants_3.QuestionNames.UninstallModeTitleId,
|
|
859
|
-
label: (0, localizeUtils_1.getLocalizedString)("core.uninstallQuestion.titleIdMode"),
|
|
860
|
-
detail: (0, localizeUtils_1.getLocalizedString)("core.uninstallQuestion.titleIdMode.detail"),
|
|
861
|
-
},
|
|
862
|
-
],
|
|
863
|
-
default: constants_3.QuestionNames.UninstallModeManifestId,
|
|
864
|
-
};
|
|
865
|
-
}
|
|
866
|
-
function uninstallOptionQuestion() {
|
|
867
|
-
return {
|
|
868
|
-
name: constants_3.QuestionNames.UninstallOptions,
|
|
869
|
-
title: (0, localizeUtils_1.getLocalizedString)("core.uninstallQuestion.chooseOption"),
|
|
870
|
-
type: "multiSelect",
|
|
871
|
-
staticOptions: [
|
|
872
|
-
{
|
|
873
|
-
id: constants_3.QuestionNames.UninstallOptionM365,
|
|
874
|
-
label: (0, localizeUtils_1.getLocalizedString)("core.uninstallQuestion.m365Option"),
|
|
875
|
-
},
|
|
876
|
-
{
|
|
877
|
-
id: constants_3.QuestionNames.UninstallOptionTDP,
|
|
878
|
-
label: (0, localizeUtils_1.getLocalizedString)("core.uninstallQuestion.tdpOption"),
|
|
879
|
-
},
|
|
880
|
-
{
|
|
881
|
-
id: constants_3.QuestionNames.UninstallOptionBot,
|
|
882
|
-
label: (0, localizeUtils_1.getLocalizedString)("core.uninstallQuestion.botOption"),
|
|
883
|
-
},
|
|
884
|
-
],
|
|
885
|
-
};
|
|
886
|
-
}
|
|
887
|
-
function uninstallProjectPathQuestion() {
|
|
888
|
-
return {
|
|
889
|
-
type: "folder",
|
|
890
|
-
name: constants_3.QuestionNames.ProjectPath,
|
|
891
|
-
title: (0, localizeUtils_1.getLocalizedString)("core.uninstallQuestion.projectPath"),
|
|
892
|
-
cliDescription: "Project Path for uninstall",
|
|
893
|
-
placeholder: "./",
|
|
894
|
-
default: "./",
|
|
895
|
-
};
|
|
896
|
-
}
|
|
897
994
|
function oauthClientIdQuestion() {
|
|
898
995
|
return {
|
|
899
996
|
type: "text",
|
|
900
|
-
name:
|
|
997
|
+
name: questionNames_1.QuestionNames.OauthClientId,
|
|
901
998
|
cliShortName: "i",
|
|
902
|
-
title:
|
|
999
|
+
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.OauthClientId"),
|
|
903
1000
|
cliDescription: "Oauth client id for OpenAPI spec.",
|
|
904
1001
|
forgetLastValue: true,
|
|
905
1002
|
additionalValidationOnAccept: {
|
|
@@ -907,7 +1004,7 @@ function oauthClientIdQuestion() {
|
|
|
907
1004
|
if (!inputs) {
|
|
908
1005
|
throw new Error("inputs is undefined"); // should never happen
|
|
909
1006
|
}
|
|
910
|
-
process.env[
|
|
1007
|
+
process.env[questionNames_1.QuestionNames.OauthClientId] = input;
|
|
911
1008
|
return;
|
|
912
1009
|
},
|
|
913
1010
|
},
|
|
@@ -915,8 +1012,8 @@ function oauthClientIdQuestion() {
|
|
|
915
1012
|
}
|
|
916
1013
|
function oauthConfirmQestion() {
|
|
917
1014
|
return {
|
|
918
|
-
name:
|
|
919
|
-
title:
|
|
1015
|
+
name: questionNames_1.QuestionNames.OauthConfirm,
|
|
1016
|
+
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.OauthClientSecretConfirm"),
|
|
920
1017
|
type: "confirm",
|
|
921
1018
|
default: true,
|
|
922
1019
|
};
|
|
@@ -924,15 +1021,15 @@ function oauthConfirmQestion() {
|
|
|
924
1021
|
function oauthClientSecretQuestion() {
|
|
925
1022
|
return {
|
|
926
1023
|
type: "text",
|
|
927
|
-
name:
|
|
1024
|
+
name: questionNames_1.QuestionNames.OauthClientSecret,
|
|
928
1025
|
cliShortName: "c",
|
|
929
|
-
title:
|
|
1026
|
+
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.OauthClientSecret"),
|
|
930
1027
|
cliDescription: "Oauth client secret for OpenAPI spec.",
|
|
931
1028
|
forgetLastValue: true,
|
|
932
1029
|
validation: {
|
|
933
1030
|
validFunc: (input) => {
|
|
934
|
-
if (input.length < 10 || input.length >
|
|
935
|
-
return
|
|
1031
|
+
if (input.length < 10 || input.length > 128) {
|
|
1032
|
+
return localizeUtils_1.getLocalizedString("core.createProjectQuestion.invalidApiKey.message");
|
|
936
1033
|
}
|
|
937
1034
|
return undefined;
|
|
938
1035
|
},
|
|
@@ -942,48 +1039,10 @@ function oauthClientSecretQuestion() {
|
|
|
942
1039
|
if (!inputs) {
|
|
943
1040
|
throw new Error("inputs is undefined"); // should never happen
|
|
944
1041
|
}
|
|
945
|
-
process.env[
|
|
1042
|
+
process.env[questionNames_1.QuestionNames.OauthClientSecret] = input;
|
|
946
1043
|
return;
|
|
947
1044
|
},
|
|
948
1045
|
},
|
|
949
1046
|
};
|
|
950
1047
|
}
|
|
951
|
-
function syncManifestQuestionNode() {
|
|
952
|
-
return {
|
|
953
|
-
data: {
|
|
954
|
-
type: "group",
|
|
955
|
-
},
|
|
956
|
-
children: [
|
|
957
|
-
{
|
|
958
|
-
data: {
|
|
959
|
-
type: "folder",
|
|
960
|
-
name: constants_3.QuestionNames.ProjectPath,
|
|
961
|
-
title: (0, localizeUtils_1.getLocalizedString)("core.syncManifest.projectPath"),
|
|
962
|
-
cliDescription: "Project Path",
|
|
963
|
-
placeholder: "./",
|
|
964
|
-
default: (inputs) => teamsfx_api_1.CLIPlatforms.includes(inputs.platform)
|
|
965
|
-
? "./"
|
|
966
|
-
: path.join(os.homedir(), constants_1.ConstantString.RootFolder),
|
|
967
|
-
},
|
|
968
|
-
},
|
|
969
|
-
{
|
|
970
|
-
data: {
|
|
971
|
-
type: "text",
|
|
972
|
-
name: constants_3.QuestionNames.Env,
|
|
973
|
-
title: (0, localizeUtils_1.getLocalizedString)("core.syncManifest.env"),
|
|
974
|
-
cliDescription: "Target Teams Toolkit Environment",
|
|
975
|
-
},
|
|
976
|
-
},
|
|
977
|
-
{
|
|
978
|
-
data: {
|
|
979
|
-
type: "text",
|
|
980
|
-
name: constants_3.QuestionNames.TeamsAppId,
|
|
981
|
-
title: (0, localizeUtils_1.getLocalizedString)("core.syncManifest.teamsAppId"),
|
|
982
|
-
cliDescription: "Teams App ID (optional)",
|
|
983
|
-
},
|
|
984
|
-
},
|
|
985
|
-
],
|
|
986
|
-
};
|
|
987
|
-
}
|
|
988
|
-
exports.syncManifestQuestionNode = syncManifestQuestionNode;
|
|
989
1048
|
//# sourceMappingURL=other.js.map
|