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