files.com 1.0.233 → 1.0.235

Sign up to get free protection for your applications and to get access to all the features.
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.233
1
+ 1.0.235
@@ -7,8 +7,7 @@
7
7
  "amount": 1.0,
8
8
  "created_at": "2000-01-01T01:00:00Z",
9
9
  "invoice_id": 1,
10
- "payment_id": 1,
11
- "updated_at": "2000-01-01T01:00:00Z"
10
+ "payment_id": 1
12
11
  }
13
12
  ```
14
13
 
@@ -16,4 +15,3 @@
16
15
  * `created_at` (date-time): Payment line item created at date/time
17
16
  * `invoice_id` (int64): Invoice ID
18
17
  * `payment_id` (int64): Payment ID
19
- * `updated_at` (date-time): Payment line item updated at date/time
@@ -7,13 +7,9 @@
7
7
  "id": 1,
8
8
  "start_at": "2000-01-01T01:00:00Z",
9
9
  "end_at": "2000-01-01T01:00:00Z",
10
- "created_at": "2000-01-01T01:00:00Z",
11
10
  "high_water_user_count": 1.0,
12
11
  "current_storage": 1.0,
13
12
  "high_water_storage": 1.0,
14
- "total_downloads": 1,
15
- "total_uploads": 1,
16
- "updated_at": "2000-01-01T01:00:00Z",
17
13
  "usage_by_top_level_dir": {
18
14
  "key": "example value"
19
15
  },
@@ -31,13 +27,9 @@
31
27
  * `id` (int64): Usage snapshot ID
32
28
  * `start_at` (date-time): Usage snapshot start date/time
33
29
  * `end_at` (date-time): Usage snapshot end date/time
34
- * `created_at` (date-time): DEPRECATED: Usage snapshot created at date/time
35
30
  * `high_water_user_count` (double): Highest user count number in time period
36
31
  * `current_storage` (double): Current total Storage Usage GB as of end date (not necessarily high water mark, which is used for billing)
37
32
  * `high_water_storage` (double): Highest Storage Usage GB recorded in time period (used for billing)
38
- * `total_downloads` (int64): DEPRECATED: Number of downloads in report time period
39
- * `total_uploads` (int64): DEPRECATED: Number of uploads in time period
40
- * `updated_at` (date-time): DEPRECATED: The last time this site usage report was updated
41
33
  * `usage_by_top_level_dir` (object): Storage Usage - map of root folders to their usage as of end date (not necessarily high water mark, which is used for billing)
42
34
  * `root_storage` (double): Storage Usage for root folder as of end date (not necessarily high water mark, which is used for billing)
43
35
  * `deleted_files_counted_in_minimum` (double): Storage Usage for files that are deleted but uploaded within last 30 days as of end date (not necessarily high water mark, which is used for billing)
@@ -62,9 +62,8 @@
62
62
  "externally_managed": true,
63
63
  "time_zone": "Pacific Time (US & Canada)",
64
64
  "type_of_2fa": "yubi",
65
- "updated_at": "2000-01-01T01:00:00Z",
66
65
  "user_root": "example",
67
- "days_remaining_until_password_expire": "2000-01-01T01:00:00Z",
66
+ "days_remaining_until_password_expire": 1,
68
67
  "password_expire_at": "2000-01-01T01:00:00Z"
69
68
  }
70
69
  ```
@@ -125,9 +124,8 @@
125
124
  * `externally_managed` (boolean): Is this user managed by a SsoStrategy?
126
125
  * `time_zone` (string): User time zone
127
126
  * `type_of_2fa` (string): Type(s) of 2FA methods in use. Will be either `sms`, `totp`, `u2f`, `yubi`, or multiple values sorted alphabetically and joined by an underscore.
128
- * `updated_at` (date-time): User record most recently updated at. Note this may be incremented because of internal or external updates.
129
127
  * `user_root` (string): Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.) Note that this is not used for API, Desktop, or Web interface.
130
- * `days_remaining_until_password_expire` (date-time): Number of days remaining until password expires
128
+ * `days_remaining_until_password_expire` (int64): Number of days remaining until password expires
131
129
  * `password_expire_at` (date-time): Password expiration datetime
132
130
  * `avatar_file` (file): An image file for your user avatar.
133
131
  * `avatar_delete` (boolean): If true, the avatar will be deleted.
@@ -482,9 +480,8 @@ await user.update({
482
480
  "externally_managed": true,
483
481
  "time_zone": "Pacific Time (US & Canada)",
484
482
  "type_of_2fa": "yubi",
485
- "updated_at": "2000-01-01T01:00:00Z",
486
483
  "user_root": "example",
487
- "days_remaining_until_password_expire": "2000-01-01T01:00:00Z",
484
+ "days_remaining_until_password_expire": 1,
488
485
  "password_expire_at": "2000-01-01T01:00:00Z"
489
486
  }
490
487
  ```
@@ -41,9 +41,6 @@ var PaymentLineItem = /*#__PURE__*/(0, _createClass2.default)(function PaymentLi
41
41
  (0, _defineProperty2.default)(this, "getPaymentId", function () {
42
42
  return _this.attributes.payment_id;
43
43
  });
44
- (0, _defineProperty2.default)(this, "getUpdatedAt", function () {
45
- return _this.attributes.updated_at;
46
- });
47
44
  Object.entries(attributes).forEach(function (_ref) {
48
45
  var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
49
46
  key = _ref2[0],
@@ -40,9 +40,6 @@ var UsageSnapshot = /*#__PURE__*/(0, _createClass2.default)(function UsageSnapsh
40
40
  (0, _defineProperty2.default)(this, "getEndAt", function () {
41
41
  return _this.attributes.end_at;
42
42
  });
43
- (0, _defineProperty2.default)(this, "getCreatedAt", function () {
44
- return _this.attributes.created_at;
45
- });
46
43
  (0, _defineProperty2.default)(this, "getHighWaterUserCount", function () {
47
44
  return _this.attributes.high_water_user_count;
48
45
  });
@@ -52,15 +49,6 @@ var UsageSnapshot = /*#__PURE__*/(0, _createClass2.default)(function UsageSnapsh
52
49
  (0, _defineProperty2.default)(this, "getHighWaterStorage", function () {
53
50
  return _this.attributes.high_water_storage;
54
51
  });
55
- (0, _defineProperty2.default)(this, "getTotalDownloads", function () {
56
- return _this.attributes.total_downloads;
57
- });
58
- (0, _defineProperty2.default)(this, "getTotalUploads", function () {
59
- return _this.attributes.total_uploads;
60
- });
61
- (0, _defineProperty2.default)(this, "getUpdatedAt", function () {
62
- return _this.attributes.updated_at;
63
- });
64
52
  (0, _defineProperty2.default)(this, "getUsageByTopLevelDir", function () {
65
53
  return _this.attributes.usage_by_top_level_dir;
66
54
  });
@@ -364,9 +364,6 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
364
364
  (0, _defineProperty2.default)(this, "setTypeOf2fa", function (value) {
365
365
  _this.attributes.type_of_2fa = value;
366
366
  });
367
- (0, _defineProperty2.default)(this, "getUpdatedAt", function () {
368
- return _this.attributes.updated_at;
369
- });
370
367
  (0, _defineProperty2.default)(this, "getUserRoot", function () {
371
368
  return _this.attributes.user_root;
372
369
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.0.233",
3
+ "version": "1.0.235",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
@@ -35,9 +35,6 @@ class PaymentLineItem {
35
35
  // int64 # Payment ID
36
36
  getPaymentId = () => this.attributes.payment_id
37
37
 
38
- // date-time # Payment line item updated at date/time
39
- getUpdatedAt = () => this.attributes.updated_at
40
-
41
38
  }
42
39
 
43
40
  export default PaymentLineItem
@@ -32,9 +32,6 @@ class UsageSnapshot {
32
32
  // date-time # Usage snapshot end date/time
33
33
  getEndAt = () => this.attributes.end_at
34
34
 
35
- // date-time # DEPRECATED: Usage snapshot created at date/time
36
- getCreatedAt = () => this.attributes.created_at
37
-
38
35
  // double # Highest user count number in time period
39
36
  getHighWaterUserCount = () => this.attributes.high_water_user_count
40
37
 
@@ -44,15 +41,6 @@ class UsageSnapshot {
44
41
  // double # Highest Storage Usage GB recorded in time period (used for billing)
45
42
  getHighWaterStorage = () => this.attributes.high_water_storage
46
43
 
47
- // int64 # DEPRECATED: Number of downloads in report time period
48
- getTotalDownloads = () => this.attributes.total_downloads
49
-
50
- // int64 # DEPRECATED: Number of uploads in time period
51
- getTotalUploads = () => this.attributes.total_uploads
52
-
53
- // date-time # DEPRECATED: The last time this site usage report was updated
54
- getUpdatedAt = () => this.attributes.updated_at
55
-
56
44
  // object # Storage Usage - map of root folders to their usage as of end date (not necessarily high water mark, which is used for billing)
57
45
  getUsageByTopLevelDir = () => this.attributes.usage_by_top_level_dir
58
46
 
@@ -411,9 +411,6 @@ class User {
411
411
  this.attributes.type_of_2fa = value
412
412
  }
413
413
 
414
- // date-time # User record most recently updated at. Note this may be incremented because of internal or external updates.
415
- getUpdatedAt = () => this.attributes.updated_at
416
-
417
414
  // string # Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.) Note that this is not used for API, Desktop, or Web interface.
418
415
  getUserRoot = () => this.attributes.user_root
419
416
 
@@ -421,7 +418,7 @@ class User {
421
418
  this.attributes.user_root = value
422
419
  }
423
420
 
424
- // date-time # Number of days remaining until password expires
421
+ // int64 # Number of days remaining until password expires
425
422
  getDaysRemainingUntilPasswordExpire = () => this.attributes.days_remaining_until_password_expire
426
423
 
427
424
  setDaysRemainingUntilPasswordExpire = value => {