files.com 1.2.6 → 1.2.8

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/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.6
1
+ 1.2.8
@@ -55,20 +55,20 @@ await BundleNotification.find(id)
55
55
 
56
56
  ```
57
57
  await BundleNotification.create({
58
- 'notify_on_registration': true,
59
- 'notify_on_upload': true,
60
58
  'bundle_id': 1,
61
59
  'user_id': 1,
60
+ 'notify_on_registration': true,
61
+ 'notify_on_upload': true,
62
62
  })
63
63
  ```
64
64
 
65
65
 
66
66
  ### Parameters
67
67
 
68
- * `notify_on_registration` (boolean): Triggers bundle notification when a registration action occurs for it.
69
- * `notify_on_upload` (boolean): Triggers bundle notification when a upload action occurs for it.
70
68
  * `bundle_id` (int64): Required - Bundle ID to notify on
71
69
  * `user_id` (int64): The id of the user to notify.
70
+ * `notify_on_registration` (boolean): Triggers bundle notification when a registration action occurs for it.
71
+ * `notify_on_upload` (boolean): Triggers bundle notification when a upload action occurs for it.
72
72
 
73
73
  ---
74
74
 
@@ -43,6 +43,8 @@
43
43
  "created_at": "2000-01-01T01:00:00Z",
44
44
  "currency": "USD",
45
45
  "custom_namespace": true,
46
+ "dav_enabled": true,
47
+ "dav_user_root_enabled": true,
46
48
  "days_to_retain_backups": 30,
47
49
  "default_time_zone": "Pacific Time (US & Canada)",
48
50
  "desktop_app": true,
@@ -264,6 +266,8 @@
264
266
  * `created_at` (date-time): Time this site was created
265
267
  * `currency` (string): Preferred currency
266
268
  * `custom_namespace` (boolean): Is this site using a custom namespace for users?
269
+ * `dav_enabled` (boolean): Is WebDAV enabled?
270
+ * `dav_user_root_enabled` (boolean): Use user FTP roots also for WebDAV?
267
271
  * `days_to_retain_backups` (int64): Number of days to keep deleted files
268
272
  * `default_time_zone` (string): Site default time zone
269
273
  * `desktop_app` (boolean): Is the desktop app enabled?
@@ -459,6 +463,7 @@ await Site.update({
459
463
  'password_require_number': true,
460
464
  'password_require_unbreached': true,
461
465
  'require_logout_from_bundles_and_inboxes': true,
466
+ 'dav_user_root_enabled': true,
462
467
  'sftp_user_root_enabled': true,
463
468
  'disable_password_reset': true,
464
469
  'immutable_files': true,
@@ -481,6 +486,7 @@ await Site.update({
481
486
  'sharing_enabled': true,
482
487
  'user_requests_enabled': true,
483
488
  'user_requests_notify_admins': true,
489
+ 'dav_enabled': true,
484
490
  'ftp_enabled': true,
485
491
  'sftp_enabled': true,
486
492
  'sftp_host_key_type': "default",
@@ -599,6 +605,7 @@ await Site.update({
599
605
  * `password_require_number` (boolean): Require a number in passwords?
600
606
  * `password_require_unbreached` (boolean): Require passwords that have not been previously breached? (see https://haveibeenpwned.com/)
601
607
  * `require_logout_from_bundles_and_inboxes` (boolean): If true, we will hide the 'Remember Me' box on Inbox and Bundle registration pages, requiring that the user logout and log back in every time they visit the page.
608
+ * `dav_user_root_enabled` (boolean): Use user FTP roots also for WebDAV?
602
609
  * `sftp_user_root_enabled` (boolean): Use user FTP roots also for SFTP?
603
610
  * `disable_password_reset` (boolean): Is password reset disabled?
604
611
  * `immutable_files` (boolean): Are files protected from modification?
@@ -621,6 +628,7 @@ await Site.update({
621
628
  * `sharing_enabled` (boolean): Allow bundle creation
622
629
  * `user_requests_enabled` (boolean): Enable User Requests feature
623
630
  * `user_requests_notify_admins` (boolean): Send email to site admins when a user request is received?
631
+ * `dav_enabled` (boolean): Is WebDAV enabled?
624
632
  * `ftp_enabled` (boolean): Is FTP enabled?
625
633
  * `sftp_enabled` (boolean): Is SFTP enabled?
626
634
  * `sftp_host_key_type` (string): Sftp Host Key Type
package/lib/Files.js CHANGED
@@ -11,7 +11,7 @@ var endpointPrefix = '/api/rest/v1';
11
11
  var apiKey;
12
12
  var baseUrl = 'https://app.files.com';
13
13
  var sessionId = null;
14
- var version = '1.2.6';
14
+ var version = '1.2.8';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -316,10 +316,10 @@ _BundleNotification = BundleNotification;
316
316
  return _BundleNotification.find(id, params, options);
317
317
  });
318
318
  // Parameters:
319
- // notify_on_registration - boolean - Triggers bundle notification when a registration action occurs for it.
320
- // notify_on_upload - boolean - Triggers bundle notification when a upload action occurs for it.
321
319
  // bundle_id (required) - int64 - Bundle ID to notify on
322
320
  // user_id - int64 - The id of the user to notify.
321
+ // notify_on_registration - boolean - Triggers bundle notification when a registration action occurs for it.
322
+ // notify_on_upload - boolean - Triggers bundle notification when a upload action occurs for it.
323
323
  (0, _defineProperty2.default)(BundleNotification, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6() {
324
324
  var params,
325
325
  options,
@@ -173,6 +173,14 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
173
173
  (0, _defineProperty2.default)(this, "getCustomNamespace", function () {
174
174
  return _this.attributes.custom_namespace;
175
175
  });
176
+ // boolean # Is WebDAV enabled?
177
+ (0, _defineProperty2.default)(this, "getDavEnabled", function () {
178
+ return _this.attributes.dav_enabled;
179
+ });
180
+ // boolean # Use user FTP roots also for WebDAV?
181
+ (0, _defineProperty2.default)(this, "getDavUserRootEnabled", function () {
182
+ return _this.attributes.dav_user_root_enabled;
183
+ });
176
184
  // int64 # Number of days to keep deleted files
177
185
  (0, _defineProperty2.default)(this, "getDaysToRetainBackups", function () {
178
186
  return _this.attributes.days_to_retain_backups;
@@ -743,6 +751,7 @@ _Site = Site;
743
751
  // password_require_number - boolean - Require a number in passwords?
744
752
  // password_require_unbreached - boolean - Require passwords that have not been previously breached? (see https://haveibeenpwned.com/)
745
753
  // require_logout_from_bundles_and_inboxes - boolean - If true, we will hide the 'Remember Me' box on Inbox and Bundle registration pages, requiring that the user logout and log back in every time they visit the page.
754
+ // dav_user_root_enabled - boolean - Use user FTP roots also for WebDAV?
746
755
  // sftp_user_root_enabled - boolean - Use user FTP roots also for SFTP?
747
756
  // disable_password_reset - boolean - Is password reset disabled?
748
757
  // immutable_files - boolean - Are files protected from modification?
@@ -765,6 +774,7 @@ _Site = Site;
765
774
  // sharing_enabled - boolean - Allow bundle creation
766
775
  // user_requests_enabled - boolean - Enable User Requests feature
767
776
  // user_requests_notify_admins - boolean - Send email to site admins when a user request is received?
777
+ // dav_enabled - boolean - Is WebDAV enabled?
768
778
  // ftp_enabled - boolean - Is FTP enabled?
769
779
  // sftp_enabled - boolean - Is SFTP enabled?
770
780
  // sftp_host_key_type - string - Sftp Host Key Type
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Files.js CHANGED
@@ -5,7 +5,7 @@ const endpointPrefix = '/api/rest/v1'
5
5
  let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
- const version = '1.2.6'
8
+ const version = '1.2.8'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -181,10 +181,10 @@ class BundleNotification {
181
181
  BundleNotification.find(id, params, options)
182
182
 
183
183
  // Parameters:
184
- // notify_on_registration - boolean - Triggers bundle notification when a registration action occurs for it.
185
- // notify_on_upload - boolean - Triggers bundle notification when a upload action occurs for it.
186
184
  // bundle_id (required) - int64 - Bundle ID to notify on
187
185
  // user_id - int64 - The id of the user to notify.
186
+ // notify_on_registration - boolean - Triggers bundle notification when a registration action occurs for it.
187
+ // notify_on_upload - boolean - Triggers bundle notification when a upload action occurs for it.
188
188
  static create = async (params = {}, options = {}) => {
189
189
  if (!params.bundle_id) {
190
190
  throw new errors.MissingParameterError('Parameter missing: bundle_id')
@@ -133,6 +133,12 @@ class Site {
133
133
  // boolean # Is this site using a custom namespace for users?
134
134
  getCustomNamespace = () => this.attributes.custom_namespace
135
135
 
136
+ // boolean # Is WebDAV enabled?
137
+ getDavEnabled = () => this.attributes.dav_enabled
138
+
139
+ // boolean # Use user FTP roots also for WebDAV?
140
+ getDavUserRootEnabled = () => this.attributes.dav_user_root_enabled
141
+
136
142
  // int64 # Number of days to keep deleted files
137
143
  getDaysToRetainBackups = () => this.attributes.days_to_retain_backups
138
144
 
@@ -547,6 +553,7 @@ class Site {
547
553
  // password_require_number - boolean - Require a number in passwords?
548
554
  // password_require_unbreached - boolean - Require passwords that have not been previously breached? (see https://haveibeenpwned.com/)
549
555
  // require_logout_from_bundles_and_inboxes - boolean - If true, we will hide the 'Remember Me' box on Inbox and Bundle registration pages, requiring that the user logout and log back in every time they visit the page.
556
+ // dav_user_root_enabled - boolean - Use user FTP roots also for WebDAV?
550
557
  // sftp_user_root_enabled - boolean - Use user FTP roots also for SFTP?
551
558
  // disable_password_reset - boolean - Is password reset disabled?
552
559
  // immutable_files - boolean - Are files protected from modification?
@@ -569,6 +576,7 @@ class Site {
569
576
  // sharing_enabled - boolean - Allow bundle creation
570
577
  // user_requests_enabled - boolean - Enable User Requests feature
571
578
  // user_requests_notify_admins - boolean - Send email to site admins when a user request is received?
579
+ // dav_enabled - boolean - Is WebDAV enabled?
572
580
  // ftp_enabled - boolean - Is FTP enabled?
573
581
  // sftp_enabled - boolean - Is SFTP enabled?
574
582
  // sftp_host_key_type - string - Sftp Host Key Type