files.com 1.2.101 → 1.2.102
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/ActionNotificationExportResult.md +0 -2
- package/docs/models/ApiKey.md +1 -3
- package/docs/models/ApiRequestLog.md +0 -2
- package/docs/models/App.md +1 -3
- package/docs/models/As2IncomingMessage.md +1 -3
- package/docs/models/As2OutgoingMessage.md +1 -3
- package/docs/models/As2Partner.md +0 -2
- package/docs/models/As2Station.md +0 -2
- package/docs/models/Automation.md +1 -10
- package/docs/models/AutomationLog.md +0 -2
- package/docs/models/AutomationRun.md +1 -3
- package/docs/models/BandwidthSnapshot.md +1 -3
- package/docs/models/Behavior.md +2 -8
- package/docs/models/Bundle.md +1 -3
- package/docs/models/BundleAction.md +1 -3
- package/docs/models/BundleDownload.md +1 -3
- package/docs/models/BundleNotification.md +1 -3
- package/docs/models/BundleRecipient.md +1 -3
- package/docs/models/BundleRegistration.md +0 -2
- package/docs/models/Clickwrap.md +0 -2
- package/docs/models/DnsRecord.md +0 -2
- package/docs/models/EmailIncomingMessage.md +1 -3
- package/docs/models/EmailLog.md +0 -2
- package/docs/models/ExavaultApiRequestLog.md +0 -2
- package/docs/models/ExternalEvent.md +1 -3
- package/docs/models/FileComment.md +0 -2
- package/docs/models/FileMigrationLog.md +0 -2
- package/docs/models/Folder.md +0 -1
- package/docs/models/FormFieldSet.md +0 -2
- package/docs/models/FtpActionLog.md +0 -2
- package/docs/models/GpgKey.md +1 -3
- package/docs/models/Group.md +1 -3
- package/docs/models/GroupUser.md +0 -2
- package/docs/models/History.md +5 -15
- package/docs/models/HistoryExportResult.md +0 -2
- package/docs/models/InboxRecipient.md +1 -3
- package/docs/models/InboxRegistration.md +0 -2
- package/docs/models/InboxUpload.md +1 -3
- package/docs/models/Invoice.md +0 -2
- package/docs/models/IpAddress.md +0 -8
- package/docs/models/Lock.md +0 -2
- package/docs/models/Message.md +0 -2
- package/docs/models/MessageComment.md +0 -2
- package/docs/models/MessageCommentReaction.md +0 -2
- package/docs/models/MessageReaction.md +0 -2
- package/docs/models/Notification.md +1 -5
- package/docs/models/OutboundConnectionLog.md +0 -2
- package/docs/models/Payment.md +0 -2
- package/docs/models/Permission.md +1 -3
- package/docs/models/Priority.md +0 -2
- package/docs/models/Project.md +0 -2
- package/docs/models/PublicHostingRequestLog.md +0 -2
- package/docs/models/PublicKey.md +0 -2
- package/docs/models/RemoteBandwidthSnapshot.md +1 -3
- package/docs/models/RemoteServer.md +0 -2
- package/docs/models/Request.md +2 -6
- package/docs/models/SettingsChange.md +1 -3
- package/docs/models/SftpActionLog.md +0 -2
- package/docs/models/SftpHostKey.md +0 -2
- package/docs/models/ShareGroup.md +0 -2
- package/docs/models/Snapshot.md +0 -2
- package/docs/models/SsoStrategy.md +0 -2
- package/docs/models/SyncLog.md +0 -2
- package/docs/models/UsageDailySnapshot.md +1 -3
- package/docs/models/UsageSnapshot.md +0 -2
- package/docs/models/User.md +1 -3
- package/docs/models/UserCipherUse.md +0 -2
- package/docs/models/UserRequest.md +0 -2
- package/docs/models/WebDavActionLog.md +0 -2
- package/lib/Files.js +1 -1
- package/lib/models/ActionNotificationExportResult.js +5 -19
- package/lib/models/ApiKey.js +4 -18
- package/lib/models/ApiRequestLog.js +3 -17
- package/lib/models/App.js +4 -18
- package/lib/models/As2IncomingMessage.js +6 -20
- package/lib/models/As2OutgoingMessage.js +6 -20
- package/lib/models/As2Partner.js +3 -17
- package/lib/models/As2Station.js +3 -17
- package/lib/models/Automation.js +87 -124
- package/lib/models/AutomationLog.js +3 -17
- package/lib/models/AutomationRun.js +6 -20
- package/lib/models/BandwidthSnapshot.js +4 -18
- package/lib/models/Behavior.js +10 -45
- package/lib/models/Bundle.js +4 -18
- package/lib/models/BundleAction.js +8 -22
- package/lib/models/BundleDownload.js +8 -22
- package/lib/models/BundleNotification.js +4 -18
- package/lib/models/BundleRecipient.js +6 -20
- package/lib/models/BundleRegistration.js +5 -19
- package/lib/models/Clickwrap.js +3 -17
- package/lib/models/DnsRecord.js +3 -17
- package/lib/models/EmailIncomingMessage.js +4 -18
- package/lib/models/EmailLog.js +3 -17
- package/lib/models/ExavaultApiRequestLog.js +3 -17
- package/lib/models/ExternalEvent.js +4 -18
- package/lib/models/FileComment.js +5 -19
- package/lib/models/FileMigrationLog.js +3 -17
- package/lib/models/Folder.js +13 -20
- package/lib/models/FormFieldSet.js +3 -17
- package/lib/models/FtpActionLog.js +3 -17
- package/lib/models/GpgKey.js +4 -18
- package/lib/models/Group.js +6 -20
- package/lib/models/GroupUser.js +5 -19
- package/lib/models/History.js +26 -96
- package/lib/models/HistoryExportResult.js +5 -19
- package/lib/models/InboxRecipient.js +6 -20
- package/lib/models/InboxRegistration.js +5 -19
- package/lib/models/InboxUpload.js +8 -22
- package/lib/models/Invoice.js +3 -17
- package/lib/models/IpAddress.js +12 -68
- package/lib/models/Lock.js +5 -19
- package/lib/models/Message.js +5 -19
- package/lib/models/MessageComment.js +5 -19
- package/lib/models/MessageCommentReaction.js +5 -19
- package/lib/models/MessageReaction.js +5 -19
- package/lib/models/Notification.js +12 -33
- package/lib/models/OutboundConnectionLog.js +3 -17
- package/lib/models/Payment.js +3 -17
- package/lib/models/Permission.js +10 -24
- package/lib/models/Priority.js +5 -19
- package/lib/models/Project.js +3 -17
- package/lib/models/PublicHostingRequestLog.js +3 -17
- package/lib/models/PublicKey.js +3 -17
- package/lib/models/RemoteBandwidthSnapshot.js +4 -18
- package/lib/models/RemoteServer.js +3 -17
- package/lib/models/Request.js +12 -40
- package/lib/models/SettingsChange.js +4 -18
- package/lib/models/SftpActionLog.js +3 -17
- package/lib/models/SftpHostKey.js +3 -17
- package/lib/models/ShareGroup.js +3 -17
- package/lib/models/Snapshot.js +3 -17
- package/lib/models/SsoStrategy.js +3 -17
- package/lib/models/SyncLog.js +3 -17
- package/lib/models/UsageDailySnapshot.js +4 -18
- package/lib/models/UsageSnapshot.js +3 -17
- package/lib/models/User.js +8 -22
- package/lib/models/UserCipherUse.js +3 -17
- package/lib/models/UserRequest.js +3 -17
- package/lib/models/WebDavActionLog.js +3 -17
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/ActionNotificationExportResult.js +0 -10
- package/src/models/ApiKey.js +1 -11
- package/src/models/ApiRequestLog.js +0 -10
- package/src/models/App.js +1 -11
- package/src/models/As2IncomingMessage.js +1 -11
- package/src/models/As2OutgoingMessage.js +1 -11
- package/src/models/As2Partner.js +0 -10
- package/src/models/As2Station.js +0 -10
- package/src/models/Automation.js +1 -30
- package/src/models/AutomationLog.js +0 -10
- package/src/models/AutomationRun.js +1 -11
- package/src/models/BandwidthSnapshot.js +1 -11
- package/src/models/Behavior.js +2 -27
- package/src/models/Bundle.js +1 -11
- package/src/models/BundleAction.js +1 -11
- package/src/models/BundleDownload.js +1 -11
- package/src/models/BundleNotification.js +1 -11
- package/src/models/BundleRecipient.js +1 -11
- package/src/models/BundleRegistration.js +0 -10
- package/src/models/Clickwrap.js +0 -10
- package/src/models/DnsRecord.js +0 -10
- package/src/models/EmailIncomingMessage.js +1 -11
- package/src/models/EmailLog.js +0 -10
- package/src/models/ExavaultApiRequestLog.js +0 -10
- package/src/models/ExternalEvent.js +1 -11
- package/src/models/FileComment.js +0 -10
- package/src/models/FileMigrationLog.js +0 -10
- package/src/models/Folder.js +0 -5
- package/src/models/FormFieldSet.js +0 -10
- package/src/models/FtpActionLog.js +0 -10
- package/src/models/GpgKey.js +1 -11
- package/src/models/Group.js +1 -11
- package/src/models/GroupUser.js +0 -10
- package/src/models/History.js +5 -55
- package/src/models/HistoryExportResult.js +0 -10
- package/src/models/InboxRecipient.js +1 -11
- package/src/models/InboxRegistration.js +0 -10
- package/src/models/InboxUpload.js +1 -11
- package/src/models/Invoice.js +0 -10
- package/src/models/IpAddress.js +0 -40
- package/src/models/Lock.js +0 -10
- package/src/models/Message.js +0 -10
- package/src/models/MessageComment.js +0 -10
- package/src/models/MessageCommentReaction.js +0 -10
- package/src/models/MessageReaction.js +0 -10
- package/src/models/Notification.js +1 -16
- package/src/models/OutboundConnectionLog.js +0 -10
- package/src/models/Payment.js +0 -10
- package/src/models/Permission.js +1 -11
- package/src/models/Priority.js +0 -10
- package/src/models/Project.js +0 -10
- package/src/models/PublicHostingRequestLog.js +0 -10
- package/src/models/PublicKey.js +0 -10
- package/src/models/RemoteBandwidthSnapshot.js +1 -11
- package/src/models/RemoteServer.js +0 -10
- package/src/models/Request.js +2 -22
- package/src/models/SettingsChange.js +1 -11
- package/src/models/SftpActionLog.js +0 -10
- package/src/models/SftpHostKey.js +0 -10
- package/src/models/ShareGroup.js +0 -10
- package/src/models/Snapshot.js +0 -10
- package/src/models/SsoStrategy.js +0 -10
- package/src/models/SyncLog.js +0 -10
- package/src/models/UsageDailySnapshot.js +1 -11
- package/src/models/UsageSnapshot.js +0 -10
- package/src/models/User.js +1 -11
- package/src/models/UserCipherUse.js +0 -10
- package/src/models/UserRequest.js +0 -10
- package/src/models/WebDavActionLog.js +0 -10
package/lib/models/Behavior.js
CHANGED
@@ -285,9 +285,7 @@ _Behavior = Behavior;
|
|
285
285
|
// Parameters:
|
286
286
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
287
287
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
288
|
-
//
|
289
|
-
// page - int64
|
290
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[behavior]=desc`). Valid fields are `behavior` and `impacts_ui`.
|
288
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior` and `impacts_ui`.
|
291
289
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
|
292
290
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
|
293
291
|
(0, _defineProperty2.default)(Behavior, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
@@ -313,26 +311,14 @@ _Behavior = Behavior;
|
|
313
311
|
}
|
314
312
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
315
313
|
case 6:
|
316
|
-
|
317
|
-
_context4.next = 8;
|
318
|
-
break;
|
319
|
-
}
|
320
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
321
|
-
case 8:
|
322
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
323
|
-
_context4.next = 10;
|
324
|
-
break;
|
325
|
-
}
|
326
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
327
|
-
case 10:
|
328
|
-
_context4.next = 12;
|
314
|
+
_context4.next = 8;
|
329
315
|
return _Api.default.sendRequest('/behaviors', 'GET', params, options);
|
330
|
-
case
|
316
|
+
case 8:
|
331
317
|
response = _context4.sent;
|
332
318
|
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) {
|
333
319
|
return new _Behavior(obj, options);
|
334
320
|
})) || []);
|
335
|
-
case
|
321
|
+
case 10:
|
336
322
|
case "end":
|
337
323
|
return _context4.stop();
|
338
324
|
}
|
@@ -398,14 +384,11 @@ _Behavior = Behavior;
|
|
398
384
|
// Parameters:
|
399
385
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
400
386
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
401
|
-
//
|
402
|
-
// page - int64
|
403
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[behavior]=desc`). Valid fields are `behavior` and `impacts_ui`.
|
387
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior` and `impacts_ui`.
|
404
388
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
|
405
389
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
|
406
390
|
// path (required) - string - Path to operate on.
|
407
391
|
// ancestor_behaviors - boolean - If `true`, behaviors above this path are shown.
|
408
|
-
// behavior - string
|
409
392
|
(0, _defineProperty2.default)(Behavior, "listFor", /*#__PURE__*/function () {
|
410
393
|
var _ref8 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(path) {
|
411
394
|
var _response$data2;
|
@@ -443,38 +426,20 @@ _Behavior = Behavior;
|
|
443
426
|
}
|
444
427
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
445
428
|
case 11:
|
446
|
-
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
447
|
-
_context6.next = 13;
|
448
|
-
break;
|
449
|
-
}
|
450
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
451
|
-
case 13:
|
452
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
453
|
-
_context6.next = 15;
|
454
|
-
break;
|
455
|
-
}
|
456
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
457
|
-
case 15:
|
458
429
|
if (!(params.path && !(0, _utils.isString)(params.path))) {
|
459
|
-
_context6.next =
|
430
|
+
_context6.next = 13;
|
460
431
|
break;
|
461
432
|
}
|
462
433
|
throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
|
463
|
-
case
|
464
|
-
|
465
|
-
_context6.next = 19;
|
466
|
-
break;
|
467
|
-
}
|
468
|
-
throw new errors.InvalidParameterError("Bad parameter: behavior must be of type String, received ".concat((0, _utils.getType)(params.behavior)));
|
469
|
-
case 19:
|
470
|
-
_context6.next = 21;
|
434
|
+
case 13:
|
435
|
+
_context6.next = 15;
|
471
436
|
return _Api.default.sendRequest("/behaviors/folders/".concat(encodeURIComponent(params.path)), 'GET', params, options);
|
472
|
-
case
|
437
|
+
case 15:
|
473
438
|
response = _context6.sent;
|
474
439
|
return _context6.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.map(function (obj) {
|
475
440
|
return new _Behavior(obj, options);
|
476
441
|
})) || []);
|
477
|
-
case
|
442
|
+
case 17:
|
478
443
|
case "end":
|
479
444
|
return _context6.stop();
|
480
445
|
}
|
package/lib/models/Bundle.js
CHANGED
@@ -677,9 +677,7 @@ _Bundle = Bundle;
|
|
677
677
|
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
678
678
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
679
679
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
680
|
-
//
|
681
|
-
// page - int64
|
682
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[created_at]=desc`). Valid fields are `created_at` and `code`.
|
680
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at` and `code`.
|
683
681
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
684
682
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
685
683
|
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
@@ -714,26 +712,14 @@ _Bundle = Bundle;
|
|
714
712
|
}
|
715
713
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
716
714
|
case 8:
|
717
|
-
|
718
|
-
_context5.next = 10;
|
719
|
-
break;
|
720
|
-
}
|
721
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
722
|
-
case 10:
|
723
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
724
|
-
_context5.next = 12;
|
725
|
-
break;
|
726
|
-
}
|
727
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
728
|
-
case 12:
|
729
|
-
_context5.next = 14;
|
715
|
+
_context5.next = 10;
|
730
716
|
return _Api.default.sendRequest('/bundles', 'GET', params, options);
|
731
|
-
case
|
717
|
+
case 10:
|
732
718
|
response = _context5.sent;
|
733
719
|
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) {
|
734
720
|
return new _Bundle(obj, options);
|
735
721
|
})) || []);
|
736
|
-
case
|
722
|
+
case 12:
|
737
723
|
case "end":
|
738
724
|
return _context5.stop();
|
739
725
|
}
|
@@ -74,9 +74,7 @@ _BundleAction = BundleAction;
|
|
74
74
|
// Parameters:
|
75
75
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
76
76
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
77
|
-
//
|
78
|
-
// page - int64
|
79
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[bundle_registration_id]=desc`). Valid fields are `bundle_registration_id` and `created_at`.
|
77
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `bundle_registration_id` and `created_at`.
|
80
78
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
81
79
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
82
80
|
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
@@ -107,38 +105,26 @@ _BundleAction = BundleAction;
|
|
107
105
|
}
|
108
106
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
109
107
|
case 6:
|
110
|
-
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
111
|
-
_context.next = 8;
|
112
|
-
break;
|
113
|
-
}
|
114
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
115
|
-
case 8:
|
116
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
117
|
-
_context.next = 10;
|
118
|
-
break;
|
119
|
-
}
|
120
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
121
|
-
case 10:
|
122
108
|
if (!(params.bundle_id && !(0, _utils.isInt)(params.bundle_id))) {
|
123
|
-
_context.next =
|
109
|
+
_context.next = 8;
|
124
110
|
break;
|
125
111
|
}
|
126
112
|
throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params.bundle_id)));
|
127
|
-
case
|
113
|
+
case 8:
|
128
114
|
if (!(params.bundle_registration_id && !(0, _utils.isInt)(params.bundle_registration_id))) {
|
129
|
-
_context.next =
|
115
|
+
_context.next = 10;
|
130
116
|
break;
|
131
117
|
}
|
132
118
|
throw new errors.InvalidParameterError("Bad parameter: bundle_registration_id must be of type Int, received ".concat((0, _utils.getType)(params.bundle_registration_id)));
|
133
|
-
case
|
134
|
-
_context.next =
|
119
|
+
case 10:
|
120
|
+
_context.next = 12;
|
135
121
|
return _Api.default.sendRequest('/bundle_actions', 'GET', params, options);
|
136
|
-
case
|
122
|
+
case 12:
|
137
123
|
response = _context.sent;
|
138
124
|
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) {
|
139
125
|
return new _BundleAction(obj, options);
|
140
126
|
})) || []);
|
141
|
-
case
|
127
|
+
case 14:
|
142
128
|
case "end":
|
143
129
|
return _context.stop();
|
144
130
|
}
|
@@ -66,9 +66,7 @@ _BundleDownload = BundleDownload;
|
|
66
66
|
// Parameters:
|
67
67
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
68
68
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
69
|
-
//
|
70
|
-
// page - int64
|
71
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[created_at]=desc`). Valid fields are `created_at`.
|
69
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
|
72
70
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
73
71
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
74
72
|
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
@@ -99,38 +97,26 @@ _BundleDownload = BundleDownload;
|
|
99
97
|
}
|
100
98
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
101
99
|
case 6:
|
102
|
-
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
103
|
-
_context.next = 8;
|
104
|
-
break;
|
105
|
-
}
|
106
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
107
|
-
case 8:
|
108
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
109
|
-
_context.next = 10;
|
110
|
-
break;
|
111
|
-
}
|
112
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
113
|
-
case 10:
|
114
100
|
if (!(params.bundle_id && !(0, _utils.isInt)(params.bundle_id))) {
|
115
|
-
_context.next =
|
101
|
+
_context.next = 8;
|
116
102
|
break;
|
117
103
|
}
|
118
104
|
throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params.bundle_id)));
|
119
|
-
case
|
105
|
+
case 8:
|
120
106
|
if (!(params.bundle_registration_id && !(0, _utils.isInt)(params.bundle_registration_id))) {
|
121
|
-
_context.next =
|
107
|
+
_context.next = 10;
|
122
108
|
break;
|
123
109
|
}
|
124
110
|
throw new errors.InvalidParameterError("Bad parameter: bundle_registration_id must be of type Int, received ".concat((0, _utils.getType)(params.bundle_registration_id)));
|
125
|
-
case
|
126
|
-
_context.next =
|
111
|
+
case 10:
|
112
|
+
_context.next = 12;
|
127
113
|
return _Api.default.sendRequest('/bundle_downloads', 'GET', params, options);
|
128
|
-
case
|
114
|
+
case 12:
|
129
115
|
response = _context.sent;
|
130
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) {
|
131
117
|
return new _BundleDownload(obj, options);
|
132
118
|
})) || []);
|
133
|
-
case
|
119
|
+
case 14:
|
134
120
|
case "end":
|
135
121
|
return _context.stop();
|
136
122
|
}
|
@@ -220,9 +220,7 @@ _BundleNotification = BundleNotification;
|
|
220
220
|
// Parameters:
|
221
221
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
222
222
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
223
|
-
//
|
224
|
-
// page - int64
|
225
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[bundle_id]=desc`). Valid fields are `bundle_id`.
|
223
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `bundle_id`.
|
226
224
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `bundle_id`.
|
227
225
|
(0, _defineProperty2.default)(BundleNotification, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
228
226
|
var _response$data;
|
@@ -247,26 +245,14 @@ _BundleNotification = BundleNotification;
|
|
247
245
|
}
|
248
246
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
249
247
|
case 6:
|
250
|
-
|
251
|
-
_context4.next = 8;
|
252
|
-
break;
|
253
|
-
}
|
254
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
255
|
-
case 8:
|
256
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
257
|
-
_context4.next = 10;
|
258
|
-
break;
|
259
|
-
}
|
260
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
261
|
-
case 10:
|
262
|
-
_context4.next = 12;
|
248
|
+
_context4.next = 8;
|
263
249
|
return _Api.default.sendRequest('/bundle_notifications', 'GET', params, options);
|
264
|
-
case
|
250
|
+
case 8:
|
265
251
|
response = _context4.sent;
|
266
252
|
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) {
|
267
253
|
return new _BundleNotification(obj, options);
|
268
254
|
})) || []);
|
269
|
-
case
|
255
|
+
case 10:
|
270
256
|
case "end":
|
271
257
|
return _context4.stop();
|
272
258
|
}
|
@@ -122,9 +122,7 @@ _BundleRecipient = BundleRecipient;
|
|
122
122
|
// Parameters:
|
123
123
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
124
124
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
125
|
-
//
|
126
|
-
// page - int64
|
127
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[has_registrations]=desc`). Valid fields are `has_registrations`.
|
125
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `has_registrations`.
|
128
126
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `has_registrations`.
|
129
127
|
// bundle_id (required) - int64 - List recipients for the bundle with this ID.
|
130
128
|
(0, _defineProperty2.default)(BundleRecipient, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
@@ -156,32 +154,20 @@ _BundleRecipient = BundleRecipient;
|
|
156
154
|
}
|
157
155
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
158
156
|
case 8:
|
159
|
-
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
160
|
-
_context2.next = 10;
|
161
|
-
break;
|
162
|
-
}
|
163
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
164
|
-
case 10:
|
165
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
166
|
-
_context2.next = 12;
|
167
|
-
break;
|
168
|
-
}
|
169
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
170
|
-
case 12:
|
171
157
|
if (!(params.bundle_id && !(0, _utils.isInt)(params.bundle_id))) {
|
172
|
-
_context2.next =
|
158
|
+
_context2.next = 10;
|
173
159
|
break;
|
174
160
|
}
|
175
161
|
throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params.bundle_id)));
|
176
|
-
case
|
177
|
-
_context2.next =
|
162
|
+
case 10:
|
163
|
+
_context2.next = 12;
|
178
164
|
return _Api.default.sendRequest('/bundle_recipients', 'GET', params, options);
|
179
|
-
case
|
165
|
+
case 12:
|
180
166
|
response = _context2.sent;
|
181
167
|
return _context2.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
182
168
|
return new _BundleRecipient(obj, options);
|
183
169
|
})) || []);
|
184
|
-
case
|
170
|
+
case 14:
|
185
171
|
case "end":
|
186
172
|
return _context2.stop();
|
187
173
|
}
|
@@ -102,8 +102,6 @@ _BundleRegistration = BundleRegistration;
|
|
102
102
|
// Parameters:
|
103
103
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
104
104
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
105
|
-
// action - string
|
106
|
-
// page - int64
|
107
105
|
// bundle_id - int64 - ID of the associated Bundle
|
108
106
|
(0, _defineProperty2.default)(BundleRegistration, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
109
107
|
var _response$data;
|
@@ -128,32 +126,20 @@ _BundleRegistration = BundleRegistration;
|
|
128
126
|
}
|
129
127
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
130
128
|
case 6:
|
131
|
-
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
132
|
-
_context.next = 8;
|
133
|
-
break;
|
134
|
-
}
|
135
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
136
|
-
case 8:
|
137
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
138
|
-
_context.next = 10;
|
139
|
-
break;
|
140
|
-
}
|
141
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
142
|
-
case 10:
|
143
129
|
if (!(params.bundle_id && !(0, _utils.isInt)(params.bundle_id))) {
|
144
|
-
_context.next =
|
130
|
+
_context.next = 8;
|
145
131
|
break;
|
146
132
|
}
|
147
133
|
throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params.bundle_id)));
|
148
|
-
case
|
149
|
-
_context.next =
|
134
|
+
case 8:
|
135
|
+
_context.next = 10;
|
150
136
|
return _Api.default.sendRequest('/bundle_registrations', 'GET', params, options);
|
151
|
-
case
|
137
|
+
case 10:
|
152
138
|
response = _context.sent;
|
153
139
|
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) {
|
154
140
|
return new _BundleRegistration(obj, options);
|
155
141
|
})) || []);
|
156
|
-
case
|
142
|
+
case 12:
|
157
143
|
case "end":
|
158
144
|
return _context.stop();
|
159
145
|
}
|
package/lib/models/Clickwrap.js
CHANGED
@@ -260,8 +260,6 @@ _Clickwrap = Clickwrap;
|
|
260
260
|
// Parameters:
|
261
261
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
262
262
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
263
|
-
// action - string
|
264
|
-
// page - int64
|
265
263
|
(0, _defineProperty2.default)(Clickwrap, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
266
264
|
var _response$data;
|
267
265
|
var params,
|
@@ -285,26 +283,14 @@ _Clickwrap = Clickwrap;
|
|
285
283
|
}
|
286
284
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
287
285
|
case 6:
|
288
|
-
|
289
|
-
_context4.next = 8;
|
290
|
-
break;
|
291
|
-
}
|
292
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
293
|
-
case 8:
|
294
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
295
|
-
_context4.next = 10;
|
296
|
-
break;
|
297
|
-
}
|
298
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
299
|
-
case 10:
|
300
|
-
_context4.next = 12;
|
286
|
+
_context4.next = 8;
|
301
287
|
return _Api.default.sendRequest('/clickwraps', 'GET', params, options);
|
302
|
-
case
|
288
|
+
case 8:
|
303
289
|
response = _context4.sent;
|
304
290
|
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) {
|
305
291
|
return new _Clickwrap(obj, options);
|
306
292
|
})) || []);
|
307
|
-
case
|
293
|
+
case 10:
|
308
294
|
case "end":
|
309
295
|
return _context4.stop();
|
310
296
|
}
|
package/lib/models/DnsRecord.js
CHANGED
@@ -66,8 +66,6 @@ _DnsRecord = DnsRecord;
|
|
66
66
|
// Parameters:
|
67
67
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
68
68
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
69
|
-
// action - string
|
70
|
-
// page - int64
|
71
69
|
(0, _defineProperty2.default)(DnsRecord, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
72
70
|
var _response$data;
|
73
71
|
var params,
|
@@ -91,26 +89,14 @@ _DnsRecord = DnsRecord;
|
|
91
89
|
}
|
92
90
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
93
91
|
case 6:
|
94
|
-
|
95
|
-
_context.next = 8;
|
96
|
-
break;
|
97
|
-
}
|
98
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
99
|
-
case 8:
|
100
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
101
|
-
_context.next = 10;
|
102
|
-
break;
|
103
|
-
}
|
104
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
105
|
-
case 10:
|
106
|
-
_context.next = 12;
|
92
|
+
_context.next = 8;
|
107
93
|
return _Api.default.sendRequest('/dns_records', 'GET', params, options);
|
108
|
-
case
|
94
|
+
case 8:
|
109
95
|
response = _context.sent;
|
110
96
|
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) {
|
111
97
|
return new _DnsRecord(obj, options);
|
112
98
|
})) || []);
|
113
|
-
case
|
99
|
+
case 10:
|
114
100
|
case "end":
|
115
101
|
return _context.stop();
|
116
102
|
}
|
@@ -86,9 +86,7 @@ _EmailIncomingMessage = EmailIncomingMessage;
|
|
86
86
|
// Parameters:
|
87
87
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
88
88
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
89
|
-
//
|
90
|
-
// page - int64
|
91
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[created_at]=desc`). Valid fields are `created_at`, `sender`, `status` or `inbox_id`.
|
89
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`, `sender`, `status` or `inbox_id`.
|
92
90
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `inbox_id`, `sender` or `status`. Valid field combinations are `[ sender, created_at ]`, `[ status, created_at ]`, `[ inbox_id, created_at ]`, `[ inbox_id, status, created_at ]` or `[ inbox_id, status, sender, created_at ]`.
|
93
91
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
94
92
|
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
@@ -118,26 +116,14 @@ _EmailIncomingMessage = EmailIncomingMessage;
|
|
118
116
|
}
|
119
117
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
120
118
|
case 6:
|
121
|
-
|
122
|
-
_context.next = 8;
|
123
|
-
break;
|
124
|
-
}
|
125
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
126
|
-
case 8:
|
127
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
128
|
-
_context.next = 10;
|
129
|
-
break;
|
130
|
-
}
|
131
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
132
|
-
case 10:
|
133
|
-
_context.next = 12;
|
119
|
+
_context.next = 8;
|
134
120
|
return _Api.default.sendRequest('/email_incoming_messages', 'GET', params, options);
|
135
|
-
case
|
121
|
+
case 8:
|
136
122
|
response = _context.sent;
|
137
123
|
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) {
|
138
124
|
return new _EmailIncomingMessage(obj, options);
|
139
125
|
})) || []);
|
140
|
-
case
|
126
|
+
case 10:
|
141
127
|
case "end":
|
142
128
|
return _context.stop();
|
143
129
|
}
|
package/lib/models/EmailLog.js
CHANGED
@@ -86,8 +86,6 @@ _EmailLog = EmailLog;
|
|
86
86
|
// Parameters:
|
87
87
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
88
88
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
89
|
-
// action - string
|
90
|
-
// page - int64
|
91
89
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `start_date`, `end_date` or `status`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ status ]`, `[ start_date, end_date ]`, `[ start_date, status ]` or `[ end_date, status ]`.
|
92
90
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `status`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ status ]`, `[ start_date, end_date ]`, `[ start_date, status ]` or `[ end_date, status ]`.
|
93
91
|
(0, _defineProperty2.default)(EmailLog, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
@@ -113,26 +111,14 @@ _EmailLog = EmailLog;
|
|
113
111
|
}
|
114
112
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
115
113
|
case 6:
|
116
|
-
|
117
|
-
_context.next = 8;
|
118
|
-
break;
|
119
|
-
}
|
120
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
121
|
-
case 8:
|
122
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
123
|
-
_context.next = 10;
|
124
|
-
break;
|
125
|
-
}
|
126
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
127
|
-
case 10:
|
128
|
-
_context.next = 12;
|
114
|
+
_context.next = 8;
|
129
115
|
return _Api.default.sendRequest('/email_logs', 'GET', params, options);
|
130
|
-
case
|
116
|
+
case 8:
|
131
117
|
response = _context.sent;
|
132
118
|
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) {
|
133
119
|
return new _EmailLog(obj, options);
|
134
120
|
})) || []);
|
135
|
-
case
|
121
|
+
case 10:
|
136
122
|
case "end":
|
137
123
|
return _context.stop();
|
138
124
|
}
|
@@ -94,8 +94,6 @@ _ExavaultApiRequestLog = ExavaultApiRequestLog;
|
|
94
94
|
// Parameters:
|
95
95
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
96
96
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
97
|
-
// action - string
|
98
|
-
// page - int64
|
99
97
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `start_date`, `end_date`, `request_ip`, `request_method` or `success`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ request_ip ]`, `[ request_method ]`, `[ success ]`, `[ start_date, end_date ]`, `[ start_date, request_ip ]`, `[ start_date, request_method ]`, `[ start_date, success ]`, `[ end_date, request_ip ]`, `[ end_date, request_method ]`, `[ end_date, success ]`, `[ request_ip, request_method ]`, `[ request_ip, success ]`, `[ request_method, success ]`, `[ start_date, end_date, request_ip ]`, `[ start_date, end_date, request_method ]`, `[ start_date, end_date, success ]`, `[ start_date, request_ip, request_method ]`, `[ start_date, request_ip, success ]`, `[ start_date, request_method, success ]`, `[ end_date, request_ip, request_method ]`, `[ end_date, request_ip, success ]`, `[ end_date, request_method, success ]`, `[ request_ip, request_method, success ]`, `[ start_date, end_date, request_ip, request_method ]`, `[ start_date, end_date, request_ip, success ]`, `[ start_date, end_date, request_method, success ]`, `[ start_date, request_ip, request_method, success ]` or `[ end_date, request_ip, request_method, success ]`.
|
100
98
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `request_ip` and `request_method`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ request_ip ]`, `[ request_method ]`, `[ success ]`, `[ start_date, end_date ]`, `[ start_date, request_ip ]`, `[ start_date, request_method ]`, `[ start_date, success ]`, `[ end_date, request_ip ]`, `[ end_date, request_method ]`, `[ end_date, success ]`, `[ request_ip, request_method ]`, `[ request_ip, success ]`, `[ request_method, success ]`, `[ start_date, end_date, request_ip ]`, `[ start_date, end_date, request_method ]`, `[ start_date, end_date, success ]`, `[ start_date, request_ip, request_method ]`, `[ start_date, request_ip, success ]`, `[ start_date, request_method, success ]`, `[ end_date, request_ip, request_method ]`, `[ end_date, request_ip, success ]`, `[ end_date, request_method, success ]`, `[ request_ip, request_method, success ]`, `[ start_date, end_date, request_ip, request_method ]`, `[ start_date, end_date, request_ip, success ]`, `[ start_date, end_date, request_method, success ]`, `[ start_date, request_ip, request_method, success ]` or `[ end_date, request_ip, request_method, success ]`.
|
101
99
|
(0, _defineProperty2.default)(ExavaultApiRequestLog, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
@@ -121,26 +119,14 @@ _ExavaultApiRequestLog = ExavaultApiRequestLog;
|
|
121
119
|
}
|
122
120
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
123
121
|
case 6:
|
124
|
-
|
125
|
-
_context.next = 8;
|
126
|
-
break;
|
127
|
-
}
|
128
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
129
|
-
case 8:
|
130
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
131
|
-
_context.next = 10;
|
132
|
-
break;
|
133
|
-
}
|
134
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
135
|
-
case 10:
|
136
|
-
_context.next = 12;
|
122
|
+
_context.next = 8;
|
137
123
|
return _Api.default.sendRequest('/exavault_api_request_logs', 'GET', params, options);
|
138
|
-
case
|
124
|
+
case 8:
|
139
125
|
response = _context.sent;
|
140
126
|
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) {
|
141
127
|
return new _ExavaultApiRequestLog(obj, options);
|
142
128
|
})) || []);
|
143
|
-
case
|
129
|
+
case 10:
|
144
130
|
case "end":
|
145
131
|
return _context.stop();
|
146
132
|
}
|