@microsoft/teams-js 2.0.0 → 2.1.0-beta.2
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 +355 -25
- package/dist/MicrosoftTeams.js +341 -7
- package/dist/MicrosoftTeams.js.map +1 -1
- package/dist/MicrosoftTeams.min.js +1 -1
- package/dist/MicrosoftTeams.min.js.map +1 -1
- package/package.json +1 -33
package/dist/MicrosoftTeams.js
CHANGED
@@ -1092,6 +1092,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
1092
1092
|
"pages": () => (/* reexport */ pages),
|
1093
1093
|
"people": () => (/* reexport */ people),
|
1094
1094
|
"print": () => (/* reexport */ print),
|
1095
|
+
"profile": () => (/* reexport */ profile),
|
1095
1096
|
"registerAppButtonClickHandler": () => (/* reexport */ registerAppButtonClickHandler),
|
1096
1097
|
"registerAppButtonHoverEnterHandler": () => (/* reexport */ registerAppButtonHoverEnterHandler),
|
1097
1098
|
"registerAppButtonHoverLeaveHandler": () => (/* reexport */ registerAppButtonHoverLeaveHandler),
|
@@ -1121,7 +1122,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
1121
1122
|
});
|
1122
1123
|
|
1123
1124
|
;// CONCATENATED MODULE: ./src/internal/constants.ts
|
1124
|
-
var version = "2.0.
|
1125
|
+
var version = "2.1.0-beta.2";
|
1125
1126
|
/**
|
1126
1127
|
* @hidden
|
1127
1128
|
* The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
|
@@ -2377,6 +2378,7 @@ var runtime = {
|
|
2377
2378
|
fullTrust: undefined,
|
2378
2379
|
},
|
2379
2380
|
people: undefined,
|
2381
|
+
profile: undefined,
|
2380
2382
|
remoteCamera: undefined,
|
2381
2383
|
sharing: undefined,
|
2382
2384
|
teams: {
|
@@ -4786,7 +4788,7 @@ function createTeamsDeepLinkForAppInstallDialog(appId) {
|
|
4786
4788
|
if (!appId) {
|
4787
4789
|
throw new Error('App ID must be set when creating an app install dialog deep link');
|
4788
4790
|
}
|
4789
|
-
return teamsDeepLinkProtocol + "://" + teamsDeepLinkHost + teamsDeepLinkUrlPathForAppInstall + encodeURIComponent(appId)
|
4791
|
+
return teamsDeepLinkProtocol + "://" + teamsDeepLinkHost + teamsDeepLinkUrlPathForAppInstall + encodeURIComponent(appId);
|
4790
4792
|
}
|
4791
4793
|
|
4792
4794
|
;// CONCATENATED MODULE: ./src/public/appInstallDialog.ts
|
@@ -5687,6 +5689,19 @@ var location_location;
|
|
5687
5689
|
|
5688
5690
|
var meeting;
|
5689
5691
|
(function (meeting) {
|
5692
|
+
/**
|
5693
|
+
* Different types of meeting reactions that can be sent/received
|
5694
|
+
*
|
5695
|
+
* @beta
|
5696
|
+
*/
|
5697
|
+
var MeetingReactionType;
|
5698
|
+
(function (MeetingReactionType) {
|
5699
|
+
MeetingReactionType["like"] = "like";
|
5700
|
+
MeetingReactionType["heart"] = "heart";
|
5701
|
+
MeetingReactionType["laugh"] = "laugh";
|
5702
|
+
MeetingReactionType["surprised"] = "surprised";
|
5703
|
+
MeetingReactionType["applause"] = "applause";
|
5704
|
+
})(MeetingReactionType = meeting.MeetingReactionType || (meeting.MeetingReactionType = {}));
|
5690
5705
|
var MeetingType;
|
5691
5706
|
(function (MeetingType) {
|
5692
5707
|
MeetingType["Unknown"] = "Unknown";
|
@@ -5917,6 +5932,40 @@ var meeting;
|
|
5917
5932
|
registerHandler('meeting.speakingStateChanged', handler);
|
5918
5933
|
}
|
5919
5934
|
meeting.registerSpeakingStateChangeHandler = registerSpeakingStateChangeHandler;
|
5935
|
+
/**
|
5936
|
+
* Registers a handler for changes to the selfParticipant's (current user's) raiseHandState. If the selfParticipant raises their hand, isHandRaised
|
5937
|
+
* will be true. By default and if the selfParticipant hand is lowered, isHandRaised will be false. This API will return {@link RaiseHandStateChangedEventData}
|
5938
|
+
* that will have the raiseHandState or an error object. Only one handler can be registered at a time. A subsequent registration
|
5939
|
+
* replaces an existing registration.
|
5940
|
+
*
|
5941
|
+
* @param handler The handler to invoke when the selfParticipant's (current user's) raiseHandState changes.
|
5942
|
+
*
|
5943
|
+
* @beta
|
5944
|
+
*/
|
5945
|
+
function registerRaiseHandStateChangedHandler(handler) {
|
5946
|
+
if (!handler) {
|
5947
|
+
throw new Error('[registerRaiseHandStateChangedHandler] Handler cannot be null');
|
5948
|
+
}
|
5949
|
+
ensureInitialized(FrameContexts.sidePanel, FrameContexts.meetingStage);
|
5950
|
+
registerHandler('meeting.raiseHandStateChanged', handler);
|
5951
|
+
}
|
5952
|
+
meeting.registerRaiseHandStateChangedHandler = registerRaiseHandStateChangedHandler;
|
5953
|
+
/**
|
5954
|
+
* Registers a handler for receiving meeting reactions. When the selfParticipant (current user) successfully sends a meeting reaction and it is being rendered on the UI, the meetingReactionType will be populated. Only one handler can be registered
|
5955
|
+
* at a time. A subsequent registration replaces an existing registration.
|
5956
|
+
*
|
5957
|
+
* @param handler The handler to invoke when the selfParticipant (current user) successfully sends a meeting reaction
|
5958
|
+
*
|
5959
|
+
* @beta
|
5960
|
+
*/
|
5961
|
+
function registerMeetingReactionReceivedHandler(handler) {
|
5962
|
+
if (!handler) {
|
5963
|
+
throw new Error('[registerMeetingReactionReceivedHandler] Handler cannot be null');
|
5964
|
+
}
|
5965
|
+
ensureInitialized(FrameContexts.sidePanel, FrameContexts.meetingStage);
|
5966
|
+
registerHandler('meeting.meetingReactionReceived', handler);
|
5967
|
+
}
|
5968
|
+
meeting.registerMeetingReactionReceivedHandler = registerMeetingReactionReceivedHandler;
|
5920
5969
|
})(meeting || (meeting = {}));
|
5921
5970
|
|
5922
5971
|
;// CONCATENATED MODULE: ./src/public/monetization.ts
|
@@ -6103,6 +6152,115 @@ var people;
|
|
6103
6152
|
people_1.isSupported = isSupported;
|
6104
6153
|
})(people || (people = {}));
|
6105
6154
|
|
6155
|
+
;// CONCATENATED MODULE: ./src/internal/profileUtil.ts
|
6156
|
+
/**
|
6157
|
+
* @hidden
|
6158
|
+
* Validates the request parameters
|
6159
|
+
* @param showProfileRequest The request parameters
|
6160
|
+
* @returns true if the parameters are valid, false otherwise
|
6161
|
+
*
|
6162
|
+
* @internal
|
6163
|
+
*/
|
6164
|
+
function validateShowProfileRequest(showProfileRequest) {
|
6165
|
+
if (!showProfileRequest) {
|
6166
|
+
return [false, 'A request object is required'];
|
6167
|
+
}
|
6168
|
+
// Validate modality
|
6169
|
+
if (showProfileRequest.modality && typeof showProfileRequest.modality !== 'string') {
|
6170
|
+
return [false, 'modality must be a string'];
|
6171
|
+
}
|
6172
|
+
// Validate targetElementBoundingRect
|
6173
|
+
if (!showProfileRequest.targetElementBoundingRect ||
|
6174
|
+
typeof showProfileRequest.targetElementBoundingRect !== 'object') {
|
6175
|
+
return [false, 'targetElementBoundingRect must be a DOMRect'];
|
6176
|
+
}
|
6177
|
+
// Validate triggerType
|
6178
|
+
if (!showProfileRequest.triggerType || typeof showProfileRequest.triggerType !== 'string') {
|
6179
|
+
return [false, 'triggerType must be a valid string'];
|
6180
|
+
}
|
6181
|
+
return validatePersona(showProfileRequest.persona);
|
6182
|
+
}
|
6183
|
+
/**
|
6184
|
+
* @hidden
|
6185
|
+
* Validates the persona that is used to resolve the profile target
|
6186
|
+
* @param persona The persona object
|
6187
|
+
* @returns true if the persona is valid, false otherwise
|
6188
|
+
*
|
6189
|
+
* @internal
|
6190
|
+
*/
|
6191
|
+
function validatePersona(persona) {
|
6192
|
+
if (!persona) {
|
6193
|
+
return [false, 'persona object must be provided'];
|
6194
|
+
}
|
6195
|
+
if (persona.displayName && typeof persona.displayName !== 'string') {
|
6196
|
+
return [false, 'displayName must be a string'];
|
6197
|
+
}
|
6198
|
+
if (!persona.identifiers || typeof persona.identifiers !== 'object') {
|
6199
|
+
return [false, 'persona identifiers object must be provided'];
|
6200
|
+
}
|
6201
|
+
if (!persona.identifiers.AadObjectId && !persona.identifiers.Smtp && !persona.identifiers.Upn) {
|
6202
|
+
return [false, 'at least one valid identifier must be provided'];
|
6203
|
+
}
|
6204
|
+
if (persona.identifiers.AadObjectId && typeof persona.identifiers.AadObjectId !== 'string') {
|
6205
|
+
return [false, 'AadObjectId identifier must be a string'];
|
6206
|
+
}
|
6207
|
+
if (persona.identifiers.Smtp && typeof persona.identifiers.Smtp !== 'string') {
|
6208
|
+
return [false, 'Smtp identifier must be a string'];
|
6209
|
+
}
|
6210
|
+
if (persona.identifiers.Upn && typeof persona.identifiers.Upn !== 'string') {
|
6211
|
+
return [false, 'Upn identifier must be a string'];
|
6212
|
+
}
|
6213
|
+
return [true, undefined];
|
6214
|
+
}
|
6215
|
+
|
6216
|
+
;// CONCATENATED MODULE: ./src/public/profile.ts
|
6217
|
+
|
6218
|
+
|
6219
|
+
|
6220
|
+
|
6221
|
+
|
6222
|
+
|
6223
|
+
/**
|
6224
|
+
* Namespace for profile related APIs.
|
6225
|
+
*
|
6226
|
+
* @beta
|
6227
|
+
*/
|
6228
|
+
var profile;
|
6229
|
+
(function (profile) {
|
6230
|
+
/**
|
6231
|
+
* Opens a profile card at a specified position to show profile information about a persona.
|
6232
|
+
* @param showProfileRequest The parameters to position the card and identify the target user.
|
6233
|
+
* @returns Promise that will be fulfilled when the operation has completed
|
6234
|
+
*/
|
6235
|
+
function showProfile(showProfileRequest) {
|
6236
|
+
ensureInitialized(FrameContexts.content);
|
6237
|
+
return new Promise(function (resolve) {
|
6238
|
+
var _a = validateShowProfileRequest(showProfileRequest), isValid = _a[0], message = _a[1];
|
6239
|
+
if (!isValid) {
|
6240
|
+
throw { errorCode: ErrorCode.INVALID_ARGUMENTS, message: message };
|
6241
|
+
}
|
6242
|
+
// Convert the app provided parameters to the form suitable for postMessage.
|
6243
|
+
var requestInternal = {
|
6244
|
+
modality: showProfileRequest.modality,
|
6245
|
+
persona: showProfileRequest.persona,
|
6246
|
+
triggerType: showProfileRequest.triggerType,
|
6247
|
+
targetRectangle: {
|
6248
|
+
x: showProfileRequest.targetElementBoundingRect.x,
|
6249
|
+
y: showProfileRequest.targetElementBoundingRect.y,
|
6250
|
+
width: showProfileRequest.targetElementBoundingRect.width,
|
6251
|
+
height: showProfileRequest.targetElementBoundingRect.height,
|
6252
|
+
},
|
6253
|
+
};
|
6254
|
+
resolve(sendAndHandleSdkError('profile.showProfile', requestInternal));
|
6255
|
+
});
|
6256
|
+
}
|
6257
|
+
profile.showProfile = showProfile;
|
6258
|
+
function isSupported() {
|
6259
|
+
return runtime.supports.profile ? true : false;
|
6260
|
+
}
|
6261
|
+
profile.isSupported = isSupported;
|
6262
|
+
})(profile || (profile = {}));
|
6263
|
+
|
6106
6264
|
;// CONCATENATED MODULE: ./src/public/video.ts
|
6107
6265
|
|
6108
6266
|
|
@@ -6932,7 +7090,7 @@ var settings;
|
|
6932
7090
|
settings.setValidityState = setValidityState;
|
6933
7091
|
/**
|
6934
7092
|
* @deprecated
|
6935
|
-
* As of 2.0.0, please use {@link pages.
|
7093
|
+
* As of 2.0.0, please use {@link pages.getConfig pages.getConfig(): Promise\<InstanceConfig\>} instead.
|
6936
7094
|
*
|
6937
7095
|
* Gets the settings for the current instance.
|
6938
7096
|
*
|
@@ -7028,9 +7186,8 @@ var tasks;
|
|
7028
7186
|
(function (tasks) {
|
7029
7187
|
/**
|
7030
7188
|
* @deprecated
|
7031
|
-
* As of 2.0.0, please use {@link dialog.open(urlDialogInfo: UrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel):
|
7032
|
-
* and {@link dialog.bot.open(botUrlDialogInfo: BotUrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel):
|
7033
|
-
*
|
7189
|
+
* As of 2.0.0, please use {@link dialog.open dialog.open(urlDialogInfo: UrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): void} for url based dialogs
|
7190
|
+
* and {@link dialog.bot.open dialog.bot.open(botUrlDialogInfo: BotUrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): void} for bot based dialogs.
|
7034
7191
|
* Allows an app to open the task module.
|
7035
7192
|
*
|
7036
7193
|
* @param taskInfo - An object containing the parameters of the task module
|
@@ -7074,7 +7231,7 @@ var tasks;
|
|
7074
7231
|
tasks.updateTask = updateTask;
|
7075
7232
|
/**
|
7076
7233
|
* @deprecated
|
7077
|
-
* As of 2.0.0, please use {@link dialog.submit
|
7234
|
+
* As of 2.0.0, please use {@link dialog.submit} instead.
|
7078
7235
|
*
|
7079
7236
|
* Submit the task module.
|
7080
7237
|
*
|
@@ -7085,6 +7242,11 @@ var tasks;
|
|
7085
7242
|
dialog.submit(result, appIds);
|
7086
7243
|
}
|
7087
7244
|
tasks.submitTask = submitTask;
|
7245
|
+
/**
|
7246
|
+
* Converts {@link TaskInfo} to {@link UrlDialogInfo}
|
7247
|
+
* @param taskInfo - TaskInfo object to convert
|
7248
|
+
* @returns - Converted UrlDialogInfo object
|
7249
|
+
*/
|
7088
7250
|
function getUrlDialogInfoFromTaskInfo(taskInfo) {
|
7089
7251
|
var urldialogInfo = {
|
7090
7252
|
url: taskInfo.url,
|
@@ -7098,6 +7260,11 @@ var tasks;
|
|
7098
7260
|
return urldialogInfo;
|
7099
7261
|
}
|
7100
7262
|
tasks.getUrlDialogInfoFromTaskInfo = getUrlDialogInfoFromTaskInfo;
|
7263
|
+
/**
|
7264
|
+
* Converts {@link TaskInfo} to {@link BotUrlDialogInfo}
|
7265
|
+
* @param taskInfo - TaskInfo object to convert
|
7266
|
+
* @returns - converted BotUrlDialogInfo object
|
7267
|
+
*/
|
7101
7268
|
function getBotUrlDialogInfoFromTaskInfo(taskInfo) {
|
7102
7269
|
var botUrldialogInfo = {
|
7103
7270
|
url: taskInfo.url,
|
@@ -7112,6 +7279,12 @@ var tasks;
|
|
7112
7279
|
return botUrldialogInfo;
|
7113
7280
|
}
|
7114
7281
|
tasks.getBotUrlDialogInfoFromTaskInfo = getBotUrlDialogInfoFromTaskInfo;
|
7282
|
+
/**
|
7283
|
+
* Sets the height and width of the {@link TaskInfo} object to the original height and width, if initially specified,
|
7284
|
+
* otherwise uses the height and width values corresponding to {@link TaskModuleDimension.Small}
|
7285
|
+
* @param taskInfo TaskInfo object from which to extract size info, if specified
|
7286
|
+
* @returns TaskInfo with height and width specified
|
7287
|
+
*/
|
7115
7288
|
function getDefaultSizeIfNotProvided(taskInfo) {
|
7116
7289
|
taskInfo.height = taskInfo.height ? taskInfo.height : TaskModuleDimension.Small;
|
7117
7290
|
taskInfo.width = taskInfo.width ? taskInfo.width : TaskModuleDimension.Small;
|
@@ -7146,6 +7319,7 @@ var tasks;
|
|
7146
7319
|
|
7147
7320
|
|
7148
7321
|
|
7322
|
+
|
7149
7323
|
|
7150
7324
|
|
7151
7325
|
|
@@ -7153,6 +7327,7 @@ var tasks;
|
|
7153
7327
|
|
7154
7328
|
|
7155
7329
|
|
7330
|
+
|
7156
7331
|
/**
|
7157
7332
|
* @hidden
|
7158
7333
|
* Hide from docs
|
@@ -7227,6 +7402,18 @@ var files;
|
|
7227
7402
|
FileDownloadStatus["Downloading"] = "Downloading";
|
7228
7403
|
FileDownloadStatus["Failed"] = "Failed";
|
7229
7404
|
})(FileDownloadStatus = files_1.FileDownloadStatus || (files_1.FileDownloadStatus = {}));
|
7405
|
+
/**
|
7406
|
+
* @hidden
|
7407
|
+
* Hide from docs
|
7408
|
+
*
|
7409
|
+
* Actions specific to 3P cloud storage provider file and / or account
|
7410
|
+
*/
|
7411
|
+
var CloudStorageProviderFileAction;
|
7412
|
+
(function (CloudStorageProviderFileAction) {
|
7413
|
+
CloudStorageProviderFileAction["Download"] = "DOWNLOAD";
|
7414
|
+
CloudStorageProviderFileAction["Upload"] = "UPLOAD";
|
7415
|
+
CloudStorageProviderFileAction["Delete"] = "DELETE";
|
7416
|
+
})(CloudStorageProviderFileAction = files_1.CloudStorageProviderFileAction || (files_1.CloudStorageProviderFileAction = {}));
|
7230
7417
|
/**
|
7231
7418
|
* @hidden
|
7232
7419
|
* Hide from docs
|
@@ -7413,6 +7600,153 @@ var files;
|
|
7413
7600
|
sendMessageToParent('files.openDownloadFolder', [fileObjectId], callback);
|
7414
7601
|
}
|
7415
7602
|
files_1.openDownloadFolder = openDownloadFolder;
|
7603
|
+
/**
|
7604
|
+
* @hidden
|
7605
|
+
* Hide from docs
|
7606
|
+
*
|
7607
|
+
* Initiates add 3P cloud storage provider flow, where a pop up window opens for user to select required
|
7608
|
+
* 3P provider from the configured policy supported 3P provider list, following which user authentication
|
7609
|
+
* for selected 3P provider is performed on success of which the selected 3P provider support is added for user
|
7610
|
+
*
|
7611
|
+
* @param callback Callback that will be triggered post add 3P cloud storage provider action
|
7612
|
+
*/
|
7613
|
+
function addCloudStorageProvider(callback) {
|
7614
|
+
ensureInitialized(FrameContexts.content);
|
7615
|
+
if (!callback) {
|
7616
|
+
throw getSdkError(ErrorCode.INVALID_ARGUMENTS, '[files.addCloudStorageProvider] callback cannot be null');
|
7617
|
+
}
|
7618
|
+
sendMessageToParent('files.addCloudStorageProvider', [], callback);
|
7619
|
+
}
|
7620
|
+
files_1.addCloudStorageProvider = addCloudStorageProvider;
|
7621
|
+
/**
|
7622
|
+
* @hidden
|
7623
|
+
* Hide from docs
|
7624
|
+
*
|
7625
|
+
* Initiates signout of 3P cloud storage provider flow, which will remove the selected
|
7626
|
+
* 3P cloud storage provider from the list of added providers. No other user input and / or action
|
7627
|
+
* is required except the 3P cloud storage provider to signout from
|
7628
|
+
*
|
7629
|
+
* @param logoutRequest 3P cloud storage provider remove action request content
|
7630
|
+
* @param callback Callback that will be triggered post signout of 3P cloud storage provider action
|
7631
|
+
*/
|
7632
|
+
function removeCloudStorageProvider(logoutRequest, callback) {
|
7633
|
+
ensureInitialized(FrameContexts.content);
|
7634
|
+
if (!callback) {
|
7635
|
+
throw getSdkError(ErrorCode.INVALID_ARGUMENTS, '[files.removeCloudStorageProvider] callback cannot be null');
|
7636
|
+
}
|
7637
|
+
if (!(logoutRequest && logoutRequest.content)) {
|
7638
|
+
throw getSdkError(ErrorCode.INVALID_ARGUMENTS, '[files.removeCloudStorageProvider] 3P cloud storage provider request content is missing');
|
7639
|
+
}
|
7640
|
+
sendMessageToParent('files.removeCloudStorageProvider', [logoutRequest], callback);
|
7641
|
+
}
|
7642
|
+
files_1.removeCloudStorageProvider = removeCloudStorageProvider;
|
7643
|
+
/**
|
7644
|
+
* @hidden
|
7645
|
+
* Hide from docs
|
7646
|
+
*
|
7647
|
+
* Initiates the add 3P cloud storage file flow, which will add a new file for the given 3P provider
|
7648
|
+
*
|
7649
|
+
* @param addNewFileRequest 3P cloud storage provider add action request content
|
7650
|
+
* @param callback Callback that will be triggered post adding a new file flow is finished
|
7651
|
+
*/
|
7652
|
+
function addCloudStorageProviderFile(addNewFileRequest, callback) {
|
7653
|
+
ensureInitialized(FrameContexts.content);
|
7654
|
+
if (!callback) {
|
7655
|
+
throw getSdkError(ErrorCode.INVALID_ARGUMENTS, '[files.addCloudStorageProviderFile] callback cannot be null');
|
7656
|
+
}
|
7657
|
+
if (!(addNewFileRequest && addNewFileRequest.content)) {
|
7658
|
+
throw getSdkError(ErrorCode.INVALID_ARGUMENTS, '[files.addCloudStorageProviderFile] 3P cloud storage provider request content is missing');
|
7659
|
+
}
|
7660
|
+
sendMessageToParent('files.addCloudStorageProviderFile', [addNewFileRequest], callback);
|
7661
|
+
}
|
7662
|
+
files_1.addCloudStorageProviderFile = addCloudStorageProviderFile;
|
7663
|
+
/**
|
7664
|
+
* @hidden
|
7665
|
+
* Hide from docs
|
7666
|
+
*
|
7667
|
+
* Initiates the rename 3P cloud storage file flow, which will rename an existing file in the given 3P provider
|
7668
|
+
*
|
7669
|
+
* @param renameFileRequest 3P cloud storage provider rename action request content
|
7670
|
+
* @param callback Callback that will be triggered post renaming an existing file flow is finished
|
7671
|
+
*/
|
7672
|
+
function renameCloudStorageProviderFile(renameFileRequest, callback) {
|
7673
|
+
ensureInitialized(FrameContexts.content);
|
7674
|
+
if (!callback) {
|
7675
|
+
throw getSdkError(ErrorCode.INVALID_ARGUMENTS, '[files.renameCloudStorageProviderFile] callback cannot be null');
|
7676
|
+
}
|
7677
|
+
if (!(renameFileRequest && renameFileRequest.content)) {
|
7678
|
+
throw getSdkError(ErrorCode.INVALID_ARGUMENTS, '[files.renameCloudStorageProviderFile] 3P cloud storage provider request content is missing');
|
7679
|
+
}
|
7680
|
+
sendMessageToParent('files.renameCloudStorageProviderFile', [renameFileRequest], callback);
|
7681
|
+
}
|
7682
|
+
files_1.renameCloudStorageProviderFile = renameCloudStorageProviderFile;
|
7683
|
+
/**
|
7684
|
+
* @hidden
|
7685
|
+
* Hide from docs
|
7686
|
+
*
|
7687
|
+
* Initiates the 3P cloud storage provider file action (Upload / Download / Delete) flow
|
7688
|
+
*
|
7689
|
+
* Upload Action : Allows uploading file(s) to the given 3P cloud storage provider
|
7690
|
+
* Download Action : Allows downloading file(s) from the given 3P cloud storage provider
|
7691
|
+
* Delete Action : Allows deleting file(s) from the given 3P cloud storage provider
|
7692
|
+
*
|
7693
|
+
* @param cloudStorageProviderFileActionRequest 3P cloud storage provider file action (Upload / Download / Delete) request content
|
7694
|
+
* @param callback Callback that will be triggered post 3P cloud storage action
|
7695
|
+
*/
|
7696
|
+
function performCloudStorageProviderFileAction(cloudStorageProviderFileActionRequest, callback) {
|
7697
|
+
ensureInitialized(FrameContexts.content);
|
7698
|
+
if (!callback) {
|
7699
|
+
throw getSdkError(ErrorCode.INVALID_ARGUMENTS, '[files.performCloudStorageProviderFileAction] callback cannot be null');
|
7700
|
+
}
|
7701
|
+
if (!(cloudStorageProviderFileActionRequest && cloudStorageProviderFileActionRequest.content)) {
|
7702
|
+
throw getSdkError(ErrorCode.INVALID_ARGUMENTS, '[files.performCloudStorageProviderFileAction] 3P cloud storage provider request content is missing');
|
7703
|
+
}
|
7704
|
+
sendMessageToParent('files.performCloudStorageProviderFileAction', [cloudStorageProviderFileActionRequest], callback);
|
7705
|
+
}
|
7706
|
+
files_1.performCloudStorageProviderFileAction = performCloudStorageProviderFileAction;
|
7707
|
+
/**
|
7708
|
+
* @hidden
|
7709
|
+
* Hide from docs
|
7710
|
+
*
|
7711
|
+
* Register a handler to be called when a user's 3P cloud storage provider list changes i.e.
|
7712
|
+
* post adding / removing a 3P provider, list is updated
|
7713
|
+
*
|
7714
|
+
* @param handler - When 3P cloud storage provider list is updated this handler is called
|
7715
|
+
*
|
7716
|
+
*/
|
7717
|
+
function registerCloudStorageProviderListChangeHandler(handler) {
|
7718
|
+
ensureInitialized();
|
7719
|
+
if (!handler) {
|
7720
|
+
throw new Error('[registerCloudStorageProviderListChangeHandler] Handler cannot be null');
|
7721
|
+
}
|
7722
|
+
registerHandler('files.cloudStorageProviderList', handler);
|
7723
|
+
}
|
7724
|
+
files_1.registerCloudStorageProviderListChangeHandler = registerCloudStorageProviderListChangeHandler;
|
7725
|
+
/**
|
7726
|
+
* @hidden
|
7727
|
+
* Hide from docs
|
7728
|
+
*
|
7729
|
+
* Register a handler to be called when a user's 3P cloud storage provider content changes i.e.
|
7730
|
+
* when file(s) is/are added / renamed / deleted / uploaded, the list of files is updated
|
7731
|
+
*
|
7732
|
+
* @param handler - When 3P cloud storage provider content is updated this handler is called
|
7733
|
+
*
|
7734
|
+
*/
|
7735
|
+
function registerCloudStorageProviderContentChangeHandler(handler) {
|
7736
|
+
ensureInitialized();
|
7737
|
+
if (!handler) {
|
7738
|
+
throw new Error('[registerCloudStorageProviderContentChangeHandler] Handler cannot be null');
|
7739
|
+
}
|
7740
|
+
registerHandler('files.cloudStorageProviderContent', handler);
|
7741
|
+
}
|
7742
|
+
files_1.registerCloudStorageProviderContentChangeHandler = registerCloudStorageProviderContentChangeHandler;
|
7743
|
+
function getSdkError(errorCode, message) {
|
7744
|
+
var sdkError = {
|
7745
|
+
errorCode: errorCode,
|
7746
|
+
message: message,
|
7747
|
+
};
|
7748
|
+
return sdkError;
|
7749
|
+
}
|
7416
7750
|
})(files || (files = {}));
|
7417
7751
|
|
7418
7752
|
;// CONCATENATED MODULE: ./src/private/meetingRoom.ts
|