@microsoft/teamsfx-api 0.22.4-alpha.be4f5dfbf.0 → 0.22.4-alpha.d7c19ebcf.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 -8
- package/build/constants.d.ts.map +1 -1
- package/build/constants.js +1 -9
- package/build/constants.js.map +1 -1
- package/build/context.d.ts +9 -28
- package/build/context.d.ts.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 +4 -14
- package/build/index.d.ts.map +1 -1
- package/build/index.js +4 -15
- 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 -5
- package/build/qm/ui.d.ts.map +1 -1
- package/build/types.d.ts +29 -129
- package/build/types.d.ts.map +1 -1
- package/build/types.js +1 -97
- package/build/types.js.map +1 -1
- package/build/utils/telemetry.d.ts.map +1 -1
- package/package.json +4 -4
- package/build/action.d.ts +0 -109
- package/build/action.d.ts.map +0 -1
- package/build/action.js +0 -5
- package/build/action.js.map +0 -1
- package/build/bicep.d.ts +0 -19
- package/build/bicep.d.ts.map +0 -1
- package/build/bicep.js +0 -5
- package/build/bicep.js.map +0 -1
- package/build/component.d.ts +0 -31
- package/build/component.d.ts.map +0 -1
- package/build/component.js +0 -3
- package/build/component.js.map +0 -1
- 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/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/v2/index.d.ts +0 -2
- package/build/v2/index.d.ts.map +0 -1
- package/build/v2/index.js +0 -7
- package/build/v2/index.js.map +0 -1
- package/build/v2/types.d.ts +0 -54
- package/build/v2/types.d.ts.map +0 -1
- package/build/v2/types.js +0 -28
- package/build/v2/types.js.map +0 -1
- package/build/v3/AzureResourceStates.d.ts +0 -58
- package/build/v3/AzureResourceStates.d.ts.map +0 -1
- package/build/v3/AzureResourceStates.js +0 -3
- package/build/v3/AzureResourceStates.js.map +0 -1
- package/build/v3/core.d.ts +0 -15
- 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/index.d.ts +0 -7
- package/build/v3/index.d.ts.map +0 -1
- package/build/v3/index.js +0 -12
- package/build/v3/index.js.map +0 -1
- package/build/v3/plugins.d.ts +0 -12
- package/build/v3/plugins.d.ts.map +0 -1
- package/build/v3/plugins.js +0 -5
- package/build/v3/plugins.js.map +0 -1
- package/build/v3/resourceStates.d.ts +0 -66
- package/build/v3/resourceStates.d.ts.map +0 -1
- package/build/v3/resourceStates.js +0 -5
- package/build/v3/resourceStates.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/v3/types.d.ts +0 -28
- package/build/v3/types.d.ts.map +0 -1
- package/build/v3/types.js +0 -5
- package/build/v3/types.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
|
@@ -3,17 +3,10 @@ export declare const AppPackageFolderName = "appPackage";
|
|
|
3
3
|
export declare const BuildFolderName = "build";
|
|
4
4
|
export declare const TemplateFolderName = "templates";
|
|
5
5
|
export declare const AdaptiveCardsFolderName = "adaptiveCards";
|
|
6
|
-
export declare const InputConfigsFolderName = "configs";
|
|
7
|
-
export declare const StatesFolderName = "states";
|
|
8
|
-
export declare const ProjectSettingsFileName = "projectSettings.json";
|
|
9
|
-
export declare const EnvNamePlaceholder = "@envName";
|
|
10
|
-
export declare const EnvConfigFileNameTemplate: string;
|
|
11
|
-
export declare const EnvStateFileNameTemplate: string;
|
|
12
6
|
export declare const LocalEnvironmentName = "local";
|
|
13
7
|
export declare const ProductName = "teamsfx";
|
|
14
8
|
export declare const AutoGeneratedReadme = "README-auto-generated.md";
|
|
15
9
|
export declare const DefaultReadme = "README.md";
|
|
16
|
-
export declare const SettingsFileName = "settings.json";
|
|
17
10
|
export declare const SettingsFolderName = "teamsfx";
|
|
18
11
|
/**
|
|
19
12
|
* questions for VS and CLI_HELP platforms are static question which don't depend on project context
|
|
@@ -46,7 +39,6 @@ export declare enum Stage {
|
|
|
46
39
|
listEnv = "listEnv",
|
|
47
40
|
removeEnv = "removeEnv",
|
|
48
41
|
switchEnv = "switchEnv",
|
|
49
|
-
activateEnv = "activateEnv",
|
|
50
42
|
userTask = "userTask",
|
|
51
43
|
update = "update",
|
|
52
44
|
grantPermission = "grantPermission",
|
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,
|
|
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,oBAAoB,UAAU,CAAC;AA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AQ,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,23 +2,16 @@
|
|
|
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.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";
|
|
9
9
|
exports.TemplateFolderName = "templates";
|
|
10
10
|
exports.AdaptiveCardsFolderName = "adaptiveCards";
|
|
11
|
-
exports.InputConfigsFolderName = "configs";
|
|
12
|
-
exports.StatesFolderName = "states";
|
|
13
|
-
exports.ProjectSettingsFileName = "projectSettings.json";
|
|
14
|
-
exports.EnvNamePlaceholder = "@envName";
|
|
15
|
-
exports.EnvConfigFileNameTemplate = `config.${exports.EnvNamePlaceholder}.json`;
|
|
16
|
-
exports.EnvStateFileNameTemplate = `state.${exports.EnvNamePlaceholder}.json`;
|
|
17
11
|
exports.LocalEnvironmentName = "local";
|
|
18
12
|
exports.ProductName = "teamsfx";
|
|
19
13
|
exports.AutoGeneratedReadme = "README-auto-generated.md";
|
|
20
14
|
exports.DefaultReadme = "README.md";
|
|
21
|
-
exports.SettingsFileName = "settings.json";
|
|
22
15
|
exports.SettingsFolderName = "teamsfx";
|
|
23
16
|
/**
|
|
24
17
|
* questions for VS and CLI_HELP platforms are static question which don't depend on project context
|
|
@@ -54,7 +47,6 @@ var Stage;
|
|
|
54
47
|
Stage["listEnv"] = "listEnv";
|
|
55
48
|
Stage["removeEnv"] = "removeEnv";
|
|
56
49
|
Stage["switchEnv"] = "switchEnv";
|
|
57
|
-
Stage["activateEnv"] = "activateEnv";
|
|
58
50
|
Stage["userTask"] = "userTask";
|
|
59
51
|
Stage["update"] = "update";
|
|
60
52
|
Stage["grantPermission"] = "grantPermission";
|
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,
|
|
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,oBAAoB,GAAG,OAAO,CAAC;AAC/B,QAAA,WAAW,GAAG,SAAS,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/B,oCAA2B,CAAA;IAC3B,gCAAuB,CAAA;IACvB,8BAAqB,CAAA;IACrB,oCAA2B,CAAA;IAC3B,gCAAuB,CAAA;IACvB,gCAAuB,CAAA;IACvB,8DAAqD,CAAA;IACrD,oDAA2C,CAAA;IAC3C,8CAAqC,CAAA;IACrC,oDAA2C,CAAA;AAC7C,CAAC,EAjCW,KAAK,GAAL,aAAK,KAAL,aAAK,QAiChB;AAED,IAAY,cAEX;AAFD,WAAY,cAAc;IACxB,6CAA2B,CAAA;AAC7B,CAAC,EAFW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAEzB;AAED,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC3B,8CAAyB,CAAA;IACzB,0CAAqB,CAAA;IACrB,sCAAiB,CAAA;IACjB,0CAAqB,CAAA;IACrB,oCAAe,CAAA;AACjB,CAAC,EANW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAM5B;AAED;;;GAGG;AACH,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,kCAAa,CAAA;IACb,sCAAiB,CAAA;AACnB,CAAC,EAHW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAG5B"}
|
package/build/context.d.ts
CHANGED
|
@@ -1,34 +1,15 @@
|
|
|
1
|
-
import { Inputs, LocalSettings, PluginConfig, ProjectSettings } from "./types";
|
|
2
|
-
import { LogProvider, TelemetryReporter, AzureAccountProvider, TreeProvider, PermissionRequestProvider, M365TokenProvider } from "./utils";
|
|
3
1
|
import { UserInteraction } from "./qm";
|
|
4
|
-
import {
|
|
5
|
-
import { EnvConfig } from "./schemas/envConfig";
|
|
2
|
+
import { LogProvider, TelemetryReporter, TokenProvider } from "./utils";
|
|
6
3
|
import { ExpServiceProvider } from "./utils/exp";
|
|
7
4
|
export interface Context {
|
|
8
|
-
|
|
9
|
-
logProvider
|
|
10
|
-
telemetryReporter
|
|
11
|
-
azureAccountProvider?: AzureAccountProvider;
|
|
12
|
-
m365TokenProvider?: M365TokenProvider;
|
|
13
|
-
treeProvider?: TreeProvider;
|
|
14
|
-
answers?: Inputs;
|
|
15
|
-
projectSettings?: ProjectSettings;
|
|
16
|
-
localSettings?: LocalSettings;
|
|
17
|
-
ui?: UserInteraction;
|
|
18
|
-
cryptoProvider: CryptoProvider;
|
|
19
|
-
permissionRequestProvider?: PermissionRequestProvider;
|
|
5
|
+
userInteraction: UserInteraction;
|
|
6
|
+
logProvider: LogProvider;
|
|
7
|
+
telemetryReporter: TelemetryReporter;
|
|
20
8
|
expServiceProvider?: ExpServiceProvider;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
export interface SolutionContext extends Context {
|
|
28
|
-
envInfo: EnvInfo;
|
|
29
|
-
}
|
|
30
|
-
export interface PluginContext extends Context {
|
|
31
|
-
envInfo: EnvInfo;
|
|
32
|
-
config: PluginConfig;
|
|
9
|
+
tokenProvider?: TokenProvider;
|
|
10
|
+
projectPath?: string;
|
|
11
|
+
templateVariables?: {
|
|
12
|
+
[key: string]: string;
|
|
13
|
+
};
|
|
33
14
|
}
|
|
34
15
|
//# sourceMappingURL=context.d.ts.map
|
package/build/context.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD,MAAM,WAAW,OAAO;IACtB,eAAe,EAAE,eAAe,CAAC;IACjC,WAAW,EAAE,WAAW,CAAC;IACzB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CAC/C"}
|
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;IAC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AE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,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,K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AI,MAAA,MAAM,CAAC,KAAK,0CAAE,OAAO,CAAA,CAAC;QACxD,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,MAAM;QACN,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,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
|
@@ -1,19 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export * from "./qm";
|
|
2
|
+
export * from "./utils";
|
|
3
3
|
export * from "./constants";
|
|
4
4
|
export * from "./context";
|
|
5
|
-
export * from "./core";
|
|
6
|
-
export * from "./types";
|
|
7
|
-
export * from "./vscode";
|
|
8
|
-
export * from "@microsoft/teams-manifest";
|
|
9
|
-
export * from "./utils";
|
|
10
5
|
export * from "./error";
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./schemas";
|
|
13
|
-
export * from "./action";
|
|
14
|
-
export * from "./bicep";
|
|
15
|
-
export * from "./component";
|
|
16
|
-
export { v2 };
|
|
17
|
-
export { v3 };
|
|
6
|
+
export * from "./types";
|
|
18
7
|
export * from "neverthrow";
|
|
8
|
+
export * from "@microsoft/teams-manifest";
|
|
19
9
|
//# sourceMappingURL=index.d.ts.map
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,MAAM,CAAC;AACrB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,2BAA2B,CAAC"}
|
package/build/index.js
CHANGED
|
@@ -2,24 +2,13 @@
|
|
|
2
2
|
// Licensed under the MIT license.
|
|
3
3
|
"use strict";
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.v3 = exports.v2 = void 0;
|
|
6
5
|
const tslib_1 = require("tslib");
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const v3 = tslib_1.__importStar(require("./v3"));
|
|
10
|
-
exports.v3 = v3;
|
|
6
|
+
tslib_1.__exportStar(require("./qm"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./utils"), exports);
|
|
11
8
|
tslib_1.__exportStar(require("./constants"), exports);
|
|
12
9
|
tslib_1.__exportStar(require("./context"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./core"), exports);
|
|
14
|
-
tslib_1.__exportStar(require("./types"), exports);
|
|
15
|
-
tslib_1.__exportStar(require("./vscode"), exports);
|
|
16
|
-
tslib_1.__exportStar(require("@microsoft/teams-manifest"), exports);
|
|
17
|
-
tslib_1.__exportStar(require("./utils"), exports);
|
|
18
10
|
tslib_1.__exportStar(require("./error"), exports);
|
|
19
|
-
tslib_1.__exportStar(require("./
|
|
20
|
-
tslib_1.__exportStar(require("./schemas"), exports);
|
|
21
|
-
tslib_1.__exportStar(require("./action"), exports);
|
|
22
|
-
tslib_1.__exportStar(require("./bicep"), exports);
|
|
23
|
-
tslib_1.__exportStar(require("./component"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./types"), exports);
|
|
24
12
|
tslib_1.__exportStar(require("neverthrow"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("@microsoft/teams-manifest"), exports);
|
|
25
14
|
//# sourceMappingURL=index.js.map
|
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
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AACb,+CAAqB;AACrB,kDAAwB;AACxB,sDAA4B;AAC5B,oDAA0B;AAC1B,kDAAwB;AACxB,kDAAwB;AACxB,qDAA2B;AAC3B,oEAA0C"}
|
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
|
|
@@ -308,6 +316,6 @@ export interface IProgressHandler {
|
|
|
308
316
|
* End the progress bar and tell if success. After calling it, the progress bar will disappear. This handler
|
|
309
317
|
* can be reused after calling end().
|
|
310
318
|
*/
|
|
311
|
-
end: (success: boolean) => Promise<void>;
|
|
319
|
+
end: (success: boolean, hideAfterFinish?: boolean) => Promise<void>;
|
|
312
320
|
}
|
|
313
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,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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