files.com 1.2.538 → 1.2.540

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.538
1
+ 1.2.540
@@ -54,7 +54,7 @@ await AutomationRun.list({
54
54
  * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
55
55
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
56
56
  * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `automation_id`, `created_at` or `status`.
57
- * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `status`, `workspace_id` or `automation_id`. Valid field combinations are `[ workspace_id, status ]`, `[ automation_id, status ]`, `[ workspace_id, automation_id ]` or `[ workspace_id, automation_id, status ]`.
57
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `status`, `workspace_id` or `automation_id`. Valid field combinations are `[ automation_id, status ]`, `[ workspace_id, automation_id ]` or `[ workspace_id, automation_id, status ]`.
58
58
  * `automation_id` (int64): Required - ID of the associated Automation.
59
59
 
60
60
  ---
@@ -8,16 +8,16 @@
8
8
  "start_at": "2000-01-01T01:00:00Z",
9
9
  "end_at": "2000-01-01T01:00:00Z",
10
10
  "high_water_user_count": 1,
11
- "current_storage": "1.0",
12
- "high_water_storage": "1.0",
13
- "root_storage": "1.0",
14
- "deleted_files_counted_in_minimum": "1.0",
15
- "deleted_files_storage": "1.0",
16
- "total_billable_usage": "1.0",
17
- "total_billable_transfer_usage": "1.0",
18
- "bytes_sent": "1.0",
19
- "sync_bytes_received": "1.0",
20
- "sync_bytes_sent": "1.0",
11
+ "current_storage": 1,
12
+ "high_water_storage": 1,
13
+ "root_storage": 1,
14
+ "deleted_files_counted_in_minimum": 1,
15
+ "deleted_files_storage": 1,
16
+ "total_billable_usage": 1,
17
+ "total_billable_transfer_usage": 1,
18
+ "bytes_sent": 1,
19
+ "sync_bytes_received": 1,
20
+ "sync_bytes_sent": 1,
21
21
  "usage_by_top_level_dir": [
22
22
  {
23
23
  "dir": "dir",
@@ -32,16 +32,16 @@
32
32
  * `start_at` (date-time): Usage snapshot start date/time
33
33
  * `end_at` (date-time): Usage snapshot end date/time
34
34
  * `high_water_user_count` (int64): Highest user count number in time period
35
- * `current_storage` (double): Current total Storage Usage GB as of end date (not necessarily high water mark, which is used for billing)
36
- * `high_water_storage` (double): Highest Storage Usage GB recorded in time period (used for billing)
37
- * `root_storage` (double): Storage Usage for root folder as of end date (not necessarily high water mark, which is used for billing)
38
- * `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)
39
- * `deleted_files_storage` (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)
40
- * `total_billable_usage` (double): Storage + Transfer Usage - Total Billable amount
41
- * `total_billable_transfer_usage` (double): Transfer usage for period - Total Billable amount
42
- * `bytes_sent` (double): Transfer Usage for period - Outbound GB from Files Native Storage
43
- * `sync_bytes_received` (double): Transfer Usage for period - Inbound GB to Remote Servers (Sync/Mount)
44
- * `sync_bytes_sent` (double): Transfer Usage for period - Outbound GB from Remote Servers (Sync/Mount)
35
+ * `current_storage` (int64): Current total Storage Usage GB as of end date (not necessarily high water mark, which is used for billing)
36
+ * `high_water_storage` (int64): Highest Storage Usage GB recorded in time period (used for billing)
37
+ * `root_storage` (int64): Storage Usage for root folder as of end date (not necessarily high water mark, which is used for billing)
38
+ * `deleted_files_counted_in_minimum` (int64): 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)
39
+ * `deleted_files_storage` (int64): 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)
40
+ * `total_billable_usage` (int64): Storage + Transfer Usage - Total Billable amount
41
+ * `total_billable_transfer_usage` (int64): Transfer usage for period - Total Billable amount
42
+ * `bytes_sent` (int64): Transfer Usage for period - Outbound GB from Files Native Storage
43
+ * `sync_bytes_received` (int64): Transfer Usage for period - Inbound GB to Remote Servers (Sync/Mount)
44
+ * `sync_bytes_sent` (int64): Transfer Usage for period - Outbound GB from Remote Servers (Sync/Mount)
45
45
  * `usage_by_top_level_dir` (array(object)): Storage Usage - map of root folders to their usage as of end date (not necessarily high water mark, which is used for billing)
46
46
 
47
47
  ---
package/lib/Files.js CHANGED
@@ -12,7 +12,7 @@ var apiKey;
12
12
  var baseUrl = 'https://app.files.com';
13
13
  var sessionId = null;
14
14
  var language = null;
15
- var version = '1.2.538';
15
+ var version = '1.2.540';
16
16
  var userAgent = "Files.com JavaScript SDK v".concat(version);
17
17
  var logLevel = _Logger.LogLevel.INFO;
18
18
  var debugRequest = false;
@@ -107,7 +107,7 @@ _AutomationRun = AutomationRun;
107
107
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
108
108
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
109
109
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `automation_id`, `created_at` or `status`.
110
- // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status`, `workspace_id` or `automation_id`. Valid field combinations are `[ workspace_id, status ]`, `[ automation_id, status ]`, `[ workspace_id, automation_id ]` or `[ workspace_id, automation_id, status ]`.
110
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status`, `workspace_id` or `automation_id`. Valid field combinations are `[ automation_id, status ]`, `[ workspace_id, automation_id ]` or `[ workspace_id, automation_id, status ]`.
111
111
  // automation_id (required) - int64 - ID of the associated Automation.
112
112
  (0, _defineProperty2.default)(AutomationRun, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
113
113
  var _response$data;
@@ -48,43 +48,43 @@ var UsageSnapshot = /*#__PURE__*/(0, _createClass2.default)(function UsageSnapsh
48
48
  (0, _defineProperty2.default)(this, "getHighWaterUserCount", function () {
49
49
  return _this.attributes.high_water_user_count;
50
50
  });
51
- // double # Current total Storage Usage GB as of end date (not necessarily high water mark, which is used for billing)
51
+ // int64 # Current total Storage Usage GB as of end date (not necessarily high water mark, which is used for billing)
52
52
  (0, _defineProperty2.default)(this, "getCurrentStorage", function () {
53
53
  return _this.attributes.current_storage;
54
54
  });
55
- // double # Highest Storage Usage GB recorded in time period (used for billing)
55
+ // int64 # Highest Storage Usage GB recorded in time period (used for billing)
56
56
  (0, _defineProperty2.default)(this, "getHighWaterStorage", function () {
57
57
  return _this.attributes.high_water_storage;
58
58
  });
59
- // double # Storage Usage for root folder as of end date (not necessarily high water mark, which is used for billing)
59
+ // int64 # Storage Usage for root folder as of end date (not necessarily high water mark, which is used for billing)
60
60
  (0, _defineProperty2.default)(this, "getRootStorage", function () {
61
61
  return _this.attributes.root_storage;
62
62
  });
63
- // 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)
63
+ // int64 # 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)
64
64
  (0, _defineProperty2.default)(this, "getDeletedFilesCountedInMinimum", function () {
65
65
  return _this.attributes.deleted_files_counted_in_minimum;
66
66
  });
67
- // 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)
67
+ // int64 # 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)
68
68
  (0, _defineProperty2.default)(this, "getDeletedFilesStorage", function () {
69
69
  return _this.attributes.deleted_files_storage;
70
70
  });
71
- // double # Storage + Transfer Usage - Total Billable amount
71
+ // int64 # Storage + Transfer Usage - Total Billable amount
72
72
  (0, _defineProperty2.default)(this, "getTotalBillableUsage", function () {
73
73
  return _this.attributes.total_billable_usage;
74
74
  });
75
- // double # Transfer usage for period - Total Billable amount
75
+ // int64 # Transfer usage for period - Total Billable amount
76
76
  (0, _defineProperty2.default)(this, "getTotalBillableTransferUsage", function () {
77
77
  return _this.attributes.total_billable_transfer_usage;
78
78
  });
79
- // double # Transfer Usage for period - Outbound GB from Files Native Storage
79
+ // int64 # Transfer Usage for period - Outbound GB from Files Native Storage
80
80
  (0, _defineProperty2.default)(this, "getBytesSent", function () {
81
81
  return _this.attributes.bytes_sent;
82
82
  });
83
- // double # Transfer Usage for period - Inbound GB to Remote Servers (Sync/Mount)
83
+ // int64 # Transfer Usage for period - Inbound GB to Remote Servers (Sync/Mount)
84
84
  (0, _defineProperty2.default)(this, "getSyncBytesReceived", function () {
85
85
  return _this.attributes.sync_bytes_received;
86
86
  });
87
- // double # Transfer Usage for period - Outbound GB from Remote Servers (Sync/Mount)
87
+ // int64 # Transfer Usage for period - Outbound GB from Remote Servers (Sync/Mount)
88
88
  (0, _defineProperty2.default)(this, "getSyncBytesSent", function () {
89
89
  return _this.attributes.sync_bytes_sent;
90
90
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.538",
3
+ "version": "1.2.540",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Files.js CHANGED
@@ -6,7 +6,7 @@ let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
8
  let language = null
9
- const version = '1.2.538'
9
+ const version = '1.2.540'
10
10
  let userAgent = `Files.com JavaScript SDK v${version}`
11
11
 
12
12
  let logLevel = LogLevel.INFO
@@ -75,7 +75,7 @@ class AutomationRun {
75
75
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
76
76
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
77
77
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `automation_id`, `created_at` or `status`.
78
- // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status`, `workspace_id` or `automation_id`. Valid field combinations are `[ workspace_id, status ]`, `[ automation_id, status ]`, `[ workspace_id, automation_id ]` or `[ workspace_id, automation_id, status ]`.
78
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status`, `workspace_id` or `automation_id`. Valid field combinations are `[ automation_id, status ]`, `[ workspace_id, automation_id ]` or `[ workspace_id, automation_id, status ]`.
79
79
  // automation_id (required) - int64 - ID of the associated Automation.
80
80
  static list = async (params = {}, options = {}) => {
81
81
  if (!params.automation_id) {
@@ -40,34 +40,34 @@ class UsageSnapshot {
40
40
  // int64 # Highest user count number in time period
41
41
  getHighWaterUserCount = () => this.attributes.high_water_user_count
42
42
 
43
- // double # Current total Storage Usage GB as of end date (not necessarily high water mark, which is used for billing)
43
+ // int64 # Current total Storage Usage GB as of end date (not necessarily high water mark, which is used for billing)
44
44
  getCurrentStorage = () => this.attributes.current_storage
45
45
 
46
- // double # Highest Storage Usage GB recorded in time period (used for billing)
46
+ // int64 # Highest Storage Usage GB recorded in time period (used for billing)
47
47
  getHighWaterStorage = () => this.attributes.high_water_storage
48
48
 
49
- // double # Storage Usage for root folder as of end date (not necessarily high water mark, which is used for billing)
49
+ // int64 # Storage Usage for root folder as of end date (not necessarily high water mark, which is used for billing)
50
50
  getRootStorage = () => this.attributes.root_storage
51
51
 
52
- // 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)
52
+ // int64 # 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)
53
53
  getDeletedFilesCountedInMinimum = () => this.attributes.deleted_files_counted_in_minimum
54
54
 
55
- // 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)
55
+ // int64 # 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)
56
56
  getDeletedFilesStorage = () => this.attributes.deleted_files_storage
57
57
 
58
- // double # Storage + Transfer Usage - Total Billable amount
58
+ // int64 # Storage + Transfer Usage - Total Billable amount
59
59
  getTotalBillableUsage = () => this.attributes.total_billable_usage
60
60
 
61
- // double # Transfer usage for period - Total Billable amount
61
+ // int64 # Transfer usage for period - Total Billable amount
62
62
  getTotalBillableTransferUsage = () => this.attributes.total_billable_transfer_usage
63
63
 
64
- // double # Transfer Usage for period - Outbound GB from Files Native Storage
64
+ // int64 # Transfer Usage for period - Outbound GB from Files Native Storage
65
65
  getBytesSent = () => this.attributes.bytes_sent
66
66
 
67
- // double # Transfer Usage for period - Inbound GB to Remote Servers (Sync/Mount)
67
+ // int64 # Transfer Usage for period - Inbound GB to Remote Servers (Sync/Mount)
68
68
  getSyncBytesReceived = () => this.attributes.sync_bytes_received
69
69
 
70
- // double # Transfer Usage for period - Outbound GB from Remote Servers (Sync/Mount)
70
+ // int64 # Transfer Usage for period - Outbound GB from Remote Servers (Sync/Mount)
71
71
  getSyncBytesSent = () => this.attributes.sync_bytes_sent
72
72
 
73
73
  // array(object) # Storage Usage - map of root folders to their usage as of end date (not necessarily high water mark, which is used for billing)