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.
- package/_VERSION +1 -1
- package/docs/models/User.md +4 -1
- package/lib/Api.js +72 -71
- package/lib/Files.js +1 -1
- package/lib/isomorphic/File.node.js +5 -5
- package/lib/models/ActionNotificationExport.js +38 -38
- package/lib/models/ActionNotificationExportResult.js +14 -14
- package/lib/models/ApiKey.js +100 -100
- package/lib/models/ApiRequestLog.js +8 -8
- package/lib/models/App.js +8 -8
- package/lib/models/As2IncomingMessage.js +10 -10
- package/lib/models/As2OutgoingMessage.js +10 -10
- package/lib/models/As2Partner.js +101 -101
- package/lib/models/As2Station.js +81 -81
- package/lib/models/Automation.js +167 -167
- package/lib/models/AutomationLog.js +8 -8
- package/lib/models/AutomationRun.js +24 -24
- package/lib/models/BandwidthSnapshot.js +8 -8
- package/lib/models/Behavior.js +106 -106
- package/lib/models/Bundle.js +143 -143
- package/lib/models/BundleAction.js +10 -10
- package/lib/models/BundleDownload.js +12 -12
- package/lib/models/BundleNotification.js +69 -69
- package/lib/models/BundleRecipient.js +40 -40
- package/lib/models/BundleRegistration.js +12 -12
- package/lib/models/Clickwrap.js +79 -79
- package/lib/models/DnsRecord.js +8 -8
- package/lib/models/EmailIncomingMessage.js +8 -8
- package/lib/models/EmailLog.js +8 -8
- package/lib/models/ExavaultApiRequestLog.js +8 -8
- package/lib/models/ExternalEvent.js +36 -36
- package/lib/models/File.js +269 -269
- package/lib/models/FileComment.js +70 -70
- package/lib/models/FileCommentReaction.js +34 -34
- package/lib/models/FileMigration.js +10 -10
- package/lib/models/FileMigrationLog.js +8 -8
- package/lib/models/Folder.js +36 -36
- package/lib/models/FormFieldSet.js +71 -71
- package/lib/models/FtpActionLog.js +8 -8
- package/lib/models/GpgKey.js +81 -81
- package/lib/models/Group.js +83 -83
- package/lib/models/GroupUser.js +89 -89
- package/lib/models/History.js +88 -88
- package/lib/models/HistoryExport.js +64 -64
- package/lib/models/HistoryExportResult.js +14 -14
- package/lib/models/InboxRecipient.js +36 -36
- package/lib/models/InboxRegistration.js +10 -10
- package/lib/models/InboxUpload.js +8 -8
- package/lib/models/Invoice.js +18 -18
- package/lib/models/IpAddress.js +32 -32
- package/lib/models/Lock.js +51 -51
- package/lib/models/Message.js +100 -100
- package/lib/models/MessageComment.js +78 -78
- package/lib/models/MessageCommentReaction.js +54 -54
- package/lib/models/MessageReaction.js +54 -54
- package/lib/models/Notification.js +91 -91
- package/lib/models/OutboundConnectionLog.js +8 -8
- package/lib/models/Payment.js +18 -18
- package/lib/models/Permission.js +54 -54
- package/lib/models/Priority.js +14 -14
- package/lib/models/Project.js +70 -70
- package/lib/models/PublicHostingRequestLog.js +8 -8
- package/lib/models/PublicKey.js +78 -78
- package/lib/models/RemoteBandwidthSnapshot.js +8 -8
- package/lib/models/RemoteServer.js +362 -362
- package/lib/models/Request.js +60 -60
- package/lib/models/Restore.js +24 -24
- package/lib/models/Session.js +21 -21
- package/lib/models/SettingsChange.js +8 -8
- package/lib/models/SftpActionLog.js +8 -8
- package/lib/models/SftpHostKey.js +67 -67
- package/lib/models/ShareGroup.js +79 -79
- package/lib/models/SiemHttpDestination.js +158 -158
- package/lib/models/Site.js +150 -150
- package/lib/models/Snapshot.js +85 -85
- package/lib/models/SsoStrategy.js +32 -32
- package/lib/models/Style.js +48 -48
- package/lib/models/SyncLog.js +8 -8
- package/lib/models/UsageDailySnapshot.js +8 -8
- package/lib/models/UsageSnapshot.js +8 -8
- package/lib/models/User.js +223 -215
- package/lib/models/UserCipherUse.js +10 -10
- package/lib/models/UserLifecycleRule.js +92 -92
- package/lib/models/UserRequest.js +56 -56
- package/lib/models/UserSftpClientUse.js +10 -10
- package/lib/models/WebDavActionLog.js +8 -8
- package/lib/models/WebhookTest.js +24 -24
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/User.js +6 -0
package/lib/models/As2Partner.js
CHANGED
|
@@ -180,97 +180,97 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
|
|
|
180
180
|
var params,
|
|
181
181
|
response,
|
|
182
182
|
_args = arguments;
|
|
183
|
-
return _regenerator.default.wrap(function
|
|
183
|
+
return _regenerator.default.wrap(function (_context) {
|
|
184
184
|
while (1) switch (_context.prev = _context.next) {
|
|
185
185
|
case 0:
|
|
186
186
|
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
187
187
|
if (_this.attributes.id) {
|
|
188
|
-
_context.next =
|
|
188
|
+
_context.next = 1;
|
|
189
189
|
break;
|
|
190
190
|
}
|
|
191
191
|
throw new errors.EmptyPropertyError('Current object has no id');
|
|
192
|
-
case
|
|
192
|
+
case 1:
|
|
193
193
|
if ((0, _utils.isObject)(params)) {
|
|
194
|
-
_context.next =
|
|
194
|
+
_context.next = 2;
|
|
195
195
|
break;
|
|
196
196
|
}
|
|
197
197
|
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
198
|
-
case
|
|
198
|
+
case 2:
|
|
199
199
|
params.id = _this.attributes.id;
|
|
200
200
|
if (!(params.id && !(0, _utils.isInt)(params.id))) {
|
|
201
|
-
_context.next =
|
|
201
|
+
_context.next = 3;
|
|
202
202
|
break;
|
|
203
203
|
}
|
|
204
204
|
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
|
205
|
-
case
|
|
205
|
+
case 3:
|
|
206
206
|
if (!(params.http_auth_username && !(0, _utils.isString)(params.http_auth_username))) {
|
|
207
|
-
_context.next =
|
|
207
|
+
_context.next = 4;
|
|
208
208
|
break;
|
|
209
209
|
}
|
|
210
210
|
throw new errors.InvalidParameterError("Bad parameter: http_auth_username must be of type String, received ".concat((0, _utils.getType)(params.http_auth_username)));
|
|
211
|
-
case
|
|
211
|
+
case 4:
|
|
212
212
|
if (!(params.http_auth_password && !(0, _utils.isString)(params.http_auth_password))) {
|
|
213
|
-
_context.next =
|
|
213
|
+
_context.next = 5;
|
|
214
214
|
break;
|
|
215
215
|
}
|
|
216
216
|
throw new errors.InvalidParameterError("Bad parameter: http_auth_password must be of type String, received ".concat((0, _utils.getType)(params.http_auth_password)));
|
|
217
|
-
case
|
|
217
|
+
case 5:
|
|
218
218
|
if (!(params.mdn_validation_level && !(0, _utils.isString)(params.mdn_validation_level))) {
|
|
219
|
-
_context.next =
|
|
219
|
+
_context.next = 6;
|
|
220
220
|
break;
|
|
221
221
|
}
|
|
222
222
|
throw new errors.InvalidParameterError("Bad parameter: mdn_validation_level must be of type String, received ".concat((0, _utils.getType)(params.mdn_validation_level)));
|
|
223
|
-
case
|
|
223
|
+
case 6:
|
|
224
224
|
if (!(params.server_certificate && !(0, _utils.isString)(params.server_certificate))) {
|
|
225
|
-
_context.next =
|
|
225
|
+
_context.next = 7;
|
|
226
226
|
break;
|
|
227
227
|
}
|
|
228
228
|
throw new errors.InvalidParameterError("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(params.server_certificate)));
|
|
229
|
-
case
|
|
229
|
+
case 7:
|
|
230
230
|
if (!(params.default_mime_type && !(0, _utils.isString)(params.default_mime_type))) {
|
|
231
|
-
_context.next =
|
|
231
|
+
_context.next = 8;
|
|
232
232
|
break;
|
|
233
233
|
}
|
|
234
234
|
throw new errors.InvalidParameterError("Bad parameter: default_mime_type must be of type String, received ".concat((0, _utils.getType)(params.default_mime_type)));
|
|
235
|
-
case
|
|
235
|
+
case 8:
|
|
236
236
|
if (!(params.name && !(0, _utils.isString)(params.name))) {
|
|
237
|
-
_context.next =
|
|
237
|
+
_context.next = 9;
|
|
238
238
|
break;
|
|
239
239
|
}
|
|
240
240
|
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
|
|
241
|
-
case
|
|
241
|
+
case 9:
|
|
242
242
|
if (!(params.uri && !(0, _utils.isString)(params.uri))) {
|
|
243
|
-
_context.next =
|
|
243
|
+
_context.next = 10;
|
|
244
244
|
break;
|
|
245
245
|
}
|
|
246
246
|
throw new errors.InvalidParameterError("Bad parameter: uri must be of type String, received ".concat((0, _utils.getType)(params.uri)));
|
|
247
|
-
case
|
|
247
|
+
case 10:
|
|
248
248
|
if (!(params.public_certificate && !(0, _utils.isString)(params.public_certificate))) {
|
|
249
|
-
_context.next =
|
|
249
|
+
_context.next = 11;
|
|
250
250
|
break;
|
|
251
251
|
}
|
|
252
252
|
throw new errors.InvalidParameterError("Bad parameter: public_certificate must be of type String, received ".concat((0, _utils.getType)(params.public_certificate)));
|
|
253
|
-
case
|
|
253
|
+
case 11:
|
|
254
254
|
if (params.id) {
|
|
255
|
-
_context.next =
|
|
255
|
+
_context.next = 13;
|
|
256
256
|
break;
|
|
257
257
|
}
|
|
258
258
|
if (!_this.attributes.id) {
|
|
259
|
-
_context.next =
|
|
259
|
+
_context.next = 12;
|
|
260
260
|
break;
|
|
261
261
|
}
|
|
262
262
|
params.id = _this.id;
|
|
263
|
-
_context.next =
|
|
263
|
+
_context.next = 13;
|
|
264
264
|
break;
|
|
265
|
-
case
|
|
265
|
+
case 12:
|
|
266
266
|
throw new errors.MissingParameterError('Parameter missing: id');
|
|
267
|
-
case
|
|
268
|
-
_context.next =
|
|
267
|
+
case 13:
|
|
268
|
+
_context.next = 14;
|
|
269
269
|
return _Api.default.sendRequest("/as2_partners/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
|
|
270
|
-
case
|
|
270
|
+
case 14:
|
|
271
271
|
response = _context.sent;
|
|
272
272
|
return _context.abrupt("return", new As2Partner(response === null || response === void 0 ? void 0 : response.data, _this.options));
|
|
273
|
-
case
|
|
273
|
+
case 15:
|
|
274
274
|
case "end":
|
|
275
275
|
return _context.stop();
|
|
276
276
|
}
|
|
@@ -279,46 +279,46 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
|
|
|
279
279
|
(0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
280
280
|
var params,
|
|
281
281
|
_args2 = arguments;
|
|
282
|
-
return _regenerator.default.wrap(function
|
|
282
|
+
return _regenerator.default.wrap(function (_context2) {
|
|
283
283
|
while (1) switch (_context2.prev = _context2.next) {
|
|
284
284
|
case 0:
|
|
285
285
|
params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
286
286
|
if (_this.attributes.id) {
|
|
287
|
-
_context2.next =
|
|
287
|
+
_context2.next = 1;
|
|
288
288
|
break;
|
|
289
289
|
}
|
|
290
290
|
throw new errors.EmptyPropertyError('Current object has no id');
|
|
291
|
-
case
|
|
291
|
+
case 1:
|
|
292
292
|
if ((0, _utils.isObject)(params)) {
|
|
293
|
-
_context2.next =
|
|
293
|
+
_context2.next = 2;
|
|
294
294
|
break;
|
|
295
295
|
}
|
|
296
296
|
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
297
|
-
case
|
|
297
|
+
case 2:
|
|
298
298
|
params.id = _this.attributes.id;
|
|
299
299
|
if (!(params.id && !(0, _utils.isInt)(params.id))) {
|
|
300
|
-
_context2.next =
|
|
300
|
+
_context2.next = 3;
|
|
301
301
|
break;
|
|
302
302
|
}
|
|
303
303
|
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
|
304
|
-
case
|
|
304
|
+
case 3:
|
|
305
305
|
if (params.id) {
|
|
306
|
-
_context2.next =
|
|
306
|
+
_context2.next = 5;
|
|
307
307
|
break;
|
|
308
308
|
}
|
|
309
309
|
if (!_this.attributes.id) {
|
|
310
|
-
_context2.next =
|
|
310
|
+
_context2.next = 4;
|
|
311
311
|
break;
|
|
312
312
|
}
|
|
313
313
|
params.id = _this.id;
|
|
314
|
-
_context2.next =
|
|
314
|
+
_context2.next = 5;
|
|
315
315
|
break;
|
|
316
|
-
case
|
|
316
|
+
case 4:
|
|
317
317
|
throw new errors.MissingParameterError('Parameter missing: id');
|
|
318
|
-
case
|
|
319
|
-
_context2.next =
|
|
318
|
+
case 5:
|
|
319
|
+
_context2.next = 6;
|
|
320
320
|
return _Api.default.sendRequest("/as2_partners/".concat(encodeURIComponent(params.id)), 'DELETE', params, _this.options);
|
|
321
|
-
case
|
|
321
|
+
case 6:
|
|
322
322
|
case "end":
|
|
323
323
|
return _context2.stop();
|
|
324
324
|
}
|
|
@@ -330,27 +330,27 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
|
|
|
330
330
|
});
|
|
331
331
|
(0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
|
332
332
|
var _newObject, newObject;
|
|
333
|
-
return _regenerator.default.wrap(function
|
|
333
|
+
return _regenerator.default.wrap(function (_context3) {
|
|
334
334
|
while (1) switch (_context3.prev = _context3.next) {
|
|
335
335
|
case 0:
|
|
336
336
|
if (!_this.attributes.id) {
|
|
337
|
-
_context3.next =
|
|
337
|
+
_context3.next = 2;
|
|
338
338
|
break;
|
|
339
339
|
}
|
|
340
|
-
_context3.next =
|
|
340
|
+
_context3.next = 1;
|
|
341
341
|
return _this.update(_this.attributes);
|
|
342
|
-
case
|
|
342
|
+
case 1:
|
|
343
343
|
_newObject = _context3.sent;
|
|
344
344
|
_this.attributes = _objectSpread({}, _newObject.attributes);
|
|
345
345
|
return _context3.abrupt("return", true);
|
|
346
|
-
case
|
|
347
|
-
_context3.next =
|
|
346
|
+
case 2:
|
|
347
|
+
_context3.next = 3;
|
|
348
348
|
return As2Partner.create(_this.attributes, _this.options);
|
|
349
|
-
case
|
|
349
|
+
case 3:
|
|
350
350
|
newObject = _context3.sent;
|
|
351
351
|
_this.attributes = _objectSpread({}, newObject.attributes);
|
|
352
352
|
return _context3.abrupt("return", true);
|
|
353
|
-
case
|
|
353
|
+
case 4:
|
|
354
354
|
case "end":
|
|
355
355
|
return _context3.stop();
|
|
356
356
|
}
|
|
@@ -379,31 +379,31 @@ _As2Partner = As2Partner;
|
|
|
379
379
|
options,
|
|
380
380
|
response,
|
|
381
381
|
_args4 = arguments;
|
|
382
|
-
return _regenerator.default.wrap(function
|
|
382
|
+
return _regenerator.default.wrap(function (_context4) {
|
|
383
383
|
while (1) switch (_context4.prev = _context4.next) {
|
|
384
384
|
case 0:
|
|
385
385
|
params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
|
|
386
386
|
options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
|
|
387
387
|
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
|
388
|
-
_context4.next =
|
|
388
|
+
_context4.next = 1;
|
|
389
389
|
break;
|
|
390
390
|
}
|
|
391
391
|
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
|
392
|
-
case
|
|
392
|
+
case 1:
|
|
393
393
|
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
|
394
|
-
_context4.next =
|
|
394
|
+
_context4.next = 2;
|
|
395
395
|
break;
|
|
396
396
|
}
|
|
397
397
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
398
|
-
case
|
|
399
|
-
_context4.next =
|
|
398
|
+
case 2:
|
|
399
|
+
_context4.next = 3;
|
|
400
400
|
return _Api.default.sendRequest('/as2_partners', 'GET', params, options);
|
|
401
|
-
case
|
|
401
|
+
case 3:
|
|
402
402
|
response = _context4.sent;
|
|
403
403
|
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) {
|
|
404
404
|
return new _As2Partner(obj, options);
|
|
405
405
|
})) || []);
|
|
406
|
-
case
|
|
406
|
+
case 4:
|
|
407
407
|
case "end":
|
|
408
408
|
return _context4.stop();
|
|
409
409
|
}
|
|
@@ -422,36 +422,36 @@ _As2Partner = As2Partner;
|
|
|
422
422
|
options,
|
|
423
423
|
response,
|
|
424
424
|
_args5 = arguments;
|
|
425
|
-
return _regenerator.default.wrap(function
|
|
425
|
+
return _regenerator.default.wrap(function (_context5) {
|
|
426
426
|
while (1) switch (_context5.prev = _context5.next) {
|
|
427
427
|
case 0:
|
|
428
428
|
params = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
|
|
429
429
|
options = _args5.length > 2 && _args5[2] !== undefined ? _args5[2] : {};
|
|
430
430
|
if ((0, _utils.isObject)(params)) {
|
|
431
|
-
_context5.next =
|
|
431
|
+
_context5.next = 1;
|
|
432
432
|
break;
|
|
433
433
|
}
|
|
434
434
|
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
435
|
-
case
|
|
435
|
+
case 1:
|
|
436
436
|
params.id = id;
|
|
437
437
|
if (params.id) {
|
|
438
|
-
_context5.next =
|
|
438
|
+
_context5.next = 2;
|
|
439
439
|
break;
|
|
440
440
|
}
|
|
441
441
|
throw new errors.MissingParameterError('Parameter missing: id');
|
|
442
|
-
case
|
|
442
|
+
case 2:
|
|
443
443
|
if (!(params.id && !(0, _utils.isInt)(params.id))) {
|
|
444
|
-
_context5.next =
|
|
444
|
+
_context5.next = 3;
|
|
445
445
|
break;
|
|
446
446
|
}
|
|
447
447
|
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
|
448
|
-
case
|
|
449
|
-
_context5.next =
|
|
448
|
+
case 3:
|
|
449
|
+
_context5.next = 4;
|
|
450
450
|
return _Api.default.sendRequest("/as2_partners/".concat(encodeURIComponent(params.id)), 'GET', params, options);
|
|
451
|
-
case
|
|
451
|
+
case 4:
|
|
452
452
|
response = _context5.sent;
|
|
453
453
|
return _context5.abrupt("return", new _As2Partner(response === null || response === void 0 ? void 0 : response.data, options));
|
|
454
|
-
case
|
|
454
|
+
case 5:
|
|
455
455
|
case "end":
|
|
456
456
|
return _context5.stop();
|
|
457
457
|
}
|
|
@@ -483,95 +483,95 @@ _As2Partner = As2Partner;
|
|
|
483
483
|
options,
|
|
484
484
|
response,
|
|
485
485
|
_args6 = arguments;
|
|
486
|
-
return _regenerator.default.wrap(function
|
|
486
|
+
return _regenerator.default.wrap(function (_context6) {
|
|
487
487
|
while (1) switch (_context6.prev = _context6.next) {
|
|
488
488
|
case 0:
|
|
489
489
|
params = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
|
|
490
490
|
options = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : {};
|
|
491
491
|
if (params.as2_station_id) {
|
|
492
|
-
_context6.next =
|
|
492
|
+
_context6.next = 1;
|
|
493
493
|
break;
|
|
494
494
|
}
|
|
495
495
|
throw new errors.MissingParameterError('Parameter missing: as2_station_id');
|
|
496
|
-
case
|
|
496
|
+
case 1:
|
|
497
497
|
if (params.name) {
|
|
498
|
-
_context6.next =
|
|
498
|
+
_context6.next = 2;
|
|
499
499
|
break;
|
|
500
500
|
}
|
|
501
501
|
throw new errors.MissingParameterError('Parameter missing: name');
|
|
502
|
-
case
|
|
502
|
+
case 2:
|
|
503
503
|
if (params.uri) {
|
|
504
|
-
_context6.next =
|
|
504
|
+
_context6.next = 3;
|
|
505
505
|
break;
|
|
506
506
|
}
|
|
507
507
|
throw new errors.MissingParameterError('Parameter missing: uri');
|
|
508
|
-
case
|
|
508
|
+
case 3:
|
|
509
509
|
if (params.public_certificate) {
|
|
510
|
-
_context6.next =
|
|
510
|
+
_context6.next = 4;
|
|
511
511
|
break;
|
|
512
512
|
}
|
|
513
513
|
throw new errors.MissingParameterError('Parameter missing: public_certificate');
|
|
514
|
-
case
|
|
514
|
+
case 4:
|
|
515
515
|
if (!(params.http_auth_username && !(0, _utils.isString)(params.http_auth_username))) {
|
|
516
|
-
_context6.next =
|
|
516
|
+
_context6.next = 5;
|
|
517
517
|
break;
|
|
518
518
|
}
|
|
519
519
|
throw new errors.InvalidParameterError("Bad parameter: http_auth_username must be of type String, received ".concat((0, _utils.getType)(params.http_auth_username)));
|
|
520
|
-
case
|
|
520
|
+
case 5:
|
|
521
521
|
if (!(params.http_auth_password && !(0, _utils.isString)(params.http_auth_password))) {
|
|
522
|
-
_context6.next =
|
|
522
|
+
_context6.next = 6;
|
|
523
523
|
break;
|
|
524
524
|
}
|
|
525
525
|
throw new errors.InvalidParameterError("Bad parameter: http_auth_password must be of type String, received ".concat((0, _utils.getType)(params.http_auth_password)));
|
|
526
|
-
case
|
|
526
|
+
case 6:
|
|
527
527
|
if (!(params.mdn_validation_level && !(0, _utils.isString)(params.mdn_validation_level))) {
|
|
528
|
-
_context6.next =
|
|
528
|
+
_context6.next = 7;
|
|
529
529
|
break;
|
|
530
530
|
}
|
|
531
531
|
throw new errors.InvalidParameterError("Bad parameter: mdn_validation_level must be of type String, received ".concat((0, _utils.getType)(params.mdn_validation_level)));
|
|
532
|
-
case
|
|
532
|
+
case 7:
|
|
533
533
|
if (!(params.server_certificate && !(0, _utils.isString)(params.server_certificate))) {
|
|
534
|
-
_context6.next =
|
|
534
|
+
_context6.next = 8;
|
|
535
535
|
break;
|
|
536
536
|
}
|
|
537
537
|
throw new errors.InvalidParameterError("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(params.server_certificate)));
|
|
538
|
-
case
|
|
538
|
+
case 8:
|
|
539
539
|
if (!(params.default_mime_type && !(0, _utils.isString)(params.default_mime_type))) {
|
|
540
|
-
_context6.next =
|
|
540
|
+
_context6.next = 9;
|
|
541
541
|
break;
|
|
542
542
|
}
|
|
543
543
|
throw new errors.InvalidParameterError("Bad parameter: default_mime_type must be of type String, received ".concat((0, _utils.getType)(params.default_mime_type)));
|
|
544
|
-
case
|
|
544
|
+
case 9:
|
|
545
545
|
if (!(params.as2_station_id && !(0, _utils.isInt)(params.as2_station_id))) {
|
|
546
|
-
_context6.next =
|
|
546
|
+
_context6.next = 10;
|
|
547
547
|
break;
|
|
548
548
|
}
|
|
549
549
|
throw new errors.InvalidParameterError("Bad parameter: as2_station_id must be of type Int, received ".concat((0, _utils.getType)(params.as2_station_id)));
|
|
550
|
-
case
|
|
550
|
+
case 10:
|
|
551
551
|
if (!(params.name && !(0, _utils.isString)(params.name))) {
|
|
552
|
-
_context6.next =
|
|
552
|
+
_context6.next = 11;
|
|
553
553
|
break;
|
|
554
554
|
}
|
|
555
555
|
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
|
|
556
|
-
case
|
|
556
|
+
case 11:
|
|
557
557
|
if (!(params.uri && !(0, _utils.isString)(params.uri))) {
|
|
558
|
-
_context6.next =
|
|
558
|
+
_context6.next = 12;
|
|
559
559
|
break;
|
|
560
560
|
}
|
|
561
561
|
throw new errors.InvalidParameterError("Bad parameter: uri must be of type String, received ".concat((0, _utils.getType)(params.uri)));
|
|
562
|
-
case
|
|
562
|
+
case 12:
|
|
563
563
|
if (!(params.public_certificate && !(0, _utils.isString)(params.public_certificate))) {
|
|
564
|
-
_context6.next =
|
|
564
|
+
_context6.next = 13;
|
|
565
565
|
break;
|
|
566
566
|
}
|
|
567
567
|
throw new errors.InvalidParameterError("Bad parameter: public_certificate must be of type String, received ".concat((0, _utils.getType)(params.public_certificate)));
|
|
568
|
-
case
|
|
569
|
-
_context6.next =
|
|
568
|
+
case 13:
|
|
569
|
+
_context6.next = 14;
|
|
570
570
|
return _Api.default.sendRequest('/as2_partners', 'POST', params, options);
|
|
571
|
-
case
|
|
571
|
+
case 14:
|
|
572
572
|
response = _context6.sent;
|
|
573
573
|
return _context6.abrupt("return", new _As2Partner(response === null || response === void 0 ? void 0 : response.data, options));
|
|
574
|
-
case
|
|
574
|
+
case 15:
|
|
575
575
|
case "end":
|
|
576
576
|
return _context6.stop();
|
|
577
577
|
}
|