@microsoft/teamsfx-core 1.12.1-rc.1 → 1.12.1
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/build/common/templates-config.json +1 -1
- package/package.json +2 -2
- package/templates/fallback/bot.csharp.command-and-response.zip +0 -0
- package/templates/fallback/bot.csharp.default.zip +0 -0
- package/templates/fallback/bot.csharp.notification-function-base.zip +0 -0
- package/templates/fallback/bot.csharp.notification-trigger-http.zip +0 -0
- package/templates/fallback/bot.csharp.notification-trigger-timer.zip +0 -0
- package/templates/fallback/bot.csharp.notification-webapi.zip +0 -0
- package/templates/fallback/bot.js.command-and-response.zip +0 -0
- package/templates/fallback/bot.js.default.zip +0 -0
- package/templates/fallback/bot.js.m365.zip +0 -0
- package/templates/fallback/bot.js.notification-function-base.zip +0 -0
- package/templates/fallback/bot.js.notification-restify.zip +0 -0
- package/templates/fallback/bot.js.notification-trigger-http.zip +0 -0
- package/templates/fallback/bot.js.notification-trigger-timer.zip +0 -0
- package/templates/fallback/bot.ts.command-and-response.zip +0 -0
- package/templates/fallback/bot.ts.default.zip +0 -0
- package/templates/fallback/bot.ts.m365.zip +0 -0
- package/templates/fallback/bot.ts.notification-function-base.zip +0 -0
- package/templates/fallback/bot.ts.notification-restify.zip +0 -0
- package/templates/fallback/bot.ts.notification-trigger-http.zip +0 -0
- package/templates/fallback/bot.ts.notification-trigger-timer.zip +0 -0
- package/templates/fallback/function-base.js.default.zip +0 -0
- package/templates/fallback/function-base.ts.default.zip +0 -0
- package/templates/fallback/function-triggers.js.HTTPTrigger.zip +0 -0
- package/templates/fallback/function-triggers.ts.HTTPTrigger.zip +0 -0
- package/templates/fallback/tab.csharp.default.zip +0 -0
- package/templates/fallback/tab.js.default.zip +0 -0
- package/templates/fallback/tab.js.m365.zip +0 -0
- package/templates/fallback/tab.js.non-sso.zip +0 -0
- package/templates/fallback/tab.ts.default.zip +0 -0
- package/templates/fallback/tab.ts.m365.zip +0 -0
- package/templates/fallback/tab.ts.non-sso.zip +0 -0
- package/templates/plugins/resource/aad/auth/bot/README.md +8 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "^1.0.0",
|
|
3
3
|
"tagPrefix": "templates@",
|
|
4
4
|
"tagListURL": "https://github.com/OfficeDev/TeamsFx/releases/download/template-tag-list/template-tags.txt",
|
|
5
5
|
"templateDownloadBaseURL": "https://github.com/OfficeDev/TeamsFx/releases/download",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/teamsfx-core",
|
|
3
|
-
"version": "1.12.1
|
|
3
|
+
"version": "1.12.1",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"types": "build/index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
"resource/**/*",
|
|
190
190
|
"templates/**/*"
|
|
191
191
|
],
|
|
192
|
-
"gitHead": "
|
|
192
|
+
"gitHead": "f6e61602861b696e415eb0d0ec9880ac61e97f67",
|
|
193
193
|
"publishConfig": {
|
|
194
194
|
"access": "public"
|
|
195
195
|
},
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -158,7 +158,7 @@ After successfully add SSO in your project, you can also add a new command.
|
|
|
158
158
|
|
|
159
159
|
```javascript
|
|
160
160
|
// for JavaScript:
|
|
161
|
-
|
|
161
|
+
async function showUserImage(context, ssoToken, param) {
|
|
162
162
|
await context.sendActivity("Retrieving user photo from Microsoft Graph ...");
|
|
163
163
|
|
|
164
164
|
// Init TeamsFx instance with SSO token
|
|
@@ -171,7 +171,9 @@ After successfully add SSO in your project, you can also add a new command.
|
|
|
171
171
|
// let photoUrl = "";
|
|
172
172
|
// try {
|
|
173
173
|
// const photo = await graphClient.api("/me/photo/$value").get();
|
|
174
|
-
//
|
|
174
|
+
// const arrayBuffer = await photo.arrayBuffer();
|
|
175
|
+
// const buffer=Buffer.from(arrayBuffer, 'binary');
|
|
176
|
+
// photoUrl = "data:image/png;base64," + buffer.toString("base64");
|
|
175
177
|
// } catch {
|
|
176
178
|
// // Could not fetch photo from user's profile, return empty string as placeholder.
|
|
177
179
|
// }
|
|
@@ -185,6 +187,10 @@ After successfully add SSO in your project, you can also add a new command.
|
|
|
185
187
|
|
|
186
188
|
return;
|
|
187
189
|
}
|
|
190
|
+
|
|
191
|
+
module.exports = {
|
|
192
|
+
showUserImage,
|
|
193
|
+
};
|
|
188
194
|
```
|
|
189
195
|
|
|
190
196
|
1. Register a new command using `addCommand` in `teamsSsoBot`:
|