Initial commit

This commit is contained in:
2025-03-07 19:22:02 +01:00
commit 4a98255d83
55743 changed files with 5280367 additions and 0 deletions
+271
View File
@@ -0,0 +1,271 @@
import { Inputs, OptionItem, Platform } from "@microsoft/teamsfx-api";
export declare enum QuestionNames {
Scratch = "scratch",
SctatchYes = "scratch-yes",
AppName = "app-name",
Folder = "folder",
ProjectPath = "projectPath",
ProgrammingLanguage = "programming-language",
ProjectType = "project-type",
Capabilities = "capabilities",
BotTrigger = "bot-host-type-trigger",
Runtime = "runtime",
SPFxSolution = "spfx-solution",
SPFxInstallPackage = "spfx-install-latest-package",
SPFxFramework = "spfx-framework-type",
SPFxWebpartName = "spfx-webpart-name",
SPFxWebpartDesc = "spfx-webpart-desp",
SPFxFolder = "spfx-folder",
OfficeAddinFolder = "addin-project-folder",
OfficeAddinManifest = "addin-project-manifest",
OfficeAddinTemplate = "addin-template-select",
OfficeAddinHost = "addin-host",
OfficeAddinImport = "addin-import",
OfficeAddinFramework = "office-addin-framework-type",
Samples = "samples",
ReplaceContentUrl = "replaceContentUrl",
ReplaceWebsiteUrl = "replaceWebsiteUrl",
ReplaceBotIds = "replaceBotIds",
SafeProjectName = "safeProjectName",
RepalceTabUrl = "tdp-tab-url",
ValidateMethod = "validate-method",
AppPackagePath = "appPackagePath",
FromExistingApi = "from-existing-api",
ApiSpecLocation = "openapi-spec-location",
ApiOperation = "api-operation",
ApiPluginManifestPath = "external-api-plugin-manifest-path",
MeArchitectureType = "me-architecture",
ApiSpecApiKey = "api-key",
ApiSpecApiKeyConfirm = "api-key-confirm",
ApiAuth = "api-auth",
OauthClientSecret = "oauth-client-secret",
OauthClientId = "oauth-client-id",
OauthConfirm = "oauth-confirm",
CustomCopilotRag = "custom-copilot-rag",
CustomCopilotAssistant = "custom-copilot-agent",
LLMService = "llm-service",
OpenAIKey = "openai-key",
OpenAIEmbeddingModel = "openai-embedding-model",
AzureOpenAIKey = "azure-openai-key",
AzureOpenAIEndpoint = "azure-openai-endpoint",
AzureOpenAIDeploymentName = "azure-openai-deployment-name",
AzureOpenAIEmbeddingDeploymentName = "azure-openai-embedding-deployment-name",
AzureAISearchApiKey = "azure-ai-search-api-key",
AzureAISearchEndpoint = "azure-ai-search-endpoint",
Features = "features",
Env = "env",
SourceEnvName = "sourceEnvName",
TargetEnvName = "targetEnvName",
TargetResourceGroupName = "targetResourceGroupName",
NewResourceGroupName = "newResourceGroupName",
NewResourceGroupLocation = "newResourceGroupLocation",
NewTargetEnvName = "newTargetEnvName",
ExistingTabEndpoint = "existing-tab-endpoint",
TeamsAppManifestFilePath = "manifest-path",
LocalTeamsAppManifestFilePath = "local-manifest-path",
AadAppManifestFilePath = "manifest-file-path",
TeamsAppPackageFilePath = "app-package-file-path",
ConfirmManifest = "confirmManifest",
ConfirmLocalManifest = "confirmLocalManifest",
ConfirmAadManifest = "confirmAadManifest",
OutputZipPathParamName = "output-zip-path",
OutputManifestParamName = "output-manifest-path",
OutputFolderParamName = "output-folder",
M365Host = "m365-host",
ManifestPath = "manifest-path",
ManifestId = "manifest-id",
TeamsAppId = "teams-app-id",
TitleId = "title-id",
UserEmail = "email",
UninstallMode = "mode",
UninstallModeManifestId = "manifest-id",
UninstallModeEnv = "env",
UninstallModeTitleId = "title-id",
UninstallOptions = "options",
UninstallOptionM365 = "m365-app",
UninstallOptionTDP = "app-registration",
UninstallOptionBot = "bot-framework-registration",
collaborationAppType = "collaborationType",
DestinationApiSpecFilePath = "destination-api-spec-location",
SyncManifest = "sync-manifest",
ApiPluginType = "api-plugin-type",
WithPlugin = "with-plugin",
ImportPlugin = "import-plugin",
PluginManifestFilePath = "plugin-manifest-path",
PluginOpenApiSpecFilePath = "plugin-opeanapi-spec-path"
}
export declare const AppNamePattern = "^(?=(.*[\\da-zA-Z]){2})[a-zA-Z][^\"<>:\\?/*&|\0-\u001F]*[^\"\\s.<>:\\?/*&|\0-\u001F]$";
export declare enum CliQuestionName {
Capability = "capability"
}
export declare enum ProgrammingLanguage {
JS = "javascript",
TS = "typescript",
CSharp = "csharp",
PY = "python",
Common = "common",
None = "none"
}
export declare const apiPluginApiSpecOptionId = "api-spec";
export declare const capabilitiesHavePythonOption: string[];
export declare class RuntimeOptions {
static NodeJS(): OptionItem;
static DotNet(): OptionItem;
}
export declare function getRuntime(inputs: Inputs): string;
export declare class ScratchOptions {
static yes(): OptionItem;
static no(): OptionItem;
static all(): OptionItem[];
}
export declare class ProjectTypeOptions {
static getCreateGroupName(): string | undefined;
static tab(platform?: Platform): OptionItem;
static bot(platform?: Platform): OptionItem;
static me(platform?: Platform): OptionItem;
static outlookAddin(platform?: Platform): OptionItem;
static officeMetaOS(platform?: Platform): OptionItem;
static officeAddin(platform?: Platform): OptionItem;
static officeAddinAllIds(platform?: Platform): string[];
static copilotExtension(platform?: Platform): OptionItem;
static customCopilot(platform?: Platform): OptionItem;
static startWithGithubCopilot(): OptionItem;
}
export declare class CapabilityOptions {
static empty(): OptionItem;
static basicBot(): OptionItem;
static notificationBot(): OptionItem;
static commandBot(): OptionItem;
static workflowBot(inputs?: Inputs): OptionItem;
static nonSsoTab(): OptionItem;
static tab(): OptionItem;
static m365SsoLaunchPage(): OptionItem;
static dashboardTab(): OptionItem;
static SPFxTab(): OptionItem;
static linkUnfurling(): OptionItem;
static m365SearchMe(): OptionItem;
static SearchMe(): OptionItem;
static collectFormMe(): OptionItem;
static me(): OptionItem;
static bots(inputs?: Inputs): OptionItem[];
static tabs(): OptionItem[];
static dotnetCaps(inputs?: Inputs): OptionItem[];
/**
* Collect all capabilities for message extension, including dotnet and nodejs.
* @returns OptionItem[] capability list
*/
static collectMECaps(): OptionItem[];
static mes(inputs?: Inputs): OptionItem[];
static officeAddinStaticCapabilities(host?: string): OptionItem[];
static officeAddinDynamicCapabilities(projectType: string, host?: string): OptionItem[];
static copilotExtensions(inputs?: Inputs, isStatic?: boolean): OptionItem[];
static customCopilots(): OptionItem[];
static tdpIntegrationCapabilities(): OptionItem[];
/**
* static capability list, which does not depend on any feature flags
*/
static staticAll(inputs?: Inputs): OptionItem[];
/**
* dynamic capability list, which depends on feature flags
*/
static all(inputs?: Inputs): OptionItem[];
static outlookAddinImport(): OptionItem;
static officeAddinImport(): OptionItem;
static officeContentAddin(): OptionItem;
static nonSsoTabAndBot(): OptionItem;
static botAndMe(): OptionItem;
static apiPlugin(): OptionItem;
static declarativeCopilot(): OptionItem;
static aiBot(): OptionItem;
static aiAssistantBot(): OptionItem;
static customCopilotBasic(): OptionItem;
static customCopilotRag(): OptionItem;
static customCopilotAssistant(): OptionItem;
}
export declare class ApiAuthOptions {
static none(): OptionItem;
static apiKey(): OptionItem;
static microsoftEntra(): OptionItem;
static oauth(): OptionItem;
static all(): OptionItem[];
}
export declare class MeArchitectureOptions {
static botMe(): OptionItem;
static botPlugin(): OptionItem;
static newApi(): OptionItem;
static apiSpec(): OptionItem;
static all(): OptionItem[];
static staticAll(): OptionItem[];
}
export declare enum HostType {
AppService = "app-service",
Functions = "azure-functions"
}
export declare const NotificationTriggers: {
readonly HTTP: "http";
readonly TIMER: "timer";
};
declare type NotificationTrigger = typeof NotificationTriggers[keyof typeof NotificationTriggers];
interface HostTypeTriggerOptionItem extends OptionItem {
hostType: HostType;
triggers?: NotificationTrigger[];
}
export declare class NotificationTriggerOptions {
static appService(): HostTypeTriggerOptionItem;
static appServiceForVS(): HostTypeTriggerOptionItem;
static functionsTimerTrigger(): HostTypeTriggerOptionItem;
static functionsTimerTriggerIsolated(): HostTypeTriggerOptionItem;
static functionsHttpAndTimerTrigger(): HostTypeTriggerOptionItem;
static functionsHttpAndTimerTriggerIsolated(): HostTypeTriggerOptionItem;
static functionsHttpTrigger(): HostTypeTriggerOptionItem;
static functionsHttpTriggerIsolated(): HostTypeTriggerOptionItem;
static functionsTriggers(): HostTypeTriggerOptionItem[];
static all(): HostTypeTriggerOptionItem[];
}
export declare enum SPFxVersionOptionIds {
installLocally = "true",
globalPackage = "false"
}
export declare class CustomCopilotRagOptions {
static customize(): OptionItem;
static azureAISearch(): OptionItem;
static customApi(): OptionItem;
static microsoft365(): OptionItem;
static all(): OptionItem[];
}
export declare class CustomCopilotAssistantOptions {
static new(): OptionItem;
static assistantsApi(): OptionItem;
static all(): OptionItem[];
}
export declare const recommendedLocations: string[];
export declare class TeamsAppValidationOptions {
static schema(): OptionItem;
static package(): OptionItem;
static testCases(): OptionItem;
}
export declare enum HubTypes {
teams = "teams",
outlook = "outlook",
office = "office"
}
export declare class HubOptions {
static teams(): OptionItem;
static outlook(): OptionItem;
static office(): OptionItem;
static all(): OptionItem[];
}
export declare class DeclarativeCopilotTypeOptions {
static noPlugin(): OptionItem;
static withPlugin(): OptionItem;
static all(): OptionItem[];
}
export declare class ApiPluginStartOptions {
static newApi(): OptionItem;
static apiSpec(): OptionItem;
static existingPlugin(): OptionItem;
static staticAll(doesProjectExists?: boolean): OptionItem[];
static all(inputs: Inputs, doesProjectExists?: boolean): OptionItem[];
}
export {};
//# sourceMappingURL=constants.d.ts.map
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
+40
View File
@@ -0,0 +1,40 @@
import { FolderQuestion, IQTreeNode, Inputs, MultiSelectQuestion, OptionItem, SingleFileOrInputQuestion, SingleFileQuestion, SingleSelectQuestion, TextInputQuestion } from "@microsoft/teamsfx-api";
import { AppDefinition } from "../component/driver/teamsApp/interfaces/appdefinitions/appDefinition";
import { IOfficeAddinHostConfig } from "../component/generator/officeXMLAddin/projectConfig";
export declare function projectTypeQuestion(): SingleSelectQuestion;
export declare function getProjectTypeAndCapability(teamsApp: AppDefinition): {
projectType: string;
templateId: string;
} | undefined;
export declare function isFromDevPortal(inputs: Inputs | undefined): boolean;
export declare function capabilityQuestion(): SingleSelectQuestion;
export declare function meArchitectureQuestion(): SingleSelectQuestion;
export declare function SPFxPackageSelectQuestion(): SingleSelectQuestion;
export declare function SPFxFrameworkQuestion(): SingleSelectQuestion;
export declare function SPFxWebpartNameQuestion(): TextInputQuestion;
export declare function SPFxImportFolderQuestion(hasDefaultFunc?: boolean): FolderQuestion;
export declare function officeAddinFrameworkQuestion(): SingleSelectQuestion;
export declare function getAddinFrameworkOptions(inputs: Inputs): OptionItem[];
/**
* when project-type=office-addin-type(office-addin-framework-type=default or react), use selected value;
* when project-type=outlook-addin-type, no framework to select, office-addin-framework-type=default_old
* when project-type=office-xml-addin-type, no framework to select, office-addin-framework-type=default_old
*/
export declare function getOfficeAddinFramework(inputs: Inputs): string;
export declare function getOfficeAddinTemplateConfig(): IOfficeAddinHostConfig;
export declare function getLanguageOptions(inputs: Inputs): OptionItem[];
export declare function programmingLanguageQuestion(): SingleSelectQuestion;
export declare function folderQuestion(): FolderQuestion;
export declare function getSolutionName(spfxFolder: string): Promise<string | undefined>;
export declare function appNameQuestion(): TextInputQuestion;
export declare function apiSpecLocationQuestion(includeExistingAPIs?: boolean): SingleFileOrInputQuestion;
export declare function apiAuthQuestion(): SingleSelectQuestion;
export declare function apiOperationQuestion(includeExistingAPIs?: boolean, isAddPlugin?: boolean): MultiSelectQuestion;
export declare function apiPluginStartQuestion(doesProjectExists?: boolean): SingleSelectQuestion;
export declare function pluginManifestQuestion(): SingleFileQuestion;
export declare function pluginApiSpecQuestion(): SingleFileQuestion;
export declare function capabilitySubTree(): IQTreeNode;
export declare function createProjectQuestionNode(): IQTreeNode;
export declare function createSampleProjectQuestionNode(): IQTreeNode;
export declare function createProjectCliHelpNode(): IQTreeNode;
//# sourceMappingURL=create.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../src/question/create.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,cAAc,EACd,UAAU,EACV,MAAM,EACN,mBAAmB,EACnB,UAAU,EAEV,yBAAyB,EACzB,kBAAkB,EAClB,oBAAoB,EAGpB,iBAAiB,EAElB,MAAM,wBAAwB,CAAC;AAahC,OAAO,EAAE,aAAa,EAAE,MAAM,sEAAsE,CAAC;AAYrG,OAAO,EACL,sBAAsB,EAEvB,MAAM,qDAAqD,CAAC;AAuC7D,wBAAgB,mBAAmB,IAAI,oBAAoB,CAuD1D;AAED,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,aAAa,GACtB;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CA2BzD;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAEnE;AACD,wBAAgB,kBAAkB,IAAI,oBAAoB,CA2FzD;AAED,wBAAgB,sBAAsB,IAAI,oBAAoB,CAkB7D;AAmDD,wBAAgB,yBAAyB,IAAI,oBAAoB,CAoEhE;AAED,wBAAgB,qBAAqB,IAAI,oBAAoB,CAe5D;AAED,wBAAgB,uBAAuB,IAAI,iBAAiB,CA6C3D;AAED,wBAAgB,wBAAwB,CAAC,cAAc,UAAQ,GAAG,cAAc,CAc/E;AAED,wBAAgB,4BAA4B,IAAI,oBAAoB,CAiBnE;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,EAAE,CAiBrE;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAY9D;AAED,wBAAgB,4BAA4B,IAAI,sBAAsB,CAErE;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,EAAE,CAsD/D;AAED,wBAAgB,2BAA2B,IAAI,oBAAoB,CA2ClE;AAED,wBAAgB,cAAc,IAAI,cAAc,CAgB/C;AAED,wBAAsB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAYrF;AACD,wBAAgB,eAAe,IAAI,iBAAiB,CA8DnD;AAiND,wBAAgB,uBAAuB,CAAC,mBAAmB,UAAO,GAAG,yBAAyB,CAmF7F;AAED,wBAAgB,eAAe,IAAI,oBAAoB,CAyBtD;AAED,wBAAgB,oBAAoB,CAClC,mBAAmB,UAAO,EAC1B,WAAW,UAAQ,GAClB,mBAAmB,CAwGrB;AAkID,wBAAgB,sBAAsB,CAAC,iBAAiB,CAAC,EAAE,OAAO,GAAG,oBAAoB,CAuBxF;AAED,wBAAgB,sBAAsB,IAAI,kBAAkB,CAkD3D;AAED,wBAAgB,qBAAqB,IAAI,kBAAkB,CAkE1D;AAED,wBAAgB,iBAAiB,IAAI,UAAU,CA6O9C;AAED,wBAAgB,yBAAyB,IAAI,UAAU,CAkDtD;AAED,wBAAgB,+BAA+B,IAAI,UAAU,CAS5D;AAED,wBAAgB,wBAAwB,IAAI,UAAU,CAerD"}
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
+4
View File
@@ -0,0 +1,4 @@
import { IQTreeNode } from "@microsoft/teamsfx-api";
export declare function generateCliOptions(node: IQTreeNode, name: string, optionFolder?: string, excludes?: string[]): Promise<void>;
export declare function generateInputs(node: IQTreeNode, name: string, inputsFolder?: string, excludes?: string[]): Promise<void>;
//# sourceMappingURL=generator.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../src/question/generator.ts"],"names":[],"mappings":"AAGA,OAAO,EAML,UAAU,EAKX,MAAM,wBAAwB,CAAC;AAoIhC,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,MAAM,EACZ,YAAY,SAA2B,EACvC,QAAQ,CAAC,EAAE,MAAM,EAAE,GAClB,OAAO,CAAC,IAAI,CAAC,CAqIf;AAED,wBAAsB,cAAc,CAClC,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,MAAM,EACZ,YAAY,SAA0B,EACtC,QAAQ,WAAa,GACpB,OAAO,CAAC,IAAI,CAAC,CAmGf"}
+369
View File
@@ -0,0 +1,369 @@
"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
exports.generateInputs = exports.generateCliOptions = void 0;
const tslib_1 = require("tslib");
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
const path_1 = tslib_1.__importDefault(require("path"));
const ts_morph_1 = require("ts-morph");
const _1 = require(".");
const validationUtils_1 = require("../ui/validationUtils");
async function collectNodesForCliOptions(node, nodeList) {
if (node.cliOptionDisabled === "all")
return;
if (node.data.type !== "group" &&
(!node.cliOptionDisabled || node.cliOptionDisabled !== "self")) {
nodeList.push(node);
}
let currentOptions = [];
if (node.data.type === "singleSelect" || node.data.type === "multiSelect") {
currentOptions = node.data.staticOptions.map((option) => typeof option === "string" ? option : option.id);
}
if (node.children && (!node.cliOptionDisabled || node.cliOptionDisabled !== "children")) {
for (const child of node.children) {
if (child.condition && typeof child.condition !== "function" && currentOptions.length > 0) {
// try to exclude one case: parent value has a range, child condition is not functional condition,
// and none of the value in the range satisfies the condition
let someChoiceIsValid = false;
for (const parentValue of currentOptions) {
const res = await (0, validationUtils_1.validate)(child.condition, parentValue);
if (res === undefined) {
someChoiceIsValid = true;
break;
}
}
if (someChoiceIsValid) {
await collectNodesForCliOptions(child, nodeList);
}
// if all choices are invalid, trim the child node
}
else {
await collectNodesForCliOptions(child, nodeList);
}
}
}
}
async function collectNodesForInputs(node, nodeList) {
if (node.inputsDisabled === "all")
return;
if (node.data.type !== "group" && (!node.inputsDisabled || node.inputsDisabled !== "self")) {
nodeList.push(node);
}
let currentOptions = [];
if (node.data.type === "singleSelect" || node.data.type === "multiSelect") {
currentOptions = node.data.staticOptions.map((option) => typeof option === "string" ? option : option.id);
}
if (node.children && (!node.inputsDisabled || node.inputsDisabled !== "children")) {
for (const child of node.children) {
if (child.condition && typeof child.condition !== "function" && currentOptions.length > 0) {
// try to exclude one case: parent value has a range, child condition is not functional condition,
// and none of the value in the range satisfies the condition
let someChoiceIsValid = false;
for (const parentValue of currentOptions) {
const res = await (0, validationUtils_1.validate)(child.condition, parentValue);
if (res === undefined) {
someChoiceIsValid = true;
break;
}
}
if (someChoiceIsValid) {
await collectNodesForInputs(child, nodeList);
}
// if all choices are invalid, trim the child node
}
else {
await collectNodesForInputs(child, nodeList);
}
}
}
}
async function computeRequired(node) {
// console.log("computeRequired", node.data.name, "required:", (node.data as any).required);
if (node.children) {
const parentRequired = node.data.required || false;
for (const child of node.children) {
let childRequired = child.data.required || false;
if (!childRequired) {
if (!child.condition && parentRequired) {
childRequired = true;
}
else {
if (typeof child.condition === "function") {
const isValid = await child.condition({
platform: teamsfx_api_1.Platform.CLI_HELP,
});
if (isValid && parentRequired) {
childRequired = true;
}
}
}
}
if (childRequired && child.data.required !== false)
child.data.required = true;
// console.log(
// child.data.name,
// "parent required:",
// parentRequired,
// "child required:",
// (child.data as any).required,
// "child condition:",
// child.condition,
// "computed required:",
// (child.data as any).required
// );
await computeRequired(child);
}
}
}
const notice = "/****************************************************************************************\n" +
" * NOTICE: AUTO-GENERATED *\n" +
" ****************************************************************************************\n" +
` * This file is automatically generated by script "./src/question/generator.ts". *\n` +
" * Please don't manually change its contents, as any modifications will be overwritten! *\n" +
" ***************************************************************************************/\n\n\n";
async function generateCliOptions(node, name, optionFolder = "./src/question/options", excludes) {
// initialize
const project = new ts_morph_1.Project({
manipulationSettings: {
indentationText: ts_morph_1.IndentationText.TwoSpaces, // Set the indentation to 2 spaces
},
});
const optionFile = project.createSourceFile(path_1.default.join(optionFolder, `${name}Options.ts`), "", {
overwrite: true,
});
const cliNodeList = [];
await collectNodesForCliOptions(node, cliNodeList);
// console.log(`node collected: ${nodeList.map((n) => n.data.name).join(",")}`);
node.data.required = true;
await computeRequired(node);
const questionNames = new Set();
const cliOptions = [];
const cliArguments = [];
for (const node of cliNodeList) {
const data = node.data;
const questionName = data.name;
const cliName = data.cliName || questionName;
if (excludes === null || excludes === void 0 ? void 0 : excludes.includes(cliName))
continue;
if (questionNames.has(questionName)) {
continue;
}
const title = data.title
? typeof data.title !== "function"
? data.title
: await data.title({ platform: teamsfx_api_1.Platform.CLI_HELP })
: undefined;
const defaultValue = data.default
? typeof data.default !== "function"
? data.default
: await data.default({ platform: teamsfx_api_1.Platform.CLI_HELP })
: undefined;
const propDocDescription = title || data.name;
const option = {
name: cliName,
questionName: questionName === cliName ? undefined : questionName,
type: getOptionType(data),
shortName: data.cliShortName,
description: data.cliDescription || propDocDescription,
required: data.required,
default: data.isBoolean ? Boolean(defaultValue) : defaultValue,
};
if (data.cliHidden) {
option.hidden = data.cliHidden;
}
if (data.type === "singleSelect" || data.type === "multiSelect") {
const selection = data;
const options = selection.staticOptions;
if (data.isBoolean) {
}
else if (options.length > 0) {
const choices = options.map((o) => (typeof o === "string" ? o : o.id));
option.choices = choices;
}
option.choiceListCommand =
selection.cliChoiceListCommand;
if (selection.skipValidation)
option.skipValidation = selection.skipValidation;
}
questionNames.add(questionName);
if (data.cliType !== "argument") {
cliOptions.push(option);
}
else {
cliArguments.push(option);
}
}
const optionInitializerCode = JSON.stringify(cliOptions, null, 2)
.replace(/"([^"]+)":/g, "$1:")
.replace(/\\"/g, '"')
.replace(/\n}$/g, ",\n}");
const argumentInitializerCode = JSON.stringify(cliArguments, null, 2)
.replace(/"([^"]+)":/g, "$1:")
.replace(/\\"/g, '"');
optionFile.addVariableStatement({
declarationKind: ts_morph_1.VariableDeclarationKind.Const,
isExported: true,
declarations: [
{
name: name + "Options",
type: "CLICommandOption[]",
initializer: optionInitializerCode,
},
],
});
optionFile.addVariableStatement({
declarationKind: ts_morph_1.VariableDeclarationKind.Const,
isExported: true,
declarations: [
{
name: name + "Arguments",
type: "CLICommandArgument[]",
initializer: argumentInitializerCode,
},
],
});
optionFile.addImportDeclaration({
namedImports: ["CLICommandOption", "CLICommandArgument"],
moduleSpecifier: "@microsoft/teamsfx-api",
});
optionFile.insertText(0, "// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n" + notice);
optionFile.formatText();
await updateExports("./src/question/options/index.ts", `export * from "./${name}Options";`);
await project.save();
}
exports.generateCliOptions = generateCliOptions;
async function generateInputs(node, name, inputsFolder = "./src/question/inputs", excludes = ["folder"]) {
// initialize
const project = new ts_morph_1.Project({
manipulationSettings: {
indentationText: ts_morph_1.IndentationText.TwoSpaces, // Set the indentation to 2 spaces
},
});
const inputsFile = project.createSourceFile(path_1.default.join(inputsFolder, `${name}Inputs.ts`), "", {
overwrite: true,
});
const inputsNodeList = [];
await collectNodesForInputs(node, inputsNodeList);
// console.log(`node collected: ${nodeList.map((n) => n.data.name).join(",")}`);
node.data.required = true;
await computeRequired(node);
const questionNames = new Set();
const properties = [];
for (const node of inputsNodeList) {
const data = node.data;
const questionName = data.name;
const cliName = data.cliName || questionName;
if (excludes.includes(cliName))
continue;
if (questionNames.has(questionName)) {
continue;
}
let type = "string";
const title = data.title
? typeof data.title !== "function"
? data.title
: await data.title({ platform: teamsfx_api_1.Platform.CLI_HELP })
: undefined;
const propDocDescription = title || data.name;
if (data.type === "singleSelect" || data.type === "multiSelect") {
const selection = data;
const options = selection.staticOptions;
if (data.isBoolean) {
type = "boolean";
}
else if (options.length > 0) {
const optionStrings = options.map((o) => (typeof o === "string" ? o : o.id));
type = selection.skipValidation ? "string" : optionStrings.map((i) => `"${i}"`).join(" | ");
}
else {
type = "string";
}
if (data.type === "multiSelect") {
type += "[]";
}
}
const inputPropName = questionName.includes("-") ? `"${questionName}"` : questionName;
properties.push({
name: inputPropName,
type: type,
hasQuestionToken: true,
docs: [`@description ${propDocDescription}`],
});
questionNames.add(questionName);
}
inputsFile.addInterface({
name: name + "Inputs",
isExported: true,
properties: properties,
extends: ["Inputs"],
});
inputsFile.addImportDeclaration({
namedImports: ["Inputs"],
moduleSpecifier: "@microsoft/teamsfx-api",
});
inputsFile.insertText(0, "// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n" + notice);
inputsFile.formatText();
await updateExports("./src/question/inputs/index.ts", `export * from "./${name}Inputs";`);
await project.save();
}
exports.generateInputs = generateInputs;
function getOptionType(question) {
if (question.isBoolean)
return "boolean";
if (question.type === "multiSelect") {
return "array";
}
return "string";
}
async function updateExports(filePath, exportStatement) {
const project = new ts_morph_1.Project();
try {
const sourceFile = project.addSourceFileAtPathIfExists(filePath);
if (!sourceFile)
return;
const hasExport = sourceFile.getStatements().some((statement) => {
return (statement.getKind() === ts_morph_1.SyntaxKind.ExportDeclaration &&
statement.getText().trim() === exportStatement);
});
if (!hasExport) {
sourceFile.addStatements([exportStatement]);
await sourceFile.save();
console.log(`Export statement '${exportStatement}' added successfully.`);
}
}
catch (err) {
console.error("Error occurred:", err);
return;
}
}
async function batchGenerate() {
await generateCliOptions(_1.questionNodes.createProject(), "CreateProject");
await generateInputs(_1.questionNodes.createProject(), "CreateProject");
await generateCliOptions(_1.questionNodes.createSampleProject(), "CreateSampleProject");
await generateInputs(_1.questionNodes.createSampleProject(), "CreateSampleProject");
await generateCliOptions(_1.questionNodes.addWebpart(), "SPFxAddWebpart");
await generateInputs(_1.questionNodes.addWebpart(), "SPFxAddWebpart");
await generateCliOptions(_1.questionNodes.createNewEnv(), "CreateEnv");
await generateInputs(_1.questionNodes.createNewEnv(), "CreateEnv");
await generateCliOptions(_1.questionNodes.selectTeamsAppManifest(), "SelectTeamsManifest");
await generateInputs(_1.questionNodes.selectTeamsAppManifest(), "SelectTeamsManifest");
await generateCliOptions(_1.questionNodes.validateTeamsApp(), "ValidateTeamsApp");
await generateInputs(_1.questionNodes.validateTeamsApp(), "ValidateTeamsApp");
await generateCliOptions(_1.questionNodes.previewWithTeamsAppManifest(), "PreviewTeamsApp");
await generateInputs(_1.questionNodes.previewWithTeamsAppManifest(), "PreviewTeamsApp");
await generateCliOptions(_1.questionNodes.grantPermission(), "PermissionGrant");
await generateInputs(_1.questionNodes.grantPermission(), "PermissionGrant");
await generateCliOptions(_1.questionNodes.listCollaborator(), "PermissionList");
await generateInputs(_1.questionNodes.listCollaborator(), "PermissionList");
await generateCliOptions(_1.questionNodes.deployAadManifest(), "DeployAadManifest");
await generateInputs(_1.questionNodes.deployAadManifest(), "DeployAadManifest");
await generateCliOptions(_1.questionNodes.addPlugin(), "AddPlugin");
await generateInputs(_1.questionNodes.addPlugin(), "AddPlugin");
await generateCliOptions(_1.questionNodes.uninstall(), "Uninstall");
await generateInputs(_1.questionNodes.uninstall(), "Uninstall");
await generateCliOptions(_1.questionNodes.syncManifest(), "SyncManifest");
await generateInputs(_1.questionNodes.syncManifest(), "SyncManifest");
}
void batchGenerate();
//# sourceMappingURL=generator.js.map
File diff suppressed because one or more lines are too long
+26
View File
@@ -0,0 +1,26 @@
import { IQTreeNode } from "@microsoft/teamsfx-api";
export * from "./constants";
export * from "./create";
export * from "./inputs";
export * from "./options";
export declare class QuestionNodes {
createProject(): IQTreeNode;
createSampleProject(): IQTreeNode;
createProjectCliHelp(): IQTreeNode;
addWebpart(): IQTreeNode;
selectTeamsAppManifest(): IQTreeNode;
validateTeamsApp(): IQTreeNode;
previewWithTeamsAppManifest(): IQTreeNode;
listCollaborator(): IQTreeNode;
grantPermission(): IQTreeNode;
deployAadManifest(): IQTreeNode;
createNewEnv(): IQTreeNode;
copilotPluginAddAPI(): IQTreeNode;
apiKey(): IQTreeNode;
oauth(): IQTreeNode;
addPlugin(): IQTreeNode;
uninstall(): IQTreeNode;
syncManifest(): IQTreeNode;
}
export declare const questionNodes: QuestionNodes;
//# sourceMappingURL=index.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/question/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAsBpD,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAE1B,qBAAa,aAAa;IACxB,aAAa,IAAI,UAAU;IAG3B,mBAAmB,IAAI,UAAU;IAGjC,oBAAoB,IAAI,UAAU;IAGlC,UAAU,IAAI,UAAU;IAGxB,sBAAsB,IAAI,UAAU;IAGpC,gBAAgB,IAAI,UAAU;IAG9B,2BAA2B,IAAI,UAAU;IAGzC,gBAAgB,IAAI,UAAU;IAG9B,eAAe,IAAI,UAAU;IAG7B,iBAAiB,IAAI,UAAU;IAG/B,YAAY,IAAI,UAAU;IAG1B,mBAAmB,IAAI,UAAU;IAGjC,MAAM,IAAI,UAAU;IAGpB,KAAK,IAAI,UAAU;IAGnB,SAAS,IAAI,UAAU;IAGvB,SAAS,IAAI,UAAU;IAGvB,YAAY,IAAI,UAAU;CAG3B;AAED,eAAO,MAAM,aAAa,eAAsB,CAAC"}
+68
View File
@@ -0,0 +1,68 @@
"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
exports.questionNodes = exports.QuestionNodes = void 0;
const tslib_1 = require("tslib");
const create_1 = require("./create");
const other_1 = require("./other");
tslib_1.__exportStar(require("./constants"), exports);
tslib_1.__exportStar(require("./create"), exports);
tslib_1.__exportStar(require("./inputs"), exports);
tslib_1.__exportStar(require("./options"), exports);
class QuestionNodes {
createProject() {
return (0, create_1.createProjectQuestionNode)();
}
createSampleProject() {
return (0, create_1.createSampleProjectQuestionNode)();
}
createProjectCliHelp() {
return (0, create_1.createProjectCliHelpNode)();
}
addWebpart() {
return (0, other_1.addWebPartQuestionNode)();
}
selectTeamsAppManifest() {
return (0, other_1.selectTeamsAppManifestQuestionNode)();
}
validateTeamsApp() {
return (0, other_1.validateTeamsAppQuestionNode)();
}
previewWithTeamsAppManifest() {
return (0, other_1.previewWithTeamsAppManifestQuestionNode)();
}
listCollaborator() {
return (0, other_1.listCollaboratorQuestionNode)();
}
grantPermission() {
return (0, other_1.grantPermissionQuestionNode)();
}
deployAadManifest() {
return (0, other_1.deployAadManifestQuestionNode)();
}
createNewEnv() {
return (0, other_1.createNewEnvQuestionNode)();
}
copilotPluginAddAPI() {
return (0, other_1.copilotPluginAddAPIQuestionNode)();
}
apiKey() {
return (0, other_1.apiSpecApiKeyQuestion)();
}
oauth() {
return (0, other_1.oauthQuestion)();
}
addPlugin() {
return (0, other_1.addPluginQuestionNode)();
}
uninstall() {
return (0, other_1.uninstallQuestionNode)();
}
syncManifest() {
return (0, other_1.syncManifestQuestionNode)();
}
}
exports.QuestionNodes = QuestionNodes;
exports.questionNodes = new QuestionNodes();
//# sourceMappingURL=index.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/question/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAGlC,qCAIkB;AAClB,mCAeiB;AACjB,sDAA4B;AAC5B,mDAAyB;AACzB,mDAAyB;AACzB,oDAA0B;AAE1B,MAAa,aAAa;IACxB,aAAa;QACX,OAAO,IAAA,kCAAyB,GAAE,CAAC;IACrC,CAAC;IACD,mBAAmB;QACjB,OAAO,IAAA,wCAA+B,GAAE,CAAC;IAC3C,CAAC;IACD,oBAAoB;QAClB,OAAO,IAAA,iCAAwB,GAAE,CAAC;IACpC,CAAC;IACD,UAAU;QACR,OAAO,IAAA,8BAAsB,GAAE,CAAC;IAClC,CAAC;IACD,sBAAsB;QACpB,OAAO,IAAA,0CAAkC,GAAE,CAAC;IAC9C,CAAC;IACD,gBAAgB;QACd,OAAO,IAAA,oCAA4B,GAAE,CAAC;IACxC,CAAC;IACD,2BAA2B;QACzB,OAAO,IAAA,+CAAuC,GAAE,CAAC;IACnD,CAAC;IACD,gBAAgB;QACd,OAAO,IAAA,oCAA4B,GAAE,CAAC;IACxC,CAAC;IACD,eAAe;QACb,OAAO,IAAA,mCAA2B,GAAE,CAAC;IACvC,CAAC;IACD,iBAAiB;QACf,OAAO,IAAA,qCAA6B,GAAE,CAAC;IACzC,CAAC;IACD,YAAY;QACV,OAAO,IAAA,gCAAwB,GAAE,CAAC;IACpC,CAAC;IACD,mBAAmB;QACjB,OAAO,IAAA,uCAA+B,GAAE,CAAC;IAC3C,CAAC;IACD,MAAM;QACJ,OAAO,IAAA,6BAAqB,GAAE,CAAC;IACjC,CAAC;IACD,KAAK;QACH,OAAO,IAAA,qBAAa,GAAE,CAAC;IACzB,CAAC;IACD,SAAS;QACP,OAAO,IAAA,6BAAqB,GAAE,CAAC;IACjC,CAAC;IACD,SAAS;QACP,OAAO,IAAA,6BAAqB,GAAE,CAAC;IACjC,CAAC;IACD,YAAY;QACV,OAAO,IAAA,gCAAwB,GAAE,CAAC;IACpC,CAAC;CACF;AApDD,sCAoDC;AAEY,QAAA,aAAa,GAAG,IAAI,aAAa,EAAE,CAAC"}
@@ -0,0 +1,22 @@
/****************************************************************************************
* NOTICE: AUTO-GENERATED *
****************************************************************************************
* This file is automatically generated by script "./src/question/generator.ts". *
* Please don't manually change its contents, as any modifications will be overwritten! *
***************************************************************************************/
import { Inputs } from "@microsoft/teamsfx-api";
export interface AddPluginInputs extends Inputs {
/** @description Add API Plugin */
"api-plugin-type"?: "api-spec" | "existing-plugin";
/** @description Import Manifest File */
"plugin-manifest-path"?: string;
/** @description Import OpenAPI Description Document */
"plugin-opeanapi-spec-path"?: string;
/** @description OpenAPI Description Document */
"openapi-spec-location"?: string;
/** @description Select Operation(s) Copilot Can Interact with */
"api-operation"?: string[];
/** @description Select Teams manifest.json File */
"manifest-path"?: string;
}
//# sourceMappingURL=AddPluginInputs.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"AddPluginInputs.d.ts","sourceRoot":"","sources":["../../../src/question/inputs/AddPluginInputs.ts"],"names":[],"mappings":"AAGA;;;;;yFAKyF;AAEzF,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,MAAM,WAAW,eAAgB,SAAQ,MAAM;IAC7C,kCAAkC;IAClC,iBAAiB,CAAC,EAAE,UAAU,GAAG,iBAAiB,CAAC;IACnD,wCAAwC;IACxC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,uDAAuD;IACvD,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,gDAAgD;IAChD,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,iEAAiE;IACjE,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,mDAAmD;IACnD,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
@@ -0,0 +1,5 @@
"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=AddPluginInputs.js.map
@@ -0,0 +1 @@
{"version":3,"file":"AddPluginInputs.js","sourceRoot":"","sources":["../../../src/question/inputs/AddPluginInputs.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"}
@@ -0,0 +1,14 @@
/****************************************************************************************
* NOTICE: AUTO-GENERATED *
****************************************************************************************
* This file is automatically generated by script "./src/question/generator.ts". *
* Please don't manually change its contents, as any modifications will be overwritten! *
***************************************************************************************/
import { Inputs } from "@microsoft/teamsfx-api";
export interface CreateEnvInputs extends Inputs {
/** @description New environment name */
newTargetEnvName?: string;
/** @description Select an environment to create copy */
sourceEnvName?: string;
}
//# sourceMappingURL=CreateEnvInputs.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"CreateEnvInputs.d.ts","sourceRoot":"","sources":["../../../src/question/inputs/CreateEnvInputs.ts"],"names":[],"mappings":"AAGA;;;;;yFAKyF;AAEzF,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,MAAM,WAAW,eAAgB,SAAQ,MAAM;IAC7C,wCAAwC;IACxC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,wDAAwD;IACxD,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
@@ -0,0 +1,5 @@
"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=CreateEnvInputs.js.map
@@ -0,0 +1 @@
{"version":3,"file":"CreateEnvInputs.js","sourceRoot":"","sources":["../../../src/question/inputs/CreateEnvInputs.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"}
@@ -0,0 +1,64 @@
/****************************************************************************************
* NOTICE: AUTO-GENERATED *
****************************************************************************************
* This file is automatically generated by script "./src/question/generator.ts". *
* Please don't manually change its contents, as any modifications will be overwritten! *
***************************************************************************************/
import { Inputs } from "@microsoft/teamsfx-api";
export interface CreateProjectInputs extends Inputs {
/** @description Teams Toolkit: select runtime for your app */
runtime?: "node" | "dotnet";
/** @description New Project */
"project-type"?: "bot-type" | "tab-type" | "me-type" | "office-addin-type" | "outlook-addin-type";
/** @description Capabilities */
capabilities?: "empty" | "bot" | "notification" | "command-bot" | "workflow-bot" | "tab-non-sso" | "sso-launch-page" | "dashboard-tab" | "tab-spfx" | "search-app" | "collect-form-message-extension" | "search-message-extension" | "link-unfurling" | "api-plugin" | "declarative-agent" | "custom-copilot-basic" | "custom-copilot-rag" | "custom-copilot-agent" | "message-extension" | "BotAndMessageExtension" | "TabNonSsoAndBot" | "json-taskpane" | "office-content-addin";
/** @description Select triggers */
"bot-host-type-trigger"?: "http-express" | "http-webapi" | "http-and-timer-functions" | "http-functions" | "timer-functions";
/** @description SharePoint Solution */
"spfx-solution"?: "new" | "import";
/** @description SharePoint Framework */
"spfx-install-latest-package"?: boolean;
/** @description Framework */
"spfx-framework-type"?: "react" | "minimal" | "none";
/** @description Name for SharePoint Framework Web Part */
"spfx-webpart-name"?: string;
/** @description SPFx solution folder */
"spfx-folder"?: string;
/** @description Architecture of Search Based Message Extension */
"me-architecture"?: "new-api" | "api-spec" | "bot-plugin" | "bot";
/** @description Create Declarative Agent */
"with-plugin"?: "no" | "yes";
/** @description Create API Plugin */
"api-plugin-type"?: "new-api" | "api-spec" | "existing-plugin";
/** @description Import Manifest File */
"plugin-manifest-path"?: string;
/** @description Import OpenAPI Description Document */
"plugin-opeanapi-spec-path"?: string;
/** @description Authentication Type */
"api-auth"?: "none" | "api-key" | "microsoft-entra" | "oauth";
/** @description Chat With Your Data */
"custom-copilot-rag"?: "custom-copilot-rag-customize" | "custom-copilot-rag-azureAISearch" | "custom-copilot-rag-customApi" | "custom-copilot-rag-microsoft365";
/** @description OpenAPI Description Document */
"openapi-spec-location"?: string;
/** @description Select Operation(s) Teams Can Interact with */
"api-operation"?: string[];
/** @description AI Agent */
"custom-copilot-agent"?: "custom-copilot-agent-new" | "custom-copilot-agent-assistants-api";
/** @description Programming Language */
"programming-language"?: "javascript" | "typescript" | "csharp" | "python";
/** @description Service for Large Language Model (LLM) */
"llm-service"?: "llm-service-azure-openai" | "llm-service-openai";
/** @description Azure OpenAI Key */
"azure-openai-key"?: string;
/** @description Azure OpenAI Endpoint */
"azure-openai-endpoint"?: string;
/** @description Azure OpenAI Deployment Name */
"azure-openai-deployment-name"?: string;
/** @description OpenAI Key */
"openai-key"?: string;
/** @description Framework */
"office-addin-framework-type"?: "default" | "react";
/** @description Application Name */
"app-name"?: string;
}
//# sourceMappingURL=CreateProjectInputs.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"CreateProjectInputs.d.ts","sourceRoot":"","sources":["../../../src/question/inputs/CreateProjectInputs.ts"],"names":[],"mappings":"AAGA;;;;;yFAKyF;AAEzF,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,MAAM,WAAW,mBAAoB,SAAQ,MAAM;IACjD,8DAA8D;IAC9D,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC5B,+BAA+B;IAC/B,cAAc,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,mBAAmB,GAAG,oBAAoB,CAAC;IAClG,gCAAgC;IAChC,YAAY,CAAC,EACT,OAAO,GACP,KAAK,GACL,cAAc,GACd,aAAa,GACb,cAAc,GACd,aAAa,GACb,iBAAiB,GACjB,eAAe,GACf,UAAU,GACV,YAAY,GACZ,gCAAgC,GAChC,0BAA0B,GAC1B,gBAAgB,GAChB,YAAY,GACZ,mBAAmB,GACnB,sBAAsB,GACtB,oBAAoB,GACpB,sBAAsB,GACtB,mBAAmB,GACnB,wBAAwB,GACxB,iBAAiB,GACjB,eAAe,GACf,sBAAsB,CAAC;IAC3B,mCAAmC;IACnC,uBAAuB,CAAC,EACpB,cAAc,GACd,aAAa,GACb,0BAA0B,GAC1B,gBAAgB,GAChB,iBAAiB,CAAC;IACtB,uCAAuC;IACvC,eAAe,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IACnC,wCAAwC;IACxC,6BAA6B,CAAC,EAAE,OAAO,CAAC;IACxC,6BAA6B;IAC7B,qBAAqB,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IACrD,0DAA0D;IAC1D,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,wCAAwC;IACxC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kEAAkE;IAClE,iBAAiB,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,YAAY,GAAG,KAAK,CAAC;IAClE,4CAA4C;IAC5C,aAAa,CAAC,EAAE,IAAI,GAAG,KAAK,CAAC;IAC7B,qCAAqC;IACrC,iBAAiB,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,iBAAiB,CAAC;IAC/D,wCAAwC;IACxC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,uDAAuD;IACvD,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,uCAAuC;IACvC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,iBAAiB,GAAG,OAAO,CAAC;IAC9D,uCAAuC;IACvC,oBAAoB,CAAC,EACjB,8BAA8B,GAC9B,kCAAkC,GAClC,8BAA8B,GAC9B,iCAAiC,CAAC;IACtC,gDAAgD;IAChD,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,+DAA+D;IAC/D,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,4BAA4B;IAC5B,sBAAsB,CAAC,EAAE,0BAA0B,GAAG,qCAAqC,CAAC;IAC5F,wCAAwC;IACxC,sBAAsB,CAAC,EAAE,YAAY,GAAG,YAAY,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC3E,0DAA0D;IAC1D,aAAa,CAAC,EAAE,0BAA0B,GAAG,oBAAoB,CAAC;IAClE,oCAAoC;IACpC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,yCAAyC;IACzC,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,gDAAgD;IAChD,8BAA8B,CAAC,EAAE,MAAM,CAAC;IACxC,8BAA8B;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6BAA6B;IAC7B,6BAA6B,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IACpD,oCAAoC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,5 @@
"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=CreateProjectInputs.js.map
@@ -0,0 +1 @@
{"version":3,"file":"CreateProjectInputs.js","sourceRoot":"","sources":["../../../src/question/inputs/CreateProjectInputs.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"}
@@ -0,0 +1,12 @@
/****************************************************************************************
* NOTICE: AUTO-GENERATED *
****************************************************************************************
* This file is automatically generated by script "./src/question/generator.ts". *
* Please don't manually change its contents, as any modifications will be overwritten! *
***************************************************************************************/
import { Inputs } from "@microsoft/teamsfx-api";
export interface CreateSampleProjectInputs extends Inputs {
/** @description Start from a sample */
samples?: string;
}
//# sourceMappingURL=CreateSampleProjectInputs.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"CreateSampleProjectInputs.d.ts","sourceRoot":"","sources":["../../../src/question/inputs/CreateSampleProjectInputs.ts"],"names":[],"mappings":"AAGA;;;;;yFAKyF;AAEzF,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,MAAM,WAAW,yBAA0B,SAAQ,MAAM;IACvD,uCAAuC;IACvC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
@@ -0,0 +1,5 @@
"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=CreateSampleProjectInputs.js.map
@@ -0,0 +1 @@
{"version":3,"file":"CreateSampleProjectInputs.js","sourceRoot":"","sources":["../../../src/question/inputs/CreateSampleProjectInputs.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"}
@@ -0,0 +1,14 @@
/****************************************************************************************
* NOTICE: AUTO-GENERATED *
****************************************************************************************
* This file is automatically generated by script "./src/question/generator.ts". *
* Please don't manually change its contents, as any modifications will be overwritten! *
***************************************************************************************/
import { Inputs } from "@microsoft/teamsfx-api";
export interface DeployAadManifestInputs extends Inputs {
/** @description Select Microsoft Entra manifest.json file */
"manifest-file-path"?: string;
/** @description Select an environment */
env?: string;
}
//# sourceMappingURL=DeployAadManifestInputs.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"DeployAadManifestInputs.d.ts","sourceRoot":"","sources":["../../../src/question/inputs/DeployAadManifestInputs.ts"],"names":[],"mappings":"AAGA;;;;;yFAKyF;AAEzF,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,MAAM,WAAW,uBAAwB,SAAQ,MAAM;IACrD,6DAA6D;IAC7D,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,yCAAyC;IACzC,GAAG,CAAC,EAAE,MAAM,CAAC;CACd"}
@@ -0,0 +1,5 @@
"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=DeployAadManifestInputs.js.map
@@ -0,0 +1 @@
{"version":3,"file":"DeployAadManifestInputs.js","sourceRoot":"","sources":["../../../src/question/inputs/DeployAadManifestInputs.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"}
@@ -0,0 +1,18 @@
/****************************************************************************************
* NOTICE: AUTO-GENERATED *
****************************************************************************************
* This file is automatically generated by script "./src/question/generator.ts". *
* Please don't manually change its contents, as any modifications will be overwritten! *
***************************************************************************************/
import { Inputs } from "@microsoft/teamsfx-api";
export interface PermissionGrantInputs extends Inputs {
/** @description Select Teams manifest.json File */
"manifest-path"?: string;
/** @description Select an environment */
env?: string;
/** @description Select Microsoft Entra manifest.json file */
"manifest-file-path"?: string;
/** @description Add owner to Teams/Microsoft Entra app for the account under the same Microsoft 365 tenant (email) */
email?: string;
}
//# sourceMappingURL=PermissionGrantInputs.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"PermissionGrantInputs.d.ts","sourceRoot":"","sources":["../../../src/question/inputs/PermissionGrantInputs.ts"],"names":[],"mappings":"AAGA;;;;;yFAKyF;AAEzF,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,MAAM,WAAW,qBAAsB,SAAQ,MAAM;IACnD,mDAAmD;IACnD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,yCAAyC;IACzC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,6DAA6D;IAC7D,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,sHAAsH;IACtH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,5 @@
"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=PermissionGrantInputs.js.map
@@ -0,0 +1 @@
{"version":3,"file":"PermissionGrantInputs.js","sourceRoot":"","sources":["../../../src/question/inputs/PermissionGrantInputs.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"}
@@ -0,0 +1,16 @@
/****************************************************************************************
* NOTICE: AUTO-GENERATED *
****************************************************************************************
* This file is automatically generated by script "./src/question/generator.ts". *
* Please don't manually change its contents, as any modifications will be overwritten! *
***************************************************************************************/
import { Inputs } from "@microsoft/teamsfx-api";
export interface PermissionListInputs extends Inputs {
/** @description Select Teams manifest.json File */
"manifest-path"?: string;
/** @description Select an environment */
env?: string;
/** @description Select Microsoft Entra manifest.json file */
"manifest-file-path"?: string;
}
//# sourceMappingURL=PermissionListInputs.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"PermissionListInputs.d.ts","sourceRoot":"","sources":["../../../src/question/inputs/PermissionListInputs.ts"],"names":[],"mappings":"AAGA;;;;;yFAKyF;AAEzF,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,MAAM,WAAW,oBAAqB,SAAQ,MAAM;IAClD,mDAAmD;IACnD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,yCAAyC;IACzC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,6DAA6D;IAC7D,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B"}
@@ -0,0 +1,5 @@
"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=PermissionListInputs.js.map
@@ -0,0 +1 @@
{"version":3,"file":"PermissionListInputs.js","sourceRoot":"","sources":["../../../src/question/inputs/PermissionListInputs.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"}
@@ -0,0 +1,14 @@
/****************************************************************************************
* NOTICE: AUTO-GENERATED *
****************************************************************************************
* This file is automatically generated by script "./src/question/generator.ts". *
* Please don't manually change its contents, as any modifications will be overwritten! *
***************************************************************************************/
import { Inputs } from "@microsoft/teamsfx-api";
export interface PreviewTeamsAppInputs extends Inputs {
/** @description Platform */
"m365-host"?: "teams" | "outlook" | "office";
/** @description Select Teams manifest.json File */
"manifest-path"?: string;
}
//# sourceMappingURL=PreviewTeamsAppInputs.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"PreviewTeamsAppInputs.d.ts","sourceRoot":"","sources":["../../../src/question/inputs/PreviewTeamsAppInputs.ts"],"names":[],"mappings":"AAGA;;;;;yFAKyF;AAEzF,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,MAAM,WAAW,qBAAsB,SAAQ,MAAM;IACnD,4BAA4B;IAC5B,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;IAC7C,mDAAmD;IACnD,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
@@ -0,0 +1,5 @@
"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=PreviewTeamsAppInputs.js.map
@@ -0,0 +1 @@
{"version":3,"file":"PreviewTeamsAppInputs.js","sourceRoot":"","sources":["../../../src/question/inputs/PreviewTeamsAppInputs.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"}
@@ -0,0 +1,20 @@
/****************************************************************************************
* NOTICE: AUTO-GENERATED *
****************************************************************************************
* This file is automatically generated by script "./src/question/generator.ts". *
* Please don't manually change its contents, as any modifications will be overwritten! *
***************************************************************************************/
import { Inputs } from "@microsoft/teamsfx-api";
export interface SPFxAddWebpartInputs extends Inputs {
/** @description SPFx solution folder */
"spfx-folder"?: string;
/** @description Name for SharePoint Framework Web Part */
"spfx-webpart-name"?: string;
/** @description Framework */
"spfx-framework-type"?: "react" | "minimal" | "none";
/** @description Select Teams manifest.json File */
"manifest-path"?: string;
/** @description Select local Teams manifest.json file */
"local-manifest-path"?: string;
}
//# sourceMappingURL=SPFxAddWebpartInputs.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"SPFxAddWebpartInputs.d.ts","sourceRoot":"","sources":["../../../src/question/inputs/SPFxAddWebpartInputs.ts"],"names":[],"mappings":"AAGA;;;;;yFAKyF;AAEzF,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,MAAM,WAAW,oBAAqB,SAAQ,MAAM;IAClD,wCAAwC;IACxC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,0DAA0D;IAC1D,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,6BAA6B;IAC7B,qBAAqB,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IACrD,mDAAmD;IACnD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,yDAAyD;IACzD,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC"}
@@ -0,0 +1,5 @@
"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=SPFxAddWebpartInputs.js.map
@@ -0,0 +1 @@
{"version":3,"file":"SPFxAddWebpartInputs.js","sourceRoot":"","sources":["../../../src/question/inputs/SPFxAddWebpartInputs.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"}
@@ -0,0 +1,12 @@
/****************************************************************************************
* NOTICE: AUTO-GENERATED *
****************************************************************************************
* This file is automatically generated by script "./src/question/generator.ts". *
* Please don't manually change its contents, as any modifications will be overwritten! *
***************************************************************************************/
import { Inputs } from "@microsoft/teamsfx-api";
export interface SelectTeamsManifestInputs extends Inputs {
/** @description Select Teams manifest.json File */
"manifest-path"?: string;
}
//# sourceMappingURL=SelectTeamsManifestInputs.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"SelectTeamsManifestInputs.d.ts","sourceRoot":"","sources":["../../../src/question/inputs/SelectTeamsManifestInputs.ts"],"names":[],"mappings":"AAGA;;;;;yFAKyF;AAEzF,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,MAAM,WAAW,yBAA0B,SAAQ,MAAM;IACvD,mDAAmD;IACnD,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
@@ -0,0 +1,5 @@
"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=SelectTeamsManifestInputs.js.map
@@ -0,0 +1 @@
{"version":3,"file":"SelectTeamsManifestInputs.js","sourceRoot":"","sources":["../../../src/question/inputs/SelectTeamsManifestInputs.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"}
@@ -0,0 +1,16 @@
/****************************************************************************************
* NOTICE: AUTO-GENERATED *
****************************************************************************************
* This file is automatically generated by script "./src/question/generator.ts". *
* Please don't manually change its contents, as any modifications will be overwritten! *
***************************************************************************************/
import { Inputs } from "@microsoft/teamsfx-api";
export interface SyncManifestInputs extends Inputs {
/** @description Project path */
projectPath?: string;
/** @description Target Teams Toolkit Environment */
env?: string;
/** @description Teams App ID (optional) */
"teams-app-id"?: string;
}
//# sourceMappingURL=SyncManifestInputs.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"SyncManifestInputs.d.ts","sourceRoot":"","sources":["../../../src/question/inputs/SyncManifestInputs.ts"],"names":[],"mappings":"AAGA;;;;;yFAKyF;AAEzF,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,MAAM,WAAW,kBAAmB,SAAQ,MAAM;IAChD,gCAAgC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oDAAoD;IACpD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,2CAA2C;IAC3C,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
@@ -0,0 +1,5 @@
"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=SyncManifestInputs.js.map
@@ -0,0 +1 @@
{"version":3,"file":"SyncManifestInputs.js","sourceRoot":"","sources":["../../../src/question/inputs/SyncManifestInputs.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"}
@@ -0,0 +1,22 @@
/****************************************************************************************
* NOTICE: AUTO-GENERATED *
****************************************************************************************
* This file is automatically generated by script "./src/question/generator.ts". *
* Please don't manually change its contents, as any modifications will be overwritten! *
***************************************************************************************/
import { Inputs } from "@microsoft/teamsfx-api";
export interface UninstallInputs extends Inputs {
/** @description Choose a way to clean up resources */
mode?: "manifest-id" | "env" | "title-id";
/** @description Manifest ID */
"manifest-id"?: string;
/** @description Environment */
env?: string;
/** @description Project path */
projectPath?: string;
/** @description Choose resources to uninstall */
options?: "m365-app" | "app-registration" | "bot-framework-registration"[];
/** @description Title ID */
"title-id"?: string;
}
//# sourceMappingURL=UninstallInputs.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"UninstallInputs.d.ts","sourceRoot":"","sources":["../../../src/question/inputs/UninstallInputs.ts"],"names":[],"mappings":"AAGA;;;;;yFAKyF;AAEzF,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,MAAM,WAAW,eAAgB,SAAQ,MAAM;IAC7C,sDAAsD;IACtD,IAAI,CAAC,EAAE,aAAa,GAAG,KAAK,GAAG,UAAU,CAAC;IAC1C,+BAA+B;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,+BAA+B;IAC/B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iDAAiD;IACjD,OAAO,CAAC,EAAE,UAAU,GAAG,kBAAkB,GAAG,4BAA4B,EAAE,CAAC;IAC3E,4BAA4B;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,5 @@
"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=UninstallInputs.js.map
@@ -0,0 +1 @@
{"version":3,"file":"UninstallInputs.js","sourceRoot":"","sources":["../../../src/question/inputs/UninstallInputs.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"}
@@ -0,0 +1,14 @@
/****************************************************************************************
* NOTICE: AUTO-GENERATED *
****************************************************************************************
* This file is automatically generated by script "./src/question/generator.ts". *
* Please don't manually change its contents, as any modifications will be overwritten! *
***************************************************************************************/
import { Inputs } from "@microsoft/teamsfx-api";
export interface ValidateTeamsAppInputs extends Inputs {
/** @description Select Teams manifest.json File */
"manifest-path"?: string;
/** @description Select Teams App Package File */
"app-package-file-path"?: string;
}
//# sourceMappingURL=ValidateTeamsAppInputs.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"ValidateTeamsAppInputs.d.ts","sourceRoot":"","sources":["../../../src/question/inputs/ValidateTeamsAppInputs.ts"],"names":[],"mappings":"AAGA;;;;;yFAKyF;AAEzF,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,MAAM,WAAW,sBAAuB,SAAQ,MAAM;IACpD,mDAAmD;IACnD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iDAAiD;IACjD,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC"}
@@ -0,0 +1,5 @@
"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ValidateTeamsAppInputs.js.map
@@ -0,0 +1 @@
{"version":3,"file":"ValidateTeamsAppInputs.js","sourceRoot":"","sources":["../../../src/question/inputs/ValidateTeamsAppInputs.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"}
+14
View File
@@ -0,0 +1,14 @@
export * from "./CreateProjectInputs";
export * from "./CreateSampleProjectInputs";
export * from "./SPFxAddWebpartInputs";
export * from "./CreateEnvInputs";
export * from "./SelectTeamsManifestInputs";
export * from "./ValidateTeamsAppInputs";
export * from "./PreviewTeamsAppInputs";
export * from "./PermissionGrantInputs";
export * from "./PermissionListInputs";
export * from "./DeployAadManifestInputs";
export * from "./AddPluginInputs";
export * from "./UninstallInputs";
export * from "./SyncManifestInputs";
//# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/question/inputs/index.ts"],"names":[],"mappings":"AAEA,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC"}
+19
View File
@@ -0,0 +1,19 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
tslib_1.__exportStar(require("./CreateProjectInputs"), exports);
tslib_1.__exportStar(require("./CreateSampleProjectInputs"), exports);
tslib_1.__exportStar(require("./SPFxAddWebpartInputs"), exports);
tslib_1.__exportStar(require("./CreateEnvInputs"), exports);
tslib_1.__exportStar(require("./SelectTeamsManifestInputs"), exports);
tslib_1.__exportStar(require("./ValidateTeamsAppInputs"), exports);
tslib_1.__exportStar(require("./PreviewTeamsAppInputs"), exports);
tslib_1.__exportStar(require("./PermissionGrantInputs"), exports);
tslib_1.__exportStar(require("./PermissionListInputs"), exports);
tslib_1.__exportStar(require("./DeployAadManifestInputs"), exports);
tslib_1.__exportStar(require("./AddPluginInputs"), exports);
tslib_1.__exportStar(require("./UninstallInputs"), exports);
tslib_1.__exportStar(require("./SyncManifestInputs"), exports);
//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/question/inputs/index.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,gEAAsC;AACtC,sEAA4C;AAC5C,iEAAuC;AACvC,4DAAkC;AAClC,sEAA4C;AAC5C,mEAAyC;AACzC,kEAAwC;AACxC,kEAAwC;AACxC,iEAAuC;AACvC,oEAA0C;AAC1C,4DAAkC;AAClC,4DAAkC;AAClC,+DAAqC"}
@@ -0,0 +1,10 @@
/****************************************************************************************
* NOTICE: AUTO-GENERATED *
****************************************************************************************
* This file is automatically generated by script "./src/question/generator.ts". *
* Please don't manually change its contents, as any modifications will be overwritten! *
***************************************************************************************/
import { CLICommandOption, CLICommandArgument } from "@microsoft/teamsfx-api";
export declare const AddPluginOptions: CLICommandOption[];
export declare const AddPluginArguments: CLICommandArgument[];
//# sourceMappingURL=AddPluginOptions.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"AddPluginOptions.d.ts","sourceRoot":"","sources":["../../../src/question/options/AddPluginOptions.ts"],"names":[],"mappings":"AAGA;;;;;yFAKyF;AAEzF,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE9E,eAAO,MAAM,gBAAgB,EAAE,gBAAgB,EAyC9C,CAAC;AACF,eAAO,MAAM,kBAAkB,EAAE,kBAAkB,EAAO,CAAC"}
@@ -0,0 +1,48 @@
"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
exports.AddPluginArguments = exports.AddPluginOptions = void 0;
exports.AddPluginOptions = [
{
name: "api-plugin-type",
type: "string",
description: "API plugin type.",
required: true,
default: "new-api",
choices: ["api-spec", "existing-plugin"],
},
{
name: "plugin-manifest-path",
type: "string",
description: "Plugin manifest path.",
},
{
name: "plugin-opeanapi-spec-path",
type: "string",
description: "OpenAPI description document used for your API plugin.",
},
{
name: "openapi-spec-location",
type: "string",
shortName: "a",
description: "OpenAPI description document location.",
},
{
name: "api-operation",
type: "array",
shortName: "o",
description: "Select operation(s) Copilot can interact with.",
},
{
name: "teams-manifest-file",
questionName: "manifest-path",
type: "string",
shortName: "t",
description: "Specify the path for Teams app manifest template. It can be either absolute path or relative path to the project root folder, with default at './appPackage/manifest.json'",
required: true,
default: "./appPackage/manifest.json",
},
];
exports.AddPluginArguments = [];
//# sourceMappingURL=AddPluginOptions.js.map
@@ -0,0 +1 @@
{"version":3,"file":"AddPluginOptions.js","sourceRoot":"","sources":["../../../src/question/options/AddPluginOptions.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAWrB,QAAA,gBAAgB,GAAuB;IAClD;QACE,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,kBAAkB;QAC/B,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,CAAC,UAAU,EAAE,iBAAiB,CAAC;KACzC;IACD;QACE,IAAI,EAAE,sBAAsB;QAC5B,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,uBAAuB;KACrC;IACD;QACE,IAAI,EAAE,2BAA2B;QACjC,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,wDAAwD;KACtE;IACD;QACE,IAAI,EAAE,uBAAuB;QAC7B,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,GAAG;QACd,WAAW,EAAE,wCAAwC;KACtD;IACD;QACE,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,OAAO;QACb,SAAS,EAAE,GAAG;QACd,WAAW,EAAE,gDAAgD;KAC9D;IACD;QACE,IAAI,EAAE,qBAAqB;QAC3B,YAAY,EAAE,eAAe;QAC7B,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,GAAG;QACd,WAAW,EACT,4KAA4K;QAC9K,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,4BAA4B;KACtC;CACF,CAAC;AACW,QAAA,kBAAkB,GAAyB,EAAE,CAAC"}
@@ -0,0 +1,10 @@
/****************************************************************************************
* NOTICE: AUTO-GENERATED *
****************************************************************************************
* This file is automatically generated by script "./src/question/generator.ts". *
* Please don't manually change its contents, as any modifications will be overwritten! *
***************************************************************************************/
import { CLICommandOption, CLICommandArgument } from "@microsoft/teamsfx-api";
export declare const CreateEnvOptions: CLICommandOption[];
export declare const CreateEnvArguments: CLICommandArgument[];
//# sourceMappingURL=CreateEnvOptions.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"CreateEnvOptions.d.ts","sourceRoot":"","sources":["../../../src/question/options/CreateEnvOptions.ts"],"names":[],"mappings":"AAGA;;;;;yFAKyF;AAEzF,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE9E,eAAO,MAAM,gBAAgB,EAAE,gBAAgB,EAQ9C,CAAC;AACF,eAAO,MAAM,kBAAkB,EAAE,kBAAkB,EAQlD,CAAC"}
@@ -0,0 +1,24 @@
"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
exports.CreateEnvArguments = exports.CreateEnvOptions = void 0;
exports.CreateEnvOptions = [
{
name: "env",
questionName: "sourceEnvName",
type: "string",
description: "Specifies an existing environment name to copy from.",
required: true,
},
];
exports.CreateEnvArguments = [
{
name: "name",
questionName: "newTargetEnvName",
type: "string",
description: "Specifies the new environment name.",
required: true,
},
];
//# sourceMappingURL=CreateEnvOptions.js.map
@@ -0,0 +1 @@
{"version":3,"file":"CreateEnvOptions.js","sourceRoot":"","sources":["../../../src/question/options/CreateEnvOptions.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAWrB,QAAA,gBAAgB,GAAuB;IAClD;QACE,IAAI,EAAE,KAAK;QACX,YAAY,EAAE,eAAe;QAC7B,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,sDAAsD;QACnE,QAAQ,EAAE,IAAI;KACf;CACF,CAAC;AACW,QAAA,kBAAkB,GAAyB;IACtD;QACE,IAAI,EAAE,MAAM;QACZ,YAAY,EAAE,kBAAkB;QAChC,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,qCAAqC;QAClD,QAAQ,EAAE,IAAI;KACf;CACF,CAAC"}
@@ -0,0 +1,10 @@
/****************************************************************************************
* NOTICE: AUTO-GENERATED *
****************************************************************************************
* This file is automatically generated by script "./src/question/generator.ts". *
* Please don't manually change its contents, as any modifications will be overwritten! *
***************************************************************************************/
import { CLICommandOption, CLICommandArgument } from "@microsoft/teamsfx-api";
export declare const CreateProjectOptions: CLICommandOption[];
export declare const CreateProjectArguments: CLICommandArgument[];
//# sourceMappingURL=CreateProjectOptions.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"CreateProjectOptions.d.ts","sourceRoot":"","sources":["../../../src/question/options/CreateProjectOptions.ts"],"names":[],"mappings":"AAGA;;;;;yFAKyF;AAEzF,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE9E,eAAO,MAAM,oBAAoB,EAAE,gBAAgB,EA0NlD,CAAC;AACF,eAAO,MAAM,sBAAsB,EAAE,kBAAkB,EAAO,CAAC"}
@@ -0,0 +1,226 @@
"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
exports.CreateProjectArguments = exports.CreateProjectOptions = void 0;
exports.CreateProjectOptions = [
{
name: "runtime",
type: "string",
description: "Teams Toolkit: select runtime for your app",
default: "node",
hidden: true,
choices: ["node", "dotnet"],
},
{
name: "capability",
questionName: "capabilities",
type: "string",
shortName: "c",
description: "Specifies the Microsoft Teams App capability.",
required: true,
choices: [
"empty",
"bot",
"notification",
"command-bot",
"workflow-bot",
"tab-non-sso",
"sso-launch-page",
"dashboard-tab",
"tab-spfx",
"search-app",
"collect-form-message-extension",
"search-message-extension",
"link-unfurling",
"api-plugin",
"declarative-agent",
"custom-copilot-basic",
"custom-copilot-rag",
"custom-copilot-agent",
"message-extension",
"BotAndMessageExtension",
"TabNonSsoAndBot",
"json-taskpane",
"office-content-addin",
],
choiceListCommand: "teamsapp list templates",
},
{
name: "bot-host-type-trigger",
type: "string",
shortName: "t",
description: "Specifies the trigger for `Chat Notification Message` app template.",
default: "http-express",
choices: [
"http-express",
"http-webapi",
"http-and-timer-functions",
"http-functions",
"timer-functions",
],
},
{
name: "spfx-solution",
type: "string",
shortName: "s",
description: "Create a new or import an existing SharePoint Framework solution.",
default: "new",
choices: ["new", "import"],
},
{
name: "spfx-install-latest-package",
type: "boolean",
description: "Install the latest version of SharePoint Framework.",
default: true,
},
{
name: "spfx-framework-type",
type: "string",
shortName: "k",
description: "Framework.",
default: "react",
choices: ["react", "minimal", "none"],
},
{
name: "spfx-webpart-name",
type: "string",
shortName: "w",
description: "Name for SharePoint Framework Web Part.",
default: "helloworld",
},
{
name: "spfx-folder",
type: "string",
description: "Directory or Path that contains the existing SharePoint Framework solution.",
},
{
name: "me-architecture",
type: "string",
shortName: "m",
description: "Architecture of Search Based Message Extension.",
default: "new-api",
choices: ["new-api", "api-spec", "bot-plugin", "bot"],
},
{
name: "with-plugin",
type: "string",
description: "Whether to add API plugin for your declarative Copilot.",
default: "no",
choices: ["no", "yes"],
},
{
name: "api-plugin-type",
type: "string",
description: "API plugin type.",
default: "new-api",
choices: ["new-api", "api-spec", "existing-plugin"],
},
{
name: "plugin-manifest-path",
type: "string",
description: "Plugin manifest path.",
},
{
name: "plugin-opeanapi-spec-path",
type: "string",
description: "OpenAPI description document used for your API plugin.",
},
{
name: "api-auth",
type: "string",
description: "The authentication type for the API.",
default: "none",
choices: ["none", "api-key", "microsoft-entra", "oauth"],
},
{
name: "custom-copilot-rag",
type: "string",
description: "Chat With Your Data",
default: "custom-copilot-rag-customize",
choices: [
"custom-copilot-rag-customize",
"custom-copilot-rag-azureAISearch",
"custom-copilot-rag-customApi",
"custom-copilot-rag-microsoft365",
],
},
{
name: "openapi-spec-location",
type: "string",
shortName: "a",
description: "OpenAPI description document location.",
},
{
name: "api-operation",
type: "array",
shortName: "o",
description: "Select operation(s) Teams can interact with.",
},
{
name: "custom-copilot-agent",
type: "string",
description: "AI Agent",
default: "custom-copilot-agent-new",
choices: ["custom-copilot-agent-new", "custom-copilot-agent-assistants-api"],
},
{
name: "programming-language",
type: "string",
shortName: "l",
description: "Programming Language",
default: "javascript",
choices: ["javascript", "typescript", "csharp", "python"],
},
{
name: "llm-service",
type: "string",
description: "Service for Large Language Model (LLM)",
default: "llm-service-azure-openai",
choices: ["llm-service-azure-openai", "llm-service-openai"],
},
{
name: "azure-openai-key",
type: "string",
description: "Azure OpenAI Key",
},
{
name: "azure-openai-endpoint",
type: "string",
description: "Azure OpenAI Endpoint",
},
{
name: "azure-openai-deployment-name",
type: "string",
description: "Azure OpenAI Deployment Name",
},
{
name: "openai-key",
type: "string",
description: "OpenAI Key",
},
{
name: "office-addin-framework-type",
type: "string",
shortName: "f",
description: "Framework for WXP extension.",
choices: ["default", "react"],
},
{
name: "folder",
type: "string",
shortName: "f",
description: "Directory where the project folder will be created in.",
required: true,
default: "./",
},
{
name: "app-name",
type: "string",
shortName: "n",
description: "Application Name",
required: true,
},
];
exports.CreateProjectArguments = [];
//# sourceMappingURL=CreateProjectOptions.js.map
@@ -0,0 +1 @@
{"version":3,"file":"CreateProjectOptions.js","sourceRoot":"","sources":["../../../src/question/options/CreateProjectOptions.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,10 @@
/****************************************************************************************
* NOTICE: AUTO-GENERATED *
****************************************************************************************
* This file is automatically generated by script "./src/question/generator.ts". *
* Please don't manually change its contents, as any modifications will be overwritten! *
***************************************************************************************/
import { CLICommandOption, CLICommandArgument } from "@microsoft/teamsfx-api";
export declare const CreateSampleProjectOptions: CLICommandOption[];
export declare const CreateSampleProjectArguments: CLICommandArgument[];
//# sourceMappingURL=CreateSampleProjectOptions.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"CreateSampleProjectOptions.d.ts","sourceRoot":"","sources":["../../../src/question/options/CreateSampleProjectOptions.ts"],"names":[],"mappings":"AAGA;;;;;yFAKyF;AAEzF,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE9E,eAAO,MAAM,0BAA0B,EAAE,gBAAgB,EASxD,CAAC;AACF,eAAO,MAAM,4BAA4B,EAAE,kBAAkB,EAuC5D,CAAC"}
@@ -0,0 +1,56 @@
"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
exports.CreateSampleProjectArguments = exports.CreateSampleProjectOptions = void 0;
exports.CreateSampleProjectOptions = [
{
name: "folder",
type: "string",
shortName: "f",
description: "Directory where the project folder will be created in.",
required: true,
default: "./",
},
];
exports.CreateSampleProjectArguments = [
{
name: "sample-name",
questionName: "samples",
type: "string",
description: "Specifies the Microsoft Teams App sample name.",
required: true,
choices: [
"hello-world-tab-with-backend",
"graph-toolkit-contact-exporter",
"bot-sso",
"todo-list-SPFx",
"hello-world-in-meeting",
"todo-list-with-Azure-backend-M365",
"NPM-search-connector-M365",
"bot-proactive-messaging-teamsfx",
"adaptive-card-notification",
"incoming-webhook-notification",
"stocks-update-notification-bot",
"query-org-user-with-message-extension-sso",
"team-central-dashboard",
"graph-connector-app",
"graph-toolkit-one-productivity-hub",
"todo-list-with-Azure-backend",
"share-now",
"hello-world-teams-tab-and-outlook-add-in",
"outlook-add-in-set-signature",
"developer-assist-dashboard",
"live-share-dice-roller",
"teams-chef-bot",
"spfx-productivity-dashboard",
"react-retail-dashboard",
"sso-enabled-tab-via-apim-proxy",
"large-scale-notification",
"graph-connector-bot",
],
choiceListCommand: "teamsapp list samples",
skipValidation: true,
},
];
//# sourceMappingURL=CreateSampleProjectOptions.js.map
@@ -0,0 +1 @@
{"version":3,"file":"CreateSampleProjectOptions.js","sourceRoot":"","sources":["../../../src/question/options/CreateSampleProjectOptions.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAWrB,QAAA,0BAA0B,GAAuB;IAC5D;QACE,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,GAAG;QACd,WAAW,EAAE,wDAAwD;QACrE,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACd;CACF,CAAC;AACW,QAAA,4BAA4B,GAAyB;IAChE;QACE,IAAI,EAAE,aAAa;QACnB,YAAY,EAAE,SAAS;QACvB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,gDAAgD;QAC7D,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE;YACP,8BAA8B;YAC9B,gCAAgC;YAChC,SAAS;YACT,gBAAgB;YAChB,wBAAwB;YACxB,mCAAmC;YACnC,2BAA2B;YAC3B,iCAAiC;YACjC,4BAA4B;YAC5B,+BAA+B;YAC/B,gCAAgC;YAChC,2CAA2C;YAC3C,wBAAwB;YACxB,qBAAqB;YACrB,oCAAoC;YACpC,8BAA8B;YAC9B,WAAW;YACX,0CAA0C;YAC1C,8BAA8B;YAC9B,4BAA4B;YAC5B,wBAAwB;YACxB,gBAAgB;YAChB,6BAA6B;YAC7B,wBAAwB;YACxB,gCAAgC;YAChC,0BAA0B;YAC1B,qBAAqB;SACtB;QACD,iBAAiB,EAAE,uBAAuB;QAC1C,cAAc,EAAE,IAAI;KACrB;CACF,CAAC"}
@@ -0,0 +1,10 @@
/****************************************************************************************
* NOTICE: AUTO-GENERATED *
****************************************************************************************
* This file is automatically generated by script "./src/question/generator.ts". *
* Please don't manually change its contents, as any modifications will be overwritten! *
***************************************************************************************/
import { CLICommandOption, CLICommandArgument } from "@microsoft/teamsfx-api";
export declare const DeployAadManifestOptions: CLICommandOption[];
export declare const DeployAadManifestArguments: CLICommandArgument[];
//# sourceMappingURL=DeployAadManifestOptions.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"DeployAadManifestOptions.d.ts","sourceRoot":"","sources":["../../../src/question/options/DeployAadManifestOptions.ts"],"names":[],"mappings":"AAGA;;;;;yFAKyF;AAEzF,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE9E,eAAO,MAAM,wBAAwB,EAAE,gBAAgB,EAetD,CAAC;AACF,eAAO,MAAM,0BAA0B,EAAE,kBAAkB,EAAO,CAAC"}
@@ -0,0 +1,22 @@
"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
exports.DeployAadManifestArguments = exports.DeployAadManifestOptions = void 0;
exports.DeployAadManifestOptions = [
{
name: "entra-app-manifest-file",
questionName: "manifest-file-path",
type: "string",
shortName: "a",
description: "Specifies the Microsoft Entra app manifest file path, can be either absolute path or relative path to project root folder.",
default: "./aad.manifest.json",
},
{
name: "env",
type: "string",
description: "Specifies the environment name for the project.",
},
];
exports.DeployAadManifestArguments = [];
//# sourceMappingURL=DeployAadManifestOptions.js.map
@@ -0,0 +1 @@
{"version":3,"file":"DeployAadManifestOptions.js","sourceRoot":"","sources":["../../../src/question/options/DeployAadManifestOptions.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAWrB,QAAA,wBAAwB,GAAuB;IAC1D;QACE,IAAI,EAAE,yBAAyB;QAC/B,YAAY,EAAE,oBAAoB;QAClC,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,GAAG;QACd,WAAW,EACT,4HAA4H;QAC9H,OAAO,EAAE,qBAAqB;KAC/B;IACD;QACE,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,iDAAiD;KAC/D;CACF,CAAC;AACW,QAAA,0BAA0B,GAAyB,EAAE,CAAC"}
@@ -0,0 +1,10 @@
/****************************************************************************************
* NOTICE: AUTO-GENERATED *
****************************************************************************************
* This file is automatically generated by script "./src/question/generator.ts". *
* Please don't manually change its contents, as any modifications will be overwritten! *
***************************************************************************************/
import { CLICommandOption, CLICommandArgument } from "@microsoft/teamsfx-api";
export declare const PermissionGrantOptions: CLICommandOption[];
export declare const PermissionGrantArguments: CLICommandArgument[];
//# sourceMappingURL=PermissionGrantOptions.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"PermissionGrantOptions.d.ts","sourceRoot":"","sources":["../../../src/question/options/PermissionGrantOptions.ts"],"names":[],"mappings":"AAGA;;;;;yFAKyF;AAEzF,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE9E,eAAO,MAAM,sBAAsB,EAAE,gBAAgB,EA6BpD,CAAC;AACF,eAAO,MAAM,wBAAwB,EAAE,kBAAkB,EAAO,CAAC"}
@@ -0,0 +1,35 @@
"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
exports.PermissionGrantArguments = exports.PermissionGrantOptions = void 0;
exports.PermissionGrantOptions = [
{
name: "teams-manifest-file",
questionName: "manifest-path",
type: "string",
shortName: "t",
description: "Specify the path for Teams app manifest template. It can be either absolute path or relative path to the project root folder, with default at './appPackage/manifest.json'",
default: "./appPackage/manifest.json",
},
{
name: "env",
type: "string",
description: "Specifies the environment name for the project.",
},
{
name: "entra-app-manifest-file",
questionName: "manifest-file-path",
type: "string",
shortName: "a",
description: "Specifies the Microsoft Entra app manifest file path, can be either absolute path or relative path to project root folder.",
default: "./aad.manifest.json",
},
{
name: "email",
type: "string",
description: "Email address of the collaborator.",
},
];
exports.PermissionGrantArguments = [];
//# sourceMappingURL=PermissionGrantOptions.js.map
@@ -0,0 +1 @@
{"version":3,"file":"PermissionGrantOptions.js","sourceRoot":"","sources":["../../../src/question/options/PermissionGrantOptions.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAWrB,QAAA,sBAAsB,GAAuB;IACxD;QACE,IAAI,EAAE,qBAAqB;QAC3B,YAAY,EAAE,eAAe;QAC7B,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,GAAG;QACd,WAAW,EACT,4KAA4K;QAC9K,OAAO,EAAE,4BAA4B;KACtC;IACD;QACE,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,iDAAiD;KAC/D;IACD;QACE,IAAI,EAAE,yBAAyB;QAC/B,YAAY,EAAE,oBAAoB;QAClC,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,GAAG;QACd,WAAW,EACT,4HAA4H;QAC9H,OAAO,EAAE,qBAAqB;KAC/B;IACD;QACE,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,oCAAoC;KAClD;CACF,CAAC;AACW,QAAA,wBAAwB,GAAyB,EAAE,CAAC"}
@@ -0,0 +1,10 @@
/****************************************************************************************
* NOTICE: AUTO-GENERATED *
****************************************************************************************
* This file is automatically generated by script "./src/question/generator.ts". *
* Please don't manually change its contents, as any modifications will be overwritten! *
***************************************************************************************/
import { CLICommandOption, CLICommandArgument } from "@microsoft/teamsfx-api";
export declare const PermissionListOptions: CLICommandOption[];
export declare const PermissionListArguments: CLICommandArgument[];
//# sourceMappingURL=PermissionListOptions.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"PermissionListOptions.d.ts","sourceRoot":"","sources":["../../../src/question/options/PermissionListOptions.ts"],"names":[],"mappings":"AAGA;;;;;yFAKyF;AAEzF,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE9E,eAAO,MAAM,qBAAqB,EAAE,gBAAgB,EAwBnD,CAAC;AACF,eAAO,MAAM,uBAAuB,EAAE,kBAAkB,EAAO,CAAC"}
@@ -0,0 +1,30 @@
"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
exports.PermissionListArguments = exports.PermissionListOptions = void 0;
exports.PermissionListOptions = [
{
name: "teams-manifest-file",
questionName: "manifest-path",
type: "string",
shortName: "t",
description: "Specify the path for Teams app manifest template. It can be either absolute path or relative path to the project root folder, with default at './appPackage/manifest.json'",
default: "./appPackage/manifest.json",
},
{
name: "env",
type: "string",
description: "Specifies the environment name for the project.",
},
{
name: "entra-app-manifest-file",
questionName: "manifest-file-path",
type: "string",
shortName: "a",
description: "Specifies the Microsoft Entra app manifest file path, can be either absolute path or relative path to project root folder.",
default: "./aad.manifest.json",
},
];
exports.PermissionListArguments = [];
//# sourceMappingURL=PermissionListOptions.js.map
@@ -0,0 +1 @@
{"version":3,"file":"PermissionListOptions.js","sourceRoot":"","sources":["../../../src/question/options/PermissionListOptions.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAWrB,QAAA,qBAAqB,GAAuB;IACvD;QACE,IAAI,EAAE,qBAAqB;QAC3B,YAAY,EAAE,eAAe;QAC7B,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,GAAG;QACd,WAAW,EACT,4KAA4K;QAC9K,OAAO,EAAE,4BAA4B;KACtC;IACD;QACE,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,iDAAiD;KAC/D;IACD;QACE,IAAI,EAAE,yBAAyB;QAC/B,YAAY,EAAE,oBAAoB;QAClC,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,GAAG;QACd,WAAW,EACT,4HAA4H;QAC9H,OAAO,EAAE,qBAAqB;KAC/B;CACF,CAAC;AACW,QAAA,uBAAuB,GAAyB,EAAE,CAAC"}

Some files were not shown because too many files have changed in this diff Show More