files.com 1.0.166 → 1.0.167

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.
Files changed (62) hide show
  1. package/README.md +9 -5
  2. package/_VERSION +1 -1
  3. package/lib/models/ActionWebhookFailure.js +8 -2
  4. package/lib/models/ApiKey.js +16 -4
  5. package/lib/models/As2Partner.js +16 -4
  6. package/lib/models/As2Station.js +16 -4
  7. package/lib/models/Automation.js +16 -4
  8. package/lib/models/Behavior.js +16 -4
  9. package/lib/models/Bundle.js +24 -6
  10. package/lib/models/Clickwrap.js +16 -4
  11. package/lib/models/File.js +309 -311
  12. package/lib/models/FileComment.js +16 -4
  13. package/lib/models/FileCommentReaction.js +8 -2
  14. package/lib/models/FormFieldSet.js +16 -4
  15. package/lib/models/Group.js +16 -4
  16. package/lib/models/GroupUser.js +16 -4
  17. package/lib/models/Lock.js +8 -2
  18. package/lib/models/Message.js +16 -4
  19. package/lib/models/MessageComment.js +16 -4
  20. package/lib/models/MessageCommentReaction.js +8 -2
  21. package/lib/models/MessageReaction.js +8 -2
  22. package/lib/models/Notification.js +16 -4
  23. package/lib/models/Permission.js +8 -2
  24. package/lib/models/Project.js +16 -4
  25. package/lib/models/PublicKey.js +16 -4
  26. package/lib/models/RemoteServer.js +16 -4
  27. package/lib/models/Request.js +8 -2
  28. package/lib/models/SsoStrategy.js +8 -2
  29. package/lib/models/Style.js +16 -4
  30. package/lib/models/User.js +40 -10
  31. package/lib/models/UserRequest.js +8 -2
  32. package/package.json +1 -1
  33. package/src/models/ActionWebhookFailure.js +3 -1
  34. package/src/models/ApiKey.js +6 -2
  35. package/src/models/As2Partner.js +6 -2
  36. package/src/models/As2Station.js +6 -2
  37. package/src/models/Automation.js +6 -2
  38. package/src/models/Behavior.js +6 -2
  39. package/src/models/Bundle.js +9 -3
  40. package/src/models/Clickwrap.js +6 -2
  41. package/src/models/File.js +26 -19
  42. package/src/models/FileComment.js +6 -2
  43. package/src/models/FileCommentReaction.js +3 -1
  44. package/src/models/FormFieldSet.js +6 -2
  45. package/src/models/Group.js +6 -2
  46. package/src/models/GroupUser.js +6 -2
  47. package/src/models/Lock.js +3 -1
  48. package/src/models/Message.js +6 -2
  49. package/src/models/MessageComment.js +6 -2
  50. package/src/models/MessageCommentReaction.js +3 -1
  51. package/src/models/MessageReaction.js +3 -1
  52. package/src/models/Notification.js +6 -2
  53. package/src/models/Permission.js +3 -1
  54. package/src/models/Project.js +6 -2
  55. package/src/models/PublicKey.js +6 -2
  56. package/src/models/RemoteServer.js +6 -2
  57. package/src/models/Request.js +3 -1
  58. package/src/models/SsoStrategy.js +3 -1
  59. package/src/models/Style.js +6 -2
  60. package/src/models/User.js +15 -5
  61. package/src/models/UserRequest.js +3 -1
  62. package/test/src/index.js +7 -3
package/README.md CHANGED
@@ -133,21 +133,25 @@ You can set the following global properties using static methods on the `Files`
133
133
  await File.uploadFile(destinationFileName, sourceFilePath)
134
134
  }
135
135
 
136
- #### Getting a file record by path
136
+ #### Downloading a file
137
+
138
+ ##### Get a downloadable file object by path
137
139
 
138
140
  import File from 'files.com/lib/models/File'
139
- const foundFile = await File.findDownload(remoteFilePath)
140
141
 
141
- #### Download a file (not available in browser)
142
+ const foundFile = await File.find(remoteFilePath)
143
+ const downloadableFile = await foundFile.download()
144
+
145
+ ##### Download a file (not available in browser)
142
146
 
143
147
  import { isBrowser } from 'files.com/lib/utils'
144
148
 
145
149
  if (!isBrowser()) {
146
150
  // download to a file on disk
147
- await foundFile.downloadToFile(localFilePath)
151
+ await downloadableFile.downloadToFile(localFilePath)
148
152
 
149
153
  // download to a writable stream
150
- await foundFile.downloadToStream(stream)
154
+ await downloadableFile.downloadToStream(stream)
151
155
  }
152
156
 
153
157
  ### Additional Object Documentation
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.166
1
+ 1.0.167
@@ -43,6 +43,7 @@ var ActionWebhookFailure = /*#__PURE__*/(0, _createClass2.default)(function Acti
43
43
  });
44
44
  (0, _defineProperty2.default)(this, "retry", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
45
45
  var params,
46
+ response,
46
47
  _args = arguments;
47
48
  return _regenerator.default.wrap(function _callee$(_context) {
48
49
  while (1) {
@@ -94,9 +95,14 @@ var ActionWebhookFailure = /*#__PURE__*/(0, _createClass2.default)(function Acti
94
95
  throw new Error('Parameter missing: id');
95
96
 
96
97
  case 14:
97
- return _context.abrupt("return", _Api.default.sendRequest("/action_webhook_failures/".concat(params['id'], "/retry"), 'POST', params, _this.options));
98
+ _context.next = 16;
99
+ return _Api.default.sendRequest("/action_webhook_failures/".concat(params['id'], "/retry"), 'POST', params, _this.options);
98
100
 
99
- case 15:
101
+ case 16:
102
+ response = _context.sent;
103
+ return _context.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
104
+
105
+ case 18:
100
106
  case "end":
101
107
  return _context.stop();
102
108
  }
@@ -106,6 +106,7 @@ var ApiKey = /*#__PURE__*/(0, _createClass2.default)(function ApiKey() {
106
106
  });
107
107
  (0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
108
108
  var params,
109
+ response,
109
110
  _args = arguments;
110
111
  return _regenerator.default.wrap(function _callee$(_context) {
111
112
  while (1) {
@@ -181,9 +182,14 @@ var ApiKey = /*#__PURE__*/(0, _createClass2.default)(function ApiKey() {
181
182
  throw new Error('Parameter missing: id');
182
183
 
183
184
  case 20:
184
- return _context.abrupt("return", _Api.default.sendRequest("/api_keys/".concat(params['id']), 'PATCH', params, _this.options));
185
+ _context.next = 22;
186
+ return _Api.default.sendRequest("/api_keys/".concat(params['id']), 'PATCH', params, _this.options);
187
+
188
+ case 22:
189
+ response = _context.sent;
190
+ return _context.abrupt("return", new ApiKey(response === null || response === void 0 ? void 0 : response.data, _this.options));
185
191
 
186
- case 21:
192
+ case 24:
187
193
  case "end":
188
194
  return _context.stop();
189
195
  }
@@ -192,6 +198,7 @@ var ApiKey = /*#__PURE__*/(0, _createClass2.default)(function ApiKey() {
192
198
  })));
193
199
  (0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
194
200
  var params,
201
+ response,
195
202
  _args2 = arguments;
196
203
  return _regenerator.default.wrap(function _callee2$(_context2) {
197
204
  while (1) {
@@ -243,9 +250,14 @@ var ApiKey = /*#__PURE__*/(0, _createClass2.default)(function ApiKey() {
243
250
  throw new Error('Parameter missing: id');
244
251
 
245
252
  case 14:
246
- return _context2.abrupt("return", _Api.default.sendRequest("/api_keys/".concat(params['id']), 'DELETE', params, _this.options));
253
+ _context2.next = 16;
254
+ return _Api.default.sendRequest("/api_keys/".concat(params['id']), 'DELETE', params, _this.options);
255
+
256
+ case 16:
257
+ response = _context2.sent;
258
+ return _context2.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
247
259
 
248
- case 15:
260
+ case 18:
249
261
  case "end":
250
262
  return _context2.stop();
251
263
  }
@@ -109,6 +109,7 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
109
109
  });
110
110
  (0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
111
111
  var params,
112
+ response,
112
113
  _args = arguments;
113
114
  return _regenerator.default.wrap(function _callee$(_context) {
114
115
  while (1) {
@@ -184,9 +185,14 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
184
185
  throw new Error('Parameter missing: id');
185
186
 
186
187
  case 20:
187
- return _context.abrupt("return", _Api.default.sendRequest("/as2_partners/".concat(params['id']), 'PATCH', params, _this.options));
188
+ _context.next = 22;
189
+ return _Api.default.sendRequest("/as2_partners/".concat(params['id']), 'PATCH', params, _this.options);
190
+
191
+ case 22:
192
+ response = _context.sent;
193
+ return _context.abrupt("return", new As2Partner(response === null || response === void 0 ? void 0 : response.data, _this.options));
188
194
 
189
- case 21:
195
+ case 24:
190
196
  case "end":
191
197
  return _context.stop();
192
198
  }
@@ -195,6 +201,7 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
195
201
  })));
196
202
  (0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
197
203
  var params,
204
+ response,
198
205
  _args2 = arguments;
199
206
  return _regenerator.default.wrap(function _callee2$(_context2) {
200
207
  while (1) {
@@ -246,9 +253,14 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
246
253
  throw new Error('Parameter missing: id');
247
254
 
248
255
  case 14:
249
- return _context2.abrupt("return", _Api.default.sendRequest("/as2_partners/".concat(params['id']), 'DELETE', params, _this.options));
256
+ _context2.next = 16;
257
+ return _Api.default.sendRequest("/as2_partners/".concat(params['id']), 'DELETE', params, _this.options);
258
+
259
+ case 16:
260
+ response = _context2.sent;
261
+ return _context2.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
250
262
 
251
- case 15:
263
+ case 18:
252
264
  case "end":
253
265
  return _context2.stop();
254
266
  }
@@ -121,6 +121,7 @@ var As2Station = /*#__PURE__*/(0, _createClass2.default)(function As2Station() {
121
121
  });
122
122
  (0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
123
123
  var params,
124
+ response,
124
125
  _args = arguments;
125
126
  return _regenerator.default.wrap(function _callee$(_context) {
126
127
  while (1) {
@@ -196,9 +197,14 @@ var As2Station = /*#__PURE__*/(0, _createClass2.default)(function As2Station() {
196
197
  throw new Error('Parameter missing: id');
197
198
 
198
199
  case 20:
199
- return _context.abrupt("return", _Api.default.sendRequest("/as2_stations/".concat(params['id']), 'PATCH', params, _this.options));
200
+ _context.next = 22;
201
+ return _Api.default.sendRequest("/as2_stations/".concat(params['id']), 'PATCH', params, _this.options);
202
+
203
+ case 22:
204
+ response = _context.sent;
205
+ return _context.abrupt("return", new As2Station(response === null || response === void 0 ? void 0 : response.data, _this.options));
200
206
 
201
- case 21:
207
+ case 24:
202
208
  case "end":
203
209
  return _context.stop();
204
210
  }
@@ -207,6 +213,7 @@ var As2Station = /*#__PURE__*/(0, _createClass2.default)(function As2Station() {
207
213
  })));
208
214
  (0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
209
215
  var params,
216
+ response,
210
217
  _args2 = arguments;
211
218
  return _regenerator.default.wrap(function _callee2$(_context2) {
212
219
  while (1) {
@@ -258,9 +265,14 @@ var As2Station = /*#__PURE__*/(0, _createClass2.default)(function As2Station() {
258
265
  throw new Error('Parameter missing: id');
259
266
 
260
267
  case 14:
261
- return _context2.abrupt("return", _Api.default.sendRequest("/as2_stations/".concat(params['id']), 'DELETE', params, _this.options));
268
+ _context2.next = 16;
269
+ return _Api.default.sendRequest("/as2_stations/".concat(params['id']), 'DELETE', params, _this.options);
270
+
271
+ case 16:
272
+ response = _context2.sent;
273
+ return _context2.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
262
274
 
263
- case 15:
275
+ case 18:
264
276
  case "end":
265
277
  return _context2.stop();
266
278
  }
@@ -157,6 +157,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
157
157
  });
158
158
  (0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
159
159
  var params,
160
+ response,
160
161
  _args = arguments;
161
162
  return _regenerator.default.wrap(function _callee$(_context) {
162
163
  while (1) {
@@ -338,9 +339,14 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
338
339
  throw new Error('Parameter missing: automation');
339
340
 
340
341
  case 48:
341
- return _context.abrupt("return", _Api.default.sendRequest("/automations/".concat(params['id']), 'PATCH', params, _this.options));
342
+ _context.next = 50;
343
+ return _Api.default.sendRequest("/automations/".concat(params['id']), 'PATCH', params, _this.options);
344
+
345
+ case 50:
346
+ response = _context.sent;
347
+ return _context.abrupt("return", new Automation(response === null || response === void 0 ? void 0 : response.data, _this.options));
342
348
 
343
- case 49:
349
+ case 52:
344
350
  case "end":
345
351
  return _context.stop();
346
352
  }
@@ -349,6 +355,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
349
355
  })));
350
356
  (0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
351
357
  var params,
358
+ response,
352
359
  _args2 = arguments;
353
360
  return _regenerator.default.wrap(function _callee2$(_context2) {
354
361
  while (1) {
@@ -400,9 +407,14 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
400
407
  throw new Error('Parameter missing: id');
401
408
 
402
409
  case 14:
403
- return _context2.abrupt("return", _Api.default.sendRequest("/automations/".concat(params['id']), 'DELETE', params, _this.options));
410
+ _context2.next = 16;
411
+ return _Api.default.sendRequest("/automations/".concat(params['id']), 'DELETE', params, _this.options);
404
412
 
405
- case 15:
413
+ case 16:
414
+ response = _context2.sent;
415
+ return _context2.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
416
+
417
+ case 18:
406
418
  case "end":
407
419
  return _context2.stop();
408
420
  }
@@ -97,6 +97,7 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
97
97
  });
98
98
  (0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
99
99
  var params,
100
+ response,
100
101
  _args = arguments;
101
102
  return _regenerator.default.wrap(function _callee$(_context) {
102
103
  while (1) {
@@ -188,9 +189,14 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
188
189
  throw new Error('Parameter missing: id');
189
190
 
190
191
  case 24:
191
- return _context.abrupt("return", _Api.default.sendRequest("/behaviors/".concat(params['id']), 'PATCH', params, _this.options));
192
+ _context.next = 26;
193
+ return _Api.default.sendRequest("/behaviors/".concat(params['id']), 'PATCH', params, _this.options);
194
+
195
+ case 26:
196
+ response = _context.sent;
197
+ return _context.abrupt("return", new Behavior(response === null || response === void 0 ? void 0 : response.data, _this.options));
192
198
 
193
- case 25:
199
+ case 28:
194
200
  case "end":
195
201
  return _context.stop();
196
202
  }
@@ -199,6 +205,7 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
199
205
  })));
200
206
  (0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
201
207
  var params,
208
+ response,
202
209
  _args2 = arguments;
203
210
  return _regenerator.default.wrap(function _callee2$(_context2) {
204
211
  while (1) {
@@ -250,9 +257,14 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
250
257
  throw new Error('Parameter missing: id');
251
258
 
252
259
  case 14:
253
- return _context2.abrupt("return", _Api.default.sendRequest("/behaviors/".concat(params['id']), 'DELETE', params, _this.options));
260
+ _context2.next = 16;
261
+ return _Api.default.sendRequest("/behaviors/".concat(params['id']), 'DELETE', params, _this.options);
254
262
 
255
- case 15:
263
+ case 16:
264
+ response = _context2.sent;
265
+ return _context2.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
266
+
267
+ case 18:
256
268
  case "end":
257
269
  return _context2.stop();
258
270
  }
@@ -196,6 +196,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
196
196
  });
197
197
  (0, _defineProperty2.default)(this, "share", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
198
198
  var params,
199
+ response,
199
200
  _args = arguments;
200
201
  return _regenerator.default.wrap(function _callee$(_context) {
201
202
  while (1) {
@@ -271,9 +272,14 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
271
272
  throw new Error('Parameter missing: id');
272
273
 
273
274
  case 20:
274
- return _context.abrupt("return", _Api.default.sendRequest("/bundles/".concat(params['id'], "/share"), 'POST', params, _this.options));
275
+ _context.next = 22;
276
+ return _Api.default.sendRequest("/bundles/".concat(params['id'], "/share"), 'POST', params, _this.options);
277
+
278
+ case 22:
279
+ response = _context.sent;
280
+ return _context.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
275
281
 
276
- case 21:
282
+ case 24:
277
283
  case "end":
278
284
  return _context.stop();
279
285
  }
@@ -282,6 +288,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
282
288
  })));
283
289
  (0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
284
290
  var params,
291
+ response,
285
292
  _args2 = arguments;
286
293
  return _regenerator.default.wrap(function _callee2$(_context2) {
287
294
  while (1) {
@@ -413,9 +420,14 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
413
420
  throw new Error('Parameter missing: id');
414
421
 
415
422
  case 34:
416
- return _context2.abrupt("return", _Api.default.sendRequest("/bundles/".concat(params['id']), 'PATCH', params, _this.options));
423
+ _context2.next = 36;
424
+ return _Api.default.sendRequest("/bundles/".concat(params['id']), 'PATCH', params, _this.options);
417
425
 
418
- case 35:
426
+ case 36:
427
+ response = _context2.sent;
428
+ return _context2.abrupt("return", new Bundle(response === null || response === void 0 ? void 0 : response.data, _this.options));
429
+
430
+ case 38:
419
431
  case "end":
420
432
  return _context2.stop();
421
433
  }
@@ -424,6 +436,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
424
436
  })));
425
437
  (0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
426
438
  var params,
439
+ response,
427
440
  _args3 = arguments;
428
441
  return _regenerator.default.wrap(function _callee3$(_context3) {
429
442
  while (1) {
@@ -475,9 +488,14 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
475
488
  throw new Error('Parameter missing: id');
476
489
 
477
490
  case 14:
478
- return _context3.abrupt("return", _Api.default.sendRequest("/bundles/".concat(params['id']), 'DELETE', params, _this.options));
491
+ _context3.next = 16;
492
+ return _Api.default.sendRequest("/bundles/".concat(params['id']), 'DELETE', params, _this.options);
479
493
 
480
- case 15:
494
+ case 16:
495
+ response = _context3.sent;
496
+ return _context3.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
497
+
498
+ case 18:
481
499
  case "end":
482
500
  return _context3.stop();
483
501
  }
@@ -79,6 +79,7 @@ var Clickwrap = /*#__PURE__*/(0, _createClass2.default)(function Clickwrap() {
79
79
  });
80
80
  (0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
81
81
  var params,
82
+ response,
82
83
  _args = arguments;
83
84
  return _regenerator.default.wrap(function _callee$(_context) {
84
85
  while (1) {
@@ -170,9 +171,14 @@ var Clickwrap = /*#__PURE__*/(0, _createClass2.default)(function Clickwrap() {
170
171
  throw new Error('Parameter missing: id');
171
172
 
172
173
  case 24:
173
- return _context.abrupt("return", _Api.default.sendRequest("/clickwraps/".concat(params['id']), 'PATCH', params, _this.options));
174
+ _context.next = 26;
175
+ return _Api.default.sendRequest("/clickwraps/".concat(params['id']), 'PATCH', params, _this.options);
176
+
177
+ case 26:
178
+ response = _context.sent;
179
+ return _context.abrupt("return", new Clickwrap(response === null || response === void 0 ? void 0 : response.data, _this.options));
174
180
 
175
- case 25:
181
+ case 28:
176
182
  case "end":
177
183
  return _context.stop();
178
184
  }
@@ -181,6 +187,7 @@ var Clickwrap = /*#__PURE__*/(0, _createClass2.default)(function Clickwrap() {
181
187
  })));
182
188
  (0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
183
189
  var params,
190
+ response,
184
191
  _args2 = arguments;
185
192
  return _regenerator.default.wrap(function _callee2$(_context2) {
186
193
  while (1) {
@@ -232,9 +239,14 @@ var Clickwrap = /*#__PURE__*/(0, _createClass2.default)(function Clickwrap() {
232
239
  throw new Error('Parameter missing: id');
233
240
 
234
241
  case 14:
235
- return _context2.abrupt("return", _Api.default.sendRequest("/clickwraps/".concat(params['id']), 'DELETE', params, _this.options));
242
+ _context2.next = 16;
243
+ return _Api.default.sendRequest("/clickwraps/".concat(params['id']), 'DELETE', params, _this.options);
236
244
 
237
- case 15:
245
+ case 16:
246
+ response = _context2.sent;
247
+ return _context2.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
248
+
249
+ case 18:
238
250
  case "end":
239
251
  return _context2.stop();
240
252
  }