@microsoft/teams-js 2.0.0-beta.4-dev.10 → 2.0.0-beta.4-dev.11
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
@@ -751,6 +751,17 @@ export namespace files {
|
|
751
751
|
* Gets list of downloads for current user
|
752
752
|
* @param callback Callback that will be triggered post downloads load
|
753
753
|
*/
|
754
|
+
export function getFileDownloads(): Promise<IFileItem[]>;
|
755
|
+
/**
|
756
|
+
* @hidden
|
757
|
+
* Hide from docs
|
758
|
+
* ------
|
759
|
+
*
|
760
|
+
* @deprecated
|
761
|
+
* As of 2.0.0-beta.4, please use {@link file.getFileDownloads file.getFileDownloads(): Promise\<IFileItem[]\>} instead.
|
762
|
+
* Gets list of downloads for current user
|
763
|
+
* @param callback Callback that will be triggered post downloads load
|
764
|
+
*/
|
754
765
|
export function getFileDownloads(callback: (error?: SdkError, files?: IFileItem[]) => void): void;
|
755
766
|
/**
|
756
767
|
* @hidden
|
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.4-dev.
|
1124
|
+
var version = "2.0.0-beta.4-dev.11";
|
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.
|
@@ -6415,6 +6415,7 @@ var tasks;
|
|
6415
6415
|
|
6416
6416
|
|
6417
6417
|
|
6418
|
+
|
6418
6419
|
/**
|
6419
6420
|
* @hidden
|
6420
6421
|
* Hide from docs
|
@@ -6671,19 +6672,12 @@ var files;
|
|
6671
6672
|
return runtime.supports.files ? true : false;
|
6672
6673
|
}
|
6673
6674
|
files_1.isSupported = isSupported;
|
6674
|
-
/**
|
6675
|
-
* @hidden
|
6676
|
-
* Hide from docs
|
6677
|
-
* ------
|
6678
|
-
* Gets list of downloads for current user
|
6679
|
-
* @param callback Callback that will be triggered post downloads load
|
6680
|
-
*/
|
6681
6675
|
function getFileDownloads(callback) {
|
6682
6676
|
ensureInitialized(FrameContexts.content);
|
6683
|
-
|
6684
|
-
|
6685
|
-
}
|
6686
|
-
|
6677
|
+
var wrappedFunction = function () {
|
6678
|
+
return new Promise(function (resolve) { return resolve(sendAndHandleSdkError('files.getFileDownloads', [])); });
|
6679
|
+
};
|
6680
|
+
return callCallbackWithErrorOrResultFromPromiseAndReturnPromise(wrappedFunction, callback);
|
6687
6681
|
}
|
6688
6682
|
files_1.getFileDownloads = getFileDownloads;
|
6689
6683
|
/**
|