files.com 1.2.170 → 1.2.171

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 +17 -0
  3. package/docs/models/ApiKey.md +21 -0
  4. package/docs/models/ApiRequestLog.md +14 -0
  5. package/docs/models/App.md +15 -0
  6. package/docs/models/As2IncomingMessage.md +21 -0
  7. package/docs/models/As2OutgoingMessage.md +21 -0
  8. package/docs/models/As2Partner.md +9 -0
  9. package/docs/models/As2Station.md +9 -0
  10. package/docs/models/Automation.md +18 -0
  11. package/docs/models/AutomationLog.md +14 -0
  12. package/docs/models/AutomationRun.md +17 -0
  13. package/docs/models/BandwidthSnapshot.md +18 -0
  14. package/docs/models/Behavior.md +15 -0
  15. package/docs/models/Bundle.md +22 -0
  16. package/docs/models/BundleAction.md +18 -0
  17. package/docs/models/BundleDownload.md +23 -0
  18. package/docs/models/BundleNotification.md +14 -0
  19. package/docs/models/BundleRecipient.md +17 -0
  20. package/docs/models/BundleRegistration.md +15 -0
  21. package/docs/models/Clickwrap.md +9 -0
  22. package/docs/models/DnsRecord.md +9 -0
  23. package/docs/models/EmailIncomingMessage.md +19 -0
  24. package/docs/models/EmailLog.md +14 -0
  25. package/docs/models/ExavaultApiRequestLog.md +14 -0
  26. package/docs/models/Export.md +27 -1
  27. package/docs/models/ExternalEvent.md +19 -0
  28. package/docs/models/FileMigrationLog.md +14 -0
  29. package/docs/models/FormFieldSet.md +15 -0
  30. package/docs/models/FtpActionLog.md +14 -0
  31. package/docs/models/GpgKey.md +16 -0
  32. package/docs/models/Group.md +19 -0
  33. package/docs/models/GroupUser.md +17 -0
  34. package/docs/models/History.md +85 -0
  35. package/docs/models/HistoryExportResult.md +17 -0
  36. package/docs/models/InboxRecipient.md +17 -0
  37. package/docs/models/InboxRegistration.md +15 -0
  38. package/docs/models/InboxUpload.md +19 -1
  39. package/docs/models/Invoice.md +9 -0
  40. package/docs/models/IpAddress.md +36 -0
  41. package/docs/models/Message.md +17 -0
  42. package/docs/models/MessageComment.md +17 -0
  43. package/docs/models/MessageCommentReaction.md +17 -0
  44. package/docs/models/MessageReaction.md +17 -0
  45. package/docs/models/Notification.md +20 -0
  46. package/docs/models/OutboundConnectionLog.md +14 -0
  47. package/docs/models/Payment.md +9 -0
  48. package/docs/models/Permission.md +21 -0
  49. package/docs/models/Priority.md +13 -0
  50. package/docs/models/Project.md +9 -0
  51. package/docs/models/PublicHostingRequestLog.md +14 -0
  52. package/docs/models/PublicKey.md +15 -0
  53. package/docs/models/RemoteBandwidthSnapshot.md +18 -0
  54. package/docs/models/RemoteServer.md +15 -0
  55. package/docs/models/Request.md +17 -0
  56. package/docs/models/SettingsChange.md +14 -0
  57. package/docs/models/SftpActionLog.md +14 -0
  58. package/docs/models/SftpHostKey.md +9 -0
  59. package/docs/models/ShareGroup.md +15 -0
  60. package/docs/models/SiemHttpDestination.md +9 -0
  61. package/docs/models/Snapshot.md +9 -0
  62. package/docs/models/SsoStrategy.md +9 -0
  63. package/docs/models/SyncLog.md +14 -0
  64. package/docs/models/UsageDailySnapshot.md +18 -0
  65. package/docs/models/UsageSnapshot.md +9 -0
  66. package/docs/models/User.md +24 -0
  67. package/docs/models/UserCipherUse.md +15 -0
  68. package/docs/models/UserRequest.md +9 -0
  69. package/docs/models/UserSftpClientUse.md +15 -0
  70. package/docs/models/WebDavActionLog.md +14 -0
  71. package/lib/Files.js +1 -1
  72. package/lib/models/ActionNotificationExportResult.js +47 -0
  73. package/lib/models/ApiKey.js +60 -20
  74. package/lib/models/ApiRequestLog.js +29 -0
  75. package/lib/models/App.js +30 -0
  76. package/lib/models/As2IncomingMessage.js +40 -0
  77. package/lib/models/As2OutgoingMessage.js +40 -0
  78. package/lib/models/As2Partner.js +24 -0
  79. package/lib/models/As2Station.js +24 -0
  80. package/lib/models/Automation.js +33 -0
  81. package/lib/models/AutomationLog.js +29 -0
  82. package/lib/models/AutomationRun.js +42 -0
  83. package/lib/models/BandwidthSnapshot.js +33 -0
  84. package/lib/models/Behavior.js +30 -0
  85. package/lib/models/Bundle.js +41 -0
  86. package/lib/models/BundleAction.js +33 -0
  87. package/lib/models/BundleDownload.js +47 -0
  88. package/lib/models/BundleNotification.js +29 -0
  89. package/lib/models/BundleRecipient.js +42 -0
  90. package/lib/models/BundleRegistration.js +34 -0
  91. package/lib/models/Clickwrap.js +24 -0
  92. package/lib/models/DnsRecord.js +24 -0
  93. package/lib/models/EmailIncomingMessage.js +34 -0
  94. package/lib/models/EmailLog.js +29 -0
  95. package/lib/models/ExavaultApiRequestLog.js +29 -0
  96. package/lib/models/Export.js +146 -34
  97. package/lib/models/ExternalEvent.js +34 -0
  98. package/lib/models/FileMigrationLog.js +29 -0
  99. package/lib/models/FormFieldSet.js +34 -0
  100. package/lib/models/FtpActionLog.js +29 -0
  101. package/lib/models/GpgKey.js +35 -0
  102. package/lib/models/Group.js +38 -0
  103. package/lib/models/GroupUser.js +41 -0
  104. package/lib/models/History.js +322 -0
  105. package/lib/models/HistoryExportResult.js +47 -0
  106. package/lib/models/InboxRecipient.js +42 -0
  107. package/lib/models/InboxRegistration.js +34 -0
  108. package/lib/models/InboxUpload.js +34 -1
  109. package/lib/models/Invoice.js +24 -0
  110. package/lib/models/IpAddress.js +96 -0
  111. package/lib/models/Message.js +47 -0
  112. package/lib/models/MessageComment.js +47 -0
  113. package/lib/models/MessageCommentReaction.js +47 -0
  114. package/lib/models/MessageReaction.js +47 -0
  115. package/lib/models/Notification.js +45 -0
  116. package/lib/models/OutboundConnectionLog.js +29 -0
  117. package/lib/models/Payment.js +24 -0
  118. package/lib/models/Permission.js +52 -0
  119. package/lib/models/Priority.js +52 -0
  120. package/lib/models/Project.js +24 -0
  121. package/lib/models/PublicHostingRequestLog.js +29 -0
  122. package/lib/models/PublicKey.js +34 -0
  123. package/lib/models/RemoteBandwidthSnapshot.js +33 -0
  124. package/lib/models/RemoteServer.js +30 -0
  125. package/lib/models/Request.js +36 -0
  126. package/lib/models/SettingsChange.js +29 -0
  127. package/lib/models/SftpActionLog.js +29 -0
  128. package/lib/models/SftpHostKey.js +24 -0
  129. package/lib/models/ShareGroup.js +34 -0
  130. package/lib/models/SiemHttpDestination.js +49 -25
  131. package/lib/models/Snapshot.js +24 -0
  132. package/lib/models/SsoStrategy.js +24 -0
  133. package/lib/models/SyncLog.js +29 -0
  134. package/lib/models/UsageDailySnapshot.js +33 -0
  135. package/lib/models/UsageSnapshot.js +24 -0
  136. package/lib/models/User.js +49 -0
  137. package/lib/models/UserCipherUse.js +34 -0
  138. package/lib/models/UserRequest.js +24 -0
  139. package/lib/models/UserSftpClientUse.js +34 -0
  140. package/lib/models/WebDavActionLog.js +29 -0
  141. package/package.json +1 -1
  142. package/src/Files.js +1 -1
  143. package/src/models/ActionNotificationExportResult.js +22 -0
  144. package/src/models/ApiKey.js +19 -0
  145. package/src/models/ApiRequestLog.js +10 -0
  146. package/src/models/App.js +11 -0
  147. package/src/models/As2IncomingMessage.js +19 -0
  148. package/src/models/As2OutgoingMessage.js +19 -0
  149. package/src/models/As2Partner.js +7 -0
  150. package/src/models/As2Station.js +7 -0
  151. package/src/models/Automation.js +14 -0
  152. package/src/models/AutomationLog.js +10 -0
  153. package/src/models/AutomationRun.js +19 -0
  154. package/src/models/BandwidthSnapshot.js +14 -0
  155. package/src/models/Behavior.js +11 -0
  156. package/src/models/Bundle.js +20 -0
  157. package/src/models/BundleAction.js +14 -0
  158. package/src/models/BundleDownload.js +24 -0
  159. package/src/models/BundleNotification.js +10 -0
  160. package/src/models/BundleRecipient.js +19 -0
  161. package/src/models/BundleRegistration.js +13 -0
  162. package/src/models/Clickwrap.js +7 -0
  163. package/src/models/DnsRecord.js +7 -0
  164. package/src/models/EmailIncomingMessage.js +15 -0
  165. package/src/models/EmailLog.js +10 -0
  166. package/src/models/ExavaultApiRequestLog.js +10 -0
  167. package/src/models/Export.js +83 -0
  168. package/src/models/ExternalEvent.js +15 -0
  169. package/src/models/FileMigrationLog.js +10 -0
  170. package/src/models/FormFieldSet.js +13 -0
  171. package/src/models/FtpActionLog.js +10 -0
  172. package/src/models/GpgKey.js +14 -0
  173. package/src/models/Group.js +17 -0
  174. package/src/models/GroupUser.js +18 -0
  175. package/src/models/History.js +167 -0
  176. package/src/models/HistoryExportResult.js +22 -0
  177. package/src/models/InboxRecipient.js +19 -0
  178. package/src/models/InboxRegistration.js +13 -0
  179. package/src/models/InboxUpload.js +15 -1
  180. package/src/models/Invoice.js +7 -0
  181. package/src/models/IpAddress.js +28 -0
  182. package/src/models/Message.js +22 -0
  183. package/src/models/MessageComment.js +22 -0
  184. package/src/models/MessageCommentReaction.js +22 -0
  185. package/src/models/MessageReaction.js +22 -0
  186. package/src/models/Notification.js +22 -0
  187. package/src/models/OutboundConnectionLog.js +10 -0
  188. package/src/models/Payment.js +7 -0
  189. package/src/models/Permission.js +27 -0
  190. package/src/models/Priority.js +23 -0
  191. package/src/models/Project.js +7 -0
  192. package/src/models/PublicHostingRequestLog.js +10 -0
  193. package/src/models/PublicKey.js +13 -0
  194. package/src/models/RemoteBandwidthSnapshot.js +14 -0
  195. package/src/models/RemoteServer.js +11 -0
  196. package/src/models/Request.js +15 -0
  197. package/src/models/SettingsChange.js +10 -0
  198. package/src/models/SftpActionLog.js +10 -0
  199. package/src/models/SftpHostKey.js +7 -0
  200. package/src/models/ShareGroup.js +13 -0
  201. package/src/models/SiemHttpDestination.js +7 -0
  202. package/src/models/Snapshot.js +7 -0
  203. package/src/models/SsoStrategy.js +7 -0
  204. package/src/models/SyncLog.js +10 -0
  205. package/src/models/UsageDailySnapshot.js +14 -0
  206. package/src/models/UsageSnapshot.js +7 -0
  207. package/src/models/User.js +26 -0
  208. package/src/models/UserCipherUse.js +13 -0
  209. package/src/models/UserRequest.js +7 -0
  210. package/src/models/UserSftpClientUse.js +13 -0
  211. package/src/models/WebDavActionLog.js +10 -0
@@ -578,6 +578,30 @@ _As2Partner = As2Partner;
578
578
  }
579
579
  }, _callee6);
580
580
  })));
581
+ (0, _defineProperty2.default)(As2Partner, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee7() {
582
+ var _response$data2;
583
+ var options,
584
+ response,
585
+ Export,
586
+ _args7 = arguments;
587
+ return _regenerator.default.wrap(function _callee7$(_context7) {
588
+ while (1) switch (_context7.prev = _context7.next) {
589
+ case 0:
590
+ options = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
591
+ _context7.next = 3;
592
+ return _Api.default.sendRequest('/as2_partners/create_export', 'POST', {}, options);
593
+ case 3:
594
+ response = _context7.sent;
595
+ Export = require('./Export.js').default;
596
+ return _context7.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.map(function (obj) {
597
+ return new Export(obj, options);
598
+ })) || []);
599
+ case 6:
600
+ case "end":
601
+ return _context7.stop();
602
+ }
603
+ }, _callee7);
604
+ })));
581
605
  var _default = exports.default = As2Partner;
582
606
  module.exports = As2Partner;
583
607
  module.exports.default = As2Partner;
@@ -484,6 +484,30 @@ _As2Station = As2Station;
484
484
  }
485
485
  }, _callee6);
486
486
  })));
487
+ (0, _defineProperty2.default)(As2Station, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee7() {
488
+ var _response$data2;
489
+ var options,
490
+ response,
491
+ Export,
492
+ _args7 = arguments;
493
+ return _regenerator.default.wrap(function _callee7$(_context7) {
494
+ while (1) switch (_context7.prev = _context7.next) {
495
+ case 0:
496
+ options = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
497
+ _context7.next = 3;
498
+ return _Api.default.sendRequest('/as2_stations/create_export', 'POST', {}, options);
499
+ case 3:
500
+ response = _context7.sent;
501
+ Export = require('./Export.js').default;
502
+ return _context7.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.map(function (obj) {
503
+ return new Export(obj, options);
504
+ })) || []);
505
+ case 6:
506
+ case "end":
507
+ return _context7.stop();
508
+ }
509
+ }, _callee7);
510
+ })));
487
511
  var _default = exports.default = As2Station;
488
512
  module.exports = As2Station;
489
513
  module.exports.default = As2Station;
@@ -891,6 +891,39 @@ _Automation = Automation;
891
891
  }
892
892
  }, _callee7);
893
893
  })));
894
+ // Parameters:
895
+ // 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`.
896
+ // 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 `[ disabled, last_modified_at ]`, `[ disabled, automation ]`, `[ last_modified_at, automation ]` or `[ disabled, last_modified_at, automation ]`.
897
+ // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `last_modified_at`.
898
+ // 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`.
899
+ // filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `last_modified_at`.
900
+ // filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `last_modified_at`.
901
+ (0, _defineProperty2.default)(Automation, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee8() {
902
+ var _response$data2;
903
+ var params,
904
+ options,
905
+ response,
906
+ Export,
907
+ _args8 = arguments;
908
+ return _regenerator.default.wrap(function _callee8$(_context8) {
909
+ while (1) switch (_context8.prev = _context8.next) {
910
+ case 0:
911
+ params = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
912
+ options = _args8.length > 1 && _args8[1] !== undefined ? _args8[1] : {};
913
+ _context8.next = 4;
914
+ return _Api.default.sendRequest('/automations/create_export', 'POST', params, options);
915
+ case 4:
916
+ response = _context8.sent;
917
+ Export = require('./Export.js').default;
918
+ return _context8.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.map(function (obj) {
919
+ return new Export(obj, options);
920
+ })) || []);
921
+ case 7:
922
+ case "end":
923
+ return _context8.stop();
924
+ }
925
+ }, _callee8);
926
+ })));
894
927
  var _default = exports.default = Automation;
895
928
  module.exports = Automation;
896
929
  module.exports.default = Automation;
@@ -129,6 +129,35 @@ _AutomationLog = AutomationLog;
129
129
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
130
130
  return _AutomationLog.list(params, options);
131
131
  });
132
+ // Parameters:
133
+ // 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 ]`.
134
+ // 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 ]`.
135
+ (0, _defineProperty2.default)(AutomationLog, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
136
+ var _response$data2;
137
+ var params,
138
+ options,
139
+ response,
140
+ Export,
141
+ _args2 = arguments;
142
+ return _regenerator.default.wrap(function _callee2$(_context2) {
143
+ while (1) switch (_context2.prev = _context2.next) {
144
+ case 0:
145
+ params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
146
+ options = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
147
+ _context2.next = 4;
148
+ return _Api.default.sendRequest('/automation_logs/create_export', 'POST', params, options);
149
+ case 4:
150
+ response = _context2.sent;
151
+ Export = require('./Export.js').default;
152
+ return _context2.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.map(function (obj) {
153
+ return new Export(obj, options);
154
+ })) || []);
155
+ case 7:
156
+ case "end":
157
+ return _context2.stop();
158
+ }
159
+ }, _callee2);
160
+ })));
132
161
  var _default = exports.default = AutomationLog;
133
162
  module.exports = AutomationLog;
134
163
  module.exports.default = AutomationLog;
@@ -194,6 +194,48 @@ _AutomationRun = AutomationRun;
194
194
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
195
195
  return _AutomationRun.find(id, params, options);
196
196
  });
197
+ // Parameters:
198
+ // 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`.
199
+ // 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 `[ status, automation_id ]`.
200
+ // automation_id (required) - int64 - ID of the associated Automation.
201
+ (0, _defineProperty2.default)(AutomationRun, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
202
+ var _response$data2;
203
+ var params,
204
+ options,
205
+ response,
206
+ Export,
207
+ _args3 = arguments;
208
+ return _regenerator.default.wrap(function _callee3$(_context3) {
209
+ while (1) switch (_context3.prev = _context3.next) {
210
+ case 0:
211
+ params = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
212
+ options = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {};
213
+ if (params.automation_id) {
214
+ _context3.next = 4;
215
+ break;
216
+ }
217
+ throw new errors.MissingParameterError('Parameter missing: automation_id');
218
+ case 4:
219
+ if (!(params.automation_id && !(0, _utils.isInt)(params.automation_id))) {
220
+ _context3.next = 6;
221
+ break;
222
+ }
223
+ throw new errors.InvalidParameterError("Bad parameter: automation_id must be of type Int, received ".concat((0, _utils.getType)(params.automation_id)));
224
+ case 6:
225
+ _context3.next = 8;
226
+ return _Api.default.sendRequest('/automation_runs/create_export', 'POST', params, options);
227
+ case 8:
228
+ response = _context3.sent;
229
+ Export = require('./Export.js').default;
230
+ return _context3.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.map(function (obj) {
231
+ return new Export(obj, options);
232
+ })) || []);
233
+ case 11:
234
+ case "end":
235
+ return _context3.stop();
236
+ }
237
+ }, _callee3);
238
+ })));
197
239
  var _default = exports.default = AutomationRun;
198
240
  module.exports = AutomationRun;
199
241
  module.exports.default = AutomationRun;
@@ -133,6 +133,39 @@ _BandwidthSnapshot = BandwidthSnapshot;
133
133
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
134
134
  return _BandwidthSnapshot.list(params, options);
135
135
  });
136
+ // Parameters:
137
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `logged_at`.
138
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `logged_at`.
139
+ // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `logged_at`.
140
+ // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `logged_at`.
141
+ // filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `logged_at`.
142
+ // filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `logged_at`.
143
+ (0, _defineProperty2.default)(BandwidthSnapshot, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
144
+ var _response$data2;
145
+ var params,
146
+ options,
147
+ response,
148
+ Export,
149
+ _args2 = arguments;
150
+ return _regenerator.default.wrap(function _callee2$(_context2) {
151
+ while (1) switch (_context2.prev = _context2.next) {
152
+ case 0:
153
+ params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
154
+ options = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
155
+ _context2.next = 4;
156
+ return _Api.default.sendRequest('/bandwidth_snapshots/create_export', 'POST', params, options);
157
+ case 4:
158
+ response = _context2.sent;
159
+ Export = require('./Export.js').default;
160
+ return _context2.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.map(function (obj) {
161
+ return new Export(obj, options);
162
+ })) || []);
163
+ case 7:
164
+ case "end":
165
+ return _context2.stop();
166
+ }
167
+ }, _callee2);
168
+ })));
136
169
  var _default = exports.default = BandwidthSnapshot;
137
170
  module.exports = BandwidthSnapshot;
138
171
  module.exports.default = BandwidthSnapshot;
@@ -575,6 +575,36 @@ _Behavior = Behavior;
575
575
  }
576
576
  }, _callee8);
577
577
  })));
578
+ // Parameters:
579
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
580
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
581
+ // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
582
+ (0, _defineProperty2.default)(Behavior, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee9() {
583
+ var _response$data3;
584
+ var params,
585
+ options,
586
+ response,
587
+ Export,
588
+ _args9 = arguments;
589
+ return _regenerator.default.wrap(function _callee9$(_context9) {
590
+ while (1) switch (_context9.prev = _context9.next) {
591
+ case 0:
592
+ params = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : {};
593
+ options = _args9.length > 1 && _args9[1] !== undefined ? _args9[1] : {};
594
+ _context9.next = 4;
595
+ return _Api.default.sendRequest('/behaviors/create_export', 'POST', params, options);
596
+ case 4:
597
+ response = _context9.sent;
598
+ Export = require('./Export.js').default;
599
+ return _context9.abrupt("return", (response === null || response === void 0 || (_response$data3 = response.data) === null || _response$data3 === void 0 ? void 0 : _response$data3.map(function (obj) {
600
+ return new Export(obj, options);
601
+ })) || []);
602
+ case 7:
603
+ case "end":
604
+ return _context9.stop();
605
+ }
606
+ }, _callee9);
607
+ })));
578
608
  var _default = exports.default = Behavior;
579
609
  module.exports = Behavior;
580
610
  module.exports.default = Behavior;
@@ -940,6 +940,47 @@ _Bundle = Bundle;
940
940
  }
941
941
  }, _callee7);
942
942
  })));
943
+ // Parameters:
944
+ // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
945
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`, `code` or `note`.
946
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `code`, `note` or `created_at`.
947
+ // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
948
+ // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
949
+ // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code` and `note`.
950
+ // filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
951
+ // filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
952
+ (0, _defineProperty2.default)(Bundle, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee8() {
953
+ var _response$data2;
954
+ var params,
955
+ options,
956
+ response,
957
+ Export,
958
+ _args8 = arguments;
959
+ return _regenerator.default.wrap(function _callee8$(_context8) {
960
+ while (1) switch (_context8.prev = _context8.next) {
961
+ case 0:
962
+ params = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
963
+ options = _args8.length > 1 && _args8[1] !== undefined ? _args8[1] : {};
964
+ if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
965
+ _context8.next = 4;
966
+ break;
967
+ }
968
+ throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
969
+ case 4:
970
+ _context8.next = 6;
971
+ return _Api.default.sendRequest('/bundles/create_export', 'POST', params, options);
972
+ case 6:
973
+ response = _context8.sent;
974
+ Export = require('./Export.js').default;
975
+ return _context8.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.map(function (obj) {
976
+ return new Export(obj, options);
977
+ })) || []);
978
+ case 9:
979
+ case "end":
980
+ return _context8.stop();
981
+ }
982
+ }, _callee8);
983
+ })));
943
984
  var _default = exports.default = Bundle;
944
985
  module.exports = Bundle;
945
986
  module.exports.default = Bundle;
@@ -121,6 +121,39 @@ _BundleAction = BundleAction;
121
121
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
122
122
  return _BundleAction.list(params, options);
123
123
  });
124
+ // Parameters:
125
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
126
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `bundle_id` or `bundle_registration_id`. Valid field combinations are `[ created_at, bundle_id ]`, `[ created_at, bundle_registration_id ]`, `[ bundle_id, bundle_registration_id ]` or `[ created_at, bundle_id, bundle_registration_id ]`.
127
+ // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
128
+ // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
129
+ // filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
130
+ // filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
131
+ (0, _defineProperty2.default)(BundleAction, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
132
+ var _response$data2;
133
+ var params,
134
+ options,
135
+ response,
136
+ Export,
137
+ _args2 = arguments;
138
+ return _regenerator.default.wrap(function _callee2$(_context2) {
139
+ while (1) switch (_context2.prev = _context2.next) {
140
+ case 0:
141
+ params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
142
+ options = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
143
+ _context2.next = 4;
144
+ return _Api.default.sendRequest('/bundle_actions/create_export', 'POST', params, options);
145
+ case 4:
146
+ response = _context2.sent;
147
+ Export = require('./Export.js').default;
148
+ return _context2.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.map(function (obj) {
149
+ return new Export(obj, options);
150
+ })) || []);
151
+ case 7:
152
+ case "end":
153
+ return _context2.stop();
154
+ }
155
+ }, _callee2);
156
+ })));
124
157
  var _default = exports.default = BundleAction;
125
158
  module.exports = BundleAction;
126
159
  module.exports.default = BundleAction;
@@ -127,6 +127,53 @@ _BundleDownload = BundleDownload;
127
127
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
128
128
  return _BundleDownload.list(params, options);
129
129
  });
130
+ // Parameters:
131
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
132
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
133
+ // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
134
+ // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
135
+ // filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
136
+ // filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
137
+ // bundle_id - int64 - Bundle ID
138
+ // bundle_registration_id - int64 - BundleRegistration ID
139
+ (0, _defineProperty2.default)(BundleDownload, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
140
+ var _response$data2;
141
+ var params,
142
+ options,
143
+ response,
144
+ Export,
145
+ _args2 = arguments;
146
+ return _regenerator.default.wrap(function _callee2$(_context2) {
147
+ while (1) switch (_context2.prev = _context2.next) {
148
+ case 0:
149
+ params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
150
+ options = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
151
+ if (!(params.bundle_id && !(0, _utils.isInt)(params.bundle_id))) {
152
+ _context2.next = 4;
153
+ break;
154
+ }
155
+ throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params.bundle_id)));
156
+ case 4:
157
+ if (!(params.bundle_registration_id && !(0, _utils.isInt)(params.bundle_registration_id))) {
158
+ _context2.next = 6;
159
+ break;
160
+ }
161
+ throw new errors.InvalidParameterError("Bad parameter: bundle_registration_id must be of type Int, received ".concat((0, _utils.getType)(params.bundle_registration_id)));
162
+ case 6:
163
+ _context2.next = 8;
164
+ return _Api.default.sendRequest('/bundle_downloads/create_export', 'POST', params, options);
165
+ case 8:
166
+ response = _context2.sent;
167
+ Export = require('./Export.js').default;
168
+ return _context2.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.map(function (obj) {
169
+ return new Export(obj, options);
170
+ })) || []);
171
+ case 11:
172
+ case "end":
173
+ return _context2.stop();
174
+ }
175
+ }, _callee2);
176
+ })));
130
177
  var _default = exports.default = BundleDownload;
131
178
  module.exports = BundleDownload;
132
179
  module.exports.default = BundleDownload;
@@ -359,6 +359,35 @@ _BundleNotification = BundleNotification;
359
359
  }
360
360
  }, _callee6);
361
361
  })));
362
+ // Parameters:
363
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `bundle_id`.
364
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `bundle_id`.
365
+ (0, _defineProperty2.default)(BundleNotification, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee7() {
366
+ var _response$data2;
367
+ var params,
368
+ options,
369
+ response,
370
+ Export,
371
+ _args7 = arguments;
372
+ return _regenerator.default.wrap(function _callee7$(_context7) {
373
+ while (1) switch (_context7.prev = _context7.next) {
374
+ case 0:
375
+ params = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
376
+ options = _args7.length > 1 && _args7[1] !== undefined ? _args7[1] : {};
377
+ _context7.next = 4;
378
+ return _Api.default.sendRequest('/bundle_notifications/create_export', 'POST', params, options);
379
+ case 4:
380
+ response = _context7.sent;
381
+ Export = require('./Export.js').default;
382
+ return _context7.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.map(function (obj) {
383
+ return new Export(obj, options);
384
+ })) || []);
385
+ case 7:
386
+ case "end":
387
+ return _context7.stop();
388
+ }
389
+ }, _callee7);
390
+ })));
362
391
  var _default = exports.default = BundleNotification;
363
392
  module.exports = BundleNotification;
364
393
  module.exports.default = BundleNotification;
@@ -248,6 +248,48 @@ _BundleRecipient = BundleRecipient;
248
248
  }
249
249
  }, _callee3);
250
250
  })));
251
+ // Parameters:
252
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
253
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `has_registrations`.
254
+ // bundle_id (required) - int64 - List recipients for the bundle with this ID.
255
+ (0, _defineProperty2.default)(BundleRecipient, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
256
+ var _response$data2;
257
+ var params,
258
+ options,
259
+ response,
260
+ Export,
261
+ _args4 = arguments;
262
+ return _regenerator.default.wrap(function _callee4$(_context4) {
263
+ while (1) switch (_context4.prev = _context4.next) {
264
+ case 0:
265
+ params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
266
+ options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
267
+ if (params.bundle_id) {
268
+ _context4.next = 4;
269
+ break;
270
+ }
271
+ throw new errors.MissingParameterError('Parameter missing: bundle_id');
272
+ case 4:
273
+ if (!(params.bundle_id && !(0, _utils.isInt)(params.bundle_id))) {
274
+ _context4.next = 6;
275
+ break;
276
+ }
277
+ throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params.bundle_id)));
278
+ case 6:
279
+ _context4.next = 8;
280
+ return _Api.default.sendRequest('/bundle_recipients/create_export', 'POST', params, options);
281
+ case 8:
282
+ response = _context4.sent;
283
+ Export = require('./Export.js').default;
284
+ return _context4.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.map(function (obj) {
285
+ return new Export(obj, options);
286
+ })) || []);
287
+ case 11:
288
+ case "end":
289
+ return _context4.stop();
290
+ }
291
+ }, _callee4);
292
+ })));
251
293
  var _default = exports.default = BundleRecipient;
252
294
  module.exports = BundleRecipient;
253
295
  module.exports.default = BundleRecipient;
@@ -150,6 +150,40 @@ _BundleRegistration = BundleRegistration;
150
150
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
151
151
  return _BundleRegistration.list(params, options);
152
152
  });
153
+ // Parameters:
154
+ // bundle_id - int64 - ID of the associated Bundle
155
+ (0, _defineProperty2.default)(BundleRegistration, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
156
+ var _response$data2;
157
+ var params,
158
+ options,
159
+ response,
160
+ Export,
161
+ _args2 = arguments;
162
+ return _regenerator.default.wrap(function _callee2$(_context2) {
163
+ while (1) switch (_context2.prev = _context2.next) {
164
+ case 0:
165
+ params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
166
+ options = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
167
+ if (!(params.bundle_id && !(0, _utils.isInt)(params.bundle_id))) {
168
+ _context2.next = 4;
169
+ break;
170
+ }
171
+ throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params.bundle_id)));
172
+ case 4:
173
+ _context2.next = 6;
174
+ return _Api.default.sendRequest('/bundle_registrations/create_export', 'POST', params, options);
175
+ case 6:
176
+ response = _context2.sent;
177
+ Export = require('./Export.js').default;
178
+ return _context2.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.map(function (obj) {
179
+ return new Export(obj, options);
180
+ })) || []);
181
+ case 9:
182
+ case "end":
183
+ return _context2.stop();
184
+ }
185
+ }, _callee2);
186
+ })));
153
187
  var _default = exports.default = BundleRegistration;
154
188
  module.exports = BundleRegistration;
155
189
  module.exports.default = BundleRegistration;
@@ -410,6 +410,30 @@ _Clickwrap = Clickwrap;
410
410
  }
411
411
  }, _callee6);
412
412
  })));
413
+ (0, _defineProperty2.default)(Clickwrap, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee7() {
414
+ var _response$data2;
415
+ var options,
416
+ response,
417
+ Export,
418
+ _args7 = arguments;
419
+ return _regenerator.default.wrap(function _callee7$(_context7) {
420
+ while (1) switch (_context7.prev = _context7.next) {
421
+ case 0:
422
+ options = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
423
+ _context7.next = 3;
424
+ return _Api.default.sendRequest('/clickwraps/create_export', 'POST', {}, options);
425
+ case 3:
426
+ response = _context7.sent;
427
+ Export = require('./Export.js').default;
428
+ return _context7.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.map(function (obj) {
429
+ return new Export(obj, options);
430
+ })) || []);
431
+ case 6:
432
+ case "end":
433
+ return _context7.stop();
434
+ }
435
+ }, _callee7);
436
+ })));
413
437
  var _default = exports.default = Clickwrap;
414
438
  module.exports = Clickwrap;
415
439
  module.exports.default = Clickwrap;
@@ -107,6 +107,30 @@ _DnsRecord = DnsRecord;
107
107
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
108
108
  return _DnsRecord.list(params, options);
109
109
  });
110
+ (0, _defineProperty2.default)(DnsRecord, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
111
+ var _response$data2;
112
+ var options,
113
+ response,
114
+ Export,
115
+ _args2 = arguments;
116
+ return _regenerator.default.wrap(function _callee2$(_context2) {
117
+ while (1) switch (_context2.prev = _context2.next) {
118
+ case 0:
119
+ options = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
120
+ _context2.next = 3;
121
+ return _Api.default.sendRequest('/dns_records/create_export', 'POST', {}, options);
122
+ case 3:
123
+ response = _context2.sent;
124
+ Export = require('./Export.js').default;
125
+ return _context2.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.map(function (obj) {
126
+ return new Export(obj, options);
127
+ })) || []);
128
+ case 6:
129
+ case "end":
130
+ return _context2.stop();
131
+ }
132
+ }, _callee2);
133
+ })));
110
134
  var _default = exports.default = DnsRecord;
111
135
  module.exports = DnsRecord;
112
136
  module.exports.default = DnsRecord;