@microsoft/teams-js 2.0.0-beta.5-dev.7 → 2.0.0-beta.5-dev.8

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.
@@ -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.7";
1124
+ var version = "2.0.0-beta.5-dev.8";
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.
@@ -6687,6 +6687,7 @@ var tasks;
6687
6687
 
6688
6688
 
6689
6689
 
6690
+
6690
6691
  /**
6691
6692
  * @hidden
6692
6693
  * Hide from docs
@@ -6774,6 +6775,9 @@ var files;
6774
6775
  function getCloudStorageFolders(channelId) {
6775
6776
  return new Promise(function (resolve) {
6776
6777
  ensureInitialized(FrameContexts.content);
6778
+ if (!isSupported()) {
6779
+ throw new Error(errorNotSupportedOnPlatform);
6780
+ }
6777
6781
  if (!channelId || channelId.length === 0) {
6778
6782
  throw new Error('[files.getCloudStorageFolders] channelId name cannot be null or empty');
6779
6783
  }
@@ -6791,6 +6795,9 @@ var files;
6791
6795
  function addCloudStorageFolder(channelId) {
6792
6796
  return new Promise(function (resolve) {
6793
6797
  ensureInitialized(FrameContexts.content);
6798
+ if (!isSupported()) {
6799
+ throw new Error(errorNotSupportedOnPlatform);
6800
+ }
6794
6801
  if (!channelId || channelId.length === 0) {
6795
6802
  throw new Error('[files.addCloudStorageFolder] channelId name cannot be null or empty');
6796
6803
  }
@@ -6817,6 +6824,9 @@ var files;
6817
6824
  function deleteCloudStorageFolder(channelId, folderToDelete) {
6818
6825
  return new Promise(function (resolve) {
6819
6826
  ensureInitialized(FrameContexts.content);
6827
+ if (!isSupported()) {
6828
+ throw new Error(errorNotSupportedOnPlatform);
6829
+ }
6820
6830
  if (!channelId) {
6821
6831
  throw new Error('[files.deleteCloudStorageFolder] channelId name cannot be null or empty');
6822
6832
  }
@@ -6839,6 +6849,9 @@ var files;
6839
6849
  function getCloudStorageFolderContents(folder, providerCode) {
6840
6850
  return new Promise(function (resolve) {
6841
6851
  ensureInitialized(FrameContexts.content);
6852
+ if (!isSupported()) {
6853
+ throw new Error(errorNotSupportedOnPlatform);
6854
+ }
6842
6855
  if (!folder || !providerCode) {
6843
6856
  throw new Error('[files.getCloudStorageFolderContents] folder/providerCode name cannot be null or empty');
6844
6857
  }
@@ -6861,6 +6874,9 @@ var files;
6861
6874
  */
6862
6875
  function openCloudStorageFile(file, providerCode, fileOpenPreference) {
6863
6876
  ensureInitialized(FrameContexts.content);
6877
+ if (!isSupported()) {
6878
+ throw new Error(errorNotSupportedOnPlatform);
6879
+ }
6864
6880
  if (!file || !providerCode) {
6865
6881
  throw new Error('[files.openCloudStorageFile] file/providerCode cannot be null or empty');
6866
6882
  }
@@ -6880,6 +6896,9 @@ var files;
6880
6896
  */
6881
6897
  function openFilePreview(filePreviewParameters) {
6882
6898
  ensureInitialized(FrameContexts.content);
6899
+ if (!isSupported()) {
6900
+ throw new Error(errorNotSupportedOnPlatform);
6901
+ }
6883
6902
  var params = [
6884
6903
  filePreviewParameters.entityId,
6885
6904
  filePreviewParameters.title,
@@ -6910,6 +6929,9 @@ var files;
6910
6929
  if (excludeAddedProviders === void 0) { excludeAddedProviders = false; }
6911
6930
  return new Promise(function (resolve) {
6912
6931
  ensureInitialized(FrameContexts.content);
6932
+ if (!isSupported()) {
6933
+ throw new Error(errorNotSupportedOnPlatform);
6934
+ }
6913
6935
  resolve(sendAndHandleSdkError('files.getExternalProviders', excludeAddedProviders));
6914
6936
  });
6915
6937
  }
@@ -6923,6 +6945,9 @@ var files;
6923
6945
  if (isMove === void 0) { isMove = false; }
6924
6946
  return new Promise(function (resolve) {
6925
6947
  ensureInitialized(FrameContexts.content);
6948
+ if (!isSupported()) {
6949
+ throw new Error(errorNotSupportedOnPlatform);
6950
+ }
6926
6951
  if (!selectedFiles || selectedFiles.length === 0) {
6927
6952
  throw new Error('[files.copyMoveFiles] selectedFiles cannot be null or empty');
6928
6953
  }
@@ -6945,6 +6970,9 @@ var files;
6945
6970
  files_1.isSupported = isSupported;
6946
6971
  function getFileDownloads(callback) {
6947
6972
  ensureInitialized(FrameContexts.content);
6973
+ if (!isSupported()) {
6974
+ throw new Error(errorNotSupportedOnPlatform);
6975
+ }
6948
6976
  var wrappedFunction = function () {
6949
6977
  return new Promise(function (resolve) { return resolve(sendAndHandleSdkError('files.getFileDownloads', [])); });
6950
6978
  };
@@ -6962,6 +6990,9 @@ var files;
6962
6990
  function openDownloadFolder(fileObjectId, callback) {
6963
6991
  if (fileObjectId === void 0) { fileObjectId = undefined; }
6964
6992
  ensureInitialized(FrameContexts.content);
6993
+ if (!isSupported()) {
6994
+ throw new Error(errorNotSupportedOnPlatform);
6995
+ }
6965
6996
  if (!callback) {
6966
6997
  throw new Error('[files.openDownloadFolder] Callback cannot be null');
6967
6998
  }