Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Teams] Fix names of Messaging Extension projects #1272

Merged
merged 1 commit into from
Oct 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as restify from 'restify';
import { BotFrameworkAdapter } from 'botbuilder';

// This bot's main dialog.
import { ComposeMessagingExtensionAuthBot } from './composeMessagingExtensionAuthBot';
import { MessagingExtensionAuthBot } from './messagingExtensionAuthBot';

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

// Create the main dialog.
const myBot = new ComposeMessagingExtensionAuthBot(process.env.ConnectionName);
const myBot = new MessagingExtensionAuthBot(process.env.ConnectionName);

// Listen for incoming requests.
server.post('/api/messages', (req, res) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
*
* Clicking this bot's Task Menu will retrieve the login dialog, if the user is not already signed in.
*/
export class ComposeMessagingExtensionAuthBot extends TeamsActivityHandler {
export class MessagingExtensionAuthBot extends TeamsActivityHandler {
connectionName: string;
constructor(authConnectionName: string) {
super();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.5/MicrosoftTeams.schema.json",
"manifestVersion": "1.5",
"version": "1.0",
"id": "",
"packageName": "com.teams.sample.compose.extension",
"developer": {
"name": "Microsoft",
"websiteUrl": "https://www.microsoft.com",
"privacyUrl": "https://www.teams.com/privacy",
"termsOfUseUrl": "https://www.teams.com/termsofuser"
},
"icons": {
"color": "color.png",
"outline": "outline.png"
},
"name": {
"short": "Messaging Extension Auth",
"full": "Messaging Extension Auth Example"
},
"description": {
"short": "Bot Service Auth in Messaging Extension",
"full": "Demonstrates Bot Service Auth in a Messaging Extension"
},
"accentColor": "#FFFFFF",
"bots": [
{
"botId": "",
"scopes": [
"personal",
"team",
"groupchat"
],
"supportsFiles": false,
"isNotificationOnly": false
}
],
"composeExtensions": [
{
"botId": "",
"canUpdateConfiguration": false,
"commands": [
{
"id": "loginCommand",
"type": "action",
"title": "Log In",
"description": "Bot Service Auth flow in a Messaging Extension",
"initialRun": false,
"fetchTask": true,
"context": [
"commandBox",
"compose",
"message"
],
"parameters": [
{
"name": "param",
"title": "param",
"description": ""
}
]
}
]
}
],
"permissions": [
"identity",
"messageTeamMembers"
],
"validDomains": [
"*.botframework.com"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as restify from 'restify';
import { BotFrameworkAdapter } from 'botbuilder';

// This bot's main dialog.
import { ComposeMessagingExtensionsBot } from './composeMessagingExtensionsBot';
import { MessagingExtensionConfigBot } from './messagingExtensionConfigBot';

const ENV_FILE = path.join(__dirname, '..', '.env');
config({ path: ENV_FILE });
Expand Down Expand Up @@ -42,7 +42,7 @@ adapter.onTurnError = async (context, error) => {
};

// Create the main dialog.
const myBot = new ComposeMessagingExtensionsBot();
const myBot = new MessagingExtensionConfigBot();

// Listen for incoming requests.
server.post('/api/messages', (req, res) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
ActionTypes,
} from 'botframework-schema'

export class ComposeMessagingExtensionsBot extends TeamsActivityHandler {
export class MessagingExtensionConfigBot extends TeamsActivityHandler {
constructor() {
super();

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.5/MicrosoftTeams.schema.json",
"manifestVersion": "1.5",
"version": "1.0",
"id": "",
"packageName": "com.teams.sample.messagingextension",
"developer": {
"name": "Microsoft",
"websiteUrl": "https://www.microsoft.com",
"privacyUrl": "https://www.teams.com/privacy",
"termsOfUseUrl": "https://www.teams.com/termsofuser"
},
"icons": {
"color": "color.png",
"outline": "outline.png"
},
"name": {
"short": "MessagingExtensionConfig",
"full": "MessagingExtensionConfig"
},
"description": {
"short": "MessagingExtensionConfig",
"full": "MessagingExtensionConfig"
},
"accentColor": "#FFFFFF",
"bots": [
{
"botId": "",
"scopes": [
"personal",
"team",
"groupchat"
],
"supportsFiles": false,
"isNotificationOnly": false
}
],
"composeExtensions": [
{
"botId": "",
"canUpdateConfiguration": true,
"commands": [
{
"id": "testCommand",
"type": "action",
"title": "Test",
"description": "Config extension test command",
"initialRun": false,
"fetchTask": false,
"context": [
"commandBox",
"compose",
"message"
],
"parameters": [
{
"name": "param",
"title": "param",
"description": ""
}
]
}
]
}
],
"validDomains": [
"*.azurewebsites.net"
]
}