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.
- package/_VERSION +1 -1
- package/docs/models/Bundle.md +4 -2
- package/docs/models/FormFieldSet.md +5 -2
- 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 +78 -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 +215 -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/FormFieldSet.js +7 -0
package/lib/models/Bundle.js
CHANGED
|
@@ -360,64 +360,64 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
|
|
|
360
360
|
(0, _defineProperty2.default)(this, "share", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
361
361
|
var params,
|
|
362
362
|
_args = arguments;
|
|
363
|
-
return _regenerator.default.wrap(function
|
|
363
|
+
return _regenerator.default.wrap(function (_context) {
|
|
364
364
|
while (1) switch (_context.prev = _context.next) {
|
|
365
365
|
case 0:
|
|
366
366
|
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
367
367
|
if (_this.attributes.id) {
|
|
368
|
-
_context.next =
|
|
368
|
+
_context.next = 1;
|
|
369
369
|
break;
|
|
370
370
|
}
|
|
371
371
|
throw new errors.EmptyPropertyError('Current object has no id');
|
|
372
|
-
case
|
|
372
|
+
case 1:
|
|
373
373
|
if ((0, _utils.isObject)(params)) {
|
|
374
|
-
_context.next =
|
|
374
|
+
_context.next = 2;
|
|
375
375
|
break;
|
|
376
376
|
}
|
|
377
377
|
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
378
|
-
case
|
|
378
|
+
case 2:
|
|
379
379
|
params.id = _this.attributes.id;
|
|
380
380
|
if (!(params.id && !(0, _utils.isInt)(params.id))) {
|
|
381
|
-
_context.next =
|
|
381
|
+
_context.next = 3;
|
|
382
382
|
break;
|
|
383
383
|
}
|
|
384
384
|
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
|
385
|
-
case
|
|
385
|
+
case 3:
|
|
386
386
|
if (!(params.to && !(0, _utils.isArray)(params.to))) {
|
|
387
|
-
_context.next =
|
|
387
|
+
_context.next = 4;
|
|
388
388
|
break;
|
|
389
389
|
}
|
|
390
390
|
throw new errors.InvalidParameterError("Bad parameter: to must be of type Array, received ".concat((0, _utils.getType)(params.to)));
|
|
391
|
-
case
|
|
391
|
+
case 4:
|
|
392
392
|
if (!(params.note && !(0, _utils.isString)(params.note))) {
|
|
393
|
-
_context.next =
|
|
393
|
+
_context.next = 5;
|
|
394
394
|
break;
|
|
395
395
|
}
|
|
396
396
|
throw new errors.InvalidParameterError("Bad parameter: note must be of type String, received ".concat((0, _utils.getType)(params.note)));
|
|
397
|
-
case
|
|
397
|
+
case 5:
|
|
398
398
|
if (!(params.recipients && !(0, _utils.isArray)(params.recipients))) {
|
|
399
|
-
_context.next =
|
|
399
|
+
_context.next = 6;
|
|
400
400
|
break;
|
|
401
401
|
}
|
|
402
402
|
throw new errors.InvalidParameterError("Bad parameter: recipients must be of type Array, received ".concat((0, _utils.getType)(params.recipients)));
|
|
403
|
-
case
|
|
403
|
+
case 6:
|
|
404
404
|
if (params.id) {
|
|
405
|
-
_context.next =
|
|
405
|
+
_context.next = 8;
|
|
406
406
|
break;
|
|
407
407
|
}
|
|
408
408
|
if (!_this.attributes.id) {
|
|
409
|
-
_context.next =
|
|
409
|
+
_context.next = 7;
|
|
410
410
|
break;
|
|
411
411
|
}
|
|
412
412
|
params.id = _this.id;
|
|
413
|
-
_context.next =
|
|
413
|
+
_context.next = 8;
|
|
414
414
|
break;
|
|
415
|
-
case
|
|
415
|
+
case 7:
|
|
416
416
|
throw new errors.MissingParameterError('Parameter missing: id');
|
|
417
|
-
case
|
|
418
|
-
_context.next =
|
|
417
|
+
case 8:
|
|
418
|
+
_context.next = 9;
|
|
419
419
|
return _Api.default.sendRequest("/bundles/".concat(encodeURIComponent(params.id), "/share"), 'POST', params, _this.options);
|
|
420
|
-
case
|
|
420
|
+
case 9:
|
|
421
421
|
case "end":
|
|
422
422
|
return _context.stop();
|
|
423
423
|
}
|
|
@@ -453,133 +453,133 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
|
|
|
453
453
|
var params,
|
|
454
454
|
response,
|
|
455
455
|
_args2 = arguments;
|
|
456
|
-
return _regenerator.default.wrap(function
|
|
456
|
+
return _regenerator.default.wrap(function (_context2) {
|
|
457
457
|
while (1) switch (_context2.prev = _context2.next) {
|
|
458
458
|
case 0:
|
|
459
459
|
params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
460
460
|
if (_this.attributes.id) {
|
|
461
|
-
_context2.next =
|
|
461
|
+
_context2.next = 1;
|
|
462
462
|
break;
|
|
463
463
|
}
|
|
464
464
|
throw new errors.EmptyPropertyError('Current object has no id');
|
|
465
|
-
case
|
|
465
|
+
case 1:
|
|
466
466
|
if ((0, _utils.isObject)(params)) {
|
|
467
|
-
_context2.next =
|
|
467
|
+
_context2.next = 2;
|
|
468
468
|
break;
|
|
469
469
|
}
|
|
470
470
|
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
471
|
-
case
|
|
471
|
+
case 2:
|
|
472
472
|
params.id = _this.attributes.id;
|
|
473
473
|
if (!(params.id && !(0, _utils.isInt)(params.id))) {
|
|
474
|
-
_context2.next =
|
|
474
|
+
_context2.next = 3;
|
|
475
475
|
break;
|
|
476
476
|
}
|
|
477
477
|
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
|
478
|
-
case
|
|
478
|
+
case 3:
|
|
479
479
|
if (!(params.paths && !(0, _utils.isArray)(params.paths))) {
|
|
480
|
-
_context2.next =
|
|
480
|
+
_context2.next = 4;
|
|
481
481
|
break;
|
|
482
482
|
}
|
|
483
483
|
throw new errors.InvalidParameterError("Bad parameter: paths must be of type Array, received ".concat((0, _utils.getType)(params.paths)));
|
|
484
|
-
case
|
|
484
|
+
case 4:
|
|
485
485
|
if (!(params.password && !(0, _utils.isString)(params.password))) {
|
|
486
|
-
_context2.next =
|
|
486
|
+
_context2.next = 5;
|
|
487
487
|
break;
|
|
488
488
|
}
|
|
489
489
|
throw new errors.InvalidParameterError("Bad parameter: password must be of type String, received ".concat((0, _utils.getType)(params.password)));
|
|
490
|
-
case
|
|
490
|
+
case 5:
|
|
491
491
|
if (!(params.form_field_set_id && !(0, _utils.isInt)(params.form_field_set_id))) {
|
|
492
|
-
_context2.next =
|
|
492
|
+
_context2.next = 6;
|
|
493
493
|
break;
|
|
494
494
|
}
|
|
495
495
|
throw new errors.InvalidParameterError("Bad parameter: form_field_set_id must be of type Int, received ".concat((0, _utils.getType)(params.form_field_set_id)));
|
|
496
|
-
case
|
|
496
|
+
case 6:
|
|
497
497
|
if (!(params.clickwrap_id && !(0, _utils.isInt)(params.clickwrap_id))) {
|
|
498
|
-
_context2.next =
|
|
498
|
+
_context2.next = 7;
|
|
499
499
|
break;
|
|
500
500
|
}
|
|
501
501
|
throw new errors.InvalidParameterError("Bad parameter: clickwrap_id must be of type Int, received ".concat((0, _utils.getType)(params.clickwrap_id)));
|
|
502
|
-
case
|
|
502
|
+
case 7:
|
|
503
503
|
if (!(params.code && !(0, _utils.isString)(params.code))) {
|
|
504
|
-
_context2.next =
|
|
504
|
+
_context2.next = 8;
|
|
505
505
|
break;
|
|
506
506
|
}
|
|
507
507
|
throw new errors.InvalidParameterError("Bad parameter: code must be of type String, received ".concat((0, _utils.getType)(params.code)));
|
|
508
|
-
case
|
|
508
|
+
case 8:
|
|
509
509
|
if (!(params.description && !(0, _utils.isString)(params.description))) {
|
|
510
|
-
_context2.next =
|
|
510
|
+
_context2.next = 9;
|
|
511
511
|
break;
|
|
512
512
|
}
|
|
513
513
|
throw new errors.InvalidParameterError("Bad parameter: description must be of type String, received ".concat((0, _utils.getType)(params.description)));
|
|
514
|
-
case
|
|
514
|
+
case 9:
|
|
515
515
|
if (!(params.expires_at && !(0, _utils.isString)(params.expires_at))) {
|
|
516
|
-
_context2.next =
|
|
516
|
+
_context2.next = 10;
|
|
517
517
|
break;
|
|
518
518
|
}
|
|
519
519
|
throw new errors.InvalidParameterError("Bad parameter: expires_at must be of type String, received ".concat((0, _utils.getType)(params.expires_at)));
|
|
520
|
-
case
|
|
520
|
+
case 10:
|
|
521
521
|
if (!(params.inbox_id && !(0, _utils.isInt)(params.inbox_id))) {
|
|
522
|
-
_context2.next =
|
|
522
|
+
_context2.next = 11;
|
|
523
523
|
break;
|
|
524
524
|
}
|
|
525
525
|
throw new errors.InvalidParameterError("Bad parameter: inbox_id must be of type Int, received ".concat((0, _utils.getType)(params.inbox_id)));
|
|
526
|
-
case
|
|
526
|
+
case 11:
|
|
527
527
|
if (!(params.max_uses && !(0, _utils.isInt)(params.max_uses))) {
|
|
528
|
-
_context2.next =
|
|
528
|
+
_context2.next = 12;
|
|
529
529
|
break;
|
|
530
530
|
}
|
|
531
531
|
throw new errors.InvalidParameterError("Bad parameter: max_uses must be of type Int, received ".concat((0, _utils.getType)(params.max_uses)));
|
|
532
|
-
case
|
|
532
|
+
case 12:
|
|
533
533
|
if (!(params.note && !(0, _utils.isString)(params.note))) {
|
|
534
|
-
_context2.next =
|
|
534
|
+
_context2.next = 13;
|
|
535
535
|
break;
|
|
536
536
|
}
|
|
537
537
|
throw new errors.InvalidParameterError("Bad parameter: note must be of type String, received ".concat((0, _utils.getType)(params.note)));
|
|
538
|
-
case
|
|
538
|
+
case 13:
|
|
539
539
|
if (!(params.path_template && !(0, _utils.isString)(params.path_template))) {
|
|
540
|
-
_context2.next =
|
|
540
|
+
_context2.next = 14;
|
|
541
541
|
break;
|
|
542
542
|
}
|
|
543
543
|
throw new errors.InvalidParameterError("Bad parameter: path_template must be of type String, received ".concat((0, _utils.getType)(params.path_template)));
|
|
544
|
-
case
|
|
544
|
+
case 14:
|
|
545
545
|
if (!(params.path_template_time_zone && !(0, _utils.isString)(params.path_template_time_zone))) {
|
|
546
|
-
_context2.next =
|
|
546
|
+
_context2.next = 15;
|
|
547
547
|
break;
|
|
548
548
|
}
|
|
549
549
|
throw new errors.InvalidParameterError("Bad parameter: path_template_time_zone must be of type String, received ".concat((0, _utils.getType)(params.path_template_time_zone)));
|
|
550
|
-
case
|
|
550
|
+
case 15:
|
|
551
551
|
if (!(params.permissions && !(0, _utils.isString)(params.permissions))) {
|
|
552
|
-
_context2.next =
|
|
552
|
+
_context2.next = 16;
|
|
553
553
|
break;
|
|
554
554
|
}
|
|
555
555
|
throw new errors.InvalidParameterError("Bad parameter: permissions must be of type String, received ".concat((0, _utils.getType)(params.permissions)));
|
|
556
|
-
case
|
|
556
|
+
case 16:
|
|
557
557
|
if (!(params.start_access_on_date && !(0, _utils.isString)(params.start_access_on_date))) {
|
|
558
|
-
_context2.next =
|
|
558
|
+
_context2.next = 17;
|
|
559
559
|
break;
|
|
560
560
|
}
|
|
561
561
|
throw new errors.InvalidParameterError("Bad parameter: start_access_on_date must be of type String, received ".concat((0, _utils.getType)(params.start_access_on_date)));
|
|
562
|
-
case
|
|
562
|
+
case 17:
|
|
563
563
|
if (params.id) {
|
|
564
|
-
_context2.next =
|
|
564
|
+
_context2.next = 19;
|
|
565
565
|
break;
|
|
566
566
|
}
|
|
567
567
|
if (!_this.attributes.id) {
|
|
568
|
-
_context2.next =
|
|
568
|
+
_context2.next = 18;
|
|
569
569
|
break;
|
|
570
570
|
}
|
|
571
571
|
params.id = _this.id;
|
|
572
|
-
_context2.next =
|
|
572
|
+
_context2.next = 19;
|
|
573
573
|
break;
|
|
574
|
-
case
|
|
574
|
+
case 18:
|
|
575
575
|
throw new errors.MissingParameterError('Parameter missing: id');
|
|
576
|
-
case
|
|
577
|
-
_context2.next =
|
|
576
|
+
case 19:
|
|
577
|
+
_context2.next = 20;
|
|
578
578
|
return _Api.default.sendRequest("/bundles/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
|
|
579
|
-
case
|
|
579
|
+
case 20:
|
|
580
580
|
response = _context2.sent;
|
|
581
581
|
return _context2.abrupt("return", new Bundle(response === null || response === void 0 ? void 0 : response.data, _this.options));
|
|
582
|
-
case
|
|
582
|
+
case 21:
|
|
583
583
|
case "end":
|
|
584
584
|
return _context2.stop();
|
|
585
585
|
}
|
|
@@ -588,46 +588,46 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
|
|
|
588
588
|
(0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
|
589
589
|
var params,
|
|
590
590
|
_args3 = arguments;
|
|
591
|
-
return _regenerator.default.wrap(function
|
|
591
|
+
return _regenerator.default.wrap(function (_context3) {
|
|
592
592
|
while (1) switch (_context3.prev = _context3.next) {
|
|
593
593
|
case 0:
|
|
594
594
|
params = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
595
595
|
if (_this.attributes.id) {
|
|
596
|
-
_context3.next =
|
|
596
|
+
_context3.next = 1;
|
|
597
597
|
break;
|
|
598
598
|
}
|
|
599
599
|
throw new errors.EmptyPropertyError('Current object has no id');
|
|
600
|
-
case
|
|
600
|
+
case 1:
|
|
601
601
|
if ((0, _utils.isObject)(params)) {
|
|
602
|
-
_context3.next =
|
|
602
|
+
_context3.next = 2;
|
|
603
603
|
break;
|
|
604
604
|
}
|
|
605
605
|
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
606
|
-
case
|
|
606
|
+
case 2:
|
|
607
607
|
params.id = _this.attributes.id;
|
|
608
608
|
if (!(params.id && !(0, _utils.isInt)(params.id))) {
|
|
609
|
-
_context3.next =
|
|
609
|
+
_context3.next = 3;
|
|
610
610
|
break;
|
|
611
611
|
}
|
|
612
612
|
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
|
613
|
-
case
|
|
613
|
+
case 3:
|
|
614
614
|
if (params.id) {
|
|
615
|
-
_context3.next =
|
|
615
|
+
_context3.next = 5;
|
|
616
616
|
break;
|
|
617
617
|
}
|
|
618
618
|
if (!_this.attributes.id) {
|
|
619
|
-
_context3.next =
|
|
619
|
+
_context3.next = 4;
|
|
620
620
|
break;
|
|
621
621
|
}
|
|
622
622
|
params.id = _this.id;
|
|
623
|
-
_context3.next =
|
|
623
|
+
_context3.next = 5;
|
|
624
624
|
break;
|
|
625
|
-
case
|
|
625
|
+
case 4:
|
|
626
626
|
throw new errors.MissingParameterError('Parameter missing: id');
|
|
627
|
-
case
|
|
628
|
-
_context3.next =
|
|
627
|
+
case 5:
|
|
628
|
+
_context3.next = 6;
|
|
629
629
|
return _Api.default.sendRequest("/bundles/".concat(encodeURIComponent(params.id)), 'DELETE', params, _this.options);
|
|
630
|
-
case
|
|
630
|
+
case 6:
|
|
631
631
|
case "end":
|
|
632
632
|
return _context3.stop();
|
|
633
633
|
}
|
|
@@ -639,27 +639,27 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
|
|
|
639
639
|
});
|
|
640
640
|
(0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
|
641
641
|
var _newObject, newObject;
|
|
642
|
-
return _regenerator.default.wrap(function
|
|
642
|
+
return _regenerator.default.wrap(function (_context4) {
|
|
643
643
|
while (1) switch (_context4.prev = _context4.next) {
|
|
644
644
|
case 0:
|
|
645
645
|
if (!_this.attributes.id) {
|
|
646
|
-
_context4.next =
|
|
646
|
+
_context4.next = 2;
|
|
647
647
|
break;
|
|
648
648
|
}
|
|
649
|
-
_context4.next =
|
|
649
|
+
_context4.next = 1;
|
|
650
650
|
return _this.update(_this.attributes);
|
|
651
|
-
case
|
|
651
|
+
case 1:
|
|
652
652
|
_newObject = _context4.sent;
|
|
653
653
|
_this.attributes = _objectSpread({}, _newObject.attributes);
|
|
654
654
|
return _context4.abrupt("return", true);
|
|
655
|
-
case
|
|
656
|
-
_context4.next =
|
|
655
|
+
case 2:
|
|
656
|
+
_context4.next = 3;
|
|
657
657
|
return Bundle.create(_this.attributes, _this.options);
|
|
658
|
-
case
|
|
658
|
+
case 3:
|
|
659
659
|
newObject = _context4.sent;
|
|
660
660
|
_this.attributes = _objectSpread({}, newObject.attributes);
|
|
661
661
|
return _context4.abrupt("return", true);
|
|
662
|
-
case
|
|
662
|
+
case 4:
|
|
663
663
|
case "end":
|
|
664
664
|
return _context4.stop();
|
|
665
665
|
}
|
|
@@ -696,37 +696,37 @@ _Bundle = Bundle;
|
|
|
696
696
|
options,
|
|
697
697
|
response,
|
|
698
698
|
_args5 = arguments;
|
|
699
|
-
return _regenerator.default.wrap(function
|
|
699
|
+
return _regenerator.default.wrap(function (_context5) {
|
|
700
700
|
while (1) switch (_context5.prev = _context5.next) {
|
|
701
701
|
case 0:
|
|
702
702
|
params = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
|
|
703
703
|
options = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
|
|
704
704
|
if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
|
|
705
|
-
_context5.next =
|
|
705
|
+
_context5.next = 1;
|
|
706
706
|
break;
|
|
707
707
|
}
|
|
708
708
|
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
|
|
709
|
-
case
|
|
709
|
+
case 1:
|
|
710
710
|
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
|
711
|
-
_context5.next =
|
|
711
|
+
_context5.next = 2;
|
|
712
712
|
break;
|
|
713
713
|
}
|
|
714
714
|
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
|
715
|
-
case
|
|
715
|
+
case 2:
|
|
716
716
|
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
|
717
|
-
_context5.next =
|
|
717
|
+
_context5.next = 3;
|
|
718
718
|
break;
|
|
719
719
|
}
|
|
720
720
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
721
|
-
case
|
|
722
|
-
_context5.next =
|
|
721
|
+
case 3:
|
|
722
|
+
_context5.next = 4;
|
|
723
723
|
return _Api.default.sendRequest('/bundles', 'GET', params, options);
|
|
724
|
-
case
|
|
724
|
+
case 4:
|
|
725
725
|
response = _context5.sent;
|
|
726
726
|
return _context5.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
|
727
727
|
return new _Bundle(obj, options);
|
|
728
728
|
})) || []);
|
|
729
|
-
case
|
|
729
|
+
case 5:
|
|
730
730
|
case "end":
|
|
731
731
|
return _context5.stop();
|
|
732
732
|
}
|
|
@@ -745,36 +745,36 @@ _Bundle = Bundle;
|
|
|
745
745
|
options,
|
|
746
746
|
response,
|
|
747
747
|
_args6 = arguments;
|
|
748
|
-
return _regenerator.default.wrap(function
|
|
748
|
+
return _regenerator.default.wrap(function (_context6) {
|
|
749
749
|
while (1) switch (_context6.prev = _context6.next) {
|
|
750
750
|
case 0:
|
|
751
751
|
params = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : {};
|
|
752
752
|
options = _args6.length > 2 && _args6[2] !== undefined ? _args6[2] : {};
|
|
753
753
|
if ((0, _utils.isObject)(params)) {
|
|
754
|
-
_context6.next =
|
|
754
|
+
_context6.next = 1;
|
|
755
755
|
break;
|
|
756
756
|
}
|
|
757
757
|
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
758
|
-
case
|
|
758
|
+
case 1:
|
|
759
759
|
params.id = id;
|
|
760
760
|
if (params.id) {
|
|
761
|
-
_context6.next =
|
|
761
|
+
_context6.next = 2;
|
|
762
762
|
break;
|
|
763
763
|
}
|
|
764
764
|
throw new errors.MissingParameterError('Parameter missing: id');
|
|
765
|
-
case
|
|
765
|
+
case 2:
|
|
766
766
|
if (!(params.id && !(0, _utils.isInt)(params.id))) {
|
|
767
|
-
_context6.next =
|
|
767
|
+
_context6.next = 3;
|
|
768
768
|
break;
|
|
769
769
|
}
|
|
770
770
|
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
|
771
|
-
case
|
|
772
|
-
_context6.next =
|
|
771
|
+
case 3:
|
|
772
|
+
_context6.next = 4;
|
|
773
773
|
return _Api.default.sendRequest("/bundles/".concat(encodeURIComponent(params.id)), 'GET', params, options);
|
|
774
|
-
case
|
|
774
|
+
case 4:
|
|
775
775
|
response = _context6.sent;
|
|
776
776
|
return _context6.abrupt("return", new _Bundle(response === null || response === void 0 ? void 0 : response.data, options));
|
|
777
|
-
case
|
|
777
|
+
case 5:
|
|
778
778
|
case "end":
|
|
779
779
|
return _context6.stop();
|
|
780
780
|
}
|
|
@@ -821,119 +821,119 @@ _Bundle = Bundle;
|
|
|
821
821
|
options,
|
|
822
822
|
response,
|
|
823
823
|
_args7 = arguments;
|
|
824
|
-
return _regenerator.default.wrap(function
|
|
824
|
+
return _regenerator.default.wrap(function (_context7) {
|
|
825
825
|
while (1) switch (_context7.prev = _context7.next) {
|
|
826
826
|
case 0:
|
|
827
827
|
params = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
|
|
828
828
|
options = _args7.length > 1 && _args7[1] !== undefined ? _args7[1] : {};
|
|
829
829
|
if (params.paths) {
|
|
830
|
-
_context7.next =
|
|
830
|
+
_context7.next = 1;
|
|
831
831
|
break;
|
|
832
832
|
}
|
|
833
833
|
throw new errors.MissingParameterError('Parameter missing: paths');
|
|
834
|
-
case
|
|
834
|
+
case 1:
|
|
835
835
|
if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
|
|
836
|
-
_context7.next =
|
|
836
|
+
_context7.next = 2;
|
|
837
837
|
break;
|
|
838
838
|
}
|
|
839
839
|
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
|
|
840
|
-
case
|
|
840
|
+
case 2:
|
|
841
841
|
if (!(params.paths && !(0, _utils.isArray)(params.paths))) {
|
|
842
|
-
_context7.next =
|
|
842
|
+
_context7.next = 3;
|
|
843
843
|
break;
|
|
844
844
|
}
|
|
845
845
|
throw new errors.InvalidParameterError("Bad parameter: paths must be of type Array, received ".concat((0, _utils.getType)(params.paths)));
|
|
846
|
-
case
|
|
846
|
+
case 3:
|
|
847
847
|
if (!(params.password && !(0, _utils.isString)(params.password))) {
|
|
848
|
-
_context7.next =
|
|
848
|
+
_context7.next = 4;
|
|
849
849
|
break;
|
|
850
850
|
}
|
|
851
851
|
throw new errors.InvalidParameterError("Bad parameter: password must be of type String, received ".concat((0, _utils.getType)(params.password)));
|
|
852
|
-
case
|
|
852
|
+
case 4:
|
|
853
853
|
if (!(params.form_field_set_id && !(0, _utils.isInt)(params.form_field_set_id))) {
|
|
854
|
-
_context7.next =
|
|
854
|
+
_context7.next = 5;
|
|
855
855
|
break;
|
|
856
856
|
}
|
|
857
857
|
throw new errors.InvalidParameterError("Bad parameter: form_field_set_id must be of type Int, received ".concat((0, _utils.getType)(params.form_field_set_id)));
|
|
858
|
-
case
|
|
858
|
+
case 5:
|
|
859
859
|
if (!(params.expires_at && !(0, _utils.isString)(params.expires_at))) {
|
|
860
|
-
_context7.next =
|
|
860
|
+
_context7.next = 6;
|
|
861
861
|
break;
|
|
862
862
|
}
|
|
863
863
|
throw new errors.InvalidParameterError("Bad parameter: expires_at must be of type String, received ".concat((0, _utils.getType)(params.expires_at)));
|
|
864
|
-
case
|
|
864
|
+
case 6:
|
|
865
865
|
if (!(params.max_uses && !(0, _utils.isInt)(params.max_uses))) {
|
|
866
|
-
_context7.next =
|
|
866
|
+
_context7.next = 7;
|
|
867
867
|
break;
|
|
868
868
|
}
|
|
869
869
|
throw new errors.InvalidParameterError("Bad parameter: max_uses must be of type Int, received ".concat((0, _utils.getType)(params.max_uses)));
|
|
870
|
-
case
|
|
870
|
+
case 7:
|
|
871
871
|
if (!(params.description && !(0, _utils.isString)(params.description))) {
|
|
872
|
-
_context7.next =
|
|
872
|
+
_context7.next = 8;
|
|
873
873
|
break;
|
|
874
874
|
}
|
|
875
875
|
throw new errors.InvalidParameterError("Bad parameter: description must be of type String, received ".concat((0, _utils.getType)(params.description)));
|
|
876
|
-
case
|
|
876
|
+
case 8:
|
|
877
877
|
if (!(params.note && !(0, _utils.isString)(params.note))) {
|
|
878
|
-
_context7.next =
|
|
878
|
+
_context7.next = 9;
|
|
879
879
|
break;
|
|
880
880
|
}
|
|
881
881
|
throw new errors.InvalidParameterError("Bad parameter: note must be of type String, received ".concat((0, _utils.getType)(params.note)));
|
|
882
|
-
case
|
|
882
|
+
case 9:
|
|
883
883
|
if (!(params.code && !(0, _utils.isString)(params.code))) {
|
|
884
|
-
_context7.next =
|
|
884
|
+
_context7.next = 10;
|
|
885
885
|
break;
|
|
886
886
|
}
|
|
887
887
|
throw new errors.InvalidParameterError("Bad parameter: code must be of type String, received ".concat((0, _utils.getType)(params.code)));
|
|
888
|
-
case
|
|
888
|
+
case 10:
|
|
889
889
|
if (!(params.path_template && !(0, _utils.isString)(params.path_template))) {
|
|
890
|
-
_context7.next =
|
|
890
|
+
_context7.next = 11;
|
|
891
891
|
break;
|
|
892
892
|
}
|
|
893
893
|
throw new errors.InvalidParameterError("Bad parameter: path_template must be of type String, received ".concat((0, _utils.getType)(params.path_template)));
|
|
894
|
-
case
|
|
894
|
+
case 11:
|
|
895
895
|
if (!(params.path_template_time_zone && !(0, _utils.isString)(params.path_template_time_zone))) {
|
|
896
|
-
_context7.next =
|
|
896
|
+
_context7.next = 12;
|
|
897
897
|
break;
|
|
898
898
|
}
|
|
899
899
|
throw new errors.InvalidParameterError("Bad parameter: path_template_time_zone must be of type String, received ".concat((0, _utils.getType)(params.path_template_time_zone)));
|
|
900
|
-
case
|
|
900
|
+
case 12:
|
|
901
901
|
if (!(params.permissions && !(0, _utils.isString)(params.permissions))) {
|
|
902
|
-
_context7.next =
|
|
902
|
+
_context7.next = 13;
|
|
903
903
|
break;
|
|
904
904
|
}
|
|
905
905
|
throw new errors.InvalidParameterError("Bad parameter: permissions must be of type String, received ".concat((0, _utils.getType)(params.permissions)));
|
|
906
|
-
case
|
|
906
|
+
case 13:
|
|
907
907
|
if (!(params.clickwrap_id && !(0, _utils.isInt)(params.clickwrap_id))) {
|
|
908
|
-
_context7.next =
|
|
908
|
+
_context7.next = 14;
|
|
909
909
|
break;
|
|
910
910
|
}
|
|
911
911
|
throw new errors.InvalidParameterError("Bad parameter: clickwrap_id must be of type Int, received ".concat((0, _utils.getType)(params.clickwrap_id)));
|
|
912
|
-
case
|
|
912
|
+
case 14:
|
|
913
913
|
if (!(params.inbox_id && !(0, _utils.isInt)(params.inbox_id))) {
|
|
914
|
-
_context7.next =
|
|
914
|
+
_context7.next = 15;
|
|
915
915
|
break;
|
|
916
916
|
}
|
|
917
917
|
throw new errors.InvalidParameterError("Bad parameter: inbox_id must be of type Int, received ".concat((0, _utils.getType)(params.inbox_id)));
|
|
918
|
-
case
|
|
918
|
+
case 15:
|
|
919
919
|
if (!(params.start_access_on_date && !(0, _utils.isString)(params.start_access_on_date))) {
|
|
920
|
-
_context7.next =
|
|
920
|
+
_context7.next = 16;
|
|
921
921
|
break;
|
|
922
922
|
}
|
|
923
923
|
throw new errors.InvalidParameterError("Bad parameter: start_access_on_date must be of type String, received ".concat((0, _utils.getType)(params.start_access_on_date)));
|
|
924
|
-
case
|
|
924
|
+
case 16:
|
|
925
925
|
if (!(params.snapshot_id && !(0, _utils.isInt)(params.snapshot_id))) {
|
|
926
|
-
_context7.next =
|
|
926
|
+
_context7.next = 17;
|
|
927
927
|
break;
|
|
928
928
|
}
|
|
929
929
|
throw new errors.InvalidParameterError("Bad parameter: snapshot_id must be of type Int, received ".concat((0, _utils.getType)(params.snapshot_id)));
|
|
930
|
-
case
|
|
931
|
-
_context7.next =
|
|
930
|
+
case 17:
|
|
931
|
+
_context7.next = 18;
|
|
932
932
|
return _Api.default.sendRequest('/bundles', 'POST', params, options);
|
|
933
|
-
case
|
|
933
|
+
case 18:
|
|
934
934
|
response = _context7.sent;
|
|
935
935
|
return _context7.abrupt("return", new _Bundle(response === null || response === void 0 ? void 0 : response.data, options));
|
|
936
|
-
case
|
|
936
|
+
case 19:
|
|
937
937
|
case "end":
|
|
938
938
|
return _context7.stop();
|
|
939
939
|
}
|
|
@@ -86,37 +86,37 @@ _BundleAction = BundleAction;
|
|
|
86
86
|
options,
|
|
87
87
|
response,
|
|
88
88
|
_args = arguments;
|
|
89
|
-
return _regenerator.default.wrap(function
|
|
89
|
+
return _regenerator.default.wrap(function (_context) {
|
|
90
90
|
while (1) switch (_context.prev = _context.next) {
|
|
91
91
|
case 0:
|
|
92
92
|
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
93
93
|
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
|
94
94
|
if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
|
|
95
|
-
_context.next =
|
|
95
|
+
_context.next = 1;
|
|
96
96
|
break;
|
|
97
97
|
}
|
|
98
98
|
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
|
|
99
|
-
case
|
|
99
|
+
case 1:
|
|
100
100
|
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
|
101
|
-
_context.next =
|
|
101
|
+
_context.next = 2;
|
|
102
102
|
break;
|
|
103
103
|
}
|
|
104
104
|
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
|
105
|
-
case
|
|
105
|
+
case 2:
|
|
106
106
|
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
|
107
|
-
_context.next =
|
|
107
|
+
_context.next = 3;
|
|
108
108
|
break;
|
|
109
109
|
}
|
|
110
110
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
111
|
-
case
|
|
112
|
-
_context.next =
|
|
111
|
+
case 3:
|
|
112
|
+
_context.next = 4;
|
|
113
113
|
return _Api.default.sendRequest('/bundle_actions', 'GET', params, options);
|
|
114
|
-
case
|
|
114
|
+
case 4:
|
|
115
115
|
response = _context.sent;
|
|
116
116
|
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) {
|
|
117
117
|
return new _BundleAction(obj, options);
|
|
118
118
|
})) || []);
|
|
119
|
-
case
|
|
119
|
+
case 5:
|
|
120
120
|
case "end":
|
|
121
121
|
return _context.stop();
|
|
122
122
|
}
|