@microsoft/teamsfx-core 2.0.4-alpha.dc097d3df.0 → 2.0.4-alpha.e432bab97.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/common/deps-checker/checkerFactory.d.ts +1 -2
- package/build/common/deps-checker/checkerFactory.d.ts.map +1 -1
- package/build/common/deps-checker/checkerFactory.js +2 -2
- package/build/common/deps-checker/checkerFactory.js.map +1 -1
- package/build/common/deps-checker/depsLogger.d.ts +14 -14
- package/build/common/deps-checker/depsLogger.d.ts.map +1 -1
- package/build/common/deps-checker/depsLogger.js +7 -21
- package/build/common/deps-checker/depsLogger.js.map +1 -1
- package/build/common/deps-checker/internal/dotnetChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/dotnetChecker.js +42 -37
- package/build/common/deps-checker/internal/dotnetChecker.js.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.js +2 -2
- package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.js +8 -8
- package/build/common/deps-checker/internal/nodeChecker.js.map +1 -1
- package/build/common/deps-checker/internal/vxTestAppChecker.js +1 -1
- package/build/common/deps-checker/internal/vxTestAppChecker.js.map +1 -1
- package/build/common/deps-checker/util/cpUtils.d.ts +1 -1
- package/build/common/deps-checker/util/cpUtils.d.ts.map +1 -1
- package/build/common/deps-checker/util/cpUtils.js +5 -5
- package/build/common/deps-checker/util/cpUtils.js.map +1 -1
- package/build/common/deps-checker/util/fileHelper.d.ts.map +1 -1
- package/build/common/deps-checker/util/fileHelper.js +2 -0
- package/build/common/deps-checker/util/fileHelper.js.map +1 -1
- package/build/common/deps-checker/util/progressIndicator.js +2 -2
- package/build/common/deps-checker/util/progressIndicator.js.map +1 -1
- package/build/common/featureFlags.d.ts +1 -0
- package/build/common/featureFlags.d.ts.map +1 -1
- package/build/common/featureFlags.js +7 -2
- package/build/common/featureFlags.js.map +1 -1
- package/build/common/jsonUtils.d.ts.map +1 -1
- package/build/common/jsonUtils.js +2 -0
- package/build/common/jsonUtils.js.map +1 -1
- package/build/common/local/localCertificateManager.d.ts.map +1 -1
- package/build/common/local/localCertificateManager.js +4 -1
- package/build/common/local/localCertificateManager.js.map +1 -1
- package/build/common/local/packageJsonHelper.d.ts.map +1 -1
- package/build/common/local/packageJsonHelper.js +1 -0
- package/build/common/local/packageJsonHelper.js.map +1 -1
- package/build/common/local/portChecker.js.map +1 -1
- package/build/common/m365/launchHelper.d.ts +2 -2
- package/build/common/m365/launchHelper.d.ts.map +1 -1
- package/build/common/m365/launchHelper.js +13 -4
- package/build/common/m365/launchHelper.js.map +1 -1
- package/build/common/m365/packageService.d.ts.map +1 -1
- package/build/common/m365/packageService.js +38 -0
- package/build/common/m365/packageService.js.map +1 -1
- package/build/common/projectSettingsHelper.d.ts.map +1 -1
- package/build/common/projectSettingsHelper.js +1 -0
- package/build/common/projectSettingsHelper.js.map +1 -1
- package/build/common/samples-config-v3.json +234 -27
- package/build/common/samples.d.ts +10 -6
- package/build/common/samples.d.ts.map +1 -1
- package/build/common/samples.js +31 -29
- package/build/common/samples.js.map +1 -1
- package/build/common/spec-parser/adaptiveCardGenerator.d.ts +5 -0
- package/build/common/spec-parser/adaptiveCardGenerator.d.ts.map +1 -0
- package/build/common/spec-parser/adaptiveCardGenerator.js +119 -0
- package/build/common/spec-parser/adaptiveCardGenerator.js.map +1 -0
- package/build/common/spec-parser/constants.d.ts +20 -0
- package/build/common/spec-parser/constants.d.ts.map +1 -0
- package/build/common/spec-parser/constants.js +27 -0
- package/build/common/spec-parser/constants.js.map +1 -0
- package/build/common/spec-parser/interfaces.d.ts +133 -0
- package/build/common/spec-parser/interfaces.d.ts.map +1 -0
- package/build/common/spec-parser/interfaces.js +46 -0
- package/build/common/spec-parser/interfaces.js.map +1 -0
- package/build/common/spec-parser/manifestUpdater.d.ts +5 -0
- package/build/common/spec-parser/manifestUpdater.d.ts.map +1 -0
- package/build/common/spec-parser/manifestUpdater.js +81 -0
- package/build/common/spec-parser/manifestUpdater.js.map +1 -0
- package/build/common/spec-parser/specFilter.d.ts +3 -0
- package/build/common/spec-parser/specFilter.d.ts.map +1 -0
- package/build/common/spec-parser/specFilter.js +40 -0
- package/build/common/spec-parser/specFilter.js.map +1 -0
- package/build/common/spec-parser/specParser.d.ts +45 -0
- package/build/common/spec-parser/specParser.d.ts.map +1 -0
- package/build/common/spec-parser/specParser.js +247 -0
- package/build/common/spec-parser/specParser.js.map +1 -0
- package/build/common/spec-parser/specParserError.d.ts +6 -0
- package/build/common/spec-parser/specParserError.d.ts.map +1 -0
- package/build/common/spec-parser/specParserError.js +13 -0
- package/build/common/spec-parser/specParserError.js.map +1 -0
- package/build/common/spec-parser/utils.d.ts +8 -0
- package/build/common/spec-parser/utils.d.ts.map +1 -0
- package/build/common/spec-parser/utils.js +91 -0
- package/build/common/spec-parser/utils.js.map +1 -0
- package/build/common/telemetry.d.ts +7 -5
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +40 -15
- package/build/common/telemetry.js.map +1 -1
- package/build/common/tools.js +3 -3
- package/build/common/tools.js.map +1 -1
- package/build/common/utils.d.ts +1 -0
- package/build/common/utils.d.ts.map +1 -1
- package/build/common/utils.js +5 -1
- package/build/common/utils.js.map +1 -1
- package/build/component/configManager/constant.d.ts.map +1 -1
- package/build/component/configManager/constant.js +4 -2
- package/build/component/configManager/constant.js.map +1 -1
- package/build/component/configManager/interface.d.ts +5 -0
- package/build/component/configManager/interface.d.ts.map +1 -1
- package/build/component/configManager/interface.js +2 -3
- package/build/component/configManager/interface.js.map +1 -1
- package/build/component/configManager/lifecycle.d.ts.map +1 -1
- package/build/component/configManager/lifecycle.js +22 -13
- package/build/component/configManager/lifecycle.js.map +1 -1
- package/build/component/configManager/parser.d.ts.map +1 -1
- package/build/component/configManager/parser.js +17 -9
- package/build/component/configManager/parser.js.map +1 -1
- package/build/component/configManager/validator.d.ts +0 -3
- package/build/component/configManager/validator.d.ts.map +1 -1
- package/build/component/configManager/validator.js +4 -12
- package/build/component/configManager/validator.js.map +1 -1
- package/build/component/constants.d.ts +10 -23
- package/build/component/constants.d.ts.map +1 -1
- package/build/component/constants.js +11 -24
- package/build/component/constants.js.map +1 -1
- package/build/component/coordinator/index.d.ts +12 -8
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +76 -59
- package/build/component/coordinator/index.js.map +1 -1
- package/build/component/coordinator/summary.d.ts.map +1 -1
- package/build/component/coordinator/summary.js +4 -1
- package/build/component/coordinator/summary.js.map +1 -1
- package/build/component/developerPortalScaffoldUtils.d.ts +1 -1
- package/build/component/developerPortalScaffoldUtils.d.ts.map +1 -1
- package/build/component/developerPortalScaffoldUtils.js +7 -7
- package/build/component/developerPortalScaffoldUtils.js.map +1 -1
- package/build/component/driver/aad/create.d.ts +1 -0
- package/build/component/driver/aad/create.d.ts.map +1 -1
- package/build/component/driver/aad/create.js +2 -5
- package/build/component/driver/aad/create.js.map +1 -1
- package/build/component/driver/aad/error/aadManifestError.d.ts +13 -3
- package/build/component/driver/aad/error/aadManifestError.d.ts.map +1 -1
- package/build/component/driver/aad/error/aadManifestError.js +51 -5
- package/build/component/driver/aad/error/aadManifestError.js.map +1 -1
- package/build/component/driver/aad/interface/AADApplication.js +1 -1
- package/build/component/driver/aad/interface/AADApplication.js.map +1 -1
- package/build/component/driver/aad/interface/AADManifest.js +1 -1
- package/build/component/driver/aad/interface/AADManifest.js.map +1 -1
- package/build/component/driver/aad/update.d.ts +1 -0
- package/build/component/driver/aad/update.d.ts.map +1 -1
- package/build/component/driver/aad/update.js +2 -5
- package/build/component/driver/aad/update.js.map +1 -1
- package/build/component/driver/aad/utility/aadAppClient.d.ts +1 -1
- package/build/component/driver/aad/utility/aadAppClient.d.ts.map +1 -1
- package/build/component/driver/aad/utility/aadAppClient.js +58 -13
- package/build/component/driver/aad/utility/aadAppClient.js.map +1 -1
- package/build/component/driver/aad/utility/aadManifestHelper.d.ts.map +1 -1
- package/build/component/driver/aad/utility/aadManifestHelper.js +14 -19
- package/build/component/driver/aad/utility/aadManifestHelper.js.map +1 -1
- package/build/component/driver/aad/utility/buildAadManifest.d.ts.map +1 -1
- package/build/component/driver/aad/utility/buildAadManifest.js +12 -2
- package/build/component/driver/aad/utility/buildAadManifest.js.map +1 -1
- package/build/component/driver/aad/utility/constants.d.ts +3 -0
- package/build/component/driver/aad/utility/constants.d.ts.map +1 -1
- package/build/component/driver/aad/utility/constants.js +4 -1
- package/build/component/driver/aad/utility/constants.js.map +1 -1
- package/build/component/driver/add/addWebPart.js +1 -1
- package/build/component/driver/add/addWebPart.js.map +1 -1
- package/build/component/driver/arm/deploy.d.ts +1 -0
- package/build/component/driver/arm/deploy.d.ts.map +1 -1
- package/build/component/driver/arm/deploy.js +1 -8
- package/build/component/driver/arm/deploy.js.map +1 -1
- package/build/component/driver/arm/deployImpl.d.ts +2 -1
- package/build/component/driver/arm/deployImpl.d.ts.map +1 -1
- package/build/component/driver/arm/deployImpl.js +15 -0
- 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 -6
- package/build/component/driver/arm/util/bicepChecker.js.map +1 -1
- package/build/component/driver/arm/util/handleError.js.map +1 -1
- package/build/component/driver/arm/validator.d.ts.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 +1 -0
- package/build/component/driver/botAadApp/create.d.ts.map +1 -1
- package/build/component/driver/botAadApp/create.js +4 -7
- package/build/component/driver/botAadApp/create.js.map +1 -1
- package/build/component/driver/botFramework/createOrUpdateBot.d.ts +1 -0
- package/build/component/driver/botFramework/createOrUpdateBot.d.ts.map +1 -1
- package/build/component/driver/botFramework/createOrUpdateBot.js +7 -11
- package/build/component/driver/botFramework/createOrUpdateBot.js.map +1 -1
- package/build/component/driver/deploy/azure/azureStorageDeployDriver.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/azureStorageDeployDriver.js +12 -5
- package/build/component/driver/deploy/azure/azureStorageDeployDriver.js.map +1 -1
- package/build/component/driver/deploy/azure/azureStorageStaticWebsiteConfigDriver.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/azureStorageStaticWebsiteConfigDriver.js +11 -4
- package/build/component/driver/deploy/azure/azureStorageStaticWebsiteConfigDriver.js.map +1 -1
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js +22 -14
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js.map +1 -1
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.d.ts.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 +4 -4
- package/build/component/driver/deploy/azure/impl/baseDeployImpl.js.map +1 -1
- package/build/component/driver/deploy/spfx/deployDriver.d.ts +1 -0
- package/build/component/driver/deploy/spfx/deployDriver.d.ts.map +1 -1
- package/build/component/driver/deploy/spfx/deployDriver.js +11 -5
- package/build/component/driver/deploy/spfx/deployDriver.js.map +1 -1
- package/build/component/driver/devTool/installDriver.d.ts +1 -0
- package/build/component/driver/devTool/installDriver.d.ts.map +1 -1
- package/build/component/driver/devTool/installDriver.js +10 -6
- package/build/component/driver/devTool/installDriver.js.map +1 -1
- package/build/component/driver/file/createOrUpdateEnvironmentFile.d.ts +1 -0
- package/build/component/driver/file/createOrUpdateEnvironmentFile.d.ts.map +1 -1
- package/build/component/driver/file/createOrUpdateEnvironmentFile.js +5 -11
- package/build/component/driver/file/createOrUpdateEnvironmentFile.js.map +1 -1
- package/build/component/driver/file/createOrUpdateJsonFile.d.ts +1 -0
- package/build/component/driver/file/createOrUpdateJsonFile.d.ts.map +1 -1
- package/build/component/driver/file/createOrUpdateJsonFile.js +5 -11
- package/build/component/driver/file/createOrUpdateJsonFile.js.map +1 -1
- package/build/component/driver/interface/buildAndDeployArgs.d.ts +3 -6
- package/build/component/driver/interface/buildAndDeployArgs.d.ts.map +1 -1
- package/build/component/driver/interface/stepDriver.d.ts +1 -0
- package/build/component/driver/interface/stepDriver.d.ts.map +1 -1
- package/build/component/driver/m365/acquire.d.ts +1 -0
- package/build/component/driver/m365/acquire.d.ts.map +1 -1
- package/build/component/driver/m365/acquire.js +5 -11
- package/build/component/driver/m365/acquire.js.map +1 -1
- package/build/component/driver/script/baseBuildDriver.d.ts.map +1 -1
- package/build/component/driver/script/baseBuildDriver.js +1 -0
- package/build/component/driver/script/baseBuildDriver.js.map +1 -1
- package/build/component/driver/script/scriptDriver.d.ts +1 -0
- package/build/component/driver/script/scriptDriver.d.ts.map +1 -1
- package/build/component/driver/script/scriptDriver.js +30 -21
- 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 +6 -6
- package/build/component/driver/teamsApp/appStudio.js.map +1 -1
- package/build/component/driver/teamsApp/clients/appStudioClient.d.ts.map +1 -1
- package/build/component/driver/teamsApp/clients/appStudioClient.js +21 -5
- package/build/component/driver/teamsApp/clients/appStudioClient.js.map +1 -1
- package/build/component/driver/teamsApp/clients/authSvcClient.d.ts +1 -1
- package/build/component/driver/teamsApp/clients/authSvcClient.d.ts.map +1 -1
- package/build/component/driver/teamsApp/clients/authSvcClient.js +3 -1
- package/build/component/driver/teamsApp/clients/authSvcClient.js.map +1 -1
- package/build/component/driver/teamsApp/configure.d.ts +1 -0
- package/build/component/driver/teamsApp/configure.d.ts.map +1 -1
- package/build/component/driver/teamsApp/configure.js +4 -17
- package/build/component/driver/teamsApp/configure.js.map +1 -1
- package/build/component/driver/teamsApp/constants.d.ts +0 -1
- package/build/component/driver/teamsApp/constants.d.ts.map +1 -1
- package/build/component/driver/teamsApp/constants.js +1 -2
- package/build/component/driver/teamsApp/constants.js.map +1 -1
- package/build/component/driver/teamsApp/copyAppPackageToSPFx.d.ts +1 -0
- package/build/component/driver/teamsApp/copyAppPackageToSPFx.d.ts.map +1 -1
- package/build/component/driver/teamsApp/copyAppPackageToSPFx.js +3 -6
- package/build/component/driver/teamsApp/copyAppPackageToSPFx.js.map +1 -1
- package/build/component/driver/teamsApp/create.d.ts +1 -0
- package/build/component/driver/teamsApp/create.d.ts.map +1 -1
- package/build/component/driver/teamsApp/create.js +4 -5
- package/build/component/driver/teamsApp/create.js.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.d.ts +3 -2
- package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.js +47 -23
- package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/errors.d.ts.map +1 -1
- package/build/component/driver/teamsApp/errors.js +2 -0
- package/build/component/driver/teamsApp/errors.js.map +1 -1
- package/build/component/driver/teamsApp/interfaces/appdefinitions/messagingExtension.d.ts +3 -0
- package/build/component/driver/teamsApp/interfaces/appdefinitions/messagingExtension.d.ts.map +1 -1
- package/build/component/driver/teamsApp/interfaces/appdefinitions/messagingExtensionCommand.d.ts +1 -0
- package/build/component/driver/teamsApp/interfaces/appdefinitions/messagingExtensionCommand.d.ts.map +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.d.ts +1 -0
- package/build/component/driver/teamsApp/publishAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.js +2 -5
- package/build/component/driver/teamsApp/publishAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/results.d.ts.map +1 -1
- package/build/component/driver/teamsApp/results.js +2 -0
- package/build/component/driver/teamsApp/results.js.map +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts +6 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.js +19 -2
- package/build/component/driver/teamsApp/utils/ManifestUtils.js.map +1 -1
- package/build/component/driver/teamsApp/utils/utils.d.ts +2 -3
- package/build/component/driver/teamsApp/utils/utils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/utils.js +21 -19
- package/build/component/driver/teamsApp/utils/utils.js.map +1 -1
- package/build/component/driver/teamsApp/validate.d.ts +1 -0
- package/build/component/driver/teamsApp/validate.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validate.js +8 -5
- 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 +26 -18
- package/build/component/driver/teamsApp/validateAppPackage.js.map +1 -1
- package/build/component/error/componentError.d.ts +2 -5
- package/build/component/error/componentError.d.ts.map +1 -1
- package/build/component/error/componentError.js +9 -14
- 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 +50 -21
- package/build/component/feature/collaboration.js.map +1 -1
- package/build/component/feature/createAuthFiles.js.map +1 -1
- package/build/component/generator/copilotPlugin/generator.d.ts +8 -0
- package/build/component/generator/copilotPlugin/generator.d.ts.map +1 -0
- package/build/component/generator/copilotPlugin/generator.js +142 -0
- package/build/component/generator/copilotPlugin/generator.js.map +1 -0
- package/build/component/generator/copilotPlugin/helper.d.ts +30 -0
- package/build/component/generator/copilotPlugin/helper.d.ts.map +1 -0
- package/build/component/generator/copilotPlugin/helper.js +261 -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 +2 -2
- 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 +24 -20
- package/build/component/generator/generator.js.map +1 -1
- package/build/component/generator/generatorAction.d.ts.map +1 -1
- package/build/component/generator/generatorAction.js +4 -3
- package/build/component/generator/generatorAction.js.map +1 -1
- package/build/component/generator/officeAddin/config/projectProperties.d.ts.map +1 -1
- package/build/component/generator/officeAddin/config/projectProperties.js +2 -0
- package/build/component/generator/officeAddin/config/projectProperties.js.map +1 -1
- package/build/component/generator/officeAddin/config/projectsJsonData.d.ts.map +1 -1
- package/build/component/generator/officeAddin/config/projectsJsonData.js +2 -0
- package/build/component/generator/officeAddin/config/projectsJsonData.js.map +1 -1
- package/build/component/generator/officeAddin/generator.d.ts.map +1 -1
- package/build/component/generator/officeAddin/generator.js +17 -9
- package/build/component/generator/officeAddin/generator.js.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.d.ts.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.js +11 -5
- package/build/component/generator/officeAddin/helperMethods.js.map +1 -1
- package/build/component/generator/spfx/depsChecker/generatorChecker.d.ts +1 -1
- package/build/component/generator/spfx/depsChecker/generatorChecker.d.ts.map +1 -1
- package/build/component/generator/spfx/depsChecker/generatorChecker.js +12 -12
- package/build/component/generator/spfx/depsChecker/generatorChecker.js.map +1 -1
- package/build/component/generator/spfx/depsChecker/yoChecker.d.ts +1 -1
- package/build/component/generator/spfx/depsChecker/yoChecker.d.ts.map +1 -1
- package/build/component/generator/spfx/depsChecker/yoChecker.js +10 -10
- package/build/component/generator/spfx/depsChecker/yoChecker.js.map +1 -1
- package/build/component/generator/spfx/error.d.ts +2 -0
- package/build/component/generator/spfx/error.d.ts.map +1 -1
- package/build/component/generator/spfx/error.js +21 -1
- package/build/component/generator/spfx/error.js.map +1 -1
- package/build/component/generator/spfx/spfxGenerator.d.ts +4 -1
- package/build/component/generator/spfx/spfxGenerator.d.ts.map +1 -1
- package/build/component/generator/spfx/spfxGenerator.js +141 -117
- package/build/component/generator/spfx/spfxGenerator.js.map +1 -1
- package/build/component/generator/spfx/utils/constants.d.ts +1 -0
- package/build/component/generator/spfx/utils/constants.d.ts.map +1 -1
- package/build/component/generator/spfx/utils/constants.js +2 -0
- package/build/component/generator/spfx/utils/constants.js.map +1 -1
- package/build/component/generator/spfx/utils/telemetryEvents.d.ts +2 -1
- package/build/component/generator/spfx/utils/telemetryEvents.d.ts.map +1 -1
- package/build/component/generator/spfx/utils/telemetryEvents.js +1 -0
- package/build/component/generator/spfx/utils/telemetryEvents.js.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/utils.d.ts +10 -3
- package/build/component/generator/utils.d.ts.map +1 -1
- package/build/component/generator/utils.js +6 -9
- package/build/component/generator/utils.js.map +1 -1
- package/build/component/messages.d.ts +2 -3
- package/build/component/messages.d.ts.map +1 -1
- package/build/component/messages.js +3 -4
- package/build/component/messages.js.map +1 -1
- package/build/component/middleware/questionMW.d.ts +2 -2
- package/build/component/middleware/questionMW.d.ts.map +1 -1
- package/build/component/middleware/questionMW.js +7 -11
- package/build/component/middleware/questionMW.js.map +1 -1
- package/build/component/migrate.d.ts.map +1 -1
- package/build/component/migrate.js +2 -0
- package/build/component/migrate.js.map +1 -1
- package/build/component/provisionUtils.d.ts +3 -3
- package/build/component/provisionUtils.d.ts.map +1 -1
- package/build/component/provisionUtils.js +3 -3
- package/build/component/provisionUtils.js.map +1 -1
- package/build/component/registerService.d.ts +0 -1
- package/build/component/registerService.d.ts.map +1 -1
- package/build/component/registerService.js +0 -1
- package/build/component/registerService.js.map +1 -1
- package/build/component/resource/botService/appStudio/appStudioClient.d.ts.map +1 -1
- package/build/component/resource/botService/appStudio/appStudioClient.js +24 -2
- package/build/component/resource/botService/appStudio/appStudioClient.js.map +1 -1
- package/build/component/telemetry.d.ts.map +1 -1
- package/build/component/telemetry.js +3 -6
- package/build/component/telemetry.js.map +1 -1
- package/build/component/utils/ResourceGroupHelper.d.ts +2 -2
- package/build/component/utils/ResourceGroupHelper.d.ts.map +1 -1
- package/build/component/utils/ResourceGroupHelper.js +1 -4
- 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.map +1 -1
- package/build/component/utils/charsetUtils.js +5 -3
- package/build/component/utils/charsetUtils.js.map +1 -1
- package/build/component/utils/common.d.ts +1 -1
- package/build/component/utils/common.d.ts.map +1 -1
- package/build/component/utils/common.js +5 -6
- package/build/component/utils/common.js.map +1 -1
- package/build/component/utils/depsChecker/common.d.ts.map +1 -1
- package/build/component/utils/depsChecker/common.js +1 -1
- package/build/component/utils/depsChecker/common.js.map +1 -1
- package/build/component/utils/depsChecker/cpUtils.d.ts.map +1 -1
- package/build/component/utils/depsChecker/cpUtils.js +9 -5
- package/build/component/utils/depsChecker/cpUtils.js.map +1 -1
- package/build/component/utils/envUtil.d.ts.map +1 -1
- package/build/component/utils/envUtil.js +4 -2
- package/build/component/utils/envUtil.js.map +1 -1
- package/build/component/utils/metadataUtil.d.ts +3 -0
- package/build/component/utils/metadataUtil.d.ts.map +1 -1
- package/build/component/utils/metadataUtil.js +18 -4
- 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 +2 -0
- package/build/component/utils/pathUtils.js.map +1 -1
- package/build/component/utils/teamsFxTelemetryReporter.d.ts.map +1 -1
- package/build/component/utils/teamsFxTelemetryReporter.js +3 -6
- package/build/component/utils/teamsFxTelemetryReporter.js.map +1 -1
- package/build/component/utils.js.map +1 -1
- package/build/core/FxCore.d.ts +43 -32
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.js +816 -63
- package/build/core/FxCore.js.map +1 -1
- package/build/core/collaborator.d.ts +1 -1
- package/build/core/collaborator.d.ts.map +1 -1
- package/build/core/collaborator.js +16 -10
- package/build/core/collaborator.js.map +1 -1
- package/build/core/error.d.ts +6 -0
- package/build/core/error.d.ts.map +1 -1
- package/build/core/error.js +23 -1
- package/build/core/error.js.map +1 -1
- package/build/core/globalVars.d.ts +16 -0
- package/build/core/globalVars.d.ts.map +1 -1
- package/build/core/globalVars.js +34 -1
- package/build/core/globalVars.js.map +1 -1
- package/build/core/index.js +1 -0
- package/build/core/index.js.map +1 -1
- package/build/core/middleware/concurrentLocker.d.ts.map +1 -1
- package/build/core/middleware/concurrentLocker.js +7 -3
- package/build/core/middleware/concurrentLocker.js.map +1 -1
- package/build/core/middleware/errorHandler.d.ts +2 -0
- package/build/core/middleware/errorHandler.d.ts.map +1 -1
- package/build/core/middleware/errorHandler.js +16 -25
- package/build/core/middleware/errorHandler.js.map +1 -1
- package/build/core/middleware/projectMigratorV3.d.ts +7 -1
- package/build/core/middleware/projectMigratorV3.d.ts.map +1 -1
- package/build/core/middleware/projectMigratorV3.js +35 -34
- package/build/core/middleware/projectMigratorV3.js.map +1 -1
- package/build/core/middleware/projectVersionChecker.js +8 -8
- package/build/core/middleware/projectVersionChecker.js.map +1 -1
- package/build/core/middleware/utils/appYmlGenerator.d.ts.map +1 -1
- package/build/core/middleware/utils/appYmlGenerator.js +2 -1
- package/build/core/middleware/utils/appYmlGenerator.js.map +1 -1
- package/build/core/middleware/utils/debug/appLocalYmlGenerator.d.ts.map +1 -1
- package/build/core/middleware/utils/debug/appLocalYmlGenerator.js +3 -2
- package/build/core/middleware/utils/debug/appLocalYmlGenerator.js.map +1 -1
- package/build/core/middleware/utils/debug/debugV3MigrationUtils.js.map +1 -1
- package/build/core/middleware/utils/debug/taskMigrator.d.ts.map +1 -1
- package/build/core/middleware/utils/debug/taskMigrator.js +33 -15
- package/build/core/middleware/utils/debug/taskMigrator.js.map +1 -1
- package/build/core/middleware/utils/migrationContext.d.ts +1 -0
- package/build/core/middleware/utils/migrationContext.d.ts.map +1 -1
- package/build/core/middleware/utils/migrationContext.js.map +1 -1
- package/build/core/middleware/utils/v3MigrationUtils.d.ts.map +1 -1
- package/build/core/middleware/utils/v3MigrationUtils.js +6 -2
- package/build/core/middleware/utils/v3MigrationUtils.js.map +1 -1
- package/build/error/arm.d.ts.map +1 -1
- package/build/error/arm.js +2 -0
- package/build/error/arm.js.map +1 -1
- package/build/error/azure.d.ts.map +1 -1
- package/build/error/azure.js +2 -0
- package/build/error/azure.js.map +1 -1
- package/build/error/common.d.ts +8 -2
- package/build/error/common.d.ts.map +1 -1
- package/build/error/common.js +129 -22
- package/build/error/common.js.map +1 -1
- package/build/error/deploy.d.ts.map +1 -1
- package/build/error/deploy.js +10 -8
- package/build/error/deploy.js.map +1 -1
- package/build/error/index.d.ts.map +1 -1
- package/build/error/index.js +2 -0
- package/build/error/index.js.map +1 -1
- package/build/error/m365.d.ts.map +1 -1
- package/build/error/m365.js +2 -0
- package/build/error/m365.js.map +1 -1
- package/build/error/script.d.ts.map +1 -1
- package/build/error/script.js +2 -0
- package/build/error/script.js.map +1 -1
- package/build/error/upgrade.d.ts.map +1 -1
- package/build/error/upgrade.js +2 -0
- package/build/error/upgrade.js.map +1 -1
- package/build/error/yml.d.ts.map +1 -1
- package/build/error/yml.js +2 -0
- package/build/error/yml.js.map +1 -1
- package/build/failpoint/index.d.ts.map +1 -1
- package/build/failpoint/index.js +2 -0
- package/build/failpoint/index.js.map +1 -1
- package/build/failpoint/marker.d.ts.map +1 -1
- package/build/failpoint/marker.js +2 -0
- package/build/failpoint/marker.js.map +1 -1
- package/build/failpoint/runtime.d.ts.map +1 -1
- package/build/failpoint/runtime.js +3 -4
- package/build/failpoint/runtime.js.map +1 -1
- package/build/index.d.ts +3 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +4 -1
- package/build/index.js.map +1 -1
- package/build/question/constants.d.ts +4 -0
- package/build/question/constants.d.ts.map +1 -0
- package/build/question/constants.js +12 -0
- package/build/question/constants.js.map +1 -0
- package/build/question/create.d.ts +14 -15
- package/build/question/create.d.ts.map +1 -1
- package/build/question/create.js +478 -332
- package/build/question/create.js.map +1 -1
- package/build/question/generator.d.ts +4 -0
- package/build/question/generator.d.ts.map +1 -0
- package/build/question/generator.js +371 -0
- package/build/question/generator.js.map +1 -0
- package/build/question/index.d.ts +18 -28
- package/build/question/index.d.ts.map +1 -1
- package/build/question/index.js +18 -44
- package/build/question/index.js.map +1 -1
- package/build/question/inputs/CreateEnvInputs.d.ts +14 -0
- package/build/question/inputs/CreateEnvInputs.d.ts.map +1 -0
- package/build/question/inputs/CreateEnvInputs.js +5 -0
- package/build/question/inputs/CreateEnvInputs.js.map +1 -0
- package/build/question/inputs/CreateProjectInputs.d.ts +40 -0
- package/build/question/inputs/CreateProjectInputs.d.ts.map +1 -0
- package/build/question/inputs/CreateProjectInputs.js +5 -0
- package/build/question/inputs/CreateProjectInputs.js.map +1 -0
- package/build/question/inputs/CreateSampleProjectInputs.d.ts +12 -0
- package/build/question/inputs/CreateSampleProjectInputs.d.ts.map +1 -0
- package/build/question/inputs/CreateSampleProjectInputs.js +5 -0
- package/build/question/inputs/CreateSampleProjectInputs.js.map +1 -0
- package/build/question/inputs/DeployAadManifestInputs.d.ts +14 -0
- package/build/question/inputs/DeployAadManifestInputs.d.ts.map +1 -0
- package/build/question/inputs/DeployAadManifestInputs.js +5 -0
- package/build/question/inputs/DeployAadManifestInputs.js.map +1 -0
- package/build/question/inputs/PermissionGrantInputs.d.ts +18 -0
- package/build/question/inputs/PermissionGrantInputs.d.ts.map +1 -0
- package/build/question/inputs/PermissionGrantInputs.js +5 -0
- package/build/question/inputs/PermissionGrantInputs.js.map +1 -0
- package/build/question/inputs/PermissionListInputs.d.ts +16 -0
- package/build/question/inputs/PermissionListInputs.d.ts.map +1 -0
- package/build/question/inputs/PermissionListInputs.js +5 -0
- package/build/question/inputs/PermissionListInputs.js.map +1 -0
- package/build/question/inputs/PreviewTeamsAppInputs.d.ts +14 -0
- package/build/question/inputs/PreviewTeamsAppInputs.d.ts.map +1 -0
- package/build/question/inputs/PreviewTeamsAppInputs.js +5 -0
- package/build/question/inputs/PreviewTeamsAppInputs.js.map +1 -0
- package/build/question/inputs/SPFxAddWebpartInputs.d.ts +18 -0
- package/build/question/inputs/SPFxAddWebpartInputs.d.ts.map +1 -0
- package/build/question/inputs/SPFxAddWebpartInputs.js +5 -0
- package/build/question/inputs/SPFxAddWebpartInputs.js.map +1 -0
- package/build/question/inputs/SelectTeamsManifestInputs.d.ts +12 -0
- package/build/question/inputs/SelectTeamsManifestInputs.d.ts.map +1 -0
- package/build/question/inputs/SelectTeamsManifestInputs.js +5 -0
- package/build/question/inputs/SelectTeamsManifestInputs.js.map +1 -0
- package/build/question/inputs/ValidateTeamsAppInputs.d.ts +14 -0
- package/build/question/inputs/ValidateTeamsAppInputs.d.ts.map +1 -0
- package/build/question/inputs/ValidateTeamsAppInputs.js +5 -0
- package/build/question/inputs/ValidateTeamsAppInputs.js.map +1 -0
- package/build/question/inputs/index.d.ts +11 -0
- package/build/question/inputs/index.d.ts.map +1 -0
- package/build/question/inputs/index.js +16 -0
- package/build/question/inputs/index.js.map +1 -0
- package/build/question/options/CreateEnvOptions.d.ts +10 -0
- package/build/question/options/CreateEnvOptions.d.ts.map +1 -0
- package/build/question/options/CreateEnvOptions.js +24 -0
- package/build/question/options/CreateEnvOptions.js.map +1 -0
- package/build/question/options/CreateProjectOptions.d.ts +10 -0
- package/build/question/options/CreateProjectOptions.d.ts.map +1 -0
- package/build/question/options/CreateProjectOptions.js +139 -0
- package/build/question/options/CreateProjectOptions.js.map +1 -0
- package/build/question/options/CreateSampleProjectOptions.d.ts +10 -0
- package/build/question/options/CreateSampleProjectOptions.d.ts.map +1 -0
- package/build/question/options/CreateSampleProjectOptions.js +52 -0
- package/build/question/options/CreateSampleProjectOptions.js.map +1 -0
- package/build/question/options/DeployAadManifestOptions.d.ts +10 -0
- package/build/question/options/DeployAadManifestOptions.d.ts.map +1 -0
- package/build/question/options/DeployAadManifestOptions.js +21 -0
- package/build/question/options/DeployAadManifestOptions.js.map +1 -0
- package/build/question/options/PermissionGrantOptions.d.ts +10 -0
- package/build/question/options/PermissionGrantOptions.d.ts.map +1 -0
- package/build/question/options/PermissionGrantOptions.js +33 -0
- package/build/question/options/PermissionGrantOptions.js.map +1 -0
- package/build/question/options/PermissionListOptions.d.ts +10 -0
- package/build/question/options/PermissionListOptions.d.ts.map +1 -0
- package/build/question/options/PermissionListOptions.js +28 -0
- package/build/question/options/PermissionListOptions.js.map +1 -0
- package/build/question/options/PreviewTeamsAppOptions.d.ts +10 -0
- package/build/question/options/PreviewTeamsAppOptions.d.ts.map +1 -0
- package/build/question/options/PreviewTeamsAppOptions.js +26 -0
- package/build/question/options/PreviewTeamsAppOptions.js.map +1 -0
- package/build/question/options/SPFxAddWebpartOptions.d.ts +10 -0
- package/build/question/options/SPFxAddWebpartOptions.d.ts.map +1 -0
- package/build/question/options/SPFxAddWebpartOptions.js +38 -0
- package/build/question/options/SPFxAddWebpartOptions.js.map +1 -0
- package/build/question/options/SelectTeamsManifestOptions.d.ts +10 -0
- package/build/question/options/SelectTeamsManifestOptions.d.ts.map +1 -0
- package/build/question/options/SelectTeamsManifestOptions.js +17 -0
- package/build/question/options/SelectTeamsManifestOptions.js.map +1 -0
- package/build/question/options/ValidateTeamsAppOptions.d.ts +10 -0
- package/build/question/options/ValidateTeamsAppOptions.d.ts.map +1 -0
- package/build/question/options/ValidateTeamsAppOptions.js +23 -0
- package/build/question/options/ValidateTeamsAppOptions.js.map +1 -0
- package/build/question/options/index.d.ts +11 -0
- package/build/question/options/index.d.ts.map +1 -0
- package/build/question/options/index.js +16 -0
- package/build/question/options/index.js.map +1 -0
- package/build/question/other.d.ts +13 -1
- package/build/question/other.d.ts.map +1 -1
- package/build/question/other.js +132 -26
- package/build/question/other.js.map +1 -1
- package/build/question/questionNames.d.ts +6 -2
- package/build/question/questionNames.d.ts.map +1 -1
- package/build/question/questionNames.js +10 -3
- package/build/question/questionNames.js.map +1 -1
- package/build/question/util.d.ts +1 -1
- package/build/question/util.d.ts.map +1 -1
- package/build/question/util.js +7 -5
- package/build/question/util.js.map +1 -1
- package/build/ui/validationUtils.d.ts +15 -0
- package/build/ui/validationUtils.d.ts.map +1 -0
- package/build/ui/validationUtils.js +95 -0
- package/build/ui/validationUtils.js.map +1 -0
- package/build/ui/visitor.d.ts +13 -1
- package/build/ui/visitor.d.ts.map +1 -1
- package/build/ui/visitor.js +259 -213
- package/build/ui/visitor.js.map +1 -1
- package/package.json +15 -9
- package/resource/package.nls.cs.json +30 -56
- package/resource/package.nls.de.json +30 -56
- package/resource/package.nls.es.json +30 -56
- package/resource/package.nls.fr.json +30 -56
- package/resource/package.nls.it.json +30 -56
- package/resource/package.nls.ja.json +30 -56
- package/resource/package.nls.json +57 -19
- package/resource/package.nls.ko.json +30 -56
- package/resource/package.nls.pl.json +30 -56
- package/resource/package.nls.pt-BR.json +31 -57
- package/resource/package.nls.ru.json +34 -60
- package/resource/package.nls.tr.json +31 -57
- package/resource/package.nls.zh-Hans.json +31 -57
- package/resource/package.nls.zh-Hant.json +30 -56
- package/resource/package.nls.zh-cn.json +232 -712
- package/resource/package.nls.zh-tw.json +230 -710
- package/resource/yaml-schema/v1.2/yaml.schema.json +1474 -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/ts.zip +0 -0
- package/templates/plugins/resource/aad/auth/V3/Tab/GetUserProfile.razor +1 -2
- package/templates/plugins/resource/aad/auth/bot/README.md +281 -263
- package/templates/plugins/resource/aad/auth/bot/js/sso/handleMessageExtensionQueryWithToken.js +13 -3
- package/templates/plugins/resource/aad/auth/bot/js/sso/profileSsoCommandHandler.js +14 -5
- package/templates/plugins/resource/aad/auth/bot/ts/sso/handleMessageExtensionQueryWithToken.ts +11 -3
- package/templates/plugins/resource/aad/auth/bot/ts/sso/profileSsoCommandHandler.ts +12 -3
- package/templates/plugins/resource/aad/auth/tab/csharp/GetUserProfile.razor +1 -2
- package/build/component/configManager/diagnostic.d.ts +0 -9
- package/build/component/configManager/diagnostic.d.ts.map +0 -1
- package/build/component/configManager/diagnostic.js +0 -47
- package/build/component/configManager/diagnostic.js.map +0 -1
- package/build/component/driver/middleware/updateProgress.d.ts +0 -6
- package/build/component/driver/middleware/updateProgress.d.ts.map +0 -1
- package/build/component/driver/middleware/updateProgress.js +0 -15
- package/build/component/driver/middleware/updateProgress.js.map +0 -1
- package/build/component/generator/officeAddin/question.d.ts +0 -10
- package/build/component/generator/officeAddin/question.d.ts.map +0 -1
- package/build/component/generator/officeAddin/question.js +0 -118
- package/build/component/generator/officeAddin/question.js.map +0 -1
- package/build/core/FxCoreImplementV3.d.ts +0 -43
- package/build/core/FxCoreImplementV3.d.ts.map +0 -1
- package/build/core/FxCoreImplementV3.js +0 -653
- package/build/core/FxCoreImplementV3.js.map +0 -1
- package/templates/plugins/resource/apim/README.md +0 -92
package/templates/plugins/resource/aad/auth/bot/js/sso/handleMessageExtensionQueryWithToken.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
const { TeamsActivityHandler, CardFactory } = require("botbuilder");
|
|
2
2
|
const {
|
|
3
3
|
handleMessageExtensionQueryWithSSO,
|
|
4
|
-
createMicrosoftGraphClientWithCredential,
|
|
5
4
|
OnBehalfOfUserCredential,
|
|
6
5
|
} = require("@microsoft/teamsfx");
|
|
6
|
+
const { Client } = require("@microsoft/microsoft-graph-client");
|
|
7
|
+
const {
|
|
8
|
+
TokenCredentialAuthenticationProvider,
|
|
9
|
+
} = require("@microsoft/microsoft-graph-client/authProviders/azureTokenCredentials");
|
|
7
10
|
require("isomorphic-fetch");
|
|
8
11
|
|
|
9
12
|
const oboAuthConfig = {
|
|
@@ -37,8 +40,15 @@ class TeamsBot extends TeamsActivityHandler {
|
|
|
37
40
|
// Init OnBehalfOfUserCredential instance with SSO token
|
|
38
41
|
const credential = new OnBehalfOfUserCredential(token.ssoToken, oboAuthConfig);
|
|
39
42
|
|
|
40
|
-
//
|
|
41
|
-
const
|
|
43
|
+
// Create an instance of the TokenCredentialAuthenticationProvider by passing the tokenCredential instance and options to the constructor
|
|
44
|
+
const authProvider = new TokenCredentialAuthenticationProvider(credential, {
|
|
45
|
+
scopes: ["User.Read"],
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
// Initialize Graph client instance with authProvider
|
|
49
|
+
const graphClient = Client.initWithMiddleware({
|
|
50
|
+
authProvider: authProvider,
|
|
51
|
+
});
|
|
42
52
|
|
|
43
53
|
// Call graph api use `graph` instance to get user profile information.
|
|
44
54
|
const profile = await graphClient.api("/me").get();
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
const { OnBehalfOfUserCredential } = require("@microsoft/teamsfx");
|
|
2
|
+
const { Client } = require("@microsoft/microsoft-graph-client");
|
|
1
3
|
const {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} = require("@microsoft/teamsfx");
|
|
4
|
+
TokenCredentialAuthenticationProvider,
|
|
5
|
+
} = require("@microsoft/microsoft-graph-client/authProviders/azureTokenCredentials");
|
|
5
6
|
require("isomorphic-fetch");
|
|
6
7
|
|
|
7
8
|
const oboAuthConfig = {
|
|
@@ -19,8 +20,16 @@ class ProfileSsoCommandHandler {
|
|
|
19
20
|
|
|
20
21
|
// Init OnBehalfOfUserCredential instance with SSO token
|
|
21
22
|
const oboCredential = new OnBehalfOfUserCredential(tokenResponse.ssoToken, oboAuthConfig);
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
|
|
24
|
+
// Create an instance of the TokenCredentialAuthenticationProvider by passing the tokenCredential instance and options to the constructor
|
|
25
|
+
const authProvider = new TokenCredentialAuthenticationProvider(oboCredential, {
|
|
26
|
+
scopes: ["User.Read"],
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
// Initialize Graph client instance with authProvider
|
|
30
|
+
const graphClient = Client.initWithMiddleware({
|
|
31
|
+
authProvider: authProvider,
|
|
32
|
+
});
|
|
24
33
|
|
|
25
34
|
// Call graph api use `graph` instance to get user profile information
|
|
26
35
|
const me = await graphClient.api("/me").get();
|
package/templates/plugins/resource/aad/auth/bot/ts/sso/handleMessageExtensionQueryWithToken.ts
CHANGED
|
@@ -4,8 +4,9 @@ import {
|
|
|
4
4
|
handleMessageExtensionQueryWithSSO,
|
|
5
5
|
OnBehalfOfCredentialAuthConfig,
|
|
6
6
|
OnBehalfOfUserCredential,
|
|
7
|
-
createMicrosoftGraphClientWithCredential,
|
|
8
7
|
} from "@microsoft/teamsfx";
|
|
8
|
+
import { Client } from "@microsoft/microsoft-graph-client";
|
|
9
|
+
import { TokenCredentialAuthenticationProvider } from "@microsoft/microsoft-graph-client/authProviders/azureTokenCredentials";
|
|
9
10
|
import "isomorphic-fetch";
|
|
10
11
|
|
|
11
12
|
const oboAuthConfig: OnBehalfOfCredentialAuthConfig = {
|
|
@@ -40,8 +41,15 @@ export class TeamsBot extends TeamsActivityHandler {
|
|
|
40
41
|
// Init OnBehalfOfUserCredential instance with SSO token
|
|
41
42
|
const credential = new OnBehalfOfUserCredential(token.ssoToken, oboAuthConfig);
|
|
42
43
|
|
|
43
|
-
//
|
|
44
|
-
const
|
|
44
|
+
// Create an instance of the TokenCredentialAuthenticationProvider by passing the tokenCredential instance and options to the constructor
|
|
45
|
+
const authProvider = new TokenCredentialAuthenticationProvider(credential, {
|
|
46
|
+
scopes: ["User.Read"],
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
// Initialize Graph client instance with authProvider
|
|
50
|
+
const graphClient = Client.initWithMiddleware({
|
|
51
|
+
authProvider: authProvider,
|
|
52
|
+
});
|
|
45
53
|
|
|
46
54
|
// Call graph api use `graph` instance to get user profile information.
|
|
47
55
|
const profile = await graphClient.api("/me").get();
|
|
@@ -5,9 +5,10 @@ import {
|
|
|
5
5
|
TeamsFxBotSsoCommandHandler,
|
|
6
6
|
TeamsBotSsoPromptTokenResponse,
|
|
7
7
|
OnBehalfOfUserCredential,
|
|
8
|
-
createMicrosoftGraphClientWithCredential,
|
|
9
8
|
OnBehalfOfCredentialAuthConfig,
|
|
10
9
|
} from "@microsoft/teamsfx";
|
|
10
|
+
import { Client } from "@microsoft/microsoft-graph-client";
|
|
11
|
+
import { TokenCredentialAuthenticationProvider } from "@microsoft/microsoft-graph-client/authProviders/azureTokenCredentials";
|
|
11
12
|
import "isomorphic-fetch";
|
|
12
13
|
|
|
13
14
|
const oboAuthConfig: OnBehalfOfCredentialAuthConfig = {
|
|
@@ -29,8 +30,16 @@ export class ProfileSsoCommandHandler implements TeamsFxBotSsoCommandHandler {
|
|
|
29
30
|
|
|
30
31
|
// Init OnBehalfOfUserCredential instance with SSO token
|
|
31
32
|
const oboCredential = new OnBehalfOfUserCredential(tokenResponse.ssoToken, oboAuthConfig);
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
|
|
34
|
+
// Create an instance of the TokenCredentialAuthenticationProvider by passing the tokenCredential instance and options to the constructor
|
|
35
|
+
const authProvider = new TokenCredentialAuthenticationProvider(oboCredential, {
|
|
36
|
+
scopes: ["User.Read"],
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
// Initialize Graph client instance with authProvider
|
|
40
|
+
const graphClient = Client.initWithMiddleware({
|
|
41
|
+
authProvider: authProvider,
|
|
42
|
+
});
|
|
34
43
|
|
|
35
44
|
// Call graph api use `graph` instance to get user profile information
|
|
36
45
|
const me = await graphClient.api("/me").get();
|
|
@@ -91,8 +91,7 @@
|
|
|
91
91
|
|
|
92
92
|
private GraphServiceClient GetGraphServiceClient()
|
|
93
93
|
{
|
|
94
|
-
var
|
|
95
|
-
var client = new GraphServiceClient(msGraphAuthProvider);
|
|
94
|
+
var client = new GraphServiceClient(teamsUserCredential, new string[] { _scope });
|
|
96
95
|
return client;
|
|
97
96
|
}
|
|
98
97
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare class YAMLDiagnostics {
|
|
2
|
-
private readonly schemaPath;
|
|
3
|
-
private readonly schemaString;
|
|
4
|
-
private validator;
|
|
5
|
-
private cache;
|
|
6
|
-
constructor(schemaPath: string, schemaString: string);
|
|
7
|
-
doValidation(yamlPath: string, yamlString: string): Promise<string>;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=diagnostic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"diagnostic.d.ts","sourceRoot":"","sources":["../../../src/component/configManager/diagnostic.ts"],"names":[],"mappings":"AAkBA,qBAAa,eAAe;IAId,OAAO,CAAC,QAAQ,CAAC,UAAU;IAAU,OAAO,CAAC,QAAQ,CAAC,YAAY;IAH9E,OAAO,CAAC,SAAS,CAAiB;IAClC,OAAO,CAAC,KAAK,CAAgC;gBAEhB,UAAU,EAAE,MAAM,EAAmB,YAAY,EAAE,MAAM;IAkBzE,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAYjF"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.YAMLDiagnostics = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* @author yefuwang@microsoft.com
|
|
6
|
-
*/
|
|
7
|
-
const yamlValidation_1 = require("yaml-language-server/lib/umd/languageservice/services/yamlValidation");
|
|
8
|
-
const yamlSchemaService_1 = require("yaml-language-server/lib/umd/languageservice/services/yamlSchemaService");
|
|
9
|
-
const vscode_languageserver_textdocument_1 = require("vscode-languageserver-textdocument");
|
|
10
|
-
// A telemetry class that does nothing, used to initialize YAMLValidation below.
|
|
11
|
-
class DummyTelemetry {
|
|
12
|
-
send() { }
|
|
13
|
-
sendError() { }
|
|
14
|
-
sendTrack() { }
|
|
15
|
-
}
|
|
16
|
-
class YAMLDiagnostics {
|
|
17
|
-
constructor(schemaPath, schemaString) {
|
|
18
|
-
this.schemaPath = schemaPath;
|
|
19
|
-
this.schemaString = schemaString;
|
|
20
|
-
const schemaService = new yamlSchemaService_1.YAMLSchemaService(async () => {
|
|
21
|
-
return this.schemaString;
|
|
22
|
-
});
|
|
23
|
-
schemaService.registerExternalSchema(schemaPath, ["*teamsapp.*yml"]);
|
|
24
|
-
this.validator = new yamlValidation_1.YAMLValidation(schemaService, new DummyTelemetry());
|
|
25
|
-
this.validator.configure({
|
|
26
|
-
validate: true,
|
|
27
|
-
yamlVersion: "1.2",
|
|
28
|
-
disableAdditionalProperties: true,
|
|
29
|
-
customTags: [],
|
|
30
|
-
});
|
|
31
|
-
this.cache = new Map();
|
|
32
|
-
}
|
|
33
|
-
async doValidation(yamlPath, yamlString) {
|
|
34
|
-
var _a;
|
|
35
|
-
const [cachedYamlString, cachedVersion] = (_a = this.cache.get(yamlPath)) !== null && _a !== void 0 ? _a : [yamlString, 0];
|
|
36
|
-
const version = yamlString === cachedYamlString ? cachedVersion : cachedVersion + 1;
|
|
37
|
-
// Need to bump version to work around the internal cache of yaml language server
|
|
38
|
-
const textDocument = vscode_languageserver_textdocument_1.TextDocument.create(`file://${yamlPath}`, "yaml", version, yamlString);
|
|
39
|
-
this.cache.set(yamlPath, [yamlString, version]);
|
|
40
|
-
const diagnostics = await this.validator.doValidation(textDocument, false);
|
|
41
|
-
return diagnostics
|
|
42
|
-
.map((diag) => `[line ${diag.range.start.line + 1}] ${diag.message}`)
|
|
43
|
-
.join(" ");
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
exports.YAMLDiagnostics = YAMLDiagnostics;
|
|
47
|
-
//# sourceMappingURL=diagnostic.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"diagnostic.js","sourceRoot":"","sources":["../../../src/component/configManager/diagnostic.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,yGAAsG;AACtG,+GAA4G;AAC5G,2FAAkE;AAGlE,gFAAgF;AAChF,MAAM,cAAc;IAClB,IAAI,KAAU,CAAC;IACf,SAAS,KAAU,CAAC;IACpB,SAAS,KAAU,CAAC;CACrB;AAKD,MAAa,eAAe;IAI1B,YAA6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,CAAC,CAAC;QAC3E,OAAO,WAAW;aACf,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,KAAK,IAAI,CAAC,OAAO,EAAE,CAAC;aACpE,IAAI,CAAC,GAAG,CAAC,CAAC;IACf,CAAC;CACF;AAlCD,0CAkCC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateProgress.d.ts","sourceRoot":"","sources":["../../../../src/component/driver/middleware/updateProgress.ts"],"names":[],"mappings":"AAGA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAA6B,MAAM,uBAAuB,CAAC;AAG9E,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,UAAU,CAM5D"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.updateProgress = void 0;
|
|
6
|
-
function updateProgress(eventName) {
|
|
7
|
-
return async (ctx, next) => {
|
|
8
|
-
var _a;
|
|
9
|
-
const driverContext = ctx.arguments[1];
|
|
10
|
-
await ((_a = driverContext.progressBar) === null || _a === void 0 ? void 0 : _a.next(eventName));
|
|
11
|
-
await next();
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
exports.updateProgress = updateProgress;
|
|
15
|
-
//# sourceMappingURL=updateProgress.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateProgress.js","sourceRoot":"","sources":["../../../../src/component/driver/middleware/updateProgress.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AASlC,SAAgB,cAAc,CAAC,SAAiB;IAC9C,OAAO,KAAK,EAAE,GAAgB,EAAE,IAAkB,EAAE,EAAE;;QACpD,MAAM,aAAa,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC,CAAsB,CAAC;QAC5D,MAAM,CAAA,MAAA,aAAa,CAAC,WAAW,0CAAE,IAAI,CAAC,SAAS,CAAC,CAAA,CAAC;QACjD,MAAM,IAAI,EAAE,CAAC;IACf,CAAC,CAAC;AACJ,CAAC;AAND,wCAMC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FolderQuestion, Inputs, OptionItem, QTreeNode, SingleFileQuestion, SingleSelectQuestion } from "@microsoft/teamsfx-api";
|
|
2
|
-
export declare const OfficeAddinItems: () => OptionItem[];
|
|
3
|
-
export declare function ImportAddinProjectItem(): OptionItem;
|
|
4
|
-
export declare const AddinLanguageQuestion: SingleSelectQuestion;
|
|
5
|
-
export declare const OfficeHostQuestion: SingleSelectQuestion;
|
|
6
|
-
export declare const AddinProjectFolderQuestion: FolderQuestion;
|
|
7
|
-
export declare const AddinProjectManifestQuestion: SingleFileQuestion;
|
|
8
|
-
export declare const getTemplate: (inputs: Inputs) => string;
|
|
9
|
-
export declare const getQuestionsForScaffolding: () => QTreeNode;
|
|
10
|
-
//# sourceMappingURL=question.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/component/generator/officeAddin/question.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,MAAM,EACN,UAAU,EACV,SAAS,EACT,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAQhC,eAAO,MAAM,gBAAgB,EAAE,MAAM,UAAU,EAQ1C,CAAC;AAGN,wBAAgB,sBAAsB,IAAI,UAAU,CAUnD;AAWD,eAAO,MAAM,qBAAqB,EAAE,oBAiBnC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,oBAoBhC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,cAIxC,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,kBAI1C,CAAC;AAEF,eAAO,MAAM,WAAW,WAAY,MAAM,KAAG,MAS5C,CAAC;AAEF,eAAO,MAAM,0BAA0B,QAAO,SAyB7C,CAAC"}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getQuestionsForScaffolding = exports.getTemplate = exports.AddinProjectManifestQuestion = exports.AddinProjectFolderQuestion = exports.OfficeHostQuestion = exports.AddinLanguageQuestion = exports.ImportAddinProjectItem = exports.OfficeAddinItems = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
6
|
-
const localizeUtils_1 = require("../../../common/localizeUtils");
|
|
7
|
-
const constants_1 = require("../../constants");
|
|
8
|
-
const projectsJsonData_1 = tslib_1.__importDefault(require("./config/projectsJsonData"));
|
|
9
|
-
const jsonData = new projectsJsonData_1.default();
|
|
10
|
-
const OfficeAddinItems = () => jsonData.getProjectTemplateNames().map((template) => ({
|
|
11
|
-
id: template,
|
|
12
|
-
label: localizeUtils_1.getLocalizedString(jsonData.getProjectDisplayName(template)),
|
|
13
|
-
detail: localizeUtils_1.getLocalizedString(jsonData.getProjectDetails(template)),
|
|
14
|
-
description: localizeUtils_1.getLocalizedString("core.createProjectQuestion.option.description.previewOnWindow"),
|
|
15
|
-
}));
|
|
16
|
-
exports.OfficeAddinItems = OfficeAddinItems;
|
|
17
|
-
// TODO: add localization strings
|
|
18
|
-
function ImportAddinProjectItem() {
|
|
19
|
-
return {
|
|
20
|
-
id: "import-addin-project",
|
|
21
|
-
label: localizeUtils_1.getLocalizedString("core.importAddin.label"),
|
|
22
|
-
cliName: "import",
|
|
23
|
-
detail: localizeUtils_1.getLocalizedString("core.importAddin.detail"),
|
|
24
|
-
description: localizeUtils_1.getLocalizedString("core.createProjectQuestion.option.description.previewOnWindow"),
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
exports.ImportAddinProjectItem = ImportAddinProjectItem;
|
|
28
|
-
var QuestionName;
|
|
29
|
-
(function (QuestionName) {
|
|
30
|
-
QuestionName["AddinLanguageQuestion"] = "addin-language";
|
|
31
|
-
QuestionName["AddinNameQuestion"] = "addin-name";
|
|
32
|
-
QuestionName["AddinProjectFolderQuestion"] = "addin-project-folder";
|
|
33
|
-
QuestionName["AddinProjectManifestQuestion"] = "addin-project-manifest";
|
|
34
|
-
QuestionName["AddinTemplateSelectQuestion"] = "addin-template-select";
|
|
35
|
-
QuestionName["OfficeHostQuestion"] = "addin-host";
|
|
36
|
-
})(QuestionName || (QuestionName = {}));
|
|
37
|
-
exports.AddinLanguageQuestion = {
|
|
38
|
-
type: "singleSelect",
|
|
39
|
-
name: QuestionName.AddinLanguageQuestion,
|
|
40
|
-
title: "Add-in Language",
|
|
41
|
-
staticOptions: [],
|
|
42
|
-
dynamicOptions: async (inputs) => {
|
|
43
|
-
const template = exports.getTemplate(inputs);
|
|
44
|
-
const supportedTypes = jsonData.getSupportedScriptTypes(template);
|
|
45
|
-
const options = supportedTypes.map((language) => ({ label: language, id: language }));
|
|
46
|
-
return options.length > 0 ? options : [{ label: "No Options", id: "No Options" }];
|
|
47
|
-
},
|
|
48
|
-
default: async (inputs) => {
|
|
49
|
-
const template = exports.getTemplate(inputs);
|
|
50
|
-
const options = jsonData.getSupportedScriptTypes(template);
|
|
51
|
-
return options[0] || "No Options";
|
|
52
|
-
},
|
|
53
|
-
skipSingleOption: true,
|
|
54
|
-
};
|
|
55
|
-
exports.OfficeHostQuestion = {
|
|
56
|
-
type: "singleSelect",
|
|
57
|
-
name: QuestionName.OfficeHostQuestion,
|
|
58
|
-
title: "Add-in Host",
|
|
59
|
-
staticOptions: [],
|
|
60
|
-
dynamicOptions: async (inputs) => {
|
|
61
|
-
const template = exports.getTemplate(inputs);
|
|
62
|
-
const getHostTemplateNames = jsonData.getHostTemplateNames(template);
|
|
63
|
-
const options = getHostTemplateNames.map((host) => ({
|
|
64
|
-
label: jsonData.getHostDisplayName(host),
|
|
65
|
-
id: host,
|
|
66
|
-
}));
|
|
67
|
-
return options.length > 0 ? options : [{ label: "No Options", id: "No Options" }];
|
|
68
|
-
},
|
|
69
|
-
default: async (inputs) => {
|
|
70
|
-
const template = exports.getTemplate(inputs);
|
|
71
|
-
const options = jsonData.getHostTemplateNames(template);
|
|
72
|
-
return options[0] || "No Options";
|
|
73
|
-
},
|
|
74
|
-
skipSingleOption: true,
|
|
75
|
-
};
|
|
76
|
-
exports.AddinProjectFolderQuestion = {
|
|
77
|
-
type: "folder",
|
|
78
|
-
name: QuestionName.AddinProjectFolderQuestion,
|
|
79
|
-
title: "Existing add-in project folder",
|
|
80
|
-
};
|
|
81
|
-
exports.AddinProjectManifestQuestion = {
|
|
82
|
-
type: "singleFile",
|
|
83
|
-
name: QuestionName.AddinProjectManifestQuestion,
|
|
84
|
-
title: "Select import project manifest file",
|
|
85
|
-
};
|
|
86
|
-
const getTemplate = (inputs) => {
|
|
87
|
-
const capabilities = inputs["capabilities"];
|
|
88
|
-
const templates = jsonData.getProjectTemplateNames();
|
|
89
|
-
const foundTemplate = templates.find((template) => {
|
|
90
|
-
return capabilities.includes(template);
|
|
91
|
-
});
|
|
92
|
-
return foundTemplate !== null && foundTemplate !== void 0 ? foundTemplate : "";
|
|
93
|
-
};
|
|
94
|
-
exports.getTemplate = getTemplate;
|
|
95
|
-
const getQuestionsForScaffolding = () => {
|
|
96
|
-
const importNode = new teamsfx_api_1.QTreeNode({ type: "group" });
|
|
97
|
-
importNode.condition = (inputs) => inputs[constants_1.AzureSolutionQuestionNames.Capabilities] === ImportAddinProjectItem().id;
|
|
98
|
-
importNode.addChild(new teamsfx_api_1.QTreeNode(exports.AddinProjectFolderQuestion));
|
|
99
|
-
importNode.addChild(new teamsfx_api_1.QTreeNode(exports.AddinProjectManifestQuestion));
|
|
100
|
-
const templateNode = new teamsfx_api_1.QTreeNode({ type: "group" });
|
|
101
|
-
templateNode.condition = (inputs) => {
|
|
102
|
-
const cap = inputs[constants_1.AzureSolutionQuestionNames.Capabilities];
|
|
103
|
-
const addinOptionIds = [
|
|
104
|
-
...exports.OfficeAddinItems().map((item) => {
|
|
105
|
-
return item.id;
|
|
106
|
-
}),
|
|
107
|
-
];
|
|
108
|
-
return addinOptionIds.includes(cap);
|
|
109
|
-
};
|
|
110
|
-
templateNode.addChild(new teamsfx_api_1.QTreeNode(exports.AddinLanguageQuestion));
|
|
111
|
-
templateNode.addChild(new teamsfx_api_1.QTreeNode(exports.OfficeHostQuestion));
|
|
112
|
-
const root = new teamsfx_api_1.QTreeNode({ type: "group" });
|
|
113
|
-
root.addChild(importNode);
|
|
114
|
-
root.addChild(templateNode);
|
|
115
|
-
return root;
|
|
116
|
-
};
|
|
117
|
-
exports.getQuestionsForScaffolding = getQuestionsForScaffolding;
|
|
118
|
-
//# sourceMappingURL=question.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"question.js","sourceRoot":"","sources":["../../../../src/component/generator/officeAddin/question.ts"],"names":[],"mappings":";;;;AAAA,wDAOgC;AAEhC,iEAAmE;AACnE,+CAA6D;AAC7D,yFAAyD;AAEzD,MAAM,QAAQ,GAAG,IAAI,0BAAgB,EAAE,CAAC;AAEjC,MAAM,gBAAgB,GAAuB,GAAG,EAAE,CACvD,QAAQ,CAAC,uBAAuB,EAAE,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;IACpD,EAAE,EAAE,QAAQ;IACZ,KAAK,EAAE,kCAAkB,CAAC,QAAQ,CAAC,qBAAqB,CAAC,QAAQ,CAAC,CAAC;IACnE,MAAM,EAAE,kCAAkB,CAAC,QAAQ,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IAChE,WAAW,EAAE,kCAAkB,CAC7B,+DAA+D,CAChE;CACF,CAAC,CAAC,CAAC;AARO,QAAA,gBAAgB,oBAQvB;AAEN,iCAAiC;AACjC,SAAgB,sBAAsB;IACpC,OAAO;QACL,EAAE,EAAE,sBAA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gBACjC,OAAO,IAAI,CAAC,EAAE,CAAC;YACjB,CAAC,CAAC;SACH,CAAC;QACF,OAAO,cAAc,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IACtC,CAAC,CAAC;IACF,YAAY,CAAC,QAAQ,CAAC,IAAI,uBAAS,CAAC,6BAAqB,CAAC,CAAC,CAAC;IAC5D,YAAY,CAAC,QAAQ,CAAC,IAAI,uBAAS,CAAC,0BAAkB,CAAC,CAAC,CAAC;IAEzD,MAAM,IAAI,GAAG,IAAI,uBAAS,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;IAC9C,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAC1B,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;IAE5B,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAzBW,QAAA,0BAA0B,8BAyBrC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Func, FxError, Inputs, InputsWithProjectPath, Result, Tools, Void } from "@microsoft/teamsfx-api";
|
|
2
|
-
import { DotenvParseOutput } from "dotenv";
|
|
3
|
-
import "../component/driver/index";
|
|
4
|
-
import { CoreHookContext, PreProvisionResForVS, VersionCheckRes } from "./types";
|
|
5
|
-
export declare class FxCoreV3Implement {
|
|
6
|
-
tools: Tools;
|
|
7
|
-
isFromSample?: boolean;
|
|
8
|
-
settingsVersion?: string;
|
|
9
|
-
constructor(tools: Tools);
|
|
10
|
-
dispatch<Inputs, ExecuteRes>(exec: (inputs: Inputs) => Promise<ExecuteRes>, inputs: Inputs): Promise<ExecuteRes>;
|
|
11
|
-
dispatchUserTask<Inputs, ExecuteRes>(exec: (func: Func, inputs: Inputs) => Promise<ExecuteRes>, func: Func, inputs: Inputs): Promise<ExecuteRes>;
|
|
12
|
-
createProject(inputs: Inputs): Promise<Result<string, FxError>>;
|
|
13
|
-
provisionResources(inputs: Inputs, ctx?: CoreHookContext): Promise<Result<Void, FxError>>;
|
|
14
|
-
deployArtifacts(inputs: Inputs, ctx?: CoreHookContext): Promise<Result<Void, FxError>>;
|
|
15
|
-
deployAadManifest(inputs: Inputs): Promise<Result<Void, FxError>>;
|
|
16
|
-
publishApplication(inputs: Inputs, ctx?: CoreHookContext): Promise<Result<Void, FxError>>;
|
|
17
|
-
deployTeamsManifest(inputs: Inputs, ctx?: CoreHookContext): Promise<Result<Void, FxError>>;
|
|
18
|
-
executeUserTask(func: Func, inputs: Inputs): Promise<Result<any, FxError>>;
|
|
19
|
-
addWebpart(inputs: Inputs): Promise<Result<Void, FxError>>;
|
|
20
|
-
publishInDeveloperPortal(inputs: Inputs): Promise<Result<Void, FxError>>;
|
|
21
|
-
grantPermission(inputs: Inputs): Promise<Result<any, FxError>>;
|
|
22
|
-
checkPermission(inputs: Inputs): Promise<Result<any, FxError>>;
|
|
23
|
-
listCollaborator(inputs: Inputs): Promise<Result<any, FxError>>;
|
|
24
|
-
/**
|
|
25
|
-
* get all dot envs
|
|
26
|
-
*/
|
|
27
|
-
getDotEnvs(inputs: InputsWithProjectPath): Promise<Result<{
|
|
28
|
-
[name: string]: DotenvParseOutput;
|
|
29
|
-
}, FxError>>;
|
|
30
|
-
phantomMigrationV3(inputs: Inputs): Promise<Result<Void, FxError>>;
|
|
31
|
-
innerMigrationV3(inputs: Inputs): Promise<Result<Void, FxError>>;
|
|
32
|
-
projectVersionCheck(inputs: Inputs): Promise<Result<VersionCheckRes, FxError>>;
|
|
33
|
-
preProvisionForVS(inputs: Inputs): Promise<Result<PreProvisionResForVS, FxError>>;
|
|
34
|
-
preCheckYmlAndEnvForVS(inputs: Inputs): Promise<Result<Void, FxError>>;
|
|
35
|
-
createEnv(inputs: Inputs): Promise<Result<Void, FxError>>;
|
|
36
|
-
createEnvCopyV3(targetEnvName: string, sourceEnvName: string, projectPath: string): Promise<Result<Void, FxError>>;
|
|
37
|
-
buildAadManifest(inputs: Inputs): Promise<Result<Void, FxError>>;
|
|
38
|
-
validateManifest(inputs: Inputs): Promise<Result<any, FxError>>;
|
|
39
|
-
validateAppPackage(inputs: Inputs): Promise<Result<any, FxError>>;
|
|
40
|
-
createAppPackage(inputs: Inputs): Promise<Result<any, FxError>>;
|
|
41
|
-
previewWithManifest(inputs: Inputs): Promise<Result<string, FxError>>;
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=FxCoreImplementV3.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FxCoreImplementV3.d.ts","sourceRoot":"","sources":["../../src/core/FxCoreImplementV3.ts"],"names":[],"mappings":"AAIA,OAAO,EAGL,IAAI,EACJ,OAAO,EACP,MAAM,EACN,qBAAqB,EAErB,MAAM,EAEN,KAAK,EACL,IAAI,EAGL,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAwB3C,OAAO,2BAA2B,CAAC;AAuCnC,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAEjF,qBAAa,iBAAiB;IAC5B,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;gBAEb,KAAK,EAAE,KAAK;IAIlB,QAAQ,CAAC,MAAM,EAAE,UAAU,EAC/B,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,CAAC,EAC7C,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,UAAU,CAAC;IAShB,gBAAgB,CAAC,MAAM,EAAE,UAAU,EACvC,IAAI,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,CAAC,EACzD,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,UAAU,CAAC;IAUhB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM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