files.com 1.1.18 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (165) hide show
  1. package/.eslintrc.js +0 -3
  2. package/_VERSION +1 -1
  3. package/docs/Errors.md +1 -0
  4. package/lib/Api.js +1 -1
  5. package/lib/Errors.js +957 -933
  6. package/lib/Files.js +1 -1
  7. package/lib/models/ActionNotificationExport.js +25 -25
  8. package/lib/models/ActionNotificationExportResult.js +10 -10
  9. package/lib/models/ActionWebhookFailure.js +5 -9
  10. package/lib/models/ApiKey.js +62 -70
  11. package/lib/models/App.js +5 -5
  12. package/lib/models/As2IncomingMessage.js +7 -7
  13. package/lib/models/As2OutgoingMessage.js +7 -7
  14. package/lib/models/As2Partner.js +54 -58
  15. package/lib/models/As2Station.js +51 -55
  16. package/lib/models/Automation.js +102 -110
  17. package/lib/models/AutomationRun.js +13 -13
  18. package/lib/models/BandwidthSnapshot.js +5 -5
  19. package/lib/models/Behavior.js +77 -85
  20. package/lib/models/Bundle.js +102 -110
  21. package/lib/models/BundleDownload.js +9 -9
  22. package/lib/models/BundleNotification.js +37 -41
  23. package/lib/models/BundleRecipient.js +22 -22
  24. package/lib/models/BundleRegistration.js +7 -7
  25. package/lib/models/Clickwrap.js +52 -56
  26. package/lib/models/DnsRecord.js +5 -5
  27. package/lib/models/EmailIncomingMessage.js +5 -5
  28. package/lib/models/ExternalEvent.js +18 -18
  29. package/lib/models/File.js +89 -93
  30. package/lib/models/FileComment.js +41 -45
  31. package/lib/models/FileCommentReaction.js +15 -19
  32. package/lib/models/FileMigration.js +5 -5
  33. package/lib/models/Folder.js +24 -24
  34. package/lib/models/FormFieldSet.js +44 -48
  35. package/lib/models/GpgKey.js +53 -57
  36. package/lib/models/Group.js +51 -55
  37. package/lib/models/GroupUser.js +53 -57
  38. package/lib/models/History.js +72 -72
  39. package/lib/models/HistoryExport.js +51 -51
  40. package/lib/models/HistoryExportResult.js +10 -10
  41. package/lib/models/InboxRecipient.js +22 -22
  42. package/lib/models/InboxRegistration.js +7 -7
  43. package/lib/models/InboxUpload.js +9 -9
  44. package/lib/models/Invoice.js +12 -12
  45. package/lib/models/IpAddress.js +17 -17
  46. package/lib/models/Lock.js +27 -31
  47. package/lib/models/Message.js +60 -64
  48. package/lib/models/MessageComment.js +46 -50
  49. package/lib/models/MessageCommentReaction.js +27 -31
  50. package/lib/models/MessageReaction.js +27 -31
  51. package/lib/models/Notification.js +66 -70
  52. package/lib/models/Payment.js +12 -12
  53. package/lib/models/Permission.js +28 -32
  54. package/lib/models/Priority.js +9 -9
  55. package/lib/models/Project.js +39 -43
  56. package/lib/models/PublicKey.js +46 -50
  57. package/lib/models/RemoteBandwidthSnapshot.js +5 -5
  58. package/lib/models/RemoteServer.js +306 -310
  59. package/lib/models/Request.js +33 -37
  60. package/lib/models/Session.js +11 -15
  61. package/lib/models/SettingsChange.js +5 -5
  62. package/lib/models/SftpHostKey.js +40 -44
  63. package/lib/models/ShareGroup.js +50 -54
  64. package/lib/models/Site.js +138 -138
  65. package/lib/models/Snapshot.js +44 -48
  66. package/lib/models/SsoStrategy.js +15 -19
  67. package/lib/models/Style.js +17 -21
  68. package/lib/models/UsageDailySnapshot.js +5 -5
  69. package/lib/models/UsageSnapshot.js +5 -5
  70. package/lib/models/User.js +156 -172
  71. package/lib/models/UserCipherUse.js +7 -7
  72. package/lib/models/UserRequest.js +26 -30
  73. package/lib/models/WebhookTest.js +15 -15
  74. package/package.json +6 -2
  75. package/src/Api.js +2 -1
  76. package/src/Errors.js +189 -177
  77. package/src/Files.js +1 -1
  78. package/src/models/AccountLineItem.js +5 -2
  79. package/src/models/Action.js +5 -2
  80. package/src/models/ActionNotificationExport.js +36 -35
  81. package/src/models/ActionNotificationExportResult.js +15 -13
  82. package/src/models/ActionWebhookFailure.js +9 -8
  83. package/src/models/ApiKey.js +69 -72
  84. package/src/models/App.js +10 -8
  85. package/src/models/As2IncomingMessage.js +12 -10
  86. package/src/models/As2OutgoingMessage.js +12 -10
  87. package/src/models/As2Partner.js +61 -60
  88. package/src/models/As2Station.js +58 -57
  89. package/src/models/Auto.js +5 -2
  90. package/src/models/Automation.js +121 -110
  91. package/src/models/AutomationRun.js +18 -17
  92. package/src/models/BandwidthSnapshot.js +10 -8
  93. package/src/models/Behavior.js +85 -86
  94. package/src/models/Bundle.js +121 -110
  95. package/src/models/BundleDownload.js +14 -12
  96. package/src/models/BundleNotification.js +40 -43
  97. package/src/models/BundleRecipient.js +33 -32
  98. package/src/models/BundleRegistration.js +12 -10
  99. package/src/models/Clickwrap.js +60 -58
  100. package/src/models/DnsRecord.js +10 -8
  101. package/src/models/EmailIncomingMessage.js +10 -8
  102. package/src/models/Errors.js +5 -2
  103. package/src/models/ExternalEvent.js +29 -29
  104. package/src/models/File.js +116 -108
  105. package/src/models/FileAction.js +5 -2
  106. package/src/models/FileComment.js +45 -46
  107. package/src/models/FileCommentReaction.js +26 -26
  108. package/src/models/FileMigration.js +10 -8
  109. package/src/models/FileUploadPart.js +5 -2
  110. package/src/models/Folder.js +32 -29
  111. package/src/models/FormField.js +5 -2
  112. package/src/models/FormFieldSet.js +49 -50
  113. package/src/models/GpgKey.js +60 -59
  114. package/src/models/Group.js +58 -57
  115. package/src/models/GroupUser.js +60 -58
  116. package/src/models/History.js +77 -74
  117. package/src/models/HistoryExport.js +62 -61
  118. package/src/models/HistoryExportResult.js +15 -13
  119. package/src/models/Image.js +5 -2
  120. package/src/models/InboxRecipient.js +33 -32
  121. package/src/models/InboxRegistration.js +12 -10
  122. package/src/models/InboxUpload.js +14 -12
  123. package/src/models/Invoice.js +17 -14
  124. package/src/models/InvoiceLineItem.js +5 -2
  125. package/src/models/IpAddress.js +22 -20
  126. package/src/models/Lock.js +36 -36
  127. package/src/models/Message.js +66 -66
  128. package/src/models/MessageComment.js +50 -52
  129. package/src/models/MessageCommentReaction.js +38 -40
  130. package/src/models/MessageReaction.js +38 -40
  131. package/src/models/Notification.js +74 -72
  132. package/src/models/Payment.js +17 -14
  133. package/src/models/PaymentLineItem.js +5 -2
  134. package/src/models/Permission.js +39 -40
  135. package/src/models/Preview.js +5 -2
  136. package/src/models/Priority.js +14 -12
  137. package/src/models/Project.js +43 -45
  138. package/src/models/PublicIpAddress.js +5 -2
  139. package/src/models/PublicKey.js +50 -52
  140. package/src/models/RemoteBandwidthSnapshot.js +10 -8
  141. package/src/models/RemoteServer.js +380 -312
  142. package/src/models/RemoteServerConfigurationFile.js +5 -2
  143. package/src/models/Request.js +44 -46
  144. package/src/models/Session.js +22 -22
  145. package/src/models/SettingsChange.js +10 -8
  146. package/src/models/SftpHostKey.js +45 -46
  147. package/src/models/ShareGroup.js +56 -56
  148. package/src/models/ShareGroupMember.js +5 -2
  149. package/src/models/Site.js +143 -142
  150. package/src/models/Snapshot.js +50 -50
  151. package/src/models/SsoStrategy.js +20 -21
  152. package/src/models/Status.js +5 -2
  153. package/src/models/Style.js +22 -23
  154. package/src/models/UsageDailySnapshot.js +10 -8
  155. package/src/models/UsageSnapshot.js +10 -8
  156. package/src/models/User.js +185 -168
  157. package/src/models/UserCipherUse.js +12 -10
  158. package/src/models/UserRequest.js +37 -39
  159. package/src/models/WebhookTest.js +26 -24
  160. package/test/Api.test.js +163 -0
  161. package/test/{package.json → integration/package.json} +1 -1
  162. package/test/{src → integration/src}/index.js +1 -1
  163. package/test.sh +2 -1
  164. /package/test/{.babelrc → integration/.babelrc} +0 -0
  165. /package/test/{index.js → integration/index.js} +0 -0
@@ -222,43 +222,43 @@ var Notification = /*#__PURE__*/(0, _createClass2.default)(function Notification
222
222
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
223
223
  case 5:
224
224
  params.id = _this.attributes.id;
225
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
225
+ if (!(params.id && !(0, _utils.isInt)(params.id))) {
226
226
  _context.next = 8;
227
227
  break;
228
228
  }
229
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
229
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
230
230
  case 8:
231
- if (!(params['send_interval'] && !(0, _utils.isString)(params['send_interval']))) {
231
+ if (!(params.send_interval && !(0, _utils.isString)(params.send_interval))) {
232
232
  _context.next = 10;
233
233
  break;
234
234
  }
235
- throw new errors.InvalidParameterError("Bad parameter: send_interval must be of type String, received ".concat((0, _utils.getType)(params['send_interval'])));
235
+ throw new errors.InvalidParameterError("Bad parameter: send_interval must be of type String, received ".concat((0, _utils.getType)(params.send_interval)));
236
236
  case 10:
237
- if (!(params['message'] && !(0, _utils.isString)(params['message']))) {
237
+ if (!(params.message && !(0, _utils.isString)(params.message))) {
238
238
  _context.next = 12;
239
239
  break;
240
240
  }
241
- throw new errors.InvalidParameterError("Bad parameter: message must be of type String, received ".concat((0, _utils.getType)(params['message'])));
241
+ throw new errors.InvalidParameterError("Bad parameter: message must be of type String, received ".concat((0, _utils.getType)(params.message)));
242
242
  case 12:
243
- if (!(params['triggering_filenames'] && !(0, _utils.isArray)(params['triggering_filenames']))) {
243
+ if (!(params.triggering_filenames && !(0, _utils.isArray)(params.triggering_filenames))) {
244
244
  _context.next = 14;
245
245
  break;
246
246
  }
247
- throw new errors.InvalidParameterError("Bad parameter: triggering_filenames must be of type Array, received ".concat((0, _utils.getType)(params['triggering_filenames'])));
247
+ throw new errors.InvalidParameterError("Bad parameter: triggering_filenames must be of type Array, received ".concat((0, _utils.getType)(params.triggering_filenames)));
248
248
  case 14:
249
- if (!(params['triggering_group_ids'] && !(0, _utils.isArray)(params['triggering_group_ids']))) {
249
+ if (!(params.triggering_group_ids && !(0, _utils.isArray)(params.triggering_group_ids))) {
250
250
  _context.next = 16;
251
251
  break;
252
252
  }
253
- throw new errors.InvalidParameterError("Bad parameter: triggering_group_ids must be of type Array, received ".concat((0, _utils.getType)(params['triggering_group_ids'])));
253
+ throw new errors.InvalidParameterError("Bad parameter: triggering_group_ids must be of type Array, received ".concat((0, _utils.getType)(params.triggering_group_ids)));
254
254
  case 16:
255
- if (!(params['triggering_user_ids'] && !(0, _utils.isArray)(params['triggering_user_ids']))) {
255
+ if (!(params.triggering_user_ids && !(0, _utils.isArray)(params.triggering_user_ids))) {
256
256
  _context.next = 18;
257
257
  break;
258
258
  }
259
- throw new errors.InvalidParameterError("Bad parameter: triggering_user_ids must be of type Array, received ".concat((0, _utils.getType)(params['triggering_user_ids'])));
259
+ throw new errors.InvalidParameterError("Bad parameter: triggering_user_ids must be of type Array, received ".concat((0, _utils.getType)(params.triggering_user_ids)));
260
260
  case 18:
261
- if (params['id']) {
261
+ if (params.id) {
262
262
  _context.next = 24;
263
263
  break;
264
264
  }
@@ -266,14 +266,14 @@ var Notification = /*#__PURE__*/(0, _createClass2.default)(function Notification
266
266
  _context.next = 23;
267
267
  break;
268
268
  }
269
- params['id'] = _this.id;
269
+ params.id = _this.id;
270
270
  _context.next = 24;
271
271
  break;
272
272
  case 23:
273
273
  throw new errors.MissingParameterError('Parameter missing: id');
274
274
  case 24:
275
275
  _context.next = 26;
276
- return _Api.default.sendRequest("/notifications/".concat(encodeURIComponent(params['id'])), 'PATCH', params, _this.options);
276
+ return _Api.default.sendRequest("/notifications/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
277
277
  case 26:
278
278
  response = _context.sent;
279
279
  return _context.abrupt("return", new Notification(response === null || response === void 0 ? void 0 : response.data, _this.options));
@@ -285,7 +285,6 @@ var Notification = /*#__PURE__*/(0, _createClass2.default)(function Notification
285
285
  })));
286
286
  (0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
287
287
  var params,
288
- response,
289
288
  _args2 = arguments;
290
289
  return _regenerator.default.wrap(function _callee2$(_context2) {
291
290
  while (1) switch (_context2.prev = _context2.next) {
@@ -304,13 +303,13 @@ var Notification = /*#__PURE__*/(0, _createClass2.default)(function Notification
304
303
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
305
304
  case 5:
306
305
  params.id = _this.attributes.id;
307
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
306
+ if (!(params.id && !(0, _utils.isInt)(params.id))) {
308
307
  _context2.next = 8;
309
308
  break;
310
309
  }
311
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
310
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
312
311
  case 8:
313
- if (params['id']) {
312
+ if (params.id) {
314
313
  _context2.next = 14;
315
314
  break;
316
315
  }
@@ -318,18 +317,15 @@ var Notification = /*#__PURE__*/(0, _createClass2.default)(function Notification
318
317
  _context2.next = 13;
319
318
  break;
320
319
  }
321
- params['id'] = _this.id;
320
+ params.id = _this.id;
322
321
  _context2.next = 14;
323
322
  break;
324
323
  case 13:
325
324
  throw new errors.MissingParameterError('Parameter missing: id');
326
325
  case 14:
327
326
  _context2.next = 16;
328
- return _Api.default.sendRequest("/notifications/".concat(encodeURIComponent(params['id'])), 'DELETE', params, _this.options);
327
+ return _Api.default.sendRequest("/notifications/".concat(encodeURIComponent(params.id)), 'DELETE', params, _this.options);
329
328
  case 16:
330
- response = _context2.sent;
331
- return _context2.abrupt("return");
332
- case 18:
333
329
  case "end":
334
330
  return _context2.stop();
335
331
  }
@@ -340,28 +336,28 @@ var Notification = /*#__PURE__*/(0, _createClass2.default)(function Notification
340
336
  return _this.delete(params);
341
337
  });
342
338
  (0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
343
- var newObject, _newObject;
339
+ var _newObject, newObject;
344
340
  return _regenerator.default.wrap(function _callee3$(_context3) {
345
341
  while (1) switch (_context3.prev = _context3.next) {
346
342
  case 0:
347
- if (!_this.attributes['id']) {
348
- _context3.next = 8;
343
+ if (!_this.attributes.id) {
344
+ _context3.next = 6;
349
345
  break;
350
346
  }
351
347
  _context3.next = 3;
352
348
  return _this.update(_this.attributes);
353
349
  case 3:
354
- newObject = _context3.sent;
355
- _this.attributes = _objectSpread({}, newObject.attributes);
356
- return _context3.abrupt("return", true);
357
- case 8:
358
- _context3.next = 10;
359
- return Notification.create(_this.attributes, _this.options);
360
- case 10:
361
350
  _newObject = _context3.sent;
362
351
  _this.attributes = _objectSpread({}, _newObject.attributes);
363
352
  return _context3.abrupt("return", true);
364
- case 13:
353
+ case 6:
354
+ _context3.next = 8;
355
+ return Notification.create(_this.attributes, _this.options);
356
+ case 8:
357
+ newObject = _context3.sent;
358
+ _this.attributes = _objectSpread({}, newObject.attributes);
359
+ return _context3.abrupt("return", true);
360
+ case 11:
365
361
  case "end":
366
362
  return _context3.stop();
367
363
  }
@@ -402,38 +398,38 @@ _class = Notification;
402
398
  case 0:
403
399
  params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
404
400
  options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
405
- if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
401
+ if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
406
402
  _context4.next = 4;
407
403
  break;
408
404
  }
409
- throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
405
+ throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
410
406
  case 4:
411
- if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
407
+ if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
412
408
  _context4.next = 6;
413
409
  break;
414
410
  }
415
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
411
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
416
412
  case 6:
417
- if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
413
+ if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
418
414
  _context4.next = 8;
419
415
  break;
420
416
  }
421
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
417
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
422
418
  case 8:
423
- if (!(params['path'] && !(0, _utils.isString)(params['path']))) {
419
+ if (!(params.path && !(0, _utils.isString)(params.path))) {
424
420
  _context4.next = 10;
425
421
  break;
426
422
  }
427
- throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params['path'])));
423
+ throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
428
424
  case 10:
429
- if (!(params['group_id'] && !(0, _utils.isString)(params['group_id']))) {
425
+ if (!(params.group_id && !(0, _utils.isString)(params.group_id))) {
430
426
  _context4.next = 12;
431
427
  break;
432
428
  }
433
- throw new errors.InvalidParameterError("Bad parameter: group_id must be of type String, received ".concat((0, _utils.getType)(params['group_id'])));
429
+ throw new errors.InvalidParameterError("Bad parameter: group_id must be of type String, received ".concat((0, _utils.getType)(params.group_id)));
434
430
  case 12:
435
431
  _context4.next = 14;
436
- return _Api.default.sendRequest("/notifications", 'GET', params, options);
432
+ return _Api.default.sendRequest('/notifications', 'GET', params, options);
437
433
  case 14:
438
434
  response = _context4.sent;
439
435
  return _context4.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
@@ -469,21 +465,21 @@ _class = Notification;
469
465
  }
470
466
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
471
467
  case 4:
472
- params['id'] = id;
473
- if (params['id']) {
468
+ params.id = id;
469
+ if (params.id) {
474
470
  _context5.next = 7;
475
471
  break;
476
472
  }
477
473
  throw new errors.MissingParameterError('Parameter missing: id');
478
474
  case 7:
479
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
475
+ if (!(params.id && !(0, _utils.isInt)(params.id))) {
480
476
  _context5.next = 9;
481
477
  break;
482
478
  }
483
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
479
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
484
480
  case 9:
485
481
  _context5.next = 11;
486
- return _Api.default.sendRequest("/notifications/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
482
+ return _Api.default.sendRequest("/notifications/".concat(encodeURIComponent(params.id)), 'GET', params, options);
487
483
  case 11:
488
484
  response = _context5.sent;
489
485
  return _context5.abrupt("return", new _class(response === null || response === void 0 ? void 0 : response.data, options));
@@ -530,62 +526,62 @@ _class = Notification;
530
526
  case 0:
531
527
  params = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
532
528
  options = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : {};
533
- if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
529
+ if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
534
530
  _context6.next = 4;
535
531
  break;
536
532
  }
537
- throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
533
+ throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
538
534
  case 4:
539
- if (!(params['send_interval'] && !(0, _utils.isString)(params['send_interval']))) {
535
+ if (!(params.send_interval && !(0, _utils.isString)(params.send_interval))) {
540
536
  _context6.next = 6;
541
537
  break;
542
538
  }
543
- throw new errors.InvalidParameterError("Bad parameter: send_interval must be of type String, received ".concat((0, _utils.getType)(params['send_interval'])));
539
+ throw new errors.InvalidParameterError("Bad parameter: send_interval must be of type String, received ".concat((0, _utils.getType)(params.send_interval)));
544
540
  case 6:
545
- if (!(params['message'] && !(0, _utils.isString)(params['message']))) {
541
+ if (!(params.message && !(0, _utils.isString)(params.message))) {
546
542
  _context6.next = 8;
547
543
  break;
548
544
  }
549
- throw new errors.InvalidParameterError("Bad parameter: message must be of type String, received ".concat((0, _utils.getType)(params['message'])));
545
+ throw new errors.InvalidParameterError("Bad parameter: message must be of type String, received ".concat((0, _utils.getType)(params.message)));
550
546
  case 8:
551
- if (!(params['triggering_filenames'] && !(0, _utils.isArray)(params['triggering_filenames']))) {
547
+ if (!(params.triggering_filenames && !(0, _utils.isArray)(params.triggering_filenames))) {
552
548
  _context6.next = 10;
553
549
  break;
554
550
  }
555
- throw new errors.InvalidParameterError("Bad parameter: triggering_filenames must be of type Array, received ".concat((0, _utils.getType)(params['triggering_filenames'])));
551
+ throw new errors.InvalidParameterError("Bad parameter: triggering_filenames must be of type Array, received ".concat((0, _utils.getType)(params.triggering_filenames)));
556
552
  case 10:
557
- if (!(params['triggering_group_ids'] && !(0, _utils.isArray)(params['triggering_group_ids']))) {
553
+ if (!(params.triggering_group_ids && !(0, _utils.isArray)(params.triggering_group_ids))) {
558
554
  _context6.next = 12;
559
555
  break;
560
556
  }
561
- throw new errors.InvalidParameterError("Bad parameter: triggering_group_ids must be of type Array, received ".concat((0, _utils.getType)(params['triggering_group_ids'])));
557
+ throw new errors.InvalidParameterError("Bad parameter: triggering_group_ids must be of type Array, received ".concat((0, _utils.getType)(params.triggering_group_ids)));
562
558
  case 12:
563
- if (!(params['triggering_user_ids'] && !(0, _utils.isArray)(params['triggering_user_ids']))) {
559
+ if (!(params.triggering_user_ids && !(0, _utils.isArray)(params.triggering_user_ids))) {
564
560
  _context6.next = 14;
565
561
  break;
566
562
  }
567
- throw new errors.InvalidParameterError("Bad parameter: triggering_user_ids must be of type Array, received ".concat((0, _utils.getType)(params['triggering_user_ids'])));
563
+ throw new errors.InvalidParameterError("Bad parameter: triggering_user_ids must be of type Array, received ".concat((0, _utils.getType)(params.triggering_user_ids)));
568
564
  case 14:
569
- if (!(params['group_id'] && !(0, _utils.isInt)(params['group_id']))) {
565
+ if (!(params.group_id && !(0, _utils.isInt)(params.group_id))) {
570
566
  _context6.next = 16;
571
567
  break;
572
568
  }
573
- throw new errors.InvalidParameterError("Bad parameter: group_id must be of type Int, received ".concat((0, _utils.getType)(params['group_id'])));
569
+ throw new errors.InvalidParameterError("Bad parameter: group_id must be of type Int, received ".concat((0, _utils.getType)(params.group_id)));
574
570
  case 16:
575
- if (!(params['path'] && !(0, _utils.isString)(params['path']))) {
571
+ if (!(params.path && !(0, _utils.isString)(params.path))) {
576
572
  _context6.next = 18;
577
573
  break;
578
574
  }
579
- throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params['path'])));
575
+ throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
580
576
  case 18:
581
- if (!(params['username'] && !(0, _utils.isString)(params['username']))) {
577
+ if (!(params.username && !(0, _utils.isString)(params.username))) {
582
578
  _context6.next = 20;
583
579
  break;
584
580
  }
585
- throw new errors.InvalidParameterError("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(params['username'])));
581
+ throw new errors.InvalidParameterError("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(params.username)));
586
582
  case 20:
587
583
  _context6.next = 22;
588
- return _Api.default.sendRequest("/notifications", 'POST', params, options);
584
+ return _Api.default.sendRequest('/notifications', 'POST', params, options);
589
585
  case 22:
590
586
  response = _context6.sent;
591
587
  return _context6.abrupt("return", new _class(response === null || response === void 0 ? void 0 : response.data, options));
@@ -118,23 +118,23 @@ _class = Payment;
118
118
  case 0:
119
119
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
120
120
  options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
121
- if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
121
+ if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
122
122
  _context.next = 4;
123
123
  break;
124
124
  }
125
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
125
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
126
126
  case 4:
127
- if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
127
+ if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
128
128
  _context.next = 6;
129
129
  break;
130
130
  }
131
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
131
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
132
132
  case 6:
133
133
  _context.next = 8;
134
- return _Api.default.sendRequest("/payments", 'GET', params, options);
134
+ return _Api.default.sendRequest('/payments', 'GET', params, options);
135
135
  case 8:
136
136
  response = _context.sent;
137
- AccountLineItem = require("./AccountLineItem.js").default;
137
+ AccountLineItem = require('./AccountLineItem.js').default;
138
138
  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) {
139
139
  return new AccountLineItem(obj, options);
140
140
  })) || []);
@@ -169,24 +169,24 @@ _class = Payment;
169
169
  }
170
170
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
171
171
  case 4:
172
- params['id'] = id;
173
- if (params['id']) {
172
+ params.id = id;
173
+ if (params.id) {
174
174
  _context2.next = 7;
175
175
  break;
176
176
  }
177
177
  throw new errors.MissingParameterError('Parameter missing: id');
178
178
  case 7:
179
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
179
+ if (!(params.id && !(0, _utils.isInt)(params.id))) {
180
180
  _context2.next = 9;
181
181
  break;
182
182
  }
183
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
183
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
184
184
  case 9:
185
185
  _context2.next = 11;
186
- return _Api.default.sendRequest("/payments/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
186
+ return _Api.default.sendRequest("/payments/".concat(encodeURIComponent(params.id)), 'GET', params, options);
187
187
  case 11:
188
188
  response = _context2.sent;
189
- AccountLineItem = require("./AccountLineItem.js").default;
189
+ AccountLineItem = require('./AccountLineItem.js').default;
190
190
  return _context2.abrupt("return", new AccountLineItem(response === null || response === void 0 ? void 0 : response.data, options));
191
191
  case 14:
192
192
  case "end":
@@ -91,7 +91,6 @@ var Permission = /*#__PURE__*/(0, _createClass2.default)(function Permission() {
91
91
  });
92
92
  (0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
93
93
  var params,
94
- response,
95
94
  _args = arguments;
96
95
  return _regenerator.default.wrap(function _callee$(_context) {
97
96
  while (1) switch (_context.prev = _context.next) {
@@ -110,13 +109,13 @@ var Permission = /*#__PURE__*/(0, _createClass2.default)(function Permission() {
110
109
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
111
110
  case 5:
112
111
  params.id = _this.attributes.id;
113
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
112
+ if (!(params.id && !(0, _utils.isInt)(params.id))) {
114
113
  _context.next = 8;
115
114
  break;
116
115
  }
117
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
116
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
118
117
  case 8:
119
- if (params['id']) {
118
+ if (params.id) {
120
119
  _context.next = 14;
121
120
  break;
122
121
  }
@@ -124,18 +123,15 @@ var Permission = /*#__PURE__*/(0, _createClass2.default)(function Permission() {
124
123
  _context.next = 13;
125
124
  break;
126
125
  }
127
- params['id'] = _this.id;
126
+ params.id = _this.id;
128
127
  _context.next = 14;
129
128
  break;
130
129
  case 13:
131
130
  throw new errors.MissingParameterError('Parameter missing: id');
132
131
  case 14:
133
132
  _context.next = 16;
134
- return _Api.default.sendRequest("/permissions/".concat(encodeURIComponent(params['id'])), 'DELETE', params, _this.options);
133
+ return _Api.default.sendRequest("/permissions/".concat(encodeURIComponent(params.id)), 'DELETE', params, _this.options);
135
134
  case 16:
136
- response = _context.sent;
137
- return _context.abrupt("return");
138
- case 18:
139
135
  case "end":
140
136
  return _context.stop();
141
137
  }
@@ -150,7 +146,7 @@ var Permission = /*#__PURE__*/(0, _createClass2.default)(function Permission() {
150
146
  return _regenerator.default.wrap(function _callee2$(_context2) {
151
147
  while (1) switch (_context2.prev = _context2.next) {
152
148
  case 0:
153
- if (!_this.attributes['id']) {
149
+ if (!_this.attributes.id) {
154
150
  _context2.next = 4;
155
151
  break;
156
152
  }
@@ -203,38 +199,38 @@ _class = Permission;
203
199
  case 0:
204
200
  params = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
205
201
  options = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {};
206
- if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
202
+ if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
207
203
  _context3.next = 4;
208
204
  break;
209
205
  }
210
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
206
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
211
207
  case 4:
212
- if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
208
+ if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
213
209
  _context3.next = 6;
214
210
  break;
215
211
  }
216
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
212
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
217
213
  case 6:
218
- if (!(params['path'] && !(0, _utils.isString)(params['path']))) {
214
+ if (!(params.path && !(0, _utils.isString)(params.path))) {
219
215
  _context3.next = 8;
220
216
  break;
221
217
  }
222
- throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params['path'])));
218
+ throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
223
219
  case 8:
224
- if (!(params['group_id'] && !(0, _utils.isString)(params['group_id']))) {
220
+ if (!(params.group_id && !(0, _utils.isString)(params.group_id))) {
225
221
  _context3.next = 10;
226
222
  break;
227
223
  }
228
- throw new errors.InvalidParameterError("Bad parameter: group_id must be of type String, received ".concat((0, _utils.getType)(params['group_id'])));
224
+ throw new errors.InvalidParameterError("Bad parameter: group_id must be of type String, received ".concat((0, _utils.getType)(params.group_id)));
229
225
  case 10:
230
- if (!(params['user_id'] && !(0, _utils.isString)(params['user_id']))) {
226
+ if (!(params.user_id && !(0, _utils.isString)(params.user_id))) {
231
227
  _context3.next = 12;
232
228
  break;
233
229
  }
234
- throw new errors.InvalidParameterError("Bad parameter: user_id must be of type String, received ".concat((0, _utils.getType)(params['user_id'])));
230
+ throw new errors.InvalidParameterError("Bad parameter: user_id must be of type String, received ".concat((0, _utils.getType)(params.user_id)));
235
231
  case 12:
236
232
  _context3.next = 14;
237
- return _Api.default.sendRequest("/permissions", 'GET', params, options);
233
+ return _Api.default.sendRequest('/permissions', 'GET', params, options);
238
234
  case 14:
239
235
  response = _context3.sent;
240
236
  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) {
@@ -268,38 +264,38 @@ _class = Permission;
268
264
  case 0:
269
265
  params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
270
266
  options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
271
- if (!(params['group_id'] && !(0, _utils.isInt)(params['group_id']))) {
267
+ if (!(params.group_id && !(0, _utils.isInt)(params.group_id))) {
272
268
  _context4.next = 4;
273
269
  break;
274
270
  }
275
- throw new errors.InvalidParameterError("Bad parameter: group_id must be of type Int, received ".concat((0, _utils.getType)(params['group_id'])));
271
+ throw new errors.InvalidParameterError("Bad parameter: group_id must be of type Int, received ".concat((0, _utils.getType)(params.group_id)));
276
272
  case 4:
277
- if (!(params['path'] && !(0, _utils.isString)(params['path']))) {
273
+ if (!(params.path && !(0, _utils.isString)(params.path))) {
278
274
  _context4.next = 6;
279
275
  break;
280
276
  }
281
- throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params['path'])));
277
+ throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
282
278
  case 6:
283
- if (!(params['permission'] && !(0, _utils.isString)(params['permission']))) {
279
+ if (!(params.permission && !(0, _utils.isString)(params.permission))) {
284
280
  _context4.next = 8;
285
281
  break;
286
282
  }
287
- throw new errors.InvalidParameterError("Bad parameter: permission must be of type String, received ".concat((0, _utils.getType)(params['permission'])));
283
+ throw new errors.InvalidParameterError("Bad parameter: permission must be of type String, received ".concat((0, _utils.getType)(params.permission)));
288
284
  case 8:
289
- if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
285
+ if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
290
286
  _context4.next = 10;
291
287
  break;
292
288
  }
293
- throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
289
+ throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
294
290
  case 10:
295
- if (!(params['username'] && !(0, _utils.isString)(params['username']))) {
291
+ if (!(params.username && !(0, _utils.isString)(params.username))) {
296
292
  _context4.next = 12;
297
293
  break;
298
294
  }
299
- throw new errors.InvalidParameterError("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(params['username'])));
295
+ throw new errors.InvalidParameterError("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(params.username)));
300
296
  case 12:
301
297
  _context4.next = 14;
302
- return _Api.default.sendRequest("/permissions", 'POST', params, options);
298
+ return _Api.default.sendRequest('/permissions', 'POST', params, options);
303
299
  case 14:
304
300
  response = _context4.sent;
305
301
  return _context4.abrupt("return", new _class(response === null || response === void 0 ? void 0 : response.data, options));
@@ -77,33 +77,33 @@ _class = Priority;
77
77
  }
78
78
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
79
79
  case 4:
80
- params['path'] = path;
81
- if (params['path']) {
80
+ params.path = path;
81
+ if (params.path) {
82
82
  _context.next = 7;
83
83
  break;
84
84
  }
85
85
  throw new errors.MissingParameterError('Parameter missing: path');
86
86
  case 7:
87
- if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
87
+ if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
88
88
  _context.next = 9;
89
89
  break;
90
90
  }
91
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
91
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
92
92
  case 9:
93
- if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
93
+ if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
94
94
  _context.next = 11;
95
95
  break;
96
96
  }
97
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
97
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
98
98
  case 11:
99
- if (!(params['path'] && !(0, _utils.isString)(params['path']))) {
99
+ if (!(params.path && !(0, _utils.isString)(params.path))) {
100
100
  _context.next = 13;
101
101
  break;
102
102
  }
103
- throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params['path'])));
103
+ throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
104
104
  case 13:
105
105
  _context.next = 15;
106
- return _Api.default.sendRequest("/priorities", 'GET', params, options);
106
+ return _Api.default.sendRequest('/priorities', 'GET', params, options);
107
107
  case 15:
108
108
  response = _context.sent;
109
109
  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) {