[microsoftteams] Updated microsoftTeams definitions to v.1.9.0 (#53373)

* Updated microsoftTeams definitions

I would like to propose an update to the Microsoft Teams SDK (v.1.9.0) types definitions.
Just generated them using the provided d.ts generation script in the MS Teams SDK npm project source https://github.com/OfficeDev/microsoft-teams-library-js

* Update microsoftteams-tests.ts

* FIxed tslint issues

Co-authored-by: Serge ARADJ <saradj@powell-software.com>
This commit is contained in:
Serge ARADJ
2021-05-28 00:49:26 +02:00
committed by GitHub
parent c740cad71c
commit 19ef91c72d
4 changed files with 2543 additions and 146 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -7,7 +7,54 @@
*/
(() => {
microsoftTeams.getContext(context => {
const { upn, channelId } = context;
const {
appIconPosition,
appSessionId,
channelId,
channelName,
channelRelativeUrl,
channelType,
chatId,
defaultOneNoteSectionId,
entityId,
frameContext,
groupId,
hostClientType,
hostTeamGroupId,
hostTeamTenantId,
isCallingAllowed,
isFullScreen,
isMultiWindow,
isPSTNCallingAllowed,
isTeamArchived,
locale,
loginHint,
meetingId,
osLocaleInfo,
parentMessageId,
ringId,
sessionId,
sharepoint,
sourceOrigin,
subEntityId,
teamId,
teamName,
teamSiteDomain,
teamSitePath,
teamSiteUrl,
teamTemplateId,
teamType,
tenantSKU,
theme,
tid,
upn,
userClickTime,
userFileOpenPreference,
userLicenseType,
userObjectId,
userPrincipalName,
userTeamRole
} = context;
context.isFullScreen = true;
});

View File

@@ -2,7 +2,8 @@
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
"es6",
"dom"
],
"noImplicitAny": true,
"noImplicitThis": true,

View File

@@ -1,6 +1,7 @@
{
"extends": "dtslint/dt.json",
"rules": {
"max-line-length": false,
"no-const-enum": false
}
}
}