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
@@ -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
  }
@@ -81,6 +81,13 @@ var FormFieldSet = /*#__PURE__*/(0, _createClass2.default)(function FormFieldSet
81
81
  (0, _defineProperty2.default)(this, "setSkipCompany", function (value) {
82
82
  _this.attributes.skip_company = value;
83
83
  });
84
+ // boolean # Form Field Set is in use by an active Inbox / Bundle / Inbox Registration / Bundle Registration
85
+ (0, _defineProperty2.default)(this, "getInUse", function () {
86
+ return _this.attributes.in_use;
87
+ });
88
+ (0, _defineProperty2.default)(this, "setInUse", function (value) {
89
+ _this.attributes.in_use = value;
90
+ });
84
91
  // int64 # User ID. Provide a value of `0` to operate the current session's user.
85
92
  (0, _defineProperty2.default)(this, "getUserId", function () {
86
93
  return _this.attributes.user_id;
@@ -98,61 +105,61 @@ var FormFieldSet = /*#__PURE__*/(0, _createClass2.default)(function FormFieldSet
98
105
  var params,
99
106
  response,
100
107
  _args = arguments;
101
- return _regenerator.default.wrap(function _callee$(_context) {
108
+ return _regenerator.default.wrap(function (_context) {
102
109
  while (1) switch (_context.prev = _context.next) {
103
110
  case 0:
104
111
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
105
112
  if (_this.attributes.id) {
106
- _context.next = 3;
113
+ _context.next = 1;
107
114
  break;
108
115
  }
109
116
  throw new errors.EmptyPropertyError('Current object has no id');
110
- case 3:
117
+ case 1:
111
118
  if ((0, _utils.isObject)(params)) {
112
- _context.next = 5;
119
+ _context.next = 2;
113
120
  break;
114
121
  }
115
122
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
116
- case 5:
123
+ case 2:
117
124
  params.id = _this.attributes.id;
118
125
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
119
- _context.next = 8;
126
+ _context.next = 3;
120
127
  break;
121
128
  }
122
129
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
123
- case 8:
130
+ case 3:
124
131
  if (!(params.title && !(0, _utils.isString)(params.title))) {
125
- _context.next = 10;
132
+ _context.next = 4;
126
133
  break;
127
134
  }
128
135
  throw new errors.InvalidParameterError("Bad parameter: title must be of type String, received ".concat((0, _utils.getType)(params.title)));
129
- case 10:
136
+ case 4:
130
137
  if (!(params.form_fields && !(0, _utils.isArray)(params.form_fields))) {
131
- _context.next = 12;
138
+ _context.next = 5;
132
139
  break;
133
140
  }
134
141
  throw new errors.InvalidParameterError("Bad parameter: form_fields must be of type Array, received ".concat((0, _utils.getType)(params.form_fields)));
135
- case 12:
142
+ case 5:
136
143
  if (params.id) {
137
- _context.next = 18;
144
+ _context.next = 7;
138
145
  break;
139
146
  }
140
147
  if (!_this.attributes.id) {
141
- _context.next = 17;
148
+ _context.next = 6;
142
149
  break;
143
150
  }
144
151
  params.id = _this.id;
145
- _context.next = 18;
152
+ _context.next = 7;
146
153
  break;
147
- case 17:
154
+ case 6:
148
155
  throw new errors.MissingParameterError('Parameter missing: id');
149
- case 18:
150
- _context.next = 20;
156
+ case 7:
157
+ _context.next = 8;
151
158
  return _Api.default.sendRequest("/form_field_sets/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
152
- case 20:
159
+ case 8:
153
160
  response = _context.sent;
154
161
  return _context.abrupt("return", new FormFieldSet(response === null || response === void 0 ? void 0 : response.data, _this.options));
155
- case 22:
162
+ case 9:
156
163
  case "end":
157
164
  return _context.stop();
158
165
  }
@@ -161,46 +168,46 @@ var FormFieldSet = /*#__PURE__*/(0, _createClass2.default)(function FormFieldSet
161
168
  (0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
162
169
  var params,
163
170
  _args2 = arguments;
164
- return _regenerator.default.wrap(function _callee2$(_context2) {
171
+ return _regenerator.default.wrap(function (_context2) {
165
172
  while (1) switch (_context2.prev = _context2.next) {
166
173
  case 0:
167
174
  params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
168
175
  if (_this.attributes.id) {
169
- _context2.next = 3;
176
+ _context2.next = 1;
170
177
  break;
171
178
  }
172
179
  throw new errors.EmptyPropertyError('Current object has no id');
173
- case 3:
180
+ case 1:
174
181
  if ((0, _utils.isObject)(params)) {
175
- _context2.next = 5;
182
+ _context2.next = 2;
176
183
  break;
177
184
  }
178
185
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
179
- case 5:
186
+ case 2:
180
187
  params.id = _this.attributes.id;
181
188
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
182
- _context2.next = 8;
189
+ _context2.next = 3;
183
190
  break;
184
191
  }
185
192
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
186
- case 8:
193
+ case 3:
187
194
  if (params.id) {
188
- _context2.next = 14;
195
+ _context2.next = 5;
189
196
  break;
190
197
  }
191
198
  if (!_this.attributes.id) {
192
- _context2.next = 13;
199
+ _context2.next = 4;
193
200
  break;
194
201
  }
195
202
  params.id = _this.id;
196
- _context2.next = 14;
203
+ _context2.next = 5;
197
204
  break;
198
- case 13:
205
+ case 4:
199
206
  throw new errors.MissingParameterError('Parameter missing: id');
200
- case 14:
201
- _context2.next = 16;
207
+ case 5:
208
+ _context2.next = 6;
202
209
  return _Api.default.sendRequest("/form_field_sets/".concat(encodeURIComponent(params.id)), 'DELETE', params, _this.options);
203
- case 16:
210
+ case 6:
204
211
  case "end":
205
212
  return _context2.stop();
206
213
  }
@@ -212,27 +219,27 @@ var FormFieldSet = /*#__PURE__*/(0, _createClass2.default)(function FormFieldSet
212
219
  });
213
220
  (0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
214
221
  var _newObject, newObject;
215
- return _regenerator.default.wrap(function _callee3$(_context3) {
222
+ return _regenerator.default.wrap(function (_context3) {
216
223
  while (1) switch (_context3.prev = _context3.next) {
217
224
  case 0:
218
225
  if (!_this.attributes.id) {
219
- _context3.next = 6;
226
+ _context3.next = 2;
220
227
  break;
221
228
  }
222
- _context3.next = 3;
229
+ _context3.next = 1;
223
230
  return _this.update(_this.attributes);
224
- case 3:
231
+ case 1:
225
232
  _newObject = _context3.sent;
226
233
  _this.attributes = _objectSpread({}, _newObject.attributes);
227
234
  return _context3.abrupt("return", true);
228
- case 6:
229
- _context3.next = 8;
235
+ case 2:
236
+ _context3.next = 3;
230
237
  return FormFieldSet.create(_this.attributes, _this.options);
231
- case 8:
238
+ case 3:
232
239
  newObject = _context3.sent;
233
240
  _this.attributes = _objectSpread({}, newObject.attributes);
234
241
  return _context3.abrupt("return", true);
235
- case 11:
242
+ case 4:
236
243
  case "end":
237
244
  return _context3.stop();
238
245
  }
@@ -262,37 +269,37 @@ _FormFieldSet = FormFieldSet;
262
269
  options,
263
270
  response,
264
271
  _args4 = arguments;
265
- return _regenerator.default.wrap(function _callee4$(_context4) {
272
+ return _regenerator.default.wrap(function (_context4) {
266
273
  while (1) switch (_context4.prev = _context4.next) {
267
274
  case 0:
268
275
  params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
269
276
  options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
270
277
  if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
271
- _context4.next = 4;
278
+ _context4.next = 1;
272
279
  break;
273
280
  }
274
281
  throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
275
- case 4:
282
+ case 1:
276
283
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
277
- _context4.next = 6;
284
+ _context4.next = 2;
278
285
  break;
279
286
  }
280
287
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
281
- case 6:
288
+ case 2:
282
289
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
283
- _context4.next = 8;
290
+ _context4.next = 3;
284
291
  break;
285
292
  }
286
293
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
287
- case 8:
288
- _context4.next = 10;
294
+ case 3:
295
+ _context4.next = 4;
289
296
  return _Api.default.sendRequest('/form_field_sets', 'GET', params, options);
290
- case 10:
297
+ case 4:
291
298
  response = _context4.sent;
292
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) {
293
300
  return new _FormFieldSet(obj, options);
294
301
  })) || []);
295
- case 12:
302
+ case 5:
296
303
  case "end":
297
304
  return _context4.stop();
298
305
  }
@@ -311,36 +318,36 @@ _FormFieldSet = FormFieldSet;
311
318
  options,
312
319
  response,
313
320
  _args5 = arguments;
314
- return _regenerator.default.wrap(function _callee5$(_context5) {
321
+ return _regenerator.default.wrap(function (_context5) {
315
322
  while (1) switch (_context5.prev = _context5.next) {
316
323
  case 0:
317
324
  params = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
318
325
  options = _args5.length > 2 && _args5[2] !== undefined ? _args5[2] : {};
319
326
  if ((0, _utils.isObject)(params)) {
320
- _context5.next = 4;
327
+ _context5.next = 1;
321
328
  break;
322
329
  }
323
330
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
324
- case 4:
331
+ case 1:
325
332
  params.id = id;
326
333
  if (params.id) {
327
- _context5.next = 7;
334
+ _context5.next = 2;
328
335
  break;
329
336
  }
330
337
  throw new errors.MissingParameterError('Parameter missing: id');
331
- case 7:
338
+ case 2:
332
339
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
333
- _context5.next = 9;
340
+ _context5.next = 3;
334
341
  break;
335
342
  }
336
343
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
337
- case 9:
338
- _context5.next = 11;
344
+ case 3:
345
+ _context5.next = 4;
339
346
  return _Api.default.sendRequest("/form_field_sets/".concat(encodeURIComponent(params.id)), 'GET', params, options);
340
- case 11:
347
+ case 4:
341
348
  response = _context5.sent;
342
349
  return _context5.abrupt("return", new _FormFieldSet(response === null || response === void 0 ? void 0 : response.data, options));
343
- case 13:
350
+ case 5:
344
351
  case "end":
345
352
  return _context5.stop();
346
353
  }
@@ -367,35 +374,35 @@ _FormFieldSet = FormFieldSet;
367
374
  options,
368
375
  response,
369
376
  _args6 = arguments;
370
- return _regenerator.default.wrap(function _callee6$(_context6) {
377
+ return _regenerator.default.wrap(function (_context6) {
371
378
  while (1) switch (_context6.prev = _context6.next) {
372
379
  case 0:
373
380
  params = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
374
381
  options = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : {};
375
382
  if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
376
- _context6.next = 4;
383
+ _context6.next = 1;
377
384
  break;
378
385
  }
379
386
  throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
380
- case 4:
387
+ case 1:
381
388
  if (!(params.title && !(0, _utils.isString)(params.title))) {
382
- _context6.next = 6;
389
+ _context6.next = 2;
383
390
  break;
384
391
  }
385
392
  throw new errors.InvalidParameterError("Bad parameter: title must be of type String, received ".concat((0, _utils.getType)(params.title)));
386
- case 6:
393
+ case 2:
387
394
  if (!(params.form_fields && !(0, _utils.isArray)(params.form_fields))) {
388
- _context6.next = 8;
395
+ _context6.next = 3;
389
396
  break;
390
397
  }
391
398
  throw new errors.InvalidParameterError("Bad parameter: form_fields must be of type Array, received ".concat((0, _utils.getType)(params.form_fields)));
392
- case 8:
393
- _context6.next = 10;
399
+ case 3:
400
+ _context6.next = 4;
394
401
  return _Api.default.sendRequest('/form_field_sets', 'POST', params, options);
395
- case 10:
402
+ case 4:
396
403
  response = _context6.sent;
397
404
  return _context6.abrupt("return", new _FormFieldSet(response === null || response === void 0 ? void 0 : response.data, options));
398
- case 12:
405
+ case 5:
399
406
  case "end":
400
407
  return _context6.stop();
401
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
  }