files.com 1.2.241 → 1.2.243

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.241
1
+ 1.2.243
@@ -151,6 +151,12 @@ await Bundle.list({
151
151
  * `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.
152
152
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
153
153
  * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `expires_at`.
154
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id, expires_at ]`.
155
+ * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at` and `expires_at`.
156
+ * `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
157
+ * `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
158
+ * `filter_lt` (object): If set, return records where the specified field is less than the supplied value. Valid fields are `created_at` and `expires_at`.
159
+ * `filter_lteq` (object): If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
154
160
 
155
161
  ---
156
162
 
@@ -8,7 +8,7 @@
8
8
  "id": 1,
9
9
  "notify_on_registration": true,
10
10
  "notify_on_upload": true,
11
- "user_id": 1
11
+ "notify_user_id": 1
12
12
  }
13
13
  ```
14
14
 
@@ -16,7 +16,7 @@
16
16
  * `id` (int64): Bundle Notification ID
17
17
  * `notify_on_registration` (boolean): Triggers bundle notification when a registration action occurs for it.
18
18
  * `notify_on_upload` (boolean): Triggers bundle notification when a upload action occurs for it.
19
- * `user_id` (int64): The id of the user to notify.
19
+ * `notify_user_id` (int64): The id of the user to notify.
20
20
 
21
21
  ---
22
22
 
@@ -54,7 +54,7 @@ await BundleNotification.find(id)
54
54
  ```
55
55
  await BundleNotification.create({
56
56
  'bundle_id': 1,
57
- 'user_id': 1,
57
+ 'notify_user_id': 1,
58
58
  'notify_on_registration': true,
59
59
  'notify_on_upload': true,
60
60
  })
@@ -64,7 +64,7 @@ await BundleNotification.create({
64
64
  ### Parameters
65
65
 
66
66
  * `bundle_id` (int64): Required - Bundle ID to notify on
67
- * `user_id` (int64): The id of the user to notify.
67
+ * `notify_user_id` (int64): The id of the user to notify.
68
68
  * `notify_on_registration` (boolean): Triggers bundle notification when a registration action occurs for it.
69
69
  * `notify_on_upload` (boolean): Triggers bundle notification when a upload action occurs for it.
70
70
 
@@ -95,7 +95,7 @@ await bundle_notification.update({
95
95
  "id": 1,
96
96
  "notify_on_registration": true,
97
97
  "notify_on_upload": true,
98
- "user_id": 1
98
+ "notify_user_id": 1
99
99
  }
100
100
  ```
101
101
 
package/lib/Files.js CHANGED
@@ -12,7 +12,7 @@ var apiKey;
12
12
  var baseUrl = 'https://app.files.com';
13
13
  var sessionId = null;
14
14
  var language = null;
15
- var version = '1.2.241';
15
+ var version = '1.2.243';
16
16
  var userAgent = "Files.com JavaScript SDK v".concat(version);
17
17
  var logLevel = _Logger.LogLevel.INFO;
18
18
  var debugRequest = false;
@@ -684,6 +684,12 @@ _Bundle = Bundle;
684
684
  // 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.
685
685
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
686
686
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `expires_at`.
687
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id, expires_at ]`.
688
+ // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at` and `expires_at`.
689
+ // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
690
+ // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
691
+ // filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at` and `expires_at`.
692
+ // filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
687
693
  (0, _defineProperty2.default)(Bundle, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee5() {
688
694
  var _response$data;
689
695
  var params,
@@ -61,11 +61,11 @@ var BundleNotification = /*#__PURE__*/(0, _createClass2.default)(function Bundle
61
61
  _this.attributes.notify_on_upload = value;
62
62
  });
63
63
  // int64 # The id of the user to notify.
64
- (0, _defineProperty2.default)(this, "getUserId", function () {
65
- return _this.attributes.user_id;
64
+ (0, _defineProperty2.default)(this, "getNotifyUserId", function () {
65
+ return _this.attributes.notify_user_id;
66
66
  });
67
- (0, _defineProperty2.default)(this, "setUserId", function (value) {
68
- _this.attributes.user_id = value;
67
+ (0, _defineProperty2.default)(this, "setNotifyUserId", function (value) {
68
+ _this.attributes.notify_user_id = value;
69
69
  });
70
70
  // Parameters:
71
71
  // notify_on_registration - boolean - Triggers bundle notification when a registration action occurs for it.
@@ -316,7 +316,7 @@ _BundleNotification = BundleNotification;
316
316
  });
317
317
  // Parameters:
318
318
  // bundle_id (required) - int64 - Bundle ID to notify on
319
- // user_id - int64 - The id of the user to notify.
319
+ // notify_user_id - int64 - The id of the user to notify.
320
320
  // notify_on_registration - boolean - Triggers bundle notification when a registration action occurs for it.
321
321
  // notify_on_upload - boolean - Triggers bundle notification when a upload action occurs for it.
322
322
  (0, _defineProperty2.default)(BundleNotification, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee6() {
@@ -341,11 +341,11 @@ _BundleNotification = BundleNotification;
341
341
  }
342
342
  throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params.bundle_id)));
343
343
  case 6:
344
- if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
344
+ if (!(params.notify_user_id && !(0, _utils.isInt)(params.notify_user_id))) {
345
345
  _context6.next = 8;
346
346
  break;
347
347
  }
348
- throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
348
+ throw new errors.InvalidParameterError("Bad parameter: notify_user_id must be of type Int, received ".concat((0, _utils.getType)(params.notify_user_id)));
349
349
  case 8:
350
350
  _context6.next = 10;
351
351
  return _Api.default.sendRequest('/bundle_notifications', 'POST', params, options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.241",
3
+ "version": "1.2.243",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Files.js CHANGED
@@ -6,7 +6,7 @@ let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
8
  let language = null
9
- const version = '1.2.241'
9
+ const version = '1.2.243'
10
10
  let userAgent = `Files.com JavaScript SDK v${version}`
11
11
 
12
12
  let logLevel = LogLevel.INFO
@@ -543,6 +543,12 @@ class Bundle {
543
543
  // 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.
544
544
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
545
545
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `expires_at`.
546
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id, expires_at ]`.
547
+ // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at` and `expires_at`.
548
+ // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
549
+ // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
550
+ // filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at` and `expires_at`.
551
+ // filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
546
552
  static list = async (params = {}, options = {}) => {
547
553
  if (params.user_id && !isInt(params.user_id)) {
548
554
  throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params.user_id)}`)
@@ -57,10 +57,10 @@ class BundleNotification {
57
57
  }
58
58
 
59
59
  // int64 # The id of the user to notify.
60
- getUserId = () => this.attributes.user_id
60
+ getNotifyUserId = () => this.attributes.notify_user_id
61
61
 
62
- setUserId = value => {
63
- this.attributes.user_id = value
62
+ setNotifyUserId = value => {
63
+ this.attributes.notify_user_id = value
64
64
  }
65
65
 
66
66
  // Parameters:
@@ -182,7 +182,7 @@ class BundleNotification {
182
182
 
183
183
  // Parameters:
184
184
  // bundle_id (required) - int64 - Bundle ID to notify on
185
- // user_id - int64 - The id of the user to notify.
185
+ // notify_user_id - int64 - The id of the user to notify.
186
186
  // notify_on_registration - boolean - Triggers bundle notification when a registration action occurs for it.
187
187
  // notify_on_upload - boolean - Triggers bundle notification when a upload action occurs for it.
188
188
  static create = async (params = {}, options = {}) => {
@@ -194,8 +194,8 @@ class BundleNotification {
194
194
  throw new errors.InvalidParameterError(`Bad parameter: bundle_id must be of type Int, received ${getType(params.bundle_id)}`)
195
195
  }
196
196
 
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)}`)
197
+ if (params.notify_user_id && !isInt(params.notify_user_id)) {
198
+ throw new errors.InvalidParameterError(`Bad parameter: notify_user_id must be of type Int, received ${getType(params.notify_user_id)}`)
199
199
  }
200
200
 
201
201
  const response = await Api.sendRequest('/bundle_notifications', 'POST', params, options)