files.com 1.2.101 → 1.2.102

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 (211) hide show
  1. package/_VERSION +1 -1
  2. package/docs/models/ActionNotificationExportResult.md +0 -2
  3. package/docs/models/ApiKey.md +1 -3
  4. package/docs/models/ApiRequestLog.md +0 -2
  5. package/docs/models/App.md +1 -3
  6. package/docs/models/As2IncomingMessage.md +1 -3
  7. package/docs/models/As2OutgoingMessage.md +1 -3
  8. package/docs/models/As2Partner.md +0 -2
  9. package/docs/models/As2Station.md +0 -2
  10. package/docs/models/Automation.md +1 -10
  11. package/docs/models/AutomationLog.md +0 -2
  12. package/docs/models/AutomationRun.md +1 -3
  13. package/docs/models/BandwidthSnapshot.md +1 -3
  14. package/docs/models/Behavior.md +2 -8
  15. package/docs/models/Bundle.md +1 -3
  16. package/docs/models/BundleAction.md +1 -3
  17. package/docs/models/BundleDownload.md +1 -3
  18. package/docs/models/BundleNotification.md +1 -3
  19. package/docs/models/BundleRecipient.md +1 -3
  20. package/docs/models/BundleRegistration.md +0 -2
  21. package/docs/models/Clickwrap.md +0 -2
  22. package/docs/models/DnsRecord.md +0 -2
  23. package/docs/models/EmailIncomingMessage.md +1 -3
  24. package/docs/models/EmailLog.md +0 -2
  25. package/docs/models/ExavaultApiRequestLog.md +0 -2
  26. package/docs/models/ExternalEvent.md +1 -3
  27. package/docs/models/FileComment.md +0 -2
  28. package/docs/models/FileMigrationLog.md +0 -2
  29. package/docs/models/Folder.md +0 -1
  30. package/docs/models/FormFieldSet.md +0 -2
  31. package/docs/models/FtpActionLog.md +0 -2
  32. package/docs/models/GpgKey.md +1 -3
  33. package/docs/models/Group.md +1 -3
  34. package/docs/models/GroupUser.md +0 -2
  35. package/docs/models/History.md +5 -15
  36. package/docs/models/HistoryExportResult.md +0 -2
  37. package/docs/models/InboxRecipient.md +1 -3
  38. package/docs/models/InboxRegistration.md +0 -2
  39. package/docs/models/InboxUpload.md +1 -3
  40. package/docs/models/Invoice.md +0 -2
  41. package/docs/models/IpAddress.md +0 -8
  42. package/docs/models/Lock.md +0 -2
  43. package/docs/models/Message.md +0 -2
  44. package/docs/models/MessageComment.md +0 -2
  45. package/docs/models/MessageCommentReaction.md +0 -2
  46. package/docs/models/MessageReaction.md +0 -2
  47. package/docs/models/Notification.md +1 -5
  48. package/docs/models/OutboundConnectionLog.md +0 -2
  49. package/docs/models/Payment.md +0 -2
  50. package/docs/models/Permission.md +1 -3
  51. package/docs/models/Priority.md +0 -2
  52. package/docs/models/Project.md +0 -2
  53. package/docs/models/PublicHostingRequestLog.md +0 -2
  54. package/docs/models/PublicKey.md +0 -2
  55. package/docs/models/RemoteBandwidthSnapshot.md +1 -3
  56. package/docs/models/RemoteServer.md +0 -2
  57. package/docs/models/Request.md +2 -6
  58. package/docs/models/SettingsChange.md +1 -3
  59. package/docs/models/SftpActionLog.md +0 -2
  60. package/docs/models/SftpHostKey.md +0 -2
  61. package/docs/models/ShareGroup.md +0 -2
  62. package/docs/models/Snapshot.md +0 -2
  63. package/docs/models/SsoStrategy.md +0 -2
  64. package/docs/models/SyncLog.md +0 -2
  65. package/docs/models/UsageDailySnapshot.md +1 -3
  66. package/docs/models/UsageSnapshot.md +0 -2
  67. package/docs/models/User.md +1 -3
  68. package/docs/models/UserCipherUse.md +0 -2
  69. package/docs/models/UserRequest.md +0 -2
  70. package/docs/models/WebDavActionLog.md +0 -2
  71. package/lib/Files.js +1 -1
  72. package/lib/models/ActionNotificationExportResult.js +5 -19
  73. package/lib/models/ApiKey.js +4 -18
  74. package/lib/models/ApiRequestLog.js +3 -17
  75. package/lib/models/App.js +4 -18
  76. package/lib/models/As2IncomingMessage.js +6 -20
  77. package/lib/models/As2OutgoingMessage.js +6 -20
  78. package/lib/models/As2Partner.js +3 -17
  79. package/lib/models/As2Station.js +3 -17
  80. package/lib/models/Automation.js +87 -124
  81. package/lib/models/AutomationLog.js +3 -17
  82. package/lib/models/AutomationRun.js +6 -20
  83. package/lib/models/BandwidthSnapshot.js +4 -18
  84. package/lib/models/Behavior.js +10 -45
  85. package/lib/models/Bundle.js +4 -18
  86. package/lib/models/BundleAction.js +8 -22
  87. package/lib/models/BundleDownload.js +8 -22
  88. package/lib/models/BundleNotification.js +4 -18
  89. package/lib/models/BundleRecipient.js +6 -20
  90. package/lib/models/BundleRegistration.js +5 -19
  91. package/lib/models/Clickwrap.js +3 -17
  92. package/lib/models/DnsRecord.js +3 -17
  93. package/lib/models/EmailIncomingMessage.js +4 -18
  94. package/lib/models/EmailLog.js +3 -17
  95. package/lib/models/ExavaultApiRequestLog.js +3 -17
  96. package/lib/models/ExternalEvent.js +4 -18
  97. package/lib/models/FileComment.js +5 -19
  98. package/lib/models/FileMigrationLog.js +3 -17
  99. package/lib/models/Folder.js +13 -20
  100. package/lib/models/FormFieldSet.js +3 -17
  101. package/lib/models/FtpActionLog.js +3 -17
  102. package/lib/models/GpgKey.js +4 -18
  103. package/lib/models/Group.js +6 -20
  104. package/lib/models/GroupUser.js +5 -19
  105. package/lib/models/History.js +26 -96
  106. package/lib/models/HistoryExportResult.js +5 -19
  107. package/lib/models/InboxRecipient.js +6 -20
  108. package/lib/models/InboxRegistration.js +5 -19
  109. package/lib/models/InboxUpload.js +8 -22
  110. package/lib/models/Invoice.js +3 -17
  111. package/lib/models/IpAddress.js +12 -68
  112. package/lib/models/Lock.js +5 -19
  113. package/lib/models/Message.js +5 -19
  114. package/lib/models/MessageComment.js +5 -19
  115. package/lib/models/MessageCommentReaction.js +5 -19
  116. package/lib/models/MessageReaction.js +5 -19
  117. package/lib/models/Notification.js +12 -33
  118. package/lib/models/OutboundConnectionLog.js +3 -17
  119. package/lib/models/Payment.js +3 -17
  120. package/lib/models/Permission.js +10 -24
  121. package/lib/models/Priority.js +5 -19
  122. package/lib/models/Project.js +3 -17
  123. package/lib/models/PublicHostingRequestLog.js +3 -17
  124. package/lib/models/PublicKey.js +3 -17
  125. package/lib/models/RemoteBandwidthSnapshot.js +4 -18
  126. package/lib/models/RemoteServer.js +3 -17
  127. package/lib/models/Request.js +12 -40
  128. package/lib/models/SettingsChange.js +4 -18
  129. package/lib/models/SftpActionLog.js +3 -17
  130. package/lib/models/SftpHostKey.js +3 -17
  131. package/lib/models/ShareGroup.js +3 -17
  132. package/lib/models/Snapshot.js +3 -17
  133. package/lib/models/SsoStrategy.js +3 -17
  134. package/lib/models/SyncLog.js +3 -17
  135. package/lib/models/UsageDailySnapshot.js +4 -18
  136. package/lib/models/UsageSnapshot.js +3 -17
  137. package/lib/models/User.js +8 -22
  138. package/lib/models/UserCipherUse.js +3 -17
  139. package/lib/models/UserRequest.js +3 -17
  140. package/lib/models/WebDavActionLog.js +3 -17
  141. package/package.json +1 -1
  142. package/src/Files.js +1 -1
  143. package/src/models/ActionNotificationExportResult.js +0 -10
  144. package/src/models/ApiKey.js +1 -11
  145. package/src/models/ApiRequestLog.js +0 -10
  146. package/src/models/App.js +1 -11
  147. package/src/models/As2IncomingMessage.js +1 -11
  148. package/src/models/As2OutgoingMessage.js +1 -11
  149. package/src/models/As2Partner.js +0 -10
  150. package/src/models/As2Station.js +0 -10
  151. package/src/models/Automation.js +1 -30
  152. package/src/models/AutomationLog.js +0 -10
  153. package/src/models/AutomationRun.js +1 -11
  154. package/src/models/BandwidthSnapshot.js +1 -11
  155. package/src/models/Behavior.js +2 -27
  156. package/src/models/Bundle.js +1 -11
  157. package/src/models/BundleAction.js +1 -11
  158. package/src/models/BundleDownload.js +1 -11
  159. package/src/models/BundleNotification.js +1 -11
  160. package/src/models/BundleRecipient.js +1 -11
  161. package/src/models/BundleRegistration.js +0 -10
  162. package/src/models/Clickwrap.js +0 -10
  163. package/src/models/DnsRecord.js +0 -10
  164. package/src/models/EmailIncomingMessage.js +1 -11
  165. package/src/models/EmailLog.js +0 -10
  166. package/src/models/ExavaultApiRequestLog.js +0 -10
  167. package/src/models/ExternalEvent.js +1 -11
  168. package/src/models/FileComment.js +0 -10
  169. package/src/models/FileMigrationLog.js +0 -10
  170. package/src/models/Folder.js +0 -5
  171. package/src/models/FormFieldSet.js +0 -10
  172. package/src/models/FtpActionLog.js +0 -10
  173. package/src/models/GpgKey.js +1 -11
  174. package/src/models/Group.js +1 -11
  175. package/src/models/GroupUser.js +0 -10
  176. package/src/models/History.js +5 -55
  177. package/src/models/HistoryExportResult.js +0 -10
  178. package/src/models/InboxRecipient.js +1 -11
  179. package/src/models/InboxRegistration.js +0 -10
  180. package/src/models/InboxUpload.js +1 -11
  181. package/src/models/Invoice.js +0 -10
  182. package/src/models/IpAddress.js +0 -40
  183. package/src/models/Lock.js +0 -10
  184. package/src/models/Message.js +0 -10
  185. package/src/models/MessageComment.js +0 -10
  186. package/src/models/MessageCommentReaction.js +0 -10
  187. package/src/models/MessageReaction.js +0 -10
  188. package/src/models/Notification.js +1 -16
  189. package/src/models/OutboundConnectionLog.js +0 -10
  190. package/src/models/Payment.js +0 -10
  191. package/src/models/Permission.js +1 -11
  192. package/src/models/Priority.js +0 -10
  193. package/src/models/Project.js +0 -10
  194. package/src/models/PublicHostingRequestLog.js +0 -10
  195. package/src/models/PublicKey.js +0 -10
  196. package/src/models/RemoteBandwidthSnapshot.js +1 -11
  197. package/src/models/RemoteServer.js +0 -10
  198. package/src/models/Request.js +2 -22
  199. package/src/models/SettingsChange.js +1 -11
  200. package/src/models/SftpActionLog.js +0 -10
  201. package/src/models/SftpHostKey.js +0 -10
  202. package/src/models/ShareGroup.js +0 -10
  203. package/src/models/Snapshot.js +0 -10
  204. package/src/models/SsoStrategy.js +0 -10
  205. package/src/models/SyncLog.js +0 -10
  206. package/src/models/UsageDailySnapshot.js +1 -11
  207. package/src/models/UsageSnapshot.js +0 -10
  208. package/src/models/User.js +1 -11
  209. package/src/models/UserCipherUse.js +0 -10
  210. package/src/models/UserRequest.js +0 -10
  211. package/src/models/WebDavActionLog.js +0 -10
@@ -264,13 +264,6 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
264
264
  (0, _defineProperty2.default)(this, "setWebhookUrl", function (value) {
265
265
  _this.attributes.webhook_url = value;
266
266
  });
267
- // string
268
- (0, _defineProperty2.default)(this, "getDestination", function () {
269
- return _this.attributes.destination;
270
- });
271
- (0, _defineProperty2.default)(this, "setDestination", function (value) {
272
- _this.attributes.destination = value;
273
- });
274
267
  // Manually run automation
275
268
  (0, _defineProperty2.default)(this, "manualRun", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
276
269
  var params,
@@ -322,7 +315,6 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
322
315
  })));
323
316
  // Parameters:
324
317
  // source - string - Source Path
325
- // destination - string
326
318
  // destinations - array(string) - A list of String destination paths or Hash of folder_path and optional file_path.
327
319
  // destination_replace_from - string - If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
328
320
  // destination_replace_to - string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
@@ -331,7 +323,6 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
331
323
  // sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
332
324
  // user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
333
325
  // group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
334
- // schedule - object
335
326
  // schedule_days_of_week - array(int64) - If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
336
327
  // schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
337
328
  // schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
@@ -382,140 +373,134 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
382
373
  }
383
374
  throw new errors.InvalidParameterError("Bad parameter: source must be of type String, received ".concat((0, _utils.getType)(params.source)));
384
375
  case 10:
385
- if (!(params.destination && !(0, _utils.isString)(params.destination))) {
386
- _context2.next = 12;
387
- break;
388
- }
389
- throw new errors.InvalidParameterError("Bad parameter: destination must be of type String, received ".concat((0, _utils.getType)(params.destination)));
390
- case 12:
391
376
  if (!(params.destinations && !(0, _utils.isArray)(params.destinations))) {
392
- _context2.next = 14;
377
+ _context2.next = 12;
393
378
  break;
394
379
  }
395
380
  throw new errors.InvalidParameterError("Bad parameter: destinations must be of type Array, received ".concat((0, _utils.getType)(params.destinations)));
396
- case 14:
381
+ case 12:
397
382
  if (!(params.destination_replace_from && !(0, _utils.isString)(params.destination_replace_from))) {
398
- _context2.next = 16;
383
+ _context2.next = 14;
399
384
  break;
400
385
  }
401
386
  throw new errors.InvalidParameterError("Bad parameter: destination_replace_from must be of type String, received ".concat((0, _utils.getType)(params.destination_replace_from)));
402
- case 16:
387
+ case 14:
403
388
  if (!(params.destination_replace_to && !(0, _utils.isString)(params.destination_replace_to))) {
404
- _context2.next = 18;
389
+ _context2.next = 16;
405
390
  break;
406
391
  }
407
392
  throw new errors.InvalidParameterError("Bad parameter: destination_replace_to must be of type String, received ".concat((0, _utils.getType)(params.destination_replace_to)));
408
- case 18:
393
+ case 16:
409
394
  if (!(params.interval && !(0, _utils.isString)(params.interval))) {
410
- _context2.next = 20;
395
+ _context2.next = 18;
411
396
  break;
412
397
  }
413
398
  throw new errors.InvalidParameterError("Bad parameter: interval must be of type String, received ".concat((0, _utils.getType)(params.interval)));
414
- case 20:
399
+ case 18:
415
400
  if (!(params.path && !(0, _utils.isString)(params.path))) {
416
- _context2.next = 22;
401
+ _context2.next = 20;
417
402
  break;
418
403
  }
419
404
  throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
420
- case 22:
405
+ case 20:
421
406
  if (!(params.sync_ids && !(0, _utils.isString)(params.sync_ids))) {
422
- _context2.next = 24;
407
+ _context2.next = 22;
423
408
  break;
424
409
  }
425
410
  throw new errors.InvalidParameterError("Bad parameter: sync_ids must be of type String, received ".concat((0, _utils.getType)(params.sync_ids)));
426
- case 24:
411
+ case 22:
427
412
  if (!(params.user_ids && !(0, _utils.isString)(params.user_ids))) {
428
- _context2.next = 26;
413
+ _context2.next = 24;
429
414
  break;
430
415
  }
431
416
  throw new errors.InvalidParameterError("Bad parameter: user_ids must be of type String, received ".concat((0, _utils.getType)(params.user_ids)));
432
- case 26:
417
+ case 24:
433
418
  if (!(params.group_ids && !(0, _utils.isString)(params.group_ids))) {
434
- _context2.next = 28;
419
+ _context2.next = 26;
435
420
  break;
436
421
  }
437
422
  throw new errors.InvalidParameterError("Bad parameter: group_ids must be of type String, received ".concat((0, _utils.getType)(params.group_ids)));
438
- case 28:
423
+ case 26:
439
424
  if (!(params.schedule_days_of_week && !(0, _utils.isArray)(params.schedule_days_of_week))) {
440
- _context2.next = 30;
425
+ _context2.next = 28;
441
426
  break;
442
427
  }
443
428
  throw new errors.InvalidParameterError("Bad parameter: schedule_days_of_week must be of type Array, received ".concat((0, _utils.getType)(params.schedule_days_of_week)));
444
- case 30:
429
+ case 28:
445
430
  if (!(params.schedule_times_of_day && !(0, _utils.isArray)(params.schedule_times_of_day))) {
446
- _context2.next = 32;
431
+ _context2.next = 30;
447
432
  break;
448
433
  }
449
434
  throw new errors.InvalidParameterError("Bad parameter: schedule_times_of_day must be of type Array, received ".concat((0, _utils.getType)(params.schedule_times_of_day)));
450
- case 32:
435
+ case 30:
451
436
  if (!(params.schedule_time_zone && !(0, _utils.isString)(params.schedule_time_zone))) {
452
- _context2.next = 34;
437
+ _context2.next = 32;
453
438
  break;
454
439
  }
455
440
  throw new errors.InvalidParameterError("Bad parameter: schedule_time_zone must be of type String, received ".concat((0, _utils.getType)(params.schedule_time_zone)));
456
- case 34:
441
+ case 32:
457
442
  if (!(params.description && !(0, _utils.isString)(params.description))) {
458
- _context2.next = 36;
443
+ _context2.next = 34;
459
444
  break;
460
445
  }
461
446
  throw new errors.InvalidParameterError("Bad parameter: description must be of type String, received ".concat((0, _utils.getType)(params.description)));
462
- case 36:
447
+ case 34:
463
448
  if (!(params.name && !(0, _utils.isString)(params.name))) {
464
- _context2.next = 38;
449
+ _context2.next = 36;
465
450
  break;
466
451
  }
467
452
  throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
468
- case 38:
453
+ case 36:
469
454
  if (!(params.path_time_zone && !(0, _utils.isString)(params.path_time_zone))) {
470
- _context2.next = 40;
455
+ _context2.next = 38;
471
456
  break;
472
457
  }
473
458
  throw new errors.InvalidParameterError("Bad parameter: path_time_zone must be of type String, received ".concat((0, _utils.getType)(params.path_time_zone)));
474
- case 40:
459
+ case 38:
475
460
  if (!(params.trigger && !(0, _utils.isString)(params.trigger))) {
476
- _context2.next = 42;
461
+ _context2.next = 40;
477
462
  break;
478
463
  }
479
464
  throw new errors.InvalidParameterError("Bad parameter: trigger must be of type String, received ".concat((0, _utils.getType)(params.trigger)));
480
- case 42:
465
+ case 40:
481
466
  if (!(params.trigger_actions && !(0, _utils.isArray)(params.trigger_actions))) {
482
- _context2.next = 44;
467
+ _context2.next = 42;
483
468
  break;
484
469
  }
485
470
  throw new errors.InvalidParameterError("Bad parameter: trigger_actions must be of type Array, received ".concat((0, _utils.getType)(params.trigger_actions)));
486
- case 44:
471
+ case 42:
487
472
  if (!(params.recurring_day && !(0, _utils.isInt)(params.recurring_day))) {
488
- _context2.next = 46;
473
+ _context2.next = 44;
489
474
  break;
490
475
  }
491
476
  throw new errors.InvalidParameterError("Bad parameter: recurring_day must be of type Int, received ".concat((0, _utils.getType)(params.recurring_day)));
492
- case 46:
477
+ case 44:
493
478
  if (!(params.automation && !(0, _utils.isString)(params.automation))) {
494
- _context2.next = 48;
479
+ _context2.next = 46;
495
480
  break;
496
481
  }
497
482
  throw new errors.InvalidParameterError("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(params.automation)));
498
- case 48:
483
+ case 46:
499
484
  if (params.id) {
500
- _context2.next = 54;
485
+ _context2.next = 52;
501
486
  break;
502
487
  }
503
488
  if (!_this.attributes.id) {
504
- _context2.next = 53;
489
+ _context2.next = 51;
505
490
  break;
506
491
  }
507
492
  params.id = _this.id;
508
- _context2.next = 54;
493
+ _context2.next = 52;
509
494
  break;
510
- case 53:
495
+ case 51:
511
496
  throw new errors.MissingParameterError('Parameter missing: id');
512
- case 54:
513
- _context2.next = 56;
497
+ case 52:
498
+ _context2.next = 54;
514
499
  return _Api.default.sendRequest("/automations/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
515
- case 56:
500
+ case 54:
516
501
  response = _context2.sent;
517
502
  return _context2.abrupt("return", new Automation(response === null || response === void 0 ? void 0 : response.data, _this.options));
518
- case 58:
503
+ case 56:
519
504
  case "end":
520
505
  return _context2.stop();
521
506
  }
@@ -618,9 +603,7 @@ _Automation = Automation;
618
603
  // Parameters:
619
604
  // 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.
620
605
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
621
- // action - string
622
- // page - int64
623
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[automation]=desc`). Valid fields are `automation`, `disabled`, `last_modified_at` or `name`.
606
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `automation`, `disabled`, `last_modified_at` or `name`.
624
607
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `disabled`, `last_modified_at` or `automation`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
625
608
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `last_modified_at`.
626
609
  // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `last_modified_at`.
@@ -650,26 +633,14 @@ _Automation = Automation;
650
633
  }
651
634
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
652
635
  case 6:
653
- if (!(params.action && !(0, _utils.isString)(params.action))) {
654
- _context5.next = 8;
655
- break;
656
- }
657
- throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
658
- case 8:
659
- if (!(params.page && !(0, _utils.isInt)(params.page))) {
660
- _context5.next = 10;
661
- break;
662
- }
663
- throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
664
- case 10:
665
- _context5.next = 12;
636
+ _context5.next = 8;
666
637
  return _Api.default.sendRequest('/automations', 'GET', params, options);
667
- case 12:
638
+ case 8:
668
639
  response = _context5.sent;
669
640
  return _context5.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
670
641
  return new _Automation(obj, options);
671
642
  })) || []);
672
- case 14:
643
+ case 10:
673
644
  case "end":
674
645
  return _context5.stop();
675
646
  }
@@ -734,7 +705,6 @@ _Automation = Automation;
734
705
  });
735
706
  // Parameters:
736
707
  // source - string - Source Path
737
- // destination - string
738
708
  // destinations - array(string) - A list of String destination paths or Hash of folder_path and optional file_path.
739
709
  // destination_replace_from - string - If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
740
710
  // destination_replace_to - string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
@@ -743,7 +713,6 @@ _Automation = Automation;
743
713
  // sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
744
714
  // user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
745
715
  // group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
746
- // schedule - object
747
716
  // schedule_days_of_week - array(int64) - If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
748
717
  // schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
749
718
  // schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
@@ -783,126 +752,120 @@ _Automation = Automation;
783
752
  }
784
753
  throw new errors.InvalidParameterError("Bad parameter: source must be of type String, received ".concat((0, _utils.getType)(params.source)));
785
754
  case 6:
786
- if (!(params.destination && !(0, _utils.isString)(params.destination))) {
787
- _context7.next = 8;
788
- break;
789
- }
790
- throw new errors.InvalidParameterError("Bad parameter: destination must be of type String, received ".concat((0, _utils.getType)(params.destination)));
791
- case 8:
792
755
  if (!(params.destinations && !(0, _utils.isArray)(params.destinations))) {
793
- _context7.next = 10;
756
+ _context7.next = 8;
794
757
  break;
795
758
  }
796
759
  throw new errors.InvalidParameterError("Bad parameter: destinations must be of type Array, received ".concat((0, _utils.getType)(params.destinations)));
797
- case 10:
760
+ case 8:
798
761
  if (!(params.destination_replace_from && !(0, _utils.isString)(params.destination_replace_from))) {
799
- _context7.next = 12;
762
+ _context7.next = 10;
800
763
  break;
801
764
  }
802
765
  throw new errors.InvalidParameterError("Bad parameter: destination_replace_from must be of type String, received ".concat((0, _utils.getType)(params.destination_replace_from)));
803
- case 12:
766
+ case 10:
804
767
  if (!(params.destination_replace_to && !(0, _utils.isString)(params.destination_replace_to))) {
805
- _context7.next = 14;
768
+ _context7.next = 12;
806
769
  break;
807
770
  }
808
771
  throw new errors.InvalidParameterError("Bad parameter: destination_replace_to must be of type String, received ".concat((0, _utils.getType)(params.destination_replace_to)));
809
- case 14:
772
+ case 12:
810
773
  if (!(params.interval && !(0, _utils.isString)(params.interval))) {
811
- _context7.next = 16;
774
+ _context7.next = 14;
812
775
  break;
813
776
  }
814
777
  throw new errors.InvalidParameterError("Bad parameter: interval must be of type String, received ".concat((0, _utils.getType)(params.interval)));
815
- case 16:
778
+ case 14:
816
779
  if (!(params.path && !(0, _utils.isString)(params.path))) {
817
- _context7.next = 18;
780
+ _context7.next = 16;
818
781
  break;
819
782
  }
820
783
  throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
821
- case 18:
784
+ case 16:
822
785
  if (!(params.sync_ids && !(0, _utils.isString)(params.sync_ids))) {
823
- _context7.next = 20;
786
+ _context7.next = 18;
824
787
  break;
825
788
  }
826
789
  throw new errors.InvalidParameterError("Bad parameter: sync_ids must be of type String, received ".concat((0, _utils.getType)(params.sync_ids)));
827
- case 20:
790
+ case 18:
828
791
  if (!(params.user_ids && !(0, _utils.isString)(params.user_ids))) {
829
- _context7.next = 22;
792
+ _context7.next = 20;
830
793
  break;
831
794
  }
832
795
  throw new errors.InvalidParameterError("Bad parameter: user_ids must be of type String, received ".concat((0, _utils.getType)(params.user_ids)));
833
- case 22:
796
+ case 20:
834
797
  if (!(params.group_ids && !(0, _utils.isString)(params.group_ids))) {
835
- _context7.next = 24;
798
+ _context7.next = 22;
836
799
  break;
837
800
  }
838
801
  throw new errors.InvalidParameterError("Bad parameter: group_ids must be of type String, received ".concat((0, _utils.getType)(params.group_ids)));
839
- case 24:
802
+ case 22:
840
803
  if (!(params.schedule_days_of_week && !(0, _utils.isArray)(params.schedule_days_of_week))) {
841
- _context7.next = 26;
804
+ _context7.next = 24;
842
805
  break;
843
806
  }
844
807
  throw new errors.InvalidParameterError("Bad parameter: schedule_days_of_week must be of type Array, received ".concat((0, _utils.getType)(params.schedule_days_of_week)));
845
- case 26:
808
+ case 24:
846
809
  if (!(params.schedule_times_of_day && !(0, _utils.isArray)(params.schedule_times_of_day))) {
847
- _context7.next = 28;
810
+ _context7.next = 26;
848
811
  break;
849
812
  }
850
813
  throw new errors.InvalidParameterError("Bad parameter: schedule_times_of_day must be of type Array, received ".concat((0, _utils.getType)(params.schedule_times_of_day)));
851
- case 28:
814
+ case 26:
852
815
  if (!(params.schedule_time_zone && !(0, _utils.isString)(params.schedule_time_zone))) {
853
- _context7.next = 30;
816
+ _context7.next = 28;
854
817
  break;
855
818
  }
856
819
  throw new errors.InvalidParameterError("Bad parameter: schedule_time_zone must be of type String, received ".concat((0, _utils.getType)(params.schedule_time_zone)));
857
- case 30:
820
+ case 28:
858
821
  if (!(params.description && !(0, _utils.isString)(params.description))) {
859
- _context7.next = 32;
822
+ _context7.next = 30;
860
823
  break;
861
824
  }
862
825
  throw new errors.InvalidParameterError("Bad parameter: description must be of type String, received ".concat((0, _utils.getType)(params.description)));
863
- case 32:
826
+ case 30:
864
827
  if (!(params.name && !(0, _utils.isString)(params.name))) {
865
- _context7.next = 34;
828
+ _context7.next = 32;
866
829
  break;
867
830
  }
868
831
  throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
869
- case 34:
832
+ case 32:
870
833
  if (!(params.path_time_zone && !(0, _utils.isString)(params.path_time_zone))) {
871
- _context7.next = 36;
834
+ _context7.next = 34;
872
835
  break;
873
836
  }
874
837
  throw new errors.InvalidParameterError("Bad parameter: path_time_zone must be of type String, received ".concat((0, _utils.getType)(params.path_time_zone)));
875
- case 36:
838
+ case 34:
876
839
  if (!(params.trigger && !(0, _utils.isString)(params.trigger))) {
877
- _context7.next = 38;
840
+ _context7.next = 36;
878
841
  break;
879
842
  }
880
843
  throw new errors.InvalidParameterError("Bad parameter: trigger must be of type String, received ".concat((0, _utils.getType)(params.trigger)));
881
- case 38:
844
+ case 36:
882
845
  if (!(params.trigger_actions && !(0, _utils.isArray)(params.trigger_actions))) {
883
- _context7.next = 40;
846
+ _context7.next = 38;
884
847
  break;
885
848
  }
886
849
  throw new errors.InvalidParameterError("Bad parameter: trigger_actions must be of type Array, received ".concat((0, _utils.getType)(params.trigger_actions)));
887
- case 40:
850
+ case 38:
888
851
  if (!(params.recurring_day && !(0, _utils.isInt)(params.recurring_day))) {
889
- _context7.next = 42;
852
+ _context7.next = 40;
890
853
  break;
891
854
  }
892
855
  throw new errors.InvalidParameterError("Bad parameter: recurring_day must be of type Int, received ".concat((0, _utils.getType)(params.recurring_day)));
893
- case 42:
856
+ case 40:
894
857
  if (!(params.automation && !(0, _utils.isString)(params.automation))) {
895
- _context7.next = 44;
858
+ _context7.next = 42;
896
859
  break;
897
860
  }
898
861
  throw new errors.InvalidParameterError("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(params.automation)));
899
- case 44:
900
- _context7.next = 46;
862
+ case 42:
863
+ _context7.next = 44;
901
864
  return _Api.default.sendRequest('/automations', 'POST', params, options);
902
- case 46:
865
+ case 44:
903
866
  response = _context7.sent;
904
867
  return _context7.abrupt("return", new _Automation(response === null || response === void 0 ? void 0 : response.data, options));
905
- case 48:
868
+ case 46:
906
869
  case "end":
907
870
  return _context7.stop();
908
871
  }
@@ -86,8 +86,6 @@ _AutomationLog = AutomationLog;
86
86
  // Parameters:
87
87
  // 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.
88
88
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
89
- // action - string
90
- // page - int64
91
89
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `start_date`, `end_date`, `automation_id`, `automation_run_id`, `operation`, `path` or `status`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ automation_id ]`, `[ automation_run_id ]`, `[ operation ]`, `[ path ]`, `[ status ]`, `[ start_date, end_date ]`, `[ start_date, automation_id ]`, `[ start_date, automation_run_id ]`, `[ start_date, operation ]`, `[ start_date, path ]`, `[ start_date, status ]`, `[ end_date, automation_id ]`, `[ end_date, automation_run_id ]`, `[ end_date, operation ]`, `[ end_date, path ]`, `[ end_date, status ]`, `[ automation_id, automation_run_id ]`, `[ automation_id, operation ]`, `[ automation_id, path ]`, `[ automation_id, status ]`, `[ automation_run_id, operation ]`, `[ automation_run_id, path ]`, `[ automation_run_id, status ]`, `[ operation, path ]`, `[ operation, status ]`, `[ path, status ]`, `[ start_date, end_date, automation_id ]`, `[ start_date, end_date, automation_run_id ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, status ]`, `[ start_date, automation_id, automation_run_id ]`, `[ start_date, automation_id, operation ]`, `[ start_date, automation_id, path ]`, `[ start_date, automation_id, status ]`, `[ start_date, automation_run_id, operation ]`, `[ start_date, automation_run_id, path ]`, `[ start_date, automation_run_id, status ]`, `[ start_date, operation, path ]`, `[ start_date, operation, status ]`, `[ start_date, path, status ]`, `[ end_date, automation_id, automation_run_id ]`, `[ end_date, automation_id, operation ]`, `[ end_date, automation_id, path ]`, `[ end_date, automation_id, status ]`, `[ end_date, automation_run_id, operation ]`, `[ end_date, automation_run_id, path ]`, `[ end_date, automation_run_id, status ]`, `[ end_date, operation, path ]`, `[ end_date, operation, status ]`, `[ end_date, path, status ]`, `[ automation_id, automation_run_id, operation ]`, `[ automation_id, automation_run_id, path ]`, `[ automation_id, automation_run_id, status ]`, `[ automation_id, operation, path ]`, `[ automation_id, operation, status ]`, `[ automation_id, path, status ]`, `[ automation_run_id, operation, path ]`, `[ automation_run_id, operation, status ]`, `[ automation_run_id, path, status ]`, `[ operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id ]`, `[ start_date, end_date, automation_id, operation ]`, `[ start_date, end_date, automation_id, path ]`, `[ start_date, end_date, automation_id, status ]`, `[ start_date, end_date, automation_run_id, operation ]`, `[ start_date, end_date, automation_run_id, path ]`, `[ start_date, end_date, automation_run_id, status ]`, `[ start_date, end_date, operation, path ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, path, status ]`, `[ start_date, automation_id, automation_run_id, operation ]`, `[ start_date, automation_id, automation_run_id, path ]`, `[ start_date, automation_id, automation_run_id, status ]`, `[ start_date, automation_id, operation, path ]`, `[ start_date, automation_id, operation, status ]`, `[ start_date, automation_id, path, status ]`, `[ start_date, automation_run_id, operation, path ]`, `[ start_date, automation_run_id, operation, status ]`, `[ start_date, automation_run_id, path, status ]`, `[ start_date, operation, path, status ]`, `[ end_date, automation_id, automation_run_id, operation ]`, `[ end_date, automation_id, automation_run_id, path ]`, `[ end_date, automation_id, automation_run_id, status ]`, `[ end_date, automation_id, operation, path ]`, `[ end_date, automation_id, operation, status ]`, `[ end_date, automation_id, path, status ]`, `[ end_date, automation_run_id, operation, path ]`, `[ end_date, automation_run_id, operation, status ]`, `[ end_date, automation_run_id, path, status ]`, `[ end_date, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path ]`, `[ automation_id, automation_run_id, operation, status ]`, `[ automation_id, automation_run_id, path, status ]`, `[ automation_id, operation, path, status ]`, `[ automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation ]`, `[ start_date, end_date, automation_id, automation_run_id, path ]`, `[ start_date, end_date, automation_id, automation_run_id, status ]`, `[ start_date, end_date, automation_id, operation, path ]`, `[ start_date, end_date, automation_id, operation, status ]`, `[ start_date, end_date, automation_id, path, status ]`, `[ start_date, end_date, automation_run_id, operation, path ]`, `[ start_date, end_date, automation_run_id, operation, status ]`, `[ start_date, end_date, automation_run_id, path, status ]`, `[ start_date, end_date, operation, path, status ]`, `[ start_date, automation_id, automation_run_id, operation, path ]`, `[ start_date, automation_id, automation_run_id, operation, status ]`, `[ start_date, automation_id, automation_run_id, path, status ]`, `[ start_date, automation_id, operation, path, status ]`, `[ start_date, automation_run_id, operation, path, status ]`, `[ end_date, automation_id, automation_run_id, operation, path ]`, `[ end_date, automation_id, automation_run_id, operation, status ]`, `[ end_date, automation_id, automation_run_id, path, status ]`, `[ end_date, automation_id, operation, path, status ]`, `[ end_date, automation_run_id, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, path ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, status ]`, `[ start_date, end_date, automation_id, automation_run_id, path, status ]`, `[ start_date, end_date, automation_id, operation, path, status ]`, `[ start_date, end_date, automation_run_id, operation, path, status ]`, `[ start_date, automation_id, automation_run_id, operation, path, status ]` or `[ end_date, automation_id, automation_run_id, operation, path, status ]`.
92
90
  // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `operation`, `path` or `status`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ automation_id ]`, `[ automation_run_id ]`, `[ operation ]`, `[ path ]`, `[ status ]`, `[ start_date, end_date ]`, `[ start_date, automation_id ]`, `[ start_date, automation_run_id ]`, `[ start_date, operation ]`, `[ start_date, path ]`, `[ start_date, status ]`, `[ end_date, automation_id ]`, `[ end_date, automation_run_id ]`, `[ end_date, operation ]`, `[ end_date, path ]`, `[ end_date, status ]`, `[ automation_id, automation_run_id ]`, `[ automation_id, operation ]`, `[ automation_id, path ]`, `[ automation_id, status ]`, `[ automation_run_id, operation ]`, `[ automation_run_id, path ]`, `[ automation_run_id, status ]`, `[ operation, path ]`, `[ operation, status ]`, `[ path, status ]`, `[ start_date, end_date, automation_id ]`, `[ start_date, end_date, automation_run_id ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, status ]`, `[ start_date, automation_id, automation_run_id ]`, `[ start_date, automation_id, operation ]`, `[ start_date, automation_id, path ]`, `[ start_date, automation_id, status ]`, `[ start_date, automation_run_id, operation ]`, `[ start_date, automation_run_id, path ]`, `[ start_date, automation_run_id, status ]`, `[ start_date, operation, path ]`, `[ start_date, operation, status ]`, `[ start_date, path, status ]`, `[ end_date, automation_id, automation_run_id ]`, `[ end_date, automation_id, operation ]`, `[ end_date, automation_id, path ]`, `[ end_date, automation_id, status ]`, `[ end_date, automation_run_id, operation ]`, `[ end_date, automation_run_id, path ]`, `[ end_date, automation_run_id, status ]`, `[ end_date, operation, path ]`, `[ end_date, operation, status ]`, `[ end_date, path, status ]`, `[ automation_id, automation_run_id, operation ]`, `[ automation_id, automation_run_id, path ]`, `[ automation_id, automation_run_id, status ]`, `[ automation_id, operation, path ]`, `[ automation_id, operation, status ]`, `[ automation_id, path, status ]`, `[ automation_run_id, operation, path ]`, `[ automation_run_id, operation, status ]`, `[ automation_run_id, path, status ]`, `[ operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id ]`, `[ start_date, end_date, automation_id, operation ]`, `[ start_date, end_date, automation_id, path ]`, `[ start_date, end_date, automation_id, status ]`, `[ start_date, end_date, automation_run_id, operation ]`, `[ start_date, end_date, automation_run_id, path ]`, `[ start_date, end_date, automation_run_id, status ]`, `[ start_date, end_date, operation, path ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, path, status ]`, `[ start_date, automation_id, automation_run_id, operation ]`, `[ start_date, automation_id, automation_run_id, path ]`, `[ start_date, automation_id, automation_run_id, status ]`, `[ start_date, automation_id, operation, path ]`, `[ start_date, automation_id, operation, status ]`, `[ start_date, automation_id, path, status ]`, `[ start_date, automation_run_id, operation, path ]`, `[ start_date, automation_run_id, operation, status ]`, `[ start_date, automation_run_id, path, status ]`, `[ start_date, operation, path, status ]`, `[ end_date, automation_id, automation_run_id, operation ]`, `[ end_date, automation_id, automation_run_id, path ]`, `[ end_date, automation_id, automation_run_id, status ]`, `[ end_date, automation_id, operation, path ]`, `[ end_date, automation_id, operation, status ]`, `[ end_date, automation_id, path, status ]`, `[ end_date, automation_run_id, operation, path ]`, `[ end_date, automation_run_id, operation, status ]`, `[ end_date, automation_run_id, path, status ]`, `[ end_date, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path ]`, `[ automation_id, automation_run_id, operation, status ]`, `[ automation_id, automation_run_id, path, status ]`, `[ automation_id, operation, path, status ]`, `[ automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation ]`, `[ start_date, end_date, automation_id, automation_run_id, path ]`, `[ start_date, end_date, automation_id, automation_run_id, status ]`, `[ start_date, end_date, automation_id, operation, path ]`, `[ start_date, end_date, automation_id, operation, status ]`, `[ start_date, end_date, automation_id, path, status ]`, `[ start_date, end_date, automation_run_id, operation, path ]`, `[ start_date, end_date, automation_run_id, operation, status ]`, `[ start_date, end_date, automation_run_id, path, status ]`, `[ start_date, end_date, operation, path, status ]`, `[ start_date, automation_id, automation_run_id, operation, path ]`, `[ start_date, automation_id, automation_run_id, operation, status ]`, `[ start_date, automation_id, automation_run_id, path, status ]`, `[ start_date, automation_id, operation, path, status ]`, `[ start_date, automation_run_id, operation, path, status ]`, `[ end_date, automation_id, automation_run_id, operation, path ]`, `[ end_date, automation_id, automation_run_id, operation, status ]`, `[ end_date, automation_id, automation_run_id, path, status ]`, `[ end_date, automation_id, operation, path, status ]`, `[ end_date, automation_run_id, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, path ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, status ]`, `[ start_date, end_date, automation_id, automation_run_id, path, status ]`, `[ start_date, end_date, automation_id, operation, path, status ]`, `[ start_date, end_date, automation_run_id, operation, path, status ]`, `[ start_date, automation_id, automation_run_id, operation, path, status ]` or `[ end_date, automation_id, automation_run_id, operation, path, status ]`.
93
91
  (0, _defineProperty2.default)(AutomationLog, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
@@ -113,26 +111,14 @@ _AutomationLog = AutomationLog;
113
111
  }
114
112
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
115
113
  case 6:
116
- if (!(params.action && !(0, _utils.isString)(params.action))) {
117
- _context.next = 8;
118
- break;
119
- }
120
- throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
121
- case 8:
122
- if (!(params.page && !(0, _utils.isInt)(params.page))) {
123
- _context.next = 10;
124
- break;
125
- }
126
- throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
127
- case 10:
128
- _context.next = 12;
114
+ _context.next = 8;
129
115
  return _Api.default.sendRequest('/automation_logs', 'GET', params, options);
130
- case 12:
116
+ case 8:
131
117
  response = _context.sent;
132
118
  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) {
133
119
  return new _AutomationLog(obj, options);
134
120
  })) || []);
135
- case 14:
121
+ case 10:
136
122
  case "end":
137
123
  return _context.stop();
138
124
  }
@@ -86,9 +86,7 @@ _AutomationRun = AutomationRun;
86
86
  // Parameters:
87
87
  // 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.
88
88
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
89
- // action - string
90
- // page - int64
91
- // 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`.
89
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `automation_id`, `created_at` or `status`.
92
90
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status` and `automation_id`. Valid field combinations are `[ automation_id, status ]`.
93
91
  // automation_id (required) - int64 - ID of the associated Automation.
94
92
  (0, _defineProperty2.default)(AutomationRun, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
@@ -120,32 +118,20 @@ _AutomationRun = AutomationRun;
120
118
  }
121
119
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
122
120
  case 8:
123
- if (!(params.action && !(0, _utils.isString)(params.action))) {
124
- _context.next = 10;
125
- break;
126
- }
127
- throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
128
- case 10:
129
- if (!(params.page && !(0, _utils.isInt)(params.page))) {
130
- _context.next = 12;
131
- break;
132
- }
133
- throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
134
- case 12:
135
121
  if (!(params.automation_id && !(0, _utils.isInt)(params.automation_id))) {
136
- _context.next = 14;
122
+ _context.next = 10;
137
123
  break;
138
124
  }
139
125
  throw new errors.InvalidParameterError("Bad parameter: automation_id must be of type Int, received ".concat((0, _utils.getType)(params.automation_id)));
140
- case 14:
141
- _context.next = 16;
126
+ case 10:
127
+ _context.next = 12;
142
128
  return _Api.default.sendRequest('/automation_runs', 'GET', params, options);
143
- case 16:
129
+ case 12:
144
130
  response = _context.sent;
145
131
  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) {
146
132
  return new _AutomationRun(obj, options);
147
133
  })) || []);
148
- case 18:
134
+ case 14:
149
135
  case "end":
150
136
  return _context.stop();
151
137
  }
@@ -86,9 +86,7 @@ _BandwidthSnapshot = BandwidthSnapshot;
86
86
  // Parameters:
87
87
  // 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.
88
88
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
89
- // action - string
90
- // page - int64
91
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[logged_at]=desc`). Valid fields are `logged_at`.
89
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `logged_at`.
92
90
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `logged_at`.
93
91
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `logged_at`.
94
92
  // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `logged_at`.
@@ -117,26 +115,14 @@ _BandwidthSnapshot = BandwidthSnapshot;
117
115
  }
118
116
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
119
117
  case 6:
120
- if (!(params.action && !(0, _utils.isString)(params.action))) {
121
- _context.next = 8;
122
- break;
123
- }
124
- throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
125
- case 8:
126
- if (!(params.page && !(0, _utils.isInt)(params.page))) {
127
- _context.next = 10;
128
- break;
129
- }
130
- throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
131
- case 10:
132
- _context.next = 12;
118
+ _context.next = 8;
133
119
  return _Api.default.sendRequest('/bandwidth_snapshots', 'GET', params, options);
134
- case 12:
120
+ case 8:
135
121
  response = _context.sent;
136
122
  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) {
137
123
  return new _BandwidthSnapshot(obj, options);
138
124
  })) || []);
139
- case 14:
125
+ case 10:
140
126
  case "end":
141
127
  return _context.stop();
142
128
  }