@microsoft/teams-js 1.12.0-dev.0 → 1.12.0-dev.1

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.
@@ -699,7 +699,7 @@ function handleBeforeUnload() {
699
699
  Object.defineProperty(exports, "__esModule", { value: true });
700
700
  exports.userOriginUrlValidationRegExp = exports.validOriginRegExp = exports.validOrigins = exports.scanBarCodeAPIMobileSupportVersion = exports.getMediaCallbackSupportVersion = exports.mediaAPISupportVersion = exports.captureImageMobileSupportVersion = exports.peoplePickerRequiredVersion = exports.locationAPIsRequiredVersion = exports.getUserJoinedTeamsSupportedAndroidClientVersion = exports.videoAndImageMediaAPISupportVersion = exports.defaultSDKVersionForCompatCheck = exports.version = void 0;
701
701
  var utils_1 = __webpack_require__(5);
702
- exports.version = '1.12.0-dev.0';
702
+ exports.version = '1.12.0-dev.1';
703
703
  /**
704
704
  * The SDK version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
705
705
  * Modified to 2.0.1 which is hightest till now so that if any client doesn't pass version in initialize function, it will be set to highest.
@@ -4307,19 +4307,47 @@ var files;
4307
4307
  CloudStorageProvider["Sharefile"] = "SHAREFILE";
4308
4308
  CloudStorageProvider["GoogleDrive"] = "GOOGLEDRIVE";
4309
4309
  CloudStorageProvider["Egnyte"] = "EGNYTE";
4310
+ CloudStorageProvider["SharePoint"] = "SharePoint";
4310
4311
  })(CloudStorageProvider = files.CloudStorageProvider || (files.CloudStorageProvider = {}));
4311
4312
  /**
4312
4313
  * @private
4313
4314
  * Hide from docs
4314
4315
  *
4315
- * Cloud storage provider integration type
4316
+ * Cloud storage provider type enums
4316
4317
  */
4317
4318
  var CloudStorageProviderType;
4318
4319
  (function (CloudStorageProviderType) {
4319
4320
  CloudStorageProviderType[CloudStorageProviderType["Sharepoint"] = 0] = "Sharepoint";
4320
4321
  CloudStorageProviderType[CloudStorageProviderType["WopiIntegration"] = 1] = "WopiIntegration";
4321
4322
  CloudStorageProviderType[CloudStorageProviderType["Google"] = 2] = "Google";
4323
+ CloudStorageProviderType[CloudStorageProviderType["OneDrive"] = 3] = "OneDrive";
4324
+ CloudStorageProviderType[CloudStorageProviderType["Recent"] = 4] = "Recent";
4325
+ CloudStorageProviderType[CloudStorageProviderType["Aggregate"] = 5] = "Aggregate";
4326
+ CloudStorageProviderType[CloudStorageProviderType["FileSystem"] = 6] = "FileSystem";
4327
+ CloudStorageProviderType[CloudStorageProviderType["Search"] = 7] = "Search";
4328
+ CloudStorageProviderType[CloudStorageProviderType["AllFiles"] = 8] = "AllFiles";
4329
+ CloudStorageProviderType[CloudStorageProviderType["SharedWithMe"] = 9] = "SharedWithMe";
4322
4330
  })(CloudStorageProviderType = files.CloudStorageProviderType || (files.CloudStorageProviderType = {}));
4331
+ /**
4332
+ * @private
4333
+ * Hide from docs
4334
+ *
4335
+ * Special Document Library enum
4336
+ */
4337
+ var SpecialDocumentLibraryType;
4338
+ (function (SpecialDocumentLibraryType) {
4339
+ SpecialDocumentLibraryType["ClassMaterials"] = "classMaterials";
4340
+ })(SpecialDocumentLibraryType = files.SpecialDocumentLibraryType || (files.SpecialDocumentLibraryType = {}));
4341
+ /**
4342
+ * @private
4343
+ * Hide from docs
4344
+ *
4345
+ * Document Library Access enum
4346
+ */
4347
+ var DocumentLibraryAccessType;
4348
+ (function (DocumentLibraryAccessType) {
4349
+ DocumentLibraryAccessType["Readonly"] = "readonly";
4350
+ })(DocumentLibraryAccessType = files.DocumentLibraryAccessType || (files.DocumentLibraryAccessType = {}));
4323
4351
  /**
4324
4352
  * @private
4325
4353
  * Hide from docs
@@ -4330,7 +4358,7 @@ var files;
4330
4358
  */
4331
4359
  function getCloudStorageFolders(channelId, callback) {
4332
4360
  (0, internalAPIs_1.ensureInitialized)(public_1.FrameContexts.content);
4333
- if (!channelId || channelId.length == 0) {
4361
+ if (!channelId || channelId.length === 0) {
4334
4362
  throw new Error('[files.getCloudStorageFolders] channelId name cannot be null or empty');
4335
4363
  }
4336
4364
  if (!callback) {
@@ -4349,7 +4377,7 @@ var files;
4349
4377
  */
4350
4378
  function addCloudStorageFolder(channelId, callback) {
4351
4379
  (0, internalAPIs_1.ensureInitialized)(public_1.FrameContexts.content);
4352
- if (!channelId || channelId.length == 0) {
4380
+ if (!channelId || channelId.length === 0) {
4353
4381
  throw new Error('[files.addCloudStorageFolder] channelId name cannot be null or empty');
4354
4382
  }
4355
4383
  if (!callback) {
@@ -4424,6 +4452,48 @@ var files;
4424
4452
  (0, communication_1.sendMessageToParent)('files.openCloudStorageFile', [file, providerCode, fileOpenPreference]);
4425
4453
  }
4426
4454
  files.openCloudStorageFile = openCloudStorageFile;
4455
+ /**
4456
+ * @private
4457
+ * Allow 1st party apps to call this function to get the external
4458
+ * third party cloud storage accounts that the tenant supports
4459
+ * @param excludeAddedProviders: return a list of support third party
4460
+ * cloud storages that hasn't been added yet.
4461
+ */
4462
+ function getExternalProviders(excludeAddedProviders, callback) {
4463
+ if (excludeAddedProviders === void 0) { excludeAddedProviders = false; }
4464
+ (0, internalAPIs_1.ensureInitialized)(public_1.FrameContexts.content);
4465
+ if (!callback) {
4466
+ throw new Error('[files.getExternalProviders] Callback cannot be null');
4467
+ }
4468
+ (0, communication_1.sendMessageToParent)('files.getExternalProviders', [excludeAddedProviders], callback);
4469
+ }
4470
+ files.getExternalProviders = getExternalProviders;
4471
+ /**
4472
+ * @private
4473
+ * Allow 1st party apps to call this function to move files
4474
+ * among SharePoint and third party cloud storages.
4475
+ */
4476
+ function copyMoveFiles(selectedFiles, providerCode, destinationFolder, destinationProviderCode, isMove, callback) {
4477
+ if (isMove === void 0) { isMove = false; }
4478
+ (0, internalAPIs_1.ensureInitialized)(public_1.FrameContexts.content);
4479
+ if (!selectedFiles || selectedFiles.length === 0) {
4480
+ throw new Error('[files.copyMoveFiles] selectedFiles cannot be null or empty');
4481
+ }
4482
+ if (!providerCode) {
4483
+ throw new Error('[files.copyMoveFiles] providerCode cannot be null or empty');
4484
+ }
4485
+ if (!destinationFolder) {
4486
+ throw new Error('[files.copyMoveFiles] destinationFolder cannot be null or empty');
4487
+ }
4488
+ if (!destinationProviderCode) {
4489
+ throw new Error('[files.copyMoveFiles] destinationProviderCode cannot be null or empty');
4490
+ }
4491
+ if (!callback) {
4492
+ throw new Error('[files.copyMoveFiles] callback cannot be null');
4493
+ }
4494
+ (0, communication_1.sendMessageToParent)('files.copyMoveFiles', [selectedFiles, providerCode, destinationFolder, destinationProviderCode, isMove], callback);
4495
+ }
4496
+ files.copyMoveFiles = copyMoveFiles;
4427
4497
  })(files = exports.files || (exports.files = {}));
4428
4498
 
4429
4499