@microsoft/teamsfx 0.7.1-beta.dc88fcdc0.0 → 1.0.0-alpha.074ce579f.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 +2 -2
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm2017.mjs +9 -5
- package/dist/index.esm2017.mjs.map +1 -1
- package/dist/index.esm5.js +2 -2
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +11 -7
- package/dist/index.node.cjs.js.map +1 -1
- package/package.json +3 -3
- package/types/teamsfx.d.ts +7 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/teamsfx",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-alpha.074ce579f.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",
|
|
@@ -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": "0.
|
|
52
|
+
"@microsoft/adaptivecards-tools": "1.0.0-alpha.074ce579f.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": "bcd38ee0e2719ef3797de6c0cc1ab036407cf53e",
|
|
132
132
|
"publishConfig": {
|
|
133
133
|
"access": "public"
|
|
134
134
|
},
|
package/types/teamsfx.d.ts
CHANGED
|
@@ -339,7 +339,7 @@ export declare class Channel implements NotificationTarget {
|
|
|
339
339
|
*/
|
|
340
340
|
readonly type: NotificationTargetType;
|
|
341
341
|
/**
|
|
342
|
-
*
|
|
342
|
+
* Constructor.
|
|
343
343
|
*
|
|
344
344
|
* @remarks
|
|
345
345
|
* It's recommended to get channels from {@link TeamsBotInstallation.channels()}, instead of using this constructor.
|
|
@@ -413,7 +413,7 @@ export declare class CommandBot {
|
|
|
413
413
|
}
|
|
414
414
|
|
|
415
415
|
/**
|
|
416
|
-
* Interface for a command
|
|
416
|
+
* Interface for a command message that can handled in a command handler.
|
|
417
417
|
*/
|
|
418
418
|
export declare interface CommandMessage {
|
|
419
419
|
/**
|
|
@@ -916,7 +916,7 @@ export declare class Member implements NotificationTarget {
|
|
|
916
916
|
*/
|
|
917
917
|
readonly type: NotificationTargetType;
|
|
918
918
|
/**
|
|
919
|
-
*
|
|
919
|
+
* Constructor.
|
|
920
920
|
*
|
|
921
921
|
* @remarks
|
|
922
922
|
* It's recommended to get members from {@link TeamsBotInstallation.members()}, instead of using this constructor.
|
|
@@ -993,7 +993,7 @@ export declare class MessageBuilder {
|
|
|
993
993
|
*
|
|
994
994
|
* @beta
|
|
995
995
|
*/
|
|
996
|
-
static attachAdaptiveCard<TData>(cardTemplate:
|
|
996
|
+
static attachAdaptiveCard<TData extends object>(cardTemplate: unknown, data: TData): Partial<Activity_2>;
|
|
997
997
|
/**
|
|
998
998
|
* Build a bot message activity attached with an adaptive card.
|
|
999
999
|
*
|
|
@@ -1002,7 +1002,7 @@ export declare class MessageBuilder {
|
|
|
1002
1002
|
*
|
|
1003
1003
|
* @beta
|
|
1004
1004
|
*/
|
|
1005
|
-
static attachAdaptiveCardWithoutData(card:
|
|
1005
|
+
static attachAdaptiveCardWithoutData(card: unknown): Partial<Activity_2>;
|
|
1006
1006
|
/**
|
|
1007
1007
|
* Build a bot message activity attached with an hero card.
|
|
1008
1008
|
*
|
|
@@ -1242,7 +1242,7 @@ export declare interface NotificationTargetStorage {
|
|
|
1242
1242
|
[key: string]: unknown;
|
|
1243
1243
|
}): Promise<void>;
|
|
1244
1244
|
/**
|
|
1245
|
-
* Delete one
|
|
1245
|
+
* Delete one notification target by its key.
|
|
1246
1246
|
*
|
|
1247
1247
|
* @param key - the key of a notification target.
|
|
1248
1248
|
*
|
|
@@ -1804,7 +1804,7 @@ export declare interface TeamsFxBotCommandHandler {
|
|
|
1804
1804
|
* @param context The bot context.
|
|
1805
1805
|
* @param message The command message the user types from Teams.
|
|
1806
1806
|
* @returns A `Promise` representing an activity or text to send as the command response.
|
|
1807
|
-
* Or no return value if developers want to send the response activity by
|
|
1807
|
+
* Or no return value if developers want to send the response activity by themselves in this method.
|
|
1808
1808
|
*/
|
|
1809
1809
|
handleCommandReceived(context: TurnContext, message: CommandMessage): Promise<string | Partial<Activity> | void>;
|
|
1810
1810
|
}
|