files.com 1.0.236 → 1.0.237

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 (69) hide show
  1. package/_VERSION +1 -1
  2. package/docs/models/BundleNotification.md +35 -0
  3. package/lib/Api.js +153 -159
  4. package/lib/isomorphic/File.node.js +24 -28
  5. package/lib/models/ActionNotificationExport.js +97 -101
  6. package/lib/models/ActionNotificationExportResult.js +44 -46
  7. package/lib/models/ActionWebhookFailure.js +42 -44
  8. package/lib/models/ApiKey.js +271 -287
  9. package/lib/models/App.js +26 -28
  10. package/lib/models/As2IncomingMessage.js +32 -34
  11. package/lib/models/As2OutgoingMessage.js +32 -34
  12. package/lib/models/As2Partner.js +231 -241
  13. package/lib/models/As2Station.js +219 -229
  14. package/lib/models/Automation.js +333 -343
  15. package/lib/models/AutomationRun.js +75 -79
  16. package/lib/models/BandwidthSnapshot.js +26 -28
  17. package/lib/models/Behavior.js +323 -337
  18. package/lib/models/Bundle.js +375 -387
  19. package/lib/models/BundleDownload.js +38 -40
  20. package/lib/models/BundleNotification.js +223 -173
  21. package/lib/models/BundleRecipient.js +104 -108
  22. package/lib/models/BundleRegistration.js +38 -40
  23. package/lib/models/Clickwrap.js +213 -223
  24. package/lib/models/DnsRecord.js +26 -28
  25. package/lib/models/ExternalEvent.js +93 -99
  26. package/lib/models/File.js +726 -766
  27. package/lib/models/FileComment.js +180 -188
  28. package/lib/models/FileCommentReaction.js +84 -88
  29. package/lib/models/FileMigration.js +31 -33
  30. package/lib/models/Folder.js +94 -98
  31. package/lib/models/FormFieldSet.js +189 -199
  32. package/lib/models/Group.js +207 -217
  33. package/lib/models/GroupUser.js +230 -238
  34. package/lib/models/History.js +266 -276
  35. package/lib/models/HistoryExport.js +175 -179
  36. package/lib/models/HistoryExportResult.js +44 -46
  37. package/lib/models/InboxRecipient.js +104 -108
  38. package/lib/models/InboxRegistration.js +32 -34
  39. package/lib/models/InboxUpload.js +38 -40
  40. package/lib/models/Invoice.js +57 -61
  41. package/lib/models/IpAddress.js +78 -84
  42. package/lib/models/Lock.js +148 -154
  43. package/lib/models/Message.js +267 -277
  44. package/lib/models/MessageComment.js +207 -217
  45. package/lib/models/MessageCommentReaction.js +147 -155
  46. package/lib/models/MessageReaction.js +147 -155
  47. package/lib/models/Notification.js +255 -265
  48. package/lib/models/Payment.js +57 -61
  49. package/lib/models/Permission.js +128 -134
  50. package/lib/models/Priority.js +45 -47
  51. package/lib/models/Project.js +183 -193
  52. package/lib/models/PublicKey.js +207 -217
  53. package/lib/models/RemoteBandwidthSnapshot.js +26 -28
  54. package/lib/models/RemoteServer.js +805 -819
  55. package/lib/models/Request.js +166 -174
  56. package/lib/models/Session.js +47 -51
  57. package/lib/models/SettingsChange.js +26 -28
  58. package/lib/models/SftpHostKey.js +177 -187
  59. package/lib/models/Site.js +412 -418
  60. package/lib/models/SsoStrategy.js +99 -105
  61. package/lib/models/Style.js +127 -133
  62. package/lib/models/UsageDailySnapshot.js +26 -28
  63. package/lib/models/UsageSnapshot.js +26 -28
  64. package/lib/models/User.js +587 -603
  65. package/lib/models/UserCipherUse.js +32 -34
  66. package/lib/models/UserRequest.js +147 -155
  67. package/lib/models/WebhookTest.js +54 -56
  68. package/package.json +1 -1
  69. package/src/models/BundleNotification.js +39 -1
@@ -132,76 +132,74 @@ var As2Station = /*#__PURE__*/(0, _createClass2.default)(function As2Station() {
132
132
  response,
133
133
  _args = arguments;
134
134
  return _regenerator.default.wrap(function _callee$(_context) {
135
- while (1) {
136
- switch (_context.prev = _context.next) {
137
- case 0:
138
- params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
139
- if (_this.attributes.id) {
140
- _context.next = 3;
141
- break;
142
- }
143
- throw new errors.EmptyPropertyError('Current object has no id');
144
- case 3:
145
- if ((0, _utils.isObject)(params)) {
146
- _context.next = 5;
147
- break;
148
- }
149
- throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
150
- case 5:
151
- params.id = _this.attributes.id;
152
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
153
- _context.next = 8;
154
- break;
155
- }
156
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(id)));
157
- case 8:
158
- if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
159
- _context.next = 10;
160
- break;
161
- }
162
- throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(name)));
163
- case 10:
164
- if (!(params['public_certificate'] && !(0, _utils.isString)(params['public_certificate']))) {
165
- _context.next = 12;
166
- break;
167
- }
168
- throw new errors.InvalidParameterError("Bad parameter: public_certificate must be of type String, received ".concat((0, _utils.getType)(public_certificate)));
169
- case 12:
170
- if (!(params['private_key'] && !(0, _utils.isString)(params['private_key']))) {
171
- _context.next = 14;
172
- break;
173
- }
174
- throw new errors.InvalidParameterError("Bad parameter: private_key must be of type String, received ".concat((0, _utils.getType)(private_key)));
175
- case 14:
176
- if (!(params['private_key_password'] && !(0, _utils.isString)(params['private_key_password']))) {
177
- _context.next = 16;
178
- break;
179
- }
180
- throw new errors.InvalidParameterError("Bad parameter: private_key_password must be of type String, received ".concat((0, _utils.getType)(private_key_password)));
181
- case 16:
182
- if (params['id']) {
183
- _context.next = 22;
184
- break;
185
- }
186
- if (!_this.attributes.id) {
187
- _context.next = 21;
188
- break;
189
- }
190
- params['id'] = _this.id;
135
+ while (1) switch (_context.prev = _context.next) {
136
+ case 0:
137
+ params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
138
+ if (_this.attributes.id) {
139
+ _context.next = 3;
140
+ break;
141
+ }
142
+ throw new errors.EmptyPropertyError('Current object has no id');
143
+ case 3:
144
+ if ((0, _utils.isObject)(params)) {
145
+ _context.next = 5;
146
+ break;
147
+ }
148
+ throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
149
+ case 5:
150
+ params.id = _this.attributes.id;
151
+ if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
152
+ _context.next = 8;
153
+ break;
154
+ }
155
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(id)));
156
+ case 8:
157
+ if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
158
+ _context.next = 10;
159
+ break;
160
+ }
161
+ throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(name)));
162
+ case 10:
163
+ if (!(params['public_certificate'] && !(0, _utils.isString)(params['public_certificate']))) {
164
+ _context.next = 12;
165
+ break;
166
+ }
167
+ throw new errors.InvalidParameterError("Bad parameter: public_certificate must be of type String, received ".concat((0, _utils.getType)(public_certificate)));
168
+ case 12:
169
+ if (!(params['private_key'] && !(0, _utils.isString)(params['private_key']))) {
170
+ _context.next = 14;
171
+ break;
172
+ }
173
+ throw new errors.InvalidParameterError("Bad parameter: private_key must be of type String, received ".concat((0, _utils.getType)(private_key)));
174
+ case 14:
175
+ if (!(params['private_key_password'] && !(0, _utils.isString)(params['private_key_password']))) {
176
+ _context.next = 16;
177
+ break;
178
+ }
179
+ throw new errors.InvalidParameterError("Bad parameter: private_key_password must be of type String, received ".concat((0, _utils.getType)(private_key_password)));
180
+ case 16:
181
+ if (params['id']) {
191
182
  _context.next = 22;
192
183
  break;
193
- case 21:
194
- throw new errors.MissingParameterError('Parameter missing: id');
195
- case 22:
196
- _context.next = 24;
197
- return _Api.default.sendRequest("/as2_stations/".concat(encodeURIComponent(params['id'])), 'PATCH', params, _this.options);
198
- case 24:
199
- response = _context.sent;
200
- return _context.abrupt("return", new As2Station(response === null || response === void 0 ? void 0 : response.data, _this.options));
201
- case 26:
202
- case "end":
203
- return _context.stop();
204
- }
184
+ }
185
+ if (!_this.attributes.id) {
186
+ _context.next = 21;
187
+ break;
188
+ }
189
+ params['id'] = _this.id;
190
+ _context.next = 22;
191
+ break;
192
+ case 21:
193
+ throw new errors.MissingParameterError('Parameter missing: id');
194
+ case 22:
195
+ _context.next = 24;
196
+ return _Api.default.sendRequest("/as2_stations/".concat(encodeURIComponent(params['id'])), 'PATCH', params, _this.options);
197
+ case 24:
198
+ response = _context.sent;
199
+ return _context.abrupt("return", new As2Station(response === null || response === void 0 ? void 0 : response.data, _this.options));
200
+ case 26:
201
+ case "end":
202
+ return _context.stop();
205
203
  }
206
204
  }, _callee);
207
205
  })));
@@ -210,52 +208,50 @@ var As2Station = /*#__PURE__*/(0, _createClass2.default)(function As2Station() {
210
208
  response,
211
209
  _args2 = arguments;
212
210
  return _regenerator.default.wrap(function _callee2$(_context2) {
213
- while (1) {
214
- switch (_context2.prev = _context2.next) {
215
- case 0:
216
- params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
217
- if (_this.attributes.id) {
218
- _context2.next = 3;
219
- break;
220
- }
221
- throw new errors.EmptyPropertyError('Current object has no id');
222
- case 3:
223
- if ((0, _utils.isObject)(params)) {
224
- _context2.next = 5;
225
- break;
226
- }
227
- throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
228
- case 5:
229
- params.id = _this.attributes.id;
230
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
231
- _context2.next = 8;
232
- break;
233
- }
234
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(id)));
235
- case 8:
236
- if (params['id']) {
237
- _context2.next = 14;
238
- break;
239
- }
240
- if (!_this.attributes.id) {
241
- _context2.next = 13;
242
- break;
243
- }
244
- params['id'] = _this.id;
211
+ while (1) switch (_context2.prev = _context2.next) {
212
+ case 0:
213
+ params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
214
+ if (_this.attributes.id) {
215
+ _context2.next = 3;
216
+ break;
217
+ }
218
+ throw new errors.EmptyPropertyError('Current object has no id');
219
+ case 3:
220
+ if ((0, _utils.isObject)(params)) {
221
+ _context2.next = 5;
222
+ break;
223
+ }
224
+ throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
225
+ case 5:
226
+ params.id = _this.attributes.id;
227
+ if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
228
+ _context2.next = 8;
229
+ break;
230
+ }
231
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(id)));
232
+ case 8:
233
+ if (params['id']) {
245
234
  _context2.next = 14;
246
235
  break;
247
- case 13:
248
- throw new errors.MissingParameterError('Parameter missing: id');
249
- case 14:
250
- _context2.next = 16;
251
- return _Api.default.sendRequest("/as2_stations/".concat(encodeURIComponent(params['id'])), 'DELETE', params, _this.options);
252
- case 16:
253
- response = _context2.sent;
254
- return _context2.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
255
- case 18:
256
- case "end":
257
- return _context2.stop();
258
- }
236
+ }
237
+ if (!_this.attributes.id) {
238
+ _context2.next = 13;
239
+ break;
240
+ }
241
+ params['id'] = _this.id;
242
+ _context2.next = 14;
243
+ break;
244
+ case 13:
245
+ throw new errors.MissingParameterError('Parameter missing: id');
246
+ case 14:
247
+ _context2.next = 16;
248
+ return _Api.default.sendRequest("/as2_stations/".concat(encodeURIComponent(params['id'])), 'DELETE', params, _this.options);
249
+ case 16:
250
+ response = _context2.sent;
251
+ return _context2.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
252
+ case 18:
253
+ case "end":
254
+ return _context2.stop();
259
255
  }
260
256
  }, _callee2);
261
257
  })));
@@ -292,34 +288,32 @@ var As2Station = /*#__PURE__*/(0, _createClass2.default)(function As2Station() {
292
288
  response,
293
289
  _args3 = arguments;
294
290
  return _regenerator.default.wrap(function _callee3$(_context3) {
295
- while (1) {
296
- switch (_context3.prev = _context3.next) {
297
- case 0:
298
- params = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
299
- options = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {};
300
- if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
301
- _context3.next = 4;
302
- break;
303
- }
304
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
305
- case 4:
306
- if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
307
- _context3.next = 6;
308
- break;
309
- }
310
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
311
- case 6:
312
- _context3.next = 8;
313
- return _Api.default.sendRequest("/as2_stations", 'GET', params, options);
314
- case 8:
315
- response = _context3.sent;
316
- return _context3.abrupt("return", (response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
317
- return new As2Station(obj, options);
318
- })) || []);
319
- case 10:
320
- case "end":
321
- return _context3.stop();
322
- }
291
+ while (1) switch (_context3.prev = _context3.next) {
292
+ case 0:
293
+ params = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
294
+ options = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {};
295
+ if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
296
+ _context3.next = 4;
297
+ break;
298
+ }
299
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
300
+ case 4:
301
+ if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
302
+ _context3.next = 6;
303
+ break;
304
+ }
305
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
306
+ case 6:
307
+ _context3.next = 8;
308
+ return _Api.default.sendRequest("/as2_stations", 'GET', params, options);
309
+ case 8:
310
+ response = _context3.sent;
311
+ return _context3.abrupt("return", (response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
312
+ return new As2Station(obj, options);
313
+ })) || []);
314
+ case 10:
315
+ case "end":
316
+ return _context3.stop();
323
317
  }
324
318
  }, _callee3);
325
319
  })));
@@ -335,39 +329,37 @@ var As2Station = /*#__PURE__*/(0, _createClass2.default)(function As2Station() {
335
329
  response,
336
330
  _args4 = arguments;
337
331
  return _regenerator.default.wrap(function _callee4$(_context4) {
338
- while (1) {
339
- switch (_context4.prev = _context4.next) {
340
- case 0:
341
- params = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
342
- options = _args4.length > 2 && _args4[2] !== undefined ? _args4[2] : {};
343
- if ((0, _utils.isObject)(params)) {
344
- _context4.next = 4;
345
- break;
346
- }
347
- throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
348
- case 4:
349
- params['id'] = id;
350
- if (params['id']) {
351
- _context4.next = 7;
352
- break;
353
- }
354
- throw new errors.MissingParameterError('Parameter missing: id');
355
- case 7:
356
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
357
- _context4.next = 9;
358
- break;
359
- }
360
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
361
- case 9:
362
- _context4.next = 11;
363
- return _Api.default.sendRequest("/as2_stations/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
364
- case 11:
365
- response = _context4.sent;
366
- return _context4.abrupt("return", new As2Station(response === null || response === void 0 ? void 0 : response.data, options));
367
- case 13:
368
- case "end":
369
- return _context4.stop();
370
- }
332
+ while (1) switch (_context4.prev = _context4.next) {
333
+ case 0:
334
+ params = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
335
+ options = _args4.length > 2 && _args4[2] !== undefined ? _args4[2] : {};
336
+ if ((0, _utils.isObject)(params)) {
337
+ _context4.next = 4;
338
+ break;
339
+ }
340
+ throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
341
+ case 4:
342
+ params['id'] = id;
343
+ if (params['id']) {
344
+ _context4.next = 7;
345
+ break;
346
+ }
347
+ throw new errors.MissingParameterError('Parameter missing: id');
348
+ case 7:
349
+ if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
350
+ _context4.next = 9;
351
+ break;
352
+ }
353
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
354
+ case 9:
355
+ _context4.next = 11;
356
+ return _Api.default.sendRequest("/as2_stations/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
357
+ case 11:
358
+ response = _context4.sent;
359
+ return _context4.abrupt("return", new As2Station(response === null || response === void 0 ? void 0 : response.data, options));
360
+ case 13:
361
+ case "end":
362
+ return _context4.stop();
371
363
  }
372
364
  }, _callee4);
373
365
  }));
@@ -386,62 +378,60 @@ var As2Station = /*#__PURE__*/(0, _createClass2.default)(function As2Station() {
386
378
  response,
387
379
  _args5 = arguments;
388
380
  return _regenerator.default.wrap(function _callee5$(_context5) {
389
- while (1) {
390
- switch (_context5.prev = _context5.next) {
391
- case 0:
392
- params = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
393
- options = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
394
- if (params['name']) {
395
- _context5.next = 4;
396
- break;
397
- }
398
- throw new errors.MissingParameterError('Parameter missing: name');
399
- case 4:
400
- if (params['public_certificate']) {
401
- _context5.next = 6;
402
- break;
403
- }
404
- throw new errors.MissingParameterError('Parameter missing: public_certificate');
405
- case 6:
406
- if (params['private_key']) {
407
- _context5.next = 8;
408
- break;
409
- }
410
- throw new errors.MissingParameterError('Parameter missing: private_key');
411
- case 8:
412
- if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
413
- _context5.next = 10;
414
- break;
415
- }
416
- throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params['name'])));
417
- case 10:
418
- if (!(params['public_certificate'] && !(0, _utils.isString)(params['public_certificate']))) {
419
- _context5.next = 12;
420
- break;
421
- }
422
- throw new errors.InvalidParameterError("Bad parameter: public_certificate must be of type String, received ".concat((0, _utils.getType)(params['public_certificate'])));
423
- case 12:
424
- if (!(params['private_key'] && !(0, _utils.isString)(params['private_key']))) {
425
- _context5.next = 14;
426
- break;
427
- }
428
- throw new errors.InvalidParameterError("Bad parameter: private_key must be of type String, received ".concat((0, _utils.getType)(params['private_key'])));
429
- case 14:
430
- if (!(params['private_key_password'] && !(0, _utils.isString)(params['private_key_password']))) {
431
- _context5.next = 16;
432
- break;
433
- }
434
- throw new errors.InvalidParameterError("Bad parameter: private_key_password must be of type String, received ".concat((0, _utils.getType)(params['private_key_password'])));
435
- case 16:
436
- _context5.next = 18;
437
- return _Api.default.sendRequest("/as2_stations", 'POST', params, options);
438
- case 18:
439
- response = _context5.sent;
440
- return _context5.abrupt("return", new As2Station(response === null || response === void 0 ? void 0 : response.data, options));
441
- case 20:
442
- case "end":
443
- return _context5.stop();
444
- }
381
+ while (1) switch (_context5.prev = _context5.next) {
382
+ case 0:
383
+ params = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
384
+ options = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
385
+ if (params['name']) {
386
+ _context5.next = 4;
387
+ break;
388
+ }
389
+ throw new errors.MissingParameterError('Parameter missing: name');
390
+ case 4:
391
+ if (params['public_certificate']) {
392
+ _context5.next = 6;
393
+ break;
394
+ }
395
+ throw new errors.MissingParameterError('Parameter missing: public_certificate');
396
+ case 6:
397
+ if (params['private_key']) {
398
+ _context5.next = 8;
399
+ break;
400
+ }
401
+ throw new errors.MissingParameterError('Parameter missing: private_key');
402
+ case 8:
403
+ if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
404
+ _context5.next = 10;
405
+ break;
406
+ }
407
+ throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params['name'])));
408
+ case 10:
409
+ if (!(params['public_certificate'] && !(0, _utils.isString)(params['public_certificate']))) {
410
+ _context5.next = 12;
411
+ break;
412
+ }
413
+ throw new errors.InvalidParameterError("Bad parameter: public_certificate must be of type String, received ".concat((0, _utils.getType)(params['public_certificate'])));
414
+ case 12:
415
+ if (!(params['private_key'] && !(0, _utils.isString)(params['private_key']))) {
416
+ _context5.next = 14;
417
+ break;
418
+ }
419
+ throw new errors.InvalidParameterError("Bad parameter: private_key must be of type String, received ".concat((0, _utils.getType)(params['private_key'])));
420
+ case 14:
421
+ if (!(params['private_key_password'] && !(0, _utils.isString)(params['private_key_password']))) {
422
+ _context5.next = 16;
423
+ break;
424
+ }
425
+ throw new errors.InvalidParameterError("Bad parameter: private_key_password must be of type String, received ".concat((0, _utils.getType)(params['private_key_password'])));
426
+ case 16:
427
+ _context5.next = 18;
428
+ return _Api.default.sendRequest("/as2_stations", 'POST', params, options);
429
+ case 18:
430
+ response = _context5.sent;
431
+ return _context5.abrupt("return", new As2Station(response === null || response === void 0 ? void 0 : response.data, options));
432
+ case 20:
433
+ case "end":
434
+ return _context5.stop();
445
435
  }
446
436
  }, _callee5);
447
437
  })));