@microsoft/teamsfx-core 2.0.6-alpha.da822cd72.0 → 2.0.6-alpha.dc4264a43.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 -2
- package/build/common/constants.d.ts.map +1 -1
- package/build/common/constants.js +3 -2
- package/build/common/constants.js.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.d.ts +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
- package/build/common/deps-checker/internal/testToolChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/testToolChecker.js +9 -3
- package/build/common/deps-checker/internal/testToolChecker.js.map +1 -1
- package/build/common/featureFlags.d.ts +3 -3
- package/build/common/featureFlags.d.ts.map +1 -1
- package/build/common/featureFlags.js +11 -12
- package/build/common/featureFlags.js.map +1 -1
- package/build/common/local/constants.d.ts +1 -0
- package/build/common/local/constants.d.ts.map +1 -1
- package/build/common/local/constants.js +1 -0
- package/build/common/local/constants.js.map +1 -1
- package/build/common/local/localCertificateManager.d.ts +5 -4
- package/build/common/local/localCertificateManager.d.ts.map +1 -1
- package/build/common/local/localCertificateManager.js +9 -2
- package/build/common/local/localCertificateManager.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 +2 -2
- package/build/common/m365/launchHelper.js.map +1 -1
- package/build/common/m365/packageService.d.ts +1 -0
- package/build/common/m365/packageService.d.ts.map +1 -1
- package/build/common/m365/packageService.js +85 -7
- package/build/common/m365/packageService.js.map +1 -1
- package/build/common/projectTypeChecker.d.ts +38 -0
- package/build/common/projectTypeChecker.d.ts.map +1 -0
- package/build/common/projectTypeChecker.js +217 -0
- package/build/common/projectTypeChecker.js.map +1 -0
- package/build/common/samples.d.ts +13 -7
- package/build/common/samples.d.ts.map +1 -1
- package/build/common/samples.js +83 -49
- package/build/common/samples.js.map +1 -1
- package/build/common/spec-parser/adaptiveCardGenerator.d.ts +3 -2
- package/build/common/spec-parser/adaptiveCardGenerator.d.ts.map +1 -1
- package/build/common/spec-parser/adaptiveCardGenerator.js +51 -23
- package/build/common/spec-parser/adaptiveCardGenerator.js.map +1 -1
- package/build/common/spec-parser/adaptiveCardWrapper.d.ts.map +1 -1
- package/build/common/spec-parser/adaptiveCardWrapper.js.map +1 -1
- package/build/common/spec-parser/constants.d.ts +23 -14
- package/build/common/spec-parser/constants.d.ts.map +1 -1
- package/build/common/spec-parser/constants.js +23 -15
- package/build/common/spec-parser/constants.js.map +1 -1
- package/build/common/spec-parser/index.browser.d.ts +6 -0
- package/build/common/spec-parser/index.browser.d.ts.map +1 -0
- package/build/common/spec-parser/index.browser.js +16 -0
- package/build/common/spec-parser/index.browser.js.map +1 -0
- package/build/common/spec-parser/index.d.ts +5 -0
- package/build/common/spec-parser/index.d.ts.map +1 -0
- package/build/common/spec-parser/index.js +16 -0
- package/build/common/spec-parser/index.js.map +1 -0
- package/build/common/spec-parser/interfaces.d.ts +39 -5
- package/build/common/spec-parser/interfaces.d.ts.map +1 -1
- package/build/common/spec-parser/interfaces.js +3 -3
- package/build/common/spec-parser/interfaces.js.map +1 -1
- package/build/common/spec-parser/manifestUpdater.d.ts +4 -4
- package/build/common/spec-parser/manifestUpdater.d.ts.map +1 -1
- package/build/common/spec-parser/manifestUpdater.js +30 -105
- 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 +2 -2
- package/build/common/spec-parser/specFilter.js.map +1 -1
- package/build/common/spec-parser/specParser.browser.d.ts +46 -0
- package/build/common/spec-parser/specParser.browser.d.ts.map +1 -0
- package/build/common/spec-parser/specParser.browser.js +138 -0
- package/build/common/spec-parser/specParser.browser.js.map +1 -0
- package/build/common/spec-parser/specParser.d.ts +11 -11
- package/build/common/spec-parser/specParser.d.ts.map +1 -1
- package/build/common/spec-parser/specParser.js +117 -128
- package/build/common/spec-parser/specParser.js.map +1 -1
- package/build/common/spec-parser/utils.d.ts +15 -5
- package/build/common/spec-parser/utils.d.ts.map +1 -1
- package/build/common/spec-parser/utils.js +277 -41
- package/build/common/spec-parser/utils.js.map +1 -1
- package/build/common/telemetry.d.ts +23 -2
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +40 -1
- package/build/common/telemetry.js.map +1 -1
- package/build/common/templates-config.json +2 -2
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +1 -1
- package/build/common/tools.js.map +1 -1
- package/build/component/configManager/lifecycle.d.ts +1 -0
- package/build/component/configManager/lifecycle.d.ts.map +1 -1
- package/build/component/configManager/lifecycle.js +17 -5
- package/build/component/configManager/lifecycle.js.map +1 -1
- package/build/component/configManager/validator.d.ts.map +1 -1
- package/build/component/configManager/validator.js +2 -3
- package/build/component/configManager/validator.js.map +1 -1
- package/build/component/coordinator/index.d.ts +2 -1
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +15 -10
- package/build/component/coordinator/index.js.map +1 -1
- package/build/component/developerPortalScaffoldUtils.d.ts.map +1 -1
- package/build/component/developerPortalScaffoldUtils.js +32 -0
- package/build/component/developerPortalScaffoldUtils.js.map +1 -1
- package/build/component/driver/aad/create.js +1 -1
- package/build/component/driver/aad/create.js.map +1 -1
- package/build/component/driver/aad/error/invalidFieldInManifestError.js +1 -1
- package/build/component/driver/aad/error/invalidFieldInManifestError.js.map +1 -1
- package/build/component/driver/aad/permissions/index.d.ts +3 -0
- package/build/component/driver/aad/permissions/index.d.ts.map +1 -1
- package/build/component/driver/aad/permissions/index.js +34 -1
- package/build/component/driver/aad/permissions/index.js.map +1 -1
- package/build/component/driver/aad/permissions/permissions.json +42 -42
- 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 +19 -17
- package/build/component/driver/aad/update.js.map +1 -1
- package/build/component/driver/aad/utility/aadAppClient.d.ts.map +1 -1
- package/build/component/driver/aad/utility/aadAppClient.js +9 -9
- package/build/component/driver/aad/utility/aadAppClient.js.map +1 -1
- package/build/component/driver/aad/utility/constants.js +1 -1
- package/build/component/driver/aad/utility/constants.js.map +1 -1
- package/build/component/driver/add/addWebPart.d.ts.map +1 -1
- package/build/component/driver/add/addWebPart.js +2 -0
- package/build/component/driver/add/addWebPart.js.map +1 -1
- package/build/component/driver/add/interface/AddWebPartArgs.d.ts +4 -0
- package/build/component/driver/add/interface/AddWebPartArgs.d.ts.map +1 -1
- package/build/component/driver/apiKey/create.d.ts +17 -0
- package/build/component/driver/apiKey/create.d.ts.map +1 -0
- package/build/component/driver/apiKey/create.js +226 -0
- package/build/component/driver/apiKey/create.js.map +1 -0
- package/build/component/driver/apiKey/error/apiKeyClientSecretInvalid.d.ts +5 -0
- package/build/component/driver/apiKey/error/apiKeyClientSecretInvalid.d.ts.map +1 -0
- package/build/component/driver/apiKey/error/apiKeyClientSecretInvalid.js +22 -0
- package/build/component/driver/apiKey/error/apiKeyClientSecretInvalid.js.map +1 -0
- package/build/component/driver/apiKey/error/apiKeyDomainInvalid.d.ts +5 -0
- package/build/component/driver/apiKey/error/apiKeyDomainInvalid.d.ts.map +1 -0
- package/build/component/driver/apiKey/error/apiKeyDomainInvalid.js +22 -0
- package/build/component/driver/apiKey/error/apiKeyDomainInvalid.js.map +1 -0
- package/build/component/driver/apiKey/error/apiKeyFailedToGetDomain.d.ts +5 -0
- package/build/component/driver/apiKey/error/apiKeyFailedToGetDomain.d.ts.map +1 -0
- package/build/component/driver/apiKey/error/apiKeyFailedToGetDomain.js +21 -0
- package/build/component/driver/apiKey/error/apiKeyFailedToGetDomain.js.map +1 -0
- package/build/component/driver/apiKey/error/apiKeyNameTooLong.d.ts +5 -0
- package/build/component/driver/apiKey/error/apiKeyNameTooLong.d.ts.map +1 -0
- package/build/component/driver/apiKey/error/apiKeyNameTooLong.js +21 -0
- package/build/component/driver/apiKey/error/apiKeyNameTooLong.js.map +1 -0
- package/build/component/driver/apiKey/interface/createApiKeyArgs.d.ts +7 -0
- package/build/component/driver/apiKey/interface/createApiKeyArgs.d.ts.map +1 -0
- package/build/component/driver/apiKey/interface/createApiKeyArgs.js +5 -0
- package/build/component/driver/apiKey/interface/createApiKeyArgs.js.map +1 -0
- package/build/component/driver/apiKey/interface/createApiKeyOutputs.d.ts +7 -0
- package/build/component/driver/apiKey/interface/createApiKeyOutputs.d.ts.map +1 -0
- package/build/component/driver/apiKey/interface/createApiKeyOutputs.js +10 -0
- package/build/component/driver/apiKey/interface/createApiKeyOutputs.js.map +1 -0
- package/build/component/driver/apiKey/utility/constants.d.ts +10 -0
- package/build/component/driver/apiKey/utility/constants.d.ts.map +1 -0
- package/build/component/driver/apiKey/utility/constants.js +15 -0
- package/build/component/driver/apiKey/utility/constants.js.map +1 -0
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.js +6 -6
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.js.map +1 -1
- package/build/component/driver/index.d.ts +1 -0
- package/build/component/driver/index.d.ts.map +1 -1
- package/build/component/driver/index.js +1 -0
- package/build/component/driver/index.js.map +1 -1
- package/build/component/driver/script/scriptDriver.d.ts.map +1 -1
- package/build/component/driver/script/scriptDriver.js +2 -2
- package/build/component/driver/script/scriptDriver.js.map +1 -1
- package/build/component/driver/teamsApp/clients/appStudioClient.d.ts +13 -0
- package/build/component/driver/teamsApp/clients/appStudioClient.d.ts.map +1 -1
- package/build/component/driver/teamsApp/clients/appStudioClient.js +38 -0
- package/build/component/driver/teamsApp/clients/appStudioClient.js.map +1 -1
- package/build/component/driver/teamsApp/constants.d.ts +2 -0
- package/build/component/driver/teamsApp/constants.d.ts.map +1 -1
- package/build/component/driver/teamsApp/constants.js +2 -0
- package/build/component/driver/teamsApp/constants.js.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.js +26 -6
- package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/interfaces/ApiSecretRegistration.d.ts +44 -0
- package/build/component/driver/teamsApp/interfaces/ApiSecretRegistration.d.ts.map +1 -0
- package/build/component/driver/teamsApp/interfaces/ApiSecretRegistration.js +21 -0
- package/build/component/driver/teamsApp/interfaces/ApiSecretRegistration.js.map +1 -0
- package/build/component/driver/teamsApp/interfaces/ApiSecretRegistrationClientSecret.d.ts +15 -0
- package/build/component/driver/teamsApp/interfaces/ApiSecretRegistrationClientSecret.d.ts.map +1 -0
- package/build/component/driver/teamsApp/interfaces/ApiSecretRegistrationClientSecret.js +5 -0
- package/build/component/driver/teamsApp/interfaces/ApiSecretRegistrationClientSecret.js.map +1 -0
- package/build/component/driver/teamsApp/interfaces/appdefinitions/IValidationResult.d.ts +1 -1
- package/build/component/driver/teamsApp/interfaces/appdefinitions/IValidationResult.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 +9 -9
- package/build/component/driver/teamsApp/publishAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/teamsappMgr.d.ts +20 -0
- package/build/component/driver/teamsApp/teamsappMgr.d.ts.map +1 -0
- package/build/component/driver/teamsApp/teamsappMgr.js +278 -0
- package/build/component/driver/teamsApp/teamsappMgr.js.map +1 -0
- package/build/component/driver/teamsApp/validate.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validate.js +7 -2
- package/build/component/driver/teamsApp/validate.js.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.js +35 -7
- package/build/component/driver/teamsApp/validateAppPackage.js.map +1 -1
- package/build/component/generator/copilotPlugin/generator.d.ts.map +1 -1
- package/build/component/generator/copilotPlugin/generator.js +47 -30
- package/build/component/generator/copilotPlugin/generator.js.map +1 -1
- package/build/component/generator/copilotPlugin/helper.d.ts +4 -2
- package/build/component/generator/copilotPlugin/helper.d.ts.map +1 -1
- package/build/component/generator/copilotPlugin/helper.js +106 -21
- package/build/component/generator/copilotPlugin/helper.js.map +1 -1
- package/build/component/generator/error.d.ts +0 -6
- package/build/component/generator/error.d.ts.map +1 -1
- package/build/component/generator/error.js +1 -13
- package/build/component/generator/error.js.map +1 -1
- package/build/component/generator/generator.d.ts +5 -1
- package/build/component/generator/generator.d.ts.map +1 -1
- package/build/component/generator/generator.js +18 -13
- package/build/component/generator/generator.js.map +1 -1
- package/build/component/generator/generatorAction.d.ts +3 -1
- package/build/component/generator/generatorAction.d.ts.map +1 -1
- package/build/component/generator/generatorAction.js +14 -12
- package/build/component/generator/generatorAction.js.map +1 -1
- package/build/component/generator/officeAddin/generator.js +1 -1
- 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 +42 -38
- package/build/component/generator/officeAddin/helperMethods.js.map +1 -1
- package/build/component/generator/spfx/spfxGenerator.d.ts.map +1 -1
- package/build/component/generator/spfx/spfxGenerator.js +7 -0
- package/build/component/generator/spfx/spfxGenerator.js.map +1 -1
- package/build/component/generator/spfx/utils/constants.d.ts +1 -14
- package/build/component/generator/spfx/utils/constants.d.ts.map +1 -1
- package/build/component/generator/spfx/utils/constants.js +1 -14
- package/build/component/generator/spfx/utils/constants.js.map +1 -1
- package/build/component/generator/utils.d.ts +3 -5
- package/build/component/generator/utils.d.ts.map +1 -1
- package/build/component/generator/utils.js +6 -16
- package/build/component/generator/utils.js.map +1 -1
- package/build/component/middleware/questionMW.d.ts +1 -1
- package/build/component/middleware/questionMW.d.ts.map +1 -1
- package/build/component/middleware/questionMW.js +4 -1
- package/build/component/middleware/questionMW.js.map +1 -1
- package/build/component/utils/ResourceGroupHelper.d.ts +1 -0
- package/build/component/utils/ResourceGroupHelper.d.ts.map +1 -1
- package/build/component/utils/ResourceGroupHelper.js +31 -1
- package/build/component/utils/ResourceGroupHelper.js.map +1 -1
- package/build/component/utils/common.d.ts +3 -1
- package/build/component/utils/common.d.ts.map +1 -1
- package/build/component/utils/common.js +11 -4
- package/build/component/utils/common.js.map +1 -1
- package/build/component/utils/envUtil.d.ts +1 -0
- package/build/component/utils/envUtil.d.ts.map +1 -1
- package/build/component/utils/envUtil.js +6 -1
- package/build/component/utils/envUtil.js.map +1 -1
- package/build/component/utils/metadataGraphPermssion.d.ts +16 -0
- package/build/component/utils/metadataGraphPermssion.d.ts.map +1 -0
- package/build/component/utils/metadataGraphPermssion.js +96 -0
- package/build/component/utils/metadataGraphPermssion.js.map +1 -0
- package/build/component/utils/metadataUtil.d.ts.map +1 -1
- package/build/component/utils/metadataUtil.js +2 -0
- package/build/component/utils/metadataUtil.js.map +1 -1
- package/build/core/FxCore.d.ts +23 -2
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.js +191 -27
- package/build/core/FxCore.js.map +1 -1
- package/build/core/middleware/projectMigratorV3.js +2 -2
- package/build/core/middleware/projectMigratorV3.js.map +1 -1
- package/build/core/middleware/utils/debug/taskMigrator.js +1 -1
- package/build/error/common.d.ts +9 -0
- package/build/error/common.d.ts.map +1 -1
- package/build/error/common.js +34 -1
- package/build/error/common.js.map +1 -1
- package/build/error/teamsApp.d.ts +4 -1
- package/build/error/teamsApp.d.ts.map +1 -1
- package/build/error/teamsApp.js +13 -1
- package/build/error/teamsApp.js.map +1 -1
- package/build/index.d.ts +3 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +7 -1
- package/build/index.js.map +1 -1
- package/build/question/create.d.ts +9 -7
- package/build/question/create.d.ts.map +1 -1
- package/build/question/create.js +144 -91
- package/build/question/create.js.map +1 -1
- package/build/question/generator.js +1 -3
- 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 +3 -0
- package/build/question/index.js.map +1 -1
- package/build/question/inputs/CreateProjectInputs.d.ts +4 -4
- package/build/question/inputs/CreateProjectInputs.d.ts.map +1 -1
- package/build/question/inputs/DeployAadManifestInputs.d.ts +1 -1
- package/build/question/inputs/DeployAadManifestInputs.d.ts.map +1 -1
- package/build/question/inputs/PermissionGrantInputs.d.ts +2 -2
- package/build/question/inputs/PermissionGrantInputs.d.ts.map +1 -1
- package/build/question/inputs/PermissionListInputs.d.ts +1 -1
- package/build/question/inputs/PermissionListInputs.d.ts.map +1 -1
- package/build/question/inputs/SPFxAddWebpartInputs.d.ts +2 -0
- package/build/question/inputs/SPFxAddWebpartInputs.d.ts.map +1 -1
- package/build/question/options/CreateProjectOptions.js +9 -9
- 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 +5 -1
- package/build/question/options/CreateSampleProjectOptions.js.map +1 -1
- package/build/question/options/DeployAadManifestOptions.js +2 -2
- package/build/question/options/DeployAadManifestOptions.js.map +1 -1
- package/build/question/options/PermissionGrantOptions.js +2 -2
- package/build/question/options/PermissionGrantOptions.js.map +1 -1
- package/build/question/options/PermissionListOptions.js +2 -2
- package/build/question/options/PermissionListOptions.js.map +1 -1
- package/build/question/options/SPFxAddWebpartOptions.d.ts.map +1 -1
- package/build/question/options/SPFxAddWebpartOptions.js +9 -0
- package/build/question/options/SPFxAddWebpartOptions.js.map +1 -1
- package/build/question/other.d.ts +1 -0
- package/build/question/other.d.ts.map +1 -1
- package/build/question/other.js +86 -6
- package/build/question/other.js.map +1 -1
- package/build/question/questionNames.d.ts +2 -2
- package/build/question/questionNames.d.ts.map +1 -1
- package/build/question/questionNames.js +2 -2
- package/build/question/questionNames.js.map +1 -1
- package/build/ui/visitor.d.ts.map +1 -1
- package/build/ui/visitor.js +11 -2
- package/build/ui/visitor.js.map +1 -1
- package/package.json +15 -20
- package/resource/package.nls.json +78 -59
- package/resource/yaml-schema/v1.3/yaml.schema.json +79 -32
- package/templates/core/v3Migration/csharp.app.local.yml +6 -6
- package/templates/core/v3Migration/csharp.app.yml +6 -6
- package/templates/core/v3Migration/js.ts.app.local.yml +11 -11
- package/templates/core/v3Migration/js.ts.app.yml +12 -12
- 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/Bot/Pages/BotAuthorizeEndPage.cshtml +55 -51
- package/templates/plugins/resource/aad/auth/V3/Enable SSO.txt +2 -2
- package/templates/plugins/resource/aad/auth/bot/README.md +13 -13
- package/templates/plugins/resource/aad/auth/bot/README.txt +7 -7
- package/templates/plugins/resource/aad/auth/bot/csharp/Pages/BotAuthorizeEndPage.cshtml +55 -51
- package/templates/plugins/resource/aad/auth/bot/js/public/auth-end.html +6 -2
- package/templates/plugins/resource/aad/auth/bot/ts/public/auth-end.html +5 -1
- package/templates/plugins/resource/aad/auth/tab/README.md +6 -6
- package/templates/plugins/resource/aad/auth/tab/README.txt +5 -5
- package/templates/plugins/resource/aad/auth/tab/js/public/auth-end.html +16 -9
- package/templates/plugins/resource/aad/auth/tab/js/public/auth-start.html +11 -7
- package/templates/plugins/resource/aad/auth/tab/js/sso/GetUserProfile.jsx +1 -1
- package/templates/plugins/resource/aad/auth/tab/ts/public/auth-end.html +16 -9
- package/templates/plugins/resource/aad/auth/tab/ts/public/auth-start.html +11 -7
- package/templates/plugins/resource/aad/auth/tab/ts/sso/GetUserProfile.tsx +1 -1
package/build/question/create.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
3
|
// Licensed under the MIT license.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.createProjectCliHelpNode = exports.createSampleProjectQuestionNode = exports.createProjectQuestionNode = exports.capabilitySubTree = exports.apiOperationQuestion = exports.openAIPluginManifestLocationQuestion = exports.apiSpecLocationQuestion = exports.RuntimeOptions = exports.appNameQuestion = exports.AppNamePattern = exports.folderQuestion = exports.programmingLanguageQuestion = exports.ProgrammingLanguage = exports.getLanguageOptions = exports.officeAddinHostingQuestion = exports.getTemplate = exports.SPFxImportFolderQuestion = exports.SPFxVersionOptionIds = exports.SPFxWebpartNameQuestion = exports.SPFxPackageSelectQuestion = exports.NotificationTriggerOptions = exports.
|
|
5
|
+
exports.createProjectCliHelpNode = exports.createSampleProjectQuestionNode = exports.createProjectQuestionNode = exports.capabilitySubTree = exports.apiOperationQuestion = exports.openAIPluginManifestLocationQuestion = exports.apiSpecLocationQuestion = exports.RuntimeOptions = exports.appNameQuestion = exports.AppNamePattern = exports.folderQuestion = exports.programmingLanguageQuestion = exports.ProgrammingLanguage = exports.getLanguageOptions = exports.officeAddinHostingQuestion = exports.getTemplate = exports.SPFxImportFolderQuestion = exports.SPFxVersionOptionIds = exports.SPFxWebpartNameQuestion = exports.SPFxFrameworkQuestion = exports.SPFxPackageSelectQuestion = exports.NotificationTriggerOptions = exports.meArchitectureQuestion = exports.MeArchitectureOptions = exports.capabilityQuestion = exports.CapabilityOptions = exports.ProjectTypeOptions = exports.ScratchOptions = void 0;
|
|
6
6
|
const tslib_1 = require("tslib");
|
|
7
7
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
8
8
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
@@ -68,7 +68,9 @@ class ProjectTypeOptions {
|
|
|
68
68
|
return {
|
|
69
69
|
id: "me-type",
|
|
70
70
|
label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(symbol-keyword) " : ""}${localizeUtils_1.getLocalizedString("core.MessageExtensionOption.label")}`,
|
|
71
|
-
detail:
|
|
71
|
+
detail: featureFlags_1.isCopilotPluginEnabled()
|
|
72
|
+
? localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.messageExtension.copilotEnabled.detail")
|
|
73
|
+
: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.messageExtension.detail"),
|
|
72
74
|
};
|
|
73
75
|
}
|
|
74
76
|
static outlookAddin(platform) {
|
|
@@ -263,16 +265,9 @@ class CapabilityOptions {
|
|
|
263
265
|
return {
|
|
264
266
|
id: "search-app",
|
|
265
267
|
label: `${localizeUtils_1.getLocalizedString("core.M365SearchAppOptionItem.label")}`,
|
|
266
|
-
detail:
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
}
|
|
270
|
-
static copilotM365SearchMe() {
|
|
271
|
-
return {
|
|
272
|
-
id: "search-me-copilot",
|
|
273
|
-
label: `${localizeUtils_1.getLocalizedString("core.M365SearchAppOptionItem.label")}`,
|
|
274
|
-
detail: localizeUtils_1.getLocalizedString("core.M365SearchAppOptionItem.detail"),
|
|
275
|
-
description: localizeUtils_1.getLocalizedString("core.createProjectQuestion.option.description.worksInOutlookCopilot"),
|
|
268
|
+
detail: featureFlags_1.isCopilotPluginEnabled()
|
|
269
|
+
? localizeUtils_1.getLocalizedString("core.M365SearchAppOptionItem.copilot.detail")
|
|
270
|
+
: localizeUtils_1.getLocalizedString("core.M365SearchAppOptionItem.detail"),
|
|
276
271
|
};
|
|
277
272
|
}
|
|
278
273
|
static SearchMe() {
|
|
@@ -297,10 +292,11 @@ class CapabilityOptions {
|
|
|
297
292
|
detail: localizeUtils_1.getLocalizedString("core.MessageExtensionOption.detail"),
|
|
298
293
|
};
|
|
299
294
|
}
|
|
300
|
-
static bots(inputs) {
|
|
295
|
+
static bots(inputs, includeAssistant) {
|
|
301
296
|
return [
|
|
302
297
|
CapabilityOptions.basicBot(),
|
|
303
298
|
CapabilityOptions.aiBot(),
|
|
299
|
+
...(includeAssistant === true ? [CapabilityOptions.aiAssistantBot()] : []),
|
|
304
300
|
CapabilityOptions.notificationBot(),
|
|
305
301
|
CapabilityOptions.commandBot(),
|
|
306
302
|
CapabilityOptions.workflowBot(inputs),
|
|
@@ -317,52 +313,35 @@ class CapabilityOptions {
|
|
|
317
313
|
static dotnetCaps(inputs) {
|
|
318
314
|
return [
|
|
319
315
|
...CapabilityOptions.copilotPlugins(),
|
|
320
|
-
...CapabilityOptions.bots(
|
|
316
|
+
...CapabilityOptions.bots(),
|
|
321
317
|
CapabilityOptions.nonSsoTab(),
|
|
322
318
|
CapabilityOptions.tab(),
|
|
323
|
-
...CapabilityOptions.
|
|
319
|
+
...CapabilityOptions.collectMECaps(),
|
|
324
320
|
];
|
|
325
321
|
}
|
|
326
322
|
/**
|
|
327
323
|
* Collect all capabilities for message extension, including dotnet and nodejs.
|
|
328
|
-
* @param filterByFeatureFlag true: filter capabilities by feature flag, false: return all capabilities
|
|
329
324
|
* @returns OptionItem[] capability list
|
|
330
325
|
*/
|
|
331
|
-
static collectMECaps(
|
|
332
|
-
return
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
: [CapabilityOptions.m365SearchMe(), CapabilityOptions.SearchMe()]),
|
|
339
|
-
CapabilityOptions.collectFormMe(),
|
|
340
|
-
]
|
|
341
|
-
: [
|
|
342
|
-
CapabilityOptions.apiMe(),
|
|
343
|
-
CapabilityOptions.linkUnfurling(),
|
|
344
|
-
CapabilityOptions.m365SearchMe(),
|
|
345
|
-
CapabilityOptions.collectFormMe(),
|
|
346
|
-
CapabilityOptions.copilotM365SearchMe(),
|
|
347
|
-
CapabilityOptions.SearchMe(),
|
|
348
|
-
];
|
|
326
|
+
static collectMECaps() {
|
|
327
|
+
return [
|
|
328
|
+
CapabilityOptions.m365SearchMe(),
|
|
329
|
+
CapabilityOptions.collectFormMe(),
|
|
330
|
+
CapabilityOptions.SearchMe(),
|
|
331
|
+
CapabilityOptions.linkUnfurling(),
|
|
332
|
+
];
|
|
349
333
|
}
|
|
350
334
|
static mes(inputs) {
|
|
351
335
|
return inputs !== undefined && getRuntime(inputs) === RuntimeOptions.DotNet().id
|
|
352
336
|
? [
|
|
353
|
-
CapabilityOptions.
|
|
354
|
-
featureFlags_1.isCopilotPluginEnabled()
|
|
355
|
-
? CapabilityOptions.copilotM365SearchMe()
|
|
356
|
-
: CapabilityOptions.SearchMe(),
|
|
337
|
+
CapabilityOptions.SearchMe(),
|
|
357
338
|
CapabilityOptions.collectFormMe(),
|
|
339
|
+
CapabilityOptions.linkUnfurling(),
|
|
358
340
|
]
|
|
359
341
|
: [
|
|
360
|
-
CapabilityOptions.
|
|
361
|
-
CapabilityOptions.linkUnfurling(),
|
|
362
|
-
featureFlags_1.isCopilotPluginEnabled()
|
|
363
|
-
? CapabilityOptions.copilotM365SearchMe()
|
|
364
|
-
: CapabilityOptions.m365SearchMe(),
|
|
342
|
+
CapabilityOptions.m365SearchMe(),
|
|
365
343
|
CapabilityOptions.collectFormMe(),
|
|
344
|
+
CapabilityOptions.linkUnfurling(),
|
|
366
345
|
];
|
|
367
346
|
}
|
|
368
347
|
static copilotPlugins() {
|
|
@@ -377,9 +356,9 @@ class CapabilityOptions {
|
|
|
377
356
|
*/
|
|
378
357
|
static staticAll(inputs) {
|
|
379
358
|
const capabilityOptions = [
|
|
380
|
-
...CapabilityOptions.bots(inputs),
|
|
359
|
+
...CapabilityOptions.bots(inputs, true),
|
|
381
360
|
...CapabilityOptions.tabs(),
|
|
382
|
-
...CapabilityOptions.collectMECaps(
|
|
361
|
+
...CapabilityOptions.collectMECaps(),
|
|
383
362
|
...CapabilityOptions.copilotPlugins(),
|
|
384
363
|
];
|
|
385
364
|
return capabilityOptions;
|
|
@@ -389,9 +368,9 @@ class CapabilityOptions {
|
|
|
389
368
|
*/
|
|
390
369
|
static all(inputs) {
|
|
391
370
|
const capabilityOptions = [
|
|
392
|
-
...CapabilityOptions.bots(inputs),
|
|
371
|
+
...CapabilityOptions.bots(inputs, true),
|
|
393
372
|
...CapabilityOptions.tabs(),
|
|
394
|
-
...CapabilityOptions.collectMECaps(
|
|
373
|
+
...CapabilityOptions.collectMECaps(),
|
|
395
374
|
];
|
|
396
375
|
if (featureFlags_1.isApiCopilotPluginEnabled()) {
|
|
397
376
|
capabilityOptions.push(...CapabilityOptions.copilotPlugins());
|
|
@@ -448,14 +427,6 @@ class CapabilityOptions {
|
|
|
448
427
|
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.copilotPluginAIPluginOption.detail"),
|
|
449
428
|
};
|
|
450
429
|
}
|
|
451
|
-
//API ME
|
|
452
|
-
static apiMe() {
|
|
453
|
-
return {
|
|
454
|
-
id: "api-me",
|
|
455
|
-
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.apiMe.label"),
|
|
456
|
-
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.apiMe.detail"),
|
|
457
|
-
};
|
|
458
|
-
}
|
|
459
430
|
static aiBot() {
|
|
460
431
|
return {
|
|
461
432
|
id: "ai-bot",
|
|
@@ -464,6 +435,14 @@ class CapabilityOptions {
|
|
|
464
435
|
description: localizeUtils_1.getLocalizedString("core.createProjectQuestion.option.description.preview"),
|
|
465
436
|
};
|
|
466
437
|
}
|
|
438
|
+
static aiAssistantBot() {
|
|
439
|
+
return {
|
|
440
|
+
id: "ai-assistant-bot",
|
|
441
|
+
label: localizeUtils_1.getLocalizedString("core.aiAssistantBotOption.label"),
|
|
442
|
+
detail: localizeUtils_1.getLocalizedString("core.aiAssistantBotOption.detail"),
|
|
443
|
+
description: localizeUtils_1.getLocalizedString("core.createProjectQuestion.option.description.preview"),
|
|
444
|
+
};
|
|
445
|
+
}
|
|
467
446
|
}
|
|
468
447
|
exports.CapabilityOptions = CapabilityOptions;
|
|
469
448
|
function capabilityQuestion() {
|
|
@@ -489,7 +468,7 @@ function capabilityQuestion() {
|
|
|
489
468
|
cliDescription: "Specifies the Microsoft Teams App capability.",
|
|
490
469
|
cliName: questionNames_1.CliQuestionName.Capability,
|
|
491
470
|
cliShortName: "c",
|
|
492
|
-
cliChoiceListCommand: "
|
|
471
|
+
cliChoiceListCommand: "teamsapp list templates",
|
|
493
472
|
type: "singleSelect",
|
|
494
473
|
staticOptions: CapabilityOptions.staticAll(),
|
|
495
474
|
dynamicOptions: (inputs) => {
|
|
@@ -512,7 +491,7 @@ function capabilityQuestion() {
|
|
|
512
491
|
// nodejs capabilities
|
|
513
492
|
const projectType = inputs[questionNames_1.QuestionNames.ProjectType];
|
|
514
493
|
if (projectType === ProjectTypeOptions.bot().id) {
|
|
515
|
-
return CapabilityOptions.bots(inputs);
|
|
494
|
+
return CapabilityOptions.bots(inputs, true);
|
|
516
495
|
}
|
|
517
496
|
else if (projectType === ProjectTypeOptions.tab().id) {
|
|
518
497
|
return CapabilityOptions.tabs();
|
|
@@ -541,7 +520,23 @@ function capabilityQuestion() {
|
|
|
541
520
|
};
|
|
542
521
|
}
|
|
543
522
|
exports.capabilityQuestion = capabilityQuestion;
|
|
544
|
-
class
|
|
523
|
+
class MeArchitectureOptions {
|
|
524
|
+
static botMe() {
|
|
525
|
+
return {
|
|
526
|
+
id: "bot",
|
|
527
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.botMessageExtension.label"),
|
|
528
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.botMessageExtension.detail"),
|
|
529
|
+
description: localizeUtils_1.getLocalizedString("core.createProjectQuestion.option.description.worksInOutlook"),
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
static botPlugin() {
|
|
533
|
+
return {
|
|
534
|
+
id: "bot-plugin",
|
|
535
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.botMessageExtension.label"),
|
|
536
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.botMessageExtension.detail"),
|
|
537
|
+
description: localizeUtils_1.getLocalizedString("core.createProjectQuestion.option.description.worksInOutlookCopilot"),
|
|
538
|
+
};
|
|
539
|
+
}
|
|
545
540
|
static newApi() {
|
|
546
541
|
return {
|
|
547
542
|
id: "new-api",
|
|
@@ -557,23 +552,40 @@ class ApiMeOptions {
|
|
|
557
552
|
};
|
|
558
553
|
}
|
|
559
554
|
static all() {
|
|
560
|
-
return [
|
|
555
|
+
return [
|
|
556
|
+
MeArchitectureOptions.newApi(),
|
|
557
|
+
MeArchitectureOptions.apiSpec(),
|
|
558
|
+
featureFlags_1.isCopilotPluginEnabled() ? MeArchitectureOptions.botPlugin() : MeArchitectureOptions.botMe(),
|
|
559
|
+
];
|
|
560
|
+
}
|
|
561
|
+
static staticAll() {
|
|
562
|
+
return [
|
|
563
|
+
MeArchitectureOptions.newApi(),
|
|
564
|
+
MeArchitectureOptions.apiSpec(),
|
|
565
|
+
MeArchitectureOptions.botPlugin(),
|
|
566
|
+
MeArchitectureOptions.botMe(),
|
|
567
|
+
];
|
|
561
568
|
}
|
|
562
569
|
}
|
|
563
|
-
exports.
|
|
564
|
-
function
|
|
570
|
+
exports.MeArchitectureOptions = MeArchitectureOptions;
|
|
571
|
+
function meArchitectureQuestion() {
|
|
565
572
|
return {
|
|
566
|
-
name: questionNames_1.QuestionNames.
|
|
567
|
-
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.
|
|
573
|
+
name: questionNames_1.QuestionNames.MeArchitectureType,
|
|
574
|
+
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.meArchitecture.title"),
|
|
575
|
+
cliDescription: "Architecture of Search Based Message Extension.",
|
|
576
|
+
cliShortName: "m",
|
|
568
577
|
type: "singleSelect",
|
|
569
|
-
staticOptions:
|
|
570
|
-
|
|
578
|
+
staticOptions: MeArchitectureOptions.staticAll(),
|
|
579
|
+
dynamicOptions: (inputs) => {
|
|
580
|
+
return MeArchitectureOptions.all();
|
|
581
|
+
},
|
|
582
|
+
default: MeArchitectureOptions.newApi().id,
|
|
571
583
|
placeholder: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.copilotPlugin.placeholder"),
|
|
572
584
|
forgetLastValue: true,
|
|
573
585
|
skipSingleOption: true,
|
|
574
586
|
};
|
|
575
587
|
}
|
|
576
|
-
exports.
|
|
588
|
+
exports.meArchitectureQuestion = meArchitectureQuestion;
|
|
577
589
|
var HostType;
|
|
578
590
|
(function (HostType) {
|
|
579
591
|
HostType["AppService"] = "app-service";
|
|
@@ -778,6 +790,7 @@ function SPFxFrameworkQuestion() {
|
|
|
778
790
|
default: "react",
|
|
779
791
|
};
|
|
780
792
|
}
|
|
793
|
+
exports.SPFxFrameworkQuestion = SPFxFrameworkQuestion;
|
|
781
794
|
function SPFxWebpartNameQuestion() {
|
|
782
795
|
return {
|
|
783
796
|
type: "text",
|
|
@@ -903,7 +916,7 @@ function programmingLanguageQuestion() {
|
|
|
903
916
|
const programmingLanguageQuestion = {
|
|
904
917
|
name: questionNames_1.QuestionNames.ProgrammingLanguage,
|
|
905
918
|
cliShortName: "l",
|
|
906
|
-
title: "Programming Language
|
|
919
|
+
title: "Programming Language",
|
|
907
920
|
type: "singleSelect",
|
|
908
921
|
staticOptions: [
|
|
909
922
|
{ id: ProgrammingLanguage.JS, label: "JavaScript" },
|
|
@@ -1017,21 +1030,41 @@ function sampleSelectQuestion() {
|
|
|
1017
1030
|
name: questionNames_1.QuestionNames.Samples,
|
|
1018
1031
|
cliName: "sample-name",
|
|
1019
1032
|
cliDescription: "Specifies the Microsoft Teams App sample name.",
|
|
1020
|
-
cliChoiceListCommand: "
|
|
1033
|
+
cliChoiceListCommand: "teamsapp list samples",
|
|
1021
1034
|
skipValidation: true,
|
|
1022
1035
|
cliType: "argument",
|
|
1023
1036
|
title: localizeUtils_1.getLocalizedString("core.SampleSelect.title"),
|
|
1024
|
-
staticOptions:
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1037
|
+
staticOptions: [
|
|
1038
|
+
"hello-world-tab-with-backend",
|
|
1039
|
+
"graph-toolkit-contact-exporter",
|
|
1040
|
+
"bot-sso",
|
|
1041
|
+
"todo-list-SPFx",
|
|
1042
|
+
"hello-world-in-meeting",
|
|
1043
|
+
"todo-list-with-Azure-backend-M365",
|
|
1044
|
+
"NPM-search-connector-M365",
|
|
1045
|
+
"bot-proactive-messaging-teamsfx",
|
|
1046
|
+
"adaptive-card-notification",
|
|
1047
|
+
"incoming-webhook-notification",
|
|
1048
|
+
"stocks-update-notification-bot",
|
|
1049
|
+
"query-org-user-with-message-extension-sso",
|
|
1050
|
+
"team-central-dashboard",
|
|
1051
|
+
"graph-connector-app",
|
|
1052
|
+
"graph-toolkit-one-productivity-hub",
|
|
1053
|
+
"todo-list-with-Azure-backend",
|
|
1054
|
+
"share-now",
|
|
1055
|
+
"hello-world-teams-tab-and-outlook-add-in",
|
|
1056
|
+
"outlook-add-in-set-signature",
|
|
1057
|
+
"developer-assist-dashboard",
|
|
1058
|
+
"live-share-dice-roller",
|
|
1059
|
+
"teams-chef-bot",
|
|
1060
|
+
"spfx-productivity-dashboard",
|
|
1061
|
+
"react-retail-dashboard",
|
|
1062
|
+
"sso-enabled-tab-via-apim-proxy",
|
|
1063
|
+
"large-scale-notification",
|
|
1064
|
+
"graph-connector-bot",
|
|
1065
|
+
],
|
|
1032
1066
|
dynamicOptions: async () => {
|
|
1033
|
-
await samples_1.sampleProvider.
|
|
1034
|
-
return samples_1.sampleProvider.SampleCollection.samples.map((sample) => {
|
|
1067
|
+
return (await samples_1.sampleProvider.SampleCollection).samples.map((sample) => {
|
|
1035
1068
|
return {
|
|
1036
1069
|
id: sample.id,
|
|
1037
1070
|
label: sample.title,
|
|
@@ -1244,10 +1277,10 @@ function apiSpecLocationQuestion(includeExistingAPIs = true) {
|
|
|
1244
1277
|
step: 2,
|
|
1245
1278
|
validation: {
|
|
1246
1279
|
validFunc: (input, inputs) => {
|
|
1247
|
-
const result = util_1.isValidHttpUrl(input)
|
|
1280
|
+
const result = util_1.isValidHttpUrl(input.trim())
|
|
1248
1281
|
? undefined
|
|
1249
1282
|
: (inputs === null || inputs === void 0 ? void 0 : inputs.platform) === teamsfx_api_1.Platform.CLI
|
|
1250
|
-
? "Please enter a valid URL or
|
|
1283
|
+
? "Please enter a valid HTTP URL without authentication to access your OpenAPI description document or enter a file path of your local OpenAPI description document."
|
|
1251
1284
|
: localizeUtils_1.getLocalizedString("core.createProjectQuestion.invalidUrl.message");
|
|
1252
1285
|
return Promise.resolve(result);
|
|
1253
1286
|
},
|
|
@@ -1262,8 +1295,8 @@ function apiSpecLocationQuestion(includeExistingAPIs = true) {
|
|
|
1262
1295
|
},
|
|
1263
1296
|
validation: {
|
|
1264
1297
|
validFunc: async (input, inputs) => {
|
|
1265
|
-
if (!util_1.isValidHttpUrl(input) && !(await fs_extra_1.default.pathExists(input))) {
|
|
1266
|
-
return "Please enter a valid URL or
|
|
1298
|
+
if (!util_1.isValidHttpUrl(input.trim()) && !(await fs_extra_1.default.pathExists(input.trim()))) {
|
|
1299
|
+
return "Please enter a valid HTTP URL without authentication to access your OpenAPI description document or enter a file path of your local OpenAPI description document.";
|
|
1267
1300
|
}
|
|
1268
1301
|
return await validationOnAccept(input, inputs);
|
|
1269
1302
|
},
|
|
@@ -1341,18 +1374,38 @@ function apiOperationQuestion(includeExistingAPIs = true) {
|
|
|
1341
1374
|
type: "multiSelect",
|
|
1342
1375
|
name: questionNames_1.QuestionNames.ApiOperation,
|
|
1343
1376
|
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.apiSpec.operation.title"),
|
|
1344
|
-
cliDescription: "
|
|
1377
|
+
cliDescription: "Select Operation(s) Teams Can Interact with.",
|
|
1345
1378
|
cliShortName: "o",
|
|
1346
1379
|
placeholder: includeExistingAPIs
|
|
1347
|
-
?
|
|
1380
|
+
? featureFlags_1.isApiKeyEnabled()
|
|
1381
|
+
? localizeUtils_1.getLocalizedString("core.createProjectQuestion.apiSpec.operation.apikey.placeholder")
|
|
1382
|
+
: localizeUtils_1.getLocalizedString("core.createProjectQuestion.apiSpec.operation.placeholder")
|
|
1348
1383
|
: localizeUtils_1.getLocalizedString("core.createProjectQuestion.apiSpec.operation.placeholder.skipExisting"),
|
|
1349
1384
|
forgetLastValue: true,
|
|
1350
1385
|
staticOptions: [],
|
|
1351
1386
|
validation: {
|
|
1352
|
-
validFunc: (input) => {
|
|
1387
|
+
validFunc: (input, inputs) => {
|
|
1353
1388
|
if (input.length < 1 || input.length > 10) {
|
|
1354
1389
|
return localizeUtils_1.getLocalizedString("core.createProjectQuestion.apiSpec.operation.invalidMessage", input.length, 10);
|
|
1355
1390
|
}
|
|
1391
|
+
const operations = inputs === null || inputs === void 0 ? void 0 : inputs.supportedApisFromApiSpec;
|
|
1392
|
+
const authNames = new Set();
|
|
1393
|
+
const serverUrls = new Set();
|
|
1394
|
+
for (const inputItem of input) {
|
|
1395
|
+
const operation = operations.find((op) => op.id === inputItem);
|
|
1396
|
+
if (operation) {
|
|
1397
|
+
if (operation.data.authName) {
|
|
1398
|
+
authNames.add(operation.data.authName);
|
|
1399
|
+
serverUrls.add(operation.data.serverUrl);
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1403
|
+
if (authNames.size > 1) {
|
|
1404
|
+
return localizeUtils_1.getLocalizedString("core.createProjectQuestion.apiSpec.operation.multipleAuth", Array.from(authNames).join(", "));
|
|
1405
|
+
}
|
|
1406
|
+
if (serverUrls.size > 1) {
|
|
1407
|
+
return localizeUtils_1.getLocalizedString("core.createProjectQuestion.apiSpec.operation.multipleServer", Array.from(serverUrls).join(", "));
|
|
1408
|
+
}
|
|
1356
1409
|
},
|
|
1357
1410
|
},
|
|
1358
1411
|
dynamicOptions: (inputs) => {
|
|
@@ -1423,9 +1476,9 @@ function capabilitySubTree() {
|
|
|
1423
1476
|
data: officeAddinHostingQuestion(),
|
|
1424
1477
|
},
|
|
1425
1478
|
{
|
|
1426
|
-
//
|
|
1427
|
-
condition: { equals: CapabilityOptions.
|
|
1428
|
-
data:
|
|
1479
|
+
// Search ME sub-tree
|
|
1480
|
+
condition: { equals: CapabilityOptions.m365SearchMe().id },
|
|
1481
|
+
data: meArchitectureQuestion(),
|
|
1429
1482
|
},
|
|
1430
1483
|
{
|
|
1431
1484
|
// API ME from API Spec or Copilot plugin from API spec or AI Plugin
|
|
@@ -1433,7 +1486,7 @@ function capabilitySubTree() {
|
|
|
1433
1486
|
return (inputs[questionNames_1.QuestionNames.Capabilities] === CapabilityOptions.copilotPluginApiSpec().id ||
|
|
1434
1487
|
inputs[questionNames_1.QuestionNames.Capabilities] ===
|
|
1435
1488
|
CapabilityOptions.copilotPluginOpenAIPlugin().id ||
|
|
1436
|
-
inputs[questionNames_1.QuestionNames.
|
|
1489
|
+
inputs[questionNames_1.QuestionNames.MeArchitectureType] === MeArchitectureOptions.apiSpec().id);
|
|
1437
1490
|
},
|
|
1438
1491
|
data: { type: "group", name: questionNames_1.QuestionNames.CopilotPluginExistingApi },
|
|
1439
1492
|
children: [
|
|
@@ -1441,7 +1494,7 @@ function capabilitySubTree() {
|
|
|
1441
1494
|
condition: (inputs) => {
|
|
1442
1495
|
return (inputs[questionNames_1.QuestionNames.Capabilities] ===
|
|
1443
1496
|
CapabilityOptions.copilotPluginApiSpec().id ||
|
|
1444
|
-
inputs[questionNames_1.QuestionNames.
|
|
1497
|
+
inputs[questionNames_1.QuestionNames.MeArchitectureType] === MeArchitectureOptions.apiSpec().id);
|
|
1445
1498
|
},
|
|
1446
1499
|
data: apiSpecLocationQuestion(),
|
|
1447
1500
|
},
|
|
@@ -1462,7 +1515,7 @@ function capabilitySubTree() {
|
|
|
1462
1515
|
inputs[questionNames_1.QuestionNames.Capabilities] !== CapabilityOptions.copilotPluginApiSpec().id &&
|
|
1463
1516
|
inputs[questionNames_1.QuestionNames.Capabilities] !==
|
|
1464
1517
|
CapabilityOptions.copilotPluginOpenAIPlugin().id &&
|
|
1465
|
-
inputs[questionNames_1.QuestionNames.
|
|
1518
|
+
inputs[questionNames_1.QuestionNames.MeArchitectureType] !== MeArchitectureOptions.apiSpec().id);
|
|
1466
1519
|
},
|
|
1467
1520
|
},
|
|
1468
1521
|
{
|