Skip to content

Commit ca177c9

Browse files
author
Eric Dahlvang
authored
Fix names of Messaging Extension projects (#1272)
1 parent 82a9a58 commit ca177c9

File tree

18 files changed

+148
-165
lines changed

18 files changed

+148
-165
lines changed

libraries/botbuilder/tests/teams/composeMessagingExtensionAuth/teams-app-manifest/manifest.json

Lines changed: 0 additions & 73 deletions
This file was deleted.

libraries/botbuilder/tests/teams/composeMessagingExtensions/teams-app-manifest/manifest.json

Lines changed: 0 additions & 86 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

libraries/botbuilder/tests/teams/composeMessagingExtensionAuth/src/index.ts renamed to libraries/botbuilder/tests/teams/messagingExtensionAuth/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import * as restify from 'restify';
1010
import { BotFrameworkAdapter } from 'botbuilder';
1111

1212
// This bot's main dialog.
13-
import { ComposeMessagingExtensionAuthBot } from './composeMessagingExtensionAuthBot';
13+
import { MessagingExtensionAuthBot } from './messagingExtensionAuthBot';
1414

1515
const ENV_FILE = path.join(__dirname, '..', '.env');
1616
config({ path: ENV_FILE });
@@ -40,7 +40,7 @@ adapter.onTurnError = async (context, error) => {
4040
};
4141

4242
// Create the main dialog.
43-
const myBot = new ComposeMessagingExtensionAuthBot(process.env.ConnectionName);
43+
const myBot = new MessagingExtensionAuthBot(process.env.ConnectionName);
4444

4545
// Listen for incoming requests.
4646
server.post('/api/messages', (req, res) => {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {
2525
*
2626
* Clicking this bot's Task Menu will retrieve the login dialog, if the user is not already signed in.
2727
*/
28-
export class ComposeMessagingExtensionAuthBot extends TeamsActivityHandler {
28+
export class MessagingExtensionAuthBot extends TeamsActivityHandler {
2929
connectionName: string;
3030
constructor(authConnectionName: string) {
3131
super();
File renamed without changes.
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.5/MicrosoftTeams.schema.json",
3+
"manifestVersion": "1.5",
4+
"version": "1.0",
5+
"id": "",
6+
"packageName": "com.teams.sample.compose.extension",
7+
"developer": {
8+
"name": "Microsoft",
9+
"websiteUrl": "https://www.microsoft.com",
10+
"privacyUrl": "https://www.teams.com/privacy",
11+
"termsOfUseUrl": "https://www.teams.com/termsofuser"
12+
},
13+
"icons": {
14+
"color": "color.png",
15+
"outline": "outline.png"
16+
},
17+
"name": {
18+
"short": "Messaging Extension Auth",
19+
"full": "Messaging Extension Auth Example"
20+
},
21+
"description": {
22+
"short": "Bot Service Auth in Messaging Extension",
23+
"full": "Demonstrates Bot Service Auth in a Messaging Extension"
24+
},
25+
"accentColor": "#FFFFFF",
26+
"bots": [
27+
{
28+
"botId": "",
29+
"scopes": [
30+
"personal",
31+
"team",
32+
"groupchat"
33+
],
34+
"supportsFiles": false,
35+
"isNotificationOnly": false
36+
}
37+
],
38+
"composeExtensions": [
39+
{
40+
"botId": "",
41+
"canUpdateConfiguration": false,
42+
"commands": [
43+
{
44+
"id": "loginCommand",
45+
"type": "action",
46+
"title": "Log In",
47+
"description": "Bot Service Auth flow in a Messaging Extension",
48+
"initialRun": false,
49+
"fetchTask": true,
50+
"context": [
51+
"commandBox",
52+
"compose",
53+
"message"
54+
],
55+
"parameters": [
56+
{
57+
"name": "param",
58+
"title": "param",
59+
"description": ""
60+
}
61+
]
62+
}
63+
]
64+
}
65+
],
66+
"permissions": [
67+
"identity",
68+
"messageTeamMembers"
69+
],
70+
"validDomains": [
71+
"*.botframework.com"
72+
]
73+
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)