@microsoft/teams-js 2.0.0-beta.5-dev.7 → 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)));
|
@@ -4425,7 +4425,7 @@ var dialog;
|
|
4425
4425
|
function submit(result, appIds) {
|
4426
4426
|
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.task, FrameContexts.meetingStage);
|
4427
4427
|
// Send tasks.completeTask instead of tasks.submitTask message for backward compatibility with Mobile clients
|
4428
|
-
sendMessageToParent('tasks.completeTask', [result, Array.isArray(appIds) ? appIds : [appIds]]);
|
4428
|
+
sendMessageToParent('tasks.completeTask', [result, appIds ? (Array.isArray(appIds) ? appIds : [appIds]) : []]);
|
4429
4429
|
}
|
4430
4430
|
dialog.submit = submit;
|
4431
4431
|
/**
|
@@ -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
|
}
|
@@ -6687,6 +6693,7 @@ var tasks;
|
|
6687
6693
|
|
6688
6694
|
|
6689
6695
|
|
6696
|
+
|
6690
6697
|
/**
|
6691
6698
|
* @hidden
|
6692
6699
|
* Hide from docs
|
@@ -6774,6 +6781,9 @@ var files;
|
|
6774
6781
|
function getCloudStorageFolders(channelId) {
|
6775
6782
|
return new Promise(function (resolve) {
|
6776
6783
|
ensureInitialized(FrameContexts.content);
|
6784
|
+
if (!isSupported()) {
|
6785
|
+
throw errorNotSupportedOnPlatform;
|
6786
|
+
}
|
6777
6787
|
if (!channelId || channelId.length === 0) {
|
6778
6788
|
throw new Error('[files.getCloudStorageFolders] channelId name cannot be null or empty');
|
6779
6789
|
}
|
@@ -6791,6 +6801,9 @@ var files;
|
|
6791
6801
|
function addCloudStorageFolder(channelId) {
|
6792
6802
|
return new Promise(function (resolve) {
|
6793
6803
|
ensureInitialized(FrameContexts.content);
|
6804
|
+
if (!isSupported()) {
|
6805
|
+
throw errorNotSupportedOnPlatform;
|
6806
|
+
}
|
6794
6807
|
if (!channelId || channelId.length === 0) {
|
6795
6808
|
throw new Error('[files.addCloudStorageFolder] channelId name cannot be null or empty');
|
6796
6809
|
}
|
@@ -6817,6 +6830,9 @@ var files;
|
|
6817
6830
|
function deleteCloudStorageFolder(channelId, folderToDelete) {
|
6818
6831
|
return new Promise(function (resolve) {
|
6819
6832
|
ensureInitialized(FrameContexts.content);
|
6833
|
+
if (!isSupported()) {
|
6834
|
+
throw errorNotSupportedOnPlatform;
|
6835
|
+
}
|
6820
6836
|
if (!channelId) {
|
6821
6837
|
throw new Error('[files.deleteCloudStorageFolder] channelId name cannot be null or empty');
|
6822
6838
|
}
|
@@ -6839,6 +6855,9 @@ var files;
|
|
6839
6855
|
function getCloudStorageFolderContents(folder, providerCode) {
|
6840
6856
|
return new Promise(function (resolve) {
|
6841
6857
|
ensureInitialized(FrameContexts.content);
|
6858
|
+
if (!isSupported()) {
|
6859
|
+
throw errorNotSupportedOnPlatform;
|
6860
|
+
}
|
6842
6861
|
if (!folder || !providerCode) {
|
6843
6862
|
throw new Error('[files.getCloudStorageFolderContents] folder/providerCode name cannot be null or empty');
|
6844
6863
|
}
|
@@ -6861,6 +6880,9 @@ var files;
|
|
6861
6880
|
*/
|
6862
6881
|
function openCloudStorageFile(file, providerCode, fileOpenPreference) {
|
6863
6882
|
ensureInitialized(FrameContexts.content);
|
6883
|
+
if (!isSupported()) {
|
6884
|
+
throw errorNotSupportedOnPlatform;
|
6885
|
+
}
|
6864
6886
|
if (!file || !providerCode) {
|
6865
6887
|
throw new Error('[files.openCloudStorageFile] file/providerCode cannot be null or empty');
|
6866
6888
|
}
|
@@ -6880,6 +6902,9 @@ var files;
|
|
6880
6902
|
*/
|
6881
6903
|
function openFilePreview(filePreviewParameters) {
|
6882
6904
|
ensureInitialized(FrameContexts.content);
|
6905
|
+
if (!isSupported()) {
|
6906
|
+
throw errorNotSupportedOnPlatform;
|
6907
|
+
}
|
6883
6908
|
var params = [
|
6884
6909
|
filePreviewParameters.entityId,
|
6885
6910
|
filePreviewParameters.title,
|
@@ -6910,6 +6935,9 @@ var files;
|
|
6910
6935
|
if (excludeAddedProviders === void 0) { excludeAddedProviders = false; }
|
6911
6936
|
return new Promise(function (resolve) {
|
6912
6937
|
ensureInitialized(FrameContexts.content);
|
6938
|
+
if (!isSupported()) {
|
6939
|
+
throw errorNotSupportedOnPlatform;
|
6940
|
+
}
|
6913
6941
|
resolve(sendAndHandleSdkError('files.getExternalProviders', excludeAddedProviders));
|
6914
6942
|
});
|
6915
6943
|
}
|
@@ -6923,6 +6951,9 @@ var files;
|
|
6923
6951
|
if (isMove === void 0) { isMove = false; }
|
6924
6952
|
return new Promise(function (resolve) {
|
6925
6953
|
ensureInitialized(FrameContexts.content);
|
6954
|
+
if (!isSupported()) {
|
6955
|
+
throw errorNotSupportedOnPlatform;
|
6956
|
+
}
|
6926
6957
|
if (!selectedFiles || selectedFiles.length === 0) {
|
6927
6958
|
throw new Error('[files.copyMoveFiles] selectedFiles cannot be null or empty');
|
6928
6959
|
}
|
@@ -6945,6 +6976,9 @@ var files;
|
|
6945
6976
|
files_1.isSupported = isSupported;
|
6946
6977
|
function getFileDownloads(callback) {
|
6947
6978
|
ensureInitialized(FrameContexts.content);
|
6979
|
+
if (!isSupported()) {
|
6980
|
+
throw errorNotSupportedOnPlatform;
|
6981
|
+
}
|
6948
6982
|
var wrappedFunction = function () {
|
6949
6983
|
return new Promise(function (resolve) { return resolve(sendAndHandleSdkError('files.getFileDownloads', [])); });
|
6950
6984
|
};
|
@@ -6962,6 +6996,9 @@ var files;
|
|
6962
6996
|
function openDownloadFolder(fileObjectId, callback) {
|
6963
6997
|
if (fileObjectId === void 0) { fileObjectId = undefined; }
|
6964
6998
|
ensureInitialized(FrameContexts.content);
|
6999
|
+
if (!isSupported()) {
|
7000
|
+
throw errorNotSupportedOnPlatform;
|
7001
|
+
}
|
6965
7002
|
if (!callback) {
|
6966
7003
|
throw new Error('[files.openDownloadFolder] Callback cannot be null');
|
6967
7004
|
}
|