files.com 1.2.249 → 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 (88) hide show
  1. package/_VERSION +1 -1
  2. package/lib/Api.js +72 -71
  3. package/lib/Files.js +1 -1
  4. package/lib/isomorphic/File.node.js +5 -5
  5. package/lib/models/ActionNotificationExport.js +38 -38
  6. package/lib/models/ActionNotificationExportResult.js +14 -14
  7. package/lib/models/ApiKey.js +100 -100
  8. package/lib/models/ApiRequestLog.js +8 -8
  9. package/lib/models/App.js +8 -8
  10. package/lib/models/As2IncomingMessage.js +10 -10
  11. package/lib/models/As2OutgoingMessage.js +10 -10
  12. package/lib/models/As2Partner.js +101 -101
  13. package/lib/models/As2Station.js +81 -81
  14. package/lib/models/Automation.js +167 -167
  15. package/lib/models/AutomationLog.js +8 -8
  16. package/lib/models/AutomationRun.js +24 -24
  17. package/lib/models/BandwidthSnapshot.js +8 -8
  18. package/lib/models/Behavior.js +106 -106
  19. package/lib/models/Bundle.js +143 -143
  20. package/lib/models/BundleAction.js +10 -10
  21. package/lib/models/BundleDownload.js +12 -12
  22. package/lib/models/BundleNotification.js +69 -69
  23. package/lib/models/BundleRecipient.js +40 -40
  24. package/lib/models/BundleRegistration.js +12 -12
  25. package/lib/models/Clickwrap.js +79 -79
  26. package/lib/models/DnsRecord.js +8 -8
  27. package/lib/models/EmailIncomingMessage.js +8 -8
  28. package/lib/models/EmailLog.js +8 -8
  29. package/lib/models/ExavaultApiRequestLog.js +8 -8
  30. package/lib/models/ExternalEvent.js +36 -36
  31. package/lib/models/File.js +269 -269
  32. package/lib/models/FileComment.js +70 -70
  33. package/lib/models/FileCommentReaction.js +34 -34
  34. package/lib/models/FileMigration.js +10 -10
  35. package/lib/models/FileMigrationLog.js +8 -8
  36. package/lib/models/Folder.js +36 -36
  37. package/lib/models/FormFieldSet.js +71 -71
  38. package/lib/models/FtpActionLog.js +8 -8
  39. package/lib/models/GpgKey.js +81 -81
  40. package/lib/models/Group.js +83 -83
  41. package/lib/models/GroupUser.js +89 -89
  42. package/lib/models/History.js +88 -88
  43. package/lib/models/HistoryExport.js +64 -64
  44. package/lib/models/HistoryExportResult.js +14 -14
  45. package/lib/models/InboxRecipient.js +36 -36
  46. package/lib/models/InboxRegistration.js +10 -10
  47. package/lib/models/InboxUpload.js +8 -8
  48. package/lib/models/Invoice.js +18 -18
  49. package/lib/models/IpAddress.js +32 -32
  50. package/lib/models/Lock.js +51 -51
  51. package/lib/models/Message.js +100 -100
  52. package/lib/models/MessageComment.js +78 -78
  53. package/lib/models/MessageCommentReaction.js +54 -54
  54. package/lib/models/MessageReaction.js +54 -54
  55. package/lib/models/Notification.js +91 -91
  56. package/lib/models/OutboundConnectionLog.js +8 -8
  57. package/lib/models/Payment.js +18 -18
  58. package/lib/models/Permission.js +54 -54
  59. package/lib/models/Priority.js +14 -14
  60. package/lib/models/Project.js +70 -70
  61. package/lib/models/PublicHostingRequestLog.js +8 -8
  62. package/lib/models/PublicKey.js +78 -78
  63. package/lib/models/RemoteBandwidthSnapshot.js +8 -8
  64. package/lib/models/RemoteServer.js +362 -362
  65. package/lib/models/Request.js +60 -60
  66. package/lib/models/Restore.js +24 -24
  67. package/lib/models/Session.js +21 -21
  68. package/lib/models/SettingsChange.js +8 -8
  69. package/lib/models/SftpActionLog.js +8 -8
  70. package/lib/models/SftpHostKey.js +67 -67
  71. package/lib/models/ShareGroup.js +79 -79
  72. package/lib/models/SiemHttpDestination.js +158 -158
  73. package/lib/models/Site.js +150 -150
  74. package/lib/models/Snapshot.js +85 -85
  75. package/lib/models/SsoStrategy.js +32 -32
  76. package/lib/models/Style.js +48 -48
  77. package/lib/models/SyncLog.js +8 -8
  78. package/lib/models/UsageDailySnapshot.js +8 -8
  79. package/lib/models/UsageSnapshot.js +8 -8
  80. package/lib/models/User.js +215 -215
  81. package/lib/models/UserCipherUse.js +10 -10
  82. package/lib/models/UserLifecycleRule.js +92 -92
  83. package/lib/models/UserRequest.js +56 -56
  84. package/lib/models/UserSftpClientUse.js +10 -10
  85. package/lib/models/WebDavActionLog.js +8 -8
  86. package/lib/models/WebhookTest.js +24 -24
  87. package/package.json +1 -1
  88. package/src/Files.js +1 -1
@@ -129,73 +129,73 @@ var ApiKey = /*#__PURE__*/(0, _createClass2.default)(function ApiKey() {
129
129
  var params,
130
130
  response,
131
131
  _args = arguments;
132
- return _regenerator.default.wrap(function _callee$(_context) {
132
+ return _regenerator.default.wrap(function (_context) {
133
133
  while (1) switch (_context.prev = _context.next) {
134
134
  case 0:
135
135
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
136
136
  if (_this.attributes.id) {
137
- _context.next = 3;
137
+ _context.next = 1;
138
138
  break;
139
139
  }
140
140
  throw new errors.EmptyPropertyError('Current object has no id');
141
- case 3:
141
+ case 1:
142
142
  if ((0, _utils.isObject)(params)) {
143
- _context.next = 5;
143
+ _context.next = 2;
144
144
  break;
145
145
  }
146
146
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
147
- case 5:
147
+ case 2:
148
148
  params.id = _this.attributes.id;
149
149
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
150
- _context.next = 8;
150
+ _context.next = 3;
151
151
  break;
152
152
  }
153
153
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
154
- case 8:
154
+ case 3:
155
155
  if (!(params.description && !(0, _utils.isString)(params.description))) {
156
- _context.next = 10;
156
+ _context.next = 4;
157
157
  break;
158
158
  }
159
159
  throw new errors.InvalidParameterError("Bad parameter: description must be of type String, received ".concat((0, _utils.getType)(params.description)));
160
- case 10:
160
+ case 4:
161
161
  if (!(params.expires_at && !(0, _utils.isString)(params.expires_at))) {
162
- _context.next = 12;
162
+ _context.next = 5;
163
163
  break;
164
164
  }
165
165
  throw new errors.InvalidParameterError("Bad parameter: expires_at must be of type String, received ".concat((0, _utils.getType)(params.expires_at)));
166
- case 12:
166
+ case 5:
167
167
  if (!(params.permission_set && !(0, _utils.isString)(params.permission_set))) {
168
- _context.next = 14;
168
+ _context.next = 6;
169
169
  break;
170
170
  }
171
171
  throw new errors.InvalidParameterError("Bad parameter: permission_set must be of type String, received ".concat((0, _utils.getType)(params.permission_set)));
172
- case 14:
172
+ case 6:
173
173
  if (!(params.name && !(0, _utils.isString)(params.name))) {
174
- _context.next = 16;
174
+ _context.next = 7;
175
175
  break;
176
176
  }
177
177
  throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
178
- case 16:
178
+ case 7:
179
179
  if (params.id) {
180
- _context.next = 22;
180
+ _context.next = 9;
181
181
  break;
182
182
  }
183
183
  if (!_this.attributes.id) {
184
- _context.next = 21;
184
+ _context.next = 8;
185
185
  break;
186
186
  }
187
187
  params.id = _this.id;
188
- _context.next = 22;
188
+ _context.next = 9;
189
189
  break;
190
- case 21:
190
+ case 8:
191
191
  throw new errors.MissingParameterError('Parameter missing: id');
192
- case 22:
193
- _context.next = 24;
192
+ case 9:
193
+ _context.next = 10;
194
194
  return _Api.default.sendRequest("/api_keys/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
195
- case 24:
195
+ case 10:
196
196
  response = _context.sent;
197
197
  return _context.abrupt("return", new ApiKey(response === null || response === void 0 ? void 0 : response.data, _this.options));
198
- case 26:
198
+ case 11:
199
199
  case "end":
200
200
  return _context.stop();
201
201
  }
@@ -204,46 +204,46 @@ var ApiKey = /*#__PURE__*/(0, _createClass2.default)(function ApiKey() {
204
204
  (0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
205
205
  var params,
206
206
  _args2 = arguments;
207
- return _regenerator.default.wrap(function _callee2$(_context2) {
207
+ return _regenerator.default.wrap(function (_context2) {
208
208
  while (1) switch (_context2.prev = _context2.next) {
209
209
  case 0:
210
210
  params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
211
211
  if (_this.attributes.id) {
212
- _context2.next = 3;
212
+ _context2.next = 1;
213
213
  break;
214
214
  }
215
215
  throw new errors.EmptyPropertyError('Current object has no id');
216
- case 3:
216
+ case 1:
217
217
  if ((0, _utils.isObject)(params)) {
218
- _context2.next = 5;
218
+ _context2.next = 2;
219
219
  break;
220
220
  }
221
221
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
222
- case 5:
222
+ case 2:
223
223
  params.id = _this.attributes.id;
224
224
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
225
- _context2.next = 8;
225
+ _context2.next = 3;
226
226
  break;
227
227
  }
228
228
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
229
- case 8:
229
+ case 3:
230
230
  if (params.id) {
231
- _context2.next = 14;
231
+ _context2.next = 5;
232
232
  break;
233
233
  }
234
234
  if (!_this.attributes.id) {
235
- _context2.next = 13;
235
+ _context2.next = 4;
236
236
  break;
237
237
  }
238
238
  params.id = _this.id;
239
- _context2.next = 14;
239
+ _context2.next = 5;
240
240
  break;
241
- case 13:
241
+ case 4:
242
242
  throw new errors.MissingParameterError('Parameter missing: id');
243
- case 14:
244
- _context2.next = 16;
243
+ case 5:
244
+ _context2.next = 6;
245
245
  return _Api.default.sendRequest("/api_keys/".concat(encodeURIComponent(params.id)), 'DELETE', params, _this.options);
246
- case 16:
246
+ case 6:
247
247
  case "end":
248
248
  return _context2.stop();
249
249
  }
@@ -255,27 +255,27 @@ var ApiKey = /*#__PURE__*/(0, _createClass2.default)(function ApiKey() {
255
255
  });
256
256
  (0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
257
257
  var _newObject, newObject;
258
- return _regenerator.default.wrap(function _callee3$(_context3) {
258
+ return _regenerator.default.wrap(function (_context3) {
259
259
  while (1) switch (_context3.prev = _context3.next) {
260
260
  case 0:
261
261
  if (!_this.attributes.id) {
262
- _context3.next = 6;
262
+ _context3.next = 2;
263
263
  break;
264
264
  }
265
- _context3.next = 3;
265
+ _context3.next = 1;
266
266
  return _this.update(_this.attributes);
267
- case 3:
267
+ case 1:
268
268
  _newObject = _context3.sent;
269
269
  _this.attributes = _objectSpread({}, _newObject.attributes);
270
270
  return _context3.abrupt("return", true);
271
- case 6:
272
- _context3.next = 8;
271
+ case 2:
272
+ _context3.next = 3;
273
273
  return ApiKey.create(_this.attributes, _this.options);
274
- case 8:
274
+ case 3:
275
275
  newObject = _context3.sent;
276
276
  _this.attributes = _objectSpread({}, newObject.attributes);
277
277
  return _context3.abrupt("return", true);
278
- case 11:
278
+ case 4:
279
279
  case "end":
280
280
  return _context3.stop();
281
281
  }
@@ -311,37 +311,37 @@ _ApiKey = ApiKey;
311
311
  options,
312
312
  response,
313
313
  _args4 = arguments;
314
- return _regenerator.default.wrap(function _callee4$(_context4) {
314
+ return _regenerator.default.wrap(function (_context4) {
315
315
  while (1) switch (_context4.prev = _context4.next) {
316
316
  case 0:
317
317
  params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
318
318
  options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
319
319
  if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
320
- _context4.next = 4;
320
+ _context4.next = 1;
321
321
  break;
322
322
  }
323
323
  throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
324
- case 4:
324
+ case 1:
325
325
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
326
- _context4.next = 6;
326
+ _context4.next = 2;
327
327
  break;
328
328
  }
329
329
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
330
- case 6:
330
+ case 2:
331
331
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
332
- _context4.next = 8;
332
+ _context4.next = 3;
333
333
  break;
334
334
  }
335
335
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
336
- case 8:
337
- _context4.next = 10;
336
+ case 3:
337
+ _context4.next = 4;
338
338
  return _Api.default.sendRequest('/api_keys', 'GET', params, options);
339
- case 10:
339
+ case 4:
340
340
  response = _context4.sent;
341
341
  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) {
342
342
  return new _ApiKey(obj, options);
343
343
  })) || []);
344
- case 12:
344
+ case 5:
345
345
  case "end":
346
346
  return _context4.stop();
347
347
  }
@@ -356,16 +356,16 @@ _ApiKey = ApiKey;
356
356
  var options,
357
357
  response,
358
358
  _args5 = arguments;
359
- return _regenerator.default.wrap(function _callee5$(_context5) {
359
+ return _regenerator.default.wrap(function (_context5) {
360
360
  while (1) switch (_context5.prev = _context5.next) {
361
361
  case 0:
362
362
  options = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
363
- _context5.next = 3;
363
+ _context5.next = 1;
364
364
  return _Api.default.sendRequest('/api_key', 'GET', {}, options);
365
- case 3:
365
+ case 1:
366
366
  response = _context5.sent;
367
367
  return _context5.abrupt("return", new _ApiKey(response === null || response === void 0 ? void 0 : response.data, options));
368
- case 5:
368
+ case 2:
369
369
  case "end":
370
370
  return _context5.stop();
371
371
  }
@@ -379,36 +379,36 @@ _ApiKey = ApiKey;
379
379
  options,
380
380
  response,
381
381
  _args6 = arguments;
382
- return _regenerator.default.wrap(function _callee6$(_context6) {
382
+ return _regenerator.default.wrap(function (_context6) {
383
383
  while (1) switch (_context6.prev = _context6.next) {
384
384
  case 0:
385
385
  params = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : {};
386
386
  options = _args6.length > 2 && _args6[2] !== undefined ? _args6[2] : {};
387
387
  if ((0, _utils.isObject)(params)) {
388
- _context6.next = 4;
388
+ _context6.next = 1;
389
389
  break;
390
390
  }
391
391
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
392
- case 4:
392
+ case 1:
393
393
  params.id = id;
394
394
  if (params.id) {
395
- _context6.next = 7;
395
+ _context6.next = 2;
396
396
  break;
397
397
  }
398
398
  throw new errors.MissingParameterError('Parameter missing: id');
399
- case 7:
399
+ case 2:
400
400
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
401
- _context6.next = 9;
401
+ _context6.next = 3;
402
402
  break;
403
403
  }
404
404
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
405
- case 9:
406
- _context6.next = 11;
405
+ case 3:
406
+ _context6.next = 4;
407
407
  return _Api.default.sendRequest("/api_keys/".concat(encodeURIComponent(params.id)), 'GET', params, options);
408
- case 11:
408
+ case 4:
409
409
  response = _context6.sent;
410
410
  return _context6.abrupt("return", new _ApiKey(response === null || response === void 0 ? void 0 : response.data, options));
411
- case 13:
411
+ case 5:
412
412
  case "end":
413
413
  return _context6.stop();
414
414
  }
@@ -435,59 +435,59 @@ _ApiKey = ApiKey;
435
435
  options,
436
436
  response,
437
437
  _args7 = arguments;
438
- return _regenerator.default.wrap(function _callee7$(_context7) {
438
+ return _regenerator.default.wrap(function (_context7) {
439
439
  while (1) switch (_context7.prev = _context7.next) {
440
440
  case 0:
441
441
  params = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
442
442
  options = _args7.length > 1 && _args7[1] !== undefined ? _args7[1] : {};
443
443
  if (params.name) {
444
- _context7.next = 4;
444
+ _context7.next = 1;
445
445
  break;
446
446
  }
447
447
  throw new errors.MissingParameterError('Parameter missing: name');
448
- case 4:
448
+ case 1:
449
449
  if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
450
- _context7.next = 6;
450
+ _context7.next = 2;
451
451
  break;
452
452
  }
453
453
  throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
454
- case 6:
454
+ case 2:
455
455
  if (!(params.description && !(0, _utils.isString)(params.description))) {
456
- _context7.next = 8;
456
+ _context7.next = 3;
457
457
  break;
458
458
  }
459
459
  throw new errors.InvalidParameterError("Bad parameter: description must be of type String, received ".concat((0, _utils.getType)(params.description)));
460
- case 8:
460
+ case 3:
461
461
  if (!(params.expires_at && !(0, _utils.isString)(params.expires_at))) {
462
- _context7.next = 10;
462
+ _context7.next = 4;
463
463
  break;
464
464
  }
465
465
  throw new errors.InvalidParameterError("Bad parameter: expires_at must be of type String, received ".concat((0, _utils.getType)(params.expires_at)));
466
- case 10:
466
+ case 4:
467
467
  if (!(params.permission_set && !(0, _utils.isString)(params.permission_set))) {
468
- _context7.next = 12;
468
+ _context7.next = 5;
469
469
  break;
470
470
  }
471
471
  throw new errors.InvalidParameterError("Bad parameter: permission_set must be of type String, received ".concat((0, _utils.getType)(params.permission_set)));
472
- case 12:
472
+ case 5:
473
473
  if (!(params.name && !(0, _utils.isString)(params.name))) {
474
- _context7.next = 14;
474
+ _context7.next = 6;
475
475
  break;
476
476
  }
477
477
  throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
478
- case 14:
478
+ case 6:
479
479
  if (!(params.path && !(0, _utils.isString)(params.path))) {
480
- _context7.next = 16;
480
+ _context7.next = 7;
481
481
  break;
482
482
  }
483
483
  throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
484
- case 16:
485
- _context7.next = 18;
484
+ case 7:
485
+ _context7.next = 8;
486
486
  return _Api.default.sendRequest('/api_keys', 'POST', params, options);
487
- case 18:
487
+ case 8:
488
488
  response = _context7.sent;
489
489
  return _context7.abrupt("return", new _ApiKey(response === null || response === void 0 ? void 0 : response.data, options));
490
- case 20:
490
+ case 9:
491
491
  case "end":
492
492
  return _context7.stop();
493
493
  }
@@ -502,35 +502,35 @@ _ApiKey = ApiKey;
502
502
  options,
503
503
  response,
504
504
  _args8 = arguments;
505
- return _regenerator.default.wrap(function _callee8$(_context8) {
505
+ return _regenerator.default.wrap(function (_context8) {
506
506
  while (1) switch (_context8.prev = _context8.next) {
507
507
  case 0:
508
508
  params = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
509
509
  options = _args8.length > 1 && _args8[1] !== undefined ? _args8[1] : {};
510
510
  if (!(params.expires_at && !(0, _utils.isString)(params.expires_at))) {
511
- _context8.next = 4;
511
+ _context8.next = 1;
512
512
  break;
513
513
  }
514
514
  throw new errors.InvalidParameterError("Bad parameter: expires_at must be of type String, received ".concat((0, _utils.getType)(params.expires_at)));
515
- case 4:
515
+ case 1:
516
516
  if (!(params.name && !(0, _utils.isString)(params.name))) {
517
- _context8.next = 6;
517
+ _context8.next = 2;
518
518
  break;
519
519
  }
520
520
  throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
521
- case 6:
521
+ case 2:
522
522
  if (!(params.permission_set && !(0, _utils.isString)(params.permission_set))) {
523
- _context8.next = 8;
523
+ _context8.next = 3;
524
524
  break;
525
525
  }
526
526
  throw new errors.InvalidParameterError("Bad parameter: permission_set must be of type String, received ".concat((0, _utils.getType)(params.permission_set)));
527
- case 8:
528
- _context8.next = 10;
527
+ case 3:
528
+ _context8.next = 4;
529
529
  return _Api.default.sendRequest('/api_key', 'PATCH', params, options);
530
- case 10:
530
+ case 4:
531
531
  response = _context8.sent;
532
532
  return _context8.abrupt("return", new _ApiKey(response === null || response === void 0 ? void 0 : response.data, options));
533
- case 12:
533
+ case 5:
534
534
  case "end":
535
535
  return _context8.stop();
536
536
  }
@@ -539,13 +539,13 @@ _ApiKey = ApiKey;
539
539
  (0, _defineProperty2.default)(ApiKey, "deleteCurrent", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee9() {
540
540
  var options,
541
541
  _args9 = arguments;
542
- return _regenerator.default.wrap(function _callee9$(_context9) {
542
+ return _regenerator.default.wrap(function (_context9) {
543
543
  while (1) switch (_context9.prev = _context9.next) {
544
544
  case 0:
545
545
  options = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : {};
546
- _context9.next = 3;
546
+ _context9.next = 1;
547
547
  return _Api.default.sendRequest('/api_key', 'DELETE', {}, options);
548
- case 3:
548
+ case 1:
549
549
  case "end":
550
550
  return _context9.stop();
551
551
  }
@@ -133,31 +133,31 @@ _ApiRequestLog = ApiRequestLog;
133
133
  options,
134
134
  response,
135
135
  _args = arguments;
136
- return _regenerator.default.wrap(function _callee$(_context) {
136
+ return _regenerator.default.wrap(function (_context) {
137
137
  while (1) switch (_context.prev = _context.next) {
138
138
  case 0:
139
139
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
140
140
  options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
141
141
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
142
- _context.next = 4;
142
+ _context.next = 1;
143
143
  break;
144
144
  }
145
145
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
146
- case 4:
146
+ case 1:
147
147
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
148
- _context.next = 6;
148
+ _context.next = 2;
149
149
  break;
150
150
  }
151
151
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
152
- case 6:
153
- _context.next = 8;
152
+ case 2:
153
+ _context.next = 3;
154
154
  return _Api.default.sendRequest('/api_request_logs', 'GET', params, options);
155
- case 8:
155
+ case 3:
156
156
  response = _context.sent;
157
157
  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) {
158
158
  return new _ApiRequestLog(obj, options);
159
159
  })) || []);
160
- case 10:
160
+ case 4:
161
161
  case "end":
162
162
  return _context.stop();
163
163
  }
package/lib/models/App.js CHANGED
@@ -142,31 +142,31 @@ _App = App;
142
142
  options,
143
143
  response,
144
144
  _args = arguments;
145
- return _regenerator.default.wrap(function _callee$(_context) {
145
+ return _regenerator.default.wrap(function (_context) {
146
146
  while (1) switch (_context.prev = _context.next) {
147
147
  case 0:
148
148
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
149
149
  options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
150
150
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
151
- _context.next = 4;
151
+ _context.next = 1;
152
152
  break;
153
153
  }
154
154
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
155
- case 4:
155
+ case 1:
156
156
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
157
- _context.next = 6;
157
+ _context.next = 2;
158
158
  break;
159
159
  }
160
160
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
161
- case 6:
162
- _context.next = 8;
161
+ case 2:
162
+ _context.next = 3;
163
163
  return _Api.default.sendRequest('/apps', 'GET', params, options);
164
- case 8:
164
+ case 3:
165
165
  response = _context.sent;
166
166
  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) {
167
167
  return new _App(obj, options);
168
168
  })) || []);
169
- case 10:
169
+ case 4:
170
170
  case "end":
171
171
  return _context.stop();
172
172
  }
@@ -198,37 +198,37 @@ _As2IncomingMessage = As2IncomingMessage;
198
198
  options,
199
199
  response,
200
200
  _args = arguments;
201
- return _regenerator.default.wrap(function _callee$(_context) {
201
+ return _regenerator.default.wrap(function (_context) {
202
202
  while (1) switch (_context.prev = _context.next) {
203
203
  case 0:
204
204
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
205
205
  options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
206
206
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
207
- _context.next = 4;
207
+ _context.next = 1;
208
208
  break;
209
209
  }
210
210
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
211
- case 4:
211
+ case 1:
212
212
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
213
- _context.next = 6;
213
+ _context.next = 2;
214
214
  break;
215
215
  }
216
216
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
217
- case 6:
217
+ case 2:
218
218
  if (!(params.as2_partner_id && !(0, _utils.isInt)(params.as2_partner_id))) {
219
- _context.next = 8;
219
+ _context.next = 3;
220
220
  break;
221
221
  }
222
222
  throw new errors.InvalidParameterError("Bad parameter: as2_partner_id must be of type Int, received ".concat((0, _utils.getType)(params.as2_partner_id)));
223
- case 8:
224
- _context.next = 10;
223
+ case 3:
224
+ _context.next = 4;
225
225
  return _Api.default.sendRequest('/as2_incoming_messages', 'GET', params, options);
226
- case 10:
226
+ case 4:
227
227
  response = _context.sent;
228
228
  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) {
229
229
  return new _As2IncomingMessage(obj, options);
230
230
  })) || []);
231
- case 12:
231
+ case 5:
232
232
  case "end":
233
233
  return _context.stop();
234
234
  }
@@ -182,37 +182,37 @@ _As2OutgoingMessage = As2OutgoingMessage;
182
182
  options,
183
183
  response,
184
184
  _args = arguments;
185
- return _regenerator.default.wrap(function _callee$(_context) {
185
+ return _regenerator.default.wrap(function (_context) {
186
186
  while (1) switch (_context.prev = _context.next) {
187
187
  case 0:
188
188
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
189
189
  options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
190
190
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
191
- _context.next = 4;
191
+ _context.next = 1;
192
192
  break;
193
193
  }
194
194
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
195
- case 4:
195
+ case 1:
196
196
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
197
- _context.next = 6;
197
+ _context.next = 2;
198
198
  break;
199
199
  }
200
200
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
201
- case 6:
201
+ case 2:
202
202
  if (!(params.as2_partner_id && !(0, _utils.isInt)(params.as2_partner_id))) {
203
- _context.next = 8;
203
+ _context.next = 3;
204
204
  break;
205
205
  }
206
206
  throw new errors.InvalidParameterError("Bad parameter: as2_partner_id must be of type Int, received ".concat((0, _utils.getType)(params.as2_partner_id)));
207
- case 8:
208
- _context.next = 10;
207
+ case 3:
208
+ _context.next = 4;
209
209
  return _Api.default.sendRequest('/as2_outgoing_messages', 'GET', params, options);
210
- case 10:
210
+ case 4:
211
211
  response = _context.sent;
212
212
  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) {
213
213
  return new _As2OutgoingMessage(obj, options);
214
214
  })) || []);
215
- case 12:
215
+ case 5:
216
216
  case "end":
217
217
  return _context.stop();
218
218
  }