@microsoft/teamsfx-api 0.22.3 → 0.22.4-alpha.21023e5be.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/constants.d.ts +0 -2
- package/build/constants.d.ts.map +1 -1
- package/build/constants.js +1 -3
- package/build/constants.js.map +1 -1
- package/build/error.d.ts +0 -47
- package/build/error.d.ts.map +1 -1
- package/build/error.js +3 -135
- package/build/error.js.map +1 -1
- package/build/index.d.ts +0 -4
- package/build/index.d.ts.map +1 -1
- package/build/index.js +0 -4
- package/build/index.js.map +1 -1
- package/build/qm/index.d.ts +0 -1
- package/build/qm/index.d.ts.map +1 -1
- package/build/qm/index.js +0 -1
- package/build/qm/index.js.map +1 -1
- package/build/qm/ui.d.ts +13 -89
- package/build/qm/ui.d.ts.map +1 -1
- package/build/qm/ui.js +0 -86
- package/build/qm/ui.js.map +1 -1
- package/build/types.d.ts +0 -3
- package/build/types.d.ts.map +1 -1
- package/build/types.js +1 -11
- package/build/types.js.map +1 -1
- package/build/v2/index.d.ts +0 -2
- package/build/v2/index.d.ts.map +1 -1
- package/build/v2/index.js +0 -2
- package/build/v2/index.js.map +1 -1
- package/build/v2/types.d.ts +2 -37
- package/build/v2/types.d.ts.map +1 -1
- package/build/v2/types.js +0 -23
- package/build/v2/types.js.map +1 -1
- package/build/v3/index.d.ts +0 -2
- package/build/v3/index.d.ts.map +1 -1
- package/build/v3/index.js +0 -2
- package/build/v3/index.js.map +1 -1
- package/build/v3/plugins.d.ts +3 -95
- package/build/v3/plugins.d.ts.map +1 -1
- package/build/v3/types.d.ts +1 -1
- package/build/v3/types.d.ts.map +1 -1
- package/package.json +4 -4
- package/build/core.d.ts +0 -50
- package/build/core.d.ts.map +0 -1
- package/build/core.js +0 -5
- package/build/core.js.map +0 -1
- package/build/plugin.d.ts +0 -71
- package/build/plugin.d.ts.map +0 -1
- package/build/plugin.js +0 -5
- package/build/plugin.js.map +0 -1
- package/build/qm/visitor.d.ts +0 -15
- package/build/qm/visitor.d.ts.map +0 -1
- package/build/qm/visitor.js +0 -388
- package/build/qm/visitor.js.map +0 -1
- package/build/solution.d.ts +0 -29
- package/build/solution.d.ts.map +0 -1
- package/build/solution.js +0 -5
- package/build/solution.js.map +0 -1
- package/build/v2/resourcePlugin.d.ts +0 -180
- package/build/v2/resourcePlugin.d.ts.map +0 -1
- package/build/v2/resourcePlugin.js +0 -5
- package/build/v2/resourcePlugin.js.map +0 -1
- package/build/v2/solutionPlugin.d.ts +0 -100
- package/build/v2/solutionPlugin.d.ts.map +0 -1
- package/build/v2/solutionPlugin.js +0 -5
- package/build/v2/solutionPlugin.js.map +0 -1
- package/build/v3/core.d.ts +0 -22
- package/build/v3/core.d.ts.map +0 -1
- package/build/v3/core.js +0 -5
- package/build/v3/core.js.map +0 -1
- package/build/v3/solution.d.ts +0 -40
- package/build/v3/solution.d.ts.map +0 -1
- package/build/v3/solution.js +0 -5
- package/build/v3/solution.js.map +0 -1
- package/build/vscode.d.ts +0 -22
- package/build/vscode.d.ts.map +0 -1
- package/build/vscode.js +0 -5
- package/build/vscode.js.map +0 -1
package/build/constants.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ export declare const LocalEnvironmentName = "local";
|
|
|
13
13
|
export declare const ProductName = "teamsfx";
|
|
14
14
|
export declare const AutoGeneratedReadme = "README-auto-generated.md";
|
|
15
15
|
export declare const DefaultReadme = "README.md";
|
|
16
|
-
export declare const SettingsFileName = "settings.json";
|
|
17
16
|
export declare const SettingsFolderName = "teamsfx";
|
|
18
17
|
/**
|
|
19
18
|
* questions for VS and CLI_HELP platforms are static question which don't depend on project context
|
|
@@ -54,7 +53,6 @@ export declare enum Stage {
|
|
|
54
53
|
listCollaborator = "listCollaborator",
|
|
55
54
|
getQuestions = "getQuestions",
|
|
56
55
|
getProjectConfig = "getProjectConfig",
|
|
57
|
-
init = "init",
|
|
58
56
|
addFeature = "addFeature",
|
|
59
57
|
addWebpart = "addWebpart",
|
|
60
58
|
addResource = "addResource",
|
package/build/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,OAAO,CAAC;AACrC,eAAO,MAAM,oBAAoB,eAAe,CAAC;AACjD,eAAO,MAAM,eAAe,UAAU,CAAC;AACvC,eAAO,MAAM,kBAAkB,cAAc,CAAC;AAC9C,eAAO,MAAM,uBAAuB,kBAAkB,CAAC;AACvD,eAAO,MAAM,sBAAsB,YAAY,CAAC;AAChD,eAAO,MAAM,gBAAgB,WAAW,CAAC;AACzC,eAAO,MAAM,uBAAuB,yBAAyB,CAAC;AAC9D,eAAO,MAAM,kBAAkB,aAAa,CAAC;AAC7C,eAAO,MAAM,yBAAyB,QAAsC,CAAC;AAC7E,eAAO,MAAM,wBAAwB,QAAqC,CAAC;AAC3E,eAAO,MAAM,oBAAoB,UAAU,CAAC;AAC5C,eAAO,MAAM,WAAW,YAAY,CAAC;AACrC,eAAO,MAAM,mBAAmB,6BAA6B,CAAC;AAC9D,eAAO,MAAM,aAAa,cAAc,CAAC;AACzC,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,OAAO,CAAC;AACrC,eAAO,MAAM,oBAAoB,eAAe,CAAC;AACjD,eAAO,MAAM,eAAe,UAAU,CAAC;AACvC,eAAO,MAAM,kBAAkB,cAAc,CAAC;AAC9C,eAAO,MAAM,uBAAuB,kBAAkB,CAAC;AACvD,eAAO,MAAM,sBAAsB,YAAY,CAAC;AAChD,eAAO,MAAM,gBAAgB,WAAW,CAAC;AACzC,eAAO,MAAM,uBAAuB,yBAAyB,CAAC;AAC9D,eAAO,MAAM,kBAAkB,aAAa,CAAC;AAC7C,eAAO,MAAM,yBAAyB,QAAsC,CAAC;AAC7E,eAAO,MAAM,wBAA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AAc;IACxB,WAAW,gBAAgB;CAC5B;AAED,oBAAY,iBAAiB;IAC3B,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,KAAK,UAAU;CAChB;AAED;;;GAGG;AACH,oBAAY,iBAAiB;IAC3B,IAAI,SAAS;IACb,MAAM,WAAW;CAClB"}
|
package/build/constants.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT license.
|
|
3
3
|
"use strict";
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.CoreCallbackEvent = exports.TelemetryProperty = exports.TelemetryEvent = exports.Stage = exports.VsCodeEnv = exports.CLIPlatforms = exports.DynamicPlatforms = exports.StaticPlatforms = exports.Platform = exports.SettingsFolderName = exports.
|
|
5
|
+
exports.CoreCallbackEvent = exports.TelemetryProperty = exports.TelemetryEvent = exports.Stage = exports.VsCodeEnv = exports.CLIPlatforms = exports.DynamicPlatforms = exports.StaticPlatforms = exports.Platform = exports.SettingsFolderName = exports.DefaultReadme = exports.AutoGeneratedReadme = exports.ProductName = exports.LocalEnvironmentName = exports.EnvStateFileNameTemplate = exports.EnvConfigFileNameTemplate = exports.EnvNamePlaceholder = exports.ProjectSettingsFileName = exports.StatesFolderName = exports.InputConfigsFolderName = exports.AdaptiveCardsFolderName = exports.TemplateFolderName = exports.BuildFolderName = exports.AppPackageFolderName = exports.ConfigFolderName = void 0;
|
|
6
6
|
exports.ConfigFolderName = "fx";
|
|
7
7
|
exports.AppPackageFolderName = "appPackage";
|
|
8
8
|
exports.BuildFolderName = "build";
|
|
@@ -18,7 +18,6 @@ exports.LocalEnvironmentName = "local";
|
|
|
18
18
|
exports.ProductName = "teamsfx";
|
|
19
19
|
exports.AutoGeneratedReadme = "README-auto-generated.md";
|
|
20
20
|
exports.DefaultReadme = "README.md";
|
|
21
|
-
exports.SettingsFileName = "settings.json";
|
|
22
21
|
exports.SettingsFolderName = "teamsfx";
|
|
23
22
|
/**
|
|
24
23
|
* questions for VS and CLI_HELP platforms are static question which don't depend on project context
|
|
@@ -62,7 +61,6 @@ var Stage;
|
|
|
62
61
|
Stage["listCollaborator"] = "listCollaborator";
|
|
63
62
|
Stage["getQuestions"] = "getQuestions";
|
|
64
63
|
Stage["getProjectConfig"] = "getProjectConfig";
|
|
65
|
-
Stage["init"] = "init";
|
|
66
64
|
Stage["addFeature"] = "addFeature";
|
|
67
65
|
Stage["addWebpart"] = "addWebpart";
|
|
68
66
|
Stage["addResource"] = "addResource";
|
package/build/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAEA,QAAA,gBAAgB,GAAG,IAAI,CAAC;AACxB,QAAA,oBAAoB,GAAG,YAAY,CAAC;AACpC,QAAA,eAAe,GAAG,OAAO,CAAC;AAC1B,QAAA,kBAAkB,GAAG,WAAW,CAAC;AACjC,QAAA,uBAAuB,GAAG,eAAe,CAAC;AAC1C,QAAA,sBAAsB,GAAG,SAAS,CAAC;AACnC,QAAA,gBAAgB,GAAG,QAAQ,CAAC;AAC5B,QAAA,uBAAuB,GAAG,sBAAsB,CAAC;AACjD,QAAA,kBAAkB,GAAG,UAAU,CAAC;AAChC,QAAA,yBAAyB,GAAG,UAAU,0BAAkB,OAAO,CAAC;AAChE,QAAA,wBAAwB,GAAG,SAAS,0BAAkB,OAAO,CAAC;AAC9D,QAAA,oBAAoB,GAAG,OAAO,CAAC;AAC/B,QAAA,WAAW,GAAG,SAAS,CAAC;AACxB,QAAA,mBAAmB,GAAG,0BAA0B,CAAC;AACjD,QAAA,aAAa,GAAG,WAAW,CAAC;AAC5B,QAAA,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAk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CAAiB,CAAA;AACnB,CAAC,EAHW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAG5B"}
|
package/build/error.d.ts
CHANGED
|
@@ -89,51 +89,4 @@ export declare class SystemError extends Error implements FxError {
|
|
|
89
89
|
constructor(opt: SystemErrorOptions);
|
|
90
90
|
constructor(source: string, name: string, message: string, displayMessage?: string);
|
|
91
91
|
}
|
|
92
|
-
export declare function assembleError(e: any, source?: string): FxError;
|
|
93
|
-
export declare class UnknownError extends SystemError {
|
|
94
|
-
constructor(source?: string, message?: string);
|
|
95
|
-
}
|
|
96
|
-
export declare const UserCancelError: UserError;
|
|
97
|
-
export declare class EmptyOptionError extends SystemError {
|
|
98
|
-
constructor(source?: string);
|
|
99
|
-
}
|
|
100
|
-
export declare class PathAlreadyExistsError extends UserError {
|
|
101
|
-
constructor(source: string, path: string);
|
|
102
|
-
}
|
|
103
|
-
export declare class ObjectAlreadyExistsError extends UserError {
|
|
104
|
-
constructor(source: string, name: string);
|
|
105
|
-
}
|
|
106
|
-
export declare class ObjectNotExistError extends UserError {
|
|
107
|
-
constructor(source: string, name: string);
|
|
108
|
-
}
|
|
109
|
-
export declare class UndefinedError extends SystemError {
|
|
110
|
-
constructor(source: string, name: string);
|
|
111
|
-
}
|
|
112
|
-
export declare class NotImplementedError extends SystemError {
|
|
113
|
-
constructor(source: string, method: string);
|
|
114
|
-
}
|
|
115
|
-
export declare class WriteFileError extends SystemError {
|
|
116
|
-
constructor(source: string, e: Error);
|
|
117
|
-
}
|
|
118
|
-
export declare class ReadFileError extends SystemError {
|
|
119
|
-
constructor(source: string, e: Error);
|
|
120
|
-
}
|
|
121
|
-
export declare class NoProjectOpenedError extends UserError {
|
|
122
|
-
constructor(source: string);
|
|
123
|
-
}
|
|
124
|
-
export declare class ConcurrentError extends UserError {
|
|
125
|
-
constructor(source: string);
|
|
126
|
-
}
|
|
127
|
-
export declare class InvalidInputError extends UserError {
|
|
128
|
-
constructor(source: string, name: string, reason?: string);
|
|
129
|
-
}
|
|
130
|
-
export declare class InvalidProjectError extends UserError {
|
|
131
|
-
constructor(source: string, msg?: string);
|
|
132
|
-
}
|
|
133
|
-
export declare class InvalidObjectError extends UserError {
|
|
134
|
-
constructor(source: string, name: string, reason?: string);
|
|
135
|
-
}
|
|
136
|
-
export declare class InvalidOperationError extends UserError {
|
|
137
|
-
constructor(source: string, name: string, reason?: string);
|
|
138
|
-
}
|
|
139
92
|
//# sourceMappingURL=error.d.ts.map
|
package/build/error.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,OAAQ,SAAQ,KAAK;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAEhB,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;AACD,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AACD;;GAEG;AACH,qBAAa,SAAU,SAAQ,KAAM,YAAW,OAAO;IACrD;;OAEG;IACH,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;I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MAAM,CAAC;IAClB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;gBAEZ,GAAG,EAAE,gBAAgB;gBACrB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM;CA4CnF;AAED;;GAEG;AACH,qBAAa,WAAY,SAAQ,KAAM,YAAW,OAAO;IACvD;;OAEG;IACH,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;gBAEZ,GAAG,EAAE,kBAAkB;gBACvB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM;CA4CnF"}
|
package/build/error.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
3
|
// Licensed under the MIT license.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
5
|
+
exports.SystemError = exports.UserError = void 0;
|
|
6
6
|
/**
|
|
7
7
|
* Users can recover by themselves, e.g., users input invalid app names.
|
|
8
8
|
*/
|
|
@@ -10,7 +10,6 @@ class UserError extends Error {
|
|
|
10
10
|
constructor(param1, param2, param3, param4) {
|
|
11
11
|
var _a, _b;
|
|
12
12
|
let option;
|
|
13
|
-
let stack;
|
|
14
13
|
if (typeof param1 === "string") {
|
|
15
14
|
option = {
|
|
16
15
|
source: param1,
|
|
@@ -30,12 +29,7 @@ class UserError extends Error {
|
|
|
30
29
|
//source
|
|
31
30
|
this.source = option.source || "unknown";
|
|
32
31
|
//stack
|
|
33
|
-
|
|
34
|
-
this.stack = stack;
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
Error.captureStackTrace(this, new.target);
|
|
38
|
-
}
|
|
32
|
+
Error.captureStackTrace(this, new.target);
|
|
39
33
|
//prototype
|
|
40
34
|
Object.setPrototypeOf(this, new.target.prototype);
|
|
41
35
|
//innerError
|
|
@@ -55,7 +49,6 @@ class SystemError extends Error {
|
|
|
55
49
|
constructor(param1, param2, param3, param4) {
|
|
56
50
|
var _a, _b;
|
|
57
51
|
let option;
|
|
58
|
-
let stack;
|
|
59
52
|
if (typeof param1 === "string") {
|
|
60
53
|
option = {
|
|
61
54
|
source: param1,
|
|
@@ -75,12 +68,7 @@ class SystemError extends Error {
|
|
|
75
68
|
//source
|
|
76
69
|
this.source = option.source || "unknown";
|
|
77
70
|
//stack
|
|
78
|
-
|
|
79
|
-
this.stack = stack;
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
Error.captureStackTrace(this, new.target);
|
|
83
|
-
}
|
|
71
|
+
Error.captureStackTrace(this, new.target);
|
|
84
72
|
//prototype
|
|
85
73
|
Object.setPrototypeOf(this, new.target.prototype);
|
|
86
74
|
//innerError
|
|
@@ -93,124 +81,4 @@ class SystemError extends Error {
|
|
|
93
81
|
}
|
|
94
82
|
}
|
|
95
83
|
exports.SystemError = SystemError;
|
|
96
|
-
function assembleError(e, source) {
|
|
97
|
-
if (e instanceof UserError || e instanceof SystemError)
|
|
98
|
-
return e;
|
|
99
|
-
if (!source)
|
|
100
|
-
source = "unknown";
|
|
101
|
-
const type = typeof e;
|
|
102
|
-
if (type === "string") {
|
|
103
|
-
return new UnknownError(source, e);
|
|
104
|
-
}
|
|
105
|
-
else if (e instanceof Error) {
|
|
106
|
-
const err = e;
|
|
107
|
-
const fxError = new SystemError({ error: err, source });
|
|
108
|
-
fxError.stack = err.stack;
|
|
109
|
-
return fxError;
|
|
110
|
-
}
|
|
111
|
-
else {
|
|
112
|
-
return new UnknownError(source, JSON.stringify(e));
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
exports.assembleError = assembleError;
|
|
116
|
-
class UnknownError extends SystemError {
|
|
117
|
-
constructor(source, message) {
|
|
118
|
-
super({ source: source || "API", message: message });
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
exports.UnknownError = UnknownError;
|
|
122
|
-
exports.UserCancelError = new UserError("UI", "UserCancel", "User canceled.");
|
|
123
|
-
class EmptyOptionError extends SystemError {
|
|
124
|
-
constructor(source) {
|
|
125
|
-
super({ source: source || "API" });
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
exports.EmptyOptionError = EmptyOptionError;
|
|
129
|
-
class PathAlreadyExistsError extends UserError {
|
|
130
|
-
constructor(source, path) {
|
|
131
|
-
super({ source: source, message: `Path ${path} already exists.` });
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
exports.PathAlreadyExistsError = PathAlreadyExistsError;
|
|
135
|
-
class ObjectAlreadyExistsError extends UserError {
|
|
136
|
-
constructor(source, name) {
|
|
137
|
-
super({ source: source, message: `${name} already exists.` });
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
exports.ObjectAlreadyExistsError = ObjectAlreadyExistsError;
|
|
141
|
-
class ObjectNotExistError extends UserError {
|
|
142
|
-
constructor(source, name) {
|
|
143
|
-
super({ source: source, message: `${name} does not exist.` });
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
exports.ObjectNotExistError = ObjectNotExistError;
|
|
147
|
-
class UndefinedError extends SystemError {
|
|
148
|
-
constructor(source, name) {
|
|
149
|
-
super({ source: source, message: `${name} is undefined, which is not expected` });
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
exports.UndefinedError = UndefinedError;
|
|
153
|
-
class NotImplementedError extends SystemError {
|
|
154
|
-
constructor(source, method) {
|
|
155
|
-
super({ source: source, message: `Method not implemented:${method}` });
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
exports.NotImplementedError = NotImplementedError;
|
|
159
|
-
class WriteFileError extends SystemError {
|
|
160
|
-
constructor(source, e) {
|
|
161
|
-
super({ source: source, error: e, name: "WriteFileError" });
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
exports.WriteFileError = WriteFileError;
|
|
165
|
-
class ReadFileError extends SystemError {
|
|
166
|
-
constructor(source, e) {
|
|
167
|
-
super({ source: source, error: e, name: "ReadFileError" });
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
exports.ReadFileError = ReadFileError;
|
|
171
|
-
class NoProjectOpenedError extends UserError {
|
|
172
|
-
constructor(source) {
|
|
173
|
-
super({
|
|
174
|
-
source: source,
|
|
175
|
-
message: "No project opened, you can create a new project or open an existing one.",
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
exports.NoProjectOpenedError = NoProjectOpenedError;
|
|
180
|
-
class ConcurrentError extends UserError {
|
|
181
|
-
constructor(source) {
|
|
182
|
-
super({
|
|
183
|
-
source: source,
|
|
184
|
-
message: "Previous task is still running. Please wait util your previous task to finish and try again.",
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
exports.ConcurrentError = ConcurrentError;
|
|
189
|
-
class InvalidInputError extends UserError {
|
|
190
|
-
constructor(source, name, reason) {
|
|
191
|
-
super({ source: source, message: `Input '${name}' is invalid: ${reason}` });
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
exports.InvalidInputError = InvalidInputError;
|
|
195
|
-
class InvalidProjectError extends UserError {
|
|
196
|
-
constructor(source, msg) {
|
|
197
|
-
super({
|
|
198
|
-
source: source,
|
|
199
|
-
message: `The command only works for project created by Teams Toolkit. ${msg ? ": " + msg : ""}`,
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
exports.InvalidProjectError = InvalidProjectError;
|
|
204
|
-
class InvalidObjectError extends UserError {
|
|
205
|
-
constructor(source, name, reason) {
|
|
206
|
-
super({ source: source, message: `${name} is invalid: ${reason}` });
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
exports.InvalidObjectError = InvalidObjectError;
|
|
210
|
-
class InvalidOperationError extends UserError {
|
|
211
|
-
constructor(source, name, reason) {
|
|
212
|
-
super({ source: source, message: `Invalid operation: ${name} ${reason}` });
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
exports.InvalidOperationError = InvalidOperationError;
|
|
216
84
|
//# sourceMappingURL=error.js.map
|
package/build/error.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.js","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAkClC;;GAEG;AACH,MAAa,SAAU,SAAQ,KAAK;IA4BlC,YACE,MAAiC,EACjC,MAAe,EACf,MAAe,EACf,MAAe;;QAEf,IAAI,MAAwB,CAAC;QAC7B,IAAI,
|
|
1
|
+
{"version":3,"file":"error.js","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAkClC;;GAEG;AACH,MAAa,SAAU,SAAQ,KAAK;IA4BlC,YACE,MAAiC,EACjC,MAAe,EACf,MAAe,EACf,MAAe;;QAEf,IAAI,MAAwB,CAAC;QAC7B,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;YAC9B,MAAM,GAAG;gBACP,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,MAAM;gBACZ,OAAO,EAAE,MAAM;gBACf,cAAc,EAAE,MAAM;aACvB,CAAC;SACH;aAAM;YACL,MAAM,GAAG,MAAM,CAAC;SACjB;QAED,UAAU;QACV,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,KAAI,MAAA,MAAM,CAAC,KAAK,0CAAE,OAAO,CAAA,CAAC;QACxD,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,MAAM;QACN,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,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AAI,KAAI,MAAA,MAAM,CAAC,KAAK,0CAAE,IAAI,CAAA,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC;QAEjE,QAAQ;QACR,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,IAAI,SAAS,CAAC;QAEzC,OAAO;QACP,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;QAE1C,WAAW;QACX,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAElD,YAAY;QACZ,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,KAAK,CAAC;QAE/B,cAAc;QACd,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;QAClC,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;QAChC,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;QAC5C,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC;IAC9B,CAAC;CACF;AAxED,kCAwEC"}
|
package/build/index.d.ts
CHANGED
|
@@ -2,11 +2,7 @@ import * as v2 from "./v2";
|
|
|
2
2
|
import * as v3 from "./v3";
|
|
3
3
|
export * from "./constants";
|
|
4
4
|
export * from "./context";
|
|
5
|
-
export * from "./core";
|
|
6
5
|
export * from "./types";
|
|
7
|
-
export * from "./plugin";
|
|
8
|
-
export * from "./solution";
|
|
9
|
-
export * from "./vscode";
|
|
10
6
|
export * from "@microsoft/teams-manifest";
|
|
11
7
|
export * from "./utils";
|
|
12
8
|
export * from "./error";
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,KAAK,EAAE,MAAM,MAAM,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,KAAK,EAAE,MAAM,MAAM,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,2BAA2B,CAAC;AAC1C,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,MAAM,CAAC;AACrB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAG5B,OAAO,EAAE,EAAE,EAAE,CAAC;AACd,OAAO,EAAE,EAAE,EAAE,CAAC;AACd,cAAc,YAAY,CAAC"}
|
package/build/index.js
CHANGED
|
@@ -10,11 +10,7 @@ const v3 = tslib_1.__importStar(require("./v3"));
|
|
|
10
10
|
exports.v3 = v3;
|
|
11
11
|
tslib_1.__exportStar(require("./constants"), exports);
|
|
12
12
|
tslib_1.__exportStar(require("./context"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./core"), exports);
|
|
14
13
|
tslib_1.__exportStar(require("./types"), exports);
|
|
15
|
-
tslib_1.__exportStar(require("./plugin"), exports);
|
|
16
|
-
tslib_1.__exportStar(require("./solution"), exports);
|
|
17
|
-
tslib_1.__exportStar(require("./vscode"), exports);
|
|
18
14
|
tslib_1.__exportStar(require("@microsoft/teams-manifest"), exports);
|
|
19
15
|
tslib_1.__exportStar(require("./utils"), exports);
|
|
20
16
|
tslib_1.__exportStar(require("./error"), exports);
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;;AACb,iDAA2B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;;AACb,iDAA2B;AAelB,gBAAE;AAdX,iDAA2B;AAelB,gBAAE;AAdX,sDAA4B;AAC5B,oDAA0B;AAC1B,kDAAwB;AACxB,oEAA0C;AAC1C,kDAAwB;AACxB,kDAAwB;AACxB,+CAAqB;AACrB,oDAA0B;AAC1B,mDAAyB;AACzB,kDAAwB;AACxB,sDAA4B;AAK5B,qDAA2B"}
|
package/build/qm/index.d.ts
CHANGED
package/build/qm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/qm/index.ts"],"names":[],"mappings":"AAIA,cAAc,YAAY,CAAC;AAC3B,cAAc,MAAM,CAAC;AACrB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/qm/index.ts"],"names":[],"mappings":"AAIA,cAAc,YAAY,CAAC;AAC3B,cAAc,MAAM,CAAC;AACrB,cAAc,cAAc,CAAC"}
|
package/build/qm/index.js
CHANGED
|
@@ -5,6 +5,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
6
|
tslib_1.__exportStar(require("./question"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./ui"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./visitor"), exports);
|
|
9
8
|
tslib_1.__exportStar(require("./validation"), exports);
|
|
10
9
|
//# sourceMappingURL=index.js.map
|
package/build/qm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/qm/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAEb,qDAA2B;AAC3B,+CAAqB;AACrB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/qm/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAEb,qDAA2B;AAC3B,+CAAqB;AACrB,uDAA6B"}
|
package/build/qm/ui.d.ts
CHANGED
|
@@ -63,23 +63,27 @@ export interface UIConfig<T> {
|
|
|
63
63
|
*/
|
|
64
64
|
export interface SingleSelectConfig extends UIConfig<string> {
|
|
65
65
|
/**
|
|
66
|
-
* option array
|
|
66
|
+
* option array or a callback function which returns option array
|
|
67
67
|
*/
|
|
68
|
-
options: StaticOptions;
|
|
68
|
+
options: StaticOptions | (() => Promise<StaticOptions>);
|
|
69
69
|
/**
|
|
70
70
|
* This config only works for option items with `OptionItem[]` type. If `returnObject` is true, the answer value is an `OptionItem` object; otherwise, the answer value is the `id` string of the `OptionItem`.
|
|
71
71
|
* In case of option items with `string[]` type, whether `returnObject` is true or false, the returned answer value is always a string.
|
|
72
72
|
*/
|
|
73
73
|
returnObject?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* whether skip selection if there is only one option, default is false
|
|
76
|
+
*/
|
|
77
|
+
skipSingleOption?: boolean;
|
|
74
78
|
}
|
|
75
79
|
/**
|
|
76
80
|
* multiple selection UI config
|
|
77
81
|
*/
|
|
78
82
|
export interface MultiSelectConfig extends UIConfig<string[]> {
|
|
79
83
|
/**
|
|
80
|
-
* option array
|
|
84
|
+
* option array or a callback function which returns option array
|
|
81
85
|
*/
|
|
82
|
-
options: StaticOptions;
|
|
86
|
+
options: StaticOptions | (() => Promise<StaticOptions>);
|
|
83
87
|
/**
|
|
84
88
|
* This config only works for option items with `OptionItem[]` type. If `returnObject` is true, the answer value is an array of `OptionItem` objects; otherwise, the answer value is an array of `id` strings.
|
|
85
89
|
* In case of option items with `string[]` type, whether `returnObject` is true or false, the returned answer value is always a string array.
|
|
@@ -92,6 +96,10 @@ export interface MultiSelectConfig extends UIConfig<string[]> {
|
|
|
92
96
|
* @returns the final selected option ids
|
|
93
97
|
*/
|
|
94
98
|
onDidChangeSelection?: OnSelectionChangeFunc;
|
|
99
|
+
/**
|
|
100
|
+
* whether skip selection if there is only one option, default is false
|
|
101
|
+
*/
|
|
102
|
+
skipSingleOption?: boolean;
|
|
95
103
|
}
|
|
96
104
|
/**
|
|
97
105
|
* text input UI config
|
|
@@ -179,67 +187,6 @@ export declare type InputTextResult = InputResult<string>;
|
|
|
179
187
|
export declare type SelectFileResult = InputResult<string>;
|
|
180
188
|
export declare type SelectFilesResult = InputResult<string[]>;
|
|
181
189
|
export declare type SelectFolderResult = InputResult<string>;
|
|
182
|
-
/**
|
|
183
|
-
* Definition of a runnable task
|
|
184
|
-
*/
|
|
185
|
-
export interface RunnableTask<T> {
|
|
186
|
-
/**
|
|
187
|
-
* task name
|
|
188
|
-
*/
|
|
189
|
-
name?: string;
|
|
190
|
-
/**
|
|
191
|
-
* current progress
|
|
192
|
-
*/
|
|
193
|
-
current?: number;
|
|
194
|
-
/**
|
|
195
|
-
* total progress
|
|
196
|
-
*/
|
|
197
|
-
readonly total?: number;
|
|
198
|
-
/**
|
|
199
|
-
* status message
|
|
200
|
-
*/
|
|
201
|
-
message?: string;
|
|
202
|
-
/**
|
|
203
|
-
* a function that realy implements the running of the task
|
|
204
|
-
* @param args args
|
|
205
|
-
*/
|
|
206
|
-
run(...args: any): Promise<Result<T, FxError>>;
|
|
207
|
-
/**
|
|
208
|
-
* a function that implements the cancelling of the task
|
|
209
|
-
*/
|
|
210
|
-
cancel?(): void;
|
|
211
|
-
/**
|
|
212
|
-
* a state that indicate whether the task is cancelled or not
|
|
213
|
-
*/
|
|
214
|
-
isCanceled?: boolean;
|
|
215
|
-
}
|
|
216
|
-
/**
|
|
217
|
-
* task running configuration
|
|
218
|
-
*/
|
|
219
|
-
export interface TaskConfig {
|
|
220
|
-
/**
|
|
221
|
-
* whether task can be cancelled or not
|
|
222
|
-
*/
|
|
223
|
-
cancellable?: boolean;
|
|
224
|
-
/**
|
|
225
|
-
* whether to show the numeric progress of the task
|
|
226
|
-
*/
|
|
227
|
-
showProgress?: boolean;
|
|
228
|
-
}
|
|
229
|
-
/**
|
|
230
|
-
* task group configuration
|
|
231
|
-
*/
|
|
232
|
-
export interface TaskGroupConfig {
|
|
233
|
-
/**
|
|
234
|
-
* if true, the tasks in the group are running in parallel
|
|
235
|
-
* if false, the tasks are running in sequence.
|
|
236
|
-
*/
|
|
237
|
-
sequential?: boolean;
|
|
238
|
-
/**
|
|
239
|
-
* whether to terminate all tasks if some task is failed or canceled
|
|
240
|
-
*/
|
|
241
|
-
fastFail?: boolean;
|
|
242
|
-
}
|
|
243
190
|
/**
|
|
244
191
|
* Definition of user interaction, which is platform independent
|
|
245
192
|
*/
|
|
@@ -321,14 +268,6 @@ export interface UserInteraction {
|
|
|
321
268
|
* @returns the handler of a progress bar
|
|
322
269
|
*/
|
|
323
270
|
createProgressBar: (title: string, totalSteps: number) => IProgressHandler;
|
|
324
|
-
/**
|
|
325
|
-
* A function to run a task with progress bar. (CLI and VS Code has different UI experience for progress bar)
|
|
326
|
-
* @param task a runnable task with progress definition
|
|
327
|
-
* @param config task running configuration
|
|
328
|
-
* @param args args for task run() API
|
|
329
|
-
* @returns A promise that resolves the wrapper of task running result or FxError
|
|
330
|
-
*/
|
|
331
|
-
runWithProgress<T>(task: RunnableTask<T>, config: TaskConfig, ...args: any): Promise<Result<T, FxError>>;
|
|
332
271
|
/**
|
|
333
272
|
* Reload window to update user interface. (Only works for VS Code)
|
|
334
273
|
* @returns A promise indicating if reload is successful.
|
|
@@ -377,21 +316,6 @@ export interface IProgressHandler {
|
|
|
377
316
|
* End the progress bar and tell if success. After calling it, the progress bar will disappear. This handler
|
|
378
317
|
* can be reused after calling end().
|
|
379
318
|
*/
|
|
380
|
-
end: (success: boolean) => Promise<void>;
|
|
381
|
-
}
|
|
382
|
-
/**
|
|
383
|
-
* An implementation of task group that will define the progress when all tasks are running
|
|
384
|
-
*/
|
|
385
|
-
export declare class GroupOfTasks<T> implements RunnableTask<Result<T, FxError>[]> {
|
|
386
|
-
name?: string;
|
|
387
|
-
current: number;
|
|
388
|
-
readonly total: number;
|
|
389
|
-
isCanceled: boolean;
|
|
390
|
-
tasks: RunnableTask<T>[];
|
|
391
|
-
config?: TaskGroupConfig;
|
|
392
|
-
message?: string;
|
|
393
|
-
constructor(tasks: RunnableTask<T>[], config?: TaskGroupConfig);
|
|
394
|
-
run(...args: any): Promise<Result<Result<T, FxError>[], FxError>>;
|
|
395
|
-
cancel(): void;
|
|
319
|
+
end: (success: boolean, hideAfterFinish?: boolean) => Promise<void>;
|
|
396
320
|
}
|
|
397
321
|
//# sourceMappingURL=ui.d.ts.map
|
package/build/qm/ui.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../src/qm/ui.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../src/qm/ui.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,MAAM,WAAW,QAAQ,CAAC,CAAC;IACzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;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