Skip to content

Commit 0559315

Browse files
v1.0.454
[Bot] push changes from Files.com
1 parent ad24cb9 commit 0559315

17 files changed

+803
-888
lines changed

_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.453
1+
1.0.454

docs/models/AutomationRun.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
```
2828
await AutomationRun.list({
29-
'user_id': 1,
3029
'per_page': 1,
3130
'automation_id': 1,
3231
})
@@ -35,7 +34,6 @@ await AutomationRun.list({
3534

3635
### Parameters
3736

38-
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
3937
* `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.
4038
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
4139
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[automation_id]=desc`). Valid fields are `automation_id`, `created_at` or `status`.

docs/models/BundleNotification.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,13 @@
2424

2525
```
2626
await BundleNotification.list({
27-
'user_id': 1,
2827
'per_page': 1,
2928
})
3029
```
3130

3231

3332
### Parameters
3433

35-
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
3634
* `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.
3735
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
3836
* `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`.
@@ -57,20 +55,20 @@ await BundleNotification.find(id)
5755

5856
```
5957
await BundleNotification.create({
60-
'user_id': 1,
6158
'notify_on_registration': true,
6259
'notify_on_upload': true,
6360
'bundle_id': 1,
61+
'user_id': 1,
6462
})
6563
```
6664

6765

6866
### Parameters
6967

70-
* `user_id` (int64): The id of the user to notify.
7168
* `notify_on_registration` (boolean): Triggers bundle notification when a registration action occurs for it.
7269
* `notify_on_upload` (boolean): Triggers bundle notification when a upload action occurs for it.
7370
* `bundle_id` (int64): Required - Bundle ID to notify on
71+
* `user_id` (int64): The id of the user to notify.
7472

7573
---
7674

docs/models/BundleRecipient.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
* `note` (string): A note sent to the recipient with the bundle.
1818
* `recipient` (string): The recipient's email address.
1919
* `sent_at` (date-time): When the Bundle was shared with this recipient.
20-
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
2120
* `bundle_id` (int64): Bundle to share.
2221
* `share_after_create` (boolean): Set to true to share the link with the recipient upon creation.
2322

@@ -27,7 +26,6 @@
2726

2827
```
2928
await BundleRecipient.list({
30-
'user_id': 1,
3129
'per_page': 1,
3230
'bundle_id': 1,
3331
})
@@ -36,7 +34,6 @@ await BundleRecipient.list({
3634

3735
### Parameters
3836

39-
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
4037
* `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.
4138
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
4239
* `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`.
@@ -49,7 +46,6 @@ await BundleRecipient.list({
4946

5047
```
5148
await BundleRecipient.create({
52-
'user_id': 1,
5349
'bundle_id': 1,
5450
'recipient': "[email protected]",
5551
'name': "John Smith",
@@ -62,7 +58,6 @@ await BundleRecipient.create({
6258

6359
### Parameters
6460

65-
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
6661
* `bundle_id` (int64): Required - Bundle to share.
6762
* `recipient` (string): Required - Email addresses to share this bundle with.
6863
* `name` (string): Name of recipient.

docs/models/BundleRegistration.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242

4343
```
4444
await BundleRegistration.list({
45-
'user_id': 1,
4645
'per_page': 1,
4746
'bundle_id': 1,
4847
})
@@ -51,7 +50,6 @@ await BundleRegistration.list({
5150

5251
### Parameters
5352

54-
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
5553
* `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.
5654
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
5755
* `bundle_id` (int64): ID of the associated Bundle

lib/Files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var endpointPrefix = '/api/rest/v1';
1111
var apiKey;
1212
var baseUrl = 'https://app.files.com';
1313
var sessionId = null;
14-
var version = '1.0.453';
14+
var version = '1.0.454';
1515
var userAgent = "Files.com JavaScript SDK v".concat(version);
1616
var logLevel = _Logger.LogLevel.INFO;
1717
var debugRequest = false;

lib/models/AutomationRun.js

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ var AutomationRun = /*#__PURE__*/(0, _createClass2.default)(function AutomationR
7272
});
7373
_class = AutomationRun;
7474
// Parameters:
75-
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
7675
// 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.
7776
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
7877
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[automation_id]=desc`). Valid fields are `automation_id`, `created_at` or `status`.
@@ -95,38 +94,32 @@ _class = AutomationRun;
9594
}
9695
throw new errors.MissingParameterError('Parameter missing: automation_id');
9796
case 4:
98-
if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
99-
_context.next = 6;
100-
break;
101-
}
102-
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
103-
case 6:
10497
if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
105-
_context.next = 8;
98+
_context.next = 6;
10699
break;
107100
}
108101
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
109-
case 8:
102+
case 6:
110103
if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
111-
_context.next = 10;
104+
_context.next = 8;
112105
break;
113106
}
114107
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
115-
case 10:
108+
case 8:
116109
if (!(params['automation_id'] && !(0, _utils.isInt)(params['automation_id']))) {
117-
_context.next = 12;
110+
_context.next = 10;
118111
break;
119112
}
120113
throw new errors.InvalidParameterError("Bad parameter: automation_id must be of type Int, received ".concat((0, _utils.getType)(params['automation_id'])));
121-
case 12:
122-
_context.next = 14;
114+
case 10:
115+
_context.next = 12;
123116
return _Api.default.sendRequest("/automation_runs", 'GET', params, options);
124-
case 14:
117+
case 12:
125118
response = _context.sent;
126119
return _context.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
127120
return new _class(obj, options);
128121
})) || []);
129-
case 16:
122+
case 14:
130123
case "end":
131124
return _context.stop();
132125
}

lib/models/BundleNotification.js

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ var BundleNotification = /*#__PURE__*/(0, _createClass2.default)(function Bundle
203203
});
204204
_class = BundleNotification;
205205
// Parameters:
206-
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
207206
// 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.
208207
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
209208
// 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`.
@@ -219,32 +218,26 @@ _class = BundleNotification;
219218
case 0:
220219
params = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
221220
options = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {};
222-
if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
223-
_context3.next = 4;
224-
break;
225-
}
226-
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
227-
case 4:
228221
if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
229-
_context3.next = 6;
222+
_context3.next = 4;
230223
break;
231224
}
232225
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
233-
case 6:
226+
case 4:
234227
if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
235-
_context3.next = 8;
228+
_context3.next = 6;
236229
break;
237230
}
238231
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
239-
case 8:
240-
_context3.next = 10;
232+
case 6:
233+
_context3.next = 8;
241234
return _Api.default.sendRequest("/bundle_notifications", 'GET', params, options);
242-
case 10:
235+
case 8:
243236
response = _context3.sent;
244237
return _context3.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
245238
return new _class(obj, options);
246239
})) || []);
247-
case 12:
240+
case 10:
248241
case "end":
249242
return _context3.stop();
250243
}
@@ -308,10 +301,10 @@ _class = BundleNotification;
308301
return _class.find(id, params, options);
309302
});
310303
// Parameters:
311-
// user_id - int64 - The id of the user to notify.
312304
// notify_on_registration - boolean - Triggers bundle notification when a registration action occurs for it.
313305
// notify_on_upload - boolean - Triggers bundle notification when a upload action occurs for it.
314306
// bundle_id (required) - int64 - Bundle ID to notify on
307+
// user_id - int64 - The id of the user to notify.
315308
(0, _defineProperty2.default)(BundleNotification, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
316309
var params,
317310
options,
@@ -328,17 +321,17 @@ _class = BundleNotification;
328321
}
329322
throw new errors.MissingParameterError('Parameter missing: bundle_id');
330323
case 4:
331-
if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
324+
if (!(params['bundle_id'] && !(0, _utils.isInt)(params['bundle_id']))) {
332325
_context5.next = 6;
333326
break;
334327
}
335-
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
328+
throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params['bundle_id'])));
336329
case 6:
337-
if (!(params['bundle_id'] && !(0, _utils.isInt)(params['bundle_id']))) {
330+
if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
338331
_context5.next = 8;
339332
break;
340333
}
341-
throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params['bundle_id'])));
334+
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
342335
case 8:
343336
_context5.next = 10;
344337
return _Api.default.sendRequest("/bundle_notifications", 'POST', params, options);

0 commit comments

Comments
 (0)