Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0559315

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

17 files changed

+803
-888
lines changed
 

‎_VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.453
1+
1.0.454

‎docs/models/AutomationRun.md

-2
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

+2-4
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

-5
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': "johndoe@gmail.com",
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

-2
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

+1-1
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

+9-16
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

+12-19
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);

‎lib/models/BundleRecipient.js

+22-43
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,6 @@ var BundleRecipient = /*#__PURE__*/(0, _createClass2.default)(function BundleRec
6868
(0, _defineProperty2.default)(this, "setSentAt", function (value) {
6969
_this.attributes.sent_at = value;
7070
});
71-
// int64 # User ID. Provide a value of `0` to operate the current session's user.
72-
(0, _defineProperty2.default)(this, "getUserId", function () {
73-
return _this.attributes.user_id;
74-
});
75-
(0, _defineProperty2.default)(this, "setUserId", function (value) {
76-
_this.attributes.user_id = value;
77-
});
7871
// int64 # Bundle to share.
7972
(0, _defineProperty2.default)(this, "getBundleId", function () {
8073
return _this.attributes.bundle_id;
@@ -113,7 +106,6 @@ var BundleRecipient = /*#__PURE__*/(0, _createClass2.default)(function BundleRec
113106
});
114107
_class = BundleRecipient;
115108
// Parameters:
116-
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
117109
// 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.
118110
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
119111
// 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`.
@@ -136,38 +128,32 @@ _class = BundleRecipient;
136128
}
137129
throw new errors.MissingParameterError('Parameter missing: bundle_id');
138130
case 4:
139-
if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
140-
_context.next = 6;
141-
break;
142-
}
143-
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
144-
case 6:
145131
if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
146-
_context.next = 8;
132+
_context.next = 6;
147133
break;
148134
}
149135
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
150-
case 8:
136+
case 6:
151137
if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
152-
_context.next = 10;
138+
_context.next = 8;
153139
break;
154140
}
155141
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
156-
case 10:
142+
case 8:
157143
if (!(params['bundle_id'] && !(0, _utils.isInt)(params['bundle_id']))) {
158-
_context.next = 12;
144+
_context.next = 10;
159145
break;
160146
}
161147
throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params['bundle_id'])));
162-
case 12:
163-
_context.next = 14;
148+
case 10:
149+
_context.next = 12;
164150
return _Api.default.sendRequest("/bundle_recipients", 'GET', params, options);
165-
case 14:
151+
case 12:
166152
response = _context.sent;
167153
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) {
168154
return new _class(obj, options);
169155
})) || []);
170-
case 16:
156+
case 14:
171157
case "end":
172158
return _context.stop();
173159
}
@@ -179,7 +165,6 @@ _class = BundleRecipient;
179165
return _class.list(params, options);
180166
});
181167
// Parameters:
182-
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
183168
// bundle_id (required) - int64 - Bundle to share.
184169
// recipient (required) - string - Email addresses to share this bundle with.
185170
// name - string - Name of recipient.
@@ -208,48 +193,42 @@ _class = BundleRecipient;
208193
}
209194
throw new errors.MissingParameterError('Parameter missing: recipient');
210195
case 6:
211-
if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
212-
_context2.next = 8;
213-
break;
214-
}
215-
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
216-
case 8:
217196
if (!(params['bundle_id'] && !(0, _utils.isInt)(params['bundle_id']))) {
218-
_context2.next = 10;
197+
_context2.next = 8;
219198
break;
220199
}
221200
throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params['bundle_id'])));
222-
case 10:
201+
case 8:
223202
if (!(params['recipient'] && !(0, _utils.isString)(params['recipient']))) {
224-
_context2.next = 12;
203+
_context2.next = 10;
225204
break;
226205
}
227206
throw new errors.InvalidParameterError("Bad parameter: recipient must be of type String, received ".concat((0, _utils.getType)(params['recipient'])));
228-
case 12:
207+
case 10:
229208
if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
230-
_context2.next = 14;
209+
_context2.next = 12;
231210
break;
232211
}
233212
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params['name'])));
234-
case 14:
213+
case 12:
235214
if (!(params['company'] && !(0, _utils.isString)(params['company']))) {
236-
_context2.next = 16;
215+
_context2.next = 14;
237216
break;
238217
}
239218
throw new errors.InvalidParameterError("Bad parameter: company must be of type String, received ".concat((0, _utils.getType)(params['company'])));
240-
case 16:
219+
case 14:
241220
if (!(params['note'] && !(0, _utils.isString)(params['note']))) {
242-
_context2.next = 18;
221+
_context2.next = 16;
243222
break;
244223
}
245224
throw new errors.InvalidParameterError("Bad parameter: note must be of type String, received ".concat((0, _utils.getType)(params['note'])));
246-
case 18:
247-
_context2.next = 20;
225+
case 16:
226+
_context2.next = 18;
248227
return _Api.default.sendRequest("/bundle_recipients", 'POST', params, options);
249-
case 20:
228+
case 18:
250229
response = _context2.sent;
251230
return _context2.abrupt("return", new _class(response === null || response === void 0 ? void 0 : response.data, options));
252-
case 22:
231+
case 20:
253232
case "end":
254233
return _context2.stop();
255234
}

‎lib/models/BundleRegistration.js

+9-16
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ var BundleRegistration = /*#__PURE__*/(0, _createClass2.default)(function Bundle
100100
});
101101
_class = BundleRegistration;
102102
// Parameters:
103-
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
104103
// 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.
105104
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
106105
// bundle_id - int64 - ID of the associated Bundle
@@ -115,38 +114,32 @@ _class = BundleRegistration;
115114
case 0:
116115
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
117116
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
118-
if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
119-
_context.next = 4;
120-
break;
121-
}
122-
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
123-
case 4:
124117
if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
125-
_context.next = 6;
118+
_context.next = 4;
126119
break;
127120
}
128121
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
129-
case 6:
122+
case 4:
130123
if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
131-
_context.next = 8;
124+
_context.next = 6;
132125
break;
133126
}
134127
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
135-
case 8:
128+
case 6:
136129
if (!(params['bundle_id'] && !(0, _utils.isInt)(params['bundle_id']))) {
137-
_context.next = 10;
130+
_context.next = 8;
138131
break;
139132
}
140133
throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params['bundle_id'])));
141-
case 10:
142-
_context.next = 12;
134+
case 8:
135+
_context.next = 10;
143136
return _Api.default.sendRequest("/bundle_registrations", 'GET', params, options);
144-
case 12:
137+
case 10:
145138
response = _context.sent;
146139
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) {
147140
return new _class(obj, options);
148141
})) || []);
149-
case 14:
142+
case 12:
150143
case "end":
151144
return _context.stop();
152145
}

‎package-lock.json

+740-740
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "files.com",
3-
"version": "1.0.453",
3+
"version": "1.0.454",
44
"description": "Files.com SDK for JavaScript",
55
"keywords": [
66
"files.com",

‎src/Files.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const endpointPrefix = '/api/rest/v1'
55
let apiKey
66
let baseUrl = 'https://app.files.com'
77
let sessionId = null
8-
const version = '1.0.453'
8+
const version = '1.0.454'
99
let userAgent = `Files.com JavaScript SDK v${version}`
1010

1111
let logLevel = LogLevel.INFO

‎src/models/AutomationRun.js

-5
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ class AutomationRun {
4444

4545

4646
// Parameters:
47-
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
4847
// 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.
4948
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
5049
// 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`.
@@ -55,10 +54,6 @@ class AutomationRun {
5554
throw new errors.MissingParameterError('Parameter missing: automation_id')
5655
}
5756

58-
if (params['user_id'] && !isInt(params['user_id'])) {
59-
throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params['user_id'])}`)
60-
}
61-
6257
if (params['cursor'] && !isString(params['cursor'])) {
6358
throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params['cursor'])}`)
6459
}

‎src/models/BundleNotification.js

+5-10
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,11 @@ class BundleNotification {
132132
}
133133

134134
// Parameters:
135-
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
136135
// 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.
137136
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
138137
// 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`.
139138
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `bundle_id`.
140139
static list = async (params = {}, options = {}) => {
141-
if (params['user_id'] && !isInt(params['user_id'])) {
142-
throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params['user_id'])}`)
143-
}
144-
145140
if (params['cursor'] && !isString(params['cursor'])) {
146141
throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params['cursor'])}`)
147142
}
@@ -186,23 +181,23 @@ class BundleNotification {
186181
BundleNotification.find(id, params, options)
187182

188183
// Parameters:
189-
// user_id - int64 - The id of the user to notify.
190184
// notify_on_registration - boolean - Triggers bundle notification when a registration action occurs for it.
191185
// notify_on_upload - boolean - Triggers bundle notification when a upload action occurs for it.
192186
// bundle_id (required) - int64 - Bundle ID to notify on
187+
// user_id - int64 - The id of the user to notify.
193188
static create = async (params = {}, options = {}) => {
194189
if (!params['bundle_id']) {
195190
throw new errors.MissingParameterError('Parameter missing: bundle_id')
196191
}
197192

198-
if (params['user_id'] && !isInt(params['user_id'])) {
199-
throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params['user_id'])}`)
200-
}
201-
202193
if (params['bundle_id'] && !isInt(params['bundle_id'])) {
203194
throw new errors.InvalidParameterError(`Bad parameter: bundle_id must be of type Int, received ${getType(params['bundle_id'])}`)
204195
}
205196

197+
if (params['user_id'] && !isInt(params['user_id'])) {
198+
throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params['user_id'])}`)
199+
}
200+
206201
const response = await Api.sendRequest(`/bundle_notifications`, 'POST', params, options)
207202

208203

‎src/models/BundleRecipient.js

-17
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,6 @@ class BundleRecipient {
5959
this.attributes.sent_at = value
6060
}
6161

62-
// int64 # User ID. Provide a value of `0` to operate the current session's user.
63-
getUserId = () => this.attributes.user_id
64-
65-
setUserId = value => {
66-
this.attributes.user_id = value
67-
}
68-
6962
// int64 # Bundle to share.
7063
getBundleId = () => this.attributes.bundle_id
7164

@@ -92,7 +85,6 @@ class BundleRecipient {
9285
}
9386

9487
// Parameters:
95-
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
9688
// 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.
9789
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
9890
// 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`.
@@ -103,10 +95,6 @@ class BundleRecipient {
10395
throw new errors.MissingParameterError('Parameter missing: bundle_id')
10496
}
10597

106-
if (params['user_id'] && !isInt(params['user_id'])) {
107-
throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params['user_id'])}`)
108-
}
109-
11098
if (params['cursor'] && !isString(params['cursor'])) {
11199
throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params['cursor'])}`)
112100
}
@@ -129,7 +117,6 @@ class BundleRecipient {
129117
BundleRecipient.list(params, options)
130118

131119
// Parameters:
132-
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
133120
// bundle_id (required) - int64 - Bundle to share.
134121
// recipient (required) - string - Email addresses to share this bundle with.
135122
// name - string - Name of recipient.
@@ -145,10 +132,6 @@ class BundleRecipient {
145132
throw new errors.MissingParameterError('Parameter missing: recipient')
146133
}
147134

148-
if (params['user_id'] && !isInt(params['user_id'])) {
149-
throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params['user_id'])}`)
150-
}
151-
152135
if (params['bundle_id'] && !isInt(params['bundle_id'])) {
153136
throw new errors.InvalidParameterError(`Bad parameter: bundle_id must be of type Int, received ${getType(params['bundle_id'])}`)
154137
}

‎src/models/BundleRegistration.js

-5
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,10 @@ class BundleRegistration {
6565

6666

6767
// Parameters:
68-
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
6968
// 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.
7069
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
7170
// bundle_id - int64 - ID of the associated Bundle
7271
static list = async (params = {}, options = {}) => {
73-
if (params['user_id'] && !isInt(params['user_id'])) {
74-
throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params['user_id'])}`)
75-
}
76-
7772
if (params['cursor'] && !isString(params['cursor'])) {
7873
throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params['cursor'])}`)
7974
}

0 commit comments

Comments
 (0)
Please sign in to comment.