files.com 1.2.248 → 1.2.250

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 (91) hide show
  1. package/_VERSION +1 -1
  2. package/docs/models/Bundle.md +4 -2
  3. package/docs/models/FormFieldSet.md +5 -2
  4. package/lib/Api.js +72 -71
  5. package/lib/Files.js +1 -1
  6. package/lib/isomorphic/File.node.js +5 -5
  7. package/lib/models/ActionNotificationExport.js +38 -38
  8. package/lib/models/ActionNotificationExportResult.js +14 -14
  9. package/lib/models/ApiKey.js +100 -100
  10. package/lib/models/ApiRequestLog.js +8 -8
  11. package/lib/models/App.js +8 -8
  12. package/lib/models/As2IncomingMessage.js +10 -10
  13. package/lib/models/As2OutgoingMessage.js +10 -10
  14. package/lib/models/As2Partner.js +101 -101
  15. package/lib/models/As2Station.js +81 -81
  16. package/lib/models/Automation.js +167 -167
  17. package/lib/models/AutomationLog.js +8 -8
  18. package/lib/models/AutomationRun.js +24 -24
  19. package/lib/models/BandwidthSnapshot.js +8 -8
  20. package/lib/models/Behavior.js +106 -106
  21. package/lib/models/Bundle.js +143 -143
  22. package/lib/models/BundleAction.js +10 -10
  23. package/lib/models/BundleDownload.js +12 -12
  24. package/lib/models/BundleNotification.js +69 -69
  25. package/lib/models/BundleRecipient.js +40 -40
  26. package/lib/models/BundleRegistration.js +12 -12
  27. package/lib/models/Clickwrap.js +79 -79
  28. package/lib/models/DnsRecord.js +8 -8
  29. package/lib/models/EmailIncomingMessage.js +8 -8
  30. package/lib/models/EmailLog.js +8 -8
  31. package/lib/models/ExavaultApiRequestLog.js +8 -8
  32. package/lib/models/ExternalEvent.js +36 -36
  33. package/lib/models/File.js +269 -269
  34. package/lib/models/FileComment.js +70 -70
  35. package/lib/models/FileCommentReaction.js +34 -34
  36. package/lib/models/FileMigration.js +10 -10
  37. package/lib/models/FileMigrationLog.js +8 -8
  38. package/lib/models/Folder.js +36 -36
  39. package/lib/models/FormFieldSet.js +78 -71
  40. package/lib/models/FtpActionLog.js +8 -8
  41. package/lib/models/GpgKey.js +81 -81
  42. package/lib/models/Group.js +83 -83
  43. package/lib/models/GroupUser.js +89 -89
  44. package/lib/models/History.js +88 -88
  45. package/lib/models/HistoryExport.js +64 -64
  46. package/lib/models/HistoryExportResult.js +14 -14
  47. package/lib/models/InboxRecipient.js +36 -36
  48. package/lib/models/InboxRegistration.js +10 -10
  49. package/lib/models/InboxUpload.js +8 -8
  50. package/lib/models/Invoice.js +18 -18
  51. package/lib/models/IpAddress.js +32 -32
  52. package/lib/models/Lock.js +51 -51
  53. package/lib/models/Message.js +100 -100
  54. package/lib/models/MessageComment.js +78 -78
  55. package/lib/models/MessageCommentReaction.js +54 -54
  56. package/lib/models/MessageReaction.js +54 -54
  57. package/lib/models/Notification.js +91 -91
  58. package/lib/models/OutboundConnectionLog.js +8 -8
  59. package/lib/models/Payment.js +18 -18
  60. package/lib/models/Permission.js +54 -54
  61. package/lib/models/Priority.js +14 -14
  62. package/lib/models/Project.js +70 -70
  63. package/lib/models/PublicHostingRequestLog.js +8 -8
  64. package/lib/models/PublicKey.js +78 -78
  65. package/lib/models/RemoteBandwidthSnapshot.js +8 -8
  66. package/lib/models/RemoteServer.js +362 -362
  67. package/lib/models/Request.js +60 -60
  68. package/lib/models/Restore.js +24 -24
  69. package/lib/models/Session.js +21 -21
  70. package/lib/models/SettingsChange.js +8 -8
  71. package/lib/models/SftpActionLog.js +8 -8
  72. package/lib/models/SftpHostKey.js +67 -67
  73. package/lib/models/ShareGroup.js +79 -79
  74. package/lib/models/SiemHttpDestination.js +158 -158
  75. package/lib/models/Site.js +150 -150
  76. package/lib/models/Snapshot.js +85 -85
  77. package/lib/models/SsoStrategy.js +32 -32
  78. package/lib/models/Style.js +48 -48
  79. package/lib/models/SyncLog.js +8 -8
  80. package/lib/models/UsageDailySnapshot.js +8 -8
  81. package/lib/models/UsageSnapshot.js +8 -8
  82. package/lib/models/User.js +215 -215
  83. package/lib/models/UserCipherUse.js +10 -10
  84. package/lib/models/UserLifecycleRule.js +92 -92
  85. package/lib/models/UserRequest.js +56 -56
  86. package/lib/models/UserSftpClientUse.js +10 -10
  87. package/lib/models/WebDavActionLog.js +8 -8
  88. package/lib/models/WebhookTest.js +24 -24
  89. package/package.json +1 -1
  90. package/src/Files.js +1 -1
  91. package/src/models/FormFieldSet.js +7 -0
@@ -84,79 +84,79 @@ var Clickwrap = /*#__PURE__*/(0, _createClass2.default)(function Clickwrap() {
84
84
  var params,
85
85
  response,
86
86
  _args = arguments;
87
- return _regenerator.default.wrap(function _callee$(_context) {
87
+ return _regenerator.default.wrap(function (_context) {
88
88
  while (1) switch (_context.prev = _context.next) {
89
89
  case 0:
90
90
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
91
91
  if (_this.attributes.id) {
92
- _context.next = 3;
92
+ _context.next = 1;
93
93
  break;
94
94
  }
95
95
  throw new errors.EmptyPropertyError('Current object has no id');
96
- case 3:
96
+ case 1:
97
97
  if ((0, _utils.isObject)(params)) {
98
- _context.next = 5;
98
+ _context.next = 2;
99
99
  break;
100
100
  }
101
101
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
102
- case 5:
102
+ case 2:
103
103
  params.id = _this.attributes.id;
104
104
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
105
- _context.next = 8;
105
+ _context.next = 3;
106
106
  break;
107
107
  }
108
108
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
109
- case 8:
109
+ case 3:
110
110
  if (!(params.name && !(0, _utils.isString)(params.name))) {
111
- _context.next = 10;
111
+ _context.next = 4;
112
112
  break;
113
113
  }
114
114
  throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
115
- case 10:
115
+ case 4:
116
116
  if (!(params.body && !(0, _utils.isString)(params.body))) {
117
- _context.next = 12;
117
+ _context.next = 5;
118
118
  break;
119
119
  }
120
120
  throw new errors.InvalidParameterError("Bad parameter: body must be of type String, received ".concat((0, _utils.getType)(params.body)));
121
- case 12:
121
+ case 5:
122
122
  if (!(params.use_with_bundles && !(0, _utils.isString)(params.use_with_bundles))) {
123
- _context.next = 14;
123
+ _context.next = 6;
124
124
  break;
125
125
  }
126
126
  throw new errors.InvalidParameterError("Bad parameter: use_with_bundles must be of type String, received ".concat((0, _utils.getType)(params.use_with_bundles)));
127
- case 14:
127
+ case 6:
128
128
  if (!(params.use_with_inboxes && !(0, _utils.isString)(params.use_with_inboxes))) {
129
- _context.next = 16;
129
+ _context.next = 7;
130
130
  break;
131
131
  }
132
132
  throw new errors.InvalidParameterError("Bad parameter: use_with_inboxes must be of type String, received ".concat((0, _utils.getType)(params.use_with_inboxes)));
133
- case 16:
133
+ case 7:
134
134
  if (!(params.use_with_users && !(0, _utils.isString)(params.use_with_users))) {
135
- _context.next = 18;
135
+ _context.next = 8;
136
136
  break;
137
137
  }
138
138
  throw new errors.InvalidParameterError("Bad parameter: use_with_users must be of type String, received ".concat((0, _utils.getType)(params.use_with_users)));
139
- case 18:
139
+ case 8:
140
140
  if (params.id) {
141
- _context.next = 24;
141
+ _context.next = 10;
142
142
  break;
143
143
  }
144
144
  if (!_this.attributes.id) {
145
- _context.next = 23;
145
+ _context.next = 9;
146
146
  break;
147
147
  }
148
148
  params.id = _this.id;
149
- _context.next = 24;
149
+ _context.next = 10;
150
150
  break;
151
- case 23:
151
+ case 9:
152
152
  throw new errors.MissingParameterError('Parameter missing: id');
153
- case 24:
154
- _context.next = 26;
153
+ case 10:
154
+ _context.next = 11;
155
155
  return _Api.default.sendRequest("/clickwraps/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
156
- case 26:
156
+ case 11:
157
157
  response = _context.sent;
158
158
  return _context.abrupt("return", new Clickwrap(response === null || response === void 0 ? void 0 : response.data, _this.options));
159
- case 28:
159
+ case 12:
160
160
  case "end":
161
161
  return _context.stop();
162
162
  }
@@ -165,46 +165,46 @@ var Clickwrap = /*#__PURE__*/(0, _createClass2.default)(function Clickwrap() {
165
165
  (0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
166
166
  var params,
167
167
  _args2 = arguments;
168
- return _regenerator.default.wrap(function _callee2$(_context2) {
168
+ return _regenerator.default.wrap(function (_context2) {
169
169
  while (1) switch (_context2.prev = _context2.next) {
170
170
  case 0:
171
171
  params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
172
172
  if (_this.attributes.id) {
173
- _context2.next = 3;
173
+ _context2.next = 1;
174
174
  break;
175
175
  }
176
176
  throw new errors.EmptyPropertyError('Current object has no id');
177
- case 3:
177
+ case 1:
178
178
  if ((0, _utils.isObject)(params)) {
179
- _context2.next = 5;
179
+ _context2.next = 2;
180
180
  break;
181
181
  }
182
182
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
183
- case 5:
183
+ case 2:
184
184
  params.id = _this.attributes.id;
185
185
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
186
- _context2.next = 8;
186
+ _context2.next = 3;
187
187
  break;
188
188
  }
189
189
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
190
- case 8:
190
+ case 3:
191
191
  if (params.id) {
192
- _context2.next = 14;
192
+ _context2.next = 5;
193
193
  break;
194
194
  }
195
195
  if (!_this.attributes.id) {
196
- _context2.next = 13;
196
+ _context2.next = 4;
197
197
  break;
198
198
  }
199
199
  params.id = _this.id;
200
- _context2.next = 14;
200
+ _context2.next = 5;
201
201
  break;
202
- case 13:
202
+ case 4:
203
203
  throw new errors.MissingParameterError('Parameter missing: id');
204
- case 14:
205
- _context2.next = 16;
204
+ case 5:
205
+ _context2.next = 6;
206
206
  return _Api.default.sendRequest("/clickwraps/".concat(encodeURIComponent(params.id)), 'DELETE', params, _this.options);
207
- case 16:
207
+ case 6:
208
208
  case "end":
209
209
  return _context2.stop();
210
210
  }
@@ -216,27 +216,27 @@ var Clickwrap = /*#__PURE__*/(0, _createClass2.default)(function Clickwrap() {
216
216
  });
217
217
  (0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
218
218
  var _newObject, newObject;
219
- return _regenerator.default.wrap(function _callee3$(_context3) {
219
+ return _regenerator.default.wrap(function (_context3) {
220
220
  while (1) switch (_context3.prev = _context3.next) {
221
221
  case 0:
222
222
  if (!_this.attributes.id) {
223
- _context3.next = 6;
223
+ _context3.next = 2;
224
224
  break;
225
225
  }
226
- _context3.next = 3;
226
+ _context3.next = 1;
227
227
  return _this.update(_this.attributes);
228
- case 3:
228
+ case 1:
229
229
  _newObject = _context3.sent;
230
230
  _this.attributes = _objectSpread({}, _newObject.attributes);
231
231
  return _context3.abrupt("return", true);
232
- case 6:
233
- _context3.next = 8;
232
+ case 2:
233
+ _context3.next = 3;
234
234
  return Clickwrap.create(_this.attributes, _this.options);
235
- case 8:
235
+ case 3:
236
236
  newObject = _context3.sent;
237
237
  _this.attributes = _objectSpread({}, newObject.attributes);
238
238
  return _context3.abrupt("return", true);
239
- case 11:
239
+ case 4:
240
240
  case "end":
241
241
  return _context3.stop();
242
242
  }
@@ -266,31 +266,31 @@ _Clickwrap = Clickwrap;
266
266
  options,
267
267
  response,
268
268
  _args4 = arguments;
269
- return _regenerator.default.wrap(function _callee4$(_context4) {
269
+ return _regenerator.default.wrap(function (_context4) {
270
270
  while (1) switch (_context4.prev = _context4.next) {
271
271
  case 0:
272
272
  params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
273
273
  options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
274
274
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
275
- _context4.next = 4;
275
+ _context4.next = 1;
276
276
  break;
277
277
  }
278
278
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
279
- case 4:
279
+ case 1:
280
280
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
281
- _context4.next = 6;
281
+ _context4.next = 2;
282
282
  break;
283
283
  }
284
284
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
285
- case 6:
286
- _context4.next = 8;
285
+ case 2:
286
+ _context4.next = 3;
287
287
  return _Api.default.sendRequest('/clickwraps', 'GET', params, options);
288
- case 8:
288
+ case 3:
289
289
  response = _context4.sent;
290
290
  return _context4.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
291
291
  return new _Clickwrap(obj, options);
292
292
  })) || []);
293
- case 10:
293
+ case 4:
294
294
  case "end":
295
295
  return _context4.stop();
296
296
  }
@@ -309,36 +309,36 @@ _Clickwrap = Clickwrap;
309
309
  options,
310
310
  response,
311
311
  _args5 = arguments;
312
- return _regenerator.default.wrap(function _callee5$(_context5) {
312
+ return _regenerator.default.wrap(function (_context5) {
313
313
  while (1) switch (_context5.prev = _context5.next) {
314
314
  case 0:
315
315
  params = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
316
316
  options = _args5.length > 2 && _args5[2] !== undefined ? _args5[2] : {};
317
317
  if ((0, _utils.isObject)(params)) {
318
- _context5.next = 4;
318
+ _context5.next = 1;
319
319
  break;
320
320
  }
321
321
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
322
- case 4:
322
+ case 1:
323
323
  params.id = id;
324
324
  if (params.id) {
325
- _context5.next = 7;
325
+ _context5.next = 2;
326
326
  break;
327
327
  }
328
328
  throw new errors.MissingParameterError('Parameter missing: id');
329
- case 7:
329
+ case 2:
330
330
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
331
- _context5.next = 9;
331
+ _context5.next = 3;
332
332
  break;
333
333
  }
334
334
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
335
- case 9:
336
- _context5.next = 11;
335
+ case 3:
336
+ _context5.next = 4;
337
337
  return _Api.default.sendRequest("/clickwraps/".concat(encodeURIComponent(params.id)), 'GET', params, options);
338
- case 11:
338
+ case 4:
339
339
  response = _context5.sent;
340
340
  return _context5.abrupt("return", new _Clickwrap(response === null || response === void 0 ? void 0 : response.data, options));
341
- case 13:
341
+ case 5:
342
342
  case "end":
343
343
  return _context5.stop();
344
344
  }
@@ -364,47 +364,47 @@ _Clickwrap = Clickwrap;
364
364
  options,
365
365
  response,
366
366
  _args6 = arguments;
367
- return _regenerator.default.wrap(function _callee6$(_context6) {
367
+ return _regenerator.default.wrap(function (_context6) {
368
368
  while (1) switch (_context6.prev = _context6.next) {
369
369
  case 0:
370
370
  params = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
371
371
  options = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : {};
372
372
  if (!(params.name && !(0, _utils.isString)(params.name))) {
373
- _context6.next = 4;
373
+ _context6.next = 1;
374
374
  break;
375
375
  }
376
376
  throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
377
- case 4:
377
+ case 1:
378
378
  if (!(params.body && !(0, _utils.isString)(params.body))) {
379
- _context6.next = 6;
379
+ _context6.next = 2;
380
380
  break;
381
381
  }
382
382
  throw new errors.InvalidParameterError("Bad parameter: body must be of type String, received ".concat((0, _utils.getType)(params.body)));
383
- case 6:
383
+ case 2:
384
384
  if (!(params.use_with_bundles && !(0, _utils.isString)(params.use_with_bundles))) {
385
- _context6.next = 8;
385
+ _context6.next = 3;
386
386
  break;
387
387
  }
388
388
  throw new errors.InvalidParameterError("Bad parameter: use_with_bundles must be of type String, received ".concat((0, _utils.getType)(params.use_with_bundles)));
389
- case 8:
389
+ case 3:
390
390
  if (!(params.use_with_inboxes && !(0, _utils.isString)(params.use_with_inboxes))) {
391
- _context6.next = 10;
391
+ _context6.next = 4;
392
392
  break;
393
393
  }
394
394
  throw new errors.InvalidParameterError("Bad parameter: use_with_inboxes must be of type String, received ".concat((0, _utils.getType)(params.use_with_inboxes)));
395
- case 10:
395
+ case 4:
396
396
  if (!(params.use_with_users && !(0, _utils.isString)(params.use_with_users))) {
397
- _context6.next = 12;
397
+ _context6.next = 5;
398
398
  break;
399
399
  }
400
400
  throw new errors.InvalidParameterError("Bad parameter: use_with_users must be of type String, received ".concat((0, _utils.getType)(params.use_with_users)));
401
- case 12:
402
- _context6.next = 14;
401
+ case 5:
402
+ _context6.next = 6;
403
403
  return _Api.default.sendRequest('/clickwraps', 'POST', params, options);
404
- case 14:
404
+ case 6:
405
405
  response = _context6.sent;
406
406
  return _context6.abrupt("return", new _Clickwrap(response === null || response === void 0 ? void 0 : response.data, options));
407
- case 16:
407
+ case 7:
408
408
  case "end":
409
409
  return _context6.stop();
410
410
  }
@@ -71,31 +71,31 @@ _DnsRecord = DnsRecord;
71
71
  options,
72
72
  response,
73
73
  _args = arguments;
74
- return _regenerator.default.wrap(function _callee$(_context) {
74
+ return _regenerator.default.wrap(function (_context) {
75
75
  while (1) switch (_context.prev = _context.next) {
76
76
  case 0:
77
77
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
78
78
  options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
79
79
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
80
- _context.next = 4;
80
+ _context.next = 1;
81
81
  break;
82
82
  }
83
83
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
84
- case 4:
84
+ case 1:
85
85
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
86
- _context.next = 6;
86
+ _context.next = 2;
87
87
  break;
88
88
  }
89
89
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
90
- case 6:
91
- _context.next = 8;
90
+ case 2:
91
+ _context.next = 3;
92
92
  return _Api.default.sendRequest('/dns_records', 'GET', params, options);
93
- case 8:
93
+ case 3:
94
94
  response = _context.sent;
95
95
  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) {
96
96
  return new _DnsRecord(obj, options);
97
97
  })) || []);
98
- case 10:
98
+ case 4:
99
99
  case "end":
100
100
  return _context.stop();
101
101
  }
@@ -98,31 +98,31 @@ _EmailIncomingMessage = EmailIncomingMessage;
98
98
  options,
99
99
  response,
100
100
  _args = arguments;
101
- return _regenerator.default.wrap(function _callee$(_context) {
101
+ return _regenerator.default.wrap(function (_context) {
102
102
  while (1) switch (_context.prev = _context.next) {
103
103
  case 0:
104
104
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
105
105
  options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
106
106
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
107
- _context.next = 4;
107
+ _context.next = 1;
108
108
  break;
109
109
  }
110
110
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
111
- case 4:
111
+ case 1:
112
112
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
113
- _context.next = 6;
113
+ _context.next = 2;
114
114
  break;
115
115
  }
116
116
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
117
- case 6:
118
- _context.next = 8;
117
+ case 2:
118
+ _context.next = 3;
119
119
  return _Api.default.sendRequest('/email_incoming_messages', 'GET', params, options);
120
- case 8:
120
+ case 3:
121
121
  response = _context.sent;
122
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) {
123
123
  return new _EmailIncomingMessage(obj, options);
124
124
  })) || []);
125
- case 10:
125
+ case 4:
126
126
  case "end":
127
127
  return _context.stop();
128
128
  }
@@ -93,31 +93,31 @@ _EmailLog = EmailLog;
93
93
  options,
94
94
  response,
95
95
  _args = arguments;
96
- return _regenerator.default.wrap(function _callee$(_context) {
96
+ return _regenerator.default.wrap(function (_context) {
97
97
  while (1) switch (_context.prev = _context.next) {
98
98
  case 0:
99
99
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
100
100
  options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
101
101
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
102
- _context.next = 4;
102
+ _context.next = 1;
103
103
  break;
104
104
  }
105
105
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
106
- case 4:
106
+ case 1:
107
107
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
108
- _context.next = 6;
108
+ _context.next = 2;
109
109
  break;
110
110
  }
111
111
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
112
- case 6:
113
- _context.next = 8;
112
+ case 2:
113
+ _context.next = 3;
114
114
  return _Api.default.sendRequest('/email_logs', 'GET', params, options);
115
- case 8:
115
+ case 3:
116
116
  response = _context.sent;
117
117
  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) {
118
118
  return new _EmailLog(obj, options);
119
119
  })) || []);
120
- case 10:
120
+ case 4:
121
121
  case "end":
122
122
  return _context.stop();
123
123
  }
@@ -101,31 +101,31 @@ _ExavaultApiRequestLog = ExavaultApiRequestLog;
101
101
  options,
102
102
  response,
103
103
  _args = arguments;
104
- return _regenerator.default.wrap(function _callee$(_context) {
104
+ return _regenerator.default.wrap(function (_context) {
105
105
  while (1) switch (_context.prev = _context.next) {
106
106
  case 0:
107
107
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
108
108
  options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
109
109
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
110
- _context.next = 4;
110
+ _context.next = 1;
111
111
  break;
112
112
  }
113
113
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
114
- case 4:
114
+ case 1:
115
115
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
116
- _context.next = 6;
116
+ _context.next = 2;
117
117
  break;
118
118
  }
119
119
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
120
- case 6:
121
- _context.next = 8;
120
+ case 2:
121
+ _context.next = 3;
122
122
  return _Api.default.sendRequest('/exavault_api_request_logs', 'GET', params, options);
123
- case 8:
123
+ case 3:
124
124
  response = _context.sent;
125
125
  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) {
126
126
  return new _ExavaultApiRequestLog(obj, options);
127
127
  })) || []);
128
- case 10:
128
+ case 4:
129
129
  case "end":
130
130
  return _context.stop();
131
131
  }