@microsoft/teamsfx-api 0.22.4-alpha.857e9ca79.0 → 0.22.4-alpha.8a27a2c7c.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 -6
- package/build/constants.d.ts.map +1 -1
- package/build/constants.js +1 -7
- package/build/constants.js.map +1 -1
- package/build/context.d.ts +9 -28
- package/build/context.d.ts.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/types.d.ts +29 -128
- package/build/types.d.ts.map +1 -1
- package/build/types.js +1 -87
- package/build/types.js.map +1 -1
- package/build/utils/telemetry.d.ts.map +1 -1
- package/package.json +4 -6
- 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/schemas/envConfig.d.ts +0 -128
- package/build/schemas/envConfig.d.ts.map +0 -1
- package/build/schemas/envConfig.js +0 -9
- package/build/schemas/envConfig.js.map +0 -1
- package/build/schemas/envConfig.json +0 -162
- package/build/schemas/index.d.ts +0 -4
- package/build/schemas/index.d.ts.map +0 -1
- package/build/schemas/index.js +0 -10
- package/build/schemas/index.js.map +0 -1
- package/build/schemas/src/schemas/envConfig.json +0 -162
- 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 -32
- package/build/v2/types.d.ts.map +0 -1
- package/build/v2/types.js +0 -5
- 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,12 +3,6 @@ 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";
|
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;AAC5C,eAAO,MAAM,WAAW,YAAY,CAAC;AACrC,eAAO,MAAM,mBAAmB,6BAA6B,CAAC;AAC9D,eAAO,MAAM,aAAa,cAAc,CAAC;AACzC,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAE5C;;;GAGG;AACH,oBAAY,QAAQ;IAClB,MAAM,QAAQ;IACd,GAAG,QAAQ;IACX,EAAE,OAAO;IACT,QAAQ,aAAa;CACtB;AAED,eAAO,MAAM,eAAe,YAAsB,CAAC;AACnD,eAAO,MAAM,gBAAgB,YAA+C,CAAC;AAC7E,eAAO,MAAM,YAAY,YAAoC,CAAC;AAE9D,oBAAY,SAAS;IACnB,KAAK,UAAU;IACf,gBAAgB,qBAAqB;IACrC,eAAe,oBAAoB;IACnC,MAAM,WAAW;CAClB;AAED,oBAAY,KAAK;IACf,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,eAAe,oBAAoB;IACnC,eAAe,oBAAoB;IACnC,gBAAgB,qBAAqB;IACrC,YAAY,iBAAiB;IAC7B,gBAAgB,qBAAqB;IACrC,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,wBAAwB,6BAA6B;IACrD,mBAAmB,wBAAwB;IAC3C,gBAAgB,qBAAqB;IACrC,mBAAmB,wBAAwB;CAC5C;AAED,oBAAY,cAAc;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,18 +2,12 @@
|
|
|
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.DefaultReadme = exports.AutoGeneratedReadme = exports.ProductName = exports.LocalEnvironmentName = 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";
|
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,u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
|
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/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/types.d.ts
CHANGED
|
@@ -1,15 +1,5 @@
|
|
|
1
|
+
import { IBot, IComposeExtension, IConfigurableTab, IStaticTab, IWebApplicationInfo } from "@microsoft/teams-manifest";
|
|
1
2
|
import { Platform, Stage, VsCodeEnv } from "./constants";
|
|
2
|
-
import { TokenProvider } from "./utils/login";
|
|
3
|
-
import { Context } from "./v2/types";
|
|
4
|
-
import { AppManifestProvider } from "./v3/plugins";
|
|
5
|
-
import { EnvInfoV3 } from "./v3/types";
|
|
6
|
-
export declare type Json = Record<string, any>;
|
|
7
|
-
export declare type ConfigValue = any;
|
|
8
|
-
export declare type PluginIdentity = string;
|
|
9
|
-
export declare type PluginConfig = ConfigMap;
|
|
10
|
-
export declare type ReadonlyPluginConfig = ReadonlyMap<string, ConfigValue>;
|
|
11
|
-
export declare type SolutionConfig = Map<PluginIdentity, PluginConfig>;
|
|
12
|
-
export declare type ReadonlySolutionConfig = ReadonlyMap<PluginIdentity, ReadonlyPluginConfig>;
|
|
13
3
|
/**
|
|
14
4
|
* Definition of option item in single selection or multiple selection
|
|
15
5
|
*/
|
|
@@ -55,31 +45,8 @@ export interface OptionItem {
|
|
|
55
45
|
command: string;
|
|
56
46
|
}[];
|
|
57
47
|
}
|
|
58
|
-
export declare class ConfigMap extends Map<string, ConfigValue> {
|
|
59
|
-
getString(k: string, defaultValue?: string): string | undefined;
|
|
60
|
-
getBoolean(k: string, defaultValue?: boolean): boolean | undefined;
|
|
61
|
-
getNumber(k: string, defaultValue?: number): number | undefined;
|
|
62
|
-
getStringArray(k: string, defaultValue?: string[]): string[] | undefined;
|
|
63
|
-
getNumberArray(k: string, defaultValue?: number[]): number[] | undefined;
|
|
64
|
-
getBooleanArray(k: string, defaultValue?: boolean[]): boolean[] | undefined;
|
|
65
|
-
getOptionItem(k: string, defaultValue?: OptionItem): OptionItem | undefined;
|
|
66
|
-
getOptionItemArray(k: string, defaultValue?: OptionItem[]): OptionItem[] | undefined;
|
|
67
|
-
toJSON(): Json;
|
|
68
|
-
static fromJSON(obj?: Json): ConfigMap | undefined;
|
|
69
|
-
constructor(entries?: readonly (readonly [string, ConfigValue])[] | null);
|
|
70
|
-
}
|
|
71
48
|
export declare type Void = {};
|
|
72
49
|
export declare const Void: {};
|
|
73
|
-
export declare type ResourceTemplate = Record<string, ConfigValue>;
|
|
74
|
-
export declare type ResourceTemplates = {
|
|
75
|
-
[k: string]: ResourceTemplate | undefined;
|
|
76
|
-
};
|
|
77
|
-
export declare type ResourceConfig = ResourceTemplate;
|
|
78
|
-
export declare type ResourceConfigs = ResourceTemplates;
|
|
79
|
-
export declare type ReadonlyResourceConfig = Readonly<ResourceConfig>;
|
|
80
|
-
export declare type ReadonlyResourceConfigs = Readonly<{
|
|
81
|
-
[k: string]: ReadonlyResourceConfig | undefined;
|
|
82
|
-
}>;
|
|
83
50
|
/**
|
|
84
51
|
* environment meta data
|
|
85
52
|
*/
|
|
@@ -88,59 +55,7 @@ export interface EnvMeta {
|
|
|
88
55
|
local: boolean;
|
|
89
56
|
sideloading: boolean;
|
|
90
57
|
}
|
|
91
|
-
|
|
92
|
-
* project static settings
|
|
93
|
-
*/
|
|
94
|
-
export interface ProjectSettings {
|
|
95
|
-
appName?: string;
|
|
96
|
-
version?: string;
|
|
97
|
-
projectId: string;
|
|
98
|
-
programmingLanguage?: string;
|
|
99
|
-
defaultFunctionName?: string;
|
|
100
|
-
solutionSettings?: SolutionSettings;
|
|
101
|
-
isFromSample?: boolean;
|
|
102
|
-
isM365?: boolean;
|
|
103
|
-
/**
|
|
104
|
-
* pluginSettings is used for plugin settings irrelevant to environments
|
|
105
|
-
*/
|
|
106
|
-
pluginSettings?: Json;
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* solution settings
|
|
110
|
-
*/
|
|
111
|
-
export interface SolutionSettings extends Json {
|
|
112
|
-
name: string;
|
|
113
|
-
/**
|
|
114
|
-
* solution settings schema version
|
|
115
|
-
*/
|
|
116
|
-
version?: string;
|
|
117
|
-
}
|
|
118
|
-
export interface AzureSolutionSettings extends SolutionSettings {
|
|
119
|
-
hostType: string;
|
|
120
|
-
capabilities: string[];
|
|
121
|
-
azureResources: string[];
|
|
122
|
-
activeResourcePlugins: string[];
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* local debug settings
|
|
126
|
-
*/
|
|
127
|
-
export interface LocalSettings {
|
|
128
|
-
teamsApp?: ConfigMap;
|
|
129
|
-
auth?: ConfigMap;
|
|
130
|
-
frontend?: ConfigMap;
|
|
131
|
-
backend?: ConfigMap;
|
|
132
|
-
bot?: ConfigMap;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* project dynamic states
|
|
136
|
-
*/
|
|
137
|
-
export interface ProjectStates {
|
|
138
|
-
solution: Record<string, ConfigValue>;
|
|
139
|
-
resources: {
|
|
140
|
-
[k: string]: Record<string, ConfigValue>;
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
export interface Inputs extends Json {
|
|
58
|
+
export interface Inputs extends Record<string, any> {
|
|
144
59
|
projectPath?: string;
|
|
145
60
|
targetEnvName?: string;
|
|
146
61
|
sourceEnvName?: string;
|
|
@@ -160,47 +75,12 @@ export interface Inputs extends Json {
|
|
|
160
75
|
inProductDoc?: boolean;
|
|
161
76
|
teamsAppFromTdp?: any;
|
|
162
77
|
}
|
|
163
|
-
export
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
envInfos: {
|
|
170
|
-
[key: string]: EnvInfoV3;
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
export interface Component extends Json {
|
|
174
|
-
name: string;
|
|
175
|
-
hosting?: string;
|
|
176
|
-
code?: string;
|
|
177
|
-
deployType?: "folder" | "zip";
|
|
178
|
-
language?: string;
|
|
179
|
-
folder?: string;
|
|
180
|
-
artifactFolder?: string;
|
|
181
|
-
build?: boolean;
|
|
182
|
-
provision?: boolean;
|
|
183
|
-
deploy?: boolean;
|
|
184
|
-
connections?: string[];
|
|
185
|
-
sso?: boolean;
|
|
186
|
-
}
|
|
187
|
-
export interface ProjectSettingsV3 extends ProjectSettings {
|
|
188
|
-
components: Component[];
|
|
189
|
-
}
|
|
190
|
-
export interface ContextV3 extends Context {
|
|
191
|
-
manifestProvider: AppManifestProvider;
|
|
192
|
-
projectSetting: ProjectSettingsV3;
|
|
193
|
-
envInfo?: EnvInfoV3;
|
|
194
|
-
tokenProvider?: TokenProvider;
|
|
195
|
-
projectPath?: string;
|
|
196
|
-
templateVariables?: {
|
|
197
|
-
[key: string]: string;
|
|
198
|
-
};
|
|
199
|
-
}
|
|
200
|
-
export interface ResourceContextV3 extends ContextV3 {
|
|
201
|
-
envInfo: EnvInfoV3;
|
|
202
|
-
tokenProvider: TokenProvider;
|
|
203
|
-
}
|
|
78
|
+
export declare type InputsWithProjectPath = Inputs & {
|
|
79
|
+
projectPath: string;
|
|
80
|
+
};
|
|
81
|
+
export declare type DeepReadonly<T> = {
|
|
82
|
+
readonly [P in keyof T]: DeepReadonly<T[P]>;
|
|
83
|
+
};
|
|
204
84
|
export declare type MaybePromise<T> = T | Promise<T>;
|
|
205
85
|
/**
|
|
206
86
|
* simplified tooling settings for v3
|
|
@@ -209,4 +89,25 @@ export interface Settings {
|
|
|
209
89
|
version: string;
|
|
210
90
|
trackingId: string;
|
|
211
91
|
}
|
|
92
|
+
export declare type ManifestCapability = {
|
|
93
|
+
name: "staticTab";
|
|
94
|
+
snippet?: IStaticTab;
|
|
95
|
+
existingApp?: boolean;
|
|
96
|
+
} | {
|
|
97
|
+
name: "configurableTab";
|
|
98
|
+
snippet?: IConfigurableTab;
|
|
99
|
+
existingApp?: boolean;
|
|
100
|
+
} | {
|
|
101
|
+
name: "Bot";
|
|
102
|
+
snippet?: IBot;
|
|
103
|
+
existingApp?: boolean;
|
|
104
|
+
} | {
|
|
105
|
+
name: "MessageExtension";
|
|
106
|
+
snippet?: IComposeExtension;
|
|
107
|
+
existingApp?: boolean;
|
|
108
|
+
} | {
|
|
109
|
+
name: "WebApplicationInfo";
|
|
110
|
+
snippet?: IWebApplicationInfo;
|
|
111
|
+
existingApp?: boolean;
|
|
112
|
+
};
|
|
212
113
|
//# sourceMappingURL=types.d.ts.map
|
package/build/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,IAAI,EACJ,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EACV,mBAAmB,EACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IAC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"use strict";
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.Void =
|
|
6
|
-
class ConfigMap extends Map {
|
|
7
|
-
getString(k, defaultValue) {
|
|
8
|
-
const v = super.get(k);
|
|
9
|
-
if (!v)
|
|
10
|
-
return defaultValue;
|
|
11
|
-
return String(v);
|
|
12
|
-
}
|
|
13
|
-
getBoolean(k, defaultValue) {
|
|
14
|
-
const v = super.get(k);
|
|
15
|
-
if (!v)
|
|
16
|
-
return defaultValue;
|
|
17
|
-
return Boolean(v);
|
|
18
|
-
}
|
|
19
|
-
getNumber(k, defaultValue) {
|
|
20
|
-
const v = super.get(k);
|
|
21
|
-
if (!v)
|
|
22
|
-
return defaultValue;
|
|
23
|
-
return Number(v);
|
|
24
|
-
}
|
|
25
|
-
getStringArray(k, defaultValue) {
|
|
26
|
-
const v = super.get(k);
|
|
27
|
-
if (!v)
|
|
28
|
-
return defaultValue;
|
|
29
|
-
return v;
|
|
30
|
-
}
|
|
31
|
-
getNumberArray(k, defaultValue) {
|
|
32
|
-
const v = super.get(k);
|
|
33
|
-
if (!v)
|
|
34
|
-
return defaultValue;
|
|
35
|
-
return v;
|
|
36
|
-
}
|
|
37
|
-
getBooleanArray(k, defaultValue) {
|
|
38
|
-
const v = super.get(k);
|
|
39
|
-
if (!v)
|
|
40
|
-
return defaultValue;
|
|
41
|
-
return v;
|
|
42
|
-
}
|
|
43
|
-
getOptionItem(k, defaultValue) {
|
|
44
|
-
const v = super.get(k);
|
|
45
|
-
if (!v)
|
|
46
|
-
return defaultValue;
|
|
47
|
-
if (v instanceof ConfigMap) {
|
|
48
|
-
return v.toJSON();
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
return v;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
getOptionItemArray(k, defaultValue) {
|
|
55
|
-
const v = super.get(k);
|
|
56
|
-
if (!v)
|
|
57
|
-
return defaultValue;
|
|
58
|
-
return v;
|
|
59
|
-
}
|
|
60
|
-
toJSON() {
|
|
61
|
-
const out = {};
|
|
62
|
-
for (const entry of super.entries()) {
|
|
63
|
-
if (entry[1] instanceof ConfigMap) {
|
|
64
|
-
out[entry[0]] = entry[1].toJSON();
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
out[entry[0]] = entry[1];
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
return out;
|
|
71
|
-
}
|
|
72
|
-
static fromJSON(obj) {
|
|
73
|
-
if (!obj)
|
|
74
|
-
return undefined;
|
|
75
|
-
const map = new ConfigMap();
|
|
76
|
-
for (const entry of Object.entries(obj)) {
|
|
77
|
-
if (typeof entry[1] !== "object") {
|
|
78
|
-
map.set(entry[0], entry[1]);
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
map.set(entry[0], this.fromJSON(entry[1]));
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return map;
|
|
85
|
-
}
|
|
86
|
-
constructor(entries) {
|
|
87
|
-
super(entries);
|
|
88
|
-
Object.setPrototypeOf(this, ConfigMap.prototype);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
exports.ConfigMap = ConfigMap;
|
|
5
|
+
exports.Void = void 0;
|
|
92
6
|
exports.Void = {};
|
|
93
7
|
//# sourceMappingURL=types.js.map
|
package/build/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAwDA,QAAA,IAAI,GAAG,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../src/utils/telemetry.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,MAAM,WAAW,iBAAiB;
|
|
1
|
+
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../src/utils/telemetry.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;;;OAMG;IACH,kBAAkB,CAChB,SAAS,EAAE,MAAM,EACjB,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,EACtC,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GACvC,IAAI,CAAC;IAER;;;;;;OAMG;IACH,uBAAuB,CACrB,SAAS,EAAE,MAAM,EACjB,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,EACtC,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,EACxC,UAAU,CAAC,EAAE,MAAM,EAAE,GACpB,IAAI,CAAC;IAER;;;;;OAKG;IACH,sBAAsB,CACpB,KAAK,EAAE,KAAK,EACZ,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,EACtC,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GACvC,IAAI,CAAC;CACT"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/teamsfx-api",
|
|
3
|
-
"version": "0.22.4-alpha.
|
|
3
|
+
"version": "0.22.4-alpha.8a27a2c7c.0",
|
|
4
4
|
"description": "teamsfx framework api",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -16,10 +16,8 @@
|
|
|
16
16
|
"scripts": {
|
|
17
17
|
"lint:staged": "lint-staged",
|
|
18
18
|
"lint": "eslint \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
19
|
-
"prebuild": "npx json2ts --input src/schemas/envConfig.json --output src/schemas/envConfig.ts",
|
|
20
19
|
"build": "tsc -p ./ && npx api-extractor run --local",
|
|
21
20
|
"build:api-markdown": "npm run build && rimraf ../../docs/api && npx api-documenter markdown -i temp -o ../../docs/api",
|
|
22
|
-
"postbuild": "npx copyfiles src/schemas/*.json build/schemas/",
|
|
23
21
|
"lint:fix": "eslint \"src/**/*.ts\" \"tests/**/*.ts\" --fix",
|
|
24
22
|
"doc": "typedoc",
|
|
25
23
|
"test:unit": "nyc --no-clean mocha --no-timeouts --require ts-node/register \"tests/**/*.ts\" ",
|
|
@@ -31,7 +29,7 @@
|
|
|
31
29
|
"@istanbuljs/nyc-config-typescript": "^1.0.1",
|
|
32
30
|
"@microsoft/api-documenter": "^7.15.3",
|
|
33
31
|
"@microsoft/api-extractor": "^7.18.4",
|
|
34
|
-
"@microsoft/eslint-plugin-teamsfx": "0.0.4-alpha.
|
|
32
|
+
"@microsoft/eslint-plugin-teamsfx": "0.0.4-alpha.8a27a2c7c.0",
|
|
35
33
|
"@types/chai": "^4.2.14",
|
|
36
34
|
"@types/chai-as-promised": "^7.1.3",
|
|
37
35
|
"@types/chai-spies": "^1.0.3",
|
|
@@ -61,13 +59,13 @@
|
|
|
61
59
|
},
|
|
62
60
|
"dependencies": {
|
|
63
61
|
"@azure/core-auth": "^1.4.0",
|
|
64
|
-
"@microsoft/teams-manifest": "0.1.1-alpha.
|
|
62
|
+
"@microsoft/teams-manifest": "0.1.1-alpha.8a27a2c7c.0",
|
|
65
63
|
"axios": "^0.21.2",
|
|
66
64
|
"chai": "^4.3.4",
|
|
67
65
|
"jsonschema": "^1.4.0",
|
|
68
66
|
"neverthrow": "^3.2.0"
|
|
69
67
|
},
|
|
70
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "4743cb704e3f4e303de178c8e34b4e4c90ca6146",
|
|
71
69
|
"publishConfig": {
|
|
72
70
|
"access": "public"
|
|
73
71
|
},
|
package/build/action.d.ts
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { Result } from "neverthrow";
|
|
2
|
-
import { Bicep } from "./bicep";
|
|
3
|
-
import { FxError } from "./error";
|
|
4
|
-
import { IProgressHandler } from "./qm";
|
|
5
|
-
import { QTreeNode } from "./qm/question";
|
|
6
|
-
import { Json, ContextV3, MaybePromise } from "./types";
|
|
7
|
-
import { InputsWithProjectPath } from "./v2/types";
|
|
8
|
-
/**
|
|
9
|
-
* Action is the basic concept to finish some lifecycle operation (create, provision, deploy, ...)
|
|
10
|
-
* Action can be named action or anonymous action: named actions can be called by other actions, anonymous actions can not be called by other actions
|
|
11
|
-
* An action can have the following types:
|
|
12
|
-
* 1. shell - execute a shell script
|
|
13
|
-
* 2. call - call an existing action
|
|
14
|
-
* 3. function - run a javascript function
|
|
15
|
-
* 4. group - a group of actions that can be executed in parallel or in sequence
|
|
16
|
-
*/
|
|
17
|
-
export interface ActionBase {
|
|
18
|
-
name?: string;
|
|
19
|
-
type: "group" | "shell" | "call" | "function";
|
|
20
|
-
inputs?: Json;
|
|
21
|
-
/**
|
|
22
|
-
* condition function to tell whether the action should be executed or not
|
|
23
|
-
* if return true: yes
|
|
24
|
-
* if return false: skip this node and all sub nodes
|
|
25
|
-
* if condition is undefined, default behavior is yes
|
|
26
|
-
*/
|
|
27
|
-
condition?: (context: ContextV3, inputs: InputsWithProjectPath) => MaybePromise<Result<boolean, FxError>>;
|
|
28
|
-
plan?: (context: ContextV3, inputs: InputsWithProjectPath) => MaybePromise<Result<Effect[], FxError>>;
|
|
29
|
-
question?: (context: ContextV3, inputs: InputsWithProjectPath) => MaybePromise<Result<QTreeNode | undefined, FxError>>;
|
|
30
|
-
pre?: (context: ContextV3, inputs: InputsWithProjectPath) => MaybePromise<Result<undefined, FxError>>;
|
|
31
|
-
post?: (context: ContextV3, inputs: InputsWithProjectPath) => MaybePromise<Result<undefined, FxError>>;
|
|
32
|
-
exception?: (context: ContextV3, inputs: InputsWithProjectPath) => MaybePromise<Result<undefined, FxError>>;
|
|
33
|
-
}
|
|
34
|
-
export declare type Action = GroupAction | ShellAction | CallAction | FunctionAction;
|
|
35
|
-
/**
|
|
36
|
-
* group action: group action make it possible to leverage multiple sub-actions to accomplishment more complex task
|
|
37
|
-
*/
|
|
38
|
-
export interface GroupAction extends ActionBase {
|
|
39
|
-
type: "group";
|
|
40
|
-
/**
|
|
41
|
-
* execution mode, in sequence or in parallel, if undefined, default is sequential
|
|
42
|
-
*/
|
|
43
|
-
mode?: "sequential" | "parallel";
|
|
44
|
-
actions: Action[];
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* shell action: execute a shell script
|
|
48
|
-
*/
|
|
49
|
-
export interface ShellAction extends ActionBase {
|
|
50
|
-
type: "shell";
|
|
51
|
-
description: string;
|
|
52
|
-
command: string;
|
|
53
|
-
cwd?: string;
|
|
54
|
-
async?: boolean;
|
|
55
|
-
captureStdout?: boolean;
|
|
56
|
-
captureStderr?: boolean;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* call action: call an existing action (defined locally or in other package)
|
|
60
|
-
*/
|
|
61
|
-
export interface CallAction extends ActionBase {
|
|
62
|
-
type: "call";
|
|
63
|
-
required: boolean;
|
|
64
|
-
targetAction: string;
|
|
65
|
-
}
|
|
66
|
-
export declare type ErrorHandler = (error: any, telemetryProps: Record<string, string>) => FxError;
|
|
67
|
-
/**
|
|
68
|
-
* function action: run a javascript function call that can do any kinds of work
|
|
69
|
-
*/
|
|
70
|
-
export interface FunctionAction extends ActionBase {
|
|
71
|
-
name: string;
|
|
72
|
-
type: "function";
|
|
73
|
-
errorSource?: string;
|
|
74
|
-
errorHelpLink?: string;
|
|
75
|
-
errorIssueLink?: string;
|
|
76
|
-
errorHandler?: ErrorHandler;
|
|
77
|
-
enableTelemetry?: boolean;
|
|
78
|
-
telemetryComponentName?: string;
|
|
79
|
-
telemetryEventName?: string;
|
|
80
|
-
telemetryProps?: Record<string, string>;
|
|
81
|
-
enableProgressBar?: boolean;
|
|
82
|
-
progressTitle?: string;
|
|
83
|
-
progressSteps?: number;
|
|
84
|
-
/**
|
|
85
|
-
* function body is a function that takes some context and inputs as parameter
|
|
86
|
-
*/
|
|
87
|
-
execute: (context: ContextV3, inputs: InputsWithProjectPath, progress?: IProgressHandler, telemetryProps?: Record<string, string>) => MaybePromise<Result<Effect[], FxError>>;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* create: create a new file if it does not exist; skip if it already exists
|
|
91
|
-
* replace: create a new file if it does not exist; replace the file with new content if it already exists
|
|
92
|
-
* append: create a new file with the content if it does not exist; append the content to the end of the file if it already exists
|
|
93
|
-
* delete: delete the file if it exists; skip if it does not exist;
|
|
94
|
-
*/
|
|
95
|
-
export declare type FileOperation = "create" | "replace" | "append" | "delete" | "skipCreate" | "skipReplace";
|
|
96
|
-
export interface FileEffect {
|
|
97
|
-
type: "file";
|
|
98
|
-
filePath: string | string[];
|
|
99
|
-
operate: FileOperation;
|
|
100
|
-
remarks?: string;
|
|
101
|
-
}
|
|
102
|
-
export interface CallServiceEffect {
|
|
103
|
-
type: "service";
|
|
104
|
-
name: string;
|
|
105
|
-
remarks?: string;
|
|
106
|
-
response?: string;
|
|
107
|
-
}
|
|
108
|
-
export declare type Effect = string | FileEffect | CallServiceEffect | Bicep | ShellAction;
|
|
109
|
-
//# sourceMappingURL=action.d.ts.map
|