@microsoft/teamsfx-api 0.14.1-alpha.70b3a70e.0 → 0.14.1-alpha.fedb0aca.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.
@@ -1,113 +1,113 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-06/schema#",
3
- "type": "object",
4
- "description": "The schema of TeamsFx configuration.",
5
- "properties": {
6
- "$schema": {
7
- "type": "string"
8
- },
9
- "description": {
10
- "type": "string"
11
- },
12
- "auth": {
13
- "type": "object",
14
- "description": "Existing AAD app configuration.",
15
- "properties": {
16
- "clientId": {
17
- "type": "string",
18
- "description": "The client id of existing AAD app for Teams app.",
19
- "minLength": 1
2
+ "$schema": "http://json-schema.org/draft-06/schema#",
3
+ "type": "object",
4
+ "description": "The schema of TeamsFx configuration.",
5
+ "properties": {
6
+ "$schema": {
7
+ "type": "string"
20
8
  },
21
- "clientSecret": {
22
- "type": "string",
23
- "description": "The client secret of existing AAD app for Teams app.",
24
- "minLength": 1
9
+ "description": {
10
+ "type": "string"
25
11
  },
26
- "objectId": {
27
- "type": "string",
28
- "description": "The object id of existing AAD app for Teams app.",
29
- "minLength": 1
30
- },
31
- "accessAsUserScopeId": {
32
- "type": "string",
33
- "description": "The access_as_user scope id of existing AAD app for Teams app.",
34
- "minLength": 1
35
- }
36
- },
37
- "dependencies": {
38
- "clientId": ["clientSecret", "objectId", "accessAsUserScopeId"],
39
- "clientSecret": ["clientId", "objectId", "accessAsUserScopeId"],
40
- "objectId": ["clientId", "clientSecret", "accessAsUserScopeId"],
41
- "accessAsUserScopeId": ["clientId", "clientSecret", "objectId"]
42
- }
43
- },
44
- "azure": {
45
- "type": "object",
46
- "description": "The Azure resource related configuration.",
47
- "properties": {
48
- "subscriptionId": {
49
- "type": "string",
50
- "description": "The default subscription to provision Azure resources.",
51
- "minLength": 1,
52
- "pattern": "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"
12
+ "auth": {
13
+ "type": "object",
14
+ "description": "Existing AAD app configuration.",
15
+ "properties": {
16
+ "clientId": {
17
+ "type": "string",
18
+ "description": "The client id of existing AAD app for Teams app.",
19
+ "minLength": 1
20
+ },
21
+ "clientSecret": {
22
+ "type": "string",
23
+ "description": "The client secret of existing AAD app for Teams app.",
24
+ "minLength": 1
25
+ },
26
+ "objectId": {
27
+ "type": "string",
28
+ "description": "The object id of existing AAD app for Teams app.",
29
+ "minLength": 1
30
+ },
31
+ "accessAsUserScopeId": {
32
+ "type": "string",
33
+ "description": "The access_as_user scope id of existing AAD app for Teams app.",
34
+ "minLength": 1
35
+ }
36
+ },
37
+ "dependencies": {
38
+ "clientId": ["clientSecret", "objectId", "accessAsUserScopeId"],
39
+ "clientSecret": ["clientId", "objectId", "accessAsUserScopeId"],
40
+ "objectId": ["clientId", "clientSecret", "accessAsUserScopeId"],
41
+ "accessAsUserScopeId": ["clientId", "clientSecret", "objectId"]
42
+ }
53
43
  },
54
- "resourceGroupName": {
55
- "type": "string",
56
- "description": "The default resource group of Azure resources.",
57
- "minLength": 1,
58
- "pattern": "^[-\\w\\._\\(\\)]+$"
59
- }
60
- }
61
- },
62
- "bot": {
63
- "type": "object",
64
- "description": "Existing bot AAD app configuration.",
65
- "properties": {
66
- "appId": {
67
- "type": "string",
68
- "description": "The id of existing bot AAD app.",
69
- "minLength": 1
44
+ "azure": {
45
+ "type": "object",
46
+ "description": "The Azure resource related configuration.",
47
+ "properties": {
48
+ "subscriptionId": {
49
+ "type": "string",
50
+ "description": "The default subscription to provision Azure resources.",
51
+ "minLength": 1,
52
+ "pattern": "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"
53
+ },
54
+ "resourceGroupName": {
55
+ "type": "string",
56
+ "description": "The default resource group of Azure resources.",
57
+ "minLength": 1,
58
+ "pattern": "^[-\\w\\._\\(\\)]+$"
59
+ }
60
+ }
70
61
  },
71
- "appPassword": {
72
- "type": "string",
73
- "description": "The password of existing bot AAD app.",
74
- "minLength": 1
75
- }
76
- },
77
- "dependencies": {
78
- "appId": ["appPassword"],
79
- "appPassword": ["appId"]
80
- }
81
- },
82
- "manifest": {
83
- "type": "object",
84
- "description": "The Teams App manifest related configuration.",
85
- "properties": {
86
- "appName": {
87
- "type": "object",
88
- "description": "Teams app name.",
89
- "properties": {
90
- "short": {
91
- "type": "string",
92
- "description": "A short display name for teams app.",
93
- "maxLength": 30,
94
- "minLength": 1
62
+ "bot": {
63
+ "type": "object",
64
+ "description": "Existing bot AAD app configuration.",
65
+ "properties": {
66
+ "appId": {
67
+ "type": "string",
68
+ "description": "The id of existing bot AAD app.",
69
+ "minLength": 1
70
+ },
71
+ "appPassword": {
72
+ "type": "string",
73
+ "description": "The password of existing bot AAD app.",
74
+ "minLength": 1
75
+ }
95
76
  },
96
- "full": {
97
- "type": "string",
98
- "description": "The full name for teams app.",
99
- "maxLength": 100
77
+ "dependencies": {
78
+ "appId": ["appPassword"],
79
+ "appPassword": ["appId"]
100
80
  }
101
- },
102
- "required": ["short"]
81
+ },
82
+ "manifest": {
83
+ "type": "object",
84
+ "description": "The Teams App manifest related configuration.",
85
+ "properties": {
86
+ "appName": {
87
+ "type": "object",
88
+ "description": "Teams app name.",
89
+ "properties": {
90
+ "short": {
91
+ "type": "string",
92
+ "description": "A short display name for teams app.",
93
+ "maxLength": 30,
94
+ "minLength": 1
95
+ },
96
+ "full": {
97
+ "type": "string",
98
+ "description": "The full name for teams app.",
99
+ "maxLength": 100
100
+ }
101
+ },
102
+ "required": ["short"]
103
+ }
104
+ },
105
+ "required": ["appName"]
106
+ },
107
+ "skipAddingSqlUser": {
108
+ "type": "boolean",
109
+ "description": "Skip to add user during SQL provision."
103
110
  }
104
- },
105
- "required": ["appName"]
106
111
  },
107
- "skipAddingSqlUser": {
108
- "type": "boolean",
109
- "description": "Skip to add user during SQL provision."
110
- }
111
- },
112
- "required": ["manifest"]
113
- }
112
+ "required": ["manifest"]
113
+ }
@@ -0,0 +1,113 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-06/schema#",
3
+ "type": "object",
4
+ "description": "The schema of TeamsFx configuration.",
5
+ "properties": {
6
+ "$schema": {
7
+ "type": "string"
8
+ },
9
+ "description": {
10
+ "type": "string"
11
+ },
12
+ "auth": {
13
+ "type": "object",
14
+ "description": "Existing AAD app configuration.",
15
+ "properties": {
16
+ "clientId": {
17
+ "type": "string",
18
+ "description": "The client id of existing AAD app for Teams app.",
19
+ "minLength": 1
20
+ },
21
+ "clientSecret": {
22
+ "type": "string",
23
+ "description": "The client secret of existing AAD app for Teams app.",
24
+ "minLength": 1
25
+ },
26
+ "objectId": {
27
+ "type": "string",
28
+ "description": "The object id of existing AAD app for Teams app.",
29
+ "minLength": 1
30
+ },
31
+ "accessAsUserScopeId": {
32
+ "type": "string",
33
+ "description": "The access_as_user scope id of existing AAD app for Teams app.",
34
+ "minLength": 1
35
+ }
36
+ },
37
+ "dependencies": {
38
+ "clientId": ["clientSecret", "objectId", "accessAsUserScopeId"],
39
+ "clientSecret": ["clientId", "objectId", "accessAsUserScopeId"],
40
+ "objectId": ["clientId", "clientSecret", "accessAsUserScopeId"],
41
+ "accessAsUserScopeId": ["clientId", "clientSecret", "objectId"]
42
+ }
43
+ },
44
+ "azure": {
45
+ "type": "object",
46
+ "description": "The Azure resource related configuration.",
47
+ "properties": {
48
+ "subscriptionId": {
49
+ "type": "string",
50
+ "description": "The default subscription to provision Azure resources.",
51
+ "minLength": 1,
52
+ "pattern": "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"
53
+ },
54
+ "resourceGroupName": {
55
+ "type": "string",
56
+ "description": "The default resource group of Azure resources.",
57
+ "minLength": 1,
58
+ "pattern": "^[-\\w\\._\\(\\)]+$"
59
+ }
60
+ }
61
+ },
62
+ "bot": {
63
+ "type": "object",
64
+ "description": "Existing bot AAD app configuration.",
65
+ "properties": {
66
+ "appId": {
67
+ "type": "string",
68
+ "description": "The id of existing bot AAD app.",
69
+ "minLength": 1
70
+ },
71
+ "appPassword": {
72
+ "type": "string",
73
+ "description": "The password of existing bot AAD app.",
74
+ "minLength": 1
75
+ }
76
+ },
77
+ "dependencies": {
78
+ "appId": ["appPassword"],
79
+ "appPassword": ["appId"]
80
+ }
81
+ },
82
+ "manifest": {
83
+ "type": "object",
84
+ "description": "The Teams App manifest related configuration.",
85
+ "properties": {
86
+ "appName": {
87
+ "type": "object",
88
+ "description": "Teams app name.",
89
+ "properties": {
90
+ "short": {
91
+ "type": "string",
92
+ "description": "A short display name for teams app.",
93
+ "maxLength": 30,
94
+ "minLength": 1
95
+ },
96
+ "full": {
97
+ "type": "string",
98
+ "description": "The full name for teams app.",
99
+ "maxLength": 100
100
+ }
101
+ },
102
+ "required": ["short"]
103
+ }
104
+ },
105
+ "required": ["appName"]
106
+ },
107
+ "skipAddingSqlUser": {
108
+ "type": "boolean",
109
+ "description": "Skip to add user during SQL provision."
110
+ }
111
+ },
112
+ "required": ["manifest"]
113
+ }
@@ -74,7 +74,7 @@ export interface SolutionPlugin {
74
74
  *
75
75
  * @returns the output localSettings
76
76
  */
77
- provisionLocalResource?: (ctx: Context, inputs: Inputs, localSettings: Json, tokenProvider: TokenProvider) => Promise<FxResult<Json, FxError>>;
77
+ provisionLocalResource?: (ctx: Context, inputs: Inputs, localSettings: Json, tokenProvider: TokenProvider, envInfo?: EnvInfoV2) => Promise<FxResult<Json, FxError>>;
78
78
  /**
79
79
  * get question model for lifecycle {@link Stage} (create), Questions are organized as a tree. Please check {@link QTreeNode}.
80
80
  */
@@ -1 +1 @@
1
- {"version":3,"file":"solutionPlugin.d.ts","sourceRoot":"","sources":["../../src/v2/solutionPlugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACpC,OAAO,EACL,YAAY,EAEZ,qBAAqB,EAErB,uBAAuB,EACxB,MAAM,GAAG,CAAC;AAGX,OAAO,EACL,sBAAsB,EAEtB,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7B,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,EAChC,aAAa,EAAE,aAAa,KACzB,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IACpC,gBAAgB,CAAC,EAAE,CACjB,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,qBAAqB,EAC7B,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,EAChC,aAAa,EAAE,aAAa,KACzB,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IAGpC,YAAY,CAAC,EAAE,CACb,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,EAChC,aAAa,EAAE,aAAa,KACzB,OAAO,CAAC,MAAM,CAAC,SAAS,GAAG,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;IAErD,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;CACtD"}
@@ -2,31 +2,15 @@ import { Result } from "neverthrow";
2
2
  import { FxError } from "../error";
3
3
  import { AppManifest } from "../manifest";
4
4
  import { QTreeNode } from "../qm/question";
5
- import { Inputs, Json, Void } from "../types";
5
+ import { Inputs, Void } from "../types";
6
6
  import { AzureAccountProvider, TokenProvider } from "../utils/login";
7
7
  import { ResourceTemplate } from "../v2/resourcePlugin";
8
8
  import { Context, DeepReadonly, InputsWithProjectPath } from "../v2/types";
9
- import { EnvInfoV3 } from "./types";
9
+ import { EnvInfoV3, ManifestCapability } from "./types";
10
10
  export interface AppManifestProvider {
11
11
  loadManifest: (ctx: Context, inputs: InputsWithProjectPath) => Promise<Result<AppManifest, FxError>>;
12
12
  saveManifest: (ctx: Context, inputs: InputsWithProjectPath, manifest: AppManifest) => Promise<Result<Void, FxError>>;
13
- addCapabilities: (ctx: Context, inputs: InputsWithProjectPath, capabilities: ({
14
- name: "staticTab";
15
- snippet?: Json;
16
- existing?: boolean;
17
- } | {
18
- name: "configurableTab";
19
- snippet?: Json;
20
- existing?: boolean;
21
- } | {
22
- name: "Bot";
23
- snippet?: Json;
24
- existing?: boolean;
25
- } | {
26
- name: "MessageExtension";
27
- snippet?: Json;
28
- existing?: boolean;
29
- })[]) => Promise<Result<Void, FxError>>;
13
+ addCapabilities: (ctx: Context, inputs: InputsWithProjectPath, capabilities: ManifestCapability[]) => Promise<Result<Void, FxError>>;
30
14
  }
31
15
  export interface ContextWithManifestProvider extends Context {
32
16
  appManifestProvider: AppManifestProvider;
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/v3/plugins.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE,CACZ,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,qBAAqB,KAC1B,OAAO,CAAC,MAAM,CAAC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C,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;CACrC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/teamsfx-api",
3
- "version": "0.14.1-alpha.70b3a70e.0",
3
+ "version": "0.14.1-alpha.fedb0aca.0",
4
4
  "description": "teamsfx framework api",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -19,8 +19,7 @@
19
19
  "prebuild": "npx json2ts --input src/schemas/envConfig.json --output src/schemas/envConfig.ts",
20
20
  "build": "tsc -p ./ && npx api-extractor run --local",
21
21
  "build:api-markdown": "npm run build && rimraf ../../docs/api && npx api-documenter markdown -i temp -o ../../docs/api",
22
- "postbuild": "npx cpy src/schemas/*.json build/schemas/",
23
- "prepare": "npm run build",
22
+ "postbuild": "npx copyfiles src/schemas/*.json build/schemas/",
24
23
  "lint:fix": "eslint \"src/**/*.ts\" \"tests/**/*.ts\" --fix",
25
24
  "doc": "typedoc",
26
25
  "test:unit": "nyc --no-clean mocha --no-timeouts --require ts-node/register \"tests/**/*.ts\"",
@@ -30,7 +29,7 @@
30
29
  },
31
30
  "devDependencies": {
32
31
  "@istanbuljs/nyc-config-typescript": "^1.0.1",
33
- "@microsoft/api-documenter": "^7.13.24",
32
+ "@microsoft/api-documenter": "^7.15.3",
34
33
  "@microsoft/api-extractor": "^7.18.4",
35
34
  "@shared/eslint-config": "file:../eslint-config",
36
35
  "@shared/prettier-config": "file:../prettier-config",
@@ -51,7 +50,7 @@
51
50
  "eslint-plugin-prettier": "^4.0.0",
52
51
  "json-schema-to-typescript": "^10.1.4",
53
52
  "lint-staged": "^10.5.4",
54
- "mocha": "^9.1.3",
53
+ "mocha": "^9.2.0",
55
54
  "nyc": "^15.1.0",
56
55
  "prettier": "^2.4.1",
57
56
  "sinon": "^9.2.2",
@@ -69,7 +68,7 @@
69
68
  "jsonschema": "^1.4.0",
70
69
  "neverthrow": "^3.2.0"
71
70
  },
72
- "gitHead": "892a41bbf51780f740e9911cfe924f1baa575e13",
71
+ "gitHead": "bde7b83a62a40b7b46a4adb2eed475d808df1105",
73
72
  "publishConfig": {
74
73
  "access": "public"
75
74
  },