@microsoft/teams-js 2.0.0-beta.5-dev.9 → 2.0.0-beta.5-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/dist/MicrosoftTeams.d.ts
CHANGED
@@ -1653,7 +1653,7 @@ export enum ChannelType {
|
|
1653
1653
|
Private = "Private",
|
1654
1654
|
Shared = "Shared"
|
1655
1655
|
}
|
1656
|
-
export const errorNotSupportedOnPlatform:
|
1656
|
+
export const errorNotSupportedOnPlatform: SdkError;
|
1657
1657
|
|
1658
1658
|
/**
|
1659
1659
|
* Represents information about tabs for an app
|
package/dist/MicrosoftTeams.js
CHANGED
@@ -1121,7 +1121,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
1121
1121
|
});
|
1122
1122
|
|
1123
1123
|
;// CONCATENATED MODULE: ./src/internal/constants.ts
|
1124
|
-
var version = "2.0.0-beta.5-dev.
|
1124
|
+
var version = "2.0.0-beta.5-dev.10";
|
1125
1125
|
/**
|
1126
1126
|
* @hidden
|
1127
1127
|
* The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
|
@@ -1423,7 +1423,7 @@ var ChannelType;
|
|
1423
1423
|
ChannelType["Private"] = "Private";
|
1424
1424
|
ChannelType["Shared"] = "Shared";
|
1425
1425
|
})(ChannelType || (ChannelType = {}));
|
1426
|
-
var errorNotSupportedOnPlatform =
|
1426
|
+
var errorNotSupportedOnPlatform = { errorCode: ErrorCode.NOT_SUPPORTED_ON_PLATFORM };
|
1427
1427
|
|
1428
1428
|
// EXTERNAL MODULE: ../../node_modules/uuid/index.js
|
1429
1429
|
var uuid = __webpack_require__(22);
|
@@ -4167,7 +4167,7 @@ var conversations;
|
|
4167
4167
|
return new Promise(function (resolve) {
|
4168
4168
|
ensureInitialized(FrameContexts.content);
|
4169
4169
|
if (!isSupported()) {
|
4170
|
-
throw
|
4170
|
+
throw errorNotSupportedOnPlatform;
|
4171
4171
|
}
|
4172
4172
|
var sendPromise = sendAndHandleStatusAndReason('conversations.openConversation', {
|
4173
4173
|
title: openConversationRequest.title,
|
@@ -4209,7 +4209,7 @@ var conversations;
|
|
4209
4209
|
function closeConversation() {
|
4210
4210
|
ensureInitialized(FrameContexts.content);
|
4211
4211
|
if (!isSupported()) {
|
4212
|
-
throw
|
4212
|
+
throw errorNotSupportedOnPlatform;
|
4213
4213
|
}
|
4214
4214
|
sendMessageToParent('conversations.closeConversation');
|
4215
4215
|
removeHandler('startConversation');
|
@@ -4232,7 +4232,7 @@ var conversations;
|
|
4232
4232
|
return new Promise(function (resolve) {
|
4233
4233
|
ensureInitialized();
|
4234
4234
|
if (!isSupported()) {
|
4235
|
-
throw
|
4235
|
+
throw errorNotSupportedOnPlatform;
|
4236
4236
|
}
|
4237
4237
|
resolve(sendAndUnwrap('getChatMembers'));
|
4238
4238
|
});
|
@@ -4315,7 +4315,7 @@ var chat;
|
|
4315
4315
|
return new Promise(function (resolve) {
|
4316
4316
|
ensureInitialized(FrameContexts.content);
|
4317
4317
|
if (!isSupported()) {
|
4318
|
-
throw
|
4318
|
+
throw errorNotSupportedOnPlatform;
|
4319
4319
|
}
|
4320
4320
|
if (runtime.isLegacyTeams) {
|
4321
4321
|
resolve(sendAndHandleStatusAndReason('executeDeepLink', createTeamsDeepLinkForChat([openChatRequest.user], undefined /*topic*/, openChatRequest.message)));
|
@@ -4354,7 +4354,7 @@ var chat;
|
|
4354
4354
|
else {
|
4355
4355
|
ensureInitialized(FrameContexts.content);
|
4356
4356
|
if (!isSupported()) {
|
4357
|
-
throw
|
4357
|
+
throw errorNotSupportedOnPlatform;
|
4358
4358
|
}
|
4359
4359
|
if (runtime.isLegacyTeams) {
|
4360
4360
|
resolve(sendAndHandleStatusAndReason('executeDeepLink', createTeamsDeepLinkForChat(openChatRequest.users, openChatRequest.topic, openChatRequest.message)));
|
@@ -5239,6 +5239,9 @@ var location_location;
|
|
5239
5239
|
if (!props) {
|
5240
5240
|
throw { errorCode: ErrorCode.INVALID_ARGUMENTS };
|
5241
5241
|
}
|
5242
|
+
if (!isSupported()) {
|
5243
|
+
throw errorNotSupportedOnPlatform;
|
5244
|
+
}
|
5242
5245
|
resolve(sendAndHandleSdkError('location.getLocation', props));
|
5243
5246
|
});
|
5244
5247
|
}
|
@@ -5255,6 +5258,9 @@ var location_location;
|
|
5255
5258
|
if (!location) {
|
5256
5259
|
throw { errorCode: ErrorCode.INVALID_ARGUMENTS };
|
5257
5260
|
}
|
5261
|
+
if (!isSupported()) {
|
5262
|
+
throw errorNotSupportedOnPlatform;
|
5263
|
+
}
|
5258
5264
|
resolve(sendAndHandleSdkError('location.showLocation', location));
|
5259
5265
|
});
|
5260
5266
|
}
|
@@ -6776,7 +6782,7 @@ var files;
|
|
6776
6782
|
return new Promise(function (resolve) {
|
6777
6783
|
ensureInitialized(FrameContexts.content);
|
6778
6784
|
if (!isSupported()) {
|
6779
|
-
throw
|
6785
|
+
throw errorNotSupportedOnPlatform;
|
6780
6786
|
}
|
6781
6787
|
if (!channelId || channelId.length === 0) {
|
6782
6788
|
throw new Error('[files.getCloudStorageFolders] channelId name cannot be null or empty');
|
@@ -6796,7 +6802,7 @@ var files;
|
|
6796
6802
|
return new Promise(function (resolve) {
|
6797
6803
|
ensureInitialized(FrameContexts.content);
|
6798
6804
|
if (!isSupported()) {
|
6799
|
-
throw
|
6805
|
+
throw errorNotSupportedOnPlatform;
|
6800
6806
|
}
|
6801
6807
|
if (!channelId || channelId.length === 0) {
|
6802
6808
|
throw new Error('[files.addCloudStorageFolder] channelId name cannot be null or empty');
|
@@ -6825,7 +6831,7 @@ var files;
|
|
6825
6831
|
return new Promise(function (resolve) {
|
6826
6832
|
ensureInitialized(FrameContexts.content);
|
6827
6833
|
if (!isSupported()) {
|
6828
|
-
throw
|
6834
|
+
throw errorNotSupportedOnPlatform;
|
6829
6835
|
}
|
6830
6836
|
if (!channelId) {
|
6831
6837
|
throw new Error('[files.deleteCloudStorageFolder] channelId name cannot be null or empty');
|
@@ -6850,7 +6856,7 @@ var files;
|
|
6850
6856
|
return new Promise(function (resolve) {
|
6851
6857
|
ensureInitialized(FrameContexts.content);
|
6852
6858
|
if (!isSupported()) {
|
6853
|
-
throw
|
6859
|
+
throw errorNotSupportedOnPlatform;
|
6854
6860
|
}
|
6855
6861
|
if (!folder || !providerCode) {
|
6856
6862
|
throw new Error('[files.getCloudStorageFolderContents] folder/providerCode name cannot be null or empty');
|
@@ -6875,7 +6881,7 @@ var files;
|
|
6875
6881
|
function openCloudStorageFile(file, providerCode, fileOpenPreference) {
|
6876
6882
|
ensureInitialized(FrameContexts.content);
|
6877
6883
|
if (!isSupported()) {
|
6878
|
-
throw
|
6884
|
+
throw errorNotSupportedOnPlatform;
|
6879
6885
|
}
|
6880
6886
|
if (!file || !providerCode) {
|
6881
6887
|
throw new Error('[files.openCloudStorageFile] file/providerCode cannot be null or empty');
|
@@ -6897,7 +6903,7 @@ var files;
|
|
6897
6903
|
function openFilePreview(filePreviewParameters) {
|
6898
6904
|
ensureInitialized(FrameContexts.content);
|
6899
6905
|
if (!isSupported()) {
|
6900
|
-
throw
|
6906
|
+
throw errorNotSupportedOnPlatform;
|
6901
6907
|
}
|
6902
6908
|
var params = [
|
6903
6909
|
filePreviewParameters.entityId,
|
@@ -6930,7 +6936,7 @@ var files;
|
|
6930
6936
|
return new Promise(function (resolve) {
|
6931
6937
|
ensureInitialized(FrameContexts.content);
|
6932
6938
|
if (!isSupported()) {
|
6933
|
-
throw
|
6939
|
+
throw errorNotSupportedOnPlatform;
|
6934
6940
|
}
|
6935
6941
|
resolve(sendAndHandleSdkError('files.getExternalProviders', excludeAddedProviders));
|
6936
6942
|
});
|
@@ -6946,7 +6952,7 @@ var files;
|
|
6946
6952
|
return new Promise(function (resolve) {
|
6947
6953
|
ensureInitialized(FrameContexts.content);
|
6948
6954
|
if (!isSupported()) {
|
6949
|
-
throw
|
6955
|
+
throw errorNotSupportedOnPlatform;
|
6950
6956
|
}
|
6951
6957
|
if (!selectedFiles || selectedFiles.length === 0) {
|
6952
6958
|
throw new Error('[files.copyMoveFiles] selectedFiles cannot be null or empty');
|
@@ -6971,7 +6977,7 @@ var files;
|
|
6971
6977
|
function getFileDownloads(callback) {
|
6972
6978
|
ensureInitialized(FrameContexts.content);
|
6973
6979
|
if (!isSupported()) {
|
6974
|
-
throw
|
6980
|
+
throw errorNotSupportedOnPlatform;
|
6975
6981
|
}
|
6976
6982
|
var wrappedFunction = function () {
|
6977
6983
|
return new Promise(function (resolve) { return resolve(sendAndHandleSdkError('files.getFileDownloads', [])); });
|
@@ -6991,7 +6997,7 @@ var files;
|
|
6991
6997
|
if (fileObjectId === void 0) { fileObjectId = undefined; }
|
6992
6998
|
ensureInitialized(FrameContexts.content);
|
6993
6999
|
if (!isSupported()) {
|
6994
|
-
throw
|
7000
|
+
throw errorNotSupportedOnPlatform;
|
6995
7001
|
}
|
6996
7002
|
if (!callback) {
|
6997
7003
|
throw new Error('[files.openDownloadFolder] Callback cannot be null');
|