files.com 1.0.253 → 1.0.255
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/Errors.md +1 -0
- package/docs/models/ApiKey.md +2 -3
- package/docs/models/App.md +1 -5
- package/docs/models/As2IncomingMessage.md +2 -3
- package/docs/models/As2OutgoingMessage.md +2 -3
- package/docs/models/As2Partner.md +7 -0
- package/docs/models/Automation.md +7 -8
- package/docs/models/AutomationRun.md +0 -5
- package/docs/models/BandwidthSnapshot.md +2 -3
- package/docs/models/Behavior.md +3 -11
- package/docs/models/Bundle.md +2 -3
- package/docs/models/BundleDownload.md +2 -3
- package/docs/models/BundleNotification.md +3 -1
- package/docs/models/BundleRecipient.md +0 -5
- package/docs/models/ExternalEvent.md +5 -5
- package/docs/models/Group.md +1 -5
- package/docs/models/History.md +1 -5
- package/docs/models/InboxRecipient.md +0 -5
- package/docs/models/InboxUpload.md +2 -3
- package/docs/models/Notification.md +3 -7
- package/docs/models/Permission.md +1 -5
- package/docs/models/RemoteBandwidthSnapshot.md +2 -3
- package/docs/models/SettingsChange.md +3 -5
- package/docs/models/UsageDailySnapshot.md +4 -5
- package/docs/models/User.md +5 -5
- package/lib/Errors.js +713 -699
- package/lib/models/ApiKey.js +2 -3
- package/lib/models/App.js +1 -5
- package/lib/models/As2IncomingMessage.js +2 -3
- package/lib/models/As2OutgoingMessage.js +2 -3
- package/lib/models/As2Partner.js +9 -0
- package/lib/models/Automation.js +6 -7
- package/lib/models/AutomationRun.js +0 -5
- package/lib/models/BandwidthSnapshot.js +2 -3
- package/lib/models/Behavior.js +3 -11
- package/lib/models/Bundle.js +2 -3
- package/lib/models/BundleDownload.js +2 -3
- package/lib/models/BundleNotification.js +5 -3
- package/lib/models/BundleRecipient.js +0 -5
- package/lib/models/ExternalEvent.js +5 -5
- package/lib/models/Group.js +1 -5
- package/lib/models/History.js +1 -5
- package/lib/models/InboxRecipient.js +0 -5
- package/lib/models/InboxUpload.js +2 -3
- package/lib/models/Notification.js +5 -9
- package/lib/models/Permission.js +1 -5
- package/lib/models/RemoteBandwidthSnapshot.js +2 -3
- package/lib/models/SettingsChange.js +17 -8
- package/lib/models/UsageDailySnapshot.js +4 -5
- package/lib/models/User.js +5 -5
- package/package.json +1 -1
- package/src/Errors.js +1 -0
- package/src/models/ApiKey.js +2 -3
- package/src/models/App.js +1 -5
- package/src/models/As2IncomingMessage.js +2 -3
- package/src/models/As2OutgoingMessage.js +2 -3
- package/src/models/As2Partner.js +9 -0
- package/src/models/Automation.js +6 -7
- package/src/models/AutomationRun.js +0 -5
- package/src/models/BandwidthSnapshot.js +2 -3
- package/src/models/Behavior.js +3 -11
- package/src/models/Bundle.js +2 -3
- package/src/models/BundleDownload.js +2 -3
- package/src/models/BundleNotification.js +5 -3
- package/src/models/BundleRecipient.js +0 -5
- package/src/models/ExternalEvent.js +5 -5
- package/src/models/Group.js +1 -5
- package/src/models/History.js +1 -5
- package/src/models/InboxRecipient.js +0 -5
- package/src/models/InboxUpload.js +2 -3
- package/src/models/Notification.js +5 -9
- package/src/models/Permission.js +1 -5
- package/src/models/RemoteBandwidthSnapshot.js +2 -3
- package/src/models/SettingsChange.js +10 -5
- package/src/models/UsageDailySnapshot.js +4 -5
- package/src/models/User.js +5 -5
package/src/models/As2Partner.js
CHANGED
@@ -58,6 +58,13 @@ class As2Partner {
|
|
58
58
|
this.attributes.server_certificate = value
|
59
59
|
}
|
60
60
|
|
61
|
+
// boolean # `true` if remote server only accepts connections from dedicated IPs
|
62
|
+
getEnableDedicatedIps = () => this.attributes.enable_dedicated_ips
|
63
|
+
|
64
|
+
setEnableDedicatedIps = value => {
|
65
|
+
this.attributes.enable_dedicated_ips = value
|
66
|
+
}
|
67
|
+
|
61
68
|
// string # Serial of public certificate used for message security in hex format.
|
62
69
|
getHexPublicCertificateSerial = () => this.attributes.hex_public_certificate_serial
|
63
70
|
|
@@ -120,6 +127,7 @@ class As2Partner {
|
|
120
127
|
// uri - string - URL base for AS2 responses
|
121
128
|
// server_certificate - string - Remote server certificate security setting
|
122
129
|
// public_certificate - string
|
130
|
+
// enable_dedicated_ips - boolean
|
123
131
|
update = async (params = {}) => {
|
124
132
|
if (!this.attributes.id) {
|
125
133
|
throw new errors.EmptyPropertyError('Current object has no id')
|
@@ -250,6 +258,7 @@ class As2Partner {
|
|
250
258
|
// public_certificate (required) - string
|
251
259
|
// as2_station_id (required) - int64 - Id of As2Station for this partner
|
252
260
|
// server_certificate - string - Remote server certificate security setting
|
261
|
+
// enable_dedicated_ips - boolean
|
253
262
|
static create = async (params = {}, options = {}) => {
|
254
263
|
if (!params['name']) {
|
255
264
|
throw new errors.MissingParameterError('Parameter missing: name')
|
package/src/models/Automation.js
CHANGED
@@ -320,14 +320,13 @@ class Automation {
|
|
320
320
|
// 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.
|
321
321
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
322
322
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[automation]=desc`). Valid fields are `automation`, `disabled`, `last_modified_at` or `name`.
|
323
|
-
//
|
324
|
-
//
|
325
|
-
//
|
326
|
-
//
|
327
|
-
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `
|
328
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal
|
323
|
+
// automation - string - If set, return records where the specified field is equal to the supplied value.
|
324
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `disabled`, `last_modified_at` or `automation`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
|
325
|
+
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `last_modified_at`.
|
326
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `last_modified_at`.
|
327
|
+
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `last_modified_at`.
|
328
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `last_modified_at`.
|
329
329
|
// with_deleted - boolean - Set to true to include deleted automations in the results.
|
330
|
-
// automation - string - DEPRECATED: Type of automation to filter by. Use `filter[automation]` instead.
|
331
330
|
static list = async (params = {}, options = {}) => {
|
332
331
|
if (params['cursor'] && !isString(params['cursor'])) {
|
333
332
|
throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params['cursor'])}`)
|
@@ -48,11 +48,6 @@ class AutomationRun {
|
|
48
48
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
49
49
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[created_at]=desc`). Valid fields are `created_at` and `status`.
|
50
50
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status`.
|
51
|
-
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `status`.
|
52
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `status`.
|
53
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status`.
|
54
|
-
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `status`.
|
55
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `status`.
|
56
51
|
// automation_id (required) - int64 - ID of the associated Automation.
|
57
52
|
static list = async (params = {}, options = {}) => {
|
58
53
|
if (!params['automation_id']) {
|
@@ -57,10 +57,9 @@ class BandwidthSnapshot {
|
|
57
57
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[logged_at]=desc`). Valid fields are `logged_at`.
|
58
58
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `logged_at`.
|
59
59
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `logged_at`.
|
60
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal
|
61
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `logged_at`.
|
60
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `logged_at`.
|
62
61
|
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `logged_at`.
|
63
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal
|
62
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `logged_at`.
|
64
63
|
static list = async (params = {}, options = {}) => {
|
65
64
|
if (params['cursor'] && !isString(params['cursor'])) {
|
66
65
|
throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params['cursor'])}`)
|
package/src/models/Behavior.js
CHANGED
@@ -181,13 +181,9 @@ class Behavior {
|
|
181
181
|
// 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.
|
182
182
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
183
183
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[behavior]=desc`). Valid fields are `behavior`.
|
184
|
+
// behavior - string - If set, return records where the specified field is equal to the supplied value.
|
184
185
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `behavior`.
|
185
|
-
//
|
186
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `behavior`.
|
187
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `behavior`.
|
188
|
-
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `behavior`.
|
189
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `behavior`.
|
190
|
-
// behavior - string - If set, only shows folder behaviors matching this behavior type.
|
186
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
|
191
187
|
static list = async (params = {}, options = {}) => {
|
192
188
|
if (params['cursor'] && !isString(params['cursor'])) {
|
193
189
|
throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params['cursor'])}`)
|
@@ -239,11 +235,7 @@ class Behavior {
|
|
239
235
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
240
236
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[behavior]=desc`). Valid fields are `behavior`.
|
241
237
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `behavior`.
|
242
|
-
//
|
243
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `behavior`.
|
244
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `behavior`.
|
245
|
-
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `behavior`.
|
246
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `behavior`.
|
238
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
|
247
239
|
// path (required) - string - Path to operate on.
|
248
240
|
// recursive - string - Show behaviors above this path?
|
249
241
|
// behavior - string - DEPRECATED: If set only shows folder behaviors matching this behavior type. Use `filter[behavior]` instead.
|
package/src/models/Bundle.js
CHANGED
@@ -426,10 +426,9 @@ class Bundle {
|
|
426
426
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[created_at]=desc`). Valid fields are `created_at` and `code`.
|
427
427
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
428
428
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
429
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal
|
430
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
429
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
431
430
|
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
432
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal
|
431
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
433
432
|
static list = async (params = {}, options = {}) => {
|
434
433
|
if (params['user_id'] && !isInt(params['user_id'])) {
|
435
434
|
throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params['user_id'])}`)
|
@@ -42,10 +42,9 @@ class BundleDownload {
|
|
42
42
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[created_at]=desc`). Valid fields are `created_at`.
|
43
43
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
44
44
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
45
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal
|
46
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
45
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
47
46
|
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
48
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal
|
47
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
49
48
|
// bundle_id - int64 - Bundle ID
|
50
49
|
// bundle_registration_id - int64 - BundleRegistration ID
|
51
50
|
static list = async (params = {}, options = {}) => {
|
@@ -133,7 +133,9 @@ class BundleNotification {
|
|
133
133
|
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
134
134
|
// 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.
|
135
135
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
136
|
-
//
|
136
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[bundle_id]=desc`). Valid fields are `bundle_id`.
|
137
|
+
// bundle_id - string - If set, return records where the specified field is equal to the supplied value.
|
138
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `bundle_id`.
|
137
139
|
static list = async (params = {}, options = {}) => {
|
138
140
|
if (params['user_id'] && !isInt(params['user_id'])) {
|
139
141
|
throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params['user_id'])}`)
|
@@ -147,8 +149,8 @@ class BundleNotification {
|
|
147
149
|
throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params['per_page'])}`)
|
148
150
|
}
|
149
151
|
|
150
|
-
if (params['bundle_id'] && !
|
151
|
-
throw new errors.InvalidParameterError(`Bad parameter: bundle_id must be of type
|
152
|
+
if (params['bundle_id'] && !isString(params['bundle_id'])) {
|
153
|
+
throw new errors.InvalidParameterError(`Bad parameter: bundle_id must be of type String, received ${getType(params['bundle_id'])}`)
|
152
154
|
}
|
153
155
|
|
154
156
|
const response = await Api.sendRequest(`/bundle_notifications`, 'GET', params, options)
|
@@ -96,11 +96,6 @@ class BundleRecipient {
|
|
96
96
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
97
97
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[has_registrations]=desc`). Valid fields are `has_registrations`.
|
98
98
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `has_registrations`.
|
99
|
-
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `has_registrations`.
|
100
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `has_registrations`.
|
101
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `has_registrations`.
|
102
|
-
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `has_registrations`.
|
103
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `has_registrations`.
|
104
99
|
// bundle_id (required) - int64 - List recipients for the bundle with this ID.
|
105
100
|
static list = async (params = {}, options = {}) => {
|
106
101
|
if (!params['bundle_id']) {
|
@@ -112,11 +112,11 @@ class ExternalEvent {
|
|
112
112
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
113
113
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[remote_server_type]=desc`). Valid fields are `remote_server_type`, `site_id`, `folder_behavior_id`, `event_type`, `created_at` or `status`.
|
114
114
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status` or `folder_behavior_id`. Valid field combinations are `[ event_type, status, created_at ]`, `[ event_type, created_at ]` or `[ status, created_at ]`.
|
115
|
-
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at
|
116
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal
|
117
|
-
//
|
118
|
-
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at
|
119
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal
|
115
|
+
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
116
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
117
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `remote_server_type`.
|
118
|
+
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
119
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
120
120
|
static list = async (params = {}, options = {}) => {
|
121
121
|
if (params['cursor'] && !isString(params['cursor'])) {
|
122
122
|
throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params['cursor'])}`)
|
package/src/models/Group.js
CHANGED
@@ -155,11 +155,7 @@ class Group {
|
|
155
155
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
156
156
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[name]=desc`). Valid fields are `name`.
|
157
157
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `name`.
|
158
|
-
//
|
159
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `name`.
|
160
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `name`.
|
161
|
-
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `name`.
|
162
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `name`.
|
158
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `name`.
|
163
159
|
// ids - string - Comma-separated list of group ids to include in results.
|
164
160
|
static list = async (params = {}, options = {}) => {
|
165
161
|
if (params['cursor'] && !isString(params['cursor'])) {
|
package/src/models/History.js
CHANGED
@@ -248,11 +248,7 @@ class History {
|
|
248
248
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
249
249
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[path]=desc`). Valid fields are `path`, `folder`, `user_id` or `created_at`.
|
250
250
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `user_id`, `folder` or `path`.
|
251
|
-
//
|
252
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `user_id`, `folder` or `path`.
|
253
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `user_id`, `folder` or `path`.
|
254
|
-
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `user_id`, `folder` or `path`.
|
255
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `user_id`, `folder` or `path`.
|
251
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
256
252
|
static list = async (params = {}, options = {}) => {
|
257
253
|
if (params['start_at'] && !isString(params['start_at'])) {
|
258
254
|
throw new errors.InvalidParameterError(`Bad parameter: start_at must be of type String, received ${getType(params['start_at'])}`)
|
@@ -96,11 +96,6 @@ class InboxRecipient {
|
|
96
96
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
97
97
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[has_registrations]=desc`). Valid fields are `has_registrations`.
|
98
98
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `has_registrations`.
|
99
|
-
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `has_registrations`.
|
100
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `has_registrations`.
|
101
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `has_registrations`.
|
102
|
-
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `has_registrations`.
|
103
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `has_registrations`.
|
104
99
|
// inbox_id (required) - int64 - List recipients for the inbox with this ID.
|
105
100
|
static list = async (params = {}, options = {}) => {
|
106
101
|
if (!params['inbox_id']) {
|
@@ -39,10 +39,9 @@ class InboxUpload {
|
|
39
39
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[created_at]=desc`). Valid fields are `created_at`.
|
40
40
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
41
41
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
42
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal
|
43
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
42
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
44
43
|
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
45
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal
|
44
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
46
45
|
// inbox_registration_id - int64 - InboxRegistration ID
|
47
46
|
// inbox_id - int64 - Inbox ID
|
48
47
|
static list = async (params = {}, options = {}) => {
|
@@ -279,13 +279,9 @@ class Notification {
|
|
279
279
|
// 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.
|
280
280
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
281
281
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[path]=desc`). Valid fields are `path`, `user_id` or `group_id`.
|
282
|
-
//
|
283
|
-
//
|
284
|
-
//
|
285
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `user_id`, `group_id` or `path`.
|
286
|
-
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `user_id`, `group_id` or `path`.
|
287
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `user_id`, `group_id` or `path`.
|
288
|
-
// group_id - int64 - DEPRECATED: Show notifications for this Group ID. Use `filter[group_id]` instead.
|
282
|
+
// group_id - string - If set, return records where the specified field is equal to the supplied value.
|
283
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `user_id` or `group_id`.
|
284
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
289
285
|
// path - string - Show notifications for this Path.
|
290
286
|
// include_ancestors - boolean - If `include_ancestors` is `true` and `path` is specified, include notifications for any parent paths. Ignored if `path` is not specified.
|
291
287
|
static list = async (params = {}, options = {}) => {
|
@@ -301,8 +297,8 @@ class Notification {
|
|
301
297
|
throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params['per_page'])}`)
|
302
298
|
}
|
303
299
|
|
304
|
-
if (params['group_id'] && !
|
305
|
-
throw new errors.InvalidParameterError(`Bad parameter: group_id must be of type
|
300
|
+
if (params['group_id'] && !isString(params['group_id'])) {
|
301
|
+
throw new errors.InvalidParameterError(`Bad parameter: group_id must be of type String, received ${getType(params['group_id'])}`)
|
306
302
|
}
|
307
303
|
|
308
304
|
if (params['path'] && !isString(params['path'])) {
|
package/src/models/Permission.js
CHANGED
@@ -125,11 +125,7 @@ class Permission {
|
|
125
125
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
126
126
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[group_id]=desc`). Valid fields are `group_id`, `path`, `user_id` or `permission`.
|
127
127
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `group_id`, `user_id` or `path`. Valid field combinations are `[ group_id, path ]` and `[ user_id, path ]`.
|
128
|
-
//
|
129
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `group_id`, `user_id` or `path`. Valid field combinations are `[ group_id, path ]` and `[ user_id, path ]`.
|
130
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `group_id`, `user_id` or `path`. Valid field combinations are `[ group_id, path ]` and `[ user_id, path ]`.
|
131
|
-
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `group_id`, `user_id` or `path`. Valid field combinations are `[ group_id, path ]` and `[ user_id, path ]`.
|
132
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `group_id`, `user_id` or `path`. Valid field combinations are `[ group_id, path ]` and `[ user_id, path ]`.
|
128
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
133
129
|
// path - string - DEPRECATED: Permission path. If provided, will scope permissions to this path. Use `filter[path]` instead.
|
134
130
|
// group_id - string - DEPRECATED: Group ID. If provided, will scope permissions to this group. Use `filter[group_id]` instead.`
|
135
131
|
// user_id - string - DEPRECATED: User ID. If provided, will scope permissions to this user. Use `filter[user_id]` instead.`
|
@@ -45,10 +45,9 @@ class RemoteBandwidthSnapshot {
|
|
45
45
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[logged_at]=desc`). Valid fields are `logged_at`.
|
46
46
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `logged_at`.
|
47
47
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `logged_at`.
|
48
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal
|
49
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `logged_at`.
|
48
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `logged_at`.
|
50
49
|
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `logged_at`.
|
51
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal
|
50
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `logged_at`.
|
52
51
|
static list = async (params = {}, options = {}) => {
|
53
52
|
if (params['cursor'] && !isString(params['cursor'])) {
|
54
53
|
throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params['cursor'])}`)
|
@@ -43,12 +43,9 @@ class SettingsChange {
|
|
43
43
|
// 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.
|
44
44
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
45
45
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[api_key_id]=desc`). Valid fields are `api_key_id`, `created_at` or `user_id`.
|
46
|
+
// api_key_id - string - If set, return records where the specified field is equal to the supplied value.
|
47
|
+
// user_id - string - If set, return records where the specified field is equal to the supplied value.
|
46
48
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `api_key_id` and `user_id`.
|
47
|
-
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `api_key_id` and `user_id`.
|
48
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `api_key_id` and `user_id`.
|
49
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `api_key_id` and `user_id`.
|
50
|
-
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `api_key_id` and `user_id`.
|
51
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `api_key_id` and `user_id`.
|
52
49
|
static list = async (params = {}, options = {}) => {
|
53
50
|
if (params['cursor'] && !isString(params['cursor'])) {
|
54
51
|
throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params['cursor'])}`)
|
@@ -58,6 +55,14 @@ class SettingsChange {
|
|
58
55
|
throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params['per_page'])}`)
|
59
56
|
}
|
60
57
|
|
58
|
+
if (params['api_key_id'] && !isString(params['api_key_id'])) {
|
59
|
+
throw new errors.InvalidParameterError(`Bad parameter: api_key_id must be of type String, received ${getType(params['api_key_id'])}`)
|
60
|
+
}
|
61
|
+
|
62
|
+
if (params['user_id'] && !isString(params['user_id'])) {
|
63
|
+
throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type String, received ${getType(params['user_id'])}`)
|
64
|
+
}
|
65
|
+
|
61
66
|
const response = await Api.sendRequest(`/settings_changes`, 'GET', params, options)
|
62
67
|
|
63
68
|
return response?.data?.map(obj => new SettingsChange(obj, options)) || []
|
@@ -62,11 +62,10 @@ class UsageDailySnapshot {
|
|
62
62
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
63
63
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[date]=desc`). Valid fields are `date` and `usage_snapshot_id`.
|
64
64
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `date` and `usage_snapshot_id`. Valid field combinations are `[ usage_snapshot_id, date ]`.
|
65
|
-
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `date
|
66
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal
|
67
|
-
//
|
68
|
-
//
|
69
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `date` and `usage_snapshot_id`. Valid field combinations are `[ usage_snapshot_id, date ]`.
|
65
|
+
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `date`.
|
66
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `date`.
|
67
|
+
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `date`.
|
68
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `date`.
|
70
69
|
static list = async (params = {}, options = {}) => {
|
71
70
|
if (params['cursor'] && !isString(params['cursor'])) {
|
72
71
|
throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params['cursor'])}`)
|
package/src/models/User.js
CHANGED
@@ -779,11 +779,11 @@ class User {
|
|
779
779
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
780
780
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[authenticate_until]=desc`). Valid fields are `authenticate_until`, `active`, `email`, `last_desktop_login_at`, `last_login_at`, `username`, `company`, `name`, `site_admin`, `receive_admin_alerts`, `password_validity_days`, `ssl_required` or `not_site_admin`.
|
781
781
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `username`, `email`, `company`, `site_admin`, `password_validity_days`, `ssl_required`, `last_login_at`, `authenticate_until` or `not_site_admin`. Valid field combinations are `[ not_site_admin, username ]`.
|
782
|
-
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `
|
783
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal
|
784
|
-
//
|
785
|
-
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `
|
786
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal
|
782
|
+
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `password_validity_days`, `last_login_at` or `authenticate_until`.
|
783
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `password_validity_days`, `last_login_at` or `authenticate_until`.
|
784
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `username`, `email` or `company`.
|
785
|
+
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `password_validity_days`, `last_login_at` or `authenticate_until`.
|
786
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `password_validity_days`, `last_login_at` or `authenticate_until`.
|
787
787
|
// ids - string - comma-separated list of User IDs
|
788
788
|
// q[username] - string - List users matching username.
|
789
789
|
// q[email] - string - List users matching email.
|