@microsoft/teamsfx-core 2.0.8 → 2.0.9-alpha.20d61baa8.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/azureUtils.d.ts +3 -0
- package/build/common/azureUtils.d.ts.map +1 -0
- package/build/common/azureUtils.js +50 -0
- package/build/common/azureUtils.js.map +1 -0
- package/build/common/constants.d.ts +8 -0
- package/build/common/constants.d.ts.map +1 -1
- package/build/common/constants.js +32 -1
- package/build/common/constants.js.map +1 -1
- package/build/common/globalState.js +3 -3
- package/build/common/local/taskDefinition.js +3 -3
- package/build/common/local/taskDefinition.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 +10 -10
- package/build/common/m365/launchHelper.js.map +1 -1
- package/build/common/m365/packageService.d.ts.map +1 -1
- package/build/common/m365/packageService.js +9 -9
- package/build/common/m365/packageService.js.map +1 -1
- package/build/common/requestUtils.d.ts +4 -0
- package/build/common/requestUtils.d.ts.map +1 -0
- package/build/common/requestUtils.js +52 -0
- package/build/common/requestUtils.js.map +1 -0
- package/build/common/samples.d.ts +6 -1
- package/build/common/samples.d.ts.map +1 -1
- package/build/common/samples.js +3 -3
- package/build/common/samples.js.map +1 -1
- package/build/common/stringUtils.d.ts +5 -0
- package/build/common/stringUtils.d.ts.map +1 -1
- package/build/common/stringUtils.js +42 -1
- package/build/common/stringUtils.js.map +1 -1
- package/build/common/templates-config.json +2 -2
- package/build/common/tools.d.ts +1 -21
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +6 -190
- package/build/common/tools.js.map +1 -1
- package/build/common/utils.d.ts +1 -1
- package/build/common/utils.d.ts.map +1 -1
- package/build/common/utils.js +5 -5
- package/build/common/utils.js.map +1 -1
- package/build/component/configManager/validator.js +1 -1
- package/build/component/configManager/validator.js.map +1 -1
- package/build/component/constants.d.ts +3 -3
- package/build/component/constants.d.ts.map +1 -1
- package/build/component/constants.js +3 -3
- package/build/component/constants.js.map +1 -1
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +61 -59
- package/build/component/coordinator/index.js.map +1 -1
- package/build/component/developerPortalScaffoldUtils.d.ts +0 -5
- package/build/component/developerPortalScaffoldUtils.d.ts.map +1 -1
- package/build/component/developerPortalScaffoldUtils.js +23 -52
- package/build/component/developerPortalScaffoldUtils.js.map +1 -1
- package/build/component/driver/aad/create.d.ts.map +1 -1
- package/build/component/driver/aad/create.js +17 -18
- package/build/component/driver/aad/create.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/buildAadManifest.d.ts +1 -1
- package/build/component/driver/aad/utility/buildAadManifest.d.ts.map +1 -1
- package/build/component/driver/aad/utility/buildAadManifest.js +11 -11
- package/build/component/driver/aad/utility/buildAadManifest.js.map +1 -1
- package/build/component/driver/add/addWebPart.d.ts +2 -2
- package/build/component/driver/add/addWebPart.d.ts.map +1 -1
- package/build/component/driver/add/addWebPart.js +27 -27
- package/build/component/driver/add/addWebPart.js.map +1 -1
- package/build/component/driver/apiKey/create.d.ts.map +1 -1
- package/build/component/driver/apiKey/create.js +14 -13
- package/build/component/driver/apiKey/create.js.map +1 -1
- package/build/component/driver/arm/util/bicepChecker.d.ts.map +1 -1
- package/build/component/driver/arm/util/bicepChecker.js +20 -2
- package/build/component/driver/arm/util/bicepChecker.js.map +1 -1
- package/build/component/driver/arm/util/handleError.js +2 -2
- package/build/component/driver/arm/util/handleError.js.map +1 -1
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.d.ts +4 -4
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.js +13 -13
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.js.map +1 -1
- package/build/component/driver/deploy/spfx/deployDriver.d.ts +1 -1
- package/build/component/driver/deploy/spfx/deployDriver.d.ts.map +1 -1
- package/build/component/driver/deploy/spfx/deployDriver.js +19 -18
- package/build/component/driver/deploy/spfx/deployDriver.js.map +1 -1
- package/build/component/driver/oauth/create.d.ts +1 -1
- package/build/component/driver/oauth/create.d.ts.map +1 -1
- package/build/component/driver/oauth/create.js +21 -21
- package/build/component/driver/oauth/create.js.map +1 -1
- package/build/component/driver/teamsApp/appStudio.d.ts +1 -1
- package/build/component/driver/teamsApp/appStudio.d.ts.map +1 -1
- package/build/component/driver/teamsApp/appStudio.js +19 -20
- package/build/component/driver/teamsApp/appStudio.js.map +1 -1
- package/build/component/driver/teamsApp/clients/appStudioClient.js +4 -4
- 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 +13 -13
- package/build/component/driver/teamsApp/configure.js.map +1 -1
- package/build/component/driver/teamsApp/create.js +1 -2
- package/build/component/driver/teamsApp/create.js.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 +13 -14
- package/build/component/driver/teamsApp/publishAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/teamsappMgr.d.ts.map +1 -1
- package/build/component/driver/teamsApp/teamsappMgr.js +2 -3
- package/build/component/driver/teamsApp/teamsappMgr.js.map +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.js +32 -32
- package/build/component/driver/teamsApp/utils/ManifestUtils.js.map +1 -1
- package/build/component/driver/teamsApp/utils/utils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/utils.js.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.d.ts +2 -5
- package/build/component/driver/teamsApp/validateAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.js +14 -15
- package/build/component/driver/teamsApp/validateAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/validateTestCases.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validateTestCases.js +3 -3
- package/build/component/driver/teamsApp/validateTestCases.js.map +1 -1
- package/build/component/driver/util/utils.d.ts +3 -0
- package/build/component/driver/util/utils.d.ts.map +1 -1
- package/build/component/driver/util/utils.js +16 -1
- package/build/component/driver/util/utils.js.map +1 -1
- package/build/component/generator/copilotPlugin/generator.d.ts +10 -1
- package/build/component/generator/copilotPlugin/generator.d.ts.map +1 -1
- package/build/component/generator/copilotPlugin/generator.js +234 -83
- package/build/component/generator/copilotPlugin/generator.js.map +1 -1
- package/build/component/generator/copilotPlugin/helper.d.ts +2 -2
- package/build/component/generator/copilotPlugin/helper.d.ts.map +1 -1
- package/build/component/generator/copilotPlugin/helper.js +37 -24
- package/build/component/generator/copilotPlugin/helper.js.map +1 -1
- package/build/component/generator/generator.d.ts.map +1 -1
- package/build/component/generator/generator.js +7 -7
- package/build/component/generator/generator.js.map +1 -1
- package/build/component/generator/generatorAction.d.ts +1 -1
- package/build/component/generator/generatorAction.d.ts.map +1 -1
- package/build/component/generator/generatorAction.js.map +1 -1
- package/build/component/generator/generatorProvider.d.ts.map +1 -1
- package/build/component/generator/generatorProvider.js +6 -2
- package/build/component/generator/generatorProvider.js.map +1 -1
- package/build/component/generator/officeAddin/generator.d.ts +2 -2
- package/build/component/generator/officeAddin/generator.d.ts.map +1 -1
- package/build/component/generator/officeAddin/generator.js +37 -36
- package/build/component/generator/officeAddin/generator.js.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.d.ts +5 -0
- package/build/component/generator/officeAddin/helperMethods.d.ts.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.js +37 -0
- package/build/component/generator/officeAddin/helperMethods.js.map +1 -1
- package/build/component/generator/officeXMLAddin/generator.d.ts +9 -1
- package/build/component/generator/officeXMLAddin/generator.d.ts.map +1 -1
- package/build/component/generator/officeXMLAddin/generator.js +74 -11
- package/build/component/generator/officeXMLAddin/generator.js.map +1 -1
- package/build/component/generator/officeXMLAddin/projectConfig.d.ts +2 -4
- package/build/component/generator/officeXMLAddin/projectConfig.d.ts.map +1 -1
- package/build/component/generator/officeXMLAddin/projectConfig.js +1 -11
- package/build/component/generator/officeXMLAddin/projectConfig.js.map +1 -1
- package/build/component/generator/spfx/spfxGenerator.d.ts +2 -2
- package/build/component/generator/spfx/spfxGenerator.d.ts.map +1 -1
- package/build/component/generator/spfx/spfxGenerator.js +54 -55
- package/build/component/generator/spfx/spfxGenerator.js.map +1 -1
- package/build/component/generator/templates/ssrTabGenerator.d.ts.map +1 -1
- package/build/component/generator/templates/ssrTabGenerator.js +5 -5
- package/build/component/generator/templates/ssrTabGenerator.js.map +1 -1
- package/build/component/generator/templates/templateGenerator.d.ts +3 -3
- package/build/component/generator/templates/templateGenerator.d.ts.map +1 -1
- package/build/component/generator/templates/templateGenerator.js +4 -6
- package/build/component/generator/templates/templateGenerator.js.map +1 -1
- package/build/component/generator/templates/templateNames.js +108 -109
- package/build/component/generator/templates/templateNames.js.map +1 -1
- package/build/component/generator/templates/templateReplaceMap.js +9 -9
- package/build/component/generator/templates/templateReplaceMap.js.map +1 -1
- package/build/component/generator/utils.d.ts +1 -10
- package/build/component/generator/utils.d.ts.map +1 -1
- package/build/component/generator/utils.js +18 -61
- package/build/component/generator/utils.js.map +1 -1
- package/build/component/middleware/envMW.js +2 -2
- package/build/component/middleware/envMW.js.map +1 -1
- package/build/component/migrate.d.ts +8 -0
- package/build/component/migrate.d.ts.map +1 -1
- package/build/component/migrate.js +62 -8
- package/build/component/migrate.js.map +1 -1
- package/build/component/provisionUtils.js +2 -2
- package/build/component/provisionUtils.js.map +1 -1
- package/build/component/resource/botService/botRegistration/botFrameworkRegistration.d.ts +1 -1
- package/build/component/resource/botService/botRegistration/botFrameworkRegistration.d.ts.map +1 -1
- package/build/component/resource/botService/botRegistration/botFrameworkRegistration.js +5 -2
- package/build/component/resource/botService/botRegistration/botFrameworkRegistration.js.map +1 -1
- package/build/component/utils/ResourceGroupHelper.d.ts +10 -2
- package/build/component/utils/ResourceGroupHelper.d.ts.map +1 -1
- package/build/component/utils/ResourceGroupHelper.js +134 -41
- package/build/component/utils/ResourceGroupHelper.js.map +1 -1
- package/build/component/utils.d.ts +1 -10
- package/build/component/utils.d.ts.map +1 -1
- package/build/component/utils.js +1 -120
- package/build/component/utils.js.map +1 -1
- package/build/core/FxCore.d.ts +2 -2
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.js +57 -56
- package/build/core/FxCore.js.map +1 -1
- package/build/core/callback.d.ts +2 -2
- package/build/core/callback.d.ts.map +1 -1
- package/build/core/callback.js.map +1 -1
- package/build/core/collaborator.js +19 -19
- package/build/core/collaborator.js.map +1 -1
- package/build/core/middleware/concurrentLocker.js +7 -7
- package/build/core/middleware/concurrentLocker.js.map +1 -1
- package/build/core/middleware/projectMigratorV3.d.ts +1 -0
- package/build/core/middleware/projectMigratorV3.d.ts.map +1 -1
- package/build/core/middleware/projectMigratorV3.js +11 -3
- package/build/core/middleware/projectMigratorV3.js.map +1 -1
- package/build/core/middleware/utils/appYmlGenerator.d.ts +1 -0
- package/build/core/middleware/utils/appYmlGenerator.d.ts.map +1 -1
- package/build/core/middleware/utils/appYmlGenerator.js +10 -3
- package/build/core/middleware/utils/appYmlGenerator.js.map +1 -1
- package/build/core/middleware/videoFilterAppBlocker.d.ts +2 -0
- package/build/core/middleware/videoFilterAppBlocker.d.ts.map +1 -1
- package/build/core/middleware/videoFilterAppBlocker.js +20 -3
- package/build/core/middleware/videoFilterAppBlocker.js.map +1 -1
- package/build/error/common.d.ts +1 -0
- package/build/error/common.d.ts.map +1 -1
- package/build/error/common.js +9 -1
- package/build/error/common.js.map +1 -1
- package/build/index.d.ts +30 -21
- package/build/index.d.ts.map +1 -1
- package/build/index.js +41 -32
- package/build/index.js.map +1 -1
- package/build/question/constants.d.ts +249 -0
- package/build/question/constants.d.ts.map +1 -1
- package/build/question/constants.js +1090 -1
- package/build/question/constants.js.map +1 -1
- package/build/question/create.d.ts +9 -147
- package/build/question/create.d.ts.map +1 -1
- package/build/question/create.js +264 -1145
- package/build/question/create.js.map +1 -1
- package/build/question/index.d.ts +1 -3
- package/build/question/index.d.ts.map +1 -1
- package/build/question/index.js +2 -6
- package/build/question/index.js.map +1 -1
- package/build/question/other.d.ts +2 -28
- package/build/question/other.d.ts.map +1 -1
- package/build/question/other.js +65 -270
- package/build/question/other.js.map +1 -1
- package/package.json +5 -4
- package/resource/package.nls.json +4 -3
- package/resource/yaml-schema/v1.6/yaml.schema.json +1829 -0
- package/resource/yaml-schema/yaml.schema.json +46 -1
- package/templates/core/v3Migration/js.ts.app.local.yml +3 -3
- package/templates/fallback/common.zip +0 -0
- package/templates/fallback/csharp.zip +0 -0
- package/templates/fallback/js.zip +0 -0
- package/templates/fallback/python.zip +0 -0
- package/templates/fallback/ts.zip +0 -0
- package/templates/plugins/resource/aad/auth/V3/aad.manifest.template.json +6 -0
- package/templates/plugins/resource/aad/manifest/aad.template.json +6 -0
- package/templates/plugins/resource/aad/manifest/bot/aad.manifest.template.json +6 -0
- package/templates/plugins/resource/aad/manifest/tab/aad.manifest.template.json +6 -0
- package/build/common/projectSettingsHelperV3.d.ts +0 -2
- package/build/common/projectSettingsHelperV3.d.ts.map +0 -1
- package/build/common/projectSettingsHelperV3.js +0 -15
- package/build/common/projectSettingsHelperV3.js.map +0 -1
- package/build/component/workflow.d.ts +0 -4
- package/build/component/workflow.d.ts.map +0 -1
- package/build/component/workflow.js +0 -18
- package/build/component/workflow.js.map +0 -1
- package/build/question/questionNames.d.ts +0 -78
- package/build/question/questionNames.d.ts.map +0 -1
- package/build/question/questionNames.js +0 -85
- package/build/question/questionNames.js.map +0 -1
|
@@ -2,7 +2,99 @@
|
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
3
|
// Licensed under the MIT license.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.capabilitiesHavePythonOption = exports.copilotPluginOptionIds = exports.copilotPluginNewApiOptionId = exports.copilotPluginExistingApiOptionIds = exports.copilotPluginOpenAIPluginOptionId = exports.copilotPluginApiSpecOptionId = void 0;
|
|
5
|
+
exports.HubOptions = exports.HubTypes = exports.TeamsAppValidationOptions = exports.PluginAvailabilityOptions = exports.recommendedLocations = exports.CustomCopilotAssistantOptions = exports.CustomCopilotRagOptions = exports.SPFxVersionOptionIds = exports.NotificationTriggerOptions = exports.NotificationTriggers = exports.HostType = exports.MeArchitectureOptions = exports.ApiMessageExtensionAuthOptions = exports.OfficeAddinHostOptions = exports.CapabilityOptions = exports.ProjectTypeOptions = exports.ScratchOptions = exports.getRuntime = exports.RuntimeOptions = exports.capabilitiesHavePythonOption = exports.copilotPluginOptionIds = exports.copilotPluginNewApiOptionId = exports.copilotPluginExistingApiOptionIds = exports.copilotPluginOpenAIPluginOptionId = exports.copilotPluginApiSpecOptionId = exports.ProgrammingLanguage = exports.CliQuestionName = exports.AppNamePattern = exports.QuestionNames = void 0;
|
|
6
|
+
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
7
|
+
const featureFlags_1 = require("../common/featureFlags");
|
|
8
|
+
const localizeUtils_1 = require("../common/localizeUtils");
|
|
9
|
+
const projectConfig_1 = require("../component/generator/officeXMLAddin/projectConfig");
|
|
10
|
+
var QuestionNames;
|
|
11
|
+
(function (QuestionNames) {
|
|
12
|
+
QuestionNames["Scratch"] = "scratch";
|
|
13
|
+
QuestionNames["SctatchYes"] = "scratch-yes";
|
|
14
|
+
QuestionNames["AppName"] = "app-name";
|
|
15
|
+
QuestionNames["Folder"] = "folder";
|
|
16
|
+
QuestionNames["ProjectPath"] = "projectPath";
|
|
17
|
+
QuestionNames["ProgrammingLanguage"] = "programming-language";
|
|
18
|
+
QuestionNames["ProjectType"] = "project-type";
|
|
19
|
+
QuestionNames["Capabilities"] = "capabilities";
|
|
20
|
+
QuestionNames["BotTrigger"] = "bot-host-type-trigger";
|
|
21
|
+
QuestionNames["Runtime"] = "runtime";
|
|
22
|
+
QuestionNames["SPFxSolution"] = "spfx-solution";
|
|
23
|
+
QuestionNames["SPFxInstallPackage"] = "spfx-install-latest-package";
|
|
24
|
+
QuestionNames["SPFxFramework"] = "spfx-framework-type";
|
|
25
|
+
QuestionNames["SPFxWebpartName"] = "spfx-webpart-name";
|
|
26
|
+
QuestionNames["SPFxWebpartDesc"] = "spfx-webpart-desp";
|
|
27
|
+
QuestionNames["SPFxFolder"] = "spfx-folder";
|
|
28
|
+
QuestionNames["OfficeAddinFolder"] = "addin-project-folder";
|
|
29
|
+
QuestionNames["OfficeAddinManifest"] = "addin-project-manifest";
|
|
30
|
+
QuestionNames["OfficeAddinTemplate"] = "addin-template-select";
|
|
31
|
+
QuestionNames["OfficeAddinHost"] = "addin-host";
|
|
32
|
+
QuestionNames["OfficeAddinImport"] = "addin-import";
|
|
33
|
+
QuestionNames["OfficeAddinFramework"] = "office-addin-framework-type";
|
|
34
|
+
QuestionNames["Samples"] = "samples";
|
|
35
|
+
QuestionNames["ReplaceContentUrl"] = "replaceContentUrl";
|
|
36
|
+
QuestionNames["ReplaceWebsiteUrl"] = "replaceWebsiteUrl";
|
|
37
|
+
QuestionNames["ReplaceBotIds"] = "replaceBotIds";
|
|
38
|
+
QuestionNames["SafeProjectName"] = "safeProjectName";
|
|
39
|
+
QuestionNames["RepalceTabUrl"] = "tdp-tab-url";
|
|
40
|
+
QuestionNames["ValidateMethod"] = "validate-method";
|
|
41
|
+
QuestionNames["AppPackagePath"] = "appPackagePath";
|
|
42
|
+
QuestionNames["CopilotPluginExistingApi"] = "copilot-plugin-existing-api";
|
|
43
|
+
QuestionNames["ApiSpecLocation"] = "openapi-spec-location";
|
|
44
|
+
QuestionNames["OpenAIPluginManifest"] = "openai-plugin-manifest";
|
|
45
|
+
QuestionNames["ApiOperation"] = "api-operation";
|
|
46
|
+
QuestionNames["MeArchitectureType"] = "me-architecture";
|
|
47
|
+
QuestionNames["ApiSpecApiKey"] = "api-key";
|
|
48
|
+
QuestionNames["ApiSpecApiKeyConfirm"] = "api-key-confirm";
|
|
49
|
+
QuestionNames["ApiMEAuth"] = "api-me-auth";
|
|
50
|
+
QuestionNames["OauthClientSecret"] = "oauth-client-secret";
|
|
51
|
+
QuestionNames["OauthClientId"] = "oauth-client-id";
|
|
52
|
+
QuestionNames["OauthConfirm"] = "oauth-confirm";
|
|
53
|
+
QuestionNames["CustomCopilotRag"] = "custom-copilot-rag";
|
|
54
|
+
QuestionNames["CustomCopilotAssistant"] = "custom-copilot-agent";
|
|
55
|
+
QuestionNames["LLMService"] = "llm-service";
|
|
56
|
+
QuestionNames["OpenAIKey"] = "openai-key";
|
|
57
|
+
QuestionNames["AzureOpenAIKey"] = "azure-openai-key";
|
|
58
|
+
QuestionNames["AzureOpenAIEndpoint"] = "azure-openai-endpoint";
|
|
59
|
+
QuestionNames["AzureOpenAIDeploymentName"] = "azure-openai-deployment-name";
|
|
60
|
+
QuestionNames["Features"] = "features";
|
|
61
|
+
QuestionNames["Env"] = "env";
|
|
62
|
+
QuestionNames["SourceEnvName"] = "sourceEnvName";
|
|
63
|
+
QuestionNames["TargetEnvName"] = "targetEnvName";
|
|
64
|
+
QuestionNames["TargetResourceGroupName"] = "targetResourceGroupName";
|
|
65
|
+
QuestionNames["NewResourceGroupName"] = "newResourceGroupName";
|
|
66
|
+
QuestionNames["NewResourceGroupLocation"] = "newResourceGroupLocation";
|
|
67
|
+
QuestionNames["NewTargetEnvName"] = "newTargetEnvName";
|
|
68
|
+
QuestionNames["ExistingTabEndpoint"] = "existing-tab-endpoint";
|
|
69
|
+
QuestionNames["TeamsAppManifestFilePath"] = "manifest-path";
|
|
70
|
+
QuestionNames["LocalTeamsAppManifestFilePath"] = "local-manifest-path";
|
|
71
|
+
QuestionNames["AadAppManifestFilePath"] = "manifest-file-path";
|
|
72
|
+
QuestionNames["TeamsAppPackageFilePath"] = "app-package-file-path";
|
|
73
|
+
QuestionNames["ConfirmManifest"] = "confirmManifest";
|
|
74
|
+
QuestionNames["ConfirmLocalManifest"] = "confirmLocalManifest";
|
|
75
|
+
QuestionNames["ConfirmAadManifest"] = "confirmAadManifest";
|
|
76
|
+
QuestionNames["OutputZipPathParamName"] = "output-zip-path";
|
|
77
|
+
QuestionNames["OutputManifestParamName"] = "output-manifest-path";
|
|
78
|
+
QuestionNames["M365Host"] = "m365-host";
|
|
79
|
+
QuestionNames["ManifestPath"] = "manifest-path";
|
|
80
|
+
QuestionNames["UserEmail"] = "email";
|
|
81
|
+
QuestionNames["collaborationAppType"] = "collaborationType";
|
|
82
|
+
QuestionNames["DestinationApiSpecFilePath"] = "destination-api-spec-location";
|
|
83
|
+
QuestionNames["PluginAvailability"] = "plugin-availability";
|
|
84
|
+
})(QuestionNames = exports.QuestionNames || (exports.QuestionNames = {}));
|
|
85
|
+
exports.AppNamePattern = '^(?=(.*[\\da-zA-Z]){2})[a-zA-Z][^"<>:\\?/*&|\u0000-\u001F]*[^"\\s.<>:\\?/*&|\u0000-\u001F]$';
|
|
86
|
+
var CliQuestionName;
|
|
87
|
+
(function (CliQuestionName) {
|
|
88
|
+
CliQuestionName["Capability"] = "capability";
|
|
89
|
+
})(CliQuestionName = exports.CliQuestionName || (exports.CliQuestionName = {}));
|
|
90
|
+
var ProgrammingLanguage;
|
|
91
|
+
(function (ProgrammingLanguage) {
|
|
92
|
+
ProgrammingLanguage["JS"] = "javascript";
|
|
93
|
+
ProgrammingLanguage["TS"] = "typescript";
|
|
94
|
+
ProgrammingLanguage["CSharp"] = "csharp";
|
|
95
|
+
ProgrammingLanguage["PY"] = "python";
|
|
96
|
+
ProgrammingLanguage["None"] = "none";
|
|
97
|
+
})(ProgrammingLanguage = exports.ProgrammingLanguage || (exports.ProgrammingLanguage = {}));
|
|
6
98
|
exports.copilotPluginApiSpecOptionId = "copilot-plugin-existing-api";
|
|
7
99
|
exports.copilotPluginOpenAIPluginOptionId = "copilot-plugin-openai-plugin";
|
|
8
100
|
exports.copilotPluginExistingApiOptionIds = [
|
|
@@ -21,4 +113,1001 @@ exports.capabilitiesHavePythonOption = [
|
|
|
21
113
|
"custom-copilot-rag-customize",
|
|
22
114
|
"custom-copilot-agent-new",
|
|
23
115
|
];
|
|
116
|
+
class RuntimeOptions {
|
|
117
|
+
static NodeJS() {
|
|
118
|
+
return {
|
|
119
|
+
id: "node",
|
|
120
|
+
label: "Node.js",
|
|
121
|
+
detail: localizeUtils_1.getLocalizedString("core.RuntimeOptionNodeJS.detail"),
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
static DotNet() {
|
|
125
|
+
return {
|
|
126
|
+
id: "dotnet",
|
|
127
|
+
label: ".NET Core",
|
|
128
|
+
detail: localizeUtils_1.getLocalizedString("core.RuntimeOptionDotNet.detail"),
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
exports.RuntimeOptions = RuntimeOptions;
|
|
133
|
+
function getRuntime(inputs) {
|
|
134
|
+
let runtime = RuntimeOptions.NodeJS().id;
|
|
135
|
+
if (featureFlags_1.isCLIDotNetEnabled()) {
|
|
136
|
+
runtime = inputs[QuestionNames.Runtime] || runtime;
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
if ((inputs === null || inputs === void 0 ? void 0 : inputs.platform) === teamsfx_api_1.Platform.VS) {
|
|
140
|
+
runtime = RuntimeOptions.DotNet().id;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
return runtime;
|
|
144
|
+
}
|
|
145
|
+
exports.getRuntime = getRuntime;
|
|
146
|
+
class ScratchOptions {
|
|
147
|
+
static yes() {
|
|
148
|
+
return {
|
|
149
|
+
id: "yes",
|
|
150
|
+
label: localizeUtils_1.getLocalizedString("core.ScratchOptionYes.label"),
|
|
151
|
+
detail: localizeUtils_1.getLocalizedString("core.ScratchOptionYes.detail"),
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
static no() {
|
|
155
|
+
return {
|
|
156
|
+
id: "no",
|
|
157
|
+
label: localizeUtils_1.getLocalizedString("core.ScratchOptionNo.label"),
|
|
158
|
+
detail: localizeUtils_1.getLocalizedString("core.ScratchOptionNo.detail"),
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
static all() {
|
|
162
|
+
return [ScratchOptions.yes(), ScratchOptions.no()];
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
exports.ScratchOptions = ScratchOptions;
|
|
166
|
+
class ProjectTypeOptions {
|
|
167
|
+
static tab(platform) {
|
|
168
|
+
return {
|
|
169
|
+
id: "tab-type",
|
|
170
|
+
label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(browser) " : ""}${localizeUtils_1.getLocalizedString("core.TabOption.label")}`,
|
|
171
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.tab.detail"),
|
|
172
|
+
groupName: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.createGroup.title"),
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
static bot(platform) {
|
|
176
|
+
return {
|
|
177
|
+
id: "bot-type",
|
|
178
|
+
label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(hubot) " : ""}${localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.bot.label")}`,
|
|
179
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.bot.detail"),
|
|
180
|
+
groupName: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.createGroup.title"),
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
static me(platform) {
|
|
184
|
+
return {
|
|
185
|
+
id: "me-type",
|
|
186
|
+
label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(symbol-keyword) " : ""}${localizeUtils_1.getLocalizedString("core.MessageExtensionOption.label")}`,
|
|
187
|
+
detail: featureFlags_1.isCopilotPluginEnabled()
|
|
188
|
+
? localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.messageExtension.copilotEnabled.detail")
|
|
189
|
+
: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.messageExtension.detail"),
|
|
190
|
+
groupName: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.createGroup.title"),
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
static outlookAddin(platform) {
|
|
194
|
+
return {
|
|
195
|
+
id: "outlook-addin-type",
|
|
196
|
+
label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(mail) " : ""}${localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.outlookAddin.label")}`,
|
|
197
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.outlookAddin.detail"),
|
|
198
|
+
groupName: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.createGroup.title"),
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
static officeXMLAddin(platform) {
|
|
202
|
+
return {
|
|
203
|
+
id: "office-xml-addin-type",
|
|
204
|
+
label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(teamsfx-m365) " : ""}${localizeUtils_1.getLocalizedString("core.createProjectQuestion.officeXMLAddin.mainEntry.title")}`,
|
|
205
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.officeXMLAddin.mainEntry.detail"),
|
|
206
|
+
groupName: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.createGroup.title"),
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
static officeAddin(platform) {
|
|
210
|
+
return {
|
|
211
|
+
id: "office-addin-type",
|
|
212
|
+
label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(extensions) " : ""}${localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.officeAddin.label")}`,
|
|
213
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.officeAddin.detail"),
|
|
214
|
+
groupName: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.createGroup.title"),
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
static officeAddinAllIds(platform) {
|
|
218
|
+
return [
|
|
219
|
+
ProjectTypeOptions.officeAddin(platform).id,
|
|
220
|
+
ProjectTypeOptions.officeXMLAddin(platform).id,
|
|
221
|
+
ProjectTypeOptions.outlookAddin(platform).id,
|
|
222
|
+
];
|
|
223
|
+
}
|
|
224
|
+
static copilotPlugin(platform) {
|
|
225
|
+
return {
|
|
226
|
+
id: "copilot-plugin-type",
|
|
227
|
+
label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(teamsfx-copilot-plugin) " : ""}${localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.copilotPlugin.label")}`,
|
|
228
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.copilotPlugin.detail"),
|
|
229
|
+
groupName: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.createGroup.title"),
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
static customCopilot(platform) {
|
|
233
|
+
return {
|
|
234
|
+
id: "custom-copilot-type",
|
|
235
|
+
label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(teamsfx-custom-copilot) " : ""}${localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.customCopilot.label")}`,
|
|
236
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.customCopilot.detail"),
|
|
237
|
+
groupName: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.createGroup.title"),
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
static startWithGithubCopilot() {
|
|
241
|
+
return {
|
|
242
|
+
id: "start-with-github-copilot",
|
|
243
|
+
label: `$(comment-discussion) ${localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.copilotHelp.label")}`,
|
|
244
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.copilotHelp.detail"),
|
|
245
|
+
groupName: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.copilotGroup.title"),
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
static customizeGpt() {
|
|
249
|
+
return {
|
|
250
|
+
id: "customize-gpt-type",
|
|
251
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.declarativeCopilot.label"),
|
|
252
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.declarativeCopilot.title"),
|
|
253
|
+
groupName: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.createGroup.title"),
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
exports.ProjectTypeOptions = ProjectTypeOptions;
|
|
258
|
+
class CapabilityOptions {
|
|
259
|
+
// bot
|
|
260
|
+
static basicBot() {
|
|
261
|
+
return {
|
|
262
|
+
id: "bot",
|
|
263
|
+
label: `${localizeUtils_1.getLocalizedString("core.BotNewUIOption.label")}`,
|
|
264
|
+
detail: localizeUtils_1.getLocalizedString("core.BotNewUIOption.detail"),
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
static notificationBot() {
|
|
268
|
+
return {
|
|
269
|
+
// For default option, id and cliName must be the same
|
|
270
|
+
id: "notification",
|
|
271
|
+
label: `${localizeUtils_1.getLocalizedString("core.NotificationOption.label")}`,
|
|
272
|
+
detail: localizeUtils_1.getLocalizedString("core.NotificationOption.detail"),
|
|
273
|
+
data: "https://aka.ms/teamsfx-send-notification",
|
|
274
|
+
buttons: [
|
|
275
|
+
{
|
|
276
|
+
iconPath: "file-symlink-file",
|
|
277
|
+
tooltip: localizeUtils_1.getLocalizedString("core.option.github"),
|
|
278
|
+
command: "fx-extension.openTutorial",
|
|
279
|
+
},
|
|
280
|
+
],
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
static commandBot() {
|
|
284
|
+
return {
|
|
285
|
+
// id must match cli `yargsHelp`
|
|
286
|
+
id: "command-bot",
|
|
287
|
+
label: `${localizeUtils_1.getLocalizedString("core.CommandAndResponseOption.label")}`,
|
|
288
|
+
detail: localizeUtils_1.getLocalizedString("core.CommandAndResponseOption.detail"),
|
|
289
|
+
data: "https://aka.ms/teamsfx-create-command",
|
|
290
|
+
buttons: [
|
|
291
|
+
{
|
|
292
|
+
iconPath: "file-symlink-file",
|
|
293
|
+
tooltip: localizeUtils_1.getLocalizedString("core.option.github"),
|
|
294
|
+
command: "fx-extension.openTutorial",
|
|
295
|
+
},
|
|
296
|
+
],
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
static workflowBot(inputs) {
|
|
300
|
+
const item = {
|
|
301
|
+
// id must match cli `yargsHelp`
|
|
302
|
+
id: "workflow-bot",
|
|
303
|
+
label: `${localizeUtils_1.getLocalizedString("core.WorkflowOption.label")}`,
|
|
304
|
+
detail: localizeUtils_1.getLocalizedString("core.WorkflowOption.detail"),
|
|
305
|
+
data: "https://aka.ms/teamsfx-create-workflow",
|
|
306
|
+
buttons: [
|
|
307
|
+
{
|
|
308
|
+
iconPath: "file-symlink-file",
|
|
309
|
+
tooltip: localizeUtils_1.getLocalizedString("core.option.github"),
|
|
310
|
+
command: "fx-extension.openTutorial",
|
|
311
|
+
},
|
|
312
|
+
],
|
|
313
|
+
};
|
|
314
|
+
if (inputs === null || inputs === void 0 ? void 0 : inputs.inProductDoc) {
|
|
315
|
+
item.data = "cardActionResponse";
|
|
316
|
+
item.buttons = [
|
|
317
|
+
{
|
|
318
|
+
iconPath: "file-code",
|
|
319
|
+
tooltip: localizeUtils_1.getLocalizedString("core.option.inProduct"),
|
|
320
|
+
command: "fx-extension.openTutorial",
|
|
321
|
+
},
|
|
322
|
+
];
|
|
323
|
+
}
|
|
324
|
+
return item;
|
|
325
|
+
}
|
|
326
|
+
//tab
|
|
327
|
+
static nonSsoTab() {
|
|
328
|
+
return {
|
|
329
|
+
id: "tab-non-sso",
|
|
330
|
+
label: `${localizeUtils_1.getLocalizedString("core.TabNonSso.label")}`,
|
|
331
|
+
detail: localizeUtils_1.getLocalizedString("core.TabNonSso.detail"),
|
|
332
|
+
description: localizeUtils_1.getLocalizedString("core.createProjectQuestion.option.description.worksInOutlookM365"),
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
static tab() {
|
|
336
|
+
return {
|
|
337
|
+
id: "tab",
|
|
338
|
+
label: localizeUtils_1.getLocalizedString("core.TabOption.label"),
|
|
339
|
+
description: localizeUtils_1.getLocalizedString("core.TabOption.description"),
|
|
340
|
+
detail: localizeUtils_1.getLocalizedString("core.TabOption.detail"),
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
static m365SsoLaunchPage() {
|
|
344
|
+
return {
|
|
345
|
+
id: "sso-launch-page",
|
|
346
|
+
label: `${localizeUtils_1.getLocalizedString("core.M365SsoLaunchPageOptionItem.label")}`,
|
|
347
|
+
detail: localizeUtils_1.getLocalizedString("core.M365SsoLaunchPageOptionItem.detail"),
|
|
348
|
+
description: localizeUtils_1.getLocalizedString("core.createProjectQuestion.option.description.worksInOutlookM365"),
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
static dashboardTab() {
|
|
352
|
+
return {
|
|
353
|
+
id: "dashboard-tab",
|
|
354
|
+
label: `${localizeUtils_1.getLocalizedString("core.DashboardOption.label")}`,
|
|
355
|
+
detail: localizeUtils_1.getLocalizedString("core.DashboardOption.detail"),
|
|
356
|
+
description: localizeUtils_1.getLocalizedString("core.createProjectQuestion.option.description.worksInOutlookM365"),
|
|
357
|
+
data: "https://aka.ms/teamsfx-dashboard-app",
|
|
358
|
+
buttons: [
|
|
359
|
+
{
|
|
360
|
+
iconPath: "file-symlink-file",
|
|
361
|
+
tooltip: localizeUtils_1.getLocalizedString("core.option.github"),
|
|
362
|
+
command: "fx-extension.openTutorial",
|
|
363
|
+
},
|
|
364
|
+
],
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
static SPFxTab() {
|
|
368
|
+
return {
|
|
369
|
+
id: "tab-spfx",
|
|
370
|
+
label: localizeUtils_1.getLocalizedString("core.TabSPFxOption.labelNew"),
|
|
371
|
+
description: localizeUtils_1.getLocalizedString("core.createProjectQuestion.option.description.worksInOutlookM365"),
|
|
372
|
+
detail: localizeUtils_1.getLocalizedString("core.TabSPFxOption.detailNew"),
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
//message extension
|
|
376
|
+
static linkUnfurling() {
|
|
377
|
+
return {
|
|
378
|
+
id: "link-unfurling",
|
|
379
|
+
label: `${localizeUtils_1.getLocalizedString("core.LinkUnfurlingOption.label")}`,
|
|
380
|
+
detail: localizeUtils_1.getLocalizedString("core.LinkUnfurlingOption.detail"),
|
|
381
|
+
description: localizeUtils_1.getLocalizedString("core.createProjectQuestion.option.description.worksInOutlook"),
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
static m365SearchMe() {
|
|
385
|
+
return {
|
|
386
|
+
id: "search-app",
|
|
387
|
+
label: `${localizeUtils_1.getLocalizedString("core.M365SearchAppOptionItem.label")}`,
|
|
388
|
+
detail: featureFlags_1.isCopilotPluginEnabled()
|
|
389
|
+
? localizeUtils_1.getLocalizedString("core.M365SearchAppOptionItem.copilot.detail")
|
|
390
|
+
: localizeUtils_1.getLocalizedString("core.M365SearchAppOptionItem.detail"),
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
static SearchMe() {
|
|
394
|
+
return {
|
|
395
|
+
id: "search-message-extension",
|
|
396
|
+
label: `${localizeUtils_1.getLocalizedString("core.M365SearchAppOptionItem.label")}`,
|
|
397
|
+
detail: localizeUtils_1.getLocalizedString("core.SearchAppOptionItem.detail"),
|
|
398
|
+
};
|
|
399
|
+
}
|
|
400
|
+
static collectFormMe() {
|
|
401
|
+
return {
|
|
402
|
+
id: "collect-form-message-extension",
|
|
403
|
+
label: `${localizeUtils_1.getLocalizedString("core.MessageExtensionOption.labelNew")}`,
|
|
404
|
+
detail: localizeUtils_1.getLocalizedString("core.MessageExtensionOption.detail"),
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
static me() {
|
|
408
|
+
return {
|
|
409
|
+
id: "message-extension",
|
|
410
|
+
label: localizeUtils_1.getLocalizedString("core.MessageExtensionOption.label"),
|
|
411
|
+
description: localizeUtils_1.getLocalizedString("core.MessageExtensionOption.description"),
|
|
412
|
+
detail: localizeUtils_1.getLocalizedString("core.MessageExtensionOption.detail"),
|
|
413
|
+
};
|
|
414
|
+
}
|
|
415
|
+
static bots(inputs) {
|
|
416
|
+
if ((inputs === null || inputs === void 0 ? void 0 : inputs.platform) === teamsfx_api_1.Platform.VS) {
|
|
417
|
+
return [
|
|
418
|
+
CapabilityOptions.basicBot(),
|
|
419
|
+
CapabilityOptions.aiBot(),
|
|
420
|
+
CapabilityOptions.aiAssistantBot(),
|
|
421
|
+
CapabilityOptions.notificationBot(),
|
|
422
|
+
CapabilityOptions.commandBot(),
|
|
423
|
+
CapabilityOptions.workflowBot(inputs),
|
|
424
|
+
];
|
|
425
|
+
}
|
|
426
|
+
return [
|
|
427
|
+
CapabilityOptions.basicBot(),
|
|
428
|
+
CapabilityOptions.notificationBot(),
|
|
429
|
+
CapabilityOptions.commandBot(),
|
|
430
|
+
CapabilityOptions.workflowBot(inputs),
|
|
431
|
+
];
|
|
432
|
+
}
|
|
433
|
+
static tabs() {
|
|
434
|
+
return [
|
|
435
|
+
CapabilityOptions.nonSsoTab(),
|
|
436
|
+
CapabilityOptions.m365SsoLaunchPage(),
|
|
437
|
+
CapabilityOptions.dashboardTab(),
|
|
438
|
+
CapabilityOptions.SPFxTab(),
|
|
439
|
+
];
|
|
440
|
+
}
|
|
441
|
+
static dotnetCaps(inputs) {
|
|
442
|
+
const capabilities = [
|
|
443
|
+
...CapabilityOptions.copilotPlugins(),
|
|
444
|
+
...CapabilityOptions.bots(inputs),
|
|
445
|
+
CapabilityOptions.nonSsoTab(),
|
|
446
|
+
CapabilityOptions.tab(),
|
|
447
|
+
...CapabilityOptions.collectMECaps(),
|
|
448
|
+
];
|
|
449
|
+
if (featureFlags_1.isTdpTemplateCliTestEnabled()) {
|
|
450
|
+
capabilities.push(CapabilityOptions.me());
|
|
451
|
+
}
|
|
452
|
+
return capabilities;
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* Collect all capabilities for message extension, including dotnet and nodejs.
|
|
456
|
+
* @returns OptionItem[] capability list
|
|
457
|
+
*/
|
|
458
|
+
static collectMECaps() {
|
|
459
|
+
return [
|
|
460
|
+
CapabilityOptions.m365SearchMe(),
|
|
461
|
+
CapabilityOptions.collectFormMe(),
|
|
462
|
+
CapabilityOptions.SearchMe(),
|
|
463
|
+
CapabilityOptions.linkUnfurling(),
|
|
464
|
+
];
|
|
465
|
+
}
|
|
466
|
+
static mes(inputs) {
|
|
467
|
+
return inputs !== undefined && getRuntime(inputs) === RuntimeOptions.DotNet().id
|
|
468
|
+
? [
|
|
469
|
+
CapabilityOptions.SearchMe(),
|
|
470
|
+
CapabilityOptions.collectFormMe(),
|
|
471
|
+
CapabilityOptions.linkUnfurling(),
|
|
472
|
+
]
|
|
473
|
+
: [
|
|
474
|
+
CapabilityOptions.m365SearchMe(),
|
|
475
|
+
CapabilityOptions.collectFormMe(),
|
|
476
|
+
CapabilityOptions.linkUnfurling(),
|
|
477
|
+
];
|
|
478
|
+
}
|
|
479
|
+
static officeAddinStaticCapabilities(host) {
|
|
480
|
+
const items = [];
|
|
481
|
+
for (const h of Object.keys(projectConfig_1.OfficeAddinProjectConfig)) {
|
|
482
|
+
if (host && h !== host)
|
|
483
|
+
continue;
|
|
484
|
+
const hostValue = projectConfig_1.OfficeAddinProjectConfig[h];
|
|
485
|
+
for (const capability of Object.keys(hostValue)) {
|
|
486
|
+
const capabilityValue = hostValue[capability];
|
|
487
|
+
items.push({
|
|
488
|
+
id: capability,
|
|
489
|
+
label: localizeUtils_1.getLocalizedString(capabilityValue.title),
|
|
490
|
+
detail: localizeUtils_1.getLocalizedString(capabilityValue.detail),
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
return items;
|
|
495
|
+
}
|
|
496
|
+
static officeAddinDynamicCapabilities(projectType, host) {
|
|
497
|
+
const items = [];
|
|
498
|
+
const isOutlookAddin = projectType === ProjectTypeOptions.outlookAddin().id;
|
|
499
|
+
const isOfficeAddin = projectType === ProjectTypeOptions.officeAddin().id;
|
|
500
|
+
const isOfficeXMLAddinForOutlook = projectType === ProjectTypeOptions.officeXMLAddin().id &&
|
|
501
|
+
host === OfficeAddinHostOptions.outlook().id;
|
|
502
|
+
const pushToItems = (option) => {
|
|
503
|
+
const capabilityValue = projectConfig_1.OfficeAddinProjectConfig.json[option];
|
|
504
|
+
items.push({
|
|
505
|
+
id: option,
|
|
506
|
+
label: localizeUtils_1.getLocalizedString(capabilityValue.title),
|
|
507
|
+
detail: localizeUtils_1.getLocalizedString(capabilityValue.detail),
|
|
508
|
+
});
|
|
509
|
+
};
|
|
510
|
+
if (isOutlookAddin || isOfficeAddin || isOfficeXMLAddinForOutlook) {
|
|
511
|
+
pushToItems("json-taskpane");
|
|
512
|
+
if (isOutlookAddin || isOfficeXMLAddinForOutlook) {
|
|
513
|
+
items.push(CapabilityOptions.outlookAddinImport());
|
|
514
|
+
}
|
|
515
|
+
else if (isOfficeAddin) {
|
|
516
|
+
items.push(CapabilityOptions.officeContentAddin());
|
|
517
|
+
items.push(CapabilityOptions.officeAddinImport());
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
else {
|
|
521
|
+
if (host) {
|
|
522
|
+
const hostValue = projectConfig_1.OfficeAddinProjectConfig[host];
|
|
523
|
+
for (const capability of Object.keys(hostValue)) {
|
|
524
|
+
const capabilityValue = hostValue[capability];
|
|
525
|
+
items.push({
|
|
526
|
+
id: capability,
|
|
527
|
+
label: localizeUtils_1.getLocalizedString(capabilityValue.title),
|
|
528
|
+
detail: localizeUtils_1.getLocalizedString(capabilityValue.detail),
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
return items;
|
|
534
|
+
}
|
|
535
|
+
static copilotPlugins() {
|
|
536
|
+
return [
|
|
537
|
+
CapabilityOptions.copilotPluginNewApi(),
|
|
538
|
+
CapabilityOptions.copilotPluginApiSpec(),
|
|
539
|
+
// CapabilityOptions.copilotPluginOpenAIPlugin(),
|
|
540
|
+
];
|
|
541
|
+
}
|
|
542
|
+
static customCopilots() {
|
|
543
|
+
return [
|
|
544
|
+
CapabilityOptions.customCopilotBasic(),
|
|
545
|
+
CapabilityOptions.customCopilotRag(),
|
|
546
|
+
CapabilityOptions.customCopilotAssistant(),
|
|
547
|
+
];
|
|
548
|
+
}
|
|
549
|
+
static tdpIntegrationCapabilities() {
|
|
550
|
+
// templates that are used by TDP integration only
|
|
551
|
+
return [
|
|
552
|
+
CapabilityOptions.me(),
|
|
553
|
+
CapabilityOptions.botAndMe(),
|
|
554
|
+
CapabilityOptions.nonSsoTabAndBot(),
|
|
555
|
+
];
|
|
556
|
+
}
|
|
557
|
+
static customizeGptOptions() {
|
|
558
|
+
return [CapabilityOptions.customizeGptBasic(), CapabilityOptions.customizeGptWithPlugin()];
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* static capability list, which does not depend on any feature flags
|
|
562
|
+
*/
|
|
563
|
+
static staticAll(inputs) {
|
|
564
|
+
const capabilityOptions = [
|
|
565
|
+
...CapabilityOptions.bots(inputs),
|
|
566
|
+
...CapabilityOptions.tabs(),
|
|
567
|
+
...CapabilityOptions.collectMECaps(),
|
|
568
|
+
...CapabilityOptions.copilotPlugins(),
|
|
569
|
+
...CapabilityOptions.customCopilots(),
|
|
570
|
+
...CapabilityOptions.tdpIntegrationCapabilities(),
|
|
571
|
+
...CapabilityOptions.customizeGptOptions(),
|
|
572
|
+
];
|
|
573
|
+
capabilityOptions.push(...CapabilityOptions.officeAddinStaticCapabilities());
|
|
574
|
+
return capabilityOptions;
|
|
575
|
+
}
|
|
576
|
+
/**
|
|
577
|
+
* dynamic capability list, which depends on feature flags
|
|
578
|
+
*/
|
|
579
|
+
static all(inputs) {
|
|
580
|
+
const capabilityOptions = [
|
|
581
|
+
...CapabilityOptions.bots(inputs),
|
|
582
|
+
...CapabilityOptions.tabs(),
|
|
583
|
+
...CapabilityOptions.collectMECaps(),
|
|
584
|
+
];
|
|
585
|
+
if (featureFlags_1.isApiCopilotPluginEnabled()) {
|
|
586
|
+
capabilityOptions.push(...CapabilityOptions.copilotPlugins());
|
|
587
|
+
}
|
|
588
|
+
if (featureFlags_1.featureFlagManager.getBooleanValue(featureFlags_1.FeatureFlags.CustomizeGpt)) {
|
|
589
|
+
capabilityOptions.push(...CapabilityOptions.customizeGptOptions());
|
|
590
|
+
}
|
|
591
|
+
capabilityOptions.push(...CapabilityOptions.customCopilots());
|
|
592
|
+
if (featureFlags_1.isTdpTemplateCliTestEnabled()) {
|
|
593
|
+
// test templates that are used by TDP integration only
|
|
594
|
+
capabilityOptions.push(...CapabilityOptions.tdpIntegrationCapabilities());
|
|
595
|
+
}
|
|
596
|
+
capabilityOptions.push(...CapabilityOptions.officeAddinDynamicCapabilities(inputs === null || inputs === void 0 ? void 0 : inputs.projectType, inputs === null || inputs === void 0 ? void 0 : inputs.host));
|
|
597
|
+
return capabilityOptions;
|
|
598
|
+
}
|
|
599
|
+
static outlookAddinImport() {
|
|
600
|
+
return {
|
|
601
|
+
id: "outlook-addin-import",
|
|
602
|
+
label: localizeUtils_1.getLocalizedString("core.importAddin.label"),
|
|
603
|
+
detail: localizeUtils_1.getLocalizedString("core.importAddin.detail"),
|
|
604
|
+
};
|
|
605
|
+
}
|
|
606
|
+
static officeAddinImport() {
|
|
607
|
+
return {
|
|
608
|
+
id: "office-addin-import",
|
|
609
|
+
label: localizeUtils_1.getLocalizedString("core.importOfficeAddin.label"),
|
|
610
|
+
detail: localizeUtils_1.getLocalizedString("core.importAddin.detail"),
|
|
611
|
+
description: localizeUtils_1.getLocalizedString("core.createProjectQuestion.option.description.previewOnWindow"),
|
|
612
|
+
};
|
|
613
|
+
}
|
|
614
|
+
static officeContentAddin() {
|
|
615
|
+
return {
|
|
616
|
+
id: "office-content-addin",
|
|
617
|
+
label: localizeUtils_1.getLocalizedString("core.officeContentAddin.label"),
|
|
618
|
+
detail: localizeUtils_1.getLocalizedString("core.officeContentAddin.detail"),
|
|
619
|
+
};
|
|
620
|
+
}
|
|
621
|
+
static nonSsoTabAndBot() {
|
|
622
|
+
return {
|
|
623
|
+
id: "TabNonSsoAndBot",
|
|
624
|
+
label: "", // No need to set display name as this option won't be shown in UI
|
|
625
|
+
};
|
|
626
|
+
}
|
|
627
|
+
static botAndMe() {
|
|
628
|
+
return {
|
|
629
|
+
id: "BotAndMessageExtension",
|
|
630
|
+
label: "", // No need to set display name as this option won't be shown in UI
|
|
631
|
+
};
|
|
632
|
+
}
|
|
633
|
+
// copilot plugin
|
|
634
|
+
static copilotPluginNewApi() {
|
|
635
|
+
return {
|
|
636
|
+
id: exports.copilotPluginNewApiOptionId,
|
|
637
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.copilotPluginNewApiOption.label"),
|
|
638
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.copilotPluginNewApiOption.detail"),
|
|
639
|
+
};
|
|
640
|
+
}
|
|
641
|
+
static copilotPluginApiSpec() {
|
|
642
|
+
return {
|
|
643
|
+
id: exports.copilotPluginApiSpecOptionId,
|
|
644
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.copilotPluginApiSpecOption.label"),
|
|
645
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.copilotPluginApiSpecOption.detail"),
|
|
646
|
+
};
|
|
647
|
+
}
|
|
648
|
+
static copilotPluginOpenAIPlugin() {
|
|
649
|
+
return {
|
|
650
|
+
id: exports.copilotPluginOpenAIPluginOptionId,
|
|
651
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.copilotPluginAIPluginOption.label"),
|
|
652
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.copilotPluginAIPluginOption.detail"),
|
|
653
|
+
};
|
|
654
|
+
}
|
|
655
|
+
static aiBot() {
|
|
656
|
+
return {
|
|
657
|
+
id: "ai-bot",
|
|
658
|
+
label: localizeUtils_1.getLocalizedString("core.aiBotOption.label"),
|
|
659
|
+
detail: localizeUtils_1.getLocalizedString("core.aiBotOption.detail"),
|
|
660
|
+
};
|
|
661
|
+
}
|
|
662
|
+
static aiAssistantBot() {
|
|
663
|
+
return {
|
|
664
|
+
id: "ai-assistant-bot",
|
|
665
|
+
label: localizeUtils_1.getLocalizedString("core.aiAssistantBotOption.label"),
|
|
666
|
+
detail: localizeUtils_1.getLocalizedString("core.aiAssistantBotOption.detail"),
|
|
667
|
+
description: localizeUtils_1.getLocalizedString("core.createProjectQuestion.option.description.preview"),
|
|
668
|
+
};
|
|
669
|
+
}
|
|
670
|
+
// custom copilot
|
|
671
|
+
static customCopilotBasic() {
|
|
672
|
+
return {
|
|
673
|
+
id: "custom-copilot-basic",
|
|
674
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotBasicOption.label"),
|
|
675
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotBasicOption.detail"),
|
|
676
|
+
};
|
|
677
|
+
}
|
|
678
|
+
static customCopilotRag() {
|
|
679
|
+
return {
|
|
680
|
+
id: "custom-copilot-rag",
|
|
681
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotRagOption.label"),
|
|
682
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotRagOption.detail"),
|
|
683
|
+
};
|
|
684
|
+
}
|
|
685
|
+
static customCopilotAssistant() {
|
|
686
|
+
return {
|
|
687
|
+
id: "custom-copilot-agent",
|
|
688
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotAssistantOption.label"),
|
|
689
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotAssistantOption.detail"),
|
|
690
|
+
};
|
|
691
|
+
}
|
|
692
|
+
// customize GPT
|
|
693
|
+
static customizeGptBasic() {
|
|
694
|
+
return {
|
|
695
|
+
id: "basic-declarative-copilot",
|
|
696
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.declarativeCopilotBasic.title"),
|
|
697
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.declarativeCopilotBasic.detail"),
|
|
698
|
+
};
|
|
699
|
+
}
|
|
700
|
+
static customizeGptWithPlugin() {
|
|
701
|
+
return {
|
|
702
|
+
id: "declarative-copilot-with-plugin-from-scratch",
|
|
703
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.declarativeCopilotWithPlugin.title"),
|
|
704
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.declarativeCopilotWithPlugin.detail"),
|
|
705
|
+
};
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
exports.CapabilityOptions = CapabilityOptions;
|
|
709
|
+
class OfficeAddinHostOptions {
|
|
710
|
+
static all(platform) {
|
|
711
|
+
return [
|
|
712
|
+
OfficeAddinHostOptions.outlook(platform),
|
|
713
|
+
OfficeAddinHostOptions.word(),
|
|
714
|
+
OfficeAddinHostOptions.excel(),
|
|
715
|
+
OfficeAddinHostOptions.powerpoint(),
|
|
716
|
+
];
|
|
717
|
+
}
|
|
718
|
+
static outlook(platform) {
|
|
719
|
+
return {
|
|
720
|
+
id: "outlook",
|
|
721
|
+
label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(mail) " : ""}${localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.outlookAddin.label")}`,
|
|
722
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.outlookAddin.detail"),
|
|
723
|
+
data: "Outlook",
|
|
724
|
+
};
|
|
725
|
+
}
|
|
726
|
+
static word() {
|
|
727
|
+
return {
|
|
728
|
+
id: "word",
|
|
729
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.officeXMLAddin.word.title"),
|
|
730
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.officeXMLAddin.word.detail"),
|
|
731
|
+
data: "Word",
|
|
732
|
+
};
|
|
733
|
+
}
|
|
734
|
+
static excel() {
|
|
735
|
+
return {
|
|
736
|
+
id: "excel",
|
|
737
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.officeXMLAddin.excel.title"),
|
|
738
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.officeXMLAddin.excel.detail"),
|
|
739
|
+
data: "Excel",
|
|
740
|
+
};
|
|
741
|
+
}
|
|
742
|
+
static powerpoint() {
|
|
743
|
+
return {
|
|
744
|
+
id: "powerpoint",
|
|
745
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.officeXMLAddin.powerpoint.title"),
|
|
746
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.officeXMLAddin.powerpoint.detail"),
|
|
747
|
+
data: "PowerPoint",
|
|
748
|
+
};
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
exports.OfficeAddinHostOptions = OfficeAddinHostOptions;
|
|
752
|
+
class ApiMessageExtensionAuthOptions {
|
|
753
|
+
static none() {
|
|
754
|
+
return {
|
|
755
|
+
id: "none",
|
|
756
|
+
label: "None",
|
|
757
|
+
};
|
|
758
|
+
}
|
|
759
|
+
static apiKey() {
|
|
760
|
+
return {
|
|
761
|
+
id: "api-key",
|
|
762
|
+
label: "API Key",
|
|
763
|
+
};
|
|
764
|
+
}
|
|
765
|
+
static microsoftEntra() {
|
|
766
|
+
return {
|
|
767
|
+
id: "microsoft-entra",
|
|
768
|
+
label: "Microsoft Entra",
|
|
769
|
+
};
|
|
770
|
+
}
|
|
771
|
+
static all() {
|
|
772
|
+
return [
|
|
773
|
+
ApiMessageExtensionAuthOptions.none(),
|
|
774
|
+
ApiMessageExtensionAuthOptions.apiKey(),
|
|
775
|
+
ApiMessageExtensionAuthOptions.microsoftEntra(),
|
|
776
|
+
];
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
exports.ApiMessageExtensionAuthOptions = ApiMessageExtensionAuthOptions;
|
|
780
|
+
class MeArchitectureOptions {
|
|
781
|
+
static botMe() {
|
|
782
|
+
return {
|
|
783
|
+
id: "bot",
|
|
784
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.botMessageExtension.label"),
|
|
785
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.botMessageExtension.detail"),
|
|
786
|
+
description: localizeUtils_1.getLocalizedString("core.createProjectQuestion.option.description.worksInOutlook"),
|
|
787
|
+
};
|
|
788
|
+
}
|
|
789
|
+
static botPlugin() {
|
|
790
|
+
return {
|
|
791
|
+
id: "bot-plugin",
|
|
792
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.botMessageExtension.label"),
|
|
793
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.botMessageExtension.detail"),
|
|
794
|
+
description: localizeUtils_1.getLocalizedString("core.createProjectQuestion.option.description.worksInOutlookCopilot"),
|
|
795
|
+
};
|
|
796
|
+
}
|
|
797
|
+
static newApi() {
|
|
798
|
+
return {
|
|
799
|
+
id: "new-api",
|
|
800
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.copilotPluginNewApiOption.label"),
|
|
801
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.messageExtensionNewApiOption.detail"),
|
|
802
|
+
};
|
|
803
|
+
}
|
|
804
|
+
static apiSpec() {
|
|
805
|
+
return {
|
|
806
|
+
id: "api-spec",
|
|
807
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.copilotPluginApiSpecOption.label"),
|
|
808
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.messageExtensionApiSpecOption.detail"),
|
|
809
|
+
};
|
|
810
|
+
}
|
|
811
|
+
static all() {
|
|
812
|
+
return [
|
|
813
|
+
MeArchitectureOptions.newApi(),
|
|
814
|
+
MeArchitectureOptions.apiSpec(),
|
|
815
|
+
featureFlags_1.isCopilotPluginEnabled() ? MeArchitectureOptions.botPlugin() : MeArchitectureOptions.botMe(),
|
|
816
|
+
];
|
|
817
|
+
}
|
|
818
|
+
static staticAll() {
|
|
819
|
+
return [
|
|
820
|
+
MeArchitectureOptions.newApi(),
|
|
821
|
+
MeArchitectureOptions.apiSpec(),
|
|
822
|
+
MeArchitectureOptions.botPlugin(),
|
|
823
|
+
MeArchitectureOptions.botMe(),
|
|
824
|
+
];
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
exports.MeArchitectureOptions = MeArchitectureOptions;
|
|
828
|
+
var HostType;
|
|
829
|
+
(function (HostType) {
|
|
830
|
+
HostType["AppService"] = "app-service";
|
|
831
|
+
HostType["Functions"] = "azure-functions";
|
|
832
|
+
})(HostType = exports.HostType || (exports.HostType = {}));
|
|
833
|
+
exports.NotificationTriggers = {
|
|
834
|
+
HTTP: "http",
|
|
835
|
+
TIMER: "timer",
|
|
836
|
+
};
|
|
837
|
+
class NotificationTriggerOptions {
|
|
838
|
+
static appService() {
|
|
839
|
+
return {
|
|
840
|
+
id: "http-restify",
|
|
841
|
+
hostType: HostType.AppService,
|
|
842
|
+
label: localizeUtils_1.getLocalizedString("plugins.bot.triggers.http-restify.label"),
|
|
843
|
+
description: localizeUtils_1.getLocalizedString("plugins.bot.triggers.http-restify.description"),
|
|
844
|
+
detail: localizeUtils_1.getLocalizedString("plugins.bot.triggers.http-restify.detail"),
|
|
845
|
+
};
|
|
846
|
+
}
|
|
847
|
+
static appServiceForVS() {
|
|
848
|
+
return {
|
|
849
|
+
id: "http-webapi",
|
|
850
|
+
hostType: HostType.AppService,
|
|
851
|
+
label: localizeUtils_1.getLocalizedString("plugins.bot.triggers.http-webapi.label"),
|
|
852
|
+
description: localizeUtils_1.getLocalizedString("plugins.bot.triggers.http-webapi.description"),
|
|
853
|
+
detail: localizeUtils_1.getLocalizedString("plugins.bot.triggers.http-webapi.detail"),
|
|
854
|
+
};
|
|
855
|
+
}
|
|
856
|
+
// NOTE: id must be the sample as cliName to prevent parsing error for CLI default value.
|
|
857
|
+
static functionsTimerTrigger() {
|
|
858
|
+
return {
|
|
859
|
+
id: "timer-functions",
|
|
860
|
+
hostType: HostType.Functions,
|
|
861
|
+
triggers: [exports.NotificationTriggers.TIMER],
|
|
862
|
+
label: localizeUtils_1.getLocalizedString("plugins.bot.triggers.timer-functions.label"),
|
|
863
|
+
description: localizeUtils_1.getLocalizedString("plugins.bot.triggers.timer-functions.description"),
|
|
864
|
+
detail: localizeUtils_1.getLocalizedString("plugins.bot.triggers.timer-functions.detail"),
|
|
865
|
+
};
|
|
866
|
+
}
|
|
867
|
+
static functionsTimerTriggerIsolated() {
|
|
868
|
+
return {
|
|
869
|
+
id: "timer-functions-isolated",
|
|
870
|
+
hostType: HostType.Functions,
|
|
871
|
+
triggers: [exports.NotificationTriggers.TIMER],
|
|
872
|
+
label: localizeUtils_1.getLocalizedString("plugins.bot.triggers.timer-functions.label"),
|
|
873
|
+
description: localizeUtils_1.getLocalizedString("plugins.bot.triggers.timer-functions.description"),
|
|
874
|
+
detail: localizeUtils_1.getLocalizedString("plugins.bot.triggers.timer-functions.detail"),
|
|
875
|
+
};
|
|
876
|
+
}
|
|
877
|
+
static functionsHttpAndTimerTrigger() {
|
|
878
|
+
return {
|
|
879
|
+
id: "http-and-timer-functions",
|
|
880
|
+
hostType: HostType.Functions,
|
|
881
|
+
triggers: [exports.NotificationTriggers.HTTP, exports.NotificationTriggers.TIMER],
|
|
882
|
+
label: localizeUtils_1.getLocalizedString("plugins.bot.triggers.http-and-timer-functions.label"),
|
|
883
|
+
description: localizeUtils_1.getLocalizedString("plugins.bot.triggers.http-and-timer-functions.description"),
|
|
884
|
+
detail: localizeUtils_1.getLocalizedString("plugins.bot.triggers.http-and-timer-functions.detail"),
|
|
885
|
+
};
|
|
886
|
+
}
|
|
887
|
+
static functionsHttpAndTimerTriggerIsolated() {
|
|
888
|
+
return {
|
|
889
|
+
id: "http-and-timer-functions-isolated",
|
|
890
|
+
hostType: HostType.Functions,
|
|
891
|
+
triggers: [exports.NotificationTriggers.HTTP, exports.NotificationTriggers.TIMER],
|
|
892
|
+
label: localizeUtils_1.getLocalizedString("plugins.bot.triggers.http-and-timer-functions.label"),
|
|
893
|
+
description: localizeUtils_1.getLocalizedString("plugins.bot.triggers.http-and-timer-functions.description"),
|
|
894
|
+
detail: localizeUtils_1.getLocalizedString("plugins.bot.triggers.http-and-timer-functions.detail"),
|
|
895
|
+
};
|
|
896
|
+
}
|
|
897
|
+
static functionsHttpTrigger() {
|
|
898
|
+
return {
|
|
899
|
+
id: "http-functions",
|
|
900
|
+
hostType: HostType.Functions,
|
|
901
|
+
triggers: [exports.NotificationTriggers.HTTP],
|
|
902
|
+
label: localizeUtils_1.getLocalizedString("plugins.bot.triggers.http-functions.label"),
|
|
903
|
+
description: localizeUtils_1.getLocalizedString("plugins.bot.triggers.http-functions.description"),
|
|
904
|
+
detail: localizeUtils_1.getLocalizedString("plugins.bot.triggers.http-functions.detail"),
|
|
905
|
+
};
|
|
906
|
+
}
|
|
907
|
+
static functionsHttpTriggerIsolated() {
|
|
908
|
+
return {
|
|
909
|
+
id: "http-functions-isolated",
|
|
910
|
+
hostType: HostType.Functions,
|
|
911
|
+
triggers: [exports.NotificationTriggers.HTTP],
|
|
912
|
+
label: localizeUtils_1.getLocalizedString("plugins.bot.triggers.http-functions.label"),
|
|
913
|
+
description: localizeUtils_1.getLocalizedString("plugins.bot.triggers.http-functions.description"),
|
|
914
|
+
detail: localizeUtils_1.getLocalizedString("plugins.bot.triggers.http-functions.detail"),
|
|
915
|
+
};
|
|
916
|
+
}
|
|
917
|
+
static functionsTriggers() {
|
|
918
|
+
return [
|
|
919
|
+
NotificationTriggerOptions.functionsHttpAndTimerTrigger(),
|
|
920
|
+
NotificationTriggerOptions.functionsHttpTrigger(),
|
|
921
|
+
NotificationTriggerOptions.functionsTimerTrigger(),
|
|
922
|
+
];
|
|
923
|
+
}
|
|
924
|
+
static all() {
|
|
925
|
+
return [
|
|
926
|
+
NotificationTriggerOptions.appService(),
|
|
927
|
+
NotificationTriggerOptions.appServiceForVS(),
|
|
928
|
+
NotificationTriggerOptions.functionsHttpAndTimerTrigger(),
|
|
929
|
+
NotificationTriggerOptions.functionsHttpTrigger(),
|
|
930
|
+
NotificationTriggerOptions.functionsTimerTrigger(),
|
|
931
|
+
];
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
exports.NotificationTriggerOptions = NotificationTriggerOptions;
|
|
935
|
+
var SPFxVersionOptionIds;
|
|
936
|
+
(function (SPFxVersionOptionIds) {
|
|
937
|
+
SPFxVersionOptionIds["installLocally"] = "true";
|
|
938
|
+
SPFxVersionOptionIds["globalPackage"] = "false";
|
|
939
|
+
})(SPFxVersionOptionIds = exports.SPFxVersionOptionIds || (exports.SPFxVersionOptionIds = {}));
|
|
940
|
+
class CustomCopilotRagOptions {
|
|
941
|
+
static customize() {
|
|
942
|
+
return {
|
|
943
|
+
id: "custom-copilot-rag-customize",
|
|
944
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotRagCustomizeOption.label"),
|
|
945
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotRagCustomizeOption.detail"),
|
|
946
|
+
};
|
|
947
|
+
}
|
|
948
|
+
static azureAISearch() {
|
|
949
|
+
return {
|
|
950
|
+
id: "custom-copilot-rag-azureAISearch",
|
|
951
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotRagAzureAISearchOption.label"),
|
|
952
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotRagAzureAISearchOption.detail"),
|
|
953
|
+
};
|
|
954
|
+
}
|
|
955
|
+
static customApi() {
|
|
956
|
+
return {
|
|
957
|
+
id: "custom-copilot-rag-customApi",
|
|
958
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotRagCustomApiOption.label"),
|
|
959
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotRagCustomApiOption.detail"),
|
|
960
|
+
description: localizeUtils_1.getLocalizedString("core.createProjectQuestion.option.description.preview"),
|
|
961
|
+
};
|
|
962
|
+
}
|
|
963
|
+
static microsoft365() {
|
|
964
|
+
return {
|
|
965
|
+
id: "custom-copilot-rag-microsoft365",
|
|
966
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotRagMicrosoft365Option.label"),
|
|
967
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotRagMicrosoft365Option.detail"),
|
|
968
|
+
};
|
|
969
|
+
}
|
|
970
|
+
static all() {
|
|
971
|
+
return [
|
|
972
|
+
CustomCopilotRagOptions.customize(),
|
|
973
|
+
CustomCopilotRagOptions.azureAISearch(),
|
|
974
|
+
CustomCopilotRagOptions.customApi(),
|
|
975
|
+
CustomCopilotRagOptions.microsoft365(),
|
|
976
|
+
];
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
exports.CustomCopilotRagOptions = CustomCopilotRagOptions;
|
|
980
|
+
class CustomCopilotAssistantOptions {
|
|
981
|
+
static new() {
|
|
982
|
+
return {
|
|
983
|
+
id: "custom-copilot-agent-new",
|
|
984
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotAssistantNewOption.label"),
|
|
985
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotAssistantNewOption.detail"),
|
|
986
|
+
};
|
|
987
|
+
}
|
|
988
|
+
static assistantsApi() {
|
|
989
|
+
return {
|
|
990
|
+
id: "custom-copilot-agent-assistants-api",
|
|
991
|
+
label: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotAssistantAssistantsApiOption.label"),
|
|
992
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotAssistantAssistantsApiOption.detail"),
|
|
993
|
+
description: localizeUtils_1.getLocalizedString("core.createProjectQuestion.option.description.preview"),
|
|
994
|
+
};
|
|
995
|
+
}
|
|
996
|
+
static all() {
|
|
997
|
+
return [CustomCopilotAssistantOptions.new(), CustomCopilotAssistantOptions.assistantsApi()];
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
exports.CustomCopilotAssistantOptions = CustomCopilotAssistantOptions;
|
|
1001
|
+
exports.recommendedLocations = [
|
|
1002
|
+
"South Africa North",
|
|
1003
|
+
"Australia East",
|
|
1004
|
+
"Central India",
|
|
1005
|
+
"East Asia",
|
|
1006
|
+
"Japan East",
|
|
1007
|
+
"Korea Central",
|
|
1008
|
+
"Southeast Asia",
|
|
1009
|
+
"Canada Central",
|
|
1010
|
+
"France Central",
|
|
1011
|
+
"Germany West Central",
|
|
1012
|
+
"Italy North",
|
|
1013
|
+
"North Europe",
|
|
1014
|
+
"Norway East",
|
|
1015
|
+
"Poland Central",
|
|
1016
|
+
"Sweden Central",
|
|
1017
|
+
"Switzerland North",
|
|
1018
|
+
"UK South",
|
|
1019
|
+
"West Europe",
|
|
1020
|
+
"Israel Central",
|
|
1021
|
+
"Qatar Central",
|
|
1022
|
+
"UAE North",
|
|
1023
|
+
"Brazil South",
|
|
1024
|
+
"Central US",
|
|
1025
|
+
"East US",
|
|
1026
|
+
"East US 2",
|
|
1027
|
+
"South Central US",
|
|
1028
|
+
"West US 2",
|
|
1029
|
+
"West US 3",
|
|
1030
|
+
];
|
|
1031
|
+
class PluginAvailabilityOptions {
|
|
1032
|
+
static action() {
|
|
1033
|
+
return {
|
|
1034
|
+
id: "action",
|
|
1035
|
+
label: localizeUtils_1.getLocalizedString("core.pluginAvailability.declarativeCopilot"),
|
|
1036
|
+
};
|
|
1037
|
+
}
|
|
1038
|
+
static copilotPlugin() {
|
|
1039
|
+
return {
|
|
1040
|
+
id: "copilot-plugin",
|
|
1041
|
+
label: localizeUtils_1.getLocalizedString("core.pluginAvailability.copilotForM365"),
|
|
1042
|
+
};
|
|
1043
|
+
}
|
|
1044
|
+
static copilotPluginAndAction() {
|
|
1045
|
+
return {
|
|
1046
|
+
id: "copilot-plugin-and-action",
|
|
1047
|
+
label: localizeUtils_1.getLocalizedString("core.pluginAvailability.declarativeCopilotAndM365"),
|
|
1048
|
+
};
|
|
1049
|
+
}
|
|
1050
|
+
static all() {
|
|
1051
|
+
return [
|
|
1052
|
+
PluginAvailabilityOptions.copilotPlugin(),
|
|
1053
|
+
PluginAvailabilityOptions.action(),
|
|
1054
|
+
PluginAvailabilityOptions.copilotPluginAndAction(),
|
|
1055
|
+
];
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
exports.PluginAvailabilityOptions = PluginAvailabilityOptions;
|
|
1059
|
+
class TeamsAppValidationOptions {
|
|
1060
|
+
static schema() {
|
|
1061
|
+
return {
|
|
1062
|
+
id: "validateAgainstSchema",
|
|
1063
|
+
label: localizeUtils_1.getLocalizedString("core.selectValidateMethodQuestion.validate.schemaOption"),
|
|
1064
|
+
description: localizeUtils_1.getLocalizedString("core.selectValidateMethodQuestion.validate.schemaOptionDescription"),
|
|
1065
|
+
};
|
|
1066
|
+
}
|
|
1067
|
+
static package() {
|
|
1068
|
+
return {
|
|
1069
|
+
id: "validateAgainstPackage",
|
|
1070
|
+
label: localizeUtils_1.getLocalizedString("core.selectValidateMethodQuestion.validate.appPackageOption"),
|
|
1071
|
+
description: localizeUtils_1.getLocalizedString("core.selectValidateMethodQuestion.validate.appPackageOptionDescription"),
|
|
1072
|
+
};
|
|
1073
|
+
}
|
|
1074
|
+
static testCases() {
|
|
1075
|
+
return {
|
|
1076
|
+
id: "validateWithTestCases",
|
|
1077
|
+
label: localizeUtils_1.getLocalizedString("core.selectValidateMethodQuestion.validate.testCasesOption"),
|
|
1078
|
+
description: localizeUtils_1.getLocalizedString("core.selectValidateMethodQuestion.validate.testCasesOptionDescription"),
|
|
1079
|
+
};
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
exports.TeamsAppValidationOptions = TeamsAppValidationOptions;
|
|
1083
|
+
var HubTypes;
|
|
1084
|
+
(function (HubTypes) {
|
|
1085
|
+
HubTypes["teams"] = "teams";
|
|
1086
|
+
HubTypes["outlook"] = "outlook";
|
|
1087
|
+
HubTypes["office"] = "office";
|
|
1088
|
+
})(HubTypes = exports.HubTypes || (exports.HubTypes = {}));
|
|
1089
|
+
class HubOptions {
|
|
1090
|
+
static teams() {
|
|
1091
|
+
return {
|
|
1092
|
+
id: "teams",
|
|
1093
|
+
label: "Teams",
|
|
1094
|
+
};
|
|
1095
|
+
}
|
|
1096
|
+
static outlook() {
|
|
1097
|
+
return {
|
|
1098
|
+
id: "outlook",
|
|
1099
|
+
label: "Outlook",
|
|
1100
|
+
};
|
|
1101
|
+
}
|
|
1102
|
+
static office() {
|
|
1103
|
+
return {
|
|
1104
|
+
id: "office",
|
|
1105
|
+
label: "the Microsoft 365 app",
|
|
1106
|
+
};
|
|
1107
|
+
}
|
|
1108
|
+
static all() {
|
|
1109
|
+
return [this.teams(), this.outlook(), this.office()];
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
exports.HubOptions = HubOptions;
|
|
24
1113
|
//# sourceMappingURL=constants.js.map
|