@microsoft/teams-js 2.0.0-beta.7-dev.7 → 2.0.0-beta.7-dev.10
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 +1 -1
- package/dist/MicrosoftTeams.d.ts +51 -60
- package/dist/MicrosoftTeams.js +95 -115
- 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/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Microsoft Teams JavaScript client SDK
|
2
2
|
|
3
|
-
Welcome to the Teams JavaScript client SDK! For breaking changes, please refer to our [changelog](./CHANGELOG.md) in the current `<root>/packages/teams-js` directory
|
3
|
+
Welcome to the Teams JavaScript client SDK! For breaking changes, please refer to our [changelog](./CHANGELOG.md) in the current `<root>/packages/teams-js` directory.
|
4
4
|
|
5
5
|
This JavaScript library is part of the [Microsoft Teams developer platform](https://docs.microsoft.com/en-us/microsoftteams/platform/overview?view=msteams-client-js-beta). See full [SDK reference documentation](https://docs.microsoft.com/en-us/javascript/api/overview/msteams-client?view=msteams-client-js-beta).
|
6
6
|
|
package/dist/MicrosoftTeams.d.ts
CHANGED
@@ -735,66 +735,6 @@ export namespace files {
|
|
735
735
|
export {};
|
736
736
|
}
|
737
737
|
|
738
|
-
/**
|
739
|
-
* @hidden
|
740
|
-
* Hide from docs
|
741
|
-
* ------
|
742
|
-
* @internal
|
743
|
-
*/
|
744
|
-
export namespace legacy {
|
745
|
-
namespace fullTrust {
|
746
|
-
namespace joinedTeams {
|
747
|
-
/**
|
748
|
-
* @hidden
|
749
|
-
* Hide from docs
|
750
|
-
* ------
|
751
|
-
* Allows an app to retrieve information of all user joined teams
|
752
|
-
*
|
753
|
-
* @param teamInstanceParameters - OPTIONAL Flags that specify whether to scope call to favorite teams
|
754
|
-
* @returns Promise resolved containing information about the user joined teams or rejected with error
|
755
|
-
*/
|
756
|
-
function getUserJoinedTeams(teamInstanceParameters?: TeamInstanceParameters): Promise<UserJoinedTeamsInformation>;
|
757
|
-
/**
|
758
|
-
* @hidden
|
759
|
-
* Hide from docs
|
760
|
-
* ------
|
761
|
-
* Checks if teams.fullTrust.joinedTeams capability is supported by the host
|
762
|
-
* @returns true if the teams.fullTrust.joinedTeams capability is enabled in
|
763
|
-
* runtime.supports.teams.fullTrust.joinedTeams and false if it is disabled
|
764
|
-
*/
|
765
|
-
function isSupported(): boolean;
|
766
|
-
}
|
767
|
-
/**
|
768
|
-
* @hidden
|
769
|
-
* Hide from docs
|
770
|
-
* ------
|
771
|
-
* Allows an app to get the configuration setting value
|
772
|
-
*
|
773
|
-
* @param key - The key for the config setting
|
774
|
-
* @returns Promise resolved containing the value for the provided config setting or rejected with error
|
775
|
-
*/
|
776
|
-
function getConfigSetting(key: string): Promise<string>;
|
777
|
-
/**
|
778
|
-
* @hidden
|
779
|
-
* Hide from docs
|
780
|
-
* ------
|
781
|
-
* Checks if teams.fullTrust capability is supported by the host
|
782
|
-
* @returns true if the teams.fullTrust capability is enabled in runtime.supports.teams.fullTrust and
|
783
|
-
* false if it is disabled
|
784
|
-
*/
|
785
|
-
function isSupported(): boolean;
|
786
|
-
}
|
787
|
-
/**
|
788
|
-
* @hidden
|
789
|
-
* Hide from docs
|
790
|
-
* ------
|
791
|
-
* Checks if teams capability is supported by the host
|
792
|
-
* @returns true if the teams capability is enabled in runtime.supports.teams and
|
793
|
-
* false if it is disabled
|
794
|
-
*/
|
795
|
-
function isSupported(): boolean;
|
796
|
-
}
|
797
|
-
|
798
738
|
export namespace meetingRoom {
|
799
739
|
/**
|
800
740
|
* @hidden
|
@@ -1292,10 +1232,61 @@ export namespace teams {
|
|
1292
1232
|
/**
|
1293
1233
|
* @hidden
|
1294
1234
|
* Checks if teams capability is supported by the host
|
1235
|
+
*
|
1295
1236
|
* @returns true if the teams capability is enabled in runtime.supports.teams and
|
1296
1237
|
* false if it is disabled
|
1297
1238
|
*/
|
1298
1239
|
function isSupported(): boolean;
|
1240
|
+
/**
|
1241
|
+
* @hidden
|
1242
|
+
* Hide from docs
|
1243
|
+
* ------
|
1244
|
+
*
|
1245
|
+
* @internal
|
1246
|
+
*/
|
1247
|
+
namespace fullTrust {
|
1248
|
+
namespace joinedTeams {
|
1249
|
+
/**
|
1250
|
+
* @hidden
|
1251
|
+
* Hide from docs
|
1252
|
+
* ------
|
1253
|
+
* Allows an app to retrieve information of all user joined teams
|
1254
|
+
*
|
1255
|
+
* @param teamInstanceParameters - Optional flags that specify whether to scope call to favorite teams
|
1256
|
+
* @returns Promise that resolves with information about the user joined teams or rejects with an error when the operation has completed
|
1257
|
+
*/
|
1258
|
+
function getUserJoinedTeams(teamInstanceParameters?: TeamInstanceParameters): Promise<UserJoinedTeamsInformation>;
|
1259
|
+
/**
|
1260
|
+
* @hidden
|
1261
|
+
* Hide from docs
|
1262
|
+
* ------
|
1263
|
+
* Checks if teams.fullTrust.joinedTeams capability is supported by the host
|
1264
|
+
*
|
1265
|
+
* @returns true if the teams.fullTrust.joinedTeams capability is enabled in
|
1266
|
+
* runtime.supports.teams.fullTrust.joinedTeams and false if it is disabled
|
1267
|
+
*/
|
1268
|
+
function isSupported(): boolean;
|
1269
|
+
}
|
1270
|
+
/**
|
1271
|
+
* @hidden
|
1272
|
+
* Hide from docs
|
1273
|
+
* ------
|
1274
|
+
* Allows an app to get the configuration setting value
|
1275
|
+
*
|
1276
|
+
* @param key - The key for the config setting
|
1277
|
+
* @returns Promise that resolves with the value for the provided configuration setting or rejects with an error when the operation has completed
|
1278
|
+
*/
|
1279
|
+
function getConfigSetting(key: string): Promise<string>;
|
1280
|
+
/**
|
1281
|
+
* @hidden
|
1282
|
+
* Hide from docs
|
1283
|
+
* ------
|
1284
|
+
* Checks if teams.fullTrust capability is supported by the host
|
1285
|
+
* @returns true if the teams.fullTrust capability is enabled in runtime.supports.teams.fullTrust and
|
1286
|
+
* false if it is disabled
|
1287
|
+
*/
|
1288
|
+
function isSupported(): boolean;
|
1289
|
+
}
|
1299
1290
|
}
|
1300
1291
|
|
1301
1292
|
/**
|
package/dist/MicrosoftTeams.js
CHANGED
@@ -1076,7 +1076,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
1076
1076
|
"getTabInstances": () => (/* reexport */ getTabInstances),
|
1077
1077
|
"initialize": () => (/* reexport */ initialize),
|
1078
1078
|
"initializeWithFrameContext": () => (/* reexport */ initializeWithFrameContext),
|
1079
|
-
"legacy": () => (/* reexport */ legacy),
|
1080
1079
|
"location": () => (/* reexport */ location_location),
|
1081
1080
|
"logs": () => (/* reexport */ logs),
|
1082
1081
|
"mail": () => (/* reexport */ mail),
|
@@ -1122,7 +1121,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
1122
1121
|
});
|
1123
1122
|
|
1124
1123
|
;// CONCATENATED MODULE: ./src/internal/constants.ts
|
1125
|
-
var version = "2.0.0-beta.7-dev.
|
1124
|
+
var version = "2.0.0-beta.7-dev.10";
|
1126
1125
|
/**
|
1127
1126
|
* @hidden
|
1128
1127
|
* The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
|
@@ -7410,118 +7409,6 @@ var files;
|
|
7410
7409
|
files_1.openDownloadFolder = openDownloadFolder;
|
7411
7410
|
})(files || (files = {}));
|
7412
7411
|
|
7413
|
-
;// CONCATENATED MODULE: ./src/private/legacy.ts
|
7414
|
-
|
7415
|
-
|
7416
|
-
|
7417
|
-
|
7418
|
-
|
7419
|
-
|
7420
|
-
|
7421
|
-
/**
|
7422
|
-
* @hidden
|
7423
|
-
* Hide from docs
|
7424
|
-
* ------
|
7425
|
-
* @internal
|
7426
|
-
*/
|
7427
|
-
var legacy;
|
7428
|
-
(function (legacy) {
|
7429
|
-
var fullTrust;
|
7430
|
-
(function (fullTrust) {
|
7431
|
-
var joinedTeams;
|
7432
|
-
(function (joinedTeams) {
|
7433
|
-
/**
|
7434
|
-
* @hidden
|
7435
|
-
* Hide from docs
|
7436
|
-
* ------
|
7437
|
-
* Allows an app to retrieve information of all user joined teams
|
7438
|
-
*
|
7439
|
-
* @param teamInstanceParameters - OPTIONAL Flags that specify whether to scope call to favorite teams
|
7440
|
-
* @returns Promise resolved containing information about the user joined teams or rejected with error
|
7441
|
-
*/
|
7442
|
-
function getUserJoinedTeams(teamInstanceParameters) {
|
7443
|
-
return new Promise(function (resolve) {
|
7444
|
-
ensureInitialized();
|
7445
|
-
if (!isSupported()) {
|
7446
|
-
throw errorNotSupportedOnPlatform;
|
7447
|
-
}
|
7448
|
-
if ((GlobalVars.hostClientType === HostClientType.android ||
|
7449
|
-
GlobalVars.hostClientType === HostClientType.teamsRoomsAndroid ||
|
7450
|
-
GlobalVars.hostClientType === HostClientType.teamsPhones ||
|
7451
|
-
GlobalVars.hostClientType === HostClientType.teamsDisplays) &&
|
7452
|
-
!isCurrentSDKVersionAtLeast(getUserJoinedTeamsSupportedAndroidClientVersion)) {
|
7453
|
-
var oldPlatformError = { errorCode: ErrorCode.OLD_PLATFORM };
|
7454
|
-
throw new Error(JSON.stringify(oldPlatformError));
|
7455
|
-
}
|
7456
|
-
resolve(sendAndUnwrap('getUserJoinedTeams', teamInstanceParameters));
|
7457
|
-
});
|
7458
|
-
}
|
7459
|
-
joinedTeams.getUserJoinedTeams = getUserJoinedTeams;
|
7460
|
-
/**
|
7461
|
-
* @hidden
|
7462
|
-
* Hide from docs
|
7463
|
-
* ------
|
7464
|
-
* Checks if teams.fullTrust.joinedTeams capability is supported by the host
|
7465
|
-
* @returns true if the teams.fullTrust.joinedTeams capability is enabled in
|
7466
|
-
* runtime.supports.teams.fullTrust.joinedTeams and false if it is disabled
|
7467
|
-
*/
|
7468
|
-
function isSupported() {
|
7469
|
-
return runtime.supports.teams
|
7470
|
-
? runtime.supports.teams.fullTrust
|
7471
|
-
? runtime.supports.teams.fullTrust.joinedTeams
|
7472
|
-
? true
|
7473
|
-
: false
|
7474
|
-
: false
|
7475
|
-
: false;
|
7476
|
-
}
|
7477
|
-
joinedTeams.isSupported = isSupported;
|
7478
|
-
})(joinedTeams = fullTrust.joinedTeams || (fullTrust.joinedTeams = {}));
|
7479
|
-
/**
|
7480
|
-
* @hidden
|
7481
|
-
* Hide from docs
|
7482
|
-
* ------
|
7483
|
-
* Allows an app to get the configuration setting value
|
7484
|
-
*
|
7485
|
-
* @param key - The key for the config setting
|
7486
|
-
* @returns Promise resolved containing the value for the provided config setting or rejected with error
|
7487
|
-
*/
|
7488
|
-
function getConfigSetting(key) {
|
7489
|
-
return new Promise(function (resolve) {
|
7490
|
-
ensureInitialized();
|
7491
|
-
if (!isSupported()) {
|
7492
|
-
throw errorNotSupportedOnPlatform;
|
7493
|
-
}
|
7494
|
-
resolve(sendAndUnwrap('getConfigSetting', key));
|
7495
|
-
});
|
7496
|
-
}
|
7497
|
-
fullTrust.getConfigSetting = getConfigSetting;
|
7498
|
-
/**
|
7499
|
-
* @hidden
|
7500
|
-
* Hide from docs
|
7501
|
-
* ------
|
7502
|
-
* Checks if teams.fullTrust capability is supported by the host
|
7503
|
-
* @returns true if the teams.fullTrust capability is enabled in runtime.supports.teams.fullTrust and
|
7504
|
-
* false if it is disabled
|
7505
|
-
*/
|
7506
|
-
function isSupported() {
|
7507
|
-
return runtime.supports.teams ? (runtime.supports.teams.fullTrust ? true : false) : false;
|
7508
|
-
}
|
7509
|
-
fullTrust.isSupported = isSupported;
|
7510
|
-
})(fullTrust = legacy.fullTrust || (legacy.fullTrust = {}));
|
7511
|
-
/**
|
7512
|
-
* @hidden
|
7513
|
-
* Hide from docs
|
7514
|
-
* ------
|
7515
|
-
* Checks if teams capability is supported by the host
|
7516
|
-
* @returns true if the teams capability is enabled in runtime.supports.teams and
|
7517
|
-
* false if it is disabled
|
7518
|
-
*/
|
7519
|
-
function isSupported() {
|
7520
|
-
return runtime.supports.teams ? true : false;
|
7521
|
-
}
|
7522
|
-
legacy.isSupported = isSupported;
|
7523
|
-
})(legacy || (legacy = {}));
|
7524
|
-
|
7525
7412
|
;// CONCATENATED MODULE: ./src/private/meetingRoom.ts
|
7526
7413
|
|
7527
7414
|
|
@@ -7937,6 +7824,9 @@ var appEntity;
|
|
7937
7824
|
|
7938
7825
|
|
7939
7826
|
|
7827
|
+
|
7828
|
+
|
7829
|
+
|
7940
7830
|
/**
|
7941
7831
|
* @hidden
|
7942
7832
|
* Namespace to interact with the `teams` specific part of the SDK.
|
@@ -8000,6 +7890,7 @@ var teams;
|
|
8000
7890
|
/**
|
8001
7891
|
* @hidden
|
8002
7892
|
* Checks if teams capability is supported by the host
|
7893
|
+
*
|
8003
7894
|
* @returns true if the teams capability is enabled in runtime.supports.teams and
|
8004
7895
|
* false if it is disabled
|
8005
7896
|
*/
|
@@ -8007,6 +7898,96 @@ var teams;
|
|
8007
7898
|
return runtime.supports.teams ? true : false;
|
8008
7899
|
}
|
8009
7900
|
teams.isSupported = isSupported;
|
7901
|
+
/**
|
7902
|
+
* @hidden
|
7903
|
+
* Hide from docs
|
7904
|
+
* ------
|
7905
|
+
*
|
7906
|
+
* @internal
|
7907
|
+
*/
|
7908
|
+
var fullTrust;
|
7909
|
+
(function (fullTrust) {
|
7910
|
+
var joinedTeams;
|
7911
|
+
(function (joinedTeams) {
|
7912
|
+
/**
|
7913
|
+
* @hidden
|
7914
|
+
* Hide from docs
|
7915
|
+
* ------
|
7916
|
+
* Allows an app to retrieve information of all user joined teams
|
7917
|
+
*
|
7918
|
+
* @param teamInstanceParameters - Optional flags that specify whether to scope call to favorite teams
|
7919
|
+
* @returns Promise that resolves with information about the user joined teams or rejects with an error when the operation has completed
|
7920
|
+
*/
|
7921
|
+
function getUserJoinedTeams(teamInstanceParameters) {
|
7922
|
+
return new Promise(function (resolve) {
|
7923
|
+
ensureInitialized();
|
7924
|
+
if (!isSupported()) {
|
7925
|
+
throw errorNotSupportedOnPlatform;
|
7926
|
+
}
|
7927
|
+
if ((GlobalVars.hostClientType === HostClientType.android ||
|
7928
|
+
GlobalVars.hostClientType === HostClientType.teamsRoomsAndroid ||
|
7929
|
+
GlobalVars.hostClientType === HostClientType.teamsPhones ||
|
7930
|
+
GlobalVars.hostClientType === HostClientType.teamsDisplays) &&
|
7931
|
+
!isCurrentSDKVersionAtLeast(getUserJoinedTeamsSupportedAndroidClientVersion)) {
|
7932
|
+
var oldPlatformError = { errorCode: ErrorCode.OLD_PLATFORM };
|
7933
|
+
throw new Error(JSON.stringify(oldPlatformError));
|
7934
|
+
}
|
7935
|
+
resolve(sendAndUnwrap('getUserJoinedTeams', teamInstanceParameters));
|
7936
|
+
});
|
7937
|
+
}
|
7938
|
+
joinedTeams.getUserJoinedTeams = getUserJoinedTeams;
|
7939
|
+
/**
|
7940
|
+
* @hidden
|
7941
|
+
* Hide from docs
|
7942
|
+
* ------
|
7943
|
+
* Checks if teams.fullTrust.joinedTeams capability is supported by the host
|
7944
|
+
*
|
7945
|
+
* @returns true if the teams.fullTrust.joinedTeams capability is enabled in
|
7946
|
+
* runtime.supports.teams.fullTrust.joinedTeams and false if it is disabled
|
7947
|
+
*/
|
7948
|
+
function isSupported() {
|
7949
|
+
return runtime.supports.teams
|
7950
|
+
? runtime.supports.teams.fullTrust
|
7951
|
+
? runtime.supports.teams.fullTrust.joinedTeams
|
7952
|
+
? true
|
7953
|
+
: false
|
7954
|
+
: false
|
7955
|
+
: false;
|
7956
|
+
}
|
7957
|
+
joinedTeams.isSupported = isSupported;
|
7958
|
+
})(joinedTeams = fullTrust.joinedTeams || (fullTrust.joinedTeams = {}));
|
7959
|
+
/**
|
7960
|
+
* @hidden
|
7961
|
+
* Hide from docs
|
7962
|
+
* ------
|
7963
|
+
* Allows an app to get the configuration setting value
|
7964
|
+
*
|
7965
|
+
* @param key - The key for the config setting
|
7966
|
+
* @returns Promise that resolves with the value for the provided configuration setting or rejects with an error when the operation has completed
|
7967
|
+
*/
|
7968
|
+
function getConfigSetting(key) {
|
7969
|
+
return new Promise(function (resolve) {
|
7970
|
+
ensureInitialized();
|
7971
|
+
if (!isSupported()) {
|
7972
|
+
throw errorNotSupportedOnPlatform;
|
7973
|
+
}
|
7974
|
+
resolve(sendAndUnwrap('getConfigSetting', key));
|
7975
|
+
});
|
7976
|
+
}
|
7977
|
+
fullTrust.getConfigSetting = getConfigSetting;
|
7978
|
+
/**
|
7979
|
+
* @hidden
|
7980
|
+
* Hide from docs
|
7981
|
+
* ------
|
7982
|
+
* Checks if teams.fullTrust capability is supported by the host
|
7983
|
+
* @returns true if the teams.fullTrust capability is enabled in runtime.supports.teams.fullTrust and
|
7984
|
+
* false if it is disabled
|
7985
|
+
*/
|
7986
|
+
function isSupported() {
|
7987
|
+
return runtime.supports.teams ? (runtime.supports.teams.fullTrust ? true : false) : false;
|
7988
|
+
}
|
7989
|
+
fullTrust.isSupported = isSupported;
|
7990
|
+
})(fullTrust = teams.fullTrust || (teams.fullTrust = {}));
|
8010
7991
|
})(teams || (teams = {}));
|
8011
7992
|
|
8012
7993
|
;// CONCATENATED MODULE: ./src/private/index.ts
|
@@ -8020,7 +8001,6 @@ var teams;
|
|
8020
8001
|
|
8021
8002
|
|
8022
8003
|
|
8023
|
-
|
8024
8004
|
|
8025
8005
|
;// CONCATENATED MODULE: ./src/index.ts
|
8026
8006
|
|