@microsoft/teamsfx-api
Advanced tools
Comparing version 0.6.0 to 0.6.1-alpha.52897370.0
export declare const ConfigFolderName = "fx"; | ||
export declare const AppPackageFolderName = "appPackage"; | ||
export declare const ProductName = "teamsfx"; | ||
export declare const ArchiveFolderName = ".archive"; | ||
export declare const ArchiveLogFileName = ".archive.log"; | ||
/** | ||
@@ -25,2 +27,3 @@ * questions for VS and CLI_HELP platforms are static question which don't depend on project context | ||
create = "create", | ||
migrateV1 = "migrateV1", | ||
build = "build", | ||
@@ -27,0 +30,0 @@ debug = "debug", |
@@ -5,6 +5,8 @@ // Copyright (c) Microsoft Corporation. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Stage = exports.VsCodeEnv = exports.CLIPlatforms = exports.DynamicPlatforms = exports.StaticPlatforms = exports.Platform = exports.ProductName = exports.AppPackageFolderName = exports.ConfigFolderName = void 0; | ||
exports.Stage = exports.VsCodeEnv = exports.CLIPlatforms = exports.DynamicPlatforms = exports.StaticPlatforms = exports.Platform = exports.ArchiveLogFileName = exports.ArchiveFolderName = exports.ProductName = exports.AppPackageFolderName = exports.ConfigFolderName = void 0; | ||
exports.ConfigFolderName = "fx"; | ||
exports.AppPackageFolderName = "appPackage"; | ||
exports.ProductName = "teamsfx"; | ||
exports.ArchiveFolderName = ".archive"; | ||
exports.ArchiveLogFileName = ".archive.log"; | ||
/** | ||
@@ -34,2 +36,3 @@ * questions for VS and CLI_HELP platforms are static question which don't depend on project context | ||
Stage["create"] = "create"; | ||
Stage["migrateV1"] = "migrateV1"; | ||
Stage["build"] = "build"; | ||
@@ -36,0 +39,0 @@ Stage["debug"] = "debug"; |
@@ -27,2 +27,3 @@ import { Result } from "neverthrow"; | ||
decrypt: (ciphertext: string, inputs: Inputs) => Promise<Result<string, FxError>>; | ||
migrateV1Project: (systemInputs: Inputs) => Promise<Result<string, FxError>>; | ||
/** | ||
@@ -29,0 +30,0 @@ * For grant and check permission in remote collaboration |
@@ -57,2 +57,6 @@ export interface FxError extends Error { | ||
issueLink?: string; | ||
/** | ||
* data that only be reported to github issue manually by user and will not be reported as telemetry data | ||
*/ | ||
userData?: string; | ||
constructor(name: string, message: string, source: string, stack?: string, issueLink?: string, innerError?: any); | ||
@@ -82,6 +86,6 @@ } | ||
export declare function returnSystemError(e: Error, source: string, name: string, issueLink?: string, innerError?: any): SystemError; | ||
export declare function newUserError(source: string, name: string, message: string, helpLink?: string): UserError; | ||
export declare function newSystemError(source: string, name: string, message: string, issueLink?: string): SystemError; | ||
export declare function newUserError(source: string, name: string, message: string, helpLink?: string, innerError?: any): UserError; | ||
export declare function newSystemError(source: string, name: string, message: string, issueLink?: string, innerError?: any): SystemError; | ||
export declare const UserCancelError: UserError; | ||
export declare function assembleError(e: any, source?: string): FxError; | ||
//# sourceMappingURL=error.d.ts.map |
@@ -74,8 +74,8 @@ "use strict"; | ||
exports.returnSystemError = returnSystemError; | ||
function newUserError(source, name, message, helpLink) { | ||
return new UserError(name, message, source, undefined, helpLink); | ||
function newUserError(source, name, message, helpLink, innerError) { | ||
return new UserError(name, message, source, undefined, helpLink, innerError); | ||
} | ||
exports.newUserError = newUserError; | ||
function newSystemError(source, name, message, issueLink) { | ||
return new SystemError(name, message, source, undefined, issueLink); | ||
function newSystemError(source, name, message, issueLink, innerError) { | ||
return new SystemError(name, message, source, undefined, issueLink, innerError); | ||
} | ||
@@ -103,5 +103,5 @@ exports.newSystemError = newSystemError; | ||
} | ||
return new SystemError("Error", JSON.stringify(e, Object.getOwnPropertyNames(e)), source, undefined, undefined, e); | ||
return new SystemError("Error", e ? JSON.stringify(e, Object.getOwnPropertyNames(e)) : "undefined", source, undefined, undefined, e); | ||
} | ||
exports.assembleError = assembleError; | ||
//# sourceMappingURL=error.js.map |
@@ -17,2 +17,3 @@ import { Result } from "neverthrow"; | ||
executeUserTask?: (func: Func, ctx: SolutionContext) => Promise<Result<any, FxError>>; | ||
migrate?: (ctx: SolutionContext) => Promise<Result<any, FxError>>; | ||
/** | ||
@@ -19,0 +20,0 @@ * For grant and check permission in remote collaboration |
@@ -67,2 +67,3 @@ import { OptionItem } from "./qm"; | ||
activeResourcePlugins: string[]; | ||
migrateFromV1?: boolean; | ||
} | ||
@@ -97,2 +98,3 @@ /** | ||
ignoreConfigPersist?: boolean; | ||
ignoreEnvInfo?: boolean; | ||
} | ||
@@ -99,0 +101,0 @@ export interface ProjectConfig { |
@@ -16,5 +16,5 @@ import { Result } from "neverthrow"; | ||
export declare type ProvisionOutput = { | ||
output: Record<string, string>; | ||
states: Record<string, string>; | ||
secrets: Record<string, string>; | ||
output: Json; | ||
states: Json; | ||
secrets: Json; | ||
}; | ||
@@ -21,0 +21,0 @@ /** |
@@ -66,4 +66,4 @@ import { Result } from "neverthrow"; | ||
* @param {Context} ctx - plugin's runtime context shared by all lifecycles. | ||
* @param {Inputs} inputs - User answers to quesions defined in {@link getQuestionsForLifecycleTask} | ||
* @param {AppStudioTokenProvider} tokenProvider - Token for AppStudio | ||
* @param {Inputs} inputs - User answers to quesions defined in {@link getQuestionsForLifecycleTask} | ||
* for {@link Stage.publish} along with some system inputs. | ||
@@ -73,3 +73,3 @@ * | ||
*/ | ||
publishApplication?: (ctx: Context, tokenProvider: AppStudioTokenProvider, inputs: Inputs) => Promise<Result<Void, FxError>>; | ||
publishApplication?: (ctx: Context, inputs: Inputs, provisionOutput: Readonly<Record<PluginName, ProvisionOutput>>, tokenProvider: AppStudioTokenProvider) => Promise<Result<Void, FxError>>; | ||
/** | ||
@@ -76,0 +76,0 @@ * Generates a Teams manifest package for the current project, |
{ | ||
"name": "@microsoft/teamsfx-api", | ||
"version": "0.6.0", | ||
"version": "0.6.1-alpha.52897370.0", | ||
"description": "teamsfx framework api", | ||
@@ -63,3 +63,3 @@ "main": "build/index.js", | ||
}, | ||
"gitHead": "ac3c224e794d9c1ea219068f490cbe77331f6149", | ||
"gitHead": "80f7fc4ab1cdf0b50d7e9ee00957b2e468db4bd5", | ||
"publishConfig": { | ||
@@ -66,0 +66,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
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
209987
3319