@microsoft/teamsfx-core 2.0.5 → 2.0.6-alpha.1e1beaa82.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/constants.d.ts +3 -0
- package/build/common/constants.d.ts.map +1 -1
- package/build/common/constants.js +3 -0
- package/build/common/constants.js.map +1 -1
- 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/constant/message.d.ts +2 -0
- package/build/common/deps-checker/constant/message.d.ts.map +1 -1
- package/build/common/deps-checker/constant/message.js +2 -0
- package/build/common/deps-checker/constant/message.js.map +1 -1
- package/build/common/deps-checker/constant/telemetry.d.ts +12 -1
- package/build/common/deps-checker/constant/telemetry.d.ts.map +1 -1
- package/build/common/deps-checker/constant/telemetry.js +11 -0
- package/build/common/deps-checker/constant/telemetry.js.map +1 -1
- package/build/common/deps-checker/depsChecker.d.ts +7 -1
- package/build/common/deps-checker/depsChecker.d.ts.map +1 -1
- package/build/common/deps-checker/depsChecker.js +1 -0
- package/build/common/deps-checker/depsChecker.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 +40 -35
- package/build/common/deps-checker/internal/dotnetChecker.js.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.js +3 -3
- package/build/common/deps-checker/internal/nodeChecker.js.map +1 -1
- package/build/common/deps-checker/internal/testToolChecker.d.ts +45 -0
- package/build/common/deps-checker/internal/testToolChecker.d.ts.map +1 -0
- package/build/common/deps-checker/internal/testToolChecker.js +359 -0
- package/build/common/deps-checker/internal/testToolChecker.js.map +1 -0
- 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 +4 -4
- package/build/common/deps-checker/util/cpUtils.js.map +1 -1
- package/build/common/deps-checker/util/fileHelper.d.ts +1 -0
- package/build/common/deps-checker/util/fileHelper.d.ts.map +1 -1
- package/build/common/deps-checker/util/fileHelper.js +9 -1
- 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 +2 -0
- package/build/common/featureFlags.d.ts.map +1 -1
- package/build/common/featureFlags.js +11 -2
- package/build/common/featureFlags.js.map +1 -1
- package/build/common/jsonUtils.d.ts.map +1 -1
- package/build/common/jsonUtils.js +1 -5
- package/build/common/jsonUtils.js.map +1 -1
- package/build/common/local/constants.d.ts +10 -0
- package/build/common/local/constants.d.ts.map +1 -1
- package/build/common/local/constants.js +12 -2
- package/build/common/local/constants.js.map +1 -1
- package/build/common/local/localCertificateManager.d.ts.map +1 -1
- package/build/common/local/localCertificateManager.js +3 -0
- package/build/common/local/localCertificateManager.js.map +1 -1
- package/build/common/local/localEnvManager.d.ts +1 -0
- package/build/common/local/localEnvManager.d.ts.map +1 -1
- package/build/common/local/localEnvManager.js +21 -0
- package/build/common/local/localEnvManager.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 +1 -1
- package/build/common/m365/launchHelper.d.ts.map +1 -1
- package/build/common/m365/launchHelper.js +20 -2
- package/build/common/m365/launchHelper.js.map +1 -1
- package/build/common/m365/packageService.d.ts +4 -0
- package/build/common/m365/packageService.d.ts.map +1 -1
- package/build/common/m365/packageService.js +135 -19
- 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.d.ts +9 -2
- package/build/common/samples.d.ts.map +1 -1
- package/build/common/samples.js +67 -22
- package/build/common/samples.js.map +1 -1
- package/build/common/spec-parser/adaptiveCardGenerator.d.ts +2 -1
- package/build/common/spec-parser/adaptiveCardGenerator.d.ts.map +1 -1
- package/build/common/spec-parser/adaptiveCardGenerator.js +61 -34
- package/build/common/spec-parser/adaptiveCardGenerator.js.map +1 -1
- package/build/common/spec-parser/adaptiveCardWrapper.d.ts +15 -0
- package/build/common/spec-parser/adaptiveCardWrapper.d.ts.map +1 -0
- package/build/common/spec-parser/adaptiveCardWrapper.js +92 -0
- package/build/common/spec-parser/adaptiveCardWrapper.js.map +1 -0
- package/build/common/spec-parser/constants.d.ts +22 -10
- package/build/common/spec-parser/constants.d.ts.map +1 -1
- package/build/common/spec-parser/constants.js +71 -10
- package/build/common/spec-parser/constants.js.map +1 -1
- package/build/common/spec-parser/interfaces.d.ts +36 -23
- package/build/common/spec-parser/interfaces.d.ts.map +1 -1
- package/build/common/spec-parser/interfaces.js +13 -2
- package/build/common/spec-parser/interfaces.js.map +1 -1
- package/build/common/spec-parser/manifestUpdater.d.ts +5 -3
- package/build/common/spec-parser/manifestUpdater.d.ts.map +1 -1
- package/build/common/spec-parser/manifestUpdater.js +132 -47
- package/build/common/spec-parser/manifestUpdater.js.map +1 -1
- package/build/common/spec-parser/specFilter.d.ts +1 -1
- package/build/common/spec-parser/specFilter.d.ts.map +1 -1
- package/build/common/spec-parser/specFilter.js +28 -35
- package/build/common/spec-parser/specFilter.js.map +1 -1
- package/build/common/spec-parser/specParser.d.ts +8 -2
- package/build/common/spec-parser/specParser.d.ts.map +1 -1
- package/build/common/spec-parser/specParser.js +158 -110
- package/build/common/spec-parser/specParser.js.map +1 -1
- package/build/common/spec-parser/utils.d.ts +23 -0
- package/build/common/spec-parser/utils.d.ts.map +1 -1
- package/build/common/spec-parser/utils.js +265 -21
- package/build/common/spec-parser/utils.js.map +1 -1
- package/build/common/telemetry.d.ts +11 -4
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +47 -8
- package/build/common/telemetry.js.map +1 -1
- package/build/common/templates-config.json +3 -3
- package/build/common/tools.d.ts +1 -0
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +11 -1
- package/build/common/tools.js.map +1 -1
- package/build/common/versionMetadata.d.ts +1 -0
- package/build/common/versionMetadata.d.ts.map +1 -1
- package/build/common/versionMetadata.js +1 -0
- package/build/common/versionMetadata.js.map +1 -1
- package/build/component/configManager/interface.d.ts +0 -1
- package/build/component/configManager/interface.d.ts.map +1 -1
- package/build/component/configManager/lifecycle.d.ts +1 -3
- package/build/component/configManager/lifecycle.d.ts.map +1 -1
- package/build/component/configManager/lifecycle.js +23 -51
- package/build/component/configManager/lifecycle.js.map +1 -1
- package/build/component/configManager/parser.js.map +1 -1
- package/build/component/configManager/validator.d.ts.map +1 -1
- package/build/component/configManager/validator.js +4 -3
- package/build/component/configManager/validator.js.map +1 -1
- package/build/component/constants.d.ts +6 -0
- package/build/component/constants.d.ts.map +1 -1
- package/build/component/constants.js +7 -1
- package/build/component/constants.js.map +1 -1
- package/build/component/coordinator/index.d.ts +8 -6
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +64 -65
- 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 +2 -1
- package/build/component/coordinator/summary.js.map +1 -1
- package/build/component/developerPortalScaffoldUtils.js +3 -3
- package/build/component/developerPortalScaffoldUtils.js.map +1 -1
- package/build/component/driver/aad/create.d.ts +1 -2
- package/build/component/driver/aad/create.d.ts.map +1 -1
- package/build/component/driver/aad/create.js +9 -12
- package/build/component/driver/aad/create.js.map +1 -1
- package/build/component/driver/aad/error/aadAppNameTooLongError.d.ts +5 -0
- package/build/component/driver/aad/error/aadAppNameTooLongError.d.ts.map +1 -0
- package/build/component/driver/aad/error/aadAppNameTooLongError.js +21 -0
- package/build/component/driver/aad/error/aadAppNameTooLongError.js.map +1 -0
- package/build/component/driver/aad/update.d.ts +1 -2
- package/build/component/driver/aad/update.d.ts.map +1 -1
- package/build/component/driver/aad/update.js +5 -12
- package/build/component/driver/aad/update.js.map +1 -1
- package/build/component/driver/aad/utility/aadAppClient.d.ts +11 -3
- package/build/component/driver/aad/utility/aadAppClient.d.ts.map +1 -1
- package/build/component/driver/aad/utility/aadAppClient.js +49 -8
- package/build/component/driver/aad/utility/aadAppClient.js.map +1 -1
- package/build/component/driver/add/addWebPart.d.ts.map +1 -1
- package/build/component/driver/add/addWebPart.js +9 -0
- package/build/component/driver/add/addWebPart.js.map +1 -1
- package/build/component/driver/arm/deploy.d.ts +1 -3
- package/build/component/driver/arm/deploy.d.ts.map +1 -1
- package/build/component/driver/arm/deploy.js +1 -14
- 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 +12 -0
- package/build/component/driver/arm/deployImpl.js.map +1 -1
- package/build/component/driver/arm/util/bicepChecker.js +7 -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/botAadApp/create.d.ts +2 -1
- package/build/component/driver/botAadApp/create.d.ts.map +1 -1
- package/build/component/driver/botAadApp/create.js +10 -9
- 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 +4 -10
- package/build/component/driver/botFramework/createOrUpdateBot.js.map +1 -1
- package/build/component/driver/deploy/azure/azureAppServiceDeployDriver.d.ts +0 -2
- package/build/component/driver/deploy/azure/azureAppServiceDeployDriver.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/azureAppServiceDeployDriver.js +0 -10
- package/build/component/driver/deploy/azure/azureAppServiceDeployDriver.js.map +1 -1
- package/build/component/driver/deploy/azure/azureFunctionDeployDriver.d.ts +0 -2
- package/build/component/driver/deploy/azure/azureFunctionDeployDriver.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/azureFunctionDeployDriver.js +0 -10
- package/build/component/driver/deploy/azure/azureFunctionDeployDriver.js.map +1 -1
- package/build/component/driver/deploy/azure/azureStorageDeployDriver.d.ts +0 -2
- package/build/component/driver/deploy/azure/azureStorageDeployDriver.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/azureStorageDeployDriver.js +17 -19
- 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 +10 -3
- 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 +29 -16
- 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 +27 -16
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.js.map +1 -1
- package/build/component/driver/deploy/azure/impl/baseDeployImpl.d.ts.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 +24 -2
- package/build/component/driver/deploy/spfx/deployDriver.js.map +1 -1
- package/build/component/driver/devTool/constant.d.ts +2 -0
- package/build/component/driver/devTool/constant.d.ts.map +1 -1
- package/build/component/driver/devTool/constant.js +4 -0
- package/build/component/driver/devTool/constant.js.map +1 -1
- package/build/component/driver/devTool/error/testToolInstallationUserError.d.ts +5 -0
- package/build/component/driver/devTool/error/testToolInstallationUserError.d.ts.map +1 -0
- package/build/component/driver/devTool/error/testToolInstallationUserError.js +24 -0
- package/build/component/driver/devTool/error/testToolInstallationUserError.js.map +1 -0
- package/build/component/driver/devTool/installDriver.d.ts +2 -0
- package/build/component/driver/devTool/installDriver.d.ts.map +1 -1
- package/build/component/driver/devTool/installDriver.js +85 -14
- package/build/component/driver/devTool/installDriver.js.map +1 -1
- package/build/component/driver/devTool/interfaces/InstallToolArgs.d.ts +8 -0
- package/build/component/driver/devTool/interfaces/InstallToolArgs.d.ts.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 +10 -16
- 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 +3 -9
- package/build/component/driver/file/createOrUpdateJsonFile.js.map +1 -1
- package/build/component/driver/interface/stepDriver.d.ts +2 -7
- 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 +4 -10
- 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/baseBuildStepDriver.d.ts +0 -2
- package/build/component/driver/script/baseBuildStepDriver.d.ts.map +1 -1
- package/build/component/driver/script/baseBuildStepDriver.js +0 -4
- package/build/component/driver/script/baseBuildStepDriver.js.map +1 -1
- package/build/component/driver/script/dotnetBuildDriver.d.ts +0 -2
- package/build/component/driver/script/dotnetBuildDriver.d.ts.map +1 -1
- package/build/component/driver/script/dotnetBuildDriver.js +0 -9
- package/build/component/driver/script/dotnetBuildDriver.js.map +1 -1
- package/build/component/driver/script/npmBuildDriver.d.ts +0 -2
- package/build/component/driver/script/npmBuildDriver.d.ts.map +1 -1
- package/build/component/driver/script/npmBuildDriver.js +0 -9
- package/build/component/driver/script/npmBuildDriver.js.map +1 -1
- package/build/component/driver/script/npxBuildDriver.d.ts +0 -2
- package/build/component/driver/script/npxBuildDriver.d.ts.map +1 -1
- package/build/component/driver/script/npxBuildDriver.js +0 -9
- package/build/component/driver/script/npxBuildDriver.js.map +1 -1
- package/build/component/driver/script/scriptDriver.d.ts +10 -1
- package/build/component/driver/script/scriptDriver.d.ts.map +1 -1
- package/build/component/driver/script/scriptDriver.js +30 -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 +11 -8
- package/build/component/driver/teamsApp/appStudio.js.map +1 -1
- package/build/component/driver/teamsApp/clients/appStudioClient.d.ts +11 -5
- package/build/component/driver/teamsApp/clients/appStudioClient.d.ts.map +1 -1
- package/build/component/driver/teamsApp/clients/appStudioClient.js +62 -21
- package/build/component/driver/teamsApp/clients/appStudioClient.js.map +1 -1
- package/build/component/driver/teamsApp/clients/authSvcClient.d.ts.map +1 -1
- package/build/component/driver/teamsApp/clients/authSvcClient.js +2 -0
- package/build/component/driver/teamsApp/clients/authSvcClient.js.map +1 -1
- package/build/component/driver/teamsApp/configure.d.ts +1 -1
- package/build/component/driver/teamsApp/configure.d.ts.map +1 -1
- package/build/component/driver/teamsApp/configure.js +3 -11
- package/build/component/driver/teamsApp/configure.js.map +1 -1
- package/build/component/driver/teamsApp/copyAppPackageToSPFx.d.ts +1 -2
- package/build/component/driver/teamsApp/copyAppPackageToSPFx.d.ts.map +1 -1
- package/build/component/driver/teamsApp/copyAppPackageToSPFx.js +4 -11
- package/build/component/driver/teamsApp/copyAppPackageToSPFx.js.map +1 -1
- package/build/component/driver/teamsApp/create.d.ts +1 -1
- package/build/component/driver/teamsApp/create.d.ts.map +1 -1
- package/build/component/driver/teamsApp/create.js +6 -11
- package/build/component/driver/teamsApp/create.js.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.d.ts +4 -3
- package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.js +53 -43
- package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/errors.d.ts +4 -4
- package/build/component/driver/teamsApp/errors.d.ts.map +1 -1
- package/build/component/driver/teamsApp/errors.js +9 -7
- package/build/component/driver/teamsApp/errors.js.map +1 -1
- package/build/component/driver/teamsApp/interfaces/appdefinitions/messagingExtension.d.ts +2 -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 -1
- package/build/component/driver/teamsApp/publishAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.js +5 -13
- package/build/component/driver/teamsApp/publishAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts +2 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.js +22 -4
- package/build/component/driver/teamsApp/utils/ManifestUtils.js.map +1 -1
- package/build/component/driver/teamsApp/utils/telemetry.d.ts +1 -0
- package/build/component/driver/teamsApp/utils/telemetry.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/telemetry.js +1 -0
- package/build/component/driver/teamsApp/utils/telemetry.js.map +1 -1
- package/build/component/driver/teamsApp/utils/utils.d.ts +2 -2
- package/build/component/driver/teamsApp/utils/utils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/utils.js +22 -10
- package/build/component/driver/teamsApp/utils/utils.js.map +1 -1
- package/build/component/driver/teamsApp/validate.d.ts +1 -1
- package/build/component/driver/teamsApp/validate.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validate.js +18 -13
- package/build/component/driver/teamsApp/validate.js.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.d.ts +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.js +6 -11
- package/build/component/driver/teamsApp/validateAppPackage.js.map +1 -1
- package/build/component/error/componentError.d.ts.map +1 -1
- package/build/component/error/componentError.js +6 -3
- package/build/component/error/componentError.js.map +1 -1
- package/build/component/feature/collaboration.d.ts +2 -2
- package/build/component/feature/collaboration.d.ts.map +1 -1
- package/build/component/feature/collaboration.js +35 -16
- package/build/component/feature/collaboration.js.map +1 -1
- package/build/component/generator/copilotPlugin/generator.d.ts +3 -1
- package/build/component/generator/copilotPlugin/generator.d.ts.map +1 -1
- package/build/component/generator/copilotPlugin/generator.js +73 -20
- package/build/component/generator/copilotPlugin/generator.js.map +1 -1
- package/build/component/generator/copilotPlugin/helper.d.ts +8 -3
- package/build/component/generator/copilotPlugin/helper.d.ts.map +1 -1
- package/build/component/generator/copilotPlugin/helper.js +129 -50
- package/build/component/generator/copilotPlugin/helper.js.map +1 -1
- package/build/component/generator/error.d.ts +6 -0
- package/build/component/generator/error.d.ts.map +1 -1
- package/build/component/generator/error.js +13 -1
- 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 +30 -19
- package/build/component/generator/generator.js.map +1 -1
- package/build/component/generator/generatorAction.d.ts +2 -1
- package/build/component/generator/generatorAction.d.ts.map +1 -1
- package/build/component/generator/generatorAction.js +8 -2
- package/build/component/generator/generatorAction.js.map +1 -1
- package/build/component/generator/officeAddin/generator.js +3 -3
- 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 +6 -2
- package/build/component/generator/officeAddin/helperMethods.js.map +1 -1
- package/build/component/generator/spfx/depsChecker/generatorChecker.d.ts.map +1 -1
- package/build/component/generator/spfx/depsChecker/generatorChecker.js +4 -2
- package/build/component/generator/spfx/depsChecker/generatorChecker.js.map +1 -1
- package/build/component/generator/spfx/depsChecker/yoChecker.d.ts.map +1 -1
- package/build/component/generator/spfx/depsChecker/yoChecker.js +3 -3
- package/build/component/generator/spfx/depsChecker/yoChecker.js.map +1 -1
- package/build/component/generator/spfx/spfxGenerator.d.ts.map +1 -1
- package/build/component/generator/spfx/spfxGenerator.js +2 -2
- package/build/component/generator/spfx/spfxGenerator.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 +2 -2
- package/build/component/generator/utils.d.ts.map +1 -1
- package/build/component/generator/utils.js +13 -13
- 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/actionExecutionMW.d.ts +2 -2
- package/build/component/middleware/actionExecutionMW.d.ts.map +1 -1
- package/build/component/middleware/envMW.js +3 -3
- package/build/component/middleware/envMW.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/resource/botService/appStudio/appStudioClient.d.ts.map +1 -1
- package/build/component/resource/botService/appStudio/appStudioClient.js +49 -16
- package/build/component/resource/botService/appStudio/appStudioClient.js.map +1 -1
- package/build/component/resource/botService/botRegistration/botFrameworkRegistration.d.ts +2 -2
- package/build/component/resource/botService/botRegistration/botFrameworkRegistration.d.ts.map +1 -1
- package/build/component/resource/botService/botRegistration/botFrameworkRegistration.js +6 -1
- package/build/component/resource/botService/botRegistration/botFrameworkRegistration.js.map +1 -1
- package/build/component/telemetry.js +2 -2
- 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 +11 -9
- package/build/component/utils/ResourceGroupHelper.js.map +1 -1
- package/build/component/utils/charsetUtils.js +3 -3
- package/build/component/utils/charsetUtils.js.map +1 -1
- package/build/component/utils/common.js +1 -1
- package/build/component/utils/common.js.map +1 -1
- package/build/component/utils/depsChecker/cpUtils.d.ts.map +1 -1
- package/build/component/utils/depsChecker/cpUtils.js +8 -4
- 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 +9 -5
- package/build/component/utils/envUtil.js.map +1 -1
- package/build/component/utils/pathUtils.d.ts.map +1 -1
- package/build/component/utils/pathUtils.js +9 -4
- package/build/component/utils/pathUtils.js.map +1 -1
- package/build/component/utils/teamsFxTelemetryReporter.js +2 -2
- package/build/component/utils/teamsFxTelemetryReporter.js.map +1 -1
- package/build/core/FxCore.d.ts +38 -34
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.js +843 -66
- package/build/core/FxCore.js.map +1 -1
- package/build/core/collaborator.js +3 -3
- package/build/core/collaborator.js.map +1 -1
- package/build/core/environment.d.ts +2 -9
- package/build/core/environment.d.ts.map +1 -1
- package/build/core/environment.js +17 -13
- package/build/core/environment.js.map +1 -1
- package/build/core/environmentName.d.ts +18 -0
- package/build/core/environmentName.d.ts.map +1 -0
- package/build/core/environmentName.js +35 -0
- package/build/core/environmentName.js.map +1 -0
- 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/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/projectMigratorV3.d.ts.map +1 -1
- package/build/core/middleware/projectMigratorV3.js.map +1 -1
- package/build/core/middleware/projectVersionChecker.js +5 -5
- package/build/core/middleware/projectVersionChecker.js.map +1 -1
- package/build/core/middleware/utils/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/taskMigrator.d.ts.map +1 -1
- package/build/core/middleware/utils/debug/taskMigrator.js +3 -0
- package/build/core/middleware/utils/debug/taskMigrator.js.map +1 -1
- package/build/core/middleware/utils/v3MigrationUtils.js +1 -1
- package/build/core/middleware/utils/v3MigrationUtils.js.map +1 -1
- package/build/core/telemetry.d.ts +1 -0
- package/build/core/telemetry.d.ts.map +1 -1
- package/build/core/telemetry.js +3 -3
- package/build/core/telemetry.js.map +1 -1
- package/build/error/arm.d.ts.map +1 -1
- package/build/error/arm.js +10 -0
- package/build/error/arm.js.map +1 -1
- package/build/error/azure.d.ts +5 -5
- package/build/error/azure.d.ts.map +1 -1
- package/build/error/azure.js +21 -5
- package/build/error/azure.js.map +1 -1
- package/build/error/common.d.ts +8 -11
- package/build/error/common.d.ts.map +1 -1
- package/build/error/common.js +67 -53
- package/build/error/common.js.map +1 -1
- package/build/error/deploy.d.ts +1 -1
- package/build/error/deploy.d.ts.map +1 -1
- package/build/error/deploy.js +21 -2
- package/build/error/deploy.js.map +1 -1
- package/build/error/m365.d.ts.map +1 -1
- package/build/error/m365.js +4 -0
- 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 +7 -2
- package/build/error/script.js.map +1 -1
- package/build/error/teamsApp.d.ts +8 -0
- package/build/error/teamsApp.d.ts.map +1 -0
- package/build/error/teamsApp.js +35 -0
- package/build/error/teamsApp.js.map +1 -0
- package/build/error/types.d.ts +6 -0
- package/build/error/types.d.ts.map +1 -0
- package/build/error/types.js +12 -0
- package/build/error/types.js.map +1 -0
- package/build/error/yml.d.ts.map +1 -1
- package/build/error/yml.js +6 -0
- package/build/error/yml.js.map +1 -1
- package/build/index.d.ts +4 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +5 -1
- package/build/index.js.map +1 -1
- package/build/question/constants.d.ts +4 -2
- package/build/question/constants.d.ts.map +1 -1
- package/build/question/constants.js +9 -3
- package/build/question/constants.js.map +1 -1
- package/build/question/create.d.ts +25 -8
- package/build/question/create.d.ts.map +1 -1
- package/build/question/create.js +215 -178
- package/build/question/create.js.map +1 -1
- package/build/question/generator.d.ts +2 -1
- package/build/question/generator.d.ts.map +1 -1
- package/build/question/generator.js +156 -61
- package/build/question/generator.js.map +1 -1
- package/build/question/index.d.ts +1 -0
- package/build/question/index.d.ts.map +1 -1
- package/build/question/index.js +1 -0
- package/build/question/index.js.map +1 -1
- package/build/question/inputs/CreateProjectInputs.d.ts +9 -7
- package/build/question/inputs/CreateProjectInputs.d.ts.map +1 -1
- package/build/question/inputs/CreateSampleProjectInputs.d.ts +1 -1
- package/build/question/inputs/CreateSampleProjectInputs.d.ts.map +1 -1
- package/build/question/inputs/SPFxAddWebpartInputs.d.ts +1 -1
- package/build/question/inputs/SPFxAddWebpartInputs.d.ts.map +1 -1
- package/build/question/options/CreateProjectOptions.d.ts.map +1 -1
- package/build/question/options/CreateProjectOptions.js +37 -25
- package/build/question/options/CreateProjectOptions.js.map +1 -1
- package/build/question/options/CreateSampleProjectOptions.d.ts.map +1 -1
- package/build/question/options/CreateSampleProjectOptions.js +13 -2
- package/build/question/options/CreateSampleProjectOptions.js.map +1 -1
- package/build/question/options/DeployAadManifestOptions.d.ts.map +1 -1
- package/build/question/options/DeployAadManifestOptions.js +3 -2
- package/build/question/options/DeployAadManifestOptions.js.map +1 -1
- package/build/question/options/PermissionGrantOptions.d.ts.map +1 -1
- package/build/question/options/PermissionGrantOptions.js +6 -4
- package/build/question/options/PermissionGrantOptions.js.map +1 -1
- package/build/question/options/PermissionListOptions.d.ts.map +1 -1
- package/build/question/options/PermissionListOptions.js +6 -4
- package/build/question/options/PermissionListOptions.js.map +1 -1
- package/build/question/options/PreviewTeamsAppOptions.d.ts.map +1 -1
- package/build/question/options/PreviewTeamsAppOptions.js +4 -3
- package/build/question/options/PreviewTeamsAppOptions.js.map +1 -1
- package/build/question/options/SPFxAddWebpartOptions.d.ts.map +1 -1
- package/build/question/options/SPFxAddWebpartOptions.js +9 -6
- package/build/question/options/SPFxAddWebpartOptions.js.map +1 -1
- package/build/question/options/SelectTeamsManifestOptions.d.ts.map +1 -1
- package/build/question/options/SelectTeamsManifestOptions.js +3 -2
- package/build/question/options/SelectTeamsManifestOptions.js.map +1 -1
- package/build/question/options/ValidateTeamsAppOptions.d.ts.map +1 -1
- package/build/question/options/ValidateTeamsAppOptions.js +5 -4
- package/build/question/options/ValidateTeamsAppOptions.js.map +1 -1
- package/build/question/other.d.ts +2 -0
- package/build/question/other.d.ts.map +1 -1
- package/build/question/other.js +71 -41
- package/build/question/other.js.map +1 -1
- package/build/question/questionNames.d.ts +5 -3
- package/build/question/questionNames.d.ts.map +1 -1
- package/build/question/questionNames.js +7 -4
- package/build/question/questionNames.js.map +1 -1
- package/build/ui/validationUtils.d.ts +23 -4
- package/build/ui/validationUtils.d.ts.map +1 -1
- package/build/ui/validationUtils.js +229 -16
- package/build/ui/validationUtils.js.map +1 -1
- package/build/ui/visitor.d.ts +1 -0
- package/build/ui/visitor.d.ts.map +1 -1
- package/build/ui/visitor.js +79 -166
- package/build/ui/visitor.js.map +1 -1
- package/package.json +16 -14
- package/resource/package.nls.cs.json +83 -23
- package/resource/package.nls.de.json +81 -21
- package/resource/package.nls.es.json +83 -23
- package/resource/package.nls.fr.json +82 -22
- package/resource/package.nls.it.json +82 -22
- package/resource/package.nls.ja.json +83 -23
- package/resource/package.nls.json +49 -20
- package/resource/package.nls.ko.json +82 -22
- package/resource/package.nls.pl.json +83 -23
- package/resource/package.nls.pt-BR.json +84 -24
- package/resource/package.nls.ru.json +84 -24
- package/resource/package.nls.tr.json +82 -22
- package/resource/package.nls.zh-Hans.json +82 -22
- package/resource/package.nls.zh-Hant.json +82 -22
- package/resource/package.nls.zh-cn.json +82 -22
- package/resource/package.nls.zh-tw.json +82 -22
- package/resource/yaml-schema/v1.3/yaml.schema.json +1500 -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/tab/csharp/GetUserProfile.razor +1 -2
- package/build/common/samples-config-v3.json +0 -446
- 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/core/FxCoreImplementV3.d.ts +0 -49
- package/build/core/FxCoreImplementV3.d.ts.map +0 -1
- package/build/core/FxCoreImplementV3.js +0 -717
- package/build/core/FxCoreImplementV3.js.map +0 -1
|
@@ -1,717 +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.FxCoreV3Implement = void 0;
|
|
6
|
-
const tslib_1 = require("tslib");
|
|
7
|
-
const hooks_1 = require("@feathersjs/hooks");
|
|
8
|
-
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
9
|
-
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
10
|
-
const os = tslib_1.__importStar(require("os"));
|
|
11
|
-
const path = tslib_1.__importStar(require("path"));
|
|
12
|
-
const typedi_1 = require("typedi");
|
|
13
|
-
const url_1 = require("url");
|
|
14
|
-
const constants_1 = require("../common/constants");
|
|
15
|
-
const localizeUtils_1 = require("../common/localizeUtils");
|
|
16
|
-
const launchHelper_1 = require("../common/m365/launchHelper");
|
|
17
|
-
const projectSettingsHelper_1 = require("../common/projectSettingsHelper");
|
|
18
|
-
const specParser_1 = require("../common/spec-parser/specParser");
|
|
19
|
-
const versionMetadata_1 = require("../common/versionMetadata");
|
|
20
|
-
const constants_2 = require("../component/constants");
|
|
21
|
-
const coordinator_1 = require("../component/coordinator");
|
|
22
|
-
const buildAadManifest_1 = require("../component/driver/aad/utility/buildAadManifest");
|
|
23
|
-
require("../component/driver/index");
|
|
24
|
-
const appStudio_1 = require("../component/driver/teamsApp/appStudio");
|
|
25
|
-
const ManifestUtils_1 = require("../component/driver/teamsApp/utils/ManifestUtils");
|
|
26
|
-
const utils_1 = require("../component/driver/teamsApp/utils/utils");
|
|
27
|
-
const helper_1 = require("../component/generator/copilotPlugin/helper");
|
|
28
|
-
const envMW_1 = require("../component/middleware/envMW");
|
|
29
|
-
const questionMW_1 = require("../component/middleware/questionMW");
|
|
30
|
-
const utils_2 = require("../component/utils");
|
|
31
|
-
const envUtil_1 = require("../component/utils/envUtil");
|
|
32
|
-
const pathUtils_1 = require("../component/utils/pathUtils");
|
|
33
|
-
const common_1 = require("../error/common");
|
|
34
|
-
const upgrade_1 = require("../error/upgrade");
|
|
35
|
-
const yml_1 = require("../error/yml");
|
|
36
|
-
const create_1 = require("../question/create");
|
|
37
|
-
const other_1 = require("../question/other");
|
|
38
|
-
const questionNames_1 = require("../question/questionNames");
|
|
39
|
-
const collaborator_1 = require("./collaborator");
|
|
40
|
-
const error_1 = require("./error");
|
|
41
|
-
const globalVars_1 = require("./globalVars");
|
|
42
|
-
const concurrentLocker_1 = require("./middleware/concurrentLocker");
|
|
43
|
-
const contextInjector_1 = require("./middleware/contextInjector");
|
|
44
|
-
const errorHandler_1 = require("./middleware/errorHandler");
|
|
45
|
-
const projectMigratorV3_1 = require("./middleware/projectMigratorV3");
|
|
46
|
-
const v3MigrationUtils_1 = require("./middleware/utils/v3MigrationUtils");
|
|
47
|
-
const telemetry_1 = require("./telemetry");
|
|
48
|
-
class FxCoreV3Implement {
|
|
49
|
-
constructor(tools) {
|
|
50
|
-
this.tools = tools;
|
|
51
|
-
}
|
|
52
|
-
async dispatch(exec, inputs) {
|
|
53
|
-
const methodName = exec.name;
|
|
54
|
-
if (!this[methodName]) {
|
|
55
|
-
throw new Error("no implement");
|
|
56
|
-
}
|
|
57
|
-
const method = this[methodName];
|
|
58
|
-
return await method.call(this, inputs);
|
|
59
|
-
}
|
|
60
|
-
async dispatchUserTask(exec, func, inputs) {
|
|
61
|
-
const methodName = exec.name;
|
|
62
|
-
if (!this[methodName]) {
|
|
63
|
-
throw new Error("no implement");
|
|
64
|
-
}
|
|
65
|
-
const method = this[methodName];
|
|
66
|
-
return await method.call(this, func, inputs);
|
|
67
|
-
}
|
|
68
|
-
async createProject(inputs) {
|
|
69
|
-
const context = utils_2.createContextV3();
|
|
70
|
-
inputs[questionNames_1.QuestionNames.Scratch] = create_1.ScratchOptions.yes().id;
|
|
71
|
-
if (inputs.teamsAppFromTdp) {
|
|
72
|
-
// should never happen as we do same check on Developer Portal.
|
|
73
|
-
if (utils_1.containsUnsupportedFeature(inputs.teamsAppFromTdp)) {
|
|
74
|
-
return teamsfx_api_1.err(error_1.InvalidInputError("Teams app contains unsupported features"));
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
context.telemetryReporter.sendTelemetryEvent(telemetry_1.CoreTelemetryEvent.CreateFromTdpStart, {
|
|
78
|
-
[telemetry_1.CoreTelemetryProperty.TdpTeamsAppFeatures]: utils_1.getFeaturesFromAppDefinition(inputs.teamsAppFromTdp).join(","),
|
|
79
|
-
[telemetry_1.CoreTelemetryProperty.TdpTeamsAppId]: inputs.teamsAppFromTdp.teamsAppId,
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
const res = await coordinator_1.coordinator.create(context, inputs);
|
|
84
|
-
inputs.projectPath = context.projectPath;
|
|
85
|
-
return res;
|
|
86
|
-
}
|
|
87
|
-
async createSampleProject(inputs) {
|
|
88
|
-
const context = utils_2.createContextV3();
|
|
89
|
-
inputs[questionNames_1.QuestionNames.Scratch] = create_1.ScratchOptions.no().id;
|
|
90
|
-
const res = await coordinator_1.coordinator.create(context, inputs);
|
|
91
|
-
inputs.projectPath = context.projectPath;
|
|
92
|
-
return res;
|
|
93
|
-
}
|
|
94
|
-
async provisionResources(inputs, ctx) {
|
|
95
|
-
inputs.stage = teamsfx_api_1.Stage.provision;
|
|
96
|
-
const context = utils_2.createDriverContext(inputs);
|
|
97
|
-
try {
|
|
98
|
-
const res = await coordinator_1.coordinator.provision(context, inputs);
|
|
99
|
-
if (res.isOk()) {
|
|
100
|
-
ctx.envVars = res.value;
|
|
101
|
-
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
102
|
-
}
|
|
103
|
-
else {
|
|
104
|
-
// for partial success scenario, output is set in inputs object
|
|
105
|
-
ctx.envVars = inputs.envVars;
|
|
106
|
-
return teamsfx_api_1.err(res.error);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
finally {
|
|
110
|
-
//reset subscription
|
|
111
|
-
try {
|
|
112
|
-
await globalVars_1.TOOLS.tokenProvider.azureAccountProvider.setSubscription("");
|
|
113
|
-
}
|
|
114
|
-
catch (e) { }
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
async deployArtifacts(inputs, ctx) {
|
|
118
|
-
inputs.stage = teamsfx_api_1.Stage.deploy;
|
|
119
|
-
const context = utils_2.createDriverContext(inputs);
|
|
120
|
-
const res = await coordinator_1.coordinator.deploy(context, inputs);
|
|
121
|
-
if (res.isOk()) {
|
|
122
|
-
ctx.envVars = res.value;
|
|
123
|
-
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
124
|
-
}
|
|
125
|
-
else {
|
|
126
|
-
// for partial success scenario, output is set in inputs object
|
|
127
|
-
ctx.envVars = inputs.envVars;
|
|
128
|
-
return teamsfx_api_1.err(res.error);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
async deployAadManifest(inputs) {
|
|
132
|
-
inputs.stage = teamsfx_api_1.Stage.deployAad;
|
|
133
|
-
const updateAadClient = typedi_1.Container.get("aadApp/update");
|
|
134
|
-
// In V3, the aad.template.json exist at .fx folder, and output to root build folder.
|
|
135
|
-
const manifestTemplatePath = inputs[questionNames_1.QuestionNames.AadAppManifestFilePath];
|
|
136
|
-
if (!(await fs_extra_1.default.pathExists(manifestTemplatePath))) {
|
|
137
|
-
return teamsfx_api_1.err(new common_1.FileNotFoundError("deployAadManifest", manifestTemplatePath));
|
|
138
|
-
}
|
|
139
|
-
let manifestOutputPath = manifestTemplatePath;
|
|
140
|
-
if (inputs.env && (await other_1.isAadMainifestContainsPlaceholder(inputs))) {
|
|
141
|
-
await fs_extra_1.default.ensureDir(path.join(inputs.projectPath, "build"));
|
|
142
|
-
manifestOutputPath = path.join(inputs.projectPath, "build", `aad.manifest.${inputs.env}.json`);
|
|
143
|
-
}
|
|
144
|
-
const inputArgs = {
|
|
145
|
-
manifestPath: manifestTemplatePath,
|
|
146
|
-
outputFilePath: manifestOutputPath,
|
|
147
|
-
};
|
|
148
|
-
const Context = utils_2.createDriverContext(inputs);
|
|
149
|
-
const res = await updateAadClient.run(inputArgs, Context);
|
|
150
|
-
if (res.isErr()) {
|
|
151
|
-
return teamsfx_api_1.err(res.error);
|
|
152
|
-
}
|
|
153
|
-
if (Context.platform === teamsfx_api_1.Platform.CLI) {
|
|
154
|
-
const msg = localizeUtils_1.getLocalizedString("core.deploy.aadManifestOnCLISuccessNotice");
|
|
155
|
-
Context.ui.showMessage("info", msg, false);
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
const msg = localizeUtils_1.getLocalizedString("core.deploy.aadManifestSuccessNotice");
|
|
159
|
-
Context.ui.showMessage("info", msg, false, localizeUtils_1.getLocalizedString("core.deploy.aadManifestLearnMore")).then((result) => {
|
|
160
|
-
const userSelected = result.isOk() ? result.value : undefined;
|
|
161
|
-
if (userSelected === localizeUtils_1.getLocalizedString("core.deploy.aadManifestLearnMore")) {
|
|
162
|
-
Context.ui.openUrl(constants_2.ViewAadAppHelpLinkV5);
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
167
|
-
}
|
|
168
|
-
async publishApplication(inputs, ctx) {
|
|
169
|
-
inputs.stage = teamsfx_api_1.Stage.publish;
|
|
170
|
-
const context = utils_2.createDriverContext(inputs);
|
|
171
|
-
const res = await coordinator_1.coordinator.publish(context, inputs);
|
|
172
|
-
if (res.isOk()) {
|
|
173
|
-
ctx.envVars = res.value;
|
|
174
|
-
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
175
|
-
}
|
|
176
|
-
else {
|
|
177
|
-
// for partial success scenario, output is set in inputs object
|
|
178
|
-
ctx.envVars = inputs.envVars;
|
|
179
|
-
return teamsfx_api_1.err(res.error);
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
async deployTeamsManifest(inputs, ctx) {
|
|
183
|
-
inputs.manifestTemplatePath = inputs[questionNames_1.QuestionNames.TeamsAppManifestFilePath];
|
|
184
|
-
const context = utils_2.createContextV3();
|
|
185
|
-
const res = await appStudio_1.updateManifestV3(context, inputs);
|
|
186
|
-
if (res.isOk()) {
|
|
187
|
-
ctx.envVars = envUtil_1.envUtil.map2object(res.value);
|
|
188
|
-
}
|
|
189
|
-
return res;
|
|
190
|
-
}
|
|
191
|
-
async executeUserTask(func, inputs) {
|
|
192
|
-
let res = teamsfx_api_1.ok(undefined);
|
|
193
|
-
const context = utils_2.createDriverContext(inputs);
|
|
194
|
-
if (func.method === "addSso") {
|
|
195
|
-
// used in v3 only in VS
|
|
196
|
-
inputs.stage = teamsfx_api_1.Stage.addFeature;
|
|
197
|
-
inputs[questionNames_1.QuestionNames.Features] = constants_2.SingleSignOnOptionItem.id;
|
|
198
|
-
const component = typedi_1.Container.get("sso");
|
|
199
|
-
res = await component.add(context, inputs);
|
|
200
|
-
}
|
|
201
|
-
return res;
|
|
202
|
-
}
|
|
203
|
-
async addWebpart(inputs) {
|
|
204
|
-
const driver = typedi_1.Container.get("spfx/add");
|
|
205
|
-
const args = {
|
|
206
|
-
manifestPath: inputs[constants_2.SPFxQuestionNames.ManifestPath],
|
|
207
|
-
localManifestPath: inputs[constants_2.SPFxQuestionNames.LocalManifestPath],
|
|
208
|
-
spfxFolder: inputs[constants_2.SPFxQuestionNames.SPFxFolder],
|
|
209
|
-
webpartName: inputs[constants_2.SPFxQuestionNames.WebPartName],
|
|
210
|
-
spfxPackage: create_1.SPFxVersionOptionIds.installLocally,
|
|
211
|
-
};
|
|
212
|
-
const Context = utils_2.createDriverContext(inputs);
|
|
213
|
-
return await driver.run(args, Context);
|
|
214
|
-
}
|
|
215
|
-
async publishInDeveloperPortal(inputs) {
|
|
216
|
-
inputs.stage = teamsfx_api_1.Stage.publishInDeveloperPortal;
|
|
217
|
-
const context = utils_2.createContextV3();
|
|
218
|
-
return await coordinator_1.coordinator.publishInDeveloperPortal(context, inputs);
|
|
219
|
-
}
|
|
220
|
-
async grantPermission(inputs) {
|
|
221
|
-
inputs.stage = teamsfx_api_1.Stage.grantPermission;
|
|
222
|
-
const context = utils_2.createContextV3();
|
|
223
|
-
const res = await collaborator_1.grantPermission(context, inputs, globalVars_1.TOOLS.tokenProvider);
|
|
224
|
-
return res;
|
|
225
|
-
}
|
|
226
|
-
async checkPermission(inputs) {
|
|
227
|
-
inputs.stage = teamsfx_api_1.Stage.checkPermission;
|
|
228
|
-
const context = utils_2.createContextV3();
|
|
229
|
-
const res = await collaborator_1.checkPermission(context, inputs, globalVars_1.TOOLS.tokenProvider);
|
|
230
|
-
return res;
|
|
231
|
-
}
|
|
232
|
-
async listCollaborator(inputs) {
|
|
233
|
-
inputs.stage = teamsfx_api_1.Stage.listCollaborator;
|
|
234
|
-
const context = utils_2.createContextV3();
|
|
235
|
-
const res = await collaborator_1.listCollaborator(context, inputs, globalVars_1.TOOLS.tokenProvider);
|
|
236
|
-
return res;
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* get all dot envs
|
|
240
|
-
*/
|
|
241
|
-
async getDotEnvs(inputs) {
|
|
242
|
-
const envListRes = await envUtil_1.envUtil.listEnv(inputs.projectPath);
|
|
243
|
-
if (envListRes.isErr()) {
|
|
244
|
-
return teamsfx_api_1.err(envListRes.error);
|
|
245
|
-
}
|
|
246
|
-
const res = {};
|
|
247
|
-
for (const env of envListRes.value) {
|
|
248
|
-
const envRes = await envUtil_1.envUtil.readEnv(inputs.projectPath, env, false, false);
|
|
249
|
-
if (envRes.isErr()) {
|
|
250
|
-
return teamsfx_api_1.err(envRes.error);
|
|
251
|
-
}
|
|
252
|
-
res[env] = envRes.value;
|
|
253
|
-
}
|
|
254
|
-
return teamsfx_api_1.ok(res);
|
|
255
|
-
}
|
|
256
|
-
async phantomMigrationV3(inputs) {
|
|
257
|
-
// If the project is invalid or upgraded, the ProjectMigratorMWV3 will not take action.
|
|
258
|
-
// Check invaliad/upgraded project here before call ProjectMigratorMWV3
|
|
259
|
-
const projectPath = inputs.projectPath || "";
|
|
260
|
-
const version = await v3MigrationUtils_1.getProjectVersionFromPath(projectPath);
|
|
261
|
-
if (version.source === versionMetadata_1.VersionSource.teamsapp) {
|
|
262
|
-
return teamsfx_api_1.err(new upgrade_1.NoNeedUpgradeError());
|
|
263
|
-
}
|
|
264
|
-
else if (version.source === versionMetadata_1.VersionSource.projectSettings) {
|
|
265
|
-
const isValid = await projectMigratorV3_1.checkActiveResourcePlugins(projectPath);
|
|
266
|
-
if (!isValid) {
|
|
267
|
-
return teamsfx_api_1.err(new common_1.InvalidProjectError());
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
if (version.source === versionMetadata_1.VersionSource.unknown) {
|
|
271
|
-
return teamsfx_api_1.err(new common_1.InvalidProjectError());
|
|
272
|
-
}
|
|
273
|
-
return await this.innerMigrationV3(inputs);
|
|
274
|
-
}
|
|
275
|
-
async innerMigrationV3(inputs) {
|
|
276
|
-
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
277
|
-
}
|
|
278
|
-
async projectVersionCheck(inputs) {
|
|
279
|
-
const projectPath = inputs.projectPath || "";
|
|
280
|
-
if (projectSettingsHelper_1.isValidProjectV3(projectPath) || projectSettingsHelper_1.isValidProjectV2(projectPath)) {
|
|
281
|
-
const versionInfo = await v3MigrationUtils_1.getProjectVersionFromPath(projectPath);
|
|
282
|
-
if (!versionInfo.version) {
|
|
283
|
-
return teamsfx_api_1.err(new common_1.InvalidProjectError());
|
|
284
|
-
}
|
|
285
|
-
const trackingId = await v3MigrationUtils_1.getTrackingIdFromPath(projectPath);
|
|
286
|
-
const isSupport = v3MigrationUtils_1.getVersionState(versionInfo);
|
|
287
|
-
// if the project is upgradeable, check whether the project is valid and invalid project should not show upgrade option.
|
|
288
|
-
if (isSupport === versionMetadata_1.VersionState.upgradeable) {
|
|
289
|
-
if (!(await projectMigratorV3_1.checkActiveResourcePlugins(projectPath))) {
|
|
290
|
-
return teamsfx_api_1.err(new common_1.InvalidProjectError());
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
return teamsfx_api_1.ok({
|
|
294
|
-
currentVersion: versionInfo.version,
|
|
295
|
-
trackingId,
|
|
296
|
-
isSupport,
|
|
297
|
-
versionSource: versionMetadata_1.VersionSource[versionInfo.source],
|
|
298
|
-
});
|
|
299
|
-
}
|
|
300
|
-
else {
|
|
301
|
-
return teamsfx_api_1.err(new common_1.InvalidProjectError());
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
async preProvisionForVS(inputs) {
|
|
305
|
-
const context = utils_2.createDriverContext(inputs);
|
|
306
|
-
return coordinator_1.coordinator.preProvisionForVS(context, inputs);
|
|
307
|
-
}
|
|
308
|
-
async preCheckYmlAndEnvForVS(inputs) {
|
|
309
|
-
const context = utils_2.createDriverContext(inputs);
|
|
310
|
-
const result = await coordinator_1.coordinator.preCheckYmlAndEnvForVS(context, inputs);
|
|
311
|
-
return result;
|
|
312
|
-
}
|
|
313
|
-
async createEnv(inputs) {
|
|
314
|
-
return this.createEnvCopyV3(inputs[questionNames_1.QuestionNames.NewTargetEnvName], inputs[questionNames_1.QuestionNames.SourceEnvName], inputs.projectPath);
|
|
315
|
-
}
|
|
316
|
-
async createEnvCopyV3(targetEnvName, sourceEnvName, projectPath) {
|
|
317
|
-
let res = await pathUtils_1.pathUtils.getEnvFilePath(projectPath, sourceEnvName);
|
|
318
|
-
if (res.isErr())
|
|
319
|
-
return teamsfx_api_1.err(res.error);
|
|
320
|
-
const sourceDotEnvFile = res.value;
|
|
321
|
-
res = await pathUtils_1.pathUtils.getEnvFilePath(projectPath, targetEnvName);
|
|
322
|
-
if (res.isErr())
|
|
323
|
-
return teamsfx_api_1.err(res.error);
|
|
324
|
-
const targetDotEnvFile = res.value;
|
|
325
|
-
if (!sourceDotEnvFile || !targetDotEnvFile)
|
|
326
|
-
return teamsfx_api_1.err(new yml_1.YamlFieldMissingError("environmentFolderPath"));
|
|
327
|
-
if (!(await fs_extra_1.default.pathExists(sourceDotEnvFile)))
|
|
328
|
-
return teamsfx_api_1.err(new common_1.FileNotFoundError("createEnvCopyV3", sourceDotEnvFile));
|
|
329
|
-
const source = await fs_extra_1.default.readFile(sourceDotEnvFile);
|
|
330
|
-
const writeStream = fs_extra_1.default.createWriteStream(targetDotEnvFile);
|
|
331
|
-
source
|
|
332
|
-
.toString()
|
|
333
|
-
.split(/\r?\n/)
|
|
334
|
-
.forEach((line) => {
|
|
335
|
-
const reg = /^([a-zA-Z_][a-zA-Z0-9_]*=)/g;
|
|
336
|
-
const match = reg.exec(line);
|
|
337
|
-
if (match) {
|
|
338
|
-
if (match[1].startsWith("TEAMSFX_ENV=")) {
|
|
339
|
-
writeStream.write(`TEAMSFX_ENV=${targetEnvName}${os.EOL}`);
|
|
340
|
-
}
|
|
341
|
-
else {
|
|
342
|
-
writeStream.write(`${match[1]}${os.EOL}`);
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
else {
|
|
346
|
-
writeStream.write(`${line.trim()}${os.EOL}`);
|
|
347
|
-
}
|
|
348
|
-
});
|
|
349
|
-
writeStream.end();
|
|
350
|
-
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
351
|
-
}
|
|
352
|
-
async buildAadManifest(inputs) {
|
|
353
|
-
const manifestTemplatePath = inputs.AAD_MANIFEST_FILE
|
|
354
|
-
? inputs.AAD_MANIFEST_FILE
|
|
355
|
-
: path.join(inputs.projectPath, constants_2.AadConstants.DefaultTemplateFileName);
|
|
356
|
-
if (!(await fs_extra_1.default.pathExists(manifestTemplatePath))) {
|
|
357
|
-
return teamsfx_api_1.err(new common_1.FileNotFoundError("buildAadManifest", manifestTemplatePath));
|
|
358
|
-
}
|
|
359
|
-
await fs_extra_1.default.ensureDir(path.join(inputs.projectPath, "build"));
|
|
360
|
-
const manifestOutputPath = path.join(inputs.projectPath, "build", `aad.${inputs.env}.json`);
|
|
361
|
-
const Context = utils_2.createDriverContext(inputs);
|
|
362
|
-
await buildAadManifest_1.buildAadManifest(Context, manifestTemplatePath, manifestOutputPath);
|
|
363
|
-
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
364
|
-
}
|
|
365
|
-
async validateApplication(inputs) {
|
|
366
|
-
if (inputs[questionNames_1.QuestionNames.ValidateMethod] === other_1.TeamsAppValidationOptions.schema().id) {
|
|
367
|
-
return await this.validateManifest(inputs);
|
|
368
|
-
}
|
|
369
|
-
else {
|
|
370
|
-
return await this.validateAppPackage(inputs);
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
async validateManifest(inputs) {
|
|
374
|
-
inputs.stage = teamsfx_api_1.Stage.validateApplication;
|
|
375
|
-
const context = utils_2.createDriverContext(inputs);
|
|
376
|
-
const teamsAppManifestFilePath = inputs[questionNames_1.QuestionNames.TeamsAppManifestFilePath];
|
|
377
|
-
const args = {
|
|
378
|
-
manifestPath: teamsAppManifestFilePath,
|
|
379
|
-
showMessage: (inputs === null || inputs === void 0 ? void 0 : inputs.showMessage) != undefined ? inputs.showMessage : true,
|
|
380
|
-
};
|
|
381
|
-
const driver = typedi_1.Container.get("teamsApp/validateManifest");
|
|
382
|
-
const result = await driver.run(args, context);
|
|
383
|
-
return result;
|
|
384
|
-
}
|
|
385
|
-
async validateAppPackage(inputs) {
|
|
386
|
-
inputs.stage = teamsfx_api_1.Stage.validateApplication;
|
|
387
|
-
const context = utils_2.createDriverContext(inputs);
|
|
388
|
-
const teamsAppPackageFilePath = inputs[questionNames_1.QuestionNames.TeamsAppPackageFilePath];
|
|
389
|
-
const args = {
|
|
390
|
-
appPackagePath: teamsAppPackageFilePath,
|
|
391
|
-
showMessage: true,
|
|
392
|
-
};
|
|
393
|
-
const driver = typedi_1.Container.get("teamsApp/validateAppPackage");
|
|
394
|
-
return await driver.run(args, context);
|
|
395
|
-
}
|
|
396
|
-
async createAppPackage(inputs) {
|
|
397
|
-
var _a, _b, _c;
|
|
398
|
-
inputs.stage = teamsfx_api_1.Stage.createAppPackage;
|
|
399
|
-
const context = utils_2.createDriverContext(inputs);
|
|
400
|
-
const teamsAppManifestFilePath = inputs === null || inputs === void 0 ? void 0 : inputs[questionNames_1.QuestionNames.TeamsAppManifestFilePath];
|
|
401
|
-
const driver = typedi_1.Container.get("teamsApp/zipAppPackage");
|
|
402
|
-
const args = {
|
|
403
|
-
manifestPath: teamsAppManifestFilePath,
|
|
404
|
-
outputZipPath: (_a = inputs[questionNames_1.QuestionNames.OutputZipPathParamName]) !== null && _a !== void 0 ? _a : `${inputs.projectPath}/${teamsfx_api_1.AppPackageFolderName}/${teamsfx_api_1.BuildFolderName}/appPackage.${process.env.TEAMSFX_ENV}.zip`,
|
|
405
|
-
outputJsonPath: (_b = inputs[questionNames_1.QuestionNames.OutputManifestParamName]) !== null && _b !== void 0 ? _b : `${inputs.projectPath}/${teamsfx_api_1.AppPackageFolderName}/${teamsfx_api_1.BuildFolderName}/manifest.${process.env.TEAMSFX_ENV}.json`,
|
|
406
|
-
};
|
|
407
|
-
const result = await driver.run(args, context);
|
|
408
|
-
if (context.platform === teamsfx_api_1.Platform.VSCode) {
|
|
409
|
-
if (result.isOk()) {
|
|
410
|
-
const isWindows = process.platform === "win32";
|
|
411
|
-
let zipFileName = args.outputZipPath;
|
|
412
|
-
if (!path.isAbsolute(zipFileName)) {
|
|
413
|
-
zipFileName = path.join(context.projectPath, zipFileName);
|
|
414
|
-
}
|
|
415
|
-
let builtSuccess = localizeUtils_1.getLocalizedString("plugins.appstudio.buildSucceedNotice.fallback", zipFileName);
|
|
416
|
-
if (isWindows) {
|
|
417
|
-
const folderLink = url_1.pathToFileURL(path.dirname(zipFileName));
|
|
418
|
-
const appPackageLink = `${constants_1.VSCodeExtensionCommand.openFolder}?%5B%22${folderLink}%22%5D`;
|
|
419
|
-
builtSuccess = localizeUtils_1.getLocalizedString("plugins.appstudio.buildSucceedNotice", appPackageLink);
|
|
420
|
-
}
|
|
421
|
-
(_c = context.ui) === null || _c === void 0 ? void 0 : _c.showMessage("info", builtSuccess, false);
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
return result;
|
|
425
|
-
}
|
|
426
|
-
async copilotPluginAddAPI(inputs) {
|
|
427
|
-
var _a, _b;
|
|
428
|
-
const operations = inputs[questionNames_1.QuestionNames.ApiOperation];
|
|
429
|
-
const openapiSpecPath = (_a = inputs[questionNames_1.QuestionNames.ApiSpecLocation]) !== null && _a !== void 0 ? _a : (_b = inputs.openAIPluginManifest) === null || _b === void 0 ? void 0 : _b.api.url;
|
|
430
|
-
const manifestPath = inputs[questionNames_1.QuestionNames.ManifestPath];
|
|
431
|
-
const specParser = new specParser_1.SpecParser(openapiSpecPath);
|
|
432
|
-
const adaptiveCardFolder = path.join(inputs.projectPath, teamsfx_api_1.AppPackageFolderName, teamsfx_api_1.AdaptiveFolderName);
|
|
433
|
-
try {
|
|
434
|
-
await specParser.generate(manifestPath, operations, openapiSpecPath, adaptiveCardFolder);
|
|
435
|
-
}
|
|
436
|
-
catch (e) {
|
|
437
|
-
const error = common_1.assembleError(e);
|
|
438
|
-
return teamsfx_api_1.err(error);
|
|
439
|
-
}
|
|
440
|
-
const message = localizeUtils_1.getLocalizedString("core.copilot.addAPI.success", operations, inputs.projectPath);
|
|
441
|
-
await this.tools.ui.showMessage("info", message, false);
|
|
442
|
-
return teamsfx_api_1.ok("");
|
|
443
|
-
}
|
|
444
|
-
async copilotPluginLoadOpenAIManifest(inputs) {
|
|
445
|
-
try {
|
|
446
|
-
return teamsfx_api_1.ok(await helper_1.OpenAIPluginManifestHelper.loadOpenAIPluginManifest(inputs.domain));
|
|
447
|
-
}
|
|
448
|
-
catch (error) {
|
|
449
|
-
return teamsfx_api_1.err(error);
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
async copilotPluginListOperations(inputs) {
|
|
453
|
-
return await helper_1.listOperations(utils_2.createContextV3(), inputs.manifest, inputs.apiSpecUrl, inputs[questionNames_1.QuestionNames.ManifestPath], inputs.includeExistingAPIs, inputs.shouldLogWarning);
|
|
454
|
-
}
|
|
455
|
-
async previewWithManifest(inputs) {
|
|
456
|
-
inputs.stage = teamsfx_api_1.Stage.previewWithManifest;
|
|
457
|
-
const hub = inputs[questionNames_1.QuestionNames.M365Host];
|
|
458
|
-
const manifestFilePath = inputs[questionNames_1.QuestionNames.TeamsAppManifestFilePath];
|
|
459
|
-
const manifestRes = await ManifestUtils_1.manifestUtils.getManifestV3(manifestFilePath, false);
|
|
460
|
-
if (manifestRes.isErr()) {
|
|
461
|
-
return teamsfx_api_1.err(manifestRes.error);
|
|
462
|
-
}
|
|
463
|
-
const teamsAppId = manifestRes.value.id;
|
|
464
|
-
const capabilities = ManifestUtils_1.manifestUtils.getCapabilities(manifestRes.value);
|
|
465
|
-
const launchHelper = new launchHelper_1.LaunchHelper(this.tools.tokenProvider.m365TokenProvider, this.tools.logProvider);
|
|
466
|
-
const result = await launchHelper.getLaunchUrl(hub, teamsAppId, capabilities);
|
|
467
|
-
return result;
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
tslib_1.__decorate([
|
|
471
|
-
hooks_1.hooks([errorHandler_1.ErrorHandlerMW, questionMW_1.QuestionMW("createProject")]),
|
|
472
|
-
tslib_1.__metadata("design:type", Function),
|
|
473
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
474
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
475
|
-
], FxCoreV3Implement.prototype, "createProject", null);
|
|
476
|
-
tslib_1.__decorate([
|
|
477
|
-
hooks_1.hooks([errorHandler_1.ErrorHandlerMW, questionMW_1.QuestionMW("createSampleProject")]),
|
|
478
|
-
tslib_1.__metadata("design:type", Function),
|
|
479
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
480
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
481
|
-
], FxCoreV3Implement.prototype, "createSampleProject", null);
|
|
482
|
-
tslib_1.__decorate([
|
|
483
|
-
hooks_1.hooks([
|
|
484
|
-
errorHandler_1.ErrorHandlerMW,
|
|
485
|
-
projectMigratorV3_1.ProjectMigratorMWV3,
|
|
486
|
-
envMW_1.EnvLoaderMW(false),
|
|
487
|
-
concurrentLocker_1.ConcurrentLockerMW,
|
|
488
|
-
contextInjector_1.ContextInjectorMW,
|
|
489
|
-
envMW_1.EnvWriterMW,
|
|
490
|
-
]),
|
|
491
|
-
tslib_1.__metadata("design:type", Function),
|
|
492
|
-
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
493
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
494
|
-
], FxCoreV3Implement.prototype, "provisionResources", null);
|
|
495
|
-
tslib_1.__decorate([
|
|
496
|
-
hooks_1.hooks([
|
|
497
|
-
errorHandler_1.ErrorHandlerMW,
|
|
498
|
-
projectMigratorV3_1.ProjectMigratorMWV3,
|
|
499
|
-
envMW_1.EnvLoaderMW(false),
|
|
500
|
-
concurrentLocker_1.ConcurrentLockerMW,
|
|
501
|
-
contextInjector_1.ContextInjectorMW,
|
|
502
|
-
envMW_1.EnvWriterMW,
|
|
503
|
-
]),
|
|
504
|
-
tslib_1.__metadata("design:type", Function),
|
|
505
|
-
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
506
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
507
|
-
], FxCoreV3Implement.prototype, "deployArtifacts", null);
|
|
508
|
-
tslib_1.__decorate([
|
|
509
|
-
hooks_1.hooks([
|
|
510
|
-
errorHandler_1.ErrorHandlerMW,
|
|
511
|
-
projectMigratorV3_1.ProjectMigratorMWV3,
|
|
512
|
-
questionMW_1.QuestionMW("deployAadManifest"),
|
|
513
|
-
envMW_1.EnvLoaderMW(true, true),
|
|
514
|
-
concurrentLocker_1.ConcurrentLockerMW,
|
|
515
|
-
contextInjector_1.ContextInjectorMW,
|
|
516
|
-
]),
|
|
517
|
-
tslib_1.__metadata("design:type", Function),
|
|
518
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
519
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
520
|
-
], FxCoreV3Implement.prototype, "deployAadManifest", null);
|
|
521
|
-
tslib_1.__decorate([
|
|
522
|
-
hooks_1.hooks([
|
|
523
|
-
errorHandler_1.ErrorHandlerMW,
|
|
524
|
-
projectMigratorV3_1.ProjectMigratorMWV3,
|
|
525
|
-
envMW_1.EnvLoaderMW(false),
|
|
526
|
-
concurrentLocker_1.ConcurrentLockerMW,
|
|
527
|
-
contextInjector_1.ContextInjectorMW,
|
|
528
|
-
envMW_1.EnvWriterMW,
|
|
529
|
-
]),
|
|
530
|
-
tslib_1.__metadata("design:type", Function),
|
|
531
|
-
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
532
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
533
|
-
], FxCoreV3Implement.prototype, "publishApplication", null);
|
|
534
|
-
tslib_1.__decorate([
|
|
535
|
-
hooks_1.hooks([
|
|
536
|
-
errorHandler_1.ErrorHandlerMW,
|
|
537
|
-
projectMigratorV3_1.ProjectMigratorMWV3,
|
|
538
|
-
questionMW_1.QuestionMW("selectTeamsAppManifest"),
|
|
539
|
-
envMW_1.EnvLoaderMW(true),
|
|
540
|
-
concurrentLocker_1.ConcurrentLockerMW,
|
|
541
|
-
contextInjector_1.ContextInjectorMW,
|
|
542
|
-
envMW_1.EnvWriterMW,
|
|
543
|
-
]),
|
|
544
|
-
tslib_1.__metadata("design:type", Function),
|
|
545
|
-
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
546
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
547
|
-
], FxCoreV3Implement.prototype, "deployTeamsManifest", null);
|
|
548
|
-
tslib_1.__decorate([
|
|
549
|
-
hooks_1.hooks([errorHandler_1.ErrorHandlerMW, projectMigratorV3_1.ProjectMigratorMWV3, envMW_1.EnvLoaderMW(false), concurrentLocker_1.ConcurrentLockerMW]),
|
|
550
|
-
tslib_1.__metadata("design:type", Function),
|
|
551
|
-
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
552
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
553
|
-
], FxCoreV3Implement.prototype, "executeUserTask", null);
|
|
554
|
-
tslib_1.__decorate([
|
|
555
|
-
hooks_1.hooks([errorHandler_1.ErrorHandlerMW, questionMW_1.QuestionMW("addWebpart"), projectMigratorV3_1.ProjectMigratorMWV3, concurrentLocker_1.ConcurrentLockerMW]),
|
|
556
|
-
tslib_1.__metadata("design:type", Function),
|
|
557
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
558
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
559
|
-
], FxCoreV3Implement.prototype, "addWebpart", null);
|
|
560
|
-
tslib_1.__decorate([
|
|
561
|
-
hooks_1.hooks([errorHandler_1.ErrorHandlerMW, concurrentLocker_1.ConcurrentLockerMW, contextInjector_1.ContextInjectorMW]),
|
|
562
|
-
tslib_1.__metadata("design:type", Function),
|
|
563
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
564
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
565
|
-
], FxCoreV3Implement.prototype, "publishInDeveloperPortal", null);
|
|
566
|
-
tslib_1.__decorate([
|
|
567
|
-
hooks_1.hooks([
|
|
568
|
-
errorHandler_1.ErrorHandlerMW,
|
|
569
|
-
projectMigratorV3_1.ProjectMigratorMWV3,
|
|
570
|
-
questionMW_1.QuestionMW("grantPermission"),
|
|
571
|
-
envMW_1.EnvLoaderMW(false, true),
|
|
572
|
-
concurrentLocker_1.ConcurrentLockerMW,
|
|
573
|
-
envMW_1.EnvWriterMW,
|
|
574
|
-
]),
|
|
575
|
-
tslib_1.__metadata("design:type", Function),
|
|
576
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
577
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
578
|
-
], FxCoreV3Implement.prototype, "grantPermission", null);
|
|
579
|
-
tslib_1.__decorate([
|
|
580
|
-
hooks_1.hooks([
|
|
581
|
-
errorHandler_1.ErrorHandlerMW,
|
|
582
|
-
projectMigratorV3_1.ProjectMigratorMWV3,
|
|
583
|
-
envMW_1.EnvLoaderMW(false, true),
|
|
584
|
-
concurrentLocker_1.ConcurrentLockerMW,
|
|
585
|
-
envMW_1.EnvWriterMW,
|
|
586
|
-
]),
|
|
587
|
-
tslib_1.__metadata("design:type", Function),
|
|
588
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
589
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
590
|
-
], FxCoreV3Implement.prototype, "checkPermission", null);
|
|
591
|
-
tslib_1.__decorate([
|
|
592
|
-
hooks_1.hooks([
|
|
593
|
-
errorHandler_1.ErrorHandlerMW,
|
|
594
|
-
projectMigratorV3_1.ProjectMigratorMWV3,
|
|
595
|
-
questionMW_1.QuestionMW("listCollaborator"),
|
|
596
|
-
envMW_1.EnvLoaderMW(false, true),
|
|
597
|
-
concurrentLocker_1.ConcurrentLockerMW,
|
|
598
|
-
envMW_1.EnvWriterMW,
|
|
599
|
-
]),
|
|
600
|
-
tslib_1.__metadata("design:type", Function),
|
|
601
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
602
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
603
|
-
], FxCoreV3Implement.prototype, "listCollaborator", null);
|
|
604
|
-
tslib_1.__decorate([
|
|
605
|
-
hooks_1.hooks([errorHandler_1.ErrorHandlerMW]),
|
|
606
|
-
tslib_1.__metadata("design:type", Function),
|
|
607
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
608
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
609
|
-
], FxCoreV3Implement.prototype, "getDotEnvs", null);
|
|
610
|
-
tslib_1.__decorate([
|
|
611
|
-
hooks_1.hooks([errorHandler_1.ErrorHandlerMW, projectMigratorV3_1.ProjectMigratorMWV3]),
|
|
612
|
-
tslib_1.__metadata("design:type", Function),
|
|
613
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
614
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
615
|
-
], FxCoreV3Implement.prototype, "innerMigrationV3", null);
|
|
616
|
-
tslib_1.__decorate([
|
|
617
|
-
hooks_1.hooks([errorHandler_1.ErrorHandlerMW]),
|
|
618
|
-
tslib_1.__metadata("design:type", Function),
|
|
619
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
620
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
621
|
-
], FxCoreV3Implement.prototype, "projectVersionCheck", null);
|
|
622
|
-
tslib_1.__decorate([
|
|
623
|
-
hooks_1.hooks([
|
|
624
|
-
errorHandler_1.ErrorHandlerMW,
|
|
625
|
-
projectMigratorV3_1.ProjectMigratorMWV3,
|
|
626
|
-
envMW_1.EnvLoaderMW(false),
|
|
627
|
-
concurrentLocker_1.ConcurrentLockerMW,
|
|
628
|
-
contextInjector_1.ContextInjectorMW,
|
|
629
|
-
]),
|
|
630
|
-
tslib_1.__metadata("design:type", Function),
|
|
631
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
632
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
633
|
-
], FxCoreV3Implement.prototype, "preProvisionForVS", null);
|
|
634
|
-
tslib_1.__decorate([
|
|
635
|
-
hooks_1.hooks([
|
|
636
|
-
errorHandler_1.ErrorHandlerMW,
|
|
637
|
-
projectMigratorV3_1.ProjectMigratorMWV3,
|
|
638
|
-
envMW_1.EnvLoaderMW(false),
|
|
639
|
-
concurrentLocker_1.ConcurrentLockerMW,
|
|
640
|
-
contextInjector_1.ContextInjectorMW,
|
|
641
|
-
]),
|
|
642
|
-
tslib_1.__metadata("design:type", Function),
|
|
643
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
644
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
645
|
-
], FxCoreV3Implement.prototype, "preCheckYmlAndEnvForVS", null);
|
|
646
|
-
tslib_1.__decorate([
|
|
647
|
-
hooks_1.hooks([errorHandler_1.ErrorHandlerMW, questionMW_1.QuestionMW("createNewEnv"), concurrentLocker_1.ConcurrentLockerMW]),
|
|
648
|
-
tslib_1.__metadata("design:type", Function),
|
|
649
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
650
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
651
|
-
], FxCoreV3Implement.prototype, "createEnv", null);
|
|
652
|
-
tslib_1.__decorate([
|
|
653
|
-
hooks_1.hooks([errorHandler_1.ErrorHandlerMW, projectMigratorV3_1.ProjectMigratorMWV3, envMW_1.EnvLoaderMW(false), concurrentLocker_1.ConcurrentLockerMW]),
|
|
654
|
-
tslib_1.__metadata("design:type", Function),
|
|
655
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
656
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
657
|
-
], FxCoreV3Implement.prototype, "buildAadManifest", null);
|
|
658
|
-
tslib_1.__decorate([
|
|
659
|
-
hooks_1.hooks([questionMW_1.QuestionMW("validateTeamsApp")]),
|
|
660
|
-
tslib_1.__metadata("design:type", Function),
|
|
661
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
662
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
663
|
-
], FxCoreV3Implement.prototype, "validateApplication", null);
|
|
664
|
-
tslib_1.__decorate([
|
|
665
|
-
hooks_1.hooks([errorHandler_1.ErrorHandlerMW, envMW_1.EnvLoaderMW(true), concurrentLocker_1.ConcurrentLockerMW]),
|
|
666
|
-
tslib_1.__metadata("design:type", Function),
|
|
667
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
668
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
669
|
-
], FxCoreV3Implement.prototype, "validateManifest", null);
|
|
670
|
-
tslib_1.__decorate([
|
|
671
|
-
hooks_1.hooks([errorHandler_1.ErrorHandlerMW, concurrentLocker_1.ConcurrentLockerMW]),
|
|
672
|
-
tslib_1.__metadata("design:type", Function),
|
|
673
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
674
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
675
|
-
], FxCoreV3Implement.prototype, "validateAppPackage", null);
|
|
676
|
-
tslib_1.__decorate([
|
|
677
|
-
hooks_1.hooks([
|
|
678
|
-
errorHandler_1.ErrorHandlerMW,
|
|
679
|
-
questionMW_1.QuestionMW("selectTeamsAppManifest"),
|
|
680
|
-
envMW_1.EnvLoaderMW(true),
|
|
681
|
-
concurrentLocker_1.ConcurrentLockerMW,
|
|
682
|
-
]),
|
|
683
|
-
tslib_1.__metadata("design:type", Function),
|
|
684
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
685
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
686
|
-
], FxCoreV3Implement.prototype, "createAppPackage", null);
|
|
687
|
-
tslib_1.__decorate([
|
|
688
|
-
hooks_1.hooks([errorHandler_1.ErrorHandlerMW, questionMW_1.QuestionMW("copilotPluginAddAPI"), concurrentLocker_1.ConcurrentLockerMW]),
|
|
689
|
-
tslib_1.__metadata("design:type", Function),
|
|
690
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
691
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
692
|
-
], FxCoreV3Implement.prototype, "copilotPluginAddAPI", null);
|
|
693
|
-
tslib_1.__decorate([
|
|
694
|
-
hooks_1.hooks([errorHandler_1.ErrorHandlerMW]),
|
|
695
|
-
tslib_1.__metadata("design:type", Function),
|
|
696
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
697
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
698
|
-
], FxCoreV3Implement.prototype, "copilotPluginLoadOpenAIManifest", null);
|
|
699
|
-
tslib_1.__decorate([
|
|
700
|
-
hooks_1.hooks([errorHandler_1.ErrorHandlerMW]),
|
|
701
|
-
tslib_1.__metadata("design:type", Function),
|
|
702
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
703
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
704
|
-
], FxCoreV3Implement.prototype, "copilotPluginListOperations", null);
|
|
705
|
-
tslib_1.__decorate([
|
|
706
|
-
hooks_1.hooks([
|
|
707
|
-
errorHandler_1.ErrorHandlerMW,
|
|
708
|
-
questionMW_1.QuestionMW("previewWithTeamsAppManifest"),
|
|
709
|
-
envMW_1.EnvLoaderMW(false),
|
|
710
|
-
concurrentLocker_1.ConcurrentLockerMW,
|
|
711
|
-
]),
|
|
712
|
-
tslib_1.__metadata("design:type", Function),
|
|
713
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
714
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
715
|
-
], FxCoreV3Implement.prototype, "previewWithManifest", null);
|
|
716
|
-
exports.FxCoreV3Implement = FxCoreV3Implement;
|
|
717
|
-
//# sourceMappingURL=FxCoreImplementV3.js.map
|