files.com 1.0.154 → 1.0.155

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.0.154
1
+ 1.0.155
@@ -47,9 +47,30 @@ var UsageDailySnapshot = /*#__PURE__*/(0, _createClass2.default)(function UsageD
47
47
  (0, _defineProperty2.default)(this, "getDate", function () {
48
48
  return _this.attributes.date;
49
49
  });
50
+ (0, _defineProperty2.default)(this, "getApiUsageAvailable", function () {
51
+ return _this.attributes.api_usage_available;
52
+ });
53
+ (0, _defineProperty2.default)(this, "getReadApiUsage", function () {
54
+ return _this.attributes.read_api_usage;
55
+ });
56
+ (0, _defineProperty2.default)(this, "getWriteApiUsage", function () {
57
+ return _this.attributes.write_api_usage;
58
+ });
59
+ (0, _defineProperty2.default)(this, "getUserCount", function () {
60
+ return _this.attributes.user_count;
61
+ });
50
62
  (0, _defineProperty2.default)(this, "getCurrentStorage", function () {
51
63
  return _this.attributes.current_storage;
52
64
  });
65
+ (0, _defineProperty2.default)(this, "getDeletedFilesStorage", function () {
66
+ return _this.attributes.deleted_files_storage;
67
+ });
68
+ (0, _defineProperty2.default)(this, "getDeletedFilesCountedInMinimum", function () {
69
+ return _this.attributes.deleted_files_counted_in_minimum;
70
+ });
71
+ (0, _defineProperty2.default)(this, "getRootStorage", function () {
72
+ return _this.attributes.root_storage;
73
+ });
53
74
  (0, _defineProperty2.default)(this, "getUsageByTopLevelDir", function () {
54
75
  return _this.attributes.usage_by_top_level_dir;
55
76
  });
@@ -83,6 +83,21 @@ var UsageSnapshot = /*#__PURE__*/(0, _createClass2.default)(function UsageSnapsh
83
83
  (0, _defineProperty2.default)(this, "getDeletedFilesStorage", function () {
84
84
  return _this.attributes.deleted_files_storage;
85
85
  });
86
+ (0, _defineProperty2.default)(this, "getTotalBillableUsage", function () {
87
+ return _this.attributes.total_billable_usage;
88
+ });
89
+ (0, _defineProperty2.default)(this, "getTotalBillableTransferUsage", function () {
90
+ return _this.attributes.total_billable_transfer_usage;
91
+ });
92
+ (0, _defineProperty2.default)(this, "getBytesSent", function () {
93
+ return _this.attributes.bytes_sent;
94
+ });
95
+ (0, _defineProperty2.default)(this, "getSyncBytesReceived", function () {
96
+ return _this.attributes.sync_bytes_received;
97
+ });
98
+ (0, _defineProperty2.default)(this, "getSyncBytesSent", function () {
99
+ return _this.attributes.sync_bytes_sent;
100
+ });
86
101
  Object.entries(attributes).forEach(function (_ref) {
87
102
  var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
88
103
  key = _ref2[0],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.0.154",
3
+ "version": "1.0.155",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
@@ -28,9 +28,30 @@ class UsageDailySnapshot {
28
28
  // date # The date of this usage record
29
29
  getDate = () => this.attributes.date
30
30
 
31
- // int64 # The quantity of storage held for this site
31
+ // boolean # True if the API usage fields `read_api_usage` and `write_api_usage` can be relied upon. If this is false, we suggest hiding that value from any UI.
32
+ getApiUsageAvailable = () => this.attributes.api_usage_available
33
+
34
+ // int64 # Read API Calls used on this day. Note: only updated for days before the current day.
35
+ getReadApiUsage = () => this.attributes.read_api_usage
36
+
37
+ // int64 # Write API Calls used on this day. Note: only updated for days before the current day.
38
+ getWriteApiUsage = () => this.attributes.write_api_usage
39
+
40
+ // int64 # Number of billable users as of this day.
41
+ getUserCount = () => this.attributes.user_count
42
+
43
+ // int64 # GB of Files Native Storage used on this day.
32
44
  getCurrentStorage = () => this.attributes.current_storage
33
45
 
46
+ // int64 # GB of Files Native Storage used on this day for files that have been deleted and are stored as backups.
47
+ getDeletedFilesStorage = () => this.attributes.deleted_files_storage
48
+
49
+ // int64 # GB of Files Native Storage used on this day for files that have been permanently deleted but were uploaded less than 30 days ago, and are still billable.
50
+ getDeletedFilesCountedInMinimum = () => this.attributes.deleted_files_counted_in_minimum
51
+
52
+ // int64 # GB of Files Native Storage used for the root folder. Included here because this value will not be part of `usage_by_top_level_dir`
53
+ getRootStorage = () => this.attributes.root_storage
54
+
34
55
  // array # Usage broken down by each top-level folder
35
56
  getUsageByTopLevelDir = () => this.attributes.usage_by_top_level_dir
36
57
 
@@ -22,48 +22,63 @@ class UsageSnapshot {
22
22
  }
23
23
 
24
24
  isLoaded = () => !!this.attributes.id
25
- // int64 # Site usage ID
25
+ // int64 # Usage snapshot ID
26
26
  getId = () => this.attributes.id
27
27
 
28
- // date-time # Site usage report start date/time
28
+ // date-time # Usage snapshot start date/time
29
29
  getStartAt = () => this.attributes.start_at
30
30
 
31
- // date-time # Site usage report end date/time
31
+ // date-time # Usage snapshot end date/time
32
32
  getEndAt = () => this.attributes.end_at
33
33
 
34
- // date-time # Site usage report created at date/time
34
+ // date-time # DEPRECATED: Usage snapshot created at date/time
35
35
  getCreatedAt = () => this.attributes.created_at
36
36
 
37
- // double # Site usage report highest usage in time period
37
+ // double # Highest user count number in time period
38
38
  getHighWaterUserCount = () => this.attributes.high_water_user_count
39
39
 
40
- // double # Current site usage as of report
40
+ // double # Current total Storage Usage GB as of end date (not necessarily high water mark, which is used for billing)
41
41
  getCurrentStorage = () => this.attributes.current_storage
42
42
 
43
- // double # Site usage report highest usage in time period
43
+ // double # Highest Storage Usage GB recorded in time period (used for billing)
44
44
  getHighWaterStorage = () => this.attributes.high_water_storage
45
45
 
46
- // int64 # Number of downloads in report time period
46
+ // int64 # DEPRECATED: Number of downloads in report time period
47
47
  getTotalDownloads = () => this.attributes.total_downloads
48
48
 
49
- // int64 # Number of uploads in time period
49
+ // int64 # DEPRECATED: Number of uploads in time period
50
50
  getTotalUploads = () => this.attributes.total_uploads
51
51
 
52
- // date-time # The last time this site usage report was updated
52
+ // date-time # DEPRECATED: The last time this site usage report was updated
53
53
  getUpdatedAt = () => this.attributes.updated_at
54
54
 
55
- // object # A map of root folders to their total usage
55
+ // object # Storage Usage - map of root folders to their usage as of end date (not necessarily high water mark, which is used for billing)
56
56
  getUsageByTopLevelDir = () => this.attributes.usage_by_top_level_dir
57
57
 
58
- // double # Usage for root folder
58
+ // double # Storage Usage for root folder as of end date (not necessarily high water mark, which is used for billing)
59
59
  getRootStorage = () => this.attributes.root_storage
60
60
 
61
- // double # Usage for files that are deleted but uploaded within last 30 days
61
+ // 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
62
  getDeletedFilesCountedInMinimum = () => this.attributes.deleted_files_counted_in_minimum
63
63
 
64
- // double # Usage for files that are deleted but retained as backups
64
+ // double # Storage Usage for files that are deleted but retained as backups as of end date (not necessarily high water mark, which is used for billing)
65
65
  getDeletedFilesStorage = () => this.attributes.deleted_files_storage
66
66
 
67
+ // double # Storage + Transfer Usage - Total Billable amount
68
+ getTotalBillableUsage = () => this.attributes.total_billable_usage
69
+
70
+ // double # Transfer usage for period - Total Billable amount
71
+ getTotalBillableTransferUsage = () => this.attributes.total_billable_transfer_usage
72
+
73
+ // double # Transfer Usage for period - Outbound GB from Files Native Storage
74
+ getBytesSent = () => this.attributes.bytes_sent
75
+
76
+ // double # Transfer Usage for period - Inbound GB to Remote Servers (Sync/Mount)
77
+ getSyncBytesReceived = () => this.attributes.sync_bytes_received
78
+
79
+ // double # Transfer Usage for period - Outbound GB from Remote Servers (Sync/Mount)
80
+ getSyncBytesSent = () => this.attributes.sync_bytes_sent
81
+
67
82
 
68
83
  // Parameters:
69
84
  // cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.