@microsoft/teamsfx 1.0.2-rc.0 → 1.0.3-alpha.230f266cb.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/dist/index.esm2017.js +7 -6
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm2017.mjs +43 -24
- package/dist/index.esm2017.mjs.map +1 -1
- package/dist/index.esm5.js +7 -6
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +57 -30
- package/dist/index.node.cjs.js.map +1 -1
- package/package.json +4 -4
- package/types/teamsfx.d.ts +38 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/teamsfx",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3-alpha.230f266cb.0",
|
|
4
4
|
"description": "Microsoft Teams Framework for Node.js and browser.",
|
|
5
5
|
"main": "dist/index.node.cjs.js",
|
|
6
6
|
"browser": "dist/index.esm2017.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"test": "npm run test:unit && npm run test:e2e",
|
|
20
20
|
"test:unit:browser": "karma start --single-run --unit",
|
|
21
21
|
"test:unit:node": "nyc --no-clean -- mocha 'test/unit/{,!(browser)/**/}*.spec.ts' --file src/index.ts -r config/mocha.env.ts --config config/mocharc.node.js",
|
|
22
|
-
"test:unit": "npm run test:unit:node && npm run test:unit:browser
|
|
22
|
+
"test:unit": "npm run test:unit:node && npm run test:unit:browser ",
|
|
23
23
|
"test:e2e:browser": "karma start --single-run --integration",
|
|
24
24
|
"test:e2e:node": "mocha 'test/e2e/node/*.spec.ts' --file src/index.ts -r config/mocha.env.ts --config config/mocharc.node.js --reporter xunit --reporter-option output=test-results.node.xml ",
|
|
25
25
|
"test:e2e": "npm run test:e2e:node && npm run test:e2e:browser",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@azure/identity": "^2.0.1",
|
|
50
50
|
"@azure/msal-browser": "^2.21.0",
|
|
51
51
|
"@azure/msal-node": "~1.1.0",
|
|
52
|
-
"@microsoft/adaptivecards-tools": "
|
|
52
|
+
"@microsoft/adaptivecards-tools": "1.0.2-alpha.230f266cb.0",
|
|
53
53
|
"@microsoft/microsoft-graph-client": "^3.0.1",
|
|
54
54
|
"axios": "^0.27.2",
|
|
55
55
|
"botbuilder": ">=4.15.0 <5.0.0",
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"webpack": "^5.62.1",
|
|
129
129
|
"yargs": "^17.2.1"
|
|
130
130
|
},
|
|
131
|
-
"gitHead": "
|
|
131
|
+
"gitHead": "7906aa752613751cb20f758db8a4f062276f736e",
|
|
132
132
|
"publishConfig": {
|
|
133
133
|
"access": "public"
|
|
134
134
|
},
|
package/types/teamsfx.d.ts
CHANGED
|
@@ -307,16 +307,16 @@ export declare class Channel implements NotificationTarget {
|
|
|
307
307
|
* Send a plain text message.
|
|
308
308
|
*
|
|
309
309
|
* @param text - the plain text message.
|
|
310
|
-
* @returns
|
|
310
|
+
* @returns the response of sending message.
|
|
311
311
|
*/
|
|
312
|
-
sendMessage(text: string): Promise<
|
|
312
|
+
sendMessage(text: string): Promise<MessageResponse>;
|
|
313
313
|
/**
|
|
314
314
|
* Send an adaptive card message.
|
|
315
315
|
*
|
|
316
316
|
* @param card - the adaptive card raw JSON.
|
|
317
|
-
* @returns
|
|
317
|
+
* @returns the response of sending adaptive card message.
|
|
318
318
|
*/
|
|
319
|
-
sendAdaptiveCard(card: unknown): Promise<
|
|
319
|
+
sendAdaptiveCard(card: unknown): Promise<MessageResponse>;
|
|
320
320
|
/**
|
|
321
321
|
* @internal
|
|
322
322
|
*/
|
|
@@ -812,16 +812,16 @@ export declare class Member implements NotificationTarget {
|
|
|
812
812
|
* Send a plain text message.
|
|
813
813
|
*
|
|
814
814
|
* @param text - the plain text message.
|
|
815
|
-
* @returns
|
|
815
|
+
* @returns the response of sending message.
|
|
816
816
|
*/
|
|
817
|
-
sendMessage(text: string): Promise<
|
|
817
|
+
sendMessage(text: string): Promise<MessageResponse>;
|
|
818
818
|
/**
|
|
819
819
|
* Send an adaptive card message.
|
|
820
820
|
*
|
|
821
821
|
* @param card - the adaptive card raw JSON.
|
|
822
|
-
* @returns
|
|
822
|
+
* @returns the response of sending adaptive card message.
|
|
823
823
|
*/
|
|
824
|
-
sendAdaptiveCard(card: unknown): Promise<
|
|
824
|
+
sendAdaptiveCard(card: unknown): Promise<MessageResponse>;
|
|
825
825
|
/**
|
|
826
826
|
* @internal
|
|
827
827
|
*/
|
|
@@ -941,6 +941,16 @@ export declare class MessageBuilder {
|
|
|
941
941
|
static attachContent(attachement: Attachment): Partial<Activity_2>;
|
|
942
942
|
}
|
|
943
943
|
|
|
944
|
+
/**
|
|
945
|
+
* The response of a message action, e.g., `sendMessage`, `sendAdaptiveCard`.
|
|
946
|
+
*/
|
|
947
|
+
declare interface MessageResponse {
|
|
948
|
+
/**
|
|
949
|
+
* Id of the message.
|
|
950
|
+
*/
|
|
951
|
+
id?: string;
|
|
952
|
+
}
|
|
953
|
+
|
|
944
954
|
/**
|
|
945
955
|
* Microsoft Graph auth provider for Teams Framework
|
|
946
956
|
*/
|
|
@@ -1031,14 +1041,18 @@ export declare interface NotificationTarget {
|
|
|
1031
1041
|
* Send a plain text message.
|
|
1032
1042
|
*
|
|
1033
1043
|
* @param text - the plain text message.
|
|
1044
|
+
*
|
|
1045
|
+
* @returns the response of sending message.
|
|
1034
1046
|
*/
|
|
1035
|
-
sendMessage(text: string): Promise<
|
|
1047
|
+
sendMessage(text: string): Promise<MessageResponse>;
|
|
1036
1048
|
/**
|
|
1037
1049
|
* Send an adaptive card message.
|
|
1038
1050
|
*
|
|
1039
1051
|
* @param card - the adaptive card raw JSON.
|
|
1052
|
+
*
|
|
1053
|
+
* @returns the response of sending adaptive card message.
|
|
1040
1054
|
*/
|
|
1041
|
-
sendAdaptiveCard(card: unknown): Promise<
|
|
1055
|
+
sendAdaptiveCard(card: unknown): Promise<MessageResponse>;
|
|
1042
1056
|
}
|
|
1043
1057
|
|
|
1044
1058
|
/**
|
|
@@ -1174,18 +1188,18 @@ export declare class OnBehalfOfUserCredential implements TokenCredential {
|
|
|
1174
1188
|
*
|
|
1175
1189
|
* @param target - the notification target.
|
|
1176
1190
|
* @param card - the adaptive card raw JSON.
|
|
1177
|
-
* @returns
|
|
1191
|
+
* @returns the response of sending adaptive card message.
|
|
1178
1192
|
*/
|
|
1179
|
-
export declare function sendAdaptiveCard(target: NotificationTarget, card: unknown): Promise<
|
|
1193
|
+
export declare function sendAdaptiveCard(target: NotificationTarget, card: unknown): Promise<MessageResponse>;
|
|
1180
1194
|
|
|
1181
1195
|
/**
|
|
1182
1196
|
* Send a plain text message to a notification target.
|
|
1183
1197
|
*
|
|
1184
1198
|
* @param target - the notification target.
|
|
1185
1199
|
* @param text - the plain text message.
|
|
1186
|
-
* @returns
|
|
1200
|
+
* @returns the response of sending message.
|
|
1187
1201
|
*/
|
|
1188
|
-
export declare function sendMessage(target: NotificationTarget, text: string): Promise<
|
|
1202
|
+
export declare function sendMessage(target: NotificationTarget, text: string): Promise<MessageResponse>;
|
|
1189
1203
|
|
|
1190
1204
|
/**
|
|
1191
1205
|
* Set custom log function. Use the function if it's set. Priority is lower than setLogger.
|
|
@@ -1268,16 +1282,16 @@ export declare class TeamsBotInstallation implements NotificationTarget {
|
|
|
1268
1282
|
* Send a plain text message.
|
|
1269
1283
|
*
|
|
1270
1284
|
* @param text - the plain text message.
|
|
1271
|
-
* @returns
|
|
1285
|
+
* @returns the response of sending message.
|
|
1272
1286
|
*/
|
|
1273
|
-
sendMessage(text: string): Promise<
|
|
1287
|
+
sendMessage(text: string): Promise<MessageResponse>;
|
|
1274
1288
|
/**
|
|
1275
1289
|
* Send an adaptive card message.
|
|
1276
1290
|
*
|
|
1277
1291
|
* @param card - the adaptive card raw JSON.
|
|
1278
|
-
* @returns
|
|
1292
|
+
* @returns the response of sending adaptive card message.
|
|
1279
1293
|
*/
|
|
1280
|
-
sendAdaptiveCard(card: unknown): Promise<
|
|
1294
|
+
sendAdaptiveCard(card: unknown): Promise<MessageResponse>;
|
|
1281
1295
|
/**
|
|
1282
1296
|
* Get channels from this bot installation.
|
|
1283
1297
|
*
|
|
@@ -1699,6 +1713,12 @@ export declare interface UserInfo {
|
|
|
1699
1713
|
* @readonly
|
|
1700
1714
|
*/
|
|
1701
1715
|
objectId: string;
|
|
1716
|
+
/**
|
|
1717
|
+
* User tenant ID.
|
|
1718
|
+
*
|
|
1719
|
+
* @readonly
|
|
1720
|
+
*/
|
|
1721
|
+
tenantId: string;
|
|
1702
1722
|
/**
|
|
1703
1723
|
* Usually be the email address.
|
|
1704
1724
|
*
|