@microsoft/teamsfx-api 0.22.4-alpha.857e9ca79.0 → 0.22.4-alpha.a32ea10b4.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/index.d.ts CHANGED
@@ -2,9 +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 "./vscode";
8
6
  export * from "@microsoft/teams-manifest";
9
7
  export * from "./utils";
10
8
  export * from "./error";
@@ -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,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,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"}
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,9 +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("./vscode"), exports);
16
14
  tslib_1.__exportStar(require("@microsoft/teams-manifest"), exports);
17
15
  tslib_1.__exportStar(require("./utils"), exports);
18
16
  tslib_1.__exportStar(require("./error"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;;AACb,iDAA2B;AAiBlB,gBAAE;AAhBX,iDAA2B;AAiBlB,gBAAE;AAhBX,sDAA4B;AAC5B,oDAA0B;AAC1B,iDAAuB;AACvB,kDAAwB;AACxB,mDAAyB;AACzB,oEAA0C;AAC1C,kDAAwB;AACxB,kDAAwB;AACxB,+CAAqB;AACrB,oDAA0B;AAC1B,mDAAyB;AACzB,kDAAwB;AACxB,sDAA4B;AAK5B,qDAA2B"}
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"}
@@ -1,7 +1,5 @@
1
1
  export * from "./types";
2
2
  export * from "./resourceStates";
3
3
  export * from "./plugins";
4
- export * from "./solution";
5
- export * from "./core";
6
4
  export * from "./AzureResourceStates";
7
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/v3/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/v3/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC"}
package/build/v3/index.js CHANGED
@@ -6,7 +6,5 @@ const tslib_1 = require("tslib");
6
6
  tslib_1.__exportStar(require("./types"), exports);
7
7
  tslib_1.__exportStar(require("./resourceStates"), exports);
8
8
  tslib_1.__exportStar(require("./plugins"), exports);
9
- tslib_1.__exportStar(require("./solution"), exports);
10
- tslib_1.__exportStar(require("./core"), exports);
11
9
  tslib_1.__exportStar(require("./AzureResourceStates"), exports);
12
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/v3/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,kDAAwB;AACxB,2DAAiC;AACjC,oDAA0B;AAC1B,qDAA2B;AAC3B,iDAAuB;AACvB,gEAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/v3/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,kDAAwB;AACxB,2DAAiC;AACjC,oDAA0B;AAC1B,gEAAsC"}
@@ -1,4 +1,4 @@
1
- import { IStaticTab, IConfigurableTab, IBot, IComposeExtension, IWebApplicationInfo } from "@microsoft/teams-manifest";
1
+ import { IBot, IComposeExtension, IConfigurableTab, IStaticTab, IWebApplicationInfo } from "@microsoft/teams-manifest";
2
2
  import { EnvInfoV2 } from "../v2/types";
3
3
  import { ResourceStates } from "./resourceStates";
4
4
  export interface EnvInfoV3 extends EnvInfoV2 {
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/v3/types.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,IAAI,EACJ,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAAW,SAAS,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,WAAW,SAAU,SAAQ,SAAS;IAC1C,KAAK,EAAE,cAAc,CAAC;CACvB;AAGD,oBAAY,kBAAkB,GAC1B;IACE,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GACD;IACE,IAAI,EAAE,iBAAiB,CAAC;IACxB,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GACD;IACE,IAAI,EAAE,KAAK,CAAC;IACZ,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GACD;IACE,IAAI,EAAE,kBAAkB,CAAC;IACzB,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GACD;IACE,IAAI,EAAE,oBAAoB,CAAC;IAC3B,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/v3/types.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,IAAI,EACJ,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EACV,mBAAmB,EACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,WAAW,SAAU,SAAQ,SAAS;IAC1C,KAAK,EAAE,cAAc,CAAC;CACvB;AAGD,oBAAY,kBAAkB,GAC1B;IACE,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GACD;IACE,IAAI,EAAE,iBAAiB,CAAC;IACxB,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GACD;IACE,IAAI,EAAE,KAAK,CAAC;IACZ,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GACD;IACE,IAAI,EAAE,kBAAkB,CAAC;IACzB,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GACD;IACE,IAAI,EAAE,oBAAoB,CAAC;IAC3B,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/teamsfx-api",
3
- "version": "0.22.4-alpha.857e9ca79.0",
3
+ "version": "0.22.4-alpha.a32ea10b4.0",
4
4
  "description": "teamsfx framework api",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -31,7 +31,7 @@
31
31
  "@istanbuljs/nyc-config-typescript": "^1.0.1",
32
32
  "@microsoft/api-documenter": "^7.15.3",
33
33
  "@microsoft/api-extractor": "^7.18.4",
34
- "@microsoft/eslint-plugin-teamsfx": "0.0.4-alpha.857e9ca79.0",
34
+ "@microsoft/eslint-plugin-teamsfx": "0.0.4-alpha.a32ea10b4.0",
35
35
  "@types/chai": "^4.2.14",
36
36
  "@types/chai-as-promised": "^7.1.3",
37
37
  "@types/chai-spies": "^1.0.3",
@@ -61,13 +61,13 @@
61
61
  },
62
62
  "dependencies": {
63
63
  "@azure/core-auth": "^1.4.0",
64
- "@microsoft/teams-manifest": "0.1.1-alpha.857e9ca79.0",
64
+ "@microsoft/teams-manifest": "0.1.1-alpha.a32ea10b4.0",
65
65
  "axios": "^0.21.2",
66
66
  "chai": "^4.3.4",
67
67
  "jsonschema": "^1.4.0",
68
68
  "neverthrow": "^3.2.0"
69
69
  },
70
- "gitHead": "8ed1d99d5b1e5f64f7480eb7e0618bf0c6cdfc7b",
70
+ "gitHead": "2ad03edd13bd8b95263d29c6646cd308e22b37bb",
71
71
  "publishConfig": {
72
72
  "access": "public"
73
73
  },
package/build/core.d.ts DELETED
@@ -1,50 +0,0 @@
1
- import { Result } from "neverthrow";
2
- import { CoreCallbackEvent, Stage } from "./constants";
3
- import { FxError } from "./error";
4
- import { Func, FunctionRouter, QTreeNode } from "./qm";
5
- import { Inputs, Void } from "./types";
6
- export declare type CoreCallbackFunc = (name: string, err?: FxError, data?: any) => void;
7
- export interface Core {
8
- version?: string;
9
- createProject: (inputs: Inputs) => Promise<Result<string, FxError>>;
10
- provisionResources: (inputs: Inputs) => Promise<Result<Void, FxError>>;
11
- deployArtifacts: (inputs: Inputs) => Promise<Result<Void, FxError>>;
12
- localDebug: (inputs: Inputs) => Promise<Result<Void, FxError>>;
13
- publishApplication: (inputs: Inputs) => Promise<Result<Void, FxError>>;
14
- executeUserTask: (func: Func, inputs: Inputs) => Promise<Result<unknown, FxError>>;
15
- createEnv: (inputs: Inputs) => Promise<Result<Void, FxError>>;
16
- activateEnv: (inputs: Inputs) => Promise<Result<Void, FxError>>;
17
- /**
18
- * only for CLI
19
- */
20
- getQuestions: (task: Stage, inputs: Inputs) => Promise<Result<QTreeNode | undefined, FxError>>;
21
- getQuestionsForUserTask?: (router: FunctionRouter, inputs: Inputs) => Promise<Result<QTreeNode | undefined, FxError>>;
22
- /**
23
- * Used for encryption of secrets in user data file
24
- */
25
- encrypt: (plaintext: string, inputs: Inputs) => Promise<Result<string, FxError>>;
26
- decrypt: (ciphertext: string, inputs: Inputs) => Promise<Result<string, FxError>>;
27
- /**
28
- * For grant and check permission in remote collaboration
29
- */
30
- grantPermission: (inputs: Inputs) => Promise<Result<any, FxError>>;
31
- checkPermission: (inputs: Inputs) => Promise<Result<any, FxError>>;
32
- listCollaborator: (inputs: Inputs) => Promise<Result<any, FxError>>;
33
- /**
34
- * This callback type is called `onEventCallback` and is displayed as a global symbol.
35
- * @callback onEventCallback
36
- *
37
- * @param {FxError=} err - Exist if panic.
38
- * @param {any=} data - If there's any necessary data to deliver.
39
- */
40
- /**
41
- * In some cases, users are gonna get notified on specific event.
42
- * For example, core will set a mutex to guarantee only on process
43
- * is running at the same time.
44
- *
45
- * @param {CoreCallbackEvent=} event - predefined event, like "lock", "unlock"
46
- * @param {CoreCallbackFunc=} callback - The callback that handles the response.
47
- */
48
- on: (event: CoreCallbackEvent, callback: CoreCallbackFunc) => void;
49
- }
50
- //# sourceMappingURL=core.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,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AAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,SAAS,GAAG,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;IAC/F,uBAAuB,CAAC,EAAE,CACxB,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,MAAM,KACX,OAAO,CAAC,MAAM,CAAC,SAAS,GAAG,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;IAErD;;OAEG;IACH,OAAO,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACjF,OAAO,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAElF;;OAEG;IACH,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;IACnE,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;IACnE,gBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;IAEpE;;;;;;OAMG;IAEH;;;;;;;OAOG;IACH,EAAE,EAAE,CAAC,KAAK,EAAE,iBAAiB,EAAE,QAAQ,EAAE,gBAAgB,KAAK,IAAI,CAAC;CACpE"}
package/build/core.js DELETED
@@ -1,5 +0,0 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- //# sourceMappingURL=core.js.map
package/build/core.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"}
@@ -1,15 +0,0 @@
1
- import { Result } from "neverthrow";
2
- import { Core } from "../core";
3
- import { FxError } from "../error";
4
- import { Void } from "../types";
5
- import { InputsWithProjectPath } from "../v2/types";
6
- export interface ICore extends Core {
7
- /**
8
- * add feature means add/modify files in local workspace folder:
9
- * 1. scaffold/update source code
10
- * 2. generate/update arm templates
11
- * 3. update teams app manifest file
12
- */
13
- addFeature?: (inputs: InputsWithProjectPath) => Promise<Result<Void, FxError>>;
14
- }
15
- //# sourceMappingURL=core.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/v3/core.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEpD,MAAM,WAAW,KAAM,SAAQ,IAAI;IACjC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,qBAAqB,KAAK,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;CAChF"}
package/build/v3/core.js DELETED
@@ -1,5 +0,0 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- //# sourceMappingURL=core.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"core.js","sourceRoot":"","sources":["../../src/v3/core.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"}
@@ -1,40 +0,0 @@
1
- import { Result } from "neverthrow";
2
- import { FxError } from "../error";
3
- import { Func, QTreeNode } from "../qm/question";
4
- import { Inputs, Void } from "../types";
5
- import { M365TokenProvider, TokenProvider } from "../utils/login";
6
- import { Context, DeepReadonly, InputsWithProjectPath } from "../v2/types";
7
- import { EnvInfoV3 } from "./types";
8
- export interface SolutionAddFeatureInputs extends InputsWithProjectPath {
9
- features: string[];
10
- }
11
- export interface ISolution {
12
- name: string;
13
- /**
14
- * init
15
- */
16
- getQuestionsForInit?: (ctx: Context, inputs: Inputs) => Promise<Result<QTreeNode | undefined, FxError>>;
17
- init?: (ctx: Context, inputs: InputsWithProjectPath) => Promise<Result<Void, FxError>>;
18
- /**
19
- * add feature
20
- */
21
- getQuestionsForAddFeature?: (ctx: Context, inputs: InputsWithProjectPath) => Promise<Result<QTreeNode | undefined, FxError>>;
22
- /**
23
- * triggered by add feature event, this API aims to add/modify files in local workspace
24
- *
25
- * @param {Context} ctx - plugin's runtime context shared by all lifecycles.
26
- * @param {InputsWithProjectPath} inputs
27
- * @param {EnvInfoV3} envInfo optional
28
- * @returns Void
29
- */
30
- addFeature?: (ctx: Context, inputs: SolutionAddFeatureInputs) => Promise<Result<Void, FxError>>;
31
- getQuestionsForProvision?: (ctx: Context, inputs: InputsWithProjectPath, envInfo: DeepReadonly<EnvInfoV3>, tokenProvider: TokenProvider) => Promise<Result<QTreeNode | undefined, FxError>>;
32
- provisionResources?: (ctx: Context, inputs: InputsWithProjectPath, envInfo: EnvInfoV3, tokenProvider: TokenProvider) => Promise<Result<Void, FxError>>;
33
- getQuestionsForDeploy?: (ctx: Context, inputs: InputsWithProjectPath, envInfo: DeepReadonly<EnvInfoV3>, tokenProvider: TokenProvider) => Promise<Result<QTreeNode | undefined, FxError>>;
34
- deploy?: (ctx: Context, inputs: InputsWithProjectPath, envInfo: DeepReadonly<EnvInfoV3>, tokenProvider: TokenProvider) => Promise<Result<Void, FxError>>;
35
- getQuestionsForPublish?: (ctx: Context, inputs: InputsWithProjectPath, envInfo: DeepReadonly<EnvInfoV3>, tokenProvider: M365TokenProvider) => Promise<Result<QTreeNode | undefined, FxError>>;
36
- publishApplication: (ctx: Context, inputs: InputsWithProjectPath, envInfo: DeepReadonly<EnvInfoV3>, tokenProvider: M365TokenProvider) => Promise<Result<Void, FxError>>;
37
- getQuestionsForUserTask?: (ctx: Context, inputs: Inputs, func: Func, envInfo: DeepReadonly<EnvInfoV3>, tokenProvider: TokenProvider) => Promise<Result<QTreeNode | undefined, FxError>>;
38
- executeUserTask?: (ctx: Context, inputs: Inputs, func: Func, envInfo: EnvInfoV3, tokenProvider: TokenProvider) => Promise<Result<any, FxError>>;
39
- }
40
- //# sourceMappingURL=solution.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"solution.d.ts","sourceRoot":"","sources":["../../src/v3/solution.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,MAAM,WAAW,wBAAyB,SAAQ,qBAAqB;IACrE,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,mBAAmB,CAAC,EAAE,CACpB,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,MAAM,KACX,OAAO,CAAC,MAAM,CAAC,SAAS,GAAG,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;IACrD,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,E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IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IAGpC,sBAAsB,CAAC,EAAE,CACvB,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,qBAAqB,EAC7B,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,EAChC,aAAa,EAAE,iBAAiB,KAC7B,OAAO,CAAC,MAAM,CAAC,SAAS,GAAG,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;IACrD,kBAAkB,EAAE,CAClB,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,qBAAqB,EAC7B,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,EAChC,aAAa,EAAE,iBAAiB,KAC7B,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IAGpC,uBAAuB,CAAC,EAAE,CACxB,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,EAChC,aAAa,EAAE,aAAa,KACzB,OAAO,CAAC,MAAM,CAAC,SAAS,GAAG,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;IACrD,eAAe,CAAC,EAAE,CAChB,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,SAAS,EAClB,aAAa,EAAE,aAAa,KACzB,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;CACpC"}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- //# sourceMappingURL=solution.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"solution.js","sourceRoot":"","sources":["../../src/v3/solution.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"}
package/build/vscode.d.ts DELETED
@@ -1,22 +0,0 @@
1
- import { Result } from "neverthrow";
2
- import { FxError } from "./error";
3
- export interface VsCode {
4
- /**
5
- * configurations.json
6
- */
7
- addConfigurations: (configurations: any) => Promise<Result<null, FxError>>;
8
- /**
9
- * tasks.json
10
- */
11
- addTasks: (tasks: any) => Promise<Result<null, FxError>>;
12
- addInputs: (iputs: any) => Promise<Result<null, FxError>>;
13
- /**
14
- * settings.json
15
- */
16
- addSettings: (settings: any) => Promise<Result<null, FxError>>;
17
- /**
18
- * extensions.json
19
- */
20
- addRecommendations: (recommendations: any) => Promise<Result<null, FxError>>;
21
- }
22
- //# sourceMappingURL=vscode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vscode.d.ts","sourceRoot":"","sources":["../src/vscode.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,MAAM,WAAW,MAAM;IACnB;;OAEG;IACH,iBAAiB,EAAE,CAAC,cAAc,EAAE,GAAG,KAAK,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IAE3E;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IACzD,SAAS,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IAE1D;;OAEG;IACH,WAAW,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IAE/D;;OAEG;IACH,kBAAkB,EAAE,CAAC,eAAe,EAAE,GAAG,KAAK,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;CAChF"}
package/build/vscode.js DELETED
@@ -1,5 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- "use strict";
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- //# sourceMappingURL=vscode.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vscode.js","sourceRoot":"","sources":["../src/vscode.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC"}