files.com 1.2.249 → 1.2.251

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 (90) hide show
  1. package/_VERSION +1 -1
  2. package/docs/models/User.md +4 -1
  3. package/lib/Api.js +72 -71
  4. package/lib/Files.js +1 -1
  5. package/lib/isomorphic/File.node.js +5 -5
  6. package/lib/models/ActionNotificationExport.js +38 -38
  7. package/lib/models/ActionNotificationExportResult.js +14 -14
  8. package/lib/models/ApiKey.js +100 -100
  9. package/lib/models/ApiRequestLog.js +8 -8
  10. package/lib/models/App.js +8 -8
  11. package/lib/models/As2IncomingMessage.js +10 -10
  12. package/lib/models/As2OutgoingMessage.js +10 -10
  13. package/lib/models/As2Partner.js +101 -101
  14. package/lib/models/As2Station.js +81 -81
  15. package/lib/models/Automation.js +167 -167
  16. package/lib/models/AutomationLog.js +8 -8
  17. package/lib/models/AutomationRun.js +24 -24
  18. package/lib/models/BandwidthSnapshot.js +8 -8
  19. package/lib/models/Behavior.js +106 -106
  20. package/lib/models/Bundle.js +143 -143
  21. package/lib/models/BundleAction.js +10 -10
  22. package/lib/models/BundleDownload.js +12 -12
  23. package/lib/models/BundleNotification.js +69 -69
  24. package/lib/models/BundleRecipient.js +40 -40
  25. package/lib/models/BundleRegistration.js +12 -12
  26. package/lib/models/Clickwrap.js +79 -79
  27. package/lib/models/DnsRecord.js +8 -8
  28. package/lib/models/EmailIncomingMessage.js +8 -8
  29. package/lib/models/EmailLog.js +8 -8
  30. package/lib/models/ExavaultApiRequestLog.js +8 -8
  31. package/lib/models/ExternalEvent.js +36 -36
  32. package/lib/models/File.js +269 -269
  33. package/lib/models/FileComment.js +70 -70
  34. package/lib/models/FileCommentReaction.js +34 -34
  35. package/lib/models/FileMigration.js +10 -10
  36. package/lib/models/FileMigrationLog.js +8 -8
  37. package/lib/models/Folder.js +36 -36
  38. package/lib/models/FormFieldSet.js +71 -71
  39. package/lib/models/FtpActionLog.js +8 -8
  40. package/lib/models/GpgKey.js +81 -81
  41. package/lib/models/Group.js +83 -83
  42. package/lib/models/GroupUser.js +89 -89
  43. package/lib/models/History.js +88 -88
  44. package/lib/models/HistoryExport.js +64 -64
  45. package/lib/models/HistoryExportResult.js +14 -14
  46. package/lib/models/InboxRecipient.js +36 -36
  47. package/lib/models/InboxRegistration.js +10 -10
  48. package/lib/models/InboxUpload.js +8 -8
  49. package/lib/models/Invoice.js +18 -18
  50. package/lib/models/IpAddress.js +32 -32
  51. package/lib/models/Lock.js +51 -51
  52. package/lib/models/Message.js +100 -100
  53. package/lib/models/MessageComment.js +78 -78
  54. package/lib/models/MessageCommentReaction.js +54 -54
  55. package/lib/models/MessageReaction.js +54 -54
  56. package/lib/models/Notification.js +91 -91
  57. package/lib/models/OutboundConnectionLog.js +8 -8
  58. package/lib/models/Payment.js +18 -18
  59. package/lib/models/Permission.js +54 -54
  60. package/lib/models/Priority.js +14 -14
  61. package/lib/models/Project.js +70 -70
  62. package/lib/models/PublicHostingRequestLog.js +8 -8
  63. package/lib/models/PublicKey.js +78 -78
  64. package/lib/models/RemoteBandwidthSnapshot.js +8 -8
  65. package/lib/models/RemoteServer.js +362 -362
  66. package/lib/models/Request.js +60 -60
  67. package/lib/models/Restore.js +24 -24
  68. package/lib/models/Session.js +21 -21
  69. package/lib/models/SettingsChange.js +8 -8
  70. package/lib/models/SftpActionLog.js +8 -8
  71. package/lib/models/SftpHostKey.js +67 -67
  72. package/lib/models/ShareGroup.js +79 -79
  73. package/lib/models/SiemHttpDestination.js +158 -158
  74. package/lib/models/Site.js +150 -150
  75. package/lib/models/Snapshot.js +85 -85
  76. package/lib/models/SsoStrategy.js +32 -32
  77. package/lib/models/Style.js +48 -48
  78. package/lib/models/SyncLog.js +8 -8
  79. package/lib/models/UsageDailySnapshot.js +8 -8
  80. package/lib/models/UsageSnapshot.js +8 -8
  81. package/lib/models/User.js +223 -215
  82. package/lib/models/UserCipherUse.js +10 -10
  83. package/lib/models/UserLifecycleRule.js +92 -92
  84. package/lib/models/UserRequest.js +56 -56
  85. package/lib/models/UserSftpClientUse.js +10 -10
  86. package/lib/models/WebDavActionLog.js +8 -8
  87. package/lib/models/WebhookTest.js +24 -24
  88. package/package.json +1 -1
  89. package/src/Files.js +1 -1
  90. package/src/models/User.js +6 -0
@@ -281,16 +281,16 @@ var Folder = /*#__PURE__*/(0, _createClass2.default)(function Folder() {
281
281
  });
282
282
  (0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
283
283
  var newObject;
284
- return _regenerator.default.wrap(function _callee$(_context) {
284
+ return _regenerator.default.wrap(function (_context) {
285
285
  while (1) switch (_context.prev = _context.next) {
286
286
  case 0:
287
- _context.next = 2;
287
+ _context.next = 1;
288
288
  return Folder.create(_this.attributes.path, _this.attributes, _this.options);
289
- case 2:
289
+ case 1:
290
290
  newObject = _context.sent;
291
291
  _this.attributes = _objectSpread({}, newObject.attributes);
292
292
  return _context.abrupt("return", true);
293
- case 5:
293
+ case 2:
294
294
  case "end":
295
295
  return _context.stop();
296
296
  }
@@ -328,69 +328,69 @@ var Folder = /*#__PURE__*/(0, _createClass2.default)(function Folder() {
328
328
  response,
329
329
  File,
330
330
  _args2 = arguments;
331
- return _regenerator.default.wrap(function _callee2$(_context2) {
331
+ return _regenerator.default.wrap(function (_context2) {
332
332
  while (1) switch (_context2.prev = _context2.next) {
333
333
  case 0:
334
334
  params = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
335
335
  options = _args2.length > 2 && _args2[2] !== undefined ? _args2[2] : {};
336
336
  if ((0, _utils.isObject)(params)) {
337
- _context2.next = 4;
337
+ _context2.next = 1;
338
338
  break;
339
339
  }
340
340
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
341
- case 4:
341
+ case 1:
342
342
  params.path = path;
343
343
  if (params.path) {
344
- _context2.next = 7;
344
+ _context2.next = 2;
345
345
  break;
346
346
  }
347
347
  throw new errors.MissingParameterError('Parameter missing: path');
348
- case 7:
348
+ case 2:
349
349
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
350
- _context2.next = 9;
350
+ _context2.next = 3;
351
351
  break;
352
352
  }
353
353
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
354
- case 9:
354
+ case 3:
355
355
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
356
- _context2.next = 11;
356
+ _context2.next = 4;
357
357
  break;
358
358
  }
359
359
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
360
- case 11:
360
+ case 4:
361
361
  if (!(params.path && !(0, _utils.isString)(params.path))) {
362
- _context2.next = 13;
362
+ _context2.next = 5;
363
363
  break;
364
364
  }
365
365
  throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
366
- case 13:
366
+ case 5:
367
367
  if (!(params.preview_size && !(0, _utils.isString)(params.preview_size))) {
368
- _context2.next = 15;
368
+ _context2.next = 6;
369
369
  break;
370
370
  }
371
371
  throw new errors.InvalidParameterError("Bad parameter: preview_size must be of type String, received ".concat((0, _utils.getType)(params.preview_size)));
372
- case 15:
372
+ case 6:
373
373
  if (!(params.search && !(0, _utils.isString)(params.search))) {
374
- _context2.next = 17;
374
+ _context2.next = 7;
375
375
  break;
376
376
  }
377
377
  throw new errors.InvalidParameterError("Bad parameter: search must be of type String, received ".concat((0, _utils.getType)(params.search)));
378
- case 17:
378
+ case 7:
379
379
  if (!(params.search_custom_metadata_key && !(0, _utils.isString)(params.search_custom_metadata_key))) {
380
- _context2.next = 19;
380
+ _context2.next = 8;
381
381
  break;
382
382
  }
383
383
  throw new errors.InvalidParameterError("Bad parameter: search_custom_metadata_key must be of type String, received ".concat((0, _utils.getType)(params.search_custom_metadata_key)));
384
- case 19:
385
- _context2.next = 21;
384
+ case 8:
385
+ _context2.next = 9;
386
386
  return _Api.default.sendRequest("/folders/".concat(encodeURIComponent(params.path)), 'GET', params, options);
387
- case 21:
387
+ case 9:
388
388
  response = _context2.sent;
389
389
  File = require('./File.js').default;
390
390
  return _context2.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
391
391
  return new File(obj, options);
392
392
  })) || []);
393
- case 24:
393
+ case 10:
394
394
  case "end":
395
395
  return _context2.stop();
396
396
  }
@@ -411,43 +411,43 @@ var Folder = /*#__PURE__*/(0, _createClass2.default)(function Folder() {
411
411
  response,
412
412
  File,
413
413
  _args3 = arguments;
414
- return _regenerator.default.wrap(function _callee3$(_context3) {
414
+ return _regenerator.default.wrap(function (_context3) {
415
415
  while (1) switch (_context3.prev = _context3.next) {
416
416
  case 0:
417
417
  params = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {};
418
418
  options = _args3.length > 2 && _args3[2] !== undefined ? _args3[2] : {};
419
419
  if ((0, _utils.isObject)(params)) {
420
- _context3.next = 4;
420
+ _context3.next = 1;
421
421
  break;
422
422
  }
423
423
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
424
- case 4:
424
+ case 1:
425
425
  params.path = path;
426
426
  if (params.path) {
427
- _context3.next = 7;
427
+ _context3.next = 2;
428
428
  break;
429
429
  }
430
430
  throw new errors.MissingParameterError('Parameter missing: path');
431
- case 7:
431
+ case 2:
432
432
  if (!(params.path && !(0, _utils.isString)(params.path))) {
433
- _context3.next = 9;
433
+ _context3.next = 3;
434
434
  break;
435
435
  }
436
436
  throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
437
- case 9:
437
+ case 3:
438
438
  if (!(params.provided_mtime && !(0, _utils.isString)(params.provided_mtime))) {
439
- _context3.next = 11;
439
+ _context3.next = 4;
440
440
  break;
441
441
  }
442
442
  throw new errors.InvalidParameterError("Bad parameter: provided_mtime must be of type String, received ".concat((0, _utils.getType)(params.provided_mtime)));
443
- case 11:
444
- _context3.next = 13;
443
+ case 4:
444
+ _context3.next = 5;
445
445
  return _Api.default.sendRequest("/folders/".concat(encodeURIComponent(params.path)), 'POST', params, options);
446
- case 13:
446
+ case 5:
447
447
  response = _context3.sent;
448
448
  File = require('./File.js').default;
449
449
  return _context3.abrupt("return", new File(response === null || response === void 0 ? void 0 : response.data, options));
450
- case 16:
450
+ case 6:
451
451
  case "end":
452
452
  return _context3.stop();
453
453
  }
@@ -105,61 +105,61 @@ var FormFieldSet = /*#__PURE__*/(0, _createClass2.default)(function FormFieldSet
105
105
  var params,
106
106
  response,
107
107
  _args = arguments;
108
- return _regenerator.default.wrap(function _callee$(_context) {
108
+ return _regenerator.default.wrap(function (_context) {
109
109
  while (1) switch (_context.prev = _context.next) {
110
110
  case 0:
111
111
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
112
112
  if (_this.attributes.id) {
113
- _context.next = 3;
113
+ _context.next = 1;
114
114
  break;
115
115
  }
116
116
  throw new errors.EmptyPropertyError('Current object has no id');
117
- case 3:
117
+ case 1:
118
118
  if ((0, _utils.isObject)(params)) {
119
- _context.next = 5;
119
+ _context.next = 2;
120
120
  break;
121
121
  }
122
122
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
123
- case 5:
123
+ case 2:
124
124
  params.id = _this.attributes.id;
125
125
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
126
- _context.next = 8;
126
+ _context.next = 3;
127
127
  break;
128
128
  }
129
129
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
130
- case 8:
130
+ case 3:
131
131
  if (!(params.title && !(0, _utils.isString)(params.title))) {
132
- _context.next = 10;
132
+ _context.next = 4;
133
133
  break;
134
134
  }
135
135
  throw new errors.InvalidParameterError("Bad parameter: title must be of type String, received ".concat((0, _utils.getType)(params.title)));
136
- case 10:
136
+ case 4:
137
137
  if (!(params.form_fields && !(0, _utils.isArray)(params.form_fields))) {
138
- _context.next = 12;
138
+ _context.next = 5;
139
139
  break;
140
140
  }
141
141
  throw new errors.InvalidParameterError("Bad parameter: form_fields must be of type Array, received ".concat((0, _utils.getType)(params.form_fields)));
142
- case 12:
142
+ case 5:
143
143
  if (params.id) {
144
- _context.next = 18;
144
+ _context.next = 7;
145
145
  break;
146
146
  }
147
147
  if (!_this.attributes.id) {
148
- _context.next = 17;
148
+ _context.next = 6;
149
149
  break;
150
150
  }
151
151
  params.id = _this.id;
152
- _context.next = 18;
152
+ _context.next = 7;
153
153
  break;
154
- case 17:
154
+ case 6:
155
155
  throw new errors.MissingParameterError('Parameter missing: id');
156
- case 18:
157
- _context.next = 20;
156
+ case 7:
157
+ _context.next = 8;
158
158
  return _Api.default.sendRequest("/form_field_sets/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
159
- case 20:
159
+ case 8:
160
160
  response = _context.sent;
161
161
  return _context.abrupt("return", new FormFieldSet(response === null || response === void 0 ? void 0 : response.data, _this.options));
162
- case 22:
162
+ case 9:
163
163
  case "end":
164
164
  return _context.stop();
165
165
  }
@@ -168,46 +168,46 @@ var FormFieldSet = /*#__PURE__*/(0, _createClass2.default)(function FormFieldSet
168
168
  (0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
169
169
  var params,
170
170
  _args2 = arguments;
171
- return _regenerator.default.wrap(function _callee2$(_context2) {
171
+ return _regenerator.default.wrap(function (_context2) {
172
172
  while (1) switch (_context2.prev = _context2.next) {
173
173
  case 0:
174
174
  params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
175
175
  if (_this.attributes.id) {
176
- _context2.next = 3;
176
+ _context2.next = 1;
177
177
  break;
178
178
  }
179
179
  throw new errors.EmptyPropertyError('Current object has no id');
180
- case 3:
180
+ case 1:
181
181
  if ((0, _utils.isObject)(params)) {
182
- _context2.next = 5;
182
+ _context2.next = 2;
183
183
  break;
184
184
  }
185
185
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
186
- case 5:
186
+ case 2:
187
187
  params.id = _this.attributes.id;
188
188
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
189
- _context2.next = 8;
189
+ _context2.next = 3;
190
190
  break;
191
191
  }
192
192
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
193
- case 8:
193
+ case 3:
194
194
  if (params.id) {
195
- _context2.next = 14;
195
+ _context2.next = 5;
196
196
  break;
197
197
  }
198
198
  if (!_this.attributes.id) {
199
- _context2.next = 13;
199
+ _context2.next = 4;
200
200
  break;
201
201
  }
202
202
  params.id = _this.id;
203
- _context2.next = 14;
203
+ _context2.next = 5;
204
204
  break;
205
- case 13:
205
+ case 4:
206
206
  throw new errors.MissingParameterError('Parameter missing: id');
207
- case 14:
208
- _context2.next = 16;
207
+ case 5:
208
+ _context2.next = 6;
209
209
  return _Api.default.sendRequest("/form_field_sets/".concat(encodeURIComponent(params.id)), 'DELETE', params, _this.options);
210
- case 16:
210
+ case 6:
211
211
  case "end":
212
212
  return _context2.stop();
213
213
  }
@@ -219,27 +219,27 @@ var FormFieldSet = /*#__PURE__*/(0, _createClass2.default)(function FormFieldSet
219
219
  });
220
220
  (0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
221
221
  var _newObject, newObject;
222
- return _regenerator.default.wrap(function _callee3$(_context3) {
222
+ return _regenerator.default.wrap(function (_context3) {
223
223
  while (1) switch (_context3.prev = _context3.next) {
224
224
  case 0:
225
225
  if (!_this.attributes.id) {
226
- _context3.next = 6;
226
+ _context3.next = 2;
227
227
  break;
228
228
  }
229
- _context3.next = 3;
229
+ _context3.next = 1;
230
230
  return _this.update(_this.attributes);
231
- case 3:
231
+ case 1:
232
232
  _newObject = _context3.sent;
233
233
  _this.attributes = _objectSpread({}, _newObject.attributes);
234
234
  return _context3.abrupt("return", true);
235
- case 6:
236
- _context3.next = 8;
235
+ case 2:
236
+ _context3.next = 3;
237
237
  return FormFieldSet.create(_this.attributes, _this.options);
238
- case 8:
238
+ case 3:
239
239
  newObject = _context3.sent;
240
240
  _this.attributes = _objectSpread({}, newObject.attributes);
241
241
  return _context3.abrupt("return", true);
242
- case 11:
242
+ case 4:
243
243
  case "end":
244
244
  return _context3.stop();
245
245
  }
@@ -269,37 +269,37 @@ _FormFieldSet = FormFieldSet;
269
269
  options,
270
270
  response,
271
271
  _args4 = arguments;
272
- return _regenerator.default.wrap(function _callee4$(_context4) {
272
+ return _regenerator.default.wrap(function (_context4) {
273
273
  while (1) switch (_context4.prev = _context4.next) {
274
274
  case 0:
275
275
  params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
276
276
  options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
277
277
  if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
278
- _context4.next = 4;
278
+ _context4.next = 1;
279
279
  break;
280
280
  }
281
281
  throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
282
- case 4:
282
+ case 1:
283
283
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
284
- _context4.next = 6;
284
+ _context4.next = 2;
285
285
  break;
286
286
  }
287
287
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
288
- case 6:
288
+ case 2:
289
289
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
290
- _context4.next = 8;
290
+ _context4.next = 3;
291
291
  break;
292
292
  }
293
293
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
294
- case 8:
295
- _context4.next = 10;
294
+ case 3:
295
+ _context4.next = 4;
296
296
  return _Api.default.sendRequest('/form_field_sets', 'GET', params, options);
297
- case 10:
297
+ case 4:
298
298
  response = _context4.sent;
299
299
  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) {
300
300
  return new _FormFieldSet(obj, options);
301
301
  })) || []);
302
- case 12:
302
+ case 5:
303
303
  case "end":
304
304
  return _context4.stop();
305
305
  }
@@ -318,36 +318,36 @@ _FormFieldSet = FormFieldSet;
318
318
  options,
319
319
  response,
320
320
  _args5 = arguments;
321
- return _regenerator.default.wrap(function _callee5$(_context5) {
321
+ return _regenerator.default.wrap(function (_context5) {
322
322
  while (1) switch (_context5.prev = _context5.next) {
323
323
  case 0:
324
324
  params = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
325
325
  options = _args5.length > 2 && _args5[2] !== undefined ? _args5[2] : {};
326
326
  if ((0, _utils.isObject)(params)) {
327
- _context5.next = 4;
327
+ _context5.next = 1;
328
328
  break;
329
329
  }
330
330
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
331
- case 4:
331
+ case 1:
332
332
  params.id = id;
333
333
  if (params.id) {
334
- _context5.next = 7;
334
+ _context5.next = 2;
335
335
  break;
336
336
  }
337
337
  throw new errors.MissingParameterError('Parameter missing: id');
338
- case 7:
338
+ case 2:
339
339
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
340
- _context5.next = 9;
340
+ _context5.next = 3;
341
341
  break;
342
342
  }
343
343
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
344
- case 9:
345
- _context5.next = 11;
344
+ case 3:
345
+ _context5.next = 4;
346
346
  return _Api.default.sendRequest("/form_field_sets/".concat(encodeURIComponent(params.id)), 'GET', params, options);
347
- case 11:
347
+ case 4:
348
348
  response = _context5.sent;
349
349
  return _context5.abrupt("return", new _FormFieldSet(response === null || response === void 0 ? void 0 : response.data, options));
350
- case 13:
350
+ case 5:
351
351
  case "end":
352
352
  return _context5.stop();
353
353
  }
@@ -374,35 +374,35 @@ _FormFieldSet = FormFieldSet;
374
374
  options,
375
375
  response,
376
376
  _args6 = arguments;
377
- return _regenerator.default.wrap(function _callee6$(_context6) {
377
+ return _regenerator.default.wrap(function (_context6) {
378
378
  while (1) switch (_context6.prev = _context6.next) {
379
379
  case 0:
380
380
  params = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
381
381
  options = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : {};
382
382
  if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
383
- _context6.next = 4;
383
+ _context6.next = 1;
384
384
  break;
385
385
  }
386
386
  throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
387
- case 4:
387
+ case 1:
388
388
  if (!(params.title && !(0, _utils.isString)(params.title))) {
389
- _context6.next = 6;
389
+ _context6.next = 2;
390
390
  break;
391
391
  }
392
392
  throw new errors.InvalidParameterError("Bad parameter: title must be of type String, received ".concat((0, _utils.getType)(params.title)));
393
- case 6:
393
+ case 2:
394
394
  if (!(params.form_fields && !(0, _utils.isArray)(params.form_fields))) {
395
- _context6.next = 8;
395
+ _context6.next = 3;
396
396
  break;
397
397
  }
398
398
  throw new errors.InvalidParameterError("Bad parameter: form_fields must be of type Array, received ".concat((0, _utils.getType)(params.form_fields)));
399
- case 8:
400
- _context6.next = 10;
399
+ case 3:
400
+ _context6.next = 4;
401
401
  return _Api.default.sendRequest('/form_field_sets', 'POST', params, options);
402
- case 10:
402
+ case 4:
403
403
  response = _context6.sent;
404
404
  return _context6.abrupt("return", new _FormFieldSet(response === null || response === void 0 ? void 0 : response.data, options));
405
- case 12:
405
+ case 5:
406
406
  case "end":
407
407
  return _context6.stop();
408
408
  }
@@ -133,31 +133,31 @@ _FtpActionLog = FtpActionLog;
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('/ftp_action_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 _FtpActionLog(obj, options);
159
159
  })) || []);
160
- case 10:
160
+ case 4:
161
161
  case "end":
162
162
  return _context.stop();
163
163
  }