@microsoft/teamsfx-api
Advanced tools
Comparing version 0.3.1-alpha.0aa8dd45.0 to 0.3.1-alpha.3152c304.0
@@ -5,2 +5,3 @@ import { Inputs, PluginConfig, ProjectSettings, ReadonlySolutionConfig, SolutionConfig } from "./types"; | ||
import { UserInteraction } from "./qm"; | ||
import { CryptoProvider } from "./utils"; | ||
export interface Context { | ||
@@ -18,2 +19,3 @@ root: string; | ||
ui?: UserInteraction; | ||
cryptoProvider?: CryptoProvider; | ||
} | ||
@@ -20,0 +22,0 @@ export interface SolutionContext extends Context { |
@@ -22,3 +22,5 @@ import { Result } from "neverthrow"; | ||
getQuestionsForUserTask?: (router: FunctionRouter, inputs: Inputs) => Promise<Result<QTreeNode | undefined, FxError>>; | ||
encrypt: (plaintext: string, inputs: Inputs) => Promise<Result<string, FxError>>; | ||
decrypt: (ciphertext: string, inputs: Inputs) => Promise<Result<string, FxError>>; | ||
} | ||
//# sourceMappingURL=core.d.ts.map |
@@ -12,2 +12,3 @@ import { UserInteraction } from "../qm/ui"; | ||
export * from "./tree"; | ||
export * from "./crypto"; | ||
export interface Tools { | ||
@@ -14,0 +15,0 @@ logProvider: LogProvider; |
@@ -11,2 +11,3 @@ // Copyright (c) Microsoft Corporation. | ||
tslib_1.__exportStar(require("./tree"), exports); | ||
tslib_1.__exportStar(require("./crypto"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -52,2 +52,12 @@ import { TokenCredential } from "@azure/core-http"; | ||
setSubscription(subscriptionId: string): Promise<void>; | ||
/** | ||
* Get account information | ||
*/ | ||
getAccountInfo(): Record<string, string> | undefined; | ||
/** | ||
* Get user select subscription, tenant information | ||
* @param triggerUI whether means trigger login or select subscription workflow when user has not logged in or selected subscription | ||
* @returns SubscriptionInfo.subscriptionId === "", means user does not select subscription | ||
*/ | ||
getSelectedSubscription(triggerUI?: boolean): Promise<SubscriptionInfo | undefined>; | ||
} | ||
@@ -54,0 +64,0 @@ /** |
{ | ||
"name": "@microsoft/teamsfx-api", | ||
"version": "0.3.1-alpha.0aa8dd45.0", | ||
"version": "0.3.1-alpha.3152c304.0", | ||
"description": "teamsfx framework api", | ||
@@ -24,3 +24,3 @@ "main": "build/index.js", | ||
"doc": "typedoc", | ||
"test:unit": "nyc mocha --no-timeouts --require ts-node/register tests/**/*.ts", | ||
"test:unit": "nyc mocha --no-timeouts --require ts-node/register \"tests/**/*.ts\"", | ||
"prepublishOnly": "npm run test:unit && npm run build", | ||
@@ -64,3 +64,3 @@ "precommit": "lint-staged" | ||
}, | ||
"gitHead": "7bffbfd960de254e8be834c63289f807fa83ea44", | ||
"gitHead": "c55b88e419fcc8840c7c1034818155da69faef9f", | ||
"publishConfig": { | ||
@@ -67,0 +67,0 @@ "access": "public" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
183995
92
3067