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/Automation.js
CHANGED
@@ -264,13 +264,6 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
|
|
264
264
|
(0, _defineProperty2.default)(this, "setWebhookUrl", function (value) {
|
265
265
|
_this.attributes.webhook_url = value;
|
266
266
|
});
|
267
|
-
// string
|
268
|
-
(0, _defineProperty2.default)(this, "getDestination", function () {
|
269
|
-
return _this.attributes.destination;
|
270
|
-
});
|
271
|
-
(0, _defineProperty2.default)(this, "setDestination", function (value) {
|
272
|
-
_this.attributes.destination = value;
|
273
|
-
});
|
274
267
|
// Manually run automation
|
275
268
|
(0, _defineProperty2.default)(this, "manualRun", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
276
269
|
var params,
|
@@ -322,7 +315,6 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
|
|
322
315
|
})));
|
323
316
|
// Parameters:
|
324
317
|
// source - string - Source Path
|
325
|
-
// destination - string
|
326
318
|
// destinations - array(string) - A list of String destination paths or Hash of folder_path and optional file_path.
|
327
319
|
// destination_replace_from - string - If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
|
328
320
|
// destination_replace_to - string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
@@ -331,7 +323,6 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
|
|
331
323
|
// sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
332
324
|
// user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
333
325
|
// group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
334
|
-
// schedule - object
|
335
326
|
// schedule_days_of_week - array(int64) - If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
|
336
327
|
// schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
|
337
328
|
// schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
|
@@ -382,140 +373,134 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
|
|
382
373
|
}
|
383
374
|
throw new errors.InvalidParameterError("Bad parameter: source must be of type String, received ".concat((0, _utils.getType)(params.source)));
|
384
375
|
case 10:
|
385
|
-
if (!(params.destination && !(0, _utils.isString)(params.destination))) {
|
386
|
-
_context2.next = 12;
|
387
|
-
break;
|
388
|
-
}
|
389
|
-
throw new errors.InvalidParameterError("Bad parameter: destination must be of type String, received ".concat((0, _utils.getType)(params.destination)));
|
390
|
-
case 12:
|
391
376
|
if (!(params.destinations && !(0, _utils.isArray)(params.destinations))) {
|
392
|
-
_context2.next =
|
377
|
+
_context2.next = 12;
|
393
378
|
break;
|
394
379
|
}
|
395
380
|
throw new errors.InvalidParameterError("Bad parameter: destinations must be of type Array, received ".concat((0, _utils.getType)(params.destinations)));
|
396
|
-
case
|
381
|
+
case 12:
|
397
382
|
if (!(params.destination_replace_from && !(0, _utils.isString)(params.destination_replace_from))) {
|
398
|
-
_context2.next =
|
383
|
+
_context2.next = 14;
|
399
384
|
break;
|
400
385
|
}
|
401
386
|
throw new errors.InvalidParameterError("Bad parameter: destination_replace_from must be of type String, received ".concat((0, _utils.getType)(params.destination_replace_from)));
|
402
|
-
case
|
387
|
+
case 14:
|
403
388
|
if (!(params.destination_replace_to && !(0, _utils.isString)(params.destination_replace_to))) {
|
404
|
-
_context2.next =
|
389
|
+
_context2.next = 16;
|
405
390
|
break;
|
406
391
|
}
|
407
392
|
throw new errors.InvalidParameterError("Bad parameter: destination_replace_to must be of type String, received ".concat((0, _utils.getType)(params.destination_replace_to)));
|
408
|
-
case
|
393
|
+
case 16:
|
409
394
|
if (!(params.interval && !(0, _utils.isString)(params.interval))) {
|
410
|
-
_context2.next =
|
395
|
+
_context2.next = 18;
|
411
396
|
break;
|
412
397
|
}
|
413
398
|
throw new errors.InvalidParameterError("Bad parameter: interval must be of type String, received ".concat((0, _utils.getType)(params.interval)));
|
414
|
-
case
|
399
|
+
case 18:
|
415
400
|
if (!(params.path && !(0, _utils.isString)(params.path))) {
|
416
|
-
_context2.next =
|
401
|
+
_context2.next = 20;
|
417
402
|
break;
|
418
403
|
}
|
419
404
|
throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
|
420
|
-
case
|
405
|
+
case 20:
|
421
406
|
if (!(params.sync_ids && !(0, _utils.isString)(params.sync_ids))) {
|
422
|
-
_context2.next =
|
407
|
+
_context2.next = 22;
|
423
408
|
break;
|
424
409
|
}
|
425
410
|
throw new errors.InvalidParameterError("Bad parameter: sync_ids must be of type String, received ".concat((0, _utils.getType)(params.sync_ids)));
|
426
|
-
case
|
411
|
+
case 22:
|
427
412
|
if (!(params.user_ids && !(0, _utils.isString)(params.user_ids))) {
|
428
|
-
_context2.next =
|
413
|
+
_context2.next = 24;
|
429
414
|
break;
|
430
415
|
}
|
431
416
|
throw new errors.InvalidParameterError("Bad parameter: user_ids must be of type String, received ".concat((0, _utils.getType)(params.user_ids)));
|
432
|
-
case
|
417
|
+
case 24:
|
433
418
|
if (!(params.group_ids && !(0, _utils.isString)(params.group_ids))) {
|
434
|
-
_context2.next =
|
419
|
+
_context2.next = 26;
|
435
420
|
break;
|
436
421
|
}
|
437
422
|
throw new errors.InvalidParameterError("Bad parameter: group_ids must be of type String, received ".concat((0, _utils.getType)(params.group_ids)));
|
438
|
-
case
|
423
|
+
case 26:
|
439
424
|
if (!(params.schedule_days_of_week && !(0, _utils.isArray)(params.schedule_days_of_week))) {
|
440
|
-
_context2.next =
|
425
|
+
_context2.next = 28;
|
441
426
|
break;
|
442
427
|
}
|
443
428
|
throw new errors.InvalidParameterError("Bad parameter: schedule_days_of_week must be of type Array, received ".concat((0, _utils.getType)(params.schedule_days_of_week)));
|
444
|
-
case
|
429
|
+
case 28:
|
445
430
|
if (!(params.schedule_times_of_day && !(0, _utils.isArray)(params.schedule_times_of_day))) {
|
446
|
-
_context2.next =
|
431
|
+
_context2.next = 30;
|
447
432
|
break;
|
448
433
|
}
|
449
434
|
throw new errors.InvalidParameterError("Bad parameter: schedule_times_of_day must be of type Array, received ".concat((0, _utils.getType)(params.schedule_times_of_day)));
|
450
|
-
case
|
435
|
+
case 30:
|
451
436
|
if (!(params.schedule_time_zone && !(0, _utils.isString)(params.schedule_time_zone))) {
|
452
|
-
_context2.next =
|
437
|
+
_context2.next = 32;
|
453
438
|
break;
|
454
439
|
}
|
455
440
|
throw new errors.InvalidParameterError("Bad parameter: schedule_time_zone must be of type String, received ".concat((0, _utils.getType)(params.schedule_time_zone)));
|
456
|
-
case
|
441
|
+
case 32:
|
457
442
|
if (!(params.description && !(0, _utils.isString)(params.description))) {
|
458
|
-
_context2.next =
|
443
|
+
_context2.next = 34;
|
459
444
|
break;
|
460
445
|
}
|
461
446
|
throw new errors.InvalidParameterError("Bad parameter: description must be of type String, received ".concat((0, _utils.getType)(params.description)));
|
462
|
-
case
|
447
|
+
case 34:
|
463
448
|
if (!(params.name && !(0, _utils.isString)(params.name))) {
|
464
|
-
_context2.next =
|
449
|
+
_context2.next = 36;
|
465
450
|
break;
|
466
451
|
}
|
467
452
|
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
|
468
|
-
case
|
453
|
+
case 36:
|
469
454
|
if (!(params.path_time_zone && !(0, _utils.isString)(params.path_time_zone))) {
|
470
|
-
_context2.next =
|
455
|
+
_context2.next = 38;
|
471
456
|
break;
|
472
457
|
}
|
473
458
|
throw new errors.InvalidParameterError("Bad parameter: path_time_zone must be of type String, received ".concat((0, _utils.getType)(params.path_time_zone)));
|
474
|
-
case
|
459
|
+
case 38:
|
475
460
|
if (!(params.trigger && !(0, _utils.isString)(params.trigger))) {
|
476
|
-
_context2.next =
|
461
|
+
_context2.next = 40;
|
477
462
|
break;
|
478
463
|
}
|
479
464
|
throw new errors.InvalidParameterError("Bad parameter: trigger must be of type String, received ".concat((0, _utils.getType)(params.trigger)));
|
480
|
-
case
|
465
|
+
case 40:
|
481
466
|
if (!(params.trigger_actions && !(0, _utils.isArray)(params.trigger_actions))) {
|
482
|
-
_context2.next =
|
467
|
+
_context2.next = 42;
|
483
468
|
break;
|
484
469
|
}
|
485
470
|
throw new errors.InvalidParameterError("Bad parameter: trigger_actions must be of type Array, received ".concat((0, _utils.getType)(params.trigger_actions)));
|
486
|
-
case
|
471
|
+
case 42:
|
487
472
|
if (!(params.recurring_day && !(0, _utils.isInt)(params.recurring_day))) {
|
488
|
-
_context2.next =
|
473
|
+
_context2.next = 44;
|
489
474
|
break;
|
490
475
|
}
|
491
476
|
throw new errors.InvalidParameterError("Bad parameter: recurring_day must be of type Int, received ".concat((0, _utils.getType)(params.recurring_day)));
|
492
|
-
case
|
477
|
+
case 44:
|
493
478
|
if (!(params.automation && !(0, _utils.isString)(params.automation))) {
|
494
|
-
_context2.next =
|
479
|
+
_context2.next = 46;
|
495
480
|
break;
|
496
481
|
}
|
497
482
|
throw new errors.InvalidParameterError("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(params.automation)));
|
498
|
-
case
|
483
|
+
case 46:
|
499
484
|
if (params.id) {
|
500
|
-
_context2.next =
|
485
|
+
_context2.next = 52;
|
501
486
|
break;
|
502
487
|
}
|
503
488
|
if (!_this.attributes.id) {
|
504
|
-
_context2.next =
|
489
|
+
_context2.next = 51;
|
505
490
|
break;
|
506
491
|
}
|
507
492
|
params.id = _this.id;
|
508
|
-
_context2.next =
|
493
|
+
_context2.next = 52;
|
509
494
|
break;
|
510
|
-
case
|
495
|
+
case 51:
|
511
496
|
throw new errors.MissingParameterError('Parameter missing: id');
|
512
|
-
case
|
513
|
-
_context2.next =
|
497
|
+
case 52:
|
498
|
+
_context2.next = 54;
|
514
499
|
return _Api.default.sendRequest("/automations/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
|
515
|
-
case
|
500
|
+
case 54:
|
516
501
|
response = _context2.sent;
|
517
502
|
return _context2.abrupt("return", new Automation(response === null || response === void 0 ? void 0 : response.data, _this.options));
|
518
|
-
case
|
503
|
+
case 56:
|
519
504
|
case "end":
|
520
505
|
return _context2.stop();
|
521
506
|
}
|
@@ -618,9 +603,7 @@ _Automation = Automation;
|
|
618
603
|
// Parameters:
|
619
604
|
// 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.
|
620
605
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
621
|
-
//
|
622
|
-
// page - int64
|
623
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[automation]=desc`). Valid fields are `automation`, `disabled`, `last_modified_at` or `name`.
|
606
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `automation`, `disabled`, `last_modified_at` or `name`.
|
624
607
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `disabled`, `last_modified_at` or `automation`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
|
625
608
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `last_modified_at`.
|
626
609
|
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `last_modified_at`.
|
@@ -650,26 +633,14 @@ _Automation = Automation;
|
|
650
633
|
}
|
651
634
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
652
635
|
case 6:
|
653
|
-
|
654
|
-
_context5.next = 8;
|
655
|
-
break;
|
656
|
-
}
|
657
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
658
|
-
case 8:
|
659
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
660
|
-
_context5.next = 10;
|
661
|
-
break;
|
662
|
-
}
|
663
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
664
|
-
case 10:
|
665
|
-
_context5.next = 12;
|
636
|
+
_context5.next = 8;
|
666
637
|
return _Api.default.sendRequest('/automations', 'GET', params, options);
|
667
|
-
case
|
638
|
+
case 8:
|
668
639
|
response = _context5.sent;
|
669
640
|
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) {
|
670
641
|
return new _Automation(obj, options);
|
671
642
|
})) || []);
|
672
|
-
case
|
643
|
+
case 10:
|
673
644
|
case "end":
|
674
645
|
return _context5.stop();
|
675
646
|
}
|
@@ -734,7 +705,6 @@ _Automation = Automation;
|
|
734
705
|
});
|
735
706
|
// Parameters:
|
736
707
|
// source - string - Source Path
|
737
|
-
// destination - string
|
738
708
|
// destinations - array(string) - A list of String destination paths or Hash of folder_path and optional file_path.
|
739
709
|
// destination_replace_from - string - If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
|
740
710
|
// destination_replace_to - string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
@@ -743,7 +713,6 @@ _Automation = Automation;
|
|
743
713
|
// sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
744
714
|
// user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
745
715
|
// group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
746
|
-
// schedule - object
|
747
716
|
// schedule_days_of_week - array(int64) - If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
|
748
717
|
// schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
|
749
718
|
// schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
|
@@ -783,126 +752,120 @@ _Automation = Automation;
|
|
783
752
|
}
|
784
753
|
throw new errors.InvalidParameterError("Bad parameter: source must be of type String, received ".concat((0, _utils.getType)(params.source)));
|
785
754
|
case 6:
|
786
|
-
if (!(params.destination && !(0, _utils.isString)(params.destination))) {
|
787
|
-
_context7.next = 8;
|
788
|
-
break;
|
789
|
-
}
|
790
|
-
throw new errors.InvalidParameterError("Bad parameter: destination must be of type String, received ".concat((0, _utils.getType)(params.destination)));
|
791
|
-
case 8:
|
792
755
|
if (!(params.destinations && !(0, _utils.isArray)(params.destinations))) {
|
793
|
-
_context7.next =
|
756
|
+
_context7.next = 8;
|
794
757
|
break;
|
795
758
|
}
|
796
759
|
throw new errors.InvalidParameterError("Bad parameter: destinations must be of type Array, received ".concat((0, _utils.getType)(params.destinations)));
|
797
|
-
case
|
760
|
+
case 8:
|
798
761
|
if (!(params.destination_replace_from && !(0, _utils.isString)(params.destination_replace_from))) {
|
799
|
-
_context7.next =
|
762
|
+
_context7.next = 10;
|
800
763
|
break;
|
801
764
|
}
|
802
765
|
throw new errors.InvalidParameterError("Bad parameter: destination_replace_from must be of type String, received ".concat((0, _utils.getType)(params.destination_replace_from)));
|
803
|
-
case
|
766
|
+
case 10:
|
804
767
|
if (!(params.destination_replace_to && !(0, _utils.isString)(params.destination_replace_to))) {
|
805
|
-
_context7.next =
|
768
|
+
_context7.next = 12;
|
806
769
|
break;
|
807
770
|
}
|
808
771
|
throw new errors.InvalidParameterError("Bad parameter: destination_replace_to must be of type String, received ".concat((0, _utils.getType)(params.destination_replace_to)));
|
809
|
-
case
|
772
|
+
case 12:
|
810
773
|
if (!(params.interval && !(0, _utils.isString)(params.interval))) {
|
811
|
-
_context7.next =
|
774
|
+
_context7.next = 14;
|
812
775
|
break;
|
813
776
|
}
|
814
777
|
throw new errors.InvalidParameterError("Bad parameter: interval must be of type String, received ".concat((0, _utils.getType)(params.interval)));
|
815
|
-
case
|
778
|
+
case 14:
|
816
779
|
if (!(params.path && !(0, _utils.isString)(params.path))) {
|
817
|
-
_context7.next =
|
780
|
+
_context7.next = 16;
|
818
781
|
break;
|
819
782
|
}
|
820
783
|
throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
|
821
|
-
case
|
784
|
+
case 16:
|
822
785
|
if (!(params.sync_ids && !(0, _utils.isString)(params.sync_ids))) {
|
823
|
-
_context7.next =
|
786
|
+
_context7.next = 18;
|
824
787
|
break;
|
825
788
|
}
|
826
789
|
throw new errors.InvalidParameterError("Bad parameter: sync_ids must be of type String, received ".concat((0, _utils.getType)(params.sync_ids)));
|
827
|
-
case
|
790
|
+
case 18:
|
828
791
|
if (!(params.user_ids && !(0, _utils.isString)(params.user_ids))) {
|
829
|
-
_context7.next =
|
792
|
+
_context7.next = 20;
|
830
793
|
break;
|
831
794
|
}
|
832
795
|
throw new errors.InvalidParameterError("Bad parameter: user_ids must be of type String, received ".concat((0, _utils.getType)(params.user_ids)));
|
833
|
-
case
|
796
|
+
case 20:
|
834
797
|
if (!(params.group_ids && !(0, _utils.isString)(params.group_ids))) {
|
835
|
-
_context7.next =
|
798
|
+
_context7.next = 22;
|
836
799
|
break;
|
837
800
|
}
|
838
801
|
throw new errors.InvalidParameterError("Bad parameter: group_ids must be of type String, received ".concat((0, _utils.getType)(params.group_ids)));
|
839
|
-
case
|
802
|
+
case 22:
|
840
803
|
if (!(params.schedule_days_of_week && !(0, _utils.isArray)(params.schedule_days_of_week))) {
|
841
|
-
_context7.next =
|
804
|
+
_context7.next = 24;
|
842
805
|
break;
|
843
806
|
}
|
844
807
|
throw new errors.InvalidParameterError("Bad parameter: schedule_days_of_week must be of type Array, received ".concat((0, _utils.getType)(params.schedule_days_of_week)));
|
845
|
-
case
|
808
|
+
case 24:
|
846
809
|
if (!(params.schedule_times_of_day && !(0, _utils.isArray)(params.schedule_times_of_day))) {
|
847
|
-
_context7.next =
|
810
|
+
_context7.next = 26;
|
848
811
|
break;
|
849
812
|
}
|
850
813
|
throw new errors.InvalidParameterError("Bad parameter: schedule_times_of_day must be of type Array, received ".concat((0, _utils.getType)(params.schedule_times_of_day)));
|
851
|
-
case
|
814
|
+
case 26:
|
852
815
|
if (!(params.schedule_time_zone && !(0, _utils.isString)(params.schedule_time_zone))) {
|
853
|
-
_context7.next =
|
816
|
+
_context7.next = 28;
|
854
817
|
break;
|
855
818
|
}
|
856
819
|
throw new errors.InvalidParameterError("Bad parameter: schedule_time_zone must be of type String, received ".concat((0, _utils.getType)(params.schedule_time_zone)));
|
857
|
-
case
|
820
|
+
case 28:
|
858
821
|
if (!(params.description && !(0, _utils.isString)(params.description))) {
|
859
|
-
_context7.next =
|
822
|
+
_context7.next = 30;
|
860
823
|
break;
|
861
824
|
}
|
862
825
|
throw new errors.InvalidParameterError("Bad parameter: description must be of type String, received ".concat((0, _utils.getType)(params.description)));
|
863
|
-
case
|
826
|
+
case 30:
|
864
827
|
if (!(params.name && !(0, _utils.isString)(params.name))) {
|
865
|
-
_context7.next =
|
828
|
+
_context7.next = 32;
|
866
829
|
break;
|
867
830
|
}
|
868
831
|
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
|
869
|
-
case
|
832
|
+
case 32:
|
870
833
|
if (!(params.path_time_zone && !(0, _utils.isString)(params.path_time_zone))) {
|
871
|
-
_context7.next =
|
834
|
+
_context7.next = 34;
|
872
835
|
break;
|
873
836
|
}
|
874
837
|
throw new errors.InvalidParameterError("Bad parameter: path_time_zone must be of type String, received ".concat((0, _utils.getType)(params.path_time_zone)));
|
875
|
-
case
|
838
|
+
case 34:
|
876
839
|
if (!(params.trigger && !(0, _utils.isString)(params.trigger))) {
|
877
|
-
_context7.next =
|
840
|
+
_context7.next = 36;
|
878
841
|
break;
|
879
842
|
}
|
880
843
|
throw new errors.InvalidParameterError("Bad parameter: trigger must be of type String, received ".concat((0, _utils.getType)(params.trigger)));
|
881
|
-
case
|
844
|
+
case 36:
|
882
845
|
if (!(params.trigger_actions && !(0, _utils.isArray)(params.trigger_actions))) {
|
883
|
-
_context7.next =
|
846
|
+
_context7.next = 38;
|
884
847
|
break;
|
885
848
|
}
|
886
849
|
throw new errors.InvalidParameterError("Bad parameter: trigger_actions must be of type Array, received ".concat((0, _utils.getType)(params.trigger_actions)));
|
887
|
-
case
|
850
|
+
case 38:
|
888
851
|
if (!(params.recurring_day && !(0, _utils.isInt)(params.recurring_day))) {
|
889
|
-
_context7.next =
|
852
|
+
_context7.next = 40;
|
890
853
|
break;
|
891
854
|
}
|
892
855
|
throw new errors.InvalidParameterError("Bad parameter: recurring_day must be of type Int, received ".concat((0, _utils.getType)(params.recurring_day)));
|
893
|
-
case
|
856
|
+
case 40:
|
894
857
|
if (!(params.automation && !(0, _utils.isString)(params.automation))) {
|
895
|
-
_context7.next =
|
858
|
+
_context7.next = 42;
|
896
859
|
break;
|
897
860
|
}
|
898
861
|
throw new errors.InvalidParameterError("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(params.automation)));
|
899
|
-
case
|
900
|
-
_context7.next =
|
862
|
+
case 42:
|
863
|
+
_context7.next = 44;
|
901
864
|
return _Api.default.sendRequest('/automations', 'POST', params, options);
|
902
|
-
case
|
865
|
+
case 44:
|
903
866
|
response = _context7.sent;
|
904
867
|
return _context7.abrupt("return", new _Automation(response === null || response === void 0 ? void 0 : response.data, options));
|
905
|
-
case
|
868
|
+
case 46:
|
906
869
|
case "end":
|
907
870
|
return _context7.stop();
|
908
871
|
}
|
@@ -86,8 +86,6 @@ _AutomationLog = AutomationLog;
|
|
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`, `automation_id`, `automation_run_id`, `operation`, `path` or `status`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ automation_id ]`, `[ automation_run_id ]`, `[ operation ]`, `[ path ]`, `[ status ]`, `[ start_date, end_date ]`, `[ start_date, automation_id ]`, `[ start_date, automation_run_id ]`, `[ start_date, operation ]`, `[ start_date, path ]`, `[ start_date, status ]`, `[ end_date, automation_id ]`, `[ end_date, automation_run_id ]`, `[ end_date, operation ]`, `[ end_date, path ]`, `[ end_date, status ]`, `[ automation_id, automation_run_id ]`, `[ automation_id, operation ]`, `[ automation_id, path ]`, `[ automation_id, status ]`, `[ automation_run_id, operation ]`, `[ automation_run_id, path ]`, `[ automation_run_id, status ]`, `[ operation, path ]`, `[ operation, status ]`, `[ path, status ]`, `[ start_date, end_date, automation_id ]`, `[ start_date, end_date, automation_run_id ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, status ]`, `[ start_date, automation_id, automation_run_id ]`, `[ start_date, automation_id, operation ]`, `[ start_date, automation_id, path ]`, `[ start_date, automation_id, status ]`, `[ start_date, automation_run_id, operation ]`, `[ start_date, automation_run_id, path ]`, `[ start_date, automation_run_id, status ]`, `[ start_date, operation, path ]`, `[ start_date, operation, status ]`, `[ start_date, path, status ]`, `[ end_date, automation_id, automation_run_id ]`, `[ end_date, automation_id, operation ]`, `[ end_date, automation_id, path ]`, `[ end_date, automation_id, status ]`, `[ end_date, automation_run_id, operation ]`, `[ end_date, automation_run_id, path ]`, `[ end_date, automation_run_id, status ]`, `[ end_date, operation, path ]`, `[ end_date, operation, status ]`, `[ end_date, path, status ]`, `[ automation_id, automation_run_id, operation ]`, `[ automation_id, automation_run_id, path ]`, `[ automation_id, automation_run_id, status ]`, `[ automation_id, operation, path ]`, `[ automation_id, operation, status ]`, `[ automation_id, path, status ]`, `[ automation_run_id, operation, path ]`, `[ automation_run_id, operation, status ]`, `[ automation_run_id, path, status ]`, `[ operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id ]`, `[ start_date, end_date, automation_id, operation ]`, `[ start_date, end_date, automation_id, path ]`, `[ start_date, end_date, automation_id, status ]`, `[ start_date, end_date, automation_run_id, operation ]`, `[ start_date, end_date, automation_run_id, path ]`, `[ start_date, end_date, automation_run_id, status ]`, `[ start_date, end_date, operation, path ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, path, status ]`, `[ start_date, automation_id, automation_run_id, operation ]`, `[ start_date, automation_id, automation_run_id, path ]`, `[ start_date, automation_id, automation_run_id, status ]`, `[ start_date, automation_id, operation, path ]`, `[ start_date, automation_id, operation, status ]`, `[ start_date, automation_id, path, status ]`, `[ start_date, automation_run_id, operation, path ]`, `[ start_date, automation_run_id, operation, status ]`, `[ start_date, automation_run_id, path, status ]`, `[ start_date, operation, path, status ]`, `[ end_date, automation_id, automation_run_id, operation ]`, `[ end_date, automation_id, automation_run_id, path ]`, `[ end_date, automation_id, automation_run_id, status ]`, `[ end_date, automation_id, operation, path ]`, `[ end_date, automation_id, operation, status ]`, `[ end_date, automation_id, path, status ]`, `[ end_date, automation_run_id, operation, path ]`, `[ end_date, automation_run_id, operation, status ]`, `[ end_date, automation_run_id, path, status ]`, `[ end_date, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path ]`, `[ automation_id, automation_run_id, operation, status ]`, `[ automation_id, automation_run_id, path, status ]`, `[ automation_id, operation, path, status ]`, `[ automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation ]`, `[ start_date, end_date, automation_id, automation_run_id, path ]`, `[ start_date, end_date, automation_id, automation_run_id, status ]`, `[ start_date, end_date, automation_id, operation, path ]`, `[ start_date, end_date, automation_id, operation, status ]`, `[ start_date, end_date, automation_id, path, status ]`, `[ start_date, end_date, automation_run_id, operation, path ]`, `[ start_date, end_date, automation_run_id, operation, status ]`, `[ start_date, end_date, automation_run_id, path, status ]`, `[ start_date, end_date, operation, path, status ]`, `[ start_date, automation_id, automation_run_id, operation, path ]`, `[ start_date, automation_id, automation_run_id, operation, status ]`, `[ start_date, automation_id, automation_run_id, path, status ]`, `[ start_date, automation_id, operation, path, status ]`, `[ start_date, automation_run_id, operation, path, status ]`, `[ end_date, automation_id, automation_run_id, operation, path ]`, `[ end_date, automation_id, automation_run_id, operation, status ]`, `[ end_date, automation_id, automation_run_id, path, status ]`, `[ end_date, automation_id, operation, path, status ]`, `[ end_date, automation_run_id, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, path ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, status ]`, `[ start_date, end_date, automation_id, automation_run_id, path, status ]`, `[ start_date, end_date, automation_id, operation, path, status ]`, `[ start_date, end_date, automation_run_id, operation, path, status ]`, `[ start_date, automation_id, automation_run_id, operation, path, status ]` or `[ end_date, automation_id, automation_run_id, operation, path, status ]`.
|
92
90
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `operation`, `path` or `status`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ automation_id ]`, `[ automation_run_id ]`, `[ operation ]`, `[ path ]`, `[ status ]`, `[ start_date, end_date ]`, `[ start_date, automation_id ]`, `[ start_date, automation_run_id ]`, `[ start_date, operation ]`, `[ start_date, path ]`, `[ start_date, status ]`, `[ end_date, automation_id ]`, `[ end_date, automation_run_id ]`, `[ end_date, operation ]`, `[ end_date, path ]`, `[ end_date, status ]`, `[ automation_id, automation_run_id ]`, `[ automation_id, operation ]`, `[ automation_id, path ]`, `[ automation_id, status ]`, `[ automation_run_id, operation ]`, `[ automation_run_id, path ]`, `[ automation_run_id, status ]`, `[ operation, path ]`, `[ operation, status ]`, `[ path, status ]`, `[ start_date, end_date, automation_id ]`, `[ start_date, end_date, automation_run_id ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, status ]`, `[ start_date, automation_id, automation_run_id ]`, `[ start_date, automation_id, operation ]`, `[ start_date, automation_id, path ]`, `[ start_date, automation_id, status ]`, `[ start_date, automation_run_id, operation ]`, `[ start_date, automation_run_id, path ]`, `[ start_date, automation_run_id, status ]`, `[ start_date, operation, path ]`, `[ start_date, operation, status ]`, `[ start_date, path, status ]`, `[ end_date, automation_id, automation_run_id ]`, `[ end_date, automation_id, operation ]`, `[ end_date, automation_id, path ]`, `[ end_date, automation_id, status ]`, `[ end_date, automation_run_id, operation ]`, `[ end_date, automation_run_id, path ]`, `[ end_date, automation_run_id, status ]`, `[ end_date, operation, path ]`, `[ end_date, operation, status ]`, `[ end_date, path, status ]`, `[ automation_id, automation_run_id, operation ]`, `[ automation_id, automation_run_id, path ]`, `[ automation_id, automation_run_id, status ]`, `[ automation_id, operation, path ]`, `[ automation_id, operation, status ]`, `[ automation_id, path, status ]`, `[ automation_run_id, operation, path ]`, `[ automation_run_id, operation, status ]`, `[ automation_run_id, path, status ]`, `[ operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id ]`, `[ start_date, end_date, automation_id, operation ]`, `[ start_date, end_date, automation_id, path ]`, `[ start_date, end_date, automation_id, status ]`, `[ start_date, end_date, automation_run_id, operation ]`, `[ start_date, end_date, automation_run_id, path ]`, `[ start_date, end_date, automation_run_id, status ]`, `[ start_date, end_date, operation, path ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, path, status ]`, `[ start_date, automation_id, automation_run_id, operation ]`, `[ start_date, automation_id, automation_run_id, path ]`, `[ start_date, automation_id, automation_run_id, status ]`, `[ start_date, automation_id, operation, path ]`, `[ start_date, automation_id, operation, status ]`, `[ start_date, automation_id, path, status ]`, `[ start_date, automation_run_id, operation, path ]`, `[ start_date, automation_run_id, operation, status ]`, `[ start_date, automation_run_id, path, status ]`, `[ start_date, operation, path, status ]`, `[ end_date, automation_id, automation_run_id, operation ]`, `[ end_date, automation_id, automation_run_id, path ]`, `[ end_date, automation_id, automation_run_id, status ]`, `[ end_date, automation_id, operation, path ]`, `[ end_date, automation_id, operation, status ]`, `[ end_date, automation_id, path, status ]`, `[ end_date, automation_run_id, operation, path ]`, `[ end_date, automation_run_id, operation, status ]`, `[ end_date, automation_run_id, path, status ]`, `[ end_date, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path ]`, `[ automation_id, automation_run_id, operation, status ]`, `[ automation_id, automation_run_id, path, status ]`, `[ automation_id, operation, path, status ]`, `[ automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation ]`, `[ start_date, end_date, automation_id, automation_run_id, path ]`, `[ start_date, end_date, automation_id, automation_run_id, status ]`, `[ start_date, end_date, automation_id, operation, path ]`, `[ start_date, end_date, automation_id, operation, status ]`, `[ start_date, end_date, automation_id, path, status ]`, `[ start_date, end_date, automation_run_id, operation, path ]`, `[ start_date, end_date, automation_run_id, operation, status ]`, `[ start_date, end_date, automation_run_id, path, status ]`, `[ start_date, end_date, operation, path, status ]`, `[ start_date, automation_id, automation_run_id, operation, path ]`, `[ start_date, automation_id, automation_run_id, operation, status ]`, `[ start_date, automation_id, automation_run_id, path, status ]`, `[ start_date, automation_id, operation, path, status ]`, `[ start_date, automation_run_id, operation, path, status ]`, `[ end_date, automation_id, automation_run_id, operation, path ]`, `[ end_date, automation_id, automation_run_id, operation, status ]`, `[ end_date, automation_id, automation_run_id, path, status ]`, `[ end_date, automation_id, operation, path, status ]`, `[ end_date, automation_run_id, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, path ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, status ]`, `[ start_date, end_date, automation_id, automation_run_id, path, status ]`, `[ start_date, end_date, automation_id, operation, path, status ]`, `[ start_date, end_date, automation_run_id, operation, path, status ]`, `[ start_date, automation_id, automation_run_id, operation, path, status ]` or `[ end_date, automation_id, automation_run_id, operation, path, status ]`.
|
93
91
|
(0, _defineProperty2.default)(AutomationLog, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
@@ -113,26 +111,14 @@ _AutomationLog = AutomationLog;
|
|
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('/automation_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 _AutomationLog(obj, options);
|
134
120
|
})) || []);
|
135
|
-
case
|
121
|
+
case 10:
|
136
122
|
case "end":
|
137
123
|
return _context.stop();
|
138
124
|
}
|
@@ -86,9 +86,7 @@ _AutomationRun = AutomationRun;
|
|
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[automation_id]=desc`). Valid fields are `automation_id`, `created_at` or `status`.
|
89
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `automation_id`, `created_at` or `status`.
|
92
90
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status` and `automation_id`. Valid field combinations are `[ automation_id, status ]`.
|
93
91
|
// automation_id (required) - int64 - ID of the associated Automation.
|
94
92
|
(0, _defineProperty2.default)(AutomationRun, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
@@ -120,32 +118,20 @@ _AutomationRun = AutomationRun;
|
|
120
118
|
}
|
121
119
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
122
120
|
case 8:
|
123
|
-
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
124
|
-
_context.next = 10;
|
125
|
-
break;
|
126
|
-
}
|
127
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
128
|
-
case 10:
|
129
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
130
|
-
_context.next = 12;
|
131
|
-
break;
|
132
|
-
}
|
133
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
134
|
-
case 12:
|
135
121
|
if (!(params.automation_id && !(0, _utils.isInt)(params.automation_id))) {
|
136
|
-
_context.next =
|
122
|
+
_context.next = 10;
|
137
123
|
break;
|
138
124
|
}
|
139
125
|
throw new errors.InvalidParameterError("Bad parameter: automation_id must be of type Int, received ".concat((0, _utils.getType)(params.automation_id)));
|
140
|
-
case
|
141
|
-
_context.next =
|
126
|
+
case 10:
|
127
|
+
_context.next = 12;
|
142
128
|
return _Api.default.sendRequest('/automation_runs', 'GET', params, options);
|
143
|
-
case
|
129
|
+
case 12:
|
144
130
|
response = _context.sent;
|
145
131
|
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) {
|
146
132
|
return new _AutomationRun(obj, options);
|
147
133
|
})) || []);
|
148
|
-
case
|
134
|
+
case 14:
|
149
135
|
case "end":
|
150
136
|
return _context.stop();
|
151
137
|
}
|
@@ -86,9 +86,7 @@ _BandwidthSnapshot = BandwidthSnapshot;
|
|
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[logged_at]=desc`). Valid fields are `logged_at`.
|
89
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `logged_at`.
|
92
90
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `logged_at`.
|
93
91
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `logged_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 `logged_at`.
|
@@ -117,26 +115,14 @@ _BandwidthSnapshot = BandwidthSnapshot;
|
|
117
115
|
}
|
118
116
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
119
117
|
case 6:
|
120
|
-
|
121
|
-
_context.next = 8;
|
122
|
-
break;
|
123
|
-
}
|
124
|
-
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
125
|
-
case 8:
|
126
|
-
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
127
|
-
_context.next = 10;
|
128
|
-
break;
|
129
|
-
}
|
130
|
-
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
131
|
-
case 10:
|
132
|
-
_context.next = 12;
|
118
|
+
_context.next = 8;
|
133
119
|
return _Api.default.sendRequest('/bandwidth_snapshots', 'GET', params, options);
|
134
|
-
case
|
120
|
+
case 8:
|
135
121
|
response = _context.sent;
|
136
122
|
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) {
|
137
123
|
return new _BandwidthSnapshot(obj, options);
|
138
124
|
})) || []);
|
139
|
-
case
|
125
|
+
case 10:
|
140
126
|
case "end":
|
141
127
|
return _context.stop();
|
142
128
|
}
|