@microsoft/teamsfx-api 0.20.2-alpha.3eaf47533.0 → 0.20.2-alpha.c32211c78.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/action.d.ts +15 -21
- package/build/action.d.ts.map +1 -1
- package/package.json +3 -3
package/build/action.d.ts
CHANGED
|
@@ -13,29 +13,32 @@ import { InputsWithProjectPath } from "./v2/types";
|
|
|
13
13
|
* 3. function - run a javascript function
|
|
14
14
|
* 4. group - a group of actions that can be executed in parallel or in sequence
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export interface ActionBase {
|
|
17
|
+
name?: string;
|
|
18
|
+
type: "group" | "shell" | "call" | "function";
|
|
19
|
+
inputs?: Json;
|
|
20
|
+
plan?: (context: ContextV3, inputs: InputsWithProjectPath) => MaybePromise<Result<Effect[], FxError>>;
|
|
21
|
+
question?: (context: ContextV3, inputs: InputsWithProjectPath) => MaybePromise<Result<QTreeNode | undefined, FxError>>;
|
|
22
|
+
pre?: (context: ContextV3, inputs: InputsWithProjectPath) => MaybePromise<Result<QTreeNode | undefined, FxError>>;
|
|
23
|
+
post?: (context: ContextV3, inputs: InputsWithProjectPath) => MaybePromise<Result<QTreeNode | undefined, FxError>>;
|
|
24
|
+
exception?: (context: ContextV3, inputs: InputsWithProjectPath) => MaybePromise<Result<QTreeNode | undefined, FxError>>;
|
|
25
|
+
}
|
|
26
|
+
export declare type Action = GroupAction | ShellAction | CallAction | FunctionAction;
|
|
17
27
|
/**
|
|
18
28
|
* group action: group action make it possible to leverage multiple sub-actions to accomplishment more complex task
|
|
19
29
|
*/
|
|
20
|
-
export interface GroupAction {
|
|
21
|
-
name?: string;
|
|
30
|
+
export interface GroupAction extends ActionBase {
|
|
22
31
|
type: "group";
|
|
23
32
|
/**
|
|
24
33
|
* execution mode, in sequence or in parallel, if undefined, default is sequential
|
|
25
34
|
*/
|
|
26
35
|
mode?: "sequential" | "parallel";
|
|
27
36
|
actions: Action[];
|
|
28
|
-
inputs?: Json;
|
|
29
|
-
/**
|
|
30
|
-
* question is to define inputs of the task
|
|
31
|
-
*/
|
|
32
|
-
question?: (context: ContextV3, inputs: InputsWithProjectPath) => MaybePromise<Result<QTreeNode | undefined, FxError>>;
|
|
33
37
|
}
|
|
34
38
|
/**
|
|
35
39
|
* shell action: execute a shell script
|
|
36
40
|
*/
|
|
37
|
-
export interface ShellAction {
|
|
38
|
-
name?: string;
|
|
41
|
+
export interface ShellAction extends ActionBase {
|
|
39
42
|
type: "shell";
|
|
40
43
|
description: string;
|
|
41
44
|
command: string;
|
|
@@ -47,25 +50,16 @@ export interface ShellAction {
|
|
|
47
50
|
/**
|
|
48
51
|
* call action: call an existing action (defined locally or in other package)
|
|
49
52
|
*/
|
|
50
|
-
export interface CallAction {
|
|
51
|
-
name?: string;
|
|
53
|
+
export interface CallAction extends ActionBase {
|
|
52
54
|
type: "call";
|
|
53
55
|
required: boolean;
|
|
54
56
|
targetAction: string;
|
|
55
|
-
inputs?: Json;
|
|
56
57
|
}
|
|
57
58
|
/**
|
|
58
59
|
* function action: run a javascript function call that can do any kinds of work
|
|
59
60
|
*/
|
|
60
|
-
export interface FunctionAction {
|
|
61
|
-
name: string;
|
|
61
|
+
export interface FunctionAction extends ActionBase {
|
|
62
62
|
type: "function";
|
|
63
|
-
inputs?: Json;
|
|
64
|
-
plan?(context: ContextV3, inputs: InputsWithProjectPath): MaybePromise<Result<Effect[], FxError>>;
|
|
65
|
-
/**
|
|
66
|
-
* question is to define inputs of the task
|
|
67
|
-
*/
|
|
68
|
-
question?: (context: ContextV3, inputs: InputsWithProjectPath) => MaybePromise<Result<QTreeNode | undefined, FxError>>;
|
|
69
63
|
/**
|
|
70
64
|
* function body is a function that takes some context and inputs as parameter
|
|
71
65
|
*/
|
package/build/action.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../src/action.ts"],"names":[],"mappings":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EG;IACH,OAAO,EAAE,CACP,OAAO,EAAE,SAAS,EAClB,MAAM,EAAE,qBAAqB,KAC1B,YAAY,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;CAC9C;AAED;;;;;GAKG;AACH,oBAAY,aAAa,GACrB,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,YAAY,GACZ,aAAa,CAAC;AAElB,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC5B,OAAO,EAAE,aAAa,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,oBAAY,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,iBAAiB,GAAG,KAAK,GAAG,WAAW,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/teamsfx-api",
|
|
3
|
-
"version": "0.20.2-alpha.
|
|
3
|
+
"version": "0.20.2-alpha.c32211c78.0",
|
|
4
4
|
"description": "teamsfx framework api",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -60,14 +60,14 @@
|
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@azure/core-http": "^1.2.2",
|
|
62
62
|
"@azure/ms-rest-nodeauth": "^3.1.1",
|
|
63
|
-
"@microsoft/teams-manifest": "0.0.6-alpha.
|
|
63
|
+
"@microsoft/teams-manifest": "0.0.6-alpha.c32211c78.0",
|
|
64
64
|
"@types/fs-extra": "^9.0.10",
|
|
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": "
|
|
70
|
+
"gitHead": "0c2b5f560de6aa8a308cb4066cc888fb826d66d4",
|
|
71
71
|
"publishConfig": {
|
|
72
72
|
"access": "public"
|
|
73
73
|
},
|