files.com 1.2.7 → 1.2.8
Sign up to get free protection for your applications and to get access to all the features.
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.8
|
@@ -55,20 +55,20 @@ await BundleNotification.find(id)
|
|
55
55
|
|
56
56
|
```
|
57
57
|
await BundleNotification.create({
|
58
|
-
'notify_on_registration': true,
|
59
|
-
'notify_on_upload': true,
|
60
58
|
'bundle_id': 1,
|
61
59
|
'user_id': 1,
|
60
|
+
'notify_on_registration': true,
|
61
|
+
'notify_on_upload': true,
|
62
62
|
})
|
63
63
|
```
|
64
64
|
|
65
65
|
|
66
66
|
### Parameters
|
67
67
|
|
68
|
-
* `notify_on_registration` (boolean): Triggers bundle notification when a registration action occurs for it.
|
69
|
-
* `notify_on_upload` (boolean): Triggers bundle notification when a upload action occurs for it.
|
70
68
|
* `bundle_id` (int64): Required - Bundle ID to notify on
|
71
69
|
* `user_id` (int64): The id of the user to notify.
|
70
|
+
* `notify_on_registration` (boolean): Triggers bundle notification when a registration action occurs for it.
|
71
|
+
* `notify_on_upload` (boolean): Triggers bundle notification when a upload action occurs for it.
|
72
72
|
|
73
73
|
---
|
74
74
|
|
package/lib/Files.js
CHANGED
@@ -11,7 +11,7 @@ var endpointPrefix = '/api/rest/v1';
|
|
11
11
|
var apiKey;
|
12
12
|
var baseUrl = 'https://app.files.com';
|
13
13
|
var sessionId = null;
|
14
|
-
var version = '1.2.
|
14
|
+
var version = '1.2.8';
|
15
15
|
var userAgent = "Files.com JavaScript SDK v".concat(version);
|
16
16
|
var logLevel = _Logger.LogLevel.INFO;
|
17
17
|
var debugRequest = false;
|
@@ -316,10 +316,10 @@ _BundleNotification = BundleNotification;
|
|
316
316
|
return _BundleNotification.find(id, params, options);
|
317
317
|
});
|
318
318
|
// Parameters:
|
319
|
-
// notify_on_registration - boolean - Triggers bundle notification when a registration action occurs for it.
|
320
|
-
// notify_on_upload - boolean - Triggers bundle notification when a upload action occurs for it.
|
321
319
|
// bundle_id (required) - int64 - Bundle ID to notify on
|
322
320
|
// user_id - int64 - The id of the user to notify.
|
321
|
+
// notify_on_registration - boolean - Triggers bundle notification when a registration action occurs for it.
|
322
|
+
// notify_on_upload - boolean - Triggers bundle notification when a upload action occurs for it.
|
323
323
|
(0, _defineProperty2.default)(BundleNotification, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6() {
|
324
324
|
var params,
|
325
325
|
options,
|
package/package.json
CHANGED
package/src/Files.js
CHANGED
@@ -181,10 +181,10 @@ class BundleNotification {
|
|
181
181
|
BundleNotification.find(id, params, options)
|
182
182
|
|
183
183
|
// Parameters:
|
184
|
-
// notify_on_registration - boolean - Triggers bundle notification when a registration action occurs for it.
|
185
|
-
// notify_on_upload - boolean - Triggers bundle notification when a upload action occurs for it.
|
186
184
|
// bundle_id (required) - int64 - Bundle ID to notify on
|
187
185
|
// user_id - int64 - The id of the user to notify.
|
186
|
+
// notify_on_registration - boolean - Triggers bundle notification when a registration action occurs for it.
|
187
|
+
// notify_on_upload - boolean - Triggers bundle notification when a upload action occurs for it.
|
188
188
|
static create = async (params = {}, options = {}) => {
|
189
189
|
if (!params.bundle_id) {
|
190
190
|
throw new errors.MissingParameterError('Parameter missing: bundle_id')
|