files.com 1.0.273 → 1.0.275

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.
@@ -423,6 +423,10 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
423
423
  (0, _defineProperty2.default)(this, "getPinAllRemoteServersToSiteRegion", function () {
424
424
  return _this.attributes.pin_all_remote_servers_to_site_region;
425
425
  });
426
+ // boolean # If true, we will prevent non-administrators from receiving any permissions directly on the root folder. This is commonly used to prevent the accidental application of permissions.
427
+ (0, _defineProperty2.default)(this, "getPreventRootPermissionsForNonSiteAdmins", function () {
428
+ return _this.attributes.prevent_root_permissions_for_non_site_admins;
429
+ });
426
430
  // boolean # Require two-factor authentication for all users?
427
431
  (0, _defineProperty2.default)(this, "getRequire2fa", function () {
428
432
  return _this.attributes.require_2fa;
@@ -715,6 +719,7 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
715
719
  // bundle_activity_notifications - string - Do Bundle owners receive activity notifications?
716
720
  // bundle_upload_receipt_notifications - string - Do Bundle uploaders receive upload confirmation notifications?
717
721
  // password_requirements_apply_to_bundles - boolean - Require bundles' passwords, and passwords for other items (inboxes, public shares, etc.) to conform to the same requirements as users' passwords?
722
+ // prevent_root_permissions_for_non_site_admins - boolean - If true, we will prevent non-administrators from receiving any permissions directly on the root folder. This is commonly used to prevent the accidental application of permissions.
718
723
  // opt_out_global - boolean - Use servers in the USA only?
719
724
  // use_provided_modified_at - boolean - Allow uploaders to set `provided_modified_at` for uploaded files?
720
725
  // custom_namespace - boolean - Is this site using a custom namespace for users?
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.0.273",
3
+ "version": "1.0.275",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Errors.js CHANGED
@@ -169,6 +169,7 @@ export class NotAuthorized_SiteAdminRequiredError extends NotAuthorizedError { c
169
169
  export class NotAuthorized_SiteFilesAreImmutableError extends NotAuthorizedError { constructor(message, code) { super(message, code); this.name = 'NotAuthorized_SiteFilesAreImmutableError' } } errorClasses.NotAuthorized_SiteFilesAreImmutableError = NotAuthorized_SiteFilesAreImmutableError
170
170
  export class NotAuthorized_TwoFactorAuthenticationRequiredError extends NotAuthorizedError { constructor(message, code) { super(message, code); this.name = 'NotAuthorized_TwoFactorAuthenticationRequiredError' } } errorClasses.NotAuthorized_TwoFactorAuthenticationRequiredError = NotAuthorized_TwoFactorAuthenticationRequiredError
171
171
  export class NotAuthorized_UserIdWithoutSiteAdminError extends NotAuthorizedError { constructor(message, code) { super(message, code); this.name = 'NotAuthorized_UserIdWithoutSiteAdminError' } } errorClasses.NotAuthorized_UserIdWithoutSiteAdminError = NotAuthorized_UserIdWithoutSiteAdminError
172
+ export class NotAuthorized_WriteAndBundlePermissionRequiredError extends NotAuthorizedError { constructor(message, code) { super(message, code); this.name = 'NotAuthorized_WriteAndBundlePermissionRequiredError' } } errorClasses.NotAuthorized_WriteAndBundlePermissionRequiredError = NotAuthorized_WriteAndBundlePermissionRequiredError
172
173
  export class NotAuthorized_WritePermissionRequiredError extends NotAuthorizedError { constructor(message, code) { super(message, code); this.name = 'NotAuthorized_WritePermissionRequiredError' } } errorClasses.NotAuthorized_WritePermissionRequiredError = NotAuthorized_WritePermissionRequiredError
173
174
  export class NotAuthorized_ZipDownloadIpMismatchError extends NotAuthorizedError { constructor(message, code) { super(message, code); this.name = 'NotAuthorized_ZipDownloadIpMismatchError' } } errorClasses.NotAuthorized_ZipDownloadIpMismatchError = NotAuthorized_ZipDownloadIpMismatchError
174
175
  export class NotFound_ApiKeyNotFoundError extends NotFoundError { constructor(message, code) { super(message, code); this.name = 'NotFound_ApiKeyNotFoundError' } } errorClasses.NotFound_ApiKeyNotFoundError = NotFound_ApiKeyNotFoundError
@@ -317,6 +317,9 @@ class Site {
317
317
  // boolean # If true, we will ensure that all internal communications with any remote server are made through the primary region of the site. This setting overrides individual remote server settings.
318
318
  getPinAllRemoteServersToSiteRegion = () => this.attributes.pin_all_remote_servers_to_site_region
319
319
 
320
+ // boolean # If true, we will prevent non-administrators from receiving any permissions directly on the root folder. This is commonly used to prevent the accidental application of permissions.
321
+ getPreventRootPermissionsForNonSiteAdmins = () => this.attributes.prevent_root_permissions_for_non_site_admins
322
+
320
323
  // boolean # Require two-factor authentication for all users?
321
324
  getRequire2fa = () => this.attributes.require_2fa
322
325
 
@@ -527,6 +530,7 @@ class Site {
527
530
  // bundle_activity_notifications - string - Do Bundle owners receive activity notifications?
528
531
  // bundle_upload_receipt_notifications - string - Do Bundle uploaders receive upload confirmation notifications?
529
532
  // password_requirements_apply_to_bundles - boolean - Require bundles' passwords, and passwords for other items (inboxes, public shares, etc.) to conform to the same requirements as users' passwords?
533
+ // prevent_root_permissions_for_non_site_admins - boolean - If true, we will prevent non-administrators from receiving any permissions directly on the root folder. This is commonly used to prevent the accidental application of permissions.
530
534
  // opt_out_global - boolean - Use servers in the USA only?
531
535
  // use_provided_modified_at - boolean - Allow uploaders to set `provided_modified_at` for uploaded files?
532
536
  // custom_namespace - boolean - Is this site using a custom namespace for users?