@microsoft/teams-js 2.3.0-beta.2 → 2.3.0
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
CHANGED
@@ -24,7 +24,7 @@ To install the stable [version](https://docs.microsoft.com/javascript/api/overvi
|
|
24
24
|
|
25
25
|
### Production
|
26
26
|
|
27
|
-
You can reference these files directly [from here](https://res.cdn.office.net/teams-js/2.
|
27
|
+
You can reference these files directly [from here](https://res.cdn.office.net/teams-js/2.3.0/js/MicrosoftTeams.min.js) or point your package manager at them.
|
28
28
|
|
29
29
|
## Usage
|
30
30
|
|
@@ -45,13 +45,13 @@ Reference the SDK inside of your `.html` page using:
|
|
45
45
|
```html
|
46
46
|
<!-- Microsoft Teams JavaScript API (via CDN) -->
|
47
47
|
<script
|
48
|
-
src="https://res.cdn.office.net/teams-js/2.
|
49
|
-
integrity="sha384-
|
48
|
+
src="https://res.cdn.office.net/teams-js/2.3.0/js/MicrosoftTeams.min.js"
|
49
|
+
integrity="sha384-LI9E631Gz4tFN2IFwM29y0lSXUgqhkoTtdiH4ghd6eNOA1lAzX9F+D8w1NnFF9xM"
|
50
50
|
crossorigin="anonymous"
|
51
51
|
></script>
|
52
52
|
|
53
53
|
<!-- Microsoft Teams JavaScript API (via npm) -->
|
54
|
-
<script src="node_modules/@microsoft/teams-js@2.
|
54
|
+
<script src="node_modules/@microsoft/teams-js@2.3.0/dist/MicrosoftTeams.min.js"></script>
|
55
55
|
|
56
56
|
<!-- Microsoft Teams JavaScript API (via local) -->
|
57
57
|
<script src="MicrosoftTeams.min.js"></script>
|
package/dist/MicrosoftTeams.d.ts
CHANGED
@@ -911,7 +911,7 @@ export namespace files {
|
|
911
911
|
/**
|
912
912
|
* The file path to uniquely identify it within the file hierarchy
|
913
913
|
*/
|
914
|
-
|
914
|
+
webkitRelativePath?: string;
|
915
915
|
}
|
916
916
|
/**
|
917
917
|
* @hidden
|
@@ -1006,6 +1006,7 @@ export namespace files {
|
|
1006
1006
|
/**
|
1007
1007
|
* @hidden
|
1008
1008
|
* Hide from docs
|
1009
|
+
* @beta
|
1009
1010
|
*
|
1010
1011
|
* Interface representing 3P cloud storage provider upload existing file(s) action
|
1011
1012
|
*
|
@@ -1137,13 +1138,16 @@ export namespace files {
|
|
1137
1138
|
* Initiates add 3P cloud storage provider flow, where a pop up window opens for user to select required
|
1138
1139
|
* 3P provider from the configured policy supported 3P provider list, following which user authentication
|
1139
1140
|
* for selected 3P provider is performed on success of which the selected 3P provider support is added for user
|
1141
|
+
* @beta
|
1140
1142
|
*
|
1141
|
-
* @param callback Callback that will be triggered post add 3P cloud storage provider action
|
1143
|
+
* @param callback Callback that will be triggered post add 3P cloud storage provider action.
|
1144
|
+
* If the error is encountered (and hence passed back), no provider value is sent back.
|
1145
|
+
* For success scenarios, error value will be passed as null and a valid provider value is sent.
|
1142
1146
|
*
|
1143
1147
|
* @internal
|
1144
1148
|
* Limited to Microsoft-internal use
|
1145
1149
|
*/
|
1146
|
-
export function addCloudStorageProvider(callback: (error?: SdkError) => void): void;
|
1150
|
+
export function addCloudStorageProvider(callback: (error?: SdkError, provider?: CloudStorageProvider) => void): void;
|
1147
1151
|
/**
|
1148
1152
|
* @hidden
|
1149
1153
|
* Hide from docs
|
@@ -1218,6 +1222,7 @@ export namespace files {
|
|
1218
1222
|
* Hide from docs
|
1219
1223
|
*
|
1220
1224
|
* Initiates the upload 3P cloud storage file(s) flow, which will upload file(s) to the given 3P provider
|
1225
|
+
* @beta
|
1221
1226
|
*
|
1222
1227
|
* @param uploadFileRequest 3P cloud storage provider upload file(s) action request content
|
1223
1228
|
* @param callback Callback that will be triggered post uploading file(s) flow is finished
|
package/dist/MicrosoftTeams.js
CHANGED
@@ -1129,7 +1129,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
1129
1129
|
});
|
1130
1130
|
|
1131
1131
|
;// CONCATENATED MODULE: ./src/internal/constants.ts
|
1132
|
-
var version = "2.3.0
|
1132
|
+
var version = "2.3.0";
|
1133
1133
|
/**
|
1134
1134
|
* @hidden
|
1135
1135
|
* The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
|
@@ -8536,8 +8536,11 @@ var files;
|
|
8536
8536
|
* Initiates add 3P cloud storage provider flow, where a pop up window opens for user to select required
|
8537
8537
|
* 3P provider from the configured policy supported 3P provider list, following which user authentication
|
8538
8538
|
* for selected 3P provider is performed on success of which the selected 3P provider support is added for user
|
8539
|
+
* @beta
|
8539
8540
|
*
|
8540
|
-
* @param callback Callback that will be triggered post add 3P cloud storage provider action
|
8541
|
+
* @param callback Callback that will be triggered post add 3P cloud storage provider action.
|
8542
|
+
* If the error is encountered (and hence passed back), no provider value is sent back.
|
8543
|
+
* For success scenarios, error value will be passed as null and a valid provider value is sent.
|
8541
8544
|
*
|
8542
8545
|
* @internal
|
8543
8546
|
* Limited to Microsoft-internal use
|
@@ -8680,6 +8683,7 @@ var files;
|
|
8680
8683
|
* Hide from docs
|
8681
8684
|
*
|
8682
8685
|
* Initiates the upload 3P cloud storage file(s) flow, which will upload file(s) to the given 3P provider
|
8686
|
+
* @beta
|
8683
8687
|
*
|
8684
8688
|
* @param uploadFileRequest 3P cloud storage provider upload file(s) action request content
|
8685
8689
|
* @param callback Callback that will be triggered post uploading file(s) flow is finished
|
@@ -8698,11 +8702,7 @@ var files;
|
|
8698
8702
|
uploadFileRequest.content.itemList.length > 0)) {
|
8699
8703
|
throw getSdkError(ErrorCode.INVALID_ARGUMENTS, '[files.uploadCloudStorageProviderFile] 3P cloud storage provider request content details are missing');
|
8700
8704
|
}
|
8701
|
-
if (!
|
8702
|
-
(uploadFileRequest.content.providerCode === CloudStorageProvider.SharePoint
|
8703
|
-
? uploadFileRequest.content.destinationFolder.isFolder
|
8704
|
-
: uploadFileRequest.content.destinationFolder.isSubdirectory) &&
|
8705
|
-
uploadFileRequest.content.destinationFolder.objectUrl)) {
|
8705
|
+
if (!uploadFileRequest.content.destinationFolder) {
|
8706
8706
|
throw getSdkError(ErrorCode.INVALID_ARGUMENTS, '[files.uploadCloudStorageProviderFile] Invalid destination folder details');
|
8707
8707
|
}
|
8708
8708
|
sendMessageToParent('files.uploadCloudStorageProviderFile', [uploadFileRequest], callback);
|