Skip to content

Commit

Permalink
Add msgext-product-support-sso-ts sample (#79)
Browse files Browse the repository at this point in the history
Co-authored-by: Garry Trinder <garry@trinder365.co.uk>
  • Loading branch information
rabwill and garrytrinder committed Jul 11, 2024
1 parent 2aaaa64 commit 7ded678
Show file tree
Hide file tree
Showing 43 changed files with 8,232 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ This repository contains samples that show how to [extend Copilot for Microsoft
| [Document Search](./samples/msgext-doc-search-js) | JavaScript | Plugin that enables Hybrid Search (Vector + Semantic) |
| [Document Search](./samples/msgext-doc-search-csharp) | .NET | Plugin that enables Hybrid Search (Vector + Semantic) |
| [Product support](./samples/msgext-product-support-sso-csharp) | .NET | Plugin that allows users to query the Products held in SharePoint Online team site via Microsoft Graph |
| [Product support](./samples/msgext-product-support-sso-ts) | TypeScript | Plugin that allows users to query the Products held in SharePoint Online team site via Microsoft Graph |
| [Multi Parameters](./samples/msgext-multiparam-csharp) | .NET | Plugin that demonstrates how to implement complex utterances and support deep retrieval |
| [Multi Parameters](./samples/msgext-multiparam-ts) | TypeScript | Plugin that demonstrates how to implement complex utterances and support deep retrieval |
| [Multi Parameters](./samples/msgext-multiparam-js) | JavaScript | Plugin that demonstrates how to implement complex utterances and support deep retrieval |
Expand Down
20 changes: 20 additions & 0 deletions samples/msgext-product-support-sso-ts/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# TeamsFx files
env/.env.*.user
env/.env.dev
env/.env.local
.localConfigs
appPackage/build
.DS_Store
# dependencies
node_modules/

# misc
.env
.deployment
.DS_Store

build

# build
lib/

5 changes: 5 additions & 0 deletions samples/msgext-product-support-sso-ts/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"TeamsDevApp.ms-teams-vscode-extension"
]
}
247 changes: 247 additions & 0 deletions samples/msgext-product-support-sso-ts/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,247 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Remote in Teams (Edge)",
"type": "msedge",
"request": "launch",
"url": "https://teams.microsoft.com/l/app/${{TEAMS_APP_ID}}?installAppPackage=true&webjoin=true&${account-hint}",
"presentation": {
"group": "group 1: Teams",
"order": 3
},
"internalConsoleOptions": "neverOpen"
},
{
"name": "Launch Remote in Teams (Chrome)",
"type": "chrome",
"request": "launch",
"url": "https://teams.microsoft.com/l/app/${{TEAMS_APP_ID}}?installAppPackage=true&webjoin=true&${account-hint}",
"presentation": {
"group": "group 1: Teams",
"order": 3
},
"internalConsoleOptions": "neverOpen"
},
{
"name": "Launch Remote in Outlook (Edge)",
"type": "msedge",
"request": "launch",
"url": "https://outlook.office.com/mail?${account-hint}",
"presentation": {
"group": "group 2: Outlook",
"order": 3
},
"internalConsoleOptions": "neverOpen"
},
{
"name": "Launch Remote in Outlook (Chrome)",
"type": "chrome",
"request": "launch",
"url": "https://outlook.office.com/mail?${account-hint}",
"presentation": {
"group": "group 2: Outlook",
"order": 3
},
"internalConsoleOptions": "neverOpen"
},
{
"name": "Launch Remote in Copilot (Edge)",
"type": "msedge",
"request": "launch",
"url": "https://teams.microsoft.com?${account-hint}",
"presentation": {
"group": "group 2: Copilot",
"order": 3
},
"internalConsoleOptions": "neverOpen"
},
{
"name": "Launch Remote in Copilot (Chrome)",
"type": "chrome",
"request": "launch",
"url": "https://teams.microsoft.com?${account-hint}",
"presentation": {
"group": "group 2: Copilot",
"order": 3
},
"internalConsoleOptions": "neverOpen"
},
{
"name": "Launch App in Teams (Edge)",
"type": "msedge",
"request": "launch",
"url": "https://teams.microsoft.com/l/app/${{local:TEAMS_APP_ID}}?installAppPackage=true&webjoin=true&${account-hint}",
"cascadeTerminateToConfigurations": [
"Attach to Local Service"
],
"presentation": {
"group": "all",
"hidden": true
},
"internalConsoleOptions": "neverOpen"
},
{
"name": "Launch App in Teams (Chrome)",
"type": "chrome",
"request": "launch",
"url": "https://teams.microsoft.com/l/app/${{local:TEAMS_APP_ID}}?installAppPackage=true&webjoin=true&${account-hint}",
"cascadeTerminateToConfigurations": [
"Attach to Local Service"
],
"presentation": {
"group": "all",
"hidden": true
},
"internalConsoleOptions": "neverOpen"
},
{
"name": "Launch App in Outlook (Edge)",
"type": "msedge",
"request": "launch",
"url": "https://outlook.office.com/mail?${account-hint}",
"cascadeTerminateToConfigurations": [
"Attach to Local Service"
],
"presentation": {
"group": "all",
"hidden": true
},
"internalConsoleOptions": "neverOpen"
},
{
"name": "Launch App in Outlook (Chrome)",
"type": "chrome",
"request": "launch",
"url": "https://outlook.office.com/mail?${account-hint}",
"cascadeTerminateToConfigurations": [
"Attach to Local Service"
],
"presentation": {
"group": "all",
"hidden": true
},
"internalConsoleOptions": "neverOpen"
},
{
"name": "Launch App in Copilot (Edge)",
"type": "msedge",
"request": "launch",
"url": "https://teams.microsoft.com?${account-hint}",
"cascadeTerminateToConfigurations": [
"Attach to Local Service"
],
"presentation": {
"group": "all",
"hidden": true
},
"internalConsoleOptions": "neverOpen"
},
{
"name": "Launch App in Copilot (Chrome)",
"type": "chrome",
"request": "launch",
"url": "https://teams.microsoft.com?${account-hint}",
"cascadeTerminateToConfigurations": [
"Attach to Local Service"
],
"presentation": {
"group": "all",
"hidden": true
},
"internalConsoleOptions": "neverOpen"
},
{
"name": "Attach to Local Service",
"type": "node",
"request": "attach",
"port": 9239,
"restart": true,
"presentation": {
"group": "all",
"hidden": true
},
"internalConsoleOptions": "neverOpen"
}
],
"compounds": [
{
"name": "Debug in Teams (Edge)",
"configurations": [
"Launch App in Teams (Edge)",
"Attach to Local Service"
],
"preLaunchTask": "Start Teams App Locally",
"presentation": {
"group": "group 1: Teams",
"order": 1
},
"stopAll": true
},
{
"name": "Debug in Teams (Chrome)",
"configurations": [
"Launch App in Teams (Chrome)",
"Attach to Local Service"
],
"preLaunchTask": "Start Teams App Locally",
"presentation": {
"group": "group 1: Teams",
"order": 2
},
"stopAll": true
},
{
"name": "Debug in Outlook (Edge)",
"configurations": [
"Launch App in Outlook (Edge)",
"Attach to Local Service"
],
"preLaunchTask": "Start Teams App Locally",
"presentation": {
"group": "group 2: Outlook",
"order": 1
},
"stopAll": true
},
{
"name": "Debug in Outlook (Chrome)",
"configurations": [
"Launch App in Outlook (Chrome)",
"Attach to Local Service"
],
"preLaunchTask": "Start Teams App Locally",
"presentation": {
"group": "group 2: Outlook",
"order": 2
},
"stopAll": true
},
{
"name": "Debug in Copilot (Edge)",
"configurations": [
"Launch App in Copilot (Edge)",
"Attach to Local Service"
],
"preLaunchTask": "Start Teams App Locally (Copilot)",
"presentation": {
"group": "group 2: Copilot",
"order": 1
},
"stopAll": true
},
{
"name": "Debug in Copilot (Chrome)",
"configurations": [
"Launch App in Copilot (Chrome)",
"Attach to Local Service"
],
"preLaunchTask": "Start Teams App Locally (Copilot)",
"presentation": {
"group": "group 2: Copilot",
"order": 2
},
"stopAll": true
}
]
}
11 changes: 11 additions & 0 deletions samples/msgext-product-support-sso-ts/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"debug.onTaskErrors": "abort",
"json.schemas": [
{
"fileMatch": [
"/aad.*.json"
],
"schema": {}
}
]
}
Loading

0 comments on commit 7ded678

Please sign in to comment.