@microsoft/teamsfx-core 2.0.10-alpha.fa1ce1fbb.0 → 2.0.10-alpha.fe2e47f9c.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/teamsDevPortalClient.d.ts +4 -5
- package/build/client/teamsDevPortalClient.d.ts.map +1 -1
- package/build/client/teamsDevPortalClient.js +67 -47
- package/build/client/teamsDevPortalClient.js.map +1 -1
- package/build/common/azureUtils.js +4 -4
- package/build/common/azureUtils.js.map +1 -1
- package/build/common/constants.d.ts +1 -19
- package/build/common/constants.d.ts.map +1 -1
- package/build/common/constants.js +10 -29
- package/build/common/constants.js.map +1 -1
- package/build/common/correlator.d.ts +1 -0
- package/build/common/correlator.d.ts.map +1 -1
- package/build/common/correlator.js +6 -1
- package/build/common/correlator.js.map +1 -1
- package/build/common/featureFlags.d.ts +49 -19
- package/build/common/featureFlags.d.ts.map +1 -1
- package/build/common/featureFlags.js +82 -62
- package/build/common/featureFlags.js.map +1 -1
- package/build/common/globalState.js +3 -3
- package/build/common/globalState.js.map +1 -1
- package/build/common/globalVars.d.ts +1 -0
- package/build/common/globalVars.d.ts.map +1 -1
- package/build/common/globalVars.js +2 -1
- package/build/common/globalVars.js.map +1 -1
- package/build/common/jsonUtils.js +10 -10
- package/build/common/jsonUtils.js.map +1 -1
- package/build/common/localizeUtils.js +2 -2
- package/build/common/localizeUtils.js.map +1 -1
- package/build/common/projectSettingsHelper.js +1 -1
- package/build/common/projectSettingsHelper.js.map +1 -1
- package/build/common/projectTypeChecker.js +3 -3
- package/build/common/projectTypeChecker.js.map +1 -1
- package/build/common/samples.js +5 -5
- package/build/common/samples.js.map +1 -1
- package/build/common/secretmasker/dict.d.ts +22 -0
- package/build/common/secretmasker/dict.d.ts.map +1 -0
- package/build/common/secretmasker/dict.js +83 -0
- package/build/common/secretmasker/dict.js.map +1 -0
- package/build/common/secretmasker/feature.d.ts +19 -0
- package/build/common/secretmasker/feature.d.ts.map +1 -0
- package/build/common/secretmasker/feature.js +389 -0
- package/build/common/secretmasker/feature.js.map +1 -0
- package/build/common/secretmasker/masker.d.ts +12 -0
- package/build/common/secretmasker/masker.d.ts.map +1 -0
- package/build/common/secretmasker/masker.js +54 -0
- package/build/common/secretmasker/masker.js.map +1 -0
- package/build/common/stringUtils.d.ts +3 -5
- package/build/common/stringUtils.d.ts.map +1 -1
- package/build/common/stringUtils.js +13 -105
- package/build/common/stringUtils.js.map +1 -1
- package/build/common/telemetry.d.ts +13 -2
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +21 -3
- package/build/common/telemetry.js.map +1 -1
- package/build/common/templates-config.json +1 -1
- package/build/common/tools.d.ts +1 -6
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +15 -28
- package/build/common/tools.js.map +1 -1
- package/build/common/utils.d.ts +4 -0
- package/build/common/utils.d.ts.map +1 -1
- package/build/common/utils.js +38 -1
- package/build/common/utils.js.map +1 -1
- package/build/common/wrappedAxiosClient.d.ts +1 -0
- package/build/common/wrappedAxiosClient.d.ts.map +1 -1
- package/build/common/wrappedAxiosClient.js +58 -29
- 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 +9 -9
- package/build/component/configManager/lifecycle.js.map +1 -1
- package/build/component/configManager/parser.js +20 -20
- 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 +1 -0
- package/build/component/constant/commonConstant.d.ts.map +1 -1
- package/build/component/constant/commonConstant.js +1 -0
- package/build/component/constant/commonConstant.js.map +1 -1
- package/build/component/constants.js +5 -5
- package/build/component/constants.js.map +1 -1
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +95 -212
- 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/deps-checker/constant/helpLink.d.ts +0 -3
- package/build/component/deps-checker/constant/helpLink.d.ts.map +1 -1
- package/build/component/deps-checker/constant/helpLink.js +1 -6
- package/build/component/deps-checker/constant/helpLink.js.map +1 -1
- package/build/component/deps-checker/constant/message.js +24 -24
- package/build/component/deps-checker/constant/message.js.map +1 -1
- package/build/component/deps-checker/internal/dotnetChecker.js +13 -13
- package/build/component/deps-checker/internal/dotnetChecker.js.map +1 -1
- package/build/component/deps-checker/internal/funcToolChecker.js +13 -13
- package/build/component/deps-checker/internal/funcToolChecker.js.map +1 -1
- package/build/component/deps-checker/internal/testToolChecker.js +21 -21
- package/build/component/deps-checker/internal/testToolChecker.js.map +1 -1
- package/build/component/deps-checker/internal/vxTestAppChecker.d.ts.map +1 -1
- package/build/component/deps-checker/internal/vxTestAppChecker.js +14 -8
- package/build/component/deps-checker/internal/vxTestAppChecker.js.map +1 -1
- package/build/component/developerPortalScaffoldUtils.js +15 -15
- 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 +38 -23
- 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/error/missingServiceManagamentReferenceError.d.ts +5 -0
- package/build/component/driver/aad/error/missingServiceManagamentReferenceError.d.ts.map +1 -0
- package/build/component/driver/aad/error/missingServiceManagamentReferenceError.js +23 -0
- package/build/component/driver/aad/error/missingServiceManagamentReferenceError.js.map +1 -0
- 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.js +9 -9
- 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.js +5 -5
- package/build/component/driver/aad/utility/buildAadManifest.js.map +1 -1
- package/build/component/driver/aad/utility/constants.d.ts +2 -0
- package/build/component/driver/aad/utility/constants.d.ts.map +1 -1
- package/build/component/driver/aad/utility/constants.js +2 -0
- package/build/component/driver/aad/utility/constants.js.map +1 -1
- package/build/component/driver/add/addWebPart.js +6 -6
- 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 +23 -20
- 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/apiKeyFromScratchClientSecretInvalid.d.ts +5 -0
- package/build/component/driver/apiKey/error/apiKeyFromScratchClientSecretInvalid.d.ts.map +1 -0
- package/build/component/driver/apiKey/error/apiKeyFromScratchClientSecretInvalid.js +21 -0
- package/build/component/driver/apiKey/error/apiKeyFromScratchClientSecretInvalid.js.map +1 -0
- 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.map +1 -1
- package/build/component/driver/apiKey/update.js +20 -20
- 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 +19 -17
- package/build/component/driver/arm/deployImpl.js.map +1 -1
- package/build/component/driver/arm/util/bicepChecker.js +5 -5
- package/build/component/driver/arm/util/bicepChecker.js.map +1 -1
- package/build/component/driver/arm/util/handleError.js +9 -9
- 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 +38 -22
- 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 +1 -0
- package/build/component/driver/botAadApp/utility/constants.d.ts.map +1 -1
- package/build/component/driver/botAadApp/utility/constants.js +1 -0
- 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 +16 -10
- package/build/component/driver/deploy/azure/azureStaticWebAppGetDeploymentTokenDriver.js.map +1 -1
- package/build/component/driver/deploy/azure/azureStorageDeployDriver.js +8 -8
- package/build/component/driver/deploy/azure/azureStorageDeployDriver.js.map +1 -1
- package/build/component/driver/deploy/azure/azureStorageStaticWebsiteConfigDriver.js +14 -14
- package/build/component/driver/deploy/azure/azureStorageStaticWebsiteConfigDriver.js.map +1 -1
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js +6 -6
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js.map +1 -1
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.js +8 -8
- 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.js +15 -15
- 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 +3 -3
- package/build/component/driver/devTool/error/dotnetInstallationUserError.js.map +1 -1
- package/build/component/driver/devTool/error/funcInstallationUserError.js +3 -3
- package/build/component/driver/devTool/error/funcInstallationUserError.js.map +1 -1
- package/build/component/driver/devTool/error/testToolInstallationUserError.js +3 -3
- package/build/component/driver/devTool/error/testToolInstallationUserError.js.map +1 -1
- package/build/component/driver/devTool/installDriver.js +6 -6
- package/build/component/driver/devTool/installDriver.js.map +1 -1
- package/build/component/driver/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 +1 -0
- package/build/component/driver/index.d.ts.map +1 -1
- package/build/component/driver/index.js +1 -0
- package/build/component/driver/index.js.map +1 -1
- package/build/component/driver/m365/acquire.js +12 -12
- package/build/component/driver/m365/acquire.js.map +1 -1
- package/build/component/driver/middleware/addSWADeployTelemetry.js +2 -2
- package/build/component/driver/middleware/addSWADeployTelemetry.js.map +1 -1
- package/build/component/driver/oauth/create.d.ts.map +1 -1
- package/build/component/driver/oauth/create.js +51 -21
- 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/oauthDisablePKCEError.d.ts +5 -0
- package/build/component/driver/oauth/error/oauthDisablePKCEError.d.ts.map +1 -0
- package/build/component/driver/oauth/error/oauthDisablePKCEError.js +21 -0
- package/build/component/driver/oauth/error/oauthDisablePKCEError.js.map +1 -0
- 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/oauthIdentityProviderInvalid.d.ts +5 -0
- package/build/component/driver/oauth/error/oauthIdentityProviderInvalid.d.ts.map +1 -0
- package/build/component/driver/oauth/error/oauthIdentityProviderInvalid.js +21 -0
- package/build/component/driver/oauth/error/oauthIdentityProviderInvalid.js.map +1 -0
- 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 +2 -0
- package/build/component/driver/oauth/interface/createOauthArgs.d.ts.map +1 -1
- package/build/component/driver/oauth/interface/updateOauthArgs.d.ts +1 -0
- package/build/component/driver/oauth/interface/updateOauthArgs.d.ts.map +1 -1
- package/build/component/driver/oauth/update.d.ts.map +1 -1
- package/build/component/driver/oauth/update.js +30 -19
- 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 +5 -6
- 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 +2 -0
- package/build/component/driver/script/scriptDriver.d.ts.map +1 -1
- package/build/component/driver/script/scriptDriver.js +28 -29
- package/build/component/driver/script/scriptDriver.js.map +1 -1
- package/build/component/driver/teamsApp/appStudio.d.ts.map +1 -1
- package/build/component/driver/teamsApp/appStudio.js +43 -54
- package/build/component/driver/teamsApp/appStudio.js.map +1 -1
- package/build/component/driver/teamsApp/clients/appStudioClient.js +20 -20
- package/build/component/driver/teamsApp/clients/appStudioClient.js.map +1 -1
- package/build/component/driver/teamsApp/configure.d.ts.map +1 -1
- package/build/component/driver/teamsApp/configure.js +23 -23
- package/build/component/driver/teamsApp/configure.js.map +1 -1
- package/build/component/driver/teamsApp/constants.d.ts +15 -1
- package/build/component/driver/teamsApp/constants.d.ts.map +1 -1
- package/build/component/driver/teamsApp/constants.js +132 -2
- 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.map +1 -1
- package/build/component/driver/teamsApp/create.js +21 -21
- package/build/component/driver/teamsApp/create.js.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.d.ts +3 -1
- package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.js +83 -67
- package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/errors.d.ts +6 -2
- package/build/component/driver/teamsApp/errors.d.ts.map +1 -1
- package/build/component/driver/teamsApp/errors.js +49 -42
- package/build/component/driver/teamsApp/errors.js.map +1 -1
- package/build/component/driver/teamsApp/interfaces/CreateAppPackageArgs.d.ts +6 -2
- package/build/component/driver/teamsApp/interfaces/CreateAppPackageArgs.d.ts.map +1 -1
- package/build/component/driver/teamsApp/interfaces/OauthRegistration.d.ts +2 -0
- 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/SyncManifest.d.ts +20 -0
- package/build/component/driver/teamsApp/interfaces/SyncManifest.d.ts.map +1 -0
- package/build/component/driver/teamsApp/interfaces/SyncManifest.js +5 -0
- package/build/component/driver/teamsApp/interfaces/SyncManifest.js.map +1 -0
- package/build/component/driver/teamsApp/interfaces/appdefinitions/IValidationResult.d.ts +1 -0
- package/build/component/driver/teamsApp/interfaces/appdefinitions/IValidationResult.d.ts.map +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.js +35 -35
- package/build/component/driver/teamsApp/publishAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/syncManifest.d.ts +14 -0
- package/build/component/driver/teamsApp/syncManifest.d.ts.map +1 -0
- package/build/component/driver/teamsApp/syncManifest.js +226 -0
- package/build/component/driver/teamsApp/syncManifest.js.map +1 -0
- package/build/component/driver/teamsApp/teamsappMgr.d.ts.map +1 -1
- package/build/component/driver/teamsApp/teamsappMgr.js +41 -42
- package/build/component/driver/teamsApp/teamsappMgr.js.map +1 -1
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.d.ts +5 -3
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.js +45 -21
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.js.map +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts +3 -2
- package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.js +63 -39
- package/build/component/driver/teamsApp/utils/ManifestUtils.js.map +1 -1
- package/build/component/driver/teamsApp/utils/PluginManifestUtils.d.ts +4 -3
- package/build/component/driver/teamsApp/utils/PluginManifestUtils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/PluginManifestUtils.js +36 -18
- package/build/component/driver/teamsApp/utils/PluginManifestUtils.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 +45 -15
- 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 +1 -0
- package/build/component/driver/teamsApp/validateAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.js +52 -38
- package/build/component/driver/teamsApp/validateAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/validateTestCases.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validateTestCases.js +36 -36
- package/build/component/driver/teamsApp/validateTestCases.js.map +1 -1
- package/build/component/driver/util/wrapUtil.js +6 -6
- 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 +56 -56
- 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 +4 -4
- package/build/component/feature/sso.js.map +1 -1
- package/build/component/generator/apiSpec/generator.d.ts +15 -0
- package/build/component/generator/apiSpec/generator.d.ts.map +1 -0
- package/build/component/generator/apiSpec/generator.js +260 -0
- package/build/component/generator/apiSpec/generator.js.map +1 -0
- package/build/component/generator/{copilotPlugin → apiSpec}/helper.d.ts +23 -9
- package/build/component/generator/apiSpec/helper.d.ts.map +1 -0
- package/build/component/generator/{copilotPlugin → apiSpec}/helper.js +309 -127
- package/build/component/generator/apiSpec/helper.js.map +1 -0
- package/build/component/generator/constant.d.ts +1 -0
- package/build/component/generator/constant.d.ts.map +1 -1
- package/build/component/generator/constant.js +2 -1
- package/build/component/generator/constant.js.map +1 -1
- package/build/component/generator/{officeXMLAddin → copilotExtension}/generator.d.ts +8 -10
- package/build/component/generator/copilotExtension/generator.d.ts.map +1 -0
- package/build/component/generator/copilotExtension/generator.js +116 -0
- package/build/component/generator/copilotExtension/generator.js.map +1 -0
- package/build/component/generator/copilotExtension/helper.d.ts +8 -0
- package/build/component/generator/copilotExtension/helper.d.ts.map +1 -0
- package/build/component/generator/copilotExtension/helper.js +114 -0
- package/build/component/generator/copilotExtension/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 +25 -19
- package/build/component/generator/generator.js.map +1 -1
- package/build/component/generator/generatorAction.js +7 -7
- package/build/component/generator/generatorAction.js.map +1 -1
- package/build/component/generator/generatorProvider.js +6 -6
- package/build/component/generator/generatorProvider.js.map +1 -1
- package/build/component/generator/officeAddin/generator.d.ts +1 -2
- package/build/component/generator/officeAddin/generator.d.ts.map +1 -1
- package/build/component/generator/officeAddin/generator.js +39 -41
- package/build/component/generator/officeAddin/generator.js.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.js +5 -5
- package/build/component/generator/officeAddin/helperMethods.js.map +1 -1
- package/build/component/generator/officeXMLAddin/projectConfig.d.ts.map +1 -1
- package/build/component/generator/officeXMLAddin/projectConfig.js +0 -75
- package/build/component/generator/officeXMLAddin/projectConfig.js.map +1 -1
- package/build/component/generator/spfx/depsChecker/generatorChecker.js +4 -4
- package/build/component/generator/spfx/depsChecker/generatorChecker.js.map +1 -1
- package/build/component/generator/spfx/depsChecker/yoChecker.js +4 -4
- package/build/component/generator/spfx/depsChecker/yoChecker.js.map +1 -1
- package/build/component/generator/spfx/error.js +19 -19
- package/build/component/generator/spfx/error.js.map +1 -1
- package/build/component/generator/spfx/spfxGenerator.d.ts.map +1 -1
- package/build/component/generator/spfx/spfxGenerator.js +76 -76
- package/build/component/generator/spfx/spfxGenerator.js.map +1 -1
- package/build/component/generator/spfx/utils/constants.js +8 -8
- package/build/component/generator/spfx/utils/constants.js.map +1 -1
- package/build/component/generator/spfx/utils/telemetry-helper.js +1 -1
- package/build/component/generator/spfx/utils/telemetry-helper.js.map +1 -1
- package/build/component/generator/spfx/utils/utils.d.ts +1 -0
- package/build/component/generator/spfx/utils/utils.d.ts.map +1 -1
- package/build/component/generator/spfx/utils/utils.js +13 -9
- package/build/component/generator/spfx/utils/utils.js.map +1 -1
- package/build/component/generator/templates/ssrTabGenerator.js +1 -1
- package/build/component/generator/templates/ssrTabGenerator.js.map +1 -1
- package/build/component/generator/templates/templateGenerator.js +13 -13
- package/build/component/generator/templates/templateGenerator.js.map +1 -1
- package/build/component/generator/templates/templateNames.d.ts +1 -0
- package/build/component/generator/templates/templateNames.d.ts.map +1 -1
- package/build/component/generator/templates/templateNames.js +3 -9
- 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 +29 -9
- package/build/component/generator/templates/templateReplaceMap.js.map +1 -1
- package/build/component/generator/utils.js +6 -6
- package/build/component/generator/utils.js.map +1 -1
- package/build/component/local/constants.d.ts +108 -108
- package/build/component/local/localCertificateManager.d.ts.map +1 -1
- package/build/component/local/localCertificateManager.js +11 -9
- package/build/component/local/localCertificateManager.js.map +1 -1
- package/build/component/local/localEnvManager.js +2 -2
- package/build/component/local/localEnvManager.js.map +1 -1
- package/build/component/local/localTelemetryReporter.js +3 -3
- package/build/component/local/localTelemetryReporter.js.map +1 -1
- package/build/component/local/portChecker.js +4 -4
- package/build/component/local/portChecker.js.map +1 -1
- package/build/component/local/taskDefinition.js +3 -3
- package/build/component/local/taskDefinition.js.map +1 -1
- package/build/component/m365/constants.d.ts +3 -0
- package/build/component/m365/constants.d.ts.map +1 -1
- package/build/component/m365/constants.js +4 -1
- package/build/component/m365/constants.js.map +1 -1
- package/build/component/m365/errors.js +2 -2
- package/build/component/m365/errors.js.map +1 -1
- package/build/component/m365/launchHelper.d.ts +2 -2
- package/build/component/m365/launchHelper.d.ts.map +1 -1
- package/build/component/m365/launchHelper.js +25 -17
- package/build/component/m365/launchHelper.js.map +1 -1
- package/build/component/m365/packageService.js +19 -19
- package/build/component/m365/packageService.js.map +1 -1
- package/build/component/messages.js +7 -7
- package/build/component/messages.js.map +1 -1
- package/build/component/middleware/actionExecutionMW.js +8 -8
- package/build/component/middleware/actionExecutionMW.js.map +1 -1
- package/build/component/middleware/envMW.js +6 -6
- package/build/component/middleware/envMW.js.map +1 -1
- package/build/component/middleware/questionMW.js +3 -3
- package/build/component/middleware/questionMW.js.map +1 -1
- package/build/component/migrate.js +4 -4
- package/build/component/migrate.js.map +1 -1
- package/build/component/provisionUtils.js +24 -24
- package/build/component/provisionUtils.js.map +1 -1
- package/build/component/resource/botService/appStudio/appStudioClient.js +11 -11
- package/build/component/resource/botService/appStudio/appStudioClient.js.map +1 -1
- package/build/component/resource/botService/botRegistration/botFrameworkRegistration.d.ts.map +1 -1
- package/build/component/resource/botService/botRegistration/botFrameworkRegistration.js +7 -7
- package/build/component/resource/botService/botRegistration/botFrameworkRegistration.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/utils/ResourceGroupHelper.js +28 -28
- 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/common.d.ts +4 -3
- package/build/component/utils/common.d.ts.map +1 -1
- package/build/component/utils/common.js +17 -6
- package/build/component/utils/common.js.map +1 -1
- package/build/component/utils/depsChecker/common.js +2 -2
- package/build/component/utils/depsChecker/common.js.map +1 -1
- package/build/component/utils/envFunctionUtils.d.ts +12 -0
- package/build/component/utils/envFunctionUtils.d.ts.map +1 -0
- package/build/component/utils/envFunctionUtils.js +185 -0
- package/build/component/utils/envFunctionUtils.js.map +1 -0
- package/build/component/utils/envUtil.d.ts +1 -0
- package/build/component/utils/envUtil.d.ts.map +1 -1
- package/build/component/utils/envUtil.js +19 -19
- package/build/component/utils/envUtil.js.map +1 -1
- package/build/component/utils/fileOperation.js +3 -4
- 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 +2 -2
- package/build/component/utils/metadataUtil.js.map +1 -1
- package/build/component/utils/pathUtils.js +5 -5
- package/build/component/utils/pathUtils.js.map +1 -1
- package/build/component/utils/settingsUtil.js +7 -7
- package/build/component/utils/settingsUtil.js.map +1 -1
- package/build/component/utils/teamsFxTelemetryReporter.js +1 -1
- package/build/component/utils/teamsFxTelemetryReporter.js.map +1 -1
- package/build/core/FxCore.d.ts +34 -0
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.js +715 -413
- package/build/core/FxCore.js.map +1 -1
- package/build/core/collaborator.js +65 -65
- package/build/core/collaborator.js.map +1 -1
- package/build/core/crypto.js +4 -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 +0 -1
- package/build/core/environmentName.d.ts.map +1 -1
- package/build/core/environmentName.js +0 -2
- package/build/core/environmentName.js.map +1 -1
- package/build/core/middleware/concurrentLocker.js +13 -13
- package/build/core/middleware/concurrentLocker.js.map +1 -1
- package/build/core/middleware/errorHandler.js +4 -4
- package/build/core/middleware/errorHandler.js.map +1 -1
- package/build/core/middleware/projectMigratorV3.js +78 -78
- package/build/core/middleware/projectMigratorV3.js.map +1 -1
- package/build/core/middleware/projectSettingsLoader.js +3 -3
- package/build/core/middleware/projectSettingsLoader.js.map +1 -1
- package/build/core/middleware/projectVersionChecker.js +9 -9
- package/build/core/middleware/projectVersionChecker.js.map +1 -1
- package/build/core/middleware/utils/MigrationUtils.js +4 -4
- package/build/core/middleware/utils/MigrationUtils.js.map +1 -1
- package/build/core/middleware/utils/appYmlGenerator.js +4 -4
- 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 +72 -72
- 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 +9 -9
- package/build/core/middleware/utils/v3MigrationUtils.js.map +1 -1
- package/build/core/middleware/videoFilterAppBlocker.js +4 -4
- package/build/core/middleware/videoFilterAppBlocker.js.map +1 -1
- package/build/core/telemetry.js +1 -1
- 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 +4 -1
- package/build/error/common.d.ts.map +1 -1
- package/build/error/common.js +87 -75
- 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 +14 -8
- package/build/error/script.js.map +1 -1
- package/build/error/teamsApp.d.ts.map +1 -1
- package/build/error/teamsApp.js +10 -8
- 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 +12 -12
- package/build/error/yml.js.map +1 -1
- package/build/index.d.ts +11 -7
- package/build/index.d.ts.map +1 -1
- package/build/index.js +19 -16
- package/build/index.js.map +1 -1
- package/build/question/constants.d.ts +38 -27
- package/build/question/constants.d.ts.map +1 -1
- package/build/question/constants.js +286 -294
- package/build/question/constants.js.map +1 -1
- package/build/question/create.d.ts +5 -3
- package/build/question/create.d.ts.map +1 -1
- package/build/question/create.js +338 -230
- package/build/question/create.js.map +1 -1
- package/build/question/generator.js +6 -2
- package/build/question/generator.js.map +1 -1
- package/build/question/index.d.ts +2 -0
- package/build/question/index.d.ts.map +1 -1
- package/build/question/index.js +21 -15
- package/build/question/index.js.map +1 -1
- package/build/question/inputs/AddPluginInputs.d.ts +8 -4
- package/build/question/inputs/AddPluginInputs.d.ts.map +1 -1
- package/build/question/inputs/CreateProjectInputs.d.ts +10 -4
- package/build/question/inputs/CreateProjectInputs.d.ts.map +1 -1
- package/build/question/inputs/SyncManifestInputs.d.ts +16 -0
- package/build/question/inputs/SyncManifestInputs.d.ts.map +1 -0
- package/build/question/inputs/SyncManifestInputs.js +5 -0
- package/build/question/inputs/SyncManifestInputs.js.map +1 -0
- package/build/question/inputs/UninstallInputs.d.ts +22 -0
- package/build/question/inputs/UninstallInputs.d.ts.map +1 -0
- package/build/question/inputs/UninstallInputs.js +5 -0
- package/build/question/inputs/UninstallInputs.js.map +1 -0
- package/build/question/inputs/index.d.ts +2 -0
- package/build/question/inputs/index.d.ts.map +1 -1
- package/build/question/inputs/index.js +2 -0
- 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 +19 -10
- 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 +27 -24
- package/build/question/options/CreateProjectOptions.js.map +1 -1
- package/build/question/options/SyncManifestOptions.d.ts +10 -0
- package/build/question/options/SyncManifestOptions.d.ts.map +1 -0
- package/build/question/options/SyncManifestOptions.js +28 -0
- package/build/question/options/SyncManifestOptions.js.map +1 -0
- package/build/question/options/UninstallOptions.d.ts +10 -0
- package/build/question/options/UninstallOptions.d.ts.map +1 -0
- package/build/question/options/UninstallOptions.js +44 -0
- package/build/question/options/UninstallOptions.js.map +1 -0
- package/build/question/options/index.d.ts +2 -0
- package/build/question/options/index.d.ts.map +1 -1
- package/build/question/options/index.js +2 -0
- package/build/question/options/index.js.map +1 -1
- package/build/question/other.d.ts +2 -1
- package/build/question/other.d.ts.map +1 -1
- package/build/question/other.js +228 -81
- package/build/question/other.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -0
- package/build/ui/visitor.d.ts.map +1 -1
- package/build/ui/visitor.js +41 -27
- package/build/ui/visitor.js.map +1 -1
- package/package.json +15 -10
- package/resource/dict.zip +0 -0
- package/resource/package.nls.json +180 -133
- package/resource/yaml-schema/v1.6/yaml.schema.json +13 -0
- package/resource/yaml-schema/v1.7/yaml.schema.json +1842 -0
- package/resource/yaml-schema/yaml.schema.json +13 -0
- 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/build/component/generator/copilotPlugin/generator.d.ts +0 -21
- package/build/component/generator/copilotPlugin/generator.d.ts.map +0 -1
- package/build/component/generator/copilotPlugin/generator.js +0 -399
- package/build/component/generator/copilotPlugin/generator.js.map +0 -1
- package/build/component/generator/copilotPlugin/helper.d.ts.map +0 -1
- package/build/component/generator/copilotPlugin/helper.js.map +0 -1
- package/build/component/generator/officeXMLAddin/generator.d.ts.map +0 -1
- package/build/component/generator/officeXMLAddin/generator.js +0 -173
- package/build/component/generator/officeXMLAddin/generator.js.map +0 -1
package/build/question/other.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
3
|
// Licensed under the MIT license.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
5
|
+
exports.syncManifestQuestionNode = exports.uninstallQuestionNode = exports.oauthQuestion = exports.apiSpecApiKeyQuestion = exports.apiSpecApiKeyConfirmQestion = exports.addPluginQuestionNode = exports.createNewEnvQuestionNode = exports.selectSourceEnvQuestion = exports.newTargetEnvQuestion = exports.newEnvNameValidation = exports.envQuestionCondition = exports.selectAadManifestQuestion = exports.isAadMainifestContainsPlaceholder = exports.inputUserEmailQuestion = exports.selectTargetEnvQuestion = exports.previewWithTeamsAppManifestQuestionNode = exports.selectTeamsAppPackageQuestionNode = exports.copilotPluginAddAPIQuestionNode = exports.selectLocalTeamsAppManifestQuestion = exports.selectTeamsAppManifestQuestion = exports.addWebPartQuestionNode = exports.selectAadAppManifestQuestionNode = exports.selectTeamsAppManifestQuestionNode = exports.validateTeamsAppQuestionNode = exports.deployAadManifestQuestionNode = exports.grantPermissionQuestionNode = exports.listCollaboratorQuestionNode = void 0;
|
|
6
6
|
const tslib_1 = require("tslib");
|
|
7
7
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
8
8
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
@@ -11,16 +11,13 @@ const constants_1 = require("../common/constants");
|
|
|
11
11
|
const featureFlags_1 = require("../common/featureFlags");
|
|
12
12
|
const localizeUtils_1 = require("../common/localizeUtils");
|
|
13
13
|
const constants_2 = require("../component/driver/add/utility/constants");
|
|
14
|
-
const errors_1 = require("../component/driver/teamsApp/errors");
|
|
15
|
-
const results_1 = require("../component/driver/teamsApp/results");
|
|
16
|
-
const ManifestUtils_1 = require("../component/driver/teamsApp/utils/ManifestUtils");
|
|
17
|
-
const common_1 = require("../component/utils/common");
|
|
18
14
|
const envUtil_1 = require("../component/utils/envUtil");
|
|
19
15
|
const collaborator_1 = require("../core/collaborator");
|
|
20
16
|
const environmentName_1 = require("../core/environmentName");
|
|
21
17
|
const globalVars_1 = require("../common/globalVars");
|
|
22
18
|
const constants_3 = require("./constants");
|
|
23
19
|
const create_1 = require("./create");
|
|
20
|
+
const os = tslib_1.__importStar(require("os"));
|
|
24
21
|
function listCollaboratorQuestionNode() {
|
|
25
22
|
const selectTeamsAppNode = selectTeamsAppManifestQuestionNode();
|
|
26
23
|
selectTeamsAppNode.condition = { contains: collaborator_1.CollaborationConstants.TeamsAppQuestionId };
|
|
@@ -187,13 +184,13 @@ async function spfxFrameworkExist(inputs) {
|
|
|
187
184
|
}
|
|
188
185
|
function addWebPartQuestionNode() {
|
|
189
186
|
return {
|
|
190
|
-
data: create_1.SPFxImportFolderQuestion(true),
|
|
187
|
+
data: (0, create_1.SPFxImportFolderQuestion)(true),
|
|
191
188
|
children: [
|
|
192
189
|
{
|
|
193
|
-
data: create_1.SPFxWebpartNameQuestion(),
|
|
190
|
+
data: (0, create_1.SPFxWebpartNameQuestion)(),
|
|
194
191
|
children: [
|
|
195
192
|
{
|
|
196
|
-
data: create_1.SPFxFrameworkQuestion(),
|
|
193
|
+
data: (0, create_1.SPFxFrameworkQuestion)(),
|
|
197
194
|
condition: async (inputs) => {
|
|
198
195
|
return !(await spfxFrameworkExist(inputs));
|
|
199
196
|
},
|
|
@@ -232,7 +229,7 @@ function selectTeamsAppManifestQuestion() {
|
|
|
232
229
|
cliName: "teams-manifest-file",
|
|
233
230
|
cliShortName: "t",
|
|
234
231
|
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'",
|
|
235
|
-
title: localizeUtils_1.getLocalizedString("core.selectTeamsAppManifestQuestion.title"),
|
|
232
|
+
title: (0, localizeUtils_1.getLocalizedString)("core.selectTeamsAppManifestQuestion.title"),
|
|
236
233
|
type: "singleFile",
|
|
237
234
|
default: (inputs) => {
|
|
238
235
|
if (inputs.platform === teamsfx_api_1.Platform.CLI_HELP) {
|
|
@@ -259,7 +256,7 @@ function selectLocalTeamsAppManifestQuestion() {
|
|
|
259
256
|
cliName: "local-teams-manifest-file",
|
|
260
257
|
cliShortName: "l",
|
|
261
258
|
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.",
|
|
262
|
-
title: localizeUtils_1.getLocalizedString("core.selectLocalTeamsAppManifestQuestion.title"),
|
|
259
|
+
title: (0, localizeUtils_1.getLocalizedString)("core.selectLocalTeamsAppManifestQuestion.title"),
|
|
263
260
|
type: "singleFile",
|
|
264
261
|
default: (inputs) => {
|
|
265
262
|
if (inputs.platform === teamsfx_api_1.Platform.CLI_HELP) {
|
|
@@ -291,14 +288,14 @@ function confirmManifestQuestion(isTeamsApp = true, isLocal = false) {
|
|
|
291
288
|
return {
|
|
292
289
|
name: name,
|
|
293
290
|
title: isTeamsApp
|
|
294
|
-
? localizeUtils_1.getLocalizedString(isLocal
|
|
291
|
+
? (0, localizeUtils_1.getLocalizedString)(isLocal
|
|
295
292
|
? "core.selectLocalTeamsAppManifestQuestion.title"
|
|
296
293
|
: "core.selectTeamsAppManifestQuestion.title")
|
|
297
|
-
: localizeUtils_1.getLocalizedString("core.selectAadAppManifestQuestion.title"),
|
|
294
|
+
: (0, localizeUtils_1.getLocalizedString)("core.selectAadAppManifestQuestion.title"),
|
|
298
295
|
type: "singleSelect",
|
|
299
296
|
staticOptions: [],
|
|
300
297
|
skipSingleOption: false,
|
|
301
|
-
placeholder: localizeUtils_1.getLocalizedString("core.confirmManifestQuestion.placeholder"),
|
|
298
|
+
placeholder: (0, localizeUtils_1.getLocalizedString)("core.confirmManifestQuestion.placeholder"),
|
|
302
299
|
dynamicOptions: (inputs) => {
|
|
303
300
|
return [
|
|
304
301
|
{
|
|
@@ -325,17 +322,17 @@ function selectTeamsAppValidationMethodQuestion() {
|
|
|
325
322
|
}
|
|
326
323
|
return {
|
|
327
324
|
name: constants_3.QuestionNames.ValidateMethod,
|
|
328
|
-
title: localizeUtils_1.getLocalizedString("core.selectValidateMethodQuestion.validate.selectTitle"),
|
|
325
|
+
title: (0, localizeUtils_1.getLocalizedString)("core.selectValidateMethodQuestion.validate.selectTitle"),
|
|
329
326
|
staticOptions: options,
|
|
330
327
|
type: "singleSelect",
|
|
331
328
|
};
|
|
332
329
|
}
|
|
333
330
|
function copilotPluginAddAPIQuestionNode() {
|
|
334
331
|
return {
|
|
335
|
-
data: create_1.apiSpecLocationQuestion(false),
|
|
332
|
+
data: (0, create_1.apiSpecLocationQuestion)(false),
|
|
336
333
|
children: [
|
|
337
334
|
{
|
|
338
|
-
data: create_1.apiOperationQuestion(false),
|
|
335
|
+
data: (0, create_1.apiOperationQuestion)(false),
|
|
339
336
|
},
|
|
340
337
|
],
|
|
341
338
|
};
|
|
@@ -344,7 +341,7 @@ exports.copilotPluginAddAPIQuestionNode = copilotPluginAddAPIQuestionNode;
|
|
|
344
341
|
function selectTeamsAppPackageQuestion() {
|
|
345
342
|
return {
|
|
346
343
|
name: constants_3.QuestionNames.TeamsAppPackageFilePath,
|
|
347
|
-
title: localizeUtils_1.getLocalizedString("core.selectTeamsAppPackageQuestion.title"),
|
|
344
|
+
title: (0, localizeUtils_1.getLocalizedString)("core.selectTeamsAppPackageQuestion.title"),
|
|
348
345
|
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'",
|
|
349
346
|
cliName: "app-package-file",
|
|
350
347
|
cliShortName: "p",
|
|
@@ -373,11 +370,11 @@ function selectM365HostQuestion() {
|
|
|
373
370
|
name: constants_3.QuestionNames.M365Host,
|
|
374
371
|
cliShortName: "m",
|
|
375
372
|
cliDescription: "Preview the application in Teams, Outlook or the Microsoft 365 app.",
|
|
376
|
-
title: localizeUtils_1.getLocalizedString("core.M365HostQuestion.title"),
|
|
373
|
+
title: (0, localizeUtils_1.getLocalizedString)("core.M365HostQuestion.title"),
|
|
377
374
|
default: constants_3.HubOptions.teams().id,
|
|
378
375
|
type: "singleSelect",
|
|
379
376
|
staticOptions: constants_3.HubOptions.all(),
|
|
380
|
-
placeholder: localizeUtils_1.getLocalizedString("core.M365HostQuestion.placeholder"),
|
|
377
|
+
placeholder: (0, localizeUtils_1.getLocalizedString)("core.M365HostQuestion.placeholder"),
|
|
381
378
|
};
|
|
382
379
|
}
|
|
383
380
|
function previewWithTeamsAppManifestQuestionNode() {
|
|
@@ -396,7 +393,7 @@ function selectTargetEnvQuestion(questionName = constants_3.QuestionNames.Target
|
|
|
396
393
|
return {
|
|
397
394
|
type: "singleSelect",
|
|
398
395
|
name: questionName,
|
|
399
|
-
title: localizeUtils_1.getLocalizedString("core.QuestionSelectTargetEnvironment.title"),
|
|
396
|
+
title: (0, localizeUtils_1.getLocalizedString)("core.QuestionSelectTargetEnvironment.title"),
|
|
400
397
|
cliName: "env",
|
|
401
398
|
cliDescription: "Specifies the environment name for the project.",
|
|
402
399
|
staticOptions: [],
|
|
@@ -438,22 +435,22 @@ function inputUserEmailQuestion() {
|
|
|
438
435
|
return {
|
|
439
436
|
name: constants_3.QuestionNames.UserEmail,
|
|
440
437
|
type: "text",
|
|
441
|
-
title: localizeUtils_1.getLocalizedString("core.getUserEmailQuestion.title"),
|
|
438
|
+
title: (0, localizeUtils_1.getLocalizedString)("core.getUserEmailQuestion.title"),
|
|
442
439
|
cliDescription: "Email address of the collaborator.",
|
|
443
440
|
default: getDefaultUserEmail,
|
|
444
441
|
validation: {
|
|
445
442
|
validFunc: async (input, previousInputs) => {
|
|
446
443
|
if (!input || input.trim() === "") {
|
|
447
|
-
return localizeUtils_1.getLocalizedString("core.getUserEmailQuestion.validation1");
|
|
444
|
+
return (0, localizeUtils_1.getLocalizedString)("core.getUserEmailQuestion.validation1");
|
|
448
445
|
}
|
|
449
446
|
input = input.trim();
|
|
450
447
|
const defaultUserEmail = await getDefaultUserEmail();
|
|
451
448
|
if (input === defaultUserEmail) {
|
|
452
|
-
return localizeUtils_1.getLocalizedString("core.getUserEmailQuestion.validation2");
|
|
449
|
+
return (0, localizeUtils_1.getLocalizedString)("core.getUserEmailQuestion.validation2");
|
|
453
450
|
}
|
|
454
451
|
const re = /\S+@\S+\.\S+/;
|
|
455
452
|
if (!re.test(input)) {
|
|
456
|
-
return localizeUtils_1.getLocalizedString("core.getUserEmailQuestion.validation3");
|
|
453
|
+
return (0, localizeUtils_1.getLocalizedString)("core.getUserEmailQuestion.validation3");
|
|
457
454
|
}
|
|
458
455
|
return undefined;
|
|
459
456
|
},
|
|
@@ -486,7 +483,7 @@ function selectAadManifestQuestion() {
|
|
|
486
483
|
cliName: "entra-app-manifest-file",
|
|
487
484
|
cliShortName: "a",
|
|
488
485
|
cliDescription: "Specifies the Microsoft Entra app manifest file path, can be either absolute path or relative path to project root folder.",
|
|
489
|
-
title: localizeUtils_1.getLocalizedString("core.selectAadAppManifestQuestion.title"),
|
|
486
|
+
title: (0, localizeUtils_1.getLocalizedString)("core.selectAadAppManifestQuestion.title"),
|
|
490
487
|
type: "singleFile",
|
|
491
488
|
default: (inputs) => {
|
|
492
489
|
if (inputs.platform === teamsfx_api_1.Platform.CLI_HELP) {
|
|
@@ -510,18 +507,18 @@ exports.selectAadManifestQuestion = selectAadManifestQuestion;
|
|
|
510
507
|
function selectAppTypeQuestion() {
|
|
511
508
|
return {
|
|
512
509
|
name: constants_3.QuestionNames.collaborationAppType,
|
|
513
|
-
title: localizeUtils_1.getLocalizedString("core.selectCollaborationAppTypeQuestion.title"),
|
|
510
|
+
title: (0, localizeUtils_1.getLocalizedString)("core.selectCollaborationAppTypeQuestion.title"),
|
|
514
511
|
type: "multiSelect",
|
|
515
512
|
staticOptions: [
|
|
516
513
|
{
|
|
517
514
|
id: collaborator_1.CollaborationConstants.AadAppQuestionId,
|
|
518
|
-
label: localizeUtils_1.getLocalizedString("core.aadAppQuestion.label"),
|
|
519
|
-
description: localizeUtils_1.getLocalizedString("core.aadAppQuestion.description"),
|
|
515
|
+
label: (0, localizeUtils_1.getLocalizedString)("core.aadAppQuestion.label"),
|
|
516
|
+
description: (0, localizeUtils_1.getLocalizedString)("core.aadAppQuestion.description"),
|
|
520
517
|
},
|
|
521
518
|
{
|
|
522
519
|
id: collaborator_1.CollaborationConstants.TeamsAppQuestionId,
|
|
523
|
-
label: localizeUtils_1.getLocalizedString("core.teamsAppQuestion.label"),
|
|
524
|
-
description: localizeUtils_1.getLocalizedString("core.teamsAppQuestion.description"),
|
|
520
|
+
label: (0, localizeUtils_1.getLocalizedString)("core.teamsAppQuestion.label"),
|
|
521
|
+
description: (0, localizeUtils_1.getLocalizedString)("core.teamsAppQuestion.description"),
|
|
525
522
|
},
|
|
526
523
|
],
|
|
527
524
|
validation: { minItems: 1 },
|
|
@@ -571,21 +568,21 @@ async function newEnvNameValidation(input, inputs) {
|
|
|
571
568
|
const targetEnvName = input;
|
|
572
569
|
const match = targetEnvName.match(environmentName_1.environmentNameManager.envNameRegex);
|
|
573
570
|
if (!match) {
|
|
574
|
-
return localizeUtils_1.getLocalizedString("core.getQuestionNewTargetEnvironmentName.validation1");
|
|
571
|
+
return (0, localizeUtils_1.getLocalizedString)("core.getQuestionNewTargetEnvironmentName.validation1");
|
|
575
572
|
}
|
|
576
573
|
if (!environmentName_1.environmentNameManager.isRemoteEnvironment(targetEnvName)) {
|
|
577
|
-
return localizeUtils_1.getLocalizedString("core.getQuestionNewTargetEnvironmentName.validation3", targetEnvName);
|
|
574
|
+
return (0, localizeUtils_1.getLocalizedString)("core.getQuestionNewTargetEnvironmentName.validation3", targetEnvName);
|
|
578
575
|
}
|
|
579
576
|
if (!(inputs === null || inputs === void 0 ? void 0 : inputs.projectPath))
|
|
580
577
|
return "Project path is not defined";
|
|
581
578
|
const envListRes = await envUtil_1.envUtil.listEnv(inputs.projectPath, true);
|
|
582
579
|
if (envListRes.isErr()) {
|
|
583
|
-
return localizeUtils_1.getLocalizedString("core.getQuestionNewTargetEnvironmentName.validation4");
|
|
580
|
+
return (0, localizeUtils_1.getLocalizedString)("core.getQuestionNewTargetEnvironmentName.validation4");
|
|
584
581
|
}
|
|
585
582
|
inputs.existingEnvNames = envListRes.value; //cache existing env names
|
|
586
583
|
const found = envListRes.value.find((env) => env.localeCompare(targetEnvName, undefined, { sensitivity: "base" }) === 0) !== undefined;
|
|
587
584
|
if (found) {
|
|
588
|
-
return localizeUtils_1.getLocalizedString("core.getQuestionNewTargetEnvironmentName.validation5", targetEnvName);
|
|
585
|
+
return (0, localizeUtils_1.getLocalizedString)("core.getQuestionNewTargetEnvironmentName.validation5", targetEnvName);
|
|
589
586
|
}
|
|
590
587
|
else {
|
|
591
588
|
return undefined;
|
|
@@ -599,11 +596,11 @@ function newTargetEnvQuestion() {
|
|
|
599
596
|
cliName: "name",
|
|
600
597
|
cliDescription: "Specifies the new environment name.",
|
|
601
598
|
cliType: "argument",
|
|
602
|
-
title: localizeUtils_1.getLocalizedString("core.getQuestionNewTargetEnvironmentName.title"),
|
|
599
|
+
title: (0, localizeUtils_1.getLocalizedString)("core.getQuestionNewTargetEnvironmentName.title"),
|
|
603
600
|
validation: {
|
|
604
601
|
validFunc: newEnvNameValidation,
|
|
605
602
|
},
|
|
606
|
-
placeholder: localizeUtils_1.getLocalizedString("core.getQuestionNewTargetEnvironmentName.placeholder"),
|
|
603
|
+
placeholder: (0, localizeUtils_1.getLocalizedString)("core.getQuestionNewTargetEnvironmentName.placeholder"),
|
|
607
604
|
};
|
|
608
605
|
}
|
|
609
606
|
exports.newTargetEnvQuestion = newTargetEnvQuestion;
|
|
@@ -626,7 +623,7 @@ function selectSourceEnvQuestion() {
|
|
|
626
623
|
type: "singleSelect",
|
|
627
624
|
name: constants_3.QuestionNames.SourceEnvName,
|
|
628
625
|
cliName: "env",
|
|
629
|
-
title: localizeUtils_1.getLocalizedString("core.QuestionSelectSourceEnvironment.title"),
|
|
626
|
+
title: (0, localizeUtils_1.getLocalizedString)("core.QuestionSelectSourceEnvironment.title"),
|
|
630
627
|
cliDescription: "Specifies an existing environment name to copy from.",
|
|
631
628
|
staticOptions: [],
|
|
632
629
|
dynamicOptions: async (inputs) => {
|
|
@@ -659,48 +656,37 @@ function createNewEnvQuestionNode() {
|
|
|
659
656
|
};
|
|
660
657
|
}
|
|
661
658
|
exports.createNewEnvQuestionNode = createNewEnvQuestionNode;
|
|
662
|
-
function selectPluginAvailabilityQuestion() {
|
|
663
|
-
return {
|
|
664
|
-
name: constants_3.QuestionNames.PluginAvailability,
|
|
665
|
-
title: localizeUtils_1.getLocalizedString("core.question.pluginAvailability.title"),
|
|
666
|
-
cliDescription: "Select plugin availability.",
|
|
667
|
-
type: "singleSelect",
|
|
668
|
-
staticOptions: constants_3.PluginAvailabilityOptions.all(),
|
|
669
|
-
dynamicOptions: async (inputs) => {
|
|
670
|
-
const teamsManifestPath = inputs[constants_3.QuestionNames.TeamsAppManifestFilePath];
|
|
671
|
-
const absolutePath = common_1.getAbsolutePath(teamsManifestPath, inputs.projectPath);
|
|
672
|
-
const manifestRes = await ManifestUtils_1.manifestUtils._readAppManifest(absolutePath);
|
|
673
|
-
if (manifestRes.isErr()) {
|
|
674
|
-
throw manifestRes.error;
|
|
675
|
-
}
|
|
676
|
-
const commonProperties = teamsfx_api_1.ManifestUtil.parseCommonProperties(manifestRes.value);
|
|
677
|
-
if (!commonProperties.capabilities.includes("copilotGpt")) {
|
|
678
|
-
throw results_1.AppStudioResultFactory.UserError(errors_1.AppStudioError.TeamsAppRequiredPropertyMissingError.name, errors_1.AppStudioError.TeamsAppRequiredPropertyMissingError.message("declarativeCopilots", teamsManifestPath));
|
|
679
|
-
}
|
|
680
|
-
if (commonProperties.capabilities.includes("plugin")) {
|
|
681
|
-
// A project can have only one plugin.
|
|
682
|
-
return [constants_3.PluginAvailabilityOptions.action()];
|
|
683
|
-
}
|
|
684
|
-
else {
|
|
685
|
-
return constants_3.PluginAvailabilityOptions.all();
|
|
686
|
-
}
|
|
687
|
-
},
|
|
688
|
-
};
|
|
689
|
-
}
|
|
690
|
-
exports.selectPluginAvailabilityQuestion = selectPluginAvailabilityQuestion;
|
|
691
659
|
// add Plugin to a declarative Copilot project
|
|
692
660
|
function addPluginQuestionNode() {
|
|
693
661
|
return {
|
|
694
|
-
data:
|
|
662
|
+
data: (0, create_1.apiPluginStartQuestion)(true),
|
|
695
663
|
children: [
|
|
696
664
|
{
|
|
697
|
-
data:
|
|
665
|
+
data: (0, create_1.pluginManifestQuestion)(),
|
|
666
|
+
condition: {
|
|
667
|
+
equals: constants_3.ApiPluginStartOptions.existingPlugin().id,
|
|
668
|
+
},
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
data: (0, create_1.pluginApiSpecQuestion)(),
|
|
672
|
+
condition: {
|
|
673
|
+
equals: constants_3.ApiPluginStartOptions.existingPlugin().id,
|
|
674
|
+
},
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
data: (0, create_1.apiSpecLocationQuestion)(),
|
|
678
|
+
condition: {
|
|
679
|
+
equals: constants_3.ApiPluginStartOptions.apiSpec().id,
|
|
680
|
+
},
|
|
698
681
|
},
|
|
699
682
|
{
|
|
700
|
-
data: create_1.
|
|
683
|
+
data: (0, create_1.apiOperationQuestion)(true, true),
|
|
684
|
+
condition: {
|
|
685
|
+
equals: constants_3.ApiPluginStartOptions.apiSpec().id,
|
|
686
|
+
},
|
|
701
687
|
},
|
|
702
688
|
{
|
|
703
|
-
data:
|
|
689
|
+
data: selectTeamsAppManifestQuestion(),
|
|
704
690
|
},
|
|
705
691
|
],
|
|
706
692
|
};
|
|
@@ -709,7 +695,7 @@ exports.addPluginQuestionNode = addPluginQuestionNode;
|
|
|
709
695
|
function apiSpecApiKeyConfirmQestion() {
|
|
710
696
|
return {
|
|
711
697
|
name: constants_3.QuestionNames.ApiSpecApiKeyConfirm,
|
|
712
|
-
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.ApiKeyConfirm"),
|
|
698
|
+
title: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.ApiKeyConfirm"),
|
|
713
699
|
type: "confirm",
|
|
714
700
|
default: true,
|
|
715
701
|
};
|
|
@@ -721,13 +707,13 @@ function apiSpecApiKeyQuestion() {
|
|
|
721
707
|
type: "text",
|
|
722
708
|
name: constants_3.QuestionNames.ApiSpecApiKey,
|
|
723
709
|
cliShortName: "k",
|
|
724
|
-
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.ApiKey"),
|
|
710
|
+
title: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.ApiKey"),
|
|
725
711
|
cliDescription: "Api key for OpenAPI spec.",
|
|
726
712
|
forgetLastValue: true,
|
|
727
713
|
validation: {
|
|
728
714
|
validFunc: (input) => {
|
|
729
|
-
if (input.length < 10 || input.length >
|
|
730
|
-
return localizeUtils_1.getLocalizedString("core.createProjectQuestion.invalidApiKey.message");
|
|
715
|
+
if (input.length < 10 || input.length > 512) {
|
|
716
|
+
return (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.invalidApiKey.message");
|
|
731
717
|
}
|
|
732
718
|
return undefined;
|
|
733
719
|
},
|
|
@@ -772,25 +758,148 @@ function oauthQuestion() {
|
|
|
772
758
|
{
|
|
773
759
|
data: oauthClientSecretQuestion(),
|
|
774
760
|
condition: (inputs) => {
|
|
775
|
-
return !inputs.
|
|
761
|
+
return (!inputs.isPKCEEnabled &&
|
|
762
|
+
!inputs.clientSecret &&
|
|
763
|
+
(!inputs.identityProvider || inputs.identityProvider === "Custom"));
|
|
776
764
|
},
|
|
777
765
|
},
|
|
778
766
|
{
|
|
779
767
|
data: oauthConfirmQestion(),
|
|
780
768
|
condition: (inputs) => {
|
|
781
|
-
return !inputs.
|
|
769
|
+
return (!inputs.isPKCEEnabled &&
|
|
770
|
+
(!inputs.clientSecret || !inputs.clientId) &&
|
|
771
|
+
(!inputs.identityProvider || inputs.identityProvider === "Custom"));
|
|
782
772
|
},
|
|
783
773
|
},
|
|
784
774
|
],
|
|
785
775
|
};
|
|
786
776
|
}
|
|
787
777
|
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
|
+
}
|
|
788
897
|
function oauthClientIdQuestion() {
|
|
789
898
|
return {
|
|
790
899
|
type: "text",
|
|
791
900
|
name: constants_3.QuestionNames.OauthClientId,
|
|
792
901
|
cliShortName: "i",
|
|
793
|
-
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.OauthClientId"),
|
|
902
|
+
title: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.OauthClientId"),
|
|
794
903
|
cliDescription: "Oauth client id for OpenAPI spec.",
|
|
795
904
|
forgetLastValue: true,
|
|
796
905
|
additionalValidationOnAccept: {
|
|
@@ -807,7 +916,7 @@ function oauthClientIdQuestion() {
|
|
|
807
916
|
function oauthConfirmQestion() {
|
|
808
917
|
return {
|
|
809
918
|
name: constants_3.QuestionNames.OauthConfirm,
|
|
810
|
-
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.OauthClientSecretConfirm"),
|
|
919
|
+
title: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.OauthClientSecretConfirm"),
|
|
811
920
|
type: "confirm",
|
|
812
921
|
default: true,
|
|
813
922
|
};
|
|
@@ -817,13 +926,13 @@ function oauthClientSecretQuestion() {
|
|
|
817
926
|
type: "text",
|
|
818
927
|
name: constants_3.QuestionNames.OauthClientSecret,
|
|
819
928
|
cliShortName: "c",
|
|
820
|
-
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.OauthClientSecret"),
|
|
929
|
+
title: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.OauthClientSecret"),
|
|
821
930
|
cliDescription: "Oauth client secret for OpenAPI spec.",
|
|
822
931
|
forgetLastValue: true,
|
|
823
932
|
validation: {
|
|
824
933
|
validFunc: (input) => {
|
|
825
|
-
if (input.length < 10 || input.length >
|
|
826
|
-
return localizeUtils_1.getLocalizedString("core.createProjectQuestion.invalidApiKey.message");
|
|
934
|
+
if (input.length < 10 || input.length > 512) {
|
|
935
|
+
return (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.invalidApiKey.message");
|
|
827
936
|
}
|
|
828
937
|
return undefined;
|
|
829
938
|
},
|
|
@@ -839,4 +948,42 @@ function oauthClientSecretQuestion() {
|
|
|
839
948
|
},
|
|
840
949
|
};
|
|
841
950
|
}
|
|
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;
|
|
842
989
|
//# sourceMappingURL=other.js.map
|