files.com 1.0.154 → 1.0.158
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/lib/models/Session.js +6 -0
- package/lib/models/SettingsChange.js +0 -3
- package/lib/models/Site.js +3 -0
- package/lib/models/UsageDailySnapshot.js +21 -0
- package/lib/models/UsageSnapshot.js +15 -0
- package/package.json +1 -1
- package/src/models/File.js +1 -1
- package/src/models/Folder.js +1 -1
- package/src/models/Session.js +7 -0
- package/src/models/SettingsChange.js +0 -3
- package/src/models/Site.js +4 -0
- package/src/models/UsageDailySnapshot.js +22 -1
- package/src/models/UsageSnapshot.js +29 -14
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.158
|
package/lib/models/Session.js
CHANGED
@@ -137,6 +137,12 @@ var Session = /*#__PURE__*/(0, _createClass2.default)(function Session() {
|
|
137
137
|
(0, _defineProperty2.default)(this, "setAllowed2faMethodU2f", function (value) {
|
138
138
|
_this.attributes.allowed_2fa_method_u2f = value;
|
139
139
|
});
|
140
|
+
(0, _defineProperty2.default)(this, "getAllowed2faMethodWebauthn", function () {
|
141
|
+
return _this.attributes.allowed_2fa_method_webauthn;
|
142
|
+
});
|
143
|
+
(0, _defineProperty2.default)(this, "setAllowed2faMethodWebauthn", function (value) {
|
144
|
+
_this.attributes.allowed_2fa_method_webauthn = value;
|
145
|
+
});
|
140
146
|
(0, _defineProperty2.default)(this, "getAllowed2faMethodYubi", function () {
|
141
147
|
return _this.attributes.allowed_2fa_method_yubi;
|
142
148
|
});
|
@@ -41,9 +41,6 @@ var SettingsChange = /*#__PURE__*/(0, _createClass2.default)(function SettingsCh
|
|
41
41
|
(0, _defineProperty2.default)(this, "isLoaded", function () {
|
42
42
|
return !!_this.attributes.id;
|
43
43
|
});
|
44
|
-
(0, _defineProperty2.default)(this, "getChangeDetails", function () {
|
45
|
-
return _this.attributes.change_details;
|
46
|
-
});
|
47
44
|
(0, _defineProperty2.default)(this, "getChanges", function () {
|
48
45
|
return _this.attributes.changes;
|
49
46
|
});
|
package/lib/models/Site.js
CHANGED
@@ -53,6 +53,9 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
|
|
53
53
|
(0, _defineProperty2.default)(this, "getAllowed2faMethodU2f", function () {
|
54
54
|
return _this.attributes.allowed_2fa_method_u2f;
|
55
55
|
});
|
56
|
+
(0, _defineProperty2.default)(this, "getAllowed2faMethodWebauthn", function () {
|
57
|
+
return _this.attributes.allowed_2fa_method_webauthn;
|
58
|
+
});
|
56
59
|
(0, _defineProperty2.default)(this, "getAllowed2faMethodYubi", function () {
|
57
60
|
return _this.attributes.allowed_2fa_method_yubi;
|
58
61
|
});
|
@@ -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
package/src/models/File.js
CHANGED
@@ -267,7 +267,7 @@ class File {
|
|
267
267
|
this.attributes.region = value
|
268
268
|
}
|
269
269
|
|
270
|
-
// string # A short string representing the current user's permissions. Can be `r`,`w`,`
|
270
|
+
// string # A short string representing the current user's permissions. Can be `r`,`w`,`d`, `l` or any combination
|
271
271
|
getPermissions = () => this.attributes.permissions
|
272
272
|
|
273
273
|
setPermissions = value => {
|
package/src/models/Folder.js
CHANGED
@@ -93,7 +93,7 @@ class Folder {
|
|
93
93
|
this.attributes.region = value
|
94
94
|
}
|
95
95
|
|
96
|
-
// string # A short string representing the current user's permissions. Can be `r`,`w`,`
|
96
|
+
// string # A short string representing the current user's permissions. Can be `r`,`w`,`d`, `l` or any combination
|
97
97
|
getPermissions = () => this.attributes.permissions
|
98
98
|
|
99
99
|
setPermissions = value => {
|
package/src/models/Session.js
CHANGED
@@ -134,6 +134,13 @@ class Session {
|
|
134
134
|
this.attributes.allowed_2fa_method_u2f = value
|
135
135
|
}
|
136
136
|
|
137
|
+
// boolean # Sent only if 2FA setup is needed. Is WebAuthn two factor authentication allowed?
|
138
|
+
getAllowed2faMethodWebauthn = () => this.attributes.allowed_2fa_method_webauthn
|
139
|
+
|
140
|
+
setAllowed2faMethodWebauthn = value => {
|
141
|
+
this.attributes.allowed_2fa_method_webauthn = value
|
142
|
+
}
|
143
|
+
|
137
144
|
// boolean # Sent only if 2FA setup is needed. Is Yubikey two factor authentication allowed?
|
138
145
|
getAllowed2faMethodYubi = () => this.attributes.allowed_2fa_method_yubi
|
139
146
|
|
@@ -22,9 +22,6 @@ class SettingsChange {
|
|
22
22
|
}
|
23
23
|
|
24
24
|
isLoaded = () => !!this.attributes.id
|
25
|
-
// object # Specifics on what changed.
|
26
|
-
getChangeDetails = () => this.attributes.change_details
|
27
|
-
|
28
25
|
// string # Markdown-formatted change messages.
|
29
26
|
getChanges = () => this.attributes.changes
|
30
27
|
|
package/src/models/Site.js
CHANGED
@@ -34,6 +34,9 @@ class Site {
|
|
34
34
|
// boolean # Is U2F two factor authentication allowed?
|
35
35
|
getAllowed2faMethodU2f = () => this.attributes.allowed_2fa_method_u2f
|
36
36
|
|
37
|
+
// boolean # Is WebAuthn two factor authentication allowed?
|
38
|
+
getAllowed2faMethodWebauthn = () => this.attributes.allowed_2fa_method_webauthn
|
39
|
+
|
37
40
|
// boolean # Is yubikey two factor authentication allowed?
|
38
41
|
getAllowed2faMethodYubi = () => this.attributes.allowed_2fa_method_yubi
|
39
42
|
|
@@ -482,6 +485,7 @@ class Site {
|
|
482
485
|
// allowed_2fa_method_sms - boolean - Is SMS two factor authentication allowed?
|
483
486
|
// allowed_2fa_method_u2f - boolean - Is U2F two factor authentication allowed?
|
484
487
|
// allowed_2fa_method_totp - boolean - Is TOTP two factor authentication allowed?
|
488
|
+
// allowed_2fa_method_webauthn - boolean - Is WebAuthn two factor authentication allowed?
|
485
489
|
// allowed_2fa_method_yubi - boolean - Is yubikey two factor authentication allowed?
|
486
490
|
// require_2fa - boolean - Require two-factor authentication for all users?
|
487
491
|
// require_2fa_user_type - string - What type of user is required to use two-factor authentication (when require_2fa is set to `true` for this site)?
|
@@ -28,9 +28,30 @@ class UsageDailySnapshot {
|
|
28
28
|
// date # The date of this usage record
|
29
29
|
getDate = () => this.attributes.date
|
30
30
|
|
31
|
-
//
|
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 #
|
25
|
+
// int64 # Usage snapshot ID
|
26
26
|
getId = () => this.attributes.id
|
27
27
|
|
28
|
-
// date-time #
|
28
|
+
// date-time # Usage snapshot start date/time
|
29
29
|
getStartAt = () => this.attributes.start_at
|
30
30
|
|
31
|
-
// date-time #
|
31
|
+
// date-time # Usage snapshot end date/time
|
32
32
|
getEndAt = () => this.attributes.end_at
|
33
33
|
|
34
|
-
// date-time #
|
34
|
+
// date-time # DEPRECATED: Usage snapshot created at date/time
|
35
35
|
getCreatedAt = () => this.attributes.created_at
|
36
36
|
|
37
|
-
// double #
|
37
|
+
// double # Highest user count number in time period
|
38
38
|
getHighWaterUserCount = () => this.attributes.high_water_user_count
|
39
39
|
|
40
|
-
// double # Current
|
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 #
|
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 #
|
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.
|