@microsoft/teams-js 2.1.1-beta.0 → 2.2.1-beta.0
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/README.md +4 -4
- package/dist/MicrosoftTeams.d.ts +940 -238
- package/dist/MicrosoftTeams.js +710 -286
- package/dist/MicrosoftTeams.js.map +1 -1
- package/dist/MicrosoftTeams.min.js +1 -1
- package/dist/MicrosoftTeams.min.js.map +1 -1
- package/package.json +1 -1
package/dist/MicrosoftTeams.js
CHANGED
@@ -1043,6 +1043,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
1043
1043
|
|
1044
1044
|
// EXPORTS
|
1045
1045
|
__webpack_require__.d(__webpack_exports__, {
|
1046
|
+
"ActionObjectType": () => (/* reexport */ ActionObjectType),
|
1046
1047
|
"ChannelType": () => (/* reexport */ ChannelType),
|
1047
1048
|
"ChildAppWindow": () => (/* reexport */ ChildAppWindow),
|
1048
1049
|
"DialogDimension": () => (/* reexport */ DialogDimension),
|
@@ -1053,6 +1054,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
1053
1054
|
"HostName": () => (/* reexport */ HostName),
|
1054
1055
|
"NotificationTypes": () => (/* reexport */ NotificationTypes),
|
1055
1056
|
"ParentAppWindow": () => (/* reexport */ ParentAppWindow),
|
1057
|
+
"SecondaryM365ContentIdName": () => (/* reexport */ SecondaryM365ContentIdName),
|
1056
1058
|
"TaskModuleDimension": () => (/* reexport */ TaskModuleDimension),
|
1057
1059
|
"TeamType": () => (/* reexport */ TeamType),
|
1058
1060
|
"UserSettingTypes": () => (/* reexport */ UserSettingTypes),
|
@@ -1125,7 +1127,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
1125
1127
|
});
|
1126
1128
|
|
1127
1129
|
;// CONCATENATED MODULE: ./src/internal/constants.ts
|
1128
|
-
var version = "2.
|
1130
|
+
var version = "2.2.1-beta.0";
|
1129
1131
|
/**
|
1130
1132
|
* @hidden
|
1131
1133
|
* The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
|
@@ -1133,6 +1135,7 @@ var version = "2.1.1-beta.0";
|
|
1133
1135
|
* Mobile clients are passing versions, hence will be applicable to web and desktop clients only.
|
1134
1136
|
*
|
1135
1137
|
* @internal
|
1138
|
+
* Limited to Microsoft-internal use
|
1136
1139
|
*/
|
1137
1140
|
var defaultSDKVersionForCompatCheck = '2.0.1';
|
1138
1141
|
/**
|
@@ -1140,14 +1143,23 @@ var defaultSDKVersionForCompatCheck = '2.0.1';
|
|
1140
1143
|
* This is the client version when selectMedia API - VideoAndImage is supported on mobile.
|
1141
1144
|
*
|
1142
1145
|
* @internal
|
1146
|
+
* Limited to Microsoft-internal use
|
1143
1147
|
*/
|
1144
1148
|
var videoAndImageMediaAPISupportVersion = '2.0.2';
|
1145
1149
|
/**
|
1150
|
+
* @hidden
|
1146
1151
|
* This is the client version when selectMedia API - Video with non-full screen mode is supported on mobile.
|
1152
|
+
*
|
1153
|
+
* @internal
|
1154
|
+
* Limited to Microsoft-internal use
|
1147
1155
|
*/
|
1148
1156
|
var nonFullScreenVideoModeAPISupportVersion = '2.0.3';
|
1149
1157
|
/**
|
1158
|
+
* @hidden
|
1150
1159
|
* This is the client version when selectMedia API - ImageOutputFormats is supported on mobile.
|
1160
|
+
*
|
1161
|
+
* @internal
|
1162
|
+
* Limited to Microsoft-internal use
|
1151
1163
|
*/
|
1152
1164
|
var imageOutputFormatsAPISupportVersion = '2.0.4';
|
1153
1165
|
/**
|
@@ -1155,6 +1167,7 @@ var imageOutputFormatsAPISupportVersion = '2.0.4';
|
|
1155
1167
|
* Minimum required client supported version for {@link getUserJoinedTeams} to be supported on {@link HostClientType.android}
|
1156
1168
|
*
|
1157
1169
|
* @internal
|
1170
|
+
* Limited to Microsoft-internal use
|
1158
1171
|
*/
|
1159
1172
|
var getUserJoinedTeamsSupportedAndroidClientVersion = '2.0.1';
|
1160
1173
|
/**
|
@@ -1162,6 +1175,7 @@ var getUserJoinedTeamsSupportedAndroidClientVersion = '2.0.1';
|
|
1162
1175
|
* This is the client version when location APIs (getLocation and showLocation) are supported.
|
1163
1176
|
*
|
1164
1177
|
* @internal
|
1178
|
+
* Limited to Microsoft-internal use
|
1165
1179
|
*/
|
1166
1180
|
var locationAPIsRequiredVersion = '1.9.0';
|
1167
1181
|
/**
|
@@ -1169,6 +1183,7 @@ var locationAPIsRequiredVersion = '1.9.0';
|
|
1169
1183
|
* This is the client version when permisisons are supported
|
1170
1184
|
*
|
1171
1185
|
* @internal
|
1186
|
+
* Limited to Microsoft-internal use
|
1172
1187
|
*/
|
1173
1188
|
var permissionsAPIsRequiredVersion = '2.0.1';
|
1174
1189
|
/**
|
@@ -1176,6 +1191,7 @@ var permissionsAPIsRequiredVersion = '2.0.1';
|
|
1176
1191
|
* This is the client version when people picker API is supported on mobile.
|
1177
1192
|
*
|
1178
1193
|
* @internal
|
1194
|
+
* Limited to Microsoft-internal use
|
1179
1195
|
*/
|
1180
1196
|
var peoplePickerRequiredVersion = '2.0.0';
|
1181
1197
|
/**
|
@@ -1183,6 +1199,7 @@ var peoplePickerRequiredVersion = '2.0.0';
|
|
1183
1199
|
* This is the client version when captureImage API is supported on mobile.
|
1184
1200
|
*
|
1185
1201
|
* @internal
|
1202
|
+
* Limited to Microsoft-internal use
|
1186
1203
|
*/
|
1187
1204
|
var captureImageMobileSupportVersion = '1.7.0';
|
1188
1205
|
/**
|
@@ -1190,6 +1207,7 @@ var captureImageMobileSupportVersion = '1.7.0';
|
|
1190
1207
|
* This is the client version when media APIs are supported on all three platforms ios, android and web.
|
1191
1208
|
*
|
1192
1209
|
* @internal
|
1210
|
+
* Limited to Microsoft-internal use
|
1193
1211
|
*/
|
1194
1212
|
var mediaAPISupportVersion = '1.8.0';
|
1195
1213
|
/**
|
@@ -1197,6 +1215,7 @@ var mediaAPISupportVersion = '1.8.0';
|
|
1197
1215
|
* This is the client version when getMedia API is supported via Callbacks on all three platforms ios, android and web.
|
1198
1216
|
*
|
1199
1217
|
* @internal
|
1218
|
+
* Limited to Microsoft-internal use
|
1200
1219
|
*/
|
1201
1220
|
var getMediaCallbackSupportVersion = '2.0.0';
|
1202
1221
|
/**
|
@@ -1204,6 +1223,7 @@ var getMediaCallbackSupportVersion = '2.0.0';
|
|
1204
1223
|
* This is the client version when scanBarCode API is supported on mobile.
|
1205
1224
|
*
|
1206
1225
|
* @internal
|
1226
|
+
* Limited to Microsoft-internal use
|
1207
1227
|
*/
|
1208
1228
|
var scanBarCodeAPIMobileSupportVersion = '1.9.0';
|
1209
1229
|
/**
|
@@ -1211,6 +1231,7 @@ var scanBarCodeAPIMobileSupportVersion = '1.9.0';
|
|
1211
1231
|
* List of supported Host origins
|
1212
1232
|
*
|
1213
1233
|
* @internal
|
1234
|
+
* Limited to Microsoft-internal use
|
1214
1235
|
*/
|
1215
1236
|
var validOrigins = [
|
1216
1237
|
'teams.microsoft.com',
|
@@ -1246,6 +1267,7 @@ var validOrigins = [
|
|
1246
1267
|
* USer specified message origins should satisfy this test
|
1247
1268
|
*
|
1248
1269
|
* @internal
|
1270
|
+
* Limited to Microsoft-internal use
|
1249
1271
|
*/
|
1250
1272
|
var userOriginUrlValidationRegExp = /^https:\/\//;
|
1251
1273
|
/**
|
@@ -1253,6 +1275,7 @@ var userOriginUrlValidationRegExp = /^https:\/\//;
|
|
1253
1275
|
* The protocol used for deep links into Teams
|
1254
1276
|
*
|
1255
1277
|
* @internal
|
1278
|
+
* Limited to Microsoft-internal use
|
1256
1279
|
*/
|
1257
1280
|
var teamsDeepLinkProtocol = 'https';
|
1258
1281
|
/**
|
@@ -1260,6 +1283,7 @@ var teamsDeepLinkProtocol = 'https';
|
|
1260
1283
|
* The host used for deep links into Teams
|
1261
1284
|
*
|
1262
1285
|
* @internal
|
1286
|
+
* Limited to Microsoft-internal use
|
1263
1287
|
*/
|
1264
1288
|
var teamsDeepLinkHost = 'teams.microsoft.com';
|
1265
1289
|
|
@@ -1287,6 +1311,27 @@ var FileOpenPreference;
|
|
1287
1311
|
FileOpenPreference["Desktop"] = "desktop";
|
1288
1312
|
FileOpenPreference["Web"] = "web";
|
1289
1313
|
})(FileOpenPreference || (FileOpenPreference = {}));
|
1314
|
+
/**
|
1315
|
+
* Possible Action Types
|
1316
|
+
*
|
1317
|
+
* @beta
|
1318
|
+
*/
|
1319
|
+
var ActionObjectType;
|
1320
|
+
(function (ActionObjectType) {
|
1321
|
+
ActionObjectType["M365Content"] = "m365content";
|
1322
|
+
})(ActionObjectType || (ActionObjectType = {}));
|
1323
|
+
/**
|
1324
|
+
* These correspond with field names in the MSGraph
|
1325
|
+
*
|
1326
|
+
* @beta
|
1327
|
+
*/
|
1328
|
+
var SecondaryM365ContentIdName;
|
1329
|
+
(function (SecondaryM365ContentIdName) {
|
1330
|
+
SecondaryM365ContentIdName["DriveId"] = "driveId";
|
1331
|
+
SecondaryM365ContentIdName["GroupId"] = "groupId";
|
1332
|
+
SecondaryM365ContentIdName["SiteId"] = "siteId";
|
1333
|
+
SecondaryM365ContentIdName["UserId"] = "userId";
|
1334
|
+
})(SecondaryM365ContentIdName || (SecondaryM365ContentIdName = {}));
|
1290
1335
|
var ErrorCode;
|
1291
1336
|
(function (ErrorCode) {
|
1292
1337
|
/**
|
@@ -1461,6 +1506,7 @@ var uuid = __webpack_require__(22);
|
|
1461
1506
|
* validateHostAgainstPattern('teams.microsoft.com', 'team.microsoft.com') returns false
|
1462
1507
|
*
|
1463
1508
|
* @internal
|
1509
|
+
* Limited to Microsoft-internal use
|
1464
1510
|
*/
|
1465
1511
|
function validateHostAgainstPattern(pattern, host) {
|
1466
1512
|
if (pattern.substring(0, 2) === '*.') {
|
@@ -1476,7 +1522,10 @@ function validateHostAgainstPattern(pattern, host) {
|
|
1476
1522
|
}
|
1477
1523
|
return false;
|
1478
1524
|
}
|
1479
|
-
|
1525
|
+
/**
|
1526
|
+
* @internal
|
1527
|
+
* Limited to Microsoft-internal use
|
1528
|
+
*/
|
1480
1529
|
function validateOrigin(messageOrigin) {
|
1481
1530
|
// Check whether the url is in the pre-known allowlist or supplied by user
|
1482
1531
|
if (messageOrigin.protocol !== 'https:') {
|
@@ -1495,7 +1544,10 @@ function validateOrigin(messageOrigin) {
|
|
1495
1544
|
}
|
1496
1545
|
return false;
|
1497
1546
|
}
|
1498
|
-
|
1547
|
+
/**
|
1548
|
+
* @internal
|
1549
|
+
* Limited to Microsoft-internal use
|
1550
|
+
*/
|
1499
1551
|
function getGenericOnCompleteHandler(errorMessage) {
|
1500
1552
|
return function (success, reason) {
|
1501
1553
|
if (!success) {
|
@@ -1521,6 +1573,7 @@ function getGenericOnCompleteHandler(errorMessage) {
|
|
1521
1573
|
* compareSDKVersions('2.0', 2.0) returns NaN
|
1522
1574
|
*
|
1523
1575
|
* @internal
|
1576
|
+
* Limited to Microsoft-internal use
|
1524
1577
|
*/
|
1525
1578
|
function compareSDKVersions(v1, v2) {
|
1526
1579
|
if (typeof v1 !== 'string' || typeof v2 !== 'string') {
|
@@ -1561,10 +1614,15 @@ function compareSDKVersions(v1, v2) {
|
|
1561
1614
|
* Generates a GUID
|
1562
1615
|
*
|
1563
1616
|
* @internal
|
1617
|
+
* Limited to Microsoft-internal use
|
1564
1618
|
*/
|
1565
1619
|
function generateGUID() {
|
1566
1620
|
return uuid.v4();
|
1567
1621
|
}
|
1622
|
+
/**
|
1623
|
+
* @internal
|
1624
|
+
* Limited to Microsoft-internal use
|
1625
|
+
*/
|
1568
1626
|
function deepFreeze(obj) {
|
1569
1627
|
Object.keys(obj).forEach(function (prop) {
|
1570
1628
|
if (typeof obj[prop] === 'object') {
|
@@ -1581,6 +1639,7 @@ function deepFreeze(obj) {
|
|
1581
1639
|
* @returns
|
1582
1640
|
*
|
1583
1641
|
* @internal
|
1642
|
+
* Limited to Microsoft-internal use
|
1584
1643
|
*/
|
1585
1644
|
function callCallbackWithErrorOrResultFromPromiseAndReturnPromise(funcHelper, callback) {
|
1586
1645
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
@@ -1615,6 +1674,7 @@ function callCallbackWithErrorOrResultFromPromiseAndReturnPromise(funcHelper, ca
|
|
1615
1674
|
* @param args
|
1616
1675
|
* @returns
|
1617
1676
|
* @internal
|
1677
|
+
* Limited to Microsoft-internal use
|
1618
1678
|
*/
|
1619
1679
|
function callCallbackWithErrorOrBooleanFromPromiseAndReturnPromise(funcHelper, callback) {
|
1620
1680
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
@@ -1647,7 +1707,9 @@ function callCallbackWithErrorOrBooleanFromPromiseAndReturnPromise(funcHelper, c
|
|
1647
1707
|
* @param callback
|
1648
1708
|
* @param args
|
1649
1709
|
* @returns
|
1710
|
+
*
|
1650
1711
|
* @internal
|
1712
|
+
* Limited to Microsoft-internal use
|
1651
1713
|
*/
|
1652
1714
|
function callCallbackWithSdkErrorFromPromiseAndReturnPromise(funcHelper, callback) {
|
1653
1715
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
@@ -1682,6 +1744,7 @@ function callCallbackWithSdkErrorFromPromiseAndReturnPromise(funcHelper, callbac
|
|
1682
1744
|
* @returns
|
1683
1745
|
*
|
1684
1746
|
* @internal
|
1747
|
+
* Limited to Microsoft-internal use
|
1685
1748
|
*/
|
1686
1749
|
function callCallbackWithErrorOrResultOrNullFromPromiseAndReturnPromise(funcHelper, callback) {
|
1687
1750
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
@@ -1718,6 +1781,7 @@ function callCallbackWithErrorOrResultOrNullFromPromiseAndReturnPromise(funcHelp
|
|
1718
1781
|
* if the initial action didn't complete within provided timeout.
|
1719
1782
|
*
|
1720
1783
|
* @internal
|
1784
|
+
* Limited to Microsoft-internal use
|
1721
1785
|
*/
|
1722
1786
|
function runWithTimeout(action, timeoutInMs, timeoutError) {
|
1723
1787
|
return new Promise(function (resolve, reject) {
|
@@ -1733,6 +1797,10 @@ function runWithTimeout(action, timeoutInMs, timeoutError) {
|
|
1733
1797
|
});
|
1734
1798
|
});
|
1735
1799
|
}
|
1800
|
+
/**
|
1801
|
+
* @internal
|
1802
|
+
* Limited to Microsoft-internal use
|
1803
|
+
*/
|
1736
1804
|
function createTeamsAppLink(params) {
|
1737
1805
|
var url = new URL('https://teams.microsoft.com/l/entity/' +
|
1738
1806
|
encodeURIComponent(params.appId) +
|
@@ -1753,7 +1821,10 @@ function createTeamsAppLink(params) {
|
|
1753
1821
|
|
1754
1822
|
|
1755
1823
|
|
1756
|
-
/**
|
1824
|
+
/**
|
1825
|
+
* @internal
|
1826
|
+
* Limited to Microsoft-internal use
|
1827
|
+
*/
|
1757
1828
|
function ensureInitialized() {
|
1758
1829
|
var expectedFrameContexts = [];
|
1759
1830
|
for (var _i = 0; _i < arguments.length; _i++) {
|
@@ -1784,6 +1855,7 @@ function ensureInitialized() {
|
|
1784
1855
|
* @param requiredVersion - SDK version required by the API
|
1785
1856
|
*
|
1786
1857
|
* @internal
|
1858
|
+
* Limited to Microsoft-internal use
|
1787
1859
|
*/
|
1788
1860
|
function isCurrentSDKVersionAtLeast(requiredVersion) {
|
1789
1861
|
if (requiredVersion === void 0) { requiredVersion = defaultSDKVersionForCompatCheck; }
|
@@ -1798,6 +1870,7 @@ function isCurrentSDKVersionAtLeast(requiredVersion) {
|
|
1798
1870
|
* Helper function to identify if host client is either android or ios
|
1799
1871
|
*
|
1800
1872
|
* @internal
|
1873
|
+
* Limited to Microsoft-internal use
|
1801
1874
|
*/
|
1802
1875
|
function isHostClientMobile() {
|
1803
1876
|
return GlobalVars.hostClientType == HostClientType.android || GlobalVars.hostClientType == HostClientType.ios;
|
@@ -1809,6 +1882,7 @@ function isHostClientMobile() {
|
|
1809
1882
|
* supported by platform or not. Null is returned in case of success.
|
1810
1883
|
*
|
1811
1884
|
* @internal
|
1885
|
+
* Limited to Microsoft-internal use
|
1812
1886
|
*/
|
1813
1887
|
function throwExceptionIfMobileApiIsNotSupported(requiredVersion) {
|
1814
1888
|
if (requiredVersion === void 0) { requiredVersion = defaultSDKVersionForCompatCheck; }
|
@@ -1827,6 +1901,7 @@ function throwExceptionIfMobileApiIsNotSupported(requiredVersion) {
|
|
1827
1901
|
* which is used later for message source/origin validation
|
1828
1902
|
*
|
1829
1903
|
* @internal
|
1904
|
+
* Limited to Microsoft-internal use
|
1830
1905
|
*/
|
1831
1906
|
function processAdditionalValidOrigins(validMessageOrigins) {
|
1832
1907
|
var combinedOriginUrls = GlobalVars.additionalValidOrigins.concat(validMessageOrigins.filter(function (_origin) {
|
@@ -1843,137 +1918,6 @@ function processAdditionalValidOrigins(validMessageOrigins) {
|
|
1843
1918
|
GlobalVars.additionalValidOrigins = combinedOriginUrls;
|
1844
1919
|
}
|
1845
1920
|
|
1846
|
-
;// CONCATENATED MODULE: ./src/private/privateAPIs.ts
|
1847
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
1848
|
-
|
1849
|
-
|
1850
|
-
|
1851
|
-
|
1852
|
-
|
1853
|
-
/**
|
1854
|
-
* @internal
|
1855
|
-
*/
|
1856
|
-
function initializePrivateApis() {
|
1857
|
-
// To maintain backwards compatability, this function cannot be deleted as it is callable
|
1858
|
-
}
|
1859
|
-
/**
|
1860
|
-
* @hidden
|
1861
|
-
* Hide from docs.
|
1862
|
-
* ------
|
1863
|
-
* Upload a custom App manifest directly to both team and personal scopes.
|
1864
|
-
* This method works just for the first party Apps.
|
1865
|
-
*
|
1866
|
-
* @internal
|
1867
|
-
*/
|
1868
|
-
function uploadCustomApp(manifestBlob, onComplete) {
|
1869
|
-
ensureInitialized();
|
1870
|
-
sendMessageToParent('uploadCustomApp', [manifestBlob], onComplete ? onComplete : getGenericOnCompleteHandler());
|
1871
|
-
}
|
1872
|
-
/**
|
1873
|
-
* @hidden
|
1874
|
-
* Internal use only
|
1875
|
-
* Sends a custom action MessageRequest to host or parent window
|
1876
|
-
*
|
1877
|
-
* @param actionName - Specifies name of the custom action to be sent
|
1878
|
-
* @param args - Specifies additional arguments passed to the action
|
1879
|
-
* @param callback - Optionally specify a callback to receive response parameters from the parent
|
1880
|
-
* @returns id of sent message
|
1881
|
-
*
|
1882
|
-
* @internal
|
1883
|
-
*/
|
1884
|
-
function sendCustomMessage(actionName,
|
1885
|
-
// tslint:disable-next-line:no-any
|
1886
|
-
args,
|
1887
|
-
// tslint:disable-next-line:no-any
|
1888
|
-
callback) {
|
1889
|
-
ensureInitialized();
|
1890
|
-
sendMessageToParent(actionName, args, callback);
|
1891
|
-
}
|
1892
|
-
/**
|
1893
|
-
* @hidden
|
1894
|
-
* Internal use only
|
1895
|
-
* Sends a custom action MessageEvent to a child iframe/window, only if you are not using auth popup.
|
1896
|
-
* Otherwise it will go to the auth popup (which becomes the child)
|
1897
|
-
*
|
1898
|
-
* @param actionName - Specifies name of the custom action to be sent
|
1899
|
-
* @param args - Specifies additional arguments passed to the action
|
1900
|
-
* @returns id of sent message
|
1901
|
-
*
|
1902
|
-
* @internal
|
1903
|
-
*/
|
1904
|
-
function sendCustomEvent(actionName,
|
1905
|
-
// tslint:disable-next-line:no-any
|
1906
|
-
args) {
|
1907
|
-
ensureInitialized();
|
1908
|
-
//validate childWindow
|
1909
|
-
if (!Communication.childWindow) {
|
1910
|
-
throw new Error('The child window has not yet been initialized or is not present');
|
1911
|
-
}
|
1912
|
-
sendMessageEventToChild(actionName, args);
|
1913
|
-
}
|
1914
|
-
/**
|
1915
|
-
* @hidden
|
1916
|
-
* Internal use only
|
1917
|
-
* Adds a handler for an action sent by a child window or parent window
|
1918
|
-
*
|
1919
|
-
* @param actionName - Specifies name of the action message to handle
|
1920
|
-
* @param customHandler - The callback to invoke when the action message is received. The return value is sent to the child
|
1921
|
-
*
|
1922
|
-
* @internal
|
1923
|
-
*/
|
1924
|
-
function registerCustomHandler(actionName, customHandler) {
|
1925
|
-
var _this = this;
|
1926
|
-
ensureInitialized();
|
1927
|
-
registerHandler(actionName, function () {
|
1928
|
-
var args = [];
|
1929
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
1930
|
-
args[_i] = arguments[_i];
|
1931
|
-
}
|
1932
|
-
return customHandler.apply(_this, args);
|
1933
|
-
});
|
1934
|
-
}
|
1935
|
-
/**
|
1936
|
-
* @hidden
|
1937
|
-
* register a handler to be called when a user setting changes. The changed setting type & value is provided in the callback.
|
1938
|
-
*
|
1939
|
-
* @param settingTypes - List of user setting changes to subscribe
|
1940
|
-
* @param handler - When a subscribed setting is updated this handler is called
|
1941
|
-
*
|
1942
|
-
* @internal
|
1943
|
-
*/
|
1944
|
-
function registerUserSettingsChangeHandler(settingTypes, handler) {
|
1945
|
-
ensureInitialized();
|
1946
|
-
registerHandler('userSettingsChange', handler, true, [settingTypes]);
|
1947
|
-
}
|
1948
|
-
/**
|
1949
|
-
* @hidden
|
1950
|
-
* Hide from docs.
|
1951
|
-
* ------
|
1952
|
-
* Opens a client-friendly preview of the specified file.
|
1953
|
-
*
|
1954
|
-
* @param file - The file to preview.
|
1955
|
-
*/
|
1956
|
-
function openFilePreview(filePreviewParameters) {
|
1957
|
-
ensureInitialized(FrameContexts.content, FrameContexts.task);
|
1958
|
-
var params = [
|
1959
|
-
filePreviewParameters.entityId,
|
1960
|
-
filePreviewParameters.title,
|
1961
|
-
filePreviewParameters.description,
|
1962
|
-
filePreviewParameters.type,
|
1963
|
-
filePreviewParameters.objectUrl,
|
1964
|
-
filePreviewParameters.downloadUrl,
|
1965
|
-
filePreviewParameters.webPreviewUrl,
|
1966
|
-
filePreviewParameters.webEditUrl,
|
1967
|
-
filePreviewParameters.baseUrl,
|
1968
|
-
filePreviewParameters.editFile,
|
1969
|
-
filePreviewParameters.subEntityId,
|
1970
|
-
filePreviewParameters.viewerAction,
|
1971
|
-
filePreviewParameters.fileOpenPreference,
|
1972
|
-
filePreviewParameters.conversationId,
|
1973
|
-
];
|
1974
|
-
sendMessageToParent('openFilePreview', params);
|
1975
|
-
}
|
1976
|
-
|
1977
1921
|
;// CONCATENATED MODULE: ./src/public/authentication.ts
|
1978
1922
|
|
1979
1923
|
|
@@ -2478,21 +2422,29 @@ var versionConstants = {
|
|
2478
2422
|
capability: { teams: { fullTrust: { joinedTeams: {} } } },
|
2479
2423
|
hostClientTypes: [
|
2480
2424
|
HostClientType.android,
|
2425
|
+
HostClientType.desktop,
|
2426
|
+
HostClientType.ios,
|
2481
2427
|
HostClientType.teamsRoomsAndroid,
|
2482
2428
|
HostClientType.teamsPhones,
|
2483
2429
|
HostClientType.teamsDisplays,
|
2430
|
+
HostClientType.web,
|
2484
2431
|
],
|
2485
2432
|
},
|
2433
|
+
{
|
2434
|
+
capability: { webStorage: {} },
|
2435
|
+
hostClientTypes: [HostClientType.desktop],
|
2436
|
+
},
|
2486
2437
|
],
|
2487
2438
|
'2.0.5': [
|
2488
2439
|
{
|
2489
2440
|
capability: { webStorage: {} },
|
2490
|
-
hostClientTypes: [HostClientType.android, HostClientType.ios],
|
2441
|
+
hostClientTypes: [HostClientType.android, HostClientType.desktop, HostClientType.ios],
|
2491
2442
|
},
|
2492
2443
|
],
|
2493
2444
|
};
|
2494
2445
|
/**
|
2495
2446
|
* @internal
|
2447
|
+
* Limited to Microsoft-internal use
|
2496
2448
|
*
|
2497
2449
|
* Generates and returns a runtime configuration for host clients which are not on the latest host SDK version
|
2498
2450
|
* and do not provide their own runtime config. Their supported capabilities are based on the highest
|
@@ -2524,12 +2476,11 @@ function applyRuntimeConfig(runtimeConfig) {
|
|
2524
2476
|
}
|
2525
2477
|
/**
|
2526
2478
|
* @hidden
|
2527
|
-
* Hide from docs.
|
2528
|
-
* ------
|
2529
2479
|
* Constant used to set minimum runtime configuration
|
2530
2480
|
* while un-initializing an app in unit test case.
|
2531
2481
|
*
|
2532
2482
|
* @internal
|
2483
|
+
* Limited to Microsoft-internal use
|
2533
2484
|
*/
|
2534
2485
|
var _minRuntimeConfigToUninitialize = {
|
2535
2486
|
apiVersion: 1,
|
@@ -2567,10 +2518,11 @@ var dialog;
|
|
2567
2518
|
/**
|
2568
2519
|
* @hidden
|
2569
2520
|
* Hide from docs because this function is only used during initialization
|
2570
|
-
*
|
2521
|
+
*
|
2571
2522
|
* Adds register handlers for messageForChild upon initialization and only in the tasks FrameContext. {@link FrameContexts.task}
|
2572
|
-
* Function is called during app
|
2523
|
+
* Function is called during app initialization
|
2573
2524
|
* @internal
|
2525
|
+
* Limited to Microsoft-internal use
|
2574
2526
|
*/
|
2575
2527
|
function initialize() {
|
2576
2528
|
registerHandler('messageForChild', handleDialogMessage, false);
|
@@ -2617,7 +2569,7 @@ var dialog;
|
|
2617
2569
|
}
|
2618
2570
|
dialog.open = open;
|
2619
2571
|
/**
|
2620
|
-
* Submit the dialog module
|
2572
|
+
* Submit the dialog module and close the dialog
|
2621
2573
|
*
|
2622
2574
|
* @param result - The result to be sent to the bot or the app. Typically a JSON object or a serialized version of it
|
2623
2575
|
* @param appIds - Helps to validate that the call originates from the same appId as the one that invoked the task module
|
@@ -2767,11 +2719,11 @@ var dialog;
|
|
2767
2719
|
})(bot = dialog.bot || (dialog.bot = {}));
|
2768
2720
|
/**
|
2769
2721
|
* @hidden
|
2770
|
-
*
|
2771
|
-
* --------
|
2722
|
+
*
|
2772
2723
|
* Convert UrlDialogInfo to DialogInfo to send the information to host in {@linkcode open} API.
|
2773
2724
|
*
|
2774
2725
|
* @internal
|
2726
|
+
* Limited to Microsoft-internal use
|
2775
2727
|
*/
|
2776
2728
|
function getDialogInfoFromUrlDialogInfo(urlDialogInfo) {
|
2777
2729
|
var dialogInfo = {
|
@@ -2786,11 +2738,11 @@ var dialog;
|
|
2786
2738
|
dialog.getDialogInfoFromUrlDialogInfo = getDialogInfoFromUrlDialogInfo;
|
2787
2739
|
/**
|
2788
2740
|
* @hidden
|
2789
|
-
*
|
2790
|
-
* --------
|
2741
|
+
*
|
2791
2742
|
* Convert BotUrlDialogInfo to DialogInfo to send the information to host in {@linkcode bot.open} API.
|
2792
2743
|
*
|
2793
2744
|
* @internal
|
2745
|
+
* Limited to Microsoft-internal use
|
2794
2746
|
*/
|
2795
2747
|
function getDialogInfoFromBotUrlDialogInfo(botUrlDialogInfo) {
|
2796
2748
|
var dialogInfo = {
|
@@ -3047,7 +2999,6 @@ var teamsCore;
|
|
3047
2999
|
|
3048
3000
|
|
3049
3001
|
|
3050
|
-
|
3051
3002
|
/**
|
3052
3003
|
* Namespace to interact with app initialization and lifecycle.
|
3053
3004
|
*
|
@@ -3204,7 +3155,6 @@ var app_app;
|
|
3204
3155
|
menus.initialize();
|
3205
3156
|
pages.config.initialize();
|
3206
3157
|
dialog.initialize();
|
3207
|
-
initializePrivateApis();
|
3208
3158
|
}
|
3209
3159
|
// Handle additional valid message origins if specified
|
3210
3160
|
if (Array.isArray(validMessageOrigins)) {
|
@@ -3215,11 +3165,10 @@ var app_app;
|
|
3215
3165
|
}
|
3216
3166
|
/**
|
3217
3167
|
* @hidden
|
3218
|
-
* Hide from docs.
|
3219
|
-
* ------
|
3220
3168
|
* Undocumented function used to set a mock window for unit tests
|
3221
3169
|
*
|
3222
3170
|
* @internal
|
3171
|
+
* Limited to Microsoft-internal use
|
3223
3172
|
*/
|
3224
3173
|
function _initialize(hostWindow) {
|
3225
3174
|
Communication.currentWindow = hostWindow;
|
@@ -3227,11 +3176,10 @@ var app_app;
|
|
3227
3176
|
app._initialize = _initialize;
|
3228
3177
|
/**
|
3229
3178
|
* @hidden
|
3230
|
-
* Hide from docs.
|
3231
|
-
* ------
|
3232
3179
|
* Undocumented function used to clear state between unit tests
|
3233
3180
|
*
|
3234
3181
|
* @internal
|
3182
|
+
* Limited to Microsoft-internal use
|
3235
3183
|
*/
|
3236
3184
|
function _uninitialize() {
|
3237
3185
|
if (!GlobalVars.initializeCalled) {
|
@@ -3345,9 +3293,11 @@ var app_app;
|
|
3345
3293
|
* Transforms the Legacy Context object received from Messages to the structured app.Context object
|
3346
3294
|
*
|
3347
3295
|
* @internal
|
3296
|
+
* Limited to Microsoft-internal use
|
3348
3297
|
*/
|
3349
3298
|
function transformLegacyContextToAppContext(legacyContext) {
|
3350
3299
|
var context = {
|
3300
|
+
actionInfo: legacyContext.actionInfo,
|
3351
3301
|
app: {
|
3352
3302
|
locale: legacyContext.locale,
|
3353
3303
|
sessionId: legacyContext.appSessionId ? legacyContext.appSessionId : '',
|
@@ -3475,6 +3425,7 @@ var pages;
|
|
3475
3425
|
* @param handler - The handler for placing focus within the application.
|
3476
3426
|
*
|
3477
3427
|
* @internal
|
3428
|
+
* Limited to Microsoft-internal use
|
3478
3429
|
*/
|
3479
3430
|
function registerFocusEnterHandler(handler) {
|
3480
3431
|
ensureInitialized();
|
@@ -3683,9 +3634,10 @@ var pages;
|
|
3683
3634
|
/**
|
3684
3635
|
* @hidden
|
3685
3636
|
* Hide from docs because this function is only used during initialization
|
3686
|
-
*
|
3637
|
+
*
|
3687
3638
|
* Adds register handlers for settings.save and settings.remove upon initialization. Function is called in {@link app.initializeHelper}
|
3688
3639
|
* @internal
|
3640
|
+
* Limited to Microsoft-internal use
|
3689
3641
|
*/
|
3690
3642
|
function initialize() {
|
3691
3643
|
registerHandler('settings.save', handleSave, false);
|
@@ -4014,6 +3966,7 @@ var browser = __webpack_require__(227);
|
|
4014
3966
|
var topLevelLogger = (0,browser.debug)('teamsJs');
|
4015
3967
|
/**
|
4016
3968
|
* @internal
|
3969
|
+
* Limited to Microsoft-internal use
|
4017
3970
|
*
|
4018
3971
|
* Returns a logger for a given namespace, within the pre-defined top-level teamsJs namespace
|
4019
3972
|
*/
|
@@ -4036,14 +3989,20 @@ var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from
|
|
4036
3989
|
|
4037
3990
|
|
4038
3991
|
var handlersLogger = getLogger('handlers');
|
4039
|
-
/**
|
3992
|
+
/**
|
3993
|
+
* @internal
|
3994
|
+
* Limited to Microsoft-internal use
|
3995
|
+
*/
|
4040
3996
|
var HandlersPrivate = /** @class */ (function () {
|
4041
3997
|
function HandlersPrivate() {
|
4042
3998
|
}
|
4043
3999
|
HandlersPrivate.handlers = {};
|
4044
4000
|
return HandlersPrivate;
|
4045
4001
|
}());
|
4046
|
-
/**
|
4002
|
+
/**
|
4003
|
+
* @internal
|
4004
|
+
* Limited to Microsoft-internal use
|
4005
|
+
*/
|
4047
4006
|
function initializeHandlers() {
|
4048
4007
|
// ::::::::::::::::::::MicrosoftTeams SDK Internal :::::::::::::::::
|
4049
4008
|
HandlersPrivate.handlers['themeChange'] = handleThemeChange;
|
@@ -4052,7 +4011,10 @@ function initializeHandlers() {
|
|
4052
4011
|
pages.backStack._initialize();
|
4053
4012
|
}
|
4054
4013
|
var callHandlerLogger = handlersLogger.extend('callHandler');
|
4055
|
-
/**
|
4014
|
+
/**
|
4015
|
+
* @internal
|
4016
|
+
* Limited to Microsoft-internal use
|
4017
|
+
*/
|
4056
4018
|
function callHandler(name, args) {
|
4057
4019
|
var handler = HandlersPrivate.handlers[name];
|
4058
4020
|
if (handler) {
|
@@ -4065,7 +4027,10 @@ function callHandler(name, args) {
|
|
4065
4027
|
return [false, undefined];
|
4066
4028
|
}
|
4067
4029
|
}
|
4068
|
-
/**
|
4030
|
+
/**
|
4031
|
+
* @internal
|
4032
|
+
* Limited to Microsoft-internal use
|
4033
|
+
*/
|
4069
4034
|
function registerHandler(name, handler, sendMessage, args) {
|
4070
4035
|
if (sendMessage === void 0) { sendMessage = true; }
|
4071
4036
|
if (args === void 0) { args = []; }
|
@@ -4077,7 +4042,10 @@ function registerHandler(name, handler, sendMessage, args) {
|
|
4077
4042
|
delete HandlersPrivate.handlers[name];
|
4078
4043
|
}
|
4079
4044
|
}
|
4080
|
-
/**
|
4045
|
+
/**
|
4046
|
+
* @internal
|
4047
|
+
* Limited to Microsoft-internal use
|
4048
|
+
*/
|
4081
4049
|
function removeHandler(name) {
|
4082
4050
|
delete HandlersPrivate.handlers[name];
|
4083
4051
|
}
|
@@ -4085,12 +4053,18 @@ function removeHandler(name) {
|
|
4085
4053
|
function doesHandlerExist(name) {
|
4086
4054
|
return HandlersPrivate.handlers[name] != null;
|
4087
4055
|
}
|
4088
|
-
/**
|
4056
|
+
/**
|
4057
|
+
* @internal
|
4058
|
+
* Limited to Microsoft-internal use
|
4059
|
+
*/
|
4089
4060
|
function handlers_registerOnThemeChangeHandler(handler) {
|
4090
4061
|
HandlersPrivate.themeChangeHandler = handler;
|
4091
4062
|
handler && sendMessageToParent('registerHandler', ['themeChange']);
|
4092
4063
|
}
|
4093
|
-
/**
|
4064
|
+
/**
|
4065
|
+
* @internal
|
4066
|
+
* Limited to Microsoft-internal use
|
4067
|
+
*/
|
4094
4068
|
function handleThemeChange(theme) {
|
4095
4069
|
if (HandlersPrivate.themeChangeHandler) {
|
4096
4070
|
HandlersPrivate.themeChangeHandler(theme);
|
@@ -4099,12 +4073,18 @@ function handleThemeChange(theme) {
|
|
4099
4073
|
sendMessageEventToChild('themeChange', [theme]);
|
4100
4074
|
}
|
4101
4075
|
}
|
4102
|
-
/**
|
4076
|
+
/**
|
4077
|
+
* @internal
|
4078
|
+
* Limited to Microsoft-internal use
|
4079
|
+
*/
|
4103
4080
|
function handlers_registerOnLoadHandler(handler) {
|
4104
4081
|
HandlersPrivate.loadHandler = handler;
|
4105
4082
|
handler && sendMessageToParent('registerHandler', ['load']);
|
4106
4083
|
}
|
4107
|
-
/**
|
4084
|
+
/**
|
4085
|
+
* @internal
|
4086
|
+
* Limited to Microsoft-internal use
|
4087
|
+
*/
|
4108
4088
|
function handleLoad(context) {
|
4109
4089
|
if (HandlersPrivate.loadHandler) {
|
4110
4090
|
HandlersPrivate.loadHandler(context);
|
@@ -4113,12 +4093,18 @@ function handleLoad(context) {
|
|
4113
4093
|
sendMessageEventToChild('load', [context]);
|
4114
4094
|
}
|
4115
4095
|
}
|
4116
|
-
/**
|
4096
|
+
/**
|
4097
|
+
* @internal
|
4098
|
+
* Limited to Microsoft-internal use
|
4099
|
+
*/
|
4117
4100
|
function handlers_registerBeforeUnloadHandler(handler) {
|
4118
4101
|
HandlersPrivate.beforeUnloadHandler = handler;
|
4119
4102
|
handler && sendMessageToParent('registerHandler', ['beforeUnload']);
|
4120
4103
|
}
|
4121
|
-
/**
|
4104
|
+
/**
|
4105
|
+
* @internal
|
4106
|
+
* Limited to Microsoft-internal use
|
4107
|
+
*/
|
4122
4108
|
function handleBeforeUnload() {
|
4123
4109
|
var readyToUnload = function () {
|
4124
4110
|
sendMessageToParent('readyToUnload', []);
|
@@ -4146,14 +4132,20 @@ var communication_spreadArray = (undefined && undefined.__spreadArray) || functi
|
|
4146
4132
|
|
4147
4133
|
|
4148
4134
|
var communicationLogger = getLogger('communication');
|
4149
|
-
|
4135
|
+
/**
|
4136
|
+
* @internal
|
4137
|
+
* Limited to Microsoft-internal use
|
4138
|
+
*/
|
4150
4139
|
var Communication = /** @class */ (function () {
|
4151
4140
|
function Communication() {
|
4152
4141
|
}
|
4153
4142
|
return Communication;
|
4154
4143
|
}());
|
4155
4144
|
|
4156
|
-
|
4145
|
+
/**
|
4146
|
+
* @internal
|
4147
|
+
* Limited to Microsoft-internal use
|
4148
|
+
*/
|
4157
4149
|
var CommunicationPrivate = /** @class */ (function () {
|
4158
4150
|
function CommunicationPrivate() {
|
4159
4151
|
}
|
@@ -4164,7 +4156,10 @@ var CommunicationPrivate = /** @class */ (function () {
|
|
4164
4156
|
CommunicationPrivate.promiseCallbacks = {};
|
4165
4157
|
return CommunicationPrivate;
|
4166
4158
|
}());
|
4167
|
-
|
4159
|
+
/**
|
4160
|
+
* @internal
|
4161
|
+
* Limited to Microsoft-internal use
|
4162
|
+
*/
|
4168
4163
|
function initializeCommunication(validMessageOrigins) {
|
4169
4164
|
// Listen for messages post to our window
|
4170
4165
|
CommunicationPrivate.messageListener = function (evt) { return processMessage(evt); };
|
@@ -4204,7 +4199,10 @@ function initializeCommunication(validMessageOrigins) {
|
|
4204
4199
|
Communication.parentOrigin = null;
|
4205
4200
|
}
|
4206
4201
|
}
|
4207
|
-
|
4202
|
+
/**
|
4203
|
+
* @internal
|
4204
|
+
* Limited to Microsoft-internal use
|
4205
|
+
*/
|
4208
4206
|
function uninitializeCommunication() {
|
4209
4207
|
Communication.currentWindow.removeEventListener('message', CommunicationPrivate.messageListener, false);
|
4210
4208
|
Communication.parentWindow = null;
|
@@ -4216,7 +4214,10 @@ function uninitializeCommunication() {
|
|
4216
4214
|
CommunicationPrivate.nextMessageId = 0;
|
4217
4215
|
CommunicationPrivate.callbacks = {};
|
4218
4216
|
}
|
4219
|
-
|
4217
|
+
/**
|
4218
|
+
* @internal
|
4219
|
+
* Limited to Microsoft-internal use
|
4220
|
+
*/
|
4220
4221
|
function sendAndUnwrap(actionName) {
|
4221
4222
|
var args = [];
|
4222
4223
|
for (var _i = 1; _i < arguments.length; _i++) {
|
@@ -4239,7 +4240,10 @@ function sendAndHandleStatusAndReason(actionName) {
|
|
4239
4240
|
}
|
4240
4241
|
});
|
4241
4242
|
}
|
4242
|
-
|
4243
|
+
/**
|
4244
|
+
* @internal
|
4245
|
+
* Limited to Microsoft-internal use
|
4246
|
+
*/
|
4243
4247
|
function sendAndHandleStatusAndReasonWithDefaultError(actionName, defaultError) {
|
4244
4248
|
var args = [];
|
4245
4249
|
for (var _i = 2; _i < arguments.length; _i++) {
|
@@ -4252,7 +4256,10 @@ function sendAndHandleStatusAndReasonWithDefaultError(actionName, defaultError)
|
|
4252
4256
|
}
|
4253
4257
|
});
|
4254
4258
|
}
|
4255
|
-
|
4259
|
+
/**
|
4260
|
+
* @internal
|
4261
|
+
* Limited to Microsoft-internal use
|
4262
|
+
*/
|
4256
4263
|
function sendAndHandleSdkError(actionName) {
|
4257
4264
|
var args = [];
|
4258
4265
|
for (var _i = 1; _i < arguments.length; _i++) {
|
@@ -4271,6 +4278,7 @@ function sendAndHandleSdkError(actionName) {
|
|
4271
4278
|
* Send a message to parent. Uses nativeInterface on mobile to communicate with parent context
|
4272
4279
|
*
|
4273
4280
|
* @internal
|
4281
|
+
* Limited to Microsoft-internal use
|
4274
4282
|
*/
|
4275
4283
|
function sendMessageToParentAsync(actionName, args) {
|
4276
4284
|
if (args === void 0) { args = undefined; }
|
@@ -4279,13 +4287,19 @@ function sendMessageToParentAsync(actionName, args) {
|
|
4279
4287
|
resolve(waitForResponse(request.id));
|
4280
4288
|
});
|
4281
4289
|
}
|
4282
|
-
|
4290
|
+
/**
|
4291
|
+
* @internal
|
4292
|
+
* Limited to Microsoft-internal use
|
4293
|
+
*/
|
4283
4294
|
function waitForResponse(requestId) {
|
4284
4295
|
return new Promise(function (resolve) {
|
4285
4296
|
CommunicationPrivate.promiseCallbacks[requestId] = resolve;
|
4286
4297
|
});
|
4287
4298
|
}
|
4288
|
-
|
4299
|
+
/**
|
4300
|
+
* @internal
|
4301
|
+
* Limited to Microsoft-internal use
|
4302
|
+
*/
|
4289
4303
|
function sendMessageToParent(actionName, argsOrCallback, callback) {
|
4290
4304
|
var args;
|
4291
4305
|
if (argsOrCallback instanceof Function) {
|
@@ -4300,7 +4314,10 @@ function sendMessageToParent(actionName, argsOrCallback, callback) {
|
|
4300
4314
|
}
|
4301
4315
|
}
|
4302
4316
|
var sendMessageToParentHelperLogger = communicationLogger.extend('sendMessageToParentHelper');
|
4303
|
-
|
4317
|
+
/**
|
4318
|
+
* @internal
|
4319
|
+
* Limited to Microsoft-internal use
|
4320
|
+
*/
|
4304
4321
|
function sendMessageToParentHelper(actionName, args) {
|
4305
4322
|
var logger = sendMessageToParentHelperLogger;
|
4306
4323
|
var targetWindow = Communication.parentWindow;
|
@@ -4327,7 +4344,10 @@ function sendMessageToParentHelper(actionName, args) {
|
|
4327
4344
|
}
|
4328
4345
|
return request;
|
4329
4346
|
}
|
4330
|
-
|
4347
|
+
/**
|
4348
|
+
* @internal
|
4349
|
+
* Limited to Microsoft-internal use
|
4350
|
+
*/
|
4331
4351
|
function processMessage(evt) {
|
4332
4352
|
// Process only if we received a valid message
|
4333
4353
|
if (!evt || !evt.data || typeof evt.data !== 'object') {
|
@@ -4355,6 +4375,7 @@ function processMessage(evt) {
|
|
4355
4375
|
* Validates the message source and origin, if it should be processed
|
4356
4376
|
*
|
4357
4377
|
* @internal
|
4378
|
+
* Limited to Microsoft-internal use
|
4358
4379
|
*/
|
4359
4380
|
function shouldProcessMessage(messageSource, messageOrigin) {
|
4360
4381
|
// Process if message source is a different window and if origin is either in
|
@@ -4372,7 +4393,10 @@ function shouldProcessMessage(messageSource, messageOrigin) {
|
|
4372
4393
|
return validateOrigin(new URL(messageOrigin));
|
4373
4394
|
}
|
4374
4395
|
}
|
4375
|
-
|
4396
|
+
/**
|
4397
|
+
* @internal
|
4398
|
+
* Limited to Microsoft-internal use
|
4399
|
+
*/
|
4376
4400
|
function updateRelationships(messageSource, messageOrigin) {
|
4377
4401
|
// Determine whether the source of the message is our parent or child and update our
|
4378
4402
|
// window and origin pointer accordingly
|
@@ -4402,7 +4426,10 @@ function updateRelationships(messageSource, messageOrigin) {
|
|
4402
4426
|
flushMessageQueue(Communication.childWindow);
|
4403
4427
|
}
|
4404
4428
|
var handleParentMessageLogger = communicationLogger.extend('handleParentMessage');
|
4405
|
-
|
4429
|
+
/**
|
4430
|
+
* @internal
|
4431
|
+
* Limited to Microsoft-internal use
|
4432
|
+
*/
|
4406
4433
|
function handleParentMessage(evt) {
|
4407
4434
|
var logger = handleParentMessageLogger;
|
4408
4435
|
if ('id' in evt.data && typeof evt.data.id === 'number') {
|
@@ -4437,11 +4464,17 @@ function handleParentMessage(evt) {
|
|
4437
4464
|
logger('Received an unknown message: %O', evt);
|
4438
4465
|
}
|
4439
4466
|
}
|
4440
|
-
|
4467
|
+
/**
|
4468
|
+
* @internal
|
4469
|
+
* Limited to Microsoft-internal use
|
4470
|
+
*/
|
4441
4471
|
function isPartialResponse(evt) {
|
4442
4472
|
return evt.data.isPartialResponse === true;
|
4443
4473
|
}
|
4444
|
-
|
4474
|
+
/**
|
4475
|
+
* @internal
|
4476
|
+
* Limited to Microsoft-internal use
|
4477
|
+
*/
|
4445
4478
|
function handleChildMessage(evt) {
|
4446
4479
|
if ('id' in evt.data && 'func' in evt.data) {
|
4447
4480
|
// Try to delegate the request to the proper handler, if defined
|
@@ -4466,7 +4499,10 @@ function handleChildMessage(evt) {
|
|
4466
4499
|
}
|
4467
4500
|
}
|
4468
4501
|
}
|
4469
|
-
|
4502
|
+
/**
|
4503
|
+
* @internal
|
4504
|
+
* Limited to Microsoft-internal use
|
4505
|
+
*/
|
4470
4506
|
function getTargetMessageQueue(targetWindow) {
|
4471
4507
|
return targetWindow === Communication.parentWindow
|
4472
4508
|
? CommunicationPrivate.parentMessageQueue
|
@@ -4474,7 +4510,10 @@ function getTargetMessageQueue(targetWindow) {
|
|
4474
4510
|
? CommunicationPrivate.childMessageQueue
|
4475
4511
|
: [];
|
4476
4512
|
}
|
4477
|
-
|
4513
|
+
/**
|
4514
|
+
* @internal
|
4515
|
+
* Limited to Microsoft-internal use
|
4516
|
+
*/
|
4478
4517
|
function getTargetOrigin(targetWindow) {
|
4479
4518
|
return targetWindow === Communication.parentWindow
|
4480
4519
|
? Communication.parentOrigin
|
@@ -4483,7 +4522,10 @@ function getTargetOrigin(targetWindow) {
|
|
4483
4522
|
: null;
|
4484
4523
|
}
|
4485
4524
|
var flushMessageQueueLogger = communicationLogger.extend('flushMessageQueue');
|
4486
|
-
|
4525
|
+
/**
|
4526
|
+
* @internal
|
4527
|
+
* Limited to Microsoft-internal use
|
4528
|
+
*/
|
4487
4529
|
function flushMessageQueue(targetWindow) {
|
4488
4530
|
var targetOrigin = getTargetOrigin(targetWindow);
|
4489
4531
|
var targetMessageQueue = getTargetMessageQueue(targetWindow);
|
@@ -4494,7 +4536,10 @@ function flushMessageQueue(targetWindow) {
|
|
4494
4536
|
targetWindow.postMessage(request, targetOrigin);
|
4495
4537
|
}
|
4496
4538
|
}
|
4497
|
-
|
4539
|
+
/**
|
4540
|
+
* @internal
|
4541
|
+
* Limited to Microsoft-internal use
|
4542
|
+
*/
|
4498
4543
|
function waitForMessageQueue(targetWindow, callback) {
|
4499
4544
|
var messageQueueMonitor = Communication.currentWindow.setInterval(function () {
|
4500
4545
|
if (getTargetMessageQueue(targetWindow).length === 0) {
|
@@ -4508,6 +4553,7 @@ function waitForMessageQueue(targetWindow, callback) {
|
|
4508
4553
|
* Send a response to child for a message request that was from child
|
4509
4554
|
*
|
4510
4555
|
* @internal
|
4556
|
+
* Limited to Microsoft-internal use
|
4511
4557
|
*/
|
4512
4558
|
function sendMessageResponseToChild(id,
|
4513
4559
|
// tslint:disable-next-line:no-any
|
@@ -4525,6 +4571,7 @@ args, isPartialResponse) {
|
|
4525
4571
|
* instead of a response message to a child
|
4526
4572
|
*
|
4527
4573
|
* @internal
|
4574
|
+
* Limited to Microsoft-internal use
|
4528
4575
|
*/
|
4529
4576
|
function sendMessageEventToChild(actionName,
|
4530
4577
|
// tslint:disable-next-line: no-any
|
@@ -4541,7 +4588,10 @@ args) {
|
|
4541
4588
|
getTargetMessageQueue(targetWindow).push(customEvent);
|
4542
4589
|
}
|
4543
4590
|
}
|
4544
|
-
|
4591
|
+
/**
|
4592
|
+
* @internal
|
4593
|
+
* Limited to Microsoft-internal use
|
4594
|
+
*/
|
4545
4595
|
// tslint:disable-next-line:no-any
|
4546
4596
|
function createMessageRequest(func, args) {
|
4547
4597
|
return {
|
@@ -4551,7 +4601,10 @@ function createMessageRequest(func, args) {
|
|
4551
4601
|
args: args || [],
|
4552
4602
|
};
|
4553
4603
|
}
|
4554
|
-
|
4604
|
+
/**
|
4605
|
+
* @internal
|
4606
|
+
* Limited to Microsoft-internal use
|
4607
|
+
*/
|
4555
4608
|
// tslint:disable-next-line:no-any
|
4556
4609
|
function createMessageResponse(id, args, isPartialResponse) {
|
4557
4610
|
return {
|
@@ -4565,6 +4618,7 @@ function createMessageResponse(id, args, isPartialResponse) {
|
|
4565
4618
|
* Creates a message object without any id, used for custom actions being sent to child frame/window
|
4566
4619
|
*
|
4567
4620
|
* @internal
|
4621
|
+
* Limited to Microsoft-internal use
|
4568
4622
|
*/
|
4569
4623
|
// tslint:disable-next-line:no-any
|
4570
4624
|
function createMessageEvent(func, args) {
|
@@ -4585,19 +4639,20 @@ function createMessageEvent(func, args) {
|
|
4585
4639
|
* Namespace to interact with the logging part of the SDK.
|
4586
4640
|
* This object is used to send the app logs on demand to the host client
|
4587
4641
|
*
|
4588
|
-
* Hide from docs
|
4589
|
-
*
|
4590
4642
|
* @internal
|
4643
|
+
* Limited to Microsoft-internal use
|
4591
4644
|
*/
|
4592
4645
|
var logs;
|
4593
4646
|
(function (logs) {
|
4594
4647
|
/**
|
4595
4648
|
* @hidden
|
4596
|
-
*
|
4597
|
-
* ------
|
4649
|
+
*
|
4598
4650
|
* Registers a handler for getting app log
|
4599
4651
|
*
|
4600
4652
|
* @param handler - The handler to invoke to get the app log
|
4653
|
+
*
|
4654
|
+
* @internal
|
4655
|
+
* Limited to Microsoft-internal use
|
4601
4656
|
*/
|
4602
4657
|
function registerGetLogHandler(handler) {
|
4603
4658
|
ensureInitialized();
|
@@ -4615,6 +4670,14 @@ var logs;
|
|
4615
4670
|
}
|
4616
4671
|
}
|
4617
4672
|
logs.registerGetLogHandler = registerGetLogHandler;
|
4673
|
+
/**
|
4674
|
+
* @hidden
|
4675
|
+
*
|
4676
|
+
* @returns boolean to represent whether the logs capability is supported
|
4677
|
+
*
|
4678
|
+
* @internal
|
4679
|
+
* Limited to Microsoft-internal use
|
4680
|
+
*/
|
4618
4681
|
function isSupported() {
|
4619
4682
|
return runtime.supports.logs ? true : false;
|
4620
4683
|
}
|
@@ -4622,6 +4685,12 @@ var logs;
|
|
4622
4685
|
})(logs || (logs = {}));
|
4623
4686
|
|
4624
4687
|
;// CONCATENATED MODULE: ./src/private/interfaces.ts
|
4688
|
+
/**
|
4689
|
+
* @hidden
|
4690
|
+
*
|
4691
|
+
* @internal
|
4692
|
+
* Limited to Microsoft-internal use
|
4693
|
+
*/
|
4625
4694
|
var NotificationTypes;
|
4626
4695
|
(function (NotificationTypes) {
|
4627
4696
|
NotificationTypes["fileDownloadStart"] = "fileDownloadStart";
|
@@ -4629,7 +4698,9 @@ var NotificationTypes;
|
|
4629
4698
|
})(NotificationTypes || (NotificationTypes = {}));
|
4630
4699
|
/**
|
4631
4700
|
* @hidden
|
4632
|
-
*
|
4701
|
+
*
|
4702
|
+
* @internal
|
4703
|
+
* Limited to Microsoft-internal use
|
4633
4704
|
*/
|
4634
4705
|
var ViewerActionTypes;
|
4635
4706
|
(function (ViewerActionTypes) {
|
@@ -4639,23 +4710,154 @@ var ViewerActionTypes;
|
|
4639
4710
|
})(ViewerActionTypes || (ViewerActionTypes = {}));
|
4640
4711
|
/**
|
4641
4712
|
* @hidden
|
4642
|
-
*
|
4643
|
-
*
|
4644
|
-
|
4713
|
+
*
|
4714
|
+
* User setting changes that can be subscribed to
|
4715
|
+
*/
|
4716
|
+
var UserSettingTypes;
|
4717
|
+
(function (UserSettingTypes) {
|
4718
|
+
/**
|
4719
|
+
* @hidden
|
4720
|
+
* Use this key to subscribe to changes in user's file open preference
|
4721
|
+
*
|
4722
|
+
* @internal
|
4723
|
+
* Limited to Microsoft-internal use
|
4724
|
+
*/
|
4725
|
+
UserSettingTypes["fileOpenPreference"] = "fileOpenPreference";
|
4726
|
+
/**
|
4727
|
+
* @hidden
|
4728
|
+
* Use this key to subscribe to theme changes
|
4729
|
+
*
|
4730
|
+
* @internal
|
4731
|
+
* Limited to Microsoft-internal use
|
4732
|
+
*/
|
4733
|
+
UserSettingTypes["theme"] = "theme";
|
4734
|
+
})(UserSettingTypes || (UserSettingTypes = {}));
|
4735
|
+
|
4736
|
+
;// CONCATENATED MODULE: ./src/private/privateAPIs.ts
|
4737
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
4738
|
+
|
4739
|
+
|
4740
|
+
|
4741
|
+
|
4742
|
+
|
4743
|
+
/**
|
4744
|
+
* @hidden
|
4745
|
+
* Upload a custom App manifest directly to both team and personal scopes.
|
4746
|
+
* This method works just for the first party Apps.
|
4747
|
+
*
|
4748
|
+
* @internal
|
4749
|
+
* Limited to Microsoft-internal use
|
4750
|
+
*/
|
4751
|
+
function uploadCustomApp(manifestBlob, onComplete) {
|
4752
|
+
ensureInitialized();
|
4753
|
+
sendMessageToParent('uploadCustomApp', [manifestBlob], onComplete ? onComplete : getGenericOnCompleteHandler());
|
4754
|
+
}
|
4755
|
+
/**
|
4756
|
+
* @hidden
|
4757
|
+
* Sends a custom action MessageRequest to host or parent window
|
4758
|
+
*
|
4759
|
+
* @param actionName - Specifies name of the custom action to be sent
|
4760
|
+
* @param args - Specifies additional arguments passed to the action
|
4761
|
+
* @param callback - Optionally specify a callback to receive response parameters from the parent
|
4762
|
+
* @returns id of sent message
|
4763
|
+
*
|
4764
|
+
* @internal
|
4765
|
+
* Limited to Microsoft-internal use
|
4766
|
+
*/
|
4767
|
+
function sendCustomMessage(actionName,
|
4768
|
+
// tslint:disable-next-line:no-any
|
4769
|
+
args,
|
4770
|
+
// tslint:disable-next-line:no-any
|
4771
|
+
callback) {
|
4772
|
+
ensureInitialized();
|
4773
|
+
sendMessageToParent(actionName, args, callback);
|
4774
|
+
}
|
4775
|
+
/**
|
4776
|
+
* @hidden
|
4777
|
+
* Sends a custom action MessageEvent to a child iframe/window, only if you are not using auth popup.
|
4778
|
+
* Otherwise it will go to the auth popup (which becomes the child)
|
4779
|
+
*
|
4780
|
+
* @param actionName - Specifies name of the custom action to be sent
|
4781
|
+
* @param args - Specifies additional arguments passed to the action
|
4782
|
+
* @returns id of sent message
|
4783
|
+
*
|
4784
|
+
* @internal
|
4785
|
+
* Limited to Microsoft-internal use
|
4786
|
+
*/
|
4787
|
+
function sendCustomEvent(actionName,
|
4788
|
+
// tslint:disable-next-line:no-any
|
4789
|
+
args) {
|
4790
|
+
ensureInitialized();
|
4791
|
+
//validate childWindow
|
4792
|
+
if (!Communication.childWindow) {
|
4793
|
+
throw new Error('The child window has not yet been initialized or is not present');
|
4794
|
+
}
|
4795
|
+
sendMessageEventToChild(actionName, args);
|
4796
|
+
}
|
4797
|
+
/**
|
4798
|
+
* @hidden
|
4799
|
+
* Adds a handler for an action sent by a child window or parent window
|
4800
|
+
*
|
4801
|
+
* @param actionName - Specifies name of the action message to handle
|
4802
|
+
* @param customHandler - The callback to invoke when the action message is received. The return value is sent to the child
|
4803
|
+
*
|
4804
|
+
* @internal
|
4805
|
+
* Limited to Microsoft-internal use
|
4806
|
+
*/
|
4807
|
+
function registerCustomHandler(actionName, customHandler) {
|
4808
|
+
var _this = this;
|
4809
|
+
ensureInitialized();
|
4810
|
+
registerHandler(actionName, function () {
|
4811
|
+
var args = [];
|
4812
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
4813
|
+
args[_i] = arguments[_i];
|
4814
|
+
}
|
4815
|
+
return customHandler.apply(_this, args);
|
4816
|
+
});
|
4817
|
+
}
|
4818
|
+
/**
|
4819
|
+
* @hidden
|
4820
|
+
* register a handler to be called when a user setting changes. The changed setting type & value is provided in the callback.
|
4821
|
+
*
|
4822
|
+
* @param settingTypes - List of user setting changes to subscribe
|
4823
|
+
* @param handler - When a subscribed setting is updated this handler is called
|
4824
|
+
*
|
4825
|
+
* @internal
|
4826
|
+
* Limited to Microsoft-internal use
|
4827
|
+
*/
|
4828
|
+
function registerUserSettingsChangeHandler(settingTypes, handler) {
|
4829
|
+
ensureInitialized();
|
4830
|
+
registerHandler('userSettingsChange', handler, true, [settingTypes]);
|
4831
|
+
}
|
4832
|
+
/**
|
4833
|
+
* @hidden
|
4834
|
+
* Opens a client-friendly preview of the specified file.
|
4835
|
+
*
|
4836
|
+
* @param file - The file to preview.
|
4837
|
+
*
|
4838
|
+
* @internal
|
4839
|
+
* Limited to Microsoft-internal use
|
4645
4840
|
*/
|
4646
|
-
|
4647
|
-
(
|
4648
|
-
|
4649
|
-
|
4650
|
-
|
4651
|
-
|
4652
|
-
|
4653
|
-
|
4654
|
-
|
4655
|
-
|
4656
|
-
|
4657
|
-
|
4658
|
-
|
4841
|
+
function openFilePreview(filePreviewParameters) {
|
4842
|
+
ensureInitialized(FrameContexts.content, FrameContexts.task);
|
4843
|
+
var params = [
|
4844
|
+
filePreviewParameters.entityId,
|
4845
|
+
filePreviewParameters.title,
|
4846
|
+
filePreviewParameters.description,
|
4847
|
+
filePreviewParameters.type,
|
4848
|
+
filePreviewParameters.objectUrl,
|
4849
|
+
filePreviewParameters.downloadUrl,
|
4850
|
+
filePreviewParameters.webPreviewUrl,
|
4851
|
+
filePreviewParameters.webEditUrl,
|
4852
|
+
filePreviewParameters.baseUrl,
|
4853
|
+
filePreviewParameters.editFile,
|
4854
|
+
filePreviewParameters.subEntityId,
|
4855
|
+
filePreviewParameters.viewerAction,
|
4856
|
+
filePreviewParameters.fileOpenPreference,
|
4857
|
+
filePreviewParameters.conversationId,
|
4858
|
+
];
|
4859
|
+
sendMessageToParent('openFilePreview', params);
|
4860
|
+
}
|
4659
4861
|
|
4660
4862
|
;// CONCATENATED MODULE: ./src/private/conversations.ts
|
4661
4863
|
|
@@ -4666,6 +4868,9 @@ var UserSettingTypes;
|
|
4666
4868
|
/**
|
4667
4869
|
* @hidden
|
4668
4870
|
* Namespace to interact with the conversational subEntities inside the tab
|
4871
|
+
*
|
4872
|
+
* @internal
|
4873
|
+
* Limited to Microsoft-internal use
|
4669
4874
|
*/
|
4670
4875
|
var conversations;
|
4671
4876
|
(function (conversations) {
|
@@ -4676,6 +4881,9 @@ var conversations;
|
|
4676
4881
|
* Allows the user to start or continue a conversation with each subentity inside the tab
|
4677
4882
|
*
|
4678
4883
|
* @returns Promise resolved upon completion
|
4884
|
+
*
|
4885
|
+
* @internal
|
4886
|
+
* Limited to Microsoft-internal use
|
4679
4887
|
*/
|
4680
4888
|
function openConversation(openConversationRequest) {
|
4681
4889
|
return new Promise(function (resolve) {
|
@@ -4716,9 +4924,11 @@ var conversations;
|
|
4716
4924
|
conversations.openConversation = openConversation;
|
4717
4925
|
/**
|
4718
4926
|
* @hidden
|
4719
|
-
*
|
4720
|
-
* --------------
|
4927
|
+
*
|
4721
4928
|
* Allows the user to close the conversation in the right pane
|
4929
|
+
*
|
4930
|
+
* @internal
|
4931
|
+
* Limited to Microsoft-internal use
|
4722
4932
|
*/
|
4723
4933
|
function closeConversation() {
|
4724
4934
|
ensureInitialized(FrameContexts.content);
|
@@ -4741,6 +4951,7 @@ var conversations;
|
|
4741
4951
|
* @returns Promise resolved with information on all chat members
|
4742
4952
|
*
|
4743
4953
|
* @internal
|
4954
|
+
* Limited to Microsoft-internal use
|
4744
4955
|
*/
|
4745
4956
|
function getChatMembers() {
|
4746
4957
|
return new Promise(function (resolve) {
|
@@ -4752,6 +4963,12 @@ var conversations;
|
|
4752
4963
|
});
|
4753
4964
|
}
|
4754
4965
|
conversations.getChatMembers = getChatMembers;
|
4966
|
+
/**
|
4967
|
+
* @returns boolean to represent whether conversations capability is supported
|
4968
|
+
*
|
4969
|
+
* @internal
|
4970
|
+
* Limited to Microsoft-internal use
|
4971
|
+
*/
|
4755
4972
|
function isSupported() {
|
4756
4973
|
return runtime.supports.conversations ? true : false;
|
4757
4974
|
}
|
@@ -5123,9 +5340,7 @@ var media;
|
|
5123
5340
|
}(MediaController));
|
5124
5341
|
media.VideoController = VideoController;
|
5125
5342
|
/**
|
5126
|
-
* @
|
5127
|
-
* Hide from docs
|
5128
|
-
* --------
|
5343
|
+
* @beta
|
5129
5344
|
* Events which are used to communicate between the app and the host client during the media recording flow
|
5130
5345
|
*/
|
5131
5346
|
var MediaControllerEvent;
|
@@ -5306,6 +5521,7 @@ var media;
|
|
5306
5521
|
* Helper function to create a blob from media chunks based on their sequence
|
5307
5522
|
*
|
5308
5523
|
* @internal
|
5524
|
+
* Limited to Microsoft-internal use
|
5309
5525
|
*/
|
5310
5526
|
function createFile(assembleAttachment, mimeType) {
|
5311
5527
|
if (assembleAttachment == null || mimeType == null || assembleAttachment.length <= 0) {
|
@@ -5333,6 +5549,7 @@ function createFile(assembleAttachment, mimeType) {
|
|
5333
5549
|
* Converts base 64 encoded string to byte array and then into an array of blobs
|
5334
5550
|
*
|
5335
5551
|
* @internal
|
5552
|
+
* Limited to Microsoft-internal use
|
5336
5553
|
*/
|
5337
5554
|
function decodeAttachment(attachment, mimeType) {
|
5338
5555
|
if (attachment == null || mimeType == null) {
|
@@ -5354,8 +5571,11 @@ function decodeAttachment(attachment, mimeType) {
|
|
5354
5571
|
/**
|
5355
5572
|
* @hidden
|
5356
5573
|
* Function throws an SdkError if the media call is not supported on current mobile version, else undefined.
|
5574
|
+
*
|
5357
5575
|
* @throws an SdkError if the media call is not supported
|
5576
|
+
*
|
5358
5577
|
* @internal
|
5578
|
+
* Limited to Microsoft-internal use
|
5359
5579
|
*/
|
5360
5580
|
function throwExceptionIfMediaCallIsNotSupportedOnMobile(mediaInputs) {
|
5361
5581
|
if (isMediaCallForVideoAndImageInputs(mediaInputs)) {
|
@@ -5373,6 +5593,7 @@ function throwExceptionIfMediaCallIsNotSupportedOnMobile(mediaInputs) {
|
|
5373
5593
|
* Function returns true if the app has registered to listen to video controller events, else false.
|
5374
5594
|
*
|
5375
5595
|
* @internal
|
5596
|
+
* Limited to Microsoft-internal use
|
5376
5597
|
*/
|
5377
5598
|
function isVideoControllerRegistered(mediaInputs) {
|
5378
5599
|
if (mediaInputs.mediaType == media.MediaType.Video &&
|
@@ -5387,6 +5608,7 @@ function isVideoControllerRegistered(mediaInputs) {
|
|
5387
5608
|
* Returns true if the mediaInput params are valid and false otherwise
|
5388
5609
|
*
|
5389
5610
|
* @internal
|
5611
|
+
* Limited to Microsoft-internal use
|
5390
5612
|
*/
|
5391
5613
|
function validateSelectMediaInputs(mediaInputs) {
|
5392
5614
|
if (mediaInputs == null || mediaInputs.maxMediaCount > 10) {
|
@@ -5395,7 +5617,11 @@ function validateSelectMediaInputs(mediaInputs) {
|
|
5395
5617
|
return true;
|
5396
5618
|
}
|
5397
5619
|
/**
|
5620
|
+
* @hidden
|
5398
5621
|
* Returns true if the mediaInput params are called for mediatype Image and contains Image outputs formats, false otherwise
|
5622
|
+
*
|
5623
|
+
* @internal
|
5624
|
+
* Limited to Microsoft-internal use
|
5399
5625
|
*/
|
5400
5626
|
function isMediaCallForImageOutputFormats(mediaInputs) {
|
5401
5627
|
var _a;
|
@@ -6034,8 +6260,6 @@ var meeting;
|
|
6034
6260
|
meeting.toggleIncomingClientAudio = toggleIncomingClientAudio;
|
6035
6261
|
/**
|
6036
6262
|
* @hidden
|
6037
|
-
* Hide from docs
|
6038
|
-
*
|
6039
6263
|
* Allows an app to get the meeting details for the meeting
|
6040
6264
|
*
|
6041
6265
|
* @param callback - Callback contains 2 parameters, error and meetingDetailsResponse.
|
@@ -6043,6 +6267,7 @@ var meeting;
|
|
6043
6267
|
* result can either contain a IMeetingDetailsResponse value, in case of a successful get or null when the get fails
|
6044
6268
|
*
|
6045
6269
|
* @internal
|
6270
|
+
* Limited to Microsoft-internal use
|
6046
6271
|
*/
|
6047
6272
|
function getMeetingDetails(callback) {
|
6048
6273
|
if (!callback) {
|
@@ -6061,6 +6286,7 @@ var meeting;
|
|
6061
6286
|
* authenticationTokenOfAnonymousUser can either contain a string value, incase of a successful get or null when the get fails
|
6062
6287
|
*
|
6063
6288
|
* @internal
|
6289
|
+
* Limited to Microsoft-internal use
|
6064
6290
|
*/
|
6065
6291
|
function getAuthenticationTokenForAnonymousUser(callback) {
|
6066
6292
|
if (!callback) {
|
@@ -6201,9 +6427,9 @@ var meeting;
|
|
6201
6427
|
}
|
6202
6428
|
meeting.getAppContentStageSharingState = getAppContentStageSharingState;
|
6203
6429
|
/**
|
6204
|
-
* Registers a handler for changes to paticipant speaking states.
|
6205
|
-
*
|
6206
|
-
* at a time. A subsequent registration replaces an existing registration.
|
6430
|
+
* Registers a handler for changes to paticipant speaking states. This API returns {@link ISpeakingState}, which will have isSpeakingDetected
|
6431
|
+
* and/or an error object. If any participant is speaking, isSpeakingDetected will be true. If no participants are speaking, isSpeakingDetected
|
6432
|
+
* will be false. Default value is false. Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
6207
6433
|
*
|
6208
6434
|
* @param handler The handler to invoke when the speaking state of any participant changes (start/stop speaking).
|
6209
6435
|
*/
|
@@ -6443,6 +6669,7 @@ var people;
|
|
6443
6669
|
* @returns true if the parameters are valid, false otherwise
|
6444
6670
|
*
|
6445
6671
|
* @internal
|
6672
|
+
* Limited to Microsoft-internal use
|
6446
6673
|
*/
|
6447
6674
|
function validateShowProfileRequest(showProfileRequest) {
|
6448
6675
|
if (!showProfileRequest) {
|
@@ -6470,6 +6697,7 @@ function validateShowProfileRequest(showProfileRequest) {
|
|
6470
6697
|
* @returns true if the persona is valid, false otherwise
|
6471
6698
|
*
|
6472
6699
|
* @internal
|
6700
|
+
* Limited to Microsoft-internal use
|
6473
6701
|
*/
|
6474
6702
|
function validatePersona(persona) {
|
6475
6703
|
if (!persona) {
|
@@ -6794,8 +7022,6 @@ var stageView;
|
|
6794
7022
|
;// CONCATENATED MODULE: ./src/public/webStorage.ts
|
6795
7023
|
|
6796
7024
|
|
6797
|
-
|
6798
|
-
|
6799
7025
|
/**
|
6800
7026
|
* Contains functionality to allow web apps to store data in webview cache
|
6801
7027
|
*
|
@@ -6812,10 +7038,6 @@ var webStorage;
|
|
6812
7038
|
*/
|
6813
7039
|
function isWebStorageClearedOnUserLogOut() {
|
6814
7040
|
ensureInitialized();
|
6815
|
-
// return true as web storage is always cleared on desktop.
|
6816
|
-
if (GlobalVars.hostClientType === HostClientType.desktop) {
|
6817
|
-
return true;
|
6818
|
-
}
|
6819
7041
|
return isSupported();
|
6820
7042
|
}
|
6821
7043
|
webStorage.isWebStorageClearedOnUserLogOut = isWebStorageClearedOnUserLogOut;
|
@@ -6977,11 +7199,10 @@ function initialize(callback, validMessageOrigins) {
|
|
6977
7199
|
* As of 2.0.0, please use {@link app._initialize app._initialize(hostWindow: any): void} instead.
|
6978
7200
|
*
|
6979
7201
|
* @hidden
|
6980
|
-
* Hide from docs.
|
6981
|
-
* ------
|
6982
7202
|
* Undocumented function used to set a mock window for unit tests
|
6983
7203
|
*
|
6984
7204
|
* @internal
|
7205
|
+
* Limited to Microsoft-internal use
|
6985
7206
|
*/
|
6986
7207
|
// eslint-disable-next-line
|
6987
7208
|
function _initialize(hostWindow) {
|
@@ -6992,11 +7213,10 @@ function _initialize(hostWindow) {
|
|
6992
7213
|
* As of 2.0.0, please use {@link app._uninitialize app._uninitialize(): void} instead.
|
6993
7214
|
*
|
6994
7215
|
* @hidden
|
6995
|
-
* Hide from docs.
|
6996
|
-
* ------
|
6997
7216
|
* Undocumented function used to clear state between unit tests
|
6998
7217
|
*
|
6999
7218
|
* @internal
|
7219
|
+
* Limited to Microsoft-internal use
|
7000
7220
|
*/
|
7001
7221
|
function _uninitialize() {
|
7002
7222
|
app._uninitialize();
|
@@ -7237,7 +7457,7 @@ function setFrameContext(frameContext) {
|
|
7237
7457
|
* @deprecated
|
7238
7458
|
* As of 2.0.0, please use {@link pages.initializeWithFrameContext pages.initializeWithFrameContext(frameInfo: FrameInfo, callback?: () => void, validMessageOrigins?: string[],): void} instead.
|
7239
7459
|
*
|
7240
|
-
*
|
7460
|
+
* Initialize with FrameContext
|
7241
7461
|
*
|
7242
7462
|
* @param frameContext - FrameContext information to be set
|
7243
7463
|
* @param callback - The optional callback to be invoked be invoked after initilizing the frame context
|
@@ -7254,6 +7474,8 @@ function initializeWithFrameContext(frameContext, callback, validMessageOrigins)
|
|
7254
7474
|
*/
|
7255
7475
|
function transformAppContextToLegacyContext(appContext) {
|
7256
7476
|
var context = {
|
7477
|
+
// actionInfo
|
7478
|
+
actionInfo: appContext.actionInfo,
|
7257
7479
|
// app
|
7258
7480
|
locale: appContext.app.locale,
|
7259
7481
|
appSessionId: appContext.app.sessionId,
|
@@ -7631,7 +7853,7 @@ var tasks;
|
|
7631
7853
|
tasks.getBotUrlDialogInfoFromTaskInfo = getBotUrlDialogInfoFromTaskInfo;
|
7632
7854
|
/**
|
7633
7855
|
* Sets the height and width of the {@link TaskInfo} object to the original height and width, if initially specified,
|
7634
|
-
* otherwise uses the height and width values corresponding to {@link TaskModuleDimension.Small}
|
7856
|
+
* otherwise uses the height and width values corresponding to {@link TaskModuleDimension | TaskModuleDimension.Small}
|
7635
7857
|
* @param taskInfo TaskInfo object from which to extract size info, if specified
|
7636
7858
|
* @returns TaskInfo with height and width specified
|
7637
7859
|
*/
|
@@ -7683,17 +7905,21 @@ var tasks;
|
|
7683
7905
|
|
7684
7906
|
/**
|
7685
7907
|
* @hidden
|
7686
|
-
*
|
7687
|
-
* ------
|
7908
|
+
*
|
7688
7909
|
* Namespace to interact with the files specific part of the SDK.
|
7910
|
+
*
|
7911
|
+
* @internal
|
7912
|
+
* Limited to Microsoft-internal use
|
7689
7913
|
*/
|
7690
7914
|
var files;
|
7691
7915
|
(function (files_1) {
|
7692
7916
|
/**
|
7693
7917
|
* @hidden
|
7694
|
-
*
|
7695
|
-
* ------
|
7918
|
+
*
|
7696
7919
|
* Cloud storage providers registered with Microsoft Teams
|
7920
|
+
*
|
7921
|
+
* @internal
|
7922
|
+
* Limited to Microsoft-internal use
|
7697
7923
|
*/
|
7698
7924
|
var CloudStorageProvider;
|
7699
7925
|
(function (CloudStorageProvider) {
|
@@ -7706,9 +7932,11 @@ var files;
|
|
7706
7932
|
})(CloudStorageProvider = files_1.CloudStorageProvider || (files_1.CloudStorageProvider = {}));
|
7707
7933
|
/**
|
7708
7934
|
* @hidden
|
7709
|
-
* Hide from docs
|
7710
7935
|
*
|
7711
7936
|
* Cloud storage provider type enums
|
7937
|
+
*
|
7938
|
+
* @internal
|
7939
|
+
* Limited to Microsoft-internal use
|
7712
7940
|
*/
|
7713
7941
|
var CloudStorageProviderType;
|
7714
7942
|
(function (CloudStorageProviderType) {
|
@@ -7725,9 +7953,11 @@ var files;
|
|
7725
7953
|
})(CloudStorageProviderType = files_1.CloudStorageProviderType || (files_1.CloudStorageProviderType = {}));
|
7726
7954
|
/**
|
7727
7955
|
* @hidden
|
7728
|
-
* Hide from docs
|
7729
7956
|
*
|
7730
7957
|
* Special Document Library enum
|
7958
|
+
*
|
7959
|
+
* @internal
|
7960
|
+
* Limited to Microsoft-internal use
|
7731
7961
|
*/
|
7732
7962
|
var SpecialDocumentLibraryType;
|
7733
7963
|
(function (SpecialDocumentLibraryType) {
|
@@ -7735,9 +7965,11 @@ var files;
|
|
7735
7965
|
})(SpecialDocumentLibraryType = files_1.SpecialDocumentLibraryType || (files_1.SpecialDocumentLibraryType = {}));
|
7736
7966
|
/**
|
7737
7967
|
* @hidden
|
7738
|
-
* Hide from docs
|
7739
7968
|
*
|
7740
7969
|
* Document Library Access enum
|
7970
|
+
*
|
7971
|
+
* @internal
|
7972
|
+
* Limited to Microsoft-internal use
|
7741
7973
|
*/
|
7742
7974
|
var DocumentLibraryAccessType;
|
7743
7975
|
(function (DocumentLibraryAccessType) {
|
@@ -7745,9 +7977,11 @@ var files;
|
|
7745
7977
|
})(DocumentLibraryAccessType = files_1.DocumentLibraryAccessType || (files_1.DocumentLibraryAccessType = {}));
|
7746
7978
|
/**
|
7747
7979
|
* @hidden
|
7748
|
-
* Hide from docs
|
7749
7980
|
*
|
7750
7981
|
* Download status enum
|
7982
|
+
*
|
7983
|
+
* @internal
|
7984
|
+
* Limited to Microsoft-internal use
|
7751
7985
|
*/
|
7752
7986
|
var FileDownloadStatus;
|
7753
7987
|
(function (FileDownloadStatus) {
|
@@ -7760,6 +7994,9 @@ var files;
|
|
7760
7994
|
* Hide from docs
|
7761
7995
|
*
|
7762
7996
|
* Actions specific to 3P cloud storage provider file and / or account
|
7997
|
+
*
|
7998
|
+
* @internal
|
7999
|
+
* Limited to Microsoft-internal use
|
7763
8000
|
*/
|
7764
8001
|
var CloudStorageProviderFileAction;
|
7765
8002
|
(function (CloudStorageProviderFileAction) {
|
@@ -7774,6 +8011,9 @@ var files;
|
|
7774
8011
|
* Gets a list of cloud storage folders added to the channel
|
7775
8012
|
* @param channelId - ID of the channel whose cloud storage folders should be retrieved
|
7776
8013
|
* @param callback - Callback that will be triggered post folders load
|
8014
|
+
*
|
8015
|
+
* @internal
|
8016
|
+
* Limited to Microsoft-internal use
|
7777
8017
|
*/
|
7778
8018
|
function getCloudStorageFolders(channelId, callback) {
|
7779
8019
|
ensureInitialized(FrameContexts.content);
|
@@ -7794,6 +8034,9 @@ var files;
|
|
7794
8034
|
*
|
7795
8035
|
* @param channelId - ID of the channel to add cloud storage folder
|
7796
8036
|
* @param callback - Callback that will be triggered post add folder flow is compelete
|
8037
|
+
*
|
8038
|
+
* @internal
|
8039
|
+
* Limited to Microsoft-internal use
|
7797
8040
|
*/
|
7798
8041
|
function addCloudStorageFolder(channelId, callback) {
|
7799
8042
|
ensureInitialized(FrameContexts.content);
|
@@ -7816,6 +8059,9 @@ var files;
|
|
7816
8059
|
* @param channelId - ID of the channel where folder is to be deleted
|
7817
8060
|
* @param folderToDelete - cloud storage folder to be deleted
|
7818
8061
|
* @param callback - Callback that will be triggered post delete
|
8062
|
+
*
|
8063
|
+
* @internal
|
8064
|
+
* Limited to Microsoft-internal use
|
7819
8065
|
*/
|
7820
8066
|
function deleteCloudStorageFolder(channelId, folderToDelete, callback) {
|
7821
8067
|
ensureInitialized(FrameContexts.content);
|
@@ -7841,6 +8087,9 @@ var files;
|
|
7841
8087
|
* @param folder - Cloud storage folder (CloudStorageFolder) / sub directory (CloudStorageFolderItem)
|
7842
8088
|
* @param providerCode - Code of the cloud storage folder provider
|
7843
8089
|
* @param callback - Callback that will be triggered post contents are loaded
|
8090
|
+
*
|
8091
|
+
* @internal
|
8092
|
+
* Limited to Microsoft-internal use
|
7844
8093
|
*/
|
7845
8094
|
function getCloudStorageFolderContents(folder, providerCode, callback) {
|
7846
8095
|
ensureInitialized(FrameContexts.content);
|
@@ -7866,6 +8115,9 @@ var files;
|
|
7866
8115
|
* @param file - cloud storage file that should be opened
|
7867
8116
|
* @param providerCode - Code of the cloud storage folder provider
|
7868
8117
|
* @param fileOpenPreference - Whether file should be opened in web/inline
|
8118
|
+
*
|
8119
|
+
* @internal
|
8120
|
+
* Limited to Microsoft-internal use
|
7869
8121
|
*/
|
7870
8122
|
function openCloudStorageFile(file, providerCode, fileOpenPreference) {
|
7871
8123
|
ensureInitialized(FrameContexts.content);
|
@@ -7884,6 +8136,9 @@ var files;
|
|
7884
8136
|
* third party cloud storage accounts that the tenant supports
|
7885
8137
|
* @param excludeAddedProviders: return a list of support third party
|
7886
8138
|
* cloud storages that hasn't been added yet.
|
8139
|
+
*
|
8140
|
+
* @internal
|
8141
|
+
* Limited to Microsoft-internal use
|
7887
8142
|
*/
|
7888
8143
|
function getExternalProviders(excludeAddedProviders, callback) {
|
7889
8144
|
if (excludeAddedProviders === void 0) { excludeAddedProviders = false; }
|
@@ -7898,6 +8153,9 @@ var files;
|
|
7898
8153
|
* @hidden
|
7899
8154
|
* Allow 1st party apps to call this function to move files
|
7900
8155
|
* among SharePoint and third party cloud storages.
|
8156
|
+
*
|
8157
|
+
* @internal
|
8158
|
+
* Limited to Microsoft-internal use
|
7901
8159
|
*/
|
7902
8160
|
function copyMoveFiles(selectedFiles, providerCode, destinationFolder, destinationProviderCode, isMove, callback) {
|
7903
8161
|
if (isMove === void 0) { isMove = false; }
|
@@ -7927,6 +8185,9 @@ var files;
|
|
7927
8185
|
*
|
7928
8186
|
* Gets list of downloads for current user
|
7929
8187
|
* @param callback Callback that will be triggered post downloads load
|
8188
|
+
*
|
8189
|
+
* @internal
|
8190
|
+
* Limited to Microsoft-internal use
|
7930
8191
|
*/
|
7931
8192
|
function getFileDownloads(callback) {
|
7932
8193
|
ensureInitialized(FrameContexts.content);
|
@@ -7943,6 +8204,9 @@ var files;
|
|
7943
8204
|
* Open download preference folder if fileObjectId value is undefined else open folder containing the file with id fileObjectId
|
7944
8205
|
* @param fileObjectId - Id of the file whose containing folder should be opened
|
7945
8206
|
* @param callback Callback that will be triggered post open download folder/path
|
8207
|
+
*
|
8208
|
+
* @internal
|
8209
|
+
* Limited to Microsoft-internal use
|
7946
8210
|
*/
|
7947
8211
|
function openDownloadFolder(fileObjectId, callback) {
|
7948
8212
|
if (fileObjectId === void 0) { fileObjectId = undefined; }
|
@@ -7962,6 +8226,9 @@ var files;
|
|
7962
8226
|
* for selected 3P provider is performed on success of which the selected 3P provider support is added for user
|
7963
8227
|
*
|
7964
8228
|
* @param callback Callback that will be triggered post add 3P cloud storage provider action
|
8229
|
+
*
|
8230
|
+
* @internal
|
8231
|
+
* Limited to Microsoft-internal use
|
7965
8232
|
*/
|
7966
8233
|
function addCloudStorageProvider(callback) {
|
7967
8234
|
ensureInitialized(FrameContexts.content);
|
@@ -7981,6 +8248,9 @@ var files;
|
|
7981
8248
|
*
|
7982
8249
|
* @param logoutRequest 3P cloud storage provider remove action request content
|
7983
8250
|
* @param callback Callback that will be triggered post signout of 3P cloud storage provider action
|
8251
|
+
*
|
8252
|
+
* @internal
|
8253
|
+
* Limited to Microsoft-internal use
|
7984
8254
|
*/
|
7985
8255
|
function removeCloudStorageProvider(logoutRequest, callback) {
|
7986
8256
|
ensureInitialized(FrameContexts.content);
|
@@ -8001,6 +8271,9 @@ var files;
|
|
8001
8271
|
*
|
8002
8272
|
* @param addNewFileRequest 3P cloud storage provider add action request content
|
8003
8273
|
* @param callback Callback that will be triggered post adding a new file flow is finished
|
8274
|
+
*
|
8275
|
+
* @internal
|
8276
|
+
* Limited to Microsoft-internal use
|
8004
8277
|
*/
|
8005
8278
|
function addCloudStorageProviderFile(addNewFileRequest, callback) {
|
8006
8279
|
ensureInitialized(FrameContexts.content);
|
@@ -8021,6 +8294,9 @@ var files;
|
|
8021
8294
|
*
|
8022
8295
|
* @param renameFileRequest 3P cloud storage provider rename action request content
|
8023
8296
|
* @param callback Callback that will be triggered post renaming an existing file flow is finished
|
8297
|
+
*
|
8298
|
+
* @internal
|
8299
|
+
* Limited to Microsoft-internal use
|
8024
8300
|
*/
|
8025
8301
|
function renameCloudStorageProviderFile(renameFileRequest, callback) {
|
8026
8302
|
ensureInitialized(FrameContexts.content);
|
@@ -8037,26 +8313,89 @@ var files;
|
|
8037
8313
|
* @hidden
|
8038
8314
|
* Hide from docs
|
8039
8315
|
*
|
8040
|
-
* Initiates the 3P cloud storage
|
8316
|
+
* Initiates the delete 3P cloud storage file(s) / folder (folder has to be empty) flow,
|
8317
|
+
* which will delete existing file(s) / folder from the given 3P provider
|
8318
|
+
*
|
8319
|
+
* @param deleteFileRequest 3P cloud storage provider delete action request content
|
8320
|
+
* @param callback Callback that will be triggered post deleting existing file(s) flow is finished
|
8321
|
+
*
|
8322
|
+
* @internal
|
8323
|
+
* Limited to Microsoft-internal use
|
8324
|
+
*/
|
8325
|
+
function deleteCloudStorageProviderFile(deleteFileRequest, callback) {
|
8326
|
+
ensureInitialized(FrameContexts.content);
|
8327
|
+
if (!callback) {
|
8328
|
+
throw getSdkError(ErrorCode.INVALID_ARGUMENTS, '[files.deleteCloudStorageProviderFile] callback cannot be null');
|
8329
|
+
}
|
8330
|
+
if (!(deleteFileRequest &&
|
8331
|
+
deleteFileRequest.content &&
|
8332
|
+
deleteFileRequest.content.itemList &&
|
8333
|
+
deleteFileRequest.content.itemList.length > 0)) {
|
8334
|
+
throw getSdkError(ErrorCode.INVALID_ARGUMENTS, '[files.deleteCloudStorageProviderFile] 3P cloud storage provider request content details are missing');
|
8335
|
+
}
|
8336
|
+
sendMessageToParent('files.deleteCloudStorageProviderFile', [deleteFileRequest], callback);
|
8337
|
+
}
|
8338
|
+
files_1.deleteCloudStorageProviderFile = deleteCloudStorageProviderFile;
|
8339
|
+
/**
|
8340
|
+
* @hidden
|
8341
|
+
* Hide from docs
|
8342
|
+
*
|
8343
|
+
* Initiates the download 3P cloud storage file(s) flow,
|
8344
|
+
* which will download existing file(s) from the given 3P provider in the teams client side without sharing any file info in the callback
|
8345
|
+
*
|
8346
|
+
* @param downloadFileRequest 3P cloud storage provider download file(s) action request content
|
8347
|
+
* @param callback Callback that will be triggered post downloading existing file(s) flow is finished
|
8348
|
+
*
|
8349
|
+
* @internal
|
8350
|
+
* Limited to Microsoft-internal use
|
8351
|
+
*/
|
8352
|
+
function downloadCloudStorageProviderFile(downloadFileRequest, callback) {
|
8353
|
+
ensureInitialized(FrameContexts.content);
|
8354
|
+
if (!callback) {
|
8355
|
+
throw getSdkError(ErrorCode.INVALID_ARGUMENTS, '[files.downloadCloudStorageProviderFile] callback cannot be null');
|
8356
|
+
}
|
8357
|
+
if (!(downloadFileRequest &&
|
8358
|
+
downloadFileRequest.content &&
|
8359
|
+
downloadFileRequest.content.itemList &&
|
8360
|
+
downloadFileRequest.content.itemList.length > 0)) {
|
8361
|
+
throw getSdkError(ErrorCode.INVALID_ARGUMENTS, '[files.downloadCloudStorageProviderFile] 3P cloud storage provider request content details are missing');
|
8362
|
+
}
|
8363
|
+
sendMessageToParent('files.downloadCloudStorageProviderFile', [downloadFileRequest], callback);
|
8364
|
+
}
|
8365
|
+
files_1.downloadCloudStorageProviderFile = downloadCloudStorageProviderFile;
|
8366
|
+
/**
|
8367
|
+
* @hidden
|
8368
|
+
* Hide from docs
|
8369
|
+
*
|
8370
|
+
* Initiates the upload 3P cloud storage file(s) flow, which will upload file(s) to the given 3P provider
|
8041
8371
|
*
|
8042
|
-
*
|
8043
|
-
*
|
8044
|
-
* Delete Action : Allows deleting file(s) from the given 3P cloud storage provider
|
8372
|
+
* @param uploadFileRequest 3P cloud storage provider upload file(s) action request content
|
8373
|
+
* @param callback Callback that will be triggered post uploading file(s) flow is finished
|
8045
8374
|
*
|
8046
|
-
* @
|
8047
|
-
*
|
8375
|
+
* @internal
|
8376
|
+
* Limited to Microsoft-internal use
|
8048
8377
|
*/
|
8049
|
-
function
|
8378
|
+
function uploadCloudStorageProviderFile(uploadFileRequest, callback) {
|
8050
8379
|
ensureInitialized(FrameContexts.content);
|
8051
8380
|
if (!callback) {
|
8052
|
-
throw getSdkError(ErrorCode.INVALID_ARGUMENTS, '[files.
|
8381
|
+
throw getSdkError(ErrorCode.INVALID_ARGUMENTS, '[files.uploadCloudStorageProviderFile] callback cannot be null');
|
8382
|
+
}
|
8383
|
+
if (!(uploadFileRequest &&
|
8384
|
+
uploadFileRequest.content &&
|
8385
|
+
uploadFileRequest.content.itemList &&
|
8386
|
+
uploadFileRequest.content.itemList.length > 0)) {
|
8387
|
+
throw getSdkError(ErrorCode.INVALID_ARGUMENTS, '[files.uploadCloudStorageProviderFile] 3P cloud storage provider request content details are missing');
|
8053
8388
|
}
|
8054
|
-
if (!(
|
8055
|
-
|
8389
|
+
if (!(uploadFileRequest.content.destinationFolder &&
|
8390
|
+
(uploadFileRequest.content.providerCode === CloudStorageProvider.SharePoint
|
8391
|
+
? uploadFileRequest.content.destinationFolder.isFolder
|
8392
|
+
: uploadFileRequest.content.destinationFolder.isSubdirectory) &&
|
8393
|
+
uploadFileRequest.content.destinationFolder.objectUrl)) {
|
8394
|
+
throw getSdkError(ErrorCode.INVALID_ARGUMENTS, '[files.uploadCloudStorageProviderFile] Invalid destination folder details');
|
8056
8395
|
}
|
8057
|
-
sendMessageToParent('files.
|
8396
|
+
sendMessageToParent('files.uploadCloudStorageProviderFile', [uploadFileRequest], callback);
|
8058
8397
|
}
|
8059
|
-
files_1.
|
8398
|
+
files_1.uploadCloudStorageProviderFile = uploadCloudStorageProviderFile;
|
8060
8399
|
/**
|
8061
8400
|
* @hidden
|
8062
8401
|
* Hide from docs
|
@@ -8066,13 +8405,14 @@ var files;
|
|
8066
8405
|
*
|
8067
8406
|
* @param handler - When 3P cloud storage provider list is updated this handler is called
|
8068
8407
|
*
|
8408
|
+
* @internal Limited to Microsoft-internal use
|
8069
8409
|
*/
|
8070
8410
|
function registerCloudStorageProviderListChangeHandler(handler) {
|
8071
8411
|
ensureInitialized();
|
8072
8412
|
if (!handler) {
|
8073
8413
|
throw new Error('[registerCloudStorageProviderListChangeHandler] Handler cannot be null');
|
8074
8414
|
}
|
8075
|
-
registerHandler('files.
|
8415
|
+
registerHandler('files.cloudStorageProviderListChange', handler);
|
8076
8416
|
}
|
8077
8417
|
files_1.registerCloudStorageProviderListChangeHandler = registerCloudStorageProviderListChangeHandler;
|
8078
8418
|
/**
|
@@ -8084,13 +8424,15 @@ var files;
|
|
8084
8424
|
*
|
8085
8425
|
* @param handler - When 3P cloud storage provider content is updated this handler is called
|
8086
8426
|
*
|
8427
|
+
* @internal
|
8428
|
+
* Limited to Microsoft-internal use
|
8087
8429
|
*/
|
8088
8430
|
function registerCloudStorageProviderContentChangeHandler(handler) {
|
8089
8431
|
ensureInitialized();
|
8090
8432
|
if (!handler) {
|
8091
8433
|
throw new Error('[registerCloudStorageProviderContentChangeHandler] Handler cannot be null');
|
8092
8434
|
}
|
8093
|
-
registerHandler('files.
|
8435
|
+
registerHandler('files.cloudStorageProviderContentChange', handler);
|
8094
8436
|
}
|
8095
8437
|
files_1.registerCloudStorageProviderContentChangeHandler = registerCloudStorageProviderContentChangeHandler;
|
8096
8438
|
function getSdkError(errorCode, message) {
|
@@ -8108,15 +8450,22 @@ var files;
|
|
8108
8450
|
|
8109
8451
|
|
8110
8452
|
|
8453
|
+
/**
|
8454
|
+
* @hidden
|
8455
|
+
*
|
8456
|
+
* @internal
|
8457
|
+
* Limited to Microsoft-internal use
|
8458
|
+
*/
|
8111
8459
|
var meetingRoom;
|
8112
8460
|
(function (meetingRoom) {
|
8113
8461
|
/**
|
8114
8462
|
* @hidden
|
8115
|
-
* Hide from docs
|
8116
|
-
* ------
|
8117
8463
|
* Fetch the meeting room info that paired with current client.
|
8118
8464
|
*
|
8119
8465
|
* @returns Promise resolved with meeting room info or rejected with SdkError value
|
8466
|
+
*
|
8467
|
+
* @internal
|
8468
|
+
* Limited to Microsoft-internal use
|
8120
8469
|
*/
|
8121
8470
|
function getPairedMeetingRoomInfo() {
|
8122
8471
|
return new Promise(function (resolve) {
|
@@ -8130,12 +8479,13 @@ var meetingRoom;
|
|
8130
8479
|
meetingRoom.getPairedMeetingRoomInfo = getPairedMeetingRoomInfo;
|
8131
8480
|
/**
|
8132
8481
|
* @hidden
|
8133
|
-
* Hide from docs
|
8134
|
-
* ------
|
8135
8482
|
* Send a command to paired meeting room.
|
8136
8483
|
*
|
8137
8484
|
* @param commandName The command name.
|
8138
8485
|
* @returns Promise resolved upon completion or rejected with SdkError value
|
8486
|
+
*
|
8487
|
+
* @internal
|
8488
|
+
* Limited to Microsoft-internal use
|
8139
8489
|
*/
|
8140
8490
|
function sendCommandToPairedMeetingRoom(commandName) {
|
8141
8491
|
return new Promise(function (resolve) {
|
@@ -8152,12 +8502,13 @@ var meetingRoom;
|
|
8152
8502
|
meetingRoom.sendCommandToPairedMeetingRoom = sendCommandToPairedMeetingRoom;
|
8153
8503
|
/**
|
8154
8504
|
* @hidden
|
8155
|
-
* Hide from docs
|
8156
|
-
* ------
|
8157
8505
|
* Registers a handler for meeting room capabilities update.
|
8158
8506
|
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
8159
8507
|
*
|
8160
8508
|
* @param handler The handler to invoke when the capabilities of meeting room update.
|
8509
|
+
*
|
8510
|
+
* @internal
|
8511
|
+
* Limited to Microsoft-internal use
|
8161
8512
|
*/
|
8162
8513
|
function registerMeetingRoomCapabilitiesUpdateHandler(handler) {
|
8163
8514
|
if (!handler) {
|
@@ -8180,6 +8531,9 @@ var meetingRoom;
|
|
8180
8531
|
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
8181
8532
|
*
|
8182
8533
|
* @param handler The handler to invoke when the states of meeting room update.
|
8534
|
+
*
|
8535
|
+
* @internal
|
8536
|
+
* Limited to Microsoft-internal use
|
8183
8537
|
*/
|
8184
8538
|
function registerMeetingRoomStatesUpdateHandler(handler) {
|
8185
8539
|
if (!handler) {
|
@@ -8195,6 +8549,14 @@ var meetingRoom;
|
|
8195
8549
|
});
|
8196
8550
|
}
|
8197
8551
|
meetingRoom.registerMeetingRoomStatesUpdateHandler = registerMeetingRoomStatesUpdateHandler;
|
8552
|
+
/**
|
8553
|
+
* @hidden
|
8554
|
+
*
|
8555
|
+
* @returns boolean to represent whether the meetingRoom capability is supported
|
8556
|
+
*
|
8557
|
+
* @internal
|
8558
|
+
* Limited to Microsoft-internal use
|
8559
|
+
*/
|
8198
8560
|
function isSupported() {
|
8199
8561
|
return runtime.supports.meetingRoom ? true : false;
|
8200
8562
|
}
|
@@ -8210,14 +8572,13 @@ var notifications;
|
|
8210
8572
|
(function (notifications) {
|
8211
8573
|
/**
|
8212
8574
|
* @hidden
|
8213
|
-
* Hide from docs.
|
8214
|
-
* ------
|
8215
8575
|
* display notification API.
|
8216
8576
|
*
|
8217
8577
|
* @param message - Notification message.
|
8218
8578
|
* @param notificationType - Notification type
|
8219
8579
|
*
|
8220
8580
|
* @internal
|
8581
|
+
* Limited to Microsoft-internal use
|
8221
8582
|
*/
|
8222
8583
|
function showNotification(showNotificationParameters) {
|
8223
8584
|
ensureInitialized(FrameContexts.content);
|
@@ -8227,6 +8588,13 @@ var notifications;
|
|
8227
8588
|
sendMessageToParent('notifications.showNotification', [showNotificationParameters]);
|
8228
8589
|
}
|
8229
8590
|
notifications.showNotification = showNotification;
|
8591
|
+
/**
|
8592
|
+
* @hidden
|
8593
|
+
* @returns boolean to represent whether the notifications capability is supported
|
8594
|
+
*
|
8595
|
+
* @internal
|
8596
|
+
* Limited to Microsoft-internal use
|
8597
|
+
*/
|
8230
8598
|
function isSupported() {
|
8231
8599
|
return runtime.supports.notifications ? true : false;
|
8232
8600
|
}
|
@@ -8239,13 +8607,20 @@ var notifications;
|
|
8239
8607
|
|
8240
8608
|
|
8241
8609
|
|
8610
|
+
/**
|
8611
|
+
* @hidden
|
8612
|
+
*
|
8613
|
+
* @internal
|
8614
|
+
* Limited to Microsoft-internal use
|
8615
|
+
*/
|
8242
8616
|
var remoteCamera;
|
8243
8617
|
(function (remoteCamera) {
|
8244
8618
|
/**
|
8245
8619
|
* @hidden
|
8246
|
-
* Hide from docs
|
8247
|
-
* ------
|
8248
8620
|
* Enum used to indicate possible camera control commands.
|
8621
|
+
*
|
8622
|
+
* @internal
|
8623
|
+
* Limited to Microsoft-internal use
|
8249
8624
|
*/
|
8250
8625
|
var ControlCommand;
|
8251
8626
|
(function (ControlCommand) {
|
@@ -8259,9 +8634,10 @@ var remoteCamera;
|
|
8259
8634
|
})(ControlCommand = remoteCamera.ControlCommand || (remoteCamera.ControlCommand = {}));
|
8260
8635
|
/**
|
8261
8636
|
* @hidden
|
8262
|
-
* Hide from docs
|
8263
|
-
* ------
|
8264
8637
|
* Enum used to indicate the reason for the error.
|
8638
|
+
*
|
8639
|
+
* @internal
|
8640
|
+
* Limited to Microsoft-internal use
|
8265
8641
|
*/
|
8266
8642
|
var ErrorReason;
|
8267
8643
|
(function (ErrorReason) {
|
@@ -8276,9 +8652,10 @@ var remoteCamera;
|
|
8276
8652
|
})(ErrorReason = remoteCamera.ErrorReason || (remoteCamera.ErrorReason = {}));
|
8277
8653
|
/**
|
8278
8654
|
* @hidden
|
8279
|
-
* Hide from docs
|
8280
|
-
* ------
|
8281
8655
|
* Enum used to indicate the reason the session was terminated.
|
8656
|
+
*
|
8657
|
+
* @internal
|
8658
|
+
* Limited to Microsoft-internal use
|
8282
8659
|
*/
|
8283
8660
|
var SessionTerminatedReason;
|
8284
8661
|
(function (SessionTerminatedReason) {
|
@@ -8296,14 +8673,15 @@ var remoteCamera;
|
|
8296
8673
|
})(SessionTerminatedReason = remoteCamera.SessionTerminatedReason || (remoteCamera.SessionTerminatedReason = {}));
|
8297
8674
|
/**
|
8298
8675
|
* @hidden
|
8299
|
-
* Hide from docs
|
8300
|
-
* ------
|
8301
8676
|
* Fetch a list of the participants with controllable-cameras in a meeting.
|
8302
8677
|
*
|
8303
8678
|
* @param callback - Callback contains 2 parameters, error and participants.
|
8304
8679
|
* error can either contain an error of type SdkError, incase of an error, or null when fetch is successful
|
8305
8680
|
* participants can either contain an array of Participant objects, incase of a successful fetch or null when it fails
|
8306
8681
|
* participants: object that contains an array of participants with controllable-cameras
|
8682
|
+
*
|
8683
|
+
* @internal
|
8684
|
+
* Limited to Microsoft-internal use
|
8307
8685
|
*/
|
8308
8686
|
function getCapableParticipants(callback) {
|
8309
8687
|
if (!callback) {
|
@@ -8318,8 +8696,6 @@ var remoteCamera;
|
|
8318
8696
|
remoteCamera.getCapableParticipants = getCapableParticipants;
|
8319
8697
|
/**
|
8320
8698
|
* @hidden
|
8321
|
-
* Hide from docs
|
8322
|
-
* ------
|
8323
8699
|
* Request control of a participant's camera.
|
8324
8700
|
*
|
8325
8701
|
* @param participant - Participant specifies the participant to send the request for camera control.
|
@@ -8327,6 +8703,9 @@ var remoteCamera;
|
|
8327
8703
|
* error can either contain an error of type SdkError, incase of an error, or null when fetch is successful
|
8328
8704
|
* requestResponse can either contain the true/false value, incase of a successful request or null when it fails
|
8329
8705
|
* requestResponse: True means request was accepted and false means request was denied
|
8706
|
+
*
|
8707
|
+
* @internal
|
8708
|
+
* Limited to Microsoft-internal use
|
8330
8709
|
*/
|
8331
8710
|
function requestControl(participant, callback) {
|
8332
8711
|
if (!participant) {
|
@@ -8344,12 +8723,13 @@ var remoteCamera;
|
|
8344
8723
|
remoteCamera.requestControl = requestControl;
|
8345
8724
|
/**
|
8346
8725
|
* @hidden
|
8347
|
-
* Hide from docs
|
8348
|
-
* ------
|
8349
8726
|
* Send control command to the participant's camera.
|
8350
8727
|
*
|
8351
8728
|
* @param ControlCommand - ControlCommand specifies the command for controling the camera.
|
8352
8729
|
* @param callback - Callback to invoke when the command response returns.
|
8730
|
+
*
|
8731
|
+
* @internal
|
8732
|
+
* Limited to Microsoft-internal use
|
8353
8733
|
*/
|
8354
8734
|
function sendControlCommand(ControlCommand, callback) {
|
8355
8735
|
if (!ControlCommand) {
|
@@ -8367,11 +8747,12 @@ var remoteCamera;
|
|
8367
8747
|
remoteCamera.sendControlCommand = sendControlCommand;
|
8368
8748
|
/**
|
8369
8749
|
* @hidden
|
8370
|
-
* Hide from docs
|
8371
|
-
* ------
|
8372
8750
|
* Terminate the remote session
|
8373
8751
|
*
|
8374
8752
|
* @param callback - Callback to invoke when the command response returns.
|
8753
|
+
*
|
8754
|
+
* @internal
|
8755
|
+
* Limited to Microsoft-internal use
|
8375
8756
|
*/
|
8376
8757
|
function terminateSession(callback) {
|
8377
8758
|
if (!callback) {
|
@@ -8390,6 +8771,9 @@ var remoteCamera;
|
|
8390
8771
|
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
8391
8772
|
*
|
8392
8773
|
* @param handler - The handler to invoke when the list of participants with controllable-cameras changes.
|
8774
|
+
*
|
8775
|
+
* @internal
|
8776
|
+
* Limited to Microsoft-internal use
|
8393
8777
|
*/
|
8394
8778
|
function registerOnCapableParticipantsChangeHandler(handler) {
|
8395
8779
|
if (!handler) {
|
@@ -8408,6 +8792,9 @@ var remoteCamera;
|
|
8408
8792
|
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
8409
8793
|
*
|
8410
8794
|
* @param handler - The handler to invoke when there is an error from the camera handler.
|
8795
|
+
*
|
8796
|
+
* @internal
|
8797
|
+
* Limited to Microsoft-internal use
|
8411
8798
|
*/
|
8412
8799
|
function registerOnErrorHandler(handler) {
|
8413
8800
|
if (!handler) {
|
@@ -8426,6 +8813,9 @@ var remoteCamera;
|
|
8426
8813
|
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
8427
8814
|
*
|
8428
8815
|
* @param handler - The handler to invoke when the controlled device changes state.
|
8816
|
+
*
|
8817
|
+
* @internal
|
8818
|
+
* Limited to Microsoft-internal use
|
8429
8819
|
*/
|
8430
8820
|
function registerOnDeviceStateChangeHandler(handler) {
|
8431
8821
|
if (!handler) {
|
@@ -8444,6 +8834,9 @@ var remoteCamera;
|
|
8444
8834
|
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
8445
8835
|
*
|
8446
8836
|
* @param handler - The handler to invoke when the current session status changes.
|
8837
|
+
*
|
8838
|
+
* @internal
|
8839
|
+
* Limited to Microsoft-internal use
|
8447
8840
|
*/
|
8448
8841
|
function registerOnSessionStatusChangeHandler(handler) {
|
8449
8842
|
if (!handler) {
|
@@ -8456,6 +8849,13 @@ var remoteCamera;
|
|
8456
8849
|
registerHandler('remoteCamera.sessionStatusChange', handler);
|
8457
8850
|
}
|
8458
8851
|
remoteCamera.registerOnSessionStatusChangeHandler = registerOnSessionStatusChangeHandler;
|
8852
|
+
/**
|
8853
|
+
* @hidden
|
8854
|
+
* @returns boolean to represent whether the remoteCamera capability is supported
|
8855
|
+
*
|
8856
|
+
* @internal
|
8857
|
+
* Limited to Microsoft-internal use
|
8858
|
+
*/
|
8459
8859
|
function isSupported() {
|
8460
8860
|
return runtime.supports.remoteCamera ? true : false;
|
8461
8861
|
}
|
@@ -8471,6 +8871,9 @@ var remoteCamera;
|
|
8471
8871
|
/**
|
8472
8872
|
* @hidden
|
8473
8873
|
* Namespace to interact with the application entities specific part of the SDK.
|
8874
|
+
*
|
8875
|
+
* @internal
|
8876
|
+
* Limited to Microsoft-internal use
|
8474
8877
|
*/
|
8475
8878
|
var appEntity;
|
8476
8879
|
(function (appEntity_1) {
|
@@ -8486,6 +8889,9 @@ var appEntity;
|
|
8486
8889
|
* @param callback Callback that will be triggered once the app entity information is available.
|
8487
8890
|
* The callback takes two arguments: an SdkError in case something happened (i.e.
|
8488
8891
|
* no permissions to execute the API) and the app entity configuration, if available
|
8892
|
+
*
|
8893
|
+
* @internal
|
8894
|
+
* Limited to Microsoft-internal use
|
8489
8895
|
*/
|
8490
8896
|
function selectAppEntity(threadId, categories, subEntityId, callback) {
|
8491
8897
|
ensureInitialized(FrameContexts.content);
|
@@ -8502,9 +8908,14 @@ var appEntity;
|
|
8502
8908
|
}
|
8503
8909
|
appEntity_1.selectAppEntity = selectAppEntity;
|
8504
8910
|
/**
|
8911
|
+
* @hidden
|
8912
|
+
*
|
8505
8913
|
* Checks if appEntity capability is supported by the host
|
8506
8914
|
* @returns true if the appEntity capability is enabled in runtime.supports.appEntity and
|
8507
8915
|
* false if it is disabled
|
8916
|
+
*
|
8917
|
+
* @internal
|
8918
|
+
* Limited to Microsoft-internal use
|
8508
8919
|
*/
|
8509
8920
|
function isSupported() {
|
8510
8921
|
return runtime.supports.appEntity ? true : false;
|
@@ -8523,10 +8934,9 @@ var appEntity;
|
|
8523
8934
|
/**
|
8524
8935
|
* @hidden
|
8525
8936
|
* Namespace to interact with the `teams` specific part of the SDK.
|
8526
|
-
* ------
|
8527
|
-
* Hide from docs
|
8528
8937
|
*
|
8529
8938
|
* @internal
|
8939
|
+
* Limited to Microsoft-internal use
|
8530
8940
|
*/
|
8531
8941
|
var teams;
|
8532
8942
|
(function (teams) {
|
@@ -8538,11 +8948,12 @@ var teams;
|
|
8538
8948
|
})(ChannelType = teams.ChannelType || (teams.ChannelType = {}));
|
8539
8949
|
/**
|
8540
8950
|
* @hidden
|
8541
|
-
* Hide from docs
|
8542
|
-
* ------
|
8543
8951
|
* Get a list of channels belong to a Team
|
8544
8952
|
*
|
8545
8953
|
* @param groupId - a team's objectId
|
8954
|
+
*
|
8955
|
+
* @internal
|
8956
|
+
* Limited to Microsoft-internal use
|
8546
8957
|
*/
|
8547
8958
|
function getTeamChannels(groupId, callback) {
|
8548
8959
|
ensureInitialized(FrameContexts.content);
|
@@ -8565,6 +8976,9 @@ var teams;
|
|
8565
8976
|
*
|
8566
8977
|
* @param threadId - ID of the thread where the app entity will be created; if threadId is not
|
8567
8978
|
* provided, the threadId from route params will be used.
|
8979
|
+
*
|
8980
|
+
* @internal
|
8981
|
+
* Limited to Microsoft-internal use
|
8568
8982
|
*/
|
8569
8983
|
function refreshSiteUrl(threadId, callback) {
|
8570
8984
|
ensureInitialized();
|
@@ -8586,6 +9000,9 @@ var teams;
|
|
8586
9000
|
*
|
8587
9001
|
* @returns true if the teams capability is enabled in runtime.supports.teams and
|
8588
9002
|
* false if it is disabled
|
9003
|
+
*
|
9004
|
+
* @internal
|
9005
|
+
* Limited to Microsoft-internal use
|
8589
9006
|
*/
|
8590
9007
|
function isSupported() {
|
8591
9008
|
return runtime.supports.teams ? true : false;
|
@@ -8593,23 +9010,27 @@ var teams;
|
|
8593
9010
|
teams.isSupported = isSupported;
|
8594
9011
|
/**
|
8595
9012
|
* @hidden
|
8596
|
-
* Hide from docs
|
8597
|
-
* ------
|
8598
|
-
*
|
8599
9013
|
* @internal
|
9014
|
+
* Limited to Microsoft-internal use
|
8600
9015
|
*/
|
8601
9016
|
var fullTrust;
|
8602
9017
|
(function (fullTrust) {
|
9018
|
+
/**
|
9019
|
+
* @hidden
|
9020
|
+
* @internal
|
9021
|
+
* Limited to Microsoft-internal use
|
9022
|
+
*/
|
8603
9023
|
var joinedTeams;
|
8604
9024
|
(function (joinedTeams) {
|
8605
9025
|
/**
|
8606
9026
|
* @hidden
|
8607
|
-
* Hide from docs
|
8608
|
-
* ------
|
8609
9027
|
* Allows an app to retrieve information of all user joined teams
|
8610
9028
|
*
|
8611
9029
|
* @param teamInstanceParameters - Optional flags that specify whether to scope call to favorite teams
|
8612
9030
|
* @returns Promise that resolves with information about the user joined teams or rejects with an error when the operation has completed
|
9031
|
+
*
|
9032
|
+
* @internal
|
9033
|
+
* Limited to Microsoft-internal use
|
8613
9034
|
*/
|
8614
9035
|
function getUserJoinedTeams(teamInstanceParameters) {
|
8615
9036
|
return new Promise(function (resolve) {
|
@@ -8631,12 +9052,13 @@ var teams;
|
|
8631
9052
|
joinedTeams.getUserJoinedTeams = getUserJoinedTeams;
|
8632
9053
|
/**
|
8633
9054
|
* @hidden
|
8634
|
-
* Hide from docs
|
8635
|
-
* ------
|
8636
9055
|
* Checks if teams.fullTrust.joinedTeams capability is supported by the host
|
8637
9056
|
*
|
8638
9057
|
* @returns true if the teams.fullTrust.joinedTeams capability is enabled in
|
8639
9058
|
* runtime.supports.teams.fullTrust.joinedTeams and false if it is disabled
|
9059
|
+
*
|
9060
|
+
* @internal
|
9061
|
+
* Limited to Microsoft-internal use
|
8640
9062
|
*/
|
8641
9063
|
function isSupported() {
|
8642
9064
|
return runtime.supports.teams
|
@@ -8651,12 +9073,13 @@ var teams;
|
|
8651
9073
|
})(joinedTeams = fullTrust.joinedTeams || (fullTrust.joinedTeams = {}));
|
8652
9074
|
/**
|
8653
9075
|
* @hidden
|
8654
|
-
* Hide from docs
|
8655
|
-
* ------
|
8656
9076
|
* Allows an app to get the configuration setting value
|
8657
9077
|
*
|
8658
9078
|
* @param key - The key for the config setting
|
8659
9079
|
* @returns Promise that resolves with the value for the provided configuration setting or rejects with an error when the operation has completed
|
9080
|
+
*
|
9081
|
+
* @internal
|
9082
|
+
* Limited to Microsoft-internal use
|
8660
9083
|
*/
|
8661
9084
|
function getConfigSetting(key) {
|
8662
9085
|
return new Promise(function (resolve) {
|
@@ -8670,11 +9093,12 @@ var teams;
|
|
8670
9093
|
fullTrust.getConfigSetting = getConfigSetting;
|
8671
9094
|
/**
|
8672
9095
|
* @hidden
|
8673
|
-
* Hide from docs
|
8674
|
-
* ------
|
8675
9096
|
* Checks if teams.fullTrust capability is supported by the host
|
8676
9097
|
* @returns true if the teams.fullTrust capability is enabled in runtime.supports.teams.fullTrust and
|
8677
9098
|
* false if it is disabled
|
9099
|
+
*
|
9100
|
+
* @internal
|
9101
|
+
* Limited to Microsoft-internal use
|
8678
9102
|
*/
|
8679
9103
|
function isSupported() {
|
8680
9104
|
return runtime.supports.teams ? (runtime.supports.teams.fullTrust ? true : false) : false;
|