files.com 1.0.254 → 1.0.256
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/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/File.md +1 -0
- package/docs/models/FileUploadPart.md +2 -0
- package/docs/models/Group.md +1 -5
- package/docs/models/History.md +1 -5
- package/docs/models/InboxRecipient.md +0 -10
- 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/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/FileUploadPart.js +4 -0
- package/lib/models/Group.js +1 -5
- package/lib/models/History.js +1 -5
- package/lib/models/InboxRecipient.js +22 -48
- 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/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/FileUploadPart.js +3 -0
- package/src/models/Group.js +1 -5
- package/src/models/History.js +1 -5
- package/src/models/InboxRecipient.js +0 -22
- 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/lib/models/ApiKey.js
CHANGED
@@ -285,10 +285,9 @@ var ApiKey = /*#__PURE__*/(0, _createClass2.default)(function ApiKey() {
|
|
285
285
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[expires_at]=desc`). Valid fields are `expires_at`.
|
286
286
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `expires_at`.
|
287
287
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `expires_at`.
|
288
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal
|
289
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `expires_at`.
|
288
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `expires_at`.
|
290
289
|
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `expires_at`.
|
291
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal
|
290
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `expires_at`.
|
292
291
|
(0, _defineProperty2.default)(ApiKey, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
293
292
|
var _response$data;
|
294
293
|
var params,
|
package/lib/models/App.js
CHANGED
@@ -113,11 +113,7 @@ var App = /*#__PURE__*/(0, _createClass2.default)(function App() {
|
|
113
113
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
114
114
|
// 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` and `app_type`.
|
115
115
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `name` and `app_type`. Valid field combinations are `[ name, app_type ]` and `[ app_type, name ]`.
|
116
|
-
//
|
117
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `name` and `app_type`. Valid field combinations are `[ name, app_type ]` and `[ app_type, name ]`.
|
118
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `name` and `app_type`. Valid field combinations are `[ name, app_type ]` and `[ app_type, name ]`.
|
119
|
-
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `name` and `app_type`. Valid field combinations are `[ name, app_type ]` and `[ app_type, name ]`.
|
120
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `name` and `app_type`. Valid field combinations are `[ name, app_type ]` and `[ app_type, name ]`.
|
116
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `name`.
|
121
117
|
(0, _defineProperty2.default)(App, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
122
118
|
var _response$data;
|
123
119
|
var params,
|
@@ -190,10 +190,9 @@ var As2IncomingMessage = /*#__PURE__*/(0, _createClass2.default)(function As2Inc
|
|
190
190
|
// 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 `as2_partner_id`.
|
191
191
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
192
192
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
193
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal
|
194
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
193
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
195
194
|
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
196
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal
|
195
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
197
196
|
// as2_partner_id - int64 - As2 Partner ID. If provided, will return message specific to that partner.
|
198
197
|
(0, _defineProperty2.default)(As2IncomingMessage, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
199
198
|
var _response$data;
|
@@ -174,10 +174,9 @@ var As2OutgoingMessage = /*#__PURE__*/(0, _createClass2.default)(function As2Out
|
|
174
174
|
// 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 `as2_partner_id`.
|
175
175
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
176
176
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
177
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal
|
178
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
177
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
179
178
|
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
180
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal
|
179
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
181
180
|
// as2_partner_id - int64 - As2 Partner ID. If provided, will return message specific to that partner.
|
182
181
|
(0, _defineProperty2.default)(As2OutgoingMessage, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
183
182
|
var _response$data;
|
package/lib/models/Automation.js
CHANGED
@@ -435,14 +435,13 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
|
|
435
435
|
// 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.
|
436
436
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
437
437
|
// 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`.
|
438
|
-
//
|
439
|
-
//
|
440
|
-
//
|
441
|
-
//
|
442
|
-
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `
|
443
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal
|
438
|
+
// automation - string - If set, return records where the specified field is equal to the supplied value.
|
439
|
+
// 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 ]`.
|
440
|
+
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `last_modified_at`.
|
441
|
+
// 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`.
|
442
|
+
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `last_modified_at`.
|
443
|
+
// 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`.
|
444
444
|
// with_deleted - boolean - Set to true to include deleted automations in the results.
|
445
|
-
// automation - string - DEPRECATED: Type of automation to filter by. Use `filter[automation]` instead.
|
446
445
|
(0, _defineProperty2.default)(Automation, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
447
446
|
var _response$data;
|
448
447
|
var params,
|
@@ -74,11 +74,6 @@ var AutomationRun = /*#__PURE__*/(0, _createClass2.default)(function AutomationR
|
|
74
74
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
75
75
|
// 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`.
|
76
76
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status`.
|
77
|
-
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `status`.
|
78
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `status`.
|
79
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status`.
|
80
|
-
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `status`.
|
81
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `status`.
|
82
77
|
// automation_id (required) - int64 - ID of the associated Automation.
|
83
78
|
(0, _defineProperty2.default)(AutomationRun, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
84
79
|
var _response$data;
|
@@ -86,10 +86,9 @@ var BandwidthSnapshot = /*#__PURE__*/(0, _createClass2.default)(function Bandwid
|
|
86
86
|
// 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`.
|
87
87
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `logged_at`.
|
88
88
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `logged_at`.
|
89
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal
|
90
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `logged_at`.
|
89
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `logged_at`.
|
91
90
|
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `logged_at`.
|
92
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal
|
91
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `logged_at`.
|
93
92
|
(0, _defineProperty2.default)(BandwidthSnapshot, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
94
93
|
var _response$data;
|
95
94
|
var params,
|
package/lib/models/Behavior.js
CHANGED
@@ -266,13 +266,9 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
|
|
266
266
|
// 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.
|
267
267
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
268
268
|
// 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`.
|
269
|
+
// behavior - string - If set, return records where the specified field is equal to the supplied value.
|
269
270
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `behavior`.
|
270
|
-
//
|
271
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `behavior`.
|
272
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `behavior`.
|
273
|
-
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `behavior`.
|
274
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `behavior`.
|
275
|
-
// behavior - string - If set, only shows folder behaviors matching this behavior type.
|
271
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
|
276
272
|
(0, _defineProperty2.default)(Behavior, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
277
273
|
var _response$data;
|
278
274
|
var params,
|
@@ -377,11 +373,7 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
|
|
377
373
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
378
374
|
// 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`.
|
379
375
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `behavior`.
|
380
|
-
//
|
381
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `behavior`.
|
382
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `behavior`.
|
383
|
-
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `behavior`.
|
384
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `behavior`.
|
376
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
|
385
377
|
// path (required) - string - Path to operate on.
|
386
378
|
// recursive - string - Show behaviors above this path?
|
387
379
|
// behavior - string - DEPRECATED: If set only shows folder behaviors matching this behavior type. Use `filter[behavior]` instead.
|
package/lib/models/Bundle.js
CHANGED
@@ -567,10 +567,9 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
|
|
567
567
|
// 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`.
|
568
568
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
569
569
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
570
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal
|
571
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
570
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
572
571
|
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
573
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal
|
572
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
574
573
|
(0, _defineProperty2.default)(Bundle, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
575
574
|
var _response$data;
|
576
575
|
var params,
|
@@ -66,10 +66,9 @@ var BundleDownload = /*#__PURE__*/(0, _createClass2.default)(function BundleDown
|
|
66
66
|
// 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`.
|
67
67
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
68
68
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
69
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal
|
70
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
69
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
71
70
|
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
72
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal
|
71
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
73
72
|
// bundle_id - int64 - Bundle ID
|
74
73
|
// bundle_registration_id - int64 - BundleRegistration ID
|
75
74
|
(0, _defineProperty2.default)(BundleDownload, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
@@ -203,7 +203,9 @@ var BundleNotification = /*#__PURE__*/(0, _createClass2.default)(function Bundle
|
|
203
203
|
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
204
204
|
// 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.
|
205
205
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
206
|
-
//
|
206
|
+
// 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`.
|
207
|
+
// bundle_id - string - If set, return records where the specified field is equal to the supplied value.
|
208
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `bundle_id`.
|
207
209
|
(0, _defineProperty2.default)(BundleNotification, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
208
210
|
var _response$data;
|
209
211
|
var params,
|
@@ -233,11 +235,11 @@ var BundleNotification = /*#__PURE__*/(0, _createClass2.default)(function Bundle
|
|
233
235
|
}
|
234
236
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
|
235
237
|
case 8:
|
236
|
-
if (!(params['bundle_id'] && !(0, _utils.
|
238
|
+
if (!(params['bundle_id'] && !(0, _utils.isString)(params['bundle_id']))) {
|
237
239
|
_context3.next = 10;
|
238
240
|
break;
|
239
241
|
}
|
240
|
-
throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type
|
242
|
+
throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type String, received ".concat((0, _utils.getType)(params['bundle_id'])));
|
241
243
|
case 10:
|
242
244
|
_context3.next = 12;
|
243
245
|
return _Api.default.sendRequest("/bundle_notifications", 'GET', params, options);
|
@@ -115,11 +115,6 @@ var BundleRecipient = /*#__PURE__*/(0, _createClass2.default)(function BundleRec
|
|
115
115
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
116
116
|
// 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`.
|
117
117
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `has_registrations`.
|
118
|
-
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `has_registrations`.
|
119
|
-
// 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`.
|
120
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `has_registrations`.
|
121
|
-
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `has_registrations`.
|
122
|
-
// 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`.
|
123
118
|
// bundle_id (required) - int64 - List recipients for the bundle with this ID.
|
124
119
|
(0, _defineProperty2.default)(BundleRecipient, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
125
120
|
var _response$data;
|
@@ -132,11 +132,11 @@ var ExternalEvent = /*#__PURE__*/(0, _createClass2.default)(function ExternalEve
|
|
132
132
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
133
133
|
// 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`.
|
134
134
|
// 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 ]`.
|
135
|
-
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at
|
136
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal
|
137
|
-
//
|
138
|
-
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at
|
139
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal
|
135
|
+
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
136
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
137
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `remote_server_type`.
|
138
|
+
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
139
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
140
140
|
(0, _defineProperty2.default)(ExternalEvent, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
141
141
|
var _response$data;
|
142
142
|
var params,
|
@@ -65,6 +65,10 @@ var FileUploadPart = /*#__PURE__*/(0, _createClass2.default)(function FileUpload
|
|
65
65
|
(0, _defineProperty2.default)(this, "getParallelParts", function () {
|
66
66
|
return _this.attributes.parallel_parts;
|
67
67
|
});
|
68
|
+
// boolean # If `true`, parts may be retried. If `false`, a part cannot be retried and the upload should be restarted.
|
69
|
+
(0, _defineProperty2.default)(this, "getRetryParts", function () {
|
70
|
+
return _this.attributes.retry_parts;
|
71
|
+
});
|
68
72
|
// object # Additional HTTP parameters to send with the upload
|
69
73
|
(0, _defineProperty2.default)(this, "getParameters", function () {
|
70
74
|
return _this.attributes.parameters;
|
package/lib/models/Group.js
CHANGED
@@ -237,11 +237,7 @@ var Group = /*#__PURE__*/(0, _createClass2.default)(function Group() {
|
|
237
237
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
238
238
|
// 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`.
|
239
239
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `name`.
|
240
|
-
//
|
241
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `name`.
|
242
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `name`.
|
243
|
-
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `name`.
|
244
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `name`.
|
240
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `name`.
|
245
241
|
// ids - string - Comma-separated list of group ids to include in results.
|
246
242
|
(0, _defineProperty2.default)(Group, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
247
243
|
var _response$data;
|
package/lib/models/History.js
CHANGED
@@ -423,11 +423,7 @@ var History = /*#__PURE__*/(0, _createClass2.default)(function History() {
|
|
423
423
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
424
424
|
// 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`.
|
425
425
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `user_id`, `folder` or `path`.
|
426
|
-
//
|
427
|
-
// 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`.
|
428
|
-
// 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`.
|
429
|
-
// 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`.
|
430
|
-
// 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`.
|
426
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
431
427
|
(0, _defineProperty2.default)(History, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
432
428
|
var _response$data5;
|
433
429
|
var params,
|
@@ -66,13 +66,6 @@ var InboxRecipient = /*#__PURE__*/(0, _createClass2.default)(function InboxRecip
|
|
66
66
|
(0, _defineProperty2.default)(this, "setSentAt", function (value) {
|
67
67
|
_this.attributes.sent_at = value;
|
68
68
|
});
|
69
|
-
// int64 # User ID. Provide a value of `0` to operate the current session's user.
|
70
|
-
(0, _defineProperty2.default)(this, "getUserId", function () {
|
71
|
-
return _this.attributes.user_id;
|
72
|
-
});
|
73
|
-
(0, _defineProperty2.default)(this, "setUserId", function (value) {
|
74
|
-
_this.attributes.user_id = value;
|
75
|
-
});
|
76
69
|
// int64 # Inbox to share.
|
77
70
|
(0, _defineProperty2.default)(this, "getInboxId", function () {
|
78
71
|
return _this.attributes.inbox_id;
|
@@ -110,16 +103,10 @@ var InboxRecipient = /*#__PURE__*/(0, _createClass2.default)(function InboxRecip
|
|
110
103
|
this.options = _objectSpread({}, options);
|
111
104
|
});
|
112
105
|
// Parameters:
|
113
|
-
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
114
106
|
// 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.
|
115
107
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
116
108
|
// 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`.
|
117
109
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `has_registrations`.
|
118
|
-
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `has_registrations`.
|
119
|
-
// 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`.
|
120
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `has_registrations`.
|
121
|
-
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `has_registrations`.
|
122
|
-
// 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`.
|
123
110
|
// inbox_id (required) - int64 - List recipients for the inbox with this ID.
|
124
111
|
(0, _defineProperty2.default)(InboxRecipient, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
125
112
|
var _response$data;
|
@@ -138,38 +125,32 @@ var InboxRecipient = /*#__PURE__*/(0, _createClass2.default)(function InboxRecip
|
|
138
125
|
}
|
139
126
|
throw new errors.MissingParameterError('Parameter missing: inbox_id');
|
140
127
|
case 4:
|
141
|
-
if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
|
142
|
-
_context.next = 6;
|
143
|
-
break;
|
144
|
-
}
|
145
|
-
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
|
146
|
-
case 6:
|
147
128
|
if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
|
148
|
-
_context.next =
|
129
|
+
_context.next = 6;
|
149
130
|
break;
|
150
131
|
}
|
151
132
|
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
|
152
|
-
case
|
133
|
+
case 6:
|
153
134
|
if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
|
154
|
-
_context.next =
|
135
|
+
_context.next = 8;
|
155
136
|
break;
|
156
137
|
}
|
157
138
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
|
158
|
-
case
|
139
|
+
case 8:
|
159
140
|
if (!(params['inbox_id'] && !(0, _utils.isInt)(params['inbox_id']))) {
|
160
|
-
_context.next =
|
141
|
+
_context.next = 10;
|
161
142
|
break;
|
162
143
|
}
|
163
144
|
throw new errors.InvalidParameterError("Bad parameter: inbox_id must be of type Int, received ".concat((0, _utils.getType)(params['inbox_id'])));
|
164
|
-
case
|
165
|
-
_context.next =
|
145
|
+
case 10:
|
146
|
+
_context.next = 12;
|
166
147
|
return _Api.default.sendRequest("/inbox_recipients", 'GET', params, options);
|
167
|
-
case
|
148
|
+
case 12:
|
168
149
|
response = _context.sent;
|
169
150
|
return _context.abrupt("return", (response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
170
151
|
return new InboxRecipient(obj, options);
|
171
152
|
})) || []);
|
172
|
-
case
|
153
|
+
case 14:
|
173
154
|
case "end":
|
174
155
|
return _context.stop();
|
175
156
|
}
|
@@ -181,7 +162,6 @@ var InboxRecipient = /*#__PURE__*/(0, _createClass2.default)(function InboxRecip
|
|
181
162
|
return InboxRecipient.list(params, options);
|
182
163
|
});
|
183
164
|
// Parameters:
|
184
|
-
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
185
165
|
// inbox_id (required) - int64 - Inbox to share.
|
186
166
|
// recipient (required) - string - Email address to share this inbox with.
|
187
167
|
// name - string - Name of recipient.
|
@@ -210,48 +190,42 @@ var InboxRecipient = /*#__PURE__*/(0, _createClass2.default)(function InboxRecip
|
|
210
190
|
}
|
211
191
|
throw new errors.MissingParameterError('Parameter missing: recipient');
|
212
192
|
case 6:
|
213
|
-
if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
|
214
|
-
_context2.next = 8;
|
215
|
-
break;
|
216
|
-
}
|
217
|
-
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
|
218
|
-
case 8:
|
219
193
|
if (!(params['inbox_id'] && !(0, _utils.isInt)(params['inbox_id']))) {
|
220
|
-
_context2.next =
|
194
|
+
_context2.next = 8;
|
221
195
|
break;
|
222
196
|
}
|
223
197
|
throw new errors.InvalidParameterError("Bad parameter: inbox_id must be of type Int, received ".concat((0, _utils.getType)(params['inbox_id'])));
|
224
|
-
case
|
198
|
+
case 8:
|
225
199
|
if (!(params['recipient'] && !(0, _utils.isString)(params['recipient']))) {
|
226
|
-
_context2.next =
|
200
|
+
_context2.next = 10;
|
227
201
|
break;
|
228
202
|
}
|
229
203
|
throw new errors.InvalidParameterError("Bad parameter: recipient must be of type String, received ".concat((0, _utils.getType)(params['recipient'])));
|
230
|
-
case
|
204
|
+
case 10:
|
231
205
|
if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
|
232
|
-
_context2.next =
|
206
|
+
_context2.next = 12;
|
233
207
|
break;
|
234
208
|
}
|
235
209
|
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params['name'])));
|
236
|
-
case
|
210
|
+
case 12:
|
237
211
|
if (!(params['company'] && !(0, _utils.isString)(params['company']))) {
|
238
|
-
_context2.next =
|
212
|
+
_context2.next = 14;
|
239
213
|
break;
|
240
214
|
}
|
241
215
|
throw new errors.InvalidParameterError("Bad parameter: company must be of type String, received ".concat((0, _utils.getType)(params['company'])));
|
242
|
-
case
|
216
|
+
case 14:
|
243
217
|
if (!(params['note'] && !(0, _utils.isString)(params['note']))) {
|
244
|
-
_context2.next =
|
218
|
+
_context2.next = 16;
|
245
219
|
break;
|
246
220
|
}
|
247
221
|
throw new errors.InvalidParameterError("Bad parameter: note must be of type String, received ".concat((0, _utils.getType)(params['note'])));
|
248
|
-
case
|
249
|
-
_context2.next =
|
222
|
+
case 16:
|
223
|
+
_context2.next = 18;
|
250
224
|
return _Api.default.sendRequest("/inbox_recipients", 'POST', params, options);
|
251
|
-
case
|
225
|
+
case 18:
|
252
226
|
response = _context2.sent;
|
253
227
|
return _context2.abrupt("return", new InboxRecipient(response === null || response === void 0 ? void 0 : response.data, options));
|
254
|
-
case
|
228
|
+
case 20:
|
255
229
|
case "end":
|
256
230
|
return _context2.stop();
|
257
231
|
}
|
@@ -62,10 +62,9 @@ var InboxUpload = /*#__PURE__*/(0, _createClass2.default)(function InboxUpload()
|
|
62
62
|
// 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`.
|
63
63
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
64
64
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
65
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal
|
66
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
65
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
67
66
|
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
68
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal
|
67
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
69
68
|
// inbox_registration_id - int64 - InboxRegistration ID
|
70
69
|
// inbox_id - int64 - Inbox ID
|
71
70
|
(0, _defineProperty2.default)(InboxUpload, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
@@ -364,13 +364,9 @@ var Notification = /*#__PURE__*/(0, _createClass2.default)(function Notification
|
|
364
364
|
// 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.
|
365
365
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
366
366
|
// 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`.
|
367
|
-
//
|
368
|
-
//
|
369
|
-
//
|
370
|
-
// 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`.
|
371
|
-
// 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`.
|
372
|
-
// 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`.
|
373
|
-
// group_id - int64 - DEPRECATED: Show notifications for this Group ID. Use `filter[group_id]` instead.
|
367
|
+
// group_id - string - If set, return records where the specified field is equal to the supplied value.
|
368
|
+
// 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`.
|
369
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
374
370
|
// path - string - Show notifications for this Path.
|
375
371
|
// include_ancestors - boolean - If `include_ancestors` is `true` and `path` is specified, include notifications for any parent paths. Ignored if `path` is not specified.
|
376
372
|
(0, _defineProperty2.default)(Notification, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
@@ -402,11 +398,11 @@ var Notification = /*#__PURE__*/(0, _createClass2.default)(function Notification
|
|
402
398
|
}
|
403
399
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
|
404
400
|
case 8:
|
405
|
-
if (!(params['group_id'] && !(0, _utils.
|
401
|
+
if (!(params['group_id'] && !(0, _utils.isString)(params['group_id']))) {
|
406
402
|
_context3.next = 10;
|
407
403
|
break;
|
408
404
|
}
|
409
|
-
throw new errors.InvalidParameterError("Bad parameter: group_id must be of type
|
405
|
+
throw new errors.InvalidParameterError("Bad parameter: group_id must be of type String, received ".concat((0, _utils.getType)(params['group_id'])));
|
410
406
|
case 10:
|
411
407
|
if (!(params['path'] && !(0, _utils.isString)(params['path']))) {
|
412
408
|
_context3.next = 12;
|
package/lib/models/Permission.js
CHANGED
@@ -170,11 +170,7 @@ var Permission = /*#__PURE__*/(0, _createClass2.default)(function Permission() {
|
|
170
170
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
171
171
|
// 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`.
|
172
172
|
// 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 ]`.
|
173
|
-
//
|
174
|
-
// 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 ]`.
|
175
|
-
// 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 ]`.
|
176
|
-
// 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 ]`.
|
177
|
-
// 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 ]`.
|
173
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
178
174
|
// path - string - DEPRECATED: Permission path. If provided, will scope permissions to this path. Use `filter[path]` instead.
|
179
175
|
// group_id - string - DEPRECATED: Group ID. If provided, will scope permissions to this group. Use `filter[group_id]` instead.`
|
180
176
|
// user_id - string - DEPRECATED: User ID. If provided, will scope permissions to this user. Use `filter[user_id]` instead.`
|
@@ -70,10 +70,9 @@ var RemoteBandwidthSnapshot = /*#__PURE__*/(0, _createClass2.default)(function R
|
|
70
70
|
// 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`.
|
71
71
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `logged_at`.
|
72
72
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `logged_at`.
|
73
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal
|
74
|
-
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `logged_at`.
|
73
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `logged_at`.
|
75
74
|
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `logged_at`.
|
76
|
-
// filter_lteq - object - If set, return records where the specified field is less than or equal
|
75
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `logged_at`.
|
77
76
|
(0, _defineProperty2.default)(RemoteBandwidthSnapshot, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
78
77
|
var _response$data;
|
79
78
|
var params,
|
@@ -68,12 +68,9 @@ var SettingsChange = /*#__PURE__*/(0, _createClass2.default)(function SettingsCh
|
|
68
68
|
// 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.
|
69
69
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
70
70
|
// 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`.
|
71
|
+
// api_key_id - string - If set, return records where the specified field is equal to the supplied value.
|
72
|
+
// user_id - string - If set, return records where the specified field is equal to the supplied value.
|
71
73
|
// 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`.
|
72
|
-
// 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`.
|
73
|
-
// 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`.
|
74
|
-
// 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`.
|
75
|
-
// 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`.
|
76
|
-
// 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`.
|
77
74
|
(0, _defineProperty2.default)(SettingsChange, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
78
75
|
var _response$data;
|
79
76
|
var params,
|
@@ -97,14 +94,26 @@ var SettingsChange = /*#__PURE__*/(0, _createClass2.default)(function SettingsCh
|
|
97
94
|
}
|
98
95
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
|
99
96
|
case 6:
|
100
|
-
|
101
|
-
|
97
|
+
if (!(params['api_key_id'] && !(0, _utils.isString)(params['api_key_id']))) {
|
98
|
+
_context.next = 8;
|
99
|
+
break;
|
100
|
+
}
|
101
|
+
throw new errors.InvalidParameterError("Bad parameter: api_key_id must be of type String, received ".concat((0, _utils.getType)(params['api_key_id'])));
|
102
102
|
case 8:
|
103
|
+
if (!(params['user_id'] && !(0, _utils.isString)(params['user_id']))) {
|
104
|
+
_context.next = 10;
|
105
|
+
break;
|
106
|
+
}
|
107
|
+
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type String, received ".concat((0, _utils.getType)(params['user_id'])));
|
108
|
+
case 10:
|
109
|
+
_context.next = 12;
|
110
|
+
return _Api.default.sendRequest("/settings_changes", 'GET', params, options);
|
111
|
+
case 12:
|
103
112
|
response = _context.sent;
|
104
113
|
return _context.abrupt("return", (response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
105
114
|
return new SettingsChange(obj, options);
|
106
115
|
})) || []);
|
107
|
-
case
|
116
|
+
case 14:
|
108
117
|
case "end":
|
109
118
|
return _context.stop();
|
110
119
|
}
|
@@ -93,11 +93,10 @@ var UsageDailySnapshot = /*#__PURE__*/(0, _createClass2.default)(function UsageD
|
|
93
93
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
94
94
|
// 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`.
|
95
95
|
// 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 ]`.
|
96
|
-
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `date
|
97
|
-
// filter_gteq - object - If set, return records where the specified field is greater than or equal
|
98
|
-
//
|
99
|
-
//
|
100
|
-
// 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 ]`.
|
96
|
+
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `date`.
|
97
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `date`.
|
98
|
+
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `date`.
|
99
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `date`.
|
101
100
|
(0, _defineProperty2.default)(UsageDailySnapshot, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
102
101
|
var _response$data;
|
103
102
|
var params,
|